@uxland/primary-shell 4.3.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1183 -1237
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +117 -125
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/primaria-shell/primaria-shell.d.ts +3 -0
- package/dist/primary/shell/src/UI/components/quick-actions-menu/quick-actions-menu.d.ts +1 -0
- package/dist/primary/shell/src/UI/shared-components/index.d.ts +0 -1
- package/dist/primary/shell/src/api/api.d.ts +4 -2
- package/dist/primary/shell/src/api/http-client/http-client.d.ts +7 -1
- package/dist/primary/shell/src/api/interaction-service/confirmation-message.d.ts +3 -0
- package/dist/primary/shell/src/api/interaction-service/index.d.ts +1 -0
- package/dist/primary/shell/src/api/interaction-service/interaction-service-impl.d.ts +7 -0
- package/dist/primary/shell/src/api/interaction-service/interaction-service.d.ts +32 -0
- package/dist/primary/shell/src/api/notification-service/notification-service.d.ts +6 -0
- package/dist/primary/shell/src/api/notification-service/notification.service-impl.d.ts +9 -0
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/component.d.ts +2 -4
- package/dist/primary/shell/src/api/region-manager/region-manager.d.ts +1 -0
- package/dist/primary/shell/src/events.d.ts +1 -0
- package/dist/primary/shell/src/features/bootstrapper.d.ts +1 -1
- package/dist/primary/shell/src/index.d.ts +1 -2
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/export-pdf-modal.d.ts +1 -5
- package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +0 -1
- package/dist/primary/shell/src/locales.d.ts +4 -0
- package/package.json +4 -1
- package/src/UI/components/primaria-shell/primaria-shell.ts +24 -7
- package/src/UI/components/quick-actions-menu/quick-actions-menu.ts +13 -3
- package/src/UI/shared-components/index.ts +0 -1
- package/src/api/api.ts +11 -8
- package/src/api/http-client/http-client.test.ts +188 -76
- package/src/api/http-client/http-client.ts +62 -11
- package/src/api/interaction-service/confirmation-message.tsx +5 -0
- package/src/api/interaction-service/index.ts +1 -0
- package/src/api/interaction-service/interaction-service-impl.tsx +225 -0
- package/src/api/interaction-service/interaction-service.ts +46 -0
- package/src/api/notification-service/notification-service.ts +6 -0
- package/src/api/notification-service/notification.service-impl.ts +45 -0
- package/src/api/plugin-busy-manager/plugin-busy-list/component.ts +3 -4
- package/src/api/plugin-busy-manager/plugin-busy-list/template.ts +1 -1
- package/src/api/region-manager/region-manager.ts +5 -0
- package/src/disposer.ts +1 -1
- package/src/events.ts +1 -0
- package/src/features/bootstrapper.ts +6 -3
- package/src/features/exit/handler.ts +8 -11
- package/src/features/get-user-info/handler.ts +3 -4
- package/src/index.ts +1 -2
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/export-pdf-modal.ts +1 -10
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/template.ts +0 -7
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/handler.ts +8 -8
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/search/handler.ts +5 -3
- package/src/internal-plugins/activity-history/localization.ts +0 -1
- package/src/locales.ts +5 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/components/dialog-component.d.ts +0 -19
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/components/notifier-component.d.ts +0 -12
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/confirm-mixin.d.ts +0 -11
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/confirm.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/index.d.ts +0 -5
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/notify.d.ts +0 -4
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/open-dialog.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/shared.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/typings.d.ts +0 -40
- package/dist/primary/shell/src/api/interaction-manager/interaction.d.ts +0 -9
- package/src/UI/shared-components/primaria-interaction/components/dialog-component-styles.css +0 -104
- package/src/UI/shared-components/primaria-interaction/components/dialog-component.ts +0 -138
- package/src/UI/shared-components/primaria-interaction/components/notifier-component-styles.css +0 -136
- package/src/UI/shared-components/primaria-interaction/components/notifier-component.ts +0 -69
- package/src/UI/shared-components/primaria-interaction/confirm-mixin.ts +0 -35
- package/src/UI/shared-components/primaria-interaction/confirm.ts +0 -9
- package/src/UI/shared-components/primaria-interaction/index.ts +0 -5
- package/src/UI/shared-components/primaria-interaction/notify.ts +0 -153
- package/src/UI/shared-components/primaria-interaction/open-dialog.ts +0 -8
- package/src/UI/shared-components/primaria-interaction/shared.ts +0 -29
- package/src/UI/shared-components/primaria-interaction/typings.ts +0 -46
- package/src/api/interaction-manager/interaction.ts +0 -26
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(fr,X){typeof exports=="object"&&typeof module<"u"?X(exports,require("react
|
|
1
|
+
(function(fr,X){typeof exports=="object"&&typeof module<"u"?X(exports,require("react"),require("react-dom/client")):typeof define=="function"&&define.amd?define(["exports","react","react-dom/client"],X):(fr=typeof globalThis<"u"?globalThis:fr||self,X(fr["@uxland/primary-shell"]={},fr.c$s,fr.r$P))})(this,function(exports,c$s,r$P){"use strict";var Bi=Object.defineProperty;var Hi=(fr,X,W)=>X in fr?Bi(fr,X,{enumerable:!0,configurable:!0,writable:!0,value:W}):fr[X]=W;var Tt=(fr,X,W)=>Hi(fr,typeof X!="symbol"?X+"":X,W);var fr;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}/*! *****************************************************************************
|
|
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
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
13
|
and limitations under the License.
|
|
14
|
-
***************************************************************************** */var Reflect$1;(function(X){(function(W){var J=typeof globalThis=="object"?globalThis:typeof commonjsGlobal=="object"?commonjsGlobal:typeof self=="object"?self:typeof this=="object"?this:de(),te=re(X);typeof J.Reflect<"u"&&(te=re(J.Reflect,te)),W(te,J),typeof J.Reflect>"u"&&(J.Reflect=X);function re(he,ue){return function(ce,pe){Object.defineProperty(he,ce,{configurable:!0,writable:!0,value:pe}),ue&&ue(ce,pe)}}function ne(){try{return Function("return this;")()}catch{}}function oe(){try{return(0,eval)("(function() { return this; })()")}catch{}}function de(){return ne()||oe()}})(function(W,J){var te=Object.prototype.hasOwnProperty,re=typeof Symbol=="function",ne=re&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",oe=re&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",de=typeof Object.create=="function",he={__proto__:[]}instanceof Array,ue=!de&&!he,ce={create:de?function(){return ir(Object.create(null))}:he?function(){return ir({__proto__:null})}:function(){return ir({})},has:ue?function(rt,ot){return te.call(rt,ot)}:function(rt,ot){return ot in rt},get:ue?function(rt,ot){return te.call(rt,ot)?rt[ot]:void 0}:function(rt,ot){return rt[ot]}},pe=Object.getPrototypeOf(Function),fe=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:pr(),ge=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Zt(),me=typeof WeakMap=="function"?WeakMap:Cr(),ve=re?Symbol.for("@reflect-metadata:registry"):void 0,be=Ft(),ye=Nt(be);function we(rt,ot,_t,kt){if(Ue(_t)){if(!Et(rt))throw new TypeError;if(!Lt(ot))throw new TypeError;return De(rt,ot)}else{if(!Et(rt))throw new TypeError;if(!Ze(ot))throw new TypeError;if(!Ze(kt)&&!Ue(kt)&&!We(kt))throw new TypeError;return We(kt)&&(kt=void 0),_t=bt(_t),Me(rt,ot,_t,kt)}}W("decorate",we);function Se(rt,ot){function _t(kt,It){if(!Ze(kt))throw new TypeError;if(!Ue(It)&&!Bt(It))throw new TypeError;vt(rt,ot,kt,It)}return _t}W("metadata",Se);function _e(rt,ot,_t,kt){if(!Ze(_t))throw new TypeError;return Ue(kt)||(kt=bt(kt)),vt(rt,ot,_t,kt)}W("defineMetadata",_e);function Ce(rt,ot,_t){if(!Ze(ot))throw new TypeError;return Ue(_t)||(_t=bt(_t)),Be(rt,ot,_t)}W("hasMetadata",Ce);function Le(rt,ot,_t){if(!Ze(ot))throw new TypeError;return Ue(_t)||(_t=bt(_t)),Ve(rt,ot,_t)}W("hasOwnMetadata",Le);function qe(rt,ot,_t){if(!Ze(ot))throw new TypeError;return Ue(_t)||(_t=bt(_t)),Ye(rt,ot,_t)}W("getMetadata",qe);function Ie(rt,ot,_t){if(!Ze(ot))throw new TypeError;return Ue(_t)||(_t=bt(_t)),Je(rt,ot,_t)}W("getOwnMetadata",Ie);function ze(rt,ot){if(!Ze(rt))throw new TypeError;return Ue(ot)||(ot=bt(ot)),Xe(rt,ot)}W("getMetadataKeys",ze);function Pe(rt,ot){if(!Ze(rt))throw new TypeError;return Ue(ot)||(ot=bt(ot)),Ge(rt,ot)}W("getOwnMetadataKeys",Pe);function Ae(rt,ot,_t){if(!Ze(ot))throw new TypeError;if(Ue(_t)||(_t=bt(_t)),!Ze(ot))throw new TypeError;Ue(_t)||(_t=bt(_t));var kt=or(ot,_t,!1);return Ue(kt)?!1:kt.OrdinaryDeleteMetadata(rt,ot,_t)}W("deleteMetadata",Ae);function De(rt,ot){for(var _t=rt.length-1;_t>=0;--_t){var kt=rt[_t],It=kt(ot);if(!Ue(It)&&!We(It)){if(!Lt(It))throw new TypeError;ot=It}}return ot}function Me(rt,ot,_t,kt){for(var It=rt.length-1;It>=0;--It){var ur=rt[It],cr=ur(ot,_t,kt);if(!Ue(cr)&&!We(cr)){if(!Ze(cr))throw new TypeError;kt=cr}}return kt}function Be(rt,ot,_t){var kt=Ve(rt,ot,_t);if(kt)return!0;var It=St(ot);return We(It)?!1:Be(rt,It,_t)}function Ve(rt,ot,_t){var kt=or(ot,_t,!1);return Ue(kt)?!1:it(kt.OrdinaryHasOwnMetadata(rt,ot,_t))}function Ye(rt,ot,_t){var kt=Ve(rt,ot,_t);if(kt)return Je(rt,ot,_t);var It=St(ot);if(!We(It))return Ye(rt,It,_t)}function Je(rt,ot,_t){var kt=or(ot,_t,!1);if(!Ue(kt))return kt.OrdinaryGetOwnMetadata(rt,ot,_t)}function vt(rt,ot,_t,kt){var It=or(_t,kt,!0);It.OrdinaryDefineOwnMetadata(rt,ot,_t,kt)}function Xe(rt,ot){var _t=Ge(rt,ot),kt=St(rt);if(kt===null)return _t;var It=Xe(kt,ot);if(It.length<=0)return _t;if(_t.length<=0)return It;for(var ur=new ge,cr=[],Ht=0,At=_t;Ht<At.length;Ht++){var Ot=At[Ht],qt=ur.has(Ot);qt||(ur.add(Ot),cr.push(Ot))}for(var Pt=0,Ut=It;Pt<Ut.length;Pt++){var Ot=Ut[Pt],qt=ur.has(Ot);qt||(ur.add(Ot),cr.push(Ot))}return cr}function Ge(rt,ot){var _t=or(rt,ot,!1);return _t?_t.OrdinaryOwnMetadataKeys(rt,ot):[]}function Ne(rt){if(rt===null)return 1;switch(typeof rt){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return rt===null?1:6;default:return 6}}function Ue(rt){return rt===void 0}function We(rt){return rt===null}function Qe(rt){return typeof rt=="symbol"}function Ze(rt){return typeof rt=="object"?rt!==null:typeof rt=="function"}function je(rt,ot){switch(Ne(rt)){case 0:return rt;case 1:return rt;case 2:return rt;case 3:return rt;case 4:return rt;case 5:return rt}var _t="string",kt=dr(rt,ne);if(kt!==void 0){var It=kt.call(rt,_t);if(Ze(It))throw new TypeError;return It}return Ke(rt)}function Ke(rt,ot){var _t,kt;{var It=rt.toString;if(Dt(It)){var kt=It.call(rt);if(!Ze(kt))return kt}var _t=rt.valueOf;if(Dt(_t)){var kt=_t.call(rt);if(!Ze(kt))return kt}}throw new TypeError}function it(rt){return!!rt}function nt(rt){return""+rt}function bt(rt){var ot=je(rt);return Qe(ot)?ot:nt(ot)}function Et(rt){return Array.isArray?Array.isArray(rt):rt instanceof Object?rt instanceof Array:Object.prototype.toString.call(rt)==="[object Array]"}function Dt(rt){return typeof rt=="function"}function Lt(rt){return typeof rt=="function"}function Bt(rt){switch(Ne(rt)){case 3:return!0;case 4:return!0;default:return!1}}function jt(rt,ot){return rt===ot||rt!==rt&&ot!==ot}function dr(rt,ot){var _t=rt[ot];if(_t!=null){if(!Dt(_t))throw new TypeError;return _t}}function rr(rt){var ot=dr(rt,oe);if(!Dt(ot))throw new TypeError;var _t=ot.call(rt);if(!Ze(_t))throw new TypeError;return _t}function gt(rt){return rt.value}function mt(rt){var ot=rt.next();return ot.done?!1:ot}function xt(rt){var ot=rt.return;ot&&ot.call(rt)}function St(rt){var ot=Object.getPrototypeOf(rt);if(typeof rt!="function"||rt===pe||ot!==pe)return ot;var _t=rt.prototype,kt=_t&&Object.getPrototypeOf(_t);if(kt==null||kt===Object.prototype)return ot;var It=kt.constructor;return typeof It!="function"||It===rt?ot:It}function $t(){var rt;!Ue(ve)&&typeof J.Reflect<"u"&&!(ve in J.Reflect)&&typeof J.Reflect.defineMetadata=="function"&&(rt=zt(J.Reflect));var ot,_t,kt,It=new me,ur={registerProvider:cr,getProvider:At,setProvider:qt};return ur;function cr(Pt){if(!Object.isExtensible(ur))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case rt===Pt:break;case Ue(ot):ot=Pt;break;case ot===Pt:break;case Ue(_t):_t=Pt;break;case _t===Pt:break;default:kt===void 0&&(kt=new ge),kt.add(Pt);break}}function Ht(Pt,Ut){if(!Ue(ot)){if(ot.isProviderFor(Pt,Ut))return ot;if(!Ue(_t)){if(_t.isProviderFor(Pt,Ut))return ot;if(!Ue(kt))for(var Xt=rr(kt);;){var ar=mt(Xt);if(!ar)return;var gr=gt(ar);if(gr.isProviderFor(Pt,Ut))return xt(Xt),gr}}}if(!Ue(rt)&&rt.isProviderFor(Pt,Ut))return rt}function At(Pt,Ut){var Xt=It.get(Pt),ar;return Ue(Xt)||(ar=Xt.get(Ut)),Ue(ar)&&(ar=Ht(Pt,Ut),Ue(ar)||(Ue(Xt)&&(Xt=new fe,It.set(Pt,Xt)),Xt.set(Ut,ar))),ar}function Ot(Pt){if(Ue(Pt))throw new TypeError;return ot===Pt||_t===Pt||!Ue(kt)&&kt.has(Pt)}function qt(Pt,Ut,Xt){if(!Ot(Xt))throw new Error("Metadata provider not registered.");var ar=At(Pt,Ut);if(ar!==Xt){if(!Ue(ar))return!1;var gr=It.get(Pt);Ue(gr)&&(gr=new fe,It.set(Pt,gr)),gr.set(Ut,Xt)}return!0}}function Ft(){var rt;return!Ue(ve)&&Ze(J.Reflect)&&Object.isExtensible(J.Reflect)&&(rt=J.Reflect[ve]),Ue(rt)&&(rt=$t()),!Ue(ve)&&Ze(J.Reflect)&&Object.isExtensible(J.Reflect)&&Object.defineProperty(J.Reflect,ve,{enumerable:!1,configurable:!1,writable:!1,value:rt}),rt}function Nt(rt){var ot=new me,_t={isProviderFor:function(Ot,qt){var Pt=ot.get(Ot);return Ue(Pt)?!1:Pt.has(qt)},OrdinaryDefineOwnMetadata:cr,OrdinaryHasOwnMetadata:It,OrdinaryGetOwnMetadata:ur,OrdinaryOwnMetadataKeys:Ht,OrdinaryDeleteMetadata:At};return be.registerProvider(_t),_t;function kt(Ot,qt,Pt){var Ut=ot.get(Ot),Xt=!1;if(Ue(Ut)){if(!Pt)return;Ut=new fe,ot.set(Ot,Ut),Xt=!0}var ar=Ut.get(qt);if(Ue(ar)){if(!Pt)return;if(ar=new fe,Ut.set(qt,ar),!rt.setProvider(Ot,qt,_t))throw Ut.delete(qt),Xt&&ot.delete(Ot),new Error("Wrong provider for target.")}return ar}function It(Ot,qt,Pt){var Ut=kt(qt,Pt,!1);return Ue(Ut)?!1:it(Ut.has(Ot))}function ur(Ot,qt,Pt){var Ut=kt(qt,Pt,!1);if(!Ue(Ut))return Ut.get(Ot)}function cr(Ot,qt,Pt,Ut){var Xt=kt(Pt,Ut,!0);Xt.set(Ot,qt)}function Ht(Ot,qt){var Pt=[],Ut=kt(Ot,qt,!1);if(Ue(Ut))return Pt;for(var Xt=Ut.keys(),ar=rr(Xt),gr=0;;){var Or=mt(ar);if(!Or)return Pt.length=gr,Pt;var Dr=gt(Or);try{Pt[gr]=Dr}catch(Rr){try{xt(ar)}finally{throw Rr}}gr++}}function At(Ot,qt,Pt){var Ut=kt(qt,Pt,!1);if(Ue(Ut)||!Ut.delete(Ot))return!1;if(Ut.size===0){var Xt=ot.get(qt);Ue(Xt)||(Xt.delete(Pt),Xt.size===0&&ot.delete(Xt))}return!0}}function zt(rt){var ot=rt.defineMetadata,_t=rt.hasOwnMetadata,kt=rt.getOwnMetadata,It=rt.getOwnMetadataKeys,ur=rt.deleteMetadata,cr=new me,Ht={isProviderFor:function(At,Ot){var qt=cr.get(At);return!Ue(qt)&&qt.has(Ot)?!0:It(At,Ot).length?(Ue(qt)&&(qt=new ge,cr.set(At,qt)),qt.add(Ot),!0):!1},OrdinaryDefineOwnMetadata:ot,OrdinaryHasOwnMetadata:_t,OrdinaryGetOwnMetadata:kt,OrdinaryOwnMetadataKeys:It,OrdinaryDeleteMetadata:ur};return Ht}function or(rt,ot,_t){var kt=be.getProvider(rt,ot);if(!Ue(kt))return kt;if(_t){if(be.setProvider(rt,ot,ye))return ye;throw new Error("Illegal state.")}}function pr(){var rt={},ot=[],_t=function(){function Ht(At,Ot,qt){this._index=0,this._keys=At,this._values=Ot,this._selector=qt}return Ht.prototype["@@iterator"]=function(){return this},Ht.prototype[oe]=function(){return this},Ht.prototype.next=function(){var At=this._index;if(At>=0&&At<this._keys.length){var Ot=this._selector(this._keys[At],this._values[At]);return At+1>=this._keys.length?(this._index=-1,this._keys=ot,this._values=ot):this._index++,{value:Ot,done:!1}}return{value:void 0,done:!0}},Ht.prototype.throw=function(At){throw this._index>=0&&(this._index=-1,this._keys=ot,this._values=ot),At},Ht.prototype.return=function(At){return this._index>=0&&(this._index=-1,this._keys=ot,this._values=ot),{value:At,done:!0}},Ht}(),kt=function(){function Ht(){this._keys=[],this._values=[],this._cacheKey=rt,this._cacheIndex=-2}return Object.defineProperty(Ht.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Ht.prototype.has=function(At){return this._find(At,!1)>=0},Ht.prototype.get=function(At){var Ot=this._find(At,!1);return Ot>=0?this._values[Ot]:void 0},Ht.prototype.set=function(At,Ot){var qt=this._find(At,!0);return this._values[qt]=Ot,this},Ht.prototype.delete=function(At){var Ot=this._find(At,!1);if(Ot>=0){for(var qt=this._keys.length,Pt=Ot+1;Pt<qt;Pt++)this._keys[Pt-1]=this._keys[Pt],this._values[Pt-1]=this._values[Pt];return this._keys.length--,this._values.length--,jt(At,this._cacheKey)&&(this._cacheKey=rt,this._cacheIndex=-2),!0}return!1},Ht.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=rt,this._cacheIndex=-2},Ht.prototype.keys=function(){return new _t(this._keys,this._values,It)},Ht.prototype.values=function(){return new _t(this._keys,this._values,ur)},Ht.prototype.entries=function(){return new _t(this._keys,this._values,cr)},Ht.prototype["@@iterator"]=function(){return this.entries()},Ht.prototype[oe]=function(){return this.entries()},Ht.prototype._find=function(At,Ot){if(!jt(this._cacheKey,At)){this._cacheIndex=-1;for(var qt=0;qt<this._keys.length;qt++)if(jt(this._keys[qt],At)){this._cacheIndex=qt;break}}return this._cacheIndex<0&&Ot&&(this._cacheIndex=this._keys.length,this._keys.push(At),this._values.push(void 0)),this._cacheIndex},Ht}();return kt;function It(Ht,At){return Ht}function ur(Ht,At){return At}function cr(Ht,At){return[Ht,At]}}function Zt(){var rt=function(){function ot(){this._map=new fe}return Object.defineProperty(ot.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),ot.prototype.has=function(_t){return this._map.has(_t)},ot.prototype.add=function(_t){return this._map.set(_t,_t),this},ot.prototype.delete=function(_t){return this._map.delete(_t)},ot.prototype.clear=function(){this._map.clear()},ot.prototype.keys=function(){return this._map.keys()},ot.prototype.values=function(){return this._map.keys()},ot.prototype.entries=function(){return this._map.entries()},ot.prototype["@@iterator"]=function(){return this.keys()},ot.prototype[oe]=function(){return this.keys()},ot}();return rt}function Cr(){var rt=16,ot=ce.create(),_t=kt();return function(){function At(){this._key=kt()}return At.prototype.has=function(Ot){var qt=It(Ot,!1);return qt!==void 0?ce.has(qt,this._key):!1},At.prototype.get=function(Ot){var qt=It(Ot,!1);return qt!==void 0?ce.get(qt,this._key):void 0},At.prototype.set=function(Ot,qt){var Pt=It(Ot,!0);return Pt[this._key]=qt,this},At.prototype.delete=function(Ot){var qt=It(Ot,!1);return qt!==void 0?delete qt[this._key]:!1},At.prototype.clear=function(){this._key=kt()},At}();function kt(){var At;do At="@@WeakMap@@"+Ht();while(ce.has(ot,At));return ot[At]=!0,At}function It(At,Ot){if(!te.call(At,_t)){if(!Ot)return;Object.defineProperty(At,_t,{value:ce.create()})}return At[_t]}function ur(At,Ot){for(var qt=0;qt<Ot;++qt)At[qt]=Math.random()*255|0;return At}function cr(At){if(typeof Uint8Array=="function"){var Ot=new Uint8Array(At);return typeof crypto<"u"?crypto.getRandomValues(Ot):typeof msCrypto<"u"?msCrypto.getRandomValues(Ot):ur(Ot,At),Ot}return ur(new Array(At),At)}function Ht(){var At=cr(rt);At[6]=At[6]&79|64,At[8]=At[8]&191|128;for(var Ot="",qt=0;qt<rt;++qt){var Pt=At[qt];(qt===4||qt===6||qt===8)&&(Ot+="-"),Pt<16&&(Ot+="0"),Ot+=Pt.toString(16).toLowerCase()}return Ot}}function ir(rt){return rt.__=void 0,delete rt.__,rt}})})(Reflect$1||(Reflect$1={}));/*
|
|
14
|
+
***************************************************************************** */var Reflect$1;(function(X){(function(W){var J=typeof globalThis=="object"?globalThis:typeof commonjsGlobal=="object"?commonjsGlobal:typeof self=="object"?self:typeof this=="object"?this:de(),te=re(X);typeof J.Reflect<"u"&&(te=re(J.Reflect,te)),W(te,J),typeof J.Reflect>"u"&&(J.Reflect=X);function re(he,ue){return function(ce,pe){Object.defineProperty(he,ce,{configurable:!0,writable:!0,value:pe}),ue&&ue(ce,pe)}}function ne(){try{return Function("return this;")()}catch{}}function oe(){try{return(0,eval)("(function() { return this; })()")}catch{}}function de(){return ne()||oe()}})(function(W,J){var te=Object.prototype.hasOwnProperty,re=typeof Symbol=="function",ne=re&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",oe=re&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",de=typeof Object.create=="function",he={__proto__:[]}instanceof Array,ue=!de&&!he,ce={create:de?function(){return ir(Object.create(null))}:he?function(){return ir({__proto__:null})}:function(){return ir({})},has:ue?function(rt,ot){return te.call(rt,ot)}:function(rt,ot){return ot in rt},get:ue?function(rt,ot){return te.call(rt,ot)?rt[ot]:void 0}:function(rt,ot){return rt[ot]}},pe=Object.getPrototypeOf(Function),fe=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:pr(),ge=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Zt(),me=typeof WeakMap=="function"?WeakMap:Er(),ve=re?Symbol.for("@reflect-metadata:registry"):void 0,be=Ft(),ye=Nt(be);function we(rt,ot,_t,kt){if(Ue(_t)){if(!Ct(rt))throw new TypeError;if(!Lt(ot))throw new TypeError;return De(rt,ot)}else{if(!Ct(rt))throw new TypeError;if(!Ze(ot))throw new TypeError;if(!Ze(kt)&&!Ue(kt)&&!We(kt))throw new TypeError;return We(kt)&&(kt=void 0),_t=bt(_t),Me(rt,ot,_t,kt)}}W("decorate",we);function Se(rt,ot){function _t(kt,It){if(!Ze(kt))throw new TypeError;if(!Ue(It)&&!Bt(It))throw new TypeError;vt(rt,ot,kt,It)}return _t}W("metadata",Se);function _e(rt,ot,_t,kt){if(!Ze(_t))throw new TypeError;return Ue(kt)||(kt=bt(kt)),vt(rt,ot,_t,kt)}W("defineMetadata",_e);function Ce(rt,ot,_t){if(!Ze(ot))throw new TypeError;return Ue(_t)||(_t=bt(_t)),Be(rt,ot,_t)}W("hasMetadata",Ce);function Le(rt,ot,_t){if(!Ze(ot))throw new TypeError;return Ue(_t)||(_t=bt(_t)),Ve(rt,ot,_t)}W("hasOwnMetadata",Le);function Pe(rt,ot,_t){if(!Ze(ot))throw new TypeError;return Ue(_t)||(_t=bt(_t)),Ye(rt,ot,_t)}W("getMetadata",Pe);function Ie(rt,ot,_t){if(!Ze(ot))throw new TypeError;return Ue(_t)||(_t=bt(_t)),Je(rt,ot,_t)}W("getOwnMetadata",Ie);function ze(rt,ot){if(!Ze(rt))throw new TypeError;return Ue(ot)||(ot=bt(ot)),Xe(rt,ot)}W("getMetadataKeys",ze);function qe(rt,ot){if(!Ze(rt))throw new TypeError;return Ue(ot)||(ot=bt(ot)),Ge(rt,ot)}W("getOwnMetadataKeys",qe);function Ae(rt,ot,_t){if(!Ze(ot))throw new TypeError;if(Ue(_t)||(_t=bt(_t)),!Ze(ot))throw new TypeError;Ue(_t)||(_t=bt(_t));var kt=or(ot,_t,!1);return Ue(kt)?!1:kt.OrdinaryDeleteMetadata(rt,ot,_t)}W("deleteMetadata",Ae);function De(rt,ot){for(var _t=rt.length-1;_t>=0;--_t){var kt=rt[_t],It=kt(ot);if(!Ue(It)&&!We(It)){if(!Lt(It))throw new TypeError;ot=It}}return ot}function Me(rt,ot,_t,kt){for(var It=rt.length-1;It>=0;--It){var ur=rt[It],cr=ur(ot,_t,kt);if(!Ue(cr)&&!We(cr)){if(!Ze(cr))throw new TypeError;kt=cr}}return kt}function Be(rt,ot,_t){var kt=Ve(rt,ot,_t);if(kt)return!0;var It=St(ot);return We(It)?!1:Be(rt,It,_t)}function Ve(rt,ot,_t){var kt=or(ot,_t,!1);return Ue(kt)?!1:it(kt.OrdinaryHasOwnMetadata(rt,ot,_t))}function Ye(rt,ot,_t){var kt=Ve(rt,ot,_t);if(kt)return Je(rt,ot,_t);var It=St(ot);if(!We(It))return Ye(rt,It,_t)}function Je(rt,ot,_t){var kt=or(ot,_t,!1);if(!Ue(kt))return kt.OrdinaryGetOwnMetadata(rt,ot,_t)}function vt(rt,ot,_t,kt){var It=or(_t,kt,!0);It.OrdinaryDefineOwnMetadata(rt,ot,_t,kt)}function Xe(rt,ot){var _t=Ge(rt,ot),kt=St(rt);if(kt===null)return _t;var It=Xe(kt,ot);if(It.length<=0)return _t;if(_t.length<=0)return It;for(var ur=new ge,cr=[],Ht=0,At=_t;Ht<At.length;Ht++){var Ot=At[Ht],qt=ur.has(Ot);qt||(ur.add(Ot),cr.push(Ot))}for(var Pt=0,Ut=It;Pt<Ut.length;Pt++){var Ot=Ut[Pt],qt=ur.has(Ot);qt||(ur.add(Ot),cr.push(Ot))}return cr}function Ge(rt,ot){var _t=or(rt,ot,!1);return _t?_t.OrdinaryOwnMetadataKeys(rt,ot):[]}function Ne(rt){if(rt===null)return 1;switch(typeof rt){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return rt===null?1:6;default:return 6}}function Ue(rt){return rt===void 0}function We(rt){return rt===null}function Qe(rt){return typeof rt=="symbol"}function Ze(rt){return typeof rt=="object"?rt!==null:typeof rt=="function"}function je(rt,ot){switch(Ne(rt)){case 0:return rt;case 1:return rt;case 2:return rt;case 3:return rt;case 4:return rt;case 5:return rt}var _t="string",kt=dr(rt,ne);if(kt!==void 0){var It=kt.call(rt,_t);if(Ze(It))throw new TypeError;return It}return Ke(rt)}function Ke(rt,ot){var _t,kt;{var It=rt.toString;if(Dt(It)){var kt=It.call(rt);if(!Ze(kt))return kt}var _t=rt.valueOf;if(Dt(_t)){var kt=_t.call(rt);if(!Ze(kt))return kt}}throw new TypeError}function it(rt){return!!rt}function nt(rt){return""+rt}function bt(rt){var ot=je(rt);return Qe(ot)?ot:nt(ot)}function Ct(rt){return Array.isArray?Array.isArray(rt):rt instanceof Object?rt instanceof Array:Object.prototype.toString.call(rt)==="[object Array]"}function Dt(rt){return typeof rt=="function"}function Lt(rt){return typeof rt=="function"}function Bt(rt){switch(Ne(rt)){case 3:return!0;case 4:return!0;default:return!1}}function jt(rt,ot){return rt===ot||rt!==rt&&ot!==ot}function dr(rt,ot){var _t=rt[ot];if(_t!=null){if(!Dt(_t))throw new TypeError;return _t}}function rr(rt){var ot=dr(rt,oe);if(!Dt(ot))throw new TypeError;var _t=ot.call(rt);if(!Ze(_t))throw new TypeError;return _t}function gt(rt){return rt.value}function mt(rt){var ot=rt.next();return ot.done?!1:ot}function xt(rt){var ot=rt.return;ot&&ot.call(rt)}function St(rt){var ot=Object.getPrototypeOf(rt);if(typeof rt!="function"||rt===pe||ot!==pe)return ot;var _t=rt.prototype,kt=_t&&Object.getPrototypeOf(_t);if(kt==null||kt===Object.prototype)return ot;var It=kt.constructor;return typeof It!="function"||It===rt?ot:It}function $t(){var rt;!Ue(ve)&&typeof J.Reflect<"u"&&!(ve in J.Reflect)&&typeof J.Reflect.defineMetadata=="function"&&(rt=zt(J.Reflect));var ot,_t,kt,It=new me,ur={registerProvider:cr,getProvider:At,setProvider:qt};return ur;function cr(Pt){if(!Object.isExtensible(ur))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case rt===Pt:break;case Ue(ot):ot=Pt;break;case ot===Pt:break;case Ue(_t):_t=Pt;break;case _t===Pt:break;default:kt===void 0&&(kt=new ge),kt.add(Pt);break}}function Ht(Pt,Ut){if(!Ue(ot)){if(ot.isProviderFor(Pt,Ut))return ot;if(!Ue(_t)){if(_t.isProviderFor(Pt,Ut))return ot;if(!Ue(kt))for(var Xt=rr(kt);;){var ar=mt(Xt);if(!ar)return;var gr=gt(ar);if(gr.isProviderFor(Pt,Ut))return xt(Xt),gr}}}if(!Ue(rt)&&rt.isProviderFor(Pt,Ut))return rt}function At(Pt,Ut){var Xt=It.get(Pt),ar;return Ue(Xt)||(ar=Xt.get(Ut)),Ue(ar)&&(ar=Ht(Pt,Ut),Ue(ar)||(Ue(Xt)&&(Xt=new fe,It.set(Pt,Xt)),Xt.set(Ut,ar))),ar}function Ot(Pt){if(Ue(Pt))throw new TypeError;return ot===Pt||_t===Pt||!Ue(kt)&&kt.has(Pt)}function qt(Pt,Ut,Xt){if(!Ot(Xt))throw new Error("Metadata provider not registered.");var ar=At(Pt,Ut);if(ar!==Xt){if(!Ue(ar))return!1;var gr=It.get(Pt);Ue(gr)&&(gr=new fe,It.set(Pt,gr)),gr.set(Ut,Xt)}return!0}}function Ft(){var rt;return!Ue(ve)&&Ze(J.Reflect)&&Object.isExtensible(J.Reflect)&&(rt=J.Reflect[ve]),Ue(rt)&&(rt=$t()),!Ue(ve)&&Ze(J.Reflect)&&Object.isExtensible(J.Reflect)&&Object.defineProperty(J.Reflect,ve,{enumerable:!1,configurable:!1,writable:!1,value:rt}),rt}function Nt(rt){var ot=new me,_t={isProviderFor:function(Ot,qt){var Pt=ot.get(Ot);return Ue(Pt)?!1:Pt.has(qt)},OrdinaryDefineOwnMetadata:cr,OrdinaryHasOwnMetadata:It,OrdinaryGetOwnMetadata:ur,OrdinaryOwnMetadataKeys:Ht,OrdinaryDeleteMetadata:At};return be.registerProvider(_t),_t;function kt(Ot,qt,Pt){var Ut=ot.get(Ot),Xt=!1;if(Ue(Ut)){if(!Pt)return;Ut=new fe,ot.set(Ot,Ut),Xt=!0}var ar=Ut.get(qt);if(Ue(ar)){if(!Pt)return;if(ar=new fe,Ut.set(qt,ar),!rt.setProvider(Ot,qt,_t))throw Ut.delete(qt),Xt&&ot.delete(Ot),new Error("Wrong provider for target.")}return ar}function It(Ot,qt,Pt){var Ut=kt(qt,Pt,!1);return Ue(Ut)?!1:it(Ut.has(Ot))}function ur(Ot,qt,Pt){var Ut=kt(qt,Pt,!1);if(!Ue(Ut))return Ut.get(Ot)}function cr(Ot,qt,Pt,Ut){var Xt=kt(Pt,Ut,!0);Xt.set(Ot,qt)}function Ht(Ot,qt){var Pt=[],Ut=kt(Ot,qt,!1);if(Ue(Ut))return Pt;for(var Xt=Ut.keys(),ar=rr(Xt),gr=0;;){var Or=mt(ar);if(!Or)return Pt.length=gr,Pt;var Dr=gt(Or);try{Pt[gr]=Dr}catch(Rr){try{xt(ar)}finally{throw Rr}}gr++}}function At(Ot,qt,Pt){var Ut=kt(qt,Pt,!1);if(Ue(Ut)||!Ut.delete(Ot))return!1;if(Ut.size===0){var Xt=ot.get(qt);Ue(Xt)||(Xt.delete(Pt),Xt.size===0&&ot.delete(Xt))}return!0}}function zt(rt){var ot=rt.defineMetadata,_t=rt.hasOwnMetadata,kt=rt.getOwnMetadata,It=rt.getOwnMetadataKeys,ur=rt.deleteMetadata,cr=new me,Ht={isProviderFor:function(At,Ot){var qt=cr.get(At);return!Ue(qt)&&qt.has(Ot)?!0:It(At,Ot).length?(Ue(qt)&&(qt=new ge,cr.set(At,qt)),qt.add(Ot),!0):!1},OrdinaryDefineOwnMetadata:ot,OrdinaryHasOwnMetadata:_t,OrdinaryGetOwnMetadata:kt,OrdinaryOwnMetadataKeys:It,OrdinaryDeleteMetadata:ur};return Ht}function or(rt,ot,_t){var kt=be.getProvider(rt,ot);if(!Ue(kt))return kt;if(_t){if(be.setProvider(rt,ot,ye))return ye;throw new Error("Illegal state.")}}function pr(){var rt={},ot=[],_t=function(){function Ht(At,Ot,qt){this._index=0,this._keys=At,this._values=Ot,this._selector=qt}return Ht.prototype["@@iterator"]=function(){return this},Ht.prototype[oe]=function(){return this},Ht.prototype.next=function(){var At=this._index;if(At>=0&&At<this._keys.length){var Ot=this._selector(this._keys[At],this._values[At]);return At+1>=this._keys.length?(this._index=-1,this._keys=ot,this._values=ot):this._index++,{value:Ot,done:!1}}return{value:void 0,done:!0}},Ht.prototype.throw=function(At){throw this._index>=0&&(this._index=-1,this._keys=ot,this._values=ot),At},Ht.prototype.return=function(At){return this._index>=0&&(this._index=-1,this._keys=ot,this._values=ot),{value:At,done:!0}},Ht}(),kt=function(){function Ht(){this._keys=[],this._values=[],this._cacheKey=rt,this._cacheIndex=-2}return Object.defineProperty(Ht.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Ht.prototype.has=function(At){return this._find(At,!1)>=0},Ht.prototype.get=function(At){var Ot=this._find(At,!1);return Ot>=0?this._values[Ot]:void 0},Ht.prototype.set=function(At,Ot){var qt=this._find(At,!0);return this._values[qt]=Ot,this},Ht.prototype.delete=function(At){var Ot=this._find(At,!1);if(Ot>=0){for(var qt=this._keys.length,Pt=Ot+1;Pt<qt;Pt++)this._keys[Pt-1]=this._keys[Pt],this._values[Pt-1]=this._values[Pt];return this._keys.length--,this._values.length--,jt(At,this._cacheKey)&&(this._cacheKey=rt,this._cacheIndex=-2),!0}return!1},Ht.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=rt,this._cacheIndex=-2},Ht.prototype.keys=function(){return new _t(this._keys,this._values,It)},Ht.prototype.values=function(){return new _t(this._keys,this._values,ur)},Ht.prototype.entries=function(){return new _t(this._keys,this._values,cr)},Ht.prototype["@@iterator"]=function(){return this.entries()},Ht.prototype[oe]=function(){return this.entries()},Ht.prototype._find=function(At,Ot){if(!jt(this._cacheKey,At)){this._cacheIndex=-1;for(var qt=0;qt<this._keys.length;qt++)if(jt(this._keys[qt],At)){this._cacheIndex=qt;break}}return this._cacheIndex<0&&Ot&&(this._cacheIndex=this._keys.length,this._keys.push(At),this._values.push(void 0)),this._cacheIndex},Ht}();return kt;function It(Ht,At){return Ht}function ur(Ht,At){return At}function cr(Ht,At){return[Ht,At]}}function Zt(){var rt=function(){function ot(){this._map=new fe}return Object.defineProperty(ot.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),ot.prototype.has=function(_t){return this._map.has(_t)},ot.prototype.add=function(_t){return this._map.set(_t,_t),this},ot.prototype.delete=function(_t){return this._map.delete(_t)},ot.prototype.clear=function(){this._map.clear()},ot.prototype.keys=function(){return this._map.keys()},ot.prototype.values=function(){return this._map.keys()},ot.prototype.entries=function(){return this._map.entries()},ot.prototype["@@iterator"]=function(){return this.keys()},ot.prototype[oe]=function(){return this.keys()},ot}();return rt}function Er(){var rt=16,ot=ce.create(),_t=kt();return function(){function At(){this._key=kt()}return At.prototype.has=function(Ot){var qt=It(Ot,!1);return qt!==void 0?ce.has(qt,this._key):!1},At.prototype.get=function(Ot){var qt=It(Ot,!1);return qt!==void 0?ce.get(qt,this._key):void 0},At.prototype.set=function(Ot,qt){var Pt=It(Ot,!0);return Pt[this._key]=qt,this},At.prototype.delete=function(Ot){var qt=It(Ot,!1);return qt!==void 0?delete qt[this._key]:!1},At.prototype.clear=function(){this._key=kt()},At}();function kt(){var At;do At="@@WeakMap@@"+Ht();while(ce.has(ot,At));return ot[At]=!0,At}function It(At,Ot){if(!te.call(At,_t)){if(!Ot)return;Object.defineProperty(At,_t,{value:ce.create()})}return At[_t]}function ur(At,Ot){for(var qt=0;qt<Ot;++qt)At[qt]=Math.random()*255|0;return At}function cr(At){if(typeof Uint8Array=="function"){var Ot=new Uint8Array(At);return typeof crypto<"u"?crypto.getRandomValues(Ot):typeof msCrypto<"u"?msCrypto.getRandomValues(Ot):ur(Ot,At),Ot}return ur(new Array(At),At)}function Ht(){var At=cr(rt);At[6]=At[6]&79|64,At[8]=At[8]&191|128;for(var Ot="",qt=0;qt<rt;++qt){var Pt=At[qt];(qt===4||qt===6||qt===8)&&(Ot+="-"),Pt<16&&(Ot+="0"),Ot+=Pt.toString(16).toLowerCase()}return Ot}}function ir(rt){return rt.__=void 0,delete rt.__,rt}})})(Reflect$1||(Reflect$1={}));/*
|
|
15
15
|
* @license
|
|
16
16
|
* BSD License
|
|
17
17
|
*
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*
|
|
28
28
|
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
29
29
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
*/const o$V=()=>{};function _isPlaceholder$1(X){return X!=null&&typeof X=="object"&&X["@@functional/placeholder"]===!0}function _curry1$1(X){return function W(J){return arguments.length===0||_isPlaceholder$1(J)?W:X.apply(this,arguments)}}function _curry2$1(X){return function W(J,te){switch(arguments.length){case 0:return W;case 1:return _isPlaceholder$1(J)?W:_curry1$1(function(re){return X(J,re)});default:return _isPlaceholder$1(J)&&_isPlaceholder$1(te)?W:_isPlaceholder$1(J)?_curry1$1(function(re){return X(re,te)}):_isPlaceholder$1(te)?_curry1$1(function(re){return X(J,re)}):X(J,te)}}}function _isFunction(X){var W=Object.prototype.toString.call(X);return W==="[object Function]"||W==="[object AsyncFunction]"||W==="[object GeneratorFunction]"||W==="[object AsyncGeneratorFunction]"}function _arrayFromIterator$1(X){for(var W=[],J;!(J=X.next()).done;)W.push(J.value);return W}function _includesWith$1(X,W,J){for(var te=0,re=J.length;te<re;){if(X(W,J[te]))return!0;te+=1}return!1}function _functionName$1(X){var W=String(X).match(/^function (\w*)/);return W==null?"":W[1]}function _has$1(X,W){return Object.prototype.hasOwnProperty.call(W,X)}function _objectIs$2(X,W){return X===W?X!==0||1/X===1/W:X!==X&&W!==W}const _objectIs$3=typeof Object.is=="function"?Object.is:_objectIs$2;var toString$3=Object.prototype.toString,_isArguments$1=function(){return toString$3.call(arguments)==="[object Arguments]"?function(W){return toString$3.call(W)==="[object Arguments]"}:function(W){return _has$1("callee",W)}}(),hasEnumBug$1=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps$1=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug$1=function(){return arguments.propertyIsEnumerable("length")}(),contains$2=function(W,J){for(var te=0;te<W.length;){if(W[te]===J)return!0;te+=1}return!1},keys$1=_curry1$1(typeof Object.keys=="function"&&!hasArgsEnumBug$1?function(W){return Object(W)!==W?[]:Object.keys(W)}:function(W){if(Object(W)!==W)return[];var J,te,re=[],ne=hasArgsEnumBug$1&&_isArguments$1(W);for(J in W)_has$1(J,W)&&(!ne||J!=="length")&&(re[re.length]=J);if(hasEnumBug$1)for(te=nonEnumerableProps$1.length-1;te>=0;)J=nonEnumerableProps$1[te],_has$1(J,W)&&!contains$2(re,J)&&(re[re.length]=J),te-=1;return re}),type$1=_curry1$1(function(W){return W===null?"Null":W===void 0?"Undefined":Object.prototype.toString.call(W).slice(8,-1)});function _uniqContentEquals$1(X,W,J,te){var re=_arrayFromIterator$1(X),ne=_arrayFromIterator$1(W);function oe(de,he){return _equals$1(de,he,J.slice(),te.slice())}return!_includesWith$1(function(de,he){return!_includesWith$1(oe,he,de)},ne,re)}function _equals$1(X,W,J,te){if(_objectIs$3(X,W))return!0;var re=type$1(X);if(re!==type$1(W)||X==null||W==null)return!1;if(typeof X["fantasy-land/equals"]=="function"||typeof W["fantasy-land/equals"]=="function")return typeof X["fantasy-land/equals"]=="function"&&X["fantasy-land/equals"](W)&&typeof W["fantasy-land/equals"]=="function"&&W["fantasy-land/equals"](X);if(typeof X.equals=="function"||typeof W.equals=="function")return typeof X.equals=="function"&&X.equals(W)&&typeof W.equals=="function"&&W.equals(X);switch(re){case"Arguments":case"Array":case"Object":if(typeof X.constructor=="function"&&_functionName$1(X.constructor)==="Promise")return X===W;break;case"Boolean":case"Number":case"String":if(!(typeof X==typeof W&&_objectIs$3(X.valueOf(),W.valueOf())))return!1;break;case"Date":if(!_objectIs$3(X.valueOf(),W.valueOf()))return!1;break;case"Error":return X.name===W.name&&X.message===W.message;case"RegExp":if(!(X.source===W.source&&X.global===W.global&&X.ignoreCase===W.ignoreCase&&X.multiline===W.multiline&&X.sticky===W.sticky&&X.unicode===W.unicode))return!1;break}for(var ne=J.length-1;ne>=0;){if(J[ne]===X)return te[ne]===W;ne-=1}switch(re){case"Map":return X.size!==W.size?!1:_uniqContentEquals$1(X.entries(),W.entries(),J.concat([X]),te.concat([W]));case"Set":return X.size!==W.size?!1:_uniqContentEquals$1(X.values(),W.values(),J.concat([X]),te.concat([W]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var oe=keys$1(X);if(oe.length!==keys$1(W).length)return!1;var de=J.concat([X]),he=te.concat([W]);for(ne=oe.length-1;ne>=0;){var ue=oe[ne];if(!(_has$1(ue,W)&&_equals$1(W[ue],X[ue],de,he)))return!1;ne-=1}return!0}var equals$1=_curry2$1(function(W,J){return _equals$1(W,J,[],[])});function _indexOf$1(X,W,J){var te,re;if(typeof X.indexOf=="function")switch(typeof W){case"number":if(W===0){for(te=1/W;J<X.length;){if(re=X[J],re===0&&1/re===te)return J;J+=1}return-1}else if(W!==W){for(;J<X.length;){if(re=X[J],typeof re=="number"&&re!==re)return J;J+=1}return-1}return X.indexOf(W,J);case"string":case"boolean":case"function":case"undefined":return X.indexOf(W,J);case"object":if(W===null)return X.indexOf(W,J)}for(;J<X.length;){if(equals$1(X[J],W))return J;J+=1}return-1}function _includes$1(X,W){return _indexOf$1(W,X,0)>=0}function _map$1(X,W){for(var J=0,te=W.length,re=Array(te);J<te;)re[J]=X(W[J]),J+=1;return re}function _quote$1(X){var W=X.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+W.replace(/"/g,'\\"')+'"'}var pad$1=function(W){return(W<10?"0":"")+W},_toISOString$1=typeof Date.prototype.toISOString=="function"?function(W){return W.toISOString()}:function(W){return W.getUTCFullYear()+"-"+pad$1(W.getUTCMonth()+1)+"-"+pad$1(W.getUTCDate())+"T"+pad$1(W.getUTCHours())+":"+pad$1(W.getUTCMinutes())+":"+pad$1(W.getUTCSeconds())+"."+(W.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement$1(X){return function(){return!X.apply(this,arguments)}}const _isArray$1=Array.isArray||function(W){return W!=null&&W.length>=0&&Object.prototype.toString.call(W)==="[object Array]"};function _isTransformer$1(X){return X!=null&&typeof X["@@transducer/step"]=="function"}function _dispatchable$1(X,W,J){return function(){if(arguments.length===0)return J();var te=Array.prototype.slice.call(arguments,0),re=te.pop();if(!_isArray$1(re)){for(var ne=0;ne<X.length;){if(typeof re[X[ne]]=="function")return re[X[ne]].apply(re,te);ne+=1}if(_isTransformer$1(re)){var oe=W.apply(null,te);return oe(re)}}return J.apply(this,arguments)}}function _filter$1(X,W){for(var J=0,te=W.length,re=[];J<te;)X(W[J])&&(re[re.length]=W[J]),J+=1;return re}function _isObject$1(X){return Object.prototype.toString.call(X)==="[object Object]"}function _isString$1(X){return Object.prototype.toString.call(X)==="[object String]"}var _isArrayLike$1=_curry1$1(function(W){return _isArray$1(W)?!0:!W||typeof W!="object"||_isString$1(W)?!1:W.nodeType===1?!!W.length:W.length===0?!0:W.length>0?W.hasOwnProperty(0)&&W.hasOwnProperty(W.length-1):!1}),XWrap$1=function(){function X(W){this.f=W}return X.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},X.prototype["@@transducer/result"]=function(W){return W},X.prototype["@@transducer/step"]=function(W,J){return this.f(W,J)},X}();function _xwrap$1(X){return new XWrap$1(X)}function _arity$1(X,W){switch(X){case 0:return function(){return W.apply(this,arguments)};case 1:return function(J){return W.apply(this,arguments)};case 2:return function(J,te){return W.apply(this,arguments)};case 3:return function(J,te,re){return W.apply(this,arguments)};case 4:return function(J,te,re,ne){return W.apply(this,arguments)};case 5:return function(J,te,re,ne,oe){return W.apply(this,arguments)};case 6:return function(J,te,re,ne,oe,de){return W.apply(this,arguments)};case 7:return function(J,te,re,ne,oe,de,he){return W.apply(this,arguments)};case 8:return function(J,te,re,ne,oe,de,he,ue){return W.apply(this,arguments)};case 9:return function(J,te,re,ne,oe,de,he,ue,ce){return W.apply(this,arguments)};case 10:return function(J,te,re,ne,oe,de,he,ue,ce,pe){return W.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var bind$2=_curry2$1(function(W,J){return _arity$1(W.length,function(){return W.apply(J,arguments)})});function _arrayReduce$1(X,W,J){for(var te=0,re=J.length;te<re;){if(W=X["@@transducer/step"](W,J[te]),W&&W["@@transducer/reduced"]){W=W["@@transducer/value"];break}te+=1}return X["@@transducer/result"](W)}function _iterableReduce(X,W,J){for(var te=J.next();!te.done;){if(W=X["@@transducer/step"](W,te.value),W&&W["@@transducer/reduced"]){W=W["@@transducer/value"];break}te=J.next()}return X["@@transducer/result"](W)}function _methodReduce(X,W,J,te){return X["@@transducer/result"](J[te](bind$2(X["@@transducer/step"],X),W))}var symIterator$1=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(X,W,J){if(typeof X=="function"&&(X=_xwrap$1(X)),_isArrayLike$1(J))return _arrayReduce$1(X,W,J);if(typeof J["fantasy-land/reduce"]=="function")return _methodReduce(X,W,J,"fantasy-land/reduce");if(J[symIterator$1]!=null)return _iterableReduce(X,W,J[symIterator$1]());if(typeof J.next=="function")return _iterableReduce(X,W,J);if(typeof J.reduce=="function")return _methodReduce(X,W,J,"reduce");throw new TypeError("reduce: list must be array or iterable")}const _xfBase$1={init:function(){return this.xf["@@transducer/init"]()},result:function(X){return this.xf["@@transducer/result"](X)}};var XFilter$1=function(){function X(W,J){this.xf=J,this.f=W}return X.prototype["@@transducer/init"]=_xfBase$1.init,X.prototype["@@transducer/result"]=_xfBase$1.result,X.prototype["@@transducer/step"]=function(W,J){return this.f(J)?this.xf["@@transducer/step"](W,J):W},X}(),_xfilter$1=_curry2$1(function(W,J){return new XFilter$1(W,J)}),filter$1=_curry2$1(_dispatchable$1(["filter"],_xfilter$1,function(X,W){return _isObject$1(W)?_reduce(function(J,te){return X(W[te])&&(J[te]=W[te]),J},{},keys$1(W)):_filter$1(X,W)})),reject$1=_curry2$1(function(W,J){return filter$1(_complement$1(W),J)});function _toString$1(X,W){var J=function(oe){var de=W.concat([X]);return _includes$1(oe,de)?"<Circular>":_toString$1(oe,de)},te=function(ne,oe){return _map$1(function(de){return _quote$1(de)+": "+J(ne[de])},oe.slice().sort())};switch(Object.prototype.toString.call(X)){case"[object Arguments]":return"(function() { return arguments; }("+_map$1(J,X).join(", ")+"))";case"[object Array]":return"["+_map$1(J,X).concat(te(X,reject$1(function(ne){return/^\d+$/.test(ne)},keys$1(X)))).join(", ")+"]";case"[object Boolean]":return typeof X=="object"?"new Boolean("+J(X.valueOf())+")":X.toString();case"[object Date]":return"new Date("+(isNaN(X.valueOf())?J(NaN):_quote$1(_toISOString$1(X)))+")";case"[object Null]":return"null";case"[object Number]":return typeof X=="object"?"new Number("+J(X.valueOf())+")":1/X===-1/0?"-0":X.toString(10);case"[object String]":return typeof X=="object"?"new String("+J(X.valueOf())+")":_quote$1(X);case"[object Undefined]":return"undefined";default:if(typeof X.toString=="function"){var re=X.toString();if(re!=="[object Object]")return re}return"{"+te(X,keys$1(X)).join(", ")+"}"}}function _assertPromise(X,W){if(W==null||!_isFunction(W.then))throw new TypeError("`"+X+"` expected a Promise, received "+_toString$1(W,[]))}var andThen=_curry2$1(function(W,J){return _assertPromise("andThen",J),J.then(W)}),XMap$1=function(){function X(W,J){this.xf=J,this.f=W}return X.prototype["@@transducer/init"]=_xfBase$1.init,X.prototype["@@transducer/result"]=_xfBase$1.result,X.prototype["@@transducer/step"]=function(W,J){return this.xf["@@transducer/step"](W,this.f(J))},X}(),_xmap$1=_curry2$1(function(W,J){return new XMap$1(W,J)});function _curryN$1(X,W,J){return function(){for(var te=[],re=0,ne=X,oe=0;oe<W.length||re<arguments.length;){var de;oe<W.length&&(!_isPlaceholder$1(W[oe])||re>=arguments.length)?de=W[oe]:(de=arguments[re],re+=1),te[oe]=de,_isPlaceholder$1(de)||(ne-=1),oe+=1}return ne<=0?J.apply(this,te):_arity$1(ne,_curryN$1(X,te,J))}}var curryN$1=_curry2$1(function(W,J){return W===1?_curry1$1(J):_arity$1(W,_curryN$1(W,[],J))}),map$1=_curry2$1(_dispatchable$1(["fantasy-land/map","map"],_xmap$1,function(W,J){switch(Object.prototype.toString.call(J)){case"[object Function]":return curryN$1(J.length,function(){return W.call(this,J.apply(this,arguments))});case"[object Object]":return _reduce(function(te,re){return te[re]=W(J[re]),te},{},keys$1(J));default:return _map$1(W,J)}}));function _pipe(X,W){return function(){return W.call(this,X.apply(this,arguments))}}function _curry3$1(X){return function W(J,te,re){switch(arguments.length){case 0:return W;case 1:return _isPlaceholder$1(J)?W:_curry2$1(function(ne,oe){return X(J,ne,oe)});case 2:return _isPlaceholder$1(J)&&_isPlaceholder$1(te)?W:_isPlaceholder$1(J)?_curry2$1(function(ne,oe){return X(ne,te,oe)}):_isPlaceholder$1(te)?_curry2$1(function(ne,oe){return X(J,ne,oe)}):_curry1$1(function(ne){return X(J,te,ne)});default:return _isPlaceholder$1(J)&&_isPlaceholder$1(te)&&_isPlaceholder$1(re)?W:_isPlaceholder$1(J)&&_isPlaceholder$1(te)?_curry2$1(function(ne,oe){return X(ne,oe,re)}):_isPlaceholder$1(J)&&_isPlaceholder$1(re)?_curry2$1(function(ne,oe){return X(ne,te,oe)}):_isPlaceholder$1(te)&&_isPlaceholder$1(re)?_curry2$1(function(ne,oe){return X(J,ne,oe)}):_isPlaceholder$1(J)?_curry1$1(function(ne){return X(ne,te,re)}):_isPlaceholder$1(te)?_curry1$1(function(ne){return X(J,ne,re)}):_isPlaceholder$1(re)?_curry1$1(function(ne){return X(J,te,ne)}):X(J,te,re)}}}var reduce$1=_curry3$1(_reduce);function _checkForMethod(X,W){return function(){var J=arguments.length;if(J===0)return W();var te=arguments[J-1];return _isArray$1(te)||typeof te[X]!="function"?W.apply(this,arguments):te[X].apply(te,Array.prototype.slice.call(arguments,0,J-1))}}var slice=_curry3$1(_checkForMethod("slice",function(W,J,te){return Array.prototype.slice.call(te,W,J)})),tail=_curry1$1(_checkForMethod("tail",slice(1,1/0)));function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity$1(arguments[0].length,reduce$1(_pipe,arguments[0],tail(arguments)))}let c$r=class{constructor(W){this.targetRegion=W}async attach(){const W=this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);return pipe(map$1(J=>this.targetRegion.addView(J.key,J.view)),bind$2(Promise.all,Promise),andThen(o$V))(W)}detach(){return Promise.resolve()}},s$y=class{constructor(){this.registry=[]}get behaviors(){return[...this.registry]}register(W){this.behaviors.some(J=>J===W)||this.registry.push(W)}};const e$Q=new s$y;e$Q.register(c$r);const a$t=e$Q;let l$v=class{constructor(W){this.host=W}get behaviors(){return a$t.behaviors.map(W=>new W(this.host.uxlRegion))}activateView(W){return this.host.contains(W)||this.addViewToHost(W),W.hidden=!1,Promise.resolve(void 0)}deactivateView(W){return W.view&&W.view.removeFromDomWhenDeactivated?this.removeViewFromHost(W):W.hidden=!0,Promise.resolve(null)}removeView(W){this.removeViewFromHost(W)}viewAdded(W){}addViewToHost(W){this.host.appendChild(W)}removeViewFromHost(W){this.host.removeChild(W),this.host.uxlRegion.viewRemovedFromDom(W.view)}};const e$P=(X,W)=>!X.sortHint&&!W.sortHint||!W.sortHint?-1:X.sortHint?X.sortHint.localeCompare(W.sortHint):1;let s$x=class extends l$v{async viewAdded(W){await this.host.uxlRegion.activate(W)}addViewToHost(W){const J=this.host.uxlRegion.currentActiveViews.sort(e$P).indexOf(W.view);J>=this.host.children.length?super.addViewToHost(W):this.host.insertBefore(W,this.host.children[J])}};const f$o=(X,W)=>new s$x(W);let o$U=class extends l$v{async activateView(W){const J=this.host.uxlRegion.currentActiveViews.filter(te=>te!==W.view);for(const te of J)await this.host.uxlRegion.deactivate(te);return super.activateView(W)}async deactivateView(W){await super.deactivateView(W);const J=this.host.uxlRegion.currentViews.find(te=>te.isDefault);J&&W.view!=J&&this.host.uxlRegion.currentActiveViews.length==0&&await this.host.uxlRegion.activate(J)}async viewAdded(W){!this.host.uxlRegion.currentActiveViews.length&&W.isDefault&&await this.host.uxlRegion.activate(W)}},o$T=class extends o$U{constructor(W){super(W),this.attrForSelected="name",this.attrForSelectedProperty="attrForSelected",this.selectedProperty="selected",W[this.attrForSelectedProperty]=this.attrForSelected}async activateView(W){await super.activateView(W),W[this.attrForSelected]||(W[this.attrForSelected]=W.viewKey),this.host[this.selectedProperty]=W.viewKey}async deactivateView(W){this.host[this.selectedProperty]===W.viewKey&&(this.host[this.selectedProperty]=null,await super.deactivateView(W))}};const d$t=(X,W)=>new o$T(W),a$s=(X,W)=>{if(X=typeof X=="function"?X():X,!X)throw new Error(W)},o$S=X=>typeof HTMLElement=="object"?X instanceof HTMLElement:X&&typeof X=="object"&&X!=null&&X.nodeType===1&&typeof X.nodeName=="string",f$n=X=>{if(!X.htmlTag&&!X.element&&!X.factory)throw new Error("One of properties htmlTag, factory or element must be set");return X.htmlTag&&a$s(typeof X.htmlTag=="string","htmlTag property must be an string"),X.factory&&a$s(typeof X.factory=="function","factory property must be a function"),X.element&&a$s(o$S(X.element),"element property must be an HTMLElement"),!0},f$m=async(X,W,J)=>{let te;return X.element?te=X.element:X.factory?te=await X.factory():X.htmlTag&&(X.htmlUrl&&await import(X.htmlUrl),te=window.document.createElement(X.htmlTag)),te.view=X,te.region=W,te.viewKey=J,te};let y$j=class{constructor(W,J,te,re,ne){this.name=W,this.regionManager=J,this.host=te,this.adapter=re,this.definition=ne,this.views={},this.activeViews=[],this.components=new WeakMap,this.host.uxlRegion=this}async addView(W,J){return f$n(J),a$s(typeof this.getView(W)>"u",`Already exists a view with key ${W}`),this.views[W]=J,await this.adapter.viewAdded(J),this}async removeView(W){await this.deactivate(W),this.remove(W),delete this.views[W]}async removeViews(){Object.keys(this.views).forEach(W=>this.removeView(W))}get context(){return this._context}set context(W){this._context=W,Object.keys(this.views).forEach(J=>{const te=this.views[J];if(this.components.has(te)){const re=this.components.get(te);re&&(re.regionContext=this._context)}})}async activate(W){let J=W;if(typeof W=="string"?(J=this.getView(W),a$s(J,`Region does not contain a view with key ${W}`)):a$s(Object.keys(this.views).some(te=>typeof this.views[te]<"u"),"Region does not contain this view"),!this.activeViews.some(te=>te===J)){if(!this.components.has(J)){const re=await f$m(J,this,typeof W=="string"?W:this.getKey(J));re.regionContext=this.context,this.components.set(J,re)}const te=this.components.get(J);this.activeViews.push(J),te.active=!0,await this.adapter.activateView(te)}return this}viewRemovedFromDom(W){this.components.delete(W)}remove(W){const J=typeof W=="string"?this.getView(W):W,te=this.components.get(J);te&&this.adapter.removeView(te)}async deactivate(W){const J=typeof W=="string"?this.getView(W):W,te=this.activeViews.indexOf(J);te!==-1&&this.activeViews.splice(te,1);const re=this.components.get(J);re&&(re.active=!1,await this.adapter.deactivateView(re))}getView(W){return this.views[W]}get currentViews(){return Object.keys(this.views).map(W=>this.views[W])}get currentActiveViews(){return[...this.activeViews]}getKey(W){return Object.keys(this.views).find(J=>this.views[J]==W)}containsView(W){return typeof W=="string"?this.getView(W)!==void 0:Object.keys(this.views).some(J=>this.views[J]==W)}isViewActive(W){if(this.containsView(W)){const J=typeof W=="string"?this.getView(W):W;return this.activeViews.indexOf(J)!==-1}throw new Error(`region ${this.name} doest not contain this view`)}async toggleViewActive(W){if(this.containsView(W))return this.isViewActive(W)?(await this.deactivate(W),!1):(await this.activate(W),!0);throw new Error(`region ${this.name} doest not contain this view`)}};const e$O="default",r$O="dynamic";let y$i=class{constructor(){this.adapterRegistry=new Map,this.adapterRegistry.set(r$O,[])}registerAdapterFactory(W,J){this.adapterRegistry.set(W,J)}get dynamicFactories(){return this.adapterRegistry.get(r$O)}registerDynamicAdapterFactory(W){this.dynamicFactories.indexOf(W)===-1&&this.dynamicFactories.push(W)}getDynamicFactory(W){return this.dynamicFactories.reduce((J,te)=>J||te(W),null)}getAdapterFactory(W){return this.getDynamicFactory(W)||(this.adapterRegistry.has(W.constructor)?this.adapterRegistry.get(W.constructor):this.adapterRegistry.has(W.localName)?this.adapterRegistry.get(W.localName):this.adapterRegistry.has(W.tagName)?this.adapterRegistry.get(W.tagName):this.adapterRegistry.has(e$O)?this.adapterRegistry.get(e$O):null)}registerDefaultAdapterFactory(W){this.adapterRegistry.set(e$O,W)}};const p$h=new y$i,o$R="__uxl_regions__",s$w=X=>(W,J)=>{W.constructor[o$R]={...W.constructor[o$R],[J]:X}},p$g=(X,W,J)=>{const te=J.getAdapterFactory(W);return a$s(typeof te=="function","No region adapter factory found for the host"),te(X,W)},h$s=async(X,W,J,te)=>{await W._updatePromise;const re=W.shadowRoot.querySelector(`#${X.targetId}`);if(re){const ne=X.adapterFactory?X.adapterFactory(X,re):p$g(X,re,te);a$s(ne,"No region adapter found for the host");const oe=X.scoped?J.createRegionManager():J,de=new y$j(X.name,oe,re,ne,X);return oe.add(X.name,de),de}else console.warn(`region host with id ${X.targetId} not found for region named ${X.name}`)};/*
|
|
30
|
+
*/const o$V=()=>{};function _isPlaceholder$1(X){return X!=null&&typeof X=="object"&&X["@@functional/placeholder"]===!0}function _curry1$1(X){return function W(J){return arguments.length===0||_isPlaceholder$1(J)?W:X.apply(this,arguments)}}function _curry2$1(X){return function W(J,te){switch(arguments.length){case 0:return W;case 1:return _isPlaceholder$1(J)?W:_curry1$1(function(re){return X(J,re)});default:return _isPlaceholder$1(J)&&_isPlaceholder$1(te)?W:_isPlaceholder$1(J)?_curry1$1(function(re){return X(re,te)}):_isPlaceholder$1(te)?_curry1$1(function(re){return X(J,re)}):X(J,te)}}}function _isFunction(X){var W=Object.prototype.toString.call(X);return W==="[object Function]"||W==="[object AsyncFunction]"||W==="[object GeneratorFunction]"||W==="[object AsyncGeneratorFunction]"}function _arrayFromIterator$1(X){for(var W=[],J;!(J=X.next()).done;)W.push(J.value);return W}function _includesWith$1(X,W,J){for(var te=0,re=J.length;te<re;){if(X(W,J[te]))return!0;te+=1}return!1}function _functionName$1(X){var W=String(X).match(/^function (\w*)/);return W==null?"":W[1]}function _has$1(X,W){return Object.prototype.hasOwnProperty.call(W,X)}function _objectIs$2(X,W){return X===W?X!==0||1/X===1/W:X!==X&&W!==W}const _objectIs$3=typeof Object.is=="function"?Object.is:_objectIs$2;var toString$3=Object.prototype.toString,_isArguments$1=function(){return toString$3.call(arguments)==="[object Arguments]"?function(W){return toString$3.call(W)==="[object Arguments]"}:function(W){return _has$1("callee",W)}}(),hasEnumBug$1=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps$1=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug$1=function(){return arguments.propertyIsEnumerable("length")}(),contains$2=function(W,J){for(var te=0;te<W.length;){if(W[te]===J)return!0;te+=1}return!1},keys$1=_curry1$1(typeof Object.keys=="function"&&!hasArgsEnumBug$1?function(W){return Object(W)!==W?[]:Object.keys(W)}:function(W){if(Object(W)!==W)return[];var J,te,re=[],ne=hasArgsEnumBug$1&&_isArguments$1(W);for(J in W)_has$1(J,W)&&(!ne||J!=="length")&&(re[re.length]=J);if(hasEnumBug$1)for(te=nonEnumerableProps$1.length-1;te>=0;)J=nonEnumerableProps$1[te],_has$1(J,W)&&!contains$2(re,J)&&(re[re.length]=J),te-=1;return re}),type$1=_curry1$1(function(W){return W===null?"Null":W===void 0?"Undefined":Object.prototype.toString.call(W).slice(8,-1)});function _uniqContentEquals$1(X,W,J,te){var re=_arrayFromIterator$1(X),ne=_arrayFromIterator$1(W);function oe(de,he){return _equals$1(de,he,J.slice(),te.slice())}return!_includesWith$1(function(de,he){return!_includesWith$1(oe,he,de)},ne,re)}function _equals$1(X,W,J,te){if(_objectIs$3(X,W))return!0;var re=type$1(X);if(re!==type$1(W)||X==null||W==null)return!1;if(typeof X["fantasy-land/equals"]=="function"||typeof W["fantasy-land/equals"]=="function")return typeof X["fantasy-land/equals"]=="function"&&X["fantasy-land/equals"](W)&&typeof W["fantasy-land/equals"]=="function"&&W["fantasy-land/equals"](X);if(typeof X.equals=="function"||typeof W.equals=="function")return typeof X.equals=="function"&&X.equals(W)&&typeof W.equals=="function"&&W.equals(X);switch(re){case"Arguments":case"Array":case"Object":if(typeof X.constructor=="function"&&_functionName$1(X.constructor)==="Promise")return X===W;break;case"Boolean":case"Number":case"String":if(!(typeof X==typeof W&&_objectIs$3(X.valueOf(),W.valueOf())))return!1;break;case"Date":if(!_objectIs$3(X.valueOf(),W.valueOf()))return!1;break;case"Error":return X.name===W.name&&X.message===W.message;case"RegExp":if(!(X.source===W.source&&X.global===W.global&&X.ignoreCase===W.ignoreCase&&X.multiline===W.multiline&&X.sticky===W.sticky&&X.unicode===W.unicode))return!1;break}for(var ne=J.length-1;ne>=0;){if(J[ne]===X)return te[ne]===W;ne-=1}switch(re){case"Map":return X.size!==W.size?!1:_uniqContentEquals$1(X.entries(),W.entries(),J.concat([X]),te.concat([W]));case"Set":return X.size!==W.size?!1:_uniqContentEquals$1(X.values(),W.values(),J.concat([X]),te.concat([W]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var oe=keys$1(X);if(oe.length!==keys$1(W).length)return!1;var de=J.concat([X]),he=te.concat([W]);for(ne=oe.length-1;ne>=0;){var ue=oe[ne];if(!(_has$1(ue,W)&&_equals$1(W[ue],X[ue],de,he)))return!1;ne-=1}return!0}var equals$1=_curry2$1(function(W,J){return _equals$1(W,J,[],[])});function _indexOf$1(X,W,J){var te,re;if(typeof X.indexOf=="function")switch(typeof W){case"number":if(W===0){for(te=1/W;J<X.length;){if(re=X[J],re===0&&1/re===te)return J;J+=1}return-1}else if(W!==W){for(;J<X.length;){if(re=X[J],typeof re=="number"&&re!==re)return J;J+=1}return-1}return X.indexOf(W,J);case"string":case"boolean":case"function":case"undefined":return X.indexOf(W,J);case"object":if(W===null)return X.indexOf(W,J)}for(;J<X.length;){if(equals$1(X[J],W))return J;J+=1}return-1}function _includes$1(X,W){return _indexOf$1(W,X,0)>=0}function _map$1(X,W){for(var J=0,te=W.length,re=Array(te);J<te;)re[J]=X(W[J]),J+=1;return re}function _quote$1(X){var W=X.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+W.replace(/"/g,'\\"')+'"'}var pad$1=function(W){return(W<10?"0":"")+W},_toISOString$1=typeof Date.prototype.toISOString=="function"?function(W){return W.toISOString()}:function(W){return W.getUTCFullYear()+"-"+pad$1(W.getUTCMonth()+1)+"-"+pad$1(W.getUTCDate())+"T"+pad$1(W.getUTCHours())+":"+pad$1(W.getUTCMinutes())+":"+pad$1(W.getUTCSeconds())+"."+(W.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement$1(X){return function(){return!X.apply(this,arguments)}}const _isArray$1=Array.isArray||function(W){return W!=null&&W.length>=0&&Object.prototype.toString.call(W)==="[object Array]"};function _isTransformer$1(X){return X!=null&&typeof X["@@transducer/step"]=="function"}function _dispatchable$1(X,W,J){return function(){if(arguments.length===0)return J();var te=Array.prototype.slice.call(arguments,0),re=te.pop();if(!_isArray$1(re)){for(var ne=0;ne<X.length;){if(typeof re[X[ne]]=="function")return re[X[ne]].apply(re,te);ne+=1}if(_isTransformer$1(re)){var oe=W.apply(null,te);return oe(re)}}return J.apply(this,arguments)}}function _filter$1(X,W){for(var J=0,te=W.length,re=[];J<te;)X(W[J])&&(re[re.length]=W[J]),J+=1;return re}function _isObject$1(X){return Object.prototype.toString.call(X)==="[object Object]"}function _isString$1(X){return Object.prototype.toString.call(X)==="[object String]"}var _isArrayLike$1=_curry1$1(function(W){return _isArray$1(W)?!0:!W||typeof W!="object"||_isString$1(W)?!1:W.nodeType===1?!!W.length:W.length===0?!0:W.length>0?W.hasOwnProperty(0)&&W.hasOwnProperty(W.length-1):!1}),XWrap$1=function(){function X(W){this.f=W}return X.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},X.prototype["@@transducer/result"]=function(W){return W},X.prototype["@@transducer/step"]=function(W,J){return this.f(W,J)},X}();function _xwrap$1(X){return new XWrap$1(X)}function _arity$1(X,W){switch(X){case 0:return function(){return W.apply(this,arguments)};case 1:return function(J){return W.apply(this,arguments)};case 2:return function(J,te){return W.apply(this,arguments)};case 3:return function(J,te,re){return W.apply(this,arguments)};case 4:return function(J,te,re,ne){return W.apply(this,arguments)};case 5:return function(J,te,re,ne,oe){return W.apply(this,arguments)};case 6:return function(J,te,re,ne,oe,de){return W.apply(this,arguments)};case 7:return function(J,te,re,ne,oe,de,he){return W.apply(this,arguments)};case 8:return function(J,te,re,ne,oe,de,he,ue){return W.apply(this,arguments)};case 9:return function(J,te,re,ne,oe,de,he,ue,ce){return W.apply(this,arguments)};case 10:return function(J,te,re,ne,oe,de,he,ue,ce,pe){return W.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var bind$2=_curry2$1(function(W,J){return _arity$1(W.length,function(){return W.apply(J,arguments)})});function _arrayReduce$1(X,W,J){for(var te=0,re=J.length;te<re;){if(W=X["@@transducer/step"](W,J[te]),W&&W["@@transducer/reduced"]){W=W["@@transducer/value"];break}te+=1}return X["@@transducer/result"](W)}function _iterableReduce(X,W,J){for(var te=J.next();!te.done;){if(W=X["@@transducer/step"](W,te.value),W&&W["@@transducer/reduced"]){W=W["@@transducer/value"];break}te=J.next()}return X["@@transducer/result"](W)}function _methodReduce(X,W,J,te){return X["@@transducer/result"](J[te](bind$2(X["@@transducer/step"],X),W))}var symIterator$1=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(X,W,J){if(typeof X=="function"&&(X=_xwrap$1(X)),_isArrayLike$1(J))return _arrayReduce$1(X,W,J);if(typeof J["fantasy-land/reduce"]=="function")return _methodReduce(X,W,J,"fantasy-land/reduce");if(J[symIterator$1]!=null)return _iterableReduce(X,W,J[symIterator$1]());if(typeof J.next=="function")return _iterableReduce(X,W,J);if(typeof J.reduce=="function")return _methodReduce(X,W,J,"reduce");throw new TypeError("reduce: list must be array or iterable")}const _xfBase$1={init:function(){return this.xf["@@transducer/init"]()},result:function(X){return this.xf["@@transducer/result"](X)}};var XFilter$1=function(){function X(W,J){this.xf=J,this.f=W}return X.prototype["@@transducer/init"]=_xfBase$1.init,X.prototype["@@transducer/result"]=_xfBase$1.result,X.prototype["@@transducer/step"]=function(W,J){return this.f(J)?this.xf["@@transducer/step"](W,J):W},X}(),_xfilter$1=_curry2$1(function(W,J){return new XFilter$1(W,J)}),filter$1=_curry2$1(_dispatchable$1(["filter"],_xfilter$1,function(X,W){return _isObject$1(W)?_reduce(function(J,te){return X(W[te])&&(J[te]=W[te]),J},{},keys$1(W)):_filter$1(X,W)})),reject$1=_curry2$1(function(W,J){return filter$1(_complement$1(W),J)});function _toString$1(X,W){var J=function(oe){var de=W.concat([X]);return _includes$1(oe,de)?"<Circular>":_toString$1(oe,de)},te=function(ne,oe){return _map$1(function(de){return _quote$1(de)+": "+J(ne[de])},oe.slice().sort())};switch(Object.prototype.toString.call(X)){case"[object Arguments]":return"(function() { return arguments; }("+_map$1(J,X).join(", ")+"))";case"[object Array]":return"["+_map$1(J,X).concat(te(X,reject$1(function(ne){return/^\d+$/.test(ne)},keys$1(X)))).join(", ")+"]";case"[object Boolean]":return typeof X=="object"?"new Boolean("+J(X.valueOf())+")":X.toString();case"[object Date]":return"new Date("+(isNaN(X.valueOf())?J(NaN):_quote$1(_toISOString$1(X)))+")";case"[object Null]":return"null";case"[object Number]":return typeof X=="object"?"new Number("+J(X.valueOf())+")":1/X===-1/0?"-0":X.toString(10);case"[object String]":return typeof X=="object"?"new String("+J(X.valueOf())+")":_quote$1(X);case"[object Undefined]":return"undefined";default:if(typeof X.toString=="function"){var re=X.toString();if(re!=="[object Object]")return re}return"{"+te(X,keys$1(X)).join(", ")+"}"}}function _assertPromise(X,W){if(W==null||!_isFunction(W.then))throw new TypeError("`"+X+"` expected a Promise, received "+_toString$1(W,[]))}var andThen=_curry2$1(function(W,J){return _assertPromise("andThen",J),J.then(W)}),XMap$1=function(){function X(W,J){this.xf=J,this.f=W}return X.prototype["@@transducer/init"]=_xfBase$1.init,X.prototype["@@transducer/result"]=_xfBase$1.result,X.prototype["@@transducer/step"]=function(W,J){return this.xf["@@transducer/step"](W,this.f(J))},X}(),_xmap$1=_curry2$1(function(W,J){return new XMap$1(W,J)});function _curryN$1(X,W,J){return function(){for(var te=[],re=0,ne=X,oe=0;oe<W.length||re<arguments.length;){var de;oe<W.length&&(!_isPlaceholder$1(W[oe])||re>=arguments.length)?de=W[oe]:(de=arguments[re],re+=1),te[oe]=de,_isPlaceholder$1(de)||(ne-=1),oe+=1}return ne<=0?J.apply(this,te):_arity$1(ne,_curryN$1(X,te,J))}}var curryN$1=_curry2$1(function(W,J){return W===1?_curry1$1(J):_arity$1(W,_curryN$1(W,[],J))}),map$1=_curry2$1(_dispatchable$1(["fantasy-land/map","map"],_xmap$1,function(W,J){switch(Object.prototype.toString.call(J)){case"[object Function]":return curryN$1(J.length,function(){return W.call(this,J.apply(this,arguments))});case"[object Object]":return _reduce(function(te,re){return te[re]=W(J[re]),te},{},keys$1(J));default:return _map$1(W,J)}}));function _pipe(X,W){return function(){return W.call(this,X.apply(this,arguments))}}function _curry3$1(X){return function W(J,te,re){switch(arguments.length){case 0:return W;case 1:return _isPlaceholder$1(J)?W:_curry2$1(function(ne,oe){return X(J,ne,oe)});case 2:return _isPlaceholder$1(J)&&_isPlaceholder$1(te)?W:_isPlaceholder$1(J)?_curry2$1(function(ne,oe){return X(ne,te,oe)}):_isPlaceholder$1(te)?_curry2$1(function(ne,oe){return X(J,ne,oe)}):_curry1$1(function(ne){return X(J,te,ne)});default:return _isPlaceholder$1(J)&&_isPlaceholder$1(te)&&_isPlaceholder$1(re)?W:_isPlaceholder$1(J)&&_isPlaceholder$1(te)?_curry2$1(function(ne,oe){return X(ne,oe,re)}):_isPlaceholder$1(J)&&_isPlaceholder$1(re)?_curry2$1(function(ne,oe){return X(ne,te,oe)}):_isPlaceholder$1(te)&&_isPlaceholder$1(re)?_curry2$1(function(ne,oe){return X(J,ne,oe)}):_isPlaceholder$1(J)?_curry1$1(function(ne){return X(ne,te,re)}):_isPlaceholder$1(te)?_curry1$1(function(ne){return X(J,ne,re)}):_isPlaceholder$1(re)?_curry1$1(function(ne){return X(J,te,ne)}):X(J,te,re)}}}var reduce$1=_curry3$1(_reduce);function _checkForMethod(X,W){return function(){var J=arguments.length;if(J===0)return W();var te=arguments[J-1];return _isArray$1(te)||typeof te[X]!="function"?W.apply(this,arguments):te[X].apply(te,Array.prototype.slice.call(arguments,0,J-1))}}var slice=_curry3$1(_checkForMethod("slice",function(W,J,te){return Array.prototype.slice.call(te,W,J)})),tail=_curry1$1(_checkForMethod("tail",slice(1,1/0)));function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity$1(arguments[0].length,reduce$1(_pipe,arguments[0],tail(arguments)))}let c$r=class{constructor(W){this.targetRegion=W}async attach(){const W=this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);return pipe(map$1(J=>this.targetRegion.addView(J.key,J.view)),bind$2(Promise.all,Promise),andThen(o$V))(W)}detach(){return Promise.resolve()}},s$y=class{constructor(){this.registry=[]}get behaviors(){return[...this.registry]}register(W){this.behaviors.some(J=>J===W)||this.registry.push(W)}};const e$O=new s$y;e$O.register(c$r);const a$t=e$O;let l$v=class{constructor(W){this.host=W}get behaviors(){return a$t.behaviors.map(W=>new W(this.host.uxlRegion))}activateView(W){return this.host.contains(W)||this.addViewToHost(W),W.hidden=!1,Promise.resolve(void 0)}deactivateView(W){return W.view&&W.view.removeFromDomWhenDeactivated?this.removeViewFromHost(W):W.hidden=!0,Promise.resolve(null)}removeView(W){this.removeViewFromHost(W)}viewAdded(W){}addViewToHost(W){this.host.appendChild(W)}removeViewFromHost(W){this.host.removeChild(W),this.host.uxlRegion.viewRemovedFromDom(W.view)}};const e$N=(X,W)=>!X.sortHint&&!W.sortHint||!W.sortHint?-1:X.sortHint?X.sortHint.localeCompare(W.sortHint):1;let s$x=class extends l$v{async viewAdded(W){await this.host.uxlRegion.activate(W)}addViewToHost(W){const J=this.host.uxlRegion.currentActiveViews.sort(e$N).indexOf(W.view);J>=this.host.children.length?super.addViewToHost(W):this.host.insertBefore(W,this.host.children[J])}};const f$o=(X,W)=>new s$x(W);let o$U=class extends l$v{async activateView(W){const J=this.host.uxlRegion.currentActiveViews.filter(te=>te!==W.view);for(const te of J)await this.host.uxlRegion.deactivate(te);return super.activateView(W)}async deactivateView(W){await super.deactivateView(W);const J=this.host.uxlRegion.currentViews.find(te=>te.isDefault);J&&W.view!=J&&this.host.uxlRegion.currentActiveViews.length==0&&await this.host.uxlRegion.activate(J)}async viewAdded(W){!this.host.uxlRegion.currentActiveViews.length&&W.isDefault&&await this.host.uxlRegion.activate(W)}},o$T=class extends o$U{constructor(W){super(W),this.attrForSelected="name",this.attrForSelectedProperty="attrForSelected",this.selectedProperty="selected",W[this.attrForSelectedProperty]=this.attrForSelected}async activateView(W){await super.activateView(W),W[this.attrForSelected]||(W[this.attrForSelected]=W.viewKey),this.host[this.selectedProperty]=W.viewKey}async deactivateView(W){this.host[this.selectedProperty]===W.viewKey&&(this.host[this.selectedProperty]=null,await super.deactivateView(W))}};const d$t=(X,W)=>new o$T(W),a$s=(X,W)=>{if(X=typeof X=="function"?X():X,!X)throw new Error(W)},o$S=X=>typeof HTMLElement=="object"?X instanceof HTMLElement:X&&typeof X=="object"&&X!=null&&X.nodeType===1&&typeof X.nodeName=="string",f$n=X=>{if(!X.htmlTag&&!X.element&&!X.factory)throw new Error("One of properties htmlTag, factory or element must be set");return X.htmlTag&&a$s(typeof X.htmlTag=="string","htmlTag property must be an string"),X.factory&&a$s(typeof X.factory=="function","factory property must be a function"),X.element&&a$s(o$S(X.element),"element property must be an HTMLElement"),!0},f$m=async(X,W,J)=>{let te;return X.element?te=X.element:X.factory?te=await X.factory():X.htmlTag&&(X.htmlUrl&&await import(X.htmlUrl),te=window.document.createElement(X.htmlTag)),te.view=X,te.region=W,te.viewKey=J,te};let y$j=class{constructor(W,J,te,re,ne){this.name=W,this.regionManager=J,this.host=te,this.adapter=re,this.definition=ne,this.views={},this.activeViews=[],this.components=new WeakMap,this.host.uxlRegion=this}async addView(W,J){return f$n(J),a$s(typeof this.getView(W)>"u",`Already exists a view with key ${W}`),this.views[W]=J,await this.adapter.viewAdded(J),this}async removeView(W){await this.deactivate(W),this.remove(W),delete this.views[W]}async removeViews(){Object.keys(this.views).forEach(W=>this.removeView(W))}get context(){return this._context}set context(W){this._context=W,Object.keys(this.views).forEach(J=>{const te=this.views[J];if(this.components.has(te)){const re=this.components.get(te);re&&(re.regionContext=this._context)}})}async activate(W){let J=W;if(typeof W=="string"?(J=this.getView(W),a$s(J,`Region does not contain a view with key ${W}`)):a$s(Object.keys(this.views).some(te=>typeof this.views[te]<"u"),"Region does not contain this view"),!this.activeViews.some(te=>te===J)){if(!this.components.has(J)){const re=await f$m(J,this,typeof W=="string"?W:this.getKey(J));re.regionContext=this.context,this.components.set(J,re)}const te=this.components.get(J);this.activeViews.push(J),te.active=!0,await this.adapter.activateView(te)}return this}viewRemovedFromDom(W){this.components.delete(W)}remove(W){const J=typeof W=="string"?this.getView(W):W,te=this.components.get(J);te&&this.adapter.removeView(te)}async deactivate(W){const J=typeof W=="string"?this.getView(W):W,te=this.activeViews.indexOf(J);te!==-1&&this.activeViews.splice(te,1);const re=this.components.get(J);re&&(re.active=!1,await this.adapter.deactivateView(re))}getView(W){return this.views[W]}get currentViews(){return Object.keys(this.views).map(W=>this.views[W])}get currentActiveViews(){return[...this.activeViews]}getKey(W){return Object.keys(this.views).find(J=>this.views[J]==W)}containsView(W){return typeof W=="string"?this.getView(W)!==void 0:Object.keys(this.views).some(J=>this.views[J]==W)}isViewActive(W){if(this.containsView(W)){const J=typeof W=="string"?this.getView(W):W;return this.activeViews.indexOf(J)!==-1}throw new Error(`region ${this.name} doest not contain this view`)}async toggleViewActive(W){if(this.containsView(W))return this.isViewActive(W)?(await this.deactivate(W),!1):(await this.activate(W),!0);throw new Error(`region ${this.name} doest not contain this view`)}};const e$M="default",r$O="dynamic";let y$i=class{constructor(){this.adapterRegistry=new Map,this.adapterRegistry.set(r$O,[])}registerAdapterFactory(W,J){this.adapterRegistry.set(W,J)}get dynamicFactories(){return this.adapterRegistry.get(r$O)}registerDynamicAdapterFactory(W){this.dynamicFactories.indexOf(W)===-1&&this.dynamicFactories.push(W)}getDynamicFactory(W){return this.dynamicFactories.reduce((J,te)=>J||te(W),null)}getAdapterFactory(W){return this.getDynamicFactory(W)||(this.adapterRegistry.has(W.constructor)?this.adapterRegistry.get(W.constructor):this.adapterRegistry.has(W.localName)?this.adapterRegistry.get(W.localName):this.adapterRegistry.has(W.tagName)?this.adapterRegistry.get(W.tagName):this.adapterRegistry.has(e$M)?this.adapterRegistry.get(e$M):null)}registerDefaultAdapterFactory(W){this.adapterRegistry.set(e$M,W)}};const p$h=new y$i,o$R="__uxl_regions__",s$w=X=>(W,J)=>{W.constructor[o$R]={...W.constructor[o$R],[J]:X}},p$g=(X,W,J)=>{const te=J.getAdapterFactory(W);return a$s(typeof te=="function","No region adapter factory found for the host"),te(X,W)},h$s=async(X,W,J,te)=>{await W._updatePromise;const re=W.shadowRoot.querySelector(`#${X.targetId}`);if(re){const ne=X.adapterFactory?X.adapterFactory(X,re):p$g(X,re,te);a$s(ne,"No region adapter found for the host");const oe=X.scoped?J.createRegionManager():J,de=new y$j(X.name,oe,re,ne,X);return oe.add(X.name,de),de}else console.warn(`region host with id ${X.targetId} not found for region named ${X.name}`)};/*
|
|
31
31
|
* @license
|
|
32
32
|
* BSD License
|
|
33
33
|
*
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
* @license
|
|
48
48
|
* Copyright 2019 Google LLC
|
|
49
49
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
-
*/const t$n=window,e$
|
|
50
|
+
*/const t$n=window,e$L=t$n.ShadowRoot&&(t$n.ShadyCSS===void 0||t$n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$v=Symbol(),n$E=new WeakMap;let o$Q=class{constructor(W,J,te){if(this._$cssResult$=!0,te!==s$v)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=W,this.t=J}get styleSheet(){let W=this.o;const J=this.t;if(e$L&&W===void 0){const te=J!==void 0&&J.length===1;te&&(W=n$E.get(J)),W===void 0&&((this.o=W=new CSSStyleSheet).replaceSync(this.cssText),te&&n$E.set(J,W))}return W}toString(){return this.cssText}};const r$M=X=>new o$Q(typeof X=="string"?X:X+"",void 0,s$v),S$d=(X,W)=>{e$L?X.adoptedStyleSheets=W.map(J=>J instanceof CSSStyleSheet?J:J.styleSheet):W.forEach(J=>{const te=document.createElement("style"),re=t$n.litNonce;re!==void 0&&te.setAttribute("nonce",re),te.textContent=J.cssText,X.appendChild(te)})},c$q=e$L?X=>X:X=>X instanceof CSSStyleSheet?(W=>{let J="";for(const te of W.cssRules)J+=te.cssText;return r$M(J)})(X):X;/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/var s$u;const e$
|
|
54
|
+
*/var s$u;const e$K=window,r$L=e$K.trustedTypes,h$r=r$L?r$L.emptyScript:"",o$P=e$K.reactiveElementPolyfillSupport,n$D={toAttribute(X,W){switch(W){case Boolean:X=X?h$r:null;break;case Object:case Array:X=X==null?X:JSON.stringify(X)}return X},fromAttribute(X,W){let J=X;switch(W){case Boolean:J=X!==null;break;case Number:J=X===null?null:Number(X);break;case Object:case Array:try{J=JSON.parse(X)}catch{J=null}}return J}},a$r=(X,W)=>W!==X&&(W==W||X==X),l$u={attribute:!0,type:String,converter:n$D,reflect:!1,hasChanged:a$r},d$r="finalized";let u$w=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(W){var J;this.finalize(),((J=this.h)!==null&&J!==void 0?J:this.h=[]).push(W)}static get observedAttributes(){this.finalize();const W=[];return this.elementProperties.forEach((J,te)=>{const re=this._$Ep(te,J);re!==void 0&&(this._$Ev.set(re,te),W.push(re))}),W}static createProperty(W,J=l$u){if(J.state&&(J.attribute=!1),this.finalize(),this.elementProperties.set(W,J),!J.noAccessor&&!this.prototype.hasOwnProperty(W)){const te=typeof W=="symbol"?Symbol():"__"+W,re=this.getPropertyDescriptor(W,te,J);re!==void 0&&Object.defineProperty(this.prototype,W,re)}}static getPropertyDescriptor(W,J,te){return{get(){return this[J]},set(re){const ne=this[W];this[J]=re,this.requestUpdate(W,ne,te)},configurable:!0,enumerable:!0}}static getPropertyOptions(W){return this.elementProperties.get(W)||l$u}static finalize(){if(this.hasOwnProperty(d$r))return!1;this[d$r]=!0;const W=Object.getPrototypeOf(this);if(W.finalize(),W.h!==void 0&&(this.h=[...W.h]),this.elementProperties=new Map(W.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const J=this.properties,te=[...Object.getOwnPropertyNames(J),...Object.getOwnPropertySymbols(J)];for(const re of te)this.createProperty(re,J[re])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(W){const J=[];if(Array.isArray(W)){const te=new Set(W.flat(1/0).reverse());for(const re of te)J.unshift(c$q(re))}else W!==void 0&&J.push(c$q(W));return J}static _$Ep(W,J){const te=J.attribute;return te===!1?void 0:typeof te=="string"?te:typeof W=="string"?W.toLowerCase():void 0}_$Eu(){var W;this._$E_=new Promise(J=>this.enableUpdating=J),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(W=this.constructor.h)===null||W===void 0||W.forEach(J=>J(this))}addController(W){var J,te;((J=this._$ES)!==null&&J!==void 0?J:this._$ES=[]).push(W),this.renderRoot!==void 0&&this.isConnected&&((te=W.hostConnected)===null||te===void 0||te.call(W))}removeController(W){var J;(J=this._$ES)===null||J===void 0||J.splice(this._$ES.indexOf(W)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((W,J)=>{this.hasOwnProperty(J)&&(this._$Ei.set(J,this[J]),delete this[J])})}createRenderRoot(){var W;const J=(W=this.shadowRoot)!==null&&W!==void 0?W:this.attachShadow(this.constructor.shadowRootOptions);return S$d(J,this.constructor.elementStyles),J}connectedCallback(){var W;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(W=this._$ES)===null||W===void 0||W.forEach(J=>{var te;return(te=J.hostConnected)===null||te===void 0?void 0:te.call(J)})}enableUpdating(W){}disconnectedCallback(){var W;(W=this._$ES)===null||W===void 0||W.forEach(J=>{var te;return(te=J.hostDisconnected)===null||te===void 0?void 0:te.call(J)})}attributeChangedCallback(W,J,te){this._$AK(W,te)}_$EO(W,J,te=l$u){var re;const ne=this.constructor._$Ep(W,te);if(ne!==void 0&&te.reflect===!0){const oe=(((re=te.converter)===null||re===void 0?void 0:re.toAttribute)!==void 0?te.converter:n$D).toAttribute(J,te.type);this._$El=W,oe==null?this.removeAttribute(ne):this.setAttribute(ne,oe),this._$El=null}}_$AK(W,J){var te;const re=this.constructor,ne=re._$Ev.get(W);if(ne!==void 0&&this._$El!==ne){const oe=re.getPropertyOptions(ne),de=typeof oe.converter=="function"?{fromAttribute:oe.converter}:((te=oe.converter)===null||te===void 0?void 0:te.fromAttribute)!==void 0?oe.converter:n$D;this._$El=ne,this[ne]=de.fromAttribute(J,oe.type),this._$El=null}}requestUpdate(W,J,te){let re=!0;W!==void 0&&(((te=te||this.constructor.getPropertyOptions(W)).hasChanged||a$r)(this[W],J)?(this._$AL.has(W)||this._$AL.set(W,J),te.reflect===!0&&this._$El!==W&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(W,te))):re=!1),!this.isUpdatePending&&re&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(J){Promise.reject(J)}const W=this.scheduleUpdate();return W!=null&&await W,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var W;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((re,ne)=>this[ne]=re),this._$Ei=void 0);let J=!1;const te=this._$AL;try{J=this.shouldUpdate(te),J?(this.willUpdate(te),(W=this._$ES)===null||W===void 0||W.forEach(re=>{var ne;return(ne=re.hostUpdate)===null||ne===void 0?void 0:ne.call(re)}),this.update(te)):this._$Ek()}catch(re){throw J=!1,this._$Ek(),re}J&&this._$AE(te)}willUpdate(W){}_$AE(W){var J;(J=this._$ES)===null||J===void 0||J.forEach(te=>{var re;return(re=te.hostUpdated)===null||re===void 0?void 0:re.call(te)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(W)),this.updated(W)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(W){return!0}update(W){this._$EC!==void 0&&(this._$EC.forEach((J,te)=>this._$EO(te,this[te],J)),this._$EC=void 0),this._$Ek()}updated(W){}firstUpdated(W){}};u$w[d$r]=!0,u$w.elementProperties=new Map,u$w.elementStyles=[],u$w.shadowRootOptions={mode:"open"},o$P==null||o$P({ReactiveElement:u$w}),((s$u=e$K.reactiveElementVersions)!==null&&s$u!==void 0?s$u:e$K.reactiveElementVersions=[]).push("1.6.3");/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/var t$m;const i$y=window,s$t=i$y.trustedTypes,e$
|
|
58
|
+
*/var t$m;const i$y=window,s$t=i$y.trustedTypes,e$J=s$t?s$t.createPolicy("lit-html",{createHTML:X=>X}):void 0,o$O="$lit$",n$C=`lit$${(Math.random()+"").slice(9)}$`,l$t="?"+n$C,h$q=`<${l$t}>`,r$K=document,u$v=()=>r$K.createComment(""),d$q=X=>X===null||typeof X!="object"&&typeof X!="function",c$p=Array.isArray,v$c=X=>c$p(X)||typeof(X==null?void 0:X[Symbol.iterator])=="function",a$q=`[
|
|
59
59
|
\f\r]`,f$l=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_$h=/-->/g,m$f=/>/g,p$f=RegExp(`>|${a$q}(?:([^\\s"'>=/]+)(${a$q}*=${a$q}*(?:[^
|
|
60
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),g$l=/'/g,$$c=/"/g,y$h=/^(?:script|style|textarea|title)$/i,T$4=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E$5=new WeakMap,C$a=r$K.createTreeWalker(r$K,129,null,!1);function P$2(X,W){if(!Array.isArray(X)||!X.hasOwnProperty("raw"))throw Error("invalid template strings array");return e$
|
|
60
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),g$l=/'/g,$$c=/"/g,y$h=/^(?:script|style|textarea|title)$/i,T$4=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E$5=new WeakMap,C$a=r$K.createTreeWalker(r$K,129,null,!1);function P$2(X,W){if(!Array.isArray(X)||!X.hasOwnProperty("raw"))throw Error("invalid template strings array");return e$J!==void 0?e$J.createHTML(W):W}const V$4=(X,W)=>{const J=X.length-1,te=[];let re,ne=W===2?"<svg>":"",oe=f$l;for(let de=0;de<J;de++){const he=X[de];let ue,ce,pe=-1,fe=0;for(;fe<he.length&&(oe.lastIndex=fe,ce=oe.exec(he),ce!==null);)fe=oe.lastIndex,oe===f$l?ce[1]==="!--"?oe=_$h:ce[1]!==void 0?oe=m$f:ce[2]!==void 0?(y$h.test(ce[2])&&(re=RegExp("</"+ce[2],"g")),oe=p$f):ce[3]!==void 0&&(oe=p$f):oe===p$f?ce[0]===">"?(oe=re??f$l,pe=-1):ce[1]===void 0?pe=-2:(pe=oe.lastIndex-ce[2].length,ue=ce[1],oe=ce[3]===void 0?p$f:ce[3]==='"'?$$c:g$l):oe===$$c||oe===g$l?oe=p$f:oe===_$h||oe===m$f?oe=f$l:(oe=p$f,re=void 0);const ge=oe===p$f&&X[de+1].startsWith("/>")?" ":"";ne+=oe===f$l?he+h$q:pe>=0?(te.push(ue),he.slice(0,pe)+o$O+he.slice(pe)+n$C+ge):he+n$C+(pe===-2?(te.push(void 0),de):ge)}return[P$2(X,ne+(X[J]||"<?>")+(W===2?"</svg>":"")),te]};let N$3=class li{constructor({strings:W,_$litType$:J},te){let re;this.parts=[];let ne=0,oe=0;const de=W.length-1,he=this.parts,[ue,ce]=V$4(W,J);if(this.el=li.createElement(ue,te),C$a.currentNode=this.el.content,J===2){const pe=this.el.content,fe=pe.firstChild;fe.remove(),pe.append(...fe.childNodes)}for(;(re=C$a.nextNode())!==null&&he.length<de;){if(re.nodeType===1){if(re.hasAttributes()){const pe=[];for(const fe of re.getAttributeNames())if(fe.endsWith(o$O)||fe.startsWith(n$C)){const ge=ce[oe++];if(pe.push(fe),ge!==void 0){const me=re.getAttribute(ge.toLowerCase()+o$O).split(n$C),ve=/([.?@])?(.*)/.exec(ge);he.push({type:1,index:ne,name:ve[2],strings:me,ctor:ve[1]==="."?H$1:ve[1]==="?"?L$5:ve[1]==="@"?z$4:k$5})}else he.push({type:6,index:ne})}for(const fe of pe)re.removeAttribute(fe)}if(y$h.test(re.tagName)){const pe=re.textContent.split(n$C),fe=pe.length-1;if(fe>0){re.textContent=s$t?s$t.emptyScript:"";for(let ge=0;ge<fe;ge++)re.append(pe[ge],u$v()),C$a.nextNode(),he.push({type:2,index:++ne});re.append(pe[fe],u$v())}}}else if(re.nodeType===8)if(re.data===l$t)he.push({type:2,index:ne});else{let pe=-1;for(;(pe=re.data.indexOf(n$C,pe+1))!==-1;)he.push({type:7,index:ne}),pe+=n$C.length-1}ne++}}static createElement(W,J){const te=r$K.createElement("template");return te.innerHTML=W,te}};function S$c(X,W,J=X,te){var re,ne,oe,de;if(W===T$4)return W;let he=te!==void 0?(re=J._$Co)===null||re===void 0?void 0:re[te]:J._$Cl;const ue=d$q(W)?void 0:W._$litDirective$;return(he==null?void 0:he.constructor)!==ue&&((ne=he==null?void 0:he._$AO)===null||ne===void 0||ne.call(he,!1),ue===void 0?he=void 0:(he=new ue(X),he._$AT(X,J,te)),te!==void 0?((oe=(de=J)._$Co)!==null&&oe!==void 0?oe:de._$Co=[])[te]=he:J._$Cl=he),he!==void 0&&(W=S$c(X,he._$AS(X,W.values),he,te)),W}let M$3=class{constructor(W,J){this._$AV=[],this._$AN=void 0,this._$AD=W,this._$AM=J}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(W){var J;const{el:{content:te},parts:re}=this._$AD,ne=((J=W==null?void 0:W.creationScope)!==null&&J!==void 0?J:r$K).importNode(te,!0);C$a.currentNode=ne;let oe=C$a.nextNode(),de=0,he=0,ue=re[0];for(;ue!==void 0;){if(de===ue.index){let ce;ue.type===2?ce=new R$1(oe,oe.nextSibling,this,W):ue.type===1?ce=new ue.ctor(oe,ue.name,ue.strings,this,W):ue.type===6&&(ce=new Z$2(oe,this,W)),this._$AV.push(ce),ue=re[++he]}de!==(ue==null?void 0:ue.index)&&(oe=C$a.nextNode(),de++)}return C$a.currentNode=r$K,ne}v(W){let J=0;for(const te of this._$AV)te!==void 0&&(te.strings!==void 0?(te._$AI(W,te,J),J+=te.strings.length-2):te._$AI(W[J])),J++}},R$1=class di{constructor(W,J,te,re){var ne;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=W,this._$AB=J,this._$AM=te,this.options=re,this._$Cp=(ne=re==null?void 0:re.isConnected)===null||ne===void 0||ne}get _$AU(){var W,J;return(J=(W=this._$AM)===null||W===void 0?void 0:W._$AU)!==null&&J!==void 0?J:this._$Cp}get parentNode(){let W=this._$AA.parentNode;const J=this._$AM;return J!==void 0&&(W==null?void 0:W.nodeType)===11&&(W=J.parentNode),W}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(W,J=this){W=S$c(this,W,J),d$q(W)?W===A||W==null||W===""?(this._$AH!==A&&this._$AR(),this._$AH=A):W!==this._$AH&&W!==T$4&&this._(W):W._$litType$!==void 0?this.g(W):W.nodeType!==void 0?this.$(W):v$c(W)?this.T(W):this._(W)}k(W){return this._$AA.parentNode.insertBefore(W,this._$AB)}$(W){this._$AH!==W&&(this._$AR(),this._$AH=this.k(W))}_(W){this._$AH!==A&&d$q(this._$AH)?this._$AA.nextSibling.data=W:this.$(r$K.createTextNode(W)),this._$AH=W}g(W){var J;const{values:te,_$litType$:re}=W,ne=typeof re=="number"?this._$AC(W):(re.el===void 0&&(re.el=N$3.createElement(P$2(re.h,re.h[0]),this.options)),re);if(((J=this._$AH)===null||J===void 0?void 0:J._$AD)===ne)this._$AH.v(te);else{const oe=new M$3(ne,this),de=oe.u(this.options);oe.v(te),this.$(de),this._$AH=oe}}_$AC(W){let J=E$5.get(W.strings);return J===void 0&&E$5.set(W.strings,J=new N$3(W)),J}T(W){c$p(this._$AH)||(this._$AH=[],this._$AR());const J=this._$AH;let te,re=0;for(const ne of W)re===J.length?J.push(te=new di(this.k(u$v()),this.k(u$v()),this,this.options)):te=J[re],te._$AI(ne),re++;re<J.length&&(this._$AR(te&&te._$AB.nextSibling,re),J.length=re)}_$AR(W=this._$AA.nextSibling,J){var te;for((te=this._$AP)===null||te===void 0||te.call(this,!1,!0,J);W&&W!==this._$AB;){const re=W.nextSibling;W.remove(),W=re}}setConnected(W){var J;this._$AM===void 0&&(this._$Cp=W,(J=this._$AP)===null||J===void 0||J.call(this,W))}},k$5=class{constructor(W,J,te,re,ne){this.type=1,this._$AH=A,this._$AN=void 0,this.element=W,this.name=J,this._$AM=re,this.options=ne,te.length>2||te[0]!==""||te[1]!==""?(this._$AH=Array(te.length-1).fill(new String),this.strings=te):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(W,J=this,te,re){const ne=this.strings;let oe=!1;if(ne===void 0)W=S$c(this,W,J,0),oe=!d$q(W)||W!==this._$AH&&W!==T$4,oe&&(this._$AH=W);else{const de=W;let he,ue;for(W=ne[0],he=0;he<ne.length-1;he++)ue=S$c(this,de[te+he],J,he),ue===T$4&&(ue=this._$AH[he]),oe||(oe=!d$q(ue)||ue!==this._$AH[he]),ue===A?W=A:W!==A&&(W+=(ue??"")+ne[he+1]),this._$AH[he]=ue}oe&&!re&&this.j(W)}j(W){W===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,W??"")}},H$1=class extends k$5{constructor(){super(...arguments),this.type=3}j(W){this.element[this.name]=W===A?void 0:W}};const I$3=s$t?s$t.emptyScript:"";let L$5=class extends k$5{constructor(){super(...arguments),this.type=4}j(W){W&&W!==A?this.element.setAttribute(this.name,I$3):this.element.removeAttribute(this.name)}},z$4=class extends k$5{constructor(W,J,te,re,ne){super(W,J,te,re,ne),this.type=5}_$AI(W,J=this){var te;if((W=(te=S$c(this,W,J,0))!==null&&te!==void 0?te:A)===T$4)return;const re=this._$AH,ne=W===A&&re!==A||W.capture!==re.capture||W.once!==re.once||W.passive!==re.passive,oe=W!==A&&(re===A||ne);ne&&this.element.removeEventListener(this.name,this,re),oe&&this.element.addEventListener(this.name,this,W),this._$AH=W}handleEvent(W){var J,te;typeof this._$AH=="function"?this._$AH.call((te=(J=this.options)===null||J===void 0?void 0:J.host)!==null&&te!==void 0?te:this.element,W):this._$AH.handleEvent(W)}},Z$2=class{constructor(W,J,te){this.element=W,this.type=6,this._$AN=void 0,this._$AM=J,this.options=te}get _$AU(){return this._$AM._$AU}_$AI(W){S$c(this,W)}};const B$4=i$y.litHtmlPolyfillSupport;B$4==null||B$4(N$3,R$1),((t$m=i$y.litHtmlVersions)!==null&&t$m!==void 0?t$m:i$y.litHtmlVersions=[]).push("2.8.0");const D$2=(X,W,J)=>{var te,re;const ne=(te=J==null?void 0:J.renderBefore)!==null&&te!==void 0?te:W;let oe=ne._$litPart$;if(oe===void 0){const de=(re=J==null?void 0:J.renderBefore)!==null&&re!==void 0?re:null;ne._$litPart$=oe=new R$1(W.insertBefore(u$v(),de),de,void 0,J??{})}return oe._$AI(X),oe};/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
|
-
*/const i$x=(X,W)=>W.kind==="method"&&W.descriptor&&!("value"in W.descriptor)?{...W,finisher(J){J.createProperty(W.key,X)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:W.key,initializer(){typeof W.initializer=="function"&&(this[W.key]=W.initializer.call(this))},finisher(J){J.createProperty(W.key,X)}},e$
|
|
68
|
+
*/const i$x=(X,W)=>W.kind==="method"&&W.descriptor&&!("value"in W.descriptor)?{...W,finisher(J){J.createProperty(W.key,X)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:W.key,initializer(){typeof W.initializer=="function"&&(this[W.key]=W.initializer.call(this))},finisher(J){J.createProperty(W.key,X)}},e$I=(X,W,J)=>{W.constructor.createProperty(J,X)};function n$A(X){return(W,J)=>J!==void 0?e$I(X,W,J):i$x(X,W)}/**
|
|
69
69
|
* @license
|
|
70
70
|
* Copyright 2021 Google LLC
|
|
71
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
* @license
|
|
74
74
|
* Copyright 2019 Google LLC
|
|
75
75
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
76
|
-
*/const t$l=globalThis,e$
|
|
76
|
+
*/const t$l=globalThis,e$H=t$l.ShadowRoot&&(t$l.ShadyCSS===void 0||t$l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$q=Symbol(),o$M=new WeakMap;let n$y=class{constructor(W,J,te){if(this._$cssResult$=!0,te!==s$q)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=W,this.t=J}get styleSheet(){let W=this.o;const J=this.t;if(e$H&&W===void 0){const te=J!==void 0&&J.length===1;te&&(W=o$M.get(J)),W===void 0&&((this.o=W=new CSSStyleSheet).replaceSync(this.cssText),te&&o$M.set(J,W))}return W}toString(){return this.cssText}};const r$J=X=>new n$y(typeof X=="string"?X:X+"",void 0,s$q),i$w=(X,...W)=>{const J=X.length===1?X[0]:W.reduce((te,re,ne)=>te+(oe=>{if(oe._$cssResult$===!0)return oe.cssText;if(typeof oe=="number")return oe;throw Error("Value passed to 'css' function must be a 'css' function result: "+oe+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(re)+X[ne+1],X[0]);return new n$y(J,X,s$q)},S$b=(X,W)=>{if(e$H)X.adoptedStyleSheets=W.map(J=>J instanceof CSSStyleSheet?J:J.styleSheet);else for(const J of W){const te=document.createElement("style"),re=t$l.litNonce;re!==void 0&&te.setAttribute("nonce",re),te.textContent=J.cssText,X.appendChild(te)}},c$o=e$H?X=>X:X=>X instanceof CSSStyleSheet?(W=>{let J="";for(const te of W.cssRules)J+=te.cssText;return r$J(J)})(X):X;/**
|
|
77
77
|
* @license
|
|
78
78
|
* Copyright 2017 Google LLC
|
|
79
79
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
|
-
*/const{is:i$v,defineProperty:e$
|
|
80
|
+
*/const{is:i$v,defineProperty:e$G,getOwnPropertyDescriptor:r$I,getOwnPropertyNames:h$p,getOwnPropertySymbols:o$L,getPrototypeOf:n$x}=Object,a$o=globalThis,c$n=a$o.trustedTypes,l$o=c$n?c$n.emptyScript:"",p$e=a$o.reactiveElementPolyfillSupport,d$o=(X,W)=>X,u$s={toAttribute(X,W){switch(W){case Boolean:X=X?l$o:null;break;case Object:case Array:X=X==null?X:JSON.stringify(X)}return X},fromAttribute(X,W){let J=X;switch(W){case Boolean:J=X!==null;break;case Number:J=X===null?null:Number(X);break;case Object:case Array:try{J=JSON.parse(X)}catch{J=null}}return J}},f$k=(X,W)=>!i$v(X,W),y$g={attribute:!0,type:String,converter:u$s,reflect:!1,hasChanged:f$k};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),a$o.litPropertyMetadata??(a$o.litPropertyMetadata=new WeakMap);let b$n=class extends HTMLElement{static addInitializer(W){this._$Ei(),(this.l??(this.l=[])).push(W)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(W,J=y$g){if(J.state&&(J.attribute=!1),this._$Ei(),this.elementProperties.set(W,J),!J.noAccessor){const te=Symbol(),re=this.getPropertyDescriptor(W,te,J);re!==void 0&&e$G(this.prototype,W,re)}}static getPropertyDescriptor(W,J,te){const{get:re,set:ne}=r$I(this.prototype,W)??{get(){return this[J]},set(oe){this[J]=oe}};return{get(){return re==null?void 0:re.call(this)},set(oe){const de=re==null?void 0:re.call(this);ne.call(this,oe),this.requestUpdate(W,de,te)},configurable:!0,enumerable:!0}}static getPropertyOptions(W){return this.elementProperties.get(W)??y$g}static _$Ei(){if(this.hasOwnProperty(d$o("elementProperties")))return;const W=n$x(this);W.finalize(),W.l!==void 0&&(this.l=[...W.l]),this.elementProperties=new Map(W.elementProperties)}static finalize(){if(this.hasOwnProperty(d$o("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$o("properties"))){const J=this.properties,te=[...h$p(J),...o$L(J)];for(const re of te)this.createProperty(re,J[re])}const W=this[Symbol.metadata];if(W!==null){const J=litPropertyMetadata.get(W);if(J!==void 0)for(const[te,re]of J)this.elementProperties.set(te,re)}this._$Eh=new Map;for(const[J,te]of this.elementProperties){const re=this._$Eu(J,te);re!==void 0&&this._$Eh.set(re,J)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(W){const J=[];if(Array.isArray(W)){const te=new Set(W.flat(1/0).reverse());for(const re of te)J.unshift(c$o(re))}else W!==void 0&&J.push(c$o(W));return J}static _$Eu(W,J){const te=J.attribute;return te===!1?void 0:typeof te=="string"?te:typeof W=="string"?W.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var W;this._$ES=new Promise(J=>this.enableUpdating=J),this._$AL=new Map,this._$E_(),this.requestUpdate(),(W=this.constructor.l)==null||W.forEach(J=>J(this))}addController(W){var J;(this._$EO??(this._$EO=new Set)).add(W),this.renderRoot!==void 0&&this.isConnected&&((J=W.hostConnected)==null||J.call(W))}removeController(W){var J;(J=this._$EO)==null||J.delete(W)}_$E_(){const W=new Map,J=this.constructor.elementProperties;for(const te of J.keys())this.hasOwnProperty(te)&&(W.set(te,this[te]),delete this[te]);W.size>0&&(this._$Ep=W)}createRenderRoot(){const W=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$b(W,this.constructor.elementStyles),W}connectedCallback(){var W;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(W=this._$EO)==null||W.forEach(J=>{var te;return(te=J.hostConnected)==null?void 0:te.call(J)})}enableUpdating(W){}disconnectedCallback(){var W;(W=this._$EO)==null||W.forEach(J=>{var te;return(te=J.hostDisconnected)==null?void 0:te.call(J)})}attributeChangedCallback(W,J,te){this._$AK(W,te)}_$EC(W,J){var ne;const te=this.constructor.elementProperties.get(W),re=this.constructor._$Eu(W,te);if(re!==void 0&&te.reflect===!0){const oe=(((ne=te.converter)==null?void 0:ne.toAttribute)!==void 0?te.converter:u$s).toAttribute(J,te.type);this._$Em=W,oe==null?this.removeAttribute(re):this.setAttribute(re,oe),this._$Em=null}}_$AK(W,J){var ne;const te=this.constructor,re=te._$Eh.get(W);if(re!==void 0&&this._$Em!==re){const oe=te.getPropertyOptions(re),de=typeof oe.converter=="function"?{fromAttribute:oe.converter}:((ne=oe.converter)==null?void 0:ne.fromAttribute)!==void 0?oe.converter:u$s;this._$Em=re,this[re]=de.fromAttribute(J,oe.type),this._$Em=null}}requestUpdate(W,J,te){if(W!==void 0){if(te??(te=this.constructor.getPropertyOptions(W)),!(te.hasChanged??f$k)(this[W],J))return;this.P(W,J,te)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(W,J,te){this._$AL.has(W)||this._$AL.set(W,J),te.reflect===!0&&this._$Em!==W&&(this._$Ej??(this._$Ej=new Set)).add(W)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(J){Promise.reject(J)}const W=this.scheduleUpdate();return W!=null&&await W,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var te;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[ne,oe]of this._$Ep)this[ne]=oe;this._$Ep=void 0}const re=this.constructor.elementProperties;if(re.size>0)for(const[ne,oe]of re)oe.wrapped!==!0||this._$AL.has(ne)||this[ne]===void 0||this.P(ne,this[ne],oe)}let W=!1;const J=this._$AL;try{W=this.shouldUpdate(J),W?(this.willUpdate(J),(te=this._$EO)==null||te.forEach(re=>{var ne;return(ne=re.hostUpdate)==null?void 0:ne.call(re)}),this.update(J)):this._$EU()}catch(re){throw W=!1,this._$EU(),re}W&&this._$AE(J)}willUpdate(W){}_$AE(W){var J;(J=this._$EO)==null||J.forEach(te=>{var re;return(re=te.hostUpdated)==null?void 0:re.call(te)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(W)),this.updated(W)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(W){return!0}update(W){this._$Ej&&(this._$Ej=this._$Ej.forEach(J=>this._$EC(J,this[J]))),this._$EU()}updated(W){}firstUpdated(W){}};b$n.elementStyles=[],b$n.shadowRootOptions={mode:"open"},b$n[d$o("elementProperties")]=new Map,b$n[d$o("finalized")]=new Map,p$e==null||p$e({ReactiveElement:b$n}),(a$o.reactiveElementVersions??(a$o.reactiveElementVersions=[])).push("2.0.4");/**
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright 2017 Google LLC
|
|
83
83
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -99,22 +99,14 @@
|
|
|
99
99
|
* @license
|
|
100
100
|
* Copyright 2017 Google LLC
|
|
101
101
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
|
-
*/function r$G(X){return n$v({...X,state:!0,attribute:!1})}
|
|
103
|
-
* @license
|
|
104
|
-
* Copyright 2017 Google LLC
|
|
105
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const e$H=(X,W,J)=>(J.configurable=!0,J.enumerable=!0,Reflect.decorate&&typeof W!="object"&&Object.defineProperty(X,W,J),J);/**
|
|
107
|
-
* @license
|
|
108
|
-
* Copyright 2017 Google LLC
|
|
109
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/function e$G(X,W){return(J,te,re)=>{const ne=oe=>{var de;return((de=oe.renderRoot)==null?void 0:de.querySelector(X))??null};return e$H(J,te,{get(){return ne(this)}})}}const styles$i=":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$h=X=>{var W;return ke$1`
|
|
102
|
+
*/function r$G(X){return n$v({...X,state:!0,attribute:!1})}const styles$g=":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$h=X=>{var W;return ke$1`
|
|
111
103
|
<div class="container">
|
|
112
104
|
<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>
|
|
113
105
|
<h1>${(W=X.error)==null?void 0:W.message}</h1>
|
|
114
106
|
</div>
|
|
115
|
-
`};var __defProp$
|
|
116
|
-
${r$J(styles$
|
|
117
|
-
`,__decorateClass$r([n$v()],PrimariaErrorView.prototype,"error",2),PrimariaErrorView=__decorateClass$r([t$k("primaria-error-view")],PrimariaErrorView);const y$f=X=>j$2(X,p$h);let a$n=class{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(W,J){this.regions[W]=[...this.regions[W]||[],J]}unregisterRegion(W,J){this.regions[W]=this.getRegionsByName(W).filter(te=>te!==J)}registerView(W,J,te){this.viewsByRegion[W]=[...this.viewsByRegion[W]||[],{key:J,view:te}]}getRegisteredViews(W){return this.viewsByRegion[W]||[]}getRegionsByName(W){return this.regions[W]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}},n$u=class hi{constructor(W){this._viewRegistry=W,this._regions={}}add(W,J){if(this.getRegion(W))throw new Error("A region with the same name already exists");return this._regions[W]=J,this._viewRegistry.registerRegion(W,J),this}getRegion(W){return this._regions[W]}remove(W){let J,te="";return typeof W=="string"?(J=this.getRegion(W),te=W,delete this._regions[W]):typeof W=="object"&&(te=Object.keys(this._regions).find(re=>this._regions[re]===W),te&&(J=W,delete this._regions[te])),te&&J&&this._viewRegistry.unregisterRegion(te,J),J}addViewToRegion(W,J,te){const re=this.getRegion(W);if(!re)throw new Error(`Couldn't find a region with name: ${W}`);return re.addView(J,te),this}registerViewWithRegion(W,J,te){return this._viewRegistry.registerView(W,J,te),this._viewRegistry.getRegionsByName(W).forEach(re=>re.addView(J,te)),this}getRegisteredViews(W){return this._viewRegistry.getRegisteredViews(W)}clear(){return Object.values(this._viewRegistry.regions).forEach(W=>{W!=null&&W.length&&Object.keys(W[0].views).forEach(J=>{var te;return(te=W[0])==null?void 0:te.removeView(J)})}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(W=>this.remove(W[0])),this._regions={},this}createRegionManager(){return new hi(this._viewRegistry)}},h$m=class extends n$u{constructor(W){const J=new a$n;super(J),this._name=W}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}};const x$5=X=>new h$m(X),c$l=X=>X.importer(),l$n=X=>async(W,J)=>{try{const te=await c$l(W);console.debug("imported plugin: ",W.pluginId);const re=J(W);return await X(re)(te),console.debug("initialized plugin: ",W.pluginId),{dispose:()=>w$4(re)(te)}}catch(te){console.error(te)}},u$r=X=>W=>W.initialize(X),w$4=X=>W=>W.dispose(X),v$a=async(X,W)=>{if(!(X!=null&&X.length))throw new Error("No plugins to bootstrap");const J=te=>l$n(u$r)(te,W);return(await Promise.allSettled(X.map(J))).map(te=>te.status==="fulfilled"?te.value:null)},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"},clinicalMonitoringRegions={sidebar:"widgets-sidebar-region",header:"header-widgets-region",content:"content-widgets-region"},shellEvents={openClinicalMonitoringRequested:"openClinicalMonitoringRequested",appCrashed:"appCrashed",mainViewChanged:"mainViewChanged",refreshTokenFailed:"refreshTokenFailed"};class RegionManagerProxy{constructor(W,J,te){this.pluginInfo=W,this.regionManager=J,this.broker=te}registerView(W,J){return this.regionManager.registerViewWithRegion(W,`${this.pluginInfo.pluginId}::${J.id}`,J),Promise.resolve()}removeView(W,J){return this.regionManager.getRegion(W).removeView(`${this.pluginInfo.pluginId}::${J}`),Promise.resolve()}activateView(W,J){return this.regionManager.getRegion(W).activate(`${this.pluginInfo.pluginId}::${J}`),W===shellRegions.main&&this._notifyMainViewChanged(J),Promise.resolve()}deactivateView(W,J){return this.regionManager.getRegion(W).deactivate(`${this.pluginInfo.pluginId}::${J}`),Promise.resolve()}getRegion(W){return Promise.resolve(this.regionManager.getRegion(W))}containsView(W,J){const te=this.regionManager.getRegion(W);return Promise.resolve(te==null?void 0:te.containsView(`${this.pluginInfo.pluginId}::${J}`))}isViewActive(W,J){const te=this.regionManager.getRegion(W);return Promise.resolve(te==null?void 0:te.isViewActive(`${this.pluginInfo.pluginId}::${J}`))}registerQuickAction(W){return this.regionManager.registerViewWithRegion(shellRegions.quickActions,`${this.pluginInfo.pluginId}::${W.id}`,W),Promise.resolve()}registerNavigationMenu(W){return this.regionManager.registerViewWithRegion(shellRegions.navigationMenu,`${this.pluginInfo.pluginId}::${W.id}`,W),Promise.resolve()}registerMainView(W){return this.regionManager.registerViewWithRegion(shellRegions.main,`${this.pluginInfo.pluginId}::${W.id}`,W),Promise.resolve()}activateMainView(W){return this.regionManager.getRegion(shellRegions.main).activate(`${this.pluginInfo.pluginId}::${W}`),this._notifyMainViewChanged(W),Promise.resolve()}getCurrentMainViewActive(){const W=this.regionManager.getRegion(shellRegions.main).currentActiveViews[0];return W==null?void 0:W.id}_notifyMainViewChanged(W){this.broker.publish(shellEvents.mainViewChanged,{viewId:W})}}const createRegionManagerProxy=(X,W,J)=>new RegionManagerProxy(X,W,J);var __extends$2=function(){var X=function(W,J){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,re){te.__proto__=re}||function(te,re){for(var ne in re)Object.prototype.hasOwnProperty.call(re,ne)&&(te[ne]=re[ne])},X(W,J)};return function(W,J){if(typeof J!="function"&&J!==null)throw new TypeError("Class extends value "+String(J)+" is not a constructor or null");X(W,J);function te(){this.constructor=W}W.prototype=J===null?Object.create(J):(te.prototype=J.prototype,new te)}}(),__spreadArray$3=function(X,W,J){if(J||arguments.length===2)for(var te=0,re=W.length,ne;te<re;te++)(ne||!(te in W))&&(ne||(ne=Array.prototype.slice.call(W,0,te)),ne[te]=W[te]);return X.concat(ne||Array.prototype.slice.call(W))},OrderMappings=function(){function X(){this._mappings=[]}return X.prototype.add=function(W){W.order!==0&&(W.order=this._mappings.length),this._mappings.push(W),this.onAdded(W)},X.prototype.clear=function(){this._mappings=[]},X}();function byOrder(X,W){return(W.order||0)-(X.order||0)}var NotificationMappings=function(X){__extends$2(W,X);function W(){return X!==null&&X.apply(this,arguments)||this}return W.prototype.onAdded=function(J){var te=J.handler.prototype.constructor.name;mediatorSettings.resolver.add(te,J.handler)},W.prototype.setOrder=function(J,te){for(var re=this.getAll(J),ne=0,oe=re;ne<oe.length;ne++){var de=oe[ne];de.order=te.indexOf(de.handler)}},W.prototype.getAll=function(J){var te=this._mappings.filter(function(re){return re.notification===J});if(te.length===0)throw new Error("Cannot find notification handler with key: ".concat(J.prototype.name));return te.sort(byOrder)},W}(OrderMappings),BehaviorMappings=function(X){__extends$2(W,X);function W(){return X!==null&&X.apply(this,arguments)||this}return W.prototype.onAdded=function(J){var te=J.behavior.prototype.constructor.name;mediatorSettings.resolver.add(te,J.behavior)},W.prototype.setOrder=function(J){for(var te=this.getAll(),re=0,ne=te;re<ne.length;re++){var oe=ne[re];oe.order=J.indexOf(oe.behavior)}},W.prototype.getAll=function(){var J=__spreadArray$3([],this._mappings,!0);return J.sort(byOrder)},W}(OrderMappings),Dispatcher=function(){function X(){this._notifications=new NotificationMappings,this._behaviors=new BehaviorMappings}return Object.defineProperty(X.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"behaviors",{get:function(){return this._behaviors},enumerable:!1,configurable:!0}),X}(),HandlerInstance=function(){function X(W,J){this._name=W,this._value=J}return Object.defineProperty(X.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),X}(),Resolver=function(){function X(){this._instances=[]}return X.prototype.resolve=function(W){var J=this._instances.find(function(re){return re.name===W});if(!J)throw new Error("Cannot find element with key: ".concat(W));var te=J.value;return new te},X.prototype.add=function(W,J){var te=this._instances.find(function(re){return re.name===W});if(te===void 0)this._instances.push(new HandlerInstance(W,J));else throw new Error("The key ".concat(W," is already been added"))},X.prototype.remove=function(W){var J=this._instances.findIndex(function(te){return te.name===W});J>=0&&this._instances.splice(J,1)},X.prototype.clear=function(){this._instances=[]},X}(),MediatrSettings=function(){function X(){this.resolver=new Resolver,this.dispatcher=new Dispatcher}return X}(),mediatorSettings=new MediatrSettings,requestHandler=function(X){return function(W){var J=X.prototype.constructor.name;mediatorSettings.resolver.add(J,W)}},notificationHandler=function(X){return function(W){mediatorSettings.dispatcher.notifications.add({notification:X,handler:W})}},__awaiter$4=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator$4=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;oe&&(oe=0,ue[0]&&(J=0)),J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},Mediator=function(){function X(){}return X.prototype.send=function(W){return __awaiter$4(this,void 0,void 0,function(){var J,te,re,ne,oe,de=this;return __generator$4(this,function(he){switch(he.label){case 0:return J=W.constructor.name,te=mediatorSettings.resolver.resolve(J),re=mediatorSettings.dispatcher.behaviors.getAll().map(function(ue){return ue.behavior}),ne=0,oe=function(){return __awaiter$4(de,void 0,void 0,function(){var ue,ce;return __generator$4(this,function(pe){switch(pe.label){case 0:return ne<re.length?(ue=re[ne],ce=mediatorSettings.resolver.resolve(ue.name),ne++,[4,ce.handle(W,oe)]):[3,2];case 1:return[2,pe.sent()];case 2:return[4,te.handle(W)];case 3:return[2,pe.sent()]}})})},[4,oe()];case 1:return[2,he.sent()]}})})},X.prototype.publish=function(W){return __awaiter$4(this,void 0,void 0,function(){var J,te=this;return __generator$4(this,function(re){switch(re.label){case 0:return J=mediatorSettings.dispatcher.notifications.getAll(W.constructor),[4,Promise.all(J.map(function(ne){return __awaiter$4(te,void 0,void 0,function(){var oe;return __generator$4(this,function(de){return oe=mediatorSettings.resolver.resolve(ne.handler.name),[2,oe.handle(W)]})})}))];case 1:return re.sent(),[2]}})})},X}();const disposableFactory=X=>({dispose:()=>{mediatorSettings.resolver.remove(X.name);const W=mediatorSettings.dispatcher.notifications._mappings.findIndex(J=>J.handler.name===X.name);W>-1&&mediatorSettings.dispatcher.notifications._mappings.splice(W,1)}});class Broker{constructor(){this.eventConstructorMap=new Map,this.requestConstructorMap=new Map,this.mediator=new Mediator,mediatorSettings.resolver.clear()}send(W,J){const te=typeof W=="string"?this.getRequest(W,J):W;return this.mediator.send(te)}publish(W,J){const te=typeof W=="string"?this.getEvent(W,J):W,re=te.constructor||Object.getPrototypeOf(te).constructor;return mediatorSettings.dispatcher.notifications._mappings.filter(oe=>oe.notification===re).length?this.mediator.publish(te):Promise.resolve()}subscribe(W,J){const te=typeof W=="function"?W:this.getEventType(W),re=createDynamicEventHandler(J);return notificationHandler(te)(re),disposableFactory(re)}registerRequest(W,J){const te=typeof W=="function"?W:this.getRequestType(W),re=createDynamicRequestHandler(J);return requestHandler(te)(re),disposableFactory(re)}getEvent(W,J){const te=this.getEventType(W);return new te(J)}getRequest(W,J){const te=this.getRequestType(W);return new te(J)}getEventType(W){if(!this.eventConstructorMap.has(W)){const J=createDynamicEventClass(W);this.eventConstructorMap.set(W,J)}return this.eventConstructorMap.get(W)}getRequestType(W){if(!this.requestConstructorMap.has(W)){const J=createDynamicRequestClass(W);this.requestConstructorMap.set(W,J)}return this.requestConstructorMap.get(W)}}const createDynamicEventClass=X=>createDynamicMessageClass(X,"Event"),createDynamicRequestClass=X=>createDynamicMessageClass(X,"Request"),createDynamicMessageClass=(X,W)=>new Function(`return class ${W}_${X} {
|
|
107
|
+
`};var __defProp$o=Object.defineProperty,__getOwnPropDesc$o=Object.getOwnPropertyDescriptor,__decorateClass$o=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$o(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$o(W,J,re),re};let PrimariaErrorView=class extends h$n{render(){return ke$1`${template$h(this)}`}};PrimariaErrorView.styles=i$w`
|
|
108
|
+
${r$J(styles$g)}
|
|
109
|
+
`,__decorateClass$o([n$v()],PrimariaErrorView.prototype,"error",2),PrimariaErrorView=__decorateClass$o([t$k("primaria-error-view")],PrimariaErrorView);const y$f=X=>j$2(X,p$h);let a$n=class{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(W,J){this.regions[W]=[...this.regions[W]||[],J]}unregisterRegion(W,J){this.regions[W]=this.getRegionsByName(W).filter(te=>te!==J)}registerView(W,J,te){this.viewsByRegion[W]=[...this.viewsByRegion[W]||[],{key:J,view:te}]}getRegisteredViews(W){return this.viewsByRegion[W]||[]}getRegionsByName(W){return this.regions[W]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}},n$u=class hi{constructor(W){this._viewRegistry=W,this._regions={}}add(W,J){if(this.getRegion(W))throw new Error("A region with the same name already exists");return this._regions[W]=J,this._viewRegistry.registerRegion(W,J),this}getRegion(W){return this._regions[W]}remove(W){let J,te="";return typeof W=="string"?(J=this.getRegion(W),te=W,delete this._regions[W]):typeof W=="object"&&(te=Object.keys(this._regions).find(re=>this._regions[re]===W),te&&(J=W,delete this._regions[te])),te&&J&&this._viewRegistry.unregisterRegion(te,J),J}addViewToRegion(W,J,te){const re=this.getRegion(W);if(!re)throw new Error(`Couldn't find a region with name: ${W}`);return re.addView(J,te),this}registerViewWithRegion(W,J,te){return this._viewRegistry.registerView(W,J,te),this._viewRegistry.getRegionsByName(W).forEach(re=>re.addView(J,te)),this}getRegisteredViews(W){return this._viewRegistry.getRegisteredViews(W)}clear(){return Object.values(this._viewRegistry.regions).forEach(W=>{W!=null&&W.length&&Object.keys(W[0].views).forEach(J=>{var te;return(te=W[0])==null?void 0:te.removeView(J)})}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(W=>this.remove(W[0])),this._regions={},this}createRegionManager(){return new hi(this._viewRegistry)}},h$m=class extends n$u{constructor(W){const J=new a$n;super(J),this._name=W}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}};const x$5=X=>new h$m(X),c$l=X=>X.importer(),l$n=X=>async(W,J)=>{try{const te=await c$l(W);console.debug("imported plugin: ",W.pluginId);const re=J(W);return await X(re)(te),console.debug("initialized plugin: ",W.pluginId),{dispose:()=>w$4(re)(te)}}catch(te){console.error(te)}},u$r=X=>W=>W.initialize(X),w$4=X=>W=>W.dispose(X),v$a=async(X,W)=>{if(!(X!=null&&X.length))throw new Error("No plugins to bootstrap");const J=te=>l$n(u$r)(te,W);return(await Promise.allSettled(X.map(J))).map(te=>te.status==="fulfilled"?te.value:null)},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"},clinicalMonitoringRegions={sidebar:"widgets-sidebar-region",header:"header-widgets-region",content:"content-widgets-region"},shellEvents={openClinicalMonitoringRequested:"openClinicalMonitoringRequested",appCrashed:"appCrashed",mainViewChanged:"mainViewChanged",refreshTokenFailed:"refreshTokenFailed",mpidHeaderInvalid:"mpidHeaderInvalid"};class RegionManagerProxy{constructor(W,J,te){this.pluginInfo=W,this.regionManager=J,this.broker=te}registerView(W,J){return this.regionManager.registerViewWithRegion(W,`${this.pluginInfo.pluginId}::${J.id}`,J),Promise.resolve()}removeView(W,J){return this.regionManager.getRegion(W).removeView(`${this.pluginInfo.pluginId}::${J}`),Promise.resolve()}activateView(W,J){return this.regionManager.getRegion(W).activate(`${this.pluginInfo.pluginId}::${J}`),W===shellRegions.main&&this._notifyMainViewChanged(J),Promise.resolve()}deactivateView(W,J){return this.regionManager.getRegion(W).deactivate(`${this.pluginInfo.pluginId}::${J}`),Promise.resolve()}getRegion(W){return Promise.resolve(this.regionManager.getRegion(W))}containsView(W,J){const te=this.regionManager.getRegion(W);return Promise.resolve(te==null?void 0:te.containsView(`${this.pluginInfo.pluginId}::${J}`))}isViewActive(W,J){const te=this.regionManager.getRegion(W);return Promise.resolve(te==null?void 0:te.isViewActive(`${this.pluginInfo.pluginId}::${J}`))}registerQuickAction(W){return this.regionManager.registerViewWithRegion(shellRegions.quickActions,`${this.pluginInfo.pluginId}::${W.id}`,W),Promise.resolve()}registerNavigationMenu(W){return this.regionManager.registerViewWithRegion(shellRegions.navigationMenu,`${this.pluginInfo.pluginId}::${W.id}`,W),Promise.resolve()}registerMainView(W){return this.regionManager.registerViewWithRegion(shellRegions.main,`${this.pluginInfo.pluginId}::${W.id}`,W),Promise.resolve()}activateMainView(W){return this.regionManager.getRegion(shellRegions.main).activate(`${this.pluginInfo.pluginId}::${W}`),this._notifyMainViewChanged(W),Promise.resolve()}getCurrentMainViewActive(){const W=this.regionManager.getRegion(shellRegions.main).currentActiveViews[0];return W==null?void 0:W.id}_notifyMainViewChanged(W){this.broker.publish(shellEvents.mainViewChanged,{viewId:W})}_destroy(){this.regionManager.destroy()}}const createRegionManagerProxy=(X,W,J)=>new RegionManagerProxy(X,W,J);var __extends$2=function(){var X=function(W,J){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,re){te.__proto__=re}||function(te,re){for(var ne in re)Object.prototype.hasOwnProperty.call(re,ne)&&(te[ne]=re[ne])},X(W,J)};return function(W,J){if(typeof J!="function"&&J!==null)throw new TypeError("Class extends value "+String(J)+" is not a constructor or null");X(W,J);function te(){this.constructor=W}W.prototype=J===null?Object.create(J):(te.prototype=J.prototype,new te)}}(),__spreadArray$3=function(X,W,J){if(J||arguments.length===2)for(var te=0,re=W.length,ne;te<re;te++)(ne||!(te in W))&&(ne||(ne=Array.prototype.slice.call(W,0,te)),ne[te]=W[te]);return X.concat(ne||Array.prototype.slice.call(W))},OrderMappings=function(){function X(){this._mappings=[]}return X.prototype.add=function(W){W.order!==0&&(W.order=this._mappings.length),this._mappings.push(W),this.onAdded(W)},X.prototype.clear=function(){this._mappings=[]},X}();function byOrder(X,W){return(W.order||0)-(X.order||0)}var NotificationMappings=function(X){__extends$2(W,X);function W(){return X!==null&&X.apply(this,arguments)||this}return W.prototype.onAdded=function(J){var te=J.handler.prototype.constructor.name;mediatorSettings.resolver.add(te,J.handler)},W.prototype.setOrder=function(J,te){for(var re=this.getAll(J),ne=0,oe=re;ne<oe.length;ne++){var de=oe[ne];de.order=te.indexOf(de.handler)}},W.prototype.getAll=function(J){var te=this._mappings.filter(function(re){return re.notification===J});if(te.length===0)throw new Error("Cannot find notification handler with key: ".concat(J.prototype.name));return te.sort(byOrder)},W}(OrderMappings),BehaviorMappings=function(X){__extends$2(W,X);function W(){return X!==null&&X.apply(this,arguments)||this}return W.prototype.onAdded=function(J){var te=J.behavior.prototype.constructor.name;mediatorSettings.resolver.add(te,J.behavior)},W.prototype.setOrder=function(J){for(var te=this.getAll(),re=0,ne=te;re<ne.length;re++){var oe=ne[re];oe.order=J.indexOf(oe.behavior)}},W.prototype.getAll=function(){var J=__spreadArray$3([],this._mappings,!0);return J.sort(byOrder)},W}(OrderMappings),Dispatcher=function(){function X(){this._notifications=new NotificationMappings,this._behaviors=new BehaviorMappings}return Object.defineProperty(X.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"behaviors",{get:function(){return this._behaviors},enumerable:!1,configurable:!0}),X}(),HandlerInstance=function(){function X(W,J){this._name=W,this._value=J}return Object.defineProperty(X.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),X}(),Resolver=function(){function X(){this._instances=[]}return X.prototype.resolve=function(W){var J=this._instances.find(function(re){return re.name===W});if(!J)throw new Error("Cannot find element with key: ".concat(W));var te=J.value;return new te},X.prototype.add=function(W,J){var te=this._instances.find(function(re){return re.name===W});if(te===void 0)this._instances.push(new HandlerInstance(W,J));else throw new Error("The key ".concat(W," is already been added"))},X.prototype.remove=function(W){var J=this._instances.findIndex(function(te){return te.name===W});J>=0&&this._instances.splice(J,1)},X.prototype.clear=function(){this._instances=[]},X}(),MediatrSettings=function(){function X(){this.resolver=new Resolver,this.dispatcher=new Dispatcher}return X}(),mediatorSettings=new MediatrSettings,requestHandler=function(X){return function(W){var J=X.prototype.constructor.name;mediatorSettings.resolver.add(J,W)}},notificationHandler=function(X){return function(W){mediatorSettings.dispatcher.notifications.add({notification:X,handler:W})}},__awaiter$4=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator$4=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;oe&&(oe=0,ue[0]&&(J=0)),J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},Mediator=function(){function X(){}return X.prototype.send=function(W){return __awaiter$4(this,void 0,void 0,function(){var J,te,re,ne,oe,de=this;return __generator$4(this,function(he){switch(he.label){case 0:return J=W.constructor.name,te=mediatorSettings.resolver.resolve(J),re=mediatorSettings.dispatcher.behaviors.getAll().map(function(ue){return ue.behavior}),ne=0,oe=function(){return __awaiter$4(de,void 0,void 0,function(){var ue,ce;return __generator$4(this,function(pe){switch(pe.label){case 0:return ne<re.length?(ue=re[ne],ce=mediatorSettings.resolver.resolve(ue.name),ne++,[4,ce.handle(W,oe)]):[3,2];case 1:return[2,pe.sent()];case 2:return[4,te.handle(W)];case 3:return[2,pe.sent()]}})})},[4,oe()];case 1:return[2,he.sent()]}})})},X.prototype.publish=function(W){return __awaiter$4(this,void 0,void 0,function(){var J,te=this;return __generator$4(this,function(re){switch(re.label){case 0:return J=mediatorSettings.dispatcher.notifications.getAll(W.constructor),[4,Promise.all(J.map(function(ne){return __awaiter$4(te,void 0,void 0,function(){var oe;return __generator$4(this,function(de){return oe=mediatorSettings.resolver.resolve(ne.handler.name),[2,oe.handle(W)]})})}))];case 1:return re.sent(),[2]}})})},X}();const disposableFactory=X=>({dispose:()=>{mediatorSettings.resolver.remove(X.name);const W=mediatorSettings.dispatcher.notifications._mappings.findIndex(J=>J.handler.name===X.name);W>-1&&mediatorSettings.dispatcher.notifications._mappings.splice(W,1)}});class Broker{constructor(){this.eventConstructorMap=new Map,this.requestConstructorMap=new Map,this.mediator=new Mediator,mediatorSettings.resolver.clear()}send(W,J){const te=typeof W=="string"?this.getRequest(W,J):W;return this.mediator.send(te)}publish(W,J){const te=typeof W=="string"?this.getEvent(W,J):W,re=te.constructor||Object.getPrototypeOf(te).constructor;return mediatorSettings.dispatcher.notifications._mappings.filter(oe=>oe.notification===re).length?this.mediator.publish(te):Promise.resolve()}subscribe(W,J){const te=typeof W=="function"?W:this.getEventType(W),re=createDynamicEventHandler(J);return notificationHandler(te)(re),disposableFactory(re)}registerRequest(W,J){const te=typeof W=="function"?W:this.getRequestType(W),re=createDynamicRequestHandler(J);return requestHandler(te)(re),disposableFactory(re)}getEvent(W,J){const te=this.getEventType(W);return new te(J)}getRequest(W,J){const te=this.getRequestType(W);return new te(J)}getEventType(W){if(!this.eventConstructorMap.has(W)){const J=createDynamicEventClass(W);this.eventConstructorMap.set(W,J)}return this.eventConstructorMap.get(W)}getRequestType(W){if(!this.requestConstructorMap.has(W)){const J=createDynamicRequestClass(W);this.requestConstructorMap.set(W,J)}return this.requestConstructorMap.get(W)}}const createDynamicEventClass=X=>createDynamicMessageClass(X,"Event"),createDynamicRequestClass=X=>createDynamicMessageClass(X,"Request"),createDynamicMessageClass=(X,W)=>new Function(`return class ${W}_${X} {
|
|
118
110
|
constructor(payload) {
|
|
119
111
|
Object.assign(this, payload);
|
|
120
112
|
}
|
|
@@ -125,54 +117,53 @@
|
|
|
125
117
|
}
|
|
126
118
|
}`)(X)},createBroker=()=>new Broker;class PrimariaGlobalStateManagerImpl{constructor(W){this.broker=W,this.state={}}setData(W,J){this.state[W]=J,this.broker.publish("data_set",{key:W,value:J})}getData(W){return this.state[W]}clearData(){this.state={}}}const createGlobalStateManager=X=>new PrimariaGlobalStateManagerImpl(X);function bind$1(X,W){return function(){return X.apply(W,arguments)}}const{toString:toString$2}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,kindOf=(X=>W=>{const J=toString$2.call(W);return X[J]||(X[J]=J.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=X=>(X=X.toLowerCase(),W=>kindOf(W)===X),typeOfTest=X=>W=>typeof W===X,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(X){return X!==null&&!isUndefined(X)&&X.constructor!==null&&!isUndefined(X.constructor)&&isFunction(X.constructor.isBuffer)&&X.constructor.isBuffer(X)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(X){let W;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?W=ArrayBuffer.isView(X):W=X&&X.buffer&&isArrayBuffer(X.buffer),W}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=X=>X!==null&&typeof X=="object",isBoolean$1=X=>X===!0||X===!1,isPlainObject$2=X=>{if(kindOf(X)!=="object")return!1;const W=getPrototypeOf$1(X);return(W===null||W===Object.prototype||Object.getPrototypeOf(W)===null)&&!(Symbol.toStringTag in X)&&!(Symbol.iterator in X)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=X=>isObject(X)&&isFunction(X.pipe),isFormData=X=>{let W;return X&&(typeof FormData=="function"&&X instanceof FormData||isFunction(X.append)&&((W=kindOf(X))==="formdata"||W==="object"&&isFunction(X.toString)&&X.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=X=>X.trim?X.trim():X.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(X,W,{allOwnKeys:J=!1}={}){if(X===null||typeof X>"u")return;let te,re;if(typeof X!="object"&&(X=[X]),isArray(X))for(te=0,re=X.length;te<re;te++)W.call(null,X[te],te,X);else{const ne=J?Object.getOwnPropertyNames(X):Object.keys(X),oe=ne.length;let de;for(te=0;te<oe;te++)de=ne[te],W.call(null,X[de],de,X)}}function findKey$1(X,W){W=W.toLowerCase();const J=Object.keys(X);let te=J.length,re;for(;te-- >0;)if(re=J[te],W===re.toLowerCase())return re;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=X=>!isUndefined(X)&&X!==_global;function merge(){const{caseless:X}=isContextDefined(this)&&this||{},W={},J=(te,re)=>{const ne=X&&findKey$1(W,re)||re;isPlainObject$2(W[ne])&&isPlainObject$2(te)?W[ne]=merge(W[ne],te):isPlainObject$2(te)?W[ne]=merge({},te):isArray(te)?W[ne]=te.slice():W[ne]=te};for(let te=0,re=arguments.length;te<re;te++)arguments[te]&&forEach(arguments[te],J);return W}const extend=(X,W,J,{allOwnKeys:te}={})=>(forEach(W,(re,ne)=>{J&&isFunction(re)?X[ne]=bind$1(re,J):X[ne]=re},{allOwnKeys:te}),X),stripBOM=X=>(X.charCodeAt(0)===65279&&(X=X.slice(1)),X),inherits=(X,W,J,te)=>{X.prototype=Object.create(W.prototype,te),X.prototype.constructor=X,Object.defineProperty(X,"super",{value:W.prototype}),J&&Object.assign(X.prototype,J)},toFlatObject=(X,W,J,te)=>{let re,ne,oe;const de={};if(W=W||{},X==null)return W;do{for(re=Object.getOwnPropertyNames(X),ne=re.length;ne-- >0;)oe=re[ne],(!te||te(oe,X,W))&&!de[oe]&&(W[oe]=X[oe],de[oe]=!0);X=J!==!1&&getPrototypeOf$1(X)}while(X&&(!J||J(X,W))&&X!==Object.prototype);return W},endsWith=(X,W,J)=>{X=String(X),(J===void 0||J>X.length)&&(J=X.length),J-=W.length;const te=X.indexOf(W,J);return te!==-1&&te===J},toArray=X=>{if(!X)return null;if(isArray(X))return X;let W=X.length;if(!isNumber(W))return null;const J=new Array(W);for(;W-- >0;)J[W]=X[W];return J},isTypedArray=(X=>W=>X&&W instanceof X)(typeof Uint8Array<"u"&&getPrototypeOf$1(Uint8Array)),forEachEntry=(X,W)=>{const te=(X&&X[Symbol.iterator]).call(X);let re;for(;(re=te.next())&&!re.done;){const ne=re.value;W.call(X,ne[0],ne[1])}},matchAll=(X,W)=>{let J;const te=[];for(;(J=X.exec(W))!==null;)te.push(J);return te},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=X=>X.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(J,te,re){return te.toUpperCase()+re}),hasOwnProperty=(({hasOwnProperty:X})=>(W,J)=>X.call(W,J))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(X,W)=>{const J=Object.getOwnPropertyDescriptors(X),te={};forEach(J,(re,ne)=>{let oe;(oe=W(re,ne,X))!==!1&&(te[ne]=oe||re)}),Object.defineProperties(X,te)},freezeMethods=X=>{reduceDescriptors(X,(W,J)=>{if(isFunction(X)&&["arguments","caller","callee"].indexOf(J)!==-1)return!1;const te=X[J];if(isFunction(te)){if(W.enumerable=!1,"writable"in W){W.writable=!1;return}W.set||(W.set=()=>{throw Error("Can not rewrite read-only method '"+J+"'")})}})},toObjectSet=(X,W)=>{const J={},te=re=>{re.forEach(ne=>{J[ne]=!0})};return isArray(X)?te(X):te(String(X).split(W)),J},noop$1=()=>{},toFiniteNumber=(X,W)=>X!=null&&Number.isFinite(X=+X)?X:W,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(X=16,W=ALPHABET.ALPHA_DIGIT)=>{let J="";const{length:te}=W;for(;X--;)J+=W[Math.random()*te|0];return J};function isSpecCompliantForm(X){return!!(X&&isFunction(X.append)&&X[Symbol.toStringTag]==="FormData"&&X[Symbol.iterator])}const toJSONObject=X=>{const W=new Array(10),J=(te,re)=>{if(isObject(te)){if(W.indexOf(te)>=0)return;if(!("toJSON"in te)){W[re]=te;const ne=isArray(te)?[]:{};return forEach(te,(oe,de)=>{const he=J(oe,re+1);!isUndefined(he)&&(ne[de]=he)}),W[re]=void 0,ne}}return te};return J(X,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=X=>X&&(isObject(X)||isFunction(X))&&isFunction(X.then)&&isFunction(X.catch),_setImmediate=((X,W)=>X?setImmediate:W?((J,te)=>(_global.addEventListener("message",({source:re,data:ne})=>{re===_global&&ne===J&&te.length&&te.shift()()},!1),re=>{te.push(re),_global.postMessage(J,"*")}))(`axios@${Math.random()}`,[]):J=>setTimeout(J))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean:isBoolean$1,isObject,isPlainObject:isPlainObject$2,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey:findKey$1,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(X,W,J,te,re){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=X,this.name="AxiosError",W&&(this.code=W),J&&(this.config=J),te&&(this.request=te),re&&(this.response=re,this.status=re.status?re.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(X=>{descriptors[X]={value:X}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(X,W,J,te,re,ne)=>{const oe=Object.create(prototype$1);return utils$1.toFlatObject(X,oe,function(he){return he!==Error.prototype},de=>de!=="isAxiosError"),AxiosError.call(oe,X.message,W,J,te,re),oe.cause=X,oe.name=X.name,ne&&Object.assign(oe,ne),oe};const httpAdapter=null;function isVisitable(X){return utils$1.isPlainObject(X)||utils$1.isArray(X)}function removeBrackets(X){return utils$1.endsWith(X,"[]")?X.slice(0,-2):X}function renderKey(X,W,J){return X?X.concat(W).map(function(re,ne){return re=removeBrackets(re),!J&&ne?"["+re+"]":re}).join(J?".":""):W}function isFlatArray(X){return utils$1.isArray(X)&&!X.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(W){return/^is[A-Z]/.test(W)});function toFormData(X,W,J){if(!utils$1.isObject(X))throw new TypeError("target must be an object");W=W||new FormData,J=utils$1.toFlatObject(J,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ve,be){return!utils$1.isUndefined(be[ve])});const te=J.metaTokens,re=J.visitor||ce,ne=J.dots,oe=J.indexes,he=(J.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(W);if(!utils$1.isFunction(re))throw new TypeError("visitor must be a function");function ue(me){if(me===null)return"";if(utils$1.isDate(me))return me.toISOString();if(!he&&utils$1.isBlob(me))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(me)||utils$1.isTypedArray(me)?he&&typeof Blob=="function"?new Blob([me]):Buffer.from(me):me}function ce(me,ve,be){let ye=me;if(me&&!be&&typeof me=="object"){if(utils$1.endsWith(ve,"{}"))ve=te?ve:ve.slice(0,-2),me=JSON.stringify(me);else if(utils$1.isArray(me)&&isFlatArray(me)||(utils$1.isFileList(me)||utils$1.endsWith(ve,"[]"))&&(ye=utils$1.toArray(me)))return ve=removeBrackets(ve),ye.forEach(function(Se,_e){!(utils$1.isUndefined(Se)||Se===null)&&W.append(oe===!0?renderKey([ve],_e,ne):oe===null?ve:ve+"[]",ue(Se))}),!1}return isVisitable(me)?!0:(W.append(renderKey(be,ve,ne),ue(me)),!1)}const pe=[],fe=Object.assign(predicates,{defaultVisitor:ce,convertValue:ue,isVisitable});function ge(me,ve){if(!utils$1.isUndefined(me)){if(pe.indexOf(me)!==-1)throw Error("Circular reference detected in "+ve.join("."));pe.push(me),utils$1.forEach(me,function(ye,we){(!(utils$1.isUndefined(ye)||ye===null)&&re.call(W,ye,utils$1.isString(we)?we.trim():we,ve,fe))===!0&&ge(ye,ve?ve.concat(we):[we])}),pe.pop()}}if(!utils$1.isObject(X))throw new TypeError("data must be an object");return ge(X),W}function encode$1(X){const W={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(X).replace(/[!'()~]|%20|%00/g,function(te){return W[te]})}function AxiosURLSearchParams(X,W){this._pairs=[],X&&toFormData(X,this,W)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(W,J){this._pairs.push([W,J])},prototype.toString=function(W){const J=W?function(te){return W.call(this,te,encode$1)}:encode$1;return this._pairs.map(function(re){return J(re[0])+"="+J(re[1])},"").join("&")};function encode(X){return encodeURIComponent(X).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(X,W,J){if(!W)return X;const te=J&&J.encode||encode,re=J&&J.serialize;let ne;if(re?ne=re(W,J):ne=utils$1.isURLSearchParams(W)?W.toString():new AxiosURLSearchParams(W,J).toString(te),ne){const oe=X.indexOf("#");oe!==-1&&(X=X.slice(0,oe)),X+=(X.indexOf("?")===-1?"?":"&")+ne}return X}class InterceptorManager{constructor(){this.handlers=[]}use(W,J,te){return this.handlers.push({fulfilled:W,rejected:J,synchronous:te?te.synchronous:!1,runWhen:te?te.runWhen:null}),this.handlers.length-1}eject(W){this.handlers[W]&&(this.handlers[W]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(W){utils$1.forEach(this.handlers,function(te){te!==null&&W(te)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(X,W){return toFormData(X,new platform.classes.URLSearchParams,Object.assign({visitor:function(J,te,re,ne){return platform.isNode&&utils$1.isBuffer(J)?(this.append(te,J.toString("base64")),!1):ne.defaultVisitor.apply(this,arguments)}},W))}function parsePropPath(X){return utils$1.matchAll(/\w+|\[(\w*)]/g,X).map(W=>W[0]==="[]"?"":W[1]||W[0])}function arrayToObject(X){const W={},J=Object.keys(X);let te;const re=J.length;let ne;for(te=0;te<re;te++)ne=J[te],W[ne]=X[ne];return W}function formDataToJSON(X){function W(J,te,re,ne){let oe=J[ne++];if(oe==="__proto__")return!0;const de=Number.isFinite(+oe),he=ne>=J.length;return oe=!oe&&utils$1.isArray(re)?re.length:oe,he?(utils$1.hasOwnProp(re,oe)?re[oe]=[re[oe],te]:re[oe]=te,!de):((!re[oe]||!utils$1.isObject(re[oe]))&&(re[oe]=[]),W(J,te,re[oe],ne)&&utils$1.isArray(re[oe])&&(re[oe]=arrayToObject(re[oe])),!de)}if(utils$1.isFormData(X)&&utils$1.isFunction(X.entries)){const J={};return utils$1.forEachEntry(X,(te,re)=>{W(parsePropPath(te),re,J,0)}),J}return null}function stringifySafely(X,W,J){if(utils$1.isString(X))try{return(W||JSON.parse)(X),utils$1.trim(X)}catch(te){if(te.name!=="SyntaxError")throw te}return(J||JSON.stringify)(X)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(W,J){const te=J.getContentType()||"",re=te.indexOf("application/json")>-1,ne=utils$1.isObject(W);if(ne&&utils$1.isHTMLForm(W)&&(W=new FormData(W)),utils$1.isFormData(W))return re?JSON.stringify(formDataToJSON(W)):W;if(utils$1.isArrayBuffer(W)||utils$1.isBuffer(W)||utils$1.isStream(W)||utils$1.isFile(W)||utils$1.isBlob(W)||utils$1.isReadableStream(W))return W;if(utils$1.isArrayBufferView(W))return W.buffer;if(utils$1.isURLSearchParams(W))return J.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),W.toString();let de;if(ne){if(te.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(W,this.formSerializer).toString();if((de=utils$1.isFileList(W))||te.indexOf("multipart/form-data")>-1){const he=this.env&&this.env.FormData;return toFormData(de?{"files[]":W}:W,he&&new he,this.formSerializer)}}return ne||re?(J.setContentType("application/json",!1),stringifySafely(W)):W}],transformResponse:[function(W){const J=this.transitional||defaults.transitional,te=J&&J.forcedJSONParsing,re=this.responseType==="json";if(utils$1.isResponse(W)||utils$1.isReadableStream(W))return W;if(W&&utils$1.isString(W)&&(te&&!this.responseType||re)){const oe=!(J&&J.silentJSONParsing)&&re;try{return JSON.parse(W)}catch(de){if(oe)throw de.name==="SyntaxError"?AxiosError.from(de,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):de}}return W}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(W){return W>=200&&W<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],X=>{defaults.headers[X]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=X=>{const W={};let J,te,re;return X&&X.split(`
|
|
127
119
|
`).forEach(function(oe){re=oe.indexOf(":"),J=oe.substring(0,re).trim().toLowerCase(),te=oe.substring(re+1).trim(),!(!J||W[J]&&ignoreDuplicateOf[J])&&(J==="set-cookie"?W[J]?W[J].push(te):W[J]=[te]:W[J]=W[J]?W[J]+", "+te:te)}),W},$internals=Symbol("internals");function normalizeHeader(X){return X&&String(X).trim().toLowerCase()}function normalizeValue(X){return X===!1||X==null?X:utils$1.isArray(X)?X.map(normalizeValue):String(X)}function parseTokens(X){const W=Object.create(null),J=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let te;for(;te=J.exec(X);)W[te[1]]=te[2];return W}const isValidHeaderName=X=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(X.trim());function matchHeaderValue(X,W,J,te,re){if(utils$1.isFunction(te))return te.call(this,W,J);if(re&&(W=J),!!utils$1.isString(W)){if(utils$1.isString(te))return W.indexOf(te)!==-1;if(utils$1.isRegExp(te))return te.test(W)}}function formatHeader(X){return X.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(W,J,te)=>J.toUpperCase()+te)}function buildAccessors(X,W){const J=utils$1.toCamelCase(" "+W);["get","set","has"].forEach(te=>{Object.defineProperty(X,te+J,{value:function(re,ne,oe){return this[te].call(this,W,re,ne,oe)},configurable:!0})})}class AxiosHeaders{constructor(W){W&&this.set(W)}set(W,J,te){const re=this;function ne(de,he,ue){const ce=normalizeHeader(he);if(!ce)throw new Error("header name must be a non-empty string");const pe=utils$1.findKey(re,ce);(!pe||re[pe]===void 0||ue===!0||ue===void 0&&re[pe]!==!1)&&(re[pe||he]=normalizeValue(de))}const oe=(de,he)=>utils$1.forEach(de,(ue,ce)=>ne(ue,ce,he));if(utils$1.isPlainObject(W)||W instanceof this.constructor)oe(W,J);else if(utils$1.isString(W)&&(W=W.trim())&&!isValidHeaderName(W))oe(parseHeaders(W),J);else if(utils$1.isHeaders(W))for(const[de,he]of W.entries())ne(he,de,te);else W!=null&&ne(J,W,te);return this}get(W,J){if(W=normalizeHeader(W),W){const te=utils$1.findKey(this,W);if(te){const re=this[te];if(!J)return re;if(J===!0)return parseTokens(re);if(utils$1.isFunction(J))return J.call(this,re,te);if(utils$1.isRegExp(J))return J.exec(re);throw new TypeError("parser must be boolean|regexp|function")}}}has(W,J){if(W=normalizeHeader(W),W){const te=utils$1.findKey(this,W);return!!(te&&this[te]!==void 0&&(!J||matchHeaderValue(this,this[te],te,J)))}return!1}delete(W,J){const te=this;let re=!1;function ne(oe){if(oe=normalizeHeader(oe),oe){const de=utils$1.findKey(te,oe);de&&(!J||matchHeaderValue(te,te[de],de,J))&&(delete te[de],re=!0)}}return utils$1.isArray(W)?W.forEach(ne):ne(W),re}clear(W){const J=Object.keys(this);let te=J.length,re=!1;for(;te--;){const ne=J[te];(!W||matchHeaderValue(this,this[ne],ne,W,!0))&&(delete this[ne],re=!0)}return re}normalize(W){const J=this,te={};return utils$1.forEach(this,(re,ne)=>{const oe=utils$1.findKey(te,ne);if(oe){J[oe]=normalizeValue(re),delete J[ne];return}const de=W?formatHeader(ne):String(ne).trim();de!==ne&&delete J[ne],J[de]=normalizeValue(re),te[de]=!0}),this}concat(...W){return this.constructor.concat(this,...W)}toJSON(W){const J=Object.create(null);return utils$1.forEach(this,(te,re)=>{te!=null&&te!==!1&&(J[re]=W&&utils$1.isArray(te)?te.join(", "):te)}),J}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([W,J])=>W+": "+J).join(`
|
|
128
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(W){return W instanceof this?W:new this(W)}static concat(W,...J){const te=new this(W);return J.forEach(re=>te.set(re)),te}static accessor(W){const te=(this[$internals]=this[$internals]={accessors:{}}).accessors,re=this.prototype;function ne(oe){const de=normalizeHeader(oe);te[de]||(buildAccessors(re,oe),te[de]=!0)}return utils$1.isArray(W)?W.forEach(ne):ne(W),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:X},W)=>{let J=W[0].toUpperCase()+W.slice(1);return{get:()=>X,set(te){this[J]=te}}}),utils$1.freezeMethods(AxiosHeaders);function transformData(X,W){const J=this||defaults,te=W||J,re=AxiosHeaders.from(te.headers);let ne=te.data;return utils$1.forEach(X,function(de){ne=de.call(J,ne,re.normalize(),W?W.status:void 0)}),re.normalize(),ne}function isCancel(X){return!!(X&&X.__CANCEL__)}function CanceledError(X,W,J){AxiosError.call(this,X??"canceled",AxiosError.ERR_CANCELED,W,J),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(X,W,J){const te=J.config.validateStatus;!J.status||!te||te(J.status)?X(J):W(new AxiosError("Request failed with status code "+J.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(J.status/100)-4],J.config,J.request,J))}function parseProtocol(X){const W=/^([-+\w]{1,25})(:?\/\/|:)/.exec(X);return W&&W[1]||""}function speedometer(X,W){X=X||10;const J=new Array(X),te=new Array(X);let re=0,ne=0,oe;return W=W!==void 0?W:1e3,function(he){const ue=Date.now(),ce=te[ne];oe||(oe=ue),J[re]=he,te[re]=ue;let pe=ne,fe=0;for(;pe!==re;)fe+=J[pe++],pe=pe%X;if(re=(re+1)%X,re===ne&&(ne=(ne+1)%X),ue-oe<W)return;const ge=ce&&ue-ce;return ge?Math.round(fe*1e3/ge):void 0}}function throttle(X,W){let J=0,te=1e3/W,re,ne;const oe=(ue,ce=Date.now())=>{J=ce,re=null,ne&&(clearTimeout(ne),ne=null),X.apply(null,ue)};return[(...ue)=>{const ce=Date.now(),pe=ce-J;pe>=te?oe(ue,ce):(re=ue,ne||(ne=setTimeout(()=>{ne=null,oe(re)},te-pe)))},()=>re&&oe(re)]}const progressEventReducer=(X,W,J=3)=>{let te=0;const re=speedometer(50,250);return throttle(ne=>{const oe=ne.loaded,de=ne.lengthComputable?ne.total:void 0,he=oe-te,ue=re(he),ce=oe<=de;te=oe;const pe={loaded:oe,total:de,progress:de?oe/de:void 0,bytes:he,rate:ue||void 0,estimated:ue&&de&&ce?(de-oe)/ue:void 0,event:ne,lengthComputable:de!=null,[W?"download":"upload"]:!0};X(pe)},J)},progressEventDecorator=(X,W)=>{const J=X!=null;return[te=>W[0]({lengthComputable:J,total:X,loaded:te}),W[1]]},asyncDecorator=X=>(...W)=>utils$1.asap(()=>X(...W)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const W=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent),J=document.createElement("a");let te;function re(ne){let oe=ne;return W&&(J.setAttribute("href",oe),oe=J.href),J.setAttribute("href",oe),{href:J.href,protocol:J.protocol?J.protocol.replace(/:$/,""):"",host:J.host,search:J.search?J.search.replace(/^\?/,""):"",hash:J.hash?J.hash.replace(/^#/,""):"",hostname:J.hostname,port:J.port,pathname:J.pathname.charAt(0)==="/"?J.pathname:"/"+J.pathname}}return te=re(window.location.href),function(oe){const de=utils$1.isString(oe)?re(oe):oe;return de.protocol===te.protocol&&de.host===te.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(X,W,J,te,re,ne){const oe=[X+"="+encodeURIComponent(W)];utils$1.isNumber(J)&&oe.push("expires="+new Date(J).toGMTString()),utils$1.isString(te)&&oe.push("path="+te),utils$1.isString(re)&&oe.push("domain="+re),ne===!0&&oe.push("secure"),document.cookie=oe.join("; ")},read(X){const W=document.cookie.match(new RegExp("(^|;\\s*)("+X+")=([^;]*)"));return W?decodeURIComponent(W[3]):null},remove(X){this.write(X,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(X){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(X)}function combineURLs(X,W){return W?X.replace(/\/?\/$/,"")+"/"+W.replace(/^\/+/,""):X}function buildFullPath(X,W){return X&&!isAbsoluteURL(W)?combineURLs(X,W):W}const headersToObject=X=>X instanceof AxiosHeaders?{...X}:X;function mergeConfig$1(X,W){W=W||{};const J={};function te(ue,ce,pe){return utils$1.isPlainObject(ue)&&utils$1.isPlainObject(ce)?utils$1.merge.call({caseless:pe},ue,ce):utils$1.isPlainObject(ce)?utils$1.merge({},ce):utils$1.isArray(ce)?ce.slice():ce}function re(ue,ce,pe){if(utils$1.isUndefined(ce)){if(!utils$1.isUndefined(ue))return te(void 0,ue,pe)}else return te(ue,ce,pe)}function ne(ue,ce){if(!utils$1.isUndefined(ce))return te(void 0,ce)}function oe(ue,ce){if(utils$1.isUndefined(ce)){if(!utils$1.isUndefined(ue))return te(void 0,ue)}else return te(void 0,ce)}function de(ue,ce,pe){if(pe in W)return te(ue,ce);if(pe in X)return te(void 0,ue)}const he={url:ne,method:ne,data:ne,baseURL:oe,transformRequest:oe,transformResponse:oe,paramsSerializer:oe,timeout:oe,timeoutMessage:oe,withCredentials:oe,withXSRFToken:oe,adapter:oe,responseType:oe,xsrfCookieName:oe,xsrfHeaderName:oe,onUploadProgress:oe,onDownloadProgress:oe,decompress:oe,maxContentLength:oe,maxBodyLength:oe,beforeRedirect:oe,transport:oe,httpAgent:oe,httpsAgent:oe,cancelToken:oe,socketPath:oe,responseEncoding:oe,validateStatus:de,headers:(ue,ce)=>re(headersToObject(ue),headersToObject(ce),!0)};return utils$1.forEach(Object.keys(Object.assign({},X,W)),function(ce){const pe=he[ce]||re,fe=pe(X[ce],W[ce],ce);utils$1.isUndefined(fe)&&pe!==de||(J[ce]=fe)}),J}const resolveConfig=X=>{const W=mergeConfig$1({},X);let{data:J,withXSRFToken:te,xsrfHeaderName:re,xsrfCookieName:ne,headers:oe,auth:de}=W;W.headers=oe=AxiosHeaders.from(oe),W.url=buildURL(buildFullPath(W.baseURL,W.url),X.params,X.paramsSerializer),de&&oe.set("Authorization","Basic "+btoa((de.username||"")+":"+(de.password?unescape(encodeURIComponent(de.password)):"")));let he;if(utils$1.isFormData(J)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)oe.setContentType(void 0);else if((he=oe.getContentType())!==!1){const[ue,...ce]=he?he.split(";").map(pe=>pe.trim()).filter(Boolean):[];oe.setContentType([ue||"multipart/form-data",...ce].join("; "))}}if(platform.hasStandardBrowserEnv&&(te&&utils$1.isFunction(te)&&(te=te(W)),te||te!==!1&&isURLSameOrigin(W.url))){const ue=re&&ne&&cookies.read(ne);ue&&oe.set(re,ue)}return W},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(X){return new Promise(function(J,te){const re=resolveConfig(X);let ne=re.data;const oe=AxiosHeaders.from(re.headers).normalize();let{responseType:de,onUploadProgress:he,onDownloadProgress:ue}=re,ce,pe,fe,ge,me;function ve(){ge&&ge(),me&&me(),re.cancelToken&&re.cancelToken.unsubscribe(ce),re.signal&&re.signal.removeEventListener("abort",ce)}let be=new XMLHttpRequest;be.open(re.method.toUpperCase(),re.url,!0),be.timeout=re.timeout;function ye(){if(!be)return;const Se=AxiosHeaders.from("getAllResponseHeaders"in be&&be.getAllResponseHeaders()),Ce={data:!de||de==="text"||de==="json"?be.responseText:be.response,status:be.status,statusText:be.statusText,headers:Se,config:X,request:be};settle(function(qe){J(qe),ve()},function(qe){te(qe),ve()},Ce),be=null}"onloadend"in be?be.onloadend=ye:be.onreadystatechange=function(){!be||be.readyState!==4||be.status===0&&!(be.responseURL&&be.responseURL.indexOf("file:")===0)||setTimeout(ye)},be.onabort=function(){be&&(te(new AxiosError("Request aborted",AxiosError.ECONNABORTED,X,be)),be=null)},be.onerror=function(){te(new AxiosError("Network Error",AxiosError.ERR_NETWORK,X,be)),be=null},be.ontimeout=function(){let _e=re.timeout?"timeout of "+re.timeout+"ms exceeded":"timeout exceeded";const Ce=re.transitional||transitionalDefaults;re.timeoutErrorMessage&&(_e=re.timeoutErrorMessage),te(new AxiosError(_e,Ce.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,X,be)),be=null},ne===void 0&&oe.setContentType(null),"setRequestHeader"in be&&utils$1.forEach(oe.toJSON(),function(_e,Ce){be.setRequestHeader(Ce,_e)}),utils$1.isUndefined(re.withCredentials)||(be.withCredentials=!!re.withCredentials),de&&de!=="json"&&(be.responseType=re.responseType),ue&&([fe,me]=progressEventReducer(ue,!0),be.addEventListener("progress",fe)),he&&be.upload&&([pe,ge]=progressEventReducer(he),be.upload.addEventListener("progress",pe),be.upload.addEventListener("loadend",ge)),(re.cancelToken||re.signal)&&(ce=Se=>{be&&(te(!Se||Se.type?new CanceledError(null,X,be):Se),be.abort(),be=null)},re.cancelToken&&re.cancelToken.subscribe(ce),re.signal&&(re.signal.aborted?ce():re.signal.addEventListener("abort",ce)));const we=parseProtocol(re.url);if(we&&platform.protocols.indexOf(we)===-1){te(new AxiosError("Unsupported protocol "+we+":",AxiosError.ERR_BAD_REQUEST,X));return}be.send(ne||null)})},composeSignals=(X,W)=>{const{length:J}=X=X?X.filter(Boolean):[];if(W||J){let te=new AbortController,re;const ne=function(ue){if(!re){re=!0,de();const ce=ue instanceof Error?ue:this.reason;te.abort(ce instanceof AxiosError?ce:new CanceledError(ce instanceof Error?ce.message:ce))}};let oe=W&&setTimeout(()=>{oe=null,ne(new AxiosError(`timeout ${W} of ms exceeded`,AxiosError.ETIMEDOUT))},W);const de=()=>{X&&(oe&&clearTimeout(oe),oe=null,X.forEach(ue=>{ue.unsubscribe?ue.unsubscribe(ne):ue.removeEventListener("abort",ne)}),X=null)};X.forEach(ue=>ue.addEventListener("abort",ne));const{signal:he}=te;return he.unsubscribe=()=>utils$1.asap(de),he}},streamChunk=function*(X,W){let J=X.byteLength;if(J<W){yield X;return}let te=0,re;for(;te<J;)re=te+W,yield X.slice(te,re),te=re},readBytes=async function*(X,W){for await(const J of readStream(X))yield*streamChunk(J,W)},readStream=async function*(X){if(X[Symbol.asyncIterator]){yield*X;return}const W=X.getReader();try{for(;;){const{done:J,value:te}=await W.read();if(J)break;yield te}}finally{await W.cancel()}},trackStream=(X,W,J,te)=>{const re=readBytes(X,W);let ne=0,oe,de=he=>{oe||(oe=!0,te&&te(he))};return new ReadableStream({async pull(he){try{const{done:ue,value:ce}=await re.next();if(ue){de(),he.close();return}let pe=ce.byteLength;if(J){let fe=ne+=pe;J(fe)}he.enqueue(new Uint8Array(ce))}catch(ue){throw de(ue),ue}},cancel(he){return de(he),re.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(X=>W=>X.encode(W))(new TextEncoder):async X=>new Uint8Array(await new Response(X).arrayBuffer())),test=(X,...W)=>{try{return!!X(...W)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let X=!1;const W=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return X=!0,"half"}}).headers.has("Content-Type");return X&&!W}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(X=>X.body)};isFetchSupported&&(X=>{["text","arrayBuffer","blob","formData","stream"].forEach(W=>{!resolvers[W]&&(resolvers[W]=utils$1.isFunction(X[W])?J=>J[W]():(J,te)=>{throw new AxiosError(`Response type '${W}' is not supported`,AxiosError.ERR_NOT_SUPPORT,te)})})})(new Response);const getBodyLength=async X=>{if(X==null)return 0;if(utils$1.isBlob(X))return X.size;if(utils$1.isSpecCompliantForm(X))return(await new Request(platform.origin,{method:"POST",body:X}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(X)||utils$1.isArrayBuffer(X))return X.byteLength;if(utils$1.isURLSearchParams(X)&&(X=X+""),utils$1.isString(X))return(await encodeText(X)).byteLength},resolveBodyLength=async(X,W)=>{const J=utils$1.toFiniteNumber(X.getContentLength());return J??getBodyLength(W)},fetchAdapter=isFetchSupported&&(async X=>{let{url:W,method:J,data:te,signal:re,cancelToken:ne,timeout:oe,onDownloadProgress:de,onUploadProgress:he,responseType:ue,headers:ce,withCredentials:pe="same-origin",fetchOptions:fe}=resolveConfig(X);ue=ue?(ue+"").toLowerCase():"text";let ge=composeSignals([re,ne&&ne.toAbortSignal()],oe),me;const ve=ge&&ge.unsubscribe&&(()=>{ge.unsubscribe()});let be;try{if(he&&supportsRequestStream&&J!=="get"&&J!=="head"&&(be=await resolveBodyLength(ce,te))!==0){let Ce=new Request(W,{method:"POST",body:te,duplex:"half"}),Le;if(utils$1.isFormData(te)&&(Le=Ce.headers.get("content-type"))&&ce.setContentType(Le),Ce.body){const[qe,Ie]=progressEventDecorator(be,progressEventReducer(asyncDecorator(he)));te=trackStream(Ce.body,DEFAULT_CHUNK_SIZE,qe,Ie)}}utils$1.isString(pe)||(pe=pe?"include":"omit");const ye="credentials"in Request.prototype;me=new Request(W,{...fe,signal:ge,method:J.toUpperCase(),headers:ce.normalize().toJSON(),body:te,duplex:"half",credentials:ye?pe:void 0});let we=await fetch(me);const Se=supportsResponseStream&&(ue==="stream"||ue==="response");if(supportsResponseStream&&(de||Se&&ve)){const Ce={};["status","statusText","headers"].forEach(ze=>{Ce[ze]=we[ze]});const Le=utils$1.toFiniteNumber(we.headers.get("content-length")),[qe,Ie]=de&&progressEventDecorator(Le,progressEventReducer(asyncDecorator(de),!0))||[];we=new Response(trackStream(we.body,DEFAULT_CHUNK_SIZE,qe,()=>{Ie&&Ie(),ve&&ve()}),Ce)}ue=ue||"text";let _e=await resolvers[utils$1.findKey(resolvers,ue)||"text"](we,X);return!Se&&ve&&ve(),await new Promise((Ce,Le)=>{settle(Ce,Le,{data:_e,headers:AxiosHeaders.from(we.headers),status:we.status,statusText:we.statusText,config:X,request:me})})}catch(ye){throw ve&&ve(),ye&&ye.name==="TypeError"&&/fetch/i.test(ye.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,X,me),{cause:ye.cause||ye}):AxiosError.from(ye,ye&&ye.code,X,me)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(X,W)=>{if(X){try{Object.defineProperty(X,"name",{value:W})}catch{}Object.defineProperty(X,"adapterName",{value:W})}});const renderReason=X=>`- ${X}`,isResolvedHandle=X=>utils$1.isFunction(X)||X===null||X===!1,adapters={getAdapter:X=>{X=utils$1.isArray(X)?X:[X];const{length:W}=X;let J,te;const re={};for(let ne=0;ne<W;ne++){J=X[ne];let oe;if(te=J,!isResolvedHandle(J)&&(te=knownAdapters[(oe=String(J)).toLowerCase()],te===void 0))throw new AxiosError(`Unknown adapter '${oe}'`);if(te)break;re[oe||"#"+ne]=te}if(!te){const ne=Object.entries(re).map(([de,he])=>`adapter ${de} `+(he===!1?"is not supported by the environment":"is not available in the build"));let oe=W?ne.length>1?`since :
|
|
120
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(W){return W instanceof this?W:new this(W)}static concat(W,...J){const te=new this(W);return J.forEach(re=>te.set(re)),te}static accessor(W){const te=(this[$internals]=this[$internals]={accessors:{}}).accessors,re=this.prototype;function ne(oe){const de=normalizeHeader(oe);te[de]||(buildAccessors(re,oe),te[de]=!0)}return utils$1.isArray(W)?W.forEach(ne):ne(W),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:X},W)=>{let J=W[0].toUpperCase()+W.slice(1);return{get:()=>X,set(te){this[J]=te}}}),utils$1.freezeMethods(AxiosHeaders);function transformData(X,W){const J=this||defaults,te=W||J,re=AxiosHeaders.from(te.headers);let ne=te.data;return utils$1.forEach(X,function(de){ne=de.call(J,ne,re.normalize(),W?W.status:void 0)}),re.normalize(),ne}function isCancel(X){return!!(X&&X.__CANCEL__)}function CanceledError(X,W,J){AxiosError.call(this,X??"canceled",AxiosError.ERR_CANCELED,W,J),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(X,W,J){const te=J.config.validateStatus;!J.status||!te||te(J.status)?X(J):W(new AxiosError("Request failed with status code "+J.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(J.status/100)-4],J.config,J.request,J))}function parseProtocol(X){const W=/^([-+\w]{1,25})(:?\/\/|:)/.exec(X);return W&&W[1]||""}function speedometer(X,W){X=X||10;const J=new Array(X),te=new Array(X);let re=0,ne=0,oe;return W=W!==void 0?W:1e3,function(he){const ue=Date.now(),ce=te[ne];oe||(oe=ue),J[re]=he,te[re]=ue;let pe=ne,fe=0;for(;pe!==re;)fe+=J[pe++],pe=pe%X;if(re=(re+1)%X,re===ne&&(ne=(ne+1)%X),ue-oe<W)return;const ge=ce&&ue-ce;return ge?Math.round(fe*1e3/ge):void 0}}function throttle(X,W){let J=0,te=1e3/W,re,ne;const oe=(ue,ce=Date.now())=>{J=ce,re=null,ne&&(clearTimeout(ne),ne=null),X.apply(null,ue)};return[(...ue)=>{const ce=Date.now(),pe=ce-J;pe>=te?oe(ue,ce):(re=ue,ne||(ne=setTimeout(()=>{ne=null,oe(re)},te-pe)))},()=>re&&oe(re)]}const progressEventReducer=(X,W,J=3)=>{let te=0;const re=speedometer(50,250);return throttle(ne=>{const oe=ne.loaded,de=ne.lengthComputable?ne.total:void 0,he=oe-te,ue=re(he),ce=oe<=de;te=oe;const pe={loaded:oe,total:de,progress:de?oe/de:void 0,bytes:he,rate:ue||void 0,estimated:ue&&de&&ce?(de-oe)/ue:void 0,event:ne,lengthComputable:de!=null,[W?"download":"upload"]:!0};X(pe)},J)},progressEventDecorator=(X,W)=>{const J=X!=null;return[te=>W[0]({lengthComputable:J,total:X,loaded:te}),W[1]]},asyncDecorator=X=>(...W)=>utils$1.asap(()=>X(...W)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const W=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent),J=document.createElement("a");let te;function re(ne){let oe=ne;return W&&(J.setAttribute("href",oe),oe=J.href),J.setAttribute("href",oe),{href:J.href,protocol:J.protocol?J.protocol.replace(/:$/,""):"",host:J.host,search:J.search?J.search.replace(/^\?/,""):"",hash:J.hash?J.hash.replace(/^#/,""):"",hostname:J.hostname,port:J.port,pathname:J.pathname.charAt(0)==="/"?J.pathname:"/"+J.pathname}}return te=re(window.location.href),function(oe){const de=utils$1.isString(oe)?re(oe):oe;return de.protocol===te.protocol&&de.host===te.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(X,W,J,te,re,ne){const oe=[X+"="+encodeURIComponent(W)];utils$1.isNumber(J)&&oe.push("expires="+new Date(J).toGMTString()),utils$1.isString(te)&&oe.push("path="+te),utils$1.isString(re)&&oe.push("domain="+re),ne===!0&&oe.push("secure"),document.cookie=oe.join("; ")},read(X){const W=document.cookie.match(new RegExp("(^|;\\s*)("+X+")=([^;]*)"));return W?decodeURIComponent(W[3]):null},remove(X){this.write(X,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(X){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(X)}function combineURLs(X,W){return W?X.replace(/\/?\/$/,"")+"/"+W.replace(/^\/+/,""):X}function buildFullPath(X,W){return X&&!isAbsoluteURL(W)?combineURLs(X,W):W}const headersToObject=X=>X instanceof AxiosHeaders?{...X}:X;function mergeConfig$1(X,W){W=W||{};const J={};function te(ue,ce,pe){return utils$1.isPlainObject(ue)&&utils$1.isPlainObject(ce)?utils$1.merge.call({caseless:pe},ue,ce):utils$1.isPlainObject(ce)?utils$1.merge({},ce):utils$1.isArray(ce)?ce.slice():ce}function re(ue,ce,pe){if(utils$1.isUndefined(ce)){if(!utils$1.isUndefined(ue))return te(void 0,ue,pe)}else return te(ue,ce,pe)}function ne(ue,ce){if(!utils$1.isUndefined(ce))return te(void 0,ce)}function oe(ue,ce){if(utils$1.isUndefined(ce)){if(!utils$1.isUndefined(ue))return te(void 0,ue)}else return te(void 0,ce)}function de(ue,ce,pe){if(pe in W)return te(ue,ce);if(pe in X)return te(void 0,ue)}const he={url:ne,method:ne,data:ne,baseURL:oe,transformRequest:oe,transformResponse:oe,paramsSerializer:oe,timeout:oe,timeoutMessage:oe,withCredentials:oe,withXSRFToken:oe,adapter:oe,responseType:oe,xsrfCookieName:oe,xsrfHeaderName:oe,onUploadProgress:oe,onDownloadProgress:oe,decompress:oe,maxContentLength:oe,maxBodyLength:oe,beforeRedirect:oe,transport:oe,httpAgent:oe,httpsAgent:oe,cancelToken:oe,socketPath:oe,responseEncoding:oe,validateStatus:de,headers:(ue,ce)=>re(headersToObject(ue),headersToObject(ce),!0)};return utils$1.forEach(Object.keys(Object.assign({},X,W)),function(ce){const pe=he[ce]||re,fe=pe(X[ce],W[ce],ce);utils$1.isUndefined(fe)&&pe!==de||(J[ce]=fe)}),J}const resolveConfig=X=>{const W=mergeConfig$1({},X);let{data:J,withXSRFToken:te,xsrfHeaderName:re,xsrfCookieName:ne,headers:oe,auth:de}=W;W.headers=oe=AxiosHeaders.from(oe),W.url=buildURL(buildFullPath(W.baseURL,W.url),X.params,X.paramsSerializer),de&&oe.set("Authorization","Basic "+btoa((de.username||"")+":"+(de.password?unescape(encodeURIComponent(de.password)):"")));let he;if(utils$1.isFormData(J)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)oe.setContentType(void 0);else if((he=oe.getContentType())!==!1){const[ue,...ce]=he?he.split(";").map(pe=>pe.trim()).filter(Boolean):[];oe.setContentType([ue||"multipart/form-data",...ce].join("; "))}}if(platform.hasStandardBrowserEnv&&(te&&utils$1.isFunction(te)&&(te=te(W)),te||te!==!1&&isURLSameOrigin(W.url))){const ue=re&&ne&&cookies.read(ne);ue&&oe.set(re,ue)}return W},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(X){return new Promise(function(J,te){const re=resolveConfig(X);let ne=re.data;const oe=AxiosHeaders.from(re.headers).normalize();let{responseType:de,onUploadProgress:he,onDownloadProgress:ue}=re,ce,pe,fe,ge,me;function ve(){ge&&ge(),me&&me(),re.cancelToken&&re.cancelToken.unsubscribe(ce),re.signal&&re.signal.removeEventListener("abort",ce)}let be=new XMLHttpRequest;be.open(re.method.toUpperCase(),re.url,!0),be.timeout=re.timeout;function ye(){if(!be)return;const Se=AxiosHeaders.from("getAllResponseHeaders"in be&&be.getAllResponseHeaders()),Ce={data:!de||de==="text"||de==="json"?be.responseText:be.response,status:be.status,statusText:be.statusText,headers:Se,config:X,request:be};settle(function(Pe){J(Pe),ve()},function(Pe){te(Pe),ve()},Ce),be=null}"onloadend"in be?be.onloadend=ye:be.onreadystatechange=function(){!be||be.readyState!==4||be.status===0&&!(be.responseURL&&be.responseURL.indexOf("file:")===0)||setTimeout(ye)},be.onabort=function(){be&&(te(new AxiosError("Request aborted",AxiosError.ECONNABORTED,X,be)),be=null)},be.onerror=function(){te(new AxiosError("Network Error",AxiosError.ERR_NETWORK,X,be)),be=null},be.ontimeout=function(){let _e=re.timeout?"timeout of "+re.timeout+"ms exceeded":"timeout exceeded";const Ce=re.transitional||transitionalDefaults;re.timeoutErrorMessage&&(_e=re.timeoutErrorMessage),te(new AxiosError(_e,Ce.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,X,be)),be=null},ne===void 0&&oe.setContentType(null),"setRequestHeader"in be&&utils$1.forEach(oe.toJSON(),function(_e,Ce){be.setRequestHeader(Ce,_e)}),utils$1.isUndefined(re.withCredentials)||(be.withCredentials=!!re.withCredentials),de&&de!=="json"&&(be.responseType=re.responseType),ue&&([fe,me]=progressEventReducer(ue,!0),be.addEventListener("progress",fe)),he&&be.upload&&([pe,ge]=progressEventReducer(he),be.upload.addEventListener("progress",pe),be.upload.addEventListener("loadend",ge)),(re.cancelToken||re.signal)&&(ce=Se=>{be&&(te(!Se||Se.type?new CanceledError(null,X,be):Se),be.abort(),be=null)},re.cancelToken&&re.cancelToken.subscribe(ce),re.signal&&(re.signal.aborted?ce():re.signal.addEventListener("abort",ce)));const we=parseProtocol(re.url);if(we&&platform.protocols.indexOf(we)===-1){te(new AxiosError("Unsupported protocol "+we+":",AxiosError.ERR_BAD_REQUEST,X));return}be.send(ne||null)})},composeSignals=(X,W)=>{const{length:J}=X=X?X.filter(Boolean):[];if(W||J){let te=new AbortController,re;const ne=function(ue){if(!re){re=!0,de();const ce=ue instanceof Error?ue:this.reason;te.abort(ce instanceof AxiosError?ce:new CanceledError(ce instanceof Error?ce.message:ce))}};let oe=W&&setTimeout(()=>{oe=null,ne(new AxiosError(`timeout ${W} of ms exceeded`,AxiosError.ETIMEDOUT))},W);const de=()=>{X&&(oe&&clearTimeout(oe),oe=null,X.forEach(ue=>{ue.unsubscribe?ue.unsubscribe(ne):ue.removeEventListener("abort",ne)}),X=null)};X.forEach(ue=>ue.addEventListener("abort",ne));const{signal:he}=te;return he.unsubscribe=()=>utils$1.asap(de),he}},streamChunk=function*(X,W){let J=X.byteLength;if(J<W){yield X;return}let te=0,re;for(;te<J;)re=te+W,yield X.slice(te,re),te=re},readBytes=async function*(X,W){for await(const J of readStream(X))yield*streamChunk(J,W)},readStream=async function*(X){if(X[Symbol.asyncIterator]){yield*X;return}const W=X.getReader();try{for(;;){const{done:J,value:te}=await W.read();if(J)break;yield te}}finally{await W.cancel()}},trackStream=(X,W,J,te)=>{const re=readBytes(X,W);let ne=0,oe,de=he=>{oe||(oe=!0,te&&te(he))};return new ReadableStream({async pull(he){try{const{done:ue,value:ce}=await re.next();if(ue){de(),he.close();return}let pe=ce.byteLength;if(J){let fe=ne+=pe;J(fe)}he.enqueue(new Uint8Array(ce))}catch(ue){throw de(ue),ue}},cancel(he){return de(he),re.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(X=>W=>X.encode(W))(new TextEncoder):async X=>new Uint8Array(await new Response(X).arrayBuffer())),test=(X,...W)=>{try{return!!X(...W)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let X=!1;const W=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return X=!0,"half"}}).headers.has("Content-Type");return X&&!W}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(X=>X.body)};isFetchSupported&&(X=>{["text","arrayBuffer","blob","formData","stream"].forEach(W=>{!resolvers[W]&&(resolvers[W]=utils$1.isFunction(X[W])?J=>J[W]():(J,te)=>{throw new AxiosError(`Response type '${W}' is not supported`,AxiosError.ERR_NOT_SUPPORT,te)})})})(new Response);const getBodyLength=async X=>{if(X==null)return 0;if(utils$1.isBlob(X))return X.size;if(utils$1.isSpecCompliantForm(X))return(await new Request(platform.origin,{method:"POST",body:X}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(X)||utils$1.isArrayBuffer(X))return X.byteLength;if(utils$1.isURLSearchParams(X)&&(X=X+""),utils$1.isString(X))return(await encodeText(X)).byteLength},resolveBodyLength=async(X,W)=>{const J=utils$1.toFiniteNumber(X.getContentLength());return J??getBodyLength(W)},fetchAdapter=isFetchSupported&&(async X=>{let{url:W,method:J,data:te,signal:re,cancelToken:ne,timeout:oe,onDownloadProgress:de,onUploadProgress:he,responseType:ue,headers:ce,withCredentials:pe="same-origin",fetchOptions:fe}=resolveConfig(X);ue=ue?(ue+"").toLowerCase():"text";let ge=composeSignals([re,ne&&ne.toAbortSignal()],oe),me;const ve=ge&&ge.unsubscribe&&(()=>{ge.unsubscribe()});let be;try{if(he&&supportsRequestStream&&J!=="get"&&J!=="head"&&(be=await resolveBodyLength(ce,te))!==0){let Ce=new Request(W,{method:"POST",body:te,duplex:"half"}),Le;if(utils$1.isFormData(te)&&(Le=Ce.headers.get("content-type"))&&ce.setContentType(Le),Ce.body){const[Pe,Ie]=progressEventDecorator(be,progressEventReducer(asyncDecorator(he)));te=trackStream(Ce.body,DEFAULT_CHUNK_SIZE,Pe,Ie)}}utils$1.isString(pe)||(pe=pe?"include":"omit");const ye="credentials"in Request.prototype;me=new Request(W,{...fe,signal:ge,method:J.toUpperCase(),headers:ce.normalize().toJSON(),body:te,duplex:"half",credentials:ye?pe:void 0});let we=await fetch(me);const Se=supportsResponseStream&&(ue==="stream"||ue==="response");if(supportsResponseStream&&(de||Se&&ve)){const Ce={};["status","statusText","headers"].forEach(ze=>{Ce[ze]=we[ze]});const Le=utils$1.toFiniteNumber(we.headers.get("content-length")),[Pe,Ie]=de&&progressEventDecorator(Le,progressEventReducer(asyncDecorator(de),!0))||[];we=new Response(trackStream(we.body,DEFAULT_CHUNK_SIZE,Pe,()=>{Ie&&Ie(),ve&&ve()}),Ce)}ue=ue||"text";let _e=await resolvers[utils$1.findKey(resolvers,ue)||"text"](we,X);return!Se&&ve&&ve(),await new Promise((Ce,Le)=>{settle(Ce,Le,{data:_e,headers:AxiosHeaders.from(we.headers),status:we.status,statusText:we.statusText,config:X,request:me})})}catch(ye){throw ve&&ve(),ye&&ye.name==="TypeError"&&/fetch/i.test(ye.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,X,me),{cause:ye.cause||ye}):AxiosError.from(ye,ye&&ye.code,X,me)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(X,W)=>{if(X){try{Object.defineProperty(X,"name",{value:W})}catch{}Object.defineProperty(X,"adapterName",{value:W})}});const renderReason=X=>`- ${X}`,isResolvedHandle=X=>utils$1.isFunction(X)||X===null||X===!1,adapters={getAdapter:X=>{X=utils$1.isArray(X)?X:[X];const{length:W}=X;let J,te;const re={};for(let ne=0;ne<W;ne++){J=X[ne];let oe;if(te=J,!isResolvedHandle(J)&&(te=knownAdapters[(oe=String(J)).toLowerCase()],te===void 0))throw new AxiosError(`Unknown adapter '${oe}'`);if(te)break;re[oe||"#"+ne]=te}if(!te){const ne=Object.entries(re).map(([de,he])=>`adapter ${de} `+(he===!1?"is not supported by the environment":"is not available in the build"));let oe=W?ne.length>1?`since :
|
|
129
121
|
`+ne.map(renderReason).join(`
|
|
130
122
|
`):" "+renderReason(ne[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+oe,"ERR_NOT_SUPPORT")}return te},adapters:knownAdapters};function throwIfCancellationRequested(X){if(X.cancelToken&&X.cancelToken.throwIfRequested(),X.signal&&X.signal.aborted)throw new CanceledError(null,X)}function dispatchRequest(X){return throwIfCancellationRequested(X),X.headers=AxiosHeaders.from(X.headers),X.data=transformData.call(X,X.transformRequest),["post","put","patch"].indexOf(X.method)!==-1&&X.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(X.adapter||defaults.adapter)(X).then(function(te){return throwIfCancellationRequested(X),te.data=transformData.call(X,X.transformResponse,te),te.headers=AxiosHeaders.from(te.headers),te},function(te){return isCancel(te)||(throwIfCancellationRequested(X),te&&te.response&&(te.response.data=transformData.call(X,X.transformResponse,te.response),te.response.headers=AxiosHeaders.from(te.response.headers))),Promise.reject(te)})}const VERSION="1.7.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach((X,W)=>{validators$1[X]=function(te){return typeof te===X||"a"+(W<1?"n ":" ")+X}});const deprecatedWarnings={};validators$1.transitional=function(W,J,te){function re(ne,oe){return"[Axios v"+VERSION+"] Transitional option '"+ne+"'"+oe+(te?". "+te:"")}return(ne,oe,de)=>{if(W===!1)throw new AxiosError(re(oe," has been removed"+(J?" in "+J:"")),AxiosError.ERR_DEPRECATED);return J&&!deprecatedWarnings[oe]&&(deprecatedWarnings[oe]=!0,console.warn(re(oe," has been deprecated since v"+J+" and will be removed in the near future"))),W?W(ne,oe,de):!0}};function assertOptions(X,W,J){if(typeof X!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const te=Object.keys(X);let re=te.length;for(;re-- >0;){const ne=te[re],oe=W[ne];if(oe){const de=X[ne],he=de===void 0||oe(de,ne,X);if(he!==!0)throw new AxiosError("option "+ne+" must be "+he,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(J!==!0)throw new AxiosError("Unknown option "+ne,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(W){this.defaults=W,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(W,J){try{return await this._request(W,J)}catch(te){if(te instanceof Error){let re;Error.captureStackTrace?Error.captureStackTrace(re={}):re=new Error;const ne=re.stack?re.stack.replace(/^.+\n/,""):"";try{te.stack?ne&&!String(te.stack).endsWith(ne.replace(/^.+\n.+\n/,""))&&(te.stack+=`
|
|
131
|
-
`+ne):te.stack=ne}catch{}}throw te}}_request(W,J){typeof W=="string"?(J=J||{},J.url=W):J=W||{},J=mergeConfig$1(this.defaults,J);const{transitional:te,paramsSerializer:re,headers:ne}=J;te!==void 0&&validator.assertOptions(te,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),re!=null&&(utils$1.isFunction(re)?J.paramsSerializer={serialize:re}:validator.assertOptions(re,{encode:validators.function,serialize:validators.function},!0)),J.method=(J.method||this.defaults.method||"get").toLowerCase();let oe=ne&&utils$1.merge(ne.common,ne[J.method]);ne&&utils$1.forEach(["delete","get","head","post","put","patch","common"],me=>{delete ne[me]}),J.headers=AxiosHeaders.concat(oe,ne);const de=[];let he=!0;this.interceptors.request.forEach(function(ve){typeof ve.runWhen=="function"&&ve.runWhen(J)===!1||(he=he&&ve.synchronous,de.unshift(ve.fulfilled,ve.rejected))});const ue=[];this.interceptors.response.forEach(function(ve){ue.push(ve.fulfilled,ve.rejected)});let ce,pe=0,fe;if(!he){const me=[dispatchRequest.bind(this),void 0];for(me.unshift.apply(me,de),me.push.apply(me,ue),fe=me.length,ce=Promise.resolve(J);pe<fe;)ce=ce.then(me[pe++],me[pe++]);return ce}fe=de.length;let ge=J;for(pe=0;pe<fe;){const me=de[pe++],ve=de[pe++];try{ge=me(ge)}catch(be){ve.call(this,be);break}}try{ce=dispatchRequest.call(this,ge)}catch(me){return Promise.reject(me)}for(pe=0,fe=ue.length;pe<fe;)ce=ce.then(ue[pe++],ue[pe++]);return ce}getUri(W){W=mergeConfig$1(this.defaults,W);const J=buildFullPath(W.baseURL,W.url);return buildURL(J,W.params,W.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(W){Axios.prototype[W]=function(J,te){return this.request(mergeConfig$1(te||{},{method:W,url:J,data:(te||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(W){function J(te){return function(ne,oe,de){return this.request(mergeConfig$1(de||{},{method:W,headers:te?{"Content-Type":"multipart/form-data"}:{},url:ne,data:oe}))}}Axios.prototype[W]=J(),Axios.prototype[W+"Form"]=J(!0)});class CancelToken{constructor(W){if(typeof W!="function")throw new TypeError("executor must be a function.");let J;this.promise=new Promise(function(ne){J=ne});const te=this;this.promise.then(re=>{if(!te._listeners)return;let ne=te._listeners.length;for(;ne-- >0;)te._listeners[ne](re);te._listeners=null}),this.promise.then=re=>{let ne;const oe=new Promise(de=>{te.subscribe(de),ne=de}).then(re);return oe.cancel=function(){te.unsubscribe(ne)},oe},W(function(ne,oe,de){te.reason||(te.reason=new CanceledError(ne,oe,de),J(te.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(W){if(this.reason){W(this.reason);return}this._listeners?this._listeners.push(W):this._listeners=[W]}unsubscribe(W){if(!this._listeners)return;const J=this._listeners.indexOf(W);J!==-1&&this._listeners.splice(J,1)}toAbortSignal(){const W=new AbortController,J=te=>{W.abort(te)};return this.subscribe(J),W.signal.unsubscribe=()=>this.unsubscribe(J),W.signal}static source(){let W;return{token:new CancelToken(function(re){W=re}),cancel:W}}}function spread(X){return function(J){return X.apply(null,J)}}function isAxiosError(X){return utils$1.isObject(X)&&X.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([X,W])=>{HttpStatusCode[W]=X});function createInstance(X){const W=new Axios(X),J=bind$1(Axios.prototype.request,W);return utils$1.extend(J,Axios.prototype,W,{allOwnKeys:!0}),utils$1.extend(J,W,null,{allOwnKeys:!0}),J.create=function(re){return createInstance(mergeConfig$1(X,re))},J}const axios=createInstance(defaults);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(W){return Promise.all(W)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=X=>formDataToJSON(utils$1.isHTMLForm(X)?new FormData(X):X),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios;const createAxiosInstance=(X,W)=>{const J=axios.create();return J.interceptors.request.use(te=>(te.headers.Authorization=`Bearer ${X.getToken()}`,te)),J.interceptors.response.use(te=>te,async te=>{const re=te.config;if(te.response.status===401&&!re._retry){re._retry=!0;try{const ne=await X.refreshToken();return re.headers.Authorization=`Bearer ${ne}`,J(re)}catch(ne){return console.error("Error refreshing token:",ne),W.publish(shellEvents.refreshTokenFailed,{request:re}),Promise.reject(te)}}return Promise.reject(te)}),J};let instance;const createHttpClient=(X,W)=>(instance||(instance=createAxiosInstance(X,W)),{request:instance.request});/**
|
|
132
|
-
* @license
|
|
133
|
-
* Copyright 2021 Google LLC
|
|
134
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
|
-
*/function nn(X,W,J){return X?W(X):J==null?void 0:J(X)}const styles$h="*[hidden]{display:none!important}.modal{font-family:Open Sans;display:none;position:fixed;z-index:400;left:0;top:0;width:100%;height:100%;background-color:#000000a6}.modal .dialog{display:flex;flex-direction:column;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:21;background:#fff;border-radius:16px;width:auto;height:auto;max-height:95%;min-width:400px;box-shadow:0 0 14px #00000040,0 1px 10px #00000038}.modal .dialog .dialog__header{display:flex;flex-direction:row;justify-content:center;padding:24px;border-top-left-radius:8px;border-top-right-radius:8px;align-items:center}.modal .dialog .dialog__header.with-close{justify-content:space-between}.modal .dialog .dialog__header h2{color:var(--color-neutral-900);padding:0;margin:0;font-weight:700;font-size:1.286rem;line-height:30px}.modal .dialog .dialog__content{display:flex;flex-direction:column;flex:1;align-items:center;min-height:1px;height:100%;padding-inline:24px;padding-bottom:24px;font-weight:400;font-size:16px;line-height:24px;border-bottom-left-radius:8px;border-bottom-right-radius:8px}.modal .dialog .dialog__content>*{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.modal .dialog .dialog__actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px;padding:24px 16px}@-webkit-keyframes fadein{0%{opacity:0}to{opacity:1}}@keyframes fadein{0%{opacity:0}to{opacity:1}}";var __defProp$q=Object.defineProperty,__getOwnPropDesc$p=Object.getOwnPropertyDescriptor,__decorateClass$q=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$p(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$q(W,J,re),re};const dssToConfirmType=X=>X==="danger"?"error":X,renderActions=X=>{if(!X.options.acceptLabel&&!X.options.cancelLabel)return D$1;const W=dssToConfirmType(X.options.type);return ke$1`
|
|
136
|
-
<div class="dialog__actions">
|
|
137
|
-
<dss-button label=${X.options.cancelLabel} size="lg" variant="secondary" @click="${X._cancel}" ?hidden=${!X.options.cancelLabel} id="cancel-btn"></dss-button>
|
|
138
|
-
<dss-button label=${X.options.acceptLabel} size="lg" variant=${W} @click="${X._accept}" ?hidden=${!X.options.acceptLabel} id="accept-btn"></dss-button>
|
|
139
|
-
</div>
|
|
140
|
-
`},renderMessage=X=>ke$1`<div id="message">${X.message||""}</div>`;function renderCustomContent(X){if(X.options.componentConstructor){const W=new X.options.componentConstructor;return W.setAttribute("id","__custom-element__"),W.addEventListener("closed",X.componentCloseRequest.bind(X)),ke$1`${W}`}return D$1}function renderDefaultContent(X){const W=X.options.showCloseButton;return ke$1`
|
|
141
|
-
<div class="dialog__header ${X.options.type} ${W?"with-close":""}">
|
|
142
|
-
<h2 part="title">${X.options.title||""}</h2>
|
|
143
|
-
${nn(W,()=>ke$1`<dss-icon-button size="md" icon="close" @click="${X._cancel}"></dss-icon-button>`,()=>D$1)}
|
|
144
|
-
</div>
|
|
145
|
-
<div class="dialog__content">
|
|
146
|
-
${nn(X.options.message,()=>renderMessage(X.options),()=>renderCustomContent(X))}
|
|
147
|
-
</div>
|
|
148
|
-
${renderActions(X)}
|
|
149
|
-
`}let DialogComponent=class extends h$n{render(){return ke$1`
|
|
150
|
-
<div class="modal">
|
|
151
|
-
<div class="dialog">
|
|
152
|
-
${this.options.fullCustomization?renderCustomContent(this):renderDefaultContent(this)}
|
|
153
|
-
</div>
|
|
154
|
-
</div>
|
|
155
|
-
`}static get styles(){return i$w`
|
|
156
|
-
${r$J(styles$h)}
|
|
157
|
-
`}_cancel(X){this.close({confirmed:!1})}_accept(X){this.close({confirmed:!0})}componentCloseRequest(X){this.close(X.detail)}async close(X){let W=X;if(W!=null&&W.confirmed){const J=this.getCustomComponent();if(J!=null&&J.canAccept&&!await J.canAccept())return;J!=null&&J.accept&&(W=await J.accept(W))}this.dispatchEvent(new CustomEvent("closed",{detail:W})),this.modal.style.display="none"}getCustomComponent(){var X;return(X=this.shadowRoot)==null?void 0:X.querySelector("#__custom-element__")}show(){this.modal.style.display="block"}};__decorateClass$q([n$v()],DialogComponent.prototype,"options",2),__decorateClass$q([e$G(".modal")],DialogComponent.prototype,"modal",2),__decorateClass$q([e$G("#accept-btn")],DialogComponent.prototype,"acceptButton",2),__decorateClass$q([e$G("#actions")],DialogComponent.prototype,"actionsContainer",2),__decorateClass$q([e$G("#header")],DialogComponent.prototype,"header",2),__decorateClass$q([e$G("#content")],DialogComponent.prototype,"content",2),DialogComponent=__decorateClass$q([t$k("dialog-component")],DialogComponent);const buildDialogComponent=X=>{if(!X.message&&!X.componentConstructor)throw new Error("message, componentConstructor options properties are required");return new Promise(W=>{const J=document.body.appendChild(document.createElement("dialog-component"));J.options=X,J.updateComplete.then(()=>{if(X.componentConstructor){const ne=J.shadowRoot.querySelector("#__custom-element__");ne.model=X.model}J.addEventListener("closed",re),J.options&&J.show()});function re(ne){J.remove(),W(ne.detail)}})},confirm=async X=>buildDialogComponent(X);/**
|
|
158
|
-
* @license
|
|
159
|
-
* Copyright 2018 Google LLC
|
|
160
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
161
|
-
*/const to=X=>X??D$1,styles$g=".snackbar{display:flex;align-items:center;flex-direction:row;justify-content:space-between;gap:10px;visibility:hidden;min-width:250px;width:417px;height:56px;background-color:#333;color:#fff;text-align:center;border-radius:10px;font-weight:500;padding:12px 16px;position:fixed;z-index:500;left:24px;box-shadow:0 0 2px #00000029,0 0 5px #0000003b;border:2px solid;border-color:transparent;@-webkit-keyframes fadein{0%{bottom:0;opacity:0}to{opacity:1}}@keyframes fadein{0%{bottom:0;opacity:0}to{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{0%{opacity:1}to{bottom:0;opacity:0}}}.snackbar .snackbar__message{text-align:left;margin-right:24px;flex:1}.snackbar.show{visibility:visible}.snackbar.success{background-color:var(--color-green-500);color:#fff;box-shadow:#43a0474d 0 0 2px,#43a04738 0 0 5px}.snackbar.error{background-color:var(--color-red-500);color:#fff;box-shadow:#e539354d 0 0 2px,#e5393538 0 0 5px}.snackbar.warning{background-color:var(--color-yellow-500);color:#000;box-shadow:#fb8c004d 0 0 2px,#fb8c0038 0 0 5px}.snackbar.info{background-color:var(--color-primary-500);color:#fff;box-shadow:#0e508a4d 0 0 2px,#0e508a38 0 0 5px}.snackbar.notification-1{-webkit-animation:fadein .3s,fadeout .55s 6s;animation:fadein .3s,fadeout .55s 6s;bottom:72px}.snackbar.notification-2{-webkit-animation:fadein .3s,fadeout .55s 6s;animation:fadein .3s,fadeout .55s 6s;bottom:132px}.snackbar.notification-3{-webkit-animation:fadein .3s,fadeout .55s 6s;animation:fadein .3s,fadeout .55s 6s;bottom:192px}.snackbar #close-btn{cursor:pointer}";var __defProp$p=Object.defineProperty,__getOwnPropDesc$o=Object.getOwnPropertyDescriptor,__decorateClass$p=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$o(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$p(W,J,re),re};function getIcon(X){return X?new Map([["error","error"],["info","info"],["warning","warning"],["success","check_circle"]]).get(X):void 0}let NotifierComponent=class extends h$n{render(){return ke$1`
|
|
162
|
-
<div class="snackbar ${this.options.type}">
|
|
163
|
-
<dss-icon icon=${to(getIcon(this.options.type))} size="md"></dss-icon>
|
|
164
|
-
<div class="snackbar__message">${this.options.message??""}</div>
|
|
165
|
-
<div class="snackbar__action">
|
|
166
|
-
<dss-icon @click="${this.close}" id="close-btn" icon="close" size="md"></dss-icon>
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
|
-
`}static get styles(){return i$w`
|
|
170
|
-
${r$J(styles$g)}
|
|
171
|
-
`}show(){this.snackbar.classList.add("show")}clearAndUpdateOrder(X){const W=this.snackbar.classList.values();for(const J of W)J.startsWith("notification")&&this.snackbar.classList.remove(J);this.snackbar.classList.add(X),this.requestUpdate()}close(){this.snackbar.classList.remove("show"),this.dispatchEvent(new CustomEvent("closed"))}};__decorateClass$p([n$v({type:Object})],NotifierComponent.prototype,"options",2),__decorateClass$p([e$G(".snackbar")],NotifierComponent.prototype,"snackbar",2),NotifierComponent=__decorateClass$p([t$k("notifier-component")],NotifierComponent);function rand(X){const W=Math.random()*16|0;return(X==="x"?W:W&3|8).toString(16)}function generateId$1(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,rand)}const notificationStack=[],displayNotifications=[],stackLimit=10,timeToCloseNotification=5,updateNotificationOptsOrder=()=>{for(const[X,W]of displayNotifications.entries())W.order=`notification-${X+1}`},getComponentById=X=>X?document.getElementById(X):void 0,showAndSetTimeOutClose=(X,W)=>{getComponentById(X.id)&&(X.show(),setTimeout(()=>{X.close()},W*1e3))},removeCurrentComponent=X=>{var te;const W=displayNotifications.findIndex(re=>re.id===X),J=getComponentById((te=displayNotifications[W])==null?void 0:te.id);J&&(J.remove(),displayNotifications.splice(W,1))},removeFromStackAndAddToDisplay=()=>{const X=notificationStack[0],W=X&&displayNotifications.find(J=>J.id===X.id);X&&!W&&(displayNotifications.push(X),notificationStack.shift())},refreshAllComponentsOrder=()=>{for(const X of displayNotifications){if(!X.order)continue;const W=getComponentById(X.id);W&&W.clearAndUpdateOrder(X.order)}},setNewDisplayNotification=()=>{const X=displayNotifications.length-1,W=displayNotifications[X];if(!W)return;const J=getComponentById(W.id);J&&showAndSetTimeOutClose(J,timeToCloseNotification)},closeAndUpdateStack=X=>{removeCurrentComponent(X),removeFromStackAndAddToDisplay(),updateNotificationOptsOrder(),refreshAllComponentsOrder(),setNewDisplayNotification()},createNotifyComponent=(X,W)=>{const te=document.body.appendChild(document.createElement("notifier-component"));return te.options=X,te.id=W,te},notify=X=>{const W=`${generateId$1()}`,J={...X,id:W};if(displayNotifications.length<stackLimit?displayNotifications.push(J):notificationStack.push(J),!X.message)throw new Error("message is required");const te=createNotifyComponent(X,W);te.addEventListener("closed",()=>closeAndUpdateStack(W)),te.updateComplete.then(()=>{var ne;if(!notificationStack.length&&displayNotifications.length<=stackLimit){updateNotificationOptsOrder();const oe=(ne=displayNotifications.find(de=>de.id===W))==null?void 0:ne.order;if(!oe)return;te.clearAndUpdateOrder(oe),showAndSetTimeOutClose(te,timeToCloseNotification)}})},openDialog=X=>{X.showCloseButton="showCloseButton"in X?X.showCloseButton:!0,buildDialogComponent(X)};var __defProp$o=Object.defineProperty,__decorateClass$o=(X,W,J,te)=>{for(var re=void 0,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=oe(W,J,re)||re);return re&&__defProp$o(W,J,re),re};const ConfirmMixin=d$s(X=>{class W extends X{close(te){this.dispatchEvent(new CustomEvent("closed",{detail:te}))}canAccept(){return Promise.resolve(!0)}accept(te){return Promise.resolve(te)}}return __decorateClass$o([n$v()],W.prototype,"model"),__decorateClass$o([n$v()],W.prototype,"outputModel"),W});function confirmMixin(X){return ConfirmMixin(X)}const createInteractionManager=()=>({notify:X=>notify(X),confirm:X=>confirm(X),customConfirm:X=>confirm(X),openDialog:X=>openDialog(X)});function _concat(X,W){X=X||[],W=W||[];var J,te=X.length,re=W.length,ne=[];for(J=0;J<te;)ne[ne.length]=X[J],J+=1;for(J=0;J<re;)ne[ne.length]=W[J],J+=1;return ne}var ap=_curry2$1(function(W,J){return typeof J["fantasy-land/ap"]=="function"?J["fantasy-land/ap"](W):typeof W.ap=="function"?W.ap(J):typeof W=="function"?function(te){return W(te)(J(te))}:_reduce(function(te,re){return _concat(te,map$1(re,J))},[],W)}),assoc=_curry3$1(function(W,J,te){var re={};for(var ne in te)re[ne]=te[ne];return re[W]=J,re}),assocPath=_curry3$1(function X(W,J,te){if(W.length===0)return J;var re=W[0];if(W.length>1){var ne=!isNil$1(te)&&_has$1(re,te)?te[re]:_isInteger(W[1])?[]:{};J=X(Array.prototype.slice.call(W,1),J,ne)}if(_isInteger(re)&&_isArray$1(te)){var oe=[].concat(te);return oe[re]=J,oe}else return assoc(re,J,te)}),liftN=_curry2$1(function(W,J){var te=curryN$1(W,J);return curryN$1(W,function(){return _reduce(ap,map$1(te,arguments[0]),Array.prototype.slice.call(arguments,1))})}),lift=_curry1$1(function(W){return liftN(W.length,W)}),not=_curry1$1(function(W){return!W}),complement=lift(not),lens=_curry2$1(function(W,J){return function(te){return function(re){return map$1(function(ne){return J(ne,re)},te(W(re)))}}}),lensPath=_curry1$1(function(W){return lens(path(W),assocPath(W))}),mergeWithKey=_curry3$1(function(W,J,te){var re={},ne;for(ne in J)_has$1(ne,J)&&(re[ne]=_has$1(ne,te)?W(ne,J[ne],te[ne]):J[ne]);for(ne in te)_has$1(ne,te)&&!_has$1(ne,re)&&(re[ne]=te[ne]);return re}),mergeDeepWithKey=_curry3$1(function X(W,J,te){return mergeWithKey(function(re,ne,oe){return _isObject$1(ne)&&_isObject$1(oe)?X(W,ne,oe):W(re,ne,oe)},J,te)}),mergeDeepRight=_curry2$1(function(W,J){return mergeDeepWithKey(function(te,re,ne){return ne},W,J)}),Const=function(X){return{value:X,"fantasy-land/map":function(){return this}}},view=_curry2$1(function(W,J){return W(Const)(J).value});const t$j=complement(isNil$1);function _arity(X,W){switch(X){case 0:return function(){return W.apply(this,arguments)};case 1:return function(J){return W.apply(this,arguments)};case 2:return function(J,te){return W.apply(this,arguments)};case 3:return function(J,te,re){return W.apply(this,arguments)};case 4:return function(J,te,re,ne){return W.apply(this,arguments)};case 5:return function(J,te,re,ne,oe){return W.apply(this,arguments)};case 6:return function(J,te,re,ne,oe,de){return W.apply(this,arguments)};case 7:return function(J,te,re,ne,oe,de,he){return W.apply(this,arguments)};case 8:return function(J,te,re,ne,oe,de,he,ue){return W.apply(this,arguments)};case 9:return function(J,te,re,ne,oe,de,he,ue,ce){return W.apply(this,arguments)};case 10:return function(J,te,re,ne,oe,de,he,ue,ce,pe){return W.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _isPlaceholder(X){return X!=null&&typeof X=="object"&&X["@@functional/placeholder"]===!0}function _curry1(X){return function W(J){return arguments.length===0||_isPlaceholder(J)?W:X.apply(this,arguments)}}function _arrayReduce(X,W,J){for(var te=0,re=J.length;te<re;)W=X(W,J[te]),te+=1;return W}function _curry2(X){return function W(J,te){switch(arguments.length){case 0:return W;case 1:return _isPlaceholder(J)?W:_curry1(function(re){return X(J,re)});default:return _isPlaceholder(J)&&_isPlaceholder(te)?W:_isPlaceholder(J)?_curry1(function(re){return X(re,te)}):_isPlaceholder(te)?_curry1(function(re){return X(J,re)}):X(J,te)}}}const _isArray=Array.isArray||function(W){return W!=null&&W.length>=0&&Object.prototype.toString.call(W)==="[object Array]"};function _isTransformer(X){return X!=null&&typeof X["@@transducer/step"]=="function"}function _dispatchable(X,W,J){return function(){if(arguments.length===0)return J();var te=arguments[arguments.length-1];if(!_isArray(te)){for(var re=0;re<X.length;){if(typeof te[X[re]]=="function")return te[X[re]].apply(te,Array.prototype.slice.call(arguments,0,-1));re+=1}if(_isTransformer(te)){var ne=W.apply(null,Array.prototype.slice.call(arguments,0,-1));return ne(te)}}return J.apply(this,arguments)}}function _map(X,W){for(var J=0,te=W.length,re=Array(te);J<te;)re[J]=X(W[J]),J+=1;return re}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(X){return this.xf["@@transducer/result"](X)}};var XMap=function(){function X(W,J){this.xf=J,this.f=W}return X.prototype["@@transducer/init"]=_xfBase.init,X.prototype["@@transducer/result"]=_xfBase.result,X.prototype["@@transducer/step"]=function(W,J){return this.xf["@@transducer/step"](W,this.f(J))},X}(),_xmap=function(W){return function(J){return new XMap(W,J)}};function _curryN(X,W,J){return function(){for(var te=[],re=0,ne=X,oe=0,de=!1;oe<W.length||re<arguments.length;){var he;oe<W.length&&(!_isPlaceholder(W[oe])||re>=arguments.length)?he=W[oe]:(he=arguments[re],re+=1),te[oe]=he,_isPlaceholder(he)?de=!0:ne-=1,oe+=1}return!de&&ne<=0?J.apply(this,te):_arity(Math.max(0,ne),_curryN(X,te,J))}}var curryN=_curry2(function(W,J){return W===1?_curry1(J):_arity(W,_curryN(W,[],J))});function _has(X,W){return Object.prototype.hasOwnProperty.call(W,X)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(W){return toString$1.call(W)==="[object Arguments]"}:function(W){return _has("callee",W)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains$1=function(W,J){for(var te=0;te<W.length;){if(W[te]===J)return!0;te+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(W){return Object(W)!==W?[]:Object.keys(W)}:function(W){if(Object(W)!==W)return[];var J,te,re=[],ne=hasArgsEnumBug&&_isArguments(W);for(J in W)_has(J,W)&&(!ne||J!=="length")&&(re[re.length]=J);if(hasEnumBug)for(te=nonEnumerableProps.length-1;te>=0;)J=nonEnumerableProps[te],_has(J,W)&&!contains$1(re,J)&&(re[re.length]=J),te-=1;return re}),map=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(W,J){switch(Object.prototype.toString.call(J)){case"[object Function]":return curryN(J.length,function(){return W.call(this,J.apply(this,arguments))});case"[object Object]":return _arrayReduce(function(te,re){return te[re]=W(J[re]),te},{},keys(J));default:return _map(W,J)}}));function _arrayFromIterator(X){for(var W=[],J;!(J=X.next()).done;)W.push(J.value);return W}function _includesWith(X,W,J){for(var te=0,re=J.length;te<re;){if(X(W,J[te]))return!0;te+=1}return!1}function _functionName(X){var W=String(X).match(/^function (\w*)/);return W==null?"":W[1]}function _objectIs(X,W){return X===W?X!==0||1/X===1/W:X!==X&&W!==W}const _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;var type=_curry1(function(W){return W===null?"Null":W===void 0?"Undefined":Object.prototype.toString.call(W).slice(8,-1)});function _uniqContentEquals(X,W,J,te){var re=_arrayFromIterator(X),ne=_arrayFromIterator(W);function oe(de,he){return _equals(de,he,J.slice(),te.slice())}return!_includesWith(function(de,he){return!_includesWith(oe,he,de)},ne,re)}function _equals(X,W,J,te){if(_objectIs$1(X,W))return!0;var re=type(X);if(re!==type(W))return!1;if(typeof X["fantasy-land/equals"]=="function"||typeof W["fantasy-land/equals"]=="function")return typeof X["fantasy-land/equals"]=="function"&&X["fantasy-land/equals"](W)&&typeof W["fantasy-land/equals"]=="function"&&W["fantasy-land/equals"](X);if(typeof X.equals=="function"||typeof W.equals=="function")return typeof X.equals=="function"&&X.equals(W)&&typeof W.equals=="function"&&W.equals(X);switch(re){case"Arguments":case"Array":case"Object":if(typeof X.constructor=="function"&&_functionName(X.constructor)==="Promise")return X===W;break;case"Boolean":case"Number":case"String":if(!(typeof X==typeof W&&_objectIs$1(X.valueOf(),W.valueOf())))return!1;break;case"Date":if(!_objectIs$1(X.valueOf(),W.valueOf()))return!1;break;case"Error":return X.name===W.name&&X.message===W.message;case"RegExp":if(!(X.source===W.source&&X.global===W.global&&X.ignoreCase===W.ignoreCase&&X.multiline===W.multiline&&X.sticky===W.sticky&&X.unicode===W.unicode))return!1;break}for(var ne=J.length-1;ne>=0;){if(J[ne]===X)return te[ne]===W;ne-=1}switch(re){case"Map":return X.size!==W.size?!1:_uniqContentEquals(X.entries(),W.entries(),J.concat([X]),te.concat([W]));case"Set":return X.size!==W.size?!1:_uniqContentEquals(X.values(),W.values(),J.concat([X]),te.concat([W]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var oe=keys(X);if(oe.length!==keys(W).length)return!1;var de=J.concat([X]),he=te.concat([W]);for(ne=oe.length-1;ne>=0;){var ue=oe[ne];if(!(_has(ue,W)&&_equals(W[ue],X[ue],de,he)))return!1;ne-=1}return!0}var equals=_curry2(function(W,J){return _equals(W,J,[],[])});function _indexOf(X,W,J){var te,re;if(typeof X.indexOf=="function")switch(typeof W){case"number":if(W===0){for(te=1/W;J<X.length;){if(re=X[J],re===0&&1/re===te)return J;J+=1}return-1}else if(W!==W){for(;J<X.length;){if(re=X[J],typeof re=="number"&&re!==re)return J;J+=1}return-1}return X.indexOf(W,J);case"string":case"boolean":case"function":case"undefined":return X.indexOf(W,J);case"object":if(W===null)return X.indexOf(W,J)}for(;J<X.length;){if(equals(X[J],W))return J;J+=1}return-1}function _includes(X,W){return _indexOf(W,X,0)>=0}function _quote(X){var W=X.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+W.replace(/"/g,'\\"')+'"'}var pad=function(W){return(W<10?"0":"")+W},_toISOString=typeof Date.prototype.toISOString=="function"?function(W){return W.toISOString()}:function(W){return W.getUTCFullYear()+"-"+pad(W.getUTCMonth()+1)+"-"+pad(W.getUTCDate())+"T"+pad(W.getUTCHours())+":"+pad(W.getUTCMinutes())+":"+pad(W.getUTCSeconds())+"."+(W.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(X){return function(){return!X.apply(this,arguments)}}function _filter(X,W){for(var J=0,te=W.length,re=[];J<te;)X(W[J])&&(re[re.length]=W[J]),J+=1;return re}function _isObject(X){return Object.prototype.toString.call(X)==="[object Object]"}var XFilter=function(){function X(W,J){this.xf=J,this.f=W}return X.prototype["@@transducer/init"]=_xfBase.init,X.prototype["@@transducer/result"]=_xfBase.result,X.prototype["@@transducer/step"]=function(W,J){return this.f(J)?this.xf["@@transducer/step"](W,J):W},X}();function _xfilter(X){return function(W){return new XFilter(X,W)}}var filter=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(X,W){return _isObject(W)?_arrayReduce(function(J,te){return X(W[te])&&(J[te]=W[te]),J},{},keys(W)):_filter(X,W)})),reject=_curry2(function(W,J){return filter(_complement(W),J)});function _toString(X,W){var J=function(oe){var de=W.concat([X]);return _includes(oe,de)?"<Circular>":_toString(oe,de)},te=function(ne,oe){return _map(function(de){return _quote(de)+": "+J(ne[de])},oe.slice().sort())};switch(Object.prototype.toString.call(X)){case"[object Arguments]":return"(function() { return arguments; }("+_map(J,X).join(", ")+"))";case"[object Array]":return"["+_map(J,X).concat(te(X,reject(function(ne){return/^\d+$/.test(ne)},keys(X)))).join(", ")+"]";case"[object Boolean]":return typeof X=="object"?"new Boolean("+J(X.valueOf())+")":X.toString();case"[object Date]":return"new Date("+(isNaN(X.valueOf())?J(NaN):_quote(_toISOString(X)))+")";case"[object Map]":return"new Map("+J(Array.from(X))+")";case"[object Null]":return"null";case"[object Number]":return typeof X=="object"?"new Number("+J(X.valueOf())+")":1/X===-1/0?"-0":X.toString(10);case"[object Set]":return"new Set("+J(Array.from(X).sort())+")";case"[object String]":return typeof X=="object"?"new String("+J(X.valueOf())+")":_quote(X);case"[object Undefined]":return"undefined";default:if(typeof X.toString=="function"){var re=X.toString();if(re!=="[object Object]")return re}return"{"+te(X,keys(X)).join(", ")+"}"}}var toString=_curry1(function(W){return _toString(W,[])}),max$1=_curry2(function(W,J){if(W===J)return J;function te(he,ue){if(he>ue!=ue>he)return ue>he?ue:he}var re=te(W,J);if(re!==void 0)return re;var ne=te(typeof W,typeof J);if(ne!==void 0)return ne===typeof W?W:J;var oe=toString(W),de=te(oe,toString(J));return de!==void 0&&de===oe?W:J});function _curry3(X){return function W(J,te,re){switch(arguments.length){case 0:return W;case 1:return _isPlaceholder(J)?W:_curry2(function(ne,oe){return X(J,ne,oe)});case 2:return _isPlaceholder(J)&&_isPlaceholder(te)?W:_isPlaceholder(J)?_curry2(function(ne,oe){return X(ne,te,oe)}):_isPlaceholder(te)?_curry2(function(ne,oe){return X(J,ne,oe)}):_curry1(function(ne){return X(J,te,ne)});default:return _isPlaceholder(J)&&_isPlaceholder(te)&&_isPlaceholder(re)?W:_isPlaceholder(J)&&_isPlaceholder(te)?_curry2(function(ne,oe){return X(ne,oe,re)}):_isPlaceholder(J)&&_isPlaceholder(re)?_curry2(function(ne,oe){return X(ne,te,oe)}):_isPlaceholder(te)&&_isPlaceholder(re)?_curry2(function(ne,oe){return X(J,ne,oe)}):_isPlaceholder(J)?_curry1(function(ne){return X(ne,te,re)}):_isPlaceholder(te)?_curry1(function(ne){return X(J,ne,re)}):_isPlaceholder(re)?_curry1(function(ne){return X(J,te,ne)}):X(J,te,re)}}}function _isString(X){return Object.prototype.toString.call(X)==="[object String]"}var _isArrayLike=_curry1(function(W){return _isArray(W)?!0:!W||typeof W!="object"||_isString(W)?!1:W.length===0?!0:W.length>0?W.hasOwnProperty(0)&&W.hasOwnProperty(W.length-1):!1}),symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _createReduce(X,W,J){return function(re,ne,oe){if(_isArrayLike(oe))return X(re,ne,oe);if(oe==null)return ne;if(typeof oe["fantasy-land/reduce"]=="function")return W(re,ne,oe,"fantasy-land/reduce");if(oe[symIterator]!=null)return J(re,ne,oe[symIterator]());if(typeof oe.next=="function")return J(re,ne,oe);if(typeof oe.reduce=="function")return W(re,ne,oe,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function _xArrayReduce(X,W,J){for(var te=0,re=J.length;te<re;){if(W=X["@@transducer/step"](W,J[te]),W&&W["@@transducer/reduced"]){W=W["@@transducer/value"];break}te+=1}return X["@@transducer/result"](W)}var bind=_curry2(function(W,J){return _arity(W.length,function(){return W.apply(J,arguments)})});function _xIterableReduce(X,W,J){for(var te=J.next();!te.done;){if(W=X["@@transducer/step"](W,te.value),W&&W["@@transducer/reduced"]){W=W["@@transducer/value"];break}te=J.next()}return X["@@transducer/result"](W)}function _xMethodReduce(X,W,J,te){return X["@@transducer/result"](J[te](bind(X["@@transducer/step"],X),W))}var _xReduce=_createReduce(_xArrayReduce,_xMethodReduce,_xIterableReduce),XWrap=function(){function X(W){this.f=W}return X.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},X.prototype["@@transducer/result"]=function(W){return W},X.prototype["@@transducer/step"]=function(W,J){return this.f(W,J)},X}();function _xwrap(X){return new XWrap(X)}var reduce=_curry3(function(X,W,J){return _xReduce(typeof X=="function"?_xwrap(X):X,W,J)}),cond=_curry1(function(W){var J=reduce(max$1,0,map(function(te){return te[0].length},W));return _arity(J,function(){for(var te=0;te<W.length;){if(W[te][0].apply(this,arguments))return W[te][1].apply(this,arguments);te+=1}})}),isNil=_curry1(function(W){return W==null}),T=function(){return!0};const c$k=(X,W,J=":")=>te=>cond([[()=>isNil(X),()=>{throw new Error("prefix is needed")}],[()=>t$j(W),()=>`${X}${J}${te}${J}${W}`],[T,()=>`${X}${J}${te}`]])(),E$3=c$k("LOCALIZATION",void 0,"::");E$3("LOCALES-RESET");const o$J=E$3("LOCALES-UPDATED"),n$t=E$3("LANGUAGE-UPDATED");E$3("LANGUAGE-RESET"),E$3("FORMATERS-UPDATED"),E$3("FORMATERS-RESET");let o$I=class{constructor(W,J){this.messageType=W,this.callback=J}handle(W){W instanceof this.messageType&&this.callback.call(null,W)}};const c$j=(X,W,J)=>{try{X(W,J)}catch(te){console.error(te)}},b$m=(X,W)=>{try{X.handle(W)}catch(J){console.error(J)}};let p$d=class{constructor(){this.eventLookup={},this.messageHandlers=[]}publish(W,J){let te,re;if(!W)throw new Error("Event channel/type is invalid.");if(typeof W=="string"){if(te=this.eventLookup[W],te)for(te=te.slice(),re=te.length;re--;)c$j(te[re],J,W)}else for(te=this.messageHandlers.slice(),re=te.length;re--;)b$m(te[re],W)}subscribe(W,J){let te,re;if(!W)throw new Error("Event channel/type is invalid.");return typeof W=="string"?(te=J,re=this.eventLookup[W]||(this.eventLookup[W]=[])):(te=new o$I(W,J),re=this.messageHandlers),re.push(te),{dispose(){const ne=re.indexOf(te);ne!==-1&&re.splice(ne,1)}}}subscribeOnce(W,J){const te=this.subscribe(W,(re,ne)=>(te.dispose(),J(re,ne)));return te}};const i$u=new p$d;i$u.subscribe.bind(i$u),i$u.subscribeOnce.bind(i$u);const u$q=i$u.publish.bind(i$u),t$i="en";let e$F=t$i;const L$3=X=>{e$F=X,u$q(n$t,X)},p$c=()=>e$F;var TYPE;(function(X){X[X.literal=0]="literal",X[X.argument=1]="argument",X[X.number=2]="number",X[X.date=3]="date",X[X.time=4]="time",X[X.select=5]="select",X[X.plural=6]="plural",X[X.pound=7]="pound"})(TYPE||(TYPE={}));function isLiteralElement(X){return X.type===TYPE.literal}function isArgumentElement(X){return X.type===TYPE.argument}function isNumberElement(X){return X.type===TYPE.number}function isDateElement(X){return X.type===TYPE.date}function isTimeElement(X){return X.type===TYPE.time}function isSelectElement(X){return X.type===TYPE.select}function isPluralElement(X){return X.type===TYPE.plural}function isPoundElement(X){return X.type===TYPE.pound}function isNumberSkeleton(X){return!!(X&&typeof X=="object"&&X.type===0)}function isDateTimeSkeleton(X){return!!(X&&typeof X=="object"&&X.type===1)}var __extends$1=function(){var X=function(W,J){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,re){te.__proto__=re}||function(te,re){for(var ne in re)re.hasOwnProperty(ne)&&(te[ne]=re[ne])},X(W,J)};return function(W,J){X(W,J);function te(){this.constructor=W}W.prototype=J===null?Object.create(J):(te.prototype=J.prototype,new te)}}(),__assign$4=function(){return __assign$4=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign$4.apply(this,arguments)},SyntaxError=function(X){__extends$1(W,X);function W(J,te,re,ne){var oe=X.call(this)||this;return oe.message=J,oe.expected=te,oe.found=re,oe.location=ne,oe.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(oe,W),oe}return W.buildMessage=function(J,te){function re(ce){return ce.charCodeAt(0).toString(16).toUpperCase()}function ne(ce){return ce.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(pe){return"\\x0"+re(pe)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(pe){return"\\x"+re(pe)})}function oe(ce){return ce.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(pe){return"\\x0"+re(pe)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(pe){return"\\x"+re(pe)})}function de(ce){switch(ce.type){case"literal":return'"'+ne(ce.text)+'"';case"class":var pe=ce.parts.map(function(fe){return Array.isArray(fe)?oe(fe[0])+"-"+oe(fe[1]):oe(fe)});return"["+(ce.inverted?"^":"")+pe+"]";case"any":return"any character";case"end":return"end of input";case"other":return ce.description}}function he(ce){var pe=ce.map(de),fe,ge;if(pe.sort(),pe.length>0){for(fe=1,ge=1;fe<pe.length;fe++)pe[fe-1]!==pe[fe]&&(pe[ge]=pe[fe],ge++);pe.length=ge}switch(pe.length){case 1:return pe[0];case 2:return pe[0]+" or "+pe[1];default:return pe.slice(0,-1).join(", ")+", or "+pe[pe.length-1]}}function ue(ce){return ce?'"'+ne(ce)+'"':"end of input"}return"Expected "+he(J)+" but "+ue(te)+" found."},W}(Error);function peg$parse(X,W){W=W!==void 0?W:{};var J={},te={start:Gr},re=Gr,ne=function(Oe){return Oe.join("")},oe=function(Oe){return __assign$4({type:TYPE.literal,value:Oe},$r())},de="#",he=hr("#",!1),ue=function(){return __assign$4({type:TYPE.pound},$r())},ce=mr("argumentElement"),pe="{",fe=hr("{",!1),ge="}",me=hr("}",!1),ve=function(Oe){return __assign$4({type:TYPE.argument,value:Oe},$r())},be=mr("numberSkeletonId"),ye=/^['\/{}]/,we=xr(["'","/","{","}"],!1,!1),Se=xi(),_e=mr("numberSkeletonTokenOption"),Ce="/",Le=hr("/",!1),qe=function(Oe){return Oe},Ie=mr("numberSkeletonToken"),ze=function(Oe,He){return{stem:Oe,options:He}},Pe=function(Oe){return __assign$4({type:0,tokens:Oe},$r())},Ae="::",De=hr("::",!1),Me=function(Oe){return Oe},Be=function(){return yr.push("numberArgStyle"),!0},Ve=function(Oe){return yr.pop(),Oe.replace(/\s*$/,"")},Ye=",",Je=hr(",",!1),vt="number",Xe=hr("number",!1),Ge=function(Oe,He,tt){return __assign$4({type:He==="number"?TYPE.number:He==="date"?TYPE.date:TYPE.time,style:tt&&tt[2],value:Oe},$r())},Ne="'",Ue=hr("'",!1),We=/^[^']/,Qe=xr(["'"],!0,!1),Ze=/^[^a-zA-Z'{}]/,je=xr([["a","z"],["A","Z"],"'","{","}"],!0,!1),Ke=/^[a-zA-Z]/,it=xr([["a","z"],["A","Z"]],!1,!1),nt=function(Oe){return __assign$4({type:1,pattern:Oe},$r())},bt=function(){return yr.push("dateOrTimeArgStyle"),!0},Et="date",Dt=hr("date",!1),Lt="time",Bt=hr("time",!1),jt="plural",dr=hr("plural",!1),rr="selectordinal",gt=hr("selectordinal",!1),mt="offset:",xt=hr("offset:",!1),St=function(Oe,He,tt,ft){return __assign$4({type:TYPE.plural,pluralType:He==="plural"?"cardinal":"ordinal",value:Oe,offset:tt?tt[2]:0,options:ft.reduce(function(wt,Mt){var nr=Mt.id,Vt=Mt.value,vr=Mt.location;return nr in wt&&jr('Duplicate option "'+nr+'" in plural element: "'+Hr()+'"',Lr()),wt[nr]={value:Vt,location:vr},wt},{})},$r())},$t="select",Ft=hr("select",!1),Nt=function(Oe,He){return __assign$4({type:TYPE.select,value:Oe,options:He.reduce(function(tt,ft){var wt=ft.id,Mt=ft.value,nr=ft.location;return wt in tt&&jr('Duplicate option "'+wt+'" in select element: "'+Hr()+'"',Lr()),tt[wt]={value:Mt,location:nr},tt},{})},$r())},zt="=",or=hr("=",!1),pr=function(Oe){return yr.push("select"),!0},Zt=function(Oe,He){return yr.pop(),__assign$4({id:Oe,value:He},$r())},Cr=function(Oe){return yr.push("plural"),!0},ir=function(Oe,He){return yr.pop(),__assign$4({id:Oe,value:He},$r())},rt=mr("whitespace"),ot=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,_t=xr([[" ","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),kt=mr("syntax pattern"),It=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,ur=xr([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),cr=mr("optional whitespace"),Ht=mr("number"),At="-",Ot=hr("-",!1),qt=function(Oe,He){return He?Oe?-He:He:0},Pt=mr("double apostrophes"),Ut="''",Xt=hr("''",!1),ar=function(){return"'"},gr=function(Oe,He){return Oe+He.replace("''","'")},Or=function(Oe){return Oe!=="{"&&!(ai()&&Oe==="#")&&!(Ui()&&Oe==="}")},Dr=`
|
|
123
|
+
`+ne):te.stack=ne}catch{}}throw te}}_request(W,J){typeof W=="string"?(J=J||{},J.url=W):J=W||{},J=mergeConfig$1(this.defaults,J);const{transitional:te,paramsSerializer:re,headers:ne}=J;te!==void 0&&validator.assertOptions(te,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),re!=null&&(utils$1.isFunction(re)?J.paramsSerializer={serialize:re}:validator.assertOptions(re,{encode:validators.function,serialize:validators.function},!0)),J.method=(J.method||this.defaults.method||"get").toLowerCase();let oe=ne&&utils$1.merge(ne.common,ne[J.method]);ne&&utils$1.forEach(["delete","get","head","post","put","patch","common"],me=>{delete ne[me]}),J.headers=AxiosHeaders.concat(oe,ne);const de=[];let he=!0;this.interceptors.request.forEach(function(ve){typeof ve.runWhen=="function"&&ve.runWhen(J)===!1||(he=he&&ve.synchronous,de.unshift(ve.fulfilled,ve.rejected))});const ue=[];this.interceptors.response.forEach(function(ve){ue.push(ve.fulfilled,ve.rejected)});let ce,pe=0,fe;if(!he){const me=[dispatchRequest.bind(this),void 0];for(me.unshift.apply(me,de),me.push.apply(me,ue),fe=me.length,ce=Promise.resolve(J);pe<fe;)ce=ce.then(me[pe++],me[pe++]);return ce}fe=de.length;let ge=J;for(pe=0;pe<fe;){const me=de[pe++],ve=de[pe++];try{ge=me(ge)}catch(be){ve.call(this,be);break}}try{ce=dispatchRequest.call(this,ge)}catch(me){return Promise.reject(me)}for(pe=0,fe=ue.length;pe<fe;)ce=ce.then(ue[pe++],ue[pe++]);return ce}getUri(W){W=mergeConfig$1(this.defaults,W);const J=buildFullPath(W.baseURL,W.url);return buildURL(J,W.params,W.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(W){Axios.prototype[W]=function(J,te){return this.request(mergeConfig$1(te||{},{method:W,url:J,data:(te||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(W){function J(te){return function(ne,oe,de){return this.request(mergeConfig$1(de||{},{method:W,headers:te?{"Content-Type":"multipart/form-data"}:{},url:ne,data:oe}))}}Axios.prototype[W]=J(),Axios.prototype[W+"Form"]=J(!0)});class CancelToken{constructor(W){if(typeof W!="function")throw new TypeError("executor must be a function.");let J;this.promise=new Promise(function(ne){J=ne});const te=this;this.promise.then(re=>{if(!te._listeners)return;let ne=te._listeners.length;for(;ne-- >0;)te._listeners[ne](re);te._listeners=null}),this.promise.then=re=>{let ne;const oe=new Promise(de=>{te.subscribe(de),ne=de}).then(re);return oe.cancel=function(){te.unsubscribe(ne)},oe},W(function(ne,oe,de){te.reason||(te.reason=new CanceledError(ne,oe,de),J(te.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(W){if(this.reason){W(this.reason);return}this._listeners?this._listeners.push(W):this._listeners=[W]}unsubscribe(W){if(!this._listeners)return;const J=this._listeners.indexOf(W);J!==-1&&this._listeners.splice(J,1)}toAbortSignal(){const W=new AbortController,J=te=>{W.abort(te)};return this.subscribe(J),W.signal.unsubscribe=()=>this.unsubscribe(J),W.signal}static source(){let W;return{token:new CancelToken(function(re){W=re}),cancel:W}}}function spread(X){return function(J){return X.apply(null,J)}}function isAxiosError(X){return utils$1.isObject(X)&&X.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([X,W])=>{HttpStatusCode[W]=X});function createInstance(X){const W=new Axios(X),J=bind$1(Axios.prototype.request,W);return utils$1.extend(J,Axios.prototype,W,{allOwnKeys:!0}),utils$1.extend(J,W,null,{allOwnKeys:!0}),J.create=function(re){return createInstance(mergeConfig$1(X,re))},J}const axios=createInstance(defaults);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(W){return Promise.all(W)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=X=>formDataToJSON(utils$1.isHTMLForm(X)?new FormData(X):X),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios;class InvalidTokenError extends Error{}InvalidTokenError.prototype.name="InvalidTokenError";function b64DecodeUnicode(X){return decodeURIComponent(atob(X).replace(/(.)/g,(W,J)=>{let te=J.charCodeAt(0).toString(16).toUpperCase();return te.length<2&&(te="0"+te),"%"+te}))}function base64UrlDecode(X){let W=X.replace(/-/g,"+").replace(/_/g,"/");switch(W.length%4){case 0:break;case 2:W+="==";break;case 3:W+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b64DecodeUnicode(W)}catch{return atob(W)}}function jwtDecode(X,W){if(typeof X!="string")throw new InvalidTokenError("Invalid token specified: must be a string");W||(W={});const J=W.header===!0?0:1,te=X.split(".")[J];if(typeof te!="string")throw new InvalidTokenError(`Invalid token specified: missing part #${J+1}`);let re;try{re=base64UrlDecode(te)}catch(ne){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${J+1} (${ne.message})`)}try{return JSON.parse(re)}catch(ne){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${J+1} (${ne.message})`)}}const mpidHeader="x-catsalut-mpid",obtainMpid=X=>{var J;return(J=jwtDecode(X).access_info)==null?void 0:J.mpi_patient_id};class MissingMpidHeaderError extends Error{constructor(W){super(W),this.name="MissingMpidHeaderError"}}class InvalidMpidHeaderError extends Error{constructor(W){super(W),this.name="InvalidMpidHeaderError"}}const validateMpidHeader=(X,W)=>{const J=X.headers[mpidHeader];if(!J)throw new MissingMpidHeaderError("Mpid header is missing");if(J!==obtainMpid(W.getToken()))throw new InvalidMpidHeaderError("Mpid header value is invalid");return!0},createAxiosInstance=(X,W,J=!1)=>{const te=axios.create();return te.interceptors.request.use(re=>(re.headers.Authorization=`Bearer ${X.getToken()}`,re)),te.interceptors.response.use(re=>{try{return J&&validateMpidHeader(re,X),re}catch(ne){return ne instanceof InvalidMpidHeaderError&&W.publish(shellEvents.mpidHeaderInvalid,{request:re.config}),Promise.reject(ne)}},async re=>{var oe;const ne=re.config;if(((oe=re.response)==null?void 0:oe.status)===401&&!ne._retry){ne._retry=!0;try{const de=await X.refreshToken();return ne.headers.Authorization=`Bearer ${de}`,te(ne)}catch(de){return console.error("Error refreshing token:",de),W.publish(shellEvents.refreshTokenFailed,{request:ne}),Promise.reject(re)}}return Promise.reject(re)}),te};let instance;const createHttpClient=(X,W)=>(instance||(instance=createAxiosInstance(X,W)),{request:instance.request});function _concat(X,W){X=X||[],W=W||[];var J,te=X.length,re=W.length,ne=[];for(J=0;J<te;)ne[ne.length]=X[J],J+=1;for(J=0;J<re;)ne[ne.length]=W[J],J+=1;return ne}var ap=_curry2$1(function(W,J){return typeof J["fantasy-land/ap"]=="function"?J["fantasy-land/ap"](W):typeof W.ap=="function"?W.ap(J):typeof W=="function"?function(te){return W(te)(J(te))}:_reduce(function(te,re){return _concat(te,map$1(re,J))},[],W)}),assoc=_curry3$1(function(W,J,te){var re={};for(var ne in te)re[ne]=te[ne];return re[W]=J,re}),assocPath=_curry3$1(function X(W,J,te){if(W.length===0)return J;var re=W[0];if(W.length>1){var ne=!isNil$1(te)&&_has$1(re,te)?te[re]:_isInteger(W[1])?[]:{};J=X(Array.prototype.slice.call(W,1),J,ne)}if(_isInteger(re)&&_isArray$1(te)){var oe=[].concat(te);return oe[re]=J,oe}else return assoc(re,J,te)}),liftN=_curry2$1(function(W,J){var te=curryN$1(W,J);return curryN$1(W,function(){return _reduce(ap,map$1(te,arguments[0]),Array.prototype.slice.call(arguments,1))})}),lift=_curry1$1(function(W){return liftN(W.length,W)}),not=_curry1$1(function(W){return!W}),complement=lift(not),lens=_curry2$1(function(W,J){return function(te){return function(re){return map$1(function(ne){return J(ne,re)},te(W(re)))}}}),lensPath=_curry1$1(function(W){return lens(path(W),assocPath(W))}),mergeWithKey=_curry3$1(function(W,J,te){var re={},ne;for(ne in J)_has$1(ne,J)&&(re[ne]=_has$1(ne,te)?W(ne,J[ne],te[ne]):J[ne]);for(ne in te)_has$1(ne,te)&&!_has$1(ne,re)&&(re[ne]=te[ne]);return re}),mergeDeepWithKey=_curry3$1(function X(W,J,te){return mergeWithKey(function(re,ne,oe){return _isObject$1(ne)&&_isObject$1(oe)?X(W,ne,oe):W(re,ne,oe)},J,te)}),mergeDeepRight=_curry2$1(function(W,J){return mergeDeepWithKey(function(te,re,ne){return ne},W,J)}),Const=function(X){return{value:X,"fantasy-land/map":function(){return this}}},view=_curry2$1(function(W,J){return W(Const)(J).value});const t$j=complement(isNil$1);function _arity(X,W){switch(X){case 0:return function(){return W.apply(this,arguments)};case 1:return function(J){return W.apply(this,arguments)};case 2:return function(J,te){return W.apply(this,arguments)};case 3:return function(J,te,re){return W.apply(this,arguments)};case 4:return function(J,te,re,ne){return W.apply(this,arguments)};case 5:return function(J,te,re,ne,oe){return W.apply(this,arguments)};case 6:return function(J,te,re,ne,oe,de){return W.apply(this,arguments)};case 7:return function(J,te,re,ne,oe,de,he){return W.apply(this,arguments)};case 8:return function(J,te,re,ne,oe,de,he,ue){return W.apply(this,arguments)};case 9:return function(J,te,re,ne,oe,de,he,ue,ce){return W.apply(this,arguments)};case 10:return function(J,te,re,ne,oe,de,he,ue,ce,pe){return W.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _isPlaceholder(X){return X!=null&&typeof X=="object"&&X["@@functional/placeholder"]===!0}function _curry1(X){return function W(J){return arguments.length===0||_isPlaceholder(J)?W:X.apply(this,arguments)}}function _arrayReduce(X,W,J){for(var te=0,re=J.length;te<re;)W=X(W,J[te]),te+=1;return W}function _curry2(X){return function W(J,te){switch(arguments.length){case 0:return W;case 1:return _isPlaceholder(J)?W:_curry1(function(re){return X(J,re)});default:return _isPlaceholder(J)&&_isPlaceholder(te)?W:_isPlaceholder(J)?_curry1(function(re){return X(re,te)}):_isPlaceholder(te)?_curry1(function(re){return X(J,re)}):X(J,te)}}}const _isArray=Array.isArray||function(W){return W!=null&&W.length>=0&&Object.prototype.toString.call(W)==="[object Array]"};function _isTransformer(X){return X!=null&&typeof X["@@transducer/step"]=="function"}function _dispatchable(X,W,J){return function(){if(arguments.length===0)return J();var te=arguments[arguments.length-1];if(!_isArray(te)){for(var re=0;re<X.length;){if(typeof te[X[re]]=="function")return te[X[re]].apply(te,Array.prototype.slice.call(arguments,0,-1));re+=1}if(_isTransformer(te)){var ne=W.apply(null,Array.prototype.slice.call(arguments,0,-1));return ne(te)}}return J.apply(this,arguments)}}function _map(X,W){for(var J=0,te=W.length,re=Array(te);J<te;)re[J]=X(W[J]),J+=1;return re}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(X){return this.xf["@@transducer/result"](X)}};var XMap=function(){function X(W,J){this.xf=J,this.f=W}return X.prototype["@@transducer/init"]=_xfBase.init,X.prototype["@@transducer/result"]=_xfBase.result,X.prototype["@@transducer/step"]=function(W,J){return this.xf["@@transducer/step"](W,this.f(J))},X}(),_xmap=function(W){return function(J){return new XMap(W,J)}};function _curryN(X,W,J){return function(){for(var te=[],re=0,ne=X,oe=0,de=!1;oe<W.length||re<arguments.length;){var he;oe<W.length&&(!_isPlaceholder(W[oe])||re>=arguments.length)?he=W[oe]:(he=arguments[re],re+=1),te[oe]=he,_isPlaceholder(he)?de=!0:ne-=1,oe+=1}return!de&&ne<=0?J.apply(this,te):_arity(Math.max(0,ne),_curryN(X,te,J))}}var curryN=_curry2(function(W,J){return W===1?_curry1(J):_arity(W,_curryN(W,[],J))});function _has(X,W){return Object.prototype.hasOwnProperty.call(W,X)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(W){return toString$1.call(W)==="[object Arguments]"}:function(W){return _has("callee",W)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains$1=function(W,J){for(var te=0;te<W.length;){if(W[te]===J)return!0;te+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(W){return Object(W)!==W?[]:Object.keys(W)}:function(W){if(Object(W)!==W)return[];var J,te,re=[],ne=hasArgsEnumBug&&_isArguments(W);for(J in W)_has(J,W)&&(!ne||J!=="length")&&(re[re.length]=J);if(hasEnumBug)for(te=nonEnumerableProps.length-1;te>=0;)J=nonEnumerableProps[te],_has(J,W)&&!contains$1(re,J)&&(re[re.length]=J),te-=1;return re}),map=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(W,J){switch(Object.prototype.toString.call(J)){case"[object Function]":return curryN(J.length,function(){return W.call(this,J.apply(this,arguments))});case"[object Object]":return _arrayReduce(function(te,re){return te[re]=W(J[re]),te},{},keys(J));default:return _map(W,J)}}));function _arrayFromIterator(X){for(var W=[],J;!(J=X.next()).done;)W.push(J.value);return W}function _includesWith(X,W,J){for(var te=0,re=J.length;te<re;){if(X(W,J[te]))return!0;te+=1}return!1}function _functionName(X){var W=String(X).match(/^function (\w*)/);return W==null?"":W[1]}function _objectIs(X,W){return X===W?X!==0||1/X===1/W:X!==X&&W!==W}const _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;var type=_curry1(function(W){return W===null?"Null":W===void 0?"Undefined":Object.prototype.toString.call(W).slice(8,-1)});function _uniqContentEquals(X,W,J,te){var re=_arrayFromIterator(X),ne=_arrayFromIterator(W);function oe(de,he){return _equals(de,he,J.slice(),te.slice())}return!_includesWith(function(de,he){return!_includesWith(oe,he,de)},ne,re)}function _equals(X,W,J,te){if(_objectIs$1(X,W))return!0;var re=type(X);if(re!==type(W))return!1;if(typeof X["fantasy-land/equals"]=="function"||typeof W["fantasy-land/equals"]=="function")return typeof X["fantasy-land/equals"]=="function"&&X["fantasy-land/equals"](W)&&typeof W["fantasy-land/equals"]=="function"&&W["fantasy-land/equals"](X);if(typeof X.equals=="function"||typeof W.equals=="function")return typeof X.equals=="function"&&X.equals(W)&&typeof W.equals=="function"&&W.equals(X);switch(re){case"Arguments":case"Array":case"Object":if(typeof X.constructor=="function"&&_functionName(X.constructor)==="Promise")return X===W;break;case"Boolean":case"Number":case"String":if(!(typeof X==typeof W&&_objectIs$1(X.valueOf(),W.valueOf())))return!1;break;case"Date":if(!_objectIs$1(X.valueOf(),W.valueOf()))return!1;break;case"Error":return X.name===W.name&&X.message===W.message;case"RegExp":if(!(X.source===W.source&&X.global===W.global&&X.ignoreCase===W.ignoreCase&&X.multiline===W.multiline&&X.sticky===W.sticky&&X.unicode===W.unicode))return!1;break}for(var ne=J.length-1;ne>=0;){if(J[ne]===X)return te[ne]===W;ne-=1}switch(re){case"Map":return X.size!==W.size?!1:_uniqContentEquals(X.entries(),W.entries(),J.concat([X]),te.concat([W]));case"Set":return X.size!==W.size?!1:_uniqContentEquals(X.values(),W.values(),J.concat([X]),te.concat([W]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var oe=keys(X);if(oe.length!==keys(W).length)return!1;var de=J.concat([X]),he=te.concat([W]);for(ne=oe.length-1;ne>=0;){var ue=oe[ne];if(!(_has(ue,W)&&_equals(W[ue],X[ue],de,he)))return!1;ne-=1}return!0}var equals=_curry2(function(W,J){return _equals(W,J,[],[])});function _indexOf(X,W,J){var te,re;if(typeof X.indexOf=="function")switch(typeof W){case"number":if(W===0){for(te=1/W;J<X.length;){if(re=X[J],re===0&&1/re===te)return J;J+=1}return-1}else if(W!==W){for(;J<X.length;){if(re=X[J],typeof re=="number"&&re!==re)return J;J+=1}return-1}return X.indexOf(W,J);case"string":case"boolean":case"function":case"undefined":return X.indexOf(W,J);case"object":if(W===null)return X.indexOf(W,J)}for(;J<X.length;){if(equals(X[J],W))return J;J+=1}return-1}function _includes(X,W){return _indexOf(W,X,0)>=0}function _quote(X){var W=X.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+W.replace(/"/g,'\\"')+'"'}var pad=function(W){return(W<10?"0":"")+W},_toISOString=typeof Date.prototype.toISOString=="function"?function(W){return W.toISOString()}:function(W){return W.getUTCFullYear()+"-"+pad(W.getUTCMonth()+1)+"-"+pad(W.getUTCDate())+"T"+pad(W.getUTCHours())+":"+pad(W.getUTCMinutes())+":"+pad(W.getUTCSeconds())+"."+(W.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(X){return function(){return!X.apply(this,arguments)}}function _filter(X,W){for(var J=0,te=W.length,re=[];J<te;)X(W[J])&&(re[re.length]=W[J]),J+=1;return re}function _isObject(X){return Object.prototype.toString.call(X)==="[object Object]"}var XFilter=function(){function X(W,J){this.xf=J,this.f=W}return X.prototype["@@transducer/init"]=_xfBase.init,X.prototype["@@transducer/result"]=_xfBase.result,X.prototype["@@transducer/step"]=function(W,J){return this.f(J)?this.xf["@@transducer/step"](W,J):W},X}();function _xfilter(X){return function(W){return new XFilter(X,W)}}var filter=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(X,W){return _isObject(W)?_arrayReduce(function(J,te){return X(W[te])&&(J[te]=W[te]),J},{},keys(W)):_filter(X,W)})),reject=_curry2(function(W,J){return filter(_complement(W),J)});function _toString(X,W){var J=function(oe){var de=W.concat([X]);return _includes(oe,de)?"<Circular>":_toString(oe,de)},te=function(ne,oe){return _map(function(de){return _quote(de)+": "+J(ne[de])},oe.slice().sort())};switch(Object.prototype.toString.call(X)){case"[object Arguments]":return"(function() { return arguments; }("+_map(J,X).join(", ")+"))";case"[object Array]":return"["+_map(J,X).concat(te(X,reject(function(ne){return/^\d+$/.test(ne)},keys(X)))).join(", ")+"]";case"[object Boolean]":return typeof X=="object"?"new Boolean("+J(X.valueOf())+")":X.toString();case"[object Date]":return"new Date("+(isNaN(X.valueOf())?J(NaN):_quote(_toISOString(X)))+")";case"[object Map]":return"new Map("+J(Array.from(X))+")";case"[object Null]":return"null";case"[object Number]":return typeof X=="object"?"new Number("+J(X.valueOf())+")":1/X===-1/0?"-0":X.toString(10);case"[object Set]":return"new Set("+J(Array.from(X).sort())+")";case"[object String]":return typeof X=="object"?"new String("+J(X.valueOf())+")":_quote(X);case"[object Undefined]":return"undefined";default:if(typeof X.toString=="function"){var re=X.toString();if(re!=="[object Object]")return re}return"{"+te(X,keys(X)).join(", ")+"}"}}var toString=_curry1(function(W){return _toString(W,[])}),max$1=_curry2(function(W,J){if(W===J)return J;function te(he,ue){if(he>ue!=ue>he)return ue>he?ue:he}var re=te(W,J);if(re!==void 0)return re;var ne=te(typeof W,typeof J);if(ne!==void 0)return ne===typeof W?W:J;var oe=toString(W),de=te(oe,toString(J));return de!==void 0&&de===oe?W:J});function _curry3(X){return function W(J,te,re){switch(arguments.length){case 0:return W;case 1:return _isPlaceholder(J)?W:_curry2(function(ne,oe){return X(J,ne,oe)});case 2:return _isPlaceholder(J)&&_isPlaceholder(te)?W:_isPlaceholder(J)?_curry2(function(ne,oe){return X(ne,te,oe)}):_isPlaceholder(te)?_curry2(function(ne,oe){return X(J,ne,oe)}):_curry1(function(ne){return X(J,te,ne)});default:return _isPlaceholder(J)&&_isPlaceholder(te)&&_isPlaceholder(re)?W:_isPlaceholder(J)&&_isPlaceholder(te)?_curry2(function(ne,oe){return X(ne,oe,re)}):_isPlaceholder(J)&&_isPlaceholder(re)?_curry2(function(ne,oe){return X(ne,te,oe)}):_isPlaceholder(te)&&_isPlaceholder(re)?_curry2(function(ne,oe){return X(J,ne,oe)}):_isPlaceholder(J)?_curry1(function(ne){return X(ne,te,re)}):_isPlaceholder(te)?_curry1(function(ne){return X(J,ne,re)}):_isPlaceholder(re)?_curry1(function(ne){return X(J,te,ne)}):X(J,te,re)}}}function _isString(X){return Object.prototype.toString.call(X)==="[object String]"}var _isArrayLike=_curry1(function(W){return _isArray(W)?!0:!W||typeof W!="object"||_isString(W)?!1:W.length===0?!0:W.length>0?W.hasOwnProperty(0)&&W.hasOwnProperty(W.length-1):!1}),symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _createReduce(X,W,J){return function(re,ne,oe){if(_isArrayLike(oe))return X(re,ne,oe);if(oe==null)return ne;if(typeof oe["fantasy-land/reduce"]=="function")return W(re,ne,oe,"fantasy-land/reduce");if(oe[symIterator]!=null)return J(re,ne,oe[symIterator]());if(typeof oe.next=="function")return J(re,ne,oe);if(typeof oe.reduce=="function")return W(re,ne,oe,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function _xArrayReduce(X,W,J){for(var te=0,re=J.length;te<re;){if(W=X["@@transducer/step"](W,J[te]),W&&W["@@transducer/reduced"]){W=W["@@transducer/value"];break}te+=1}return X["@@transducer/result"](W)}var bind=_curry2(function(W,J){return _arity(W.length,function(){return W.apply(J,arguments)})});function _xIterableReduce(X,W,J){for(var te=J.next();!te.done;){if(W=X["@@transducer/step"](W,te.value),W&&W["@@transducer/reduced"]){W=W["@@transducer/value"];break}te=J.next()}return X["@@transducer/result"](W)}function _xMethodReduce(X,W,J,te){return X["@@transducer/result"](J[te](bind(X["@@transducer/step"],X),W))}var _xReduce=_createReduce(_xArrayReduce,_xMethodReduce,_xIterableReduce),XWrap=function(){function X(W){this.f=W}return X.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},X.prototype["@@transducer/result"]=function(W){return W},X.prototype["@@transducer/step"]=function(W,J){return this.f(W,J)},X}();function _xwrap(X){return new XWrap(X)}var reduce=_curry3(function(X,W,J){return _xReduce(typeof X=="function"?_xwrap(X):X,W,J)}),cond=_curry1(function(W){var J=reduce(max$1,0,map(function(te){return te[0].length},W));return _arity(J,function(){for(var te=0;te<W.length;){if(W[te][0].apply(this,arguments))return W[te][1].apply(this,arguments);te+=1}})}),isNil=_curry1(function(W){return W==null}),T=function(){return!0};const c$k=(X,W,J=":")=>te=>cond([[()=>isNil(X),()=>{throw new Error("prefix is needed")}],[()=>t$j(W),()=>`${X}${J}${te}${J}${W}`],[T,()=>`${X}${J}${te}`]])(),E$3=c$k("LOCALIZATION",void 0,"::");E$3("LOCALES-RESET");const o$J=E$3("LOCALES-UPDATED"),n$t=E$3("LANGUAGE-UPDATED");E$3("LANGUAGE-RESET"),E$3("FORMATERS-UPDATED"),E$3("FORMATERS-RESET");let o$I=class{constructor(W,J){this.messageType=W,this.callback=J}handle(W){W instanceof this.messageType&&this.callback.call(null,W)}};const c$j=(X,W,J)=>{try{X(W,J)}catch(te){console.error(te)}},b$m=(X,W)=>{try{X.handle(W)}catch(J){console.error(J)}};let p$d=class{constructor(){this.eventLookup={},this.messageHandlers=[]}publish(W,J){let te,re;if(!W)throw new Error("Event channel/type is invalid.");if(typeof W=="string"){if(te=this.eventLookup[W],te)for(te=te.slice(),re=te.length;re--;)c$j(te[re],J,W)}else for(te=this.messageHandlers.slice(),re=te.length;re--;)b$m(te[re],W)}subscribe(W,J){let te,re;if(!W)throw new Error("Event channel/type is invalid.");return typeof W=="string"?(te=J,re=this.eventLookup[W]||(this.eventLookup[W]=[])):(te=new o$I(W,J),re=this.messageHandlers),re.push(te),{dispose(){const ne=re.indexOf(te);ne!==-1&&re.splice(ne,1)}}}subscribeOnce(W,J){const te=this.subscribe(W,(re,ne)=>(te.dispose(),J(re,ne)));return te}};const i$u=new p$d;i$u.subscribe.bind(i$u),i$u.subscribeOnce.bind(i$u);const u$q=i$u.publish.bind(i$u),t$i="en";let e$F=t$i;const L$3=X=>{e$F=X,u$q(n$t,X)},p$c=()=>e$F;var TYPE;(function(X){X[X.literal=0]="literal",X[X.argument=1]="argument",X[X.number=2]="number",X[X.date=3]="date",X[X.time=4]="time",X[X.select=5]="select",X[X.plural=6]="plural",X[X.pound=7]="pound"})(TYPE||(TYPE={}));function isLiteralElement(X){return X.type===TYPE.literal}function isArgumentElement(X){return X.type===TYPE.argument}function isNumberElement(X){return X.type===TYPE.number}function isDateElement(X){return X.type===TYPE.date}function isTimeElement(X){return X.type===TYPE.time}function isSelectElement(X){return X.type===TYPE.select}function isPluralElement(X){return X.type===TYPE.plural}function isPoundElement(X){return X.type===TYPE.pound}function isNumberSkeleton(X){return!!(X&&typeof X=="object"&&X.type===0)}function isDateTimeSkeleton(X){return!!(X&&typeof X=="object"&&X.type===1)}var __extends$1=function(){var X=function(W,J){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,re){te.__proto__=re}||function(te,re){for(var ne in re)re.hasOwnProperty(ne)&&(te[ne]=re[ne])},X(W,J)};return function(W,J){X(W,J);function te(){this.constructor=W}W.prototype=J===null?Object.create(J):(te.prototype=J.prototype,new te)}}(),__assign$4=function(){return __assign$4=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign$4.apply(this,arguments)},SyntaxError=function(X){__extends$1(W,X);function W(J,te,re,ne){var oe=X.call(this)||this;return oe.message=J,oe.expected=te,oe.found=re,oe.location=ne,oe.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(oe,W),oe}return W.buildMessage=function(J,te){function re(ce){return ce.charCodeAt(0).toString(16).toUpperCase()}function ne(ce){return ce.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(pe){return"\\x0"+re(pe)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(pe){return"\\x"+re(pe)})}function oe(ce){return ce.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(pe){return"\\x0"+re(pe)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(pe){return"\\x"+re(pe)})}function de(ce){switch(ce.type){case"literal":return'"'+ne(ce.text)+'"';case"class":var pe=ce.parts.map(function(fe){return Array.isArray(fe)?oe(fe[0])+"-"+oe(fe[1]):oe(fe)});return"["+(ce.inverted?"^":"")+pe+"]";case"any":return"any character";case"end":return"end of input";case"other":return ce.description}}function he(ce){var pe=ce.map(de),fe,ge;if(pe.sort(),pe.length>0){for(fe=1,ge=1;fe<pe.length;fe++)pe[fe-1]!==pe[fe]&&(pe[ge]=pe[fe],ge++);pe.length=ge}switch(pe.length){case 1:return pe[0];case 2:return pe[0]+" or "+pe[1];default:return pe.slice(0,-1).join(", ")+", or "+pe[pe.length-1]}}function ue(ce){return ce?'"'+ne(ce)+'"':"end of input"}return"Expected "+he(J)+" but "+ue(te)+" found."},W}(Error);function peg$parse(X,W){W=W!==void 0?W:{};var J={},te={start:Gr},re=Gr,ne=function(Oe){return Oe.join("")},oe=function(Oe){return __assign$4({type:TYPE.literal,value:Oe},$r())},de="#",he=hr("#",!1),ue=function(){return __assign$4({type:TYPE.pound},$r())},ce=mr("argumentElement"),pe="{",fe=hr("{",!1),ge="}",me=hr("}",!1),ve=function(Oe){return __assign$4({type:TYPE.argument,value:Oe},$r())},be=mr("numberSkeletonId"),ye=/^['\/{}]/,we=xr(["'","/","{","}"],!1,!1),Se=xi(),_e=mr("numberSkeletonTokenOption"),Ce="/",Le=hr("/",!1),Pe=function(Oe){return Oe},Ie=mr("numberSkeletonToken"),ze=function(Oe,He){return{stem:Oe,options:He}},qe=function(Oe){return __assign$4({type:0,tokens:Oe},$r())},Ae="::",De=hr("::",!1),Me=function(Oe){return Oe},Be=function(){return yr.push("numberArgStyle"),!0},Ve=function(Oe){return yr.pop(),Oe.replace(/\s*$/,"")},Ye=",",Je=hr(",",!1),vt="number",Xe=hr("number",!1),Ge=function(Oe,He,tt){return __assign$4({type:He==="number"?TYPE.number:He==="date"?TYPE.date:TYPE.time,style:tt&&tt[2],value:Oe},$r())},Ne="'",Ue=hr("'",!1),We=/^[^']/,Qe=xr(["'"],!0,!1),Ze=/^[^a-zA-Z'{}]/,je=xr([["a","z"],["A","Z"],"'","{","}"],!0,!1),Ke=/^[a-zA-Z]/,it=xr([["a","z"],["A","Z"]],!1,!1),nt=function(Oe){return __assign$4({type:1,pattern:Oe},$r())},bt=function(){return yr.push("dateOrTimeArgStyle"),!0},Ct="date",Dt=hr("date",!1),Lt="time",Bt=hr("time",!1),jt="plural",dr=hr("plural",!1),rr="selectordinal",gt=hr("selectordinal",!1),mt="offset:",xt=hr("offset:",!1),St=function(Oe,He,tt,ft){return __assign$4({type:TYPE.plural,pluralType:He==="plural"?"cardinal":"ordinal",value:Oe,offset:tt?tt[2]:0,options:ft.reduce(function(wt,Mt){var nr=Mt.id,Vt=Mt.value,vr=Mt.location;return nr in wt&&jr('Duplicate option "'+nr+'" in plural element: "'+Hr()+'"',Lr()),wt[nr]={value:Vt,location:vr},wt},{})},$r())},$t="select",Ft=hr("select",!1),Nt=function(Oe,He){return __assign$4({type:TYPE.select,value:Oe,options:He.reduce(function(tt,ft){var wt=ft.id,Mt=ft.value,nr=ft.location;return wt in tt&&jr('Duplicate option "'+wt+'" in select element: "'+Hr()+'"',Lr()),tt[wt]={value:Mt,location:nr},tt},{})},$r())},zt="=",or=hr("=",!1),pr=function(Oe){return yr.push("select"),!0},Zt=function(Oe,He){return yr.pop(),__assign$4({id:Oe,value:He},$r())},Er=function(Oe){return yr.push("plural"),!0},ir=function(Oe,He){return yr.pop(),__assign$4({id:Oe,value:He},$r())},rt=mr("whitespace"),ot=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,_t=xr([[" ","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),kt=mr("syntax pattern"),It=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,ur=xr([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),cr=mr("optional whitespace"),Ht=mr("number"),At="-",Ot=hr("-",!1),qt=function(Oe,He){return He?Oe?-He:He:0},Pt=mr("double apostrophes"),Ut="''",Xt=hr("''",!1),ar=function(){return"'"},gr=function(Oe,He){return Oe+He.replace("''","'")},Or=function(Oe){return Oe!=="{"&&!(ai()&&Oe==="#")&&!(Ui()&&Oe==="}")},Dr=`
|
|
172
124
|
`,Rr=hr(`
|
|
173
|
-
`,!1),pi=function(Oe){return Oe==="{"||Oe==="}"||ai()&&Oe==="#"},fi=mr("argNameOrNumber"),gi=mr("argNumber"),vi="0",mi=hr("0",!1),bi=function(){return 0},_i=/^[1-9]/,yi=xr([["1","9"]],!1,!1),Ur=/^[0-9]/,Br=xr([["0","9"]],!1,!1),$i=function(Oe){return parseInt(Oe.join(""),10)},wi=mr("argName"),Fe=0,Yt=0,Tr=[{line:1,column:1}],_r=0,Ir=[],yt=0,qr;if(W.startRule!==void 0){if(!(W.startRule in te))throw new Error(`Can't start parsing from rule "`+W.startRule+'".');re=te[W.startRule]}function Hr(){return X.substring(Yt,Fe)}function Lr(){return Pr(Yt,Fe)}function jr(Oe,He){throw He=He!==void 0?He:Pr(Yt,Fe),Si(Oe,He)}function hr(Oe,He){return{type:"literal",text:Oe,ignoreCase:He}}function xr(Oe,He,tt){return{type:"class",parts:Oe,inverted:He,ignoreCase:tt}}function xi(){return{type:"any"}}function ki(){return{type:"end"}}function mr(Oe){return{type:"other",description:Oe}}function Vr(Oe){var He=Tr[Oe],tt;if(He)return He;for(tt=Oe-1;!Tr[tt];)tt--;for(He=Tr[tt],He={line:He.line,column:He.column};tt<Oe;)X.charCodeAt(tt)===10?(He.line++,He.column=1):He.column++,tt++;return Tr[Oe]=He,He}function Pr(Oe,He){var tt=Vr(Oe),ft=Vr(He);return{start:{offset:Oe,line:tt.line,column:tt.column},end:{offset:He,line:ft.line,column:ft.column}}}function Ct(Oe){Fe<_r||(Fe>_r&&(_r=Fe,Ir=[]),Ir.push(Oe))}function Si(Oe,He){return new SyntaxError(Oe,[],"",He)}function Ci(Oe,He,tt){return new SyntaxError(SyntaxError.buildMessage(Oe,He),Oe,He,tt)}function Gr(){var Oe;return Oe=Mr(),Oe}function Mr(){var Oe,He;for(Oe=[],He=Wr();He!==J;)Oe.push(He),He=Wr();return Oe}function Wr(){var Oe;return Oe=Ei(),Oe===J&&(Oe=Oi(),Oe===J&&(Oe=Li(),Oe===J&&(Oe=Mi(),Oe===J&&(Oe=Ni(),Oe===J&&(Oe=Ai()))))),Oe}function Nr(){var Oe,He,tt;if(Oe=Fe,He=[],tt=Sr(),tt===J&&(tt=ii(),tt===J&&(tt=ni())),tt!==J)for(;tt!==J;)He.push(tt),tt=Sr(),tt===J&&(tt=ii(),tt===J&&(tt=ni()));else He=J;return He!==J&&(Yt=Oe,He=ne(He)),Oe=He,Oe}function Ei(){var Oe,He;return Oe=Fe,He=Nr(),He!==J&&(Yt=Oe,He=oe(He)),Oe=He,Oe}function Ai(){var Oe,He;return Oe=Fe,X.charCodeAt(Fe)===35?(He=de,Fe++):(He=J,yt===0&&Ct(he)),He!==J&&(Yt=Oe,He=ue()),Oe=He,Oe}function Oi(){var Oe,He,tt,ft,wt,Mt;return yt++,Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Ct(fe)),He!==J?(tt=Gt(),tt!==J?(ft=Er(),ft!==J?(wt=Gt(),wt!==J?(X.charCodeAt(Fe)===125?(Mt=ge,Fe++):(Mt=J,yt===0&&Ct(me)),Mt!==J?(Yt=Oe,He=ve(ft),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),yt--,Oe===J&&(He=J,yt===0&&Ct(ce)),Oe}function Yr(){var Oe,He,tt,ft,wt;if(yt++,Oe=Fe,He=[],tt=Fe,ft=Fe,yt++,wt=kr(),wt===J&&(ye.test(X.charAt(Fe))?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Ct(we))),yt--,wt===J?ft=void 0:(Fe=ft,ft=J),ft!==J?(X.length>Fe?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Ct(Se)),wt!==J?(ft=[ft,wt],tt=ft):(Fe=tt,tt=J)):(Fe=tt,tt=J),tt!==J)for(;tt!==J;)He.push(tt),tt=Fe,ft=Fe,yt++,wt=kr(),wt===J&&(ye.test(X.charAt(Fe))?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Ct(we))),yt--,wt===J?ft=void 0:(Fe=ft,ft=J),ft!==J?(X.length>Fe?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Ct(Se)),wt!==J?(ft=[ft,wt],tt=ft):(Fe=tt,tt=J)):(Fe=tt,tt=J);else He=J;return He!==J?Oe=X.substring(Oe,Fe):Oe=He,yt--,Oe===J&&(He=J,yt===0&&Ct(be)),Oe}function Jr(){var Oe,He,tt;return yt++,Oe=Fe,X.charCodeAt(Fe)===47?(He=Ce,Fe++):(He=J,yt===0&&Ct(Le)),He!==J?(tt=Yr(),tt!==J?(Yt=Oe,He=qe(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),yt--,Oe===J&&(He=J,yt===0&&Ct(_e)),Oe}function Kr(){var Oe,He,tt,ft,wt;if(yt++,Oe=Fe,He=Gt(),He!==J)if(tt=Yr(),tt!==J){for(ft=[],wt=Jr();wt!==J;)ft.push(wt),wt=Jr();ft!==J?(Yt=Oe,He=ze(tt,ft),Oe=He):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;return yt--,Oe===J&&(He=J,yt===0&&Ct(Ie)),Oe}function Ti(){var Oe,He,tt;if(Oe=Fe,He=[],tt=Kr(),tt!==J)for(;tt!==J;)He.push(tt),tt=Kr();else He=J;return He!==J&&(Yt=Oe,He=Pe(He)),Oe=He,Oe}function qi(){var Oe,He,tt;return Oe=Fe,X.substr(Fe,2)===Ae?(He=Ae,Fe+=2):(He=J,yt===0&&Ct(De)),He!==J?(tt=Ti(),tt!==J?(Yt=Oe,He=Me(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe===J&&(Oe=Fe,Yt=Fe,He=Be(),He?He=void 0:He=J,He!==J?(tt=Nr(),tt!==J?(Yt=Oe,He=Ve(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)),Oe}function Pi(){var Oe,He,tt,ft,wt,Mt,nr,Vt,vr,Wt,lr,Kt,sr;return Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Ct(fe)),He!==J?(tt=Gt(),tt!==J?(ft=Er(),ft!==J?(wt=Gt(),wt!==J?(X.charCodeAt(Fe)===44?(Mt=Ye,Fe++):(Mt=J,yt===0&&Ct(Je)),Mt!==J?(nr=Gt(),nr!==J?(X.substr(Fe,6)===vt?(Vt=vt,Fe+=6):(Vt=J,yt===0&&Ct(Xe)),Vt!==J?(vr=Gt(),vr!==J?(Wt=Fe,X.charCodeAt(Fe)===44?(lr=Ye,Fe++):(lr=J,yt===0&&Ct(Je)),lr!==J?(Kt=Gt(),Kt!==J?(sr=qi(),sr!==J?(lr=[lr,Kt,sr],Wt=lr):(Fe=Wt,Wt=J)):(Fe=Wt,Wt=J)):(Fe=Wt,Wt=J),Wt===J&&(Wt=null),Wt!==J?(lr=Gt(),lr!==J?(X.charCodeAt(Fe)===125?(Kt=ge,Fe++):(Kt=J,yt===0&&Ct(me)),Kt!==J?(Yt=Oe,He=Ge(ft,Vt,Wt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe}function Zr(){var Oe,He,tt,ft;if(Oe=Fe,X.charCodeAt(Fe)===39?(He=Ne,Fe++):(He=J,yt===0&&Ct(Ue)),He!==J){if(tt=[],ft=Sr(),ft===J&&(We.test(X.charAt(Fe))?(ft=X.charAt(Fe),Fe++):(ft=J,yt===0&&Ct(Qe))),ft!==J)for(;ft!==J;)tt.push(ft),ft=Sr(),ft===J&&(We.test(X.charAt(Fe))?(ft=X.charAt(Fe),Fe++):(ft=J,yt===0&&Ct(Qe)));else tt=J;tt!==J?(X.charCodeAt(Fe)===39?(ft=Ne,Fe++):(ft=J,yt===0&&Ct(Ue)),ft!==J?(He=[He,tt,ft],Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;if(Oe===J)if(Oe=[],He=Sr(),He===J&&(Ze.test(X.charAt(Fe))?(He=X.charAt(Fe),Fe++):(He=J,yt===0&&Ct(je))),He!==J)for(;He!==J;)Oe.push(He),He=Sr(),He===J&&(Ze.test(X.charAt(Fe))?(He=X.charAt(Fe),Fe++):(He=J,yt===0&&Ct(je)));else Oe=J;return Oe}function Xr(){var Oe,He;if(Oe=[],Ke.test(X.charAt(Fe))?(He=X.charAt(Fe),Fe++):(He=J,yt===0&&Ct(it)),He!==J)for(;He!==J;)Oe.push(He),Ke.test(X.charAt(Fe))?(He=X.charAt(Fe),Fe++):(He=J,yt===0&&Ct(it));else Oe=J;return Oe}function Di(){var Oe,He,tt,ft;if(Oe=Fe,He=Fe,tt=[],ft=Zr(),ft===J&&(ft=Xr()),ft!==J)for(;ft!==J;)tt.push(ft),ft=Zr(),ft===J&&(ft=Xr());else tt=J;return tt!==J?He=X.substring(He,Fe):He=tt,He!==J&&(Yt=Oe,He=nt(He)),Oe=He,Oe}function Ri(){var Oe,He,tt;return Oe=Fe,X.substr(Fe,2)===Ae?(He=Ae,Fe+=2):(He=J,yt===0&&Ct(De)),He!==J?(tt=Di(),tt!==J?(Yt=Oe,He=Me(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe===J&&(Oe=Fe,Yt=Fe,He=bt(),He?He=void 0:He=J,He!==J?(tt=Nr(),tt!==J?(Yt=Oe,He=Ve(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)),Oe}function Ii(){var Oe,He,tt,ft,wt,Mt,nr,Vt,vr,Wt,lr,Kt,sr;return Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Ct(fe)),He!==J?(tt=Gt(),tt!==J?(ft=Er(),ft!==J?(wt=Gt(),wt!==J?(X.charCodeAt(Fe)===44?(Mt=Ye,Fe++):(Mt=J,yt===0&&Ct(Je)),Mt!==J?(nr=Gt(),nr!==J?(X.substr(Fe,4)===Et?(Vt=Et,Fe+=4):(Vt=J,yt===0&&Ct(Dt)),Vt===J&&(X.substr(Fe,4)===Lt?(Vt=Lt,Fe+=4):(Vt=J,yt===0&&Ct(Bt))),Vt!==J?(vr=Gt(),vr!==J?(Wt=Fe,X.charCodeAt(Fe)===44?(lr=Ye,Fe++):(lr=J,yt===0&&Ct(Je)),lr!==J?(Kt=Gt(),Kt!==J?(sr=Ri(),sr!==J?(lr=[lr,Kt,sr],Wt=lr):(Fe=Wt,Wt=J)):(Fe=Wt,Wt=J)):(Fe=Wt,Wt=J),Wt===J&&(Wt=null),Wt!==J?(lr=Gt(),lr!==J?(X.charCodeAt(Fe)===125?(Kt=ge,Fe++):(Kt=J,yt===0&&Ct(me)),Kt!==J?(Yt=Oe,He=Ge(ft,Vt,Wt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe}function Li(){var Oe;return Oe=Pi(),Oe===J&&(Oe=Ii()),Oe}function Mi(){var Oe,He,tt,ft,wt,Mt,nr,Vt,vr,Wt,lr,Kt,sr,br,wr,zr;if(Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Ct(fe)),He!==J)if(tt=Gt(),tt!==J)if(ft=Er(),ft!==J)if(wt=Gt(),wt!==J)if(X.charCodeAt(Fe)===44?(Mt=Ye,Fe++):(Mt=J,yt===0&&Ct(Je)),Mt!==J)if(nr=Gt(),nr!==J)if(X.substr(Fe,6)===jt?(Vt=jt,Fe+=6):(Vt=J,yt===0&&Ct(dr)),Vt===J&&(X.substr(Fe,13)===rr?(Vt=rr,Fe+=13):(Vt=J,yt===0&&Ct(gt))),Vt!==J)if(vr=Gt(),vr!==J)if(X.charCodeAt(Fe)===44?(Wt=Ye,Fe++):(Wt=J,yt===0&&Ct(Je)),Wt!==J)if(lr=Gt(),lr!==J)if(Kt=Fe,X.substr(Fe,7)===mt?(sr=mt,Fe+=7):(sr=J,yt===0&&Ct(xt)),sr!==J?(br=Gt(),br!==J?(wr=ri(),wr!==J?(sr=[sr,br,wr],Kt=sr):(Fe=Kt,Kt=J)):(Fe=Kt,Kt=J)):(Fe=Kt,Kt=J),Kt===J&&(Kt=null),Kt!==J)if(sr=Gt(),sr!==J){if(br=[],wr=ei(),wr!==J)for(;wr!==J;)br.push(wr),wr=ei();else br=J;br!==J?(wr=Gt(),wr!==J?(X.charCodeAt(Fe)===125?(zr=ge,Fe++):(zr=J,yt===0&&Ct(me)),zr!==J?(Yt=Oe,He=St(ft,Vt,Kt,br),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;return Oe}function Ni(){var Oe,He,tt,ft,wt,Mt,nr,Vt,vr,Wt,lr,Kt,sr,br;if(Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Ct(fe)),He!==J)if(tt=Gt(),tt!==J)if(ft=Er(),ft!==J)if(wt=Gt(),wt!==J)if(X.charCodeAt(Fe)===44?(Mt=Ye,Fe++):(Mt=J,yt===0&&Ct(Je)),Mt!==J)if(nr=Gt(),nr!==J)if(X.substr(Fe,6)===$t?(Vt=$t,Fe+=6):(Vt=J,yt===0&&Ct(Ft)),Vt!==J)if(vr=Gt(),vr!==J)if(X.charCodeAt(Fe)===44?(Wt=Ye,Fe++):(Wt=J,yt===0&&Ct(Je)),Wt!==J)if(lr=Gt(),lr!==J){if(Kt=[],sr=Qr(),sr!==J)for(;sr!==J;)Kt.push(sr),sr=Qr();else Kt=J;Kt!==J?(sr=Gt(),sr!==J?(X.charCodeAt(Fe)===125?(br=ge,Fe++):(br=J,yt===0&&Ct(me)),br!==J?(Yt=Oe,He=Nt(ft,Kt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;return Oe}function Fi(){var Oe,He,tt,ft;return Oe=Fe,He=Fe,X.charCodeAt(Fe)===61?(tt=zt,Fe++):(tt=J,yt===0&&Ct(or)),tt!==J?(ft=ri(),ft!==J?(tt=[tt,ft],He=tt):(Fe=He,He=J)):(Fe=He,He=J),He!==J?Oe=X.substring(Oe,Fe):Oe=He,Oe===J&&(Oe=Fr()),Oe}function Qr(){var Oe,He,tt,ft,wt,Mt,nr,Vt;return Oe=Fe,He=Gt(),He!==J?(tt=Fr(),tt!==J?(ft=Gt(),ft!==J?(X.charCodeAt(Fe)===123?(wt=pe,Fe++):(wt=J,yt===0&&Ct(fe)),wt!==J?(Yt=Fe,Mt=pr(),Mt?Mt=void 0:Mt=J,Mt!==J?(nr=Mr(),nr!==J?(X.charCodeAt(Fe)===125?(Vt=ge,Fe++):(Vt=J,yt===0&&Ct(me)),Vt!==J?(Yt=Oe,He=Zt(tt,nr),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe}function ei(){var Oe,He,tt,ft,wt,Mt,nr,Vt;return Oe=Fe,He=Gt(),He!==J?(tt=Fi(),tt!==J?(ft=Gt(),ft!==J?(X.charCodeAt(Fe)===123?(wt=pe,Fe++):(wt=J,yt===0&&Ct(fe)),wt!==J?(Yt=Fe,Mt=Cr(),Mt?Mt=void 0:Mt=J,Mt!==J?(nr=Mr(),nr!==J?(X.charCodeAt(Fe)===125?(Vt=ge,Fe++):(Vt=J,yt===0&&Ct(me)),Vt!==J?(Yt=Oe,He=ir(tt,nr),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe}function kr(){var Oe;return yt++,ot.test(X.charAt(Fe))?(Oe=X.charAt(Fe),Fe++):(Oe=J,yt===0&&Ct(_t)),yt--,Oe===J&&yt===0&&Ct(rt),Oe}function ti(){var Oe;return yt++,It.test(X.charAt(Fe))?(Oe=X.charAt(Fe),Fe++):(Oe=J,yt===0&&Ct(ur)),yt--,Oe===J&&yt===0&&Ct(kt),Oe}function Gt(){var Oe,He,tt;for(yt++,Oe=Fe,He=[],tt=kr();tt!==J;)He.push(tt),tt=kr();return He!==J?Oe=X.substring(Oe,Fe):Oe=He,yt--,Oe===J&&(He=J,yt===0&&Ct(cr)),Oe}function ri(){var Oe,He,tt;return yt++,Oe=Fe,X.charCodeAt(Fe)===45?(He=At,Fe++):(He=J,yt===0&&Ct(Ot)),He===J&&(He=null),He!==J?(tt=oi(),tt!==J?(Yt=Oe,He=qt(He,tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),yt--,Oe===J&&(He=J,yt===0&&Ct(Ht)),Oe}function Sr(){var Oe,He;return yt++,Oe=Fe,X.substr(Fe,2)===Ut?(He=Ut,Fe+=2):(He=J,yt===0&&Ct(Xt)),He!==J&&(Yt=Oe,He=ar()),Oe=He,yt--,Oe===J&&(He=J,yt===0&&Ct(Pt)),Oe}function ii(){var Oe,He,tt,ft,wt,Mt;if(Oe=Fe,X.charCodeAt(Fe)===39?(He=Ne,Fe++):(He=J,yt===0&&Ct(Ue)),He!==J)if(tt=zi(),tt!==J){for(ft=Fe,wt=[],X.substr(Fe,2)===Ut?(Mt=Ut,Fe+=2):(Mt=J,yt===0&&Ct(Xt)),Mt===J&&(We.test(X.charAt(Fe))?(Mt=X.charAt(Fe),Fe++):(Mt=J,yt===0&&Ct(Qe)));Mt!==J;)wt.push(Mt),X.substr(Fe,2)===Ut?(Mt=Ut,Fe+=2):(Mt=J,yt===0&&Ct(Xt)),Mt===J&&(We.test(X.charAt(Fe))?(Mt=X.charAt(Fe),Fe++):(Mt=J,yt===0&&Ct(Qe)));wt!==J?ft=X.substring(ft,Fe):ft=wt,ft!==J?(X.charCodeAt(Fe)===39?(wt=Ne,Fe++):(wt=J,yt===0&&Ct(Ue)),wt===J&&(wt=null),wt!==J?(Yt=Oe,He=gr(tt,ft),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;return Oe}function ni(){var Oe,He,tt,ft;return Oe=Fe,He=Fe,X.length>Fe?(tt=X.charAt(Fe),Fe++):(tt=J,yt===0&&Ct(Se)),tt!==J?(Yt=Fe,ft=Or(tt),ft?ft=void 0:ft=J,ft!==J?(tt=[tt,ft],He=tt):(Fe=He,He=J)):(Fe=He,He=J),He===J&&(X.charCodeAt(Fe)===10?(He=Dr,Fe++):(He=J,yt===0&&Ct(Rr))),He!==J?Oe=X.substring(Oe,Fe):Oe=He,Oe}function zi(){var Oe,He,tt,ft;return Oe=Fe,He=Fe,X.length>Fe?(tt=X.charAt(Fe),Fe++):(tt=J,yt===0&&Ct(Se)),tt!==J?(Yt=Fe,ft=pi(tt),ft?ft=void 0:ft=J,ft!==J?(tt=[tt,ft],He=tt):(Fe=He,He=J)):(Fe=He,He=J),He!==J?Oe=X.substring(Oe,Fe):Oe=He,Oe}function Er(){var Oe,He;return yt++,Oe=Fe,He=oi(),He===J&&(He=Fr()),He!==J?Oe=X.substring(Oe,Fe):Oe=He,yt--,Oe===J&&(He=J,yt===0&&Ct(fi)),Oe}function oi(){var Oe,He,tt,ft,wt;if(yt++,Oe=Fe,X.charCodeAt(Fe)===48?(He=vi,Fe++):(He=J,yt===0&&Ct(mi)),He!==J&&(Yt=Oe,He=bi()),Oe=He,Oe===J){if(Oe=Fe,He=Fe,_i.test(X.charAt(Fe))?(tt=X.charAt(Fe),Fe++):(tt=J,yt===0&&Ct(yi)),tt!==J){for(ft=[],Ur.test(X.charAt(Fe))?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Ct(Br));wt!==J;)ft.push(wt),Ur.test(X.charAt(Fe))?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Ct(Br));ft!==J?(tt=[tt,ft],He=tt):(Fe=He,He=J)}else Fe=He,He=J;He!==J&&(Yt=Oe,He=$i(He)),Oe=He}return yt--,Oe===J&&(He=J,yt===0&&Ct(gi)),Oe}function Fr(){var Oe,He,tt,ft,wt;if(yt++,Oe=Fe,He=[],tt=Fe,ft=Fe,yt++,wt=kr(),wt===J&&(wt=ti()),yt--,wt===J?ft=void 0:(Fe=ft,ft=J),ft!==J?(X.length>Fe?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Ct(Se)),wt!==J?(ft=[ft,wt],tt=ft):(Fe=tt,tt=J)):(Fe=tt,tt=J),tt!==J)for(;tt!==J;)He.push(tt),tt=Fe,ft=Fe,yt++,wt=kr(),wt===J&&(wt=ti()),yt--,wt===J?ft=void 0:(Fe=ft,ft=J),ft!==J?(X.length>Fe?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Ct(Se)),wt!==J?(ft=[ft,wt],tt=ft):(Fe=tt,tt=J)):(Fe=tt,tt=J);else He=J;return He!==J?Oe=X.substring(Oe,Fe):Oe=He,yt--,Oe===J&&(He=J,yt===0&&Ct(wi)),Oe}var yr=["root"];function Ui(){return yr.length>1}function ai(){return yr[yr.length-1]==="plural"}function $r(){return W&&W.captureLocation?{location:Lr()}:{}}if(qr=re(),qr!==J&&Fe===X.length)return qr;throw qr!==J&&Fe<X.length&&Ct(ki()),Ci(Ir,_r<X.length?X.charAt(_r):null,_r<X.length?Pr(_r,_r+1):Pr(_r,_r))}var pegParse=peg$parse,__spreadArrays$2=function(){for(var X=0,W=0,J=arguments.length;W<J;W++)X+=arguments[W].length;for(var te=Array(X),re=0,W=0;W<J;W++)for(var ne=arguments[W],oe=0,de=ne.length;oe<de;oe++,re++)te[re]=ne[oe];return te},PLURAL_HASHTAG_REGEX=/(^|[^\\])#/g;function normalizeHashtagInPlural(X){X.forEach(function(W){!isPluralElement(W)&&!isSelectElement(W)||Object.keys(W.options).forEach(function(J){for(var te,re=W.options[J],ne=-1,oe=void 0,de=0;de<re.value.length;de++){var he=re.value[de];if(isLiteralElement(he)&&PLURAL_HASHTAG_REGEX.test(he.value)){ne=de,oe=he;break}}if(oe){var ue=oe.value.replace(PLURAL_HASHTAG_REGEX,"$1{"+W.value+", number}"),ce=pegParse(ue);(te=re.value).splice.apply(te,__spreadArrays$2([ne,1],ce))}normalizeHashtagInPlural(re.value)})})}var __assign$3=function(){return __assign$3=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign$3.apply(this,arguments)},DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(X){var W={};return X.replace(DATE_TIME_REGEX,function(J){var te=J.length;switch(J[0]){case"G":W.era=te===4?"long":te===5?"narrow":"short";break;case"y":W.year=te===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":W.month=["numeric","2-digit","short","long","narrow"][te-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":W.day=["numeric","2-digit"][te-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":W.weekday=te===4?"short":te===5?"narrow":"short";break;case"e":if(te<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");W.weekday=["short","long","narrow","short"][te-4];break;case"c":if(te<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");W.weekday=["short","long","narrow","short"][te-4];break;case"a":W.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":W.hourCycle="h12",W.hour=["numeric","2-digit"][te-1];break;case"H":W.hourCycle="h23",W.hour=["numeric","2-digit"][te-1];break;case"K":W.hourCycle="h11",W.hour=["numeric","2-digit"][te-1];break;case"k":W.hourCycle="h24",W.hour=["numeric","2-digit"][te-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":W.minute=["numeric","2-digit"][te-1];break;case"s":W.second=["numeric","2-digit"][te-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":W.timeZoneName=te<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),W}function icuUnitToEcma(X){return X.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\+|#+)?)?$/g,SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?$/g;function parseSignificantPrecision(X){var W={};return X.replace(SIGNIFICANT_PRECISION_REGEX,function(J,te,re){return typeof re!="string"?(W.minimumSignificantDigits=te.length,W.maximumSignificantDigits=te.length):re==="+"?W.minimumSignificantDigits=te.length:te[0]==="#"?W.maximumSignificantDigits=te.length:(W.minimumSignificantDigits=te.length,W.maximumSignificantDigits=te.length+(typeof re=="string"?re.length:0)),""}),W}function parseSign(X){switch(X){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function parseNotationOptions(X){var W={},J=parseSign(X);return J||W}function convertNumberSkeletonToNumberFormatOptions(X){for(var W={},J=0,te=X;J<te.length;J++){var re=te[J];switch(re.stem){case"percent":W.style="percent";continue;case"currency":W.style="currency",W.currency=re.options[0];continue;case"group-off":W.useGrouping=!1;continue;case"precision-integer":W.maximumFractionDigits=0;continue;case"measure-unit":W.style="unit",W.unit=icuUnitToEcma(re.options[0]);continue;case"compact-short":W.notation="compact",W.compactDisplay="short";continue;case"compact-long":W.notation="compact",W.compactDisplay="long";continue;case"scientific":W=__assign$3(__assign$3(__assign$3({},W),{notation:"scientific"}),re.options.reduce(function(oe,de){return __assign$3(__assign$3({},oe),parseNotationOptions(de))},{}));continue;case"engineering":W=__assign$3(__assign$3(__assign$3({},W),{notation:"engineering"}),re.options.reduce(function(oe,de){return __assign$3(__assign$3({},oe),parseNotationOptions(de))},{}));continue;case"notation-simple":W.notation="standard";continue;case"unit-width-narrow":W.currencyDisplay="narrowSymbol",W.unitDisplay="narrow";continue;case"unit-width-short":W.currencyDisplay="code",W.unitDisplay="short";continue;case"unit-width-full-name":W.currencyDisplay="name",W.unitDisplay="long";continue;case"unit-width-iso-code":W.currencyDisplay="symbol";continue}if(FRACTION_PRECISION_REGEX.test(re.stem)){if(re.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");re.stem.replace(FRACTION_PRECISION_REGEX,function(oe,de,he){return oe==="."?W.maximumFractionDigits=0:he==="+"?W.minimumFractionDigits=he.length:de[0]==="#"?W.maximumFractionDigits=de.length:(W.minimumFractionDigits=de.length,W.maximumFractionDigits=de.length+(typeof he=="string"?he.length:0)),""}),re.options.length&&(W=__assign$3(__assign$3({},W),parseSignificantPrecision(re.options[0])));continue}if(SIGNIFICANT_PRECISION_REGEX.test(re.stem)){W=__assign$3(__assign$3({},W),parseSignificantPrecision(re.stem));continue}var ne=parseSign(re.stem);ne&&(W=__assign$3(__assign$3({},W),ne))}return W}function parse$1(X,W){var J=pegParse(X,W);return(!W||W.normalizeHashtagInPlural!==!1)&&normalizeHashtagInPlural(J),J}var __spreadArrays$1=function(){for(var X=0,W=0,J=arguments.length;W<J;W++)X+=arguments[W].length;for(var te=Array(X),re=0,W=0;W<J;W++)for(var ne=arguments[W],oe=0,de=ne.length;oe<de;oe++,re++)te[re]=ne[oe];return te};function getCacheId(X){return JSON.stringify(X.map(function(W){return W&&typeof W=="object"?orderedProps(W):W}))}function orderedProps(X){return Object.keys(X).sort().map(function(W){var J;return J={},J[W]=X[W],J})}var memoizeFormatConstructor=function(X,W){return W===void 0&&(W={}),function(){for(var J,te=[],re=0;re<arguments.length;re++)te[re]=arguments[re];var ne=getCacheId(te),oe=ne&&W[ne];return oe||(oe=new((J=X).bind.apply(J,__spreadArrays$1([void 0],te))),ne&&(W[ne]=oe)),oe}},__extends=function(){var X=function(W,J){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,re){te.__proto__=re}||function(te,re){for(var ne in re)re.hasOwnProperty(ne)&&(te[ne]=re[ne])},X(W,J)};return function(W,J){X(W,J);function te(){this.constructor=W}W.prototype=J===null?Object.create(J):(te.prototype=J.prototype,new te)}}(),__spreadArrays=function(){for(var X=0,W=0,J=arguments.length;W<J;W++)X+=arguments[W].length;for(var te=Array(X),re=0,W=0;W<J;W++)for(var ne=arguments[W],oe=0,de=ne.length;oe<de;oe++,re++)te[re]=ne[oe];return te},FormatError=function(X){__extends(W,X);function W(J,te){var re=X.call(this,J)||this;return re.variableId=te,re}return W}(Error);function mergeLiteral(X){return X.length<2?X:X.reduce(function(W,J){var te=W[W.length-1];return!te||te.type!==0||J.type!==0?W.push(J):te.value+=J.value,W},[])}function formatToParts(X,W,J,te,re,ne,oe){if(X.length===1&&isLiteralElement(X[0]))return[{type:0,value:X[0].value}];for(var de=[],he=0,ue=X;he<ue.length;he++){var ce=ue[he];if(isLiteralElement(ce)){de.push({type:0,value:ce.value});continue}if(isPoundElement(ce)){typeof ne=="number"&&de.push({type:0,value:J.getNumberFormat(W).format(ne)});continue}var pe=ce.value;if(!(re&&pe in re))throw new FormatError('The intl string context variable "'+pe+'" was not provided to the string "'+oe+'"');var fe=re[pe];if(isArgumentElement(ce)){(!fe||typeof fe=="string"||typeof fe=="number")&&(fe=typeof fe=="string"||typeof fe=="number"?String(fe):""),de.push({type:1,value:fe});continue}if(isDateElement(ce)){var ge=typeof ce.style=="string"?te.date[ce.style]:void 0;de.push({type:0,value:J.getDateTimeFormat(W,ge).format(fe)});continue}if(isTimeElement(ce)){var ge=typeof ce.style=="string"?te.time[ce.style]:isDateTimeSkeleton(ce.style)?parseDateTimeSkeleton(ce.style.pattern):void 0;de.push({type:0,value:J.getDateTimeFormat(W,ge).format(fe)});continue}if(isNumberElement(ce)){var ge=typeof ce.style=="string"?te.number[ce.style]:isNumberSkeleton(ce.style)?convertNumberSkeletonToNumberFormatOptions(ce.style.tokens):void 0;de.push({type:0,value:J.getNumberFormat(W,ge).format(fe)});continue}if(isSelectElement(ce)){var me=ce.options[fe]||ce.options.other;if(!me)throw new RangeError('Invalid values for "'+ce.value+'": "'+fe+'". Options are "'+Object.keys(ce.options).join('", "')+'"');de.push.apply(de,formatToParts(me.value,W,J,te,re));continue}if(isPluralElement(ce)){var me=ce.options["="+fe];if(!me){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment.
|
|
125
|
+
`,!1),pi=function(Oe){return Oe==="{"||Oe==="}"||ai()&&Oe==="#"},fi=mr("argNameOrNumber"),gi=mr("argNumber"),vi="0",mi=hr("0",!1),bi=function(){return 0},_i=/^[1-9]/,yi=xr([["1","9"]],!1,!1),Ur=/^[0-9]/,Br=xr([["0","9"]],!1,!1),$i=function(Oe){return parseInt(Oe.join(""),10)},wi=mr("argName"),Fe=0,Yt=0,Tr=[{line:1,column:1}],_r=0,Ir=[],yt=0,qr;if(W.startRule!==void 0){if(!(W.startRule in te))throw new Error(`Can't start parsing from rule "`+W.startRule+'".');re=te[W.startRule]}function Hr(){return X.substring(Yt,Fe)}function Lr(){return Pr(Yt,Fe)}function jr(Oe,He){throw He=He!==void 0?He:Pr(Yt,Fe),Si(Oe,He)}function hr(Oe,He){return{type:"literal",text:Oe,ignoreCase:He}}function xr(Oe,He,tt){return{type:"class",parts:Oe,inverted:He,ignoreCase:tt}}function xi(){return{type:"any"}}function ki(){return{type:"end"}}function mr(Oe){return{type:"other",description:Oe}}function Vr(Oe){var He=Tr[Oe],tt;if(He)return He;for(tt=Oe-1;!Tr[tt];)tt--;for(He=Tr[tt],He={line:He.line,column:He.column};tt<Oe;)X.charCodeAt(tt)===10?(He.line++,He.column=1):He.column++,tt++;return Tr[Oe]=He,He}function Pr(Oe,He){var tt=Vr(Oe),ft=Vr(He);return{start:{offset:Oe,line:tt.line,column:tt.column},end:{offset:He,line:ft.line,column:ft.column}}}function Et(Oe){Fe<_r||(Fe>_r&&(_r=Fe,Ir=[]),Ir.push(Oe))}function Si(Oe,He){return new SyntaxError(Oe,[],"",He)}function Ei(Oe,He,tt){return new SyntaxError(SyntaxError.buildMessage(Oe,He),Oe,He,tt)}function Gr(){var Oe;return Oe=Mr(),Oe}function Mr(){var Oe,He;for(Oe=[],He=Wr();He!==J;)Oe.push(He),He=Wr();return Oe}function Wr(){var Oe;return Oe=Ci(),Oe===J&&(Oe=Oi(),Oe===J&&(Oe=Li(),Oe===J&&(Oe=Mi(),Oe===J&&(Oe=Ni(),Oe===J&&(Oe=Ai()))))),Oe}function Nr(){var Oe,He,tt;if(Oe=Fe,He=[],tt=Sr(),tt===J&&(tt=ii(),tt===J&&(tt=ni())),tt!==J)for(;tt!==J;)He.push(tt),tt=Sr(),tt===J&&(tt=ii(),tt===J&&(tt=ni()));else He=J;return He!==J&&(Yt=Oe,He=ne(He)),Oe=He,Oe}function Ci(){var Oe,He;return Oe=Fe,He=Nr(),He!==J&&(Yt=Oe,He=oe(He)),Oe=He,Oe}function Ai(){var Oe,He;return Oe=Fe,X.charCodeAt(Fe)===35?(He=de,Fe++):(He=J,yt===0&&Et(he)),He!==J&&(Yt=Oe,He=ue()),Oe=He,Oe}function Oi(){var Oe,He,tt,ft,wt,Mt;return yt++,Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Et(fe)),He!==J?(tt=Gt(),tt!==J?(ft=Cr(),ft!==J?(wt=Gt(),wt!==J?(X.charCodeAt(Fe)===125?(Mt=ge,Fe++):(Mt=J,yt===0&&Et(me)),Mt!==J?(Yt=Oe,He=ve(ft),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),yt--,Oe===J&&(He=J,yt===0&&Et(ce)),Oe}function Yr(){var Oe,He,tt,ft,wt;if(yt++,Oe=Fe,He=[],tt=Fe,ft=Fe,yt++,wt=kr(),wt===J&&(ye.test(X.charAt(Fe))?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Et(we))),yt--,wt===J?ft=void 0:(Fe=ft,ft=J),ft!==J?(X.length>Fe?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Et(Se)),wt!==J?(ft=[ft,wt],tt=ft):(Fe=tt,tt=J)):(Fe=tt,tt=J),tt!==J)for(;tt!==J;)He.push(tt),tt=Fe,ft=Fe,yt++,wt=kr(),wt===J&&(ye.test(X.charAt(Fe))?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Et(we))),yt--,wt===J?ft=void 0:(Fe=ft,ft=J),ft!==J?(X.length>Fe?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Et(Se)),wt!==J?(ft=[ft,wt],tt=ft):(Fe=tt,tt=J)):(Fe=tt,tt=J);else He=J;return He!==J?Oe=X.substring(Oe,Fe):Oe=He,yt--,Oe===J&&(He=J,yt===0&&Et(be)),Oe}function Jr(){var Oe,He,tt;return yt++,Oe=Fe,X.charCodeAt(Fe)===47?(He=Ce,Fe++):(He=J,yt===0&&Et(Le)),He!==J?(tt=Yr(),tt!==J?(Yt=Oe,He=Pe(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),yt--,Oe===J&&(He=J,yt===0&&Et(_e)),Oe}function Kr(){var Oe,He,tt,ft,wt;if(yt++,Oe=Fe,He=Gt(),He!==J)if(tt=Yr(),tt!==J){for(ft=[],wt=Jr();wt!==J;)ft.push(wt),wt=Jr();ft!==J?(Yt=Oe,He=ze(tt,ft),Oe=He):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;return yt--,Oe===J&&(He=J,yt===0&&Et(Ie)),Oe}function Ti(){var Oe,He,tt;if(Oe=Fe,He=[],tt=Kr(),tt!==J)for(;tt!==J;)He.push(tt),tt=Kr();else He=J;return He!==J&&(Yt=Oe,He=qe(He)),Oe=He,Oe}function qi(){var Oe,He,tt;return Oe=Fe,X.substr(Fe,2)===Ae?(He=Ae,Fe+=2):(He=J,yt===0&&Et(De)),He!==J?(tt=Ti(),tt!==J?(Yt=Oe,He=Me(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe===J&&(Oe=Fe,Yt=Fe,He=Be(),He?He=void 0:He=J,He!==J?(tt=Nr(),tt!==J?(Yt=Oe,He=Ve(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)),Oe}function Pi(){var Oe,He,tt,ft,wt,Mt,nr,Vt,vr,Wt,lr,Kt,sr;return Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Et(fe)),He!==J?(tt=Gt(),tt!==J?(ft=Cr(),ft!==J?(wt=Gt(),wt!==J?(X.charCodeAt(Fe)===44?(Mt=Ye,Fe++):(Mt=J,yt===0&&Et(Je)),Mt!==J?(nr=Gt(),nr!==J?(X.substr(Fe,6)===vt?(Vt=vt,Fe+=6):(Vt=J,yt===0&&Et(Xe)),Vt!==J?(vr=Gt(),vr!==J?(Wt=Fe,X.charCodeAt(Fe)===44?(lr=Ye,Fe++):(lr=J,yt===0&&Et(Je)),lr!==J?(Kt=Gt(),Kt!==J?(sr=qi(),sr!==J?(lr=[lr,Kt,sr],Wt=lr):(Fe=Wt,Wt=J)):(Fe=Wt,Wt=J)):(Fe=Wt,Wt=J),Wt===J&&(Wt=null),Wt!==J?(lr=Gt(),lr!==J?(X.charCodeAt(Fe)===125?(Kt=ge,Fe++):(Kt=J,yt===0&&Et(me)),Kt!==J?(Yt=Oe,He=Ge(ft,Vt,Wt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe}function Zr(){var Oe,He,tt,ft;if(Oe=Fe,X.charCodeAt(Fe)===39?(He=Ne,Fe++):(He=J,yt===0&&Et(Ue)),He!==J){if(tt=[],ft=Sr(),ft===J&&(We.test(X.charAt(Fe))?(ft=X.charAt(Fe),Fe++):(ft=J,yt===0&&Et(Qe))),ft!==J)for(;ft!==J;)tt.push(ft),ft=Sr(),ft===J&&(We.test(X.charAt(Fe))?(ft=X.charAt(Fe),Fe++):(ft=J,yt===0&&Et(Qe)));else tt=J;tt!==J?(X.charCodeAt(Fe)===39?(ft=Ne,Fe++):(ft=J,yt===0&&Et(Ue)),ft!==J?(He=[He,tt,ft],Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;if(Oe===J)if(Oe=[],He=Sr(),He===J&&(Ze.test(X.charAt(Fe))?(He=X.charAt(Fe),Fe++):(He=J,yt===0&&Et(je))),He!==J)for(;He!==J;)Oe.push(He),He=Sr(),He===J&&(Ze.test(X.charAt(Fe))?(He=X.charAt(Fe),Fe++):(He=J,yt===0&&Et(je)));else Oe=J;return Oe}function Xr(){var Oe,He;if(Oe=[],Ke.test(X.charAt(Fe))?(He=X.charAt(Fe),Fe++):(He=J,yt===0&&Et(it)),He!==J)for(;He!==J;)Oe.push(He),Ke.test(X.charAt(Fe))?(He=X.charAt(Fe),Fe++):(He=J,yt===0&&Et(it));else Oe=J;return Oe}function Di(){var Oe,He,tt,ft;if(Oe=Fe,He=Fe,tt=[],ft=Zr(),ft===J&&(ft=Xr()),ft!==J)for(;ft!==J;)tt.push(ft),ft=Zr(),ft===J&&(ft=Xr());else tt=J;return tt!==J?He=X.substring(He,Fe):He=tt,He!==J&&(Yt=Oe,He=nt(He)),Oe=He,Oe}function Ri(){var Oe,He,tt;return Oe=Fe,X.substr(Fe,2)===Ae?(He=Ae,Fe+=2):(He=J,yt===0&&Et(De)),He!==J?(tt=Di(),tt!==J?(Yt=Oe,He=Me(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe===J&&(Oe=Fe,Yt=Fe,He=bt(),He?He=void 0:He=J,He!==J?(tt=Nr(),tt!==J?(Yt=Oe,He=Ve(tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)),Oe}function Ii(){var Oe,He,tt,ft,wt,Mt,nr,Vt,vr,Wt,lr,Kt,sr;return Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Et(fe)),He!==J?(tt=Gt(),tt!==J?(ft=Cr(),ft!==J?(wt=Gt(),wt!==J?(X.charCodeAt(Fe)===44?(Mt=Ye,Fe++):(Mt=J,yt===0&&Et(Je)),Mt!==J?(nr=Gt(),nr!==J?(X.substr(Fe,4)===Ct?(Vt=Ct,Fe+=4):(Vt=J,yt===0&&Et(Dt)),Vt===J&&(X.substr(Fe,4)===Lt?(Vt=Lt,Fe+=4):(Vt=J,yt===0&&Et(Bt))),Vt!==J?(vr=Gt(),vr!==J?(Wt=Fe,X.charCodeAt(Fe)===44?(lr=Ye,Fe++):(lr=J,yt===0&&Et(Je)),lr!==J?(Kt=Gt(),Kt!==J?(sr=Ri(),sr!==J?(lr=[lr,Kt,sr],Wt=lr):(Fe=Wt,Wt=J)):(Fe=Wt,Wt=J)):(Fe=Wt,Wt=J),Wt===J&&(Wt=null),Wt!==J?(lr=Gt(),lr!==J?(X.charCodeAt(Fe)===125?(Kt=ge,Fe++):(Kt=J,yt===0&&Et(me)),Kt!==J?(Yt=Oe,He=Ge(ft,Vt,Wt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe}function Li(){var Oe;return Oe=Pi(),Oe===J&&(Oe=Ii()),Oe}function Mi(){var Oe,He,tt,ft,wt,Mt,nr,Vt,vr,Wt,lr,Kt,sr,br,wr,zr;if(Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Et(fe)),He!==J)if(tt=Gt(),tt!==J)if(ft=Cr(),ft!==J)if(wt=Gt(),wt!==J)if(X.charCodeAt(Fe)===44?(Mt=Ye,Fe++):(Mt=J,yt===0&&Et(Je)),Mt!==J)if(nr=Gt(),nr!==J)if(X.substr(Fe,6)===jt?(Vt=jt,Fe+=6):(Vt=J,yt===0&&Et(dr)),Vt===J&&(X.substr(Fe,13)===rr?(Vt=rr,Fe+=13):(Vt=J,yt===0&&Et(gt))),Vt!==J)if(vr=Gt(),vr!==J)if(X.charCodeAt(Fe)===44?(Wt=Ye,Fe++):(Wt=J,yt===0&&Et(Je)),Wt!==J)if(lr=Gt(),lr!==J)if(Kt=Fe,X.substr(Fe,7)===mt?(sr=mt,Fe+=7):(sr=J,yt===0&&Et(xt)),sr!==J?(br=Gt(),br!==J?(wr=ri(),wr!==J?(sr=[sr,br,wr],Kt=sr):(Fe=Kt,Kt=J)):(Fe=Kt,Kt=J)):(Fe=Kt,Kt=J),Kt===J&&(Kt=null),Kt!==J)if(sr=Gt(),sr!==J){if(br=[],wr=ei(),wr!==J)for(;wr!==J;)br.push(wr),wr=ei();else br=J;br!==J?(wr=Gt(),wr!==J?(X.charCodeAt(Fe)===125?(zr=ge,Fe++):(zr=J,yt===0&&Et(me)),zr!==J?(Yt=Oe,He=St(ft,Vt,Kt,br),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;return Oe}function Ni(){var Oe,He,tt,ft,wt,Mt,nr,Vt,vr,Wt,lr,Kt,sr,br;if(Oe=Fe,X.charCodeAt(Fe)===123?(He=pe,Fe++):(He=J,yt===0&&Et(fe)),He!==J)if(tt=Gt(),tt!==J)if(ft=Cr(),ft!==J)if(wt=Gt(),wt!==J)if(X.charCodeAt(Fe)===44?(Mt=Ye,Fe++):(Mt=J,yt===0&&Et(Je)),Mt!==J)if(nr=Gt(),nr!==J)if(X.substr(Fe,6)===$t?(Vt=$t,Fe+=6):(Vt=J,yt===0&&Et(Ft)),Vt!==J)if(vr=Gt(),vr!==J)if(X.charCodeAt(Fe)===44?(Wt=Ye,Fe++):(Wt=J,yt===0&&Et(Je)),Wt!==J)if(lr=Gt(),lr!==J){if(Kt=[],sr=Qr(),sr!==J)for(;sr!==J;)Kt.push(sr),sr=Qr();else Kt=J;Kt!==J?(sr=Gt(),sr!==J?(X.charCodeAt(Fe)===125?(br=ge,Fe++):(br=J,yt===0&&Et(me)),br!==J?(Yt=Oe,He=Nt(ft,Kt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;return Oe}function Fi(){var Oe,He,tt,ft;return Oe=Fe,He=Fe,X.charCodeAt(Fe)===61?(tt=zt,Fe++):(tt=J,yt===0&&Et(or)),tt!==J?(ft=ri(),ft!==J?(tt=[tt,ft],He=tt):(Fe=He,He=J)):(Fe=He,He=J),He!==J?Oe=X.substring(Oe,Fe):Oe=He,Oe===J&&(Oe=Fr()),Oe}function Qr(){var Oe,He,tt,ft,wt,Mt,nr,Vt;return Oe=Fe,He=Gt(),He!==J?(tt=Fr(),tt!==J?(ft=Gt(),ft!==J?(X.charCodeAt(Fe)===123?(wt=pe,Fe++):(wt=J,yt===0&&Et(fe)),wt!==J?(Yt=Fe,Mt=pr(),Mt?Mt=void 0:Mt=J,Mt!==J?(nr=Mr(),nr!==J?(X.charCodeAt(Fe)===125?(Vt=ge,Fe++):(Vt=J,yt===0&&Et(me)),Vt!==J?(Yt=Oe,He=Zt(tt,nr),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe}function ei(){var Oe,He,tt,ft,wt,Mt,nr,Vt;return Oe=Fe,He=Gt(),He!==J?(tt=Fi(),tt!==J?(ft=Gt(),ft!==J?(X.charCodeAt(Fe)===123?(wt=pe,Fe++):(wt=J,yt===0&&Et(fe)),wt!==J?(Yt=Fe,Mt=Er(),Mt?Mt=void 0:Mt=J,Mt!==J?(nr=Mr(),nr!==J?(X.charCodeAt(Fe)===125?(Vt=ge,Fe++):(Vt=J,yt===0&&Et(me)),Vt!==J?(Yt=Oe,He=ir(tt,nr),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),Oe}function kr(){var Oe;return yt++,ot.test(X.charAt(Fe))?(Oe=X.charAt(Fe),Fe++):(Oe=J,yt===0&&Et(_t)),yt--,Oe===J&&yt===0&&Et(rt),Oe}function ti(){var Oe;return yt++,It.test(X.charAt(Fe))?(Oe=X.charAt(Fe),Fe++):(Oe=J,yt===0&&Et(ur)),yt--,Oe===J&&yt===0&&Et(kt),Oe}function Gt(){var Oe,He,tt;for(yt++,Oe=Fe,He=[],tt=kr();tt!==J;)He.push(tt),tt=kr();return He!==J?Oe=X.substring(Oe,Fe):Oe=He,yt--,Oe===J&&(He=J,yt===0&&Et(cr)),Oe}function ri(){var Oe,He,tt;return yt++,Oe=Fe,X.charCodeAt(Fe)===45?(He=At,Fe++):(He=J,yt===0&&Et(Ot)),He===J&&(He=null),He!==J?(tt=oi(),tt!==J?(Yt=Oe,He=qt(He,tt),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J),yt--,Oe===J&&(He=J,yt===0&&Et(Ht)),Oe}function Sr(){var Oe,He;return yt++,Oe=Fe,X.substr(Fe,2)===Ut?(He=Ut,Fe+=2):(He=J,yt===0&&Et(Xt)),He!==J&&(Yt=Oe,He=ar()),Oe=He,yt--,Oe===J&&(He=J,yt===0&&Et(Pt)),Oe}function ii(){var Oe,He,tt,ft,wt,Mt;if(Oe=Fe,X.charCodeAt(Fe)===39?(He=Ne,Fe++):(He=J,yt===0&&Et(Ue)),He!==J)if(tt=zi(),tt!==J){for(ft=Fe,wt=[],X.substr(Fe,2)===Ut?(Mt=Ut,Fe+=2):(Mt=J,yt===0&&Et(Xt)),Mt===J&&(We.test(X.charAt(Fe))?(Mt=X.charAt(Fe),Fe++):(Mt=J,yt===0&&Et(Qe)));Mt!==J;)wt.push(Mt),X.substr(Fe,2)===Ut?(Mt=Ut,Fe+=2):(Mt=J,yt===0&&Et(Xt)),Mt===J&&(We.test(X.charAt(Fe))?(Mt=X.charAt(Fe),Fe++):(Mt=J,yt===0&&Et(Qe)));wt!==J?ft=X.substring(ft,Fe):ft=wt,ft!==J?(X.charCodeAt(Fe)===39?(wt=Ne,Fe++):(wt=J,yt===0&&Et(Ue)),wt===J&&(wt=null),wt!==J?(Yt=Oe,He=gr(tt,ft),Oe=He):(Fe=Oe,Oe=J)):(Fe=Oe,Oe=J)}else Fe=Oe,Oe=J;else Fe=Oe,Oe=J;return Oe}function ni(){var Oe,He,tt,ft;return Oe=Fe,He=Fe,X.length>Fe?(tt=X.charAt(Fe),Fe++):(tt=J,yt===0&&Et(Se)),tt!==J?(Yt=Fe,ft=Or(tt),ft?ft=void 0:ft=J,ft!==J?(tt=[tt,ft],He=tt):(Fe=He,He=J)):(Fe=He,He=J),He===J&&(X.charCodeAt(Fe)===10?(He=Dr,Fe++):(He=J,yt===0&&Et(Rr))),He!==J?Oe=X.substring(Oe,Fe):Oe=He,Oe}function zi(){var Oe,He,tt,ft;return Oe=Fe,He=Fe,X.length>Fe?(tt=X.charAt(Fe),Fe++):(tt=J,yt===0&&Et(Se)),tt!==J?(Yt=Fe,ft=pi(tt),ft?ft=void 0:ft=J,ft!==J?(tt=[tt,ft],He=tt):(Fe=He,He=J)):(Fe=He,He=J),He!==J?Oe=X.substring(Oe,Fe):Oe=He,Oe}function Cr(){var Oe,He;return yt++,Oe=Fe,He=oi(),He===J&&(He=Fr()),He!==J?Oe=X.substring(Oe,Fe):Oe=He,yt--,Oe===J&&(He=J,yt===0&&Et(fi)),Oe}function oi(){var Oe,He,tt,ft,wt;if(yt++,Oe=Fe,X.charCodeAt(Fe)===48?(He=vi,Fe++):(He=J,yt===0&&Et(mi)),He!==J&&(Yt=Oe,He=bi()),Oe=He,Oe===J){if(Oe=Fe,He=Fe,_i.test(X.charAt(Fe))?(tt=X.charAt(Fe),Fe++):(tt=J,yt===0&&Et(yi)),tt!==J){for(ft=[],Ur.test(X.charAt(Fe))?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Et(Br));wt!==J;)ft.push(wt),Ur.test(X.charAt(Fe))?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Et(Br));ft!==J?(tt=[tt,ft],He=tt):(Fe=He,He=J)}else Fe=He,He=J;He!==J&&(Yt=Oe,He=$i(He)),Oe=He}return yt--,Oe===J&&(He=J,yt===0&&Et(gi)),Oe}function Fr(){var Oe,He,tt,ft,wt;if(yt++,Oe=Fe,He=[],tt=Fe,ft=Fe,yt++,wt=kr(),wt===J&&(wt=ti()),yt--,wt===J?ft=void 0:(Fe=ft,ft=J),ft!==J?(X.length>Fe?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Et(Se)),wt!==J?(ft=[ft,wt],tt=ft):(Fe=tt,tt=J)):(Fe=tt,tt=J),tt!==J)for(;tt!==J;)He.push(tt),tt=Fe,ft=Fe,yt++,wt=kr(),wt===J&&(wt=ti()),yt--,wt===J?ft=void 0:(Fe=ft,ft=J),ft!==J?(X.length>Fe?(wt=X.charAt(Fe),Fe++):(wt=J,yt===0&&Et(Se)),wt!==J?(ft=[ft,wt],tt=ft):(Fe=tt,tt=J)):(Fe=tt,tt=J);else He=J;return He!==J?Oe=X.substring(Oe,Fe):Oe=He,yt--,Oe===J&&(He=J,yt===0&&Et(wi)),Oe}var yr=["root"];function Ui(){return yr.length>1}function ai(){return yr[yr.length-1]==="plural"}function $r(){return W&&W.captureLocation?{location:Lr()}:{}}if(qr=re(),qr!==J&&Fe===X.length)return qr;throw qr!==J&&Fe<X.length&&Et(ki()),Ei(Ir,_r<X.length?X.charAt(_r):null,_r<X.length?Pr(_r,_r+1):Pr(_r,_r))}var pegParse=peg$parse,__spreadArrays$2=function(){for(var X=0,W=0,J=arguments.length;W<J;W++)X+=arguments[W].length;for(var te=Array(X),re=0,W=0;W<J;W++)for(var ne=arguments[W],oe=0,de=ne.length;oe<de;oe++,re++)te[re]=ne[oe];return te},PLURAL_HASHTAG_REGEX=/(^|[^\\])#/g;function normalizeHashtagInPlural(X){X.forEach(function(W){!isPluralElement(W)&&!isSelectElement(W)||Object.keys(W.options).forEach(function(J){for(var te,re=W.options[J],ne=-1,oe=void 0,de=0;de<re.value.length;de++){var he=re.value[de];if(isLiteralElement(he)&&PLURAL_HASHTAG_REGEX.test(he.value)){ne=de,oe=he;break}}if(oe){var ue=oe.value.replace(PLURAL_HASHTAG_REGEX,"$1{"+W.value+", number}"),ce=pegParse(ue);(te=re.value).splice.apply(te,__spreadArrays$2([ne,1],ce))}normalizeHashtagInPlural(re.value)})})}var __assign$3=function(){return __assign$3=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign$3.apply(this,arguments)},DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(X){var W={};return X.replace(DATE_TIME_REGEX,function(J){var te=J.length;switch(J[0]){case"G":W.era=te===4?"long":te===5?"narrow":"short";break;case"y":W.year=te===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":W.month=["numeric","2-digit","short","long","narrow"][te-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":W.day=["numeric","2-digit"][te-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":W.weekday=te===4?"short":te===5?"narrow":"short";break;case"e":if(te<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");W.weekday=["short","long","narrow","short"][te-4];break;case"c":if(te<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");W.weekday=["short","long","narrow","short"][te-4];break;case"a":W.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":W.hourCycle="h12",W.hour=["numeric","2-digit"][te-1];break;case"H":W.hourCycle="h23",W.hour=["numeric","2-digit"][te-1];break;case"K":W.hourCycle="h11",W.hour=["numeric","2-digit"][te-1];break;case"k":W.hourCycle="h24",W.hour=["numeric","2-digit"][te-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":W.minute=["numeric","2-digit"][te-1];break;case"s":W.second=["numeric","2-digit"][te-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":W.timeZoneName=te<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),W}function icuUnitToEcma(X){return X.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\+|#+)?)?$/g,SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?$/g;function parseSignificantPrecision(X){var W={};return X.replace(SIGNIFICANT_PRECISION_REGEX,function(J,te,re){return typeof re!="string"?(W.minimumSignificantDigits=te.length,W.maximumSignificantDigits=te.length):re==="+"?W.minimumSignificantDigits=te.length:te[0]==="#"?W.maximumSignificantDigits=te.length:(W.minimumSignificantDigits=te.length,W.maximumSignificantDigits=te.length+(typeof re=="string"?re.length:0)),""}),W}function parseSign(X){switch(X){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function parseNotationOptions(X){var W={},J=parseSign(X);return J||W}function convertNumberSkeletonToNumberFormatOptions(X){for(var W={},J=0,te=X;J<te.length;J++){var re=te[J];switch(re.stem){case"percent":W.style="percent";continue;case"currency":W.style="currency",W.currency=re.options[0];continue;case"group-off":W.useGrouping=!1;continue;case"precision-integer":W.maximumFractionDigits=0;continue;case"measure-unit":W.style="unit",W.unit=icuUnitToEcma(re.options[0]);continue;case"compact-short":W.notation="compact",W.compactDisplay="short";continue;case"compact-long":W.notation="compact",W.compactDisplay="long";continue;case"scientific":W=__assign$3(__assign$3(__assign$3({},W),{notation:"scientific"}),re.options.reduce(function(oe,de){return __assign$3(__assign$3({},oe),parseNotationOptions(de))},{}));continue;case"engineering":W=__assign$3(__assign$3(__assign$3({},W),{notation:"engineering"}),re.options.reduce(function(oe,de){return __assign$3(__assign$3({},oe),parseNotationOptions(de))},{}));continue;case"notation-simple":W.notation="standard";continue;case"unit-width-narrow":W.currencyDisplay="narrowSymbol",W.unitDisplay="narrow";continue;case"unit-width-short":W.currencyDisplay="code",W.unitDisplay="short";continue;case"unit-width-full-name":W.currencyDisplay="name",W.unitDisplay="long";continue;case"unit-width-iso-code":W.currencyDisplay="symbol";continue}if(FRACTION_PRECISION_REGEX.test(re.stem)){if(re.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");re.stem.replace(FRACTION_PRECISION_REGEX,function(oe,de,he){return oe==="."?W.maximumFractionDigits=0:he==="+"?W.minimumFractionDigits=he.length:de[0]==="#"?W.maximumFractionDigits=de.length:(W.minimumFractionDigits=de.length,W.maximumFractionDigits=de.length+(typeof he=="string"?he.length:0)),""}),re.options.length&&(W=__assign$3(__assign$3({},W),parseSignificantPrecision(re.options[0])));continue}if(SIGNIFICANT_PRECISION_REGEX.test(re.stem)){W=__assign$3(__assign$3({},W),parseSignificantPrecision(re.stem));continue}var ne=parseSign(re.stem);ne&&(W=__assign$3(__assign$3({},W),ne))}return W}function parse$1(X,W){var J=pegParse(X,W);return(!W||W.normalizeHashtagInPlural!==!1)&&normalizeHashtagInPlural(J),J}var __spreadArrays$1=function(){for(var X=0,W=0,J=arguments.length;W<J;W++)X+=arguments[W].length;for(var te=Array(X),re=0,W=0;W<J;W++)for(var ne=arguments[W],oe=0,de=ne.length;oe<de;oe++,re++)te[re]=ne[oe];return te};function getCacheId(X){return JSON.stringify(X.map(function(W){return W&&typeof W=="object"?orderedProps(W):W}))}function orderedProps(X){return Object.keys(X).sort().map(function(W){var J;return J={},J[W]=X[W],J})}var memoizeFormatConstructor=function(X,W){return W===void 0&&(W={}),function(){for(var J,te=[],re=0;re<arguments.length;re++)te[re]=arguments[re];var ne=getCacheId(te),oe=ne&&W[ne];return oe||(oe=new((J=X).bind.apply(J,__spreadArrays$1([void 0],te))),ne&&(W[ne]=oe)),oe}},__extends=function(){var X=function(W,J){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,re){te.__proto__=re}||function(te,re){for(var ne in re)re.hasOwnProperty(ne)&&(te[ne]=re[ne])},X(W,J)};return function(W,J){X(W,J);function te(){this.constructor=W}W.prototype=J===null?Object.create(J):(te.prototype=J.prototype,new te)}}(),__spreadArrays=function(){for(var X=0,W=0,J=arguments.length;W<J;W++)X+=arguments[W].length;for(var te=Array(X),re=0,W=0;W<J;W++)for(var ne=arguments[W],oe=0,de=ne.length;oe<de;oe++,re++)te[re]=ne[oe];return te},FormatError=function(X){__extends(W,X);function W(J,te){var re=X.call(this,J)||this;return re.variableId=te,re}return W}(Error);function mergeLiteral(X){return X.length<2?X:X.reduce(function(W,J){var te=W[W.length-1];return!te||te.type!==0||J.type!==0?W.push(J):te.value+=J.value,W},[])}function formatToParts(X,W,J,te,re,ne,oe){if(X.length===1&&isLiteralElement(X[0]))return[{type:0,value:X[0].value}];for(var de=[],he=0,ue=X;he<ue.length;he++){var ce=ue[he];if(isLiteralElement(ce)){de.push({type:0,value:ce.value});continue}if(isPoundElement(ce)){typeof ne=="number"&&de.push({type:0,value:J.getNumberFormat(W).format(ne)});continue}var pe=ce.value;if(!(re&&pe in re))throw new FormatError('The intl string context variable "'+pe+'" was not provided to the string "'+oe+'"');var fe=re[pe];if(isArgumentElement(ce)){(!fe||typeof fe=="string"||typeof fe=="number")&&(fe=typeof fe=="string"||typeof fe=="number"?String(fe):""),de.push({type:1,value:fe});continue}if(isDateElement(ce)){var ge=typeof ce.style=="string"?te.date[ce.style]:void 0;de.push({type:0,value:J.getDateTimeFormat(W,ge).format(fe)});continue}if(isTimeElement(ce)){var ge=typeof ce.style=="string"?te.time[ce.style]:isDateTimeSkeleton(ce.style)?parseDateTimeSkeleton(ce.style.pattern):void 0;de.push({type:0,value:J.getDateTimeFormat(W,ge).format(fe)});continue}if(isNumberElement(ce)){var ge=typeof ce.style=="string"?te.number[ce.style]:isNumberSkeleton(ce.style)?convertNumberSkeletonToNumberFormatOptions(ce.style.tokens):void 0;de.push({type:0,value:J.getNumberFormat(W,ge).format(fe)});continue}if(isSelectElement(ce)){var me=ce.options[fe]||ce.options.other;if(!me)throw new RangeError('Invalid values for "'+ce.value+'": "'+fe+'". Options are "'+Object.keys(ce.options).join('", "')+'"');de.push.apply(de,formatToParts(me.value,W,J,te,re));continue}if(isPluralElement(ce)){var me=ce.options["="+fe];if(!me){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment.
|
|
174
126
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
175
|
-
`);var ve=J.getPluralRules(W,{type:ce.pluralType}).select(fe-(ce.offset||0));me=ce.options[ve]||ce.options.other}if(!me)throw new RangeError('Invalid values for "'+ce.value+'": "'+fe+'". Options are "'+Object.keys(ce.options).join('", "')+'"');de.push.apply(de,formatToParts(me.value,W,J,te,re,fe-(ce.offset||0)));continue}}return mergeLiteral(de)}function formatToString(X,W,J,te,re,ne){var oe=formatToParts(X,W,J,te,re,void 0,ne);return oe.length===1?oe[0].value:oe.reduce(function(de,he){return de+=he.value},"")}var domParser,TOKEN_DELIMITER="@@",TOKEN_REGEX=/@@(\d+_\d+)@@/g,counter=0;function generateId(){return Date.now()+"_"+ ++counter}function restoreRichPlaceholderMessage(X,W){return X.split(TOKEN_REGEX).filter(Boolean).map(function(J){return W[J]!=null?W[J]:J}).reduce(function(J,te){return J.length&&typeof te=="string"&&typeof J[J.length-1]=="string"?J[J.length-1]+=te:J.push(te),J},[])}var SIMPLE_XML_REGEX=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,TEMPLATE_ID=Date.now()+"@@",VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function formatHTMLElement(X,W,J){var te=X.tagName,re=X.outerHTML,ne=X.textContent,oe=X.childNodes;if(!te)return restoreRichPlaceholderMessage(ne||"",W);te=te.toLowerCase();var de=~VOID_ELEMENTS.indexOf(te),he=J[te];if(he&&de)throw new FormatError(te+" is a self-closing tag and can not be used, please use another tag name.");if(!oe.length)return[re];var ue=Array.prototype.slice.call(oe).reduce(function(ce,pe){return ce.concat(formatHTMLElement(pe,W,J))},[]);return he?typeof he=="function"?[he.apply(void 0,ue)]:[he]:__spreadArrays(["<"+te+">"],ue,["</"+te+">"])}function formatHTMLMessage(X,W,J,te,re,ne){var oe=formatToParts(X,W,J,te,re,void 0,ne),de={},he=oe.reduce(function(fe,ge){if(ge.type===0)return fe+=ge.value;var me=generateId();return de[me]=ge.value,fe+=""+TOKEN_DELIMITER+me+TOKEN_DELIMITER},"");if(!SIMPLE_XML_REGEX.test(he))return restoreRichPlaceholderMessage(he,de);if(!re)throw new FormatError("Message has placeholders but no values was given");if(typeof DOMParser>"u")throw new FormatError("Cannot format XML message without DOMParser");domParser||(domParser=new DOMParser);var ue=domParser.parseFromString('<formatted-message id="'+TEMPLATE_ID+'">'+he+"</formatted-message>","text/html").getElementById(TEMPLATE_ID);if(!ue)throw new FormatError("Malformed HTML message "+he);var ce=Object.keys(re).filter(function(fe){return!!ue.getElementsByTagName(fe).length});if(!ce.length)return restoreRichPlaceholderMessage(he,de);var pe=ce.filter(function(fe){return fe!==fe.toLowerCase()});if(pe.length)throw new FormatError("HTML tag must be lowercased but the following tags are not: "+pe.join(", "));return Array.prototype.slice.call(ue.childNodes).reduce(function(fe,ge){return fe.concat(formatHTMLElement(ge,de,re))},[])}var __assign$2=function(){return __assign$2=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign$2.apply(this,arguments)};function mergeConfig(X,W){return W?__assign$2(__assign$2(__assign$2({},X||{}),W||{}),Object.keys(X).reduce(function(J,te){return J[te]=__assign$2(__assign$2({},X[te]),W[te]||{}),J},{})):X}function mergeConfigs(X,W){return W?Object.keys(X).reduce(function(J,te){return J[te]=mergeConfig(X[te],W[te]),J},__assign$2({},X)):X}function createDefaultFormatters(X){return X===void 0&&(X={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoizeFormatConstructor(Intl.NumberFormat,X.number),getDateTimeFormat:memoizeFormatConstructor(Intl.DateTimeFormat,X.dateTime),getPluralRules:memoizeFormatConstructor(Intl.PluralRules,X.pluralRules)}}var IntlMessageFormat=function(){function X(W,J,te,re){var ne=this;if(J===void 0&&(J=X.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(oe){return formatToString(ne.ast,ne.locales,ne.formatters,ne.formats,oe,ne.message)},this.formatToParts=function(oe){return formatToParts(ne.ast,ne.locales,ne.formatters,ne.formats,oe,void 0,ne.message)},this.formatHTMLMessage=function(oe){return formatHTMLMessage(ne.ast,ne.locales,ne.formatters,ne.formats,oe,ne.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(ne.locales)[0]}},this.getAst=function(){return ne.ast},typeof W=="string"){if(this.message=W,!X.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=X.__parse(W,{normalizeHashtagInPlural:!1})}else this.ast=W;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=mergeConfigs(X.formats,te),this.locales=J,this.formatters=re&&re.formatters||createDefaultFormatters(this.formatterCache)}return X.defaultLocale=new Intl.NumberFormat().resolvedOptions().locale,X.__parse=parse$1,X.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},X}();const u$p=X=>{let W=X;if(X&&X.length==1){if(Object.prototype.toString.call(X[0])==="[object Array]")W=X[0];else if(typeof X[0]=="object"){const J=X[0];W=Object.keys(J).reduce((te,re)=>te.concat(re,J[re]),[])}}return W},F$1=X=>lensPath(String(X).split(".")),j=(X,W,J={},te=!1)=>function(re,...ne){if(!re||!W||!X||!W[X])return"";const oe=view(F$1(re),W[X]);if(!oe)return te?re:"";if(!ne||!ne.length)return oe;const de={},he=`${re}${oe}`;let ue=de[he];ue||(ue=new IntlMessageFormat(oe,X,J),de[he]=ue),ne=u$p(ne);const ce={};for(let pe=0;pe<ne.length;pe+=2)ce[ne[pe]]=ne[pe+1];return ue.format(ce)},o$H={};let e$E={};const l$m=X=>{e$E=mergeDeepRight(o$H,e$E),e$E=mergeDeepRight(e$E,X),u$q(o$J,e$E)},p$b=()=>({...e$E}),createLocaleManager=X=>W=>{const J=j(p$c(),W,"",!0);return l$m(W),Promise.resolve({translate:(te,re)=>{try{return J(`${X}.${te}`,re)}catch(ne){return console.error(ne),te}},getTranslations:()=>{const te=p$b(),re=p$c();return te[re][X]||{}},getCurrentLanguage:()=>p$c()})};let token,refreshToken;class TokenManagerImpl{constructor(){this.getUrlParams=()=>new URLSearchParams(window.location.search),this.initToken=()=>{const W=this.getUrlParams();return token=W.get("access_token")||"",refreshToken=W.get("refresh_token")||"",token},this.getToken=()=>token,this.refreshToken=async()=>{const W=await axios.post("/api/token/refresh",{token:refreshToken}),{access_token:J,refresh_token:te}=W.data;if(!J)throw new Error("Invalid refresh token response");return token=J,refreshToken=te,token}}}let tokenManager$1;const createTokenManager=()=>tokenManager$1||(tokenManager$1=new TokenManagerImpl,tokenManager$1.initToken(),tokenManager$1);class EcapEventManager{}class EcapEventManagerImpl{publish(W,J,te){const re=this.createEcapEvent(W,J,te);this.raiseEcapEvent(re)}createEcapEvent(W,J,te){return{TipusEvent:W,Accio:J,...te}}raiseEcapEvent(W){window.parent&&window.parent.postMessage(JSON.stringify(W),"*"),console.log("method",JSON.stringify(W))}}const ecapEventManager=new EcapEventManagerImpl,createEcapEventManager=()=>ecapEventManager;class PluginBusyManagerImpl{constructor(){this.busyPluginTasks=[]}addBusyPluginTask(W){this.busyPluginTasks.push(W)}removeBusyPluginTask(W){const J=this.busyPluginTasks.findIndex(te=>te.taskId===W);J>-1&&this.busyPluginTasks.splice(J,1)}isAnyPluginBusy(){return this.busyPluginTasks.length>0}clearAllBusyPlugins(){this.busyPluginTasks=[]}getBusyPluginTasks(){return this.busyPluginTasks}}const broker$1=createBroker(),regionManager=x$5("primaria"),PrimariaRegionHost=y$f(regionManager),tokenManager=createTokenManager(),globalStateManager=createGlobalStateManager(broker$1),pluginBusyManager=new PluginBusyManagerImpl,primariaApiFactory=X=>({pluginInfo:X,regionManager:createRegionManagerProxy(X,regionManager,broker$1),httpClient:createHttpClient(tokenManager,broker$1),interactionManager:{...createInteractionManager()},broker:broker$1,createLocaleManager:createLocaleManager(X.pluginId),globalStateManager,tokenManager,ecapEventManager:createEcapEventManager(),pluginBusyManager}),shellApi=primariaApiFactory({pluginId:"primaria-shell"}),styles$f=":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 .top-content{padding-top:24px;padding-bottom:24px;border-radius:8px}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap: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:4px}.main-container .sidebar #quick-actions-region-container{width:100%}.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{padding:1px;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 #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}";let t$h="";function f$h(){return t$h}function s$p(X,W){const J=f$h(),te=`${X}${J}`;customElements.define(te,W)}const e$D="*,*:before,*:after{box-sizing:border-box}*{margin:0;padding:0;font-family:var(--font-family)}ul,ol{list-style:none}",o$G={type:Boolean,converter:{fromAttribute:X=>X!==null&&X!=="false",toAttribute:X=>X?"true":null}},n$s={type:Array,converter:{fromAttribute:X=>{if(!X)return[];const W=JSON.parse(X);return Array.isArray(W)?W.map(J=>J.toString()):[W.toString()]},toAttribute:X=>JSON.stringify(X)}},i$t=':host{display:flex;align-items:center}.dss-icon,.material-symbols-rounded{font-family:var(--font-icons);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)}';/**
|
|
127
|
+
`);var ve=J.getPluralRules(W,{type:ce.pluralType}).select(fe-(ce.offset||0));me=ce.options[ve]||ce.options.other}if(!me)throw new RangeError('Invalid values for "'+ce.value+'": "'+fe+'". Options are "'+Object.keys(ce.options).join('", "')+'"');de.push.apply(de,formatToParts(me.value,W,J,te,re,fe-(ce.offset||0)));continue}}return mergeLiteral(de)}function formatToString(X,W,J,te,re,ne){var oe=formatToParts(X,W,J,te,re,void 0,ne);return oe.length===1?oe[0].value:oe.reduce(function(de,he){return de+=he.value},"")}var domParser,TOKEN_DELIMITER="@@",TOKEN_REGEX=/@@(\d+_\d+)@@/g,counter=0;function generateId(){return Date.now()+"_"+ ++counter}function restoreRichPlaceholderMessage(X,W){return X.split(TOKEN_REGEX).filter(Boolean).map(function(J){return W[J]!=null?W[J]:J}).reduce(function(J,te){return J.length&&typeof te=="string"&&typeof J[J.length-1]=="string"?J[J.length-1]+=te:J.push(te),J},[])}var SIMPLE_XML_REGEX=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,TEMPLATE_ID=Date.now()+"@@",VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function formatHTMLElement(X,W,J){var te=X.tagName,re=X.outerHTML,ne=X.textContent,oe=X.childNodes;if(!te)return restoreRichPlaceholderMessage(ne||"",W);te=te.toLowerCase();var de=~VOID_ELEMENTS.indexOf(te),he=J[te];if(he&&de)throw new FormatError(te+" is a self-closing tag and can not be used, please use another tag name.");if(!oe.length)return[re];var ue=Array.prototype.slice.call(oe).reduce(function(ce,pe){return ce.concat(formatHTMLElement(pe,W,J))},[]);return he?typeof he=="function"?[he.apply(void 0,ue)]:[he]:__spreadArrays(["<"+te+">"],ue,["</"+te+">"])}function formatHTMLMessage(X,W,J,te,re,ne){var oe=formatToParts(X,W,J,te,re,void 0,ne),de={},he=oe.reduce(function(fe,ge){if(ge.type===0)return fe+=ge.value;var me=generateId();return de[me]=ge.value,fe+=""+TOKEN_DELIMITER+me+TOKEN_DELIMITER},"");if(!SIMPLE_XML_REGEX.test(he))return restoreRichPlaceholderMessage(he,de);if(!re)throw new FormatError("Message has placeholders but no values was given");if(typeof DOMParser>"u")throw new FormatError("Cannot format XML message without DOMParser");domParser||(domParser=new DOMParser);var ue=domParser.parseFromString('<formatted-message id="'+TEMPLATE_ID+'">'+he+"</formatted-message>","text/html").getElementById(TEMPLATE_ID);if(!ue)throw new FormatError("Malformed HTML message "+he);var ce=Object.keys(re).filter(function(fe){return!!ue.getElementsByTagName(fe).length});if(!ce.length)return restoreRichPlaceholderMessage(he,de);var pe=ce.filter(function(fe){return fe!==fe.toLowerCase()});if(pe.length)throw new FormatError("HTML tag must be lowercased but the following tags are not: "+pe.join(", "));return Array.prototype.slice.call(ue.childNodes).reduce(function(fe,ge){return fe.concat(formatHTMLElement(ge,de,re))},[])}var __assign$2=function(){return __assign$2=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign$2.apply(this,arguments)};function mergeConfig(X,W){return W?__assign$2(__assign$2(__assign$2({},X||{}),W||{}),Object.keys(X).reduce(function(J,te){return J[te]=__assign$2(__assign$2({},X[te]),W[te]||{}),J},{})):X}function mergeConfigs(X,W){return W?Object.keys(X).reduce(function(J,te){return J[te]=mergeConfig(X[te],W[te]),J},__assign$2({},X)):X}function createDefaultFormatters(X){return X===void 0&&(X={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoizeFormatConstructor(Intl.NumberFormat,X.number),getDateTimeFormat:memoizeFormatConstructor(Intl.DateTimeFormat,X.dateTime),getPluralRules:memoizeFormatConstructor(Intl.PluralRules,X.pluralRules)}}var IntlMessageFormat=function(){function X(W,J,te,re){var ne=this;if(J===void 0&&(J=X.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(oe){return formatToString(ne.ast,ne.locales,ne.formatters,ne.formats,oe,ne.message)},this.formatToParts=function(oe){return formatToParts(ne.ast,ne.locales,ne.formatters,ne.formats,oe,void 0,ne.message)},this.formatHTMLMessage=function(oe){return formatHTMLMessage(ne.ast,ne.locales,ne.formatters,ne.formats,oe,ne.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(ne.locales)[0]}},this.getAst=function(){return ne.ast},typeof W=="string"){if(this.message=W,!X.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=X.__parse(W,{normalizeHashtagInPlural:!1})}else this.ast=W;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=mergeConfigs(X.formats,te),this.locales=J,this.formatters=re&&re.formatters||createDefaultFormatters(this.formatterCache)}return X.defaultLocale=new Intl.NumberFormat().resolvedOptions().locale,X.__parse=parse$1,X.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},X}();const u$p=X=>{let W=X;if(X&&X.length==1){if(Object.prototype.toString.call(X[0])==="[object Array]")W=X[0];else if(typeof X[0]=="object"){const J=X[0];W=Object.keys(J).reduce((te,re)=>te.concat(re,J[re]),[])}}return W},F$1=X=>lensPath(String(X).split(".")),j=(X,W,J={},te=!1)=>function(re,...ne){if(!re||!W||!X||!W[X])return"";const oe=view(F$1(re),W[X]);if(!oe)return te?re:"";if(!ne||!ne.length)return oe;const de={},he=`${re}${oe}`;let ue=de[he];ue||(ue=new IntlMessageFormat(oe,X,J),de[he]=ue),ne=u$p(ne);const ce={};for(let pe=0;pe<ne.length;pe+=2)ce[ne[pe]]=ne[pe+1];return ue.format(ce)},o$H={};let e$E={};const l$m=X=>{e$E=mergeDeepRight(o$H,e$E),e$E=mergeDeepRight(e$E,X),u$q(o$J,e$E)},p$b=()=>({...e$E}),createLocaleManager=X=>W=>{const J=j(p$c(),W,"",!0);return l$m(W),Promise.resolve({translate:(te,re)=>{try{return J(`${X}.${te}`,re)}catch(ne){return console.error(ne),te}},getTranslations:()=>{const te=p$b(),re=p$c();return te[re][X]||{}},getCurrentLanguage:()=>p$c()})};let token,refreshToken;class TokenManagerImpl{constructor(){this.getUrlParams=()=>new URLSearchParams(window.location.search),this.initToken=()=>{const W=this.getUrlParams();return token=W.get("access_token")||"",refreshToken=W.get("refresh_token")||"",token},this.getToken=()=>token,this.refreshToken=async()=>{const W=await axios.post("/api/token/refresh",{token:refreshToken}),{access_token:J,refresh_token:te}=W.data;if(!J)throw new Error("Invalid refresh token response");return token=J,refreshToken=te,token}}}let tokenManager$1;const createTokenManager=()=>tokenManager$1||(tokenManager$1=new TokenManagerImpl,tokenManager$1.initToken(),tokenManager$1);class EcapEventManager{}class EcapEventManagerImpl{publish(W,J,te){const re=this.createEcapEvent(W,J,te);this.raiseEcapEvent(re)}createEcapEvent(W,J,te){return{TipusEvent:W,Accio:J,...te}}raiseEcapEvent(W){window.parent&&window.parent.postMessage(JSON.stringify(W),"*"),console.log("method",JSON.stringify(W))}}const ecapEventManager=new EcapEventManagerImpl,createEcapEventManager=()=>ecapEventManager;class PluginBusyManagerImpl{constructor(){this.busyPluginTasks=[]}addBusyPluginTask(W){this.busyPluginTasks.push(W)}removeBusyPluginTask(W){const J=this.busyPluginTasks.findIndex(te=>te.taskId===W);J>-1&&this.busyPluginTasks.splice(J,1)}isAnyPluginBusy(){return this.busyPluginTasks.length>0}clearAllBusyPlugins(){this.busyPluginTasks=[]}getBusyPluginTasks(){return this.busyPluginTasks}}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
|
|
128
|
+
* @license React
|
|
129
|
+
* react-jsx-runtime.production.js
|
|
130
|
+
*
|
|
131
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the MIT license found in the
|
|
134
|
+
* LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function jsxProd(X,W,J){var te=null;if(J!==void 0&&(te=""+J),W.key!==void 0&&(te=""+W.key),"key"in W){J={};for(var re in W)re!=="key"&&(J[re]=W[re])}else J=W;return W=J.ref,{$$typeof:REACT_ELEMENT_TYPE,type:X,key:te,ref:W!==void 0?W:null,props:J}}reactJsxRuntime_production.Fragment=REACT_FRAGMENT_TYPE,reactJsxRuntime_production.jsx=jsxProd,reactJsxRuntime_production.jsxs=jsxProd,jsxRuntime.exports=reactJsxRuntime_production;var jsxRuntimeExports=jsxRuntime.exports;class PrimariaInteractionService{}const ConfirmationMessage=({data:X})=>jsxRuntimeExports.jsx("div",{children:X}),defaultOptions$1={title:"Confirmació",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:"Acceptar",cancelButtonText:"Cancel·lar",showCloseButton:!0,fullWidth:!1,fullCustomization:!1};class ParimariaInteractionServiceImpl extends PrimariaInteractionService{confirm(W,J,te){const re={...defaultOptions$1,...te||{}};return new Promise(ne=>{const oe=document.createElement("div"),de=oe.attachShadow({mode:"open"});document.body.appendChild(oe);const he=()=>{const[pe,fe]=c$s.useState(!0),[ge,me]=c$s.useState(),[ve,be]=c$s.useState(!0),ye=c$s.useRef(null),we=c$s.useRef(null),Se=typeof J=="function"&&J.prototype instanceof HTMLElement;c$s.useEffect(()=>{const qe=ye.current,Ae=De=>{De.preventDefault(),_e(!1)};return qe==null||qe.addEventListener("onModalClosed",Ae),()=>{document.body.removeChild(oe)}},[]),c$s.useEffect(()=>{if(Se&&we.current){const qe=we.current,Ae=new J;return Ae.data=W,Ae.setResult=me,Ae.setIsValid=be,Ae.confirm=()=>ve&&_e(!0),Ae.confirmResult=De=>ve&&Ce(De),Ae.cancel=()=>_e(!1),qe.appendChild(Ae),()=>{qe.removeChild(Ae)}}},[J,W]);const _e=qe=>{Le(ge,qe)},Ce=qe=>{Le(qe,!0)},Le=(qe,Ae)=>{fe(!1),setTimeout(()=>{ne({result:Ae?qe:void 0,confirmed:Ae}),document.body.removeChild(oe)},300)},Pe=()=>re.state==="error"?"error":re.state==="success"?"success":re.state==="info"?"primary":re.state==="alert"?"warning":"primary",Ie=()=>re.state?"alternative-dark":"secondary",ze=()=>Se?jsxRuntimeExports.jsx("div",{ref:we}):jsxRuntimeExports.jsx(J,{data:W,setResult:me,setIsValid:be,confirm:()=>ve&&_e(!0),cancel:()=>_e(!1)});return re.fullCustomization?jsxRuntimeExports.jsx("div",{className:"modal",hidden:!pe,children:jsxRuntimeExports.jsx("div",{className:"dialog",children:ze()})}):jsxRuntimeExports.jsxs("dss-modal",{modalTitle:re.title,open:pe,fullWidth:re.fullWidth,ref:ye,hideCloseIcon:!re.showCloseButton,modalStyle:"padding:0px;",children:[jsxRuntimeExports.jsx("div",{slot:"body",children:ze()}),jsxRuntimeExports.jsxs("div",{className:"dss-modal-footer",slot:"footer",hidden:!re.showCancelButton&&!re.showConfirmButton,children:[re.showCancelButton&&jsxRuntimeExports.jsx("dss-button",{label:re.cancelButtonText,onClick:()=>_e(!1),size:"md",variant:Ie()}),re.showConfirmButton&&jsxRuntimeExports.jsx("dss-button",{onClick:()=>ve&&_e(!0),label:re.confirmButtonText,disabled:!ve,size:"md",variant:Pe()})]})]})},ue=document.createElement("style");ue.textContent=`
|
|
136
|
+
.modal {
|
|
137
|
+
font-family: "Open Sans";
|
|
138
|
+
display: block;
|
|
139
|
+
position: fixed;
|
|
140
|
+
z-index: 400;
|
|
141
|
+
left: 0;
|
|
142
|
+
top: 0;
|
|
143
|
+
width: 100%;
|
|
144
|
+
height: 100%;
|
|
145
|
+
background-color: rgba(0, 0, 0, 0.65);
|
|
146
|
+
|
|
147
|
+
.dialog {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
position: absolute;
|
|
151
|
+
top: 50%;
|
|
152
|
+
left: 50%;
|
|
153
|
+
transform: translate(-50%, -50%);
|
|
154
|
+
z-index: 21;
|
|
155
|
+
background: #fff;
|
|
156
|
+
border-radius: 16px;
|
|
157
|
+
width: auto;
|
|
158
|
+
height: auto;
|
|
159
|
+
max-height: 95%;
|
|
160
|
+
min-width: 400px;
|
|
161
|
+
box-shadow:
|
|
162
|
+
0px 0px 14px rgb(0 0 0 / 25%),
|
|
163
|
+
0px 1px 10px rgb(0 0 0 / 22%);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
`,de.appendChild(ue),r$P.createRoot(de).render(jsxRuntimeExports.jsx(he,{}))})}confirmMessage(W,J){return this.confirm(W,ConfirmationMessage,J)}}class PrimariaNotificationService{}class PrimariaNotificationServiceImpl extends PrimariaNotificationService{notify(W,J,te=3e3){const re=document.createElement("dss-toast");re.setAttribute("isshow","true"),re.setAttribute("state",J),re.setAttribute("position","bottom-left"),re.setAttribute("text",W),re.setAttribute("hasicon","true"),re.setAttribute("duration",te.toString()),document.body.appendChild(re),setTimeout(()=>{re.setAttribute("isshow","false"),setTimeout(()=>{re.remove()},300)},te)}info(W,J){this.notify(W,"info",J)}warning(W,J){this.notify(W,"warning",J)}error(W,J){this.notify(W,"error",J)}success(W,J){this.notify(W,"success",J)}}const broker$1=createBroker(),regionManager=x$5("primaria"),PrimariaRegionHost=y$f(regionManager),tokenManager=createTokenManager(),globalStateManager=createGlobalStateManager(broker$1),pluginBusyManager=new PluginBusyManagerImpl,interactionService=new ParimariaInteractionServiceImpl,notificationService=new PrimariaNotificationServiceImpl,primariaApiFactory=X=>({pluginInfo:X,regionManager:createRegionManagerProxy(X,regionManager,broker$1),httpClient:createHttpClient(tokenManager,broker$1),broker:broker$1,createLocaleManager:createLocaleManager(X.pluginId),globalStateManager,tokenManager,ecapEventManager:createEcapEventManager(),pluginBusyManager,interactionService,notificationService}),shellApi=primariaApiFactory({pluginId:"primaria-shell"}),styles$f=":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 .top-content{padding-top:24px;padding-bottom:24px;border-radius:8px}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap: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:4px}.main-container .sidebar #quick-actions-region-container{width:100%}.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{padding:1px;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 #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}";let t$h="";function f$h(){return t$h}function s$p(X,W){const J=f$h(),te=`${X}${J}`;customElements.define(te,W)}const e$D="*,*:before,*:after{box-sizing:border-box}*{margin:0;padding:0;font-family:var(--font-family)}ul,ol{list-style:none}",o$G={type:Boolean,converter:{fromAttribute:X=>X!==null&&X!=="false",toAttribute:X=>X?"true":null}},n$s={type:Array,converter:{fromAttribute:X=>{if(!X)return[];const W=JSON.parse(X);return Array.isArray(W)?W.map(J=>J.toString()):[W.toString()]},toAttribute:X=>JSON.stringify(X)}},i$t=':host{display:flex;align-items:center}.dss-icon,.material-symbols-rounded{font-family:var(--font-icons);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)}';/**
|
|
176
167
|
* @license
|
|
177
168
|
* Copyright 2017 Google LLC
|
|
178
169
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -361,7 +352,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
361
352
|
<slot></slot>
|
|
362
353
|
`:null}
|
|
363
354
|
</li>
|
|
364
|
-
`;var y$d=Object.defineProperty,g$i=Object.getOwnPropertyDescriptor,i$q=(X,W,J,te)=>{for(var re=te>1?void 0:te?g$i(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&y$d(W,J,re),re};let o$B=class extends h$n{constructor(){super(...arguments),this.leftIconFill=!1,this.rightIconFill=!1,this._state="primary",this._label="Label",this._leftIcon=void 0,this._rightIcon=void 0,this._actionIcon=void 0,this._actionState="primary",this._notifications=0,this._notificationsState="error",this._selected=!1,this._disabled=!1,this._hasNestedMenu=!1,this._nestedMenuPosition="top",this._first=!1,this._last=!1}static get styles(){return[r$J(e$D),r$J(o$C)]}set state(W){const J=this._state;this._state=W==="error"?W:"primary",this.requestUpdate("state",J)}get state(){return this._state}set label(W){const J=this._label;this._label=W,this.requestUpdate("label",J)}get label(){return this._label}set leftIcon(W){const J=this._leftIcon;this._leftIcon=W,this.requestUpdate("leftIcon",J)}get leftIcon(){return this._leftIcon||""}set rightIcon(W){const J=this._rightIcon;this._rightIcon=W,this.requestUpdate("rightIcon",J)}get rightIcon(){return this._rightIcon||""}set actionIcon(W){const J=this._actionIcon;this._actionIcon=W,this.requestUpdate("actionIcon",J)}get actionIcon(){return this._actionIcon||""}set actionState(W){const J=this._actionState;this._actionState=W,this.requestUpdate("actionState",J)}get actionState(){return this._actionState}set notifications(W){const J=this._notifications;this._notifications=W,this.requestUpdate("notifications",J)}get notifications(){return this._notifications}set notificationsState(W){const J=this._notificationsState;this._notificationsState=W,this.requestUpdate("notificationsState",J)}get notificationsState(){return this._notificationsState}set selected(W){const J=this._selected;this._selected=W,this.requestUpdate("selected",J)}get selected(){return this._selected}set disabled(W){const J=this._disabled;this._disabled=W,this.requestUpdate("disabled",J)}get disabled(){return this._disabled}set hasNestedMenu(W){const J=this._hasNestedMenu;this._hasNestedMenu=W,this.requestUpdate("hasNestedMenu",J)}get hasNestedMenu(){return this._hasNestedMenu}set nestedMenuPosition(W){const J=this._nestedMenuPosition;this._nestedMenuPosition=W,this.requestUpdate("nestedMenuPosition",J)}get nestedMenuPosition(){return this._nestedMenuPosition}set first(W){const J=this._first;this._first=W,this.requestUpdate("first",J)}get first(){return this._first}set last(W){const J=this._last;this._last=W,this.requestUpdate("last",J)}get last(){return this._last}_handleItemClick(){this._hasNestedMenu?(this._selected=!0,this.requestUpdate()):(this.dispatchEvent(new CustomEvent("onClick",{bubbles:!1,composed:!1})),this.dispatchEvent(new CustomEvent("onClose",{bubbles:!0,composed:!0})))}_handleKeydown(W){const J=W.key;J==="Enter"||J==="Space"?this._handleItemClick():J==="Escape"&&this._selected&&this._unselectItem()}_handleAction(W){W.stopPropagation(),this.dispatchEvent(new CustomEvent("onAction",{detail:this._label}))}_clickOutside(){document.addEventListener("click",W=>{W.composedPath().includes(this)||this._selected&&this._unselectItem()})}_unselectItem(){this._selected=!1,this.requestUpdate()}async firstUpdated(){try{await this.updateComplete,this._clickOutside()}catch{console.error("ERROR OCURRED")}}render(){return r$E(this)}};i$q([n$v({type:String})],o$B.prototype,"state",1),i$q([n$v({type:String})],o$B.prototype,"label",1),i$q([n$v({type:String})],o$B.prototype,"leftIcon",1),i$q([n$v(o$G)],o$B.prototype,"leftIconFill",2),i$q([n$v(o$G)],o$B.prototype,"rightIconFill",2),i$q([n$v({type:String})],o$B.prototype,"rightIcon",1),i$q([n$v({type:String})],o$B.prototype,"actionIcon",1),i$q([n$v({type:String})],o$B.prototype,"actionState",1),i$q([n$v({type:Number})],o$B.prototype,"notifications",1),i$q([n$v({type:String})],o$B.prototype,"notificationsState",1),i$q([n$v(o$G)],o$B.prototype,"selected",1),i$q([n$v(o$G)],o$B.prototype,"disabled",1),i$q([n$v(o$G)],o$B.prototype,"hasNestedMenu",1),i$q([n$v({type:String})],o$B.prototype,"nestedMenuPosition",1),i$q([n$v(o$G)],o$B.prototype,"first",1),i$q([n$v(o$G)],o$B.prototype,"last",1);var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(X,W){return X.concat([W+"-"+start,W+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(X,W){return X.concat([W,W+"-"+start,W+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(X){return X?(X.nodeName||"").toLowerCase():null}function getWindow(X){if(X==null)return window;if(X.toString()!=="[object Window]"){var W=X.ownerDocument;return W&&W.defaultView||window}return X}function isElement(X){var W=getWindow(X).Element;return X instanceof W||X instanceof Element}function isHTMLElement(X){var W=getWindow(X).HTMLElement;return X instanceof W||X instanceof HTMLElement}function isShadowRoot(X){if(typeof ShadowRoot>"u")return!1;var W=getWindow(X).ShadowRoot;return X instanceof W||X instanceof ShadowRoot}function applyStyles(X){var W=X.state;Object.keys(W.elements).forEach(function(J){var te=W.styles[J]||{},re=W.attributes[J]||{},ne=W.elements[J];!isHTMLElement(ne)||!getNodeName(ne)||(Object.assign(ne.style,te),Object.keys(re).forEach(function(oe){var de=re[oe];de===!1?ne.removeAttribute(oe):ne.setAttribute(oe,de===!0?"":de)}))})}function effect$2(X){var W=X.state,J={popper:{position:W.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(W.elements.popper.style,J.popper),W.styles=J,W.elements.arrow&&Object.assign(W.elements.arrow.style,J.arrow),function(){Object.keys(W.elements).forEach(function(te){var re=W.elements[te],ne=W.attributes[te]||{},oe=Object.keys(W.styles.hasOwnProperty(te)?W.styles[te]:J[te]),de=oe.reduce(function(he,ue){return he[ue]="",he},{});!isHTMLElement(re)||!getNodeName(re)||(Object.assign(re.style,de),Object.keys(ne).forEach(function(he){re.removeAttribute(he)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(X){return X.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var X=navigator.userAgentData;return X!=null&&X.brands&&Array.isArray(X.brands)?X.brands.map(function(W){return W.brand+"/"+W.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(X,W,J){W===void 0&&(W=!1),J===void 0&&(J=!1);var te=X.getBoundingClientRect(),re=1,ne=1;W&&isHTMLElement(X)&&(re=X.offsetWidth>0&&round(te.width)/X.offsetWidth||1,ne=X.offsetHeight>0&&round(te.height)/X.offsetHeight||1);var oe=isElement(X)?getWindow(X):window,de=oe.visualViewport,he=!isLayoutViewport()&&J,ue=(te.left+(he&&de?de.offsetLeft:0))/re,ce=(te.top+(he&&de?de.offsetTop:0))/ne,pe=te.width/re,fe=te.height/ne;return{width:pe,height:fe,top:ce,right:ue+pe,bottom:ce+fe,left:ue,x:ue,y:ce}}function getLayoutRect(X){var W=getBoundingClientRect(X),J=X.offsetWidth,te=X.offsetHeight;return Math.abs(W.width-J)<=1&&(J=W.width),Math.abs(W.height-te)<=1&&(te=W.height),{x:X.offsetLeft,y:X.offsetTop,width:J,height:te}}function contains(X,W){var J=W.getRootNode&&W.getRootNode();if(X.contains(W))return!0;if(J&&isShadowRoot(J)){var te=W;do{if(te&&X.isSameNode(te))return!0;te=te.parentNode||te.host}while(te)}return!1}function getComputedStyle(X){return getWindow(X).getComputedStyle(X)}function isTableElement(X){return["table","td","th"].indexOf(getNodeName(X))>=0}function getDocumentElement(X){return((isElement(X)?X.ownerDocument:X.document)||window.document).documentElement}function getParentNode(X){return getNodeName(X)==="html"?X:X.assignedSlot||X.parentNode||(isShadowRoot(X)?X.host:null)||getDocumentElement(X)}function getTrueOffsetParent(X){return!isHTMLElement(X)||getComputedStyle(X).position==="fixed"?null:X.offsetParent}function getContainingBlock(X){var W=/firefox/i.test(getUAString()),J=/Trident/i.test(getUAString());if(J&&isHTMLElement(X)){var te=getComputedStyle(X);if(te.position==="fixed")return null}var re=getParentNode(X);for(isShadowRoot(re)&&(re=re.host);isHTMLElement(re)&&["html","body"].indexOf(getNodeName(re))<0;){var ne=getComputedStyle(re);if(ne.transform!=="none"||ne.perspective!=="none"||ne.contain==="paint"||["transform","perspective"].indexOf(ne.willChange)!==-1||W&&ne.willChange==="filter"||W&&ne.filter&&ne.filter!=="none")return re;re=re.parentNode}return null}function getOffsetParent(X){for(var W=getWindow(X),J=getTrueOffsetParent(X);J&&isTableElement(J)&&getComputedStyle(J).position==="static";)J=getTrueOffsetParent(J);return J&&(getNodeName(J)==="html"||getNodeName(J)==="body"&&getComputedStyle(J).position==="static")?W:J||getContainingBlock(X)||W}function getMainAxisFromPlacement(X){return["top","bottom"].indexOf(X)>=0?"x":"y"}function within(X,W,J){return max(X,min(W,J))}function withinMaxClamp(X,W,J){var te=within(X,W,J);return te>J?J:te}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(X){return Object.assign({},getFreshSideObject(),X)}function expandToHashMap(X,W){return W.reduce(function(J,te){return J[te]=X,J},{})}var toPaddingObject=function(W,J){return W=typeof W=="function"?W(Object.assign({},J.rects,{placement:J.placement})):W,mergePaddingObject(typeof W!="number"?W:expandToHashMap(W,basePlacements))};function arrow(X){var W,J=X.state,te=X.name,re=X.options,ne=J.elements.arrow,oe=J.modifiersData.popperOffsets,de=getBasePlacement(J.placement),he=getMainAxisFromPlacement(de),ue=[left,right].indexOf(de)>=0,ce=ue?"height":"width";if(!(!ne||!oe)){var pe=toPaddingObject(re.padding,J),fe=getLayoutRect(ne),ge=he==="y"?top:left,me=he==="y"?bottom:right,ve=J.rects.reference[ce]+J.rects.reference[he]-oe[he]-J.rects.popper[ce],be=oe[he]-J.rects.reference[he],ye=getOffsetParent(ne),we=ye?he==="y"?ye.clientHeight||0:ye.clientWidth||0:0,Se=ve/2-be/2,_e=pe[ge],Ce=we-fe[ce]-pe[me],Le=we/2-fe[ce]/2+Se,qe=within(_e,Le,Ce),Ie=he;J.modifiersData[te]=(W={},W[Ie]=qe,W.centerOffset=qe-Le,W)}}function effect$1(X){var W=X.state,J=X.options,te=J.element,re=te===void 0?"[data-popper-arrow]":te;re!=null&&(typeof re=="string"&&(re=W.elements.popper.querySelector(re),!re)||contains(W.elements.popper,re)&&(W.elements.arrow=re))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(X){return X.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(X,W){var J=X.x,te=X.y,re=W.devicePixelRatio||1;return{x:round(J*re)/re||0,y:round(te*re)/re||0}}function mapToStyles(X){var W,J=X.popper,te=X.popperRect,re=X.placement,ne=X.variation,oe=X.offsets,de=X.position,he=X.gpuAcceleration,ue=X.adaptive,ce=X.roundOffsets,pe=X.isFixed,fe=oe.x,ge=fe===void 0?0:fe,me=oe.y,ve=me===void 0?0:me,be=typeof ce=="function"?ce({x:ge,y:ve}):{x:ge,y:ve};ge=be.x,ve=be.y;var ye=oe.hasOwnProperty("x"),we=oe.hasOwnProperty("y"),Se=left,_e=top,Ce=window;if(ue){var Le=getOffsetParent(J),qe="clientHeight",Ie="clientWidth";if(Le===getWindow(J)&&(Le=getDocumentElement(J),getComputedStyle(Le).position!=="static"&&de==="absolute"&&(qe="scrollHeight",Ie="scrollWidth")),Le=Le,re===top||(re===left||re===right)&&ne===end){_e=bottom;var ze=pe&&Le===Ce&&Ce.visualViewport?Ce.visualViewport.height:Le[qe];ve-=ze-te.height,ve*=he?1:-1}if(re===left||(re===top||re===bottom)&&ne===end){Se=right;var Pe=pe&&Le===Ce&&Ce.visualViewport?Ce.visualViewport.width:Le[Ie];ge-=Pe-te.width,ge*=he?1:-1}}var Ae=Object.assign({position:de},ue&&unsetSides),De=ce===!0?roundOffsetsByDPR({x:ge,y:ve},getWindow(J)):{x:ge,y:ve};if(ge=De.x,ve=De.y,he){var Me;return Object.assign({},Ae,(Me={},Me[_e]=we?"0":"",Me[Se]=ye?"0":"",Me.transform=(Ce.devicePixelRatio||1)<=1?"translate("+ge+"px, "+ve+"px)":"translate3d("+ge+"px, "+ve+"px, 0)",Me))}return Object.assign({},Ae,(W={},W[_e]=we?ve+"px":"",W[Se]=ye?ge+"px":"",W.transform="",W))}function computeStyles(X){var W=X.state,J=X.options,te=J.gpuAcceleration,re=te===void 0?!0:te,ne=J.adaptive,oe=ne===void 0?!0:ne,de=J.roundOffsets,he=de===void 0?!0:de,ue={placement:getBasePlacement(W.placement),variation:getVariation(W.placement),popper:W.elements.popper,popperRect:W.rects.popper,gpuAcceleration:re,isFixed:W.options.strategy==="fixed"};W.modifiersData.popperOffsets!=null&&(W.styles.popper=Object.assign({},W.styles.popper,mapToStyles(Object.assign({},ue,{offsets:W.modifiersData.popperOffsets,position:W.options.strategy,adaptive:oe,roundOffsets:he})))),W.modifiersData.arrow!=null&&(W.styles.arrow=Object.assign({},W.styles.arrow,mapToStyles(Object.assign({},ue,{offsets:W.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:he})))),W.attributes.popper=Object.assign({},W.attributes.popper,{"data-popper-placement":W.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(X){var W=X.state,J=X.instance,te=X.options,re=te.scroll,ne=re===void 0?!0:re,oe=te.resize,de=oe===void 0?!0:oe,he=getWindow(W.elements.popper),ue=[].concat(W.scrollParents.reference,W.scrollParents.popper);return ne&&ue.forEach(function(ce){ce.addEventListener("scroll",J.update,passive)}),de&&he.addEventListener("resize",J.update,passive),function(){ne&&ue.forEach(function(ce){ce.removeEventListener("scroll",J.update,passive)}),de&&he.removeEventListener("resize",J.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(X){return X.replace(/left|right|bottom|top/g,function(W){return hash$1[W]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(X){return X.replace(/start|end/g,function(W){return hash[W]})}function getWindowScroll(X){var W=getWindow(X),J=W.pageXOffset,te=W.pageYOffset;return{scrollLeft:J,scrollTop:te}}function getWindowScrollBarX(X){return getBoundingClientRect(getDocumentElement(X)).left+getWindowScroll(X).scrollLeft}function getViewportRect(X,W){var J=getWindow(X),te=getDocumentElement(X),re=J.visualViewport,ne=te.clientWidth,oe=te.clientHeight,de=0,he=0;if(re){ne=re.width,oe=re.height;var ue=isLayoutViewport();(ue||!ue&&W==="fixed")&&(de=re.offsetLeft,he=re.offsetTop)}return{width:ne,height:oe,x:de+getWindowScrollBarX(X),y:he}}function getDocumentRect(X){var W,J=getDocumentElement(X),te=getWindowScroll(X),re=(W=X.ownerDocument)==null?void 0:W.body,ne=max(J.scrollWidth,J.clientWidth,re?re.scrollWidth:0,re?re.clientWidth:0),oe=max(J.scrollHeight,J.clientHeight,re?re.scrollHeight:0,re?re.clientHeight:0),de=-te.scrollLeft+getWindowScrollBarX(X),he=-te.scrollTop;return getComputedStyle(re||J).direction==="rtl"&&(de+=max(J.clientWidth,re?re.clientWidth:0)-ne),{width:ne,height:oe,x:de,y:he}}function isScrollParent(X){var W=getComputedStyle(X),J=W.overflow,te=W.overflowX,re=W.overflowY;return/auto|scroll|overlay|hidden/.test(J+re+te)}function getScrollParent(X){return["html","body","#document"].indexOf(getNodeName(X))>=0?X.ownerDocument.body:isHTMLElement(X)&&isScrollParent(X)?X:getScrollParent(getParentNode(X))}function listScrollParents(X,W){var J;W===void 0&&(W=[]);var te=getScrollParent(X),re=te===((J=X.ownerDocument)==null?void 0:J.body),ne=getWindow(te),oe=re?[ne].concat(ne.visualViewport||[],isScrollParent(te)?te:[]):te,de=W.concat(oe);return re?de:de.concat(listScrollParents(getParentNode(oe)))}function rectToClientRect(X){return Object.assign({},X,{left:X.x,top:X.y,right:X.x+X.width,bottom:X.y+X.height})}function getInnerBoundingClientRect(X,W){var J=getBoundingClientRect(X,!1,W==="fixed");return J.top=J.top+X.clientTop,J.left=J.left+X.clientLeft,J.bottom=J.top+X.clientHeight,J.right=J.left+X.clientWidth,J.width=X.clientWidth,J.height=X.clientHeight,J.x=J.left,J.y=J.top,J}function getClientRectFromMixedType(X,W,J){return W===viewport?rectToClientRect(getViewportRect(X,J)):isElement(W)?getInnerBoundingClientRect(W,J):rectToClientRect(getDocumentRect(getDocumentElement(X)))}function getClippingParents(X){var W=listScrollParents(getParentNode(X)),J=["absolute","fixed"].indexOf(getComputedStyle(X).position)>=0,te=J&&isHTMLElement(X)?getOffsetParent(X):X;return isElement(te)?W.filter(function(re){return isElement(re)&&contains(re,te)&&getNodeName(re)!=="body"}):[]}function getClippingRect(X,W,J,te){var re=W==="clippingParents"?getClippingParents(X):[].concat(W),ne=[].concat(re,[J]),oe=ne[0],de=ne.reduce(function(he,ue){var ce=getClientRectFromMixedType(X,ue,te);return he.top=max(ce.top,he.top),he.right=min(ce.right,he.right),he.bottom=min(ce.bottom,he.bottom),he.left=max(ce.left,he.left),he},getClientRectFromMixedType(X,oe,te));return de.width=de.right-de.left,de.height=de.bottom-de.top,de.x=de.left,de.y=de.top,de}function computeOffsets(X){var W=X.reference,J=X.element,te=X.placement,re=te?getBasePlacement(te):null,ne=te?getVariation(te):null,oe=W.x+W.width/2-J.width/2,de=W.y+W.height/2-J.height/2,he;switch(re){case top:he={x:oe,y:W.y-J.height};break;case bottom:he={x:oe,y:W.y+W.height};break;case right:he={x:W.x+W.width,y:de};break;case left:he={x:W.x-J.width,y:de};break;default:he={x:W.x,y:W.y}}var ue=re?getMainAxisFromPlacement(re):null;if(ue!=null){var ce=ue==="y"?"height":"width";switch(ne){case start:he[ue]=he[ue]-(W[ce]/2-J[ce]/2);break;case end:he[ue]=he[ue]+(W[ce]/2-J[ce]/2);break}}return he}function detectOverflow(X,W){W===void 0&&(W={});var J=W,te=J.placement,re=te===void 0?X.placement:te,ne=J.strategy,oe=ne===void 0?X.strategy:ne,de=J.boundary,he=de===void 0?clippingParents:de,ue=J.rootBoundary,ce=ue===void 0?viewport:ue,pe=J.elementContext,fe=pe===void 0?popper:pe,ge=J.altBoundary,me=ge===void 0?!1:ge,ve=J.padding,be=ve===void 0?0:ve,ye=mergePaddingObject(typeof be!="number"?be:expandToHashMap(be,basePlacements)),we=fe===popper?reference:popper,Se=X.rects.popper,_e=X.elements[me?we:fe],Ce=getClippingRect(isElement(_e)?_e:_e.contextElement||getDocumentElement(X.elements.popper),he,ce,oe),Le=getBoundingClientRect(X.elements.reference),qe=computeOffsets({reference:Le,element:Se,strategy:"absolute",placement:re}),Ie=rectToClientRect(Object.assign({},Se,qe)),ze=fe===popper?Ie:Le,Pe={top:Ce.top-ze.top+ye.top,bottom:ze.bottom-Ce.bottom+ye.bottom,left:Ce.left-ze.left+ye.left,right:ze.right-Ce.right+ye.right},Ae=X.modifiersData.offset;if(fe===popper&&Ae){var De=Ae[re];Object.keys(Pe).forEach(function(Me){var Be=[right,bottom].indexOf(Me)>=0?1:-1,Ve=[top,bottom].indexOf(Me)>=0?"y":"x";Pe[Me]+=De[Ve]*Be})}return Pe}function computeAutoPlacement(X,W){W===void 0&&(W={});var J=W,te=J.placement,re=J.boundary,ne=J.rootBoundary,oe=J.padding,de=J.flipVariations,he=J.allowedAutoPlacements,ue=he===void 0?placements:he,ce=getVariation(te),pe=ce?de?variationPlacements:variationPlacements.filter(function(me){return getVariation(me)===ce}):basePlacements,fe=pe.filter(function(me){return ue.indexOf(me)>=0});fe.length===0&&(fe=pe);var ge=fe.reduce(function(me,ve){return me[ve]=detectOverflow(X,{placement:ve,boundary:re,rootBoundary:ne,padding:oe})[getBasePlacement(ve)],me},{});return Object.keys(ge).sort(function(me,ve){return ge[me]-ge[ve]})}function getExpandedFallbackPlacements(X){if(getBasePlacement(X)===auto)return[];var W=getOppositePlacement(X);return[getOppositeVariationPlacement(X),W,getOppositeVariationPlacement(W)]}function flip(X){var W=X.state,J=X.options,te=X.name;if(!W.modifiersData[te]._skip){for(var re=J.mainAxis,ne=re===void 0?!0:re,oe=J.altAxis,de=oe===void 0?!0:oe,he=J.fallbackPlacements,ue=J.padding,ce=J.boundary,pe=J.rootBoundary,fe=J.altBoundary,ge=J.flipVariations,me=ge===void 0?!0:ge,ve=J.allowedAutoPlacements,be=W.options.placement,ye=getBasePlacement(be),we=ye===be,Se=he||(we||!me?[getOppositePlacement(be)]:getExpandedFallbackPlacements(be)),_e=[be].concat(Se).reduce(function(Qe,Ze){return Qe.concat(getBasePlacement(Ze)===auto?computeAutoPlacement(W,{placement:Ze,boundary:ce,rootBoundary:pe,padding:ue,flipVariations:me,allowedAutoPlacements:ve}):Ze)},[]),Ce=W.rects.reference,Le=W.rects.popper,qe=new Map,Ie=!0,ze=_e[0],Pe=0;Pe<_e.length;Pe++){var Ae=_e[Pe],De=getBasePlacement(Ae),Me=getVariation(Ae)===start,Be=[top,bottom].indexOf(De)>=0,Ve=Be?"width":"height",Ye=detectOverflow(W,{placement:Ae,boundary:ce,rootBoundary:pe,altBoundary:fe,padding:ue}),Je=Be?Me?right:left:Me?bottom:top;Ce[Ve]>Le[Ve]&&(Je=getOppositePlacement(Je));var vt=getOppositePlacement(Je),Xe=[];if(ne&&Xe.push(Ye[De]<=0),de&&Xe.push(Ye[Je]<=0,Ye[vt]<=0),Xe.every(function(Qe){return Qe})){ze=Ae,Ie=!1;break}qe.set(Ae,Xe)}if(Ie)for(var Ge=me?3:1,Ne=function(Ze){var je=_e.find(function(Ke){var it=qe.get(Ke);if(it)return it.slice(0,Ze).every(function(nt){return nt})});if(je)return ze=je,"break"},Ue=Ge;Ue>0;Ue--){var We=Ne(Ue);if(We==="break")break}W.placement!==ze&&(W.modifiersData[te]._skip=!0,W.placement=ze,W.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(X,W,J){return J===void 0&&(J={x:0,y:0}),{top:X.top-W.height-J.y,right:X.right-W.width+J.x,bottom:X.bottom-W.height+J.y,left:X.left-W.width-J.x}}function isAnySideFullyClipped(X){return[top,right,bottom,left].some(function(W){return X[W]>=0})}function hide(X){var W=X.state,J=X.name,te=W.rects.reference,re=W.rects.popper,ne=W.modifiersData.preventOverflow,oe=detectOverflow(W,{elementContext:"reference"}),de=detectOverflow(W,{altBoundary:!0}),he=getSideOffsets(oe,te),ue=getSideOffsets(de,re,ne),ce=isAnySideFullyClipped(he),pe=isAnySideFullyClipped(ue);W.modifiersData[J]={referenceClippingOffsets:he,popperEscapeOffsets:ue,isReferenceHidden:ce,hasPopperEscaped:pe},W.attributes.popper=Object.assign({},W.attributes.popper,{"data-popper-reference-hidden":ce,"data-popper-escaped":pe})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(X,W,J){var te=getBasePlacement(X),re=[left,top].indexOf(te)>=0?-1:1,ne=typeof J=="function"?J(Object.assign({},W,{placement:X})):J,oe=ne[0],de=ne[1];return oe=oe||0,de=(de||0)*re,[left,right].indexOf(te)>=0?{x:de,y:oe}:{x:oe,y:de}}function offset(X){var W=X.state,J=X.options,te=X.name,re=J.offset,ne=re===void 0?[0,0]:re,oe=placements.reduce(function(ce,pe){return ce[pe]=distanceAndSkiddingToXY(pe,W.rects,ne),ce},{}),de=oe[W.placement],he=de.x,ue=de.y;W.modifiersData.popperOffsets!=null&&(W.modifiersData.popperOffsets.x+=he,W.modifiersData.popperOffsets.y+=ue),W.modifiersData[te]=oe}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(X){var W=X.state,J=X.name;W.modifiersData[J]=computeOffsets({reference:W.rects.reference,element:W.rects.popper,strategy:"absolute",placement:W.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(X){return X==="x"?"y":"x"}function preventOverflow(X){var W=X.state,J=X.options,te=X.name,re=J.mainAxis,ne=re===void 0?!0:re,oe=J.altAxis,de=oe===void 0?!1:oe,he=J.boundary,ue=J.rootBoundary,ce=J.altBoundary,pe=J.padding,fe=J.tether,ge=fe===void 0?!0:fe,me=J.tetherOffset,ve=me===void 0?0:me,be=detectOverflow(W,{boundary:he,rootBoundary:ue,padding:pe,altBoundary:ce}),ye=getBasePlacement(W.placement),we=getVariation(W.placement),Se=!we,_e=getMainAxisFromPlacement(ye),Ce=getAltAxis(_e),Le=W.modifiersData.popperOffsets,qe=W.rects.reference,Ie=W.rects.popper,ze=typeof ve=="function"?ve(Object.assign({},W.rects,{placement:W.placement})):ve,Pe=typeof ze=="number"?{mainAxis:ze,altAxis:ze}:Object.assign({mainAxis:0,altAxis:0},ze),Ae=W.modifiersData.offset?W.modifiersData.offset[W.placement]:null,De={x:0,y:0};if(Le){if(ne){var Me,Be=_e==="y"?top:left,Ve=_e==="y"?bottom:right,Ye=_e==="y"?"height":"width",Je=Le[_e],vt=Je+be[Be],Xe=Je-be[Ve],Ge=ge?-Ie[Ye]/2:0,Ne=we===start?qe[Ye]:Ie[Ye],Ue=we===start?-Ie[Ye]:-qe[Ye],We=W.elements.arrow,Qe=ge&&We?getLayoutRect(We):{width:0,height:0},Ze=W.modifiersData["arrow#persistent"]?W.modifiersData["arrow#persistent"].padding:getFreshSideObject(),je=Ze[Be],Ke=Ze[Ve],it=within(0,qe[Ye],Qe[Ye]),nt=Se?qe[Ye]/2-Ge-it-je-Pe.mainAxis:Ne-it-je-Pe.mainAxis,bt=Se?-qe[Ye]/2+Ge+it+Ke+Pe.mainAxis:Ue+it+Ke+Pe.mainAxis,Et=W.elements.arrow&&getOffsetParent(W.elements.arrow),Dt=Et?_e==="y"?Et.clientTop||0:Et.clientLeft||0:0,Lt=(Me=Ae==null?void 0:Ae[_e])!=null?Me:0,Bt=Je+nt-Lt-Dt,jt=Je+bt-Lt,dr=within(ge?min(vt,Bt):vt,Je,ge?max(Xe,jt):Xe);Le[_e]=dr,De[_e]=dr-Je}if(de){var rr,gt=_e==="x"?top:left,mt=_e==="x"?bottom:right,xt=Le[Ce],St=Ce==="y"?"height":"width",$t=xt+be[gt],Ft=xt-be[mt],Nt=[top,left].indexOf(ye)!==-1,zt=(rr=Ae==null?void 0:Ae[Ce])!=null?rr:0,or=Nt?$t:xt-qe[St]-Ie[St]-zt+Pe.altAxis,pr=Nt?xt+qe[St]+Ie[St]-zt-Pe.altAxis:Ft,Zt=ge&&Nt?withinMaxClamp(or,xt,pr):within(ge?or:$t,xt,ge?pr:Ft);Le[Ce]=Zt,De[Ce]=Zt-xt}W.modifiersData[te]=De}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(X){return{scrollLeft:X.scrollLeft,scrollTop:X.scrollTop}}function getNodeScroll(X){return X===getWindow(X)||!isHTMLElement(X)?getWindowScroll(X):getHTMLElementScroll(X)}function isElementScaled(X){var W=X.getBoundingClientRect(),J=round(W.width)/X.offsetWidth||1,te=round(W.height)/X.offsetHeight||1;return J!==1||te!==1}function getCompositeRect(X,W,J){J===void 0&&(J=!1);var te=isHTMLElement(W),re=isHTMLElement(W)&&isElementScaled(W),ne=getDocumentElement(W),oe=getBoundingClientRect(X,re,J),de={scrollLeft:0,scrollTop:0},he={x:0,y:0};return(te||!te&&!J)&&((getNodeName(W)!=="body"||isScrollParent(ne))&&(de=getNodeScroll(W)),isHTMLElement(W)?(he=getBoundingClientRect(W,!0),he.x+=W.clientLeft,he.y+=W.clientTop):ne&&(he.x=getWindowScrollBarX(ne))),{x:oe.left+de.scrollLeft-he.x,y:oe.top+de.scrollTop-he.y,width:oe.width,height:oe.height}}function order(X){var W=new Map,J=new Set,te=[];X.forEach(function(ne){W.set(ne.name,ne)});function re(ne){J.add(ne.name);var oe=[].concat(ne.requires||[],ne.requiresIfExists||[]);oe.forEach(function(de){if(!J.has(de)){var he=W.get(de);he&&re(he)}}),te.push(ne)}return X.forEach(function(ne){J.has(ne.name)||re(ne)}),te}function orderModifiers(X){var W=order(X);return modifierPhases.reduce(function(J,te){return J.concat(W.filter(function(re){return re.phase===te}))},[])}function debounce(X){var W;return function(){return W||(W=new Promise(function(J){Promise.resolve().then(function(){W=void 0,J(X())})})),W}}function mergeByName(X){var W=X.reduce(function(J,te){var re=J[te.name];return J[te.name]=re?Object.assign({},re,te,{options:Object.assign({},re.options,te.options),data:Object.assign({},re.data,te.data)}):te,J},{});return Object.keys(W).map(function(J){return W[J]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var X=arguments.length,W=new Array(X),J=0;J<X;J++)W[J]=arguments[J];return!W.some(function(te){return!(te&&typeof te.getBoundingClientRect=="function")})}function popperGenerator(X){X===void 0&&(X={});var W=X,J=W.defaultModifiers,te=J===void 0?[]:J,re=W.defaultOptions,ne=re===void 0?DEFAULT_OPTIONS:re;return function(de,he,ue){ue===void 0&&(ue=ne);var ce={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,ne),modifiersData:{},elements:{reference:de,popper:he},attributes:{},styles:{}},pe=[],fe=!1,ge={state:ce,setOptions:function(ye){var we=typeof ye=="function"?ye(ce.options):ye;ve(),ce.options=Object.assign({},ne,ce.options,we),ce.scrollParents={reference:isElement(de)?listScrollParents(de):de.contextElement?listScrollParents(de.contextElement):[],popper:listScrollParents(he)};var Se=orderModifiers(mergeByName([].concat(te,ce.options.modifiers)));return ce.orderedModifiers=Se.filter(function(_e){return _e.enabled}),me(),ge.update()},forceUpdate:function(){if(!fe){var ye=ce.elements,we=ye.reference,Se=ye.popper;if(areValidElements(we,Se)){ce.rects={reference:getCompositeRect(we,getOffsetParent(Se),ce.options.strategy==="fixed"),popper:getLayoutRect(Se)},ce.reset=!1,ce.placement=ce.options.placement,ce.orderedModifiers.forEach(function(Pe){return ce.modifiersData[Pe.name]=Object.assign({},Pe.data)});for(var _e=0;_e<ce.orderedModifiers.length;_e++){if(ce.reset===!0){ce.reset=!1,_e=-1;continue}var Ce=ce.orderedModifiers[_e],Le=Ce.fn,qe=Ce.options,Ie=qe===void 0?{}:qe,ze=Ce.name;typeof Le=="function"&&(ce=Le({state:ce,options:Ie,name:ze,instance:ge})||ce)}}}},update:debounce(function(){return new Promise(function(be){ge.forceUpdate(),be(ce)})}),destroy:function(){ve(),fe=!0}};if(!areValidElements(de,he))return ge;ge.setOptions(ue).then(function(be){!fe&&ue.onFirstUpdate&&ue.onFirstUpdate(be)});function me(){ce.orderedModifiers.forEach(function(be){var ye=be.name,we=be.options,Se=we===void 0?{}:we,_e=be.effect;if(typeof _e=="function"){var Ce=_e({state:ce,name:ye,instance:ge,options:Se}),Le=function(){};pe.push(Ce||Le)}})}function ve(){pe.forEach(function(be){return be()}),pe=[]}return ge}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});const i$p=":host{display:block;width:-moz-max-content;width:max-content;opacity:0;visibility:hidden;z-index:999}:host(.visible){opacity:1;visibility:visible}.dss-action-menu{border-radius:var(--dss-radius-sm);box-shadow:0 1px 3px #0000001a,0 4px 8px 3px #0000000d;min-width:160px;width:-moz-max-content;width:max-content;max-width:280px;background-color:var(--color-white)}.dss-action-menu--full-width{width:100%}",n$r=X=>ke$1`
|
|
355
|
+
`;var y$d=Object.defineProperty,g$i=Object.getOwnPropertyDescriptor,i$q=(X,W,J,te)=>{for(var re=te>1?void 0:te?g$i(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&y$d(W,J,re),re};let o$B=class extends h$n{constructor(){super(...arguments),this.leftIconFill=!1,this.rightIconFill=!1,this._state="primary",this._label="Label",this._leftIcon=void 0,this._rightIcon=void 0,this._actionIcon=void 0,this._actionState="primary",this._notifications=0,this._notificationsState="error",this._selected=!1,this._disabled=!1,this._hasNestedMenu=!1,this._nestedMenuPosition="top",this._first=!1,this._last=!1}static get styles(){return[r$J(e$D),r$J(o$C)]}set state(W){const J=this._state;this._state=W==="error"?W:"primary",this.requestUpdate("state",J)}get state(){return this._state}set label(W){const J=this._label;this._label=W,this.requestUpdate("label",J)}get label(){return this._label}set leftIcon(W){const J=this._leftIcon;this._leftIcon=W,this.requestUpdate("leftIcon",J)}get leftIcon(){return this._leftIcon||""}set rightIcon(W){const J=this._rightIcon;this._rightIcon=W,this.requestUpdate("rightIcon",J)}get rightIcon(){return this._rightIcon||""}set actionIcon(W){const J=this._actionIcon;this._actionIcon=W,this.requestUpdate("actionIcon",J)}get actionIcon(){return this._actionIcon||""}set actionState(W){const J=this._actionState;this._actionState=W,this.requestUpdate("actionState",J)}get actionState(){return this._actionState}set notifications(W){const J=this._notifications;this._notifications=W,this.requestUpdate("notifications",J)}get notifications(){return this._notifications}set notificationsState(W){const J=this._notificationsState;this._notificationsState=W,this.requestUpdate("notificationsState",J)}get notificationsState(){return this._notificationsState}set selected(W){const J=this._selected;this._selected=W,this.requestUpdate("selected",J)}get selected(){return this._selected}set disabled(W){const J=this._disabled;this._disabled=W,this.requestUpdate("disabled",J)}get disabled(){return this._disabled}set hasNestedMenu(W){const J=this._hasNestedMenu;this._hasNestedMenu=W,this.requestUpdate("hasNestedMenu",J)}get hasNestedMenu(){return this._hasNestedMenu}set nestedMenuPosition(W){const J=this._nestedMenuPosition;this._nestedMenuPosition=W,this.requestUpdate("nestedMenuPosition",J)}get nestedMenuPosition(){return this._nestedMenuPosition}set first(W){const J=this._first;this._first=W,this.requestUpdate("first",J)}get first(){return this._first}set last(W){const J=this._last;this._last=W,this.requestUpdate("last",J)}get last(){return this._last}_handleItemClick(){this._hasNestedMenu?(this._selected=!0,this.requestUpdate()):(this.dispatchEvent(new CustomEvent("onClick",{bubbles:!1,composed:!1})),this.dispatchEvent(new CustomEvent("onClose",{bubbles:!0,composed:!0})))}_handleKeydown(W){const J=W.key;J==="Enter"||J==="Space"?this._handleItemClick():J==="Escape"&&this._selected&&this._unselectItem()}_handleAction(W){W.stopPropagation(),this.dispatchEvent(new CustomEvent("onAction",{detail:this._label}))}_clickOutside(){document.addEventListener("click",W=>{W.composedPath().includes(this)||this._selected&&this._unselectItem()})}_unselectItem(){this._selected=!1,this.requestUpdate()}async firstUpdated(){try{await this.updateComplete,this._clickOutside()}catch{console.error("ERROR OCURRED")}}render(){return r$E(this)}};i$q([n$v({type:String})],o$B.prototype,"state",1),i$q([n$v({type:String})],o$B.prototype,"label",1),i$q([n$v({type:String})],o$B.prototype,"leftIcon",1),i$q([n$v(o$G)],o$B.prototype,"leftIconFill",2),i$q([n$v(o$G)],o$B.prototype,"rightIconFill",2),i$q([n$v({type:String})],o$B.prototype,"rightIcon",1),i$q([n$v({type:String})],o$B.prototype,"actionIcon",1),i$q([n$v({type:String})],o$B.prototype,"actionState",1),i$q([n$v({type:Number})],o$B.prototype,"notifications",1),i$q([n$v({type:String})],o$B.prototype,"notificationsState",1),i$q([n$v(o$G)],o$B.prototype,"selected",1),i$q([n$v(o$G)],o$B.prototype,"disabled",1),i$q([n$v(o$G)],o$B.prototype,"hasNestedMenu",1),i$q([n$v({type:String})],o$B.prototype,"nestedMenuPosition",1),i$q([n$v(o$G)],o$B.prototype,"first",1),i$q([n$v(o$G)],o$B.prototype,"last",1);var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(X,W){return X.concat([W+"-"+start,W+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(X,W){return X.concat([W,W+"-"+start,W+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(X){return X?(X.nodeName||"").toLowerCase():null}function getWindow(X){if(X==null)return window;if(X.toString()!=="[object Window]"){var W=X.ownerDocument;return W&&W.defaultView||window}return X}function isElement(X){var W=getWindow(X).Element;return X instanceof W||X instanceof Element}function isHTMLElement(X){var W=getWindow(X).HTMLElement;return X instanceof W||X instanceof HTMLElement}function isShadowRoot(X){if(typeof ShadowRoot>"u")return!1;var W=getWindow(X).ShadowRoot;return X instanceof W||X instanceof ShadowRoot}function applyStyles(X){var W=X.state;Object.keys(W.elements).forEach(function(J){var te=W.styles[J]||{},re=W.attributes[J]||{},ne=W.elements[J];!isHTMLElement(ne)||!getNodeName(ne)||(Object.assign(ne.style,te),Object.keys(re).forEach(function(oe){var de=re[oe];de===!1?ne.removeAttribute(oe):ne.setAttribute(oe,de===!0?"":de)}))})}function effect$2(X){var W=X.state,J={popper:{position:W.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(W.elements.popper.style,J.popper),W.styles=J,W.elements.arrow&&Object.assign(W.elements.arrow.style,J.arrow),function(){Object.keys(W.elements).forEach(function(te){var re=W.elements[te],ne=W.attributes[te]||{},oe=Object.keys(W.styles.hasOwnProperty(te)?W.styles[te]:J[te]),de=oe.reduce(function(he,ue){return he[ue]="",he},{});!isHTMLElement(re)||!getNodeName(re)||(Object.assign(re.style,de),Object.keys(ne).forEach(function(he){re.removeAttribute(he)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(X){return X.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var X=navigator.userAgentData;return X!=null&&X.brands&&Array.isArray(X.brands)?X.brands.map(function(W){return W.brand+"/"+W.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(X,W,J){W===void 0&&(W=!1),J===void 0&&(J=!1);var te=X.getBoundingClientRect(),re=1,ne=1;W&&isHTMLElement(X)&&(re=X.offsetWidth>0&&round(te.width)/X.offsetWidth||1,ne=X.offsetHeight>0&&round(te.height)/X.offsetHeight||1);var oe=isElement(X)?getWindow(X):window,de=oe.visualViewport,he=!isLayoutViewport()&&J,ue=(te.left+(he&&de?de.offsetLeft:0))/re,ce=(te.top+(he&&de?de.offsetTop:0))/ne,pe=te.width/re,fe=te.height/ne;return{width:pe,height:fe,top:ce,right:ue+pe,bottom:ce+fe,left:ue,x:ue,y:ce}}function getLayoutRect(X){var W=getBoundingClientRect(X),J=X.offsetWidth,te=X.offsetHeight;return Math.abs(W.width-J)<=1&&(J=W.width),Math.abs(W.height-te)<=1&&(te=W.height),{x:X.offsetLeft,y:X.offsetTop,width:J,height:te}}function contains(X,W){var J=W.getRootNode&&W.getRootNode();if(X.contains(W))return!0;if(J&&isShadowRoot(J)){var te=W;do{if(te&&X.isSameNode(te))return!0;te=te.parentNode||te.host}while(te)}return!1}function getComputedStyle(X){return getWindow(X).getComputedStyle(X)}function isTableElement(X){return["table","td","th"].indexOf(getNodeName(X))>=0}function getDocumentElement(X){return((isElement(X)?X.ownerDocument:X.document)||window.document).documentElement}function getParentNode(X){return getNodeName(X)==="html"?X:X.assignedSlot||X.parentNode||(isShadowRoot(X)?X.host:null)||getDocumentElement(X)}function getTrueOffsetParent(X){return!isHTMLElement(X)||getComputedStyle(X).position==="fixed"?null:X.offsetParent}function getContainingBlock(X){var W=/firefox/i.test(getUAString()),J=/Trident/i.test(getUAString());if(J&&isHTMLElement(X)){var te=getComputedStyle(X);if(te.position==="fixed")return null}var re=getParentNode(X);for(isShadowRoot(re)&&(re=re.host);isHTMLElement(re)&&["html","body"].indexOf(getNodeName(re))<0;){var ne=getComputedStyle(re);if(ne.transform!=="none"||ne.perspective!=="none"||ne.contain==="paint"||["transform","perspective"].indexOf(ne.willChange)!==-1||W&&ne.willChange==="filter"||W&&ne.filter&&ne.filter!=="none")return re;re=re.parentNode}return null}function getOffsetParent(X){for(var W=getWindow(X),J=getTrueOffsetParent(X);J&&isTableElement(J)&&getComputedStyle(J).position==="static";)J=getTrueOffsetParent(J);return J&&(getNodeName(J)==="html"||getNodeName(J)==="body"&&getComputedStyle(J).position==="static")?W:J||getContainingBlock(X)||W}function getMainAxisFromPlacement(X){return["top","bottom"].indexOf(X)>=0?"x":"y"}function within(X,W,J){return max(X,min(W,J))}function withinMaxClamp(X,W,J){var te=within(X,W,J);return te>J?J:te}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(X){return Object.assign({},getFreshSideObject(),X)}function expandToHashMap(X,W){return W.reduce(function(J,te){return J[te]=X,J},{})}var toPaddingObject=function(W,J){return W=typeof W=="function"?W(Object.assign({},J.rects,{placement:J.placement})):W,mergePaddingObject(typeof W!="number"?W:expandToHashMap(W,basePlacements))};function arrow(X){var W,J=X.state,te=X.name,re=X.options,ne=J.elements.arrow,oe=J.modifiersData.popperOffsets,de=getBasePlacement(J.placement),he=getMainAxisFromPlacement(de),ue=[left,right].indexOf(de)>=0,ce=ue?"height":"width";if(!(!ne||!oe)){var pe=toPaddingObject(re.padding,J),fe=getLayoutRect(ne),ge=he==="y"?top:left,me=he==="y"?bottom:right,ve=J.rects.reference[ce]+J.rects.reference[he]-oe[he]-J.rects.popper[ce],be=oe[he]-J.rects.reference[he],ye=getOffsetParent(ne),we=ye?he==="y"?ye.clientHeight||0:ye.clientWidth||0:0,Se=ve/2-be/2,_e=pe[ge],Ce=we-fe[ce]-pe[me],Le=we/2-fe[ce]/2+Se,Pe=within(_e,Le,Ce),Ie=he;J.modifiersData[te]=(W={},W[Ie]=Pe,W.centerOffset=Pe-Le,W)}}function effect$1(X){var W=X.state,J=X.options,te=J.element,re=te===void 0?"[data-popper-arrow]":te;re!=null&&(typeof re=="string"&&(re=W.elements.popper.querySelector(re),!re)||contains(W.elements.popper,re)&&(W.elements.arrow=re))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(X){return X.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(X,W){var J=X.x,te=X.y,re=W.devicePixelRatio||1;return{x:round(J*re)/re||0,y:round(te*re)/re||0}}function mapToStyles(X){var W,J=X.popper,te=X.popperRect,re=X.placement,ne=X.variation,oe=X.offsets,de=X.position,he=X.gpuAcceleration,ue=X.adaptive,ce=X.roundOffsets,pe=X.isFixed,fe=oe.x,ge=fe===void 0?0:fe,me=oe.y,ve=me===void 0?0:me,be=typeof ce=="function"?ce({x:ge,y:ve}):{x:ge,y:ve};ge=be.x,ve=be.y;var ye=oe.hasOwnProperty("x"),we=oe.hasOwnProperty("y"),Se=left,_e=top,Ce=window;if(ue){var Le=getOffsetParent(J),Pe="clientHeight",Ie="clientWidth";if(Le===getWindow(J)&&(Le=getDocumentElement(J),getComputedStyle(Le).position!=="static"&&de==="absolute"&&(Pe="scrollHeight",Ie="scrollWidth")),Le=Le,re===top||(re===left||re===right)&&ne===end){_e=bottom;var ze=pe&&Le===Ce&&Ce.visualViewport?Ce.visualViewport.height:Le[Pe];ve-=ze-te.height,ve*=he?1:-1}if(re===left||(re===top||re===bottom)&&ne===end){Se=right;var qe=pe&&Le===Ce&&Ce.visualViewport?Ce.visualViewport.width:Le[Ie];ge-=qe-te.width,ge*=he?1:-1}}var Ae=Object.assign({position:de},ue&&unsetSides),De=ce===!0?roundOffsetsByDPR({x:ge,y:ve},getWindow(J)):{x:ge,y:ve};if(ge=De.x,ve=De.y,he){var Me;return Object.assign({},Ae,(Me={},Me[_e]=we?"0":"",Me[Se]=ye?"0":"",Me.transform=(Ce.devicePixelRatio||1)<=1?"translate("+ge+"px, "+ve+"px)":"translate3d("+ge+"px, "+ve+"px, 0)",Me))}return Object.assign({},Ae,(W={},W[_e]=we?ve+"px":"",W[Se]=ye?ge+"px":"",W.transform="",W))}function computeStyles(X){var W=X.state,J=X.options,te=J.gpuAcceleration,re=te===void 0?!0:te,ne=J.adaptive,oe=ne===void 0?!0:ne,de=J.roundOffsets,he=de===void 0?!0:de,ue={placement:getBasePlacement(W.placement),variation:getVariation(W.placement),popper:W.elements.popper,popperRect:W.rects.popper,gpuAcceleration:re,isFixed:W.options.strategy==="fixed"};W.modifiersData.popperOffsets!=null&&(W.styles.popper=Object.assign({},W.styles.popper,mapToStyles(Object.assign({},ue,{offsets:W.modifiersData.popperOffsets,position:W.options.strategy,adaptive:oe,roundOffsets:he})))),W.modifiersData.arrow!=null&&(W.styles.arrow=Object.assign({},W.styles.arrow,mapToStyles(Object.assign({},ue,{offsets:W.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:he})))),W.attributes.popper=Object.assign({},W.attributes.popper,{"data-popper-placement":W.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(X){var W=X.state,J=X.instance,te=X.options,re=te.scroll,ne=re===void 0?!0:re,oe=te.resize,de=oe===void 0?!0:oe,he=getWindow(W.elements.popper),ue=[].concat(W.scrollParents.reference,W.scrollParents.popper);return ne&&ue.forEach(function(ce){ce.addEventListener("scroll",J.update,passive)}),de&&he.addEventListener("resize",J.update,passive),function(){ne&&ue.forEach(function(ce){ce.removeEventListener("scroll",J.update,passive)}),de&&he.removeEventListener("resize",J.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(X){return X.replace(/left|right|bottom|top/g,function(W){return hash$1[W]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(X){return X.replace(/start|end/g,function(W){return hash[W]})}function getWindowScroll(X){var W=getWindow(X),J=W.pageXOffset,te=W.pageYOffset;return{scrollLeft:J,scrollTop:te}}function getWindowScrollBarX(X){return getBoundingClientRect(getDocumentElement(X)).left+getWindowScroll(X).scrollLeft}function getViewportRect(X,W){var J=getWindow(X),te=getDocumentElement(X),re=J.visualViewport,ne=te.clientWidth,oe=te.clientHeight,de=0,he=0;if(re){ne=re.width,oe=re.height;var ue=isLayoutViewport();(ue||!ue&&W==="fixed")&&(de=re.offsetLeft,he=re.offsetTop)}return{width:ne,height:oe,x:de+getWindowScrollBarX(X),y:he}}function getDocumentRect(X){var W,J=getDocumentElement(X),te=getWindowScroll(X),re=(W=X.ownerDocument)==null?void 0:W.body,ne=max(J.scrollWidth,J.clientWidth,re?re.scrollWidth:0,re?re.clientWidth:0),oe=max(J.scrollHeight,J.clientHeight,re?re.scrollHeight:0,re?re.clientHeight:0),de=-te.scrollLeft+getWindowScrollBarX(X),he=-te.scrollTop;return getComputedStyle(re||J).direction==="rtl"&&(de+=max(J.clientWidth,re?re.clientWidth:0)-ne),{width:ne,height:oe,x:de,y:he}}function isScrollParent(X){var W=getComputedStyle(X),J=W.overflow,te=W.overflowX,re=W.overflowY;return/auto|scroll|overlay|hidden/.test(J+re+te)}function getScrollParent(X){return["html","body","#document"].indexOf(getNodeName(X))>=0?X.ownerDocument.body:isHTMLElement(X)&&isScrollParent(X)?X:getScrollParent(getParentNode(X))}function listScrollParents(X,W){var J;W===void 0&&(W=[]);var te=getScrollParent(X),re=te===((J=X.ownerDocument)==null?void 0:J.body),ne=getWindow(te),oe=re?[ne].concat(ne.visualViewport||[],isScrollParent(te)?te:[]):te,de=W.concat(oe);return re?de:de.concat(listScrollParents(getParentNode(oe)))}function rectToClientRect(X){return Object.assign({},X,{left:X.x,top:X.y,right:X.x+X.width,bottom:X.y+X.height})}function getInnerBoundingClientRect(X,W){var J=getBoundingClientRect(X,!1,W==="fixed");return J.top=J.top+X.clientTop,J.left=J.left+X.clientLeft,J.bottom=J.top+X.clientHeight,J.right=J.left+X.clientWidth,J.width=X.clientWidth,J.height=X.clientHeight,J.x=J.left,J.y=J.top,J}function getClientRectFromMixedType(X,W,J){return W===viewport?rectToClientRect(getViewportRect(X,J)):isElement(W)?getInnerBoundingClientRect(W,J):rectToClientRect(getDocumentRect(getDocumentElement(X)))}function getClippingParents(X){var W=listScrollParents(getParentNode(X)),J=["absolute","fixed"].indexOf(getComputedStyle(X).position)>=0,te=J&&isHTMLElement(X)?getOffsetParent(X):X;return isElement(te)?W.filter(function(re){return isElement(re)&&contains(re,te)&&getNodeName(re)!=="body"}):[]}function getClippingRect(X,W,J,te){var re=W==="clippingParents"?getClippingParents(X):[].concat(W),ne=[].concat(re,[J]),oe=ne[0],de=ne.reduce(function(he,ue){var ce=getClientRectFromMixedType(X,ue,te);return he.top=max(ce.top,he.top),he.right=min(ce.right,he.right),he.bottom=min(ce.bottom,he.bottom),he.left=max(ce.left,he.left),he},getClientRectFromMixedType(X,oe,te));return de.width=de.right-de.left,de.height=de.bottom-de.top,de.x=de.left,de.y=de.top,de}function computeOffsets(X){var W=X.reference,J=X.element,te=X.placement,re=te?getBasePlacement(te):null,ne=te?getVariation(te):null,oe=W.x+W.width/2-J.width/2,de=W.y+W.height/2-J.height/2,he;switch(re){case top:he={x:oe,y:W.y-J.height};break;case bottom:he={x:oe,y:W.y+W.height};break;case right:he={x:W.x+W.width,y:de};break;case left:he={x:W.x-J.width,y:de};break;default:he={x:W.x,y:W.y}}var ue=re?getMainAxisFromPlacement(re):null;if(ue!=null){var ce=ue==="y"?"height":"width";switch(ne){case start:he[ue]=he[ue]-(W[ce]/2-J[ce]/2);break;case end:he[ue]=he[ue]+(W[ce]/2-J[ce]/2);break}}return he}function detectOverflow(X,W){W===void 0&&(W={});var J=W,te=J.placement,re=te===void 0?X.placement:te,ne=J.strategy,oe=ne===void 0?X.strategy:ne,de=J.boundary,he=de===void 0?clippingParents:de,ue=J.rootBoundary,ce=ue===void 0?viewport:ue,pe=J.elementContext,fe=pe===void 0?popper:pe,ge=J.altBoundary,me=ge===void 0?!1:ge,ve=J.padding,be=ve===void 0?0:ve,ye=mergePaddingObject(typeof be!="number"?be:expandToHashMap(be,basePlacements)),we=fe===popper?reference:popper,Se=X.rects.popper,_e=X.elements[me?we:fe],Ce=getClippingRect(isElement(_e)?_e:_e.contextElement||getDocumentElement(X.elements.popper),he,ce,oe),Le=getBoundingClientRect(X.elements.reference),Pe=computeOffsets({reference:Le,element:Se,strategy:"absolute",placement:re}),Ie=rectToClientRect(Object.assign({},Se,Pe)),ze=fe===popper?Ie:Le,qe={top:Ce.top-ze.top+ye.top,bottom:ze.bottom-Ce.bottom+ye.bottom,left:Ce.left-ze.left+ye.left,right:ze.right-Ce.right+ye.right},Ae=X.modifiersData.offset;if(fe===popper&&Ae){var De=Ae[re];Object.keys(qe).forEach(function(Me){var Be=[right,bottom].indexOf(Me)>=0?1:-1,Ve=[top,bottom].indexOf(Me)>=0?"y":"x";qe[Me]+=De[Ve]*Be})}return qe}function computeAutoPlacement(X,W){W===void 0&&(W={});var J=W,te=J.placement,re=J.boundary,ne=J.rootBoundary,oe=J.padding,de=J.flipVariations,he=J.allowedAutoPlacements,ue=he===void 0?placements:he,ce=getVariation(te),pe=ce?de?variationPlacements:variationPlacements.filter(function(me){return getVariation(me)===ce}):basePlacements,fe=pe.filter(function(me){return ue.indexOf(me)>=0});fe.length===0&&(fe=pe);var ge=fe.reduce(function(me,ve){return me[ve]=detectOverflow(X,{placement:ve,boundary:re,rootBoundary:ne,padding:oe})[getBasePlacement(ve)],me},{});return Object.keys(ge).sort(function(me,ve){return ge[me]-ge[ve]})}function getExpandedFallbackPlacements(X){if(getBasePlacement(X)===auto)return[];var W=getOppositePlacement(X);return[getOppositeVariationPlacement(X),W,getOppositeVariationPlacement(W)]}function flip(X){var W=X.state,J=X.options,te=X.name;if(!W.modifiersData[te]._skip){for(var re=J.mainAxis,ne=re===void 0?!0:re,oe=J.altAxis,de=oe===void 0?!0:oe,he=J.fallbackPlacements,ue=J.padding,ce=J.boundary,pe=J.rootBoundary,fe=J.altBoundary,ge=J.flipVariations,me=ge===void 0?!0:ge,ve=J.allowedAutoPlacements,be=W.options.placement,ye=getBasePlacement(be),we=ye===be,Se=he||(we||!me?[getOppositePlacement(be)]:getExpandedFallbackPlacements(be)),_e=[be].concat(Se).reduce(function(Qe,Ze){return Qe.concat(getBasePlacement(Ze)===auto?computeAutoPlacement(W,{placement:Ze,boundary:ce,rootBoundary:pe,padding:ue,flipVariations:me,allowedAutoPlacements:ve}):Ze)},[]),Ce=W.rects.reference,Le=W.rects.popper,Pe=new Map,Ie=!0,ze=_e[0],qe=0;qe<_e.length;qe++){var Ae=_e[qe],De=getBasePlacement(Ae),Me=getVariation(Ae)===start,Be=[top,bottom].indexOf(De)>=0,Ve=Be?"width":"height",Ye=detectOverflow(W,{placement:Ae,boundary:ce,rootBoundary:pe,altBoundary:fe,padding:ue}),Je=Be?Me?right:left:Me?bottom:top;Ce[Ve]>Le[Ve]&&(Je=getOppositePlacement(Je));var vt=getOppositePlacement(Je),Xe=[];if(ne&&Xe.push(Ye[De]<=0),de&&Xe.push(Ye[Je]<=0,Ye[vt]<=0),Xe.every(function(Qe){return Qe})){ze=Ae,Ie=!1;break}Pe.set(Ae,Xe)}if(Ie)for(var Ge=me?3:1,Ne=function(Ze){var je=_e.find(function(Ke){var it=Pe.get(Ke);if(it)return it.slice(0,Ze).every(function(nt){return nt})});if(je)return ze=je,"break"},Ue=Ge;Ue>0;Ue--){var We=Ne(Ue);if(We==="break")break}W.placement!==ze&&(W.modifiersData[te]._skip=!0,W.placement=ze,W.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(X,W,J){return J===void 0&&(J={x:0,y:0}),{top:X.top-W.height-J.y,right:X.right-W.width+J.x,bottom:X.bottom-W.height+J.y,left:X.left-W.width-J.x}}function isAnySideFullyClipped(X){return[top,right,bottom,left].some(function(W){return X[W]>=0})}function hide(X){var W=X.state,J=X.name,te=W.rects.reference,re=W.rects.popper,ne=W.modifiersData.preventOverflow,oe=detectOverflow(W,{elementContext:"reference"}),de=detectOverflow(W,{altBoundary:!0}),he=getSideOffsets(oe,te),ue=getSideOffsets(de,re,ne),ce=isAnySideFullyClipped(he),pe=isAnySideFullyClipped(ue);W.modifiersData[J]={referenceClippingOffsets:he,popperEscapeOffsets:ue,isReferenceHidden:ce,hasPopperEscaped:pe},W.attributes.popper=Object.assign({},W.attributes.popper,{"data-popper-reference-hidden":ce,"data-popper-escaped":pe})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(X,W,J){var te=getBasePlacement(X),re=[left,top].indexOf(te)>=0?-1:1,ne=typeof J=="function"?J(Object.assign({},W,{placement:X})):J,oe=ne[0],de=ne[1];return oe=oe||0,de=(de||0)*re,[left,right].indexOf(te)>=0?{x:de,y:oe}:{x:oe,y:de}}function offset(X){var W=X.state,J=X.options,te=X.name,re=J.offset,ne=re===void 0?[0,0]:re,oe=placements.reduce(function(ce,pe){return ce[pe]=distanceAndSkiddingToXY(pe,W.rects,ne),ce},{}),de=oe[W.placement],he=de.x,ue=de.y;W.modifiersData.popperOffsets!=null&&(W.modifiersData.popperOffsets.x+=he,W.modifiersData.popperOffsets.y+=ue),W.modifiersData[te]=oe}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(X){var W=X.state,J=X.name;W.modifiersData[J]=computeOffsets({reference:W.rects.reference,element:W.rects.popper,strategy:"absolute",placement:W.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(X){return X==="x"?"y":"x"}function preventOverflow(X){var W=X.state,J=X.options,te=X.name,re=J.mainAxis,ne=re===void 0?!0:re,oe=J.altAxis,de=oe===void 0?!1:oe,he=J.boundary,ue=J.rootBoundary,ce=J.altBoundary,pe=J.padding,fe=J.tether,ge=fe===void 0?!0:fe,me=J.tetherOffset,ve=me===void 0?0:me,be=detectOverflow(W,{boundary:he,rootBoundary:ue,padding:pe,altBoundary:ce}),ye=getBasePlacement(W.placement),we=getVariation(W.placement),Se=!we,_e=getMainAxisFromPlacement(ye),Ce=getAltAxis(_e),Le=W.modifiersData.popperOffsets,Pe=W.rects.reference,Ie=W.rects.popper,ze=typeof ve=="function"?ve(Object.assign({},W.rects,{placement:W.placement})):ve,qe=typeof ze=="number"?{mainAxis:ze,altAxis:ze}:Object.assign({mainAxis:0,altAxis:0},ze),Ae=W.modifiersData.offset?W.modifiersData.offset[W.placement]:null,De={x:0,y:0};if(Le){if(ne){var Me,Be=_e==="y"?top:left,Ve=_e==="y"?bottom:right,Ye=_e==="y"?"height":"width",Je=Le[_e],vt=Je+be[Be],Xe=Je-be[Ve],Ge=ge?-Ie[Ye]/2:0,Ne=we===start?Pe[Ye]:Ie[Ye],Ue=we===start?-Ie[Ye]:-Pe[Ye],We=W.elements.arrow,Qe=ge&&We?getLayoutRect(We):{width:0,height:0},Ze=W.modifiersData["arrow#persistent"]?W.modifiersData["arrow#persistent"].padding:getFreshSideObject(),je=Ze[Be],Ke=Ze[Ve],it=within(0,Pe[Ye],Qe[Ye]),nt=Se?Pe[Ye]/2-Ge-it-je-qe.mainAxis:Ne-it-je-qe.mainAxis,bt=Se?-Pe[Ye]/2+Ge+it+Ke+qe.mainAxis:Ue+it+Ke+qe.mainAxis,Ct=W.elements.arrow&&getOffsetParent(W.elements.arrow),Dt=Ct?_e==="y"?Ct.clientTop||0:Ct.clientLeft||0:0,Lt=(Me=Ae==null?void 0:Ae[_e])!=null?Me:0,Bt=Je+nt-Lt-Dt,jt=Je+bt-Lt,dr=within(ge?min(vt,Bt):vt,Je,ge?max(Xe,jt):Xe);Le[_e]=dr,De[_e]=dr-Je}if(de){var rr,gt=_e==="x"?top:left,mt=_e==="x"?bottom:right,xt=Le[Ce],St=Ce==="y"?"height":"width",$t=xt+be[gt],Ft=xt-be[mt],Nt=[top,left].indexOf(ye)!==-1,zt=(rr=Ae==null?void 0:Ae[Ce])!=null?rr:0,or=Nt?$t:xt-Pe[St]-Ie[St]-zt+qe.altAxis,pr=Nt?xt+Pe[St]+Ie[St]-zt-qe.altAxis:Ft,Zt=ge&&Nt?withinMaxClamp(or,xt,pr):within(ge?or:$t,xt,ge?pr:Ft);Le[Ce]=Zt,De[Ce]=Zt-xt}W.modifiersData[te]=De}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(X){return{scrollLeft:X.scrollLeft,scrollTop:X.scrollTop}}function getNodeScroll(X){return X===getWindow(X)||!isHTMLElement(X)?getWindowScroll(X):getHTMLElementScroll(X)}function isElementScaled(X){var W=X.getBoundingClientRect(),J=round(W.width)/X.offsetWidth||1,te=round(W.height)/X.offsetHeight||1;return J!==1||te!==1}function getCompositeRect(X,W,J){J===void 0&&(J=!1);var te=isHTMLElement(W),re=isHTMLElement(W)&&isElementScaled(W),ne=getDocumentElement(W),oe=getBoundingClientRect(X,re,J),de={scrollLeft:0,scrollTop:0},he={x:0,y:0};return(te||!te&&!J)&&((getNodeName(W)!=="body"||isScrollParent(ne))&&(de=getNodeScroll(W)),isHTMLElement(W)?(he=getBoundingClientRect(W,!0),he.x+=W.clientLeft,he.y+=W.clientTop):ne&&(he.x=getWindowScrollBarX(ne))),{x:oe.left+de.scrollLeft-he.x,y:oe.top+de.scrollTop-he.y,width:oe.width,height:oe.height}}function order(X){var W=new Map,J=new Set,te=[];X.forEach(function(ne){W.set(ne.name,ne)});function re(ne){J.add(ne.name);var oe=[].concat(ne.requires||[],ne.requiresIfExists||[]);oe.forEach(function(de){if(!J.has(de)){var he=W.get(de);he&&re(he)}}),te.push(ne)}return X.forEach(function(ne){J.has(ne.name)||re(ne)}),te}function orderModifiers(X){var W=order(X);return modifierPhases.reduce(function(J,te){return J.concat(W.filter(function(re){return re.phase===te}))},[])}function debounce(X){var W;return function(){return W||(W=new Promise(function(J){Promise.resolve().then(function(){W=void 0,J(X())})})),W}}function mergeByName(X){var W=X.reduce(function(J,te){var re=J[te.name];return J[te.name]=re?Object.assign({},re,te,{options:Object.assign({},re.options,te.options),data:Object.assign({},re.data,te.data)}):te,J},{});return Object.keys(W).map(function(J){return W[J]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var X=arguments.length,W=new Array(X),J=0;J<X;J++)W[J]=arguments[J];return!W.some(function(te){return!(te&&typeof te.getBoundingClientRect=="function")})}function popperGenerator(X){X===void 0&&(X={});var W=X,J=W.defaultModifiers,te=J===void 0?[]:J,re=W.defaultOptions,ne=re===void 0?DEFAULT_OPTIONS:re;return function(de,he,ue){ue===void 0&&(ue=ne);var ce={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,ne),modifiersData:{},elements:{reference:de,popper:he},attributes:{},styles:{}},pe=[],fe=!1,ge={state:ce,setOptions:function(ye){var we=typeof ye=="function"?ye(ce.options):ye;ve(),ce.options=Object.assign({},ne,ce.options,we),ce.scrollParents={reference:isElement(de)?listScrollParents(de):de.contextElement?listScrollParents(de.contextElement):[],popper:listScrollParents(he)};var Se=orderModifiers(mergeByName([].concat(te,ce.options.modifiers)));return ce.orderedModifiers=Se.filter(function(_e){return _e.enabled}),me(),ge.update()},forceUpdate:function(){if(!fe){var ye=ce.elements,we=ye.reference,Se=ye.popper;if(areValidElements(we,Se)){ce.rects={reference:getCompositeRect(we,getOffsetParent(Se),ce.options.strategy==="fixed"),popper:getLayoutRect(Se)},ce.reset=!1,ce.placement=ce.options.placement,ce.orderedModifiers.forEach(function(qe){return ce.modifiersData[qe.name]=Object.assign({},qe.data)});for(var _e=0;_e<ce.orderedModifiers.length;_e++){if(ce.reset===!0){ce.reset=!1,_e=-1;continue}var Ce=ce.orderedModifiers[_e],Le=Ce.fn,Pe=Ce.options,Ie=Pe===void 0?{}:Pe,ze=Ce.name;typeof Le=="function"&&(ce=Le({state:ce,options:Ie,name:ze,instance:ge})||ce)}}}},update:debounce(function(){return new Promise(function(be){ge.forceUpdate(),be(ce)})}),destroy:function(){ve(),fe=!0}};if(!areValidElements(de,he))return ge;ge.setOptions(ue).then(function(be){!fe&&ue.onFirstUpdate&&ue.onFirstUpdate(be)});function me(){ce.orderedModifiers.forEach(function(be){var ye=be.name,we=be.options,Se=we===void 0?{}:we,_e=be.effect;if(typeof _e=="function"){var Ce=_e({state:ce,name:ye,instance:ge,options:Se}),Le=function(){};pe.push(Ce||Le)}})}function ve(){pe.forEach(function(be){return be()}),pe=[]}return ge}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});const i$p=":host{display:block;width:-moz-max-content;width:max-content;opacity:0;visibility:hidden;z-index:999}:host(.visible){opacity:1;visibility:visible}.dss-action-menu{border-radius:var(--dss-radius-sm);box-shadow:0 1px 3px #0000001a,0 4px 8px 3px #0000000d;min-width:160px;width:-moz-max-content;width:max-content;max-width:280px;background-color:var(--color-white)}.dss-action-menu--full-width{width:100%}",n$r=X=>ke$1`
|
|
365
356
|
<ul
|
|
366
357
|
class=${Rt({"dss-action-menu":!0,"dss-action-menu--full-width":!!X._fullWidth})}
|
|
367
358
|
aria-label="Menu d'accions"
|
|
@@ -426,7 +417,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
426
417
|
* @license
|
|
427
418
|
* Copyright 2021 Google LLC
|
|
428
419
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
429
|
-
*/function*oo(X,W){if(X!==void 0){let J=0;for(const te of X)yield W(te,J++)}}
|
|
420
|
+
*/function*oo(X,W){if(X!==void 0){let J=0;for(const te of X)yield W(te,J++)}}/**
|
|
421
|
+
* @license
|
|
422
|
+
* Copyright 2021 Google LLC
|
|
423
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
424
|
+
*/function nn(X,W,J){return X?W(X):J==null?void 0:J(X)}const i$o=er`dss-icon${tr(f$h())}`,u$n=X=>ke`
|
|
430
425
|
<div class="dss-breadcrumb" role="navigation" aria-label="Ruta de pàgina">
|
|
431
426
|
${oo(X.items,(W,J)=>ke`
|
|
432
427
|
<a
|
|
@@ -466,7 +461,7 @@ ${!X.onlyIcon&&X.variant==="link"?ke`
|
|
|
466
461
|
`:null}
|
|
467
462
|
|
|
468
463
|
</button>
|
|
469
|
-
`;var d$h=Object.defineProperty,_$d=Object.getOwnPropertyDescriptor,e$y=(X,W,J,te)=>{for(var re=te>1?void 0:te?_$d(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&d$h(W,J,re),re};let i$n=class extends h$n{constructor(){super(...arguments),this.type="button",this.variant="primary",this.label="",this.icon=void 0,this.iconPosition="left",this.disabled=!1,this.hidden=!1,this.onlyIcon=!1,this.fullWidth=!1,this._size="md",this._iconSize="sm"}static get styles(){return[r$J(e$D),r$J(o$y)]}set size(W){const J=this._size;this._size=W,W==="lg"&&(this._iconSize="md"),this.requestUpdate("size",J)}get size(){return this._size}_handleClick(){this.dispatchEvent(new CustomEvent("onClick",{bubbles:!0,composed:!0}))}render(){return o$x(this)}};e$y([n$v({type:String})],i$n.prototype,"type",2),e$y([n$v({type:String})],i$n.prototype,"variant",2),e$y([n$v({type:String})],i$n.prototype,"label",2),e$y([n$v({type:String})],i$n.prototype,"icon",2),e$y([n$v({type:String})],i$n.prototype,"iconPosition",2),e$y([n$v(o$G)],i$n.prototype,"disabled",2),e$y([n$v(o$G)],i$n.prototype,"hidden",2),e$y([n$v(o$G)],i$n.prototype,"onlyIcon",2),e$y([n$v(o$G)],i$n.prototype,"fullWidth",2),e$y([n$v({type:String})],i$n.prototype,"size",1);function toDate(X){const W=Object.prototype.toString.call(X);return X instanceof Date||typeof X=="object"&&W==="[object Date]"?new X.constructor(+X):typeof X=="number"||W==="[object Number]"||typeof X=="string"||W==="[object String]"?new Date(X):new Date(NaN)}function constructFrom(X,W){return X instanceof Date?new X.constructor(W):new Date(W)}function addDays(X,W){const J=toDate(X);return isNaN(W)?constructFrom(X,NaN):(W&&J.setDate(J.getDate()+W),J)}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(X,W){var de,he,ue,ce;const J=getDefaultOptions$1(),te=(W==null?void 0:W.weekStartsOn)??((he=(de=W==null?void 0:W.locale)==null?void 0:de.options)==null?void 0:he.weekStartsOn)??J.weekStartsOn??((ce=(ue=J.locale)==null?void 0:ue.options)==null?void 0:ce.weekStartsOn)??0,re=toDate(X),ne=re.getDay(),oe=(ne<te?7:0)+ne-te;return re.setDate(re.getDate()-oe),re.setHours(0,0,0,0),re}function startOfISOWeek(X){return startOfWeek(X,{weekStartsOn:1})}function getISOWeekYear(X){const W=toDate(X),J=W.getFullYear(),te=constructFrom(X,0);te.setFullYear(J+1,0,4),te.setHours(0,0,0,0);const re=startOfISOWeek(te),ne=constructFrom(X,0);ne.setFullYear(J,0,4),ne.setHours(0,0,0,0);const oe=startOfISOWeek(ne);return W.getTime()>=re.getTime()?J+1:W.getTime()>=oe.getTime()?J:J-1}function startOfDay(X){const W=toDate(X);return W.setHours(0,0,0,0),W}function getTimezoneOffsetInMilliseconds(X){const W=toDate(X),J=new Date(Date.UTC(W.getFullYear(),W.getMonth(),W.getDate(),W.getHours(),W.getMinutes(),W.getSeconds(),W.getMilliseconds()));return J.setUTCFullYear(W.getFullYear()),+X-+J}function differenceInCalendarDays(X,W){const J=startOfDay(X),te=startOfDay(W),re=+J-getTimezoneOffsetInMilliseconds(J),ne=+te-getTimezoneOffsetInMilliseconds(te);return Math.round((re-ne)/millisecondsInDay)}function startOfISOWeekYear(X){const W=getISOWeekYear(X),J=constructFrom(X,0);return J.setFullYear(W,0,4),J.setHours(0,0,0,0),startOfISOWeek(J)}function isDate(X){return X instanceof Date||typeof X=="object"&&Object.prototype.toString.call(X)==="[object Date]"}function isValid(X){if(!isDate(X)&&typeof X!="number")return!1;const W=toDate(X);return!isNaN(Number(W))}function endOfMonth(X){const W=toDate(X),J=W.getMonth();return W.setFullYear(W.getFullYear(),J+1,0),W.setHours(23,59,59,999),W}function eachDayOfInterval(X,W){const J=toDate(X.start),te=toDate(X.end);let re=+J>+te;const ne=re?+J:+te,oe=re?te:J;oe.setHours(0,0,0,0);let de=1;const he=[];for(;+oe<=ne;)he.push(toDate(oe)),oe.setDate(oe.getDate()+de),oe.setHours(0,0,0,0);return re?he.reverse():he}function startOfMonth(X){const W=toDate(X);return W.setDate(1),W.setHours(0,0,0,0),W}function startOfYear(X){const W=toDate(X),J=constructFrom(X,0);return J.setFullYear(W.getFullYear(),0,1),J.setHours(0,0,0,0),J}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=(X,W,J)=>{let te;const re=formatDistanceLocale[X];return typeof re=="string"?te=re:W===1?te=re.one:te=re.other.replace("{{count}}",W.toString()),J!=null&&J.addSuffix?J.comparison&&J.comparison>0?"in "+te:te+" ago":te};function buildFormatLongFn(X){return(W={})=>{const J=W.width?String(W.width):X.defaultWidth;return X.formats[J]||X.formats[X.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=(X,W,J,te)=>formatRelativeLocale[X];function buildLocalizeFn(X){return(W,J)=>{const te=J!=null&&J.context?String(J.context):"standalone";let re;if(te==="formatting"&&X.formattingValues){const oe=X.defaultFormattingWidth||X.defaultWidth,de=J!=null&&J.width?String(J.width):oe;re=X.formattingValues[de]||X.formattingValues[oe]}else{const oe=X.defaultWidth,de=J!=null&&J.width?String(J.width):X.defaultWidth;re=X.values[de]||X.values[oe]}const ne=X.argumentCallback?X.argumentCallback(W):W;return re[ne]}}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=(X,W)=>{const J=Number(X),te=J%100;if(te>20||te<10)switch(te%10){case 1:return J+"st";case 2:return J+"nd";case 3:return J+"rd"}return J+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:X=>X-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(X){return(W,J={})=>{const te=J.width,re=te&&X.matchPatterns[te]||X.matchPatterns[X.defaultMatchWidth],ne=W.match(re);if(!ne)return null;const oe=ne[0],de=te&&X.parsePatterns[te]||X.parsePatterns[X.defaultParseWidth],he=Array.isArray(de)?findIndex(de,pe=>pe.test(oe)):findKey(de,pe=>pe.test(oe));let ue;ue=X.valueCallback?X.valueCallback(he):he,ue=J.valueCallback?J.valueCallback(ue):ue;const ce=W.slice(oe.length);return{value:ue,rest:ce}}}function findKey(X,W){for(const J in X)if(Object.prototype.hasOwnProperty.call(X,J)&&W(X[J]))return J}function findIndex(X,W){for(let J=0;J<X.length;J++)if(W(X[J]))return J}function buildMatchPatternFn(X){return(W,J={})=>{const te=W.match(X.matchPattern);if(!te)return null;const re=te[0],ne=W.match(X.parsePattern);if(!ne)return null;let oe=X.valueCallback?X.valueCallback(ne[0]):ne[0];oe=J.valueCallback?J.valueCallback(oe):oe;const de=W.slice(re.length);return{value:oe,rest:de}}}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:X=>parseInt(X,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:X=>X+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(X){const W=toDate(X);return differenceInCalendarDays(W,startOfYear(W))+1}function getISOWeek(X){const W=toDate(X),J=+startOfISOWeek(W)-+startOfISOWeekYear(W);return Math.round(J/millisecondsInWeek)+1}function getWeekYear(X,W){var ce,pe,fe,ge;const J=toDate(X),te=J.getFullYear(),re=getDefaultOptions$1(),ne=(W==null?void 0:W.firstWeekContainsDate)??((pe=(ce=W==null?void 0:W.locale)==null?void 0:ce.options)==null?void 0:pe.firstWeekContainsDate)??re.firstWeekContainsDate??((ge=(fe=re.locale)==null?void 0:fe.options)==null?void 0:ge.firstWeekContainsDate)??1,oe=constructFrom(X,0);oe.setFullYear(te+1,0,ne),oe.setHours(0,0,0,0);const de=startOfWeek(oe,W),he=constructFrom(X,0);he.setFullYear(te,0,ne),he.setHours(0,0,0,0);const ue=startOfWeek(he,W);return J.getTime()>=de.getTime()?te+1:J.getTime()>=ue.getTime()?te:te-1}function startOfWeekYear(X,W){var de,he,ue,ce;const J=getDefaultOptions$1(),te=(W==null?void 0:W.firstWeekContainsDate)??((he=(de=W==null?void 0:W.locale)==null?void 0:de.options)==null?void 0:he.firstWeekContainsDate)??J.firstWeekContainsDate??((ce=(ue=J.locale)==null?void 0:ue.options)==null?void 0:ce.firstWeekContainsDate)??1,re=getWeekYear(X,W),ne=constructFrom(X,0);return ne.setFullYear(re,0,te),ne.setHours(0,0,0,0),startOfWeek(ne,W)}function getWeek(X,W){const J=toDate(X),te=+startOfWeek(J,W)-+startOfWeekYear(J,W);return Math.round(te/millisecondsInWeek)+1}function addLeadingZeros(X,W){const J=X<0?"-":"",te=Math.abs(X).toString().padStart(W,"0");return J+te}const lightFormatters={y(X,W){const J=X.getFullYear(),te=J>0?J:1-J;return addLeadingZeros(W==="yy"?te%100:te,W.length)},M(X,W){const J=X.getMonth();return W==="M"?String(J+1):addLeadingZeros(J+1,2)},d(X,W){return addLeadingZeros(X.getDate(),W.length)},a(X,W){const J=X.getHours()/12>=1?"pm":"am";switch(W){case"a":case"aa":return J.toUpperCase();case"aaa":return J;case"aaaaa":return J[0];case"aaaa":default:return J==="am"?"a.m.":"p.m."}},h(X,W){return addLeadingZeros(X.getHours()%12||12,W.length)},H(X,W){return addLeadingZeros(X.getHours(),W.length)},m(X,W){return addLeadingZeros(X.getMinutes(),W.length)},s(X,W){return addLeadingZeros(X.getSeconds(),W.length)},S(X,W){const J=W.length,te=X.getMilliseconds(),re=Math.trunc(te*Math.pow(10,J-3));return addLeadingZeros(re,W.length)}},dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(X,W,J){const te=X.getFullYear()>0?1:0;switch(W){case"G":case"GG":case"GGG":return J.era(te,{width:"abbreviated"});case"GGGGG":return J.era(te,{width:"narrow"});case"GGGG":default:return J.era(te,{width:"wide"})}},y:function(X,W,J){if(W==="yo"){const te=X.getFullYear(),re=te>0?te:1-te;return J.ordinalNumber(re,{unit:"year"})}return lightFormatters.y(X,W)},Y:function(X,W,J,te){const re=getWeekYear(X,te),ne=re>0?re:1-re;if(W==="YY"){const oe=ne%100;return addLeadingZeros(oe,2)}return W==="Yo"?J.ordinalNumber(ne,{unit:"year"}):addLeadingZeros(ne,W.length)},R:function(X,W){const J=getISOWeekYear(X);return addLeadingZeros(J,W.length)},u:function(X,W){const J=X.getFullYear();return addLeadingZeros(J,W.length)},Q:function(X,W,J){const te=Math.ceil((X.getMonth()+1)/3);switch(W){case"Q":return String(te);case"QQ":return addLeadingZeros(te,2);case"Qo":return J.ordinalNumber(te,{unit:"quarter"});case"QQQ":return J.quarter(te,{width:"abbreviated",context:"formatting"});case"QQQQQ":return J.quarter(te,{width:"narrow",context:"formatting"});case"QQQQ":default:return J.quarter(te,{width:"wide",context:"formatting"})}},q:function(X,W,J){const te=Math.ceil((X.getMonth()+1)/3);switch(W){case"q":return String(te);case"qq":return addLeadingZeros(te,2);case"qo":return J.ordinalNumber(te,{unit:"quarter"});case"qqq":return J.quarter(te,{width:"abbreviated",context:"standalone"});case"qqqqq":return J.quarter(te,{width:"narrow",context:"standalone"});case"qqqq":default:return J.quarter(te,{width:"wide",context:"standalone"})}},M:function(X,W,J){const te=X.getMonth();switch(W){case"M":case"MM":return lightFormatters.M(X,W);case"Mo":return J.ordinalNumber(te+1,{unit:"month"});case"MMM":return J.month(te,{width:"abbreviated",context:"formatting"});case"MMMMM":return J.month(te,{width:"narrow",context:"formatting"});case"MMMM":default:return J.month(te,{width:"wide",context:"formatting"})}},L:function(X,W,J){const te=X.getMonth();switch(W){case"L":return String(te+1);case"LL":return addLeadingZeros(te+1,2);case"Lo":return J.ordinalNumber(te+1,{unit:"month"});case"LLL":return J.month(te,{width:"abbreviated",context:"standalone"});case"LLLLL":return J.month(te,{width:"narrow",context:"standalone"});case"LLLL":default:return J.month(te,{width:"wide",context:"standalone"})}},w:function(X,W,J,te){const re=getWeek(X,te);return W==="wo"?J.ordinalNumber(re,{unit:"week"}):addLeadingZeros(re,W.length)},I:function(X,W,J){const te=getISOWeek(X);return W==="Io"?J.ordinalNumber(te,{unit:"week"}):addLeadingZeros(te,W.length)},d:function(X,W,J){return W==="do"?J.ordinalNumber(X.getDate(),{unit:"date"}):lightFormatters.d(X,W)},D:function(X,W,J){const te=getDayOfYear(X);return W==="Do"?J.ordinalNumber(te,{unit:"dayOfYear"}):addLeadingZeros(te,W.length)},E:function(X,W,J){const te=X.getDay();switch(W){case"E":case"EE":case"EEE":return J.day(te,{width:"abbreviated",context:"formatting"});case"EEEEE":return J.day(te,{width:"narrow",context:"formatting"});case"EEEEEE":return J.day(te,{width:"short",context:"formatting"});case"EEEE":default:return J.day(te,{width:"wide",context:"formatting"})}},e:function(X,W,J,te){const re=X.getDay(),ne=(re-te.weekStartsOn+8)%7||7;switch(W){case"e":return String(ne);case"ee":return addLeadingZeros(ne,2);case"eo":return J.ordinalNumber(ne,{unit:"day"});case"eee":return J.day(re,{width:"abbreviated",context:"formatting"});case"eeeee":return J.day(re,{width:"narrow",context:"formatting"});case"eeeeee":return J.day(re,{width:"short",context:"formatting"});case"eeee":default:return J.day(re,{width:"wide",context:"formatting"})}},c:function(X,W,J,te){const re=X.getDay(),ne=(re-te.weekStartsOn+8)%7||7;switch(W){case"c":return String(ne);case"cc":return addLeadingZeros(ne,W.length);case"co":return J.ordinalNumber(ne,{unit:"day"});case"ccc":return J.day(re,{width:"abbreviated",context:"standalone"});case"ccccc":return J.day(re,{width:"narrow",context:"standalone"});case"cccccc":return J.day(re,{width:"short",context:"standalone"});case"cccc":default:return J.day(re,{width:"wide",context:"standalone"})}},i:function(X,W,J){const te=X.getDay(),re=te===0?7:te;switch(W){case"i":return String(re);case"ii":return addLeadingZeros(re,W.length);case"io":return J.ordinalNumber(re,{unit:"day"});case"iii":return J.day(te,{width:"abbreviated",context:"formatting"});case"iiiii":return J.day(te,{width:"narrow",context:"formatting"});case"iiiiii":return J.day(te,{width:"short",context:"formatting"});case"iiii":default:return J.day(te,{width:"wide",context:"formatting"})}},a:function(X,W,J){const re=X.getHours()/12>=1?"pm":"am";switch(W){case"a":case"aa":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"aaa":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return J.dayPeriod(re,{width:"narrow",context:"formatting"});case"aaaa":default:return J.dayPeriod(re,{width:"wide",context:"formatting"})}},b:function(X,W,J){const te=X.getHours();let re;switch(te===12?re=dayPeriodEnum.noon:te===0?re=dayPeriodEnum.midnight:re=te/12>=1?"pm":"am",W){case"b":case"bb":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"bbb":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return J.dayPeriod(re,{width:"narrow",context:"formatting"});case"bbbb":default:return J.dayPeriod(re,{width:"wide",context:"formatting"})}},B:function(X,W,J){const te=X.getHours();let re;switch(te>=17?re=dayPeriodEnum.evening:te>=12?re=dayPeriodEnum.afternoon:te>=4?re=dayPeriodEnum.morning:re=dayPeriodEnum.night,W){case"B":case"BB":case"BBB":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"BBBBB":return J.dayPeriod(re,{width:"narrow",context:"formatting"});case"BBBB":default:return J.dayPeriod(re,{width:"wide",context:"formatting"})}},h:function(X,W,J){if(W==="ho"){let te=X.getHours()%12;return te===0&&(te=12),J.ordinalNumber(te,{unit:"hour"})}return lightFormatters.h(X,W)},H:function(X,W,J){return W==="Ho"?J.ordinalNumber(X.getHours(),{unit:"hour"}):lightFormatters.H(X,W)},K:function(X,W,J){const te=X.getHours()%12;return W==="Ko"?J.ordinalNumber(te,{unit:"hour"}):addLeadingZeros(te,W.length)},k:function(X,W,J){let te=X.getHours();return te===0&&(te=24),W==="ko"?J.ordinalNumber(te,{unit:"hour"}):addLeadingZeros(te,W.length)},m:function(X,W,J){return W==="mo"?J.ordinalNumber(X.getMinutes(),{unit:"minute"}):lightFormatters.m(X,W)},s:function(X,W,J){return W==="so"?J.ordinalNumber(X.getSeconds(),{unit:"second"}):lightFormatters.s(X,W)},S:function(X,W){return lightFormatters.S(X,W)},X:function(X,W,J){const te=X.getTimezoneOffset();if(te===0)return"Z";switch(W){case"X":return formatTimezoneWithOptionalMinutes(te);case"XXXX":case"XX":return formatTimezone(te);case"XXXXX":case"XXX":default:return formatTimezone(te,":")}},x:function(X,W,J){const te=X.getTimezoneOffset();switch(W){case"x":return formatTimezoneWithOptionalMinutes(te);case"xxxx":case"xx":return formatTimezone(te);case"xxxxx":case"xxx":default:return formatTimezone(te,":")}},O:function(X,W,J){const te=X.getTimezoneOffset();switch(W){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(te,":");case"OOOO":default:return"GMT"+formatTimezone(te,":")}},z:function(X,W,J){const te=X.getTimezoneOffset();switch(W){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(te,":");case"zzzz":default:return"GMT"+formatTimezone(te,":")}},t:function(X,W,J){const te=Math.trunc(X.getTime()/1e3);return addLeadingZeros(te,W.length)},T:function(X,W,J){const te=X.getTime();return addLeadingZeros(te,W.length)}};function formatTimezoneShort(X,W=""){const J=X>0?"-":"+",te=Math.abs(X),re=Math.trunc(te/60),ne=te%60;return ne===0?J+String(re):J+String(re)+W+addLeadingZeros(ne,2)}function formatTimezoneWithOptionalMinutes(X,W){return X%60===0?(X>0?"-":"+")+addLeadingZeros(Math.abs(X)/60,2):formatTimezone(X,W)}function formatTimezone(X,W=""){const J=X>0?"-":"+",te=Math.abs(X),re=addLeadingZeros(Math.trunc(te/60),2),ne=addLeadingZeros(te%60,2);return J+re+W+ne}const dateLongFormatter=(X,W)=>{switch(X){case"P":return W.date({width:"short"});case"PP":return W.date({width:"medium"});case"PPP":return W.date({width:"long"});case"PPPP":default:return W.date({width:"full"})}},timeLongFormatter=(X,W)=>{switch(X){case"p":return W.time({width:"short"});case"pp":return W.time({width:"medium"});case"ppp":return W.time({width:"long"});case"pppp":default:return W.time({width:"full"})}},dateTimeLongFormatter=(X,W)=>{const J=X.match(/(P+)(p+)?/)||[],te=J[1],re=J[2];if(!re)return dateLongFormatter(X,W);let ne;switch(te){case"P":ne=W.dateTime({width:"short"});break;case"PP":ne=W.dateTime({width:"medium"});break;case"PPP":ne=W.dateTime({width:"long"});break;case"PPPP":default:ne=W.dateTime({width:"full"});break}return ne.replace("{{date}}",dateLongFormatter(te,W)).replace("{{time}}",timeLongFormatter(re,W))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(X){return dayOfYearTokenRE.test(X)}function isProtectedWeekYearToken(X){return weekYearTokenRE.test(X)}function warnOrThrowProtectedError(X,W,J){const te=message(X,W,J);if(console.warn(te),throwTokens.includes(X))throw new RangeError(te)}function message(X,W,J){const te=X[0]==="Y"?"years":"days of the month";return`Use \`${X.toLowerCase()}\` instead of \`${X}\` (in \`${W}\`) for formatting ${te} to the input \`${J}\`; 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(X,W,J){var ce,pe,fe,ge;const te=getDefaultOptions$1(),re=te.locale??enUS,ne=te.firstWeekContainsDate??((pe=(ce=te.locale)==null?void 0:ce.options)==null?void 0:pe.firstWeekContainsDate)??1,oe=te.weekStartsOn??((ge=(fe=te.locale)==null?void 0:fe.options)==null?void 0:ge.weekStartsOn)??0,de=toDate(X);if(!isValid(de))throw new RangeError("Invalid time value");let he=W.match(longFormattingTokensRegExp$1).map(me=>{const ve=me[0];if(ve==="p"||ve==="P"){const be=longFormatters[ve];return be(me,re.formatLong)}return me}).join("").match(formattingTokensRegExp$1).map(me=>{if(me==="''")return{isToken:!1,value:"'"};const ve=me[0];if(ve==="'")return{isToken:!1,value:cleanEscapedString$1(me)};if(formatters[ve])return{isToken:!0,value:me};if(ve.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ve+"`");return{isToken:!1,value:me}});re.localize.preprocessor&&(he=re.localize.preprocessor(de,he));const ue={firstWeekContainsDate:ne,weekStartsOn:oe,locale:re};return he.map(me=>{if(!me.isToken)return me.value;const ve=me.value;(isProtectedWeekYearToken(ve)||isProtectedDayOfYearToken(ve))&&warnOrThrowProtectedError(ve,W,String(X));const be=formatters[ve[0]];return be(de,ve,re.localize,ue)}).join("")}function cleanEscapedString$1(X){const W=X.match(escapedStringRegExp$1);return W?W[1].replace(doubleQuoteRegExp$1,"'"):X}function getDay(X){return toDate(X).getDay()}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(X){let J=toDate(X).getDay();return J===0&&(J=7),J}function transpose(X,W){const J=W instanceof Date?constructFrom(W,0):new W(0);return J.setFullYear(X.getFullYear(),X.getMonth(),X.getDate()),J.setHours(X.getHours(),X.getMinutes(),X.getSeconds(),X.getMilliseconds()),J}const TIMEZONE_UNIT_PRIORITY=10;class Setter{constructor(){Tt(this,"subPriority",0)}validate(W,J){return!0}}class ValueSetter extends Setter{constructor(W,J,te,re,ne){super(),this.value=W,this.validateValue=J,this.setValue=te,this.priority=re,ne&&(this.subPriority=ne)}validate(W,J){return this.validateValue(W,this.value,J)}set(W,J,te){return this.setValue(W,J,this.value,te)}}class DateToSystemTimezoneSetter extends Setter{constructor(){super(...arguments);Tt(this,"priority",TIMEZONE_UNIT_PRIORITY);Tt(this,"subPriority",-1)}set(J,te){return te.timestampIsSet?J:constructFrom(J,transpose(J,Date))}}class Parser{run(W,J,te,re){const ne=this.parse(W,J,te,re);return ne?{setter:new ValueSetter(ne.value,this.validate,this.set,this.priority,this.subPriority),rest:ne.rest}:null}validate(W,J,te){return!0}}class EraParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",140);Tt(this,"incompatibleTokens",["R","u","t","T"])}parse(J,te,re){switch(te){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,te,re){return te.era=re,J.setFullYear(re,0,1),J.setHours(0,0,0,0),J}}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(X,W){return X&&{value:W(X.value),rest:X.rest}}function parseNumericPattern(X,W){const J=W.match(X);return J?{value:parseInt(J[0],10),rest:W.slice(J[0].length)}:null}function parseTimezonePattern(X,W){const J=W.match(X);if(!J)return null;if(J[0]==="Z")return{value:0,rest:W.slice(1)};const te=J[1]==="+"?1:-1,re=J[2]?parseInt(J[2],10):0,ne=J[3]?parseInt(J[3],10):0,oe=J[5]?parseInt(J[5],10):0;return{value:te*(re*millisecondsInHour+ne*millisecondsInMinute+oe*millisecondsInSecond),rest:W.slice(J[0].length)}}function parseAnyDigitsSigned(X){return parseNumericPattern(numericPatterns.anyDigitsSigned,X)}function parseNDigits(X,W){switch(X){case 1:return parseNumericPattern(numericPatterns.singleDigit,W);case 2:return parseNumericPattern(numericPatterns.twoDigits,W);case 3:return parseNumericPattern(numericPatterns.threeDigits,W);case 4:return parseNumericPattern(numericPatterns.fourDigits,W);default:return parseNumericPattern(new RegExp("^\\d{1,"+X+"}"),W)}}function parseNDigitsSigned(X,W){switch(X){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,W);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,W);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,W);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,W);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+X+"}"),W)}}function dayPeriodEnumToHours(X){switch(X){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(X,W){const J=W>0,te=J?W:1-W;let re;if(te<=50)re=X||100;else{const ne=te+50,oe=Math.trunc(ne/100)*100,de=X>=ne%100;re=X+oe-(de?100:0)}return J?re:1-re}function isLeapYearIndex(X){return X%400===0||X%4===0&&X%100!==0}class YearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",130);Tt(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(J,te,re){const ne=oe=>({year:oe,isTwoDigitYear:te==="yy"});switch(te){case"y":return mapValue(parseNDigits(4,J),ne);case"yo":return mapValue(re.ordinalNumber(J,{unit:"year"}),ne);default:return mapValue(parseNDigits(te.length,J),ne)}}validate(J,te){return te.isTwoDigitYear||te.year>0}set(J,te,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 te)||te.era===1?re.year:1-re.year;return J.setFullYear(oe,0,1),J.setHours(0,0,0,0),J}}class LocalWeekYearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",130);Tt(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(J,te,re){const ne=oe=>({year:oe,isTwoDigitYear:te==="YY"});switch(te){case"Y":return mapValue(parseNDigits(4,J),ne);case"Yo":return mapValue(re.ordinalNumber(J,{unit:"year"}),ne);default:return mapValue(parseNDigits(te.length,J),ne)}}validate(J,te){return te.isTwoDigitYear||te.year>0}set(J,te,re,ne){const oe=getWeekYear(J,ne);if(re.isTwoDigitYear){const he=normalizeTwoDigitYear(re.year,oe);return J.setFullYear(he,0,ne.firstWeekContainsDate),J.setHours(0,0,0,0),startOfWeek(J,ne)}const de=!("era"in te)||te.era===1?re.year:1-re.year;return J.setFullYear(de,0,ne.firstWeekContainsDate),J.setHours(0,0,0,0),startOfWeek(J,ne)}}class ISOWeekYearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",130);Tt(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(J,te){return parseNDigitsSigned(te==="R"?4:te.length,J)}set(J,te,re){const ne=constructFrom(J,0);return ne.setFullYear(re,0,4),ne.setHours(0,0,0,0),startOfISOWeek(ne)}}class ExtendedYearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",130);Tt(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(J,te){return parseNDigitsSigned(te==="u"?4:te.length,J)}set(J,te,re){return J.setFullYear(re,0,1),J.setHours(0,0,0,0),J}}class QuarterParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",120);Tt(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(J,te,re){switch(te){case"Q":case"QQ":return parseNDigits(te.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,te){return te>=1&&te<=4}set(J,te,re){return J.setMonth((re-1)*3,1),J.setHours(0,0,0,0),J}}class StandAloneQuarterParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",120);Tt(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(J,te,re){switch(te){case"q":case"qq":return parseNDigits(te.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,te){return te>=1&&te<=4}set(J,te,re){return J.setMonth((re-1)*3,1),J.setHours(0,0,0,0),J}}class MonthParser extends Parser{constructor(){super(...arguments);Tt(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Tt(this,"priority",110)}parse(J,te,re){const ne=oe=>oe-1;switch(te){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,te){return te>=0&&te<=11}set(J,te,re){return J.setMonth(re,1),J.setHours(0,0,0,0),J}}class StandAloneMonthParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",110);Tt(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(J,te,re){const ne=oe=>oe-1;switch(te){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,te){return te>=0&&te<=11}set(J,te,re){return J.setMonth(re,1),J.setHours(0,0,0,0),J}}function setWeek(X,W,J){const te=toDate(X),re=getWeek(te,J)-W;return te.setDate(te.getDate()-re*7),te}class LocalWeekParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",100);Tt(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(J,te,re){switch(te){case"w":return parseNumericPattern(numericPatterns.week,J);case"wo":return re.ordinalNumber(J,{unit:"week"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=1&&te<=53}set(J,te,re,ne){return startOfWeek(setWeek(J,re,ne),ne)}}function setISOWeek(X,W){const J=toDate(X),te=getISOWeek(J)-W;return J.setDate(J.getDate()-te*7),J}class ISOWeekParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",100);Tt(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(J,te,re){switch(te){case"I":return parseNumericPattern(numericPatterns.week,J);case"Io":return re.ordinalNumber(J,{unit:"week"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=1&&te<=53}set(J,te,re){return startOfISOWeek(setISOWeek(J,re))}}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{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"subPriority",1);Tt(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(J,te,re){switch(te){case"d":return parseNumericPattern(numericPatterns.date,J);case"do":return re.ordinalNumber(J,{unit:"date"});default:return parseNDigits(te.length,J)}}validate(J,te){const re=J.getFullYear(),ne=isLeapYearIndex(re),oe=J.getMonth();return ne?te>=1&&te<=DAYS_IN_MONTH_LEAP_YEAR[oe]:te>=1&&te<=DAYS_IN_MONTH[oe]}set(J,te,re){return J.setDate(re),J.setHours(0,0,0,0),J}}class DayOfYearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"subpriority",1);Tt(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(J,te,re){switch(te){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,J);case"Do":return re.ordinalNumber(J,{unit:"date"});default:return parseNDigits(te.length,J)}}validate(J,te){const re=J.getFullYear();return isLeapYearIndex(re)?te>=1&&te<=366:te>=1&&te<=365}set(J,te,re){return J.setMonth(0,re),J.setHours(0,0,0,0),J}}function setDay(X,W,J){var pe,fe,ge,me;const te=getDefaultOptions$1(),re=(J==null?void 0:J.weekStartsOn)??((fe=(pe=J==null?void 0:J.locale)==null?void 0:pe.options)==null?void 0:fe.weekStartsOn)??te.weekStartsOn??((me=(ge=te.locale)==null?void 0:ge.options)==null?void 0:me.weekStartsOn)??0,ne=toDate(X),oe=ne.getDay(),he=(W%7+7)%7,ue=7-re,ce=W<0||W>6?W-(oe+ue)%7:(he+ue)%7-(oe+ue)%7;return addDays(ne,ce)}class DayParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(J,te,re){switch(te){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,te){return te>=0&&te<=6}set(J,te,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}}class LocalDayParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(J,te,re,ne){const oe=de=>{const he=Math.floor((de-1)/7)*7;return(de+ne.weekStartsOn+6)%7+he};switch(te){case"e":case"ee":return mapValue(parseNDigits(te.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,te){return te>=0&&te<=6}set(J,te,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}}class StandAloneLocalDayParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(J,te,re,ne){const oe=de=>{const he=Math.floor((de-1)/7)*7;return(de+ne.weekStartsOn+6)%7+he};switch(te){case"c":case"cc":return mapValue(parseNDigits(te.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,te){return te>=0&&te<=6}set(J,te,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}}function setISODay(X,W){const J=toDate(X),te=getISODay(J),re=W-te;return addDays(J,re)}class ISODayParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(J,te,re){const ne=oe=>oe===0?7:oe;switch(te){case"i":case"ii":return parseNDigits(te.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,te){return te>=1&&te<=7}set(J,te,re){return J=setISODay(J,re),J.setHours(0,0,0,0),J}}class AMPMParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",80);Tt(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(J,te,re){switch(te){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,te,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}}class AMPMMidnightParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",80);Tt(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(J,te,re){switch(te){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,te,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}}class DayPeriodParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",80);Tt(this,"incompatibleTokens",["a","b","t","T"])}parse(J,te,re){switch(te){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,te,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}}class Hour1to12Parser extends Parser{constructor(){super(...arguments);Tt(this,"priority",70);Tt(this,"incompatibleTokens",["H","K","k","t","T"])}parse(J,te,re){switch(te){case"h":return parseNumericPattern(numericPatterns.hour12h,J);case"ho":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=1&&te<=12}set(J,te,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}}class Hour0to23Parser extends Parser{constructor(){super(...arguments);Tt(this,"priority",70);Tt(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(J,te,re){switch(te){case"H":return parseNumericPattern(numericPatterns.hour23h,J);case"Ho":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=0&&te<=23}set(J,te,re){return J.setHours(re,0,0,0),J}}class Hour0To11Parser extends Parser{constructor(){super(...arguments);Tt(this,"priority",70);Tt(this,"incompatibleTokens",["h","H","k","t","T"])}parse(J,te,re){switch(te){case"K":return parseNumericPattern(numericPatterns.hour11h,J);case"Ko":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=0&&te<=11}set(J,te,re){return J.getHours()>=12&&re<12?J.setHours(re+12,0,0,0):J.setHours(re,0,0,0),J}}class Hour1To24Parser extends Parser{constructor(){super(...arguments);Tt(this,"priority",70);Tt(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(J,te,re){switch(te){case"k":return parseNumericPattern(numericPatterns.hour24h,J);case"ko":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=1&&te<=24}set(J,te,re){const ne=re<=24?re%24:re;return J.setHours(ne,0,0,0),J}}class MinuteParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",60);Tt(this,"incompatibleTokens",["t","T"])}parse(J,te,re){switch(te){case"m":return parseNumericPattern(numericPatterns.minute,J);case"mo":return re.ordinalNumber(J,{unit:"minute"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=0&&te<=59}set(J,te,re){return J.setMinutes(re,0,0),J}}class SecondParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",50);Tt(this,"incompatibleTokens",["t","T"])}parse(J,te,re){switch(te){case"s":return parseNumericPattern(numericPatterns.second,J);case"so":return re.ordinalNumber(J,{unit:"second"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=0&&te<=59}set(J,te,re){return J.setSeconds(re,0),J}}class FractionOfSecondParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",30);Tt(this,"incompatibleTokens",["t","T"])}parse(J,te){const re=ne=>Math.trunc(ne*Math.pow(10,-te.length+3));return mapValue(parseNDigits(te.length,J),re)}set(J,te,re){return J.setMilliseconds(re),J}}class ISOTimezoneWithZParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",10);Tt(this,"incompatibleTokens",["t","T","x"])}parse(J,te){switch(te){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,te,re){return te.timestampIsSet?J:constructFrom(J,J.getTime()-getTimezoneOffsetInMilliseconds(J)-re)}}class ISOTimezoneParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",10);Tt(this,"incompatibleTokens",["t","T","X"])}parse(J,te){switch(te){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,te,re){return te.timestampIsSet?J:constructFrom(J,J.getTime()-getTimezoneOffsetInMilliseconds(J)-re)}}class TimestampSecondsParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",40);Tt(this,"incompatibleTokens","*")}parse(J){return parseAnyDigitsSigned(J)}set(J,te,re){return[constructFrom(J,re*1e3),{timestampIsSet:!0}]}}class TimestampMillisecondsParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",20);Tt(this,"incompatibleTokens","*")}parse(J){return parseAnyDigitsSigned(J)}set(J,te,re){return[constructFrom(J,re),{timestampIsSet:!0}]}}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(X,W,J,te){var ve,be,ye,we;const re=getDefaultOptions(),ne=re.locale??enUS,oe=re.firstWeekContainsDate??((be=(ve=re.locale)==null?void 0:ve.options)==null?void 0:be.firstWeekContainsDate)??1,de=re.weekStartsOn??((we=(ye=re.locale)==null?void 0:ye.options)==null?void 0:we.weekStartsOn)??0,he={firstWeekContainsDate:oe,weekStartsOn:de,locale:ne},ue=[new DateToSystemTimezoneSetter],ce=W.match(longFormattingTokensRegExp).map(Se=>{const _e=Se[0];if(_e in longFormatters){const Ce=longFormatters[_e];return Ce(Se,ne.formatLong)}return Se}).join("").match(formattingTokensRegExp),pe=[];for(let Se of ce){isProtectedWeekYearToken(Se)&&warnOrThrowProtectedError(Se,W,X),isProtectedDayOfYearToken(Se)&&warnOrThrowProtectedError(Se,W,X);const _e=Se[0],Ce=parsers[_e];if(Ce){const{incompatibleTokens:Le}=Ce;if(Array.isArray(Le)){const Ie=pe.find(ze=>Le.includes(ze.token)||ze.token===_e);if(Ie)throw new RangeError(`The format string mustn't contain \`${Ie.fullToken}\` and \`${Se}\` at the same time`)}else if(Ce.incompatibleTokens==="*"&&pe.length>0)throw new RangeError(`The format string mustn't contain \`${Se}\` and any other token at the same time`);pe.push({token:_e,fullToken:Se});const qe=Ce.run(X,Se,ne.match,he);if(!qe)return constructFrom(J,NaN);ue.push(qe.setter),X=qe.rest}else{if(_e.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_e+"`");if(Se==="''"?Se="'":_e==="'"&&(Se=cleanEscapedString(Se)),X.indexOf(Se)===0)X=X.slice(Se.length);else return constructFrom(J,NaN)}}if(X.length>0&¬WhitespaceRegExp.test(X))return constructFrom(J,NaN);const fe=ue.map(Se=>Se.priority).sort((Se,_e)=>_e-Se).filter((Se,_e,Ce)=>Ce.indexOf(Se)===_e).map(Se=>ue.filter(_e=>_e.priority===Se).sort((_e,Ce)=>Ce.subPriority-_e.subPriority)).map(Se=>Se[0]);let ge=toDate(J);if(isNaN(ge.getTime()))return constructFrom(J,NaN);const me={};for(const Se of fe){if(!Se.validate(ge,he))return constructFrom(J,NaN);const _e=Se.set(ge,me,he);Array.isArray(_e)?(ge=_e[0],Object.assign(me,_e[1])):ge=_e}return constructFrom(J,ge)}function cleanEscapedString(X){return X.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}const o$w=':host{display:inline-block;vertical-align:middle}.dss-icon-button{position:relative;background-color:transparent;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.3s all ease-in;width:24px;height:24px;font-size:var(--icon-size-md)}.dss-icon-button .dss-icon-button__icon{z-index:100}.dss-icon-button:before{content:"";position:absolute;top:50%;left:50%;width:32px;height:32px;background-color:transparent;border-radius:100%;transform:translate(-50%,-50%);transition:.3s all ease-in;z-index:0}.dss-icon-button--sm{height:16px;width:16px;font-size:var(--icon-size-sm)}.dss-icon-button.dss-icon-button--sm:before{width:24px;height:24px}.dss-icon-button--lg{height:32px;width:32px;font-size:var(--icon-size-lg)}.dss-icon-button.dss-icon-button--lg:before{width:40px;height:40px}.dss-icon-button:disabled{cursor:not-allowed;color:var(--color-neutral-400)}.dss-icon-button[hidden]{display:none}.dss-icon-button:focus-visible:enabled{outline:0}.dss-icon-button:focus-visible:enabled:before{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--neutral,.dss-icon-button--default{color:var(--color-neutral-700)}.dss-icon-button--neutral:hover:enabled:before,.dss-icon-button--default:hover:enabled:before{background-color:var(--color-neutral-100)}.dss-icon-button--neutral:active:enabled:before,.dss-icon-button--default:active:enabled:before{background-color:var(--color-neutral-50);transition:none}.dss-icon-button--white-default,.dss-icon-button--ghost{color:var(--color-white);transition:none}.dss-icon-button--white-default:hover:enabled:before,.dss-icon-button--ghost:hover:enabled:before{background-color:var(--color-white);opacity:.4}.dss-icon-button--white-default:active:enabled:before,.dss-icon-button--ghost:active:enabled:before{background-color:var(--color-white);opacity:.2}.dss-icon-button--ghost:disabled,.dss-icon-button--white-default:disabled{opacity:.7;color:var(--color-white)}.dss-icon-button--primary{color:var(--color-primary-700)}.dss-icon-button--primary:hover:enabled:before{background-color:var(--color-primary-100)}.dss-icon-button--primary:active:enabled:before{background-color:var(--color-primary-50);transition:none}.dss-icon-button--error{color:var(--color-red-700)}.dss-icon-button--error:hover:enabled:before{background-color:var(--color-red-100)}.dss-icon-button--error:active:enabled:before{background-color:var(--color-red-50)}.dss-icon-button--warning{color:var(--color-yellow-800)}.dss-icon-button--warning:hover:enabled:before{background-color:var(--color-yellow-100)}.dss-icon-button--warning:active:enabled:before{background-color:var(--color-yellow-50)}.dss-icon-button--success{color:var(--color-green-700)}.dss-icon-button--success:hover:enabled:before{background-color:var(--color-green-100)}.dss-icon-button--success:active:enabled:before{background-color:var(--color-green-50)}.dss-icon-button--info{color:var(--color-blue-700)}.dss-icon-button--info:hover:enabled:before{background-color:var(--color-blue-100)}.dss-icon-button--info:active:enabled:before{background-color:var(--color-blue-50)}.dss-icon-button--orange{color:var(--color-orange-700)}.dss-icon-button--orange:hover:enabled:before{background-color:var(--color-orange-100)}.dss-icon-button--orange:active:enabled:before{background-color:var(--color-orange-50)}.dss-icon-button.dss-icon-button--orange:focus-visible:enabled:before{outline:var(--dss-spacing-xxs) solid var(--color-orange-200)}.dss-icon-button--purple{color:var(--color-purple-500)}.dss-icon-button--purple:hover:enabled:before{background-color:var(--color-purple-100)}.dss-icon-button--purple:active:enabled:before{background-color:var(--color-purple-50)}.dss-icon-button.dss-icon-button--purple:focus-visible:enabled:before{outline:var(--dss-spacing-xxs) solid var(--color-purple-200)}',e$x=':host{display:inline-block;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.calendar__container{position:relative;background:#fff;box-shadow:0 4px 8px 3px #0000000d,0 1px 3px #0000001a;margin-bottom:var(--dss-spacing-xxs);border-radius:var(--dss-radius-sm)}.calendar__content{padding:var(--dss-spacing-md);border-radius:8px 8px 0 0}.calendar__content--buttons{border-top:var(--dss-border-width-sm) solid var(--color-neutral-100)}.calendar__content:last-child{border-radius:0 0 8px 8px;box-shadow:none}.calendar__header{display:flex;justify-content:space-between;align-items:center;gap:var(--dss-spacing-xs);margin-bottom:16px}.calendar__header-item{display:flex;justify-content:center;align-items:center;gap:var(--dss-spacing-xxs)}.calendar__header-item--click{font-weight:var(--font-semibold);color:var(--color-neutral-900);border-radius:var(--dss-radius-xs);padding:var(--dss-spacing-xxs);cursor:pointer}.calendar__header-item--click:hover{background-color:var(--color-primary-50)}.calendar__header-item--click:active{background-color:var(--color-primary-100)}.calendar__header-item--click:focus-visible{outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.calendar__header-item--click:disabled{cursor:not-allowed;color:var(--color-neutral-500)}.calendar__header-buttons .dss-icon-button.dss-icon-button--lg,.calendar-selector--year .dss-icon-button.dss-icon-button--lg{width:32px;height:32px;box-sizing:border-box}.calendar__header-title{margin:auto;font-family:var(--font-family);font-style:normal;font-weight:600;font-size:16px;line-height:24px;color:#414141}.calendar__days-content{display:flex;flex-direction:column;gap:6px}.calendar__week-names,.calendar__days{list-style-type:none;padding:0;margin:0;gap:8px 6px;display:grid;grid-template-columns:repeat(7,1fr)}.calendar__week-names>li{text-align:center}.calendar__day-item{position:relative;height:32px;width:32px;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;z-index:999;border-radius:100%;cursor:pointer;font-size:14px;font-family:var(--font-family);font-weight:var(--font-semibold);line-height:24px;color:var(--color-neutral-900)}.calendar__day-item--weekend{font-weight:var(--font-regular)}.calendar__day-item--range:before{position:absolute;content:"";top:0;bottom:0;left:-6px;right:-6px;background:var(--color-primary-100);z-index:-2}.calendar__day-item--range:hover{color:#fff!important}.calendar__day-item--range:hover:after{position:absolute;content:"";width:100%;height:100%;border-radius:100%;background:var(--color-primary-500);color:#fff;z-index:-1}.calendar__day-item--active{color:#0073e6;box-shadow:inset 0 0 0 2px #0073e6}.calendar__day-item:hover:enabled,.calendar__day-item--selected{background:#0073e6!important;color:#fff}.calendar__day-item--selected-range-start,.calendar__day-item--selected-range-end{color:#fff}.calendar__day-item--selected-range-start:before,.calendar__day-item--selected-range-end:not(.calendar__day-item--selected-range-start):before{position:absolute;content:"";top:0;bottom:0;background:var(--color-primary-100);z-index:-2}.calendar__day-item--selected-range-start:after,.calendar__day-item--selected-range-end:not(.calendar__day-item--selected-range-start):after{position:absolute;content:"";width:100%;height:100%;border-radius:100%;background:var(--color-primary-500);color:#fff;z-index:-1}.calendar__day-item--selected-range-start:before{left:50%;right:-6px}.calendar__day-item--selected-range-end:not(.calendar__day-item--selected-range-start):before{left:-6px;right:50%}.calendar__day-item:not(.calendar__day-item--range-enabled):hover:enabled{transition:all .3s ease-in}.calendar__day-item.calendar__day-item--range-enabled:hover:enabled{transition:background .3s ease-in}.calendar__day-item:active:enabled{background:#308deb;transition:none}.calendar__day-item:disabled{pointer-events:none;opacity:.5}.calendar__time-container{display:flex;margin:auto;justify-content:center;align-items:center;gap:12px;font-weight:600;font-size:14px;line-height:24px;color:#1d1d1d}.calendar__time-content{display:flex;flex-direction:column;gap:8px;align-items:center}.calendar__buttons{display:flex;justify-content:center;align-items:center;gap:16px}.dss-datepicker__timepicker{position:relative;box-sizing:border-box;padding:var(--dss-spacing-xs) var(--dss-spacing-md) var(--dss-spacing-md)}.calendar-selector{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;padding:var(--dss-spacing-md);background-color:var(--color-white);z-index:1000;border-radius:var(--dss-radius-sm)}.calendar-selector-title{font-size:16px;line-height:24px;font-weight:var(--font-semibold);margin-bottom:var(--dss-spacing-md)}.calendar-selector-title__actions{display:flex;justify-content:flex-end;align-items:center;gap:0}.calendar-selector-title--years{display:flex;justify-content:space-between;align-items:center;gap:var(--dss-spacing-xs)}.calendar-selector-options{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--dss-spacing-xs) var(--dss-spacing-xxs)}.calendar-selector-options--4col{grid-template-columns:repeat(4,1fr)}.calendar-selector-options__item{height:32px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;font-size:14px;font-weight:var(--font-semibold);text-transform:lowercase;text-align:center;color:var(--color-neutral-900);border-radius:var(--dss-radius-xs);overflow:hidden;cursor:pointer;padding:var(--dss-spacing-xxs) var(--dss-spacing-xs)}.calendar-selector-options__item--current{color:var(--color-primary-700)}.calendar-selector-options__item--selected{background-color:var(--color-primary-500);color:var(--color-white)}.calendar-selector-options__item:hover{background-color:var(--color-primary-600);color:var(--color-white)}.calendar-selector-options__item:active{background-color:var(--color-primary-400);color:var(--color-white)}.calendar-selector-options__item:focus-visible{outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.calendar-selector-options__item:disabled{cursor:not-allowed;color:var(--color-neutral-500)}',h$j=er`dss-timepicker${tr(f$h())}`,i$m=er`dss-icon${tr(f$h())}`,r$A=er`dss-icon-button${tr(f$h())}`,s$i=er`dss-button${tr(f$h())}`,S$9=X=>{var W,J,te,re;return ke`
|
|
464
|
+
`;var d$h=Object.defineProperty,_$d=Object.getOwnPropertyDescriptor,e$y=(X,W,J,te)=>{for(var re=te>1?void 0:te?_$d(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&d$h(W,J,re),re};let i$n=class extends h$n{constructor(){super(...arguments),this.type="button",this.variant="primary",this.label="",this.icon=void 0,this.iconPosition="left",this.disabled=!1,this.hidden=!1,this.onlyIcon=!1,this.fullWidth=!1,this._size="md",this._iconSize="sm"}static get styles(){return[r$J(e$D),r$J(o$y)]}set size(W){const J=this._size;this._size=W,W==="lg"&&(this._iconSize="md"),this.requestUpdate("size",J)}get size(){return this._size}_handleClick(){this.dispatchEvent(new CustomEvent("onClick",{bubbles:!0,composed:!0}))}render(){return o$x(this)}};e$y([n$v({type:String})],i$n.prototype,"type",2),e$y([n$v({type:String})],i$n.prototype,"variant",2),e$y([n$v({type:String})],i$n.prototype,"label",2),e$y([n$v({type:String})],i$n.prototype,"icon",2),e$y([n$v({type:String})],i$n.prototype,"iconPosition",2),e$y([n$v(o$G)],i$n.prototype,"disabled",2),e$y([n$v(o$G)],i$n.prototype,"hidden",2),e$y([n$v(o$G)],i$n.prototype,"onlyIcon",2),e$y([n$v(o$G)],i$n.prototype,"fullWidth",2),e$y([n$v({type:String})],i$n.prototype,"size",1);function toDate(X){const W=Object.prototype.toString.call(X);return X instanceof Date||typeof X=="object"&&W==="[object Date]"?new X.constructor(+X):typeof X=="number"||W==="[object Number]"||typeof X=="string"||W==="[object String]"?new Date(X):new Date(NaN)}function constructFrom(X,W){return X instanceof Date?new X.constructor(W):new Date(W)}function addDays(X,W){const J=toDate(X);return isNaN(W)?constructFrom(X,NaN):(W&&J.setDate(J.getDate()+W),J)}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(X,W){var de,he,ue,ce;const J=getDefaultOptions$1(),te=(W==null?void 0:W.weekStartsOn)??((he=(de=W==null?void 0:W.locale)==null?void 0:de.options)==null?void 0:he.weekStartsOn)??J.weekStartsOn??((ce=(ue=J.locale)==null?void 0:ue.options)==null?void 0:ce.weekStartsOn)??0,re=toDate(X),ne=re.getDay(),oe=(ne<te?7:0)+ne-te;return re.setDate(re.getDate()-oe),re.setHours(0,0,0,0),re}function startOfISOWeek(X){return startOfWeek(X,{weekStartsOn:1})}function getISOWeekYear(X){const W=toDate(X),J=W.getFullYear(),te=constructFrom(X,0);te.setFullYear(J+1,0,4),te.setHours(0,0,0,0);const re=startOfISOWeek(te),ne=constructFrom(X,0);ne.setFullYear(J,0,4),ne.setHours(0,0,0,0);const oe=startOfISOWeek(ne);return W.getTime()>=re.getTime()?J+1:W.getTime()>=oe.getTime()?J:J-1}function startOfDay(X){const W=toDate(X);return W.setHours(0,0,0,0),W}function getTimezoneOffsetInMilliseconds(X){const W=toDate(X),J=new Date(Date.UTC(W.getFullYear(),W.getMonth(),W.getDate(),W.getHours(),W.getMinutes(),W.getSeconds(),W.getMilliseconds()));return J.setUTCFullYear(W.getFullYear()),+X-+J}function differenceInCalendarDays(X,W){const J=startOfDay(X),te=startOfDay(W),re=+J-getTimezoneOffsetInMilliseconds(J),ne=+te-getTimezoneOffsetInMilliseconds(te);return Math.round((re-ne)/millisecondsInDay)}function startOfISOWeekYear(X){const W=getISOWeekYear(X),J=constructFrom(X,0);return J.setFullYear(W,0,4),J.setHours(0,0,0,0),startOfISOWeek(J)}function isDate(X){return X instanceof Date||typeof X=="object"&&Object.prototype.toString.call(X)==="[object Date]"}function isValid(X){if(!isDate(X)&&typeof X!="number")return!1;const W=toDate(X);return!isNaN(Number(W))}function endOfMonth(X){const W=toDate(X),J=W.getMonth();return W.setFullYear(W.getFullYear(),J+1,0),W.setHours(23,59,59,999),W}function eachDayOfInterval(X,W){const J=toDate(X.start),te=toDate(X.end);let re=+J>+te;const ne=re?+J:+te,oe=re?te:J;oe.setHours(0,0,0,0);let de=1;const he=[];for(;+oe<=ne;)he.push(toDate(oe)),oe.setDate(oe.getDate()+de),oe.setHours(0,0,0,0);return re?he.reverse():he}function startOfMonth(X){const W=toDate(X);return W.setDate(1),W.setHours(0,0,0,0),W}function startOfYear(X){const W=toDate(X),J=constructFrom(X,0);return J.setFullYear(W.getFullYear(),0,1),J.setHours(0,0,0,0),J}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=(X,W,J)=>{let te;const re=formatDistanceLocale[X];return typeof re=="string"?te=re:W===1?te=re.one:te=re.other.replace("{{count}}",W.toString()),J!=null&&J.addSuffix?J.comparison&&J.comparison>0?"in "+te:te+" ago":te};function buildFormatLongFn(X){return(W={})=>{const J=W.width?String(W.width):X.defaultWidth;return X.formats[J]||X.formats[X.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=(X,W,J,te)=>formatRelativeLocale[X];function buildLocalizeFn(X){return(W,J)=>{const te=J!=null&&J.context?String(J.context):"standalone";let re;if(te==="formatting"&&X.formattingValues){const oe=X.defaultFormattingWidth||X.defaultWidth,de=J!=null&&J.width?String(J.width):oe;re=X.formattingValues[de]||X.formattingValues[oe]}else{const oe=X.defaultWidth,de=J!=null&&J.width?String(J.width):X.defaultWidth;re=X.values[de]||X.values[oe]}const ne=X.argumentCallback?X.argumentCallback(W):W;return re[ne]}}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=(X,W)=>{const J=Number(X),te=J%100;if(te>20||te<10)switch(te%10){case 1:return J+"st";case 2:return J+"nd";case 3:return J+"rd"}return J+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:X=>X-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(X){return(W,J={})=>{const te=J.width,re=te&&X.matchPatterns[te]||X.matchPatterns[X.defaultMatchWidth],ne=W.match(re);if(!ne)return null;const oe=ne[0],de=te&&X.parsePatterns[te]||X.parsePatterns[X.defaultParseWidth],he=Array.isArray(de)?findIndex(de,pe=>pe.test(oe)):findKey(de,pe=>pe.test(oe));let ue;ue=X.valueCallback?X.valueCallback(he):he,ue=J.valueCallback?J.valueCallback(ue):ue;const ce=W.slice(oe.length);return{value:ue,rest:ce}}}function findKey(X,W){for(const J in X)if(Object.prototype.hasOwnProperty.call(X,J)&&W(X[J]))return J}function findIndex(X,W){for(let J=0;J<X.length;J++)if(W(X[J]))return J}function buildMatchPatternFn(X){return(W,J={})=>{const te=W.match(X.matchPattern);if(!te)return null;const re=te[0],ne=W.match(X.parsePattern);if(!ne)return null;let oe=X.valueCallback?X.valueCallback(ne[0]):ne[0];oe=J.valueCallback?J.valueCallback(oe):oe;const de=W.slice(re.length);return{value:oe,rest:de}}}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:X=>parseInt(X,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:X=>X+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(X){const W=toDate(X);return differenceInCalendarDays(W,startOfYear(W))+1}function getISOWeek(X){const W=toDate(X),J=+startOfISOWeek(W)-+startOfISOWeekYear(W);return Math.round(J/millisecondsInWeek)+1}function getWeekYear(X,W){var ce,pe,fe,ge;const J=toDate(X),te=J.getFullYear(),re=getDefaultOptions$1(),ne=(W==null?void 0:W.firstWeekContainsDate)??((pe=(ce=W==null?void 0:W.locale)==null?void 0:ce.options)==null?void 0:pe.firstWeekContainsDate)??re.firstWeekContainsDate??((ge=(fe=re.locale)==null?void 0:fe.options)==null?void 0:ge.firstWeekContainsDate)??1,oe=constructFrom(X,0);oe.setFullYear(te+1,0,ne),oe.setHours(0,0,0,0);const de=startOfWeek(oe,W),he=constructFrom(X,0);he.setFullYear(te,0,ne),he.setHours(0,0,0,0);const ue=startOfWeek(he,W);return J.getTime()>=de.getTime()?te+1:J.getTime()>=ue.getTime()?te:te-1}function startOfWeekYear(X,W){var de,he,ue,ce;const J=getDefaultOptions$1(),te=(W==null?void 0:W.firstWeekContainsDate)??((he=(de=W==null?void 0:W.locale)==null?void 0:de.options)==null?void 0:he.firstWeekContainsDate)??J.firstWeekContainsDate??((ce=(ue=J.locale)==null?void 0:ue.options)==null?void 0:ce.firstWeekContainsDate)??1,re=getWeekYear(X,W),ne=constructFrom(X,0);return ne.setFullYear(re,0,te),ne.setHours(0,0,0,0),startOfWeek(ne,W)}function getWeek(X,W){const J=toDate(X),te=+startOfWeek(J,W)-+startOfWeekYear(J,W);return Math.round(te/millisecondsInWeek)+1}function addLeadingZeros(X,W){const J=X<0?"-":"",te=Math.abs(X).toString().padStart(W,"0");return J+te}const lightFormatters={y(X,W){const J=X.getFullYear(),te=J>0?J:1-J;return addLeadingZeros(W==="yy"?te%100:te,W.length)},M(X,W){const J=X.getMonth();return W==="M"?String(J+1):addLeadingZeros(J+1,2)},d(X,W){return addLeadingZeros(X.getDate(),W.length)},a(X,W){const J=X.getHours()/12>=1?"pm":"am";switch(W){case"a":case"aa":return J.toUpperCase();case"aaa":return J;case"aaaaa":return J[0];case"aaaa":default:return J==="am"?"a.m.":"p.m."}},h(X,W){return addLeadingZeros(X.getHours()%12||12,W.length)},H(X,W){return addLeadingZeros(X.getHours(),W.length)},m(X,W){return addLeadingZeros(X.getMinutes(),W.length)},s(X,W){return addLeadingZeros(X.getSeconds(),W.length)},S(X,W){const J=W.length,te=X.getMilliseconds(),re=Math.trunc(te*Math.pow(10,J-3));return addLeadingZeros(re,W.length)}},dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(X,W,J){const te=X.getFullYear()>0?1:0;switch(W){case"G":case"GG":case"GGG":return J.era(te,{width:"abbreviated"});case"GGGGG":return J.era(te,{width:"narrow"});case"GGGG":default:return J.era(te,{width:"wide"})}},y:function(X,W,J){if(W==="yo"){const te=X.getFullYear(),re=te>0?te:1-te;return J.ordinalNumber(re,{unit:"year"})}return lightFormatters.y(X,W)},Y:function(X,W,J,te){const re=getWeekYear(X,te),ne=re>0?re:1-re;if(W==="YY"){const oe=ne%100;return addLeadingZeros(oe,2)}return W==="Yo"?J.ordinalNumber(ne,{unit:"year"}):addLeadingZeros(ne,W.length)},R:function(X,W){const J=getISOWeekYear(X);return addLeadingZeros(J,W.length)},u:function(X,W){const J=X.getFullYear();return addLeadingZeros(J,W.length)},Q:function(X,W,J){const te=Math.ceil((X.getMonth()+1)/3);switch(W){case"Q":return String(te);case"QQ":return addLeadingZeros(te,2);case"Qo":return J.ordinalNumber(te,{unit:"quarter"});case"QQQ":return J.quarter(te,{width:"abbreviated",context:"formatting"});case"QQQQQ":return J.quarter(te,{width:"narrow",context:"formatting"});case"QQQQ":default:return J.quarter(te,{width:"wide",context:"formatting"})}},q:function(X,W,J){const te=Math.ceil((X.getMonth()+1)/3);switch(W){case"q":return String(te);case"qq":return addLeadingZeros(te,2);case"qo":return J.ordinalNumber(te,{unit:"quarter"});case"qqq":return J.quarter(te,{width:"abbreviated",context:"standalone"});case"qqqqq":return J.quarter(te,{width:"narrow",context:"standalone"});case"qqqq":default:return J.quarter(te,{width:"wide",context:"standalone"})}},M:function(X,W,J){const te=X.getMonth();switch(W){case"M":case"MM":return lightFormatters.M(X,W);case"Mo":return J.ordinalNumber(te+1,{unit:"month"});case"MMM":return J.month(te,{width:"abbreviated",context:"formatting"});case"MMMMM":return J.month(te,{width:"narrow",context:"formatting"});case"MMMM":default:return J.month(te,{width:"wide",context:"formatting"})}},L:function(X,W,J){const te=X.getMonth();switch(W){case"L":return String(te+1);case"LL":return addLeadingZeros(te+1,2);case"Lo":return J.ordinalNumber(te+1,{unit:"month"});case"LLL":return J.month(te,{width:"abbreviated",context:"standalone"});case"LLLLL":return J.month(te,{width:"narrow",context:"standalone"});case"LLLL":default:return J.month(te,{width:"wide",context:"standalone"})}},w:function(X,W,J,te){const re=getWeek(X,te);return W==="wo"?J.ordinalNumber(re,{unit:"week"}):addLeadingZeros(re,W.length)},I:function(X,W,J){const te=getISOWeek(X);return W==="Io"?J.ordinalNumber(te,{unit:"week"}):addLeadingZeros(te,W.length)},d:function(X,W,J){return W==="do"?J.ordinalNumber(X.getDate(),{unit:"date"}):lightFormatters.d(X,W)},D:function(X,W,J){const te=getDayOfYear(X);return W==="Do"?J.ordinalNumber(te,{unit:"dayOfYear"}):addLeadingZeros(te,W.length)},E:function(X,W,J){const te=X.getDay();switch(W){case"E":case"EE":case"EEE":return J.day(te,{width:"abbreviated",context:"formatting"});case"EEEEE":return J.day(te,{width:"narrow",context:"formatting"});case"EEEEEE":return J.day(te,{width:"short",context:"formatting"});case"EEEE":default:return J.day(te,{width:"wide",context:"formatting"})}},e:function(X,W,J,te){const re=X.getDay(),ne=(re-te.weekStartsOn+8)%7||7;switch(W){case"e":return String(ne);case"ee":return addLeadingZeros(ne,2);case"eo":return J.ordinalNumber(ne,{unit:"day"});case"eee":return J.day(re,{width:"abbreviated",context:"formatting"});case"eeeee":return J.day(re,{width:"narrow",context:"formatting"});case"eeeeee":return J.day(re,{width:"short",context:"formatting"});case"eeee":default:return J.day(re,{width:"wide",context:"formatting"})}},c:function(X,W,J,te){const re=X.getDay(),ne=(re-te.weekStartsOn+8)%7||7;switch(W){case"c":return String(ne);case"cc":return addLeadingZeros(ne,W.length);case"co":return J.ordinalNumber(ne,{unit:"day"});case"ccc":return J.day(re,{width:"abbreviated",context:"standalone"});case"ccccc":return J.day(re,{width:"narrow",context:"standalone"});case"cccccc":return J.day(re,{width:"short",context:"standalone"});case"cccc":default:return J.day(re,{width:"wide",context:"standalone"})}},i:function(X,W,J){const te=X.getDay(),re=te===0?7:te;switch(W){case"i":return String(re);case"ii":return addLeadingZeros(re,W.length);case"io":return J.ordinalNumber(re,{unit:"day"});case"iii":return J.day(te,{width:"abbreviated",context:"formatting"});case"iiiii":return J.day(te,{width:"narrow",context:"formatting"});case"iiiiii":return J.day(te,{width:"short",context:"formatting"});case"iiii":default:return J.day(te,{width:"wide",context:"formatting"})}},a:function(X,W,J){const re=X.getHours()/12>=1?"pm":"am";switch(W){case"a":case"aa":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"aaa":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return J.dayPeriod(re,{width:"narrow",context:"formatting"});case"aaaa":default:return J.dayPeriod(re,{width:"wide",context:"formatting"})}},b:function(X,W,J){const te=X.getHours();let re;switch(te===12?re=dayPeriodEnum.noon:te===0?re=dayPeriodEnum.midnight:re=te/12>=1?"pm":"am",W){case"b":case"bb":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"bbb":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return J.dayPeriod(re,{width:"narrow",context:"formatting"});case"bbbb":default:return J.dayPeriod(re,{width:"wide",context:"formatting"})}},B:function(X,W,J){const te=X.getHours();let re;switch(te>=17?re=dayPeriodEnum.evening:te>=12?re=dayPeriodEnum.afternoon:te>=4?re=dayPeriodEnum.morning:re=dayPeriodEnum.night,W){case"B":case"BB":case"BBB":return J.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"BBBBB":return J.dayPeriod(re,{width:"narrow",context:"formatting"});case"BBBB":default:return J.dayPeriod(re,{width:"wide",context:"formatting"})}},h:function(X,W,J){if(W==="ho"){let te=X.getHours()%12;return te===0&&(te=12),J.ordinalNumber(te,{unit:"hour"})}return lightFormatters.h(X,W)},H:function(X,W,J){return W==="Ho"?J.ordinalNumber(X.getHours(),{unit:"hour"}):lightFormatters.H(X,W)},K:function(X,W,J){const te=X.getHours()%12;return W==="Ko"?J.ordinalNumber(te,{unit:"hour"}):addLeadingZeros(te,W.length)},k:function(X,W,J){let te=X.getHours();return te===0&&(te=24),W==="ko"?J.ordinalNumber(te,{unit:"hour"}):addLeadingZeros(te,W.length)},m:function(X,W,J){return W==="mo"?J.ordinalNumber(X.getMinutes(),{unit:"minute"}):lightFormatters.m(X,W)},s:function(X,W,J){return W==="so"?J.ordinalNumber(X.getSeconds(),{unit:"second"}):lightFormatters.s(X,W)},S:function(X,W){return lightFormatters.S(X,W)},X:function(X,W,J){const te=X.getTimezoneOffset();if(te===0)return"Z";switch(W){case"X":return formatTimezoneWithOptionalMinutes(te);case"XXXX":case"XX":return formatTimezone(te);case"XXXXX":case"XXX":default:return formatTimezone(te,":")}},x:function(X,W,J){const te=X.getTimezoneOffset();switch(W){case"x":return formatTimezoneWithOptionalMinutes(te);case"xxxx":case"xx":return formatTimezone(te);case"xxxxx":case"xxx":default:return formatTimezone(te,":")}},O:function(X,W,J){const te=X.getTimezoneOffset();switch(W){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(te,":");case"OOOO":default:return"GMT"+formatTimezone(te,":")}},z:function(X,W,J){const te=X.getTimezoneOffset();switch(W){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(te,":");case"zzzz":default:return"GMT"+formatTimezone(te,":")}},t:function(X,W,J){const te=Math.trunc(X.getTime()/1e3);return addLeadingZeros(te,W.length)},T:function(X,W,J){const te=X.getTime();return addLeadingZeros(te,W.length)}};function formatTimezoneShort(X,W=""){const J=X>0?"-":"+",te=Math.abs(X),re=Math.trunc(te/60),ne=te%60;return ne===0?J+String(re):J+String(re)+W+addLeadingZeros(ne,2)}function formatTimezoneWithOptionalMinutes(X,W){return X%60===0?(X>0?"-":"+")+addLeadingZeros(Math.abs(X)/60,2):formatTimezone(X,W)}function formatTimezone(X,W=""){const J=X>0?"-":"+",te=Math.abs(X),re=addLeadingZeros(Math.trunc(te/60),2),ne=addLeadingZeros(te%60,2);return J+re+W+ne}const dateLongFormatter=(X,W)=>{switch(X){case"P":return W.date({width:"short"});case"PP":return W.date({width:"medium"});case"PPP":return W.date({width:"long"});case"PPPP":default:return W.date({width:"full"})}},timeLongFormatter=(X,W)=>{switch(X){case"p":return W.time({width:"short"});case"pp":return W.time({width:"medium"});case"ppp":return W.time({width:"long"});case"pppp":default:return W.time({width:"full"})}},dateTimeLongFormatter=(X,W)=>{const J=X.match(/(P+)(p+)?/)||[],te=J[1],re=J[2];if(!re)return dateLongFormatter(X,W);let ne;switch(te){case"P":ne=W.dateTime({width:"short"});break;case"PP":ne=W.dateTime({width:"medium"});break;case"PPP":ne=W.dateTime({width:"long"});break;case"PPPP":default:ne=W.dateTime({width:"full"});break}return ne.replace("{{date}}",dateLongFormatter(te,W)).replace("{{time}}",timeLongFormatter(re,W))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(X){return dayOfYearTokenRE.test(X)}function isProtectedWeekYearToken(X){return weekYearTokenRE.test(X)}function warnOrThrowProtectedError(X,W,J){const te=message(X,W,J);if(console.warn(te),throwTokens.includes(X))throw new RangeError(te)}function message(X,W,J){const te=X[0]==="Y"?"years":"days of the month";return`Use \`${X.toLowerCase()}\` instead of \`${X}\` (in \`${W}\`) for formatting ${te} to the input \`${J}\`; 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(X,W,J){var ce,pe,fe,ge;const te=getDefaultOptions$1(),re=te.locale??enUS,ne=te.firstWeekContainsDate??((pe=(ce=te.locale)==null?void 0:ce.options)==null?void 0:pe.firstWeekContainsDate)??1,oe=te.weekStartsOn??((ge=(fe=te.locale)==null?void 0:fe.options)==null?void 0:ge.weekStartsOn)??0,de=toDate(X);if(!isValid(de))throw new RangeError("Invalid time value");let he=W.match(longFormattingTokensRegExp$1).map(me=>{const ve=me[0];if(ve==="p"||ve==="P"){const be=longFormatters[ve];return be(me,re.formatLong)}return me}).join("").match(formattingTokensRegExp$1).map(me=>{if(me==="''")return{isToken:!1,value:"'"};const ve=me[0];if(ve==="'")return{isToken:!1,value:cleanEscapedString$1(me)};if(formatters[ve])return{isToken:!0,value:me};if(ve.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ve+"`");return{isToken:!1,value:me}});re.localize.preprocessor&&(he=re.localize.preprocessor(de,he));const ue={firstWeekContainsDate:ne,weekStartsOn:oe,locale:re};return he.map(me=>{if(!me.isToken)return me.value;const ve=me.value;(isProtectedWeekYearToken(ve)||isProtectedDayOfYearToken(ve))&&warnOrThrowProtectedError(ve,W,String(X));const be=formatters[ve[0]];return be(de,ve,re.localize,ue)}).join("")}function cleanEscapedString$1(X){const W=X.match(escapedStringRegExp$1);return W?W[1].replace(doubleQuoteRegExp$1,"'"):X}function getDay(X){return toDate(X).getDay()}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(X){let J=toDate(X).getDay();return J===0&&(J=7),J}function transpose(X,W){const J=W instanceof Date?constructFrom(W,0):new W(0);return J.setFullYear(X.getFullYear(),X.getMonth(),X.getDate()),J.setHours(X.getHours(),X.getMinutes(),X.getSeconds(),X.getMilliseconds()),J}const TIMEZONE_UNIT_PRIORITY=10;class Setter{constructor(){Tt(this,"subPriority",0)}validate(W,J){return!0}}class ValueSetter extends Setter{constructor(W,J,te,re,ne){super(),this.value=W,this.validateValue=J,this.setValue=te,this.priority=re,ne&&(this.subPriority=ne)}validate(W,J){return this.validateValue(W,this.value,J)}set(W,J,te){return this.setValue(W,J,this.value,te)}}class DateToSystemTimezoneSetter extends Setter{constructor(){super(...arguments);Tt(this,"priority",TIMEZONE_UNIT_PRIORITY);Tt(this,"subPriority",-1)}set(J,te){return te.timestampIsSet?J:constructFrom(J,transpose(J,Date))}}class Parser{run(W,J,te,re){const ne=this.parse(W,J,te,re);return ne?{setter:new ValueSetter(ne.value,this.validate,this.set,this.priority,this.subPriority),rest:ne.rest}:null}validate(W,J,te){return!0}}class EraParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",140);Tt(this,"incompatibleTokens",["R","u","t","T"])}parse(J,te,re){switch(te){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,te,re){return te.era=re,J.setFullYear(re,0,1),J.setHours(0,0,0,0),J}}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(X,W){return X&&{value:W(X.value),rest:X.rest}}function parseNumericPattern(X,W){const J=W.match(X);return J?{value:parseInt(J[0],10),rest:W.slice(J[0].length)}:null}function parseTimezonePattern(X,W){const J=W.match(X);if(!J)return null;if(J[0]==="Z")return{value:0,rest:W.slice(1)};const te=J[1]==="+"?1:-1,re=J[2]?parseInt(J[2],10):0,ne=J[3]?parseInt(J[3],10):0,oe=J[5]?parseInt(J[5],10):0;return{value:te*(re*millisecondsInHour+ne*millisecondsInMinute+oe*millisecondsInSecond),rest:W.slice(J[0].length)}}function parseAnyDigitsSigned(X){return parseNumericPattern(numericPatterns.anyDigitsSigned,X)}function parseNDigits(X,W){switch(X){case 1:return parseNumericPattern(numericPatterns.singleDigit,W);case 2:return parseNumericPattern(numericPatterns.twoDigits,W);case 3:return parseNumericPattern(numericPatterns.threeDigits,W);case 4:return parseNumericPattern(numericPatterns.fourDigits,W);default:return parseNumericPattern(new RegExp("^\\d{1,"+X+"}"),W)}}function parseNDigitsSigned(X,W){switch(X){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,W);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,W);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,W);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,W);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+X+"}"),W)}}function dayPeriodEnumToHours(X){switch(X){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(X,W){const J=W>0,te=J?W:1-W;let re;if(te<=50)re=X||100;else{const ne=te+50,oe=Math.trunc(ne/100)*100,de=X>=ne%100;re=X+oe-(de?100:0)}return J?re:1-re}function isLeapYearIndex(X){return X%400===0||X%4===0&&X%100!==0}class YearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",130);Tt(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(J,te,re){const ne=oe=>({year:oe,isTwoDigitYear:te==="yy"});switch(te){case"y":return mapValue(parseNDigits(4,J),ne);case"yo":return mapValue(re.ordinalNumber(J,{unit:"year"}),ne);default:return mapValue(parseNDigits(te.length,J),ne)}}validate(J,te){return te.isTwoDigitYear||te.year>0}set(J,te,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 te)||te.era===1?re.year:1-re.year;return J.setFullYear(oe,0,1),J.setHours(0,0,0,0),J}}class LocalWeekYearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",130);Tt(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(J,te,re){const ne=oe=>({year:oe,isTwoDigitYear:te==="YY"});switch(te){case"Y":return mapValue(parseNDigits(4,J),ne);case"Yo":return mapValue(re.ordinalNumber(J,{unit:"year"}),ne);default:return mapValue(parseNDigits(te.length,J),ne)}}validate(J,te){return te.isTwoDigitYear||te.year>0}set(J,te,re,ne){const oe=getWeekYear(J,ne);if(re.isTwoDigitYear){const he=normalizeTwoDigitYear(re.year,oe);return J.setFullYear(he,0,ne.firstWeekContainsDate),J.setHours(0,0,0,0),startOfWeek(J,ne)}const de=!("era"in te)||te.era===1?re.year:1-re.year;return J.setFullYear(de,0,ne.firstWeekContainsDate),J.setHours(0,0,0,0),startOfWeek(J,ne)}}class ISOWeekYearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",130);Tt(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(J,te){return parseNDigitsSigned(te==="R"?4:te.length,J)}set(J,te,re){const ne=constructFrom(J,0);return ne.setFullYear(re,0,4),ne.setHours(0,0,0,0),startOfISOWeek(ne)}}class ExtendedYearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",130);Tt(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(J,te){return parseNDigitsSigned(te==="u"?4:te.length,J)}set(J,te,re){return J.setFullYear(re,0,1),J.setHours(0,0,0,0),J}}class QuarterParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",120);Tt(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(J,te,re){switch(te){case"Q":case"QQ":return parseNDigits(te.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,te){return te>=1&&te<=4}set(J,te,re){return J.setMonth((re-1)*3,1),J.setHours(0,0,0,0),J}}class StandAloneQuarterParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",120);Tt(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(J,te,re){switch(te){case"q":case"qq":return parseNDigits(te.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,te){return te>=1&&te<=4}set(J,te,re){return J.setMonth((re-1)*3,1),J.setHours(0,0,0,0),J}}class MonthParser extends Parser{constructor(){super(...arguments);Tt(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Tt(this,"priority",110)}parse(J,te,re){const ne=oe=>oe-1;switch(te){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,te){return te>=0&&te<=11}set(J,te,re){return J.setMonth(re,1),J.setHours(0,0,0,0),J}}class StandAloneMonthParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",110);Tt(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(J,te,re){const ne=oe=>oe-1;switch(te){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,te){return te>=0&&te<=11}set(J,te,re){return J.setMonth(re,1),J.setHours(0,0,0,0),J}}function setWeek(X,W,J){const te=toDate(X),re=getWeek(te,J)-W;return te.setDate(te.getDate()-re*7),te}class LocalWeekParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",100);Tt(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(J,te,re){switch(te){case"w":return parseNumericPattern(numericPatterns.week,J);case"wo":return re.ordinalNumber(J,{unit:"week"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=1&&te<=53}set(J,te,re,ne){return startOfWeek(setWeek(J,re,ne),ne)}}function setISOWeek(X,W){const J=toDate(X),te=getISOWeek(J)-W;return J.setDate(J.getDate()-te*7),J}class ISOWeekParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",100);Tt(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(J,te,re){switch(te){case"I":return parseNumericPattern(numericPatterns.week,J);case"Io":return re.ordinalNumber(J,{unit:"week"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=1&&te<=53}set(J,te,re){return startOfISOWeek(setISOWeek(J,re))}}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{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"subPriority",1);Tt(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(J,te,re){switch(te){case"d":return parseNumericPattern(numericPatterns.date,J);case"do":return re.ordinalNumber(J,{unit:"date"});default:return parseNDigits(te.length,J)}}validate(J,te){const re=J.getFullYear(),ne=isLeapYearIndex(re),oe=J.getMonth();return ne?te>=1&&te<=DAYS_IN_MONTH_LEAP_YEAR[oe]:te>=1&&te<=DAYS_IN_MONTH[oe]}set(J,te,re){return J.setDate(re),J.setHours(0,0,0,0),J}}class DayOfYearParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"subpriority",1);Tt(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(J,te,re){switch(te){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,J);case"Do":return re.ordinalNumber(J,{unit:"date"});default:return parseNDigits(te.length,J)}}validate(J,te){const re=J.getFullYear();return isLeapYearIndex(re)?te>=1&&te<=366:te>=1&&te<=365}set(J,te,re){return J.setMonth(0,re),J.setHours(0,0,0,0),J}}function setDay(X,W,J){var pe,fe,ge,me;const te=getDefaultOptions$1(),re=(J==null?void 0:J.weekStartsOn)??((fe=(pe=J==null?void 0:J.locale)==null?void 0:pe.options)==null?void 0:fe.weekStartsOn)??te.weekStartsOn??((me=(ge=te.locale)==null?void 0:ge.options)==null?void 0:me.weekStartsOn)??0,ne=toDate(X),oe=ne.getDay(),he=(W%7+7)%7,ue=7-re,ce=W<0||W>6?W-(oe+ue)%7:(he+ue)%7-(oe+ue)%7;return addDays(ne,ce)}class DayParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(J,te,re){switch(te){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,te){return te>=0&&te<=6}set(J,te,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}}class LocalDayParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(J,te,re,ne){const oe=de=>{const he=Math.floor((de-1)/7)*7;return(de+ne.weekStartsOn+6)%7+he};switch(te){case"e":case"ee":return mapValue(parseNDigits(te.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,te){return te>=0&&te<=6}set(J,te,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}}class StandAloneLocalDayParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(J,te,re,ne){const oe=de=>{const he=Math.floor((de-1)/7)*7;return(de+ne.weekStartsOn+6)%7+he};switch(te){case"c":case"cc":return mapValue(parseNDigits(te.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,te){return te>=0&&te<=6}set(J,te,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}}function setISODay(X,W){const J=toDate(X),te=getISODay(J),re=W-te;return addDays(J,re)}class ISODayParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",90);Tt(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(J,te,re){const ne=oe=>oe===0?7:oe;switch(te){case"i":case"ii":return parseNDigits(te.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,te){return te>=1&&te<=7}set(J,te,re){return J=setISODay(J,re),J.setHours(0,0,0,0),J}}class AMPMParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",80);Tt(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(J,te,re){switch(te){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,te,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}}class AMPMMidnightParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",80);Tt(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(J,te,re){switch(te){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,te,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}}class DayPeriodParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",80);Tt(this,"incompatibleTokens",["a","b","t","T"])}parse(J,te,re){switch(te){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,te,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}}class Hour1to12Parser extends Parser{constructor(){super(...arguments);Tt(this,"priority",70);Tt(this,"incompatibleTokens",["H","K","k","t","T"])}parse(J,te,re){switch(te){case"h":return parseNumericPattern(numericPatterns.hour12h,J);case"ho":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=1&&te<=12}set(J,te,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}}class Hour0to23Parser extends Parser{constructor(){super(...arguments);Tt(this,"priority",70);Tt(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(J,te,re){switch(te){case"H":return parseNumericPattern(numericPatterns.hour23h,J);case"Ho":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=0&&te<=23}set(J,te,re){return J.setHours(re,0,0,0),J}}class Hour0To11Parser extends Parser{constructor(){super(...arguments);Tt(this,"priority",70);Tt(this,"incompatibleTokens",["h","H","k","t","T"])}parse(J,te,re){switch(te){case"K":return parseNumericPattern(numericPatterns.hour11h,J);case"Ko":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=0&&te<=11}set(J,te,re){return J.getHours()>=12&&re<12?J.setHours(re+12,0,0,0):J.setHours(re,0,0,0),J}}class Hour1To24Parser extends Parser{constructor(){super(...arguments);Tt(this,"priority",70);Tt(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(J,te,re){switch(te){case"k":return parseNumericPattern(numericPatterns.hour24h,J);case"ko":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=1&&te<=24}set(J,te,re){const ne=re<=24?re%24:re;return J.setHours(ne,0,0,0),J}}class MinuteParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",60);Tt(this,"incompatibleTokens",["t","T"])}parse(J,te,re){switch(te){case"m":return parseNumericPattern(numericPatterns.minute,J);case"mo":return re.ordinalNumber(J,{unit:"minute"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=0&&te<=59}set(J,te,re){return J.setMinutes(re,0,0),J}}class SecondParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",50);Tt(this,"incompatibleTokens",["t","T"])}parse(J,te,re){switch(te){case"s":return parseNumericPattern(numericPatterns.second,J);case"so":return re.ordinalNumber(J,{unit:"second"});default:return parseNDigits(te.length,J)}}validate(J,te){return te>=0&&te<=59}set(J,te,re){return J.setSeconds(re,0),J}}class FractionOfSecondParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",30);Tt(this,"incompatibleTokens",["t","T"])}parse(J,te){const re=ne=>Math.trunc(ne*Math.pow(10,-te.length+3));return mapValue(parseNDigits(te.length,J),re)}set(J,te,re){return J.setMilliseconds(re),J}}class ISOTimezoneWithZParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",10);Tt(this,"incompatibleTokens",["t","T","x"])}parse(J,te){switch(te){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,te,re){return te.timestampIsSet?J:constructFrom(J,J.getTime()-getTimezoneOffsetInMilliseconds(J)-re)}}class ISOTimezoneParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",10);Tt(this,"incompatibleTokens",["t","T","X"])}parse(J,te){switch(te){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,te,re){return te.timestampIsSet?J:constructFrom(J,J.getTime()-getTimezoneOffsetInMilliseconds(J)-re)}}class TimestampSecondsParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",40);Tt(this,"incompatibleTokens","*")}parse(J){return parseAnyDigitsSigned(J)}set(J,te,re){return[constructFrom(J,re*1e3),{timestampIsSet:!0}]}}class TimestampMillisecondsParser extends Parser{constructor(){super(...arguments);Tt(this,"priority",20);Tt(this,"incompatibleTokens","*")}parse(J){return parseAnyDigitsSigned(J)}set(J,te,re){return[constructFrom(J,re),{timestampIsSet:!0}]}}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(X,W,J,te){var ve,be,ye,we;const re=getDefaultOptions(),ne=re.locale??enUS,oe=re.firstWeekContainsDate??((be=(ve=re.locale)==null?void 0:ve.options)==null?void 0:be.firstWeekContainsDate)??1,de=re.weekStartsOn??((we=(ye=re.locale)==null?void 0:ye.options)==null?void 0:we.weekStartsOn)??0,he={firstWeekContainsDate:oe,weekStartsOn:de,locale:ne},ue=[new DateToSystemTimezoneSetter],ce=W.match(longFormattingTokensRegExp).map(Se=>{const _e=Se[0];if(_e in longFormatters){const Ce=longFormatters[_e];return Ce(Se,ne.formatLong)}return Se}).join("").match(formattingTokensRegExp),pe=[];for(let Se of ce){isProtectedWeekYearToken(Se)&&warnOrThrowProtectedError(Se,W,X),isProtectedDayOfYearToken(Se)&&warnOrThrowProtectedError(Se,W,X);const _e=Se[0],Ce=parsers[_e];if(Ce){const{incompatibleTokens:Le}=Ce;if(Array.isArray(Le)){const Ie=pe.find(ze=>Le.includes(ze.token)||ze.token===_e);if(Ie)throw new RangeError(`The format string mustn't contain \`${Ie.fullToken}\` and \`${Se}\` at the same time`)}else if(Ce.incompatibleTokens==="*"&&pe.length>0)throw new RangeError(`The format string mustn't contain \`${Se}\` and any other token at the same time`);pe.push({token:_e,fullToken:Se});const Pe=Ce.run(X,Se,ne.match,he);if(!Pe)return constructFrom(J,NaN);ue.push(Pe.setter),X=Pe.rest}else{if(_e.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_e+"`");if(Se==="''"?Se="'":_e==="'"&&(Se=cleanEscapedString(Se)),X.indexOf(Se)===0)X=X.slice(Se.length);else return constructFrom(J,NaN)}}if(X.length>0&¬WhitespaceRegExp.test(X))return constructFrom(J,NaN);const fe=ue.map(Se=>Se.priority).sort((Se,_e)=>_e-Se).filter((Se,_e,Ce)=>Ce.indexOf(Se)===_e).map(Se=>ue.filter(_e=>_e.priority===Se).sort((_e,Ce)=>Ce.subPriority-_e.subPriority)).map(Se=>Se[0]);let ge=toDate(J);if(isNaN(ge.getTime()))return constructFrom(J,NaN);const me={};for(const Se of fe){if(!Se.validate(ge,he))return constructFrom(J,NaN);const _e=Se.set(ge,me,he);Array.isArray(_e)?(ge=_e[0],Object.assign(me,_e[1])):ge=_e}return constructFrom(J,ge)}function cleanEscapedString(X){return X.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}const o$w=':host{display:inline-block;vertical-align:middle}.dss-icon-button{position:relative;background-color:transparent;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.3s all ease-in;width:24px;height:24px;font-size:var(--icon-size-md)}.dss-icon-button .dss-icon-button__icon{z-index:100}.dss-icon-button:before{content:"";position:absolute;top:50%;left:50%;width:32px;height:32px;background-color:transparent;border-radius:100%;transform:translate(-50%,-50%);transition:.3s all ease-in;z-index:0}.dss-icon-button--sm{height:16px;width:16px;font-size:var(--icon-size-sm)}.dss-icon-button.dss-icon-button--sm:before{width:24px;height:24px}.dss-icon-button--lg{height:32px;width:32px;font-size:var(--icon-size-lg)}.dss-icon-button.dss-icon-button--lg:before{width:40px;height:40px}.dss-icon-button:disabled{cursor:not-allowed;color:var(--color-neutral-400)}.dss-icon-button[hidden]{display:none}.dss-icon-button:focus-visible:enabled{outline:0}.dss-icon-button:focus-visible:enabled:before{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--neutral,.dss-icon-button--default{color:var(--color-neutral-700)}.dss-icon-button--neutral:hover:enabled:before,.dss-icon-button--default:hover:enabled:before{background-color:var(--color-neutral-100)}.dss-icon-button--neutral:active:enabled:before,.dss-icon-button--default:active:enabled:before{background-color:var(--color-neutral-50);transition:none}.dss-icon-button--white-default,.dss-icon-button--ghost{color:var(--color-white);transition:none}.dss-icon-button--white-default:hover:enabled:before,.dss-icon-button--ghost:hover:enabled:before{background-color:var(--color-white);opacity:.4}.dss-icon-button--white-default:active:enabled:before,.dss-icon-button--ghost:active:enabled:before{background-color:var(--color-white);opacity:.2}.dss-icon-button--ghost:disabled,.dss-icon-button--white-default:disabled{opacity:.7;color:var(--color-white)}.dss-icon-button--primary{color:var(--color-primary-700)}.dss-icon-button--primary:hover:enabled:before{background-color:var(--color-primary-100)}.dss-icon-button--primary:active:enabled:before{background-color:var(--color-primary-50);transition:none}.dss-icon-button--error{color:var(--color-red-700)}.dss-icon-button--error:hover:enabled:before{background-color:var(--color-red-100)}.dss-icon-button--error:active:enabled:before{background-color:var(--color-red-50)}.dss-icon-button--warning{color:var(--color-yellow-800)}.dss-icon-button--warning:hover:enabled:before{background-color:var(--color-yellow-100)}.dss-icon-button--warning:active:enabled:before{background-color:var(--color-yellow-50)}.dss-icon-button--success{color:var(--color-green-700)}.dss-icon-button--success:hover:enabled:before{background-color:var(--color-green-100)}.dss-icon-button--success:active:enabled:before{background-color:var(--color-green-50)}.dss-icon-button--info{color:var(--color-blue-700)}.dss-icon-button--info:hover:enabled:before{background-color:var(--color-blue-100)}.dss-icon-button--info:active:enabled:before{background-color:var(--color-blue-50)}.dss-icon-button--orange{color:var(--color-orange-700)}.dss-icon-button--orange:hover:enabled:before{background-color:var(--color-orange-100)}.dss-icon-button--orange:active:enabled:before{background-color:var(--color-orange-50)}.dss-icon-button.dss-icon-button--orange:focus-visible:enabled:before{outline:var(--dss-spacing-xxs) solid var(--color-orange-200)}.dss-icon-button--purple{color:var(--color-purple-500)}.dss-icon-button--purple:hover:enabled:before{background-color:var(--color-purple-100)}.dss-icon-button--purple:active:enabled:before{background-color:var(--color-purple-50)}.dss-icon-button.dss-icon-button--purple:focus-visible:enabled:before{outline:var(--dss-spacing-xxs) solid var(--color-purple-200)}',e$x=':host{display:inline-block;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.calendar__container{position:relative;background:#fff;box-shadow:0 4px 8px 3px #0000000d,0 1px 3px #0000001a;margin-bottom:var(--dss-spacing-xxs);border-radius:var(--dss-radius-sm)}.calendar__content{padding:var(--dss-spacing-md);border-radius:8px 8px 0 0}.calendar__content--buttons{border-top:var(--dss-border-width-sm) solid var(--color-neutral-100)}.calendar__content:last-child{border-radius:0 0 8px 8px;box-shadow:none}.calendar__header{display:flex;justify-content:space-between;align-items:center;gap:var(--dss-spacing-xs);margin-bottom:16px}.calendar__header-item{display:flex;justify-content:center;align-items:center;gap:var(--dss-spacing-xxs)}.calendar__header-item--click{font-weight:var(--font-semibold);color:var(--color-neutral-900);border-radius:var(--dss-radius-xs);padding:var(--dss-spacing-xxs);cursor:pointer}.calendar__header-item--click:hover{background-color:var(--color-primary-50)}.calendar__header-item--click:active{background-color:var(--color-primary-100)}.calendar__header-item--click:focus-visible{outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.calendar__header-item--click:disabled{cursor:not-allowed;color:var(--color-neutral-500)}.calendar__header-buttons .dss-icon-button.dss-icon-button--lg,.calendar-selector--year .dss-icon-button.dss-icon-button--lg{width:32px;height:32px;box-sizing:border-box}.calendar__header-title{margin:auto;font-family:var(--font-family);font-style:normal;font-weight:600;font-size:16px;line-height:24px;color:#414141}.calendar__days-content{display:flex;flex-direction:column;gap:6px}.calendar__week-names,.calendar__days{list-style-type:none;padding:0;margin:0;gap:8px 6px;display:grid;grid-template-columns:repeat(7,1fr)}.calendar__week-names>li{text-align:center}.calendar__day-item{position:relative;height:32px;width:32px;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;z-index:999;border-radius:100%;cursor:pointer;font-size:14px;font-family:var(--font-family);font-weight:var(--font-semibold);line-height:24px;color:var(--color-neutral-900)}.calendar__day-item--weekend{font-weight:var(--font-regular)}.calendar__day-item--range:before{position:absolute;content:"";top:0;bottom:0;left:-6px;right:-6px;background:var(--color-primary-100);z-index:-2}.calendar__day-item--range:hover{color:#fff!important}.calendar__day-item--range:hover:after{position:absolute;content:"";width:100%;height:100%;border-radius:100%;background:var(--color-primary-500);color:#fff;z-index:-1}.calendar__day-item--active{color:#0073e6;box-shadow:inset 0 0 0 2px #0073e6}.calendar__day-item:hover:enabled,.calendar__day-item--selected{background:#0073e6!important;color:#fff}.calendar__day-item--selected-range-start,.calendar__day-item--selected-range-end{color:#fff}.calendar__day-item--selected-range-start:before,.calendar__day-item--selected-range-end:not(.calendar__day-item--selected-range-start):before{position:absolute;content:"";top:0;bottom:0;background:var(--color-primary-100);z-index:-2}.calendar__day-item--selected-range-start:after,.calendar__day-item--selected-range-end:not(.calendar__day-item--selected-range-start):after{position:absolute;content:"";width:100%;height:100%;border-radius:100%;background:var(--color-primary-500);color:#fff;z-index:-1}.calendar__day-item--selected-range-start:before{left:50%;right:-6px}.calendar__day-item--selected-range-end:not(.calendar__day-item--selected-range-start):before{left:-6px;right:50%}.calendar__day-item:not(.calendar__day-item--range-enabled):hover:enabled{transition:all .3s ease-in}.calendar__day-item.calendar__day-item--range-enabled:hover:enabled{transition:background .3s ease-in}.calendar__day-item:active:enabled{background:#308deb;transition:none}.calendar__day-item:disabled{pointer-events:none;opacity:.5}.calendar__time-container{display:flex;margin:auto;justify-content:center;align-items:center;gap:12px;font-weight:600;font-size:14px;line-height:24px;color:#1d1d1d}.calendar__time-content{display:flex;flex-direction:column;gap:8px;align-items:center}.calendar__buttons{display:flex;justify-content:center;align-items:center;gap:16px}.dss-datepicker__timepicker{position:relative;box-sizing:border-box;padding:var(--dss-spacing-xs) var(--dss-spacing-md) var(--dss-spacing-md)}.calendar-selector{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;padding:var(--dss-spacing-md);background-color:var(--color-white);z-index:1000;border-radius:var(--dss-radius-sm)}.calendar-selector-title{font-size:16px;line-height:24px;font-weight:var(--font-semibold);margin-bottom:var(--dss-spacing-md)}.calendar-selector-title__actions{display:flex;justify-content:flex-end;align-items:center;gap:0}.calendar-selector-title--years{display:flex;justify-content:space-between;align-items:center;gap:var(--dss-spacing-xs)}.calendar-selector-options{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--dss-spacing-xs) var(--dss-spacing-xxs)}.calendar-selector-options--4col{grid-template-columns:repeat(4,1fr)}.calendar-selector-options__item{height:32px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;font-size:14px;font-weight:var(--font-semibold);text-transform:lowercase;text-align:center;color:var(--color-neutral-900);border-radius:var(--dss-radius-xs);overflow:hidden;cursor:pointer;padding:var(--dss-spacing-xxs) var(--dss-spacing-xs)}.calendar-selector-options__item--current{color:var(--color-primary-700)}.calendar-selector-options__item--selected{background-color:var(--color-primary-500);color:var(--color-white)}.calendar-selector-options__item:hover{background-color:var(--color-primary-600);color:var(--color-white)}.calendar-selector-options__item:active{background-color:var(--color-primary-400);color:var(--color-white)}.calendar-selector-options__item:focus-visible{outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.calendar-selector-options__item:disabled{cursor:not-allowed;color:var(--color-neutral-500)}',h$j=er`dss-timepicker${tr(f$h())}`,i$m=er`dss-icon${tr(f$h())}`,r$A=er`dss-icon-button${tr(f$h())}`,s$i=er`dss-button${tr(f$h())}`,S$9=X=>{var W,J,te,re;return ke`
|
|
470
465
|
<div
|
|
471
466
|
class="calendar__container"
|
|
472
467
|
@keydown="${X._handleCalendarKeydown}"
|
|
@@ -741,7 +736,11 @@ ${!X.onlyIcon&&X.variant==="link"?ke`
|
|
|
741
736
|
</div>
|
|
742
737
|
`})}
|
|
743
738
|
</div>
|
|
744
|
-
`;var y$b=Object.defineProperty,s$e=(X,W,J,te)=>{for(var re=void 0,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=oe(W,J,re)||re);return re&&y$b(W,J,re),re};let l$i=class extends h$n{constructor(){super(...arguments),this.fullWidth=!1,this.size="md",this.tabs=[]}connectedCallback(){super.connectedCallback(),this._initializeSelectedTab()}static get styles(){return[r$J(e$D),r$J(x$4),r$J(t$d)]}_onSelect(W){this.tabSelected=W,this.tabs=this.tabs.map(J=>{var te;return{...J,selected:J.label===((te=this.tabSelected)==null?void 0:te.label)}}),this.dispatchEvent(new CustomEvent("onChange",{detail:this.tabSelected.label}))}_checkFullWidth(){this.fullWidth?this.classList.add("full-width"):this.classList.remove("full-width")}_initializeSelectedTab(){this.tabSelected=this.tabs.find(W=>W.selected)||this.tabs.find(W=>!W.disabled)}updated(W){W.has("fullWidth")&&this._checkFullWidth()}render(){return $$7(this)}};s$e([n$v(o$G)],l$i.prototype,"fullWidth"),s$e([n$v({type:String})],l$i.prototype,"size"),s$e([n$v({type:Array})],l$i.prototype,"tabs"),s$e([r$G()],l$i.prototype,"tabSelected");function n$p(X){X&&X.focus()}function f$e(X,W,J){let te=0;const re=X.querySelectorAll(J),ne=re.length-1;W===re[0]?n$p(re[ne]):(re.forEach((oe,de)=>{oe===W&&(te=de)}),n$p(re[te-1]))}function u$k(X,W,J){let te=0;const re=X.querySelectorAll(J),ne=re.length-1;W===re[ne]?n$p(re[0]):(re.forEach((oe,de)=>{oe===W&&(te=de)}),n$p(re[te+1]))}function r$x(X,W,J){const te=X.querySelector(`${J}[tabindex="0"]`);te==null||te.setAttribute("tabindex","-1"),W.setAttribute("tabindex","0"),W.click()}function u$j(X,W,J){return X||(X=0),W||(W=0),J==="asc"?X-W:W-X}function f$d(X,W,J){return X||(X=new Date("1900-01-01")),W||(W=new Date("1900-01-01")),J==="asc"?X.getTime()-W.getTime():W.getTime()-X.getTime()}function m$b(X,W,J){return X||(X=""),W||(W=""),J==="asc"?X.localeCompare(W):W.localeCompare(X)}function a$i(X,W,J="asc",te){return[...X].sort((re,ne)=>{switch(te){case"number":return u$j(re[W],ne[W],J);case"date":return f$d(new Date(re[W]),new Date(ne[W]),J);case"string":return m$b(re[W],ne[W],J);default:return 0}})}const r$w="*{scrollbar-width:thin;scrollbar-color:var(--color-neutral-100) var(--color-white)}*::-webkit-scrollbar{width:6px}*::-webkit-scrollbar-track{background:var(--color-white);border-radius:128px}*::-webkit-scrollbar-thumb{background-color:var(--color-neutral-100);border-radius:128px}",e$t=":host{display:block;width:100%;height:100%}.dss-custom-table{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.dss-custom-table-header{position:relative;z-index:300;background-color:var(--color-white)}.dss-custom-table-header,.dss-custom-table-footer{flex:0 1 auto}.dss-custom-table-body{flex:1 1 auto;overflow:auto}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:var(--dss-spacing-xs);padding:var(--dss-spacing-md);border-top:var(--dss-border-width-sm) solid var(--color-neutral-100);margin-top:var(--dss-spacing-md)}.table-footer-description{color:var(--color-neutral-900);font-size:16px;font-weight:var(--font-bold)}::slotted(.table-footer-actions){display:flex;justify-content:flex-end;align-items:center;gap:var(--dss-spacing-xs)}";var B$2=Object.defineProperty,N$1=Object.getOwnPropertyDescriptor,l$h=(X,W,J,te)=>{for(var re=te>1?void 0:te?N$1(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&B$2(W,J,re),re};const k$2=er`dss-icon${tr(f$h())}`,v$7=er`dss-table-header${tr(f$h())}`,$$6=er`dss-table-pagination${tr(f$h())}`;let o$v=class extends h$n{constructor(){super(...arguments),this.internalSelectedCounter=0,this.showConfig=!1,this.configTableLabel="Configurar taula",this._hideHeader=!1,this._hidePaginator=!1,this._columnsHeader=[],this._data=void 0,this._paginatedData=void 0,this._currentSortColumn="",this._currentSortType="string",this._currentSortOrder="none",this._multiselect=!1,this._radioselect=!1,this._allRowsSelected=!1,this._selectedRowsLabel="files seleccionades",this._isFirstUpdate=!0,this._shouldUpdate=!1,this._table=void 0,this._currentRowsChecked=0,this._selectedRowsCounter=void 0,this._tableTitle="",this._filters=[],this._innerFilters=!1,this._expandTable=!1,this._expandLabel="Ampliar",this._collapseLabel="Reduir",this._filtersLabel="Selecció",this._cleanFiltersLabel="Netejar filtres",this._noFiltersLabel="No hi ha filtres seleccionats",this._isTableHeaderCreated=!1,this._hideHeaderTitleAndExpand=!1,this._disableSorting=!1,this._isPaginationStarted=!1,this._totalResults=void 0,this._currentIndex=1,this._pageSize=10,this._pageSizeOptions=[5,10,20],this._resultstext="Resultats",this._rowsperpagetext="Files per pàgina",this._paginationState=void 0,this._pageSizeOptionsDisabled=!1,this._hidePaginationResults=!1,this._hideFooter=!1,this.fixedColumnsBefore=void 0,this.fixedColumnsAfter=void 0,this.tableInfo=void 0}static get styles(){return[r$J(i$t),r$J(r$w),r$J(e$u),r$J(e$t)]}set hideHeader(W){const J=this._hideHeader;this._hideHeader=W,this.requestUpdate("hideHeader",J)}get hideHeader(){return this._hideHeader}set hidePaginator(W){const J=this._hidePaginator;this._hidePaginator=W,this.requestUpdate("hidePaginator",J)}get hidePaginator(){return this._hidePaginator}set columnsHeader(W){const J=this._columnsHeader;this._columnsHeader=W,this.requestUpdate("columnsHeader",J)}get columnsHeader(){return this._columnsHeader}set data(W){const J=this._data;this._data=W,this.requestUpdate("data",J)}get data(){return this._data||[]}set multiselect(W){const J=this._multiselect;this._multiselect=W,this.requestUpdate("multiselect",J)}get multiselect(){return this._multiselect}set radioselect(W){const J=this._radioselect;this._radioselect=W,this.requestUpdate("radioselect",J)}get radioselect(){return this._radioselect}set selectedRowsLabel(W){const J=this._selectedRowsLabel;this._selectedRowsLabel=W,this.requestUpdate("selectedRowsLabel",J)}get selectedRowsLabel(){return this._selectedRowsLabel}set selectedRowsCounter(W){const J=this._selectedRowsCounter;this._selectedRowsCounter=W,this.requestUpdate("selectedRowsCounter",J)}get selectedRowsCounter(){return this._selectedRowsCounter||0}set tableTitle(W){const J=this._tableTitle;this._tableTitle=W,this.requestUpdate("tableTitle",J)}get tableTitle(){return this._tableTitle}set filters(W){const J=this._filters;this._filters=W,this.requestUpdate("filters",J)}get filters(){return this._filters}set innerFilters(W){const J=this._innerFilters;this._innerFilters=W,this.requestUpdate("innerFilters",J)}get innerFilters(){return this._innerFilters}set expandTable(W){const J=this._expandTable;this._expandTable=W,this.requestUpdate("expandTable",J)}get expandTable(){return this._expandTable}set expandLabel(W){const J=this._expandLabel;this._expandLabel=W,this.requestUpdate("expandLabel",J)}get expandLabel(){return this._expandLabel}set collapseLabel(W){const J=this._collapseLabel;this._collapseLabel=W,this.requestUpdate("collapseLabel",J)}get collapseLabel(){return this._collapseLabel}set filtersLabel(W){const J=this._filtersLabel;this._filtersLabel=W,this.requestUpdate("filtersLabel",J)}get filtersLabel(){return this._filtersLabel}set cleanFiltersLabel(W){const J=this._cleanFiltersLabel;this._cleanFiltersLabel=W,this.requestUpdate("cleanFiltersLabel",J)}get cleanFiltersLabel(){return this._cleanFiltersLabel}set noFiltersLabel(W){const J=this._noFiltersLabel;this._noFiltersLabel=W,this.requestUpdate("noFiltersLabel",J)}get noFiltersLabel(){return this._noFiltersLabel}set hideHeaderTitleAndExpand(W){const J=this._hideHeaderTitleAndExpand;this._hideHeaderTitleAndExpand=W,this.requestUpdate("hideHeaderTitleAndExpand",J)}get hideHeaderTitleAndExpand(){return this._hideHeaderTitleAndExpand}set disableSorting(W){const J=this._disableSorting;this._disableSorting=W,this.requestUpdate("disableSorting",J)}get disableSorting(){return this._disableSorting}set totalResults(W){const J=this._totalResults;this._totalResults=W,this.requestUpdate("totalResults",J)}get totalResults(){return this._totalResults||0}set currentIndex(W){const J=this._currentIndex;this._currentIndex=W,this.requestUpdate("currentIndex",J)}get currentIndex(){return this._currentIndex}set pageSize(W){const J=this._pageSize;this._pageSize=W,this.requestUpdate("pageSize",J)}get pageSize(){return this._pageSize}set pageSizeOptions(W){const J=this._pageSizeOptions;this._pageSizeOptions=W,this.requestUpdate("pageSizeOptions",J)}get pageSizeOptions(){return this._pageSizeOptions}set resultsLabel(W){const J=this._resultstext;this._resultstext=W,this.requestUpdate("resultsLabel",J)}get resultsLabel(){return this._resultstext}set rowsPerPageLabel(W){const J=this._rowsperpagetext;this._rowsperpagetext=W,this.requestUpdate("rowsperpageLabel",J)}get rowsPerPageLabel(){return this._rowsperpagetext}set hidePaginationResults(W){const J=this._hidePaginationResults;this._hidePaginationResults=W,this.requestUpdate("hidePaginationResults",J)}get hidePaginationResults(){return this._hidePaginationResults}set pageSizeOptionsDisabled(W){const J=this._pageSizeOptionsDisabled;this._pageSizeOptionsDisabled=W,this.requestUpdate("pageSizeOptionsDisabled",J)}get pageSizeOptionsDisabled(){return this._pageSizeOptionsDisabled}set hideFooter(W){const J=this._hideFooter;this._hideFooter=W,this.requestUpdate("hideFooter",J)}get hideFooter(){return this._hideFooter}_getDataLength(){let W=0;return this._totalResults!==void 0&&this._totalResults>=0?W=this._totalResults:this._data&&(W=this._data.length),W}_sortBy(W,J,te,re,ne){this._currentSortColumn=J,this._currentSortType=te,re?re==="none"?this._currentSortOrder="asc":re==="asc"?this._currentSortOrder="desc":re==="desc"&&(this._currentSortOrder="none"):this._currentSortOrder="asc",this._updateColumnSortState();let oe;return this._currentSortOrder==="none"?oe=W:oe=a$i(W,this._currentSortColumn,this._currentSortOrder,te),oe&&!ne&&this._dispatchSort(oe),oe}_updateColumnSortState(){this._columnsHeader.forEach(W=>{W.column===this._currentSortColumn?W.sortOrder=this._currentSortOrder:W.sortOrder&&(W.sortOrder="none")})}_onSelectAll(){if(this._table){this._allRowsSelected=!this._allRowsSelected;let W=0,J=0;const te=this._table.querySelectorAll(".dss-checkbox--multiselect");te.forEach(re=>{re.disabled?J+=1:(re.checked||(W+=1),re.checked=this._allRowsSelected)}),this._allRowsSelected?this._currentRowsChecked+=W:this._currentRowsChecked-=te.length-J,this._updateTableFooterRowsChecked(),this._dispatchMultiselect()}}_rowsCheckedListener(W){this._table&&W.tagName==="INPUT"&&W.type==="checkbox"&&W.classList.contains("dss-checkbox")&&!W.classList.contains("dss-checkbox--thead")&&(W.checked?this._currentRowsChecked+=1:this._currentRowsChecked-=1,this._updateTableFooterRowsChecked())}_updateTableFooterRowsChecked(){this._selectedRowsCounter===void 0&&(this.internalSelectedCounter=this._currentRowsChecked)}_updateTableHeader(){if(this._table){const W=this._table.querySelector(".dss-custom-table");let J=W.querySelector("thead");J||(J=document.createElement("thead"),J.classList.add("dss-thead"),W.insertBefore(J,W.firstChild)),Q(this._generateTableHeaderHTML(),J)}}_generateTableHeaderHTML(){let W=!0,J=ke``,te=ke``;this._multiselect&&(J=ke`
|
|
739
|
+
`;var y$b=Object.defineProperty,s$e=(X,W,J,te)=>{for(var re=void 0,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=oe(W,J,re)||re);return re&&y$b(W,J,re),re};let l$i=class extends h$n{constructor(){super(...arguments),this.fullWidth=!1,this.size="md",this.tabs=[]}connectedCallback(){super.connectedCallback(),this._initializeSelectedTab()}static get styles(){return[r$J(e$D),r$J(x$4),r$J(t$d)]}_onSelect(W){this.tabSelected=W,this.tabs=this.tabs.map(J=>{var te;return{...J,selected:J.label===((te=this.tabSelected)==null?void 0:te.label)}}),this.dispatchEvent(new CustomEvent("onChange",{detail:this.tabSelected.label}))}_checkFullWidth(){this.fullWidth?this.classList.add("full-width"):this.classList.remove("full-width")}_initializeSelectedTab(){this.tabSelected=this.tabs.find(W=>W.selected)||this.tabs.find(W=>!W.disabled)}updated(W){W.has("fullWidth")&&this._checkFullWidth()}render(){return $$7(this)}};s$e([n$v(o$G)],l$i.prototype,"fullWidth"),s$e([n$v({type:String})],l$i.prototype,"size"),s$e([n$v({type:Array})],l$i.prototype,"tabs"),s$e([r$G()],l$i.prototype,"tabSelected");/**
|
|
740
|
+
* @license
|
|
741
|
+
* Copyright 2018 Google LLC
|
|
742
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
743
|
+
*/const to=X=>X??D$1;function n$p(X){X&&X.focus()}function f$e(X,W,J){let te=0;const re=X.querySelectorAll(J),ne=re.length-1;W===re[0]?n$p(re[ne]):(re.forEach((oe,de)=>{oe===W&&(te=de)}),n$p(re[te-1]))}function u$k(X,W,J){let te=0;const re=X.querySelectorAll(J),ne=re.length-1;W===re[ne]?n$p(re[0]):(re.forEach((oe,de)=>{oe===W&&(te=de)}),n$p(re[te+1]))}function r$x(X,W,J){const te=X.querySelector(`${J}[tabindex="0"]`);te==null||te.setAttribute("tabindex","-1"),W.setAttribute("tabindex","0"),W.click()}function u$j(X,W,J){return X||(X=0),W||(W=0),J==="asc"?X-W:W-X}function f$d(X,W,J){return X||(X=new Date("1900-01-01")),W||(W=new Date("1900-01-01")),J==="asc"?X.getTime()-W.getTime():W.getTime()-X.getTime()}function m$b(X,W,J){return X||(X=""),W||(W=""),J==="asc"?X.localeCompare(W):W.localeCompare(X)}function a$i(X,W,J="asc",te){return[...X].sort((re,ne)=>{switch(te){case"number":return u$j(re[W],ne[W],J);case"date":return f$d(new Date(re[W]),new Date(ne[W]),J);case"string":return m$b(re[W],ne[W],J);default:return 0}})}const r$w="*{scrollbar-width:thin;scrollbar-color:var(--color-neutral-100) var(--color-white)}*::-webkit-scrollbar{width:6px}*::-webkit-scrollbar-track{background:var(--color-white);border-radius:128px}*::-webkit-scrollbar-thumb{background-color:var(--color-neutral-100);border-radius:128px}",e$t=":host{display:block;width:100%;height:100%}.dss-custom-table{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.dss-custom-table-header{position:relative;z-index:300;background-color:var(--color-white)}.dss-custom-table-header,.dss-custom-table-footer{flex:0 1 auto}.dss-custom-table-body{flex:1 1 auto;overflow:auto}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:var(--dss-spacing-xs);padding:var(--dss-spacing-md);border-top:var(--dss-border-width-sm) solid var(--color-neutral-100);margin-top:var(--dss-spacing-md)}.table-footer-description{color:var(--color-neutral-900);font-size:16px;font-weight:var(--font-bold)}::slotted(.table-footer-actions){display:flex;justify-content:flex-end;align-items:center;gap:var(--dss-spacing-xs)}";var B$2=Object.defineProperty,N$1=Object.getOwnPropertyDescriptor,l$h=(X,W,J,te)=>{for(var re=te>1?void 0:te?N$1(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&B$2(W,J,re),re};const k$2=er`dss-icon${tr(f$h())}`,v$7=er`dss-table-header${tr(f$h())}`,$$6=er`dss-table-pagination${tr(f$h())}`;let o$v=class extends h$n{constructor(){super(...arguments),this.internalSelectedCounter=0,this.showConfig=!1,this.configTableLabel="Configurar taula",this._hideHeader=!1,this._hidePaginator=!1,this._columnsHeader=[],this._data=void 0,this._paginatedData=void 0,this._currentSortColumn="",this._currentSortType="string",this._currentSortOrder="none",this._multiselect=!1,this._radioselect=!1,this._allRowsSelected=!1,this._selectedRowsLabel="files seleccionades",this._isFirstUpdate=!0,this._shouldUpdate=!1,this._table=void 0,this._currentRowsChecked=0,this._selectedRowsCounter=void 0,this._tableTitle="",this._filters=[],this._innerFilters=!1,this._expandTable=!1,this._expandLabel="Ampliar",this._collapseLabel="Reduir",this._filtersLabel="Selecció",this._cleanFiltersLabel="Netejar filtres",this._noFiltersLabel="No hi ha filtres seleccionats",this._isTableHeaderCreated=!1,this._hideHeaderTitleAndExpand=!1,this._disableSorting=!1,this._isPaginationStarted=!1,this._totalResults=void 0,this._currentIndex=1,this._pageSize=10,this._pageSizeOptions=[5,10,20],this._resultstext="Resultats",this._rowsperpagetext="Files per pàgina",this._paginationState=void 0,this._pageSizeOptionsDisabled=!1,this._hidePaginationResults=!1,this._hideFooter=!1,this.fixedColumnsBefore=void 0,this.fixedColumnsAfter=void 0,this.tableInfo=void 0}static get styles(){return[r$J(i$t),r$J(r$w),r$J(e$u),r$J(e$t)]}set hideHeader(W){const J=this._hideHeader;this._hideHeader=W,this.requestUpdate("hideHeader",J)}get hideHeader(){return this._hideHeader}set hidePaginator(W){const J=this._hidePaginator;this._hidePaginator=W,this.requestUpdate("hidePaginator",J)}get hidePaginator(){return this._hidePaginator}set columnsHeader(W){const J=this._columnsHeader;this._columnsHeader=W,this.requestUpdate("columnsHeader",J)}get columnsHeader(){return this._columnsHeader}set data(W){const J=this._data;this._data=W,this.requestUpdate("data",J)}get data(){return this._data||[]}set multiselect(W){const J=this._multiselect;this._multiselect=W,this.requestUpdate("multiselect",J)}get multiselect(){return this._multiselect}set radioselect(W){const J=this._radioselect;this._radioselect=W,this.requestUpdate("radioselect",J)}get radioselect(){return this._radioselect}set selectedRowsLabel(W){const J=this._selectedRowsLabel;this._selectedRowsLabel=W,this.requestUpdate("selectedRowsLabel",J)}get selectedRowsLabel(){return this._selectedRowsLabel}set selectedRowsCounter(W){const J=this._selectedRowsCounter;this._selectedRowsCounter=W,this.requestUpdate("selectedRowsCounter",J)}get selectedRowsCounter(){return this._selectedRowsCounter||0}set tableTitle(W){const J=this._tableTitle;this._tableTitle=W,this.requestUpdate("tableTitle",J)}get tableTitle(){return this._tableTitle}set filters(W){const J=this._filters;this._filters=W,this.requestUpdate("filters",J)}get filters(){return this._filters}set innerFilters(W){const J=this._innerFilters;this._innerFilters=W,this.requestUpdate("innerFilters",J)}get innerFilters(){return this._innerFilters}set expandTable(W){const J=this._expandTable;this._expandTable=W,this.requestUpdate("expandTable",J)}get expandTable(){return this._expandTable}set expandLabel(W){const J=this._expandLabel;this._expandLabel=W,this.requestUpdate("expandLabel",J)}get expandLabel(){return this._expandLabel}set collapseLabel(W){const J=this._collapseLabel;this._collapseLabel=W,this.requestUpdate("collapseLabel",J)}get collapseLabel(){return this._collapseLabel}set filtersLabel(W){const J=this._filtersLabel;this._filtersLabel=W,this.requestUpdate("filtersLabel",J)}get filtersLabel(){return this._filtersLabel}set cleanFiltersLabel(W){const J=this._cleanFiltersLabel;this._cleanFiltersLabel=W,this.requestUpdate("cleanFiltersLabel",J)}get cleanFiltersLabel(){return this._cleanFiltersLabel}set noFiltersLabel(W){const J=this._noFiltersLabel;this._noFiltersLabel=W,this.requestUpdate("noFiltersLabel",J)}get noFiltersLabel(){return this._noFiltersLabel}set hideHeaderTitleAndExpand(W){const J=this._hideHeaderTitleAndExpand;this._hideHeaderTitleAndExpand=W,this.requestUpdate("hideHeaderTitleAndExpand",J)}get hideHeaderTitleAndExpand(){return this._hideHeaderTitleAndExpand}set disableSorting(W){const J=this._disableSorting;this._disableSorting=W,this.requestUpdate("disableSorting",J)}get disableSorting(){return this._disableSorting}set totalResults(W){const J=this._totalResults;this._totalResults=W,this.requestUpdate("totalResults",J)}get totalResults(){return this._totalResults||0}set currentIndex(W){const J=this._currentIndex;this._currentIndex=W,this.requestUpdate("currentIndex",J)}get currentIndex(){return this._currentIndex}set pageSize(W){const J=this._pageSize;this._pageSize=W,this.requestUpdate("pageSize",J)}get pageSize(){return this._pageSize}set pageSizeOptions(W){const J=this._pageSizeOptions;this._pageSizeOptions=W,this.requestUpdate("pageSizeOptions",J)}get pageSizeOptions(){return this._pageSizeOptions}set resultsLabel(W){const J=this._resultstext;this._resultstext=W,this.requestUpdate("resultsLabel",J)}get resultsLabel(){return this._resultstext}set rowsPerPageLabel(W){const J=this._rowsperpagetext;this._rowsperpagetext=W,this.requestUpdate("rowsperpageLabel",J)}get rowsPerPageLabel(){return this._rowsperpagetext}set hidePaginationResults(W){const J=this._hidePaginationResults;this._hidePaginationResults=W,this.requestUpdate("hidePaginationResults",J)}get hidePaginationResults(){return this._hidePaginationResults}set pageSizeOptionsDisabled(W){const J=this._pageSizeOptionsDisabled;this._pageSizeOptionsDisabled=W,this.requestUpdate("pageSizeOptionsDisabled",J)}get pageSizeOptionsDisabled(){return this._pageSizeOptionsDisabled}set hideFooter(W){const J=this._hideFooter;this._hideFooter=W,this.requestUpdate("hideFooter",J)}get hideFooter(){return this._hideFooter}_getDataLength(){let W=0;return this._totalResults!==void 0&&this._totalResults>=0?W=this._totalResults:this._data&&(W=this._data.length),W}_sortBy(W,J,te,re,ne){this._currentSortColumn=J,this._currentSortType=te,re?re==="none"?this._currentSortOrder="asc":re==="asc"?this._currentSortOrder="desc":re==="desc"&&(this._currentSortOrder="none"):this._currentSortOrder="asc",this._updateColumnSortState();let oe;return this._currentSortOrder==="none"?oe=W:oe=a$i(W,this._currentSortColumn,this._currentSortOrder,te),oe&&!ne&&this._dispatchSort(oe),oe}_updateColumnSortState(){this._columnsHeader.forEach(W=>{W.column===this._currentSortColumn?W.sortOrder=this._currentSortOrder:W.sortOrder&&(W.sortOrder="none")})}_onSelectAll(){if(this._table){this._allRowsSelected=!this._allRowsSelected;let W=0,J=0;const te=this._table.querySelectorAll(".dss-checkbox--multiselect");te.forEach(re=>{re.disabled?J+=1:(re.checked||(W+=1),re.checked=this._allRowsSelected)}),this._allRowsSelected?this._currentRowsChecked+=W:this._currentRowsChecked-=te.length-J,this._updateTableFooterRowsChecked(),this._dispatchMultiselect()}}_rowsCheckedListener(W){this._table&&W.tagName==="INPUT"&&W.type==="checkbox"&&W.classList.contains("dss-checkbox")&&!W.classList.contains("dss-checkbox--thead")&&(W.checked?this._currentRowsChecked+=1:this._currentRowsChecked-=1,this._updateTableFooterRowsChecked())}_updateTableFooterRowsChecked(){this._selectedRowsCounter===void 0&&(this.internalSelectedCounter=this._currentRowsChecked)}_updateTableHeader(){if(this._table){const W=this._table.querySelector(".dss-custom-table");let J=W.querySelector("thead");J||(J=document.createElement("thead"),J.classList.add("dss-thead"),W.insertBefore(J,W.firstChild)),Q(this._generateTableHeaderHTML(),J)}}_generateTableHeaderHTML(){let W=!0,J=ke``,te=ke``;this._multiselect&&(J=ke`
|
|
745
744
|
<th class="dss-th dss-th--select">
|
|
746
745
|
<div class="dss-th-content dss-th-content--select">
|
|
747
746
|
<input
|
|
@@ -842,7 +841,7 @@ ${!X.onlyIcon&&X.variant==="link"?ke`
|
|
|
842
841
|
</div>
|
|
843
842
|
`}
|
|
844
843
|
</div>
|
|
845
|
-
`}};l$h([n$v({type:Number})],o$v.prototype,"internalSelectedCounter",2),l$h([n$v(o$G)],o$v.prototype,"hideHeader",1),l$h([n$v(o$G)],o$v.prototype,"hidePaginator",1),l$h([n$v({type:Array})],o$v.prototype,"columnsHeader",1),l$h([n$v({type:Array})],o$v.prototype,"data",1),l$h([n$v(o$G)],o$v.prototype,"multiselect",1),l$h([n$v(o$G)],o$v.prototype,"radioselect",1),l$h([n$v({type:String})],o$v.prototype,"selectedRowsLabel",1),l$h([n$v({type:Number})],o$v.prototype,"selectedRowsCounter",1),l$h([n$v(o$G)],o$v.prototype,"showConfig",2),l$h([n$v({type:String})],o$v.prototype,"configTableLabel",2),l$h([n$v({type:String})],o$v.prototype,"tableTitle",1),l$h([n$v({type:Array})],o$v.prototype,"filters",1),l$h([n$v(o$G)],o$v.prototype,"innerFilters",1),l$h([n$v(o$G)],o$v.prototype,"expandTable",1),l$h([n$v({type:String})],o$v.prototype,"expandLabel",1),l$h([n$v({type:String})],o$v.prototype,"collapseLabel",1),l$h([n$v({type:String})],o$v.prototype,"filtersLabel",1),l$h([n$v({type:String})],o$v.prototype,"cleanFiltersLabel",1),l$h([n$v({type:String})],o$v.prototype,"noFiltersLabel",1),l$h([n$v(o$G)],o$v.prototype,"hideHeaderTitleAndExpand",1),l$h([n$v(o$G)],o$v.prototype,"disableSorting",1),l$h([n$v({type:Number})],o$v.prototype,"totalResults",1),l$h([n$v({type:Number})],o$v.prototype,"currentIndex",1),l$h([n$v({type:Number})],o$v.prototype,"pageSize",1),l$h([n$v({type:Array})],o$v.prototype,"pageSizeOptions",1),l$h([n$v({type:String})],o$v.prototype,"resultsLabel",1),l$h([n$v({type:String})],o$v.prototype,"rowsPerPageLabel",1),l$h([n$v(o$G)],o$v.prototype,"hidePaginationResults",1),l$h([n$v(o$G)],o$v.prototype,"pageSizeOptionsDisabled",1),l$h([n$v(o$G)],o$v.prototype,"hideFooter",1),l$h([n$v({type:Number})],o$v.prototype,"fixedColumnsBefore",2),l$h([n$v({type:Number})],o$v.prototype,"fixedColumnsAfter",2),l$h([n$v({type:String})],o$v.prototype,"tableInfo",2);const O$1=er`dss-calendar${tr(f$h())}`,e$s=er`dss-icon${tr(f$h())}`,Z=X=>{var W,J,te,re,ne,oe,de,he,ue,ce,pe,fe,ge,me,ve,be,ye,we,Se,_e,Ce,Le,
|
|
844
|
+
`}};l$h([n$v({type:Number})],o$v.prototype,"internalSelectedCounter",2),l$h([n$v(o$G)],o$v.prototype,"hideHeader",1),l$h([n$v(o$G)],o$v.prototype,"hidePaginator",1),l$h([n$v({type:Array})],o$v.prototype,"columnsHeader",1),l$h([n$v({type:Array})],o$v.prototype,"data",1),l$h([n$v(o$G)],o$v.prototype,"multiselect",1),l$h([n$v(o$G)],o$v.prototype,"radioselect",1),l$h([n$v({type:String})],o$v.prototype,"selectedRowsLabel",1),l$h([n$v({type:Number})],o$v.prototype,"selectedRowsCounter",1),l$h([n$v(o$G)],o$v.prototype,"showConfig",2),l$h([n$v({type:String})],o$v.prototype,"configTableLabel",2),l$h([n$v({type:String})],o$v.prototype,"tableTitle",1),l$h([n$v({type:Array})],o$v.prototype,"filters",1),l$h([n$v(o$G)],o$v.prototype,"innerFilters",1),l$h([n$v(o$G)],o$v.prototype,"expandTable",1),l$h([n$v({type:String})],o$v.prototype,"expandLabel",1),l$h([n$v({type:String})],o$v.prototype,"collapseLabel",1),l$h([n$v({type:String})],o$v.prototype,"filtersLabel",1),l$h([n$v({type:String})],o$v.prototype,"cleanFiltersLabel",1),l$h([n$v({type:String})],o$v.prototype,"noFiltersLabel",1),l$h([n$v(o$G)],o$v.prototype,"hideHeaderTitleAndExpand",1),l$h([n$v(o$G)],o$v.prototype,"disableSorting",1),l$h([n$v({type:Number})],o$v.prototype,"totalResults",1),l$h([n$v({type:Number})],o$v.prototype,"currentIndex",1),l$h([n$v({type:Number})],o$v.prototype,"pageSize",1),l$h([n$v({type:Array})],o$v.prototype,"pageSizeOptions",1),l$h([n$v({type:String})],o$v.prototype,"resultsLabel",1),l$h([n$v({type:String})],o$v.prototype,"rowsPerPageLabel",1),l$h([n$v(o$G)],o$v.prototype,"hidePaginationResults",1),l$h([n$v(o$G)],o$v.prototype,"pageSizeOptionsDisabled",1),l$h([n$v(o$G)],o$v.prototype,"hideFooter",1),l$h([n$v({type:Number})],o$v.prototype,"fixedColumnsBefore",2),l$h([n$v({type:Number})],o$v.prototype,"fixedColumnsAfter",2),l$h([n$v({type:String})],o$v.prototype,"tableInfo",2);const O$1=er`dss-calendar${tr(f$h())}`,e$s=er`dss-icon${tr(f$h())}`,Z=X=>{var W,J,te,re,ne,oe,de,he,ue,ce,pe,fe,ge,me,ve,be,ye,we,Se,_e,Ce,Le,Pe,Ie,ze,qe,Ae,De,Me;const Be={"dss-datepicker-range--sm":X.inputSize!=="lg"},Ve={"dss-datepicker-range-help--invalid":X._invalid||!((W=X._inputRangeStart)!=null&&W.validity.valid)&&((J=X._inputRangeStart)==null?void 0:J.value)!==""||!((te=X._inputRangeEnd)!=null&&te.validity.valid)&&((re=X._inputRangeEnd)==null?void 0:re.value)!=="","dss-datepicker-range-help--disabled":((ne=X._inputRangeStart)==null?void 0:ne.disabled)&&((oe=X._inputRangeEnd)==null?void 0:oe.disabled)},Ye={"dss-input-wrapper":!0,"dss-input-wrapper--required":(de=X._inputRangeStart)==null?void 0:de.required,"dss-input-wrapper--disabled":(he=X._inputRangeStart)==null?void 0:he.disabled,[`dss-input-wrapper--${X.inputSize}`]:!!X.inputSize},Je={"dss-input-wrapper":!0,"dss-input-wrapper--required":(ue=X._inputRangeEnd)==null?void 0:ue.required,"dss-input-wrapper--disabled":(ce=X._inputRangeEnd)==null?void 0:ce.disabled,[`dss-input-wrapper--${X.inputSize}`]:!!X.inputSize},vt={"dss-input-group":!0,[`dss-input-group--${X.inputSize}`]:!!X.inputSize,"dss-input-group--invalid":X._invalid||!((pe=X._inputRangeStart)!=null&&pe.validity.valid)&&((fe=X._inputRangeStart)==null?void 0:fe.value)!=="","dss-input-group--required":(ge=X._inputRangeStart)==null?void 0:ge.required,"dss-input-group--disabled":(me=X._inputRangeStart)==null?void 0:me.disabled,"dss-input-group--focused":((ve=X._inputRangeStart)==null?void 0:ve.value)||X._isStartFocused||X._copyInputRangeStartPlaceholder,"dss-input-group--read-only":(be=X._inputRangeStart)==null?void 0:be.readOnly},Xe={"dss-input-group":!0,[`dss-input-group--${X.inputSize}`]:!!X.inputSize,"dss-input-group--invalid":X._invalid||!((ye=X._inputRangeEnd)!=null&&ye.validity.valid)&&((we=X._inputRangeEnd)==null?void 0:we.value)!=="","dss-input-group--required":(Se=X._inputRangeEnd)==null?void 0:Se.required,"dss-input-group--disabled":(_e=X._inputRangeEnd)==null?void 0:_e.disabled,"dss-input-group--focused":((Ce=X._inputRangeEnd)==null?void 0:Ce.value)||X._isEndFocused||X._copyInputRangeEndPlaceholder,"dss-input-group--read-only":(Le=X._inputRangeEnd)==null?void 0:Le.readOnly},Ge={"dss-calendar":!0,"dss-calendar--visible":X._showCalendar&&!((Pe=X._inputRangeStart)!=null&&Pe.readOnly)&&!((Ie=X._inputRangeEnd)!=null&&Ie.readOnly),"dss-calendar--disabled":((ze=X._inputRangeStart)==null?void 0:ze.disabled)&&((qe=X._inputRangeEnd)==null?void 0:qe.disabled),"dss-calendar--sm":X.inputSize!=="lg"};return ke`
|
|
846
845
|
<div class="dss-datepicker-range ${Rt(Be)}">
|
|
847
846
|
<div
|
|
848
847
|
class="dss-datepicker-range-inputs"
|
|
@@ -2052,7 +2051,7 @@ ${!X.onlyIcon&&X.variant==="link"?ke`
|
|
|
2052
2051
|
`,ge=ke`<span
|
|
2053
2052
|
class="dss-icon--checked"
|
|
2054
2053
|
style="visibility: ${pe}"
|
|
2055
|
-
></span>`,me=Se=>{this._manuallySelect(Se,J.value)},ve=Se=>{var _e,Ce,Le,
|
|
2054
|
+
></span>`,me=Se=>{this._manuallySelect(Se,J.value)},ve=Se=>{var _e,Ce,Le,Pe;if(Se.key==="Enter"||Se.key===" ")this._manuallySelect(Se,J.value);else if(Se.key==="ArrowUp"){const Ie=Se.target,ze=(Ce=(_e=Ie==null?void 0:Ie.closest(".dss-form-field"))==null?void 0:_e.previousElementSibling)==null?void 0:Ce.querySelector("input");ze==null||ze.focus()}else if(Se.key==="ArrowDown"){const Ie=Se.target,ze=(Pe=(Le=Ie==null?void 0:Ie.closest(".dss-form-field"))==null?void 0:Le.nextElementSibling)==null?void 0:Pe.querySelector("input");ze==null||ze.focus()}},[be,ye]=this._getIndexSubtext(J.label);let we=ke`${J.label}`;if(be!==-1&&ye!==-1){const Se=J.label.slice(0,be),_e=J.label.slice(be,ye),Ce=J.label.slice(ye);we=ke`${Se}<span class="bold">${_e}</span>${Ce}`}return ke`
|
|
2056
2055
|
<div
|
|
2057
2056
|
class="${ue}"
|
|
2058
2057
|
@keyup="${ve}"
|
|
@@ -5664,7 +5663,7 @@ ${!X.onlyIcon&&X.variant==="link"?ke`
|
|
|
5664
5663
|
</div>
|
|
5665
5664
|
`:null}
|
|
5666
5665
|
</div>
|
|
5667
|
-
`}}d([n$v(o$G)],r.prototype,"hasPaginator"),d([n$v({type:Array})],r.prototype,"data"),d([n$v({type:Array})],r.prototype,"customData"),d([n$v({type:Array})],r.prototype,"customTableHeader"),d([n$v({type:Array})],r.prototype,"filters"),d([n$v({type:Number})],r.prototype,"currentIndex"),d([n$v({type:Number})],r.prototype,"pageSize"),d([n$v({type:String})],r.prototype,"pageSizeOptions"),d([n$v({type:String})],r.prototype,"resultstext"),d([n$v({type:String})],r.prototype,"rowsperpagetext"),d([n$v({type:String})],r.prototype,"textAlign"),d([n$v({type:String})],r.prototype,"headerTitle"),d([n$v(o$G)],r.prototype,"hideHeader"),d([n$v(o$G)],r.prototype,"hideColumnHeader"),d([n$v(o$G)],r.prototype,"innerFilters"),d([n$v(o$G)],r.prototype,"expandTable"),d([n$v({type:String})],r.prototype,"expandLabel"),d([n$v({type:String})],r.prototype,"collapseLabel"),d([n$v({type:Number})],r.prototype,"rowsOnCollapsed"),d([n$v({type:String})],r.prototype,"filtersLabel"),d([n$v({type:String})],r.prototype,"cleanFiltersLabel"),d([n$v({type:String})],r.prototype,"selectedRowsLabel"),d([n$v({type:Number})],r.prototype,"footerButtons"),d([n$v(o$G)],r.prototype,"maxContentWidth"),d([n$v(o$G)],r.prototype,"stickyColumns"),d([n$v(o$G)],r.prototype,"multiselect"),d([n$v(o$G)],r.prototype,"radioselect"),d([n$v(o$G)],r.prototype,"hasRowButton"),d([n$v({type:String})],r.prototype,"rowButtonLabel"),d([n$v(o$G)],r.prototype,"hasRowActions"),d([n$v({type:Array})],r.prototype,"rowActionsIcons"),d([n$v({type:String})],r.prototype,"footerButtonPrimaryLabel"),d([n$v({type:String})],r.prototype,"footerButtonSecondaryLabel"),d([n$v({type:String})],r.prototype,"footerButtonAlternativeLabel"),d([n$v(o$G)],r.prototype,"enableRowActionsOnDisabled"),d([n$v(o$G)],r.prototype,"enableRowActionsOnDeleted"),d([n$v({type:Number})],r.prototype,"valueMaxLength"),s$p("dss-accordion",o$D),s$p("dss-action-menu",r$D),s$p("dss-action-menu-item",o$B),s$p("dss-alert",a$m),s$p("dss-avatar",m$d),s$p("dss-badge",o$z),s$p("dss-button",i$n),s$p("dss-breadcrumb",v$9),s$p("dss-calendar",g$g),s$p("dss-chat-message",r$z),s$p("dss-checkbox",d$f),s$p("dss-chip",i$l),s$p("dss-content-switcher",l$i),s$p("dss-custom-table",o$v),s$p("dss-datepicker",o$t),s$p("dss-datepicker-range",r$v),s$p("dss-decorative-icon",o$r),s$p("dss-divider",c$d),s$p("dss-drawer",h$g),s$p("dss-footer",f$b),s$p("dss-header",s$c),s$p("dss-header-links",r$s),s$p("dss-header-menu-patient",n$m),s$p("dss-header-menu-professional",i$h),s$p("dss-icon",o$F),s$p("dss-icon-badge",n$k),s$p("dss-icon-button",r$p),s$p("dss-input",r$m),s$p("dss-input-action",h$e),s$p("dss-input-dropdown",r$n),s$p("dss-input-switch",a$d),s$p("dss-item-list",n$j),s$p("dss-list-menu",n$h),s$p("dss-link",o$k),s$p("dss-legend",o$l),s$p("dss-modal",d$9),s$p("dss-module-header",m$5),s$p("dss-notification-badge",r$h),s$p("dss-pagination",_$8),s$p("dss-progress-indicator",o$g),s$p("dss-radio-button",a$a),s$p("dss-search-bar",h$a),s$p("dss-selector",d$8),s$p("dss-slider",n$d),s$p("dss-spinner",d$6),s$p("dss-stepper",Stepper),s$p("dss-skeleton",h$8),s$p("dss-tabs-list",i$8),s$p("dss-tabs-panel",o$b),s$p("dss-table-header",l$7),s$p("dss-table-pagination",a$6),s$p("dss-textarea",u$4),s$p("dss-tile",o$9),s$p("dss-timepicker",_$2),s$p("dss-toast",o$7),s$p("dss-tooltip",p$5),s$p("dss-typography",o$E),s$p("dss-popover",n$e),s$p("dss-popover-body",a$b),s$p("dss-sidemenu",o$c),s$p("dss-sidemenu-list",c$6),s$p("dss-sidemenu-list-item",o$d),s$p("dss-split-button",n$c),s$p("dss-user-feedback",r$6),s$p("dss-upload-box",o$5),s$p("dss-card",l$5),s$p("dss-card-body",n$7),s$p("dss-card-description",p$3),s$p("dss-card-footer",l$4),s$p("dss-card-form",b$1),s$p("dss-card-header",o$3),s$p("dss-card-highlights-item",e$1),s$p("dss-card-highlights",n$5),s$p("dss-card-image",d$2),s$p("dss-card-info-item",n$3),s$p("dss-card-info",i$4),s$p("dss-card-menu",p$1),s$p("dss-card-subtitle",r$5),s$p("dss-card-tags",i$3),s$p("dss-card-title",p),s$p("dss-preset-texts",l$1),s$p("dss-button-link",o),s$p("dss-date-picker",n$2),s$p("dss-dropdownlist",l),s$p("dss-input-field",n$1),s$p("dss-table",r),s$p("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";var shellViews=(X=>(X.shell="primaria-shell",X.error="primaria-error-view",X))(shellViews||{});const primariaShellId="primaria-shell",clinicalMonitoringId="clinical-monitoring",pocTestEventsId="poc-events-ecap";let shellLocaleManager;const initializeLocalization$1=async X=>{L$3("ca"),shellLocaleManager=await X.createLocaleManager(locales$1)},translate$1=X=>shellLocaleManager?shellLocaleManager.translate(X):X,locales$1={ca:{[primariaShellId]:{title:"Estació de Treball Clínica",actions:{create:"Crear",toggleMenuClose:"Tancar menú",toggleMenuOpen:"Expandir menú",askExit:"Atenció, vols sortir igualment?"},clinicalMonitoring:{title:"Seguiment clínic"},header:{workCenter:"Centre treball",role:"Rol",speciality:"Àmbit treball"},busyManager:{title:"Tasques pendents a desar:"}}}},template$g=X=>ke$1`
|
|
5666
|
+
`}}d([n$v(o$G)],r.prototype,"hasPaginator"),d([n$v({type:Array})],r.prototype,"data"),d([n$v({type:Array})],r.prototype,"customData"),d([n$v({type:Array})],r.prototype,"customTableHeader"),d([n$v({type:Array})],r.prototype,"filters"),d([n$v({type:Number})],r.prototype,"currentIndex"),d([n$v({type:Number})],r.prototype,"pageSize"),d([n$v({type:String})],r.prototype,"pageSizeOptions"),d([n$v({type:String})],r.prototype,"resultstext"),d([n$v({type:String})],r.prototype,"rowsperpagetext"),d([n$v({type:String})],r.prototype,"textAlign"),d([n$v({type:String})],r.prototype,"headerTitle"),d([n$v(o$G)],r.prototype,"hideHeader"),d([n$v(o$G)],r.prototype,"hideColumnHeader"),d([n$v(o$G)],r.prototype,"innerFilters"),d([n$v(o$G)],r.prototype,"expandTable"),d([n$v({type:String})],r.prototype,"expandLabel"),d([n$v({type:String})],r.prototype,"collapseLabel"),d([n$v({type:Number})],r.prototype,"rowsOnCollapsed"),d([n$v({type:String})],r.prototype,"filtersLabel"),d([n$v({type:String})],r.prototype,"cleanFiltersLabel"),d([n$v({type:String})],r.prototype,"selectedRowsLabel"),d([n$v({type:Number})],r.prototype,"footerButtons"),d([n$v(o$G)],r.prototype,"maxContentWidth"),d([n$v(o$G)],r.prototype,"stickyColumns"),d([n$v(o$G)],r.prototype,"multiselect"),d([n$v(o$G)],r.prototype,"radioselect"),d([n$v(o$G)],r.prototype,"hasRowButton"),d([n$v({type:String})],r.prototype,"rowButtonLabel"),d([n$v(o$G)],r.prototype,"hasRowActions"),d([n$v({type:Array})],r.prototype,"rowActionsIcons"),d([n$v({type:String})],r.prototype,"footerButtonPrimaryLabel"),d([n$v({type:String})],r.prototype,"footerButtonSecondaryLabel"),d([n$v({type:String})],r.prototype,"footerButtonAlternativeLabel"),d([n$v(o$G)],r.prototype,"enableRowActionsOnDisabled"),d([n$v(o$G)],r.prototype,"enableRowActionsOnDeleted"),d([n$v({type:Number})],r.prototype,"valueMaxLength"),s$p("dss-accordion",o$D),s$p("dss-action-menu",r$D),s$p("dss-action-menu-item",o$B),s$p("dss-alert",a$m),s$p("dss-avatar",m$d),s$p("dss-badge",o$z),s$p("dss-button",i$n),s$p("dss-breadcrumb",v$9),s$p("dss-calendar",g$g),s$p("dss-chat-message",r$z),s$p("dss-checkbox",d$f),s$p("dss-chip",i$l),s$p("dss-content-switcher",l$i),s$p("dss-custom-table",o$v),s$p("dss-datepicker",o$t),s$p("dss-datepicker-range",r$v),s$p("dss-decorative-icon",o$r),s$p("dss-divider",c$d),s$p("dss-drawer",h$g),s$p("dss-footer",f$b),s$p("dss-header",s$c),s$p("dss-header-links",r$s),s$p("dss-header-menu-patient",n$m),s$p("dss-header-menu-professional",i$h),s$p("dss-icon",o$F),s$p("dss-icon-badge",n$k),s$p("dss-icon-button",r$p),s$p("dss-input",r$m),s$p("dss-input-action",h$e),s$p("dss-input-dropdown",r$n),s$p("dss-input-switch",a$d),s$p("dss-item-list",n$j),s$p("dss-list-menu",n$h),s$p("dss-link",o$k),s$p("dss-legend",o$l),s$p("dss-modal",d$9),s$p("dss-module-header",m$5),s$p("dss-notification-badge",r$h),s$p("dss-pagination",_$8),s$p("dss-progress-indicator",o$g),s$p("dss-radio-button",a$a),s$p("dss-search-bar",h$a),s$p("dss-selector",d$8),s$p("dss-slider",n$d),s$p("dss-spinner",d$6),s$p("dss-stepper",Stepper),s$p("dss-skeleton",h$8),s$p("dss-tabs-list",i$8),s$p("dss-tabs-panel",o$b),s$p("dss-table-header",l$7),s$p("dss-table-pagination",a$6),s$p("dss-textarea",u$4),s$p("dss-tile",o$9),s$p("dss-timepicker",_$2),s$p("dss-toast",o$7),s$p("dss-tooltip",p$5),s$p("dss-typography",o$E),s$p("dss-popover",n$e),s$p("dss-popover-body",a$b),s$p("dss-sidemenu",o$c),s$p("dss-sidemenu-list",c$6),s$p("dss-sidemenu-list-item",o$d),s$p("dss-split-button",n$c),s$p("dss-user-feedback",r$6),s$p("dss-upload-box",o$5),s$p("dss-card",l$5),s$p("dss-card-body",n$7),s$p("dss-card-description",p$3),s$p("dss-card-footer",l$4),s$p("dss-card-form",b$1),s$p("dss-card-header",o$3),s$p("dss-card-highlights-item",e$1),s$p("dss-card-highlights",n$5),s$p("dss-card-image",d$2),s$p("dss-card-info-item",n$3),s$p("dss-card-info",i$4),s$p("dss-card-menu",p$1),s$p("dss-card-subtitle",r$5),s$p("dss-card-tags",i$3),s$p("dss-card-title",p),s$p("dss-preset-texts",l$1),s$p("dss-button-link",o),s$p("dss-date-picker",n$2),s$p("dss-dropdownlist",l),s$p("dss-input-field",n$1),s$p("dss-table",r),s$p("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";var shellViews=(X=>(X.shell="primaria-shell",X.error="primaria-error-view",X))(shellViews||{});const primariaShellId="primaria-shell",clinicalMonitoringId="clinical-monitoring",pocTestEventsId="poc-events-ecap";let shellLocaleManager;const initializeLocalization$1=async X=>{L$3("ca"),shellLocaleManager=await X.createLocaleManager(locales$1)},translate$1=X=>shellLocaleManager?shellLocaleManager.translate(X):X,locales$1={ca:{[primariaShellId]:{title:"Estació de Treball Clínica",actions:{create:"Crear",toggleMenuClose:"Tancar menú",toggleMenuOpen:"Expandir menú",askExit:"Atenció, vols sortir igualment?"},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:"Rol",speciality:"Àmbit treball"},busyManager:{title:"Tasques pendents a desar:"}}}},template$g=X=>ke$1`
|
|
5668
5667
|
<primaria-content-switcher id="main-switcher" attrForSelected="view" .selected=${X.viewSelected}>
|
|
5669
5668
|
<div class="container" view=${shellViews.shell}>
|
|
5670
5669
|
<shell-header></shell-header>
|
|
@@ -5774,15 +5773,13 @@ ${!X.onlyIcon&&X.variant==="link"?ke`
|
|
|
5774
5773
|
</div>
|
|
5775
5774
|
`};var __defProp$j=Object.defineProperty,__getOwnPropDesc$j=Object.getOwnPropertyDescriptor,__decorateClass$j=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$j(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$j(W,J,re),re};let PrimariaNavTreeMenu=class extends h$n{constructor(X){super(),this.showActionMenu=!1,this.handleItemClick=()=>{this.showActionMenu=!0,this.requestUpdate()},this.handleCloseMenu=()=>{this.showActionMenu=!1},this.config=X,this.primariaNavItemConfig={icon:X.icon,label:X.label,showArrow:!0,callbackFn:this.handleItemClick}}render(){return ke$1`${template$d(this)}`}};PrimariaNavTreeMenu.styles=i$w`
|
|
5776
5775
|
${r$J(styles$c)}
|
|
5777
|
-
`,__decorateClass$j([n$v({type:Object})],PrimariaNavTreeMenu.prototype,"config",2),__decorateClass$j([r$G()],PrimariaNavTreeMenu.prototype,"primariaNavItemConfig",2),__decorateClass$j([r$G()],PrimariaNavTreeMenu.prototype,"showActionMenu",2),PrimariaNavTreeMenu=__decorateClass$j([t$k("primaria-nav-tree-menu")],PrimariaNavTreeMenu);const getPatientCip=async()=>await shellApi.broker.send("get_patient_cip"),publishEcapNoCloseWithCip=async X=>{const W=await getPatientCip();shellApi.ecapEventManager.publish(X,"NO_TANCAR",{CIP:W})},registerUpperNavMenuViews=()=>{shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:pocTestEventsId,factory:()=>{const X=new exports.PrimariaNavItem({icon:"bolt",label:"Prova Events ECAP",callbackFn:()=>{shellApi.regionManager.activateMainView(pocTestEventsId)}});return Promise.resolve(X)},options:{sortHint:"000100"}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"communication",factory:()=>{const X=new PrimariaNavTreeMenu({icon:"add_box",label:"Comunicació",actionMenuItems:[{icon:"open_in_new",label:"SMS",callbackFn:async()=>{const W=await getPatientCip();shellApi.ecapEventManager.publish("MISSATGES_DEV","NO_TANCAR",{CIP:W||"",TipusMissatge:"SMS"})}},{icon:"open_in_new",label:"Econsulta",callbackFn:()=>{}},{icon:"open_in_new",label:"Mail",callbackFn:()=>{}},{icon:"open_in_new",label:"Veu IP",callbackFn:async()=>{publishEcapNoCloseWithCip("VOIP")}},{icon:"open_in_new",label:"Videoconsulta",callbackFn:()=>{}}]});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"visits",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Visites",callbackFn:async()=>{publishEcapNoCloseWithCip("CONSULTA_VISITES")}});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"it",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"IT",callbackFn:async()=>{publishEcapNoCloseWithCip("REV_IT")}});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"unique-petition",factory:()=>{const X=new PrimariaNavTreeMenu({icon:"add_box",label:"Petitori únic",actionMenuItems:[{icon:"open_in_new",label:"Analítiques",callbackFn:async()=>{publishEcapNoCloseWithCip("LABORATORI")}},{icon:"open_in_new",label:"OC",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("RESULT_OC")}},{icon:"open_in_new",label:"OC Exprés",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("OC_EXPRES")}},{icon:"open_in_new",label:"Sol·licitud de trasllat",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("TRANSPORT")}}]});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"results-reports",factory:()=>{const X=new PrimariaNavTreeMenu({icon:"add_box",label:"Resultats i informes",actionMenuItems:[{icon:"open_in_new",label:"Resultats i informes ECAP",callbackFn:()=>{}},{icon:"open_in_new",label:"Documents usuari",callbackFn:async()=>{await getPatientCip(),setTimeout(()=>{publishEcapNoCloseWithCip("CRIDA_DOCS_USU")},0)}}]});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"processes",factory:()=>{const X=new PrimariaNavTreeMenu({icon:"add_box",label:"Processos",actionMenuItems:[{icon:"open_in_new",label:"ARES",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("PROCES_ATENCIO")}},{icon:"open_in_new",label:"Nen sa",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("NEN_SA")}},{icon:"open_in_new",label:"Procés Obstètric",callbackFn:()=>{}},{icon:"open_in_new",label:"Odontologia",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("ODONTOLOGO")}},{icon:"open_in_new",label:"Situació d'especial cura",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("SIT_ESPEC_CURA_DEV")}}]});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"variable activities",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Activitats variables",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("SIA_DEV")}});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:clinicalMonitoringId,factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Seguiment clínic",callbackFn:()=>{shellApi.regionManager.activateMainView(clinicalMonitoringId),shellApi.broker.publish(shellEvents.openClinicalMonitoringRequested)}});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"landing",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Pàgina inici",callbackFn:()=>{shellApi.broker.send(new ExitShell)}});return Promise.resolve(X)}})},registerLowerNavMenuViews=()=>{shellApi.regionManager.registerView(shellRegions.navigationLowerLeftMenu,{id:"configuration-center",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Centre de configuració",callbackFn:()=>{}});return Promise.resolve(X)}})},registerMainViews=()=>{shellApi.regionManager.registerMainView({id:clinicalMonitoringId,factory:()=>{const X=new ClinicalMonitoring;return Promise.resolve(X)},options:{isDefault:!0}}),shellApi.regionManager.registerMainView({id:pocTestEventsId,factory:()=>{const X=new PocEventsEcap;return Promise.resolve(X)}})},registerInternalViews=()=>{registerMainViews(),registerUpperNavMenuViews(),registerLowerNavMenuViews()},activateDefaultView=()=>{shellApi.regionManager.activateMainView(clinicalMonitoringId)};var
|
|
5778
|
-
${r$J(styles$f)}
|
|
5779
|
-
`,__decorateClass$i([s$w({targetId:"menu-region-container",name:shellRegions.navigationMenu})],PrimariaShell.prototype,"navigationMenuRegion",2),__decorateClass$i([s$w({targetId:"main-region-container",name:shellRegions.main})],PrimariaShell.prototype,"mainRegion",2),__decorateClass$i([s$w({targetId:"quick-actions-region-container",name:shellRegions.quickActions})],PrimariaShell.prototype,"quickActionsRegion",2),__decorateClass$i([s$w({targetId:"floating-region-container",name:shellRegions.floating})],PrimariaShell.prototype,"floatingRegion",2),__decorateClass$i([s$w({targetId:"navigation-menu-lower-region-container",name:shellRegions.navigationLowerLeftMenu})],PrimariaShell.prototype,"navLowerLeftMenu",2),__decorateClass$i([r$G()],PrimariaShell.prototype,"sidebarExpanded",2),__decorateClass$i([r$G()],PrimariaShell.prototype,"viewSelected",2),__decorateClass$i([r$G()],PrimariaShell.prototype,"error",2),PrimariaShell=__decorateClass$i([t$k("primaria-shell")],PrimariaShell);var NAMED_TAG="named",NAME_TAG="name",UNMANAGED_TAG="unmanaged",OPTIONAL_TAG="optional",INJECT_TAG="inject",MULTI_INJECT_TAG="multi_inject",TAGGED="inversify:tagged",TAGGED_PROP="inversify:tagged_props",PARAM_TYPES="inversify:paramtypes",DESIGN_PARAM_TYPES="design:paramtypes",POST_CONSTRUCT="post_construct",PRE_DESTROY="pre_destroy";function getNonCustomTagKeys(){return[INJECT_TAG,MULTI_INJECT_TAG,NAME_TAG,UNMANAGED_TAG,NAMED_TAG,OPTIONAL_TAG]}var NON_CUSTOM_TAG_KEYS=getNonCustomTagKeys(),BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"},idCounter=0;function id(){return idCounter++}var Binding=function(){function X(W,J){this.id=id(),this.activated=!1,this.serviceIdentifier=W,this.scope=J,this.type=BindingTypeEnum.Invalid,this.constraint=function(te){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}return X.prototype.clone=function(){var W=new X(this.serviceIdentifier,this.scope);return W.activated=W.scope===BindingScopeEnum.Singleton?this.activated:!1,W.implementationType=this.implementationType,W.dynamicValue=this.dynamicValue,W.scope=this.scope,W.type=this.type,W.factory=this.factory,W.provider=this.provider,W.constraint=this.constraint,W.onActivation=this.onActivation,W.onDeactivation=this.onDeactivation,W.cache=this.cache,W},X}(),DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",NULL_ARGUMENT="NULL argument",KEY_NOT_FOUND="Key Not Found",AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",CANNOT_UNBIND="Could not unbind serviceIdentifier:",NOT_REGISTERED="No matching bindings found for serviceIdentifier:",MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",UNDEFINED_INJECT_ANNOTATION=function(X){return"@inject called with undefined this could mean that the class "+X+" has a circular dependency problem. You can use a LazyServiceIdentifier to overcome this limitation."},CIRCULAR_DEPENDENCY="Circular dependency found:",INVALID_BINDING_TYPE="Invalid binding type:",NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",LAZY_IN_SYNC=function(X){return"You are attempting to construct '"+X+`' in a synchronous way
|
|
5776
|
+
`,__decorateClass$j([n$v({type:Object})],PrimariaNavTreeMenu.prototype,"config",2),__decorateClass$j([r$G()],PrimariaNavTreeMenu.prototype,"primariaNavItemConfig",2),__decorateClass$j([r$G()],PrimariaNavTreeMenu.prototype,"showActionMenu",2),PrimariaNavTreeMenu=__decorateClass$j([t$k("primaria-nav-tree-menu")],PrimariaNavTreeMenu);const getPatientCip=async()=>await shellApi.broker.send("get_patient_cip"),publishEcapNoCloseWithCip=async X=>{const W=await getPatientCip();shellApi.ecapEventManager.publish(X,"NO_TANCAR",{CIP:W})},registerUpperNavMenuViews=()=>{shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:pocTestEventsId,factory:()=>{const X=new exports.PrimariaNavItem({icon:"bolt",label:"Prova Events ECAP",callbackFn:()=>{shellApi.regionManager.activateMainView(pocTestEventsId)}});return Promise.resolve(X)},options:{sortHint:"000100"}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"communication",factory:()=>{const X=new PrimariaNavTreeMenu({icon:"add_box",label:"Comunicació",actionMenuItems:[{icon:"open_in_new",label:"SMS",callbackFn:async()=>{const W=await getPatientCip();shellApi.ecapEventManager.publish("MISSATGES_DEV","NO_TANCAR",{CIP:W||"",TipusMissatge:"SMS"})}},{icon:"open_in_new",label:"Econsulta",callbackFn:()=>{}},{icon:"open_in_new",label:"Mail",callbackFn:()=>{}},{icon:"open_in_new",label:"Veu IP",callbackFn:async()=>{publishEcapNoCloseWithCip("VOIP")}},{icon:"open_in_new",label:"Videoconsulta",callbackFn:()=>{}}]});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"visits",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Visites",callbackFn:async()=>{publishEcapNoCloseWithCip("CONSULTA_VISITES")}});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"it",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"IT",callbackFn:async()=>{publishEcapNoCloseWithCip("REV_IT")}});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"unique-petition",factory:()=>{const X=new PrimariaNavTreeMenu({icon:"add_box",label:"Petitori únic",actionMenuItems:[{icon:"open_in_new",label:"Analítiques",callbackFn:async()=>{publishEcapNoCloseWithCip("LABORATORI")}},{icon:"open_in_new",label:"OC",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("RESULT_OC")}},{icon:"open_in_new",label:"OC Exprés",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("OC_EXPRES")}},{icon:"open_in_new",label:"Sol·licitud de trasllat",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("TRANSPORT")}}]});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"results-reports",factory:()=>{const X=new PrimariaNavTreeMenu({icon:"add_box",label:"Resultats i informes",actionMenuItems:[{icon:"open_in_new",label:"Resultats i informes ECAP",callbackFn:()=>{}},{icon:"open_in_new",label:"Documents usuari",callbackFn:async()=>{await getPatientCip(),setTimeout(()=>{publishEcapNoCloseWithCip("CRIDA_DOCS_USU")},0)}}]});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"processes",factory:()=>{const X=new PrimariaNavTreeMenu({icon:"add_box",label:"Processos",actionMenuItems:[{icon:"open_in_new",label:"ARES",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("PROCES_ATENCIO")}},{icon:"open_in_new",label:"Nen sa",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("NEN_SA")}},{icon:"open_in_new",label:"Procés Obstètric",callbackFn:()=>{}},{icon:"open_in_new",label:"Odontologia",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("ODONTOLOGO")}},{icon:"open_in_new",label:"Situació d'especial cura",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("SIT_ESPEC_CURA_DEV")}}]});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"variable activities",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Activitats variables",callbackFn:async()=>{await getPatientCip(),publishEcapNoCloseWithCip("SIA_DEV")}});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:clinicalMonitoringId,factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Seguiment clínic",callbackFn:()=>{shellApi.regionManager.activateMainView(clinicalMonitoringId),shellApi.broker.publish(shellEvents.openClinicalMonitoringRequested)}});return Promise.resolve(X)}}),shellApi.regionManager.registerView(shellRegions.navigationMenu,{id:"landing",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Pàgina inici",callbackFn:()=>{shellApi.broker.send(new ExitShell)}});return Promise.resolve(X)}})},registerLowerNavMenuViews=()=>{shellApi.regionManager.registerView(shellRegions.navigationLowerLeftMenu,{id:"configuration-center",factory:()=>{const X=new exports.PrimariaNavItem({icon:"add_box",label:"Centre de configuració",callbackFn:()=>{}});return Promise.resolve(X)}})},registerMainViews=()=>{shellApi.regionManager.registerMainView({id:clinicalMonitoringId,factory:()=>{const X=new ClinicalMonitoring;return Promise.resolve(X)},options:{isDefault:!0}}),shellApi.regionManager.registerMainView({id:pocTestEventsId,factory:()=>{const X=new PocEventsEcap;return Promise.resolve(X)}})},registerInternalViews=()=>{registerMainViews(),registerUpperNavMenuViews(),registerLowerNavMenuViews()},activateDefaultView=()=>{shellApi.regionManager.activateMainView(clinicalMonitoringId)};var NAMED_TAG="named",NAME_TAG="name",UNMANAGED_TAG="unmanaged",OPTIONAL_TAG="optional",INJECT_TAG="inject",MULTI_INJECT_TAG="multi_inject",TAGGED="inversify:tagged",TAGGED_PROP="inversify:tagged_props",PARAM_TYPES="inversify:paramtypes",DESIGN_PARAM_TYPES="design:paramtypes",POST_CONSTRUCT="post_construct",PRE_DESTROY="pre_destroy";function getNonCustomTagKeys(){return[INJECT_TAG,MULTI_INJECT_TAG,NAME_TAG,UNMANAGED_TAG,NAMED_TAG,OPTIONAL_TAG]}var NON_CUSTOM_TAG_KEYS=getNonCustomTagKeys(),BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"},idCounter=0;function id(){return idCounter++}var Binding=function(){function X(W,J){this.id=id(),this.activated=!1,this.serviceIdentifier=W,this.scope=J,this.type=BindingTypeEnum.Invalid,this.constraint=function(te){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}return X.prototype.clone=function(){var W=new X(this.serviceIdentifier,this.scope);return W.activated=W.scope===BindingScopeEnum.Singleton?this.activated:!1,W.implementationType=this.implementationType,W.dynamicValue=this.dynamicValue,W.scope=this.scope,W.type=this.type,W.factory=this.factory,W.provider=this.provider,W.constraint=this.constraint,W.onActivation=this.onActivation,W.onDeactivation=this.onDeactivation,W.cache=this.cache,W},X}(),DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",NULL_ARGUMENT="NULL argument",KEY_NOT_FOUND="Key Not Found",AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",CANNOT_UNBIND="Could not unbind serviceIdentifier:",NOT_REGISTERED="No matching bindings found for serviceIdentifier:",MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",UNDEFINED_INJECT_ANNOTATION=function(X){return"@inject called with undefined this could mean that the class "+X+" has a circular dependency problem. You can use a LazyServiceIdentifier to overcome this limitation."},CIRCULAR_DEPENDENCY="Circular dependency found:",INVALID_BINDING_TYPE="Invalid binding type:",NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",LAZY_IN_SYNC=function(X){return"You are attempting to construct '"+X+`' in a synchronous way
|
|
5780
5777
|
but it has asynchronous dependencies.`},INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",ARGUMENTS_LENGTH_MISMATCH=function(){for(var X=[],W=0;W<arguments.length;W++)X[W]=arguments[W];return"The number of constructor arguments in the derived class "+(X[0]+" must be >= than the number of constructor arguments of its base class.")},CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE='Invalid Container option. Default scope must be a string ("singleton" or "transient").',CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",ASYNC_UNBIND_REQUIRED="Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)",POST_CONSTRUCT_ERROR=function(X,W){return"@postConstruct error in class "+X+": "+W},PRE_DESTROY_ERROR=function(X,W){return"@preDestroy error in class "+X+": "+W},ON_DEACTIVATION_ERROR=function(X,W){return"onDeactivation() error in class "+X+": "+W},CIRCULAR_DEPENDENCY_IN_FACTORY=function(X,W){return"It looks like there is a circular dependency in one of the '"+X+"' bindings. Please investigate bindings with "+("service identifier '"+W+"'.")},STACK_OVERFLOW="Maximum call stack size exceeded",MetadataReader=function(){function X(){}return X.prototype.getConstructorMetadata=function(W){var J=Reflect.getMetadata(PARAM_TYPES,W),te=Reflect.getMetadata(TAGGED,W);return{compilerGeneratedMetadata:J,userGeneratedMetadata:te||{}}},X.prototype.getPropertiesMetadata=function(W){var J=Reflect.getMetadata(TAGGED_PROP,W)||[];return J},X}(),BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1};function isStackOverflowExeption(X){return X instanceof RangeError||X.message===STACK_OVERFLOW}var tryAndThrowErrorIfStackOverflow=function(X,W){try{return X()}catch(J){throw isStackOverflowExeption(J)&&(J=W()),J}};function getServiceIdentifierAsString(X){if(typeof X=="function"){var W=X;return W.name}else{if(typeof X=="symbol")return X.toString();var W=X;return W}}function listRegisteredBindingsForServiceIdentifier(X,W,J){var te="",re=J(X,W);return re.length!==0&&(te=`
|
|
5781
5778
|
Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationType!==null&&(oe=getFunctionName(ne.implementationType)),te=te+`
|
|
5782
5779
|
`+oe,ne.constraint.metaData&&(te=te+" - "+ne.constraint.metaData)})),te}function alreadyDependencyChain(X,W){return X.parentRequest===null?!1:X.parentRequest.serviceIdentifier===W?!0:alreadyDependencyChain(X.parentRequest,W)}function dependencyChainToString(X){function W(te,re){re===void 0&&(re=[]);var ne=getServiceIdentifierAsString(te.serviceIdentifier);return re.push(ne),te.parentRequest!==null?W(te.parentRequest,re):re}var J=W(X);return J.reverse().join(" --> ")}function circularDependencyToException(X){X.childRequests.forEach(function(W){if(alreadyDependencyChain(W,W.serviceIdentifier)){var J=dependencyChainToString(W);throw new Error(CIRCULAR_DEPENDENCY+" "+J)}else circularDependencyToException(W)})}function listMetadataForTarget(X,W){if(W.isTagged()||W.isNamed()){var J="",te=W.getNamedTag(),re=W.getCustomTags();return te!==null&&(J+=te.toString()+`
|
|
5783
5780
|
`),re!==null&&re.forEach(function(ne){J+=ne.toString()+`
|
|
5784
5781
|
`})," "+X+`
|
|
5785
|
-
`+X+" - "+J}else return" "+X}function getFunctionName(X){if(X.name)return X.name;var W=X.toString(),J=W.match(/^function\s*([^\s(]+)/);return J?J[1]:"Anonymous function: "+W}function getSymbolDescription(X){return X.toString().slice(7,-1)}var Context=function(){function X(W){this.id=id(),this.container=W}return X.prototype.addPlan=function(W){this.plan=W},X.prototype.setCurrentRequest=function(W){this.currentRequest=W},X}(),Metadata=function(){function X(W,J){this.key=W,this.value=J}return X.prototype.toString=function(){return this.key===NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},X}(),Plan=function(){function X(W,J){this.parentContext=W,this.rootRequest=J}return X}(),LazyServiceIdentifier=function(){function X(W){this._cb=W}return X.prototype.unwrap=function(){return this._cb()},X}(),QueryableString=function(){function X(W){this.str=W}return X.prototype.startsWith=function(W){return this.str.indexOf(W)===0},X.prototype.endsWith=function(W){var J="",te=W.split("").reverse().join("");return J=this.str.split("").reverse().join(""),this.startsWith.call({str:J},te)},X.prototype.contains=function(W){return this.str.indexOf(W)!==-1},X.prototype.equals=function(W){return this.str===W},X.prototype.value=function(){return this.str},X}(),Target=function(){function X(W,J,te,re){this.id=id(),this.type=W,this.serviceIdentifier=te;var ne=typeof J=="symbol"?getSymbolDescription(J):J;this.name=new QueryableString(ne||""),this.identifier=J,this.metadata=new Array;var oe=null;typeof re=="string"?oe=new Metadata(NAMED_TAG,re):re instanceof Metadata&&(oe=re),oe!==null&&this.metadata.push(oe)}return X.prototype.hasTag=function(W){for(var J=0,te=this.metadata;J<te.length;J++){var re=te[J];if(re.key===W)return!0}return!1},X.prototype.isArray=function(){return this.hasTag(MULTI_INJECT_TAG)},X.prototype.matchesArray=function(W){return this.matchesTag(MULTI_INJECT_TAG)(W)},X.prototype.isNamed=function(){return this.hasTag(NAMED_TAG)},X.prototype.isTagged=function(){return this.metadata.some(function(W){return NON_CUSTOM_TAG_KEYS.every(function(J){return W.key!==J})})},X.prototype.isOptional=function(){return this.matchesTag(OPTIONAL_TAG)(!0)},X.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(W){return W.key===NAMED_TAG})[0]:null},X.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(W){return NON_CUSTOM_TAG_KEYS.every(function(J){return W.key!==J})}):null},X.prototype.matchesNamedTag=function(W){return this.matchesTag(NAMED_TAG)(W)},X.prototype.matchesTag=function(W){var J=this;return function(te){for(var re=0,ne=J.metadata;re<ne.length;re++){var oe=ne[re];if(oe.key===W&&oe.value===te)return!0}return!1}},X}(),__spreadArray$2=function(X,W,J){if(J||arguments.length===2)for(var te=0,re=W.length,ne;te<re;te++)(ne||!(te in W))&&(ne||(ne=Array.prototype.slice.call(W,0,te)),ne[te]=W[te]);return X.concat(ne||Array.prototype.slice.call(W))};function getDependencies$1(X,W){var J=getFunctionName(W);return getTargets(X,J,W,!1)}function getTargets(X,W,J,te){var re=X.getConstructorMetadata(J),ne=re.compilerGeneratedMetadata;if(ne===void 0){var oe=MISSING_INJECTABLE_ANNOTATION+" "+W+".";throw new Error(oe)}var de=re.userGeneratedMetadata,he=Object.keys(de),ue=J.length===0&&he.length>0,ce=he.length>J.length,pe=ue||ce?he.length:J.length,fe=getConstructorArgsAsTargets(te,W,ne,de,pe),ge=getClassPropsAsTargets(X,J,W),me=__spreadArray$2(__spreadArray$2([],fe,!0),ge,!0);return me}function getConstructorArgsAsTarget(X,W,J,te,re){var ne=re[X.toString()]||[],oe=formatTargetMetadata(ne),de=oe.unmanaged!==!0,he=te[X],ue=oe.inject||oe.multiInject;if(he=ue||he,he instanceof LazyServiceIdentifier&&(he=he.unwrap()),de){var ce=he===Object,pe=he===Function,fe=he===void 0,ge=ce||pe||fe;if(!W&&ge){var me=MISSING_INJECT_ANNOTATION+" argument "+X+" in class "+J+".";throw new Error(me)}var ve=new Target(TargetTypeEnum.ConstructorArgument,oe.targetName,he);return ve.metadata=ne,ve}return null}function getConstructorArgsAsTargets(X,W,J,te,re){for(var ne=[],oe=0;oe<re;oe++){var de=oe,he=getConstructorArgsAsTarget(de,X,W,J,te);he!==null&&ne.push(he)}return ne}function _getServiceIdentifierForProperty(X,W,J,te){var re=X||W;if(re===void 0){var ne=MISSING_INJECTABLE_ANNOTATION+" for property "+String(J)+" in class "+te+".";throw new Error(ne)}return re}function getClassPropsAsTargets(X,W,J){for(var te=X.getPropertiesMetadata(W),re=[],ne=Object.getOwnPropertySymbols(te),oe=Object.keys(te),de=oe.concat(ne),he=0,ue=de;he<ue.length;he++){var ce=ue[he],pe=te[ce],fe=formatTargetMetadata(pe),ge=fe.targetName||ce,me=_getServiceIdentifierForProperty(fe.inject,fe.multiInject,ce,J),ve=new Target(TargetTypeEnum.ClassProperty,ge,me);ve.metadata=pe,re.push(ve)}var be=Object.getPrototypeOf(W.prototype).constructor;if(be!==Object){var ye=getClassPropsAsTargets(X,be,J);re=__spreadArray$2(__spreadArray$2([],re,!0),ye,!0)}return re}function getBaseClassDependencyCount(X,W){var J=Object.getPrototypeOf(W.prototype).constructor;if(J!==Object){var te=getFunctionName(J),re=getTargets(X,te,J,!0),ne=re.map(function(he){return he.metadata.filter(function(ue){return ue.key===UNMANAGED_TAG})}),oe=[].concat.apply([],ne).length,de=re.length-oe;return de>0?de:getBaseClassDependencyCount(X,J)}else return 0}function formatTargetMetadata(X){var W={};return X.forEach(function(J){W[J.key.toString()]=J.value}),{inject:W[INJECT_TAG],multiInject:W[MULTI_INJECT_TAG],targetName:W[NAME_TAG],unmanaged:W[UNMANAGED_TAG]}}var Request$1=function(){function X(W,J,te,re,ne){this.id=id(),this.serviceIdentifier=W,this.parentContext=J,this.parentRequest=te,this.target=ne,this.childRequests=[],this.bindings=Array.isArray(re)?re:[re],this.requestScope=te===null?new Map:null}return X.prototype.addChildRequest=function(W,J,te){var re=new X(W,this.parentContext,this,J,te);return this.childRequests.push(re),re},X}();function getBindingDictionary(X){return X._bindingDictionary}function _createTarget(X,W,J,te,re,ne){var oe=X?MULTI_INJECT_TAG:INJECT_TAG,de=new Metadata(oe,J),he=new Target(W,te,J,de);if(re!==void 0){var ue=new Metadata(re,ne);he.metadata.push(ue)}return he}function _getActiveBindings(X,W,J,te,re){var ne=getBindings(J.container,re.serviceIdentifier),oe=[];return ne.length===BindingCount.NoBindingsAvailable&&J.container.options.autoBindInjectable&&typeof re.serviceIdentifier=="function"&&X.getConstructorMetadata(re.serviceIdentifier).compilerGeneratedMetadata&&(J.container.bind(re.serviceIdentifier).toSelf(),ne=getBindings(J.container,re.serviceIdentifier)),W?oe=ne:oe=ne.filter(function(de){var he=new Request$1(de.serviceIdentifier,J,te,de,re);return de.constraint(he)}),_validateActiveBindingCount(re.serviceIdentifier,oe,re,J.container),oe}function _validateActiveBindingCount(X,W,J,te){switch(W.length){case BindingCount.NoBindingsAvailable:if(J.isOptional())return W;var re=getServiceIdentifierAsString(X),ne=NOT_REGISTERED;throw ne+=listMetadataForTarget(re,J),ne+=listRegisteredBindingsForServiceIdentifier(te,re,getBindings),new Error(ne);case BindingCount.OnlyOneBindingAvailable:return W;case BindingCount.MultipleBindingsAvailable:default:if(J.isArray())return W;var re=getServiceIdentifierAsString(X),ne=AMBIGUOUS_MATCH+" "+re;throw ne+=listRegisteredBindingsForServiceIdentifier(te,re,getBindings),new Error(ne)}}function _createSubRequests(X,W,J,te,re,ne){var oe,de;if(re===null){oe=_getActiveBindings(X,W,te,null,ne),de=new Request$1(J,te,null,oe,ne);var he=new Plan(te,de);te.addPlan(he)}else oe=_getActiveBindings(X,W,te,re,ne),de=re.addChildRequest(ne.serviceIdentifier,oe,ne);oe.forEach(function(ue){var ce=null;if(ne.isArray())ce=de.addChildRequest(ue.serviceIdentifier,ue,ne);else{if(ue.cache)return;ce=de}if(ue.type===BindingTypeEnum.Instance&&ue.implementationType!==null){var pe=getDependencies$1(X,ue.implementationType);if(!te.container.options.skipBaseClassChecks){var fe=getBaseClassDependencyCount(X,ue.implementationType);if(pe.length<fe){var ge=ARGUMENTS_LENGTH_MISMATCH(getFunctionName(ue.implementationType));throw new Error(ge)}}pe.forEach(function(me){_createSubRequests(X,!1,me.serviceIdentifier,te,ce,me)})}})}function getBindings(X,W){var J=[],te=getBindingDictionary(X);return te.hasKey(W)?J=te.get(W):X.parent!==null&&(J=getBindings(X.parent,W)),J}function plan(X,W,J,te,re,ne,oe,de){de===void 0&&(de=!1);var he=new Context(W),ue=_createTarget(J,te,re,"",ne,oe);try{return _createSubRequests(X,de,re,he,null,ue),he}catch(ce){throw isStackOverflowExeption(ce)&&circularDependencyToException(he.plan.rootRequest),ce}}function createMockRequest(X,W,J,te){var re=new Target(TargetTypeEnum.Variable,"",W,new Metadata(J,te)),ne=new Context(X),oe=new Request$1(W,ne,null,[],re);return oe}function isPromise(X){var W=typeof X=="object"&&X!==null||typeof X=="function";return W&&typeof X.then=="function"}function isPromiseOrContainsPromise(X){return isPromise(X)?!0:Array.isArray(X)&&X.some(isPromise)}var __awaiter$3=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator$3=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},tryGetFromScope=function(X,W){return W.scope===BindingScopeEnum.Singleton&&W.activated?W.cache:W.scope===BindingScopeEnum.Request&&X.has(W.id)?X.get(W.id):null},saveToScope=function(X,W,J){W.scope===BindingScopeEnum.Singleton&&_saveToSingletonScope(W,J),W.scope===BindingScopeEnum.Request&&_saveToRequestScope(X,W,J)},_saveToRequestScope=function(X,W,J){X.has(W.id)||X.set(W.id,J)},_saveToSingletonScope=function(X,W){X.cache=W,X.activated=!0,isPromise(W)&&_saveAsyncResultToSingletonScope(X,W)},_saveAsyncResultToSingletonScope=function(X,W){return __awaiter$3(void 0,void 0,void 0,function(){var J,te;return __generator$3(this,function(re){switch(re.label){case 0:return re.trys.push([0,2,,3]),[4,W];case 1:return J=re.sent(),X.cache=J,[3,3];case 2:throw te=re.sent(),X.cache=null,X.activated=!1,te;case 3:return[2]}})})},FactoryType;(function(X){X.DynamicValue="toDynamicValue",X.Factory="toFactory",X.Provider="toProvider"})(FactoryType||(FactoryType={}));var ensureFullyBound=function(X){var W=null;switch(X.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:W=X.cache;break;case BindingTypeEnum.Constructor:case BindingTypeEnum.Instance:W=X.implementationType;break;case BindingTypeEnum.DynamicValue:W=X.dynamicValue;break;case BindingTypeEnum.Provider:W=X.provider;break;case BindingTypeEnum.Factory:W=X.factory;break}if(W===null){var J=getServiceIdentifierAsString(X.serviceIdentifier);throw new Error(INVALID_BINDING_TYPE+" "+J)}},getFactoryDetails=function(X){switch(X.type){case BindingTypeEnum.Factory:return{factory:X.factory,factoryType:FactoryType.Factory};case BindingTypeEnum.Provider:return{factory:X.provider,factoryType:FactoryType.Provider};case BindingTypeEnum.DynamicValue:return{factory:X.dynamicValue,factoryType:FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+X.type)}},__assign$1=function(){return __assign$1=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign$1.apply(this,arguments)},__awaiter$2=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator$2=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},__spreadArray$1=function(X,W,J){if(J||arguments.length===2)for(var te=0,re=W.length,ne;te<re;te++)(ne||!(te in W))&&(ne||(ne=Array.prototype.slice.call(W,0,te)),ne[te]=W[te]);return X.concat(ne||Array.prototype.slice.call(W))};function _resolveRequests(X,W){return X.reduce(function(J,te){var re=W(te),ne=te.target.type;return ne===TargetTypeEnum.ConstructorArgument?J.constructorInjections.push(re):(J.propertyRequests.push(te),J.propertyInjections.push(re)),J.isAsync||(J.isAsync=isPromiseOrContainsPromise(re)),J},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function _createInstance(X,W,J){var te;if(W.length>0){var re=_resolveRequests(W,J),ne=__assign$1(__assign$1({},re),{constr:X});re.isAsync?te=createInstanceWithInjectionsAsync(ne):te=createInstanceWithInjections(ne)}else te=new X;return te}function createInstanceWithInjections(X){var W,J=new((W=X.constr).bind.apply(W,__spreadArray$1([void 0],X.constructorInjections,!1)));return X.propertyRequests.forEach(function(te,re){var ne=te.target.identifier,oe=X.propertyInjections[re];(!te.target.isOptional()||oe!==void 0)&&(J[ne]=oe)}),J}function createInstanceWithInjectionsAsync(X){return __awaiter$2(this,void 0,void 0,function(){var W,J;return __generator$2(this,function(te){switch(te.label){case 0:return[4,possiblyWaitInjections(X.constructorInjections)];case 1:return W=te.sent(),[4,possiblyWaitInjections(X.propertyInjections)];case 2:return J=te.sent(),[2,createInstanceWithInjections(__assign$1(__assign$1({},X),{constructorInjections:W,propertyInjections:J}))]}})})}function possiblyWaitInjections(X){return __awaiter$2(this,void 0,void 0,function(){var W,J,te,re;return __generator$2(this,function(ne){for(W=[],J=0,te=X;J<te.length;J++)re=te[J],Array.isArray(re)?W.push(Promise.all(re)):W.push(re);return[2,Promise.all(W)]})})}function _getInstanceAfterPostConstruct(X,W){var J=_postConstruct(X,W);return isPromise(J)?J.then(function(){return W}):W}function _postConstruct(X,W){var J,te;if(Reflect.hasMetadata(POST_CONSTRUCT,X)){var re=Reflect.getMetadata(POST_CONSTRUCT,X);try{return(te=(J=W)[re.value])===null||te===void 0?void 0:te.call(J)}catch(ne){if(ne instanceof Error)throw new Error(POST_CONSTRUCT_ERROR(X.name,ne.message))}}}function _validateInstanceResolution(X,W){X.scope!==BindingScopeEnum.Singleton&&_throwIfHandlingDeactivation(X,W)}function _throwIfHandlingDeactivation(X,W){var J="Class cannot be instantiated in "+(X.scope===BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof X.onDeactivation=="function")throw new Error(ON_DEACTIVATION_ERROR(W.name,J));if(Reflect.hasMetadata(PRE_DESTROY,W))throw new Error(PRE_DESTROY_ERROR(W.name,J))}function resolveInstance(X,W,J,te){_validateInstanceResolution(X,W);var re=_createInstance(W,J,te);return isPromise(re)?re.then(function(ne){return _getInstanceAfterPostConstruct(W,ne)}):_getInstanceAfterPostConstruct(W,re)}var __awaiter$1=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator$1=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},_resolveRequest=function(X){return function(W){W.parentContext.setCurrentRequest(W);var J=W.bindings,te=W.childRequests,re=W.target&&W.target.isArray(),ne=!W.parentRequest||!W.parentRequest.target||!W.target||!W.parentRequest.target.matchesArray(W.target.serviceIdentifier);if(re&&ne)return te.map(function(de){var he=_resolveRequest(X);return he(de)});if(W.target.isOptional()&&J.length===0)return;var oe=J[0];return _resolveBinding(X,W,oe)}},_resolveFactoryFromBinding=function(X,W){var J=getFactoryDetails(X);return tryAndThrowErrorIfStackOverflow(function(){return J.factory.bind(X)(W)},function(){return new Error(CIRCULAR_DEPENDENCY_IN_FACTORY(J.factoryType,W.currentRequest.serviceIdentifier.toString()))})},_getResolvedFromBinding=function(X,W,J){var te,re=W.childRequests;switch(ensureFullyBound(J),J.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:te=J.cache;break;case BindingTypeEnum.Constructor:te=J.implementationType;break;case BindingTypeEnum.Instance:te=resolveInstance(J,J.implementationType,re,_resolveRequest(X));break;default:te=_resolveFactoryFromBinding(J,W.parentContext)}return te},_resolveInScope=function(X,W,J){var te=tryGetFromScope(X,W);return te!==null||(te=J(),saveToScope(X,W,te)),te},_resolveBinding=function(X,W,J){return _resolveInScope(X,J,function(){var te=_getResolvedFromBinding(X,W,J);return isPromise(te)?te=te.then(function(re){return _onActivation(W,J,re)}):te=_onActivation(W,J,te),te})};function _onActivation(X,W,J){var te=_bindingActivation(X.parentContext,W,J),re=_getContainersIterator(X.parentContext.container),ne,oe=re.next();do{ne=oe.value;var de=X.parentContext,he=X.serviceIdentifier,ue=_getContainerActivationsForService(ne,he);isPromise(te)?te=_activateContainerAsync(ue,de,te):te=_activateContainer(ue,de,te),oe=re.next()}while(oe.done!==!0&&!getBindingDictionary(ne).hasKey(X.serviceIdentifier));return te}var _bindingActivation=function(X,W,J){var te;return typeof W.onActivation=="function"?te=W.onActivation(X,J):te=J,te},_activateContainer=function(X,W,J){for(var te=X.next();!te.done;){if(J=te.value(W,J),isPromise(J))return _activateContainerAsync(X,W,J);te=X.next()}return J},_activateContainerAsync=function(X,W,J){return __awaiter$1(void 0,void 0,void 0,function(){var te,re;return __generator$1(this,function(ne){switch(ne.label){case 0:return[4,J];case 1:te=ne.sent(),re=X.next(),ne.label=2;case 2:return re.done?[3,4]:[4,re.value(W,te)];case 3:return te=ne.sent(),re=X.next(),[3,2];case 4:return[2,te]}})})},_getContainerActivationsForService=function(X,W){var J=X._activations;return J.hasKey(W)?J.get(W).values():[].values()},_getContainersIterator=function(X){for(var W=[X],J=X.parent;J!==null;)W.push(J),J=J.parent;var te=function(){var ne=W.pop();return ne!==void 0?{done:!1,value:ne}:{done:!0,value:void 0}},re={next:te};return re};function resolve(X){var W=_resolveRequest(X.plan.rootRequest.requestScope);return W(X.plan.rootRequest)}var traverseAncerstors=function(X,W){var J=X.parentRequest;return J!==null?W(J)?!0:traverseAncerstors(J,W):!1},taggedConstraint=function(X){return function(W){var J=function(te){return te!==null&&te.target!==null&&te.target.matchesTag(X)(W)};return J.metaData=new Metadata(X,W),J}},namedConstraint=taggedConstraint(NAMED_TAG),typeConstraint=function(X){return function(W){var J=null;if(W!==null)if(J=W.bindings[0],typeof X=="string"){var te=J.serviceIdentifier;return te===X}else{var re=W.bindings[0].implementationType;return X===re}return!1}},BindingWhenSyntax=function(){function X(W){this._binding=W}return X.prototype.when=function(W){return this._binding.constraint=W,new BindingOnSyntax(this._binding)},X.prototype.whenTargetNamed=function(W){return this._binding.constraint=namedConstraint(W),new BindingOnSyntax(this._binding)},X.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(W){if(W===null)return!1;var J=W.target!==null&&!W.target.isNamed()&&!W.target.isTagged();return J},new BindingOnSyntax(this._binding)},X.prototype.whenTargetTagged=function(W,J){return this._binding.constraint=taggedConstraint(W)(J),new BindingOnSyntax(this._binding)},X.prototype.whenInjectedInto=function(W){return this._binding.constraint=function(J){return J!==null&&typeConstraint(W)(J.parentRequest)},new BindingOnSyntax(this._binding)},X.prototype.whenParentNamed=function(W){return this._binding.constraint=function(J){return J!==null&&namedConstraint(W)(J.parentRequest)},new BindingOnSyntax(this._binding)},X.prototype.whenParentTagged=function(W,J){return this._binding.constraint=function(te){return te!==null&&taggedConstraint(W)(J)(te.parentRequest)},new BindingOnSyntax(this._binding)},X.prototype.whenAnyAncestorIs=function(W){return this._binding.constraint=function(J){return J!==null&&traverseAncerstors(J,typeConstraint(W))},new BindingOnSyntax(this._binding)},X.prototype.whenNoAncestorIs=function(W){return this._binding.constraint=function(J){return J!==null&&!traverseAncerstors(J,typeConstraint(W))},new BindingOnSyntax(this._binding)},X.prototype.whenAnyAncestorNamed=function(W){return this._binding.constraint=function(J){return J!==null&&traverseAncerstors(J,namedConstraint(W))},new BindingOnSyntax(this._binding)},X.prototype.whenNoAncestorNamed=function(W){return this._binding.constraint=function(J){return J!==null&&!traverseAncerstors(J,namedConstraint(W))},new BindingOnSyntax(this._binding)},X.prototype.whenAnyAncestorTagged=function(W,J){return this._binding.constraint=function(te){return te!==null&&traverseAncerstors(te,taggedConstraint(W)(J))},new BindingOnSyntax(this._binding)},X.prototype.whenNoAncestorTagged=function(W,J){return this._binding.constraint=function(te){return te!==null&&!traverseAncerstors(te,taggedConstraint(W)(J))},new BindingOnSyntax(this._binding)},X.prototype.whenAnyAncestorMatches=function(W){return this._binding.constraint=function(J){return J!==null&&traverseAncerstors(J,W)},new BindingOnSyntax(this._binding)},X.prototype.whenNoAncestorMatches=function(W){return this._binding.constraint=function(J){return J!==null&&!traverseAncerstors(J,W)},new BindingOnSyntax(this._binding)},X}(),BindingOnSyntax=function(){function X(W){this._binding=W}return X.prototype.onActivation=function(W){return this._binding.onActivation=W,new BindingWhenSyntax(this._binding)},X.prototype.onDeactivation=function(W){return this._binding.onDeactivation=W,new BindingWhenSyntax(this._binding)},X}(),BindingWhenOnSyntax=function(){function X(W){this._binding=W,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding)}return X.prototype.when=function(W){return this._bindingWhenSyntax.when(W)},X.prototype.whenTargetNamed=function(W){return this._bindingWhenSyntax.whenTargetNamed(W)},X.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},X.prototype.whenTargetTagged=function(W,J){return this._bindingWhenSyntax.whenTargetTagged(W,J)},X.prototype.whenInjectedInto=function(W){return this._bindingWhenSyntax.whenInjectedInto(W)},X.prototype.whenParentNamed=function(W){return this._bindingWhenSyntax.whenParentNamed(W)},X.prototype.whenParentTagged=function(W,J){return this._bindingWhenSyntax.whenParentTagged(W,J)},X.prototype.whenAnyAncestorIs=function(W){return this._bindingWhenSyntax.whenAnyAncestorIs(W)},X.prototype.whenNoAncestorIs=function(W){return this._bindingWhenSyntax.whenNoAncestorIs(W)},X.prototype.whenAnyAncestorNamed=function(W){return this._bindingWhenSyntax.whenAnyAncestorNamed(W)},X.prototype.whenAnyAncestorTagged=function(W,J){return this._bindingWhenSyntax.whenAnyAncestorTagged(W,J)},X.prototype.whenNoAncestorNamed=function(W){return this._bindingWhenSyntax.whenNoAncestorNamed(W)},X.prototype.whenNoAncestorTagged=function(W,J){return this._bindingWhenSyntax.whenNoAncestorTagged(W,J)},X.prototype.whenAnyAncestorMatches=function(W){return this._bindingWhenSyntax.whenAnyAncestorMatches(W)},X.prototype.whenNoAncestorMatches=function(W){return this._bindingWhenSyntax.whenNoAncestorMatches(W)},X.prototype.onActivation=function(W){return this._bindingOnSyntax.onActivation(W)},X.prototype.onDeactivation=function(W){return this._bindingOnSyntax.onDeactivation(W)},X}(),BindingInSyntax=function(){function X(W){this._binding=W}return X.prototype.inRequestScope=function(){return this._binding.scope=BindingScopeEnum.Request,new BindingWhenOnSyntax(this._binding)},X.prototype.inSingletonScope=function(){return this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.inTransientScope=function(){return this._binding.scope=BindingScopeEnum.Transient,new BindingWhenOnSyntax(this._binding)},X}(),BindingInWhenOnSyntax=function(){function X(W){this._binding=W,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding),this._bindingInSyntax=new BindingInSyntax(W)}return X.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},X.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},X.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},X.prototype.when=function(W){return this._bindingWhenSyntax.when(W)},X.prototype.whenTargetNamed=function(W){return this._bindingWhenSyntax.whenTargetNamed(W)},X.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},X.prototype.whenTargetTagged=function(W,J){return this._bindingWhenSyntax.whenTargetTagged(W,J)},X.prototype.whenInjectedInto=function(W){return this._bindingWhenSyntax.whenInjectedInto(W)},X.prototype.whenParentNamed=function(W){return this._bindingWhenSyntax.whenParentNamed(W)},X.prototype.whenParentTagged=function(W,J){return this._bindingWhenSyntax.whenParentTagged(W,J)},X.prototype.whenAnyAncestorIs=function(W){return this._bindingWhenSyntax.whenAnyAncestorIs(W)},X.prototype.whenNoAncestorIs=function(W){return this._bindingWhenSyntax.whenNoAncestorIs(W)},X.prototype.whenAnyAncestorNamed=function(W){return this._bindingWhenSyntax.whenAnyAncestorNamed(W)},X.prototype.whenAnyAncestorTagged=function(W,J){return this._bindingWhenSyntax.whenAnyAncestorTagged(W,J)},X.prototype.whenNoAncestorNamed=function(W){return this._bindingWhenSyntax.whenNoAncestorNamed(W)},X.prototype.whenNoAncestorTagged=function(W,J){return this._bindingWhenSyntax.whenNoAncestorTagged(W,J)},X.prototype.whenAnyAncestorMatches=function(W){return this._bindingWhenSyntax.whenAnyAncestorMatches(W)},X.prototype.whenNoAncestorMatches=function(W){return this._bindingWhenSyntax.whenNoAncestorMatches(W)},X.prototype.onActivation=function(W){return this._bindingOnSyntax.onActivation(W)},X.prototype.onDeactivation=function(W){return this._bindingOnSyntax.onDeactivation(W)},X}(),BindingToSyntax=function(){function X(W){this._binding=W}return X.prototype.to=function(W){return this._binding.type=BindingTypeEnum.Instance,this._binding.implementationType=W,new BindingInWhenOnSyntax(this._binding)},X.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+INVALID_TO_SELF_VALUE);var W=this._binding.serviceIdentifier;return this.to(W)},X.prototype.toConstantValue=function(W){return this._binding.type=BindingTypeEnum.ConstantValue,this._binding.cache=W,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toDynamicValue=function(W){return this._binding.type=BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=W,this._binding.implementationType=null,new BindingInWhenOnSyntax(this._binding)},X.prototype.toConstructor=function(W){return this._binding.type=BindingTypeEnum.Constructor,this._binding.implementationType=W,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toFactory=function(W){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=W,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toFunction=function(W){if(typeof W!="function")throw new Error(INVALID_FUNCTION_BINDING);var J=this.toConstantValue(W);return this._binding.type=BindingTypeEnum.Function,this._binding.scope=BindingScopeEnum.Singleton,J},X.prototype.toAutoFactory=function(W){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(J){var te=function(){return J.container.get(W)};return te},this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toAutoNamedFactory=function(W){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(J){return function(te){return J.container.getNamed(W,te)}},new BindingWhenOnSyntax(this._binding)},X.prototype.toProvider=function(W){return this._binding.type=BindingTypeEnum.Provider,this._binding.provider=W,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toService=function(W){this.toDynamicValue(function(J){return J.container.get(W)})},X}(),ContainerSnapshot=function(){function X(){}return X.of=function(W,J,te,re,ne){var oe=new X;return oe.bindings=W,oe.middleware=J,oe.deactivations=re,oe.activations=te,oe.moduleActivationStore=ne,oe},X}();function isClonable(X){return typeof X=="object"&&X!==null&&"clone"in X&&typeof X.clone=="function"}var Lookup=function(){function X(){this._map=new Map}return X.prototype.getMap=function(){return this._map},X.prototype.add=function(W,J){if(W==null)throw new Error(NULL_ARGUMENT);if(J==null)throw new Error(NULL_ARGUMENT);var te=this._map.get(W);te!==void 0?te.push(J):this._map.set(W,[J])},X.prototype.get=function(W){if(W==null)throw new Error(NULL_ARGUMENT);var J=this._map.get(W);if(J!==void 0)return J;throw new Error(KEY_NOT_FOUND)},X.prototype.remove=function(W){if(W==null)throw new Error(NULL_ARGUMENT);if(!this._map.delete(W))throw new Error(KEY_NOT_FOUND)},X.prototype.removeIntersection=function(W){var J=this;this.traverse(function(te,re){var ne=W.hasKey(te)?W.get(te):void 0;if(ne!==void 0){var oe=re.filter(function(de){return!ne.some(function(he){return de===he})});J._setValue(te,oe)}})},X.prototype.removeByCondition=function(W){var J=this,te=[];return this._map.forEach(function(re,ne){for(var oe=[],de=0,he=re;de<he.length;de++){var ue=he[de],ce=W(ue);ce?te.push(ue):oe.push(ue)}J._setValue(ne,oe)}),te},X.prototype.hasKey=function(W){if(W==null)throw new Error(NULL_ARGUMENT);return this._map.has(W)},X.prototype.clone=function(){var W=new X;return this._map.forEach(function(J,te){J.forEach(function(re){return W.add(te,isClonable(re)?re.clone():re)})}),W},X.prototype.traverse=function(W){this._map.forEach(function(J,te){W(te,J)})},X.prototype._setValue=function(W,J){J.length>0?this._map.set(W,J):this._map.delete(W)},X}(),ModuleActivationStore=function(){function X(){this._map=new Map}return X.prototype.remove=function(W){if(this._map.has(W)){var J=this._map.get(W);return this._map.delete(W),J}return this._getEmptyHandlersStore()},X.prototype.addDeactivation=function(W,J,te){this._getModuleActivationHandlers(W).onDeactivations.add(J,te)},X.prototype.addActivation=function(W,J,te){this._getModuleActivationHandlers(W).onActivations.add(J,te)},X.prototype.clone=function(){var W=new X;return this._map.forEach(function(J,te){W._map.set(te,{onActivations:J.onActivations.clone(),onDeactivations:J.onDeactivations.clone()})}),W},X.prototype._getModuleActivationHandlers=function(W){var J=this._map.get(W);return J===void 0&&(J=this._getEmptyHandlersStore(),this._map.set(W,J)),J},X.prototype._getEmptyHandlersStore=function(){var W={onActivations:new Lookup,onDeactivations:new Lookup};return W},X}(),__assign=function(){return __assign=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign.apply(this,arguments)},__awaiter=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},__spreadArray=function(X,W,J){if(J||arguments.length===2)for(var te=0,re=W.length,ne;te<re;te++)(ne||!(te in W))&&(ne||(ne=Array.prototype.slice.call(W,0,te)),ne[te]=W[te]);return X.concat(ne||Array.prototype.slice.call(W))},Container=function(){function X(W){var J=W||{};if(typeof J!="object")throw new Error(""+CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(J.defaultScope===void 0)J.defaultScope=BindingScopeEnum.Transient;else if(J.defaultScope!==BindingScopeEnum.Singleton&&J.defaultScope!==BindingScopeEnum.Transient&&J.defaultScope!==BindingScopeEnum.Request)throw new Error(""+CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(J.autoBindInjectable===void 0)J.autoBindInjectable=!1;else if(typeof J.autoBindInjectable!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(J.skipBaseClassChecks===void 0)J.skipBaseClassChecks=!1;else if(typeof J.skipBaseClassChecks!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:J.autoBindInjectable,defaultScope:J.defaultScope,skipBaseClassChecks:J.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 X.merge=function(W,J){for(var te=[],re=2;re<arguments.length;re++)te[re-2]=arguments[re];var ne=new X,oe=__spreadArray([W,J],te,!0).map(function(ue){return getBindingDictionary(ue)}),de=getBindingDictionary(ne);function he(ue,ce){ue.traverse(function(pe,fe){fe.forEach(function(ge){ce.add(ge.serviceIdentifier,ge.clone())})})}return oe.forEach(function(ue){he(ue,de)}),ne},X.prototype.load=function(){for(var W=[],J=0;J<arguments.length;J++)W[J]=arguments[J];for(var te=this._getContainerModuleHelpersFactory(),re=0,ne=W;re<ne.length;re++){var oe=ne[re],de=te(oe.id);oe.registry(de.bindFunction,de.unbindFunction,de.isboundFunction,de.rebindFunction,de.unbindAsyncFunction,de.onActivationFunction,de.onDeactivationFunction)}},X.prototype.loadAsync=function(){for(var W=[],J=0;J<arguments.length;J++)W[J]=arguments[J];return __awaiter(this,void 0,void 0,function(){var te,re,ne,oe,de;return __generator(this,function(he){switch(he.label){case 0:te=this._getContainerModuleHelpersFactory(),re=0,ne=W,he.label=1;case 1:return re<ne.length?(oe=ne[re],de=te(oe.id),[4,oe.registry(de.bindFunction,de.unbindFunction,de.isboundFunction,de.rebindFunction,de.unbindAsyncFunction,de.onActivationFunction,de.onDeactivationFunction)]):[3,4];case 2:he.sent(),he.label=3;case 3:return re++,[3,1];case 4:return[2]}})})},X.prototype.unload=function(){for(var W=this,J=[],te=0;te<arguments.length;te++)J[te]=arguments[te];J.forEach(function(re){var ne=W._removeModuleBindings(re.id);W._deactivateSingletons(ne),W._removeModuleHandlers(re.id)})},X.prototype.unloadAsync=function(){for(var W=[],J=0;J<arguments.length;J++)W[J]=arguments[J];return __awaiter(this,void 0,void 0,function(){var te,re,ne,oe;return __generator(this,function(de){switch(de.label){case 0:te=0,re=W,de.label=1;case 1:return te<re.length?(ne=re[te],oe=this._removeModuleBindings(ne.id),[4,this._deactivateSingletonsAsync(oe)]):[3,4];case 2:de.sent(),this._removeModuleHandlers(ne.id),de.label=3;case 3:return te++,[3,1];case 4:return[2]}})})},X.prototype.bind=function(W){var J=this.options.defaultScope||BindingScopeEnum.Transient,te=new Binding(W,J);return this._bindingDictionary.add(W,te),new BindingToSyntax(te)},X.prototype.rebind=function(W){return this.unbind(W),this.bind(W)},X.prototype.rebindAsync=function(W){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(J){switch(J.label){case 0:return[4,this.unbindAsync(W)];case 1:return J.sent(),[2,this.bind(W)]}})})},X.prototype.unbind=function(W){if(this._bindingDictionary.hasKey(W)){var J=this._bindingDictionary.get(W);this._deactivateSingletons(J)}this._removeServiceFromDictionary(W)},X.prototype.unbindAsync=function(W){return __awaiter(this,void 0,void 0,function(){var J;return __generator(this,function(te){switch(te.label){case 0:return this._bindingDictionary.hasKey(W)?(J=this._bindingDictionary.get(W),[4,this._deactivateSingletonsAsync(J)]):[3,2];case 1:te.sent(),te.label=2;case 2:return this._removeServiceFromDictionary(W),[2]}})})},X.prototype.unbindAll=function(){var W=this;this._bindingDictionary.traverse(function(J,te){W._deactivateSingletons(te)}),this._bindingDictionary=new Lookup},X.prototype.unbindAllAsync=function(){return __awaiter(this,void 0,void 0,function(){var W,J=this;return __generator(this,function(te){switch(te.label){case 0:return W=[],this._bindingDictionary.traverse(function(re,ne){W.push(J._deactivateSingletonsAsync(ne))}),[4,Promise.all(W)];case 1:return te.sent(),this._bindingDictionary=new Lookup,[2]}})})},X.prototype.onActivation=function(W,J){this._activations.add(W,J)},X.prototype.onDeactivation=function(W,J){this._deactivations.add(W,J)},X.prototype.isBound=function(W){var J=this._bindingDictionary.hasKey(W);return!J&&this.parent&&(J=this.parent.isBound(W)),J},X.prototype.isCurrentBound=function(W){return this._bindingDictionary.hasKey(W)},X.prototype.isBoundNamed=function(W,J){return this.isBoundTagged(W,NAMED_TAG,J)},X.prototype.isBoundTagged=function(W,J,te){var re=!1;if(this._bindingDictionary.hasKey(W)){var ne=this._bindingDictionary.get(W),oe=createMockRequest(this,W,J,te);re=ne.some(function(de){return de.constraint(oe)})}return!re&&this.parent&&(re=this.parent.isBoundTagged(W,J,te)),re},X.prototype.snapshot=function(){this._snapshots.push(ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},X.prototype.restore=function(){var W=this._snapshots.pop();if(W===void 0)throw new Error(NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=W.bindings,this._activations=W.activations,this._deactivations=W.deactivations,this._middleware=W.middleware,this._moduleActivationStore=W.moduleActivationStore},X.prototype.createChild=function(W){var J=new X(W||this.options);return J.parent=this,J},X.prototype.applyMiddleware=function(){for(var W=[],J=0;J<arguments.length;J++)W[J]=arguments[J];var te=this._middleware?this._middleware:this._planAndResolve();this._middleware=W.reduce(function(re,ne){return ne(re)},te)},X.prototype.applyCustomMetadataReader=function(W){this._metadataReader=W},X.prototype.get=function(W){var J=this._getNotAllArgs(W,!1);return this._getButThrowIfAsync(J)},X.prototype.getAsync=function(W){return __awaiter(this,void 0,void 0,function(){var J;return __generator(this,function(te){return J=this._getNotAllArgs(W,!1),[2,this._get(J)]})})},X.prototype.getTagged=function(W,J,te){var re=this._getNotAllArgs(W,!1,J,te);return this._getButThrowIfAsync(re)},X.prototype.getTaggedAsync=function(W,J,te){return __awaiter(this,void 0,void 0,function(){var re;return __generator(this,function(ne){return re=this._getNotAllArgs(W,!1,J,te),[2,this._get(re)]})})},X.prototype.getNamed=function(W,J){return this.getTagged(W,NAMED_TAG,J)},X.prototype.getNamedAsync=function(W,J){return this.getTaggedAsync(W,NAMED_TAG,J)},X.prototype.getAll=function(W){var J=this._getAllArgs(W);return this._getButThrowIfAsync(J)},X.prototype.getAllAsync=function(W){var J=this._getAllArgs(W);return this._getAll(J)},X.prototype.getAllTagged=function(W,J,te){var re=this._getNotAllArgs(W,!0,J,te);return this._getButThrowIfAsync(re)},X.prototype.getAllTaggedAsync=function(W,J,te){var re=this._getNotAllArgs(W,!0,J,te);return this._getAll(re)},X.prototype.getAllNamed=function(W,J){return this.getAllTagged(W,NAMED_TAG,J)},X.prototype.getAllNamedAsync=function(W,J){return this.getAllTaggedAsync(W,NAMED_TAG,J)},X.prototype.resolve=function(W){var J=this.isBound(W);J||this.bind(W).toSelf();var te=this.get(W);return J||this.unbind(W),te},X.prototype._preDestroy=function(W,J){var te,re;if(Reflect.hasMetadata(PRE_DESTROY,W)){var ne=Reflect.getMetadata(PRE_DESTROY,W);return(re=(te=J)[ne.value])===null||re===void 0?void 0:re.call(te)}},X.prototype._removeModuleHandlers=function(W){var J=this._moduleActivationStore.remove(W);this._activations.removeIntersection(J.onActivations),this._deactivations.removeIntersection(J.onDeactivations)},X.prototype._removeModuleBindings=function(W){return this._bindingDictionary.removeByCondition(function(J){return J.moduleId===W})},X.prototype._deactivate=function(W,J){var te=this,re=Object.getPrototypeOf(J).constructor;try{if(this._deactivations.hasKey(W.serviceIdentifier)){var ne=this._deactivateContainer(J,this._deactivations.get(W.serviceIdentifier).values());if(isPromise(ne))return this._handleDeactivationError(ne.then(function(){return te._propagateContainerDeactivationThenBindingAndPreDestroyAsync(W,J,re)}),re)}var oe=this._propagateContainerDeactivationThenBindingAndPreDestroy(W,J,re);if(isPromise(oe))return this._handleDeactivationError(oe,re)}catch(de){if(de instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(re.name,de.message))}},X.prototype._handleDeactivationError=function(W,J){return __awaiter(this,void 0,void 0,function(){var te;return __generator(this,function(re){switch(re.label){case 0:return re.trys.push([0,2,,3]),[4,W];case 1:return re.sent(),[3,3];case 2:if(te=re.sent(),te instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(J.name,te.message));return[3,3];case 3:return[2]}})})},X.prototype._deactivateContainer=function(W,J){for(var te=this,re=J.next();re.value;){var ne=re.value(W);if(isPromise(ne))return ne.then(function(){return te._deactivateContainerAsync(W,J)});re=J.next()}},X.prototype._deactivateContainerAsync=function(W,J){return __awaiter(this,void 0,void 0,function(){var te;return __generator(this,function(re){switch(re.label){case 0:te=J.next(),re.label=1;case 1:return te.value?[4,te.value(W)]:[3,3];case 2:return re.sent(),te=J.next(),[3,1];case 3:return[2]}})})},X.prototype._getContainerModuleHelpersFactory=function(){var W=this,J=function(ce,pe){ce._binding.moduleId=pe},te=function(ce){return function(pe){var fe=W.bind(pe);return J(fe,ce),fe}},re=function(){return function(ce){return W.unbind(ce)}},ne=function(){return function(ce){return W.unbindAsync(ce)}},oe=function(){return function(ce){return W.isBound(ce)}},de=function(ce){return function(pe){var fe=W.rebind(pe);return J(fe,ce),fe}},he=function(ce){return function(pe,fe){W._moduleActivationStore.addActivation(ce,pe,fe),W.onActivation(pe,fe)}},ue=function(ce){return function(pe,fe){W._moduleActivationStore.addDeactivation(ce,pe,fe),W.onDeactivation(pe,fe)}};return function(ce){return{bindFunction:te(ce),isboundFunction:oe(),onActivationFunction:he(ce),onDeactivationFunction:ue(ce),rebindFunction:de(ce),unbindFunction:re(),unbindAsyncFunction:ne()}}},X.prototype._getAll=function(W){return Promise.all(this._get(W))},X.prototype._get=function(W){var J=__assign(__assign({},W),{contextInterceptor:function(re){return re},targetType:TargetTypeEnum.Variable});if(this._middleware){var te=this._middleware(J);if(te==null)throw new Error(INVALID_MIDDLEWARE_RETURN);return te}return this._planAndResolve()(J)},X.prototype._getButThrowIfAsync=function(W){var J=this._get(W);if(isPromiseOrContainsPromise(J))throw new Error(LAZY_IN_SYNC(W.serviceIdentifier));return J},X.prototype._getAllArgs=function(W){var J={avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:W};return J},X.prototype._getNotAllArgs=function(W,J,te,re){var ne={avoidConstraints:!1,isMultiInject:J,serviceIdentifier:W,key:te,value:re};return ne},X.prototype._planAndResolve=function(){var W=this;return function(J){var te=plan(W._metadataReader,W,J.isMultiInject,J.targetType,J.serviceIdentifier,J.key,J.value,J.avoidConstraints);te=J.contextInterceptor(te);var re=resolve(te);return re}},X.prototype._deactivateIfSingleton=function(W){var J=this;if(W.activated)return isPromise(W.cache)?W.cache.then(function(te){return J._deactivate(W,te)}):this._deactivate(W,W.cache)},X.prototype._deactivateSingletons=function(W){for(var J=0,te=W;J<te.length;J++){var re=te[J],ne=this._deactivateIfSingleton(re);if(isPromise(ne))throw new Error(ASYNC_UNBIND_REQUIRED)}},X.prototype._deactivateSingletonsAsync=function(W){return __awaiter(this,void 0,void 0,function(){var J=this;return __generator(this,function(te){switch(te.label){case 0:return[4,Promise.all(W.map(function(re){return J._deactivateIfSingleton(re)}))];case 1:return te.sent(),[2]}})})},X.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(W,J,te){return this.parent?this._deactivate.bind(this.parent)(W,J):this._bindingDeactivationAndPreDestroy(W,J,te)},X.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(W,J,te){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(re){switch(re.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(W,J)]:[3,2];case 1:return re.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(W,J,te)];case 3:re.sent(),re.label=4;case 4:return[2]}})})},X.prototype._removeServiceFromDictionary=function(W){try{this._bindingDictionary.remove(W)}catch{throw new Error(CANNOT_UNBIND+" "+getServiceIdentifierAsString(W))}},X.prototype._bindingDeactivationAndPreDestroy=function(W,J,te){var re=this;if(typeof W.onDeactivation=="function"){var ne=W.onDeactivation(J);if(isPromise(ne))return ne.then(function(){return re._preDestroy(te,J)})}return this._preDestroy(te,J)},X.prototype._bindingDeactivationAndPreDestroyAsync=function(W,J,te){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(re){switch(re.label){case 0:return typeof W.onDeactivation!="function"?[3,2]:[4,W.onDeactivation(J)];case 1:re.sent(),re.label=2;case 2:return[4,this._preDestroy(te,J)];case 3:return re.sent(),[2]}})})},X}();function getFirstArrayDuplicate(X){for(var W=new Set,J=0,te=X;J<te.length;J++){var re=te[J];if(W.has(re))return re;W.add(re)}}function targetIsConstructorFunction(X){return X.prototype!==void 0}function _throwIfMethodParameter(X){if(X!==void 0)throw new Error(INVALID_DECORATOR_OPERATION)}function tagParameter(X,W,J,te){_throwIfMethodParameter(W),_tagParameterOrProperty(TAGGED,X,J.toString(),te)}function tagProperty(X,W,J){if(targetIsConstructorFunction(X))throw new Error(INVALID_DECORATOR_OPERATION);_tagParameterOrProperty(TAGGED_PROP,X.constructor,W,J)}function _ensureNoMetadataKeyDuplicates(X){var W=[];if(Array.isArray(X)){W=X;var J=getFirstArrayDuplicate(W.map(function(te){return te.key}));if(J!==void 0)throw new Error(DUPLICATED_METADATA+" "+J.toString())}else W=[X];return W}function _tagParameterOrProperty(X,W,J,te){var re=_ensureNoMetadataKeyDuplicates(te),ne={};Reflect.hasOwnMetadata(X,W)&&(ne=Reflect.getMetadata(X,W));var oe=ne[J];if(oe===void 0)oe=[];else for(var de=function(pe){if(re.some(function(fe){return fe.key===pe.key}))throw new Error(DUPLICATED_METADATA+" "+pe.key.toString())},he=0,ue=oe;he<ue.length;he++){var ce=ue[he];de(ce)}oe.push.apply(oe,re),ne[J]=oe,Reflect.defineMetadata(X,ne,W)}function createTaggedDecorator(X){return function(W,J,te){typeof te=="number"?tagParameter(W,J,te,X):tagProperty(W,J,X)}}function injectable(){return function(X){if(Reflect.hasOwnMetadata(PARAM_TYPES,X))throw new Error(DUPLICATED_INJECTABLE_DECORATOR);var W=Reflect.getMetadata(DESIGN_PARAM_TYPES,X)||[];return Reflect.defineMetadata(PARAM_TYPES,W,X),X}}function injectBase(X){return function(W){return function(J,te,re){if(W===void 0){var ne=typeof J=="function"?J.name:J.constructor.name;throw new Error(UNDEFINED_INJECT_ANNOTATION(ne))}return createTaggedDecorator(new Metadata(X,W))(J,te,re)}}}var inject=injectBase(INJECT_TAG),INJECTION=Symbol.for("INJECTION");function _proxyGetter(X,W,J,te){function re(){return Reflect.hasMetadata(INJECTION,this,W)?Reflect.getMetadata(INJECTION,this,W):J()}function ne(oe){Reflect.defineMetadata(INJECTION,oe,this,W)}Object.defineProperty(X,W,{configurable:!0,enumerable:!0,get:re,set:ne})}function makePropertyInjectDecorator(X,W){return function(J){return function(te,re){var ne=function(){return X.get(J)};_proxyGetter(te,re,ne)}}}function makePropertyInjectNamedDecorator(X,W){return function(J,te){return function(re,ne){var oe=function(){return X.getNamed(J,te)};_proxyGetter(re,ne,oe)}}}function makePropertyInjectTaggedDecorator(X,W){return function(J,te,re){return function(ne,oe){var de=function(){return X.getTagged(J,te,re)};_proxyGetter(ne,oe,de)}}}function makePropertyMultiInjectDecorator(X,W){return function(J){return function(te,re){var ne=function(){return X.getAll(J)};_proxyGetter(te,re,ne)}}}function getDecorators(X,W){var J=makePropertyInjectDecorator(X),te=makePropertyInjectNamedDecorator(X),re=makePropertyInjectTaggedDecorator(X),ne=makePropertyMultiInjectDecorator(X);return{lazyInject:J,lazyInjectNamed:te,lazyInjectTagged:re,lazyMultiInject:ne}}const container$1=new Container,registerDep=X=>{container$1.bind(X).toSelf()},unregisterDep=X=>{container$1.isBound(X)&&container$1.unbind(X)},TYPES$1={primaryApi:Symbol.for("primaryApi"),store:Symbol.for("store"),localeManager:Symbol.for("localeManager")},registerRequest$1=(X,W)=>(J,te)=>{W.bind(te).to(te).inTransientScope(),injectable()(te);const re=X.broker.registerRequest(J,ne=>W.get(te).handle(ne));return{dispose:()=>{W.isBound(te)&&W.unbind(te),re.dispose()}}},disposeShell=()=>{teardownFeatures()},raiseCloseEvent=()=>{shellApi.ecapEventManager.publish("CLOSE_FORM","",{})},registerRequest=(X,W)=>(J,te)=>{W.bind(te).to(te).inTransientScope(),injectable()(te);const re=X.broker.registerRequest(J,ne=>W.get(te).handle(ne));return{dispose:()=>{W.isBound(te)&&W.unbind(te),re.dispose()}}},brokerExtensions=(X,W)=>({registerRequest:registerRequest(X,W)});function createConnectToStoreDecorator(X){return function(J){return(te,re)=>{Object.defineProperty(te,re,{get(){return this[`__${re}`]},set(de){this[`__${re}`]!==de&&(this[`__${re}`]=Array.isArray(de)?[...de]:typeof de=="object"&&de!==null?{...de}:de,this.requestUpdate(re))},configurable:!0,enumerable:!0});const ne=te.connectedCallback,oe=te.disconnectedCallback;te.connectedCallback=function(){ne&&ne.call(this),this[re]=J(X.getState()),this[`__unsubscribe__${re}`]=X.subscribe(()=>{const de=J(X.getState());this[re]=Array.isArray(de)?[...de]:typeof de=="object"&&de!==null?{...de}:de})},te.disconnectedCallback=function(){oe&&oe.call(this),this[`__unsubscribe__${re}`]&&this[`__unsubscribe__${re}`]()}}}}function createConnectedProperty(X){return(W,J={})=>{const te=createConnectToStoreDecorator(X);return(re,ne)=>{n$v(J)(re,ne),te(W)(re,ne)}}}const TYPES={primaryApi:Symbol.for("primaryApi"),store:Symbol.for("store")};function formatProdErrorMessage$1(X){return`Minified Redux error #${X}; visit https://redux.js.org/Errors?code=${X} 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(X){if(typeof X!="object"||X===null)return!1;let W=X;for(;Object.getPrototypeOf(W)!==null;)W=Object.getPrototypeOf(W);return Object.getPrototypeOf(X)===W||Object.getPrototypeOf(X)===null}function createStore(X,W,J){if(typeof X!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof W=="function"&&typeof J=="function"||typeof J=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof W=="function"&&typeof J>"u"&&(J=W,W=void 0),typeof J<"u"){if(typeof J!="function")throw new Error(formatProdErrorMessage$1(1));return J(createStore)(X,W)}let te=X,re=W,ne=new Map,oe=ne,de=0,he=!1;function ue(){oe===ne&&(oe=new Map,ne.forEach((be,ye)=>{oe.set(ye,be)}))}function ce(){if(he)throw new Error(formatProdErrorMessage$1(3));return re}function pe(be){if(typeof be!="function")throw new Error(formatProdErrorMessage$1(4));if(he)throw new Error(formatProdErrorMessage$1(5));let ye=!0;ue();const we=de++;return oe.set(we,be),function(){if(ye){if(he)throw new Error(formatProdErrorMessage$1(6));ye=!1,ue(),oe.delete(we),ne=null}}}function fe(be){if(!isPlainObject$1(be))throw new Error(formatProdErrorMessage$1(7));if(typeof be.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof be.type!="string")throw new Error(formatProdErrorMessage$1(17));if(he)throw new Error(formatProdErrorMessage$1(9));try{he=!0,re=te(re,be)}finally{he=!1}return(ne=oe).forEach(we=>{we()}),be}function ge(be){if(typeof be!="function")throw new Error(formatProdErrorMessage$1(10));te=be,fe({type:actionTypes_default.REPLACE})}function me(){const be=pe;return{subscribe(ye){if(typeof ye!="object"||ye===null)throw new Error(formatProdErrorMessage$1(11));function we(){const _e=ye;_e.next&&_e.next(ce())}return we(),{unsubscribe:be(we)}},[symbol_observable_default](){return this}}}return fe({type:actionTypes_default.INIT}),{dispatch:fe,subscribe:pe,getState:ce,replaceReducer:ge,[symbol_observable_default]:me}}function assertReducerShape(X){Object.keys(X).forEach(W=>{const J=X[W];if(typeof J(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof J(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(X){const W=Object.keys(X),J={};for(let ne=0;ne<W.length;ne++){const oe=W[ne];typeof X[oe]=="function"&&(J[oe]=X[oe])}const te=Object.keys(J);let re;try{assertReducerShape(J)}catch(ne){re=ne}return function(oe={},de){if(re)throw re;let he=!1;const ue={};for(let ce=0;ce<te.length;ce++){const pe=te[ce],fe=J[pe],ge=oe[pe],me=fe(ge,de);if(typeof me>"u")throw de&&de.type,new Error(formatProdErrorMessage$1(14));ue[pe]=me,he=he||me!==ge}return he=he||te.length!==Object.keys(oe).length,he?ue:oe}}function compose(...X){return X.length===0?W=>W:X.length===1?X[0]:X.reduce((W,J)=>(...te)=>W(J(...te)))}function applyMiddleware(...X){return W=>(J,te)=>{const re=W(J,te);let ne=()=>{throw new Error(formatProdErrorMessage$1(15))};const oe={getState:re.getState,dispatch:(he,...ue)=>ne(he,...ue)},de=X.map(he=>he(oe));return ne=compose(...de)(re.dispatch),{...re,dispatch:ne}}}function isAction(X){return isPlainObject$1(X)&&"type"in X&&typeof X.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(X,...W){throw new Error(`[Immer] minified error nr: ${X}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(X){return!!X&&!!X[DRAFT_STATE]}function isDraftable(X){var W;return X?isPlainObject(X)||Array.isArray(X)||!!X[DRAFTABLE]||!!((W=X.constructor)!=null&&W[DRAFTABLE])||isMap(X)||isSet(X):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject(X){if(!X||typeof X!="object")return!1;const W=getPrototypeOf(X);if(W===null)return!0;const J=Object.hasOwnProperty.call(W,"constructor")&&W.constructor;return J===Object?!0:typeof J=="function"&&Function.toString.call(J)===objectCtorString}function each(X,W){getArchtype(X)===0?Reflect.ownKeys(X).forEach(J=>{W(J,X[J],X)}):X.forEach((J,te)=>W(te,J,X))}function getArchtype(X){const W=X[DRAFT_STATE];return W?W.type_:Array.isArray(X)?1:isMap(X)?2:isSet(X)?3:0}function has(X,W){return getArchtype(X)===2?X.has(W):Object.prototype.hasOwnProperty.call(X,W)}function set(X,W,J){const te=getArchtype(X);te===2?X.set(W,J):te===3?X.add(J):X[W]=J}function is(X,W){return X===W?X!==0||1/X===1/W:X!==X&&W!==W}function isMap(X){return X instanceof Map}function isSet(X){return X instanceof Set}function latest(X){return X.copy_||X.base_}function shallowCopy(X,W){if(isMap(X))return new Map(X);if(isSet(X))return new Set(X);if(Array.isArray(X))return Array.prototype.slice.call(X);const J=isPlainObject(X);if(W===!0||W==="class_only"&&!J){const te=Object.getOwnPropertyDescriptors(X);delete te[DRAFT_STATE];let re=Reflect.ownKeys(te);for(let ne=0;ne<re.length;ne++){const oe=re[ne],de=te[oe];de.writable===!1&&(de.writable=!0,de.configurable=!0),(de.get||de.set)&&(te[oe]={configurable:!0,writable:!0,enumerable:de.enumerable,value:X[oe]})}return Object.create(getPrototypeOf(X),te)}else{const te=getPrototypeOf(X);if(te!==null&&J)return{...X};const re=Object.create(te);return Object.assign(re,X)}}function freeze(X,W=!1){return isFrozen(X)||isDraft(X)||!isDraftable(X)||(getArchtype(X)>1&&(X.set=X.add=X.clear=X.delete=dontMutateFrozenCollections),Object.freeze(X),W&&Object.entries(X).forEach(([J,te])=>freeze(te,!0))),X}function dontMutateFrozenCollections(){die(2)}function isFrozen(X){return Object.isFrozen(X)}var plugins={};function getPlugin(X){const W=plugins[X];return W||die(0,X),W}var currentScope;function getCurrentScope(){return currentScope}function createScope(X,W){return{drafts_:[],parent_:X,immer_:W,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(X,W){W&&(getPlugin("Patches"),X.patches_=[],X.inversePatches_=[],X.patchListener_=W)}function revokeScope(X){leaveScope(X),X.drafts_.forEach(revokeDraft),X.drafts_=null}function leaveScope(X){X===currentScope&&(currentScope=X.parent_)}function enterScope(X){return currentScope=createScope(currentScope,X)}function revokeDraft(X){const W=X[DRAFT_STATE];W.type_===0||W.type_===1?W.revoke_():W.revoked_=!0}function processResult(X,W){W.unfinalizedDrafts_=W.drafts_.length;const J=W.drafts_[0];return X!==void 0&&X!==J?(J[DRAFT_STATE].modified_&&(revokeScope(W),die(4)),isDraftable(X)&&(X=finalize(W,X),W.parent_||maybeFreeze(W,X)),W.patches_&&getPlugin("Patches").generateReplacementPatches_(J[DRAFT_STATE].base_,X,W.patches_,W.inversePatches_)):X=finalize(W,J,[]),revokeScope(W),W.patches_&&W.patchListener_(W.patches_,W.inversePatches_),X!==NOTHING?X:void 0}function finalize(X,W,J){if(isFrozen(W))return W;const te=W[DRAFT_STATE];if(!te)return each(W,(re,ne)=>finalizeProperty(X,te,W,re,ne,J)),W;if(te.scope_!==X)return W;if(!te.modified_)return maybeFreeze(X,te.base_,!0),te.base_;if(!te.finalized_){te.finalized_=!0,te.scope_.unfinalizedDrafts_--;const re=te.copy_;let ne=re,oe=!1;te.type_===3&&(ne=new Set(re),re.clear(),oe=!0),each(ne,(de,he)=>finalizeProperty(X,te,re,de,he,J,oe)),maybeFreeze(X,re,!1),J&&X.patches_&&getPlugin("Patches").generatePatches_(te,J,X.patches_,X.inversePatches_)}return te.copy_}function finalizeProperty(X,W,J,te,re,ne,oe){if(isDraft(re)){const de=ne&&W&&W.type_!==3&&!has(W.assigned_,te)?ne.concat(te):void 0,he=finalize(X,re,de);if(set(J,te,he),isDraft(he))X.canAutoFreeze_=!1;else return}else oe&&J.add(re);if(isDraftable(re)&&!isFrozen(re)){if(!X.immer_.autoFreeze_&&X.unfinalizedDrafts_<1)return;finalize(X,re),(!W||!W.scope_.parent_)&&typeof te!="symbol"&&Object.prototype.propertyIsEnumerable.call(J,te)&&maybeFreeze(X,re)}}function maybeFreeze(X,W,J=!1){!X.parent_&&X.immer_.autoFreeze_&&X.canAutoFreeze_&&freeze(W,J)}function createProxyProxy(X,W){const J=Array.isArray(X),te={type_:J?1:0,scope_:W?W.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:W,base_:X,draft_:null,copy_:null,revoke_:null,isManual_:!1};let re=te,ne=objectTraps;J&&(re=[te],ne=arrayTraps);const{revoke:oe,proxy:de}=Proxy.revocable(re,ne);return te.draft_=de,te.revoke_=oe,de}var objectTraps={get(X,W){if(W===DRAFT_STATE)return X;const J=latest(X);if(!has(J,W))return readPropFromProto(X,J,W);const te=J[W];return X.finalized_||!isDraftable(te)?te:te===peek(X.base_,W)?(prepareCopy(X),X.copy_[W]=createProxy(te,X)):te},has(X,W){return W in latest(X)},ownKeys(X){return Reflect.ownKeys(latest(X))},set(X,W,J){const te=getDescriptorFromProto(latest(X),W);if(te!=null&&te.set)return te.set.call(X.draft_,J),!0;if(!X.modified_){const re=peek(latest(X),W),ne=re==null?void 0:re[DRAFT_STATE];if(ne&&ne.base_===J)return X.copy_[W]=J,X.assigned_[W]=!1,!0;if(is(J,re)&&(J!==void 0||has(X.base_,W)))return!0;prepareCopy(X),markChanged(X)}return X.copy_[W]===J&&(J!==void 0||W in X.copy_)||Number.isNaN(J)&&Number.isNaN(X.copy_[W])||(X.copy_[W]=J,X.assigned_[W]=!0),!0},deleteProperty(X,W){return peek(X.base_,W)!==void 0||W in X.base_?(X.assigned_[W]=!1,prepareCopy(X),markChanged(X)):delete X.assigned_[W],X.copy_&&delete X.copy_[W],!0},getOwnPropertyDescriptor(X,W){const J=latest(X),te=Reflect.getOwnPropertyDescriptor(J,W);return te&&{writable:!0,configurable:X.type_!==1||W!=="length",enumerable:te.enumerable,value:J[W]}},defineProperty(){die(11)},getPrototypeOf(X){return getPrototypeOf(X.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(X,W)=>{arrayTraps[X]=function(){return arguments[0]=arguments[0][0],W.apply(this,arguments)}}),arrayTraps.deleteProperty=function(X,W){return arrayTraps.set.call(this,X,W,void 0)},arrayTraps.set=function(X,W,J){return objectTraps.set.call(this,X[0],W,J,X[0])};function peek(X,W){const J=X[DRAFT_STATE];return(J?latest(J):X)[W]}function readPropFromProto(X,W,J){var re;const te=getDescriptorFromProto(W,J);return te?"value"in te?te.value:(re=te.get)==null?void 0:re.call(X.draft_):void 0}function getDescriptorFromProto(X,W){if(!(W in X))return;let J=getPrototypeOf(X);for(;J;){const te=Object.getOwnPropertyDescriptor(J,W);if(te)return te;J=getPrototypeOf(J)}}function markChanged(X){X.modified_||(X.modified_=!0,X.parent_&&markChanged(X.parent_))}function prepareCopy(X){X.copy_||(X.copy_=shallowCopy(X.base_,X.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(X){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(W,J,te)=>{if(typeof W=="function"&&typeof J!="function"){const ne=J;J=W;const oe=this;return function(he=ne,...ue){return oe.produce(he,ce=>J.call(this,ce,...ue))}}typeof J!="function"&&die(6),te!==void 0&&typeof te!="function"&&die(7);let re;if(isDraftable(W)){const ne=enterScope(this),oe=createProxy(W,void 0);let de=!0;try{re=J(oe),de=!1}finally{de?revokeScope(ne):leaveScope(ne)}return usePatchesInScope(ne,te),processResult(re,ne)}else if(!W||typeof W!="object"){if(re=J(W),re===void 0&&(re=W),re===NOTHING&&(re=void 0),this.autoFreeze_&&freeze(re,!0),te){const ne=[],oe=[];getPlugin("Patches").generateReplacementPatches_(W,re,ne,oe),te(ne,oe)}return re}else die(1,W)},this.produceWithPatches=(W,J)=>{if(typeof W=="function")return(oe,...de)=>this.produceWithPatches(oe,he=>W(he,...de));let te,re;return[this.produce(W,J,(oe,de)=>{te=oe,re=de}),te,re]},typeof(X==null?void 0:X.autoFreeze)=="boolean"&&this.setAutoFreeze(X.autoFreeze),typeof(X==null?void 0:X.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(X.useStrictShallowCopy)}createDraft(X){isDraftable(X)||die(8),isDraft(X)&&(X=current(X));const W=enterScope(this),J=createProxy(X,void 0);return J[DRAFT_STATE].isManual_=!0,leaveScope(W),J}finishDraft(X,W){const J=X&&X[DRAFT_STATE];(!J||!J.isManual_)&&die(9);const{scope_:te}=J;return usePatchesInScope(te,W),processResult(void 0,te)}setAutoFreeze(X){this.autoFreeze_=X}setUseStrictShallowCopy(X){this.useStrictShallowCopy_=X}applyPatches(X,W){let J;for(J=W.length-1;J>=0;J--){const re=W[J];if(re.path.length===0&&re.op==="replace"){X=re.value;break}}J>-1&&(W=W.slice(J+1));const te=getPlugin("Patches").applyPatches_;return isDraft(X)?te(X,W):this.produce(X,re=>te(re,W))}};function createProxy(X,W){const J=isMap(X)?getPlugin("MapSet").proxyMap_(X,W):isSet(X)?getPlugin("MapSet").proxySet_(X,W):createProxyProxy(X,W);return(W?W.scope_:getCurrentScope()).drafts_.push(J),J}function current(X){return isDraft(X)||die(10,X),currentImpl(X)}function currentImpl(X){if(!isDraftable(X)||isFrozen(X))return X;const W=X[DRAFT_STATE];let J;if(W){if(!W.modified_)return W.base_;W.finalized_=!0,J=shallowCopy(X,W.scope_.immer_.useStrictShallowCopy_)}else J=shallowCopy(X,!0);return each(J,(te,re)=>{set(J,te,currentImpl(re))}),W&&(W.finalized_=!1),J}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(X,W=`expected a function, instead received ${typeof X}`){if(typeof X!="function")throw new TypeError(W)}function assertIsObject(X,W=`expected an object, instead received ${typeof X}`){if(typeof X!="object")throw new TypeError(W)}function assertIsArrayOfFunctions(X,W="expected all items to be functions, instead received the following types: "){if(!X.every(J=>typeof J=="function")){const J=X.map(te=>typeof te=="function"?`function ${te.name||"unnamed"}()`:typeof te).join(", ");throw new TypeError(`${W}[${J}]`)}}var ensureIsArray=X=>Array.isArray(X)?X:[X];function getDependencies(X){const W=Array.isArray(X[0])?X[0]:X;return assertIsArrayOfFunctions(W,"createSelector expects all input-selectors to be functions, but received the following types: "),W}function collectInputSelectorResults(X,W){const J=[],{length:te}=X;for(let re=0;re<te;re++)J.push(X[re].apply(null,W));return J}var StrongRef=class{constructor(X){this.value=X}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(X,W={}){let J=createCacheNode();const{resultEqualityCheck:te}=W;let re,ne=0;function oe(){var pe;let de=J;const{length:he}=arguments;for(let fe=0,ge=he;fe<ge;fe++){const me=arguments[fe];if(typeof me=="function"||typeof me=="object"&&me!==null){let ve=de.o;ve===null&&(de.o=ve=new WeakMap);const be=ve.get(me);be===void 0?(de=createCacheNode(),ve.set(me,de)):de=be}else{let ve=de.p;ve===null&&(de.p=ve=new Map);const be=ve.get(me);be===void 0?(de=createCacheNode(),ve.set(me,de)):de=be}}const ue=de;let ce;if(de.s===TERMINATED)ce=de.v;else if(ce=X.apply(null,arguments),ne++,te){const fe=((pe=re==null?void 0:re.deref)==null?void 0:pe.call(re))??re;fe!=null&&te(fe,ce)&&(ce=fe,ne!==0&&ne--),re=typeof ce=="object"&&ce!==null||typeof ce=="function"?new Ref(ce):ce}return ue.s=TERMINATED,ue.v=ce,ce}return oe.clearCache=()=>{J=createCacheNode(),oe.resetResultsCount()},oe.resultsCount=()=>ne,oe.resetResultsCount=()=>{ne=0},oe}function createSelectorCreator(X,...W){const J=typeof X=="function"?{memoize:X,memoizeOptions:W}:X,te=(...re)=>{let ne=0,oe=0,de,he={},ue=re.pop();typeof ue=="object"&&(he=ue,ue=re.pop()),assertIsFunction(ue,`createSelector expects an output function after the inputs, but received: [${typeof ue}]`);const ce={...J,...he},{memoize:pe,memoizeOptions:fe=[],argsMemoize:ge=weakMapMemoize,argsMemoizeOptions:me=[],devModeChecks:ve={}}=ce,be=ensureIsArray(fe),ye=ensureIsArray(me),we=getDependencies(re),Se=pe(function(){return ne++,ue.apply(null,arguments)},...be),_e=ge(function(){oe++;const Le=collectInputSelectorResults(we,arguments);return de=Se.apply(null,Le),de},...ye);return Object.assign(_e,{resultFunc:ue,memoizedResultFunc:Se,dependencies:we,dependencyRecomputations:()=>oe,resetDependencyRecomputations:()=>{oe=0},lastResult:()=>de,recomputations:()=>ne,resetRecomputations:()=>{ne=0},memoize:pe,argsMemoize:ge})};return Object.assign(te,{withTypes:()=>te}),te}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((X,W=createSelector)=>{assertIsObject(X,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof X}`);const J=Object.keys(X),te=J.map(ne=>X[ne]);return W(te,(...ne)=>ne.reduce((oe,de,he)=>(oe[J[he]]=de,oe),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(X){return({dispatch:J,getState:te})=>re=>ne=>typeof ne=="function"?ne(J,te,X):re(ne)}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(X,W){function J(...te){if(W){let re=W(...te);if(!re)throw new Error(formatProdErrorMessage(0));return{type:X,payload:re.payload,..."meta"in re&&{meta:re.meta},..."error"in re&&{error:re.error}}}return{type:X,payload:te[0]}}return J.toString=()=>`${X}`,J.type=X,J.match=te=>isAction(te)&&te.type===X,J}var Tuple=class Ar extends Array{constructor(...W){super(...W),Object.setPrototypeOf(this,Ar.prototype)}static get[Symbol.species](){return Ar}concat(...W){return super.concat.apply(this,W)}prepend(...W){return W.length===1&&Array.isArray(W[0])?new Ar(...W[0].concat(this)):new Ar(...W.concat(this))}};function freezeDraftable(X){return isDraftable(X)?produce(X,()=>{}):X}function getOrInsertComputed(X,W,J){return X.has(W)?X.get(W):X.set(W,J(W)).get(W)}function isBoolean(X){return typeof X=="boolean"}var buildGetDefaultMiddleware=()=>function(W){const{thunk:J=!0,immutableCheck:te=!0,serializableCheck:re=!0,actionCreatorCheck:ne=!0}=W??{};let oe=new Tuple;return J&&(isBoolean(J)?oe.push(thunk):oe.push(withExtraArgument(J.extraArgument))),oe},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=X=>W=>{setTimeout(W,X)},autoBatchEnhancer=(X={type:"raf"})=>W=>(...J)=>{const te=W(...J);let re=!0,ne=!1,oe=!1;const de=new Set,he=X.type==="tick"?queueMicrotask:X.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10):X.type==="callback"?X.queueNotification:createQueueWithTimer(X.timeout),ue=()=>{oe=!1,ne&&(ne=!1,de.forEach(ce=>ce()))};return Object.assign({},te,{subscribe(ce){const pe=()=>re&&ce(),fe=te.subscribe(pe);return de.add(ce),()=>{fe(),de.delete(ce)}},dispatch(ce){var pe;try{return re=!((pe=ce==null?void 0:ce.meta)!=null&&pe[SHOULD_AUTOBATCH]),ne=!re,ne&&(oe||(oe=!0,he(ue))),te.dispatch(ce)}finally{re=!0}}})},buildGetDefaultEnhancers=X=>function(J){const{autoBatch:te=!0}=J??{};let re=new Tuple(X);return te&&re.push(autoBatchEnhancer(typeof te=="object"?te:void 0)),re};function configureStore(X){const W=buildGetDefaultMiddleware(),{reducer:J=void 0,middleware:te,devTools:re=!0,preloadedState:ne=void 0,enhancers:oe=void 0}=X||{};let de;if(typeof J=="function")de=J;else if(isPlainObject$1(J))de=combineReducers(J);else throw new Error(formatProdErrorMessage(1));let he;typeof te=="function"?he=te(W):he=W();let ue=compose;re&&(ue=composeWithDevTools({trace:!1,...typeof re=="object"&&re}));const ce=applyMiddleware(...he),pe=buildGetDefaultEnhancers(ce);let fe=typeof oe=="function"?oe(pe):pe();const ge=ue(...fe);return createStore(de,ne,ge)}function executeReducerBuilderCallback(X){const W={},J=[];let te;const re={addCase(ne,oe){const de=typeof ne=="string"?ne:ne.type;if(!de)throw new Error(formatProdErrorMessage(28));if(de in W)throw new Error(formatProdErrorMessage(29));return W[de]=oe,re},addMatcher(ne,oe){return J.push({matcher:ne,reducer:oe}),re},addDefaultCase(ne){return te=ne,re}};return X(re),[W,J,te]}function isStateFunction(X){return typeof X=="function"}function createReducer(X,W){let[J,te,re]=executeReducerBuilderCallback(W),ne;if(isStateFunction(X))ne=()=>freezeDraftable(X());else{const de=freezeDraftable(X);ne=()=>de}function oe(de=ne(),he){let ue=[J[he.type],...te.filter(({matcher:ce})=>ce(he)).map(({reducer:ce})=>ce)];return ue.filter(ce=>!!ce).length===0&&(ue=[re]),ue.reduce((ce,pe)=>{if(pe)if(isDraft(ce)){const ge=pe(ce,he);return ge===void 0?ce:ge}else{if(isDraftable(ce))return produce(ce,fe=>pe(fe,he));{const fe=pe(ce,he);if(fe===void 0){if(ce===null)return ce;throw Error("A case reducer on a non-draftable value must not return undefined")}return fe}}return ce},de)}return oe.getInitialState=ne,oe}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(X,W){return`${X}/${W}`}function buildCreateSlice({creators:X}={}){var J;const W=(J=X==null?void 0:X.asyncThunk)==null?void 0:J[asyncThunkSymbol];return function(re){const{name:ne,reducerPath:oe=ne}=re;if(!ne)throw new Error(formatProdErrorMessage(11));typeof process<"u";const de=(typeof re.reducers=="function"?re.reducers(buildReducerCreators()):re.reducers)||{},he=Object.keys(de),ue={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},ce={addCase(Se,_e){const Ce=typeof Se=="string"?Se:Se.type;if(!Ce)throw new Error(formatProdErrorMessage(12));if(Ce in ue.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return ue.sliceCaseReducersByType[Ce]=_e,ce},addMatcher(Se,_e){return ue.sliceMatchers.push({matcher:Se,reducer:_e}),ce},exposeAction(Se,_e){return ue.actionCreators[Se]=_e,ce},exposeCaseReducer(Se,_e){return ue.sliceCaseReducersByName[Se]=_e,ce}};he.forEach(Se=>{const _e=de[Se],Ce={reducerName:Se,type:getType(ne,Se),createNotation:typeof re.reducers=="function"};isAsyncThunkSliceReducerDefinition(_e)?handleThunkCaseReducerDefinition(Ce,_e,ce,W):handleNormalReducerDefinition(Ce,_e,ce)});function pe(){const[Se={},_e=[],Ce=void 0]=typeof re.extraReducers=="function"?executeReducerBuilderCallback(re.extraReducers):[re.extraReducers],Le={...Se,...ue.sliceCaseReducersByType};return createReducer(re.initialState,qe=>{for(let Ie in Le)qe.addCase(Ie,Le[Ie]);for(let Ie of ue.sliceMatchers)qe.addMatcher(Ie.matcher,Ie.reducer);for(let Ie of _e)qe.addMatcher(Ie.matcher,Ie.reducer);Ce&&qe.addDefaultCase(Ce)})}const fe=Se=>Se,ge=new Map;let me;function ve(Se,_e){return me||(me=pe()),me(Se,_e)}function be(){return me||(me=pe()),me.getInitialState()}function ye(Se,_e=!1){function Ce(qe){let Ie=qe[Se];return typeof Ie>"u"&&_e&&(Ie=be()),Ie}function Le(qe=fe){const Ie=getOrInsertComputed(ge,_e,()=>new WeakMap);return getOrInsertComputed(Ie,qe,()=>{const ze={};for(const[Pe,Ae]of Object.entries(re.selectors??{}))ze[Pe]=wrapSelector(Ae,qe,be,_e);return ze})}return{reducerPath:Se,getSelectors:Le,get selectors(){return Le(Ce)},selectSlice:Ce}}const we={name:ne,reducer:ve,actions:ue.actionCreators,caseReducers:ue.sliceCaseReducersByName,getInitialState:be,...ye(oe),injectInto(Se,{reducerPath:_e,...Ce}={}){const Le=_e??oe;return Se.inject({reducerPath:Le,reducer:ve},Ce),{...we,...ye(Le,!0)}}};return we}}function wrapSelector(X,W,J,te){function re(ne,...oe){let de=W(ne);return typeof de>"u"&&te&&(de=J()),X(de,...oe)}return re.unwrapped=X,re}var createSlice=buildCreateSlice();function buildReducerCreators(){function X(W,J){return{_reducerDefinitionType:"asyncThunk",payloadCreator:W,...J}}return X.withTypes=()=>X,{reducer(W){return Object.assign({[W.name](...J){return W(...J)}}[W.name],{_reducerDefinitionType:"reducer"})},preparedReducer(W,J){return{_reducerDefinitionType:"reducerWithPrepare",prepare:W,reducer:J}},asyncThunk:X}}function handleNormalReducerDefinition({type:X,reducerName:W,createNotation:J},te,re){let ne,oe;if("reducer"in te){if(J&&!isCaseReducerWithPrepareDefinition(te))throw new Error(formatProdErrorMessage(17));ne=te.reducer,oe=te.prepare}else ne=te;re.addCase(X,ne).exposeCaseReducer(W,ne).exposeAction(W,oe?createAction(X,oe):createAction(X))}function isAsyncThunkSliceReducerDefinition(X){return X._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(X){return X._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:X,reducerName:W},J,te,re){if(!re)throw new Error(formatProdErrorMessage(18));const{payloadCreator:ne,fulfilled:oe,pending:de,rejected:he,settled:ue,options:ce}=J,pe=re(X,ne,ce);te.exposeAction(W,pe),oe&&te.addCase(pe.fulfilled,oe),de&&te.addCase(pe.pending,de),he&&te.addCase(pe.rejected,he),ue&&te.addMatcher(pe.settled,ue),te.exposeCaseReducer(W,{fulfilled:oe||noop,pending:de||noop,rejected:he||noop,settled:ue||noop})}function noop(){}function formatProdErrorMessage(X){return`Minified Redux Toolkit error #${X}; visit https://redux-toolkit.js.org/Errors?code=${X} for the full message or use the non-minified dev environment for full errors. `}const addItemsToCollection=(X,W,J,te,re)=>{var ne;return X[W]?{...X,[W]:{...X[W],items:[...((ne=X[W])==null?void 0:ne.items)||[],...J]}}:{...X,[W]:{id:W,items:J,componentFactory:te,searchPredicate:re}}},addItemToCollection=(X,W,J,te)=>addItemsToCollection(X,W,[J],te);function addActivityHistoryItemReducer(X,W){const{id:J,item:te,componentFactory:re}=W.payload;X.collections=addItemToCollection(X.collections,J,te,re)}function addActivityHistoryItemsReducer(X,W){const{id:J,items:te,componentFactory:re,searchPredicate:ne}=W.payload;return{...X,collections:addItemsToCollection(X.collections,J,te,re,ne)}}function addBusyHistoryItemReducer(X,W){X.busy.push(W.payload)}function removeBusyHistoryItemReducer(X,W){X.busy=X.busy.filter(J=>J!==W.payload)}function addErrorHistoryItemReducer(X,W){X.error.push(W.payload)}function removeErrorHistoryItemReducer(X,W){X.error=X.error.filter(J=>J!==W.payload)}function removeActivityHistoryItemReducer(X,W){}const updateItemInCollection=(X,W,J)=>{var re,ne;if(!((re=X[W])!=null&&re.items))return X;const te=((ne=X[W])==null?void 0:ne.items)??[];return{...X,[W]:{...X[W],items:te.map(oe=>oe.id===J.id?J:oe)}}};function updateActivityHistoryItemReducer(X,W){const{id:J,item:te}=W.payload;X.collections=updateItemInCollection(X.collections,J,te)}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(X,W){X.searchString=W.payload}class Spec{and(W){return new AndSpec(this,W)}or(W){return new OrSpec(this,W)}not(){return new NotSpec(this)}}class AndSpec extends Spec{constructor(W,J){super(),this.left=W,this.right=J}isSatisfiedBy(W){return this.left.isSatisfiedBy(W)&&this.right.isSatisfiedBy(W)}}class OrSpec extends Spec{constructor(W,J){super(),this.left=W,this.right=J}isSatisfiedBy(W){return this.left.isSatisfiedBy(W)||this.right.isSatisfiedBy(W)}}class NotSpec extends Spec{constructor(W){super(),this.spec=W}isSatisfiedBy(W){return!this.spec.isSatisfiedBy(W)}}class OwnSpec extends Spec{constructor(W){super(),this.context=W}isSatisfiedBy(W){var te;const J=shellApi.globalStateManager.getData("userInfo");return((te=W==null?void 0:W.professional)==null?void 0:te.id)===(J==null?void 0:J.userId)}}class RelevantSpec extends Spec{constructor(W){super(),this.context=W}isSatisfiedBy(W){return(W==null?void 0:W.relevant)??!1}}var ActivityHistoryFilterType=(X=>(X.Switch="switch",X.Checkbox="checkbox",X))(ActivityHistoryFilterType||{}),ActivityHistoryFilterOperation=(X=>(X.And="and",X.Or="or",X))(ActivityHistoryFilterOperation||{});const isCommonFilterGroup=X=>X.id==="common",isNotCommonFilterGroup=X=>!isCommonFilterGroup(X),commonFilters=[{id:"common",title:"Comuns",filters:[{id:"relevant",title:"Veure rellevants",spec:RelevantSpec,enabled:!1,type:ActivityHistoryFilterType.Switch},{id:"own",title:"Veure meus",spec:OwnSpec,enabled:!1,type:ActivityHistoryFilterType.Switch}]}];function setCommonFilterValueReducer(X,W){X.filters=X.filters.map(J=>J.id==="common"?{...J,filters:J.filters.map(te=>te.id===W.payload.id?{...te,enabled:W.payload.enabled}:te)}:J)}function addCustomFiltersReducer(X,W){X.filters=[...X.filters,W.payload]}function setCustomFilterGroupValueReducer(X,W){X.filters=X.filters.map(J=>J.id===W.payload.id?{...J,enabled:W.payload.enabled}:J)}function setCustomFilterValueReducer(X,W){X.filters=X.filters.map(J=>J.id===W.payload.filterGroupId?{...J,filters:J.filters.map(te=>te.id===W.payload.filterId?te.singleOption?setSingleOptionFilterValue(te,W.payload.enabled):setMultipleOptionsFilterValue(te,W.payload):te)}:J)}const setMultipleOptionsFilterValue=(X,W)=>{var re;const{optionId:J,enabled:te}=W;return(re=X.enabledValues)!=null&&re.some(ne=>ne===J)&&te?X:{...X,enabledValues:te?[...X.enabledValues||[],J]:X.enabledValues.filter(ne=>ne!==J)}},setSingleOptionFilterValue=(X,W)=>({...X,enabled:W,enabledValues:W?[!0]:[]}),activityHistoryFiltersSlice=createSlice({name:"activity-history-filters",initialState:{searchString:"",filters:[...commonFilters]},reducers:{setSearchString:setSearchStringReducer,setCommonFilterValue:setCommonFilterValueReducer,addCustomFilters:addCustomFiltersReducer,setCustomFilterGroupValue:setCustomFilterGroupValueReducer,setCustomFilterValue:setCustomFilterValueReducer}}),store=configureStore({reducer:{activityHistoryCollections:activityHistoryCollectionsSlice.reducer,activityHistoryFilters:activityHistoryFiltersSlice.reducer},devTools:{name:"activity-history"},middleware:X=>X({serializableCheck:!1})});store.dispatch,store.getState;const container=new Container,{lazyInject}=getDecorators(container),bindDeps=X=>{container.bind(TYPES.primaryApi).toConstantValue(X),container.bind(TYPES.store).toConstantValue(store)},unbindDeps=()=>{container.unbind(TYPES.primaryApi),container.unbind(TYPES.store)},addAsyncHistoryItemsCommand="inject_async_history_items_request";var __defProp$h=Object.defineProperty,__getOwnPropDesc$h=Object.getOwnPropertyDescriptor,__decorateClass$h=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$h(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$h(W,J,re),re},__decorateParam$3=(X,W)=>(J,te)=>W(J,te,X);let StoreBaseHandler=class{constructor(X){this.store=X}};StoreBaseHandler=__decorateClass$h([injectable(),__decorateParam$3(0,inject(TYPES.store))],StoreBaseHandler);let ApiBaseHandler=class{constructor(X){this.api=X}};ApiBaseHandler=__decorateClass$h([injectable(),__decorateParam$3(0,inject(TYPES.primaryApi))],ApiBaseHandler);let BaseHandler=class{constructor(X,W){this.store=X,this.api=W}};BaseHandler=__decorateClass$h([injectable(),__decorateParam$3(0,inject(TYPES.store)),__decorateParam$3(1,inject(TYPES.primaryApi))],BaseHandler);class AddCustomFiltersCommand{constructor(W){this.payload=W}}const{addBusyHistoryItem,removeBusyHistoryItem}=activityHistoryCollectionsSlice.actions,{addErrorHistoryItem,removeErrorHistoryItem}=activityHistoryCollectionsSlice.actions,addHistoryItemsCommand="add_history_items_request",validateAddAsyncCommand=(X,W)=>{if(X.entityId!==X.filters.id)throw new Error("entityId and filters.id must be the same");if(!X.filters.title)throw new Error("filters.title is required");if(!X.asyncDataProvider)throw new Error("asyncDataProvider is required");if(!X.componentFactory)throw new Error("componentFactory is required");if(!X.errorMessage)throw new Error("errorMessage is required for failure asyncDataProviders")};class InjectAsyncHistoryItemsHandler extends BaseHandler{async handle(W){this.store.dispatch(addBusyHistoryItem(W.entityId));try{const J=await W.asyncDataProvider();validateAddAsyncCommand(W,J),this.api.broker.send(addHistoryItemsCommand,{entityId:W.entityId,items:J,componentFactory:W.componentFactory,searchPredicate:W.searchPredicate}),W.filters&&this.api.broker.send(new AddCustomFiltersCommand(W.filters))}catch(J){this.store.dispatch(addErrorHistoryItem({id:W.entityId,message:W.errorMessage||J.message}))}finally{this.store.dispatch(removeBusyHistoryItem(W.entityId))}}}let request$b;const bootstrapInjectAsyncHistoryItems=X=>{request$b=X.registerRequest(addAsyncHistoryItemsCommand,InjectAsyncHistoryItemsHandler)},teardownInjectAsyncHistoryItems=()=>{request$b==null||request$b.dispose()},isValidActivityHistoryItem=X=>{const W=ce=>typeof ce=="string"&&ce.trim()!=="",J=ce=>typeof ce=="boolean",te=ce=>Array.isArray(ce),re=ce=>ce&&W(ce.id)&&W(ce.name)&&ce.speciality&&W(ce.speciality.id)&&W(ce.speciality.description)&&ce.role&&W(ce.role.id)&&W(ce.role.description),ne=ce=>(ce===null||te(ce))&&(ce===null||ce.every(pe=>pe===null||pe&&W(pe.id)&&W(pe.description))),oe=ce=>ce&&W(ce.id)&&W(ce.description),de=ce=>ce&&W(ce.id)&&W(ce.description),he=ce=>ce&&W(ce.id)&&W(ce.description),ue=ce=>ce&&W(ce.id)&&W(ce.description);return X&&W(X.id)&&W(X.date)&&re(X.professional)&&J(X.relevant)&&ne(X.diagnostics)&&oe(X.center)&&de(X.up)&&he(X.ep)&&ue(X.service)},ensureAreValidActivityHistoryItems=X=>{if(!X.every(isValidActivityHistoryItem))throw console.error("Invalid activity history items",X),new Error("Invalid activity history items");return X},notifyInvalidItem=X=>{console.error("Invalid history item",X)},validateAndFilterItems=X=>{const W=[];for(const J of X)isValidActivityHistoryItem(J)?W.push(J):notifyInvalidItem(J);return W},{addActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class AddHistoryItemHandler extends StoreBaseHandler{async handle(W){try{ensureAreValidActivityHistoryItems([W.item]),this.store.dispatch(addActivityHistoryItem({id:W.entityId,item:W.item}))}catch(J){console.log(J.message)}}}const addHistoryItemCommand="add_history_item_request";let request$a;const bootstrapAddHistoryItem=X=>{request$a=X.registerRequest(addHistoryItemCommand,AddHistoryItemHandler)},teardownAddHistoryItem=()=>{request$a==null||request$a.dispose()},styles$b=".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)}";let pluginLocaleManager;const initializeLocalization=async X=>{pluginLocaleManager=await X.createLocaleManager(locales)},translate=X=>pluginLocaleManager?pluginLocaleManager.translate(X):X,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",searchBarResults:"Resultats per",actions:{cronogram:"Cronograma",exportPdf:"Exportar PDF",noteLegend:"Llegenda notes",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ó:"}}}},template$c=X=>{const{arrayElements:W,text:J}=X;return ke$1`
|
|
5782
|
+
`+X+" - "+J}else return" "+X}function getFunctionName(X){if(X.name)return X.name;var W=X.toString(),J=W.match(/^function\s*([^\s(]+)/);return J?J[1]:"Anonymous function: "+W}function getSymbolDescription(X){return X.toString().slice(7,-1)}var Context=function(){function X(W){this.id=id(),this.container=W}return X.prototype.addPlan=function(W){this.plan=W},X.prototype.setCurrentRequest=function(W){this.currentRequest=W},X}(),Metadata=function(){function X(W,J){this.key=W,this.value=J}return X.prototype.toString=function(){return this.key===NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},X}(),Plan=function(){function X(W,J){this.parentContext=W,this.rootRequest=J}return X}(),LazyServiceIdentifier=function(){function X(W){this._cb=W}return X.prototype.unwrap=function(){return this._cb()},X}(),QueryableString=function(){function X(W){this.str=W}return X.prototype.startsWith=function(W){return this.str.indexOf(W)===0},X.prototype.endsWith=function(W){var J="",te=W.split("").reverse().join("");return J=this.str.split("").reverse().join(""),this.startsWith.call({str:J},te)},X.prototype.contains=function(W){return this.str.indexOf(W)!==-1},X.prototype.equals=function(W){return this.str===W},X.prototype.value=function(){return this.str},X}(),Target=function(){function X(W,J,te,re){this.id=id(),this.type=W,this.serviceIdentifier=te;var ne=typeof J=="symbol"?getSymbolDescription(J):J;this.name=new QueryableString(ne||""),this.identifier=J,this.metadata=new Array;var oe=null;typeof re=="string"?oe=new Metadata(NAMED_TAG,re):re instanceof Metadata&&(oe=re),oe!==null&&this.metadata.push(oe)}return X.prototype.hasTag=function(W){for(var J=0,te=this.metadata;J<te.length;J++){var re=te[J];if(re.key===W)return!0}return!1},X.prototype.isArray=function(){return this.hasTag(MULTI_INJECT_TAG)},X.prototype.matchesArray=function(W){return this.matchesTag(MULTI_INJECT_TAG)(W)},X.prototype.isNamed=function(){return this.hasTag(NAMED_TAG)},X.prototype.isTagged=function(){return this.metadata.some(function(W){return NON_CUSTOM_TAG_KEYS.every(function(J){return W.key!==J})})},X.prototype.isOptional=function(){return this.matchesTag(OPTIONAL_TAG)(!0)},X.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(W){return W.key===NAMED_TAG})[0]:null},X.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(W){return NON_CUSTOM_TAG_KEYS.every(function(J){return W.key!==J})}):null},X.prototype.matchesNamedTag=function(W){return this.matchesTag(NAMED_TAG)(W)},X.prototype.matchesTag=function(W){var J=this;return function(te){for(var re=0,ne=J.metadata;re<ne.length;re++){var oe=ne[re];if(oe.key===W&&oe.value===te)return!0}return!1}},X}(),__spreadArray$2=function(X,W,J){if(J||arguments.length===2)for(var te=0,re=W.length,ne;te<re;te++)(ne||!(te in W))&&(ne||(ne=Array.prototype.slice.call(W,0,te)),ne[te]=W[te]);return X.concat(ne||Array.prototype.slice.call(W))};function getDependencies$1(X,W){var J=getFunctionName(W);return getTargets(X,J,W,!1)}function getTargets(X,W,J,te){var re=X.getConstructorMetadata(J),ne=re.compilerGeneratedMetadata;if(ne===void 0){var oe=MISSING_INJECTABLE_ANNOTATION+" "+W+".";throw new Error(oe)}var de=re.userGeneratedMetadata,he=Object.keys(de),ue=J.length===0&&he.length>0,ce=he.length>J.length,pe=ue||ce?he.length:J.length,fe=getConstructorArgsAsTargets(te,W,ne,de,pe),ge=getClassPropsAsTargets(X,J,W),me=__spreadArray$2(__spreadArray$2([],fe,!0),ge,!0);return me}function getConstructorArgsAsTarget(X,W,J,te,re){var ne=re[X.toString()]||[],oe=formatTargetMetadata(ne),de=oe.unmanaged!==!0,he=te[X],ue=oe.inject||oe.multiInject;if(he=ue||he,he instanceof LazyServiceIdentifier&&(he=he.unwrap()),de){var ce=he===Object,pe=he===Function,fe=he===void 0,ge=ce||pe||fe;if(!W&&ge){var me=MISSING_INJECT_ANNOTATION+" argument "+X+" in class "+J+".";throw new Error(me)}var ve=new Target(TargetTypeEnum.ConstructorArgument,oe.targetName,he);return ve.metadata=ne,ve}return null}function getConstructorArgsAsTargets(X,W,J,te,re){for(var ne=[],oe=0;oe<re;oe++){var de=oe,he=getConstructorArgsAsTarget(de,X,W,J,te);he!==null&&ne.push(he)}return ne}function _getServiceIdentifierForProperty(X,W,J,te){var re=X||W;if(re===void 0){var ne=MISSING_INJECTABLE_ANNOTATION+" for property "+String(J)+" in class "+te+".";throw new Error(ne)}return re}function getClassPropsAsTargets(X,W,J){for(var te=X.getPropertiesMetadata(W),re=[],ne=Object.getOwnPropertySymbols(te),oe=Object.keys(te),de=oe.concat(ne),he=0,ue=de;he<ue.length;he++){var ce=ue[he],pe=te[ce],fe=formatTargetMetadata(pe),ge=fe.targetName||ce,me=_getServiceIdentifierForProperty(fe.inject,fe.multiInject,ce,J),ve=new Target(TargetTypeEnum.ClassProperty,ge,me);ve.metadata=pe,re.push(ve)}var be=Object.getPrototypeOf(W.prototype).constructor;if(be!==Object){var ye=getClassPropsAsTargets(X,be,J);re=__spreadArray$2(__spreadArray$2([],re,!0),ye,!0)}return re}function getBaseClassDependencyCount(X,W){var J=Object.getPrototypeOf(W.prototype).constructor;if(J!==Object){var te=getFunctionName(J),re=getTargets(X,te,J,!0),ne=re.map(function(he){return he.metadata.filter(function(ue){return ue.key===UNMANAGED_TAG})}),oe=[].concat.apply([],ne).length,de=re.length-oe;return de>0?de:getBaseClassDependencyCount(X,J)}else return 0}function formatTargetMetadata(X){var W={};return X.forEach(function(J){W[J.key.toString()]=J.value}),{inject:W[INJECT_TAG],multiInject:W[MULTI_INJECT_TAG],targetName:W[NAME_TAG],unmanaged:W[UNMANAGED_TAG]}}var Request$1=function(){function X(W,J,te,re,ne){this.id=id(),this.serviceIdentifier=W,this.parentContext=J,this.parentRequest=te,this.target=ne,this.childRequests=[],this.bindings=Array.isArray(re)?re:[re],this.requestScope=te===null?new Map:null}return X.prototype.addChildRequest=function(W,J,te){var re=new X(W,this.parentContext,this,J,te);return this.childRequests.push(re),re},X}();function getBindingDictionary(X){return X._bindingDictionary}function _createTarget(X,W,J,te,re,ne){var oe=X?MULTI_INJECT_TAG:INJECT_TAG,de=new Metadata(oe,J),he=new Target(W,te,J,de);if(re!==void 0){var ue=new Metadata(re,ne);he.metadata.push(ue)}return he}function _getActiveBindings(X,W,J,te,re){var ne=getBindings(J.container,re.serviceIdentifier),oe=[];return ne.length===BindingCount.NoBindingsAvailable&&J.container.options.autoBindInjectable&&typeof re.serviceIdentifier=="function"&&X.getConstructorMetadata(re.serviceIdentifier).compilerGeneratedMetadata&&(J.container.bind(re.serviceIdentifier).toSelf(),ne=getBindings(J.container,re.serviceIdentifier)),W?oe=ne:oe=ne.filter(function(de){var he=new Request$1(de.serviceIdentifier,J,te,de,re);return de.constraint(he)}),_validateActiveBindingCount(re.serviceIdentifier,oe,re,J.container),oe}function _validateActiveBindingCount(X,W,J,te){switch(W.length){case BindingCount.NoBindingsAvailable:if(J.isOptional())return W;var re=getServiceIdentifierAsString(X),ne=NOT_REGISTERED;throw ne+=listMetadataForTarget(re,J),ne+=listRegisteredBindingsForServiceIdentifier(te,re,getBindings),new Error(ne);case BindingCount.OnlyOneBindingAvailable:return W;case BindingCount.MultipleBindingsAvailable:default:if(J.isArray())return W;var re=getServiceIdentifierAsString(X),ne=AMBIGUOUS_MATCH+" "+re;throw ne+=listRegisteredBindingsForServiceIdentifier(te,re,getBindings),new Error(ne)}}function _createSubRequests(X,W,J,te,re,ne){var oe,de;if(re===null){oe=_getActiveBindings(X,W,te,null,ne),de=new Request$1(J,te,null,oe,ne);var he=new Plan(te,de);te.addPlan(he)}else oe=_getActiveBindings(X,W,te,re,ne),de=re.addChildRequest(ne.serviceIdentifier,oe,ne);oe.forEach(function(ue){var ce=null;if(ne.isArray())ce=de.addChildRequest(ue.serviceIdentifier,ue,ne);else{if(ue.cache)return;ce=de}if(ue.type===BindingTypeEnum.Instance&&ue.implementationType!==null){var pe=getDependencies$1(X,ue.implementationType);if(!te.container.options.skipBaseClassChecks){var fe=getBaseClassDependencyCount(X,ue.implementationType);if(pe.length<fe){var ge=ARGUMENTS_LENGTH_MISMATCH(getFunctionName(ue.implementationType));throw new Error(ge)}}pe.forEach(function(me){_createSubRequests(X,!1,me.serviceIdentifier,te,ce,me)})}})}function getBindings(X,W){var J=[],te=getBindingDictionary(X);return te.hasKey(W)?J=te.get(W):X.parent!==null&&(J=getBindings(X.parent,W)),J}function plan(X,W,J,te,re,ne,oe,de){de===void 0&&(de=!1);var he=new Context(W),ue=_createTarget(J,te,re,"",ne,oe);try{return _createSubRequests(X,de,re,he,null,ue),he}catch(ce){throw isStackOverflowExeption(ce)&&circularDependencyToException(he.plan.rootRequest),ce}}function createMockRequest(X,W,J,te){var re=new Target(TargetTypeEnum.Variable,"",W,new Metadata(J,te)),ne=new Context(X),oe=new Request$1(W,ne,null,[],re);return oe}function isPromise(X){var W=typeof X=="object"&&X!==null||typeof X=="function";return W&&typeof X.then=="function"}function isPromiseOrContainsPromise(X){return isPromise(X)?!0:Array.isArray(X)&&X.some(isPromise)}var __awaiter$3=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator$3=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},tryGetFromScope=function(X,W){return W.scope===BindingScopeEnum.Singleton&&W.activated?W.cache:W.scope===BindingScopeEnum.Request&&X.has(W.id)?X.get(W.id):null},saveToScope=function(X,W,J){W.scope===BindingScopeEnum.Singleton&&_saveToSingletonScope(W,J),W.scope===BindingScopeEnum.Request&&_saveToRequestScope(X,W,J)},_saveToRequestScope=function(X,W,J){X.has(W.id)||X.set(W.id,J)},_saveToSingletonScope=function(X,W){X.cache=W,X.activated=!0,isPromise(W)&&_saveAsyncResultToSingletonScope(X,W)},_saveAsyncResultToSingletonScope=function(X,W){return __awaiter$3(void 0,void 0,void 0,function(){var J,te;return __generator$3(this,function(re){switch(re.label){case 0:return re.trys.push([0,2,,3]),[4,W];case 1:return J=re.sent(),X.cache=J,[3,3];case 2:throw te=re.sent(),X.cache=null,X.activated=!1,te;case 3:return[2]}})})},FactoryType;(function(X){X.DynamicValue="toDynamicValue",X.Factory="toFactory",X.Provider="toProvider"})(FactoryType||(FactoryType={}));var ensureFullyBound=function(X){var W=null;switch(X.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:W=X.cache;break;case BindingTypeEnum.Constructor:case BindingTypeEnum.Instance:W=X.implementationType;break;case BindingTypeEnum.DynamicValue:W=X.dynamicValue;break;case BindingTypeEnum.Provider:W=X.provider;break;case BindingTypeEnum.Factory:W=X.factory;break}if(W===null){var J=getServiceIdentifierAsString(X.serviceIdentifier);throw new Error(INVALID_BINDING_TYPE+" "+J)}},getFactoryDetails=function(X){switch(X.type){case BindingTypeEnum.Factory:return{factory:X.factory,factoryType:FactoryType.Factory};case BindingTypeEnum.Provider:return{factory:X.provider,factoryType:FactoryType.Provider};case BindingTypeEnum.DynamicValue:return{factory:X.dynamicValue,factoryType:FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+X.type)}},__assign$1=function(){return __assign$1=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign$1.apply(this,arguments)},__awaiter$2=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator$2=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},__spreadArray$1=function(X,W,J){if(J||arguments.length===2)for(var te=0,re=W.length,ne;te<re;te++)(ne||!(te in W))&&(ne||(ne=Array.prototype.slice.call(W,0,te)),ne[te]=W[te]);return X.concat(ne||Array.prototype.slice.call(W))};function _resolveRequests(X,W){return X.reduce(function(J,te){var re=W(te),ne=te.target.type;return ne===TargetTypeEnum.ConstructorArgument?J.constructorInjections.push(re):(J.propertyRequests.push(te),J.propertyInjections.push(re)),J.isAsync||(J.isAsync=isPromiseOrContainsPromise(re)),J},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function _createInstance(X,W,J){var te;if(W.length>0){var re=_resolveRequests(W,J),ne=__assign$1(__assign$1({},re),{constr:X});re.isAsync?te=createInstanceWithInjectionsAsync(ne):te=createInstanceWithInjections(ne)}else te=new X;return te}function createInstanceWithInjections(X){var W,J=new((W=X.constr).bind.apply(W,__spreadArray$1([void 0],X.constructorInjections,!1)));return X.propertyRequests.forEach(function(te,re){var ne=te.target.identifier,oe=X.propertyInjections[re];(!te.target.isOptional()||oe!==void 0)&&(J[ne]=oe)}),J}function createInstanceWithInjectionsAsync(X){return __awaiter$2(this,void 0,void 0,function(){var W,J;return __generator$2(this,function(te){switch(te.label){case 0:return[4,possiblyWaitInjections(X.constructorInjections)];case 1:return W=te.sent(),[4,possiblyWaitInjections(X.propertyInjections)];case 2:return J=te.sent(),[2,createInstanceWithInjections(__assign$1(__assign$1({},X),{constructorInjections:W,propertyInjections:J}))]}})})}function possiblyWaitInjections(X){return __awaiter$2(this,void 0,void 0,function(){var W,J,te,re;return __generator$2(this,function(ne){for(W=[],J=0,te=X;J<te.length;J++)re=te[J],Array.isArray(re)?W.push(Promise.all(re)):W.push(re);return[2,Promise.all(W)]})})}function _getInstanceAfterPostConstruct(X,W){var J=_postConstruct(X,W);return isPromise(J)?J.then(function(){return W}):W}function _postConstruct(X,W){var J,te;if(Reflect.hasMetadata(POST_CONSTRUCT,X)){var re=Reflect.getMetadata(POST_CONSTRUCT,X);try{return(te=(J=W)[re.value])===null||te===void 0?void 0:te.call(J)}catch(ne){if(ne instanceof Error)throw new Error(POST_CONSTRUCT_ERROR(X.name,ne.message))}}}function _validateInstanceResolution(X,W){X.scope!==BindingScopeEnum.Singleton&&_throwIfHandlingDeactivation(X,W)}function _throwIfHandlingDeactivation(X,W){var J="Class cannot be instantiated in "+(X.scope===BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof X.onDeactivation=="function")throw new Error(ON_DEACTIVATION_ERROR(W.name,J));if(Reflect.hasMetadata(PRE_DESTROY,W))throw new Error(PRE_DESTROY_ERROR(W.name,J))}function resolveInstance(X,W,J,te){_validateInstanceResolution(X,W);var re=_createInstance(W,J,te);return isPromise(re)?re.then(function(ne){return _getInstanceAfterPostConstruct(W,ne)}):_getInstanceAfterPostConstruct(W,re)}var __awaiter$1=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator$1=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},_resolveRequest=function(X){return function(W){W.parentContext.setCurrentRequest(W);var J=W.bindings,te=W.childRequests,re=W.target&&W.target.isArray(),ne=!W.parentRequest||!W.parentRequest.target||!W.target||!W.parentRequest.target.matchesArray(W.target.serviceIdentifier);if(re&&ne)return te.map(function(de){var he=_resolveRequest(X);return he(de)});if(W.target.isOptional()&&J.length===0)return;var oe=J[0];return _resolveBinding(X,W,oe)}},_resolveFactoryFromBinding=function(X,W){var J=getFactoryDetails(X);return tryAndThrowErrorIfStackOverflow(function(){return J.factory.bind(X)(W)},function(){return new Error(CIRCULAR_DEPENDENCY_IN_FACTORY(J.factoryType,W.currentRequest.serviceIdentifier.toString()))})},_getResolvedFromBinding=function(X,W,J){var te,re=W.childRequests;switch(ensureFullyBound(J),J.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:te=J.cache;break;case BindingTypeEnum.Constructor:te=J.implementationType;break;case BindingTypeEnum.Instance:te=resolveInstance(J,J.implementationType,re,_resolveRequest(X));break;default:te=_resolveFactoryFromBinding(J,W.parentContext)}return te},_resolveInScope=function(X,W,J){var te=tryGetFromScope(X,W);return te!==null||(te=J(),saveToScope(X,W,te)),te},_resolveBinding=function(X,W,J){return _resolveInScope(X,J,function(){var te=_getResolvedFromBinding(X,W,J);return isPromise(te)?te=te.then(function(re){return _onActivation(W,J,re)}):te=_onActivation(W,J,te),te})};function _onActivation(X,W,J){var te=_bindingActivation(X.parentContext,W,J),re=_getContainersIterator(X.parentContext.container),ne,oe=re.next();do{ne=oe.value;var de=X.parentContext,he=X.serviceIdentifier,ue=_getContainerActivationsForService(ne,he);isPromise(te)?te=_activateContainerAsync(ue,de,te):te=_activateContainer(ue,de,te),oe=re.next()}while(oe.done!==!0&&!getBindingDictionary(ne).hasKey(X.serviceIdentifier));return te}var _bindingActivation=function(X,W,J){var te;return typeof W.onActivation=="function"?te=W.onActivation(X,J):te=J,te},_activateContainer=function(X,W,J){for(var te=X.next();!te.done;){if(J=te.value(W,J),isPromise(J))return _activateContainerAsync(X,W,J);te=X.next()}return J},_activateContainerAsync=function(X,W,J){return __awaiter$1(void 0,void 0,void 0,function(){var te,re;return __generator$1(this,function(ne){switch(ne.label){case 0:return[4,J];case 1:te=ne.sent(),re=X.next(),ne.label=2;case 2:return re.done?[3,4]:[4,re.value(W,te)];case 3:return te=ne.sent(),re=X.next(),[3,2];case 4:return[2,te]}})})},_getContainerActivationsForService=function(X,W){var J=X._activations;return J.hasKey(W)?J.get(W).values():[].values()},_getContainersIterator=function(X){for(var W=[X],J=X.parent;J!==null;)W.push(J),J=J.parent;var te=function(){var ne=W.pop();return ne!==void 0?{done:!1,value:ne}:{done:!0,value:void 0}},re={next:te};return re};function resolve(X){var W=_resolveRequest(X.plan.rootRequest.requestScope);return W(X.plan.rootRequest)}var traverseAncerstors=function(X,W){var J=X.parentRequest;return J!==null?W(J)?!0:traverseAncerstors(J,W):!1},taggedConstraint=function(X){return function(W){var J=function(te){return te!==null&&te.target!==null&&te.target.matchesTag(X)(W)};return J.metaData=new Metadata(X,W),J}},namedConstraint=taggedConstraint(NAMED_TAG),typeConstraint=function(X){return function(W){var J=null;if(W!==null)if(J=W.bindings[0],typeof X=="string"){var te=J.serviceIdentifier;return te===X}else{var re=W.bindings[0].implementationType;return X===re}return!1}},BindingWhenSyntax=function(){function X(W){this._binding=W}return X.prototype.when=function(W){return this._binding.constraint=W,new BindingOnSyntax(this._binding)},X.prototype.whenTargetNamed=function(W){return this._binding.constraint=namedConstraint(W),new BindingOnSyntax(this._binding)},X.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(W){if(W===null)return!1;var J=W.target!==null&&!W.target.isNamed()&&!W.target.isTagged();return J},new BindingOnSyntax(this._binding)},X.prototype.whenTargetTagged=function(W,J){return this._binding.constraint=taggedConstraint(W)(J),new BindingOnSyntax(this._binding)},X.prototype.whenInjectedInto=function(W){return this._binding.constraint=function(J){return J!==null&&typeConstraint(W)(J.parentRequest)},new BindingOnSyntax(this._binding)},X.prototype.whenParentNamed=function(W){return this._binding.constraint=function(J){return J!==null&&namedConstraint(W)(J.parentRequest)},new BindingOnSyntax(this._binding)},X.prototype.whenParentTagged=function(W,J){return this._binding.constraint=function(te){return te!==null&&taggedConstraint(W)(J)(te.parentRequest)},new BindingOnSyntax(this._binding)},X.prototype.whenAnyAncestorIs=function(W){return this._binding.constraint=function(J){return J!==null&&traverseAncerstors(J,typeConstraint(W))},new BindingOnSyntax(this._binding)},X.prototype.whenNoAncestorIs=function(W){return this._binding.constraint=function(J){return J!==null&&!traverseAncerstors(J,typeConstraint(W))},new BindingOnSyntax(this._binding)},X.prototype.whenAnyAncestorNamed=function(W){return this._binding.constraint=function(J){return J!==null&&traverseAncerstors(J,namedConstraint(W))},new BindingOnSyntax(this._binding)},X.prototype.whenNoAncestorNamed=function(W){return this._binding.constraint=function(J){return J!==null&&!traverseAncerstors(J,namedConstraint(W))},new BindingOnSyntax(this._binding)},X.prototype.whenAnyAncestorTagged=function(W,J){return this._binding.constraint=function(te){return te!==null&&traverseAncerstors(te,taggedConstraint(W)(J))},new BindingOnSyntax(this._binding)},X.prototype.whenNoAncestorTagged=function(W,J){return this._binding.constraint=function(te){return te!==null&&!traverseAncerstors(te,taggedConstraint(W)(J))},new BindingOnSyntax(this._binding)},X.prototype.whenAnyAncestorMatches=function(W){return this._binding.constraint=function(J){return J!==null&&traverseAncerstors(J,W)},new BindingOnSyntax(this._binding)},X.prototype.whenNoAncestorMatches=function(W){return this._binding.constraint=function(J){return J!==null&&!traverseAncerstors(J,W)},new BindingOnSyntax(this._binding)},X}(),BindingOnSyntax=function(){function X(W){this._binding=W}return X.prototype.onActivation=function(W){return this._binding.onActivation=W,new BindingWhenSyntax(this._binding)},X.prototype.onDeactivation=function(W){return this._binding.onDeactivation=W,new BindingWhenSyntax(this._binding)},X}(),BindingWhenOnSyntax=function(){function X(W){this._binding=W,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding)}return X.prototype.when=function(W){return this._bindingWhenSyntax.when(W)},X.prototype.whenTargetNamed=function(W){return this._bindingWhenSyntax.whenTargetNamed(W)},X.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},X.prototype.whenTargetTagged=function(W,J){return this._bindingWhenSyntax.whenTargetTagged(W,J)},X.prototype.whenInjectedInto=function(W){return this._bindingWhenSyntax.whenInjectedInto(W)},X.prototype.whenParentNamed=function(W){return this._bindingWhenSyntax.whenParentNamed(W)},X.prototype.whenParentTagged=function(W,J){return this._bindingWhenSyntax.whenParentTagged(W,J)},X.prototype.whenAnyAncestorIs=function(W){return this._bindingWhenSyntax.whenAnyAncestorIs(W)},X.prototype.whenNoAncestorIs=function(W){return this._bindingWhenSyntax.whenNoAncestorIs(W)},X.prototype.whenAnyAncestorNamed=function(W){return this._bindingWhenSyntax.whenAnyAncestorNamed(W)},X.prototype.whenAnyAncestorTagged=function(W,J){return this._bindingWhenSyntax.whenAnyAncestorTagged(W,J)},X.prototype.whenNoAncestorNamed=function(W){return this._bindingWhenSyntax.whenNoAncestorNamed(W)},X.prototype.whenNoAncestorTagged=function(W,J){return this._bindingWhenSyntax.whenNoAncestorTagged(W,J)},X.prototype.whenAnyAncestorMatches=function(W){return this._bindingWhenSyntax.whenAnyAncestorMatches(W)},X.prototype.whenNoAncestorMatches=function(W){return this._bindingWhenSyntax.whenNoAncestorMatches(W)},X.prototype.onActivation=function(W){return this._bindingOnSyntax.onActivation(W)},X.prototype.onDeactivation=function(W){return this._bindingOnSyntax.onDeactivation(W)},X}(),BindingInSyntax=function(){function X(W){this._binding=W}return X.prototype.inRequestScope=function(){return this._binding.scope=BindingScopeEnum.Request,new BindingWhenOnSyntax(this._binding)},X.prototype.inSingletonScope=function(){return this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.inTransientScope=function(){return this._binding.scope=BindingScopeEnum.Transient,new BindingWhenOnSyntax(this._binding)},X}(),BindingInWhenOnSyntax=function(){function X(W){this._binding=W,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding),this._bindingInSyntax=new BindingInSyntax(W)}return X.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},X.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},X.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},X.prototype.when=function(W){return this._bindingWhenSyntax.when(W)},X.prototype.whenTargetNamed=function(W){return this._bindingWhenSyntax.whenTargetNamed(W)},X.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},X.prototype.whenTargetTagged=function(W,J){return this._bindingWhenSyntax.whenTargetTagged(W,J)},X.prototype.whenInjectedInto=function(W){return this._bindingWhenSyntax.whenInjectedInto(W)},X.prototype.whenParentNamed=function(W){return this._bindingWhenSyntax.whenParentNamed(W)},X.prototype.whenParentTagged=function(W,J){return this._bindingWhenSyntax.whenParentTagged(W,J)},X.prototype.whenAnyAncestorIs=function(W){return this._bindingWhenSyntax.whenAnyAncestorIs(W)},X.prototype.whenNoAncestorIs=function(W){return this._bindingWhenSyntax.whenNoAncestorIs(W)},X.prototype.whenAnyAncestorNamed=function(W){return this._bindingWhenSyntax.whenAnyAncestorNamed(W)},X.prototype.whenAnyAncestorTagged=function(W,J){return this._bindingWhenSyntax.whenAnyAncestorTagged(W,J)},X.prototype.whenNoAncestorNamed=function(W){return this._bindingWhenSyntax.whenNoAncestorNamed(W)},X.prototype.whenNoAncestorTagged=function(W,J){return this._bindingWhenSyntax.whenNoAncestorTagged(W,J)},X.prototype.whenAnyAncestorMatches=function(W){return this._bindingWhenSyntax.whenAnyAncestorMatches(W)},X.prototype.whenNoAncestorMatches=function(W){return this._bindingWhenSyntax.whenNoAncestorMatches(W)},X.prototype.onActivation=function(W){return this._bindingOnSyntax.onActivation(W)},X.prototype.onDeactivation=function(W){return this._bindingOnSyntax.onDeactivation(W)},X}(),BindingToSyntax=function(){function X(W){this._binding=W}return X.prototype.to=function(W){return this._binding.type=BindingTypeEnum.Instance,this._binding.implementationType=W,new BindingInWhenOnSyntax(this._binding)},X.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+INVALID_TO_SELF_VALUE);var W=this._binding.serviceIdentifier;return this.to(W)},X.prototype.toConstantValue=function(W){return this._binding.type=BindingTypeEnum.ConstantValue,this._binding.cache=W,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toDynamicValue=function(W){return this._binding.type=BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=W,this._binding.implementationType=null,new BindingInWhenOnSyntax(this._binding)},X.prototype.toConstructor=function(W){return this._binding.type=BindingTypeEnum.Constructor,this._binding.implementationType=W,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toFactory=function(W){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=W,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toFunction=function(W){if(typeof W!="function")throw new Error(INVALID_FUNCTION_BINDING);var J=this.toConstantValue(W);return this._binding.type=BindingTypeEnum.Function,this._binding.scope=BindingScopeEnum.Singleton,J},X.prototype.toAutoFactory=function(W){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(J){var te=function(){return J.container.get(W)};return te},this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toAutoNamedFactory=function(W){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(J){return function(te){return J.container.getNamed(W,te)}},new BindingWhenOnSyntax(this._binding)},X.prototype.toProvider=function(W){return this._binding.type=BindingTypeEnum.Provider,this._binding.provider=W,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},X.prototype.toService=function(W){this.toDynamicValue(function(J){return J.container.get(W)})},X}(),ContainerSnapshot=function(){function X(){}return X.of=function(W,J,te,re,ne){var oe=new X;return oe.bindings=W,oe.middleware=J,oe.deactivations=re,oe.activations=te,oe.moduleActivationStore=ne,oe},X}();function isClonable(X){return typeof X=="object"&&X!==null&&"clone"in X&&typeof X.clone=="function"}var Lookup=function(){function X(){this._map=new Map}return X.prototype.getMap=function(){return this._map},X.prototype.add=function(W,J){if(W==null)throw new Error(NULL_ARGUMENT);if(J==null)throw new Error(NULL_ARGUMENT);var te=this._map.get(W);te!==void 0?te.push(J):this._map.set(W,[J])},X.prototype.get=function(W){if(W==null)throw new Error(NULL_ARGUMENT);var J=this._map.get(W);if(J!==void 0)return J;throw new Error(KEY_NOT_FOUND)},X.prototype.remove=function(W){if(W==null)throw new Error(NULL_ARGUMENT);if(!this._map.delete(W))throw new Error(KEY_NOT_FOUND)},X.prototype.removeIntersection=function(W){var J=this;this.traverse(function(te,re){var ne=W.hasKey(te)?W.get(te):void 0;if(ne!==void 0){var oe=re.filter(function(de){return!ne.some(function(he){return de===he})});J._setValue(te,oe)}})},X.prototype.removeByCondition=function(W){var J=this,te=[];return this._map.forEach(function(re,ne){for(var oe=[],de=0,he=re;de<he.length;de++){var ue=he[de],ce=W(ue);ce?te.push(ue):oe.push(ue)}J._setValue(ne,oe)}),te},X.prototype.hasKey=function(W){if(W==null)throw new Error(NULL_ARGUMENT);return this._map.has(W)},X.prototype.clone=function(){var W=new X;return this._map.forEach(function(J,te){J.forEach(function(re){return W.add(te,isClonable(re)?re.clone():re)})}),W},X.prototype.traverse=function(W){this._map.forEach(function(J,te){W(te,J)})},X.prototype._setValue=function(W,J){J.length>0?this._map.set(W,J):this._map.delete(W)},X}(),ModuleActivationStore=function(){function X(){this._map=new Map}return X.prototype.remove=function(W){if(this._map.has(W)){var J=this._map.get(W);return this._map.delete(W),J}return this._getEmptyHandlersStore()},X.prototype.addDeactivation=function(W,J,te){this._getModuleActivationHandlers(W).onDeactivations.add(J,te)},X.prototype.addActivation=function(W,J,te){this._getModuleActivationHandlers(W).onActivations.add(J,te)},X.prototype.clone=function(){var W=new X;return this._map.forEach(function(J,te){W._map.set(te,{onActivations:J.onActivations.clone(),onDeactivations:J.onDeactivations.clone()})}),W},X.prototype._getModuleActivationHandlers=function(W){var J=this._map.get(W);return J===void 0&&(J=this._getEmptyHandlersStore(),this._map.set(W,J)),J},X.prototype._getEmptyHandlersStore=function(){var W={onActivations:new Lookup,onDeactivations:new Lookup};return W},X}(),__assign=function(){return __assign=Object.assign||function(X){for(var W,J=1,te=arguments.length;J<te;J++){W=arguments[J];for(var re in W)Object.prototype.hasOwnProperty.call(W,re)&&(X[re]=W[re])}return X},__assign.apply(this,arguments)},__awaiter=function(X,W,J,te){function re(ne){return ne instanceof J?ne:new J(function(oe){oe(ne)})}return new(J||(J=Promise))(function(ne,oe){function de(ce){try{ue(te.next(ce))}catch(pe){oe(pe)}}function he(ce){try{ue(te.throw(ce))}catch(pe){oe(pe)}}function ue(ce){ce.done?ne(ce.value):re(ce.value).then(de,he)}ue((te=te.apply(X,W||[])).next())})},__generator=function(X,W){var J={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},te,re,ne,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(ue){return function(ce){return he([ue,ce])}}function he(ue){if(te)throw new TypeError("Generator is already executing.");for(;J;)try{if(te=1,re&&(ne=ue[0]&2?re.return:ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,ue[1])).done)return ne;switch(re=0,ne&&(ue=[ue[0]&2,ne.value]),ue[0]){case 0:case 1:ne=ue;break;case 4:return J.label++,{value:ue[1],done:!1};case 5:J.label++,re=ue[1],ue=[0];continue;case 7:ue=J.ops.pop(),J.trys.pop();continue;default:if(ne=J.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ue[0]===6||ue[0]===2)){J=0;continue}if(ue[0]===3&&(!ne||ue[1]>ne[0]&&ue[1]<ne[3])){J.label=ue[1];break}if(ue[0]===6&&J.label<ne[1]){J.label=ne[1],ne=ue;break}if(ne&&J.label<ne[2]){J.label=ne[2],J.ops.push(ue);break}ne[2]&&J.ops.pop(),J.trys.pop();continue}ue=W.call(X,J)}catch(ce){ue=[6,ce],re=0}finally{te=ne=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},__spreadArray=function(X,W,J){if(J||arguments.length===2)for(var te=0,re=W.length,ne;te<re;te++)(ne||!(te in W))&&(ne||(ne=Array.prototype.slice.call(W,0,te)),ne[te]=W[te]);return X.concat(ne||Array.prototype.slice.call(W))},Container=function(){function X(W){var J=W||{};if(typeof J!="object")throw new Error(""+CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(J.defaultScope===void 0)J.defaultScope=BindingScopeEnum.Transient;else if(J.defaultScope!==BindingScopeEnum.Singleton&&J.defaultScope!==BindingScopeEnum.Transient&&J.defaultScope!==BindingScopeEnum.Request)throw new Error(""+CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(J.autoBindInjectable===void 0)J.autoBindInjectable=!1;else if(typeof J.autoBindInjectable!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(J.skipBaseClassChecks===void 0)J.skipBaseClassChecks=!1;else if(typeof J.skipBaseClassChecks!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:J.autoBindInjectable,defaultScope:J.defaultScope,skipBaseClassChecks:J.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 X.merge=function(W,J){for(var te=[],re=2;re<arguments.length;re++)te[re-2]=arguments[re];var ne=new X,oe=__spreadArray([W,J],te,!0).map(function(ue){return getBindingDictionary(ue)}),de=getBindingDictionary(ne);function he(ue,ce){ue.traverse(function(pe,fe){fe.forEach(function(ge){ce.add(ge.serviceIdentifier,ge.clone())})})}return oe.forEach(function(ue){he(ue,de)}),ne},X.prototype.load=function(){for(var W=[],J=0;J<arguments.length;J++)W[J]=arguments[J];for(var te=this._getContainerModuleHelpersFactory(),re=0,ne=W;re<ne.length;re++){var oe=ne[re],de=te(oe.id);oe.registry(de.bindFunction,de.unbindFunction,de.isboundFunction,de.rebindFunction,de.unbindAsyncFunction,de.onActivationFunction,de.onDeactivationFunction)}},X.prototype.loadAsync=function(){for(var W=[],J=0;J<arguments.length;J++)W[J]=arguments[J];return __awaiter(this,void 0,void 0,function(){var te,re,ne,oe,de;return __generator(this,function(he){switch(he.label){case 0:te=this._getContainerModuleHelpersFactory(),re=0,ne=W,he.label=1;case 1:return re<ne.length?(oe=ne[re],de=te(oe.id),[4,oe.registry(de.bindFunction,de.unbindFunction,de.isboundFunction,de.rebindFunction,de.unbindAsyncFunction,de.onActivationFunction,de.onDeactivationFunction)]):[3,4];case 2:he.sent(),he.label=3;case 3:return re++,[3,1];case 4:return[2]}})})},X.prototype.unload=function(){for(var W=this,J=[],te=0;te<arguments.length;te++)J[te]=arguments[te];J.forEach(function(re){var ne=W._removeModuleBindings(re.id);W._deactivateSingletons(ne),W._removeModuleHandlers(re.id)})},X.prototype.unloadAsync=function(){for(var W=[],J=0;J<arguments.length;J++)W[J]=arguments[J];return __awaiter(this,void 0,void 0,function(){var te,re,ne,oe;return __generator(this,function(de){switch(de.label){case 0:te=0,re=W,de.label=1;case 1:return te<re.length?(ne=re[te],oe=this._removeModuleBindings(ne.id),[4,this._deactivateSingletonsAsync(oe)]):[3,4];case 2:de.sent(),this._removeModuleHandlers(ne.id),de.label=3;case 3:return te++,[3,1];case 4:return[2]}})})},X.prototype.bind=function(W){var J=this.options.defaultScope||BindingScopeEnum.Transient,te=new Binding(W,J);return this._bindingDictionary.add(W,te),new BindingToSyntax(te)},X.prototype.rebind=function(W){return this.unbind(W),this.bind(W)},X.prototype.rebindAsync=function(W){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(J){switch(J.label){case 0:return[4,this.unbindAsync(W)];case 1:return J.sent(),[2,this.bind(W)]}})})},X.prototype.unbind=function(W){if(this._bindingDictionary.hasKey(W)){var J=this._bindingDictionary.get(W);this._deactivateSingletons(J)}this._removeServiceFromDictionary(W)},X.prototype.unbindAsync=function(W){return __awaiter(this,void 0,void 0,function(){var J;return __generator(this,function(te){switch(te.label){case 0:return this._bindingDictionary.hasKey(W)?(J=this._bindingDictionary.get(W),[4,this._deactivateSingletonsAsync(J)]):[3,2];case 1:te.sent(),te.label=2;case 2:return this._removeServiceFromDictionary(W),[2]}})})},X.prototype.unbindAll=function(){var W=this;this._bindingDictionary.traverse(function(J,te){W._deactivateSingletons(te)}),this._bindingDictionary=new Lookup},X.prototype.unbindAllAsync=function(){return __awaiter(this,void 0,void 0,function(){var W,J=this;return __generator(this,function(te){switch(te.label){case 0:return W=[],this._bindingDictionary.traverse(function(re,ne){W.push(J._deactivateSingletonsAsync(ne))}),[4,Promise.all(W)];case 1:return te.sent(),this._bindingDictionary=new Lookup,[2]}})})},X.prototype.onActivation=function(W,J){this._activations.add(W,J)},X.prototype.onDeactivation=function(W,J){this._deactivations.add(W,J)},X.prototype.isBound=function(W){var J=this._bindingDictionary.hasKey(W);return!J&&this.parent&&(J=this.parent.isBound(W)),J},X.prototype.isCurrentBound=function(W){return this._bindingDictionary.hasKey(W)},X.prototype.isBoundNamed=function(W,J){return this.isBoundTagged(W,NAMED_TAG,J)},X.prototype.isBoundTagged=function(W,J,te){var re=!1;if(this._bindingDictionary.hasKey(W)){var ne=this._bindingDictionary.get(W),oe=createMockRequest(this,W,J,te);re=ne.some(function(de){return de.constraint(oe)})}return!re&&this.parent&&(re=this.parent.isBoundTagged(W,J,te)),re},X.prototype.snapshot=function(){this._snapshots.push(ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},X.prototype.restore=function(){var W=this._snapshots.pop();if(W===void 0)throw new Error(NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=W.bindings,this._activations=W.activations,this._deactivations=W.deactivations,this._middleware=W.middleware,this._moduleActivationStore=W.moduleActivationStore},X.prototype.createChild=function(W){var J=new X(W||this.options);return J.parent=this,J},X.prototype.applyMiddleware=function(){for(var W=[],J=0;J<arguments.length;J++)W[J]=arguments[J];var te=this._middleware?this._middleware:this._planAndResolve();this._middleware=W.reduce(function(re,ne){return ne(re)},te)},X.prototype.applyCustomMetadataReader=function(W){this._metadataReader=W},X.prototype.get=function(W){var J=this._getNotAllArgs(W,!1);return this._getButThrowIfAsync(J)},X.prototype.getAsync=function(W){return __awaiter(this,void 0,void 0,function(){var J;return __generator(this,function(te){return J=this._getNotAllArgs(W,!1),[2,this._get(J)]})})},X.prototype.getTagged=function(W,J,te){var re=this._getNotAllArgs(W,!1,J,te);return this._getButThrowIfAsync(re)},X.prototype.getTaggedAsync=function(W,J,te){return __awaiter(this,void 0,void 0,function(){var re;return __generator(this,function(ne){return re=this._getNotAllArgs(W,!1,J,te),[2,this._get(re)]})})},X.prototype.getNamed=function(W,J){return this.getTagged(W,NAMED_TAG,J)},X.prototype.getNamedAsync=function(W,J){return this.getTaggedAsync(W,NAMED_TAG,J)},X.prototype.getAll=function(W){var J=this._getAllArgs(W);return this._getButThrowIfAsync(J)},X.prototype.getAllAsync=function(W){var J=this._getAllArgs(W);return this._getAll(J)},X.prototype.getAllTagged=function(W,J,te){var re=this._getNotAllArgs(W,!0,J,te);return this._getButThrowIfAsync(re)},X.prototype.getAllTaggedAsync=function(W,J,te){var re=this._getNotAllArgs(W,!0,J,te);return this._getAll(re)},X.prototype.getAllNamed=function(W,J){return this.getAllTagged(W,NAMED_TAG,J)},X.prototype.getAllNamedAsync=function(W,J){return this.getAllTaggedAsync(W,NAMED_TAG,J)},X.prototype.resolve=function(W){var J=this.isBound(W);J||this.bind(W).toSelf();var te=this.get(W);return J||this.unbind(W),te},X.prototype._preDestroy=function(W,J){var te,re;if(Reflect.hasMetadata(PRE_DESTROY,W)){var ne=Reflect.getMetadata(PRE_DESTROY,W);return(re=(te=J)[ne.value])===null||re===void 0?void 0:re.call(te)}},X.prototype._removeModuleHandlers=function(W){var J=this._moduleActivationStore.remove(W);this._activations.removeIntersection(J.onActivations),this._deactivations.removeIntersection(J.onDeactivations)},X.prototype._removeModuleBindings=function(W){return this._bindingDictionary.removeByCondition(function(J){return J.moduleId===W})},X.prototype._deactivate=function(W,J){var te=this,re=Object.getPrototypeOf(J).constructor;try{if(this._deactivations.hasKey(W.serviceIdentifier)){var ne=this._deactivateContainer(J,this._deactivations.get(W.serviceIdentifier).values());if(isPromise(ne))return this._handleDeactivationError(ne.then(function(){return te._propagateContainerDeactivationThenBindingAndPreDestroyAsync(W,J,re)}),re)}var oe=this._propagateContainerDeactivationThenBindingAndPreDestroy(W,J,re);if(isPromise(oe))return this._handleDeactivationError(oe,re)}catch(de){if(de instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(re.name,de.message))}},X.prototype._handleDeactivationError=function(W,J){return __awaiter(this,void 0,void 0,function(){var te;return __generator(this,function(re){switch(re.label){case 0:return re.trys.push([0,2,,3]),[4,W];case 1:return re.sent(),[3,3];case 2:if(te=re.sent(),te instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(J.name,te.message));return[3,3];case 3:return[2]}})})},X.prototype._deactivateContainer=function(W,J){for(var te=this,re=J.next();re.value;){var ne=re.value(W);if(isPromise(ne))return ne.then(function(){return te._deactivateContainerAsync(W,J)});re=J.next()}},X.prototype._deactivateContainerAsync=function(W,J){return __awaiter(this,void 0,void 0,function(){var te;return __generator(this,function(re){switch(re.label){case 0:te=J.next(),re.label=1;case 1:return te.value?[4,te.value(W)]:[3,3];case 2:return re.sent(),te=J.next(),[3,1];case 3:return[2]}})})},X.prototype._getContainerModuleHelpersFactory=function(){var W=this,J=function(ce,pe){ce._binding.moduleId=pe},te=function(ce){return function(pe){var fe=W.bind(pe);return J(fe,ce),fe}},re=function(){return function(ce){return W.unbind(ce)}},ne=function(){return function(ce){return W.unbindAsync(ce)}},oe=function(){return function(ce){return W.isBound(ce)}},de=function(ce){return function(pe){var fe=W.rebind(pe);return J(fe,ce),fe}},he=function(ce){return function(pe,fe){W._moduleActivationStore.addActivation(ce,pe,fe),W.onActivation(pe,fe)}},ue=function(ce){return function(pe,fe){W._moduleActivationStore.addDeactivation(ce,pe,fe),W.onDeactivation(pe,fe)}};return function(ce){return{bindFunction:te(ce),isboundFunction:oe(),onActivationFunction:he(ce),onDeactivationFunction:ue(ce),rebindFunction:de(ce),unbindFunction:re(),unbindAsyncFunction:ne()}}},X.prototype._getAll=function(W){return Promise.all(this._get(W))},X.prototype._get=function(W){var J=__assign(__assign({},W),{contextInterceptor:function(re){return re},targetType:TargetTypeEnum.Variable});if(this._middleware){var te=this._middleware(J);if(te==null)throw new Error(INVALID_MIDDLEWARE_RETURN);return te}return this._planAndResolve()(J)},X.prototype._getButThrowIfAsync=function(W){var J=this._get(W);if(isPromiseOrContainsPromise(J))throw new Error(LAZY_IN_SYNC(W.serviceIdentifier));return J},X.prototype._getAllArgs=function(W){var J={avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:W};return J},X.prototype._getNotAllArgs=function(W,J,te,re){var ne={avoidConstraints:!1,isMultiInject:J,serviceIdentifier:W,key:te,value:re};return ne},X.prototype._planAndResolve=function(){var W=this;return function(J){var te=plan(W._metadataReader,W,J.isMultiInject,J.targetType,J.serviceIdentifier,J.key,J.value,J.avoidConstraints);te=J.contextInterceptor(te);var re=resolve(te);return re}},X.prototype._deactivateIfSingleton=function(W){var J=this;if(W.activated)return isPromise(W.cache)?W.cache.then(function(te){return J._deactivate(W,te)}):this._deactivate(W,W.cache)},X.prototype._deactivateSingletons=function(W){for(var J=0,te=W;J<te.length;J++){var re=te[J],ne=this._deactivateIfSingleton(re);if(isPromise(ne))throw new Error(ASYNC_UNBIND_REQUIRED)}},X.prototype._deactivateSingletonsAsync=function(W){return __awaiter(this,void 0,void 0,function(){var J=this;return __generator(this,function(te){switch(te.label){case 0:return[4,Promise.all(W.map(function(re){return J._deactivateIfSingleton(re)}))];case 1:return te.sent(),[2]}})})},X.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(W,J,te){return this.parent?this._deactivate.bind(this.parent)(W,J):this._bindingDeactivationAndPreDestroy(W,J,te)},X.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(W,J,te){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(re){switch(re.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(W,J)]:[3,2];case 1:return re.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(W,J,te)];case 3:re.sent(),re.label=4;case 4:return[2]}})})},X.prototype._removeServiceFromDictionary=function(W){try{this._bindingDictionary.remove(W)}catch{throw new Error(CANNOT_UNBIND+" "+getServiceIdentifierAsString(W))}},X.prototype._bindingDeactivationAndPreDestroy=function(W,J,te){var re=this;if(typeof W.onDeactivation=="function"){var ne=W.onDeactivation(J);if(isPromise(ne))return ne.then(function(){return re._preDestroy(te,J)})}return this._preDestroy(te,J)},X.prototype._bindingDeactivationAndPreDestroyAsync=function(W,J,te){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(re){switch(re.label){case 0:return typeof W.onDeactivation!="function"?[3,2]:[4,W.onDeactivation(J)];case 1:re.sent(),re.label=2;case 2:return[4,this._preDestroy(te,J)];case 3:return re.sent(),[2]}})})},X}();function getFirstArrayDuplicate(X){for(var W=new Set,J=0,te=X;J<te.length;J++){var re=te[J];if(W.has(re))return re;W.add(re)}}function targetIsConstructorFunction(X){return X.prototype!==void 0}function _throwIfMethodParameter(X){if(X!==void 0)throw new Error(INVALID_DECORATOR_OPERATION)}function tagParameter(X,W,J,te){_throwIfMethodParameter(W),_tagParameterOrProperty(TAGGED,X,J.toString(),te)}function tagProperty(X,W,J){if(targetIsConstructorFunction(X))throw new Error(INVALID_DECORATOR_OPERATION);_tagParameterOrProperty(TAGGED_PROP,X.constructor,W,J)}function _ensureNoMetadataKeyDuplicates(X){var W=[];if(Array.isArray(X)){W=X;var J=getFirstArrayDuplicate(W.map(function(te){return te.key}));if(J!==void 0)throw new Error(DUPLICATED_METADATA+" "+J.toString())}else W=[X];return W}function _tagParameterOrProperty(X,W,J,te){var re=_ensureNoMetadataKeyDuplicates(te),ne={};Reflect.hasOwnMetadata(X,W)&&(ne=Reflect.getMetadata(X,W));var oe=ne[J];if(oe===void 0)oe=[];else for(var de=function(pe){if(re.some(function(fe){return fe.key===pe.key}))throw new Error(DUPLICATED_METADATA+" "+pe.key.toString())},he=0,ue=oe;he<ue.length;he++){var ce=ue[he];de(ce)}oe.push.apply(oe,re),ne[J]=oe,Reflect.defineMetadata(X,ne,W)}function createTaggedDecorator(X){return function(W,J,te){typeof te=="number"?tagParameter(W,J,te,X):tagProperty(W,J,X)}}function injectable(){return function(X){if(Reflect.hasOwnMetadata(PARAM_TYPES,X))throw new Error(DUPLICATED_INJECTABLE_DECORATOR);var W=Reflect.getMetadata(DESIGN_PARAM_TYPES,X)||[];return Reflect.defineMetadata(PARAM_TYPES,W,X),X}}function injectBase(X){return function(W){return function(J,te,re){if(W===void 0){var ne=typeof J=="function"?J.name:J.constructor.name;throw new Error(UNDEFINED_INJECT_ANNOTATION(ne))}return createTaggedDecorator(new Metadata(X,W))(J,te,re)}}}var inject=injectBase(INJECT_TAG),INJECTION=Symbol.for("INJECTION");function _proxyGetter(X,W,J,te){function re(){return Reflect.hasMetadata(INJECTION,this,W)?Reflect.getMetadata(INJECTION,this,W):J()}function ne(oe){Reflect.defineMetadata(INJECTION,oe,this,W)}Object.defineProperty(X,W,{configurable:!0,enumerable:!0,get:re,set:ne})}function makePropertyInjectDecorator(X,W){return function(J){return function(te,re){var ne=function(){return X.get(J)};_proxyGetter(te,re,ne)}}}function makePropertyInjectNamedDecorator(X,W){return function(J,te){return function(re,ne){var oe=function(){return X.getNamed(J,te)};_proxyGetter(re,ne,oe)}}}function makePropertyInjectTaggedDecorator(X,W){return function(J,te,re){return function(ne,oe){var de=function(){return X.getTagged(J,te,re)};_proxyGetter(ne,oe,de)}}}function makePropertyMultiInjectDecorator(X,W){return function(J){return function(te,re){var ne=function(){return X.getAll(J)};_proxyGetter(te,re,ne)}}}function getDecorators(X,W){var J=makePropertyInjectDecorator(X),te=makePropertyInjectNamedDecorator(X),re=makePropertyInjectTaggedDecorator(X),ne=makePropertyMultiInjectDecorator(X);return{lazyInject:J,lazyInjectNamed:te,lazyInjectTagged:re,lazyMultiInject:ne}}const container$1=new Container,registerDep=X=>{container$1.bind(X).toSelf()},unregisterDep=X=>{container$1.isBound(X)&&container$1.unbind(X)},TYPES$1={primaryApi:Symbol.for("primaryApi"),store:Symbol.for("store"),localeManager:Symbol.for("localeManager")},registerRequest$1=(X,W)=>(J,te)=>{W.bind(te).to(te).inTransientScope(),injectable()(te);const re=X.broker.registerRequest(J,ne=>W.get(te).handle(ne));return{dispose:()=>{W.isBound(te)&&W.unbind(te),re.dispose()}}},registerRequest=(X,W)=>(J,te)=>{W.bind(te).to(te).inTransientScope(),injectable()(te);const re=X.broker.registerRequest(J,ne=>W.get(te).handle(ne));return{dispose:()=>{W.isBound(te)&&W.unbind(te),re.dispose()}}},brokerExtensions=(X,W)=>({registerRequest:registerRequest(X,W)});function createConnectToStoreDecorator(X){return function(J){return(te,re)=>{Object.defineProperty(te,re,{get(){return this[`__${re}`]},set(de){this[`__${re}`]!==de&&(this[`__${re}`]=Array.isArray(de)?[...de]:typeof de=="object"&&de!==null?{...de}:de,this.requestUpdate(re))},configurable:!0,enumerable:!0});const ne=te.connectedCallback,oe=te.disconnectedCallback;te.connectedCallback=function(){ne&&ne.call(this),this[re]=J(X.getState()),this[`__unsubscribe__${re}`]=X.subscribe(()=>{const de=J(X.getState());this[re]=Array.isArray(de)?[...de]:typeof de=="object"&&de!==null?{...de}:de})},te.disconnectedCallback=function(){oe&&oe.call(this),this[`__unsubscribe__${re}`]&&this[`__unsubscribe__${re}`]()}}}}function createConnectedProperty(X){return(W,J={})=>{const te=createConnectToStoreDecorator(X);return(re,ne)=>{n$v(J)(re,ne),te(W)(re,ne)}}}const TYPES={primaryApi:Symbol.for("primaryApi"),store:Symbol.for("store")};function formatProdErrorMessage$1(X){return`Minified Redux error #${X}; visit https://redux.js.org/Errors?code=${X} 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(X){if(typeof X!="object"||X===null)return!1;let W=X;for(;Object.getPrototypeOf(W)!==null;)W=Object.getPrototypeOf(W);return Object.getPrototypeOf(X)===W||Object.getPrototypeOf(X)===null}function createStore(X,W,J){if(typeof X!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof W=="function"&&typeof J=="function"||typeof J=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof W=="function"&&typeof J>"u"&&(J=W,W=void 0),typeof J<"u"){if(typeof J!="function")throw new Error(formatProdErrorMessage$1(1));return J(createStore)(X,W)}let te=X,re=W,ne=new Map,oe=ne,de=0,he=!1;function ue(){oe===ne&&(oe=new Map,ne.forEach((be,ye)=>{oe.set(ye,be)}))}function ce(){if(he)throw new Error(formatProdErrorMessage$1(3));return re}function pe(be){if(typeof be!="function")throw new Error(formatProdErrorMessage$1(4));if(he)throw new Error(formatProdErrorMessage$1(5));let ye=!0;ue();const we=de++;return oe.set(we,be),function(){if(ye){if(he)throw new Error(formatProdErrorMessage$1(6));ye=!1,ue(),oe.delete(we),ne=null}}}function fe(be){if(!isPlainObject$1(be))throw new Error(formatProdErrorMessage$1(7));if(typeof be.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof be.type!="string")throw new Error(formatProdErrorMessage$1(17));if(he)throw new Error(formatProdErrorMessage$1(9));try{he=!0,re=te(re,be)}finally{he=!1}return(ne=oe).forEach(we=>{we()}),be}function ge(be){if(typeof be!="function")throw new Error(formatProdErrorMessage$1(10));te=be,fe({type:actionTypes_default.REPLACE})}function me(){const be=pe;return{subscribe(ye){if(typeof ye!="object"||ye===null)throw new Error(formatProdErrorMessage$1(11));function we(){const _e=ye;_e.next&&_e.next(ce())}return we(),{unsubscribe:be(we)}},[symbol_observable_default](){return this}}}return fe({type:actionTypes_default.INIT}),{dispatch:fe,subscribe:pe,getState:ce,replaceReducer:ge,[symbol_observable_default]:me}}function assertReducerShape(X){Object.keys(X).forEach(W=>{const J=X[W];if(typeof J(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof J(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(X){const W=Object.keys(X),J={};for(let ne=0;ne<W.length;ne++){const oe=W[ne];typeof X[oe]=="function"&&(J[oe]=X[oe])}const te=Object.keys(J);let re;try{assertReducerShape(J)}catch(ne){re=ne}return function(oe={},de){if(re)throw re;let he=!1;const ue={};for(let ce=0;ce<te.length;ce++){const pe=te[ce],fe=J[pe],ge=oe[pe],me=fe(ge,de);if(typeof me>"u")throw de&&de.type,new Error(formatProdErrorMessage$1(14));ue[pe]=me,he=he||me!==ge}return he=he||te.length!==Object.keys(oe).length,he?ue:oe}}function compose(...X){return X.length===0?W=>W:X.length===1?X[0]:X.reduce((W,J)=>(...te)=>W(J(...te)))}function applyMiddleware(...X){return W=>(J,te)=>{const re=W(J,te);let ne=()=>{throw new Error(formatProdErrorMessage$1(15))};const oe={getState:re.getState,dispatch:(he,...ue)=>ne(he,...ue)},de=X.map(he=>he(oe));return ne=compose(...de)(re.dispatch),{...re,dispatch:ne}}}function isAction(X){return isPlainObject$1(X)&&"type"in X&&typeof X.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(X,...W){throw new Error(`[Immer] minified error nr: ${X}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(X){return!!X&&!!X[DRAFT_STATE]}function isDraftable(X){var W;return X?isPlainObject(X)||Array.isArray(X)||!!X[DRAFTABLE]||!!((W=X.constructor)!=null&&W[DRAFTABLE])||isMap(X)||isSet(X):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject(X){if(!X||typeof X!="object")return!1;const W=getPrototypeOf(X);if(W===null)return!0;const J=Object.hasOwnProperty.call(W,"constructor")&&W.constructor;return J===Object?!0:typeof J=="function"&&Function.toString.call(J)===objectCtorString}function each(X,W){getArchtype(X)===0?Reflect.ownKeys(X).forEach(J=>{W(J,X[J],X)}):X.forEach((J,te)=>W(te,J,X))}function getArchtype(X){const W=X[DRAFT_STATE];return W?W.type_:Array.isArray(X)?1:isMap(X)?2:isSet(X)?3:0}function has(X,W){return getArchtype(X)===2?X.has(W):Object.prototype.hasOwnProperty.call(X,W)}function set(X,W,J){const te=getArchtype(X);te===2?X.set(W,J):te===3?X.add(J):X[W]=J}function is(X,W){return X===W?X!==0||1/X===1/W:X!==X&&W!==W}function isMap(X){return X instanceof Map}function isSet(X){return X instanceof Set}function latest(X){return X.copy_||X.base_}function shallowCopy(X,W){if(isMap(X))return new Map(X);if(isSet(X))return new Set(X);if(Array.isArray(X))return Array.prototype.slice.call(X);const J=isPlainObject(X);if(W===!0||W==="class_only"&&!J){const te=Object.getOwnPropertyDescriptors(X);delete te[DRAFT_STATE];let re=Reflect.ownKeys(te);for(let ne=0;ne<re.length;ne++){const oe=re[ne],de=te[oe];de.writable===!1&&(de.writable=!0,de.configurable=!0),(de.get||de.set)&&(te[oe]={configurable:!0,writable:!0,enumerable:de.enumerable,value:X[oe]})}return Object.create(getPrototypeOf(X),te)}else{const te=getPrototypeOf(X);if(te!==null&&J)return{...X};const re=Object.create(te);return Object.assign(re,X)}}function freeze(X,W=!1){return isFrozen(X)||isDraft(X)||!isDraftable(X)||(getArchtype(X)>1&&(X.set=X.add=X.clear=X.delete=dontMutateFrozenCollections),Object.freeze(X),W&&Object.entries(X).forEach(([J,te])=>freeze(te,!0))),X}function dontMutateFrozenCollections(){die(2)}function isFrozen(X){return Object.isFrozen(X)}var plugins={};function getPlugin(X){const W=plugins[X];return W||die(0,X),W}var currentScope;function getCurrentScope(){return currentScope}function createScope(X,W){return{drafts_:[],parent_:X,immer_:W,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(X,W){W&&(getPlugin("Patches"),X.patches_=[],X.inversePatches_=[],X.patchListener_=W)}function revokeScope(X){leaveScope(X),X.drafts_.forEach(revokeDraft),X.drafts_=null}function leaveScope(X){X===currentScope&&(currentScope=X.parent_)}function enterScope(X){return currentScope=createScope(currentScope,X)}function revokeDraft(X){const W=X[DRAFT_STATE];W.type_===0||W.type_===1?W.revoke_():W.revoked_=!0}function processResult(X,W){W.unfinalizedDrafts_=W.drafts_.length;const J=W.drafts_[0];return X!==void 0&&X!==J?(J[DRAFT_STATE].modified_&&(revokeScope(W),die(4)),isDraftable(X)&&(X=finalize(W,X),W.parent_||maybeFreeze(W,X)),W.patches_&&getPlugin("Patches").generateReplacementPatches_(J[DRAFT_STATE].base_,X,W.patches_,W.inversePatches_)):X=finalize(W,J,[]),revokeScope(W),W.patches_&&W.patchListener_(W.patches_,W.inversePatches_),X!==NOTHING?X:void 0}function finalize(X,W,J){if(isFrozen(W))return W;const te=W[DRAFT_STATE];if(!te)return each(W,(re,ne)=>finalizeProperty(X,te,W,re,ne,J)),W;if(te.scope_!==X)return W;if(!te.modified_)return maybeFreeze(X,te.base_,!0),te.base_;if(!te.finalized_){te.finalized_=!0,te.scope_.unfinalizedDrafts_--;const re=te.copy_;let ne=re,oe=!1;te.type_===3&&(ne=new Set(re),re.clear(),oe=!0),each(ne,(de,he)=>finalizeProperty(X,te,re,de,he,J,oe)),maybeFreeze(X,re,!1),J&&X.patches_&&getPlugin("Patches").generatePatches_(te,J,X.patches_,X.inversePatches_)}return te.copy_}function finalizeProperty(X,W,J,te,re,ne,oe){if(isDraft(re)){const de=ne&&W&&W.type_!==3&&!has(W.assigned_,te)?ne.concat(te):void 0,he=finalize(X,re,de);if(set(J,te,he),isDraft(he))X.canAutoFreeze_=!1;else return}else oe&&J.add(re);if(isDraftable(re)&&!isFrozen(re)){if(!X.immer_.autoFreeze_&&X.unfinalizedDrafts_<1)return;finalize(X,re),(!W||!W.scope_.parent_)&&typeof te!="symbol"&&Object.prototype.propertyIsEnumerable.call(J,te)&&maybeFreeze(X,re)}}function maybeFreeze(X,W,J=!1){!X.parent_&&X.immer_.autoFreeze_&&X.canAutoFreeze_&&freeze(W,J)}function createProxyProxy(X,W){const J=Array.isArray(X),te={type_:J?1:0,scope_:W?W.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:W,base_:X,draft_:null,copy_:null,revoke_:null,isManual_:!1};let re=te,ne=objectTraps;J&&(re=[te],ne=arrayTraps);const{revoke:oe,proxy:de}=Proxy.revocable(re,ne);return te.draft_=de,te.revoke_=oe,de}var objectTraps={get(X,W){if(W===DRAFT_STATE)return X;const J=latest(X);if(!has(J,W))return readPropFromProto(X,J,W);const te=J[W];return X.finalized_||!isDraftable(te)?te:te===peek(X.base_,W)?(prepareCopy(X),X.copy_[W]=createProxy(te,X)):te},has(X,W){return W in latest(X)},ownKeys(X){return Reflect.ownKeys(latest(X))},set(X,W,J){const te=getDescriptorFromProto(latest(X),W);if(te!=null&&te.set)return te.set.call(X.draft_,J),!0;if(!X.modified_){const re=peek(latest(X),W),ne=re==null?void 0:re[DRAFT_STATE];if(ne&&ne.base_===J)return X.copy_[W]=J,X.assigned_[W]=!1,!0;if(is(J,re)&&(J!==void 0||has(X.base_,W)))return!0;prepareCopy(X),markChanged(X)}return X.copy_[W]===J&&(J!==void 0||W in X.copy_)||Number.isNaN(J)&&Number.isNaN(X.copy_[W])||(X.copy_[W]=J,X.assigned_[W]=!0),!0},deleteProperty(X,W){return peek(X.base_,W)!==void 0||W in X.base_?(X.assigned_[W]=!1,prepareCopy(X),markChanged(X)):delete X.assigned_[W],X.copy_&&delete X.copy_[W],!0},getOwnPropertyDescriptor(X,W){const J=latest(X),te=Reflect.getOwnPropertyDescriptor(J,W);return te&&{writable:!0,configurable:X.type_!==1||W!=="length",enumerable:te.enumerable,value:J[W]}},defineProperty(){die(11)},getPrototypeOf(X){return getPrototypeOf(X.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(X,W)=>{arrayTraps[X]=function(){return arguments[0]=arguments[0][0],W.apply(this,arguments)}}),arrayTraps.deleteProperty=function(X,W){return arrayTraps.set.call(this,X,W,void 0)},arrayTraps.set=function(X,W,J){return objectTraps.set.call(this,X[0],W,J,X[0])};function peek(X,W){const J=X[DRAFT_STATE];return(J?latest(J):X)[W]}function readPropFromProto(X,W,J){var re;const te=getDescriptorFromProto(W,J);return te?"value"in te?te.value:(re=te.get)==null?void 0:re.call(X.draft_):void 0}function getDescriptorFromProto(X,W){if(!(W in X))return;let J=getPrototypeOf(X);for(;J;){const te=Object.getOwnPropertyDescriptor(J,W);if(te)return te;J=getPrototypeOf(J)}}function markChanged(X){X.modified_||(X.modified_=!0,X.parent_&&markChanged(X.parent_))}function prepareCopy(X){X.copy_||(X.copy_=shallowCopy(X.base_,X.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(X){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(W,J,te)=>{if(typeof W=="function"&&typeof J!="function"){const ne=J;J=W;const oe=this;return function(he=ne,...ue){return oe.produce(he,ce=>J.call(this,ce,...ue))}}typeof J!="function"&&die(6),te!==void 0&&typeof te!="function"&&die(7);let re;if(isDraftable(W)){const ne=enterScope(this),oe=createProxy(W,void 0);let de=!0;try{re=J(oe),de=!1}finally{de?revokeScope(ne):leaveScope(ne)}return usePatchesInScope(ne,te),processResult(re,ne)}else if(!W||typeof W!="object"){if(re=J(W),re===void 0&&(re=W),re===NOTHING&&(re=void 0),this.autoFreeze_&&freeze(re,!0),te){const ne=[],oe=[];getPlugin("Patches").generateReplacementPatches_(W,re,ne,oe),te(ne,oe)}return re}else die(1,W)},this.produceWithPatches=(W,J)=>{if(typeof W=="function")return(oe,...de)=>this.produceWithPatches(oe,he=>W(he,...de));let te,re;return[this.produce(W,J,(oe,de)=>{te=oe,re=de}),te,re]},typeof(X==null?void 0:X.autoFreeze)=="boolean"&&this.setAutoFreeze(X.autoFreeze),typeof(X==null?void 0:X.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(X.useStrictShallowCopy)}createDraft(X){isDraftable(X)||die(8),isDraft(X)&&(X=current(X));const W=enterScope(this),J=createProxy(X,void 0);return J[DRAFT_STATE].isManual_=!0,leaveScope(W),J}finishDraft(X,W){const J=X&&X[DRAFT_STATE];(!J||!J.isManual_)&&die(9);const{scope_:te}=J;return usePatchesInScope(te,W),processResult(void 0,te)}setAutoFreeze(X){this.autoFreeze_=X}setUseStrictShallowCopy(X){this.useStrictShallowCopy_=X}applyPatches(X,W){let J;for(J=W.length-1;J>=0;J--){const re=W[J];if(re.path.length===0&&re.op==="replace"){X=re.value;break}}J>-1&&(W=W.slice(J+1));const te=getPlugin("Patches").applyPatches_;return isDraft(X)?te(X,W):this.produce(X,re=>te(re,W))}};function createProxy(X,W){const J=isMap(X)?getPlugin("MapSet").proxyMap_(X,W):isSet(X)?getPlugin("MapSet").proxySet_(X,W):createProxyProxy(X,W);return(W?W.scope_:getCurrentScope()).drafts_.push(J),J}function current(X){return isDraft(X)||die(10,X),currentImpl(X)}function currentImpl(X){if(!isDraftable(X)||isFrozen(X))return X;const W=X[DRAFT_STATE];let J;if(W){if(!W.modified_)return W.base_;W.finalized_=!0,J=shallowCopy(X,W.scope_.immer_.useStrictShallowCopy_)}else J=shallowCopy(X,!0);return each(J,(te,re)=>{set(J,te,currentImpl(re))}),W&&(W.finalized_=!1),J}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(X,W=`expected a function, instead received ${typeof X}`){if(typeof X!="function")throw new TypeError(W)}function assertIsObject(X,W=`expected an object, instead received ${typeof X}`){if(typeof X!="object")throw new TypeError(W)}function assertIsArrayOfFunctions(X,W="expected all items to be functions, instead received the following types: "){if(!X.every(J=>typeof J=="function")){const J=X.map(te=>typeof te=="function"?`function ${te.name||"unnamed"}()`:typeof te).join(", ");throw new TypeError(`${W}[${J}]`)}}var ensureIsArray=X=>Array.isArray(X)?X:[X];function getDependencies(X){const W=Array.isArray(X[0])?X[0]:X;return assertIsArrayOfFunctions(W,"createSelector expects all input-selectors to be functions, but received the following types: "),W}function collectInputSelectorResults(X,W){const J=[],{length:te}=X;for(let re=0;re<te;re++)J.push(X[re].apply(null,W));return J}var StrongRef=class{constructor(X){this.value=X}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(X,W={}){let J=createCacheNode();const{resultEqualityCheck:te}=W;let re,ne=0;function oe(){var pe;let de=J;const{length:he}=arguments;for(let fe=0,ge=he;fe<ge;fe++){const me=arguments[fe];if(typeof me=="function"||typeof me=="object"&&me!==null){let ve=de.o;ve===null&&(de.o=ve=new WeakMap);const be=ve.get(me);be===void 0?(de=createCacheNode(),ve.set(me,de)):de=be}else{let ve=de.p;ve===null&&(de.p=ve=new Map);const be=ve.get(me);be===void 0?(de=createCacheNode(),ve.set(me,de)):de=be}}const ue=de;let ce;if(de.s===TERMINATED)ce=de.v;else if(ce=X.apply(null,arguments),ne++,te){const fe=((pe=re==null?void 0:re.deref)==null?void 0:pe.call(re))??re;fe!=null&&te(fe,ce)&&(ce=fe,ne!==0&&ne--),re=typeof ce=="object"&&ce!==null||typeof ce=="function"?new Ref(ce):ce}return ue.s=TERMINATED,ue.v=ce,ce}return oe.clearCache=()=>{J=createCacheNode(),oe.resetResultsCount()},oe.resultsCount=()=>ne,oe.resetResultsCount=()=>{ne=0},oe}function createSelectorCreator(X,...W){const J=typeof X=="function"?{memoize:X,memoizeOptions:W}:X,te=(...re)=>{let ne=0,oe=0,de,he={},ue=re.pop();typeof ue=="object"&&(he=ue,ue=re.pop()),assertIsFunction(ue,`createSelector expects an output function after the inputs, but received: [${typeof ue}]`);const ce={...J,...he},{memoize:pe,memoizeOptions:fe=[],argsMemoize:ge=weakMapMemoize,argsMemoizeOptions:me=[],devModeChecks:ve={}}=ce,be=ensureIsArray(fe),ye=ensureIsArray(me),we=getDependencies(re),Se=pe(function(){return ne++,ue.apply(null,arguments)},...be),_e=ge(function(){oe++;const Le=collectInputSelectorResults(we,arguments);return de=Se.apply(null,Le),de},...ye);return Object.assign(_e,{resultFunc:ue,memoizedResultFunc:Se,dependencies:we,dependencyRecomputations:()=>oe,resetDependencyRecomputations:()=>{oe=0},lastResult:()=>de,recomputations:()=>ne,resetRecomputations:()=>{ne=0},memoize:pe,argsMemoize:ge})};return Object.assign(te,{withTypes:()=>te}),te}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((X,W=createSelector)=>{assertIsObject(X,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof X}`);const J=Object.keys(X),te=J.map(ne=>X[ne]);return W(te,(...ne)=>ne.reduce((oe,de,he)=>(oe[J[he]]=de,oe),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(X){return({dispatch:J,getState:te})=>re=>ne=>typeof ne=="function"?ne(J,te,X):re(ne)}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(X,W){function J(...te){if(W){let re=W(...te);if(!re)throw new Error(formatProdErrorMessage(0));return{type:X,payload:re.payload,..."meta"in re&&{meta:re.meta},..."error"in re&&{error:re.error}}}return{type:X,payload:te[0]}}return J.toString=()=>`${X}`,J.type=X,J.match=te=>isAction(te)&&te.type===X,J}var Tuple=class Ar extends Array{constructor(...W){super(...W),Object.setPrototypeOf(this,Ar.prototype)}static get[Symbol.species](){return Ar}concat(...W){return super.concat.apply(this,W)}prepend(...W){return W.length===1&&Array.isArray(W[0])?new Ar(...W[0].concat(this)):new Ar(...W.concat(this))}};function freezeDraftable(X){return isDraftable(X)?produce(X,()=>{}):X}function getOrInsertComputed(X,W,J){return X.has(W)?X.get(W):X.set(W,J(W)).get(W)}function isBoolean(X){return typeof X=="boolean"}var buildGetDefaultMiddleware=()=>function(W){const{thunk:J=!0,immutableCheck:te=!0,serializableCheck:re=!0,actionCreatorCheck:ne=!0}=W??{};let oe=new Tuple;return J&&(isBoolean(J)?oe.push(thunk):oe.push(withExtraArgument(J.extraArgument))),oe},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=X=>W=>{setTimeout(W,X)},autoBatchEnhancer=(X={type:"raf"})=>W=>(...J)=>{const te=W(...J);let re=!0,ne=!1,oe=!1;const de=new Set,he=X.type==="tick"?queueMicrotask:X.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10):X.type==="callback"?X.queueNotification:createQueueWithTimer(X.timeout),ue=()=>{oe=!1,ne&&(ne=!1,de.forEach(ce=>ce()))};return Object.assign({},te,{subscribe(ce){const pe=()=>re&&ce(),fe=te.subscribe(pe);return de.add(ce),()=>{fe(),de.delete(ce)}},dispatch(ce){var pe;try{return re=!((pe=ce==null?void 0:ce.meta)!=null&&pe[SHOULD_AUTOBATCH]),ne=!re,ne&&(oe||(oe=!0,he(ue))),te.dispatch(ce)}finally{re=!0}}})},buildGetDefaultEnhancers=X=>function(J){const{autoBatch:te=!0}=J??{};let re=new Tuple(X);return te&&re.push(autoBatchEnhancer(typeof te=="object"?te:void 0)),re};function configureStore(X){const W=buildGetDefaultMiddleware(),{reducer:J=void 0,middleware:te,devTools:re=!0,preloadedState:ne=void 0,enhancers:oe=void 0}=X||{};let de;if(typeof J=="function")de=J;else if(isPlainObject$1(J))de=combineReducers(J);else throw new Error(formatProdErrorMessage(1));let he;typeof te=="function"?he=te(W):he=W();let ue=compose;re&&(ue=composeWithDevTools({trace:!1,...typeof re=="object"&&re}));const ce=applyMiddleware(...he),pe=buildGetDefaultEnhancers(ce);let fe=typeof oe=="function"?oe(pe):pe();const ge=ue(...fe);return createStore(de,ne,ge)}function executeReducerBuilderCallback(X){const W={},J=[];let te;const re={addCase(ne,oe){const de=typeof ne=="string"?ne:ne.type;if(!de)throw new Error(formatProdErrorMessage(28));if(de in W)throw new Error(formatProdErrorMessage(29));return W[de]=oe,re},addMatcher(ne,oe){return J.push({matcher:ne,reducer:oe}),re},addDefaultCase(ne){return te=ne,re}};return X(re),[W,J,te]}function isStateFunction(X){return typeof X=="function"}function createReducer(X,W){let[J,te,re]=executeReducerBuilderCallback(W),ne;if(isStateFunction(X))ne=()=>freezeDraftable(X());else{const de=freezeDraftable(X);ne=()=>de}function oe(de=ne(),he){let ue=[J[he.type],...te.filter(({matcher:ce})=>ce(he)).map(({reducer:ce})=>ce)];return ue.filter(ce=>!!ce).length===0&&(ue=[re]),ue.reduce((ce,pe)=>{if(pe)if(isDraft(ce)){const ge=pe(ce,he);return ge===void 0?ce:ge}else{if(isDraftable(ce))return produce(ce,fe=>pe(fe,he));{const fe=pe(ce,he);if(fe===void 0){if(ce===null)return ce;throw Error("A case reducer on a non-draftable value must not return undefined")}return fe}}return ce},de)}return oe.getInitialState=ne,oe}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(X,W){return`${X}/${W}`}function buildCreateSlice({creators:X}={}){var J;const W=(J=X==null?void 0:X.asyncThunk)==null?void 0:J[asyncThunkSymbol];return function(re){const{name:ne,reducerPath:oe=ne}=re;if(!ne)throw new Error(formatProdErrorMessage(11));typeof process<"u";const de=(typeof re.reducers=="function"?re.reducers(buildReducerCreators()):re.reducers)||{},he=Object.keys(de),ue={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},ce={addCase(Se,_e){const Ce=typeof Se=="string"?Se:Se.type;if(!Ce)throw new Error(formatProdErrorMessage(12));if(Ce in ue.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return ue.sliceCaseReducersByType[Ce]=_e,ce},addMatcher(Se,_e){return ue.sliceMatchers.push({matcher:Se,reducer:_e}),ce},exposeAction(Se,_e){return ue.actionCreators[Se]=_e,ce},exposeCaseReducer(Se,_e){return ue.sliceCaseReducersByName[Se]=_e,ce}};he.forEach(Se=>{const _e=de[Se],Ce={reducerName:Se,type:getType(ne,Se),createNotation:typeof re.reducers=="function"};isAsyncThunkSliceReducerDefinition(_e)?handleThunkCaseReducerDefinition(Ce,_e,ce,W):handleNormalReducerDefinition(Ce,_e,ce)});function pe(){const[Se={},_e=[],Ce=void 0]=typeof re.extraReducers=="function"?executeReducerBuilderCallback(re.extraReducers):[re.extraReducers],Le={...Se,...ue.sliceCaseReducersByType};return createReducer(re.initialState,Pe=>{for(let Ie in Le)Pe.addCase(Ie,Le[Ie]);for(let Ie of ue.sliceMatchers)Pe.addMatcher(Ie.matcher,Ie.reducer);for(let Ie of _e)Pe.addMatcher(Ie.matcher,Ie.reducer);Ce&&Pe.addDefaultCase(Ce)})}const fe=Se=>Se,ge=new Map;let me;function ve(Se,_e){return me||(me=pe()),me(Se,_e)}function be(){return me||(me=pe()),me.getInitialState()}function ye(Se,_e=!1){function Ce(Pe){let Ie=Pe[Se];return typeof Ie>"u"&&_e&&(Ie=be()),Ie}function Le(Pe=fe){const Ie=getOrInsertComputed(ge,_e,()=>new WeakMap);return getOrInsertComputed(Ie,Pe,()=>{const ze={};for(const[qe,Ae]of Object.entries(re.selectors??{}))ze[qe]=wrapSelector(Ae,Pe,be,_e);return ze})}return{reducerPath:Se,getSelectors:Le,get selectors(){return Le(Ce)},selectSlice:Ce}}const we={name:ne,reducer:ve,actions:ue.actionCreators,caseReducers:ue.sliceCaseReducersByName,getInitialState:be,...ye(oe),injectInto(Se,{reducerPath:_e,...Ce}={}){const Le=_e??oe;return Se.inject({reducerPath:Le,reducer:ve},Ce),{...we,...ye(Le,!0)}}};return we}}function wrapSelector(X,W,J,te){function re(ne,...oe){let de=W(ne);return typeof de>"u"&&te&&(de=J()),X(de,...oe)}return re.unwrapped=X,re}var createSlice=buildCreateSlice();function buildReducerCreators(){function X(W,J){return{_reducerDefinitionType:"asyncThunk",payloadCreator:W,...J}}return X.withTypes=()=>X,{reducer(W){return Object.assign({[W.name](...J){return W(...J)}}[W.name],{_reducerDefinitionType:"reducer"})},preparedReducer(W,J){return{_reducerDefinitionType:"reducerWithPrepare",prepare:W,reducer:J}},asyncThunk:X}}function handleNormalReducerDefinition({type:X,reducerName:W,createNotation:J},te,re){let ne,oe;if("reducer"in te){if(J&&!isCaseReducerWithPrepareDefinition(te))throw new Error(formatProdErrorMessage(17));ne=te.reducer,oe=te.prepare}else ne=te;re.addCase(X,ne).exposeCaseReducer(W,ne).exposeAction(W,oe?createAction(X,oe):createAction(X))}function isAsyncThunkSliceReducerDefinition(X){return X._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(X){return X._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:X,reducerName:W},J,te,re){if(!re)throw new Error(formatProdErrorMessage(18));const{payloadCreator:ne,fulfilled:oe,pending:de,rejected:he,settled:ue,options:ce}=J,pe=re(X,ne,ce);te.exposeAction(W,pe),oe&&te.addCase(pe.fulfilled,oe),de&&te.addCase(pe.pending,de),he&&te.addCase(pe.rejected,he),ue&&te.addMatcher(pe.settled,ue),te.exposeCaseReducer(W,{fulfilled:oe||noop,pending:de||noop,rejected:he||noop,settled:ue||noop})}function noop(){}function formatProdErrorMessage(X){return`Minified Redux Toolkit error #${X}; visit https://redux-toolkit.js.org/Errors?code=${X} for the full message or use the non-minified dev environment for full errors. `}const addItemsToCollection=(X,W,J,te,re)=>{var ne;return X[W]?{...X,[W]:{...X[W],items:[...((ne=X[W])==null?void 0:ne.items)||[],...J]}}:{...X,[W]:{id:W,items:J,componentFactory:te,searchPredicate:re}}},addItemToCollection=(X,W,J,te)=>addItemsToCollection(X,W,[J],te);function addActivityHistoryItemReducer(X,W){const{id:J,item:te,componentFactory:re}=W.payload;X.collections=addItemToCollection(X.collections,J,te,re)}function addActivityHistoryItemsReducer(X,W){const{id:J,items:te,componentFactory:re,searchPredicate:ne}=W.payload;return{...X,collections:addItemsToCollection(X.collections,J,te,re,ne)}}function addBusyHistoryItemReducer(X,W){X.busy.push(W.payload)}function removeBusyHistoryItemReducer(X,W){X.busy=X.busy.filter(J=>J!==W.payload)}function addErrorHistoryItemReducer(X,W){X.error.push(W.payload)}function removeErrorHistoryItemReducer(X,W){X.error=X.error.filter(J=>J!==W.payload)}function removeActivityHistoryItemReducer(X,W){}const updateItemInCollection=(X,W,J)=>{var re,ne;if(!((re=X[W])!=null&&re.items))return X;const te=((ne=X[W])==null?void 0:ne.items)??[];return{...X,[W]:{...X[W],items:te.map(oe=>oe.id===J.id?J:oe)}}};function updateActivityHistoryItemReducer(X,W){const{id:J,item:te}=W.payload;X.collections=updateItemInCollection(X.collections,J,te)}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(X,W){X.searchString=W.payload}class Spec{and(W){return new AndSpec(this,W)}or(W){return new OrSpec(this,W)}not(){return new NotSpec(this)}}class AndSpec extends Spec{constructor(W,J){super(),this.left=W,this.right=J}isSatisfiedBy(W){return this.left.isSatisfiedBy(W)&&this.right.isSatisfiedBy(W)}}class OrSpec extends Spec{constructor(W,J){super(),this.left=W,this.right=J}isSatisfiedBy(W){return this.left.isSatisfiedBy(W)||this.right.isSatisfiedBy(W)}}class NotSpec extends Spec{constructor(W){super(),this.spec=W}isSatisfiedBy(W){return!this.spec.isSatisfiedBy(W)}}class OwnSpec extends Spec{constructor(W){super(),this.context=W}isSatisfiedBy(W){var te;const J=shellApi.globalStateManager.getData("userInfo");return((te=W==null?void 0:W.professional)==null?void 0:te.id)===(J==null?void 0:J.userId)}}class RelevantSpec extends Spec{constructor(W){super(),this.context=W}isSatisfiedBy(W){return(W==null?void 0:W.relevant)??!1}}var ActivityHistoryFilterType=(X=>(X.Switch="switch",X.Checkbox="checkbox",X))(ActivityHistoryFilterType||{}),ActivityHistoryFilterOperation=(X=>(X.And="and",X.Or="or",X))(ActivityHistoryFilterOperation||{});const isCommonFilterGroup=X=>X.id==="common",isNotCommonFilterGroup=X=>!isCommonFilterGroup(X),commonFilters=[{id:"common",title:"Comuns",filters:[{id:"relevant",title:"Veure rellevants",spec:RelevantSpec,enabled:!1,type:ActivityHistoryFilterType.Switch},{id:"own",title:"Veure meus",spec:OwnSpec,enabled:!1,type:ActivityHistoryFilterType.Switch}]}];function setCommonFilterValueReducer(X,W){X.filters=X.filters.map(J=>J.id==="common"?{...J,filters:J.filters.map(te=>te.id===W.payload.id?{...te,enabled:W.payload.enabled}:te)}:J)}function addCustomFiltersReducer(X,W){X.filters=[...X.filters,W.payload]}function setCustomFilterGroupValueReducer(X,W){X.filters=X.filters.map(J=>J.id===W.payload.id?{...J,enabled:W.payload.enabled}:J)}function setCustomFilterValueReducer(X,W){X.filters=X.filters.map(J=>J.id===W.payload.filterGroupId?{...J,filters:J.filters.map(te=>te.id===W.payload.filterId?te.singleOption?setSingleOptionFilterValue(te,W.payload.enabled):setMultipleOptionsFilterValue(te,W.payload):te)}:J)}const setMultipleOptionsFilterValue=(X,W)=>{var re;const{optionId:J,enabled:te}=W;return(re=X.enabledValues)!=null&&re.some(ne=>ne===J)&&te?X:{...X,enabledValues:te?[...X.enabledValues||[],J]:X.enabledValues.filter(ne=>ne!==J)}},setSingleOptionFilterValue=(X,W)=>({...X,enabled:W,enabledValues:W?[!0]:[]}),activityHistoryFiltersSlice=createSlice({name:"activity-history-filters",initialState:{searchString:"",filters:[...commonFilters]},reducers:{setSearchString:setSearchStringReducer,setCommonFilterValue:setCommonFilterValueReducer,addCustomFilters:addCustomFiltersReducer,setCustomFilterGroupValue:setCustomFilterGroupValueReducer,setCustomFilterValue:setCustomFilterValueReducer}}),store=configureStore({reducer:{activityHistoryCollections:activityHistoryCollectionsSlice.reducer,activityHistoryFilters:activityHistoryFiltersSlice.reducer},devTools:{name:"activity-history"},middleware:X=>X({serializableCheck:!1})});store.dispatch,store.getState;const container=new Container,{lazyInject}=getDecorators(container),bindDeps=X=>{container.bind(TYPES.primaryApi).toConstantValue(X),container.bind(TYPES.store).toConstantValue(store)},unbindDeps=()=>{container.unbind(TYPES.primaryApi),container.unbind(TYPES.store)},addAsyncHistoryItemsCommand="inject_async_history_items_request";var __defProp$i=Object.defineProperty,__getOwnPropDesc$i=Object.getOwnPropertyDescriptor,__decorateClass$i=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$i(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$i(W,J,re),re},__decorateParam$3=(X,W)=>(J,te)=>W(J,te,X);let StoreBaseHandler=class{constructor(X){this.store=X}};StoreBaseHandler=__decorateClass$i([injectable(),__decorateParam$3(0,inject(TYPES.store))],StoreBaseHandler);let ApiBaseHandler=class{constructor(X){this.api=X}};ApiBaseHandler=__decorateClass$i([injectable(),__decorateParam$3(0,inject(TYPES.primaryApi))],ApiBaseHandler);let BaseHandler=class{constructor(X,W){this.store=X,this.api=W}};BaseHandler=__decorateClass$i([injectable(),__decorateParam$3(0,inject(TYPES.store)),__decorateParam$3(1,inject(TYPES.primaryApi))],BaseHandler);class AddCustomFiltersCommand{constructor(W){this.payload=W}}const{addBusyHistoryItem,removeBusyHistoryItem}=activityHistoryCollectionsSlice.actions,{addErrorHistoryItem,removeErrorHistoryItem}=activityHistoryCollectionsSlice.actions,addHistoryItemsCommand="add_history_items_request",validateAddAsyncCommand=(X,W)=>{if(X.entityId!==X.filters.id)throw new Error("entityId and filters.id must be the same");if(!X.filters.title)throw new Error("filters.title is required");if(!X.asyncDataProvider)throw new Error("asyncDataProvider is required");if(!X.componentFactory)throw new Error("componentFactory is required");if(!X.errorMessage)throw new Error("errorMessage is required for failure asyncDataProviders")};class InjectAsyncHistoryItemsHandler extends BaseHandler{async handle(W){this.store.dispatch(addBusyHistoryItem(W.entityId));try{const J=await W.asyncDataProvider();validateAddAsyncCommand(W,J),this.api.broker.send(addHistoryItemsCommand,{entityId:W.entityId,items:J,componentFactory:W.componentFactory,searchPredicate:W.searchPredicate}),W.filters&&this.api.broker.send(new AddCustomFiltersCommand(W.filters))}catch(J){this.store.dispatch(addErrorHistoryItem({id:W.entityId,message:W.errorMessage||J.message}))}finally{this.store.dispatch(removeBusyHistoryItem(W.entityId))}}}let request$b;const bootstrapInjectAsyncHistoryItems=X=>{request$b=X.registerRequest(addAsyncHistoryItemsCommand,InjectAsyncHistoryItemsHandler)},teardownInjectAsyncHistoryItems=()=>{request$b==null||request$b.dispose()},isValidActivityHistoryItem=X=>{const W=ce=>typeof ce=="string"&&ce.trim()!=="",J=ce=>typeof ce=="boolean",te=ce=>Array.isArray(ce),re=ce=>ce&&W(ce.id)&&W(ce.name)&&ce.speciality&&W(ce.speciality.id)&&W(ce.speciality.description)&&ce.role&&W(ce.role.id)&&W(ce.role.description),ne=ce=>(ce===null||te(ce))&&(ce===null||ce.every(pe=>pe===null||pe&&W(pe.id)&&W(pe.description))),oe=ce=>ce&&W(ce.id)&&W(ce.description),de=ce=>ce&&W(ce.id)&&W(ce.description),he=ce=>ce&&W(ce.id)&&W(ce.description),ue=ce=>ce&&W(ce.id)&&W(ce.description);return X&&W(X.id)&&W(X.date)&&re(X.professional)&&J(X.relevant)&&ne(X.diagnostics)&&oe(X.center)&&de(X.up)&&he(X.ep)&&ue(X.service)},ensureAreValidActivityHistoryItems=X=>{if(!X.every(isValidActivityHistoryItem))throw console.error("Invalid activity history items",X),new Error("Invalid activity history items");return X},notifyInvalidItem=X=>{console.error("Invalid history item",X)},validateAndFilterItems=X=>{const W=[];for(const J of X)isValidActivityHistoryItem(J)?W.push(J):notifyInvalidItem(J);return W},{addActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class AddHistoryItemHandler extends StoreBaseHandler{async handle(W){try{ensureAreValidActivityHistoryItems([W.item]),this.store.dispatch(addActivityHistoryItem({id:W.entityId,item:W.item}))}catch(J){console.log(J.message)}}}const addHistoryItemCommand="add_history_item_request";let request$a;const bootstrapAddHistoryItem=X=>{request$a=X.registerRequest(addHistoryItemCommand,AddHistoryItemHandler)},teardownAddHistoryItem=()=>{request$a==null||request$a.dispose()};let pluginLocaleManager;const initializeLocalization=async X=>{pluginLocaleManager=await X.createLocaleManager(locales)},translate=X=>pluginLocaleManager?pluginLocaleManager.translate(X):X,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",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ó:"}}}},styles$b=".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$c=X=>{const{arrayElements:W,text:J}=X;return ke$1`
|
|
5786
5783
|
<div class="wrapper">
|
|
5787
5784
|
<!-- <dss-input-dropdown type="default" .elements=${W} selectall="" dropdownplaceholder="Seleccionar"
|
|
5788
5785
|
@onInputDropdownChange=${te=>{X.selectedVisibilityLevelElement=te.detail}}>
|
|
@@ -5790,7 +5787,6 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
5790
5787
|
<input id="dropdown1" slot="input" type="text" class="dss-input" />
|
|
5791
5788
|
</dss-input-dropdown> -->
|
|
5792
5789
|
<div class="content-options">
|
|
5793
|
-
<span>${translate("modal.selectExportOption")}</span>
|
|
5794
5790
|
<div class="selector-options">
|
|
5795
5791
|
<dss-radio-button>
|
|
5796
5792
|
<input slot="input" id="radioButton1" type="radio" name="exportOption" @change=${()=>{X.selectedRadioOption="history"}}>
|
|
@@ -5813,17 +5809,11 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
5813
5809
|
</dss-datepicker-range>
|
|
5814
5810
|
</div>
|
|
5815
5811
|
</div>`:D$1}
|
|
5816
|
-
|
|
5817
|
-
<dss-button @click="${X._cancel}" id="cancel-btn" label="${translate("modal.cancel")}" size="md" variant="secondary"></dss-button>
|
|
5818
|
-
<dss-button @click="${X._accept}" ?disabled="${!X.selectedRadioOption}" id="accept-btn" label="${translate("modal.export")}" size="md"></dss-button>
|
|
5819
|
-
</div>
|
|
5820
|
-
<!-- Button to test
|
|
5821
|
-
<button @click=${()=>X.handleTest()}>Console log</button> -->
|
|
5822
|
-
</div>`};var __defProp$g=Object.defineProperty,__getOwnPropDesc$g=Object.getOwnPropertyDescriptor,__decorateClass$g=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$g(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$g(W,J,re),re};let ExportPdfModal=class extends confirmMixin(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`
|
|
5812
|
+
</div>`};var __defProp$h=Object.defineProperty,__getOwnPropDesc$h=Object.getOwnPropertyDescriptor,__decorateClass$h=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$h(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$h(W,J,re),re};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`
|
|
5823
5813
|
${template$c(this)}
|
|
5824
5814
|
`}static get styles(){return i$w`
|
|
5825
5815
|
${r$J(styles$b)}
|
|
5826
|
-
`}_accept(){this.close({confirmed:!0,outputModel:this.outputModel})}_cancel(){this.close({confirmed:!1,outputModel:this.outputModel})}handleTest(){console.log(this.selectedPeriodDate)}};__decorateClass$g([n$v()],ExportPdfModal.prototype,"selectedRadioOption",2),__decorateClass$g([n$v()],ExportPdfModal.prototype,"text",2),__decorateClass$g([n$v()],ExportPdfModal.prototype,"selectedVisibilityLevelElement",2),__decorateClass$g([n$v()],ExportPdfModal.prototype,"selectedPeriodDate",2),__decorateClass$g([n$v({type:Array})],ExportPdfModal.prototype,"arrayElements",2),ExportPdfModal=__decorateClass$g([t$k("export-pdf-modal")],ExportPdfModal);class ExportToPdfHandler extends ApiBaseHandler{async handle(){try{this.api.interactionManager.customConfirm({title:"Exportar a PDF",componentConstructor:ExportPdfModal,type:"info"})}catch(W){this._notifyError(W.message)}}_notifyError(W){this.api.interactionManager.notify({type:"error",message:W||"actions.delete.error"})}}class ExportPdf{}let request$9;const bootstrapExportPdf=X=>{request$9=X.registerRequest(ExportPdf,ExportToPdfHandler)},teardownExportPdf=()=>{request$9==null||request$9.dispose()},{addActivityHistoryItems}=activityHistoryCollectionsSlice.actions;class AddHistoryItemsHandler extends StoreBaseHandler{async handle(W){try{const J=validateAndFilterItems(W.items);this.store.dispatch(addActivityHistoryItems({id:W.entityId,items:J,componentFactory:W.componentFactory,searchPredicate:W.searchPredicate}))}catch(J){console.log(J.message)}}}let request$8;const bootstrapAddHistoryItems=X=>{request$8=X.registerRequest(addHistoryItemsCommand,AddHistoryItemsHandler)},teardownAddHistoryItems=()=>{request$8==null||request$8.dispose()},{updateActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class UpdateHistoryItemHandler extends StoreBaseHandler{async handle(W){try{ensureAreValidActivityHistoryItems([W.item]),this.store.dispatch(updateActivityHistoryItem({id:W.entityId,item:W.item}))}catch(J){console.log(J.message)}}}const updateHistoryItemCommand="update_history_item_request";let request$7;const bootstrapUpdateHistoryItem=X=>{request$7=X.registerRequest(updateHistoryItemCommand,UpdateHistoryItemHandler)},teardownUpdateHistoryItem=()=>{request$7==null||request$7.dispose()};function connectedProperty(X,W={}){return createConnectedProperty(store)(X,W)}const activityHistorySearchStringSelector=X=>X.activityHistoryFilters.searchString,isAnyCollectionBusySelector=X=>X.activityHistoryCollections.busy.length>0,isAnyCollectionLoadingWithoutAnyLoaded=X=>{const W=Object.values(X.activityHistoryCollections.collections);return!(W!=null&&W.length)&&isAnyCollectionBusySelector(X)},isSomeCollectionLoadedAndOtherLoading=X=>Object.values(X.activityHistoryCollections.collections)&&isAnyCollectionBusySelector(X);function getUniqueObjects(X,W,J){return Array.from(X.map(te=>({id:W.reduce((re,ne)=>re==null?void 0:re[ne],te),title:J.reduce((re,ne)=>re==null?void 0:re[ne],te)})).filter(te=>typeof te.id=="string"&&typeof te.title=="string").reduce((te,re)=>te.set(re.id,re),new Map).values())}class TrueSpec extends Spec{isSatisfiedBy(){return!0}}class CommonFilterSpec extends Spec{constructor(W){super(),this.commonFilters=W}isSatisfiedBy(W){return this.commonFilters.filter(re=>re.enabled).reduce((re,ne)=>re.and(new ne.spec),new TrueSpec).isSatisfiedBy(W)}}class FalseSpec extends Spec{isSatisfiedBy(){return!1}}class PropPathSpec extends Spec{constructor(W,J){super(),this.propPath=W,this.value=J}isSatisfiedBy(W){return this.propPath.reduce((te,re)=>te==null?void 0:te[re],W)===this.value}}class CustomFilterSpec extends Spec{constructor(W){super(),this.filters=W}isSatisfiedBy(W){const J=this.filters.filter(te=>te.enabled);return J.length===0?!0:J.every(te=>{if(!this.belongsToGroup(W,te))return!0;const re=te.filters.filter(ne=>ne.enabled||ne.singleOption);return re.length===0?!0:re.every(ne=>ne.singleOption?ne.enabled?!0:new PropPathSpec(ne.propPathValue,!1).isSatisfiedBy(W):!ne.enabledValues||ne.enabledValues.length===0?!0:ne.enabledValues.reduce((de,he)=>de.or(new PropPathSpec(ne.propPathValue,he)),new FalseSpec).isSatisfiedBy(W))})}belongsToGroup(W,J){return W.type===J.id}}const normalizeStringToNFD=X=>{const W=X.normalize("NFD").replace(/[\u0300-\u036f]/g,"");return W?W.toLocaleLowerCase():X},propContainsString=(X,W)=>{const J=normalizeStringToNFD(X),te=normalizeStringToNFD(W);return J.toString().toLowerCase().indexOf(te)!==-1||J.toString().indexOf(te)!==-1},commonFieldsSearchPredicate=(X,W)=>{var he,ue,ce,pe,fe,ge,me;const J=((he=X.professional)==null?void 0:he.name)&&propContainsString((ue=X.professional)==null?void 0:ue.name,W),te=X.center.description&&propContainsString(X.center.description,W),re=((ce=X.professional)==null?void 0:ce.speciality.description)&&propContainsString((pe=X.professional)==null?void 0:pe.speciality.description,W),ne=((fe=X.professional)==null?void 0:fe.role.description)&&propContainsString((ge=X.professional)==null?void 0:ge.role.description,W),oe=X.service.description&&propContainsString(X.service.description,W),de=(me=X.diagnostics)==null?void 0:me.some(ve=>propContainsString(ve.id,W)||propContainsString(ve.description,W));return J||te||re||ne||oe||de};class SearchStringSpec extends Spec{constructor(W,J){super(),this.searchString=W,this.searchPredicate=J}isSatisfiedBy(W){var re;if(!((re=this.searchString)!=null&&re.trim()))return!0;const J=commonFieldsSearchPredicate(W,this.searchString),te=this.searchPredicate?this.searchPredicate(this.searchString.toLowerCase(),W):!1;return!!(J||te)}}class TypeSpec extends Spec{constructor(W){super(),this.itemType=W}isSatisfiedBy(W){return(W==null?void 0:W.type)===this.itemType}}class ComposedTypeSpec extends Spec{constructor(W){super(),this.filters=W}isSatisfiedBy(W){return this.filters.filter(re=>re.enabled).map(re=>re.id).reduce((re,ne)=>re.or(new TypeSpec(ne)),new FalseSpec).isSatisfiedBy(W)}}const activityHistoryFiltersSelector=X=>X.activityHistoryFilters.filters,activityHistoryCommonFiltersSelector=createSelector(activityHistoryFiltersSelector,X=>{var W;return((W=X.find(isCommonFilterGroup))==null?void 0:W.filters)||[]}),activityHistoryEnabledCommonFiltersSelector=createSelector(activityHistoryCommonFiltersSelector,X=>X.filter(W=>W.enabled)),areCommonFiltersActive=createSelector(activityHistoryEnabledCommonFiltersSelector,X=>!!X.length),activityHistoryCustomFilterGroupsSelector=createSelector(activityHistoryFiltersSelector,X=>X.filter(isNotCommonFilterGroup).sort(sortBySortProperty)),sortBySortProperty=(X,W)=>Number(X.sort)-Number(W.sort),areCustomFiltersActive=createSelector(activityHistoryCustomFilterGroupsSelector,X=>X.some(W=>W.filters.some(J=>{var te;return(te=J.enabledValues)==null?void 0:te.length}))),activeGroupsWithEnabledFilters=createSelector(activityHistoryCustomFilterGroupsSelector,X=>X.filter(W=>W.enabled).map(({id:W,title:J,enabled:te,sort:re,filters:ne})=>({id:W,title:J,enabled:te,sort:re,filters:ne.filter(oe=>{var de;return(de=oe.enabledValues)==null?void 0:de.length})})).filter(W=>W.filters.length>0)),isSameVisit=(X,W)=>{var ne,oe,de,he,ue,ce,pe,fe,ge,me,ve,be,ye,we;const J=((ne=X.professional)==null?void 0:ne.id)===((oe=W.professional)==null?void 0:oe.id)&&((de=X.professional)==null?void 0:de.role.id)===((he=W.professional)==null?void 0:he.role.id)&&((ue=X.professional)==null?void 0:ue.speciality.id)===((ce=W.professional)==null?void 0:ce.speciality.id),te=((pe=X.ep)==null?void 0:pe.id)===((fe=W.ep)==null?void 0:fe.id)&&((ge=X.up)==null?void 0:ge.id)===((me=W.up)==null?void 0:me.id)&&((ve=X.center)==null?void 0:ve.id)===((be=W.center)==null?void 0:be.id)&&((ye=X.service)==null?void 0:ye.id)===((we=W.service)==null?void 0:we.id),re=new Date(X.date).toDateString()===new Date(W.date).toDateString();return J&&te&&re},withinEightHours=(X,W)=>Math.abs(new Date(X).getTime()-new Date(W).getTime())<=8*60*60*1e3,areSameDiagnostics=(X,W)=>{if(X.length!==W.length)return!1;const J=X.map(re=>re.id).sort(),te=W.map(re=>re.id).sort();return J.every((re,ne)=>re===te[ne])},groupActivityHistoryItems=X=>{const W=[];return X==null||X.forEach(J=>{let te=!1;for(const re of W){const ne=re.items[0],oe=re.items[re.items.length-1];if(isSameVisit(ne,J)&&withinEightHours(ne.date,J.date)&&withinEightHours(oe.date,J.date)){re.items.push(J),te=!0;break}}te||W.push({idGroup:Math.random().toString(36).substr(2,9),items:[J]})}),W.forEach(J=>{const te=[],re=[];J.items.forEach(ne=>{var oe;if(((oe=ne.diagnostics)==null?void 0:oe.length)>0){let de=!1;for(const he of te){const ue=he.items[0];if(areSameDiagnostics(ue.diagnostics,ne.diagnostics)){he.items.push(ne),de=!0;break}}de||te.push({idSubGroup:Math.random().toString(36).substr(2,9),items:[ne]})}else re.push(ne)}),J.items=re,J.subGroups=te}),W},sortGroupsByMostRecentDate=X=>{const W=re=>re.reduce((ne,oe)=>{const de=new Date(oe.date);return de>ne?de:ne},new Date(0)),J=re=>re.sort((ne,oe)=>new Date(oe.date)-new Date(ne.date)),te=re=>{let ne=[];return re.items.length>0&&ne.push(W(re.items)),re.subGroups.forEach(oe=>{oe.items.length>0&&ne.push(W(oe.items))}),ne.length>0?new Date(Math.max(...ne)):new Date(0)};return X.forEach(re=>{re.items=J(re.items),re.subGroups.forEach(ne=>{ne.items=J(ne.items)})}),X.sort((re,ne)=>te(ne)-te(re))},activityHistoryCollectionsSelector=X=>X.activityHistoryCollections.collections,mapItemsWithMetadata=(X,W,J,te)=>X.map(re=>({...re,searchPredicate:te,componentFactory:W,type:J})),activityHistoryMappedItems=createSelector(activityHistoryCollectionsSelector,X=>Object.values(X).flatMap(W=>mapItemsWithMetadata(W.items,W.componentFactory,W.id,W.searchPredicate))),customFilterGroupsWithOptionsSelector=createSelector(activityHistoryCustomFilterGroupsSelector,activityHistoryCollectionsSelector,(X,W)=>X.map(te=>{const re=W[te.id];return{...te,filters:te.filters.map(ne=>({...ne,options:(ne.singleOption?[]:getUniqueObjects(re.items,ne.propPathValue,ne.propsPathDescription))||[]}))}})),activityHistoryGroupedItems=createSelector(activityHistoryMappedItems,activityHistorySearchStringSelector,activityHistoryCommonFiltersSelector,activityHistoryCustomFilterGroupsSelector,(X,W,J,te)=>{const re=X.filter(de=>new SearchStringSpec(W,de.searchPredicate).and(new CommonFilterSpec(J)).and(new ComposedTypeSpec(te)).and(new CustomFilterSpec(te)).isSatisfiedBy(de)),ne=groupActivityHistoryItems(re);return sortGroupsByMostRecentDate(ne)}),styles$a=":host{min-height:1px;height:100%}.container{display:flex;flex-direction:column;gap:16px;padding-inline:16px;padding-top:16px;min-height:1px;height:100%;overflow-y:auto;position:relative}.container .visit{display:flex;flex-direction:column;gap:16px;background-color:#fff;border-radius:var(--dss-radius-sm);padding:var(--dss-spacing-sm)}.container .visit .visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.container .visit .visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.container .visit .visit__header .title-date{font-weight:700}.container .visit .visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.container .visit .visit__header .highlight{background-color:#ff0;font-weight:700}.container .visit .visit__items{display:flex;flex-direction:column;gap:16px}.container .visit .visit__items .item{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.container .visit .visit__items .item:last-of-type{border:none}.container .visit .diagnostics{display:flex;flex-direction:column;gap:16px}.container .visit .diagnostics .diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px}.container .visit .diagnostics .diagnostics__items{display:flex;flex-direction:column}.container .visit .diagnostics .diagnostics__items .item{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.container .visit .diagnostics .diagnostics__items .item:last-of-type{border:none}.container .feedback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}",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",template$b=X=>X._hasUpdatedOnce?ke$1`<div class="container">
|
|
5816
|
+
`}handleTest(){console.log(this.selectedPeriodDate)}};__decorateClass$h([n$v()],ExportPdfModal.prototype,"selectedRadioOption",2),__decorateClass$h([n$v()],ExportPdfModal.prototype,"text",2),__decorateClass$h([n$v()],ExportPdfModal.prototype,"selectedVisibilityLevelElement",2),__decorateClass$h([n$v()],ExportPdfModal.prototype,"selectedPeriodDate",2),__decorateClass$h([n$v({type:Array})],ExportPdfModal.prototype,"arrayElements",2),ExportPdfModal=__decorateClass$h([t$k("export-pdf-modal")],ExportPdfModal);class ExportToPdfHandler extends ApiBaseHandler{async handle(){try{this.api.interactionService.confirm(void 0,ExportPdfModal,{title:translate("modal.selectExportOption"),confirmButtonText:"Exportar",cancelButtonText:"Cancelar"})}catch(W){this._notifyError(W.message)}}_notifyError(W){this.api.notificationService.error(W||"actions.delete.error")}}class ExportPdf{}let request$9;const bootstrapExportPdf=X=>{request$9=X.registerRequest(ExportPdf,ExportToPdfHandler)},teardownExportPdf=()=>{request$9==null||request$9.dispose()},{addActivityHistoryItems}=activityHistoryCollectionsSlice.actions;class AddHistoryItemsHandler extends StoreBaseHandler{async handle(W){try{const J=validateAndFilterItems(W.items);this.store.dispatch(addActivityHistoryItems({id:W.entityId,items:J,componentFactory:W.componentFactory,searchPredicate:W.searchPredicate}))}catch(J){console.log(J.message)}}}let request$8;const bootstrapAddHistoryItems=X=>{request$8=X.registerRequest(addHistoryItemsCommand,AddHistoryItemsHandler)},teardownAddHistoryItems=()=>{request$8==null||request$8.dispose()},{updateActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class UpdateHistoryItemHandler extends StoreBaseHandler{async handle(W){try{ensureAreValidActivityHistoryItems([W.item]),this.store.dispatch(updateActivityHistoryItem({id:W.entityId,item:W.item}))}catch(J){console.log(J.message)}}}const updateHistoryItemCommand="update_history_item_request";let request$7;const bootstrapUpdateHistoryItem=X=>{request$7=X.registerRequest(updateHistoryItemCommand,UpdateHistoryItemHandler)},teardownUpdateHistoryItem=()=>{request$7==null||request$7.dispose()};function connectedProperty(X,W={}){return createConnectedProperty(store)(X,W)}const activityHistorySearchStringSelector=X=>X.activityHistoryFilters.searchString,isAnyCollectionBusySelector=X=>X.activityHistoryCollections.busy.length>0,isAnyCollectionLoadingWithoutAnyLoaded=X=>{const W=Object.values(X.activityHistoryCollections.collections);return!(W!=null&&W.length)&&isAnyCollectionBusySelector(X)},isSomeCollectionLoadedAndOtherLoading=X=>Object.values(X.activityHistoryCollections.collections)&&isAnyCollectionBusySelector(X);function getUniqueObjects(X,W,J){return Array.from(X.map(te=>({id:W.reduce((re,ne)=>re==null?void 0:re[ne],te),title:J.reduce((re,ne)=>re==null?void 0:re[ne],te)})).filter(te=>typeof te.id=="string"&&typeof te.title=="string").reduce((te,re)=>te.set(re.id,re),new Map).values())}class TrueSpec extends Spec{isSatisfiedBy(){return!0}}class CommonFilterSpec extends Spec{constructor(W){super(),this.commonFilters=W}isSatisfiedBy(W){return this.commonFilters.filter(re=>re.enabled).reduce((re,ne)=>re.and(new ne.spec),new TrueSpec).isSatisfiedBy(W)}}class FalseSpec extends Spec{isSatisfiedBy(){return!1}}class PropPathSpec extends Spec{constructor(W,J){super(),this.propPath=W,this.value=J}isSatisfiedBy(W){return this.propPath.reduce((te,re)=>te==null?void 0:te[re],W)===this.value}}class CustomFilterSpec extends Spec{constructor(W){super(),this.filters=W}isSatisfiedBy(W){const J=this.filters.filter(te=>te.enabled);return J.length===0?!0:J.every(te=>{if(!this.belongsToGroup(W,te))return!0;const re=te.filters.filter(ne=>ne.enabled||ne.singleOption);return re.length===0?!0:re.every(ne=>ne.singleOption?ne.enabled?!0:new PropPathSpec(ne.propPathValue,!1).isSatisfiedBy(W):!ne.enabledValues||ne.enabledValues.length===0?!0:ne.enabledValues.reduce((de,he)=>de.or(new PropPathSpec(ne.propPathValue,he)),new FalseSpec).isSatisfiedBy(W))})}belongsToGroup(W,J){return W.type===J.id}}const normalizeStringToNFD=X=>{const W=X.normalize("NFD").replace(/[\u0300-\u036f]/g,"");return W?W.toLocaleLowerCase():X},propContainsString=(X,W)=>{const J=normalizeStringToNFD(X),te=normalizeStringToNFD(W);return J.toString().toLowerCase().indexOf(te)!==-1||J.toString().indexOf(te)!==-1},commonFieldsSearchPredicate=(X,W)=>{var he,ue,ce,pe,fe,ge,me;const J=((he=X.professional)==null?void 0:he.name)&&propContainsString((ue=X.professional)==null?void 0:ue.name,W),te=X.center.description&&propContainsString(X.center.description,W),re=((ce=X.professional)==null?void 0:ce.speciality.description)&&propContainsString((pe=X.professional)==null?void 0:pe.speciality.description,W),ne=((fe=X.professional)==null?void 0:fe.role.description)&&propContainsString((ge=X.professional)==null?void 0:ge.role.description,W),oe=X.service.description&&propContainsString(X.service.description,W),de=(me=X.diagnostics)==null?void 0:me.some(ve=>propContainsString(ve.id,W)||propContainsString(ve.description,W));return J||te||re||ne||oe||de};class SearchStringSpec extends Spec{constructor(W,J){super(),this.searchString=W,this.searchPredicate=J}isSatisfiedBy(W){var re;if(!((re=this.searchString)!=null&&re.trim()))return!0;const J=commonFieldsSearchPredicate(W,this.searchString),te=this.searchPredicate?this.searchPredicate(this.searchString.toLowerCase(),W):!1;return!!(J||te)}}class TypeSpec extends Spec{constructor(W){super(),this.itemType=W}isSatisfiedBy(W){return(W==null?void 0:W.type)===this.itemType}}class ComposedTypeSpec extends Spec{constructor(W){super(),this.filters=W}isSatisfiedBy(W){return this.filters.filter(re=>re.enabled).map(re=>re.id).reduce((re,ne)=>re.or(new TypeSpec(ne)),new FalseSpec).isSatisfiedBy(W)}}const activityHistoryFiltersSelector=X=>X.activityHistoryFilters.filters,activityHistoryCommonFiltersSelector=createSelector(activityHistoryFiltersSelector,X=>{var W;return((W=X.find(isCommonFilterGroup))==null?void 0:W.filters)||[]}),activityHistoryEnabledCommonFiltersSelector=createSelector(activityHistoryCommonFiltersSelector,X=>X.filter(W=>W.enabled)),areCommonFiltersActive=createSelector(activityHistoryEnabledCommonFiltersSelector,X=>!!X.length),activityHistoryCustomFilterGroupsSelector=createSelector(activityHistoryFiltersSelector,X=>X.filter(isNotCommonFilterGroup).sort(sortBySortProperty)),sortBySortProperty=(X,W)=>Number(X.sort)-Number(W.sort),areCustomFiltersActive=createSelector(activityHistoryCustomFilterGroupsSelector,X=>X.some(W=>W.filters.some(J=>{var te;return(te=J.enabledValues)==null?void 0:te.length}))),activeGroupsWithEnabledFilters=createSelector(activityHistoryCustomFilterGroupsSelector,X=>X.filter(W=>W.enabled).map(({id:W,title:J,enabled:te,sort:re,filters:ne})=>({id:W,title:J,enabled:te,sort:re,filters:ne.filter(oe=>{var de;return(de=oe.enabledValues)==null?void 0:de.length})})).filter(W=>W.filters.length>0)),isSameVisit=(X,W)=>{var ne,oe,de,he,ue,ce,pe,fe,ge,me,ve,be,ye,we;const J=((ne=X.professional)==null?void 0:ne.id)===((oe=W.professional)==null?void 0:oe.id)&&((de=X.professional)==null?void 0:de.role.id)===((he=W.professional)==null?void 0:he.role.id)&&((ue=X.professional)==null?void 0:ue.speciality.id)===((ce=W.professional)==null?void 0:ce.speciality.id),te=((pe=X.ep)==null?void 0:pe.id)===((fe=W.ep)==null?void 0:fe.id)&&((ge=X.up)==null?void 0:ge.id)===((me=W.up)==null?void 0:me.id)&&((ve=X.center)==null?void 0:ve.id)===((be=W.center)==null?void 0:be.id)&&((ye=X.service)==null?void 0:ye.id)===((we=W.service)==null?void 0:we.id),re=new Date(X.date).toDateString()===new Date(W.date).toDateString();return J&&te&&re},withinEightHours=(X,W)=>Math.abs(new Date(X).getTime()-new Date(W).getTime())<=8*60*60*1e3,areSameDiagnostics=(X,W)=>{if(X.length!==W.length)return!1;const J=X.map(re=>re.id).sort(),te=W.map(re=>re.id).sort();return J.every((re,ne)=>re===te[ne])},groupActivityHistoryItems=X=>{const W=[];return X==null||X.forEach(J=>{let te=!1;for(const re of W){const ne=re.items[0],oe=re.items[re.items.length-1];if(isSameVisit(ne,J)&&withinEightHours(ne.date,J.date)&&withinEightHours(oe.date,J.date)){re.items.push(J),te=!0;break}}te||W.push({idGroup:Math.random().toString(36).substr(2,9),items:[J]})}),W.forEach(J=>{const te=[],re=[];J.items.forEach(ne=>{var oe;if(((oe=ne.diagnostics)==null?void 0:oe.length)>0){let de=!1;for(const he of te){const ue=he.items[0];if(areSameDiagnostics(ue.diagnostics,ne.diagnostics)){he.items.push(ne),de=!0;break}}de||te.push({idSubGroup:Math.random().toString(36).substr(2,9),items:[ne]})}else re.push(ne)}),J.items=re,J.subGroups=te}),W},sortGroupsByMostRecentDate=X=>{const W=re=>re.reduce((ne,oe)=>{const de=new Date(oe.date);return de>ne?de:ne},new Date(0)),J=re=>re.sort((ne,oe)=>new Date(oe.date)-new Date(ne.date)),te=re=>{let ne=[];return re.items.length>0&&ne.push(W(re.items)),re.subGroups.forEach(oe=>{oe.items.length>0&&ne.push(W(oe.items))}),ne.length>0?new Date(Math.max(...ne)):new Date(0)};return X.forEach(re=>{re.items=J(re.items),re.subGroups.forEach(ne=>{ne.items=J(ne.items)})}),X.sort((re,ne)=>te(ne)-te(re))},activityHistoryCollectionsSelector=X=>X.activityHistoryCollections.collections,mapItemsWithMetadata=(X,W,J,te)=>X.map(re=>({...re,searchPredicate:te,componentFactory:W,type:J})),activityHistoryMappedItems=createSelector(activityHistoryCollectionsSelector,X=>Object.values(X).flatMap(W=>mapItemsWithMetadata(W.items,W.componentFactory,W.id,W.searchPredicate))),customFilterGroupsWithOptionsSelector=createSelector(activityHistoryCustomFilterGroupsSelector,activityHistoryCollectionsSelector,(X,W)=>X.map(te=>{const re=W[te.id];return{...te,filters:te.filters.map(ne=>({...ne,options:(ne.singleOption?[]:getUniqueObjects(re.items,ne.propPathValue,ne.propsPathDescription))||[]}))}})),activityHistoryGroupedItems=createSelector(activityHistoryMappedItems,activityHistorySearchStringSelector,activityHistoryCommonFiltersSelector,activityHistoryCustomFilterGroupsSelector,(X,W,J,te)=>{const re=X.filter(de=>new SearchStringSpec(W,de.searchPredicate).and(new CommonFilterSpec(J)).and(new ComposedTypeSpec(te)).and(new CustomFilterSpec(te)).isSatisfiedBy(de)),ne=groupActivityHistoryItems(re);return sortGroupsByMostRecentDate(ne)}),styles$a=":host{min-height:1px;height:100%}.container{display:flex;flex-direction:column;gap:16px;padding-inline:16px;padding-top:16px;min-height:1px;height:100%;overflow-y:auto;position:relative}.container .visit{display:flex;flex-direction:column;gap:16px;background-color:#fff;border-radius:var(--dss-radius-sm);padding:var(--dss-spacing-sm)}.container .visit .visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.container .visit .visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.container .visit .visit__header .title-date{font-weight:700}.container .visit .visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.container .visit .visit__header .highlight{background-color:#ff0;font-weight:700}.container .visit .visit__items{display:flex;flex-direction:column;gap:16px}.container .visit .visit__items .item{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.container .visit .visit__items .item:last-of-type{border:none}.container .visit .diagnostics{display:flex;flex-direction:column;gap:16px}.container .visit .diagnostics .diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px}.container .visit .diagnostics .diagnostics__items{display:flex;flex-direction:column}.container .visit .diagnostics .diagnostics__items .item{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.container .visit .diagnostics .diagnostics__items .item:last-of-type{border:none}.container .feedback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}",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",template$b=X=>X._hasUpdatedOnce?ke$1`<div class="container">
|
|
5827
5817
|
${X.historyGroups&&X.historyGroups.length>0?Qt(X.historyGroups,W=>{var J,te,re,ne;return ke$1`
|
|
5828
5818
|
<div class="visit" data-date=${to(((J=W.items[0])==null?void 0:J.date)||((re=(te=W.subGroups[0])==null?void 0:te.items[0])==null?void 0:re.date))}>
|
|
5829
5819
|
${visitHeaderTemplate(X,W.items[0]||((ne=W.subGroups[0])==null?void 0:ne.items[0]))}
|
|
@@ -5859,16 +5849,16 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
5859
5849
|
|
|
5860
5850
|
${X.diagnostics.filter(W=>W.description!=null&&W.description.trim()!=="").map(W=>{var J;return ke$1`<dss-badge text=${(J=W.description)==null?void 0:J.toUpperCase()} state="info" size="sm" outlined></dss-badge>`})}
|
|
5861
5851
|
</div>
|
|
5862
|
-
`;var __defProp$
|
|
5852
|
+
`;var __defProp$g=Object.defineProperty,__getOwnPropDesc$g=Object.getOwnPropertyDescriptor,__decorateClass$g=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$g(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$g(W,J,re),re};let ActivityHistoryTimeline=class extends h$n{constructor(){super(...arguments),this._hasUpdatedOnce=!1}render(){return ke$1`${template$b(this)}`}firstUpdated(){this._hasUpdatedOnce=!0}async updated(X){var W;X.has("historyGroups")&&((W=this.historyGroups)!=null&&W.length)&&await this.prepareComponents(this.historyGroups)}async prepareComponents(X){for(const W of X){W.items=await Promise.all(W.items.map(async J=>({...J,component:await J.componentFactory({item:J})})));for(const J of W.subGroups)J.items=await Promise.all(J.items.map(async te=>({...te,component:await te.componentFactory({item:te})})))}this.requestUpdate()}highlightMatch(X,W){if(!this.searchString||this.searchString.length<2)return X;const J=new RegExp(`(${W})`,"gi");return X.replace(J,'<span class="highlight">$1</span>')}_scrollIntoDate(X){let W=null,J=Number.POSITIVE_INFINITY;this.shadowRoot.querySelectorAll(".visit").forEach(te=>{const re=new Date(te.dataset.date).getTime(),ne=Math.abs(re-X);ne<J&&(J=ne,W=te)}),W&&W.scrollIntoView({behavior:"smooth",block:"start"})}};ActivityHistoryTimeline.styles=i$w`
|
|
5863
5853
|
${r$J(styles$a)}
|
|
5864
|
-
`,__decorateClass$
|
|
5854
|
+
`,__decorateClass$g([connectedProperty(activityHistoryGroupedItems)],ActivityHistoryTimeline.prototype,"historyGroups",2),__decorateClass$g([connectedProperty(isAnyCollectionLoadingWithoutAnyLoaded)],ActivityHistoryTimeline.prototype,"isAnyCollectionLoadingWithoutAnyLoaded",2),__decorateClass$g([connectedProperty(isSomeCollectionLoadedAndOtherLoading)],ActivityHistoryTimeline.prototype,"isSomeCollectionLoadedAndOtherLoading",2),__decorateClass$g([connectedProperty(activityHistorySearchStringSelector)],ActivityHistoryTimeline.prototype,"searchString",2),ActivityHistoryTimeline=__decorateClass$g([t$k("activity-history-timeline")],ActivityHistoryTimeline);const template$a=X=>!X.areCustomFiltersActive&&!X.areCommonFiltersActive&&X.searchString.length<1?D$1:ke$1`
|
|
5865
5855
|
<div class="active-filters-header">
|
|
5866
5856
|
<active-filters-badges></active-filters-badges>
|
|
5867
5857
|
${nn(X.searchString.length>1,()=>ke$1`<activity-history-search-results searchQuery=${X.searchString}></activity-history-search-results>`)}
|
|
5868
5858
|
</div>
|
|
5869
|
-
`,styles$9=".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$
|
|
5859
|
+
`,styles$9=".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$f=Object.defineProperty,__getOwnPropDesc$f=Object.getOwnPropertyDescriptor,__decorateClass$f=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$f(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$f(W,J,re),re};let ActiveFiltersHeader=class extends h$n{render(){return ke$1`${template$a(this)}`}};ActiveFiltersHeader.styles=i$w`
|
|
5870
5860
|
${r$J(styles$9)}
|
|
5871
|
-
`,__decorateClass$
|
|
5861
|
+
`,__decorateClass$f([connectedProperty(activityHistorySearchStringSelector)],ActiveFiltersHeader.prototype,"searchString",2),__decorateClass$f([connectedProperty(areCustomFiltersActive)],ActiveFiltersHeader.prototype,"areCustomFiltersActive",2),__decorateClass$f([connectedProperty(areCommonFiltersActive)],ActiveFiltersHeader.prototype,"areCommonFiltersActive",2),ActiveFiltersHeader=__decorateClass$f([t$k("active-filters-header")],ActiveFiltersHeader);const styles$8=".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}.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}",filterTemplates={[ActivityHistoryFilterType.Switch]:(X,W,J,te,re)=>ke$1`
|
|
5872
5862
|
<dss-input-switch size="sm" .checked=${te} @onChangeValue=${J} >
|
|
5873
5863
|
<input slot="input" id="switch-${X}" aria-label=${W} type="checkbox" ?disabled=${!re}>
|
|
5874
5864
|
<label slot="label" for="switch-${X}">${W}</label>
|
|
@@ -5897,18 +5887,18 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
5897
5887
|
<div class="custom-filter-content">${Qt(X.options,te=>ke$1`${getFilterTemplate(X,W._onChangeCustomFilterValue.bind(W),J,te)}`)}</div>`}
|
|
5898
5888
|
|
|
5899
5889
|
</div>
|
|
5900
|
-
`;class SetCustomFilterGroup{constructor(W){this.payload=W}}class SetCommonFilter{constructor(W){this.payload=W}}class SetCustomFilterValue{constructor(W){this.payload=W}}var __defProp$
|
|
5890
|
+
`;class SetCustomFilterGroup{constructor(W){this.payload=W}}class SetCommonFilter{constructor(W){this.payload=W}}class SetCustomFilterValue{constructor(W){this.payload=W}}var __defProp$e=Object.defineProperty,__getOwnPropDesc$e=Object.getOwnPropertyDescriptor,__decorateClass$e=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$e(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$e(W,J,re),re};let ActivityHistoryFilters=class extends h$n{constructor(){super(...arguments),this.filtersExpanded=!1}render(){return ke$1`${template$9(this)}`}updated(X){X.has("wrapperMaximized")&&(this.filtersExpanded=this.wrapperMaximized)}_toggleFilters(){this.filtersExpanded=!this.filtersExpanded}_onChangeCommonFilterValue(X,W){this.api.broker.send(new SetCommonFilter({id:X,enabled:W}))}_onChangeCustomFilterGroupValue(X,W){this.api.broker.send(new SetCustomFilterGroup({id:X,enabled:W}))}_onChangeCustomFilterValue(X,W,J,te){this.api.broker.send(new SetCustomFilterValue({filterGroupId:X,filterId:W,optionId:J,enabled:te}))}};ActivityHistoryFilters.styles=i$w`
|
|
5901
5891
|
${r$J(styles$8)}
|
|
5902
|
-
`,__decorateClass$
|
|
5892
|
+
`,__decorateClass$e([connectedProperty(activityHistoryCommonFiltersSelector)],ActivityHistoryFilters.prototype,"commonFilters",2),__decorateClass$e([connectedProperty(customFilterGroupsWithOptionsSelector)],ActivityHistoryFilters.prototype,"customFilterGroups",2),__decorateClass$e([lazyInject(TYPES.primaryApi)],ActivityHistoryFilters.prototype,"api",2),__decorateClass$e([r$G()],ActivityHistoryFilters.prototype,"filtersExpanded",2),__decorateClass$e([n$v({type:Boolean})],ActivityHistoryFilters.prototype,"wrapperMaximized",2),ActivityHistoryFilters=__decorateClass$e([t$k("activity-history-filters")],ActivityHistoryFilters);const{setCommonFilterValue}=activityHistoryFiltersSlice.actions;class SetCommonFilterHandler extends StoreBaseHandler{async handle(W){try{this.store.dispatch(setCommonFilterValue(W.payload))}catch(J){console.log(J.message)}}}let request$6;const bootstrapSetCommonFilter=X=>{request$6=X.registerRequest(SetCommonFilter,SetCommonFilterHandler)},teardownSetCommonFilter=()=>{request$6==null||request$6.dispose()},{addCustomFilters}=activityHistoryFiltersSlice.actions;class AddCustomFiltersHandler extends StoreBaseHandler{async handle(W){try{this.store.dispatch(addCustomFilters(W.payload))}catch(J){console.log(J.message)}}}let request$5;const bootstrapAddCustomFilter=X=>{request$5=X.registerRequest(AddCustomFiltersCommand,AddCustomFiltersHandler)},teardownAddCustomFilter=()=>{request$5==null||request$5.dispose()},{setCustomFilterGroupValue}=activityHistoryFiltersSlice.actions;class SetCustomFilterGroupHandler extends StoreBaseHandler{async handle(W){try{this.store.dispatch(setCustomFilterGroupValue(W.payload))}catch(J){console.log(J.message)}}}let request$4;const bootstrapSetCustomFilterGroup=X=>{request$4=X.registerRequest(SetCustomFilterGroup,SetCustomFilterGroupHandler)},teardownSetCustomFilterGroup=()=>{request$4==null||request$4.dispose()},{setCustomFilterValue}=activityHistoryFiltersSlice.actions;class SetCustomFilterValueHandler extends StoreBaseHandler{async handle(W){try{this.store.dispatch(setCustomFilterValue(W.payload))}catch(J){console.log(J.message)}}}let request$3;const bootstrapSetCustomFilterValue=X=>{request$3=X.registerRequest(SetCustomFilterValue,SetCustomFilterValueHandler)},teardownSetCustomFilterValue=()=>{request$3==null||request$3.dispose()},bootstrapFilters=X=>{bootstrapSetCommonFilter(X),bootstrapAddCustomFilter(X),bootstrapSetCustomFilterGroup(X),bootstrapSetCustomFilterValue(X)},teardownFilters=()=>{teardownSetCommonFilter(),teardownAddCustomFilter(),teardownSetCustomFilterGroup(),teardownSetCustomFilterValue()},events={activityHistorySearched:"activity_history_searched"},{setSearchString}=activityHistoryFiltersSlice.actions;class SearchItemsHandler extends BaseHandler{async handle(W){try{this.store.dispatch(setSearchString(W.searchString)),setTimeout(()=>{this.api.broker.publish(events.activityHistorySearched,{searchQuery:W.searchString})},300)}catch(J){console.log(J.message)}}}class SearchActivityHistoryItems{constructor(W){this.searchString=W,this.searchString=W}}const styles$7=".search-header{color:var(--color-neutral-900);font-weight:600}",template$8=X=>ke$1`<div class="search-header">
|
|
5903
5893
|
${translate("searchBarResults")} “${X.searchQuery}”
|
|
5904
|
-
</div>`;var __defProp$
|
|
5894
|
+
</div>`;var __defProp$d=Object.defineProperty,__getOwnPropDesc$d=Object.getOwnPropertyDescriptor,__decorateClass$d=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$d(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$d(W,J,re),re};let ActivityHistorySearchResults=class extends h$n{constructor(){super(...arguments),this.searchQuery=""}render(){return ke$1`${template$8(this)}`}};ActivityHistorySearchResults.styles=i$w`
|
|
5905
5895
|
${r$J(styles$7)}
|
|
5906
|
-
`,__decorateClass$
|
|
5896
|
+
`,__decorateClass$d([n$v()],ActivityHistorySearchResults.prototype,"searchQuery",2),ActivityHistorySearchResults=__decorateClass$d([t$k("activity-history-search-results")],ActivityHistorySearchResults);const styles$6=".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$7=X=>ke$1`<dss-search-bar dropdownStyle=${"display: none"} @onSearchChange=${X._handleSearchChange} icon="search" inputsize="md" threshold="2" recentsearchestext="" emptydropdowntext="">
|
|
5907
5897
|
<label slot="label" for="searchbar1" aria-hidden="false"></label>
|
|
5908
5898
|
<input slot="input" id="searchbar1" type="text" value=${X.searchQuery} @input=${W=>X._handleSearchChange({detail:[W.target.value]})}>
|
|
5909
|
-
</dss-search-bar>`;var __defProp$
|
|
5899
|
+
</dss-search-bar>`;var __defProp$c=Object.defineProperty,__getOwnPropDesc$c=Object.getOwnPropertyDescriptor,__decorateClass$c=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$c(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$c(W,J,re),re};let ActivityHistorySearchBar=class extends h$n{constructor(){super(...arguments),this.searchQuery=""}render(){return ke$1`${template$7(this)}`}_handleSearchChange(X){const W=X.detail||[],J=W.length>0?W.join(" "):"",te=J.length>1?J:"";this.dispatchEvent(new CustomEvent("onSearchChange",{detail:te}))}};ActivityHistorySearchBar.styles=i$w`
|
|
5910
5900
|
${r$J(styles$6)}
|
|
5911
|
-
`,__decorateClass$
|
|
5901
|
+
`,__decorateClass$c([n$v()],ActivityHistorySearchBar.prototype,"searchQuery",2),ActivityHistorySearchBar=__decorateClass$c([t$k("activity-history-search-bar")],ActivityHistorySearchBar);const formatShowFilterTitle=X=>{const W=X.replace(/veure/gi,"").trim();return W.charAt(0).toUpperCase()+W.slice(1)},normalizeDeletedFilterBooleanValue=X=>X===!0?translate("filters.deleted"):X,MAX_VISIBLE_CHIPS=5,renderChip=(X,W,J,te)=>ke$1`
|
|
5912
5902
|
<dss-chip
|
|
5913
5903
|
label=${J}
|
|
5914
5904
|
size="sm"
|
|
@@ -5945,11 +5935,11 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
5945
5935
|
`:D$1}
|
|
5946
5936
|
</div>
|
|
5947
5937
|
</div>
|
|
5948
|
-
`},styles$5=".filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.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}";var __defProp$
|
|
5938
|
+
`},styles$5=".filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.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}";var __defProp$b=Object.defineProperty,__getOwnPropDesc$b=Object.getOwnPropertyDescriptor,__decorateClass$b=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$b(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$b(W,J,re),re};let ActiveFiltersBadges=class extends h$n{render(){return ke$1`${template$6(this)}`}_onDeleteFilterValue(X,W,J,te){this.api.broker.send(new SetCustomFilterValue({filterGroupId:X,filterId:W,optionId:J,enabled:te}))}_onDeleteCommonFilterValue(X){this.api.broker.send(new SetCommonFilter({id:X,enabled:!1}))}};ActiveFiltersBadges.styles=i$w`
|
|
5949
5939
|
${r$J(styles$5)}
|
|
5950
|
-
`,__decorateClass$
|
|
5940
|
+
`,__decorateClass$b([lazyInject(TYPES.primaryApi)],ActiveFiltersBadges.prototype,"api",2),__decorateClass$b([connectedProperty(activityHistoryEnabledCommonFiltersSelector)],ActiveFiltersBadges.prototype,"enabledCommonFilters",2),__decorateClass$b([connectedProperty(activeGroupsWithEnabledFilters)],ActiveFiltersBadges.prototype,"enabledFilters",2),ActiveFiltersBadges=__decorateClass$b([t$k("active-filters-badges")],ActiveFiltersBadges);let request$2;const bootstrapSearchItems=X=>{request$2=X.registerRequest(SearchActivityHistoryItems,SearchItemsHandler)},teardownSearchItems=()=>{request$2==null||request$2.dispose()},styles$4=".spinner-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}.spinner-full-container{width:100%;height:100%;display:flex;align-items:center;justify-content:center}",template$5=X=>X.isAnyCollectionLoadingWithoutAnyLoaded?ke$1`<div class="spinner-full-container"><dss-spinner></dss-spinner></div>`:X.isSomeCollectionLoadedAndOtherLoading?ke$1`<div class="spinner-container"><dss-spinner size="sm"></dss-spinner><div class="busy-description">${translate("busyEntriesLoading")}</div></div>`:D$1;var __defProp$a=Object.defineProperty,__getOwnPropDesc$a=Object.getOwnPropertyDescriptor,__decorateClass$a=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$a(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$a(W,J,re),re};let ActivityHistoryBusy=class extends h$n{render(){return ke$1`${template$5(this)}`}};ActivityHistoryBusy.styles=i$w`
|
|
5951
5941
|
${r$J(styles$4)}
|
|
5952
|
-
`,__decorateClass$
|
|
5942
|
+
`,__decorateClass$a([connectedProperty(isAnyCollectionLoadingWithoutAnyLoaded)],ActivityHistoryBusy.prototype,"isAnyCollectionLoadingWithoutAnyLoaded",2),__decorateClass$a([connectedProperty(isSomeCollectionLoadedAndOtherLoading)],ActivityHistoryBusy.prototype,"isSomeCollectionLoadedAndOtherLoading",2),ActivityHistoryBusy=__decorateClass$a([t$k("activity-history-busy")],ActivityHistoryBusy);let broker;const bootstrapActivityHistoryItem=X=>{broker=brokerExtensions(X,container),bootstrapInjectAsyncHistoryItems(broker),bootstrapAddHistoryItem(broker),bootstrapAddHistoryItems(broker),bootstrapUpdateHistoryItem(broker),bootstrapExportPdf(broker),bootstrapFilters(broker),bootstrapSearchItems(broker)},teardownActivityHistoryItem=()=>{teardownInjectAsyncHistoryItems(),teardownAddHistoryItem(),teardownAddHistoryItems(),teardownUpdateHistoryItem(),teardownExportPdf(),teardownFilters(),teardownSearchItems()},styles$3=":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)}.container .wrapper .content{width:100%;background:var(--color-neutral-50);border-bottom-right-radius:var(--dss-radius-sm);overflow:hidden}",template$4=X=>ke$1`<div class="container" ?maximized=${X.maximized}>
|
|
5953
5943
|
${X.maximized?ke$1`${headerMaximizedTemplate(X)}`:ke$1`<div class="header">
|
|
5954
5944
|
<div class="header__left">
|
|
5955
5945
|
<div class="title">${translate("activityHistory")}</div>
|
|
@@ -5967,7 +5957,7 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
5967
5957
|
<dss-action-menu position="bottom-start">
|
|
5968
5958
|
<dss-action-menu-item lefticon="view_timeline" label=${translate("actions.cronogram")} @click=${X._raiseEcapCronogramEvent}></dss-action-menu-item>
|
|
5969
5959
|
<dss-action-menu-item lefticon="file_download" label=${translate("actions.exportPdf")} @click=${()=>X.api.broker.send(new ExportPdf)}></dss-action-menu-item>
|
|
5970
|
-
<dss-action-menu-item label=${translate("actions.
|
|
5960
|
+
<dss-action-menu-item lefticon="info" label=${translate("actions.entryLegend")}></dss-action-menu-item>
|
|
5971
5961
|
</dss-action-menu>
|
|
5972
5962
|
</div>
|
|
5973
5963
|
</div>`}
|
|
@@ -6002,18 +5992,20 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
6002
5992
|
</div>
|
|
6003
5993
|
</div>
|
|
6004
5994
|
</div>
|
|
6005
|
-
`;var __defProp$
|
|
5995
|
+
`;var __defProp$9=Object.defineProperty,__getOwnPropDesc$9=Object.getOwnPropertyDescriptor,__decorateClass$9=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$9(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$9(W,J,re),re};let ActivityHistoryMain=class extends PrimariaRegionHost(h$n){constructor(){super(...arguments),this.subscriptions=[],this.maximized=!1,this.searchQuery=""}render(){return ke$1`${template$4(this)}`}connectedCallback(){super.connectedCallback(),this._subscribeEvents()}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribeEvents()}_maximize(){this.maximized=!0}_minimize(){this.maximized=!1}_subscribeEvents(){const X=this.api.broker.subscribe(shellEvents.openClinicalMonitoringRequested,()=>{this.maximized=!1});this.subscriptions.push(X)}_unsubscribeEvents(){this.subscriptions.forEach(X=>X.dispose())}_handleSelectDate(X){const W=parse(X,"dd/MM/yyyy",new Date);this.scrollToClosestDate(W)}_handleSearchChange(X){typeof X.detail=="string"&&(this.searchQuery=X.detail,this.api.broker.send(new SearchActivityHistoryItems(this.searchQuery)))}async _raiseEcapCronogramEvent(){const X=await this.api.broker.send("get_patient_cip");this.api.ecapEventManager.publish("CRONOGRAMA","NO_TANCAR",{CIP:X})}scrollToClosestDate(X){const W=X.getTime();this.shadowRoot.querySelector("activity-history-timeline")._scrollIntoDate(W)}};ActivityHistoryMain.styles=i$w`
|
|
6006
5996
|
${r$J(styles$3)}
|
|
6007
|
-
`,__decorateClass$
|
|
5997
|
+
`,__decorateClass$9([n$v({type:Boolean})],ActivityHistoryMain.prototype,"maximized",2),__decorateClass$9([lazyInject(TYPES.primaryApi)],ActivityHistoryMain.prototype,"api",2),__decorateClass$9([connectedProperty(activityHistoryCollectionsSelector)],ActivityHistoryMain.prototype,"historyItems",2),__decorateClass$9([n$v()],ActivityHistoryMain.prototype,"searchQuery",2),ActivityHistoryMain=__decorateClass$9([t$k("activity-history-main")],ActivityHistoryMain);const registerViews=X=>{X.regionManager.registerView(clinicalMonitoringRegions.content,{id:X.pluginInfo.pluginId,factory:()=>Promise.resolve(new ActivityHistoryMain)})},unregisterViews=()=>{const X=container.get(TYPES.primaryApi);X.regionManager.removeView(clinicalMonitoringRegions.content,X.pluginInfo.pluginId)},bootstrapFeatures$1=X=>{bootstrapActivityHistoryItem(X)},teardownFeatures$1=()=>{teardownActivityHistoryItem()},initialize=async X=>(registerViews(X),await initializeLocalization(X),bindDeps(X),bootstrapFeatures$1(X),Promise.resolve()),dispose=()=>(teardownFeatures$1(),unregisterViews(),unbindDeps(),Promise.resolve());let bootstrappedPlugins=[];const internalPlugins=[{pluginId:"activity-history",importer:()=>Promise.resolve({initialize,dispose})}],bootstrapPlugins=async X=>{const W=internalPlugins.concat(X||[]);bootstrappedPlugins=await v$a(W,primariaApiFactory)},disposePlugins=async()=>Promise.all(bootstrappedPlugins.map(X=>X.dispose())),styles$2=".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}",template$3=X=>{var W,J;return ke$1`
|
|
6008
5998
|
<div class="container">
|
|
6009
5999
|
<div class="title">${translate$1("busyManager.title")}</div>
|
|
6010
6000
|
<div class="list">
|
|
6011
|
-
${(J=(W=X.
|
|
6001
|
+
${(J=(W=X.data)==null?void 0:W.busyTasks)==null?void 0:J.map(te=>ke$1`<div class="plugin-busy-item">${te.taskDescription}</div>`)}
|
|
6012
6002
|
</div>
|
|
6013
6003
|
</div>
|
|
6014
|
-
`};var __defProp$
|
|
6004
|
+
`};var __defProp$8=Object.defineProperty,__getOwnPropDesc$8=Object.getOwnPropertyDescriptor,__decorateClass$8=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$8(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$8(W,J,re),re};let PluginBusyList=class extends h$n{render(){return ke$1`${template$3(this)}`}};PluginBusyList.styles=i$w`
|
|
6015
6005
|
${r$J(styles$2)}
|
|
6016
|
-
`,PluginBusyList=__decorateClass$
|
|
6006
|
+
`,PluginBusyList=__decorateClass$8([t$k("plugin-busy-list")],PluginBusyList);var __defProp$7=Object.defineProperty,__getOwnPropDesc$7=Object.getOwnPropertyDescriptor,__decorateClass$7=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$7(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$7(W,J,re),re},__decorateParam$2=(X,W)=>(J,te)=>W(J,te,X);let ExitShellHandler=class{constructor(X){this.api=X}async handle(X){try{const W=this.api.pluginBusyManager.getBusyPluginTasks();if(W.length>0){const{confirmed:J}=await this.askForClose(W);if(!J)return}disposeShell(),await Promise.race([disposePlugins(),this.timeout(5e3)]),raiseCloseEvent()}catch(W){this.api.notificationService.error(W.message)}}askForClose(X){return this.api.interactionService.confirm({busyTasks:X},PluginBusyList,{title:translate$1("actions.askExit"),state:"error",confirmButtonText:"Sí",cancelButtonText:"No"})}timeout(X){return new Promise(W=>setTimeout(W,X))}};ExitShellHandler=__decorateClass$7([__decorateParam$2(0,inject(TYPES$1.primaryApi))],ExitShellHandler);let request$1;const bootstrapExitShell=()=>{teardownExitShell(),request$1=registerRequest$1(shellApi,container$1)(ExitShell,ExitShellHandler)},teardownExitShell=()=>{request$1==null||request$1.dispose()};var __defProp$6=Object.defineProperty,__getOwnPropDesc$6=Object.getOwnPropertyDescriptor,__decorateClass$6=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$6(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$6(W,J,re),re},__decorateParam$1=(X,W)=>(J,te)=>W(J,te,X);let GetUserInfoBackendAdapter=class{constructor(X){this.api=X}getUserInfo(){var J;const X=jwtDecode(this.api.tokenManager.getToken()),W={userId:X.access_info.trace_user_id,firstName:X.access_info.trace_user_given_name,familyName:X.access_info.trace_user_family_name,lastName:X.access_info.trace_user_last_name,registrationNumber:(J=X.access_info.identifier.find(te=>te.type==="NUMCOL"))==null?void 0:J.value,workCenter:X.access_info.center_code,role:X.access_info.role_type,speciality:X.access_info.professional_category};return Promise.resolve(W)}};GetUserInfoBackendAdapter=__decorateClass$6([injectable(),__decorateParam$1(0,inject(TYPES$1.primaryApi))],GetUserInfoBackendAdapter);var __defProp$5=Object.defineProperty,__getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__decorateClass$5=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$5(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$5(W,J,re),re},__decorateParam=(X,W)=>(J,te)=>W(J,te,X);let GetUserInfoHandler=class{constructor(X,W){this.api=X,this.backendAdapter=W}async handle(X){try{const W=await this.backendAdapter.getUserInfo();return this.api.globalStateManager.setData("userInfo",W),W}catch(W){this.api.notificationService.error(W.message)}}};GetUserInfoHandler=__decorateClass$5([__decorateParam(0,inject(TYPES$1.primaryApi)),__decorateParam(1,inject(GetUserInfoBackendAdapter))],GetUserInfoHandler);class GetUserInfo{}let request;const bootstrapGetUserInfo=()=>{teardownGetUserInfo(),request=registerRequest$1(shellApi,container$1)(GetUserInfo,GetUserInfoHandler),registerDep(GetUserInfoBackendAdapter)},teardownGetUserInfo=()=>{request==null||request.dispose(),unregisterDep(GetUserInfoBackendAdapter)},bootstrapFeatures=X=>{container$1.bind(TYPES$1.primaryApi).toConstantValue(X),bootstrapGetUserInfo(),bootstrapExitShell(),X.broker.send(new GetUserInfo)},teardownFeatures=X=>{teardownGetUserInfo(),teardownExitShell(),container$1.unbindAll(),X.regionManager._destroy(),mediatorSettings.resolver.clear()},disposeShell=()=>{teardownFeatures(shellApi)},raiseCloseEvent=()=>{shellApi.ecapEventManager.publish("CLOSE_FORM","",{})};var __defProp$4=Object.defineProperty,__getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__decorateClass$4=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$4(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$4(W,J,re),re};let PrimariaShell=class extends PrimariaRegionHost(h$n){constructor(){super(...arguments),this.sidebarExpanded=!1,this.viewSelected=shellViews.shell,this.subscriptions=[]}render(){return ke$1`${template$g(this)}`}connectedCallback(){super.connectedCallback(),this._subscribeEvents()}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribeEvents()}firstUpdated(){super.firstUpdated(),setTimeout(()=>{activateDefaultView()},300)}_toggleSidebar(){this.sidebarExpanded=!this.sidebarExpanded}_subscribeEvents(){this.subscriptions.push(shellApi.broker.subscribe(shellEvents.appCrashed,X=>{this._handleError(X)})),this.subscriptions.push(shellApi.broker.subscribe(shellEvents.refreshTokenFailed,X=>{this._handleError({message:translate$1("errors.session")})})),this.subscriptions.push(shellApi.broker.subscribe(shellEvents.mpidHeaderInvalid,X=>{this._handleError({message:translate$1("errors.invalidPatient")})}))}_handleError(X){this.viewSelected=shellViews.error,this.error=X,disposeShell()}_unsubscribeEvents(){this.subscriptions.forEach(X=>X.dispose())}};PrimariaShell.styles=i$w`
|
|
6007
|
+
${r$J(styles$f)}
|
|
6008
|
+
`,__decorateClass$4([s$w({targetId:"menu-region-container",name:shellRegions.navigationMenu})],PrimariaShell.prototype,"navigationMenuRegion",2),__decorateClass$4([s$w({targetId:"main-region-container",name:shellRegions.main})],PrimariaShell.prototype,"mainRegion",2),__decorateClass$4([s$w({targetId:"quick-actions-region-container",name:shellRegions.quickActions})],PrimariaShell.prototype,"quickActionsRegion",2),__decorateClass$4([s$w({targetId:"floating-region-container",name:shellRegions.floating})],PrimariaShell.prototype,"floatingRegion",2),__decorateClass$4([s$w({targetId:"navigation-menu-lower-region-container",name:shellRegions.navigationLowerLeftMenu})],PrimariaShell.prototype,"navLowerLeftMenu",2),__decorateClass$4([r$G()],PrimariaShell.prototype,"sidebarExpanded",2),__decorateClass$4([r$G()],PrimariaShell.prototype,"viewSelected",2),__decorateClass$4([r$G()],PrimariaShell.prototype,"error",2),PrimariaShell=__decorateClass$4([t$k("primaria-shell")],PrimariaShell);const initializeShell=X=>{initializeLocalization$1(shellApi),p$h.registerAdapterFactory("primaria-content-switcher",d$t);const W=new PrimariaShell;X.appendChild(W),registerInternalViews(),bootstrapFeatures(shellApi)};var __defProp$3=Object.defineProperty,__getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$3=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$3(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp$3(W,J,re),re};const isSelected=(X,W,J)=>X[W]===J||Array.from(X.attributes).some(te=>te.name===W&&te.value===J);exports.PrimariaContentSwitcher=class extends h$n{constructor(){super(...arguments),this.animation="fade"}render(){return ke$1` <slot></slot> `}updated(W){this.select()}get items(){return this.children}selectIndex(){return this.selected||this.selected===0?this.attrForSelected?Array.from(this.items).findIndex(W=>isSelected(W,this.attrForSelected,this.selected)):Number.parseInt(this.selected):-1}select(){var W;if(this.items.length){const J=this.selectIndex();if(J!==-1){const te=Array.from(this.items);te.forEach(re=>re.classList.remove("selected")),(W=te[J])==null||W.classList.add("selected")}}}doAnimation(W){switch(this.animation){case"fade":return W==null?void 0:W.classList.add("fade-in");case"slideDown":return W==null?void 0:W.classList.add("slide-down");case"slideLeft":return W==null?void 0:W.classList.add("slide-left");case"slideRight":return W==null?void 0:W.classList.add("slide-right");case"disabled":return;default:return W==null?void 0:W.classList.add("fade-in")}}},exports.PrimariaContentSwitcher.styles=i$w`
|
|
6017
6009
|
:host {
|
|
6018
6010
|
display: flex;
|
|
6019
6011
|
flex: 1;
|
|
@@ -6026,12 +6018,12 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
6026
6018
|
* https://quilljs.com/
|
|
6027
6019
|
* Copyright (c) 2014, Jason Chen
|
|
6028
6020
|
* Copyright (c) 2013, salesforce.com
|
|
6029
|
-
*/(function(X,W){(function(te,re){X.exports=re()})(typeof self<"u"?self:commonjsGlobal,function(){return function(J){var te={};function re(ne){if(te[ne])return te[ne].exports;var oe=te[ne]={i:ne,l:!1,exports:{}};return J[ne].call(oe.exports,oe,oe.exports,re),oe.l=!0,oe.exports}return re.m=J,re.c=te,re.d=function(ne,oe,de){re.o(ne,oe)||Object.defineProperty(ne,oe,{configurable:!1,enumerable:!0,get:de})},re.n=function(ne){var oe=ne&&ne.__esModule?function(){return ne.default}:function(){return ne};return re.d(oe,"a",oe),oe},re.o=function(ne,oe){return Object.prototype.hasOwnProperty.call(ne,oe)},re.p="",re(re.s=110)}([function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(17),oe=re(18),de=re(19),he=re(46),ue=re(47),ce=re(48),pe=re(49),fe=re(50),ge=re(12),me=re(32),ve=re(33),be=re(31),ye=re(1),we={Scope:ye.Scope,create:ye.create,find:ye.find,query:ye.query,register:ye.register,Container:ne.default,Format:oe.default,Leaf:de.default,Embed:pe.default,Scroll:he.default,Block:ce.default,Inline:ue.default,Text:fe.default,Attributor:{Attribute:ge.default,Class:me.default,Style:ve.default,Store:be.default}};te.default=we},function(J,te,re){var ne=this&&this.__extends||function(){var be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,we){ye.__proto__=we}||function(ye,we){for(var Se in we)we.hasOwnProperty(Se)&&(ye[Se]=we[Se])};return function(ye,we){be(ye,we);function Se(){this.constructor=ye}ye.prototype=we===null?Object.create(we):(Se.prototype=we.prototype,new Se)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=function(be){ne(ye,be);function ye(we){var Se=this;return we="[Parchment] "+we,Se=be.call(this,we)||this,Se.message=we,Se.name=Se.constructor.name,Se}return ye}(Error);te.ParchmentError=oe;var de={},he={},ue={},ce={};te.DATA_KEY="__blot";var pe;(function(be){be[be.TYPE=3]="TYPE",be[be.LEVEL=12]="LEVEL",be[be.ATTRIBUTE=13]="ATTRIBUTE",be[be.BLOT=14]="BLOT",be[be.INLINE=7]="INLINE",be[be.BLOCK=11]="BLOCK",be[be.BLOCK_BLOT=10]="BLOCK_BLOT",be[be.INLINE_BLOT=6]="INLINE_BLOT",be[be.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",be[be.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",be[be.ANY=15]="ANY"})(pe=te.Scope||(te.Scope={}));function fe(be,ye){var we=me(be);if(we==null)throw new oe("Unable to create "+be+" blot");var Se=we,_e=be instanceof Node||be.nodeType===Node.TEXT_NODE?be:Se.create(ye);return new Se(_e,ye)}te.create=fe;function ge(be,ye){return ye===void 0&&(ye=!1),be==null?null:be[te.DATA_KEY]!=null?be[te.DATA_KEY].blot:ye?ge(be.parentNode,ye):null}te.find=ge;function me(be,ye){ye===void 0&&(ye=pe.ANY);var we;if(typeof be=="string")we=ce[be]||de[be];else if(be instanceof Text||be.nodeType===Node.TEXT_NODE)we=ce.text;else if(typeof be=="number")be&pe.LEVEL&pe.BLOCK?we=ce.block:be&pe.LEVEL&pe.INLINE&&(we=ce.inline);else if(be instanceof HTMLElement){var Se=(be.getAttribute("class")||"").split(/\s+/);for(var _e in Se)if(we=he[Se[_e]],we)break;we=we||ue[be.tagName]}return we==null?null:ye&pe.LEVEL&we.scope&&ye&pe.TYPE&we.scope?we:null}te.query=me;function ve(){for(var be=[],ye=0;ye<arguments.length;ye++)be[ye]=arguments[ye];if(be.length>1)return be.map(function(_e){return ve(_e)});var we=be[0];if(typeof we.blotName!="string"&&typeof we.attrName!="string")throw new oe("Invalid definition");if(we.blotName==="abstract")throw new oe("Cannot register abstract class");if(ce[we.blotName||we.attrName]=we,typeof we.keyName=="string")de[we.keyName]=we;else if(we.className!=null&&(he[we.className]=we),we.tagName!=null){Array.isArray(we.tagName)?we.tagName=we.tagName.map(function(_e){return _e.toUpperCase()}):we.tagName=we.tagName.toUpperCase();var Se=Array.isArray(we.tagName)?we.tagName:[we.tagName];Se.forEach(function(_e){(ue[_e]==null||we.className==null)&&(ue[_e]=we)})}return we}te.register=ve},function(J,te,re){var ne=re(52),oe=re(11),de=re(3),he=re(20),ue="\0",ce=function(pe){Array.isArray(pe)?this.ops=pe:pe!=null&&Array.isArray(pe.ops)?this.ops=pe.ops:this.ops=[]};ce.prototype.insert=function(pe,fe){var ge={};return pe.length===0?this:(ge.insert=pe,fe!=null&&typeof fe=="object"&&Object.keys(fe).length>0&&(ge.attributes=fe),this.push(ge))},ce.prototype.delete=function(pe){return pe<=0?this:this.push({delete:pe})},ce.prototype.retain=function(pe,fe){if(pe<=0)return this;var ge={retain:pe};return fe!=null&&typeof fe=="object"&&Object.keys(fe).length>0&&(ge.attributes=fe),this.push(ge)},ce.prototype.push=function(pe){var fe=this.ops.length,ge=this.ops[fe-1];if(pe=de(!0,{},pe),typeof ge=="object"){if(typeof pe.delete=="number"&&typeof ge.delete=="number")return this.ops[fe-1]={delete:ge.delete+pe.delete},this;if(typeof ge.delete=="number"&&pe.insert!=null&&(fe-=1,ge=this.ops[fe-1],typeof ge!="object"))return this.ops.unshift(pe),this;if(oe(pe.attributes,ge.attributes)){if(typeof pe.insert=="string"&&typeof ge.insert=="string")return this.ops[fe-1]={insert:ge.insert+pe.insert},typeof pe.attributes=="object"&&(this.ops[fe-1].attributes=pe.attributes),this;if(typeof pe.retain=="number"&&typeof ge.retain=="number")return this.ops[fe-1]={retain:ge.retain+pe.retain},typeof pe.attributes=="object"&&(this.ops[fe-1].attributes=pe.attributes),this}}return fe===this.ops.length?this.ops.push(pe):this.ops.splice(fe,0,pe),this},ce.prototype.chop=function(){var pe=this.ops[this.ops.length-1];return pe&&pe.retain&&!pe.attributes&&this.ops.pop(),this},ce.prototype.filter=function(pe){return this.ops.filter(pe)},ce.prototype.forEach=function(pe){this.ops.forEach(pe)},ce.prototype.map=function(pe){return this.ops.map(pe)},ce.prototype.partition=function(pe){var fe=[],ge=[];return this.forEach(function(me){var ve=pe(me)?fe:ge;ve.push(me)}),[fe,ge]},ce.prototype.reduce=function(pe,fe){return this.ops.reduce(pe,fe)},ce.prototype.changeLength=function(){return this.reduce(function(pe,fe){return fe.insert?pe+he.length(fe):fe.delete?pe-fe.delete:pe},0)},ce.prototype.length=function(){return this.reduce(function(pe,fe){return pe+he.length(fe)},0)},ce.prototype.slice=function(pe,fe){pe=pe||0,typeof fe!="number"&&(fe=1/0);for(var ge=[],me=he.iterator(this.ops),ve=0;ve<fe&&me.hasNext();){var be;ve<pe?be=me.next(pe-ve):(be=me.next(fe-ve),ge.push(be)),ve+=he.length(be)}return new ce(ge)},ce.prototype.compose=function(pe){var fe=he.iterator(this.ops),ge=he.iterator(pe.ops),me=[],ve=ge.peek();if(ve!=null&&typeof ve.retain=="number"&&ve.attributes==null){for(var be=ve.retain;fe.peekType()==="insert"&&fe.peekLength()<=be;)be-=fe.peekLength(),me.push(fe.next());ve.retain-be>0&&ge.next(ve.retain-be)}for(var ye=new ce(me);fe.hasNext()||ge.hasNext();)if(ge.peekType()==="insert")ye.push(ge.next());else if(fe.peekType()==="delete")ye.push(fe.next());else{var we=Math.min(fe.peekLength(),ge.peekLength()),Se=fe.next(we),_e=ge.next(we);if(typeof _e.retain=="number"){var Ce={};typeof Se.retain=="number"?Ce.retain=we:Ce.insert=Se.insert;var Le=he.attributes.compose(Se.attributes,_e.attributes,typeof Se.retain=="number");if(Le&&(Ce.attributes=Le),ye.push(Ce),!ge.hasNext()&&oe(ye.ops[ye.ops.length-1],Ce)){var
|
|
6030
|
-
`;for(var ge=he.iterator(this.ops),me=new ce,ve=0;ge.hasNext();){if(ge.peekType()!=="insert")return;var be=ge.peek(),ye=he.length(be)-ge.peekLength(),we=typeof be.insert=="string"?be.insert.indexOf(fe,ye)-ye:-1;if(we<0)me.push(ge.next());else if(we>0)me.push(ge.next(we));else{if(pe(me,ge.next(1).attributes||{},ve)===!1)return;ve+=1,me=new ce}}me.length()>0&&pe(me,{},ve)},ce.prototype.transform=function(pe,fe){if(fe=!!fe,typeof pe=="number")return this.transformPosition(pe,fe);for(var ge=he.iterator(this.ops),me=he.iterator(pe.ops),ve=new ce;ge.hasNext()||me.hasNext();)if(ge.peekType()==="insert"&&(fe||me.peekType()!=="insert"))ve.retain(he.length(ge.next()));else if(me.peekType()==="insert")ve.push(me.next());else{var be=Math.min(ge.peekLength(),me.peekLength()),ye=ge.next(be),we=me.next(be);if(ye.delete)continue;we.delete?ve.push(we):ve.retain(be,he.attributes.transform(ye.attributes,we.attributes,fe))}return ve.chop()},ce.prototype.transformPosition=function(pe,fe){fe=!!fe;for(var ge=he.iterator(this.ops),me=0;ge.hasNext()&&me<=pe;){var ve=ge.peekLength(),be=ge.peekType();if(ge.next(),be==="delete"){pe-=Math.min(ve,pe-me);continue}else be==="insert"&&(me<pe||!fe)&&(pe+=ve);me+=ve}return pe},J.exports=ce},function(J,te){var re=Object.prototype.hasOwnProperty,ne=Object.prototype.toString,oe=Object.defineProperty,de=Object.getOwnPropertyDescriptor,he=function(ge){return typeof Array.isArray=="function"?Array.isArray(ge):ne.call(ge)==="[object Array]"},ue=function(ge){if(!ge||ne.call(ge)!=="[object Object]")return!1;var me=re.call(ge,"constructor"),ve=ge.constructor&&ge.constructor.prototype&&re.call(ge.constructor.prototype,"isPrototypeOf");if(ge.constructor&&!me&&!ve)return!1;var be;for(be in ge);return typeof be>"u"||re.call(ge,be)},ce=function(ge,me){oe&&me.name==="__proto__"?oe(ge,me.name,{enumerable:!0,configurable:!0,value:me.newValue,writable:!0}):ge[me.name]=me.newValue},pe=function(ge,me){if(me==="__proto__")if(re.call(ge,me)){if(de)return de(ge,me).value}else return;return ge[me]};J.exports=function fe(){var ge,me,ve,be,ye,we,Se=arguments[0],_e=1,Ce=arguments.length,Le=!1;for(typeof Se=="boolean"&&(Le=Se,Se=arguments[1]||{},_e=2),(Se==null||typeof Se!="object"&&typeof Se!="function")&&(Se={});_e<Ce;++_e)if(ge=arguments[_e],ge!=null)for(me in ge)ve=pe(Se,me),be=pe(ge,me),Se!==be&&(Le&&be&&(ue(be)||(ye=he(be)))?(ye?(ye=!1,we=ve&&he(ve)?ve:[]):we=ve&&ue(ve)?ve:{},ce(Se,{name:me,newValue:fe(Le,we,be)})):typeof be<"u"&&ce(Se,{name:me,newValue:be}));return Se}},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.BlockEmbed=te.bubbleFormats=void 0;var ne=function(){function Ae(De,Me){for(var Be=0;Be<Me.length;Be++){var Ve=Me[Be];Ve.enumerable=Ve.enumerable||!1,Ve.configurable=!0,"value"in Ve&&(Ve.writable=!0),Object.defineProperty(De,Ve.key,Ve)}}return function(De,Me,Be){return Me&&Ae(De.prototype,Me),Be&&Ae(De,Be),De}}(),oe=function Ae(De,Me,Be){De===null&&(De=Function.prototype);var Ve=Object.getOwnPropertyDescriptor(De,Me);if(Ve===void 0){var Ye=Object.getPrototypeOf(De);return Ye===null?void 0:Ae(Ye,Me,Be)}else{if("value"in Ve)return Ve.value;var Je=Ve.get;return Je===void 0?void 0:Je.call(Be)}},de=re(3),he=Se(de),ue=re(2),ce=Se(ue),pe=re(0),fe=Se(pe),ge=re(16),me=Se(ge),ve=re(6),be=Se(ve),ye=re(7),we=Se(ye);function Se(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}function _e(Ae,De){if(!(Ae instanceof De))throw new TypeError("Cannot call a class as a function")}function Ce(Ae,De){if(!Ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return De&&(typeof De=="object"||typeof De=="function")?De:Ae}function Le(Ae,De){if(typeof De!="function"&&De!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof De);Ae.prototype=Object.create(De&&De.prototype,{constructor:{value:Ae,enumerable:!1,writable:!0,configurable:!0}}),De&&(Object.setPrototypeOf?Object.setPrototypeOf(Ae,De):Ae.__proto__=De)}var
|
|
6031
|
-
`)){var Je=fe.default.create(ze.blotName);this.parent.insertBefore(Je,Be===0?this:this.next),Je.insertAt(0,Ve.slice(0,-1))}else oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"insertAt",this).call(this,Be,Ve,Ye)}}]),De}(fe.default.Embed);Ie.scope=fe.default.Scope.BLOCK_BLOT;var ze=function(Ae){Le(De,Ae);function De(Me){_e(this,De);var Be=Ce(this,(De.__proto__||Object.getPrototypeOf(De)).call(this,Me));return Be.cache={},Be}return ne(De,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(fe.default.Leaf).reduce(function(Be,Ve){return Ve.length()===0?Be:Be.insert(Ve.value(),
|
|
6032
|
-
`,
|
|
6033
|
-
`),vt=Je.shift();vt.length>0&&(Be<this.length()-1||this.children.tail==null?oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"insertAt",this).call(this,Math.min(Be,this.length()-1),vt):this.children.tail.insertAt(this.children.tail.length(),vt),this.cache={});var Xe=this;Je.reduce(function(Ge,Ne){return Xe=Xe.split(Ge,!0),Xe.insertAt(0,Ne),Ne.length},Be+vt.length)}}},{key:"insertBefore",value:function(Be,Ve){var Ye=this.children.head;oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"insertBefore",this).call(this,Be,Ve),Ye instanceof me.default&&Ye.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"length",this).call(this)+qe),this.cache.length}},{key:"moveChildren",value:function(Be,Ve){oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"moveChildren",this).call(this,Be,Ve),this.cache={}}},{key:"optimize",value:function(Be){oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"optimize",this).call(this,Be),this.cache={}}},{key:"path",value:function(Be){return oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"path",this).call(this,Be,!0)}},{key:"removeChild",value:function(Be){oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"removeChild",this).call(this,Be),this.cache={}}},{key:"split",value:function(Be){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ve&&(Be===0||Be>=this.length()-qe)){var Ye=this.clone();return Be===0?(this.parent.insertBefore(Ye,this),this):(this.parent.insertBefore(Ye,this.next),Ye)}else{var Je=oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"split",this).call(this,Be,Ve);return this.cache={},Je}}}]),De}(fe.default.Block);ze.blotName="block",ze.tagName="P",ze.defaultChild="break",ze.allowedChildren=[be.default,fe.default.Embed,we.default];function Pe(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ae==null||(typeof Ae.formats=="function"&&(De=(0,he.default)(De,Ae.formats())),Ae.parent==null||Ae.parent.blotName=="scroll"||Ae.parent.statics.scope!==Ae.statics.scope)?De:Pe(Ae.parent,De)}te.bubbleFormats=Pe,te.BlockEmbed=Ie,te.default=ze},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.overload=te.expandConfig=void 0;var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Xe){return typeof Xe}:function(Xe){return Xe&&typeof Symbol=="function"&&Xe.constructor===Symbol&&Xe!==Symbol.prototype?"symbol":typeof Xe},oe=function(){function Xe(Ge,Ne){var Ue=[],We=!0,Qe=!1,Ze=void 0;try{for(var je=Ge[Symbol.iterator](),Ke;!(We=(Ke=je.next()).done)&&(Ue.push(Ke.value),!(Ne&&Ue.length===Ne));We=!0);}catch(it){Qe=!0,Ze=it}finally{try{!We&&je.return&&je.return()}finally{if(Qe)throw Ze}}return Ue}return function(Ge,Ne){if(Array.isArray(Ge))return Ge;if(Symbol.iterator in Object(Ge))return Xe(Ge,Ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),de=function(){function Xe(Ge,Ne){for(var Ue=0;Ue<Ne.length;Ue++){var We=Ne[Ue];We.enumerable=We.enumerable||!1,We.configurable=!0,"value"in We&&(We.writable=!0),Object.defineProperty(Ge,We.key,We)}}return function(Ge,Ne,Ue){return Ne&&Xe(Ge.prototype,Ne),Ue&&Xe(Ge,Ue),Ge}}();re(51);var he=re(2),ue=Pe(he),ce=re(14),pe=Pe(ce),fe=re(8),ge=Pe(fe),me=re(9),ve=Pe(me),be=re(0),ye=Pe(be),we=re(15),Se=Pe(we),_e=re(3),Ce=Pe(_e),Le=re(10),qe=Pe(Le),Ie=re(35),ze=Pe(Ie);function Pe(Xe){return Xe&&Xe.__esModule?Xe:{default:Xe}}function Ae(Xe,Ge,Ne){return Ge in Xe?Object.defineProperty(Xe,Ge,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):Xe[Ge]=Ne,Xe}function De(Xe,Ge){if(!(Xe instanceof Ge))throw new TypeError("Cannot call a class as a function")}var Me=(0,qe.default)("quill"),Be=function(){de(Xe,null,[{key:"debug",value:function(Ne){Ne===!0&&(Ne="log"),qe.default.level(Ne)}},{key:"find",value:function(Ne){return Ne.__quill||ye.default.find(Ne)}},{key:"import",value:function(Ne){return this.imports[Ne]==null&&Me.error("Cannot import "+Ne+". Are you sure it was registered?"),this.imports[Ne]}},{key:"register",value:function(Ne,Ue){var We=this,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof Ne!="string"){var Ze=Ne.attrName||Ne.blotName;typeof Ze=="string"?this.register("formats/"+Ze,Ne,Ue):Object.keys(Ne).forEach(function(je){We.register(je,Ne[je],Ue)})}else this.imports[Ne]!=null&&!Qe&&Me.warn("Overwriting "+Ne+" with",Ue),this.imports[Ne]=Ue,(Ne.startsWith("blots/")||Ne.startsWith("formats/"))&&Ue.blotName!=="abstract"?ye.default.register(Ue):Ne.startsWith("modules")&&typeof Ue.register=="function"&&Ue.register()}}]);function Xe(Ge){var Ne=this,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(De(this,Xe),this.options=Ve(Ge,Ue),this.container=this.options.container,this.container==null)return Me.error("Invalid Quill container",Ge);this.options.debug&&Xe.debug(this.options.debug);var We=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new ge.default,this.scroll=ye.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new pe.default(this.scroll),this.selection=new Se.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(ge.default.events.EDITOR_CHANGE,function(Ze){Ze===ge.default.events.TEXT_CHANGE&&Ne.root.classList.toggle("ql-blank",Ne.editor.isBlank())}),this.emitter.on(ge.default.events.SCROLL_UPDATE,function(Ze,je){var Ke=Ne.selection.lastRange,it=Ke&&Ke.length===0?Ke.index:void 0;Ye.call(Ne,function(){return Ne.editor.update(null,je,it)},Ze)});var Qe=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+We+"<p><br></p></div>");this.setContents(Qe),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return de(Xe,[{key:"addContainer",value:function(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof Ne=="string"){var We=Ne;Ne=document.createElement("div"),Ne.classList.add(We)}return this.container.insertBefore(Ne,Ue),Ne}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(Ne,Ue,We){var Qe=this,Ze=Je(Ne,Ue,We),je=oe(Ze,4);return Ne=je[0],Ue=je[1],We=je[3],Ye.call(this,function(){return Qe.editor.deleteText(Ne,Ue)},We,Ne,-1*Ue)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(Ne),this.container.classList.toggle("ql-disabled",!Ne)}},{key:"focus",value:function(){var Ne=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=Ne,this.scrollIntoView()}},{key:"format",value:function(Ne,Ue){var We=this,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge.default.sources.API;return Ye.call(this,function(){var Ze=We.getSelection(!0),je=new ue.default;if(Ze==null)return je;if(ye.default.query(Ne,ye.default.Scope.BLOCK))je=We.editor.formatLine(Ze.index,Ze.length,Ae({},Ne,Ue));else{if(Ze.length===0)return We.selection.format(Ne,Ue),je;je=We.editor.formatText(Ze.index,Ze.length,Ae({},Ne,Ue))}return We.setSelection(Ze,ge.default.sources.SILENT),je},Qe)}},{key:"formatLine",value:function(Ne,Ue,We,Qe,Ze){var je=this,Ke=void 0,it=Je(Ne,Ue,We,Qe,Ze),nt=oe(it,4);return Ne=nt[0],Ue=nt[1],Ke=nt[2],Ze=nt[3],Ye.call(this,function(){return je.editor.formatLine(Ne,Ue,Ke)},Ze,Ne,0)}},{key:"formatText",value:function(Ne,Ue,We,Qe,Ze){var je=this,Ke=void 0,it=Je(Ne,Ue,We,Qe,Ze),nt=oe(it,4);return Ne=nt[0],Ue=nt[1],Ke=nt[2],Ze=nt[3],Ye.call(this,function(){return je.editor.formatText(Ne,Ue,Ke)},Ze,Ne,0)}},{key:"getBounds",value:function(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,We=void 0;typeof Ne=="number"?We=this.selection.getBounds(Ne,Ue):We=this.selection.getBounds(Ne.index,Ne.length);var Qe=this.container.getBoundingClientRect();return{bottom:We.bottom-Qe.top,height:We.height,left:We.left-Qe.left,right:We.right-Qe.left,top:We.top-Qe.top,width:We.width}}},{key:"getContents",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-Ne,We=Je(Ne,Ue),Qe=oe(We,2);return Ne=Qe[0],Ue=Qe[1],this.editor.getContents(Ne,Ue)}},{key:"getFormat",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof Ne=="number"?this.editor.getFormat(Ne,Ue):this.editor.getFormat(Ne.index,Ne.length)}},{key:"getIndex",value:function(Ne){return Ne.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(Ne){return this.scroll.leaf(Ne)}},{key:"getLine",value:function(Ne){return this.scroll.line(Ne)}},{key:"getLines",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof Ne!="number"?this.scroll.lines(Ne.index,Ne.length):this.scroll.lines(Ne,Ue)}},{key:"getModule",value:function(Ne){return this.theme.modules[Ne]}},{key:"getSelection",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Ne&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-Ne,We=Je(Ne,Ue),Qe=oe(We,2);return Ne=Qe[0],Ue=Qe[1],this.editor.getText(Ne,Ue)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(Ne,Ue,We){var Qe=this,Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Xe.sources.API;return Ye.call(this,function(){return Qe.editor.insertEmbed(Ne,Ue,We)},Ze,Ne)}},{key:"insertText",value:function(Ne,Ue,We,Qe,Ze){var je=this,Ke=void 0,it=Je(Ne,0,We,Qe,Ze),nt=oe(it,4);return Ne=nt[0],Ke=nt[2],Ze=nt[3],Ye.call(this,function(){return je.editor.insertText(Ne,Ue,Ke)},Ze,Ne,Ue.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(Ne,Ue,We){this.clipboard.dangerouslyPasteHTML(Ne,Ue,We)}},{key:"removeFormat",value:function(Ne,Ue,We){var Qe=this,Ze=Je(Ne,Ue,We),je=oe(Ze,4);return Ne=je[0],Ue=je[1],We=je[3],Ye.call(this,function(){return Qe.editor.removeFormat(Ne,Ue)},We,Ne)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(Ne){var Ue=this,We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge.default.sources.API;return Ye.call(this,function(){Ne=new ue.default(Ne);var Qe=Ue.getLength(),Ze=Ue.editor.deleteText(0,Qe),je=Ue.editor.applyDelta(Ne),Ke=je.ops[je.ops.length-1];Ke!=null&&typeof Ke.insert=="string"&&Ke.insert[Ke.insert.length-1]===`
|
|
6034
|
-
`&&(Ue.editor.deleteText(Ue.getLength()-1,1),je.delete(1));var it=Ze.compose(je);return it},We)}},{key:"setSelection",value:function(Ne,Ue,We){if(Ne==null)this.selection.setRange(null,Ue||Xe.sources.API);else{var Qe=Je(Ne,Ue,We),Ze=oe(Qe,4);Ne=Ze[0],Ue=Ze[1],We=Ze[3],this.selection.setRange(new we.Range(Ne,Ue),We),We!==ge.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge.default.sources.API,We=new ue.default().insert(Ne);return this.setContents(We,Ue)}},{key:"update",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ge.default.sources.USER,Ue=this.scroll.update(Ne);return this.selection.update(Ne),Ue}},{key:"updateContents",value:function(Ne){var Ue=this,We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge.default.sources.API;return Ye.call(this,function(){return Ne=new ue.default(Ne),Ue.editor.applyDelta(Ne,We)},We,!0)}}]),Xe}();Be.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},Be.events=ge.default.events,Be.sources=ge.default.sources,Be.version="1.3.6",Be.imports={delta:ue.default,parchment:ye.default,"core/module":ve.default,"core/theme":ze.default};function Ve(Xe,Ge){if(Ge=(0,Ce.default)(!0,{container:Xe,modules:{clipboard:!0,keyboard:!0,history:!0}},Ge),!Ge.theme||Ge.theme===Be.DEFAULTS.theme)Ge.theme=ze.default;else if(Ge.theme=Be.import("themes/"+Ge.theme),Ge.theme==null)throw new Error("Invalid theme "+Ge.theme+". Did you register it?");var Ne=(0,Ce.default)(!0,{},Ge.theme.DEFAULTS);[Ne,Ge].forEach(function(Qe){Qe.modules=Qe.modules||{},Object.keys(Qe.modules).forEach(function(Ze){Qe.modules[Ze]===!0&&(Qe.modules[Ze]={})})});var Ue=Object.keys(Ne.modules).concat(Object.keys(Ge.modules)),We=Ue.reduce(function(Qe,Ze){var je=Be.import("modules/"+Ze);return je==null?Me.error("Cannot load "+Ze+" module. Are you sure you registered it?"):Qe[Ze]=je.DEFAULTS||{},Qe},{});return Ge.modules!=null&&Ge.modules.toolbar&&Ge.modules.toolbar.constructor!==Object&&(Ge.modules.toolbar={container:Ge.modules.toolbar}),Ge=(0,Ce.default)(!0,{},Be.DEFAULTS,{modules:We},Ne,Ge),["bounds","container","scrollingContainer"].forEach(function(Qe){typeof Ge[Qe]=="string"&&(Ge[Qe]=document.querySelector(Ge[Qe]))}),Ge.modules=Object.keys(Ge.modules).reduce(function(Qe,Ze){return Ge.modules[Ze]&&(Qe[Ze]=Ge.modules[Ze]),Qe},{}),Ge}function Ye(Xe,Ge,Ne,Ue){if(this.options.strict&&!this.isEnabled()&&Ge===ge.default.sources.USER)return new ue.default;var We=Ne==null?null:this.getSelection(),Qe=this.editor.delta,Ze=Xe();if(We!=null&&(Ne===!0&&(Ne=We.index),Ue==null?We=vt(We,Ze,Ge):Ue!==0&&(We=vt(We,Ne,Ue,Ge)),this.setSelection(We,ge.default.sources.SILENT)),Ze.length()>0){var je,Ke=[ge.default.events.TEXT_CHANGE,Ze,Qe,Ge];if((je=this.emitter).emit.apply(je,[ge.default.events.EDITOR_CHANGE].concat(Ke)),Ge!==ge.default.sources.SILENT){var it;(it=this.emitter).emit.apply(it,Ke)}}return Ze}function Je(Xe,Ge,Ne,Ue,We){var Qe={};return typeof Xe.index=="number"&&typeof Xe.length=="number"?typeof Ge!="number"?(We=Ue,Ue=Ne,Ne=Ge,Ge=Xe.length,Xe=Xe.index):(Ge=Xe.length,Xe=Xe.index):typeof Ge!="number"&&(We=Ue,Ue=Ne,Ne=Ge,Ge=0),(typeof Ne>"u"?"undefined":ne(Ne))==="object"?(Qe=Ne,We=Ue):typeof Ne=="string"&&(Ue!=null?Qe[Ne]=Ue:We=Ne),We=We||ge.default.sources.API,[Xe,Ge,Qe,We]}function vt(Xe,Ge,Ne,Ue){if(Xe==null)return null;var We=void 0,Qe=void 0;if(Ge instanceof ue.default){var Ze=[Xe.index,Xe.index+Xe.length].map(function(nt){return Ge.transformPosition(nt,Ue!==ge.default.sources.USER)}),je=oe(Ze,2);We=je[0],Qe=je[1]}else{var Ke=[Xe.index,Xe.index+Xe.length].map(function(nt){return nt<Ge||nt===Ge&&Ue===ge.default.sources.USER?nt:Ne>=0?nt+Ne:Math.max(Ge,nt+Ne)}),it=oe(Ke,2);We=it[0],Qe=it[1]}return new we.Range(We,Qe-We)}te.expandConfig=Ve,te.overload=Je,te.default=Be},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),oe=function be(ye,we,Se){ye===null&&(ye=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ye,we);if(_e===void 0){var Ce=Object.getPrototypeOf(ye);return Ce===null?void 0:be(Ce,we,Se)}else{if("value"in _e)return _e.value;var Le=_e.get;return Le===void 0?void 0:Le.call(Se)}},de=re(7),he=pe(de),ue=re(0),ce=pe(ue);function pe(be){return be&&be.__esModule?be:{default:be}}function fe(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function ge(be,ye){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:be}function me(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ye):be.__proto__=ye)}var ve=function(be){me(ye,be);function ye(){return fe(this,ye),ge(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return ne(ye,[{key:"formatAt",value:function(Se,_e,Ce,Le){if(ye.compare(this.statics.blotName,Ce)<0&&ce.default.query(Ce,ce.default.Scope.BLOT)){var qe=this.isolate(Se,_e);Le&&qe.wrap(Ce,Le)}else oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"formatAt",this).call(this,Se,_e,Ce,Le)}},{key:"optimize",value:function(Se){if(oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"optimize",this).call(this,Se),this.parent instanceof ye&&ye.compare(this.statics.blotName,this.parent.statics.blotName)>0){var _e=this.parent.isolate(this.offset(),this.length());this.moveChildren(_e),_e.wrap(this)}}}],[{key:"compare",value:function(Se,_e){var Ce=ye.order.indexOf(Se),Le=ye.order.indexOf(_e);return Ce>=0||Le>=0?Ce-Le:Se===_e?0:Se<_e?-1:1}}]),ye}(ce.default.Inline);ve.allowedChildren=[ve,ce.default.Embed,he.default],ve.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],te.default=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(0),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default.Text);te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function Ce(Le,qe){for(var Ie=0;Ie<qe.length;Ie++){var ze=qe[Ie];ze.enumerable=ze.enumerable||!1,ze.configurable=!0,"value"in ze&&(ze.writable=!0),Object.defineProperty(Le,ze.key,ze)}}return function(Le,qe,Ie){return qe&&Ce(Le.prototype,qe),Ie&&Ce(Le,Ie),Le}}(),oe=function Ce(Le,qe,Ie){Le===null&&(Le=Function.prototype);var ze=Object.getOwnPropertyDescriptor(Le,qe);if(ze===void 0){var Pe=Object.getPrototypeOf(Le);return Pe===null?void 0:Ce(Pe,qe,Ie)}else{if("value"in ze)return ze.value;var Ae=ze.get;return Ae===void 0?void 0:Ae.call(Ie)}},de=re(55),he=fe(de),ue=re(10),ce=fe(ue),pe=re(34);function fe(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}function ge(Ce,Le){if(!(Ce instanceof Le))throw new TypeError("Cannot call a class as a function")}function me(Ce,Le){if(!Ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le&&(typeof Le=="object"||typeof Le=="function")?Le:Ce}function ve(Ce,Le){if(typeof Le!="function"&&Le!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Le);Ce.prototype=Object.create(Le&&Le.prototype,{constructor:{value:Ce,enumerable:!1,writable:!0,configurable:!0}}),Le&&(Object.setPrototypeOf?Object.setPrototypeOf(Ce,Le):Ce.__proto__=Le)}var be=(0,ce.default)("quill:events"),ye=[pe.SHADOW_SELECTIONCHANGE,"mousedown","mouseup","click"],we=[],Se="getRootNode"in document;ye.forEach(function(Ce){document.addEventListener(Ce,function(){for(var Le=arguments.length,qe=Array(Le),Ie=0;Ie<Le;Ie++)qe[Ie]=arguments[Ie];we.forEach(function(ze){ze.handleDOM.apply(ze,qe)})})});var _e=function(Ce){ve(Le,Ce);function Le(){ge(this,Le);var qe=me(this,(Le.__proto__||Object.getPrototypeOf(Le)).call(this));return qe.listeners={},we.push(qe),qe.on("error",be.error),qe}return ne(Le,[{key:"emit",value:function(){be.log.apply(be,arguments),oe(Le.prototype.__proto__||Object.getPrototypeOf(Le.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(Ie){for(var ze=arguments.length,Pe=Array(ze>1?ze-1:0),Ae=1;Ae<ze;Ae++)Pe[Ae-1]=arguments[Ae];var De=Ie.composedPath?Ie.composedPath()[0]:Ie.target,Me=function(Ve,Ye){if(!Se||Ye.getRootNode()===document)return Ve.contains(Ye);for(;!Ve.contains(Ye);){var Je=Ye.getRootNode();if(!Je||!Je.host)return!1;Ye=Je.host}return!0};(this.listeners[Ie.type]||[]).forEach(function(Be){var Ve=Be.node,Ye=Be.handler;(De===Ve||Me(Ve,De))&&Ye.apply(void 0,[Ie].concat(Pe))})}},{key:"listenDOM",value:function(Ie,ze,Pe){this.listeners[Ie]||(this.listeners[Ie]=[]),this.listeners[Ie].push({node:ze,handler:Pe})}}]),Le}(he.default);_e.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},_e.sources={API:"api",SILENT:"silent",USER:"user"},te.default=_e},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});function ne(de,he){if(!(de instanceof he))throw new TypeError("Cannot call a class as a function")}var oe=function de(he){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ne(this,de),this.quill=he,this.options=ue};oe.DEFAULTS={},te.default=oe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=["error","warn","log","info"],oe="warn";function de(ue){if(ne.indexOf(ue)<=ne.indexOf(oe)){for(var ce,pe=arguments.length,fe=Array(pe>1?pe-1:0),ge=1;ge<pe;ge++)fe[ge-1]=arguments[ge];(ce=console)[ue].apply(ce,fe)}}function he(ue){return ne.reduce(function(ce,pe){return ce[pe]=de.bind(console,pe,ue),ce},{})}de.level=he.level=function(ue){oe=ue},te.default=he},function(J,te,re){var ne=Array.prototype.slice,oe=re(53),de=re(54),he=J.exports=function(fe,ge,me){return me||(me={}),fe===ge?!0:fe instanceof Date&&ge instanceof Date?fe.getTime()===ge.getTime():!fe||!ge||typeof fe!="object"&&typeof ge!="object"?me.strict?fe===ge:fe==ge:pe(fe,ge,me)};function ue(fe){return fe==null}function ce(fe){return!(!fe||typeof fe!="object"||typeof fe.length!="number"||typeof fe.copy!="function"||typeof fe.slice!="function"||fe.length>0&&typeof fe[0]!="number")}function pe(fe,ge,me){var ve,be;if(ue(fe)||ue(ge)||fe.prototype!==ge.prototype)return!1;if(de(fe))return de(ge)?(fe=ne.call(fe),ge=ne.call(ge),he(fe,ge,me)):!1;if(ce(fe)){if(!ce(ge)||fe.length!==ge.length)return!1;for(ve=0;ve<fe.length;ve++)if(fe[ve]!==ge[ve])return!1;return!0}try{var ye=oe(fe),we=oe(ge)}catch{return!1}if(ye.length!=we.length)return!1;for(ye.sort(),we.sort(),ve=ye.length-1;ve>=0;ve--)if(ye[ve]!=we[ve])return!1;for(ve=ye.length-1;ve>=0;ve--)if(be=ye[ve],!he(fe[be],ge[be],me))return!1;return typeof fe==typeof ge}},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(1),oe=function(){function de(he,ue,ce){ce===void 0&&(ce={}),this.attrName=he,this.keyName=ue;var pe=ne.Scope.TYPE&ne.Scope.ATTRIBUTE;ce.scope!=null?this.scope=ce.scope&ne.Scope.LEVEL|pe:this.scope=ne.Scope.ATTRIBUTE,ce.whitelist!=null&&(this.whitelist=ce.whitelist)}return de.keys=function(he){return[].map.call(he.attributes,function(ue){return ue.name})},de.prototype.add=function(he,ue){return this.canAdd(he,ue)?(he.setAttribute(this.keyName,ue),!0):!1},de.prototype.canAdd=function(he,ue){var ce=ne.query(he,ne.Scope.BLOT&(this.scope|ne.Scope.TYPE));return ce==null?!1:this.whitelist==null?!0:typeof ue=="string"?this.whitelist.indexOf(ue.replace(/["']/g,""))>-1:this.whitelist.indexOf(ue)>-1},de.prototype.remove=function(he){he.removeAttribute(this.keyName)},de.prototype.value=function(he){var ue=he.getAttribute(this.keyName);return this.canAdd(he,ue)&&ue?ue:""},de}();te.default=oe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.Code=void 0;var ne=function(){function Ie(ze,Pe){var Ae=[],De=!0,Me=!1,Be=void 0;try{for(var Ve=ze[Symbol.iterator](),Ye;!(De=(Ye=Ve.next()).done)&&(Ae.push(Ye.value),!(Pe&&Ae.length===Pe));De=!0);}catch(Je){Me=!0,Be=Je}finally{try{!De&&Ve.return&&Ve.return()}finally{if(Me)throw Be}}return Ae}return function(ze,Pe){if(Array.isArray(ze))return ze;if(Symbol.iterator in Object(ze))return Ie(ze,Pe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(){function Ie(ze,Pe){for(var Ae=0;Ae<Pe.length;Ae++){var De=Pe[Ae];De.enumerable=De.enumerable||!1,De.configurable=!0,"value"in De&&(De.writable=!0),Object.defineProperty(ze,De.key,De)}}return function(ze,Pe,Ae){return Pe&&Ie(ze.prototype,Pe),Ae&&Ie(ze,Ae),ze}}(),de=function Ie(ze,Pe,Ae){ze===null&&(ze=Function.prototype);var De=Object.getOwnPropertyDescriptor(ze,Pe);if(De===void 0){var Me=Object.getPrototypeOf(ze);return Me===null?void 0:Ie(Me,Pe,Ae)}else{if("value"in De)return De.value;var Be=De.get;return Be===void 0?void 0:Be.call(Ae)}},he=re(2),ue=we(he),ce=re(0),pe=we(ce),fe=re(4),ge=we(fe),me=re(6),ve=we(me),be=re(7),ye=we(be);function we(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}function Se(Ie,ze){if(!(Ie instanceof ze))throw new TypeError("Cannot call a class as a function")}function _e(Ie,ze){if(!Ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ze&&(typeof ze=="object"||typeof ze=="function")?ze:Ie}function Ce(Ie,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ze);Ie.prototype=Object.create(ze&&ze.prototype,{constructor:{value:Ie,enumerable:!1,writable:!0,configurable:!0}}),ze&&(Object.setPrototypeOf?Object.setPrototypeOf(Ie,ze):Ie.__proto__=ze)}var Le=function(Ie){Ce(ze,Ie);function ze(){return Se(this,ze),_e(this,(ze.__proto__||Object.getPrototypeOf(ze)).apply(this,arguments))}return ze}(ve.default);Le.blotName="code",Le.tagName="CODE";var qe=function(Ie){Ce(ze,Ie);function ze(){return Se(this,ze),_e(this,(ze.__proto__||Object.getPrototypeOf(ze)).apply(this,arguments))}return oe(ze,[{key:"delta",value:function(){var Ae=this,De=this.domNode.textContent;return De.endsWith(`
|
|
6021
|
+
*/(function(X,W){(function(te,re){X.exports=re()})(typeof self<"u"?self:commonjsGlobal,function(){return function(J){var te={};function re(ne){if(te[ne])return te[ne].exports;var oe=te[ne]={i:ne,l:!1,exports:{}};return J[ne].call(oe.exports,oe,oe.exports,re),oe.l=!0,oe.exports}return re.m=J,re.c=te,re.d=function(ne,oe,de){re.o(ne,oe)||Object.defineProperty(ne,oe,{configurable:!1,enumerable:!0,get:de})},re.n=function(ne){var oe=ne&&ne.__esModule?function(){return ne.default}:function(){return ne};return re.d(oe,"a",oe),oe},re.o=function(ne,oe){return Object.prototype.hasOwnProperty.call(ne,oe)},re.p="",re(re.s=110)}([function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(17),oe=re(18),de=re(19),he=re(46),ue=re(47),ce=re(48),pe=re(49),fe=re(50),ge=re(12),me=re(32),ve=re(33),be=re(31),ye=re(1),we={Scope:ye.Scope,create:ye.create,find:ye.find,query:ye.query,register:ye.register,Container:ne.default,Format:oe.default,Leaf:de.default,Embed:pe.default,Scroll:he.default,Block:ce.default,Inline:ue.default,Text:fe.default,Attributor:{Attribute:ge.default,Class:me.default,Style:ve.default,Store:be.default}};te.default=we},function(J,te,re){var ne=this&&this.__extends||function(){var be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,we){ye.__proto__=we}||function(ye,we){for(var Se in we)we.hasOwnProperty(Se)&&(ye[Se]=we[Se])};return function(ye,we){be(ye,we);function Se(){this.constructor=ye}ye.prototype=we===null?Object.create(we):(Se.prototype=we.prototype,new Se)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=function(be){ne(ye,be);function ye(we){var Se=this;return we="[Parchment] "+we,Se=be.call(this,we)||this,Se.message=we,Se.name=Se.constructor.name,Se}return ye}(Error);te.ParchmentError=oe;var de={},he={},ue={},ce={};te.DATA_KEY="__blot";var pe;(function(be){be[be.TYPE=3]="TYPE",be[be.LEVEL=12]="LEVEL",be[be.ATTRIBUTE=13]="ATTRIBUTE",be[be.BLOT=14]="BLOT",be[be.INLINE=7]="INLINE",be[be.BLOCK=11]="BLOCK",be[be.BLOCK_BLOT=10]="BLOCK_BLOT",be[be.INLINE_BLOT=6]="INLINE_BLOT",be[be.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",be[be.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",be[be.ANY=15]="ANY"})(pe=te.Scope||(te.Scope={}));function fe(be,ye){var we=me(be);if(we==null)throw new oe("Unable to create "+be+" blot");var Se=we,_e=be instanceof Node||be.nodeType===Node.TEXT_NODE?be:Se.create(ye);return new Se(_e,ye)}te.create=fe;function ge(be,ye){return ye===void 0&&(ye=!1),be==null?null:be[te.DATA_KEY]!=null?be[te.DATA_KEY].blot:ye?ge(be.parentNode,ye):null}te.find=ge;function me(be,ye){ye===void 0&&(ye=pe.ANY);var we;if(typeof be=="string")we=ce[be]||de[be];else if(be instanceof Text||be.nodeType===Node.TEXT_NODE)we=ce.text;else if(typeof be=="number")be&pe.LEVEL&pe.BLOCK?we=ce.block:be&pe.LEVEL&pe.INLINE&&(we=ce.inline);else if(be instanceof HTMLElement){var Se=(be.getAttribute("class")||"").split(/\s+/);for(var _e in Se)if(we=he[Se[_e]],we)break;we=we||ue[be.tagName]}return we==null?null:ye&pe.LEVEL&we.scope&&ye&pe.TYPE&we.scope?we:null}te.query=me;function ve(){for(var be=[],ye=0;ye<arguments.length;ye++)be[ye]=arguments[ye];if(be.length>1)return be.map(function(_e){return ve(_e)});var we=be[0];if(typeof we.blotName!="string"&&typeof we.attrName!="string")throw new oe("Invalid definition");if(we.blotName==="abstract")throw new oe("Cannot register abstract class");if(ce[we.blotName||we.attrName]=we,typeof we.keyName=="string")de[we.keyName]=we;else if(we.className!=null&&(he[we.className]=we),we.tagName!=null){Array.isArray(we.tagName)?we.tagName=we.tagName.map(function(_e){return _e.toUpperCase()}):we.tagName=we.tagName.toUpperCase();var Se=Array.isArray(we.tagName)?we.tagName:[we.tagName];Se.forEach(function(_e){(ue[_e]==null||we.className==null)&&(ue[_e]=we)})}return we}te.register=ve},function(J,te,re){var ne=re(52),oe=re(11),de=re(3),he=re(20),ue="\0",ce=function(pe){Array.isArray(pe)?this.ops=pe:pe!=null&&Array.isArray(pe.ops)?this.ops=pe.ops:this.ops=[]};ce.prototype.insert=function(pe,fe){var ge={};return pe.length===0?this:(ge.insert=pe,fe!=null&&typeof fe=="object"&&Object.keys(fe).length>0&&(ge.attributes=fe),this.push(ge))},ce.prototype.delete=function(pe){return pe<=0?this:this.push({delete:pe})},ce.prototype.retain=function(pe,fe){if(pe<=0)return this;var ge={retain:pe};return fe!=null&&typeof fe=="object"&&Object.keys(fe).length>0&&(ge.attributes=fe),this.push(ge)},ce.prototype.push=function(pe){var fe=this.ops.length,ge=this.ops[fe-1];if(pe=de(!0,{},pe),typeof ge=="object"){if(typeof pe.delete=="number"&&typeof ge.delete=="number")return this.ops[fe-1]={delete:ge.delete+pe.delete},this;if(typeof ge.delete=="number"&&pe.insert!=null&&(fe-=1,ge=this.ops[fe-1],typeof ge!="object"))return this.ops.unshift(pe),this;if(oe(pe.attributes,ge.attributes)){if(typeof pe.insert=="string"&&typeof ge.insert=="string")return this.ops[fe-1]={insert:ge.insert+pe.insert},typeof pe.attributes=="object"&&(this.ops[fe-1].attributes=pe.attributes),this;if(typeof pe.retain=="number"&&typeof ge.retain=="number")return this.ops[fe-1]={retain:ge.retain+pe.retain},typeof pe.attributes=="object"&&(this.ops[fe-1].attributes=pe.attributes),this}}return fe===this.ops.length?this.ops.push(pe):this.ops.splice(fe,0,pe),this},ce.prototype.chop=function(){var pe=this.ops[this.ops.length-1];return pe&&pe.retain&&!pe.attributes&&this.ops.pop(),this},ce.prototype.filter=function(pe){return this.ops.filter(pe)},ce.prototype.forEach=function(pe){this.ops.forEach(pe)},ce.prototype.map=function(pe){return this.ops.map(pe)},ce.prototype.partition=function(pe){var fe=[],ge=[];return this.forEach(function(me){var ve=pe(me)?fe:ge;ve.push(me)}),[fe,ge]},ce.prototype.reduce=function(pe,fe){return this.ops.reduce(pe,fe)},ce.prototype.changeLength=function(){return this.reduce(function(pe,fe){return fe.insert?pe+he.length(fe):fe.delete?pe-fe.delete:pe},0)},ce.prototype.length=function(){return this.reduce(function(pe,fe){return pe+he.length(fe)},0)},ce.prototype.slice=function(pe,fe){pe=pe||0,typeof fe!="number"&&(fe=1/0);for(var ge=[],me=he.iterator(this.ops),ve=0;ve<fe&&me.hasNext();){var be;ve<pe?be=me.next(pe-ve):(be=me.next(fe-ve),ge.push(be)),ve+=he.length(be)}return new ce(ge)},ce.prototype.compose=function(pe){var fe=he.iterator(this.ops),ge=he.iterator(pe.ops),me=[],ve=ge.peek();if(ve!=null&&typeof ve.retain=="number"&&ve.attributes==null){for(var be=ve.retain;fe.peekType()==="insert"&&fe.peekLength()<=be;)be-=fe.peekLength(),me.push(fe.next());ve.retain-be>0&&ge.next(ve.retain-be)}for(var ye=new ce(me);fe.hasNext()||ge.hasNext();)if(ge.peekType()==="insert")ye.push(ge.next());else if(fe.peekType()==="delete")ye.push(fe.next());else{var we=Math.min(fe.peekLength(),ge.peekLength()),Se=fe.next(we),_e=ge.next(we);if(typeof _e.retain=="number"){var Ce={};typeof Se.retain=="number"?Ce.retain=we:Ce.insert=Se.insert;var Le=he.attributes.compose(Se.attributes,_e.attributes,typeof Se.retain=="number");if(Le&&(Ce.attributes=Le),ye.push(Ce),!ge.hasNext()&&oe(ye.ops[ye.ops.length-1],Ce)){var Pe=new ce(fe.rest());return ye.concat(Pe).chop()}}else typeof _e.delete=="number"&&typeof Se.retain=="number"&&ye.push(_e)}return ye.chop()},ce.prototype.concat=function(pe){var fe=new ce(this.ops.slice());return pe.ops.length>0&&(fe.push(pe.ops[0]),fe.ops=fe.ops.concat(pe.ops.slice(1))),fe},ce.prototype.diff=function(pe,fe){if(this.ops===pe.ops)return new ce;var ge=[this,pe].map(function(we){return we.map(function(Se){if(Se.insert!=null)return typeof Se.insert=="string"?Se.insert:ue;var _e=we===pe?"on":"with";throw new Error("diff() called "+_e+" non-document")}).join("")}),me=new ce,ve=ne(ge[0],ge[1],fe),be=he.iterator(this.ops),ye=he.iterator(pe.ops);return ve.forEach(function(we){for(var Se=we[1].length;Se>0;){var _e=0;switch(we[0]){case ne.INSERT:_e=Math.min(ye.peekLength(),Se),me.push(ye.next(_e));break;case ne.DELETE:_e=Math.min(Se,be.peekLength()),be.next(_e),me.delete(_e);break;case ne.EQUAL:_e=Math.min(be.peekLength(),ye.peekLength(),Se);var Ce=be.next(_e),Le=ye.next(_e);oe(Ce.insert,Le.insert)?me.retain(_e,he.attributes.diff(Ce.attributes,Le.attributes)):me.push(Le).delete(_e);break}Se-=_e}}),me.chop()},ce.prototype.eachLine=function(pe,fe){fe=fe||`
|
|
6022
|
+
`;for(var ge=he.iterator(this.ops),me=new ce,ve=0;ge.hasNext();){if(ge.peekType()!=="insert")return;var be=ge.peek(),ye=he.length(be)-ge.peekLength(),we=typeof be.insert=="string"?be.insert.indexOf(fe,ye)-ye:-1;if(we<0)me.push(ge.next());else if(we>0)me.push(ge.next(we));else{if(pe(me,ge.next(1).attributes||{},ve)===!1)return;ve+=1,me=new ce}}me.length()>0&&pe(me,{},ve)},ce.prototype.transform=function(pe,fe){if(fe=!!fe,typeof pe=="number")return this.transformPosition(pe,fe);for(var ge=he.iterator(this.ops),me=he.iterator(pe.ops),ve=new ce;ge.hasNext()||me.hasNext();)if(ge.peekType()==="insert"&&(fe||me.peekType()!=="insert"))ve.retain(he.length(ge.next()));else if(me.peekType()==="insert")ve.push(me.next());else{var be=Math.min(ge.peekLength(),me.peekLength()),ye=ge.next(be),we=me.next(be);if(ye.delete)continue;we.delete?ve.push(we):ve.retain(be,he.attributes.transform(ye.attributes,we.attributes,fe))}return ve.chop()},ce.prototype.transformPosition=function(pe,fe){fe=!!fe;for(var ge=he.iterator(this.ops),me=0;ge.hasNext()&&me<=pe;){var ve=ge.peekLength(),be=ge.peekType();if(ge.next(),be==="delete"){pe-=Math.min(ve,pe-me);continue}else be==="insert"&&(me<pe||!fe)&&(pe+=ve);me+=ve}return pe},J.exports=ce},function(J,te){var re=Object.prototype.hasOwnProperty,ne=Object.prototype.toString,oe=Object.defineProperty,de=Object.getOwnPropertyDescriptor,he=function(ge){return typeof Array.isArray=="function"?Array.isArray(ge):ne.call(ge)==="[object Array]"},ue=function(ge){if(!ge||ne.call(ge)!=="[object Object]")return!1;var me=re.call(ge,"constructor"),ve=ge.constructor&&ge.constructor.prototype&&re.call(ge.constructor.prototype,"isPrototypeOf");if(ge.constructor&&!me&&!ve)return!1;var be;for(be in ge);return typeof be>"u"||re.call(ge,be)},ce=function(ge,me){oe&&me.name==="__proto__"?oe(ge,me.name,{enumerable:!0,configurable:!0,value:me.newValue,writable:!0}):ge[me.name]=me.newValue},pe=function(ge,me){if(me==="__proto__")if(re.call(ge,me)){if(de)return de(ge,me).value}else return;return ge[me]};J.exports=function fe(){var ge,me,ve,be,ye,we,Se=arguments[0],_e=1,Ce=arguments.length,Le=!1;for(typeof Se=="boolean"&&(Le=Se,Se=arguments[1]||{},_e=2),(Se==null||typeof Se!="object"&&typeof Se!="function")&&(Se={});_e<Ce;++_e)if(ge=arguments[_e],ge!=null)for(me in ge)ve=pe(Se,me),be=pe(ge,me),Se!==be&&(Le&&be&&(ue(be)||(ye=he(be)))?(ye?(ye=!1,we=ve&&he(ve)?ve:[]):we=ve&&ue(ve)?ve:{},ce(Se,{name:me,newValue:fe(Le,we,be)})):typeof be<"u"&&ce(Se,{name:me,newValue:be}));return Se}},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.BlockEmbed=te.bubbleFormats=void 0;var ne=function(){function Ae(De,Me){for(var Be=0;Be<Me.length;Be++){var Ve=Me[Be];Ve.enumerable=Ve.enumerable||!1,Ve.configurable=!0,"value"in Ve&&(Ve.writable=!0),Object.defineProperty(De,Ve.key,Ve)}}return function(De,Me,Be){return Me&&Ae(De.prototype,Me),Be&&Ae(De,Be),De}}(),oe=function Ae(De,Me,Be){De===null&&(De=Function.prototype);var Ve=Object.getOwnPropertyDescriptor(De,Me);if(Ve===void 0){var Ye=Object.getPrototypeOf(De);return Ye===null?void 0:Ae(Ye,Me,Be)}else{if("value"in Ve)return Ve.value;var Je=Ve.get;return Je===void 0?void 0:Je.call(Be)}},de=re(3),he=Se(de),ue=re(2),ce=Se(ue),pe=re(0),fe=Se(pe),ge=re(16),me=Se(ge),ve=re(6),be=Se(ve),ye=re(7),we=Se(ye);function Se(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}function _e(Ae,De){if(!(Ae instanceof De))throw new TypeError("Cannot call a class as a function")}function Ce(Ae,De){if(!Ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return De&&(typeof De=="object"||typeof De=="function")?De:Ae}function Le(Ae,De){if(typeof De!="function"&&De!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof De);Ae.prototype=Object.create(De&&De.prototype,{constructor:{value:Ae,enumerable:!1,writable:!0,configurable:!0}}),De&&(Object.setPrototypeOf?Object.setPrototypeOf(Ae,De):Ae.__proto__=De)}var Pe=1,Ie=function(Ae){Le(De,Ae);function De(){return _e(this,De),Ce(this,(De.__proto__||Object.getPrototypeOf(De)).apply(this,arguments))}return ne(De,[{key:"attach",value:function(){oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"attach",this).call(this),this.attributes=new fe.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new ce.default().insert(this.value(),(0,he.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(Be,Ve){var Ye=fe.default.query(Be,fe.default.Scope.BLOCK_ATTRIBUTE);Ye!=null&&this.attributes.attribute(Ye,Ve)}},{key:"formatAt",value:function(Be,Ve,Ye,Je){this.format(Ye,Je)}},{key:"insertAt",value:function(Be,Ve,Ye){if(typeof Ve=="string"&&Ve.endsWith(`
|
|
6023
|
+
`)){var Je=fe.default.create(ze.blotName);this.parent.insertBefore(Je,Be===0?this:this.next),Je.insertAt(0,Ve.slice(0,-1))}else oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"insertAt",this).call(this,Be,Ve,Ye)}}]),De}(fe.default.Embed);Ie.scope=fe.default.Scope.BLOCK_BLOT;var ze=function(Ae){Le(De,Ae);function De(Me){_e(this,De);var Be=Ce(this,(De.__proto__||Object.getPrototypeOf(De)).call(this,Me));return Be.cache={},Be}return ne(De,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(fe.default.Leaf).reduce(function(Be,Ve){return Ve.length()===0?Be:Be.insert(Ve.value(),qe(Ve))},new ce.default).insert(`
|
|
6024
|
+
`,qe(this))),this.cache.delta}},{key:"deleteAt",value:function(Be,Ve){oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"deleteAt",this).call(this,Be,Ve),this.cache={}}},{key:"formatAt",value:function(Be,Ve,Ye,Je){Ve<=0||(fe.default.query(Ye,fe.default.Scope.BLOCK)?Be+Ve===this.length()&&this.format(Ye,Je):oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"formatAt",this).call(this,Be,Math.min(Ve,this.length()-Be-1),Ye,Je),this.cache={})}},{key:"insertAt",value:function(Be,Ve,Ye){if(Ye!=null)return oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"insertAt",this).call(this,Be,Ve,Ye);if(Ve.length!==0){var Je=Ve.split(`
|
|
6025
|
+
`),vt=Je.shift();vt.length>0&&(Be<this.length()-1||this.children.tail==null?oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"insertAt",this).call(this,Math.min(Be,this.length()-1),vt):this.children.tail.insertAt(this.children.tail.length(),vt),this.cache={});var Xe=this;Je.reduce(function(Ge,Ne){return Xe=Xe.split(Ge,!0),Xe.insertAt(0,Ne),Ne.length},Be+vt.length)}}},{key:"insertBefore",value:function(Be,Ve){var Ye=this.children.head;oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"insertBefore",this).call(this,Be,Ve),Ye instanceof me.default&&Ye.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"length",this).call(this)+Pe),this.cache.length}},{key:"moveChildren",value:function(Be,Ve){oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"moveChildren",this).call(this,Be,Ve),this.cache={}}},{key:"optimize",value:function(Be){oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"optimize",this).call(this,Be),this.cache={}}},{key:"path",value:function(Be){return oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"path",this).call(this,Be,!0)}},{key:"removeChild",value:function(Be){oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"removeChild",this).call(this,Be),this.cache={}}},{key:"split",value:function(Be){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ve&&(Be===0||Be>=this.length()-Pe)){var Ye=this.clone();return Be===0?(this.parent.insertBefore(Ye,this),this):(this.parent.insertBefore(Ye,this.next),Ye)}else{var Je=oe(De.prototype.__proto__||Object.getPrototypeOf(De.prototype),"split",this).call(this,Be,Ve);return this.cache={},Je}}}]),De}(fe.default.Block);ze.blotName="block",ze.tagName="P",ze.defaultChild="break",ze.allowedChildren=[be.default,fe.default.Embed,we.default];function qe(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ae==null||(typeof Ae.formats=="function"&&(De=(0,he.default)(De,Ae.formats())),Ae.parent==null||Ae.parent.blotName=="scroll"||Ae.parent.statics.scope!==Ae.statics.scope)?De:qe(Ae.parent,De)}te.bubbleFormats=qe,te.BlockEmbed=Ie,te.default=ze},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.overload=te.expandConfig=void 0;var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Xe){return typeof Xe}:function(Xe){return Xe&&typeof Symbol=="function"&&Xe.constructor===Symbol&&Xe!==Symbol.prototype?"symbol":typeof Xe},oe=function(){function Xe(Ge,Ne){var Ue=[],We=!0,Qe=!1,Ze=void 0;try{for(var je=Ge[Symbol.iterator](),Ke;!(We=(Ke=je.next()).done)&&(Ue.push(Ke.value),!(Ne&&Ue.length===Ne));We=!0);}catch(it){Qe=!0,Ze=it}finally{try{!We&&je.return&&je.return()}finally{if(Qe)throw Ze}}return Ue}return function(Ge,Ne){if(Array.isArray(Ge))return Ge;if(Symbol.iterator in Object(Ge))return Xe(Ge,Ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),de=function(){function Xe(Ge,Ne){for(var Ue=0;Ue<Ne.length;Ue++){var We=Ne[Ue];We.enumerable=We.enumerable||!1,We.configurable=!0,"value"in We&&(We.writable=!0),Object.defineProperty(Ge,We.key,We)}}return function(Ge,Ne,Ue){return Ne&&Xe(Ge.prototype,Ne),Ue&&Xe(Ge,Ue),Ge}}();re(51);var he=re(2),ue=qe(he),ce=re(14),pe=qe(ce),fe=re(8),ge=qe(fe),me=re(9),ve=qe(me),be=re(0),ye=qe(be),we=re(15),Se=qe(we),_e=re(3),Ce=qe(_e),Le=re(10),Pe=qe(Le),Ie=re(35),ze=qe(Ie);function qe(Xe){return Xe&&Xe.__esModule?Xe:{default:Xe}}function Ae(Xe,Ge,Ne){return Ge in Xe?Object.defineProperty(Xe,Ge,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):Xe[Ge]=Ne,Xe}function De(Xe,Ge){if(!(Xe instanceof Ge))throw new TypeError("Cannot call a class as a function")}var Me=(0,Pe.default)("quill"),Be=function(){de(Xe,null,[{key:"debug",value:function(Ne){Ne===!0&&(Ne="log"),Pe.default.level(Ne)}},{key:"find",value:function(Ne){return Ne.__quill||ye.default.find(Ne)}},{key:"import",value:function(Ne){return this.imports[Ne]==null&&Me.error("Cannot import "+Ne+". Are you sure it was registered?"),this.imports[Ne]}},{key:"register",value:function(Ne,Ue){var We=this,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof Ne!="string"){var Ze=Ne.attrName||Ne.blotName;typeof Ze=="string"?this.register("formats/"+Ze,Ne,Ue):Object.keys(Ne).forEach(function(je){We.register(je,Ne[je],Ue)})}else this.imports[Ne]!=null&&!Qe&&Me.warn("Overwriting "+Ne+" with",Ue),this.imports[Ne]=Ue,(Ne.startsWith("blots/")||Ne.startsWith("formats/"))&&Ue.blotName!=="abstract"?ye.default.register(Ue):Ne.startsWith("modules")&&typeof Ue.register=="function"&&Ue.register()}}]);function Xe(Ge){var Ne=this,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(De(this,Xe),this.options=Ve(Ge,Ue),this.container=this.options.container,this.container==null)return Me.error("Invalid Quill container",Ge);this.options.debug&&Xe.debug(this.options.debug);var We=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new ge.default,this.scroll=ye.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new pe.default(this.scroll),this.selection=new Se.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(ge.default.events.EDITOR_CHANGE,function(Ze){Ze===ge.default.events.TEXT_CHANGE&&Ne.root.classList.toggle("ql-blank",Ne.editor.isBlank())}),this.emitter.on(ge.default.events.SCROLL_UPDATE,function(Ze,je){var Ke=Ne.selection.lastRange,it=Ke&&Ke.length===0?Ke.index:void 0;Ye.call(Ne,function(){return Ne.editor.update(null,je,it)},Ze)});var Qe=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+We+"<p><br></p></div>");this.setContents(Qe),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return de(Xe,[{key:"addContainer",value:function(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof Ne=="string"){var We=Ne;Ne=document.createElement("div"),Ne.classList.add(We)}return this.container.insertBefore(Ne,Ue),Ne}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(Ne,Ue,We){var Qe=this,Ze=Je(Ne,Ue,We),je=oe(Ze,4);return Ne=je[0],Ue=je[1],We=je[3],Ye.call(this,function(){return Qe.editor.deleteText(Ne,Ue)},We,Ne,-1*Ue)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(Ne),this.container.classList.toggle("ql-disabled",!Ne)}},{key:"focus",value:function(){var Ne=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=Ne,this.scrollIntoView()}},{key:"format",value:function(Ne,Ue){var We=this,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge.default.sources.API;return Ye.call(this,function(){var Ze=We.getSelection(!0),je=new ue.default;if(Ze==null)return je;if(ye.default.query(Ne,ye.default.Scope.BLOCK))je=We.editor.formatLine(Ze.index,Ze.length,Ae({},Ne,Ue));else{if(Ze.length===0)return We.selection.format(Ne,Ue),je;je=We.editor.formatText(Ze.index,Ze.length,Ae({},Ne,Ue))}return We.setSelection(Ze,ge.default.sources.SILENT),je},Qe)}},{key:"formatLine",value:function(Ne,Ue,We,Qe,Ze){var je=this,Ke=void 0,it=Je(Ne,Ue,We,Qe,Ze),nt=oe(it,4);return Ne=nt[0],Ue=nt[1],Ke=nt[2],Ze=nt[3],Ye.call(this,function(){return je.editor.formatLine(Ne,Ue,Ke)},Ze,Ne,0)}},{key:"formatText",value:function(Ne,Ue,We,Qe,Ze){var je=this,Ke=void 0,it=Je(Ne,Ue,We,Qe,Ze),nt=oe(it,4);return Ne=nt[0],Ue=nt[1],Ke=nt[2],Ze=nt[3],Ye.call(this,function(){return je.editor.formatText(Ne,Ue,Ke)},Ze,Ne,0)}},{key:"getBounds",value:function(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,We=void 0;typeof Ne=="number"?We=this.selection.getBounds(Ne,Ue):We=this.selection.getBounds(Ne.index,Ne.length);var Qe=this.container.getBoundingClientRect();return{bottom:We.bottom-Qe.top,height:We.height,left:We.left-Qe.left,right:We.right-Qe.left,top:We.top-Qe.top,width:We.width}}},{key:"getContents",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-Ne,We=Je(Ne,Ue),Qe=oe(We,2);return Ne=Qe[0],Ue=Qe[1],this.editor.getContents(Ne,Ue)}},{key:"getFormat",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof Ne=="number"?this.editor.getFormat(Ne,Ue):this.editor.getFormat(Ne.index,Ne.length)}},{key:"getIndex",value:function(Ne){return Ne.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(Ne){return this.scroll.leaf(Ne)}},{key:"getLine",value:function(Ne){return this.scroll.line(Ne)}},{key:"getLines",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof Ne!="number"?this.scroll.lines(Ne.index,Ne.length):this.scroll.lines(Ne,Ue)}},{key:"getModule",value:function(Ne){return this.theme.modules[Ne]}},{key:"getSelection",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Ne&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-Ne,We=Je(Ne,Ue),Qe=oe(We,2);return Ne=Qe[0],Ue=Qe[1],this.editor.getText(Ne,Ue)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(Ne,Ue,We){var Qe=this,Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Xe.sources.API;return Ye.call(this,function(){return Qe.editor.insertEmbed(Ne,Ue,We)},Ze,Ne)}},{key:"insertText",value:function(Ne,Ue,We,Qe,Ze){var je=this,Ke=void 0,it=Je(Ne,0,We,Qe,Ze),nt=oe(it,4);return Ne=nt[0],Ke=nt[2],Ze=nt[3],Ye.call(this,function(){return je.editor.insertText(Ne,Ue,Ke)},Ze,Ne,Ue.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(Ne,Ue,We){this.clipboard.dangerouslyPasteHTML(Ne,Ue,We)}},{key:"removeFormat",value:function(Ne,Ue,We){var Qe=this,Ze=Je(Ne,Ue,We),je=oe(Ze,4);return Ne=je[0],Ue=je[1],We=je[3],Ye.call(this,function(){return Qe.editor.removeFormat(Ne,Ue)},We,Ne)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(Ne){var Ue=this,We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge.default.sources.API;return Ye.call(this,function(){Ne=new ue.default(Ne);var Qe=Ue.getLength(),Ze=Ue.editor.deleteText(0,Qe),je=Ue.editor.applyDelta(Ne),Ke=je.ops[je.ops.length-1];Ke!=null&&typeof Ke.insert=="string"&&Ke.insert[Ke.insert.length-1]===`
|
|
6026
|
+
`&&(Ue.editor.deleteText(Ue.getLength()-1,1),je.delete(1));var it=Ze.compose(je);return it},We)}},{key:"setSelection",value:function(Ne,Ue,We){if(Ne==null)this.selection.setRange(null,Ue||Xe.sources.API);else{var Qe=Je(Ne,Ue,We),Ze=oe(Qe,4);Ne=Ze[0],Ue=Ze[1],We=Ze[3],this.selection.setRange(new we.Range(Ne,Ue),We),We!==ge.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge.default.sources.API,We=new ue.default().insert(Ne);return this.setContents(We,Ue)}},{key:"update",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ge.default.sources.USER,Ue=this.scroll.update(Ne);return this.selection.update(Ne),Ue}},{key:"updateContents",value:function(Ne){var Ue=this,We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge.default.sources.API;return Ye.call(this,function(){return Ne=new ue.default(Ne),Ue.editor.applyDelta(Ne,We)},We,!0)}}]),Xe}();Be.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},Be.events=ge.default.events,Be.sources=ge.default.sources,Be.version="1.3.6",Be.imports={delta:ue.default,parchment:ye.default,"core/module":ve.default,"core/theme":ze.default};function Ve(Xe,Ge){if(Ge=(0,Ce.default)(!0,{container:Xe,modules:{clipboard:!0,keyboard:!0,history:!0}},Ge),!Ge.theme||Ge.theme===Be.DEFAULTS.theme)Ge.theme=ze.default;else if(Ge.theme=Be.import("themes/"+Ge.theme),Ge.theme==null)throw new Error("Invalid theme "+Ge.theme+". Did you register it?");var Ne=(0,Ce.default)(!0,{},Ge.theme.DEFAULTS);[Ne,Ge].forEach(function(Qe){Qe.modules=Qe.modules||{},Object.keys(Qe.modules).forEach(function(Ze){Qe.modules[Ze]===!0&&(Qe.modules[Ze]={})})});var Ue=Object.keys(Ne.modules).concat(Object.keys(Ge.modules)),We=Ue.reduce(function(Qe,Ze){var je=Be.import("modules/"+Ze);return je==null?Me.error("Cannot load "+Ze+" module. Are you sure you registered it?"):Qe[Ze]=je.DEFAULTS||{},Qe},{});return Ge.modules!=null&&Ge.modules.toolbar&&Ge.modules.toolbar.constructor!==Object&&(Ge.modules.toolbar={container:Ge.modules.toolbar}),Ge=(0,Ce.default)(!0,{},Be.DEFAULTS,{modules:We},Ne,Ge),["bounds","container","scrollingContainer"].forEach(function(Qe){typeof Ge[Qe]=="string"&&(Ge[Qe]=document.querySelector(Ge[Qe]))}),Ge.modules=Object.keys(Ge.modules).reduce(function(Qe,Ze){return Ge.modules[Ze]&&(Qe[Ze]=Ge.modules[Ze]),Qe},{}),Ge}function Ye(Xe,Ge,Ne,Ue){if(this.options.strict&&!this.isEnabled()&&Ge===ge.default.sources.USER)return new ue.default;var We=Ne==null?null:this.getSelection(),Qe=this.editor.delta,Ze=Xe();if(We!=null&&(Ne===!0&&(Ne=We.index),Ue==null?We=vt(We,Ze,Ge):Ue!==0&&(We=vt(We,Ne,Ue,Ge)),this.setSelection(We,ge.default.sources.SILENT)),Ze.length()>0){var je,Ke=[ge.default.events.TEXT_CHANGE,Ze,Qe,Ge];if((je=this.emitter).emit.apply(je,[ge.default.events.EDITOR_CHANGE].concat(Ke)),Ge!==ge.default.sources.SILENT){var it;(it=this.emitter).emit.apply(it,Ke)}}return Ze}function Je(Xe,Ge,Ne,Ue,We){var Qe={};return typeof Xe.index=="number"&&typeof Xe.length=="number"?typeof Ge!="number"?(We=Ue,Ue=Ne,Ne=Ge,Ge=Xe.length,Xe=Xe.index):(Ge=Xe.length,Xe=Xe.index):typeof Ge!="number"&&(We=Ue,Ue=Ne,Ne=Ge,Ge=0),(typeof Ne>"u"?"undefined":ne(Ne))==="object"?(Qe=Ne,We=Ue):typeof Ne=="string"&&(Ue!=null?Qe[Ne]=Ue:We=Ne),We=We||ge.default.sources.API,[Xe,Ge,Qe,We]}function vt(Xe,Ge,Ne,Ue){if(Xe==null)return null;var We=void 0,Qe=void 0;if(Ge instanceof ue.default){var Ze=[Xe.index,Xe.index+Xe.length].map(function(nt){return Ge.transformPosition(nt,Ue!==ge.default.sources.USER)}),je=oe(Ze,2);We=je[0],Qe=je[1]}else{var Ke=[Xe.index,Xe.index+Xe.length].map(function(nt){return nt<Ge||nt===Ge&&Ue===ge.default.sources.USER?nt:Ne>=0?nt+Ne:Math.max(Ge,nt+Ne)}),it=oe(Ke,2);We=it[0],Qe=it[1]}return new we.Range(We,Qe-We)}te.expandConfig=Ve,te.overload=Je,te.default=Be},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),oe=function be(ye,we,Se){ye===null&&(ye=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ye,we);if(_e===void 0){var Ce=Object.getPrototypeOf(ye);return Ce===null?void 0:be(Ce,we,Se)}else{if("value"in _e)return _e.value;var Le=_e.get;return Le===void 0?void 0:Le.call(Se)}},de=re(7),he=pe(de),ue=re(0),ce=pe(ue);function pe(be){return be&&be.__esModule?be:{default:be}}function fe(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function ge(be,ye){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:be}function me(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ye):be.__proto__=ye)}var ve=function(be){me(ye,be);function ye(){return fe(this,ye),ge(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return ne(ye,[{key:"formatAt",value:function(Se,_e,Ce,Le){if(ye.compare(this.statics.blotName,Ce)<0&&ce.default.query(Ce,ce.default.Scope.BLOT)){var Pe=this.isolate(Se,_e);Le&&Pe.wrap(Ce,Le)}else oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"formatAt",this).call(this,Se,_e,Ce,Le)}},{key:"optimize",value:function(Se){if(oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"optimize",this).call(this,Se),this.parent instanceof ye&&ye.compare(this.statics.blotName,this.parent.statics.blotName)>0){var _e=this.parent.isolate(this.offset(),this.length());this.moveChildren(_e),_e.wrap(this)}}}],[{key:"compare",value:function(Se,_e){var Ce=ye.order.indexOf(Se),Le=ye.order.indexOf(_e);return Ce>=0||Le>=0?Ce-Le:Se===_e?0:Se<_e?-1:1}}]),ye}(ce.default.Inline);ve.allowedChildren=[ve,ce.default.Embed,he.default],ve.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],te.default=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(0),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default.Text);te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function Ce(Le,Pe){for(var Ie=0;Ie<Pe.length;Ie++){var ze=Pe[Ie];ze.enumerable=ze.enumerable||!1,ze.configurable=!0,"value"in ze&&(ze.writable=!0),Object.defineProperty(Le,ze.key,ze)}}return function(Le,Pe,Ie){return Pe&&Ce(Le.prototype,Pe),Ie&&Ce(Le,Ie),Le}}(),oe=function Ce(Le,Pe,Ie){Le===null&&(Le=Function.prototype);var ze=Object.getOwnPropertyDescriptor(Le,Pe);if(ze===void 0){var qe=Object.getPrototypeOf(Le);return qe===null?void 0:Ce(qe,Pe,Ie)}else{if("value"in ze)return ze.value;var Ae=ze.get;return Ae===void 0?void 0:Ae.call(Ie)}},de=re(55),he=fe(de),ue=re(10),ce=fe(ue),pe=re(34);function fe(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}function ge(Ce,Le){if(!(Ce instanceof Le))throw new TypeError("Cannot call a class as a function")}function me(Ce,Le){if(!Ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le&&(typeof Le=="object"||typeof Le=="function")?Le:Ce}function ve(Ce,Le){if(typeof Le!="function"&&Le!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Le);Ce.prototype=Object.create(Le&&Le.prototype,{constructor:{value:Ce,enumerable:!1,writable:!0,configurable:!0}}),Le&&(Object.setPrototypeOf?Object.setPrototypeOf(Ce,Le):Ce.__proto__=Le)}var be=(0,ce.default)("quill:events"),ye=[pe.SHADOW_SELECTIONCHANGE,"mousedown","mouseup","click"],we=[],Se="getRootNode"in document;ye.forEach(function(Ce){document.addEventListener(Ce,function(){for(var Le=arguments.length,Pe=Array(Le),Ie=0;Ie<Le;Ie++)Pe[Ie]=arguments[Ie];we.forEach(function(ze){ze.handleDOM.apply(ze,Pe)})})});var _e=function(Ce){ve(Le,Ce);function Le(){ge(this,Le);var Pe=me(this,(Le.__proto__||Object.getPrototypeOf(Le)).call(this));return Pe.listeners={},we.push(Pe),Pe.on("error",be.error),Pe}return ne(Le,[{key:"emit",value:function(){be.log.apply(be,arguments),oe(Le.prototype.__proto__||Object.getPrototypeOf(Le.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(Ie){for(var ze=arguments.length,qe=Array(ze>1?ze-1:0),Ae=1;Ae<ze;Ae++)qe[Ae-1]=arguments[Ae];var De=Ie.composedPath?Ie.composedPath()[0]:Ie.target,Me=function(Ve,Ye){if(!Se||Ye.getRootNode()===document)return Ve.contains(Ye);for(;!Ve.contains(Ye);){var Je=Ye.getRootNode();if(!Je||!Je.host)return!1;Ye=Je.host}return!0};(this.listeners[Ie.type]||[]).forEach(function(Be){var Ve=Be.node,Ye=Be.handler;(De===Ve||Me(Ve,De))&&Ye.apply(void 0,[Ie].concat(qe))})}},{key:"listenDOM",value:function(Ie,ze,qe){this.listeners[Ie]||(this.listeners[Ie]=[]),this.listeners[Ie].push({node:ze,handler:qe})}}]),Le}(he.default);_e.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},_e.sources={API:"api",SILENT:"silent",USER:"user"},te.default=_e},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});function ne(de,he){if(!(de instanceof he))throw new TypeError("Cannot call a class as a function")}var oe=function de(he){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ne(this,de),this.quill=he,this.options=ue};oe.DEFAULTS={},te.default=oe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=["error","warn","log","info"],oe="warn";function de(ue){if(ne.indexOf(ue)<=ne.indexOf(oe)){for(var ce,pe=arguments.length,fe=Array(pe>1?pe-1:0),ge=1;ge<pe;ge++)fe[ge-1]=arguments[ge];(ce=console)[ue].apply(ce,fe)}}function he(ue){return ne.reduce(function(ce,pe){return ce[pe]=de.bind(console,pe,ue),ce},{})}de.level=he.level=function(ue){oe=ue},te.default=he},function(J,te,re){var ne=Array.prototype.slice,oe=re(53),de=re(54),he=J.exports=function(fe,ge,me){return me||(me={}),fe===ge?!0:fe instanceof Date&&ge instanceof Date?fe.getTime()===ge.getTime():!fe||!ge||typeof fe!="object"&&typeof ge!="object"?me.strict?fe===ge:fe==ge:pe(fe,ge,me)};function ue(fe){return fe==null}function ce(fe){return!(!fe||typeof fe!="object"||typeof fe.length!="number"||typeof fe.copy!="function"||typeof fe.slice!="function"||fe.length>0&&typeof fe[0]!="number")}function pe(fe,ge,me){var ve,be;if(ue(fe)||ue(ge)||fe.prototype!==ge.prototype)return!1;if(de(fe))return de(ge)?(fe=ne.call(fe),ge=ne.call(ge),he(fe,ge,me)):!1;if(ce(fe)){if(!ce(ge)||fe.length!==ge.length)return!1;for(ve=0;ve<fe.length;ve++)if(fe[ve]!==ge[ve])return!1;return!0}try{var ye=oe(fe),we=oe(ge)}catch{return!1}if(ye.length!=we.length)return!1;for(ye.sort(),we.sort(),ve=ye.length-1;ve>=0;ve--)if(ye[ve]!=we[ve])return!1;for(ve=ye.length-1;ve>=0;ve--)if(be=ye[ve],!he(fe[be],ge[be],me))return!1;return typeof fe==typeof ge}},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(1),oe=function(){function de(he,ue,ce){ce===void 0&&(ce={}),this.attrName=he,this.keyName=ue;var pe=ne.Scope.TYPE&ne.Scope.ATTRIBUTE;ce.scope!=null?this.scope=ce.scope&ne.Scope.LEVEL|pe:this.scope=ne.Scope.ATTRIBUTE,ce.whitelist!=null&&(this.whitelist=ce.whitelist)}return de.keys=function(he){return[].map.call(he.attributes,function(ue){return ue.name})},de.prototype.add=function(he,ue){return this.canAdd(he,ue)?(he.setAttribute(this.keyName,ue),!0):!1},de.prototype.canAdd=function(he,ue){var ce=ne.query(he,ne.Scope.BLOT&(this.scope|ne.Scope.TYPE));return ce==null?!1:this.whitelist==null?!0:typeof ue=="string"?this.whitelist.indexOf(ue.replace(/["']/g,""))>-1:this.whitelist.indexOf(ue)>-1},de.prototype.remove=function(he){he.removeAttribute(this.keyName)},de.prototype.value=function(he){var ue=he.getAttribute(this.keyName);return this.canAdd(he,ue)&&ue?ue:""},de}();te.default=oe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.Code=void 0;var ne=function(){function Ie(ze,qe){var Ae=[],De=!0,Me=!1,Be=void 0;try{for(var Ve=ze[Symbol.iterator](),Ye;!(De=(Ye=Ve.next()).done)&&(Ae.push(Ye.value),!(qe&&Ae.length===qe));De=!0);}catch(Je){Me=!0,Be=Je}finally{try{!De&&Ve.return&&Ve.return()}finally{if(Me)throw Be}}return Ae}return function(ze,qe){if(Array.isArray(ze))return ze;if(Symbol.iterator in Object(ze))return Ie(ze,qe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(){function Ie(ze,qe){for(var Ae=0;Ae<qe.length;Ae++){var De=qe[Ae];De.enumerable=De.enumerable||!1,De.configurable=!0,"value"in De&&(De.writable=!0),Object.defineProperty(ze,De.key,De)}}return function(ze,qe,Ae){return qe&&Ie(ze.prototype,qe),Ae&&Ie(ze,Ae),ze}}(),de=function Ie(ze,qe,Ae){ze===null&&(ze=Function.prototype);var De=Object.getOwnPropertyDescriptor(ze,qe);if(De===void 0){var Me=Object.getPrototypeOf(ze);return Me===null?void 0:Ie(Me,qe,Ae)}else{if("value"in De)return De.value;var Be=De.get;return Be===void 0?void 0:Be.call(Ae)}},he=re(2),ue=we(he),ce=re(0),pe=we(ce),fe=re(4),ge=we(fe),me=re(6),ve=we(me),be=re(7),ye=we(be);function we(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}function Se(Ie,ze){if(!(Ie instanceof ze))throw new TypeError("Cannot call a class as a function")}function _e(Ie,ze){if(!Ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ze&&(typeof ze=="object"||typeof ze=="function")?ze:Ie}function Ce(Ie,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ze);Ie.prototype=Object.create(ze&&ze.prototype,{constructor:{value:Ie,enumerable:!1,writable:!0,configurable:!0}}),ze&&(Object.setPrototypeOf?Object.setPrototypeOf(Ie,ze):Ie.__proto__=ze)}var Le=function(Ie){Ce(ze,Ie);function ze(){return Se(this,ze),_e(this,(ze.__proto__||Object.getPrototypeOf(ze)).apply(this,arguments))}return ze}(ve.default);Le.blotName="code",Le.tagName="CODE";var Pe=function(Ie){Ce(ze,Ie);function ze(){return Se(this,ze),_e(this,(ze.__proto__||Object.getPrototypeOf(ze)).apply(this,arguments))}return oe(ze,[{key:"delta",value:function(){var Ae=this,De=this.domNode.textContent;return De.endsWith(`
|
|
6035
6027
|
`)&&(De=De.slice(0,-1)),De.split(`
|
|
6036
6028
|
`).reduce(function(Me,Be){return Me.insert(Be).insert(`
|
|
6037
6029
|
`,Ae.formats())},new ue.default)}},{key:"format",value:function(Ae,De){if(!(Ae===this.statics.blotName&&De)){var Me=this.descendant(ye.default,this.length()-1),Be=ne(Me,1),Ve=Be[0];Ve!=null&&Ve.deleteAt(Ve.length()-1,1),de(ze.prototype.__proto__||Object.getPrototypeOf(ze.prototype),"format",this).call(this,Ae,De)}}},{key:"formatAt",value:function(Ae,De,Me,Be){if(De!==0&&!(pe.default.query(Me,pe.default.Scope.BLOCK)==null||Me===this.statics.blotName&&Be===this.statics.formats(this.domNode))){var Ve=this.newlineIndex(Ae);if(!(Ve<0||Ve>=Ae+De)){var Ye=this.newlineIndex(Ae,!0)+1,Je=Ve-Ye+1,vt=this.isolate(Ye,Je),Xe=vt.next;vt.format(Me,Be),Xe instanceof ze&&Xe.formatAt(0,Ae-Ye+De-Je,Me,Be)}}}},{key:"insertAt",value:function(Ae,De,Me){if(Me==null){var Be=this.descendant(ye.default,Ae),Ve=ne(Be,2),Ye=Ve[0],Je=Ve[1];Ye.insertAt(Je,De)}}},{key:"length",value:function(){var Ae=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
@@ -6039,21 +6031,21 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
6039
6031
|
`);var Me=this.domNode.textContent.slice(Ae).indexOf(`
|
|
6040
6032
|
`);return Me>-1?Ae+Me:-1}},{key:"optimize",value:function(Ae){this.domNode.textContent.endsWith(`
|
|
6041
6033
|
`)||this.appendChild(pe.default.create("text",`
|
|
6042
|
-
`)),de(ze.prototype.__proto__||Object.getPrototypeOf(ze.prototype),"optimize",this).call(this,Ae);var De=this.next;De!=null&&De.prev===this&&De.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===De.statics.formats(De.domNode)&&(De.optimize(Ae),De.moveChildren(this),De.remove())}},{key:"replace",value:function(Ae){de(ze.prototype.__proto__||Object.getPrototypeOf(ze.prototype),"replace",this).call(this,Ae),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(De){var Me=pe.default.find(De);Me==null?De.parentNode.removeChild(De):Me instanceof pe.default.Embed?Me.remove():Me.unwrap()})}}],[{key:"create",value:function(Ae){var De=de(ze.__proto__||Object.getPrototypeOf(ze),"create",this).call(this,Ae);return De.setAttribute("spellcheck",!1),De}},{key:"formats",value:function(){return!0}}]),ze}(ge.default);
|
|
6034
|
+
`)),de(ze.prototype.__proto__||Object.getPrototypeOf(ze.prototype),"optimize",this).call(this,Ae);var De=this.next;De!=null&&De.prev===this&&De.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===De.statics.formats(De.domNode)&&(De.optimize(Ae),De.moveChildren(this),De.remove())}},{key:"replace",value:function(Ae){de(ze.prototype.__proto__||Object.getPrototypeOf(ze.prototype),"replace",this).call(this,Ae),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(De){var Me=pe.default.find(De);Me==null?De.parentNode.removeChild(De):Me instanceof pe.default.Embed?Me.remove():Me.unwrap()})}}],[{key:"create",value:function(Ae){var De=de(ze.__proto__||Object.getPrototypeOf(ze),"create",this).call(this,Ae);return De.setAttribute("spellcheck",!1),De}},{key:"formats",value:function(){return!0}}]),ze}(ge.default);Pe.blotName="code-block",Pe.tagName="PRE",Pe.TAB=" ",te.Code=Le,te.default=Pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Xe){return typeof Xe}:function(Xe){return Xe&&typeof Symbol=="function"&&Xe.constructor===Symbol&&Xe!==Symbol.prototype?"symbol":typeof Xe},oe=function(){function Xe(Ge,Ne){var Ue=[],We=!0,Qe=!1,Ze=void 0;try{for(var je=Ge[Symbol.iterator](),Ke;!(We=(Ke=je.next()).done)&&(Ue.push(Ke.value),!(Ne&&Ue.length===Ne));We=!0);}catch(it){Qe=!0,Ze=it}finally{try{!We&&je.return&&je.return()}finally{if(Qe)throw Ze}}return Ue}return function(Ge,Ne){if(Array.isArray(Ge))return Ge;if(Symbol.iterator in Object(Ge))return Xe(Ge,Ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),de=function(){function Xe(Ge,Ne){for(var Ue=0;Ue<Ne.length;Ue++){var We=Ne[Ue];We.enumerable=We.enumerable||!1,We.configurable=!0,"value"in We&&(We.writable=!0),Object.defineProperty(Ge,We.key,We)}}return function(Ge,Ne,Ue){return Ne&&Xe(Ge.prototype,Ne),Ue&&Xe(Ge,Ue),Ge}}(),he=re(2),ue=De(he),ce=re(20),pe=De(ce),fe=re(0),ge=De(fe),me=re(13),ve=De(me),be=re(24),ye=De(be),we=re(4),Se=De(we),_e=re(16),Ce=De(_e),Le=re(21),Pe=De(Le),Ie=re(11),ze=De(Ie),qe=re(3),Ae=De(qe);function De(Xe){return Xe&&Xe.__esModule?Xe:{default:Xe}}function Me(Xe,Ge,Ne){return Ge in Xe?Object.defineProperty(Xe,Ge,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):Xe[Ge]=Ne,Xe}function Be(Xe,Ge){if(!(Xe instanceof Ge))throw new TypeError("Cannot call a class as a function")}var Ve=/^[ -~]*$/,Ye=function(){function Xe(Ge){Be(this,Xe),this.scroll=Ge,this.delta=this.getDelta()}return de(Xe,[{key:"applyDelta",value:function(Ne){var Ue=this,We=!1;this.scroll.update();var Qe=this.scroll.length();return this.scroll.batchStart(),Ne=vt(Ne),Ne.reduce(function(Ze,je){var Ke=je.retain||je.delete||je.insert.length||1,it=je.attributes||{};if(je.insert!=null){if(typeof je.insert=="string"){var nt=je.insert;nt.endsWith(`
|
|
6043
6035
|
`)&&We&&(We=!1,nt=nt.slice(0,-1)),Ze>=Qe&&!nt.endsWith(`
|
|
6044
|
-
`)&&(We=!0),Ue.scroll.insertAt(Ze,nt);var bt=Ue.scroll.line(Ze),
|
|
6036
|
+
`)&&(We=!0),Ue.scroll.insertAt(Ze,nt);var bt=Ue.scroll.line(Ze),Ct=oe(bt,2),Dt=Ct[0],Lt=Ct[1],Bt=(0,Ae.default)({},(0,we.bubbleFormats)(Dt));if(Dt instanceof Se.default){var jt=Dt.descendant(ge.default.Leaf,Lt),dr=oe(jt,1),rr=dr[0];Bt=(0,Ae.default)(Bt,(0,we.bubbleFormats)(rr))}it=pe.default.attributes.diff(Bt,it)||{}}else if(ne(je.insert)==="object"){var gt=Object.keys(je.insert)[0];if(gt==null)return Ze;Ue.scroll.insertAt(Ze,gt,je.insert[gt])}Qe+=Ke}return Object.keys(it).forEach(function(mt){Ue.scroll.formatAt(Ze,Ke,mt,it[mt])}),Ze+Ke},0),Ne.reduce(function(Ze,je){return typeof je.delete=="number"?(Ue.scroll.deleteAt(Ze,je.delete),Ze):Ze+(je.retain||je.insert.length||1)},0),this.scroll.batchEnd(),this.update(Ne)}},{key:"deleteText",value:function(Ne,Ue){return this.scroll.deleteAt(Ne,Ue),this.update(new ue.default().retain(Ne).delete(Ue))}},{key:"formatLine",value:function(Ne,Ue){var We=this,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Qe).forEach(function(Ze){if(!(We.scroll.whitelist!=null&&!We.scroll.whitelist[Ze])){var je=We.scroll.lines(Ne,Math.max(Ue,1)),Ke=Ue;je.forEach(function(it){var nt=it.length();if(!(it instanceof ve.default))it.format(Ze,Qe[Ze]);else{var bt=Ne-it.offset(We.scroll),Ct=it.newlineIndex(bt+Ke)-bt+1;it.formatAt(bt,Ct,Ze,Qe[Ze])}Ke-=nt})}}),this.scroll.optimize(),this.update(new ue.default().retain(Ne).retain(Ue,(0,Pe.default)(Qe)))}},{key:"formatText",value:function(Ne,Ue){var We=this,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Qe).forEach(function(Ze){We.scroll.formatAt(Ne,Ue,Ze,Qe[Ze])}),this.update(new ue.default().retain(Ne).retain(Ue,(0,Pe.default)(Qe)))}},{key:"getContents",value:function(Ne,Ue){return this.delta.slice(Ne,Ne+Ue)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(Ne,Ue){return Ne.concat(Ue.delta())},new ue.default)}},{key:"getFormat",value:function(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,We=[],Qe=[];Ue===0?this.scroll.path(Ne).forEach(function(je){var Ke=oe(je,1),it=Ke[0];it instanceof Se.default?We.push(it):it instanceof ge.default.Leaf&&Qe.push(it)}):(We=this.scroll.lines(Ne,Ue),Qe=this.scroll.descendants(ge.default.Leaf,Ne,Ue));var Ze=[We,Qe].map(function(je){if(je.length===0)return{};for(var Ke=(0,we.bubbleFormats)(je.shift());Object.keys(Ke).length>0;){var it=je.shift();if(it==null)return Ke;Ke=Je((0,we.bubbleFormats)(it),Ke)}return Ke});return Ae.default.apply(Ae.default,Ze)}},{key:"getText",value:function(Ne,Ue){return this.getContents(Ne,Ue).filter(function(We){return typeof We.insert=="string"}).map(function(We){return We.insert}).join("")}},{key:"insertEmbed",value:function(Ne,Ue,We){return this.scroll.insertAt(Ne,Ue,We),this.update(new ue.default().retain(Ne).insert(Me({},Ue,We)))}},{key:"insertText",value:function(Ne,Ue){var We=this,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ue=Ue.replace(/\r\n/g,`
|
|
6045
6037
|
`).replace(/\r/g,`
|
|
6046
|
-
`),this.scroll.insertAt(Ne,Ue),Object.keys(Qe).forEach(function(Ze){We.scroll.formatAt(Ne,Ue.length,Ze,Qe[Ze])}),this.update(new ue.default().retain(Ne).insert(Ue,(0,
|
|
6047
|
-
`));var bt=this.getContents(Ne,Ue+it),
|
|
6038
|
+
`),this.scroll.insertAt(Ne,Ue),Object.keys(Qe).forEach(function(Ze){We.scroll.formatAt(Ne,Ue.length,Ze,Qe[Ze])}),this.update(new ue.default().retain(Ne).insert(Ue,(0,Pe.default)(Qe)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var Ne=this.scroll.children.head;return Ne.statics.blotName!==Se.default.blotName||Ne.children.length>1?!1:Ne.children.head instanceof Ce.default}},{key:"removeFormat",value:function(Ne,Ue){var We=this.getText(Ne,Ue),Qe=this.scroll.line(Ne+Ue),Ze=oe(Qe,2),je=Ze[0],Ke=Ze[1],it=0,nt=new ue.default;je!=null&&(je instanceof ve.default?it=je.newlineIndex(Ke)-Ke+1:it=je.length()-Ke,nt=je.delta().slice(Ke,Ke+it-1).insert(`
|
|
6039
|
+
`));var bt=this.getContents(Ne,Ue+it),Ct=bt.diff(new ue.default().insert(We).concat(nt)),Dt=new ue.default().retain(Ne).concat(Ct);return this.applyDelta(Dt)}},{key:"update",value:function(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Qe=this.delta;if(Ue.length===1&&Ue[0].type==="characterData"&&Ue[0].target.data.match(Ve)&&ge.default.find(Ue[0].target)){var Ze=ge.default.find(Ue[0].target),je=(0,we.bubbleFormats)(Ze),Ke=Ze.offset(this.scroll),it=Ue[0].oldValue.replace(ye.default.CONTENTS,""),nt=new ue.default().insert(it),bt=new ue.default().insert(Ze.value()),Ct=new ue.default().retain(Ke).concat(nt.diff(bt,We));Ne=Ct.reduce(function(Dt,Lt){return Lt.insert?Dt.insert(Lt.insert,je):Dt.push(Lt)},new ue.default),this.delta=Qe.compose(Ne)}else this.delta=this.getDelta(),(!Ne||!(0,ze.default)(Qe.compose(Ne),this.delta))&&(Ne=Qe.diff(this.delta,We));return Ne}}]),Xe}();function Je(Xe,Ge){return Object.keys(Ge).reduce(function(Ne,Ue){return Xe[Ue]==null||(Ge[Ue]===Xe[Ue]?Ne[Ue]=Ge[Ue]:Array.isArray(Ge[Ue])?Ge[Ue].indexOf(Xe[Ue])<0&&(Ne[Ue]=Ge[Ue].concat([Xe[Ue]])):Ne[Ue]=[Ge[Ue],Xe[Ue]]),Ne},{})}function vt(Xe){return Xe.reduce(function(Ge,Ne){if(Ne.insert===1){var Ue=(0,Pe.default)(Ne.attributes);return delete Ue.image,Ge.insert({image:Ne.attributes.image},Ue)}if(Ne.attributes!=null&&(Ne.attributes.list===!0||Ne.attributes.bullet===!0)&&(Ne=(0,Pe.default)(Ne),Ne.attributes.list?Ne.attributes.list="ordered":(Ne.attributes.list="bullet",delete Ne.attributes.bullet)),typeof Ne.insert=="string"){var We=Ne.insert.replace(/\r\n/g,`
|
|
6048
6040
|
`).replace(/\r/g,`
|
|
6049
|
-
`);return Ge.insert(We,Ne.attributes)}return Ge.push(Ne)},new ue.default)}te.default=Ye},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.Range=void 0;var ne=function(){function ze(Pe,Ae){var De=[],Me=!0,Be=!1,Ve=void 0;try{for(var Ye=Pe[Symbol.iterator](),Je;!(Me=(Je=Ye.next()).done)&&(De.push(Je.value),!(Ae&&De.length===Ae));Me=!0);}catch(vt){Be=!0,Ve=vt}finally{try{!Me&&Ye.return&&Ye.return()}finally{if(Be)throw Ve}}return De}return function(Pe,Ae){if(Array.isArray(Pe))return Pe;if(Symbol.iterator in Object(Pe))return ze(Pe,Ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(){function ze(Pe,Ae){for(var De=0;De<Ae.length;De++){var Me=Ae[De];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(Pe,Me.key,Me)}}return function(Pe,Ae,De){return Ae&&ze(Pe.prototype,Ae),De&&ze(Pe,De),Pe}}(),de=re(0),he=we(de),ue=re(21),ce=we(ue),pe=re(11),fe=we(pe),ge=re(8),me=we(ge),ve=re(10),be=we(ve),ye=re(34);function we(ze){return ze&&ze.__esModule?ze:{default:ze}}function Se(ze){if(Array.isArray(ze)){for(var Pe=0,Ae=Array(ze.length);Pe<ze.length;Pe++)Ae[Pe]=ze[Pe];return Ae}else return Array.from(ze)}function _e(ze,Pe){if(!(ze instanceof Pe))throw new TypeError("Cannot call a class as a function")}var Ce=(0,be.default)("quill:selection"),Le=function ze(Pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_e(this,ze),this.index=Pe,this.length=Ae},qe=function(){function ze(Pe,Ae){var De=this;_e(this,ze),this.emitter=Ae,this.scroll=Pe,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.rootDocument=this.root.getRootNode?this.root.getRootNode():document,this.cursor=he.default.create("cursor",this),this.lastRange=this.savedRange=new Le(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM(ye.SHADOW_SELECTIONCHANGE,document,function(){De.mouseDown||setTimeout(De.update.bind(De,me.default.sources.USER),1)}),this.emitter.on(me.default.events.EDITOR_CHANGE,function(Me,Be){Me===me.default.events.TEXT_CHANGE&&Be.length()>0&&De.update(me.default.sources.SILENT)}),this.emitter.on(me.default.events.SCROLL_BEFORE_UPDATE,function(){if(De.hasFocus()){var Me=De.getNativeRange();Me!=null&&Me.start.node!==De.cursor.textNode&&De.emitter.once(me.default.events.SCROLL_UPDATE,function(){try{De.setNativeRange(Me.start.node,Me.start.offset,Me.end.node,Me.end.offset)}catch{}})}}),this.emitter.on(me.default.events.SCROLL_OPTIMIZE,function(Me,Be){if(Be.range){var Ve=Be.range,Ye=Ve.startNode,Je=Ve.startOffset,vt=Ve.endNode,Xe=Ve.endOffset;De.setNativeRange(Ye,Je,vt,Xe)}}),this.update(me.default.sources.SILENT)}return oe(ze,[{key:"handleComposition",value:function(){var Ae=this;this.root.addEventListener("compositionstart",function(){Ae.composing=!0}),this.root.addEventListener("compositionend",function(){if(Ae.composing=!1,Ae.cursor.parent){var De=Ae.cursor.restore();if(!De)return;setTimeout(function(){Ae.setNativeRange(De.startNode,De.startOffset,De.endNode,De.endOffset)},1)}})}},{key:"handleDragging",value:function(){var Ae=this;this.emitter.listenDOM("mousedown",document.body,function(){Ae.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){Ae.mouseDown=!1,Ae.update(me.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Ae,De){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[Ae])){this.scroll.update();var Me=this.getNativeRange();if(!(Me==null||!Me.native.collapsed||he.default.query(Ae,he.default.Scope.BLOCK))){if(Me.start.node!==this.cursor.textNode){var Be=he.default.find(Me.start.node,!1);if(Be==null)return;if(Be instanceof he.default.Leaf){var Ve=Be.split(Me.start.offset);Be.parent.insertBefore(this.cursor,Ve)}else Be.insertBefore(this.cursor,Me.start.node);this.cursor.attach()}this.cursor.format(Ae,De),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Me=this.scroll.length();Ae=Math.min(Ae,Me-1),De=Math.min(Ae+De,Me-1)-Ae;var Be=void 0,Ve=this.scroll.leaf(Ae),Ye=ne(Ve,2),Je=Ye[0],vt=Ye[1];if(Je==null)return null;var Xe=Je.position(vt,!0),Ge=ne(Xe,2);Be=Ge[0],vt=Ge[1];var Ne=document.createRange();if(De>0){Ne.setStart(Be,vt);var Ue=this.scroll.leaf(Ae+De),We=ne(Ue,2);if(Je=We[0],vt=We[1],Je==null)return null;var Qe=Je.position(vt,!0),Ze=ne(Qe,2);return Be=Ze[0],vt=Ze[1],Ne.setEnd(Be,vt),Ne.getBoundingClientRect()}else{var je="left",Ke=void 0;return Be instanceof Text?(vt<Be.data.length?(Ne.setStart(Be,vt),Ne.setEnd(Be,vt+1)):(Ne.setStart(Be,vt-1),Ne.setEnd(Be,vt),je="right"),Ke=Ne.getBoundingClientRect()):(Ke=Je.domNode.getBoundingClientRect(),vt>0&&(je="right")),{bottom:Ke.top+Ke.height,height:Ke.height,left:Ke[je],right:Ke[je],top:Ke.top,width:0}}}},{key:"getNativeRange",value:function(){var Ae=(0,ye.getRange)(this.rootDocument);if(Ae==null)return null;var De=this.normalizeNative(Ae);return Ce.info("getNativeRange",De),De}},{key:"getRange",value:function(){var Ae=this.getNativeRange();if(Ae==null)return[null,null];var De=this.normalizedToRange(Ae);return[De,Ae]}},{key:"hasFocus",value:function(){return this.rootDocument.activeElement===this.root}},{key:"normalizedToRange",value:function(Ae){var De=this,Me=[[Ae.start.node,Ae.start.offset]];Ae.native.collapsed||Me.push([Ae.end.node,Ae.end.offset]);var Be=Me.map(function(Je){var vt=ne(Je,2),Xe=vt[0],Ge=vt[1],Ne=he.default.find(Xe,!0),Ue=Ne.offset(De.scroll);return Ge===0?Ue:Ne instanceof he.default.Container?Ue+Ne.length():Ue+Ne.index(Xe,Ge)}),Ve=Math.min(Math.max.apply(Math,Se(Be)),this.scroll.length()-1),Ye=Math.min.apply(Math,[Ve].concat(Se(Be)));return new Le(Ye,Ve-Ye)}},{key:"normalizeNative",value:function(Ae){if(!Ie(this.root,Ae.startContainer)||!Ae.collapsed&&!Ie(this.root,Ae.endContainer))return null;var De={start:{node:Ae.startContainer,offset:Ae.startOffset},end:{node:Ae.endContainer,offset:Ae.endOffset},native:Ae};return[De.start,De.end].forEach(function(Me){for(var Be=Me.node,Ve=Me.offset;!(Be instanceof Text)&&Be.childNodes.length>0;)if(Be.childNodes.length>Ve)Be=Be.childNodes[Ve],Ve=0;else if(Be.childNodes.length===Ve)Be=Be.lastChild,Ve=Be instanceof Text?Be.data.length:Be.childNodes.length+1;else break;Me.node=Be,Me.offset=Ve}),De}},{key:"rangeToNative",value:function(Ae){var De=this,Me=Ae.collapsed?[Ae.index]:[Ae.index,Ae.index+Ae.length],Be=[],Ve=this.scroll.length();return Me.forEach(function(Ye,Je){Ye=Math.min(Ve-1,Ye);var vt=void 0,Xe=De.scroll.leaf(Ye),Ge=ne(Xe,2),Ne=Ge[0],Ue=Ge[1],We=Ne.position(Ue,Je!==0),Qe=ne(We,2);vt=Qe[0],Ue=Qe[1],Be.push(vt,Ue)}),Be.length<2&&(Be=Be.concat(Be)),Be}},{key:"scrollIntoView",value:function(Ae){var De=this.lastRange;if(De!=null){var Me=this.getBounds(De.index,De.length);if(Me!=null){var Be=this.scroll.length()-1,Ve=this.scroll.line(Math.min(De.index,Be)),Ye=ne(Ve,1),Je=Ye[0],vt=Je;if(De.length>0){var Xe=this.scroll.line(Math.min(De.index+De.length,Be)),Ge=ne(Xe,1);vt=Ge[0]}if(!(Je==null||vt==null)){var Ne=Ae.getBoundingClientRect();Me.top<Ne.top?Ae.scrollTop-=Ne.top-Me.top:Me.bottom>Ne.bottom&&(Ae.scrollTop+=Me.bottom-Ne.bottom)}}}}},{key:"setNativeRange",value:function(Ae,De){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ae,Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:De,Ve=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Ce.info("setNativeRange",Ae,De,Me,Be),!(Ae!=null&&(this.root.parentNode==null||Ae.parentNode==null||Me.parentNode==null))){var Ye=typeof this.rootDocument.getSelection=="function"?this.rootDocument.getSelection():document.getSelection();if(Ye!=null)if(Ae!=null){this.hasFocus()||this.root.focus();var Je=(this.getNativeRange()||{}).native;if(Je==null||Ve||Ae!==Je.startContainer||De!==Je.startOffset||Me!==Je.endContainer||Be!==Je.endOffset){Ae.tagName=="BR"&&(De=[].indexOf.call(Ae.parentNode.childNodes,Ae),Ae=Ae.parentNode),Me.tagName=="BR"&&(Be=[].indexOf.call(Me.parentNode.childNodes,Me),Me=Me.parentNode);var vt=document.createRange();vt.setStart(Ae,De),vt.setEnd(Me,Be),Ye.removeAllRanges(),Ye.addRange(vt)}}else Ye.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me.default.sources.API;if(typeof De=="string"&&(Me=De,De=!1),Ce.info("setRange",Ae),Ae!=null){var Be=this.rangeToNative(Ae);this.setNativeRange.apply(this,Se(Be).concat([De]))}else this.setNativeRange(null);this.update(Me)}},{key:"update",value:function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me.default.sources.USER,De=this.lastRange,Me=this.getRange(),Be=ne(Me,2),Ve=Be[0],Ye=Be[1];if(this.lastRange=Ve,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,fe.default)(De,this.lastRange)){var Je;!this.composing&&Ye!=null&&Ye.native.collapsed&&Ye.start.node!==this.cursor.textNode&&this.cursor.restore();var vt=[me.default.events.SELECTION_CHANGE,(0,ce.default)(this.lastRange),(0,ce.default)(De),Ae];if((Je=this.emitter).emit.apply(Je,[me.default.events.EDITOR_CHANGE].concat(vt)),Ae!==me.default.sources.SILENT){var Xe;(Xe=this.emitter).emit.apply(Xe,vt)}}}}]),ze}();function Ie(ze,Pe){try{Pe.parentNode}catch{return!1}return Pe instanceof Text&&(Pe=Pe.parentNode),ze.contains(Pe)}te.Range=Le,te.default=qe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(0),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(){return ce(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return ne(ve,[{key:"insertInto",value:function(ye,we){ye.children.length===0?oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"insertInto",this).call(this,ye,we):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),ve}(he.default.Embed);ge.blotName="break",ge.tagName="BR",te.default=ge},function(J,te,re){var ne=this&&this.__extends||function(){var pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ge){fe.__proto__=ge}||function(fe,ge){for(var me in ge)ge.hasOwnProperty(me)&&(fe[me]=ge[me])};return function(fe,ge){pe(fe,ge);function me(){this.constructor=fe}fe.prototype=ge===null?Object.create(ge):(me.prototype=ge.prototype,new me)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(45),de=re(30),he=re(1),ue=function(pe){ne(fe,pe);function fe(ge){var me=pe.call(this,ge)||this;return me.build(),me}return fe.prototype.appendChild=function(ge){this.insertBefore(ge)},fe.prototype.attach=function(){pe.prototype.attach.call(this),this.children.forEach(function(ge){ge.attach()})},fe.prototype.build=function(){var ge=this;this.children=new oe.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(me){try{var ve=ce(me);ge.insertBefore(ve,ge.children.head||void 0)}catch(be){if(be instanceof he.ParchmentError)return;throw be}})},fe.prototype.deleteAt=function(ge,me){if(ge===0&&me===this.length())return this.remove();this.children.forEachAt(ge,me,function(ve,be,ye){ve.deleteAt(be,ye)})},fe.prototype.descendant=function(ge,me){var ve=this.children.find(me),be=ve[0],ye=ve[1];return ge.blotName==null&&ge(be)||ge.blotName!=null&&be instanceof ge?[be,ye]:be instanceof fe?be.descendant(ge,ye):[null,-1]},fe.prototype.descendants=function(ge,me,ve){me===void 0&&(me=0),ve===void 0&&(ve=Number.MAX_VALUE);var be=[],ye=ve;return this.children.forEachAt(me,ve,function(we,Se,_e){(ge.blotName==null&&ge(we)||ge.blotName!=null&&we instanceof ge)&&be.push(we),we instanceof fe&&(be=be.concat(we.descendants(ge,Se,ye))),ye-=_e}),be},fe.prototype.detach=function(){this.children.forEach(function(ge){ge.detach()}),pe.prototype.detach.call(this)},fe.prototype.formatAt=function(ge,me,ve,be){this.children.forEachAt(ge,me,function(ye,we,Se){ye.formatAt(we,Se,ve,be)})},fe.prototype.insertAt=function(ge,me,ve){var be=this.children.find(ge),ye=be[0],we=be[1];if(ye)ye.insertAt(we,me,ve);else{var Se=ve==null?he.create("text",me):he.create(me,ve);this.appendChild(Se)}},fe.prototype.insertBefore=function(ge,me){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(ve){return ge instanceof ve}))throw new he.ParchmentError("Cannot insert "+ge.statics.blotName+" into "+this.statics.blotName);ge.insertInto(this,me)},fe.prototype.length=function(){return this.children.reduce(function(ge,me){return ge+me.length()},0)},fe.prototype.moveChildren=function(ge,me){this.children.forEach(function(ve){ge.insertBefore(ve,me)})},fe.prototype.optimize=function(ge){if(pe.prototype.optimize.call(this,ge),this.children.length===0)if(this.statics.defaultChild!=null){var me=he.create(this.statics.defaultChild);this.appendChild(me),me.optimize(ge)}else this.remove()},fe.prototype.path=function(ge,me){me===void 0&&(me=!1);var ve=this.children.find(ge,me),be=ve[0],ye=ve[1],we=[[this,ge]];return be instanceof fe?we.concat(be.path(ye,me)):(be!=null&&we.push([be,ye]),we)},fe.prototype.removeChild=function(ge){this.children.remove(ge)},fe.prototype.replace=function(ge){ge instanceof fe&&ge.moveChildren(this),pe.prototype.replace.call(this,ge)},fe.prototype.split=function(ge,me){if(me===void 0&&(me=!1),!me){if(ge===0)return this;if(ge===this.length())return this.next}var ve=this.clone();return this.parent.insertBefore(ve,this.next),this.children.forEachAt(ge,this.length(),function(be,ye,we){be=be.split(ye,me),ve.appendChild(be)}),ve},fe.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},fe.prototype.update=function(ge,me){var ve=this,be=[],ye=[];ge.forEach(function(we){we.target===ve.domNode&&we.type==="childList"&&(be.push.apply(be,we.addedNodes),ye.push.apply(ye,we.removedNodes))}),ye.forEach(function(we){if(!(we.parentNode!=null&&we.tagName!=="IFRAME"&&document.body.compareDocumentPosition(we)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var Se=he.find(we);Se!=null&&(Se.domNode.parentNode==null||Se.domNode.parentNode===ve.domNode)&&Se.detach()}}),be.filter(function(we){return we.parentNode==ve.domNode}).sort(function(we,Se){return we===Se?0:we.compareDocumentPosition(Se)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(we){var Se=null;we.nextSibling!=null&&(Se=he.find(we.nextSibling));var _e=ce(we);(_e.next!=Se||_e.next==null)&&(_e.parent!=null&&_e.parent.removeChild(ve),ve.insertBefore(_e,Se||void 0))})},fe}(de.default);function ce(pe){var fe=he.find(pe);if(fe==null)try{fe=he.create(pe)}catch{fe=he.create(he.Scope.INLINE),[].slice.call(pe.childNodes).forEach(function(me){fe.domNode.appendChild(me)}),pe.parentNode&&pe.parentNode.replaceChild(fe.domNode,pe),fe.attach()}return fe}te.default=ue},function(J,te,re){var ne=this&&this.__extends||function(){var pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ge){fe.__proto__=ge}||function(fe,ge){for(var me in ge)ge.hasOwnProperty(me)&&(fe[me]=ge[me])};return function(fe,ge){pe(fe,ge);function me(){this.constructor=fe}fe.prototype=ge===null?Object.create(ge):(me.prototype=ge.prototype,new me)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(12),de=re(31),he=re(17),ue=re(1),ce=function(pe){ne(fe,pe);function fe(ge){var me=pe.call(this,ge)||this;return me.attributes=new de.default(me.domNode),me}return fe.formats=function(ge){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return ge.tagName.toLowerCase()},fe.prototype.format=function(ge,me){var ve=ue.query(ge);ve instanceof oe.default?this.attributes.attribute(ve,me):me&&ve!=null&&(ge!==this.statics.blotName||this.formats()[ge]!==me)&&this.replaceWith(ge,me)},fe.prototype.formats=function(){var ge=this.attributes.values(),me=this.statics.formats(this.domNode);return me!=null&&(ge[this.statics.blotName]=me),ge},fe.prototype.replaceWith=function(ge,me){var ve=pe.prototype.replaceWith.call(this,ge,me);return this.attributes.copy(ve),ve},fe.prototype.update=function(ge,me){var ve=this;pe.prototype.update.call(this,ge,me),ge.some(function(be){return be.target===ve.domNode&&be.type==="attributes"})&&this.attributes.build()},fe.prototype.wrap=function(ge,me){var ve=pe.prototype.wrap.call(this,ge,me);return ve instanceof fe&&ve.statics.scope===this.statics.scope&&this.attributes.move(ve),ve},fe}(he.default);te.default=ce},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(30),de=re(1),he=function(ue){ne(ce,ue);function ce(){return ue!==null&&ue.apply(this,arguments)||this}return ce.value=function(pe){return!0},ce.prototype.index=function(pe,fe){return this.domNode===pe||this.domNode.compareDocumentPosition(pe)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(fe,1):-1},ce.prototype.position=function(pe,fe){var ge=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return pe>0&&(ge+=1),[this.parent.domNode,ge]},ce.prototype.value=function(){var pe;return pe={},pe[this.statics.blotName]=this.statics.value(this.domNode)||!0,pe},ce.scope=de.Scope.INLINE_BLOT,ce}(oe.default);te.default=he},function(J,te,re){var ne=re(11),oe=re(3),de={attributes:{compose:function(ue,ce,pe){typeof ue!="object"&&(ue={}),typeof ce!="object"&&(ce={});var fe=oe(!0,{},ce);pe||(fe=Object.keys(fe).reduce(function(me,ve){return fe[ve]!=null&&(me[ve]=fe[ve]),me},{}));for(var ge in ue)ue[ge]!==void 0&&ce[ge]===void 0&&(fe[ge]=ue[ge]);return Object.keys(fe).length>0?fe:void 0},diff:function(ue,ce){typeof ue!="object"&&(ue={}),typeof ce!="object"&&(ce={});var pe=Object.keys(ue).concat(Object.keys(ce)).reduce(function(fe,ge){return ne(ue[ge],ce[ge])||(fe[ge]=ce[ge]===void 0?null:ce[ge]),fe},{});return Object.keys(pe).length>0?pe:void 0},transform:function(ue,ce,pe){if(typeof ue!="object")return ce;if(typeof ce=="object"){if(!pe)return ce;var fe=Object.keys(ce).reduce(function(ge,me){return ue[me]===void 0&&(ge[me]=ce[me]),ge},{});return Object.keys(fe).length>0?fe:void 0}}},iterator:function(ue){return new he(ue)},length:function(ue){return typeof ue.delete=="number"?ue.delete:typeof ue.retain=="number"?ue.retain:typeof ue.insert=="string"?ue.insert.length:1}};function he(ue){this.ops=ue,this.index=0,this.offset=0}he.prototype.hasNext=function(){return this.peekLength()<1/0},he.prototype.next=function(ue){ue||(ue=1/0);var ce=this.ops[this.index];if(ce){var pe=this.offset,fe=de.length(ce);if(ue>=fe-pe?(ue=fe-pe,this.index+=1,this.offset=0):this.offset+=ue,typeof ce.delete=="number")return{delete:ue};var ge={};return ce.attributes&&(ge.attributes=ce.attributes),typeof ce.retain=="number"?ge.retain=ue:typeof ce.insert=="string"?ge.insert=ce.insert.substr(pe,ue):ge.insert=ce.insert,ge}else return{retain:1/0}},he.prototype.peek=function(){return this.ops[this.index]},he.prototype.peekLength=function(){return this.ops[this.index]?de.length(this.ops[this.index])-this.offset:1/0},he.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},he.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var ue=this.offset,ce=this.index,pe=this.next(),fe=this.ops.slice(this.index);return this.offset=ue,this.index=ce,[pe].concat(fe)}else return[]},J.exports=de},function(J,te){var re=function(){function ne(ve,be){return be!=null&&ve instanceof be}var oe;try{oe=Map}catch{oe=function(){}}var de;try{de=Set}catch{de=function(){}}var he;try{he=Promise}catch{he=function(){}}function ue(ve,be,ye,we,Se){typeof be=="object"&&(ye=be.depth,we=be.prototype,Se=be.includeNonEnumerable,be=be.circular);var _e=[],Ce=[],Le=typeof Buffer<"u";typeof be>"u"&&(be=!0),typeof ye>"u"&&(ye=1/0);function qe(Ie,ze){if(Ie===null)return null;if(ze===0)return Ie;var Pe,Ae;if(typeof Ie!="object")return Ie;if(ne(Ie,oe))Pe=new oe;else if(ne(Ie,de))Pe=new de;else if(ne(Ie,he))Pe=new he(function(Ge,Ne){Ie.then(function(Ue){Ge(qe(Ue,ze-1))},function(Ue){Ne(qe(Ue,ze-1))})});else if(ue.__isArray(Ie))Pe=[];else if(ue.__isRegExp(Ie))Pe=new RegExp(Ie.source,me(Ie)),Ie.lastIndex&&(Pe.lastIndex=Ie.lastIndex);else if(ue.__isDate(Ie))Pe=new Date(Ie.getTime());else{if(Le&&Buffer.isBuffer(Ie))return Buffer.allocUnsafe?Pe=Buffer.allocUnsafe(Ie.length):Pe=new Buffer(Ie.length),Ie.copy(Pe),Pe;ne(Ie,Error)?Pe=Object.create(Ie):typeof we>"u"?(Ae=Object.getPrototypeOf(Ie),Pe=Object.create(Ae)):(Pe=Object.create(we),Ae=we)}if(be){var De=_e.indexOf(Ie);if(De!=-1)return Ce[De];_e.push(Ie),Ce.push(Pe)}ne(Ie,oe)&&Ie.forEach(function(Ge,Ne){var Ue=qe(Ne,ze-1),We=qe(Ge,ze-1);Pe.set(Ue,We)}),ne(Ie,de)&&Ie.forEach(function(Ge){var Ne=qe(Ge,ze-1);Pe.add(Ne)});for(var Me in Ie){var Be;Ae&&(Be=Object.getOwnPropertyDescriptor(Ae,Me)),!(Be&&Be.set==null)&&(Pe[Me]=qe(Ie[Me],ze-1))}if(Object.getOwnPropertySymbols)for(var Ve=Object.getOwnPropertySymbols(Ie),Me=0;Me<Ve.length;Me++){var Ye=Ve[Me],Je=Object.getOwnPropertyDescriptor(Ie,Ye);Je&&!Je.enumerable&&!Se||(Pe[Ye]=qe(Ie[Ye],ze-1),Je.enumerable||Object.defineProperty(Pe,Ye,{enumerable:!1}))}if(Se)for(var vt=Object.getOwnPropertyNames(Ie),Me=0;Me<vt.length;Me++){var Xe=vt[Me],Je=Object.getOwnPropertyDescriptor(Ie,Xe);Je&&Je.enumerable||(Pe[Xe]=qe(Ie[Xe],ze-1),Object.defineProperty(Pe,Xe,{enumerable:!1}))}return Pe}return qe(ve,ye)}ue.clonePrototype=function(be){if(be===null)return null;var ye=function(){};return ye.prototype=be,new ye};function ce(ve){return Object.prototype.toString.call(ve)}ue.__objToStr=ce;function pe(ve){return typeof ve=="object"&&ce(ve)==="[object Date]"}ue.__isDate=pe;function fe(ve){return typeof ve=="object"&&ce(ve)==="[object Array]"}ue.__isArray=fe;function ge(ve){return typeof ve=="object"&&ce(ve)==="[object RegExp]"}ue.__isRegExp=ge;function me(ve){var be="";return ve.global&&(be+="g"),ve.ignoreCase&&(be+="i"),ve.multiline&&(be+="m"),be}return ue.__getRegExpFlags=me,ue}();typeof J=="object"&&J.exports&&(J.exports=re)},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function Pe(Ae,De){var Me=[],Be=!0,Ve=!1,Ye=void 0;try{for(var Je=Ae[Symbol.iterator](),vt;!(Be=(vt=Je.next()).done)&&(Me.push(vt.value),!(De&&Me.length===De));Be=!0);}catch(Xe){Ve=!0,Ye=Xe}finally{try{!Be&&Je.return&&Je.return()}finally{if(Ve)throw Ye}}return Me}return function(Ae,De){if(Array.isArray(Ae))return Ae;if(Symbol.iterator in Object(Ae))return Pe(Ae,De);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(){function Pe(Ae,De){for(var Me=0;Me<De.length;Me++){var Be=De[Me];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Ae,Be.key,Be)}}return function(Ae,De,Me){return De&&Pe(Ae.prototype,De),Me&&Pe(Ae,Me),Ae}}(),de=function Pe(Ae,De,Me){Ae===null&&(Ae=Function.prototype);var Be=Object.getOwnPropertyDescriptor(Ae,De);if(Be===void 0){var Ve=Object.getPrototypeOf(Ae);return Ve===null?void 0:Pe(Ve,De,Me)}else{if("value"in Be)return Be.value;var Ye=Be.get;return Ye===void 0?void 0:Ye.call(Me)}},he=re(0),ue=_e(he),ce=re(8),pe=_e(ce),fe=re(4),ge=_e(fe),me=re(16),ve=_e(me),be=re(13),ye=_e(be),we=re(25),Se=_e(we);function _e(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}function Ce(Pe,Ae){if(!(Pe instanceof Ae))throw new TypeError("Cannot call a class as a function")}function Le(Pe,Ae){if(!Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ae&&(typeof Ae=="object"||typeof Ae=="function")?Ae:Pe}function qe(Pe,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ae);Pe.prototype=Object.create(Ae&&Ae.prototype,{constructor:{value:Pe,enumerable:!1,writable:!0,configurable:!0}}),Ae&&(Object.setPrototypeOf?Object.setPrototypeOf(Pe,Ae):Pe.__proto__=Ae)}function Ie(Pe){return Pe instanceof ge.default||Pe instanceof fe.BlockEmbed}var ze=function(Pe){qe(Ae,Pe);function Ae(De,Me){Ce(this,Ae);var Be=Le(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,De));return Be.emitter=Me.emitter,Array.isArray(Me.whitelist)&&(Be.whitelist=Me.whitelist.reduce(function(Ve,Ye){return Ve[Ye]=!0,Ve},{})),Be.domNode.addEventListener("DOMNodeInserted",function(){}),Be.optimize(),Be.enable(),Be}return oe(Ae,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(Me,Be){var Ve=this.line(Me),Ye=ne(Ve,2),Je=Ye[0],vt=Ye[1],Xe=this.line(Me+Be),Ge=ne(Xe,1),Ne=Ge[0];if(de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"deleteAt",this).call(this,Me,Be),Ne!=null&&Je!==Ne&&vt>0){if(Je instanceof fe.BlockEmbed||Ne instanceof fe.BlockEmbed){this.optimize();return}if(Je instanceof ye.default){var Ue=Je.newlineIndex(Je.length(),!0);if(Ue>-1&&(Je=Je.split(Ue+1),Je===Ne)){this.optimize();return}}else if(Ne instanceof ye.default){var We=Ne.newlineIndex(0);We>-1&&Ne.split(We+1)}var Qe=Ne.children.head instanceof ve.default?null:Ne.children.head;Je.moveChildren(Ne,Qe),Je.remove()}this.optimize()}},{key:"enable",value:function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",Me)}},{key:"formatAt",value:function(Me,Be,Ve,Ye){this.whitelist!=null&&!this.whitelist[Ve]||(de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"formatAt",this).call(this,Me,Be,Ve,Ye),this.optimize())}},{key:"insertAt",value:function(Me,Be,Ve){if(!(Ve!=null&&this.whitelist!=null&&!this.whitelist[Be])){if(Me>=this.length())if(Ve==null||ue.default.query(Be,ue.default.Scope.BLOCK)==null){var Ye=ue.default.create(this.statics.defaultChild);this.appendChild(Ye),Ve==null&&Be.endsWith(`
|
|
6050
|
-
`)&&(Be=Be.slice(0,-1)),Ye.insertAt(0,Be,Ve)}else{var Je=ue.default.create(Be,Ve);this.appendChild(Je)}else de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"insertAt",this).call(this,Me,Be,Ve);this.optimize()}}},{key:"insertBefore",value:function(Me,Be){if(Me.statics.scope===ue.default.Scope.INLINE_BLOT){var Ve=ue.default.create(this.statics.defaultChild);Ve.appendChild(Me),Me=Ve}de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"insertBefore",this).call(this,Me,Be)}},{key:"leaf",value:function(Me){return this.path(Me).pop()||[null,-1]}},{key:"line",value:function(Me){return Me===this.length()?this.line(Me-1):this.descendant(Ie,Me)}},{key:"lines",value:function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,Ve=function Ye(Je,vt,Xe){var Ge=[],Ne=Xe;return Je.children.forEachAt(vt,Xe,function(Ue,We,Qe){Ie(Ue)?Ge.push(Ue):Ue instanceof ue.default.Container&&(Ge=Ge.concat(Ye(Ue,We,Ne))),Ne-=Qe}),Ge};return Ve(this,Me,Be)}},{key:"optimize",value:function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"optimize",this).call(this,Me,Be),Me.length>0&&this.emitter.emit(pe.default.events.SCROLL_OPTIMIZE,Me,Be))}},{key:"path",value:function(Me){return de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"path",this).call(this,Me).slice(1)}},{key:"update",value:function(Me){if(this.batch!==!0){var Be=pe.default.sources.USER;typeof Me=="string"&&(Be=Me),Array.isArray(Me)||(Me=this.observer.takeRecords()),Me.length>0&&this.emitter.emit(pe.default.events.SCROLL_BEFORE_UPDATE,Be,Me),de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"update",this).call(this,Me.concat([])),Me.length>0&&this.emitter.emit(pe.default.events.SCROLL_UPDATE,Be,Me)}}}]),Ae}(ue.default.Scroll);ze.blotName="scroll",ze.className="ql-editor",ze.tagName="DIV",ze.defaultChild="block",ze.allowedChildren=[ge.default,fe.BlockEmbed,Se.default],te.default=ze},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.SHORTKEY=te.default=void 0;var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(je){return typeof je}:function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je},oe=function(){function je(Ke,it){var nt=[],bt=!0,
|
|
6051
|
-
`,Dt).retain(bt.length()-
|
|
6052
|
-
`,it.format).retain(
|
|
6053
|
-
`,nt,Ce.default.sources.USER),this.quill.setSelection(je.index+1,Ce.default.sources.SILENT),this.quill.focus(),Object.keys(Ke.format).forEach(function(bt){nt[bt]==null&&(Array.isArray(Ke.format[bt])||bt!=="link"&&it.quill.format(bt,Ke.format[bt],Ce.default.sources.USER))})}function We(je){return{key:Je.keys.TAB,shiftKey:!je,format:{"code-block":!0},handler:function(it){var nt=Se.default.query("code-block"),bt=it.index,
|
|
6054
|
-
`);jt=0,mt.forEach(function(xt,St){je?(Bt.insertAt(rr+jt,nt.TAB),jt+=nt.TAB.length,St===0?bt+=nt.TAB.length:Et+=nt.TAB.length):xt.startsWith(nt.TAB)&&(Bt.deleteAt(rr+jt,nt.TAB.length),jt-=nt.TAB.length,St===0?bt-=nt.TAB.length:Et-=nt.TAB.length),jt+=xt.length+1}),this.quill.update(Ce.default.sources.USER),this.quill.setSelection(bt,Et,Ce.default.sources.SILENT)}}}}function Qe(je){return{key:je[0].toUpperCase(),shortKey:!0,handler:function(it,nt){this.quill.format(je,!nt.format[je],Ce.default.sources.USER)}}}function Ze(je){if(typeof je=="string"||typeof je=="number")return Ze({key:je});if((typeof je>"u"?"undefined":ne(je))==="object"&&(je=(0,ue.default)(je,!1)),typeof je.key=="string")if(Je.keys[je.key.toUpperCase()]!=null)je.key=Je.keys[je.key.toUpperCase()];else if(je.key.length===1)je.key=je.key.toUpperCase().charCodeAt(0);else return null;return je.shortKey&&(je[Ye]=je.shortKey,delete je.shortKey),je}te.default=Je,te.SHORTKEY=Ye},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function ye(we,Se){var _e=[],Ce=!0,Le=!1,qe=void 0;try{for(var Ie=we[Symbol.iterator](),ze;!(Ce=(ze=Ie.next()).done)&&(_e.push(ze.value),!(Se&&_e.length===Se));Ce=!0);}catch(Pe){Le=!0,qe=Pe}finally{try{!Ce&&Ie.return&&Ie.return()}finally{if(Le)throw qe}}return _e}return function(we,Se){if(Array.isArray(we))return we;if(Symbol.iterator in Object(we))return ye(we,Se);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function ye(we,Se,_e){we===null&&(we=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(we,Se);if(Ce===void 0){var Le=Object.getPrototypeOf(we);return Le===null?void 0:ye(Le,Se,_e)}else{if("value"in Ce)return Ce.value;var qe=Ce.get;return qe===void 0?void 0:qe.call(_e)}},de=function(){function ye(we,Se){for(var _e=0;_e<Se.length;_e++){var Ce=Se[_e];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(we,Ce.key,Ce)}}return function(we,Se,_e){return Se&&ye(we.prototype,Se),_e&&ye(we,_e),we}}(),he=re(0),ue=fe(he),ce=re(7),pe=fe(ce);function fe(ye){return ye&&ye.__esModule?ye:{default:ye}}function ge(ye,we){if(!(ye instanceof we))throw new TypeError("Cannot call a class as a function")}function me(ye,we){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ye}function ve(ye,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ye.prototype=Object.create(we&&we.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,we):ye.__proto__=we)}var be=function(ye){ve(we,ye),de(we,null,[{key:"value",value:function(){}}]);function we(Se,_e){ge(this,we);var Ce=me(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,Se));return Ce.selection=_e,Ce.textNode=document.createTextNode(we.CONTENTS),Ce.domNode.appendChild(Ce.textNode),Ce._length=0,Ce}return de(we,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(_e,Ce){if(this._length!==0)return oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"format",this).call(this,_e,Ce);for(var Le=this,qe=0;Le!=null&&Le.statics.scope!==ue.default.Scope.BLOCK_BLOT;)qe+=Le.offset(Le.parent),Le=Le.parent;Le!=null&&(this._length=we.CONTENTS.length,Le.optimize(),Le.formatAt(qe,we.CONTENTS.length,_e,Ce),this._length=0)}},{key:"index",value:function(_e,Ce){return _e===this.textNode?0:oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"index",this).call(this,_e,Ce)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var _e=this.textNode,Ce=this.selection.getNativeRange(),Le=void 0,qe=void 0,Ie=void 0;if(Ce!=null&&Ce.start.node===_e&&Ce.end.node===_e){var ze=[_e,Ce.start.offset,Ce.end.offset];Le=ze[0],qe=ze[1],Ie=ze[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==we.CONTENTS){var Pe=this.textNode.data.split(we.CONTENTS).join("");this.next instanceof pe.default?(Le=this.next.domNode,this.next.insertAt(0,Pe),this.textNode.data=we.CONTENTS):(this.textNode.data=Pe,this.parent.insertBefore(ue.default.create(this.textNode),this),this.textNode=document.createTextNode(we.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),qe!=null){var Ae=[qe,Ie].map(function(Me){return Math.max(0,Math.min(Le.data.length,Me-1))}),De=ne(Ae,2);return qe=De[0],Ie=De[1],{startNode:Le,startOffset:qe,endNode:Le,endOffset:Ie}}}}},{key:"update",value:function(_e,Ce){var Le=this;if(_e.some(function(Ie){return Ie.type==="characterData"&&Ie.target===Le.textNode})){var qe=this.restore();qe&&(Ce.range=qe)}}},{key:"value",value:function(){return""}}]),we}(ue.default.Embed);be.blotName="cursor",be.className="ql-cursor",be.tagName="span",be.CONTENTS="\uFEFF",te.default=be},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(0),oe=ue(ne),de=re(4),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(){return ce(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return ve}(oe.default.Container);ge.allowedChildren=[he.default,de.BlockEmbed,ge],te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.ColorStyle=te.ColorClass=te.ColorAttributor=void 0;var ne=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),oe=function be(ye,we,Se){ye===null&&(ye=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ye,we);if(_e===void 0){var Ce=Object.getPrototypeOf(ye);return Ce===null?void 0:be(Ce,we,Se)}else{if("value"in _e)return _e.value;var Le=_e.get;return Le===void 0?void 0:Le.call(Se)}},de=re(0),he=ue(de);function ue(be){return be&&be.__esModule?be:{default:be}}function ce(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function pe(be,ye){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:be}function fe(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ye):be.__proto__=ye)}var ge=function(be){fe(ye,be);function ye(){return ce(this,ye),pe(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return ne(ye,[{key:"value",value:function(Se){var _e=oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"value",this).call(this,Se);return _e.startsWith("rgb(")?(_e=_e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+_e.split(",").map(function(Ce){return("00"+parseInt(Ce).toString(16)).slice(-2)}).join("")):_e}}]),ye}(he.default.Attributor.Style),me=new he.default.Attributor.Class("color","ql-color",{scope:he.default.Scope.INLINE}),ve=new ge("color","color",{scope:he.default.Scope.INLINE});te.ColorAttributor=ge,te.ColorClass=me,te.ColorStyle=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.sanitize=te.default=void 0;var ne=function(){function ve(be,ye){for(var we=0;we<ye.length;we++){var Se=ye[we];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(be,Se.key,Se)}}return function(be,ye,we){return ye&&ve(be.prototype,ye),we&&ve(be,we),be}}(),oe=function ve(be,ye,we){be===null&&(be=Function.prototype);var Se=Object.getOwnPropertyDescriptor(be,ye);if(Se===void 0){var _e=Object.getPrototypeOf(be);return _e===null?void 0:ve(_e,ye,we)}else{if("value"in Se)return Se.value;var Ce=Se.get;return Ce===void 0?void 0:Ce.call(we)}},de=re(6),he=ue(de);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function ce(ve,be){if(!(ve instanceof be))throw new TypeError("Cannot call a class as a function")}function pe(ve,be){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:ve}function fe(ve,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);ve.prototype=Object.create(be&&be.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,be):ve.__proto__=be)}var ge=function(ve){fe(be,ve);function be(){return ce(this,be),pe(this,(be.__proto__||Object.getPrototypeOf(be)).apply(this,arguments))}return ne(be,[{key:"format",value:function(we,Se){if(we!==this.statics.blotName||!Se)return oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"format",this).call(this,we,Se);Se=this.constructor.sanitize(Se),this.domNode.setAttribute("href",Se)}}],[{key:"create",value:function(we){var Se=oe(be.__proto__||Object.getPrototypeOf(be),"create",this).call(this,we);return we=this.sanitize(we),Se.setAttribute("href",we),Se.setAttribute("target","_blank"),Se}},{key:"formats",value:function(we){return we.getAttribute("href")}},{key:"sanitize",value:function(we){return me(we,this.PROTOCOL_WHITELIST)?we:this.SANITIZED_URL}}]),be}(he.default);ge.blotName="link",ge.tagName="A",ge.SANITIZED_URL="about:blank",ge.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function me(ve,be){var ye=document.createElement("a");ye.href=ve;var we=ye.href.slice(0,ye.href.indexOf(":"));return be.indexOf(we)>-1}te.default=ge,te.sanitize=me},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(be){return typeof be}:function(be){return be&&typeof Symbol=="function"&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be},oe=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),de=re(23),he=pe(de),ue=re(108),ce=pe(ue);function pe(be){return be&&be.__esModule?be:{default:be}}function fe(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}var ge=0;function me(be,ye){be.setAttribute(ye,be.getAttribute(ye)!=="true")}var ve=function(){function be(ye){var we=this;fe(this,be),this.select=ye,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){we.togglePicker()}),this.label.addEventListener("keydown",function(Se){switch(Se.keyCode){case he.default.keys.ENTER:we.togglePicker();break;case he.default.keys.ESCAPE:we.escape(),Se.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return oe(be,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),me(this.label,"aria-expanded"),me(this.options,"aria-hidden")}},{key:"buildItem",value:function(we){var Se=this,_e=document.createElement("span");return _e.tabIndex="0",_e.setAttribute("role","button"),_e.classList.add("ql-picker-item"),we.hasAttribute("value")&&_e.setAttribute("data-value",we.getAttribute("value")),we.textContent&&_e.setAttribute("data-label",we.textContent),_e.addEventListener("click",function(){Se.selectItem(_e,!0)}),_e.addEventListener("keydown",function(Ce){switch(Ce.keyCode){case he.default.keys.ENTER:Se.selectItem(_e,!0),Ce.preventDefault();break;case he.default.keys.ESCAPE:Se.escape(),Ce.preventDefault();break}}),_e}},{key:"buildLabel",value:function(){var we=document.createElement("span");return we.classList.add("ql-picker-label"),we.innerHTML=ce.default,we.tabIndex="0",we.setAttribute("role","button"),we.setAttribute("aria-expanded","false"),this.container.appendChild(we),we}},{key:"buildOptions",value:function(){var we=this,Se=document.createElement("span");Se.classList.add("ql-picker-options"),Se.setAttribute("aria-hidden","true"),Se.tabIndex="-1",Se.id="ql-picker-options-"+ge,ge+=1,this.label.setAttribute("aria-controls",Se.id),this.options=Se,[].slice.call(this.select.options).forEach(function(_e){var Ce=we.buildItem(_e);Se.appendChild(Ce),_e.selected===!0&&we.selectItem(Ce)}),this.container.appendChild(Se)}},{key:"buildPicker",value:function(){var we=this;[].slice.call(this.select.attributes).forEach(function(Se){we.container.setAttribute(Se.name,Se.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var we=this;this.close(),setTimeout(function(){return we.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(we){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=this.container.querySelector(".ql-selected");if(we!==_e&&(_e!=null&&_e.classList.remove("ql-selected"),we!=null&&(we.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(we.parentNode.children,we),we.hasAttribute("data-value")?this.label.setAttribute("data-value",we.getAttribute("data-value")):this.label.removeAttribute("data-value"),we.hasAttribute("data-label")?this.label.setAttribute("data-label",we.getAttribute("data-label")):this.label.removeAttribute("data-label"),Se))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":ne(Event))==="object"){var Ce=document.createEvent("Event");Ce.initEvent("change",!0,!0),this.select.dispatchEvent(Ce)}this.close()}}},{key:"update",value:function(){var we=void 0;if(this.select.selectedIndex>-1){var Se=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];we=this.select.options[this.select.selectedIndex],this.selectItem(Se)}else this.selectItem(null);var _e=we!=null&&we!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",_e)}}]),be}();te.default=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(0),oe=Ve(ne),de=re(5),he=Ve(de),ue=re(4),ce=Ve(ue),pe=re(16),fe=Ve(pe),ge=re(25),me=Ve(ge),ve=re(24),be=Ve(ve),ye=re(36),we=Ve(ye),Se=re(6),_e=Ve(Se),Ce=re(22),Le=Ve(Ce),qe=re(7),Ie=Ve(qe),ze=re(56),Pe=Ve(ze),Ae=re(43),De=Ve(Ae),Me=re(23),Be=Ve(Me);function Ve(Ye){return Ye&&Ye.__esModule?Ye:{default:Ye}}he.default.register({"blots/block":ce.default,"blots/block/embed":ue.BlockEmbed,"blots/break":fe.default,"blots/container":me.default,"blots/cursor":be.default,"blots/embed":we.default,"blots/inline":_e.default,"blots/scroll":Le.default,"blots/text":Ie.default,"modules/clipboard":Pe.default,"modules/history":De.default,"modules/keyboard":Be.default}),oe.default.register(ce.default,fe.default,be.default,_e.default,Le.default,Ie.default),te.default=he.default},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(1),oe=function(){function de(he){this.domNode=he,this.domNode[ne.DATA_KEY]={blot:this}}return Object.defineProperty(de.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),de.create=function(he){if(this.tagName==null)throw new ne.ParchmentError("Blot definition missing tagName");var ue;return Array.isArray(this.tagName)?(typeof he=="string"&&(he=he.toUpperCase(),parseInt(he).toString()===he&&(he=parseInt(he))),typeof he=="number"?ue=document.createElement(this.tagName[he-1]):this.tagName.indexOf(he)>-1?ue=document.createElement(he):ue=document.createElement(this.tagName[0])):ue=document.createElement(this.tagName),this.className&&ue.classList.add(this.className),ue},de.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},de.prototype.clone=function(){var he=this.domNode.cloneNode(!1);return ne.create(he)},de.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[ne.DATA_KEY]},de.prototype.deleteAt=function(he,ue){var ce=this.isolate(he,ue);ce.remove()},de.prototype.formatAt=function(he,ue,ce,pe){var fe=this.isolate(he,ue);if(ne.query(ce,ne.Scope.BLOT)!=null&&pe)fe.wrap(ce,pe);else if(ne.query(ce,ne.Scope.ATTRIBUTE)!=null){var ge=ne.create(this.statics.scope);fe.wrap(ge),ge.format(ce,pe)}},de.prototype.insertAt=function(he,ue,ce){var pe=ce==null?ne.create("text",ue):ne.create(ue,ce),fe=this.split(he);this.parent.insertBefore(pe,fe)},de.prototype.insertInto=function(he,ue){ue===void 0&&(ue=null),this.parent!=null&&this.parent.children.remove(this);var ce=null;he.children.insertBefore(this,ue),ue!=null&&(ce=ue.domNode),(this.domNode.parentNode!=he.domNode||this.domNode.nextSibling!=ce)&&he.domNode.insertBefore(this.domNode,ce),this.parent=he,this.attach()},de.prototype.isolate=function(he,ue){var ce=this.split(he);return ce.split(ue),ce},de.prototype.length=function(){return 1},de.prototype.offset=function(he){return he===void 0&&(he=this.parent),this.parent==null||this==he?0:this.parent.children.offset(this)+this.parent.offset(he)},de.prototype.optimize=function(he){this.domNode[ne.DATA_KEY]!=null&&delete this.domNode[ne.DATA_KEY].mutations},de.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},de.prototype.replace=function(he){he.parent!=null&&(he.parent.insertBefore(this,he.next),he.remove())},de.prototype.replaceWith=function(he,ue){var ce=typeof he=="string"?ne.create(he,ue):he;return ce.replace(this),ce},de.prototype.split=function(he,ue){return he===0?this:this.next},de.prototype.update=function(he,ue){},de.prototype.wrap=function(he,ue){var ce=typeof he=="string"?ne.create(he,ue):he;return this.parent!=null&&this.parent.insertBefore(ce,this.next),ce.appendChild(this),ce},de.blotName="abstract",de}();te.default=oe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(12),oe=re(32),de=re(33),he=re(1),ue=function(){function ce(pe){this.attributes={},this.domNode=pe,this.build()}return ce.prototype.attribute=function(pe,fe){fe?pe.add(this.domNode,fe)&&(pe.value(this.domNode)!=null?this.attributes[pe.attrName]=pe:delete this.attributes[pe.attrName]):(pe.remove(this.domNode),delete this.attributes[pe.attrName])},ce.prototype.build=function(){var pe=this;this.attributes={};var fe=ne.default.keys(this.domNode),ge=oe.default.keys(this.domNode),me=de.default.keys(this.domNode);fe.concat(ge).concat(me).forEach(function(ve){var be=he.query(ve,he.Scope.ATTRIBUTE);be instanceof ne.default&&(pe.attributes[be.attrName]=be)})},ce.prototype.copy=function(pe){var fe=this;Object.keys(this.attributes).forEach(function(ge){var me=fe.attributes[ge].value(fe.domNode);pe.format(ge,me)})},ce.prototype.move=function(pe){var fe=this;this.copy(pe),Object.keys(this.attributes).forEach(function(ge){fe.attributes[ge].remove(fe.domNode)}),this.attributes={}},ce.prototype.values=function(){var pe=this;return Object.keys(this.attributes).reduce(function(fe,ge){return fe[ge]=pe.attributes[ge].value(pe.domNode),fe},{})},ce}();te.default=ue},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(12);function de(ue,ce){var pe=ue.getAttribute("class")||"";return pe.split(/\s+/).filter(function(fe){return fe.indexOf(ce+"-")===0})}var he=function(ue){ne(ce,ue);function ce(){return ue!==null&&ue.apply(this,arguments)||this}return ce.keys=function(pe){return(pe.getAttribute("class")||"").split(/\s+/).map(function(fe){return fe.split("-").slice(0,-1).join("-")})},ce.prototype.add=function(pe,fe){return this.canAdd(pe,fe)?(this.remove(pe),pe.classList.add(this.keyName+"-"+fe),!0):!1},ce.prototype.remove=function(pe){var fe=de(pe,this.keyName);fe.forEach(function(ge){pe.classList.remove(ge)}),pe.classList.length===0&&pe.removeAttribute("class")},ce.prototype.value=function(pe){var fe=de(pe,this.keyName)[0]||"",ge=fe.slice(this.keyName.length+1);return this.canAdd(pe,ge)?ge:""},ce}(oe.default);te.default=he},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(12);function de(ue){var ce=ue.split("-"),pe=ce.slice(1).map(function(fe){return fe[0].toUpperCase()+fe.slice(1)}).join("");return ce[0]+pe}var he=function(ue){ne(ce,ue);function ce(){return ue!==null&&ue.apply(this,arguments)||this}return ce.keys=function(pe){return(pe.getAttribute("style")||"").split(";").map(function(fe){var ge=fe.split(":");return ge[0].trim()})},ce.prototype.add=function(pe,fe){return this.canAdd(pe,fe)?(pe.style[de(this.keyName)]=fe,!0):!1},ce.prototype.remove=function(pe){pe.style[de(this.keyName)]="",pe.getAttribute("style")||pe.removeAttribute("style")},ce.prototype.value=function(pe){var fe=pe.style[de(this.keyName)];return this.canAdd(pe,fe)?fe:""},ce}(oe.default);te.default=he},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.getRange=qe,te.internalGetShadowSelection=ze;var ne=te.SHADOW_SELECTIONCHANGE="-shadow-selectionchange",oe="attachShadow"in Element.prototype&&"getRootNode"in Element.prototype,de=!!(oe&&document.createElement("div").attachShadow({mode:"open"}).getSelection),he=window.ShadyDOM&&window.ShadyDOM.inUse,ue=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ce=!oe||he||!de&&!ue,pe=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE];function fe(Pe){return pe.includes(Pe.nodeType)}function ge(Pe,Ae,De){var Me=Ae.childNodes||Ae.children;if(!Me)return Ae;for(var Be=0;Be<Me.length;++Be){var Ve=De?Be:Me.length-1-Be,Ye=Me[Ve];if(fe(Ye)&&Pe.containsNode(Ye,!0))return Pe.containsNode(Ye,!1)?Ye:ge(Pe,Ye,De)}return Ae}var me=function(){if(de||ce)return document.addEventListener("selectionchange",function(){document.dispatchEvent(new CustomEvent(ne))}),function(){};var Pe=!1,Ae=[];return document.addEventListener("selectionchange",function(De){Pe||(document.dispatchEvent(new CustomEvent(ne)),Pe=!0,window.setTimeout(function(){Pe=!1},2),Ae.forEach(function(Me){return Me(De)}))}),function(De){return Ae.push(De)}}(),ve=!1,be=null;me(function(){var Pe=window.getSelection();Pe.type==="Caret"?ve=!0:ve&&!be&&(be=Promise.resolve(!0).then(function(){ve=!1,be=null}))});function ye(Pe,Ae,De){for(var Me=Ae;(Ae=Se(Ae,De))&&Ae.contains(Me););return Ae?Ae instanceof Element&&Pe.containsNode(Ae,!0):!1}function we(Pe,Ae,De){if(Pe.type==="Range"){var Me=function(){return Pe.toString().length},Be=Me();if(Be===1&&ve&&Ae===De){Pe.extend(Ae,0),Pe.collapseToEnd();return}var Ve=void 0;if(Pe.modify("extend","forward","character"),Ve=Me(),Ve>Be||ye(Pe,De,!0))return Pe.modify("extend","backward","character"),!0;if(Ve<Be||!Pe.containsNode(Ae))return Pe.modify("extend","backward","character"),!1;if(Pe.modify("extend","backward","character"),Ve=Me(),Ve>Be||ye(Pe,Ae,!1))return Pe.modify("extend","forward","character"),!1;if(Ve<Be||!Pe.containsNode(De))return Pe.modify("extend","forward","character"),!0}}function Se(Pe,Ae){if(!Ae)return Pe.previousSibling||Pe.parentNode||null;for(;Pe;){if(Pe.nextSibling)return Pe.nextSibling;Pe=Pe.parentNode}return null}function _e(Pe){return Pe.nodeType!==Node.TEXT_NODE?0:/^\s*/.exec(Pe.textContent)[0].length}function Ce(Pe){if(Pe.nodeType!==Node.TEXT_NODE)return 0;var Ae=/\s*$/.exec(Pe.textContent)[0].length;return Ae?Ae-1:0}var Le=new Map;function qe(Pe){if(de||ce){var Ae=(ce?document:Pe).getSelection();return Ae.rangeCount?Ae.getRangeAt(0):null}var De=Le.get(Pe);if(De)return De;var Me=ze(Pe);return Le.set(Pe,Me.range),window.setTimeout(function(){Le.delete(Pe)},0),Me.range}var Ie=document.createTextNode("");function ze(Pe){var Ae=document.createRange(),De=window.getSelection();if(!De.containsNode(Pe.host,!0))return{range:null,mode:"none"};Pe.insertBefore(Ie,Pe.childNodes[0]);var Me=De.containsNode(Ie);if(Ie.remove(),Me)return{range:null,mode:"outside-before"};Pe.appendChild(Ie);var Be=De.containsNode(Ie);if(Ie.remove(),Be)return{range:null,mode:"outside-after"};var Ve=function(){return De.toString().length};if(!(De.type==="Caret"||De.type==="Range"))throw new TypeError("unexpected type: "+De.type);var Ye=ge(De,Pe,!0),Je=void 0,vt=void 0;if(De.type==="Range"&&(Je=ge(De,Pe,!1),vt=we(De,Ye,Je)),De.type==="Caret"){De.extend(Ye,0);var Xe=Ve();return De.collapseToEnd(),Ae.setStart(Ye,Xe),Ae.setEnd(Ye,Xe),{range:Ae,mode:"caret"}}else if(vt===void 0){if(De.type!=="Range")throw new TypeError("unexpected type: "+De.type);return Ae.setStart(Ye,0),Ae.setEnd(Je,Je.length),{range:Ae,mode:"all"}}var Ge=Ve(),Ne=void 0,Ue=void 0,We=Je.length-Ce(Je);return vt?(De.extend(Ye,0),Ne=Ve()+_e(Ye),De.extend(Je,We),Ue=We-(Ve()-Ge),De.extend(Je,Ue)):(De.extend(Je,We),Ue=We-Ve(),De.extend(Ye,0),Ne=Ve()-Ge+_e(Ye),De.extend(Ye,Ne)),Ae.setStart(Ye,Ne),Ae.setEnd(Je,Ue),{mode:vt?"right":"left",range:Ae}}},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function he(ue,ce){for(var pe=0;pe<ce.length;pe++){var fe=ce[pe];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ue,fe.key,fe)}}return function(ue,ce,pe){return ce&&he(ue.prototype,ce),pe&&he(ue,pe),ue}}();function oe(he,ue){if(!(he instanceof ue))throw new TypeError("Cannot call a class as a function")}var de=function(){function he(ue,ce){oe(this,he),this.quill=ue,this.options=ce,this.modules={}}return ne(he,[{key:"init",value:function(){var ce=this;Object.keys(this.options.modules).forEach(function(pe){ce.modules[pe]==null&&ce.addModule(pe)})}},{key:"addModule",value:function(ce){var pe=this.quill.constructor.import("modules/"+ce);return this.modules[ce]=new pe(this.quill,this.options.modules[ce]||{}),this.modules[ce]}}]),he}();de.DEFAULTS={modules:{}},de.themes={default:de},te.default=de},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function ye(we,Se){for(var _e=0;_e<Se.length;_e++){var Ce=Se[_e];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(we,Ce.key,Ce)}}return function(we,Se,_e){return Se&&ye(we.prototype,Se),_e&&ye(we,_e),we}}(),oe=function ye(we,Se,_e){we===null&&(we=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(we,Se);if(Ce===void 0){var Le=Object.getPrototypeOf(we);return Le===null?void 0:ye(Le,Se,_e)}else{if("value"in Ce)return Ce.value;var qe=Ce.get;return qe===void 0?void 0:qe.call(_e)}},de=re(0),he=pe(de),ue=re(7),ce=pe(ue);function pe(ye){return ye&&ye.__esModule?ye:{default:ye}}function fe(ye,we){if(!(ye instanceof we))throw new TypeError("Cannot call a class as a function")}function ge(ye,we){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ye}function me(ye,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ye.prototype=Object.create(we&&we.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,we):ye.__proto__=we)}var ve="\uFEFF",be=function(ye){me(we,ye);function we(Se){fe(this,we);var _e=ge(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,Se));return _e.contentNode=document.createElement("span"),_e.contentNode.setAttribute("contenteditable",!1),[].slice.call(_e.domNode.childNodes).forEach(function(Ce){_e.contentNode.appendChild(Ce)}),_e.leftGuard=document.createTextNode(ve),_e.rightGuard=document.createTextNode(ve),_e.domNode.appendChild(_e.leftGuard),_e.domNode.appendChild(_e.contentNode),_e.domNode.appendChild(_e.rightGuard),_e}return ne(we,[{key:"index",value:function(_e,Ce){return _e===this.leftGuard?0:_e===this.rightGuard?1:oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"index",this).call(this,_e,Ce)}},{key:"restore",value:function(_e){var Ce=void 0,Le=void 0,qe=_e.data.split(ve).join("");if(_e===this.leftGuard)if(this.prev instanceof ce.default){var Ie=this.prev.length();this.prev.insertAt(Ie,qe),Ce={startNode:this.prev.domNode,startOffset:Ie+qe.length}}else Le=document.createTextNode(qe),this.parent.insertBefore(he.default.create(Le),this),Ce={startNode:Le,startOffset:qe.length};else _e===this.rightGuard&&(this.next instanceof ce.default?(this.next.insertAt(0,qe),Ce={startNode:this.next.domNode,startOffset:qe.length}):(Le=document.createTextNode(qe),this.parent.insertBefore(he.default.create(Le),this.next),Ce={startNode:Le,startOffset:qe.length}));return _e.data=ve,Ce}},{key:"update",value:function(_e,Ce){var Le=this;_e.forEach(function(qe){if(qe.type==="characterData"&&(qe.target===Le.leftGuard||qe.target===Le.rightGuard)){var Ie=Le.restore(qe.target);Ie&&(Ce.range=Ie)}})}}]),we}(he.default.Embed);te.default=be},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.AlignStyle=te.AlignClass=te.AlignAttribute=void 0;var ne=re(0),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}var he={scope:oe.default.Scope.BLOCK,whitelist:["right","center","justify"]},ue=new oe.default.Attributor.Attribute("align","align",he),ce=new oe.default.Attributor.Class("align","ql-align",he),pe=new oe.default.Attributor.Style("align","text-align",he);te.AlignAttribute=ue,te.AlignClass=ce,te.AlignStyle=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.BackgroundStyle=te.BackgroundClass=void 0;var ne=re(0),oe=he(ne),de=re(26);function he(pe){return pe&&pe.__esModule?pe:{default:pe}}var ue=new oe.default.Attributor.Class("background","ql-bg",{scope:oe.default.Scope.INLINE}),ce=new de.ColorAttributor("background","background-color",{scope:oe.default.Scope.INLINE});te.BackgroundClass=ue,te.BackgroundStyle=ce},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.DirectionStyle=te.DirectionClass=te.DirectionAttribute=void 0;var ne=re(0),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}var he={scope:oe.default.Scope.BLOCK,whitelist:["rtl"]},ue=new oe.default.Attributor.Attribute("direction","dir",he),ce=new oe.default.Attributor.Class("direction","ql-direction",he),pe=new oe.default.Attributor.Style("direction","direction",he);te.DirectionAttribute=ue,te.DirectionClass=ce,te.DirectionStyle=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.FontClass=te.FontStyle=void 0;var ne=function(){function ye(we,Se){for(var _e=0;_e<Se.length;_e++){var Ce=Se[_e];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(we,Ce.key,Ce)}}return function(we,Se,_e){return Se&&ye(we.prototype,Se),_e&&ye(we,_e),we}}(),oe=function ye(we,Se,_e){we===null&&(we=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(we,Se);if(Ce===void 0){var Le=Object.getPrototypeOf(we);return Le===null?void 0:ye(Le,Se,_e)}else{if("value"in Ce)return Ce.value;var qe=Ce.get;return qe===void 0?void 0:qe.call(_e)}},de=re(0),he=ue(de);function ue(ye){return ye&&ye.__esModule?ye:{default:ye}}function ce(ye,we){if(!(ye instanceof we))throw new TypeError("Cannot call a class as a function")}function pe(ye,we){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ye}function fe(ye,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ye.prototype=Object.create(we&&we.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,we):ye.__proto__=we)}var ge={scope:he.default.Scope.INLINE,whitelist:["serif","monospace"]},me=new he.default.Attributor.Class("font","ql-font",ge),ve=function(ye){fe(we,ye);function we(){return ce(this,we),pe(this,(we.__proto__||Object.getPrototypeOf(we)).apply(this,arguments))}return ne(we,[{key:"value",value:function(_e){return oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"value",this).call(this,_e).replace(/["']/g,"")}}]),we}(he.default.Attributor.Style),be=new ve("font","font-family",ge);te.FontStyle=be,te.FontClass=me},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.SizeStyle=te.SizeClass=void 0;var ne=re(0),oe=de(ne);function de(ce){return ce&&ce.__esModule?ce:{default:ce}}var he=new oe.default.Attributor.Class("size","ql-size",{scope:oe.default.Scope.INLINE,whitelist:["small","large","huge"]}),ue=new oe.default.Attributor.Style("size","font-size",{scope:oe.default.Scope.INLINE,whitelist:["10px","18px","32px"]});te.SizeClass=he,te.SizeStyle=ue},function(J,te,re){J.exports={align:{"":re(77),center:re(78),right:re(79),justify:re(80)},background:re(81),blockquote:re(82),bold:re(83),clean:re(84),code:re(59),"code-block":re(59),color:re(85),direction:{"":re(86),rtl:re(87)},float:{center:re(88),full:re(89),left:re(90),right:re(91)},formula:re(92),header:{1:re(93),2:re(94)},italic:re(95),image:re(96),indent:{"+1":re(97),"-1":re(98)},link:re(99),list:{ordered:re(100),bullet:re(101),check:re(102)},script:{sub:re(103),super:re(104)},strike:re(105),underline:re(106),video:re(107)}},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.getLastChangeIndex=te.default=void 0;var ne=function(){function Se(_e,Ce){for(var Le=0;Le<Ce.length;Le++){var qe=Ce[Le];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(_e,qe.key,qe)}}return function(_e,Ce,Le){return Ce&&Se(_e.prototype,Ce),Le&&Se(_e,Le),_e}}(),oe=re(0),de=fe(oe),he=re(5),ue=fe(he),ce=re(9),pe=fe(ce);function fe(Se){return Se&&Se.__esModule?Se:{default:Se}}function ge(Se,_e){if(!(Se instanceof _e))throw new TypeError("Cannot call a class as a function")}function me(Se,_e){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e&&(typeof _e=="object"||typeof _e=="function")?_e:Se}function ve(Se,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _e);Se.prototype=Object.create(_e&&_e.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),_e&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,_e):Se.__proto__=_e)}var be=function(Se){ve(_e,Se);function _e(Ce,Le){ge(this,_e);var qe=me(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this,Ce,Le));return qe.lastRecorded=0,qe.ignoreChange=!1,qe.clear(),qe.quill.on(ue.default.events.EDITOR_CHANGE,function(Ie,ze,Pe,Ae){Ie!==ue.default.events.TEXT_CHANGE||qe.ignoreChange||(!qe.options.userOnly||Ae===ue.default.sources.USER?qe.record(ze,Pe):qe.transform(ze))}),qe.quill.keyboard.addBinding({key:"Z",shortKey:!0},qe.undo.bind(qe)),qe.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},qe.redo.bind(qe)),/Win/i.test(navigator.platform)&&qe.quill.keyboard.addBinding({key:"Y",shortKey:!0},qe.redo.bind(qe)),qe}return ne(_e,[{key:"change",value:function(Le,qe){if(this.stack[Le].length!==0){var Ie=this.stack[Le].pop();this.stack[qe].push(Ie),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(Ie[Le],ue.default.sources.USER),this.ignoreChange=!1;var ze=we(Ie[Le]);this.quill.setSelection(ze)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(Le,qe){if(Le.ops.length!==0){this.stack.redo=[];var Ie=this.quill.getContents().diff(qe),ze=Date.now();if(this.lastRecorded+this.options.delay>ze&&this.stack.undo.length>0){var Pe=this.stack.undo.pop();Ie=Ie.compose(Pe.undo),Le=Pe.redo.compose(Le)}else this.lastRecorded=ze;this.stack.undo.push({redo:Le,undo:Ie}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(Le){this.stack.undo.forEach(function(qe){qe.undo=Le.transform(qe.undo,!0),qe.redo=Le.transform(qe.redo,!0)}),this.stack.redo.forEach(function(qe){qe.undo=Le.transform(qe.undo,!0),qe.redo=Le.transform(qe.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),_e}(pe.default);be.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function ye(Se){var _e=Se.ops[Se.ops.length-1];return _e==null?!1:_e.insert!=null?typeof _e.insert=="string"&&_e.insert.endsWith(`
|
|
6055
|
-
`):_e.attributes!=null?Object.keys(_e.attributes).some(function(Ce){return de.default.query(Ce,de.default.Scope.BLOCK)!=null}):!1}function we(Se){var _e=Se.reduce(function(Le,qe){return Le+=qe.delete||0,Le},0),Ce=Se.length()-_e;return ye(Se)&&(Ce-=1),Ce}te.default=be,te.getLastChangeIndex=we},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.BaseTooltip=void 0;var ne=function(){function Ue(We,Qe){for(var Ze=0;Ze<Qe.length;Ze++){var je=Qe[Ze];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(We,je.key,je)}}return function(We,Qe,Ze){return Qe&&Ue(We.prototype,Qe),Ze&&Ue(We,Ze),We}}(),oe=function Ue(We,Qe,Ze){We===null&&(We=Function.prototype);var je=Object.getOwnPropertyDescriptor(We,Qe);if(je===void 0){var Ke=Object.getPrototypeOf(We);return Ke===null?void 0:Ue(Ke,Qe,Ze)}else{if("value"in je)return je.value;var it=je.get;return it===void 0?void 0:it.call(Ze)}},de=re(3),he=ze(de),ue=re(2),ce=ze(ue),pe=re(8),fe=ze(pe),ge=re(23),me=ze(ge),ve=re(35),be=ze(ve),ye=re(60),we=ze(ye),Se=re(61),_e=ze(Se),Ce=re(28),Le=ze(Ce),qe=re(62),Ie=ze(qe);function ze(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function Pe(Ue,We){if(!(Ue instanceof We))throw new TypeError("Cannot call a class as a function")}function Ae(Ue,We){if(!Ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We&&(typeof We=="object"||typeof We=="function")?We:Ue}function De(Ue,We){if(typeof We!="function"&&We!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof We);Ue.prototype=Object.create(We&&We.prototype,{constructor:{value:Ue,enumerable:!1,writable:!0,configurable:!0}}),We&&(Object.setPrototypeOf?Object.setPrototypeOf(Ue,We):Ue.__proto__=We)}var Me=[!1,"center","right","justify"],Be=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Ve=[!1,"serif","monospace"],Ye=["1","2","3",!1],Je=["petita",!1,"gran","enorme"],vt=function(Ue){De(We,Ue);function We(Qe,Ze){Pe(this,We);var je=Ae(this,(We.__proto__||Object.getPrototypeOf(We)).call(this,Qe,Ze)),Ke=function it(nt){if(!document.body.contains(Qe.root))return document.body.removeEventListener("click",it);je.tooltip!=null&&!je.tooltip.root.contains(nt.target)&&document.activeElement!==je.tooltip.textbox&&!je.quill.hasFocus()&&je.tooltip.hide(),je.pickers!=null&&je.pickers.forEach(function(bt){bt.container.contains(nt.target)||bt.close()})};return Qe.emitter.listenDOM("click",document.body,Ke),je}return ne(We,[{key:"addModule",value:function(Ze){var je=oe(We.prototype.__proto__||Object.getPrototypeOf(We.prototype),"addModule",this).call(this,Ze);return Ze==="toolbar"&&this.extendToolbar(je),je}},{key:"buildButtons",value:function(Ze,je){Ze.forEach(function(Ke){var it=Ke.getAttribute("class")||"";it.split(/\s+/).forEach(function(nt){if(nt.startsWith("ql-")&&(nt=nt.slice(3),je[nt]!=null))if(nt==="direction")Ke.innerHTML=je[nt][""]+je[nt].rtl;else if(typeof je[nt]=="string")Ke.innerHTML=je[nt];else{var bt=Ke.value||"";bt!=null&&je[nt][bt]&&(Ke.innerHTML=je[nt][bt])}})})}},{key:"buildPickers",value:function(Ze,je){var Ke=this;this.pickers=Ze.map(function(nt){if(nt.classList.contains("ql-align"))return nt.querySelector("option")==null&&Ne(nt,Me),new _e.default(nt,je.align);if(nt.classList.contains("ql-background")||nt.classList.contains("ql-color")){var bt=nt.classList.contains("ql-background")?"background":"color";return nt.querySelector("option")==null&&Ne(nt,Be,bt==="background"?"#ffffff":"#000000"),new we.default(nt,je[bt])}else return nt.querySelector("option")==null&&(nt.classList.contains("ql-font")?Ne(nt,Ve):nt.classList.contains("ql-header")?Ne(nt,Ye):nt.classList.contains("ql-size")&&Ne(nt,Je)),new Le.default(nt)});var it=function(){Ke.pickers.forEach(function(bt){bt.update()})};this.quill.on(fe.default.events.EDITOR_CHANGE,it)}}]),We}(be.default);vt.DEFAULTS=(0,he.default)(!0,{},be.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var We=this,Qe=this.container.querySelector("input.ql-image[type=file]");Qe==null&&(Qe=document.createElement("input"),Qe.setAttribute("type","file"),Qe.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Qe.classList.add("ql-image"),Qe.addEventListener("change",function(){if(Qe.files!=null&&Qe.files[0]!=null){var Ze=new FileReader;Ze.onload=function(je){var Ke=We.quill.getSelection(!0);We.quill.updateContents(new ce.default().retain(Ke.index).delete(Ke.length).insert({image:je.target.result}),fe.default.sources.USER),We.quill.setSelection(Ke.index+1,fe.default.sources.SILENT),Qe.value=""},Ze.readAsDataURL(Qe.files[0])}}),this.container.appendChild(Qe)),Qe.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Xe=function(Ue){De(We,Ue);function We(Qe,Ze){Pe(this,We);var je=Ae(this,(We.__proto__||Object.getPrototypeOf(We)).call(this,Qe,Ze));return je.textbox=je.root.querySelector('input[type="text"]'),je.listen(),je}return ne(We,[{key:"listen",value:function(){var Ze=this;this.textbox.addEventListener("keydown",function(je){me.default.match(je,"enter")?(Ze.save(),je.preventDefault()):me.default.match(je,"escape")&&(Ze.cancel(),je.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),je!=null?this.textbox.value=je:Ze!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Ze)||""),this.root.setAttribute("data-mode",Ze)}},{key:"restoreFocus",value:function(){var Ze=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=Ze}},{key:"save",value:function(){var Ze=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var je=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ze,fe.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ze,fe.default.sources.USER)),this.quill.root.scrollTop=je;break}case"video":Ze=Ge(Ze);case"formula":{if(!Ze)break;var Ke=this.quill.getSelection(!0);if(Ke!=null){var it=Ke.index+Ke.length;this.quill.insertEmbed(it,this.root.getAttribute("data-mode"),Ze,fe.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(it+1," ",fe.default.sources.USER),this.quill.setSelection(it+2,fe.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),We}(Ie.default);function Ge(Ue){var We=Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return We?(We[1]||"https")+"://www.youtube.com/embed/"+We[2]+"?showinfo=0":(We=Ue.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(We[1]||"https")+"://player.vimeo.com/video/"+We[2]+"/":Ue}function Ne(Ue,We){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;We.forEach(function(Ze){var je=document.createElement("option");Ze===Qe?je.setAttribute("selected","selected"):je.setAttribute("value",Ze),Ue.appendChild(je)})}te.BaseTooltip=Xe,te.default=vt},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function oe(){this.head=this.tail=null,this.length=0}return oe.prototype.append=function(){for(var de=[],he=0;he<arguments.length;he++)de[he]=arguments[he];this.insertBefore(de[0],null),de.length>1&&this.append.apply(this,de.slice(1))},oe.prototype.contains=function(de){for(var he,ue=this.iterator();he=ue();)if(he===de)return!0;return!1},oe.prototype.insertBefore=function(de,he){de&&(de.next=he,he!=null?(de.prev=he.prev,he.prev!=null&&(he.prev.next=de),he.prev=de,he===this.head&&(this.head=de)):this.tail!=null?(this.tail.next=de,de.prev=this.tail,this.tail=de):(de.prev=null,this.head=this.tail=de),this.length+=1)},oe.prototype.offset=function(de){for(var he=0,ue=this.head;ue!=null;){if(ue===de)return he;he+=ue.length(),ue=ue.next}return-1},oe.prototype.remove=function(de){this.contains(de)&&(de.prev!=null&&(de.prev.next=de.next),de.next!=null&&(de.next.prev=de.prev),de===this.head&&(this.head=de.next),de===this.tail&&(this.tail=de.prev),this.length-=1)},oe.prototype.iterator=function(de){return de===void 0&&(de=this.head),function(){var he=de;return de!=null&&(de=de.next),he}},oe.prototype.find=function(de,he){he===void 0&&(he=!1);for(var ue,ce=this.iterator();ue=ce();){var pe=ue.length();if(de<pe||he&&de===pe&&(ue.next==null||ue.next.length()!==0))return[ue,de];de-=pe}return[null,0]},oe.prototype.forEach=function(de){for(var he,ue=this.iterator();he=ue();)de(he)},oe.prototype.forEachAt=function(de,he,ue){if(!(he<=0))for(var ce=this.find(de),pe=ce[0],fe=ce[1],ge,me=de-fe,ve=this.iterator(pe);(ge=ve())&&me<de+he;){var be=ge.length();de>me?ue(ge,de-me,Math.min(he,me+be-de)):ue(ge,0,Math.min(be,de+he-me)),me+=be}},oe.prototype.map=function(de){return this.reduce(function(he,ue){return he.push(de(ue)),he},[])},oe.prototype.reduce=function(de,he){for(var ue,ce=this.iterator();ue=ce();)he=de(he,ue);return he},oe}();te.default=ne},function(J,te,re){var ne=this&&this.__extends||function(){var pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ge){fe.__proto__=ge}||function(fe,ge){for(var me in ge)ge.hasOwnProperty(me)&&(fe[me]=ge[me])};return function(fe,ge){pe(fe,ge);function me(){this.constructor=fe}fe.prototype=ge===null?Object.create(ge):(me.prototype=ge.prototype,new me)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(17),de=re(1),he={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ue=100,ce=function(pe){ne(fe,pe);function fe(ge){var me=pe.call(this,ge)||this;return me.scroll=me,me.observer=new MutationObserver(function(ve){me.update(ve)}),me.observer.observe(me.domNode,he),me.attach(),me}return fe.prototype.detach=function(){pe.prototype.detach.call(this),this.observer.disconnect()},fe.prototype.deleteAt=function(ge,me){this.update(),ge===0&&me===this.length()?this.children.forEach(function(ve){ve.remove()}):pe.prototype.deleteAt.call(this,ge,me)},fe.prototype.formatAt=function(ge,me,ve,be){this.update(),pe.prototype.formatAt.call(this,ge,me,ve,be)},fe.prototype.insertAt=function(ge,me,ve){this.update(),pe.prototype.insertAt.call(this,ge,me,ve)},fe.prototype.optimize=function(ge,me){var ve=this;ge===void 0&&(ge=[]),me===void 0&&(me={}),pe.prototype.optimize.call(this,me);for(var be=[].slice.call(this.observer.takeRecords());be.length>0;)ge.push(be.pop());for(var ye=function(Ce,Le){Le===void 0&&(Le=!0),!(Ce==null||Ce===ve)&&Ce.domNode.parentNode!=null&&(Ce.domNode[de.DATA_KEY].mutations==null&&(Ce.domNode[de.DATA_KEY].mutations=[]),Le&&ye(Ce.parent))},we=function(Ce){Ce.domNode[de.DATA_KEY]==null||Ce.domNode[de.DATA_KEY].mutations==null||(Ce instanceof oe.default&&Ce.children.forEach(we),Ce.optimize(me))},Se=ge,_e=0;Se.length>0;_e+=1){if(_e>=ue)throw new Error("[Parchment] Maximum optimize iterations reached");for(Se.forEach(function(Ce){var Le=de.find(Ce.target,!0);Le!=null&&(Le.domNode===Ce.target&&(Ce.type==="childList"?(ye(de.find(Ce.previousSibling,!1)),[].forEach.call(Ce.addedNodes,function(qe){var Ie=de.find(qe,!1);ye(Ie,!1),Ie instanceof oe.default&&Ie.children.forEach(function(ze){ye(ze,!1)})})):Ce.type==="attributes"&&ye(Le.prev)),ye(Le))}),this.children.forEach(we),Se=[].slice.call(this.observer.takeRecords()),be=Se.slice();be.length>0;)ge.push(be.pop())}},fe.prototype.update=function(ge,me){var ve=this;me===void 0&&(me={}),ge=ge||this.observer.takeRecords(),ge.map(function(be){var ye=de.find(be.target,!0);return ye==null?null:ye.domNode[de.DATA_KEY].mutations==null?(ye.domNode[de.DATA_KEY].mutations=[be],ye):(ye.domNode[de.DATA_KEY].mutations.push(be),null)}).forEach(function(be){be==null||be===ve||be.domNode[de.DATA_KEY]==null||be.update(be.domNode[de.DATA_KEY].mutations||[],me)}),this.domNode[de.DATA_KEY].mutations!=null&&pe.prototype.update.call(this,this.domNode[de.DATA_KEY].mutations,me),this.optimize(ge,me)},fe.blotName="scroll",fe.defaultChild="block",fe.scope=de.Scope.BLOCK_BLOT,fe.tagName="DIV",fe}(oe.default);te.default=ce},function(J,te,re){var ne=this&&this.__extends||function(){var ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,fe){pe.__proto__=fe}||function(pe,fe){for(var ge in fe)fe.hasOwnProperty(ge)&&(pe[ge]=fe[ge])};return function(pe,fe){ce(pe,fe);function ge(){this.constructor=pe}pe.prototype=fe===null?Object.create(fe):(ge.prototype=fe.prototype,new ge)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(18),de=re(1);function he(ce,pe){if(Object.keys(ce).length!==Object.keys(pe).length)return!1;for(var fe in ce)if(ce[fe]!==pe[fe])return!1;return!0}var ue=function(ce){ne(pe,ce);function pe(){return ce!==null&&ce.apply(this,arguments)||this}return pe.formats=function(fe){if(fe.tagName!==pe.tagName)return ce.formats.call(this,fe)},pe.prototype.format=function(fe,ge){var me=this;fe===this.statics.blotName&&!ge?(this.children.forEach(function(ve){ve instanceof oe.default||(ve=ve.wrap(pe.blotName,!0)),me.attributes.copy(ve)}),this.unwrap()):ce.prototype.format.call(this,fe,ge)},pe.prototype.formatAt=function(fe,ge,me,ve){if(this.formats()[me]!=null||de.query(me,de.Scope.ATTRIBUTE)){var be=this.isolate(fe,ge);be.format(me,ve)}else ce.prototype.formatAt.call(this,fe,ge,me,ve)},pe.prototype.optimize=function(fe){ce.prototype.optimize.call(this,fe);var ge=this.formats();if(Object.keys(ge).length===0)return this.unwrap();var me=this.next;me instanceof pe&&me.prev===this&&he(ge,me.formats())&&(me.moveChildren(this),me.remove())},pe.blotName="inline",pe.scope=de.Scope.INLINE_BLOT,pe.tagName="SPAN",pe}(oe.default);te.default=ue},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(18),de=re(1),he=function(ue){ne(ce,ue);function ce(){return ue!==null&&ue.apply(this,arguments)||this}return ce.formats=function(pe){var fe=de.query(ce.blotName).tagName;if(pe.tagName!==fe)return ue.formats.call(this,pe)},ce.prototype.format=function(pe,fe){de.query(pe,de.Scope.BLOCK)!=null&&(pe===this.statics.blotName&&!fe?this.replaceWith(ce.blotName):ue.prototype.format.call(this,pe,fe))},ce.prototype.formatAt=function(pe,fe,ge,me){de.query(ge,de.Scope.BLOCK)!=null?this.format(ge,me):ue.prototype.formatAt.call(this,pe,fe,ge,me)},ce.prototype.insertAt=function(pe,fe,ge){if(ge==null||de.query(fe,de.Scope.INLINE)!=null)ue.prototype.insertAt.call(this,pe,fe,ge);else{var me=this.split(pe),ve=de.create(fe,ge);me.parent.insertBefore(ve,me)}},ce.prototype.update=function(pe,fe){navigator.userAgent.match(/Trident/)?this.build():ue.prototype.update.call(this,pe,fe)},ce.blotName="block",ce.scope=de.Scope.BLOCK_BLOT,ce.tagName="P",ce}(oe.default);te.default=he},function(J,te,re){var ne=this&&this.__extends||function(){var he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ce){ue.__proto__=ce}||function(ue,ce){for(var pe in ce)ce.hasOwnProperty(pe)&&(ue[pe]=ce[pe])};return function(ue,ce){he(ue,ce);function pe(){this.constructor=ue}ue.prototype=ce===null?Object.create(ce):(pe.prototype=ce.prototype,new pe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(19),de=function(he){ne(ue,he);function ue(){return he!==null&&he.apply(this,arguments)||this}return ue.formats=function(ce){},ue.prototype.format=function(ce,pe){he.prototype.formatAt.call(this,0,this.length(),ce,pe)},ue.prototype.formatAt=function(ce,pe,fe,ge){ce===0&&pe===this.length()?this.format(fe,ge):he.prototype.formatAt.call(this,ce,pe,fe,ge)},ue.prototype.formats=function(){return this.statics.formats(this.domNode)},ue}(oe.default);te.default=de},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(19),de=re(1),he=function(ue){ne(ce,ue);function ce(pe){var fe=ue.call(this,pe)||this;return fe.text=fe.statics.value(fe.domNode),fe}return ce.create=function(pe){return document.createTextNode(pe)},ce.value=function(pe){var fe=pe.data;return fe.normalize&&(fe=fe.normalize()),fe},ce.prototype.deleteAt=function(pe,fe){this.domNode.data=this.text=this.text.slice(0,pe)+this.text.slice(pe+fe)},ce.prototype.index=function(pe,fe){return this.domNode===pe?fe:-1},ce.prototype.insertAt=function(pe,fe,ge){ge==null?(this.text=this.text.slice(0,pe)+fe+this.text.slice(pe),this.domNode.data=this.text):ue.prototype.insertAt.call(this,pe,fe,ge)},ce.prototype.length=function(){return this.text.length},ce.prototype.optimize=function(pe){ue.prototype.optimize.call(this,pe),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ce&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},ce.prototype.position=function(pe,fe){return[this.domNode,pe]},ce.prototype.split=function(pe,fe){if(fe===void 0&&(fe=!1),!fe){if(pe===0)return this;if(pe===this.length())return this.next}var ge=de.create(this.domNode.splitText(pe));return this.parent.insertBefore(ge,this.next),this.text=this.statics.value(this.domNode),ge},ce.prototype.update=function(pe,fe){var ge=this;pe.some(function(me){return me.type==="characterData"&&me.target===ge.domNode})&&(this.text=this.statics.value(this.domNode))},ce.prototype.value=function(){return this.text},ce.blotName="text",ce.scope=de.Scope.INLINE_BLOT,ce}(oe.default);te.default=he},function(J,te,re){var ne=document.createElement("div");if(ne.classList.toggle("test-class",!1),ne.classList.contains("test-class")){var oe=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(de,he){return arguments.length>1&&!this.contains(de)==!he?he:oe.call(this,de)}}String.prototype.startsWith||(String.prototype.startsWith=function(de,he){return he=he||0,this.substr(he,de.length)===de}),String.prototype.endsWith||(String.prototype.endsWith=function(de,he){var ue=this.toString();(typeof he!="number"||!isFinite(he)||Math.floor(he)!==he||he>ue.length)&&(he=ue.length),he-=de.length;var ce=ue.indexOf(de,he);return ce!==-1&&ce===he}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(he){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof he!="function")throw new TypeError("predicate must be a function");for(var ue=Object(this),ce=ue.length>>>0,pe=arguments[1],fe,ge=0;ge<ce;ge++)if(fe=ue[ge],he.call(pe,fe,ge,ue))return fe}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(J,te){var re=-1,ne=1,oe=0;function de(_e,Ce,Le){if(_e==Ce)return _e?[[oe,_e]]:[];(Le<0||_e.length<Le)&&(Le=null);var qe=pe(_e,Ce),Ie=_e.substring(0,qe);_e=_e.substring(qe),Ce=Ce.substring(qe),qe=fe(_e,Ce);var ze=_e.substring(_e.length-qe);_e=_e.substring(0,_e.length-qe),Ce=Ce.substring(0,Ce.length-qe);var Pe=he(_e,Ce);return Ie&&Pe.unshift([oe,Ie]),ze&&Pe.push([oe,ze]),me(Pe),Le!=null&&(Pe=ye(Pe,Le)),Pe=we(Pe),Pe}function he(_e,Ce){var Le;if(!_e)return[[ne,Ce]];if(!Ce)return[[re,_e]];var qe=_e.length>Ce.length?_e:Ce,Ie=_e.length>Ce.length?Ce:_e,ze=qe.indexOf(Ie);if(ze!=-1)return Le=[[ne,qe.substring(0,ze)],[oe,Ie],[ne,qe.substring(ze+Ie.length)]],_e.length>Ce.length&&(Le[0][0]=Le[2][0]=re),Le;if(Ie.length==1)return[[re,_e],[ne,Ce]];var Pe=ge(_e,Ce);if(Pe){var Ae=Pe[0],De=Pe[1],Me=Pe[2],Be=Pe[3],Ve=Pe[4],Ye=de(Ae,Me),Je=de(De,Be);return Ye.concat([[oe,Ve]],Je)}return ue(_e,Ce)}function ue(_e,Ce){for(var Le=_e.length,qe=Ce.length,Ie=Math.ceil((Le+qe)/2),ze=Ie,Pe=2*Ie,Ae=new Array(Pe),De=new Array(Pe),Me=0;Me<Pe;Me++)Ae[Me]=-1,De[Me]=-1;Ae[ze+1]=0,De[ze+1]=0;for(var Be=Le-qe,Ve=Be%2!=0,Ye=0,Je=0,vt=0,Xe=0,Ge=0;Ge<Ie;Ge++){for(var Ne=-Ge+Ye;Ne<=Ge-Je;Ne+=2){var Ue=ze+Ne,We;Ne==-Ge||Ne!=Ge&&Ae[Ue-1]<Ae[Ue+1]?We=Ae[Ue+1]:We=Ae[Ue-1]+1;for(var Qe=We-Ne;We<Le&&Qe<qe&&_e.charAt(We)==Ce.charAt(Qe);)We++,Qe++;if(Ae[Ue]=We,We>Le)Je+=2;else if(Qe>qe)Ye+=2;else if(Ve){var Ze=ze+Be-Ne;if(Ze>=0&&Ze<Pe&&De[Ze]!=-1){var je=Le-De[Ze];if(We>=je)return ce(_e,Ce,We,Qe)}}}for(var Ke=-Ge+vt;Ke<=Ge-Xe;Ke+=2){var Ze=ze+Ke,je;Ke==-Ge||Ke!=Ge&&De[Ze-1]<De[Ze+1]?je=De[Ze+1]:je=De[Ze-1]+1;for(var it=je-Ke;je<Le&&it<qe&&_e.charAt(Le-je-1)==Ce.charAt(qe-it-1);)je++,it++;if(De[Ze]=je,je>Le)Xe+=2;else if(it>qe)vt+=2;else if(!Ve){var Ue=ze+Be-Ke;if(Ue>=0&&Ue<Pe&&Ae[Ue]!=-1){var We=Ae[Ue],Qe=ze+We-Ue;if(je=Le-je,We>=je)return ce(_e,Ce,We,Qe)}}}}return[[re,_e],[ne,Ce]]}function ce(_e,Ce,Le,qe){var Ie=_e.substring(0,Le),ze=Ce.substring(0,qe),Pe=_e.substring(Le),Ae=Ce.substring(qe),De=de(Ie,ze),Me=de(Pe,Ae);return De.concat(Me)}function pe(_e,Ce){if(!_e||!Ce||_e.charAt(0)!=Ce.charAt(0))return 0;for(var Le=0,qe=Math.min(_e.length,Ce.length),Ie=qe,ze=0;Le<Ie;)_e.substring(ze,Ie)==Ce.substring(ze,Ie)?(Le=Ie,ze=Le):qe=Ie,Ie=Math.floor((qe-Le)/2+Le);return Ie}function fe(_e,Ce){if(!_e||!Ce||_e.charAt(_e.length-1)!=Ce.charAt(Ce.length-1))return 0;for(var Le=0,qe=Math.min(_e.length,Ce.length),Ie=qe,ze=0;Le<Ie;)_e.substring(_e.length-Ie,_e.length-ze)==Ce.substring(Ce.length-Ie,Ce.length-ze)?(Le=Ie,ze=Le):qe=Ie,Ie=Math.floor((qe-Le)/2+Le);return Ie}function ge(_e,Ce){var Le=_e.length>Ce.length?_e:Ce,qe=_e.length>Ce.length?Ce:_e;if(Le.length<4||qe.length*2<Le.length)return null;function Ie(Je,vt,Xe){for(var Ge=Je.substring(Xe,Xe+Math.floor(Je.length/4)),Ne=-1,Ue="",We,Qe,Ze,je;(Ne=vt.indexOf(Ge,Ne+1))!=-1;){var Ke=pe(Je.substring(Xe),vt.substring(Ne)),it=fe(Je.substring(0,Xe),vt.substring(0,Ne));Ue.length<it+Ke&&(Ue=vt.substring(Ne-it,Ne)+vt.substring(Ne,Ne+Ke),We=Je.substring(0,Xe-it),Qe=Je.substring(Xe+Ke),Ze=vt.substring(0,Ne-it),je=vt.substring(Ne+Ke))}return Ue.length*2>=Je.length?[We,Qe,Ze,je,Ue]:null}var ze=Ie(Le,qe,Math.ceil(Le.length/4)),Pe=Ie(Le,qe,Math.ceil(Le.length/2)),Ae;if(!ze&&!Pe)return null;Pe?ze?Ae=ze[4].length>Pe[4].length?ze:Pe:Ae=Pe:Ae=ze;var De,Me,Be,Ve;_e.length>Ce.length?(De=Ae[0],Me=Ae[1],Be=Ae[2],Ve=Ae[3]):(Be=Ae[0],Ve=Ae[1],De=Ae[2],Me=Ae[3]);var Ye=Ae[4];return[De,Me,Be,Ve,Ye]}function me(_e){_e.push([oe,""]);for(var Ce=0,Le=0,qe=0,Ie="",ze="",Pe;Ce<_e.length;)switch(_e[Ce][0]){case ne:qe++,ze+=_e[Ce][1],Ce++;break;case re:Le++,Ie+=_e[Ce][1],Ce++;break;case oe:Le+qe>1?(Le!==0&&qe!==0&&(Pe=pe(ze,Ie),Pe!==0&&(Ce-Le-qe>0&&_e[Ce-Le-qe-1][0]==oe?_e[Ce-Le-qe-1][1]+=ze.substring(0,Pe):(_e.splice(0,0,[oe,ze.substring(0,Pe)]),Ce++),ze=ze.substring(Pe),Ie=Ie.substring(Pe)),Pe=fe(ze,Ie),Pe!==0&&(_e[Ce][1]=ze.substring(ze.length-Pe)+_e[Ce][1],ze=ze.substring(0,ze.length-Pe),Ie=Ie.substring(0,Ie.length-Pe))),Le===0?_e.splice(Ce-qe,Le+qe,[ne,ze]):qe===0?_e.splice(Ce-Le,Le+qe,[re,Ie]):_e.splice(Ce-Le-qe,Le+qe,[re,Ie],[ne,ze]),Ce=Ce-Le-qe+(Le?1:0)+(qe?1:0)+1):Ce!==0&&_e[Ce-1][0]==oe?(_e[Ce-1][1]+=_e[Ce][1],_e.splice(Ce,1)):Ce++,qe=0,Le=0,Ie="",ze="";break}_e[_e.length-1][1]===""&&_e.pop();var Ae=!1;for(Ce=1;Ce<_e.length-1;)_e[Ce-1][0]==oe&&_e[Ce+1][0]==oe&&(_e[Ce][1].substring(_e[Ce][1].length-_e[Ce-1][1].length)==_e[Ce-1][1]?(_e[Ce][1]=_e[Ce-1][1]+_e[Ce][1].substring(0,_e[Ce][1].length-_e[Ce-1][1].length),_e[Ce+1][1]=_e[Ce-1][1]+_e[Ce+1][1],_e.splice(Ce-1,1),Ae=!0):_e[Ce][1].substring(0,_e[Ce+1][1].length)==_e[Ce+1][1]&&(_e[Ce-1][1]+=_e[Ce+1][1],_e[Ce][1]=_e[Ce][1].substring(_e[Ce+1][1].length)+_e[Ce+1][1],_e.splice(Ce+1,1),Ae=!0)),Ce++;Ae&&me(_e)}var ve=de;ve.INSERT=ne,ve.DELETE=re,ve.EQUAL=oe,J.exports=ve;function be(_e,Ce){if(Ce===0)return[oe,_e];for(var Le=0,qe=0;qe<_e.length;qe++){var Ie=_e[qe];if(Ie[0]===re||Ie[0]===oe){var ze=Le+Ie[1].length;if(Ce===ze)return[qe+1,_e];if(Ce<ze){_e=_e.slice();var Pe=Ce-Le,Ae=[Ie[0],Ie[1].slice(0,Pe)],De=[Ie[0],Ie[1].slice(Pe)];return _e.splice(qe,1,Ae,De),[qe+1,_e]}else Le=ze}}throw new Error("cursor_pos is out of bounds!")}function ye(_e,Ce){var Le=be(_e,Ce),qe=Le[1],Ie=Le[0],ze=qe[Ie],Pe=qe[Ie+1];if(ze==null)return _e;if(ze[0]!==oe)return _e;if(Pe!=null&&ze[1]+Pe[1]===Pe[1]+ze[1])return qe.splice(Ie,2,Pe,ze),Se(qe,Ie,2);if(Pe!=null&&Pe[1].indexOf(ze[1])===0){qe.splice(Ie,2,[Pe[0],ze[1]],[0,ze[1]]);var Ae=Pe[1].slice(ze[1].length);return Ae.length>0&&qe.splice(Ie+2,0,[Pe[0],Ae]),Se(qe,Ie,3)}else return _e}function we(_e){for(var Ce=!1,Le=function(Pe){return Pe.charCodeAt(0)>=56320&&Pe.charCodeAt(0)<=57343},qe=function(Pe){return Pe.charCodeAt(Pe.length-1)>=55296&&Pe.charCodeAt(Pe.length-1)<=56319},Ie=2;Ie<_e.length;Ie+=1)_e[Ie-2][0]===oe&&qe(_e[Ie-2][1])&&_e[Ie-1][0]===re&&Le(_e[Ie-1][1])&&_e[Ie][0]===ne&&Le(_e[Ie][1])&&(Ce=!0,_e[Ie-1][1]=_e[Ie-2][1].slice(-1)+_e[Ie-1][1],_e[Ie][1]=_e[Ie-2][1].slice(-1)+_e[Ie][1],_e[Ie-2][1]=_e[Ie-2][1].slice(0,-1));if(!Ce)return _e;for(var ze=[],Ie=0;Ie<_e.length;Ie+=1)_e[Ie][1].length>0&&ze.push(_e[Ie]);return ze}function Se(_e,Ce,Le){for(var qe=Ce+Le-1;qe>=0&&qe>=Ce-1;qe--)if(qe+1<_e.length){var Ie=_e[qe],ze=_e[qe+1];Ie[0]===ze[1]&&_e.splice(qe,2,[Ie[0],Ie[1]+ze[1]])}return _e}},function(J,te){te=J.exports=typeof Object.keys=="function"?Object.keys:re,te.shim=re;function re(ne){var oe=[];for(var de in ne)oe.push(de);return oe}},function(J,te){var re=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";te=J.exports=re?ne:oe,te.supported=ne;function ne(de){return Object.prototype.toString.call(de)=="[object Arguments]"}te.unsupported=oe;function oe(de){return de&&typeof de=="object"&&typeof de.length=="number"&&Object.prototype.hasOwnProperty.call(de,"callee")&&!Object.prototype.propertyIsEnumerable.call(de,"callee")||!1}},function(J,te){var re=Object.prototype.hasOwnProperty,ne="~";function oe(){}Object.create&&(oe.prototype=Object.create(null),new oe().__proto__||(ne=!1));function de(ue,ce,pe){this.fn=ue,this.context=ce,this.once=pe||!1}function he(){this._events=new oe,this._eventsCount=0}he.prototype.eventNames=function(){var ce=[],pe,fe;if(this._eventsCount===0)return ce;for(fe in pe=this._events)re.call(pe,fe)&&ce.push(ne?fe.slice(1):fe);return Object.getOwnPropertySymbols?ce.concat(Object.getOwnPropertySymbols(pe)):ce},he.prototype.listeners=function(ce,pe){var fe=ne?ne+ce:ce,ge=this._events[fe];if(pe)return!!ge;if(!ge)return[];if(ge.fn)return[ge.fn];for(var me=0,ve=ge.length,be=new Array(ve);me<ve;me++)be[me]=ge[me].fn;return be},he.prototype.emit=function(ce,pe,fe,ge,me,ve){var be=ne?ne+ce:ce;if(!this._events[be])return!1;var ye=this._events[be],we=arguments.length,Se,_e;if(ye.fn){switch(ye.once&&this.removeListener(ce,ye.fn,void 0,!0),we){case 1:return ye.fn.call(ye.context),!0;case 2:return ye.fn.call(ye.context,pe),!0;case 3:return ye.fn.call(ye.context,pe,fe),!0;case 4:return ye.fn.call(ye.context,pe,fe,ge),!0;case 5:return ye.fn.call(ye.context,pe,fe,ge,me),!0;case 6:return ye.fn.call(ye.context,pe,fe,ge,me,ve),!0}for(_e=1,Se=new Array(we-1);_e<we;_e++)Se[_e-1]=arguments[_e];ye.fn.apply(ye.context,Se)}else{var Ce=ye.length,Le;for(_e=0;_e<Ce;_e++)switch(ye[_e].once&&this.removeListener(ce,ye[_e].fn,void 0,!0),we){case 1:ye[_e].fn.call(ye[_e].context);break;case 2:ye[_e].fn.call(ye[_e].context,pe);break;case 3:ye[_e].fn.call(ye[_e].context,pe,fe);break;case 4:ye[_e].fn.call(ye[_e].context,pe,fe,ge);break;default:if(!Se)for(Le=1,Se=new Array(we-1);Le<we;Le++)Se[Le-1]=arguments[Le];ye[_e].fn.apply(ye[_e].context,Se)}}return!0},he.prototype.on=function(ce,pe,fe){var ge=new de(pe,fe||this),me=ne?ne+ce:ce;return this._events[me]?this._events[me].fn?this._events[me]=[this._events[me],ge]:this._events[me].push(ge):(this._events[me]=ge,this._eventsCount++),this},he.prototype.once=function(ce,pe,fe){var ge=new de(pe,fe||this,!0),me=ne?ne+ce:ce;return this._events[me]?this._events[me].fn?this._events[me]=[this._events[me],ge]:this._events[me].push(ge):(this._events[me]=ge,this._eventsCount++),this},he.prototype.removeListener=function(ce,pe,fe,ge){var me=ne?ne+ce:ce;if(!this._events[me])return this;if(!pe)return--this._eventsCount===0?this._events=new oe:delete this._events[me],this;var ve=this._events[me];if(ve.fn)ve.fn===pe&&(!ge||ve.once)&&(!fe||ve.context===fe)&&(--this._eventsCount===0?this._events=new oe:delete this._events[me]);else{for(var be=0,ye=[],we=ve.length;be<we;be++)(ve[be].fn!==pe||ge&&!ve[be].once||fe&&ve[be].context!==fe)&&ye.push(ve[be]);ye.length?this._events[me]=ye.length===1?ye[0]:ye:--this._eventsCount===0?this._events=new oe:delete this._events[me]}return this},he.prototype.removeAllListeners=function(ce){var pe;return ce?(pe=ne?ne+ce:ce,this._events[pe]&&(--this._eventsCount===0?this._events=new oe:delete this._events[pe])):(this._events=new oe,this._eventsCount=0),this},he.prototype.off=he.prototype.removeListener,he.prototype.addListener=he.prototype.on,he.prototype.setMaxListeners=function(){return this},he.prefixed=ne,he.EventEmitter=he,typeof J<"u"&&(J.exports=he)},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.matchText=te.matchSpacing=te.matchNewline=te.matchBlot=te.matchAttributor=te.default=void 0;var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(gt){return typeof gt}:function(gt){return gt&&typeof Symbol=="function"&>.constructor===Symbol&>!==Symbol.prototype?"symbol":typeof gt},oe=function(){function gt(mt,xt){var St=[],$t=!0,Ft=!1,Nt=void 0;try{for(var zt=mt[Symbol.iterator](),or;!($t=(or=zt.next()).done)&&(St.push(or.value),!(xt&&St.length===xt));$t=!0);}catch(pr){Ft=!0,Nt=pr}finally{try{!$t&&zt.return&&zt.return()}finally{if(Ft)throw Nt}}return St}return function(mt,xt){if(Array.isArray(mt))return mt;if(Symbol.iterator in Object(mt))return gt(mt,xt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),de=function(){function gt(mt,xt){for(var St=0;St<xt.length;St++){var $t=xt[St];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(mt,$t.key,$t)}}return function(mt,xt,St){return xt&>(mt.prototype,xt),St&>(mt,St),mt}}(),he=re(3),ue=De(he),ce=re(2),pe=De(ce),fe=re(0),ge=De(fe),me=re(5),ve=De(me),be=re(10),ye=De(be),we=re(9),Se=De(we),_e=re(37),Ce=re(38),Le=re(13),qe=De(Le),Ie=re(26),ze=re(39),Pe=re(40),Ae=re(41);function De(gt){return gt&>.__esModule?gt:{default:gt}}function Me(gt,mt,xt){return mt in gt?Object.defineProperty(gt,mt,{value:xt,enumerable:!0,configurable:!0,writable:!0}):gt[mt]=xt,gt}function Be(gt,mt){if(!(gt instanceof mt))throw new TypeError("Cannot call a class as a function")}function Ve(gt,mt){if(!gt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return mt&&(typeof mt=="object"||typeof mt=="function")?mt:gt}function Ye(gt,mt){if(typeof mt!="function"&&mt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof mt);gt.prototype=Object.create(mt&&mt.prototype,{constructor:{value:gt,enumerable:!1,writable:!0,configurable:!0}}),mt&&(Object.setPrototypeOf?Object.setPrototypeOf(gt,mt):gt.__proto__=mt)}var Je=(0,ye.default)("quill:clipboard"),vt="__ql-matcher",Xe=[[Node.TEXT_NODE,rr],[Node.TEXT_NODE,Bt],["br",Et],[Node.ELEMENT_NODE,Bt],[Node.ELEMENT_NODE,bt],[Node.ELEMENT_NODE,jt],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,dr],["li",Lt],["b",it.bind(it,"bold")],["i",it.bind(it,"italic")],["style",Dt]],Ge=[_e.AlignAttribute,ze.DirectionAttribute].reduce(function(gt,mt){return gt[mt.keyName]=mt,gt},{}),Ne=[_e.AlignStyle,Ce.BackgroundStyle,Ie.ColorStyle,ze.DirectionStyle,Pe.FontStyle,Ae.SizeStyle].reduce(function(gt,mt){return gt[mt.keyName]=mt,gt},{}),Ue=function(gt){Ye(mt,gt);function mt(xt,St){Be(this,mt);var $t=Ve(this,(mt.__proto__||Object.getPrototypeOf(mt)).call(this,xt,St));return $t.quill.root.addEventListener("paste",$t.onPaste.bind($t)),$t.container=$t.quill.addContainer("ql-clipboard"),$t.container.setAttribute("contenteditable",!0),$t.container.setAttribute("tabindex",-1),$t.matchers=[],Xe.concat($t.options.matchers).forEach(function(Ft){var Nt=oe(Ft,2),zt=Nt[0],or=Nt[1];!St.matchVisual&&or===jt||$t.addMatcher(zt,or)}),$t}return de(mt,[{key:"addMatcher",value:function(St,$t){this.matchers.push([St,$t])}},{key:"convert",value:function(St){if(typeof St=="string")return this.container.innerHTML=St.replace(/\>\r?\n +\</g,"><"),this.convert();var $t=this.quill.getFormat(this.quill.selection.savedRange.index);if($t[qe.default.blotName]){var Ft=this.container.innerText;return this.container.innerHTML="",new pe.default().insert(Ft,Me({},qe.default.blotName,$t[qe.default.blotName]))}var Nt=this.prepareMatching(),zt=oe(Nt,2),or=zt[0],pr=zt[1],Zt=Ke(this.container,or,pr);return Ze(Zt,`
|
|
6056
|
-
`)&&Zt.ops[Zt.ops.length-1].attributes==null&&(Zt=Zt.compose(new pe.default().retain(Zt.length()-1).delete(1))),Je.log("convert",this.container.innerHTML,Zt),this.container.innerHTML="",Zt}},{key:"dangerouslyPasteHTML",value:function(St,$t){var Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve.default.sources.API;if(typeof St=="string")this.quill.setContents(this.convert(St),$t),this.quill.setSelection(0,ve.default.sources.SILENT);else{var Nt=this.convert($t);this.quill.updateContents(new pe.default().retain(St).concat(Nt),Ft),this.quill.setSelection(St+Nt.length(),ve.default.sources.SILENT)}}},{key:"onPaste",value:function(St){var $t=this;if(!(St.defaultPrevented||!this.quill.isEnabled())){var Ft=this.quill.getSelection(),Nt=new pe.default().retain(Ft.index),zt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(ve.default.sources.SILENT),setTimeout(function(){Nt=Nt.concat($t.convert()).delete(Ft.length),$t.quill.updateContents(Nt,ve.default.sources.USER),$t.quill.setSelection(Nt.length()-Ft.length,ve.default.sources.SILENT),$t.quill.scrollingContainer.scrollTop=zt,$t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var St=this,$t=[],Ft=[];return this.matchers.forEach(function(Nt){var zt=oe(Nt,2),or=zt[0],pr=zt[1];switch(or){case Node.TEXT_NODE:Ft.push(pr);break;case Node.ELEMENT_NODE:$t.push(pr);break;default:[].forEach.call(St.container.querySelectorAll(or),function(Zt){Zt[vt]=Zt[vt]||[],Zt[vt].push(pr)});break}}),[$t,Ft]}}]),mt}(Se.default);Ue.DEFAULTS={matchers:[],matchVisual:!0};function We(gt,mt,xt){return(typeof mt>"u"?"undefined":ne(mt))==="object"?Object.keys(mt).reduce(function(St,$t){return We(St,$t,mt[$t])},gt):gt.reduce(function(St,$t){return $t.attributes&&$t.attributes[mt]?St.push($t):St.insert($t.insert,(0,ue.default)({},Me({},mt,xt),$t.attributes))},new pe.default)}function Qe(gt){if(gt.nodeType!==Node.ELEMENT_NODE)return{};var mt="__ql-computed-style";return gt[mt]||(gt[mt]=window.getComputedStyle(gt))}function Ze(gt,mt){for(var xt="",St=gt.ops.length-1;St>=0&&xt.length<mt.length;--St){var $t=gt.ops[St];if(typeof $t.insert!="string")break;xt=$t.insert+xt}return xt.slice(-1*mt.length)===mt}function je(gt){if(gt.childNodes.length===0)return!1;var mt=Qe(gt);return["block","list-item"].indexOf(mt.display)>-1}function Ke(gt,mt,xt){return gt.nodeType===gt.TEXT_NODE?xt.reduce(function(St,$t){return $t(gt,St)},new pe.default):gt.nodeType===gt.ELEMENT_NODE?[].reduce.call(gt.childNodes||[],function(St,$t){var Ft=Ke($t,mt,xt);return $t.nodeType===gt.ELEMENT_NODE&&(Ft=mt.reduce(function(Nt,zt){return zt($t,Nt)},Ft),Ft=($t[vt]||[]).reduce(function(Nt,zt){return zt($t,Nt)},Ft)),St.concat(Ft)},new pe.default):new pe.default}function it(gt,mt,xt){return We(xt,gt,!0)}function nt(gt,mt){var xt=ge.default.Attributor.Attribute.keys(gt),St=ge.default.Attributor.Class.keys(gt),$t=ge.default.Attributor.Style.keys(gt),Ft={};return xt.concat(St).concat($t).forEach(function(Nt){var zt=ge.default.query(Nt,ge.default.Scope.ATTRIBUTE);zt!=null&&(Ft[zt.attrName]=zt.value(gt),Ft[zt.attrName])||(zt=Ge[Nt],zt!=null&&(zt.attrName===Nt||zt.keyName===Nt)&&(Ft[zt.attrName]=zt.value(gt)||void 0),zt=Ne[Nt],zt!=null&&(zt.attrName===Nt||zt.keyName===Nt)&&(zt=Ne[Nt],Ft[zt.attrName]=zt.value(gt)||void 0))}),Object.keys(Ft).length>0&&(mt=We(mt,Ft)),mt}function bt(gt,mt){var xt=ge.default.query(gt);if(xt==null)return mt;if(xt.prototype instanceof ge.default.Embed){var St={},$t=xt.value(gt);$t!=null&&(St[xt.blotName]=$t,mt=new pe.default().insert(St,xt.formats(gt)))}else typeof xt.formats=="function"&&(mt=We(mt,xt.blotName,xt.formats(gt)));return mt}function
|
|
6041
|
+
`);return Ge.insert(We,Ne.attributes)}return Ge.push(Ne)},new ue.default)}te.default=Ye},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.Range=void 0;var ne=function(){function ze(qe,Ae){var De=[],Me=!0,Be=!1,Ve=void 0;try{for(var Ye=qe[Symbol.iterator](),Je;!(Me=(Je=Ye.next()).done)&&(De.push(Je.value),!(Ae&&De.length===Ae));Me=!0);}catch(vt){Be=!0,Ve=vt}finally{try{!Me&&Ye.return&&Ye.return()}finally{if(Be)throw Ve}}return De}return function(qe,Ae){if(Array.isArray(qe))return qe;if(Symbol.iterator in Object(qe))return ze(qe,Ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(){function ze(qe,Ae){for(var De=0;De<Ae.length;De++){var Me=Ae[De];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(qe,Me.key,Me)}}return function(qe,Ae,De){return Ae&&ze(qe.prototype,Ae),De&&ze(qe,De),qe}}(),de=re(0),he=we(de),ue=re(21),ce=we(ue),pe=re(11),fe=we(pe),ge=re(8),me=we(ge),ve=re(10),be=we(ve),ye=re(34);function we(ze){return ze&&ze.__esModule?ze:{default:ze}}function Se(ze){if(Array.isArray(ze)){for(var qe=0,Ae=Array(ze.length);qe<ze.length;qe++)Ae[qe]=ze[qe];return Ae}else return Array.from(ze)}function _e(ze,qe){if(!(ze instanceof qe))throw new TypeError("Cannot call a class as a function")}var Ce=(0,be.default)("quill:selection"),Le=function ze(qe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_e(this,ze),this.index=qe,this.length=Ae},Pe=function(){function ze(qe,Ae){var De=this;_e(this,ze),this.emitter=Ae,this.scroll=qe,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.rootDocument=this.root.getRootNode?this.root.getRootNode():document,this.cursor=he.default.create("cursor",this),this.lastRange=this.savedRange=new Le(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM(ye.SHADOW_SELECTIONCHANGE,document,function(){De.mouseDown||setTimeout(De.update.bind(De,me.default.sources.USER),1)}),this.emitter.on(me.default.events.EDITOR_CHANGE,function(Me,Be){Me===me.default.events.TEXT_CHANGE&&Be.length()>0&&De.update(me.default.sources.SILENT)}),this.emitter.on(me.default.events.SCROLL_BEFORE_UPDATE,function(){if(De.hasFocus()){var Me=De.getNativeRange();Me!=null&&Me.start.node!==De.cursor.textNode&&De.emitter.once(me.default.events.SCROLL_UPDATE,function(){try{De.setNativeRange(Me.start.node,Me.start.offset,Me.end.node,Me.end.offset)}catch{}})}}),this.emitter.on(me.default.events.SCROLL_OPTIMIZE,function(Me,Be){if(Be.range){var Ve=Be.range,Ye=Ve.startNode,Je=Ve.startOffset,vt=Ve.endNode,Xe=Ve.endOffset;De.setNativeRange(Ye,Je,vt,Xe)}}),this.update(me.default.sources.SILENT)}return oe(ze,[{key:"handleComposition",value:function(){var Ae=this;this.root.addEventListener("compositionstart",function(){Ae.composing=!0}),this.root.addEventListener("compositionend",function(){if(Ae.composing=!1,Ae.cursor.parent){var De=Ae.cursor.restore();if(!De)return;setTimeout(function(){Ae.setNativeRange(De.startNode,De.startOffset,De.endNode,De.endOffset)},1)}})}},{key:"handleDragging",value:function(){var Ae=this;this.emitter.listenDOM("mousedown",document.body,function(){Ae.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){Ae.mouseDown=!1,Ae.update(me.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Ae,De){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[Ae])){this.scroll.update();var Me=this.getNativeRange();if(!(Me==null||!Me.native.collapsed||he.default.query(Ae,he.default.Scope.BLOCK))){if(Me.start.node!==this.cursor.textNode){var Be=he.default.find(Me.start.node,!1);if(Be==null)return;if(Be instanceof he.default.Leaf){var Ve=Be.split(Me.start.offset);Be.parent.insertBefore(this.cursor,Ve)}else Be.insertBefore(this.cursor,Me.start.node);this.cursor.attach()}this.cursor.format(Ae,De),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Me=this.scroll.length();Ae=Math.min(Ae,Me-1),De=Math.min(Ae+De,Me-1)-Ae;var Be=void 0,Ve=this.scroll.leaf(Ae),Ye=ne(Ve,2),Je=Ye[0],vt=Ye[1];if(Je==null)return null;var Xe=Je.position(vt,!0),Ge=ne(Xe,2);Be=Ge[0],vt=Ge[1];var Ne=document.createRange();if(De>0){Ne.setStart(Be,vt);var Ue=this.scroll.leaf(Ae+De),We=ne(Ue,2);if(Je=We[0],vt=We[1],Je==null)return null;var Qe=Je.position(vt,!0),Ze=ne(Qe,2);return Be=Ze[0],vt=Ze[1],Ne.setEnd(Be,vt),Ne.getBoundingClientRect()}else{var je="left",Ke=void 0;return Be instanceof Text?(vt<Be.data.length?(Ne.setStart(Be,vt),Ne.setEnd(Be,vt+1)):(Ne.setStart(Be,vt-1),Ne.setEnd(Be,vt),je="right"),Ke=Ne.getBoundingClientRect()):(Ke=Je.domNode.getBoundingClientRect(),vt>0&&(je="right")),{bottom:Ke.top+Ke.height,height:Ke.height,left:Ke[je],right:Ke[je],top:Ke.top,width:0}}}},{key:"getNativeRange",value:function(){var Ae=(0,ye.getRange)(this.rootDocument);if(Ae==null)return null;var De=this.normalizeNative(Ae);return Ce.info("getNativeRange",De),De}},{key:"getRange",value:function(){var Ae=this.getNativeRange();if(Ae==null)return[null,null];var De=this.normalizedToRange(Ae);return[De,Ae]}},{key:"hasFocus",value:function(){return this.rootDocument.activeElement===this.root}},{key:"normalizedToRange",value:function(Ae){var De=this,Me=[[Ae.start.node,Ae.start.offset]];Ae.native.collapsed||Me.push([Ae.end.node,Ae.end.offset]);var Be=Me.map(function(Je){var vt=ne(Je,2),Xe=vt[0],Ge=vt[1],Ne=he.default.find(Xe,!0),Ue=Ne.offset(De.scroll);return Ge===0?Ue:Ne instanceof he.default.Container?Ue+Ne.length():Ue+Ne.index(Xe,Ge)}),Ve=Math.min(Math.max.apply(Math,Se(Be)),this.scroll.length()-1),Ye=Math.min.apply(Math,[Ve].concat(Se(Be)));return new Le(Ye,Ve-Ye)}},{key:"normalizeNative",value:function(Ae){if(!Ie(this.root,Ae.startContainer)||!Ae.collapsed&&!Ie(this.root,Ae.endContainer))return null;var De={start:{node:Ae.startContainer,offset:Ae.startOffset},end:{node:Ae.endContainer,offset:Ae.endOffset},native:Ae};return[De.start,De.end].forEach(function(Me){for(var Be=Me.node,Ve=Me.offset;!(Be instanceof Text)&&Be.childNodes.length>0;)if(Be.childNodes.length>Ve)Be=Be.childNodes[Ve],Ve=0;else if(Be.childNodes.length===Ve)Be=Be.lastChild,Ve=Be instanceof Text?Be.data.length:Be.childNodes.length+1;else break;Me.node=Be,Me.offset=Ve}),De}},{key:"rangeToNative",value:function(Ae){var De=this,Me=Ae.collapsed?[Ae.index]:[Ae.index,Ae.index+Ae.length],Be=[],Ve=this.scroll.length();return Me.forEach(function(Ye,Je){Ye=Math.min(Ve-1,Ye);var vt=void 0,Xe=De.scroll.leaf(Ye),Ge=ne(Xe,2),Ne=Ge[0],Ue=Ge[1],We=Ne.position(Ue,Je!==0),Qe=ne(We,2);vt=Qe[0],Ue=Qe[1],Be.push(vt,Ue)}),Be.length<2&&(Be=Be.concat(Be)),Be}},{key:"scrollIntoView",value:function(Ae){var De=this.lastRange;if(De!=null){var Me=this.getBounds(De.index,De.length);if(Me!=null){var Be=this.scroll.length()-1,Ve=this.scroll.line(Math.min(De.index,Be)),Ye=ne(Ve,1),Je=Ye[0],vt=Je;if(De.length>0){var Xe=this.scroll.line(Math.min(De.index+De.length,Be)),Ge=ne(Xe,1);vt=Ge[0]}if(!(Je==null||vt==null)){var Ne=Ae.getBoundingClientRect();Me.top<Ne.top?Ae.scrollTop-=Ne.top-Me.top:Me.bottom>Ne.bottom&&(Ae.scrollTop+=Me.bottom-Ne.bottom)}}}}},{key:"setNativeRange",value:function(Ae,De){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ae,Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:De,Ve=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Ce.info("setNativeRange",Ae,De,Me,Be),!(Ae!=null&&(this.root.parentNode==null||Ae.parentNode==null||Me.parentNode==null))){var Ye=typeof this.rootDocument.getSelection=="function"?this.rootDocument.getSelection():document.getSelection();if(Ye!=null)if(Ae!=null){this.hasFocus()||this.root.focus();var Je=(this.getNativeRange()||{}).native;if(Je==null||Ve||Ae!==Je.startContainer||De!==Je.startOffset||Me!==Je.endContainer||Be!==Je.endOffset){Ae.tagName=="BR"&&(De=[].indexOf.call(Ae.parentNode.childNodes,Ae),Ae=Ae.parentNode),Me.tagName=="BR"&&(Be=[].indexOf.call(Me.parentNode.childNodes,Me),Me=Me.parentNode);var vt=document.createRange();vt.setStart(Ae,De),vt.setEnd(Me,Be),Ye.removeAllRanges(),Ye.addRange(vt)}}else Ye.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me.default.sources.API;if(typeof De=="string"&&(Me=De,De=!1),Ce.info("setRange",Ae),Ae!=null){var Be=this.rangeToNative(Ae);this.setNativeRange.apply(this,Se(Be).concat([De]))}else this.setNativeRange(null);this.update(Me)}},{key:"update",value:function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me.default.sources.USER,De=this.lastRange,Me=this.getRange(),Be=ne(Me,2),Ve=Be[0],Ye=Be[1];if(this.lastRange=Ve,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,fe.default)(De,this.lastRange)){var Je;!this.composing&&Ye!=null&&Ye.native.collapsed&&Ye.start.node!==this.cursor.textNode&&this.cursor.restore();var vt=[me.default.events.SELECTION_CHANGE,(0,ce.default)(this.lastRange),(0,ce.default)(De),Ae];if((Je=this.emitter).emit.apply(Je,[me.default.events.EDITOR_CHANGE].concat(vt)),Ae!==me.default.sources.SILENT){var Xe;(Xe=this.emitter).emit.apply(Xe,vt)}}}}]),ze}();function Ie(ze,qe){try{qe.parentNode}catch{return!1}return qe instanceof Text&&(qe=qe.parentNode),ze.contains(qe)}te.Range=Le,te.default=Pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(0),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(){return ce(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return ne(ve,[{key:"insertInto",value:function(ye,we){ye.children.length===0?oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"insertInto",this).call(this,ye,we):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),ve}(he.default.Embed);ge.blotName="break",ge.tagName="BR",te.default=ge},function(J,te,re){var ne=this&&this.__extends||function(){var pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ge){fe.__proto__=ge}||function(fe,ge){for(var me in ge)ge.hasOwnProperty(me)&&(fe[me]=ge[me])};return function(fe,ge){pe(fe,ge);function me(){this.constructor=fe}fe.prototype=ge===null?Object.create(ge):(me.prototype=ge.prototype,new me)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(45),de=re(30),he=re(1),ue=function(pe){ne(fe,pe);function fe(ge){var me=pe.call(this,ge)||this;return me.build(),me}return fe.prototype.appendChild=function(ge){this.insertBefore(ge)},fe.prototype.attach=function(){pe.prototype.attach.call(this),this.children.forEach(function(ge){ge.attach()})},fe.prototype.build=function(){var ge=this;this.children=new oe.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(me){try{var ve=ce(me);ge.insertBefore(ve,ge.children.head||void 0)}catch(be){if(be instanceof he.ParchmentError)return;throw be}})},fe.prototype.deleteAt=function(ge,me){if(ge===0&&me===this.length())return this.remove();this.children.forEachAt(ge,me,function(ve,be,ye){ve.deleteAt(be,ye)})},fe.prototype.descendant=function(ge,me){var ve=this.children.find(me),be=ve[0],ye=ve[1];return ge.blotName==null&&ge(be)||ge.blotName!=null&&be instanceof ge?[be,ye]:be instanceof fe?be.descendant(ge,ye):[null,-1]},fe.prototype.descendants=function(ge,me,ve){me===void 0&&(me=0),ve===void 0&&(ve=Number.MAX_VALUE);var be=[],ye=ve;return this.children.forEachAt(me,ve,function(we,Se,_e){(ge.blotName==null&&ge(we)||ge.blotName!=null&&we instanceof ge)&&be.push(we),we instanceof fe&&(be=be.concat(we.descendants(ge,Se,ye))),ye-=_e}),be},fe.prototype.detach=function(){this.children.forEach(function(ge){ge.detach()}),pe.prototype.detach.call(this)},fe.prototype.formatAt=function(ge,me,ve,be){this.children.forEachAt(ge,me,function(ye,we,Se){ye.formatAt(we,Se,ve,be)})},fe.prototype.insertAt=function(ge,me,ve){var be=this.children.find(ge),ye=be[0],we=be[1];if(ye)ye.insertAt(we,me,ve);else{var Se=ve==null?he.create("text",me):he.create(me,ve);this.appendChild(Se)}},fe.prototype.insertBefore=function(ge,me){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(ve){return ge instanceof ve}))throw new he.ParchmentError("Cannot insert "+ge.statics.blotName+" into "+this.statics.blotName);ge.insertInto(this,me)},fe.prototype.length=function(){return this.children.reduce(function(ge,me){return ge+me.length()},0)},fe.prototype.moveChildren=function(ge,me){this.children.forEach(function(ve){ge.insertBefore(ve,me)})},fe.prototype.optimize=function(ge){if(pe.prototype.optimize.call(this,ge),this.children.length===0)if(this.statics.defaultChild!=null){var me=he.create(this.statics.defaultChild);this.appendChild(me),me.optimize(ge)}else this.remove()},fe.prototype.path=function(ge,me){me===void 0&&(me=!1);var ve=this.children.find(ge,me),be=ve[0],ye=ve[1],we=[[this,ge]];return be instanceof fe?we.concat(be.path(ye,me)):(be!=null&&we.push([be,ye]),we)},fe.prototype.removeChild=function(ge){this.children.remove(ge)},fe.prototype.replace=function(ge){ge instanceof fe&&ge.moveChildren(this),pe.prototype.replace.call(this,ge)},fe.prototype.split=function(ge,me){if(me===void 0&&(me=!1),!me){if(ge===0)return this;if(ge===this.length())return this.next}var ve=this.clone();return this.parent.insertBefore(ve,this.next),this.children.forEachAt(ge,this.length(),function(be,ye,we){be=be.split(ye,me),ve.appendChild(be)}),ve},fe.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},fe.prototype.update=function(ge,me){var ve=this,be=[],ye=[];ge.forEach(function(we){we.target===ve.domNode&&we.type==="childList"&&(be.push.apply(be,we.addedNodes),ye.push.apply(ye,we.removedNodes))}),ye.forEach(function(we){if(!(we.parentNode!=null&&we.tagName!=="IFRAME"&&document.body.compareDocumentPosition(we)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var Se=he.find(we);Se!=null&&(Se.domNode.parentNode==null||Se.domNode.parentNode===ve.domNode)&&Se.detach()}}),be.filter(function(we){return we.parentNode==ve.domNode}).sort(function(we,Se){return we===Se?0:we.compareDocumentPosition(Se)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(we){var Se=null;we.nextSibling!=null&&(Se=he.find(we.nextSibling));var _e=ce(we);(_e.next!=Se||_e.next==null)&&(_e.parent!=null&&_e.parent.removeChild(ve),ve.insertBefore(_e,Se||void 0))})},fe}(de.default);function ce(pe){var fe=he.find(pe);if(fe==null)try{fe=he.create(pe)}catch{fe=he.create(he.Scope.INLINE),[].slice.call(pe.childNodes).forEach(function(me){fe.domNode.appendChild(me)}),pe.parentNode&&pe.parentNode.replaceChild(fe.domNode,pe),fe.attach()}return fe}te.default=ue},function(J,te,re){var ne=this&&this.__extends||function(){var pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ge){fe.__proto__=ge}||function(fe,ge){for(var me in ge)ge.hasOwnProperty(me)&&(fe[me]=ge[me])};return function(fe,ge){pe(fe,ge);function me(){this.constructor=fe}fe.prototype=ge===null?Object.create(ge):(me.prototype=ge.prototype,new me)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(12),de=re(31),he=re(17),ue=re(1),ce=function(pe){ne(fe,pe);function fe(ge){var me=pe.call(this,ge)||this;return me.attributes=new de.default(me.domNode),me}return fe.formats=function(ge){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return ge.tagName.toLowerCase()},fe.prototype.format=function(ge,me){var ve=ue.query(ge);ve instanceof oe.default?this.attributes.attribute(ve,me):me&&ve!=null&&(ge!==this.statics.blotName||this.formats()[ge]!==me)&&this.replaceWith(ge,me)},fe.prototype.formats=function(){var ge=this.attributes.values(),me=this.statics.formats(this.domNode);return me!=null&&(ge[this.statics.blotName]=me),ge},fe.prototype.replaceWith=function(ge,me){var ve=pe.prototype.replaceWith.call(this,ge,me);return this.attributes.copy(ve),ve},fe.prototype.update=function(ge,me){var ve=this;pe.prototype.update.call(this,ge,me),ge.some(function(be){return be.target===ve.domNode&&be.type==="attributes"})&&this.attributes.build()},fe.prototype.wrap=function(ge,me){var ve=pe.prototype.wrap.call(this,ge,me);return ve instanceof fe&&ve.statics.scope===this.statics.scope&&this.attributes.move(ve),ve},fe}(he.default);te.default=ce},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(30),de=re(1),he=function(ue){ne(ce,ue);function ce(){return ue!==null&&ue.apply(this,arguments)||this}return ce.value=function(pe){return!0},ce.prototype.index=function(pe,fe){return this.domNode===pe||this.domNode.compareDocumentPosition(pe)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(fe,1):-1},ce.prototype.position=function(pe,fe){var ge=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return pe>0&&(ge+=1),[this.parent.domNode,ge]},ce.prototype.value=function(){var pe;return pe={},pe[this.statics.blotName]=this.statics.value(this.domNode)||!0,pe},ce.scope=de.Scope.INLINE_BLOT,ce}(oe.default);te.default=he},function(J,te,re){var ne=re(11),oe=re(3),de={attributes:{compose:function(ue,ce,pe){typeof ue!="object"&&(ue={}),typeof ce!="object"&&(ce={});var fe=oe(!0,{},ce);pe||(fe=Object.keys(fe).reduce(function(me,ve){return fe[ve]!=null&&(me[ve]=fe[ve]),me},{}));for(var ge in ue)ue[ge]!==void 0&&ce[ge]===void 0&&(fe[ge]=ue[ge]);return Object.keys(fe).length>0?fe:void 0},diff:function(ue,ce){typeof ue!="object"&&(ue={}),typeof ce!="object"&&(ce={});var pe=Object.keys(ue).concat(Object.keys(ce)).reduce(function(fe,ge){return ne(ue[ge],ce[ge])||(fe[ge]=ce[ge]===void 0?null:ce[ge]),fe},{});return Object.keys(pe).length>0?pe:void 0},transform:function(ue,ce,pe){if(typeof ue!="object")return ce;if(typeof ce=="object"){if(!pe)return ce;var fe=Object.keys(ce).reduce(function(ge,me){return ue[me]===void 0&&(ge[me]=ce[me]),ge},{});return Object.keys(fe).length>0?fe:void 0}}},iterator:function(ue){return new he(ue)},length:function(ue){return typeof ue.delete=="number"?ue.delete:typeof ue.retain=="number"?ue.retain:typeof ue.insert=="string"?ue.insert.length:1}};function he(ue){this.ops=ue,this.index=0,this.offset=0}he.prototype.hasNext=function(){return this.peekLength()<1/0},he.prototype.next=function(ue){ue||(ue=1/0);var ce=this.ops[this.index];if(ce){var pe=this.offset,fe=de.length(ce);if(ue>=fe-pe?(ue=fe-pe,this.index+=1,this.offset=0):this.offset+=ue,typeof ce.delete=="number")return{delete:ue};var ge={};return ce.attributes&&(ge.attributes=ce.attributes),typeof ce.retain=="number"?ge.retain=ue:typeof ce.insert=="string"?ge.insert=ce.insert.substr(pe,ue):ge.insert=ce.insert,ge}else return{retain:1/0}},he.prototype.peek=function(){return this.ops[this.index]},he.prototype.peekLength=function(){return this.ops[this.index]?de.length(this.ops[this.index])-this.offset:1/0},he.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},he.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var ue=this.offset,ce=this.index,pe=this.next(),fe=this.ops.slice(this.index);return this.offset=ue,this.index=ce,[pe].concat(fe)}else return[]},J.exports=de},function(J,te){var re=function(){function ne(ve,be){return be!=null&&ve instanceof be}var oe;try{oe=Map}catch{oe=function(){}}var de;try{de=Set}catch{de=function(){}}var he;try{he=Promise}catch{he=function(){}}function ue(ve,be,ye,we,Se){typeof be=="object"&&(ye=be.depth,we=be.prototype,Se=be.includeNonEnumerable,be=be.circular);var _e=[],Ce=[],Le=typeof Buffer<"u";typeof be>"u"&&(be=!0),typeof ye>"u"&&(ye=1/0);function Pe(Ie,ze){if(Ie===null)return null;if(ze===0)return Ie;var qe,Ae;if(typeof Ie!="object")return Ie;if(ne(Ie,oe))qe=new oe;else if(ne(Ie,de))qe=new de;else if(ne(Ie,he))qe=new he(function(Ge,Ne){Ie.then(function(Ue){Ge(Pe(Ue,ze-1))},function(Ue){Ne(Pe(Ue,ze-1))})});else if(ue.__isArray(Ie))qe=[];else if(ue.__isRegExp(Ie))qe=new RegExp(Ie.source,me(Ie)),Ie.lastIndex&&(qe.lastIndex=Ie.lastIndex);else if(ue.__isDate(Ie))qe=new Date(Ie.getTime());else{if(Le&&Buffer.isBuffer(Ie))return Buffer.allocUnsafe?qe=Buffer.allocUnsafe(Ie.length):qe=new Buffer(Ie.length),Ie.copy(qe),qe;ne(Ie,Error)?qe=Object.create(Ie):typeof we>"u"?(Ae=Object.getPrototypeOf(Ie),qe=Object.create(Ae)):(qe=Object.create(we),Ae=we)}if(be){var De=_e.indexOf(Ie);if(De!=-1)return Ce[De];_e.push(Ie),Ce.push(qe)}ne(Ie,oe)&&Ie.forEach(function(Ge,Ne){var Ue=Pe(Ne,ze-1),We=Pe(Ge,ze-1);qe.set(Ue,We)}),ne(Ie,de)&&Ie.forEach(function(Ge){var Ne=Pe(Ge,ze-1);qe.add(Ne)});for(var Me in Ie){var Be;Ae&&(Be=Object.getOwnPropertyDescriptor(Ae,Me)),!(Be&&Be.set==null)&&(qe[Me]=Pe(Ie[Me],ze-1))}if(Object.getOwnPropertySymbols)for(var Ve=Object.getOwnPropertySymbols(Ie),Me=0;Me<Ve.length;Me++){var Ye=Ve[Me],Je=Object.getOwnPropertyDescriptor(Ie,Ye);Je&&!Je.enumerable&&!Se||(qe[Ye]=Pe(Ie[Ye],ze-1),Je.enumerable||Object.defineProperty(qe,Ye,{enumerable:!1}))}if(Se)for(var vt=Object.getOwnPropertyNames(Ie),Me=0;Me<vt.length;Me++){var Xe=vt[Me],Je=Object.getOwnPropertyDescriptor(Ie,Xe);Je&&Je.enumerable||(qe[Xe]=Pe(Ie[Xe],ze-1),Object.defineProperty(qe,Xe,{enumerable:!1}))}return qe}return Pe(ve,ye)}ue.clonePrototype=function(be){if(be===null)return null;var ye=function(){};return ye.prototype=be,new ye};function ce(ve){return Object.prototype.toString.call(ve)}ue.__objToStr=ce;function pe(ve){return typeof ve=="object"&&ce(ve)==="[object Date]"}ue.__isDate=pe;function fe(ve){return typeof ve=="object"&&ce(ve)==="[object Array]"}ue.__isArray=fe;function ge(ve){return typeof ve=="object"&&ce(ve)==="[object RegExp]"}ue.__isRegExp=ge;function me(ve){var be="";return ve.global&&(be+="g"),ve.ignoreCase&&(be+="i"),ve.multiline&&(be+="m"),be}return ue.__getRegExpFlags=me,ue}();typeof J=="object"&&J.exports&&(J.exports=re)},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function qe(Ae,De){var Me=[],Be=!0,Ve=!1,Ye=void 0;try{for(var Je=Ae[Symbol.iterator](),vt;!(Be=(vt=Je.next()).done)&&(Me.push(vt.value),!(De&&Me.length===De));Be=!0);}catch(Xe){Ve=!0,Ye=Xe}finally{try{!Be&&Je.return&&Je.return()}finally{if(Ve)throw Ye}}return Me}return function(Ae,De){if(Array.isArray(Ae))return Ae;if(Symbol.iterator in Object(Ae))return qe(Ae,De);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(){function qe(Ae,De){for(var Me=0;Me<De.length;Me++){var Be=De[Me];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Ae,Be.key,Be)}}return function(Ae,De,Me){return De&&qe(Ae.prototype,De),Me&&qe(Ae,Me),Ae}}(),de=function qe(Ae,De,Me){Ae===null&&(Ae=Function.prototype);var Be=Object.getOwnPropertyDescriptor(Ae,De);if(Be===void 0){var Ve=Object.getPrototypeOf(Ae);return Ve===null?void 0:qe(Ve,De,Me)}else{if("value"in Be)return Be.value;var Ye=Be.get;return Ye===void 0?void 0:Ye.call(Me)}},he=re(0),ue=_e(he),ce=re(8),pe=_e(ce),fe=re(4),ge=_e(fe),me=re(16),ve=_e(me),be=re(13),ye=_e(be),we=re(25),Se=_e(we);function _e(qe){return qe&&qe.__esModule?qe:{default:qe}}function Ce(qe,Ae){if(!(qe instanceof Ae))throw new TypeError("Cannot call a class as a function")}function Le(qe,Ae){if(!qe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ae&&(typeof Ae=="object"||typeof Ae=="function")?Ae:qe}function Pe(qe,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ae);qe.prototype=Object.create(Ae&&Ae.prototype,{constructor:{value:qe,enumerable:!1,writable:!0,configurable:!0}}),Ae&&(Object.setPrototypeOf?Object.setPrototypeOf(qe,Ae):qe.__proto__=Ae)}function Ie(qe){return qe instanceof ge.default||qe instanceof fe.BlockEmbed}var ze=function(qe){Pe(Ae,qe);function Ae(De,Me){Ce(this,Ae);var Be=Le(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,De));return Be.emitter=Me.emitter,Array.isArray(Me.whitelist)&&(Be.whitelist=Me.whitelist.reduce(function(Ve,Ye){return Ve[Ye]=!0,Ve},{})),Be.domNode.addEventListener("DOMNodeInserted",function(){}),Be.optimize(),Be.enable(),Be}return oe(Ae,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(Me,Be){var Ve=this.line(Me),Ye=ne(Ve,2),Je=Ye[0],vt=Ye[1],Xe=this.line(Me+Be),Ge=ne(Xe,1),Ne=Ge[0];if(de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"deleteAt",this).call(this,Me,Be),Ne!=null&&Je!==Ne&&vt>0){if(Je instanceof fe.BlockEmbed||Ne instanceof fe.BlockEmbed){this.optimize();return}if(Je instanceof ye.default){var Ue=Je.newlineIndex(Je.length(),!0);if(Ue>-1&&(Je=Je.split(Ue+1),Je===Ne)){this.optimize();return}}else if(Ne instanceof ye.default){var We=Ne.newlineIndex(0);We>-1&&Ne.split(We+1)}var Qe=Ne.children.head instanceof ve.default?null:Ne.children.head;Je.moveChildren(Ne,Qe),Je.remove()}this.optimize()}},{key:"enable",value:function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",Me)}},{key:"formatAt",value:function(Me,Be,Ve,Ye){this.whitelist!=null&&!this.whitelist[Ve]||(de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"formatAt",this).call(this,Me,Be,Ve,Ye),this.optimize())}},{key:"insertAt",value:function(Me,Be,Ve){if(!(Ve!=null&&this.whitelist!=null&&!this.whitelist[Be])){if(Me>=this.length())if(Ve==null||ue.default.query(Be,ue.default.Scope.BLOCK)==null){var Ye=ue.default.create(this.statics.defaultChild);this.appendChild(Ye),Ve==null&&Be.endsWith(`
|
|
6042
|
+
`)&&(Be=Be.slice(0,-1)),Ye.insertAt(0,Be,Ve)}else{var Je=ue.default.create(Be,Ve);this.appendChild(Je)}else de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"insertAt",this).call(this,Me,Be,Ve);this.optimize()}}},{key:"insertBefore",value:function(Me,Be){if(Me.statics.scope===ue.default.Scope.INLINE_BLOT){var Ve=ue.default.create(this.statics.defaultChild);Ve.appendChild(Me),Me=Ve}de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"insertBefore",this).call(this,Me,Be)}},{key:"leaf",value:function(Me){return this.path(Me).pop()||[null,-1]}},{key:"line",value:function(Me){return Me===this.length()?this.line(Me-1):this.descendant(Ie,Me)}},{key:"lines",value:function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,Ve=function Ye(Je,vt,Xe){var Ge=[],Ne=Xe;return Je.children.forEachAt(vt,Xe,function(Ue,We,Qe){Ie(Ue)?Ge.push(Ue):Ue instanceof ue.default.Container&&(Ge=Ge.concat(Ye(Ue,We,Ne))),Ne-=Qe}),Ge};return Ve(this,Me,Be)}},{key:"optimize",value:function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"optimize",this).call(this,Me,Be),Me.length>0&&this.emitter.emit(pe.default.events.SCROLL_OPTIMIZE,Me,Be))}},{key:"path",value:function(Me){return de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"path",this).call(this,Me).slice(1)}},{key:"update",value:function(Me){if(this.batch!==!0){var Be=pe.default.sources.USER;typeof Me=="string"&&(Be=Me),Array.isArray(Me)||(Me=this.observer.takeRecords()),Me.length>0&&this.emitter.emit(pe.default.events.SCROLL_BEFORE_UPDATE,Be,Me),de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"update",this).call(this,Me.concat([])),Me.length>0&&this.emitter.emit(pe.default.events.SCROLL_UPDATE,Be,Me)}}}]),Ae}(ue.default.Scroll);ze.blotName="scroll",ze.className="ql-editor",ze.tagName="DIV",ze.defaultChild="block",ze.allowedChildren=[ge.default,fe.BlockEmbed,Se.default],te.default=ze},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.SHORTKEY=te.default=void 0;var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(je){return typeof je}:function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je},oe=function(){function je(Ke,it){var nt=[],bt=!0,Ct=!1,Dt=void 0;try{for(var Lt=Ke[Symbol.iterator](),Bt;!(bt=(Bt=Lt.next()).done)&&(nt.push(Bt.value),!(it&&nt.length===it));bt=!0);}catch(jt){Ct=!0,Dt=jt}finally{try{!bt&&Lt.return&&Lt.return()}finally{if(Ct)throw Dt}}return nt}return function(Ke,it){if(Array.isArray(Ke))return Ke;if(Symbol.iterator in Object(Ke))return je(Ke,it);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),de=function(){function je(Ke,it){for(var nt=0;nt<it.length;nt++){var bt=it[nt];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),Object.defineProperty(Ke,bt.key,bt)}}return function(Ke,it,nt){return it&&je(Ke.prototype,it),nt&&je(Ke,nt),Ke}}(),he=re(21),ue=qe(he),ce=re(11),pe=qe(ce),fe=re(3),ge=qe(fe),me=re(2),ve=qe(me),be=re(20),ye=qe(be),we=re(0),Se=qe(we),_e=re(5),Ce=qe(_e),Le=re(10),Pe=qe(Le),Ie=re(9),ze=qe(Ie);function qe(je){return je&&je.__esModule?je:{default:je}}function Ae(je,Ke,it){return Ke in je?Object.defineProperty(je,Ke,{value:it,enumerable:!0,configurable:!0,writable:!0}):je[Ke]=it,je}function De(je,Ke){if(!(je instanceof Ke))throw new TypeError("Cannot call a class as a function")}function Me(je,Ke){if(!je)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ke&&(typeof Ke=="object"||typeof Ke=="function")?Ke:je}function Be(je,Ke){if(typeof Ke!="function"&&Ke!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ke);je.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:je,enumerable:!1,writable:!0,configurable:!0}}),Ke&&(Object.setPrototypeOf?Object.setPrototypeOf(je,Ke):je.__proto__=Ke)}var Ve=(0,Pe.default)("quill:keyboard"),Ye=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Je=function(je){Be(Ke,je),de(Ke,null,[{key:"match",value:function(nt,bt){return bt=Ze(bt),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ct){return!!bt[Ct]!==nt[Ct]&&bt[Ct]!==null})?!1:bt.key===(nt.which||nt.keyCode)}}]);function Ke(it,nt){De(this,Ke);var bt=Me(this,(Ke.__proto__||Object.getPrototypeOf(Ke)).call(this,it,nt));return bt.bindings={},Object.keys(bt.options.bindings).forEach(function(Ct){Ct==="list autofill"&&it.scroll.whitelist!=null&&!it.scroll.whitelist.list||bt.options.bindings[Ct]&&bt.addBinding(bt.options.bindings[Ct])}),bt.addBinding({key:Ke.keys.ENTER,shiftKey:null},Ue),bt.addBinding({key:Ke.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(bt.addBinding({key:Ke.keys.BACKSPACE},{collapsed:!0},Xe),bt.addBinding({key:Ke.keys.DELETE},{collapsed:!0},Ge)):(bt.addBinding({key:Ke.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Xe),bt.addBinding({key:Ke.keys.DELETE},{collapsed:!0,suffix:/^.?$/},Ge)),bt.addBinding({key:Ke.keys.BACKSPACE},{collapsed:!1},Ne),bt.addBinding({key:Ke.keys.DELETE},{collapsed:!1},Ne),bt.addBinding({key:Ke.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Xe),bt.listen(),bt}return de(Ke,[{key:"addBinding",value:function(nt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Dt=Ze(nt);if(Dt==null||Dt.key==null)return Ve.warn("Attempted to add invalid keyboard binding",Dt);typeof bt=="function"&&(bt={handler:bt}),typeof Ct=="function"&&(Ct={handler:Ct}),Dt=(0,ge.default)(Dt,bt,Ct),this.bindings[Dt.key]=this.bindings[Dt.key]||[],this.bindings[Dt.key].push(Dt)}},{key:"listen",value:function(){var nt=this;this.quill.root.addEventListener("keydown",function(bt){if(!bt.defaultPrevented){var Ct=bt.which||bt.keyCode,Dt=(nt.bindings[Ct]||[]).filter(function(ir){return Ke.match(bt,ir)});if(Dt.length!==0){var Lt=nt.quill.getSelection();if(!(Lt==null||!nt.quill.hasFocus())){var Bt=nt.quill.getLine(Lt.index),jt=oe(Bt,2),dr=jt[0],rr=jt[1],gt=nt.quill.getLeaf(Lt.index),mt=oe(gt,2),xt=mt[0],St=mt[1],$t=Lt.length===0?[xt,St]:nt.quill.getLeaf(Lt.index+Lt.length),Ft=oe($t,2),Nt=Ft[0],zt=Ft[1],or=xt instanceof Se.default.Text?xt.value().slice(0,St):"",pr=Nt instanceof Se.default.Text?Nt.value().slice(zt):"",Zt={collapsed:Lt.length===0,empty:Lt.length===0&&dr.length()<=1,format:nt.quill.getFormat(Lt),offset:rr,prefix:or,suffix:pr},Er=Dt.some(function(ir){if(ir.collapsed!=null&&ir.collapsed!==Zt.collapsed||ir.empty!=null&&ir.empty!==Zt.empty||ir.offset!=null&&ir.offset!==Zt.offset)return!1;if(Array.isArray(ir.format)){if(ir.format.every(function(rt){return Zt.format[rt]==null}))return!1}else if(ne(ir.format)==="object"&&!Object.keys(ir.format).every(function(rt){return ir.format[rt]===!0?Zt.format[rt]!=null:ir.format[rt]===!1?Zt.format[rt]==null:(0,pe.default)(ir.format[rt],Zt.format[rt])}))return!1;return ir.prefix!=null&&!ir.prefix.test(Zt.prefix)||ir.suffix!=null&&!ir.suffix.test(Zt.suffix)?!1:ir.handler.call(nt,Lt,Zt)!==!0});Er&&bt.preventDefault()}}}})}}]),Ke}(ze.default);Je.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Je.DEFAULTS={bindings:{bold:Qe("bold"),italic:Qe("italic"),underline:Qe("underline"),indent:{key:Je.keys.TAB,format:["blockquote","indent","list"],handler:function(Ke,it){if(it.collapsed&&it.offset!==0)return!0;this.quill.format("indent","+1",Ce.default.sources.USER)}},outdent:{key:Je.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(Ke,it){if(it.collapsed&&it.offset!==0)return!0;this.quill.format("indent","-1",Ce.default.sources.USER)}},"outdent backspace":{key:Je.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(Ke,it){it.format.indent!=null?this.quill.format("indent","-1",Ce.default.sources.USER):it.format.list!=null&&this.quill.format("list",!1,Ce.default.sources.USER)}},"indent code-block":We(!0),"outdent code-block":We(!1),"remove tab":{key:Je.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(Ke){this.quill.deleteText(Ke.index-1,1,Ce.default.sources.USER)}},tab:{key:Je.keys.TAB,handler:function(Ke){this.quill.history.cutoff();var it=new ve.default().retain(Ke.index).delete(Ke.length).insert(" ");this.quill.updateContents(it,Ce.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Ke.index+1,Ce.default.sources.SILENT)}},"list empty enter":{key:Je.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(Ke,it){this.quill.format("list",!1,Ce.default.sources.USER),it.format.indent&&this.quill.format("indent",!1,Ce.default.sources.USER)}},"checklist enter":{key:Je.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(Ke){var it=this.quill.getLine(Ke.index),nt=oe(it,2),bt=nt[0],Ct=nt[1],Dt=(0,ge.default)({},bt.formats(),{list:"checked"}),Lt=new ve.default().retain(Ke.index).insert(`
|
|
6043
|
+
`,Dt).retain(bt.length()-Ct-1).retain(1,{list:"unchecked"});this.quill.updateContents(Lt,Ce.default.sources.USER),this.quill.setSelection(Ke.index+1,Ce.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Je.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(Ke,it){var nt=this.quill.getLine(Ke.index),bt=oe(nt,2),Ct=bt[0],Dt=bt[1],Lt=new ve.default().retain(Ke.index).insert(`
|
|
6044
|
+
`,it.format).retain(Ct.length()-Dt-1).retain(1,{header:null});this.quill.updateContents(Lt,Ce.default.sources.USER),this.quill.setSelection(Ke.index+1,Ce.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(Ke,it){var nt=it.prefix.length,bt=this.quill.getLine(Ke.index),Ct=oe(bt,2),Dt=Ct[0],Lt=Ct[1];if(Lt>nt)return!0;var Bt=void 0;switch(it.prefix.trim()){case"[]":case"[ ]":Bt="unchecked";break;case"[x]":Bt="checked";break;case"-":case"*":Bt="bullet";break;default:Bt="ordered"}this.quill.insertText(Ke.index," ",Ce.default.sources.USER),this.quill.history.cutoff();var jt=new ve.default().retain(Ke.index-Lt).delete(nt+1).retain(Dt.length()-2-Lt).retain(1,{list:Bt});this.quill.updateContents(jt,Ce.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Ke.index-nt,Ce.default.sources.SILENT)}},"code exit":{key:Je.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(Ke){var it=this.quill.getLine(Ke.index),nt=oe(it,2),bt=nt[0],Ct=nt[1],Dt=new ve.default().retain(Ke.index+bt.length()-Ct-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Dt,Ce.default.sources.USER)}},"embed left":vt(Je.keys.LEFT,!1),"embed left shift":vt(Je.keys.LEFT,!0),"embed right":vt(Je.keys.RIGHT,!1),"embed right shift":vt(Je.keys.RIGHT,!0)}};function vt(je,Ke){var it,nt=je===Je.keys.LEFT?"prefix":"suffix";return it={key:je,shiftKey:Ke,altKey:null},Ae(it,nt,/^$/),Ae(it,"handler",function(Ct){var Dt=Ct.index;je===Je.keys.RIGHT&&(Dt+=Ct.length+1);var Lt=this.quill.getLeaf(Dt),Bt=oe(Lt,1),jt=Bt[0];return jt instanceof Se.default.Embed?(je===Je.keys.LEFT?Ke?this.quill.setSelection(Ct.index-1,Ct.length+1,Ce.default.sources.USER):this.quill.setSelection(Ct.index-1,Ce.default.sources.USER):Ke?this.quill.setSelection(Ct.index,Ct.length+1,Ce.default.sources.USER):this.quill.setSelection(Ct.index+Ct.length+1,Ce.default.sources.USER),!1):!0}),it}function Xe(je,Ke){if(!(je.index===0||this.quill.getLength()<=1)){var it=this.quill.getLine(je.index),nt=oe(it,1),bt=nt[0],Ct={};if(Ke.offset===0){var Dt=this.quill.getLine(je.index-1),Lt=oe(Dt,1),Bt=Lt[0];if(Bt!=null&&Bt.length()>1){var jt=bt.formats(),dr=this.quill.getFormat(je.index-1,1);Ct=ye.default.attributes.diff(jt,dr)||{}}}var rr=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ke.prefix)?2:1;this.quill.deleteText(je.index-rr,rr,Ce.default.sources.USER),Object.keys(Ct).length>0&&this.quill.formatLine(je.index-rr,rr,Ct,Ce.default.sources.USER),this.quill.focus()}}function Ge(je,Ke){var it=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ke.suffix)?2:1;if(!(je.index>=this.quill.getLength()-it)){var nt={},bt=0,Ct=this.quill.getLine(je.index),Dt=oe(Ct,1),Lt=Dt[0];if(Ke.offset>=Lt.length()-1){var Bt=this.quill.getLine(je.index+1),jt=oe(Bt,1),dr=jt[0];if(dr){var rr=Lt.formats(),gt=this.quill.getFormat(je.index,1);nt=ye.default.attributes.diff(rr,gt)||{},bt=dr.length()}}this.quill.deleteText(je.index,it,Ce.default.sources.USER),Object.keys(nt).length>0&&this.quill.formatLine(je.index+bt-1,it,nt,Ce.default.sources.USER)}}function Ne(je){var Ke=this.quill.getLines(je),it={};if(Ke.length>1){var nt=Ke[0].formats(),bt=Ke[Ke.length-1].formats();it=ye.default.attributes.diff(bt,nt)||{}}this.quill.deleteText(je,Ce.default.sources.USER),Object.keys(it).length>0&&this.quill.formatLine(je.index,1,it,Ce.default.sources.USER),this.quill.setSelection(je.index,Ce.default.sources.SILENT),this.quill.focus()}function Ue(je,Ke){var it=this;je.length>0&&this.quill.scroll.deleteAt(je.index,je.length);var nt=Object.keys(Ke.format).reduce(function(bt,Ct){return Se.default.query(Ct,Se.default.Scope.BLOCK)&&!Array.isArray(Ke.format[Ct])&&(bt[Ct]=Ke.format[Ct]),bt},{});this.quill.insertText(je.index,`
|
|
6045
|
+
`,nt,Ce.default.sources.USER),this.quill.setSelection(je.index+1,Ce.default.sources.SILENT),this.quill.focus(),Object.keys(Ke.format).forEach(function(bt){nt[bt]==null&&(Array.isArray(Ke.format[bt])||bt!=="link"&&it.quill.format(bt,Ke.format[bt],Ce.default.sources.USER))})}function We(je){return{key:Je.keys.TAB,shiftKey:!je,format:{"code-block":!0},handler:function(it){var nt=Se.default.query("code-block"),bt=it.index,Ct=it.length,Dt=this.quill.scroll.descendant(nt,bt),Lt=oe(Dt,2),Bt=Lt[0],jt=Lt[1];if(Bt!=null){var dr=this.quill.getIndex(Bt),rr=Bt.newlineIndex(jt,!0)+1,gt=Bt.newlineIndex(dr+jt+Ct),mt=Bt.domNode.textContent.slice(rr,gt).split(`
|
|
6046
|
+
`);jt=0,mt.forEach(function(xt,St){je?(Bt.insertAt(rr+jt,nt.TAB),jt+=nt.TAB.length,St===0?bt+=nt.TAB.length:Ct+=nt.TAB.length):xt.startsWith(nt.TAB)&&(Bt.deleteAt(rr+jt,nt.TAB.length),jt-=nt.TAB.length,St===0?bt-=nt.TAB.length:Ct-=nt.TAB.length),jt+=xt.length+1}),this.quill.update(Ce.default.sources.USER),this.quill.setSelection(bt,Ct,Ce.default.sources.SILENT)}}}}function Qe(je){return{key:je[0].toUpperCase(),shortKey:!0,handler:function(it,nt){this.quill.format(je,!nt.format[je],Ce.default.sources.USER)}}}function Ze(je){if(typeof je=="string"||typeof je=="number")return Ze({key:je});if((typeof je>"u"?"undefined":ne(je))==="object"&&(je=(0,ue.default)(je,!1)),typeof je.key=="string")if(Je.keys[je.key.toUpperCase()]!=null)je.key=Je.keys[je.key.toUpperCase()];else if(je.key.length===1)je.key=je.key.toUpperCase().charCodeAt(0);else return null;return je.shortKey&&(je[Ye]=je.shortKey,delete je.shortKey),je}te.default=Je,te.SHORTKEY=Ye},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function ye(we,Se){var _e=[],Ce=!0,Le=!1,Pe=void 0;try{for(var Ie=we[Symbol.iterator](),ze;!(Ce=(ze=Ie.next()).done)&&(_e.push(ze.value),!(Se&&_e.length===Se));Ce=!0);}catch(qe){Le=!0,Pe=qe}finally{try{!Ce&&Ie.return&&Ie.return()}finally{if(Le)throw Pe}}return _e}return function(we,Se){if(Array.isArray(we))return we;if(Symbol.iterator in Object(we))return ye(we,Se);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function ye(we,Se,_e){we===null&&(we=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(we,Se);if(Ce===void 0){var Le=Object.getPrototypeOf(we);return Le===null?void 0:ye(Le,Se,_e)}else{if("value"in Ce)return Ce.value;var Pe=Ce.get;return Pe===void 0?void 0:Pe.call(_e)}},de=function(){function ye(we,Se){for(var _e=0;_e<Se.length;_e++){var Ce=Se[_e];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(we,Ce.key,Ce)}}return function(we,Se,_e){return Se&&ye(we.prototype,Se),_e&&ye(we,_e),we}}(),he=re(0),ue=fe(he),ce=re(7),pe=fe(ce);function fe(ye){return ye&&ye.__esModule?ye:{default:ye}}function ge(ye,we){if(!(ye instanceof we))throw new TypeError("Cannot call a class as a function")}function me(ye,we){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ye}function ve(ye,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ye.prototype=Object.create(we&&we.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,we):ye.__proto__=we)}var be=function(ye){ve(we,ye),de(we,null,[{key:"value",value:function(){}}]);function we(Se,_e){ge(this,we);var Ce=me(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,Se));return Ce.selection=_e,Ce.textNode=document.createTextNode(we.CONTENTS),Ce.domNode.appendChild(Ce.textNode),Ce._length=0,Ce}return de(we,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(_e,Ce){if(this._length!==0)return oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"format",this).call(this,_e,Ce);for(var Le=this,Pe=0;Le!=null&&Le.statics.scope!==ue.default.Scope.BLOCK_BLOT;)Pe+=Le.offset(Le.parent),Le=Le.parent;Le!=null&&(this._length=we.CONTENTS.length,Le.optimize(),Le.formatAt(Pe,we.CONTENTS.length,_e,Ce),this._length=0)}},{key:"index",value:function(_e,Ce){return _e===this.textNode?0:oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"index",this).call(this,_e,Ce)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var _e=this.textNode,Ce=this.selection.getNativeRange(),Le=void 0,Pe=void 0,Ie=void 0;if(Ce!=null&&Ce.start.node===_e&&Ce.end.node===_e){var ze=[_e,Ce.start.offset,Ce.end.offset];Le=ze[0],Pe=ze[1],Ie=ze[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==we.CONTENTS){var qe=this.textNode.data.split(we.CONTENTS).join("");this.next instanceof pe.default?(Le=this.next.domNode,this.next.insertAt(0,qe),this.textNode.data=we.CONTENTS):(this.textNode.data=qe,this.parent.insertBefore(ue.default.create(this.textNode),this),this.textNode=document.createTextNode(we.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),Pe!=null){var Ae=[Pe,Ie].map(function(Me){return Math.max(0,Math.min(Le.data.length,Me-1))}),De=ne(Ae,2);return Pe=De[0],Ie=De[1],{startNode:Le,startOffset:Pe,endNode:Le,endOffset:Ie}}}}},{key:"update",value:function(_e,Ce){var Le=this;if(_e.some(function(Ie){return Ie.type==="characterData"&&Ie.target===Le.textNode})){var Pe=this.restore();Pe&&(Ce.range=Pe)}}},{key:"value",value:function(){return""}}]),we}(ue.default.Embed);be.blotName="cursor",be.className="ql-cursor",be.tagName="span",be.CONTENTS="\uFEFF",te.default=be},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(0),oe=ue(ne),de=re(4),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(){return ce(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return ve}(oe.default.Container);ge.allowedChildren=[he.default,de.BlockEmbed,ge],te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.ColorStyle=te.ColorClass=te.ColorAttributor=void 0;var ne=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),oe=function be(ye,we,Se){ye===null&&(ye=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ye,we);if(_e===void 0){var Ce=Object.getPrototypeOf(ye);return Ce===null?void 0:be(Ce,we,Se)}else{if("value"in _e)return _e.value;var Le=_e.get;return Le===void 0?void 0:Le.call(Se)}},de=re(0),he=ue(de);function ue(be){return be&&be.__esModule?be:{default:be}}function ce(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function pe(be,ye){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:be}function fe(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ye):be.__proto__=ye)}var ge=function(be){fe(ye,be);function ye(){return ce(this,ye),pe(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return ne(ye,[{key:"value",value:function(Se){var _e=oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"value",this).call(this,Se);return _e.startsWith("rgb(")?(_e=_e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+_e.split(",").map(function(Ce){return("00"+parseInt(Ce).toString(16)).slice(-2)}).join("")):_e}}]),ye}(he.default.Attributor.Style),me=new he.default.Attributor.Class("color","ql-color",{scope:he.default.Scope.INLINE}),ve=new ge("color","color",{scope:he.default.Scope.INLINE});te.ColorAttributor=ge,te.ColorClass=me,te.ColorStyle=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.sanitize=te.default=void 0;var ne=function(){function ve(be,ye){for(var we=0;we<ye.length;we++){var Se=ye[we];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(be,Se.key,Se)}}return function(be,ye,we){return ye&&ve(be.prototype,ye),we&&ve(be,we),be}}(),oe=function ve(be,ye,we){be===null&&(be=Function.prototype);var Se=Object.getOwnPropertyDescriptor(be,ye);if(Se===void 0){var _e=Object.getPrototypeOf(be);return _e===null?void 0:ve(_e,ye,we)}else{if("value"in Se)return Se.value;var Ce=Se.get;return Ce===void 0?void 0:Ce.call(we)}},de=re(6),he=ue(de);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function ce(ve,be){if(!(ve instanceof be))throw new TypeError("Cannot call a class as a function")}function pe(ve,be){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:ve}function fe(ve,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);ve.prototype=Object.create(be&&be.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,be):ve.__proto__=be)}var ge=function(ve){fe(be,ve);function be(){return ce(this,be),pe(this,(be.__proto__||Object.getPrototypeOf(be)).apply(this,arguments))}return ne(be,[{key:"format",value:function(we,Se){if(we!==this.statics.blotName||!Se)return oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"format",this).call(this,we,Se);Se=this.constructor.sanitize(Se),this.domNode.setAttribute("href",Se)}}],[{key:"create",value:function(we){var Se=oe(be.__proto__||Object.getPrototypeOf(be),"create",this).call(this,we);return we=this.sanitize(we),Se.setAttribute("href",we),Se.setAttribute("target","_blank"),Se}},{key:"formats",value:function(we){return we.getAttribute("href")}},{key:"sanitize",value:function(we){return me(we,this.PROTOCOL_WHITELIST)?we:this.SANITIZED_URL}}]),be}(he.default);ge.blotName="link",ge.tagName="A",ge.SANITIZED_URL="about:blank",ge.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function me(ve,be){var ye=document.createElement("a");ye.href=ve;var we=ye.href.slice(0,ye.href.indexOf(":"));return be.indexOf(we)>-1}te.default=ge,te.sanitize=me},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(be){return typeof be}:function(be){return be&&typeof Symbol=="function"&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be},oe=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),de=re(23),he=pe(de),ue=re(108),ce=pe(ue);function pe(be){return be&&be.__esModule?be:{default:be}}function fe(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}var ge=0;function me(be,ye){be.setAttribute(ye,be.getAttribute(ye)!=="true")}var ve=function(){function be(ye){var we=this;fe(this,be),this.select=ye,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){we.togglePicker()}),this.label.addEventListener("keydown",function(Se){switch(Se.keyCode){case he.default.keys.ENTER:we.togglePicker();break;case he.default.keys.ESCAPE:we.escape(),Se.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return oe(be,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),me(this.label,"aria-expanded"),me(this.options,"aria-hidden")}},{key:"buildItem",value:function(we){var Se=this,_e=document.createElement("span");return _e.tabIndex="0",_e.setAttribute("role","button"),_e.classList.add("ql-picker-item"),we.hasAttribute("value")&&_e.setAttribute("data-value",we.getAttribute("value")),we.textContent&&_e.setAttribute("data-label",we.textContent),_e.addEventListener("click",function(){Se.selectItem(_e,!0)}),_e.addEventListener("keydown",function(Ce){switch(Ce.keyCode){case he.default.keys.ENTER:Se.selectItem(_e,!0),Ce.preventDefault();break;case he.default.keys.ESCAPE:Se.escape(),Ce.preventDefault();break}}),_e}},{key:"buildLabel",value:function(){var we=document.createElement("span");return we.classList.add("ql-picker-label"),we.innerHTML=ce.default,we.tabIndex="0",we.setAttribute("role","button"),we.setAttribute("aria-expanded","false"),this.container.appendChild(we),we}},{key:"buildOptions",value:function(){var we=this,Se=document.createElement("span");Se.classList.add("ql-picker-options"),Se.setAttribute("aria-hidden","true"),Se.tabIndex="-1",Se.id="ql-picker-options-"+ge,ge+=1,this.label.setAttribute("aria-controls",Se.id),this.options=Se,[].slice.call(this.select.options).forEach(function(_e){var Ce=we.buildItem(_e);Se.appendChild(Ce),_e.selected===!0&&we.selectItem(Ce)}),this.container.appendChild(Se)}},{key:"buildPicker",value:function(){var we=this;[].slice.call(this.select.attributes).forEach(function(Se){we.container.setAttribute(Se.name,Se.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var we=this;this.close(),setTimeout(function(){return we.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(we){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=this.container.querySelector(".ql-selected");if(we!==_e&&(_e!=null&&_e.classList.remove("ql-selected"),we!=null&&(we.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(we.parentNode.children,we),we.hasAttribute("data-value")?this.label.setAttribute("data-value",we.getAttribute("data-value")):this.label.removeAttribute("data-value"),we.hasAttribute("data-label")?this.label.setAttribute("data-label",we.getAttribute("data-label")):this.label.removeAttribute("data-label"),Se))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":ne(Event))==="object"){var Ce=document.createEvent("Event");Ce.initEvent("change",!0,!0),this.select.dispatchEvent(Ce)}this.close()}}},{key:"update",value:function(){var we=void 0;if(this.select.selectedIndex>-1){var Se=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];we=this.select.options[this.select.selectedIndex],this.selectItem(Se)}else this.selectItem(null);var _e=we!=null&&we!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",_e)}}]),be}();te.default=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(0),oe=Ve(ne),de=re(5),he=Ve(de),ue=re(4),ce=Ve(ue),pe=re(16),fe=Ve(pe),ge=re(25),me=Ve(ge),ve=re(24),be=Ve(ve),ye=re(36),we=Ve(ye),Se=re(6),_e=Ve(Se),Ce=re(22),Le=Ve(Ce),Pe=re(7),Ie=Ve(Pe),ze=re(56),qe=Ve(ze),Ae=re(43),De=Ve(Ae),Me=re(23),Be=Ve(Me);function Ve(Ye){return Ye&&Ye.__esModule?Ye:{default:Ye}}he.default.register({"blots/block":ce.default,"blots/block/embed":ue.BlockEmbed,"blots/break":fe.default,"blots/container":me.default,"blots/cursor":be.default,"blots/embed":we.default,"blots/inline":_e.default,"blots/scroll":Le.default,"blots/text":Ie.default,"modules/clipboard":qe.default,"modules/history":De.default,"modules/keyboard":Be.default}),oe.default.register(ce.default,fe.default,be.default,_e.default,Le.default,Ie.default),te.default=he.default},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(1),oe=function(){function de(he){this.domNode=he,this.domNode[ne.DATA_KEY]={blot:this}}return Object.defineProperty(de.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),de.create=function(he){if(this.tagName==null)throw new ne.ParchmentError("Blot definition missing tagName");var ue;return Array.isArray(this.tagName)?(typeof he=="string"&&(he=he.toUpperCase(),parseInt(he).toString()===he&&(he=parseInt(he))),typeof he=="number"?ue=document.createElement(this.tagName[he-1]):this.tagName.indexOf(he)>-1?ue=document.createElement(he):ue=document.createElement(this.tagName[0])):ue=document.createElement(this.tagName),this.className&&ue.classList.add(this.className),ue},de.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},de.prototype.clone=function(){var he=this.domNode.cloneNode(!1);return ne.create(he)},de.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[ne.DATA_KEY]},de.prototype.deleteAt=function(he,ue){var ce=this.isolate(he,ue);ce.remove()},de.prototype.formatAt=function(he,ue,ce,pe){var fe=this.isolate(he,ue);if(ne.query(ce,ne.Scope.BLOT)!=null&&pe)fe.wrap(ce,pe);else if(ne.query(ce,ne.Scope.ATTRIBUTE)!=null){var ge=ne.create(this.statics.scope);fe.wrap(ge),ge.format(ce,pe)}},de.prototype.insertAt=function(he,ue,ce){var pe=ce==null?ne.create("text",ue):ne.create(ue,ce),fe=this.split(he);this.parent.insertBefore(pe,fe)},de.prototype.insertInto=function(he,ue){ue===void 0&&(ue=null),this.parent!=null&&this.parent.children.remove(this);var ce=null;he.children.insertBefore(this,ue),ue!=null&&(ce=ue.domNode),(this.domNode.parentNode!=he.domNode||this.domNode.nextSibling!=ce)&&he.domNode.insertBefore(this.domNode,ce),this.parent=he,this.attach()},de.prototype.isolate=function(he,ue){var ce=this.split(he);return ce.split(ue),ce},de.prototype.length=function(){return 1},de.prototype.offset=function(he){return he===void 0&&(he=this.parent),this.parent==null||this==he?0:this.parent.children.offset(this)+this.parent.offset(he)},de.prototype.optimize=function(he){this.domNode[ne.DATA_KEY]!=null&&delete this.domNode[ne.DATA_KEY].mutations},de.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},de.prototype.replace=function(he){he.parent!=null&&(he.parent.insertBefore(this,he.next),he.remove())},de.prototype.replaceWith=function(he,ue){var ce=typeof he=="string"?ne.create(he,ue):he;return ce.replace(this),ce},de.prototype.split=function(he,ue){return he===0?this:this.next},de.prototype.update=function(he,ue){},de.prototype.wrap=function(he,ue){var ce=typeof he=="string"?ne.create(he,ue):he;return this.parent!=null&&this.parent.insertBefore(ce,this.next),ce.appendChild(this),ce},de.blotName="abstract",de}();te.default=oe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(12),oe=re(32),de=re(33),he=re(1),ue=function(){function ce(pe){this.attributes={},this.domNode=pe,this.build()}return ce.prototype.attribute=function(pe,fe){fe?pe.add(this.domNode,fe)&&(pe.value(this.domNode)!=null?this.attributes[pe.attrName]=pe:delete this.attributes[pe.attrName]):(pe.remove(this.domNode),delete this.attributes[pe.attrName])},ce.prototype.build=function(){var pe=this;this.attributes={};var fe=ne.default.keys(this.domNode),ge=oe.default.keys(this.domNode),me=de.default.keys(this.domNode);fe.concat(ge).concat(me).forEach(function(ve){var be=he.query(ve,he.Scope.ATTRIBUTE);be instanceof ne.default&&(pe.attributes[be.attrName]=be)})},ce.prototype.copy=function(pe){var fe=this;Object.keys(this.attributes).forEach(function(ge){var me=fe.attributes[ge].value(fe.domNode);pe.format(ge,me)})},ce.prototype.move=function(pe){var fe=this;this.copy(pe),Object.keys(this.attributes).forEach(function(ge){fe.attributes[ge].remove(fe.domNode)}),this.attributes={}},ce.prototype.values=function(){var pe=this;return Object.keys(this.attributes).reduce(function(fe,ge){return fe[ge]=pe.attributes[ge].value(pe.domNode),fe},{})},ce}();te.default=ue},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(12);function de(ue,ce){var pe=ue.getAttribute("class")||"";return pe.split(/\s+/).filter(function(fe){return fe.indexOf(ce+"-")===0})}var he=function(ue){ne(ce,ue);function ce(){return ue!==null&&ue.apply(this,arguments)||this}return ce.keys=function(pe){return(pe.getAttribute("class")||"").split(/\s+/).map(function(fe){return fe.split("-").slice(0,-1).join("-")})},ce.prototype.add=function(pe,fe){return this.canAdd(pe,fe)?(this.remove(pe),pe.classList.add(this.keyName+"-"+fe),!0):!1},ce.prototype.remove=function(pe){var fe=de(pe,this.keyName);fe.forEach(function(ge){pe.classList.remove(ge)}),pe.classList.length===0&&pe.removeAttribute("class")},ce.prototype.value=function(pe){var fe=de(pe,this.keyName)[0]||"",ge=fe.slice(this.keyName.length+1);return this.canAdd(pe,ge)?ge:""},ce}(oe.default);te.default=he},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(12);function de(ue){var ce=ue.split("-"),pe=ce.slice(1).map(function(fe){return fe[0].toUpperCase()+fe.slice(1)}).join("");return ce[0]+pe}var he=function(ue){ne(ce,ue);function ce(){return ue!==null&&ue.apply(this,arguments)||this}return ce.keys=function(pe){return(pe.getAttribute("style")||"").split(";").map(function(fe){var ge=fe.split(":");return ge[0].trim()})},ce.prototype.add=function(pe,fe){return this.canAdd(pe,fe)?(pe.style[de(this.keyName)]=fe,!0):!1},ce.prototype.remove=function(pe){pe.style[de(this.keyName)]="",pe.getAttribute("style")||pe.removeAttribute("style")},ce.prototype.value=function(pe){var fe=pe.style[de(this.keyName)];return this.canAdd(pe,fe)?fe:""},ce}(oe.default);te.default=he},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.getRange=Pe,te.internalGetShadowSelection=ze;var ne=te.SHADOW_SELECTIONCHANGE="-shadow-selectionchange",oe="attachShadow"in Element.prototype&&"getRootNode"in Element.prototype,de=!!(oe&&document.createElement("div").attachShadow({mode:"open"}).getSelection),he=window.ShadyDOM&&window.ShadyDOM.inUse,ue=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ce=!oe||he||!de&&!ue,pe=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE];function fe(qe){return pe.includes(qe.nodeType)}function ge(qe,Ae,De){var Me=Ae.childNodes||Ae.children;if(!Me)return Ae;for(var Be=0;Be<Me.length;++Be){var Ve=De?Be:Me.length-1-Be,Ye=Me[Ve];if(fe(Ye)&&qe.containsNode(Ye,!0))return qe.containsNode(Ye,!1)?Ye:ge(qe,Ye,De)}return Ae}var me=function(){if(de||ce)return document.addEventListener("selectionchange",function(){document.dispatchEvent(new CustomEvent(ne))}),function(){};var qe=!1,Ae=[];return document.addEventListener("selectionchange",function(De){qe||(document.dispatchEvent(new CustomEvent(ne)),qe=!0,window.setTimeout(function(){qe=!1},2),Ae.forEach(function(Me){return Me(De)}))}),function(De){return Ae.push(De)}}(),ve=!1,be=null;me(function(){var qe=window.getSelection();qe.type==="Caret"?ve=!0:ve&&!be&&(be=Promise.resolve(!0).then(function(){ve=!1,be=null}))});function ye(qe,Ae,De){for(var Me=Ae;(Ae=Se(Ae,De))&&Ae.contains(Me););return Ae?Ae instanceof Element&&qe.containsNode(Ae,!0):!1}function we(qe,Ae,De){if(qe.type==="Range"){var Me=function(){return qe.toString().length},Be=Me();if(Be===1&&ve&&Ae===De){qe.extend(Ae,0),qe.collapseToEnd();return}var Ve=void 0;if(qe.modify("extend","forward","character"),Ve=Me(),Ve>Be||ye(qe,De,!0))return qe.modify("extend","backward","character"),!0;if(Ve<Be||!qe.containsNode(Ae))return qe.modify("extend","backward","character"),!1;if(qe.modify("extend","backward","character"),Ve=Me(),Ve>Be||ye(qe,Ae,!1))return qe.modify("extend","forward","character"),!1;if(Ve<Be||!qe.containsNode(De))return qe.modify("extend","forward","character"),!0}}function Se(qe,Ae){if(!Ae)return qe.previousSibling||qe.parentNode||null;for(;qe;){if(qe.nextSibling)return qe.nextSibling;qe=qe.parentNode}return null}function _e(qe){return qe.nodeType!==Node.TEXT_NODE?0:/^\s*/.exec(qe.textContent)[0].length}function Ce(qe){if(qe.nodeType!==Node.TEXT_NODE)return 0;var Ae=/\s*$/.exec(qe.textContent)[0].length;return Ae?Ae-1:0}var Le=new Map;function Pe(qe){if(de||ce){var Ae=(ce?document:qe).getSelection();return Ae.rangeCount?Ae.getRangeAt(0):null}var De=Le.get(qe);if(De)return De;var Me=ze(qe);return Le.set(qe,Me.range),window.setTimeout(function(){Le.delete(qe)},0),Me.range}var Ie=document.createTextNode("");function ze(qe){var Ae=document.createRange(),De=window.getSelection();if(!De.containsNode(qe.host,!0))return{range:null,mode:"none"};qe.insertBefore(Ie,qe.childNodes[0]);var Me=De.containsNode(Ie);if(Ie.remove(),Me)return{range:null,mode:"outside-before"};qe.appendChild(Ie);var Be=De.containsNode(Ie);if(Ie.remove(),Be)return{range:null,mode:"outside-after"};var Ve=function(){return De.toString().length};if(!(De.type==="Caret"||De.type==="Range"))throw new TypeError("unexpected type: "+De.type);var Ye=ge(De,qe,!0),Je=void 0,vt=void 0;if(De.type==="Range"&&(Je=ge(De,qe,!1),vt=we(De,Ye,Je)),De.type==="Caret"){De.extend(Ye,0);var Xe=Ve();return De.collapseToEnd(),Ae.setStart(Ye,Xe),Ae.setEnd(Ye,Xe),{range:Ae,mode:"caret"}}else if(vt===void 0){if(De.type!=="Range")throw new TypeError("unexpected type: "+De.type);return Ae.setStart(Ye,0),Ae.setEnd(Je,Je.length),{range:Ae,mode:"all"}}var Ge=Ve(),Ne=void 0,Ue=void 0,We=Je.length-Ce(Je);return vt?(De.extend(Ye,0),Ne=Ve()+_e(Ye),De.extend(Je,We),Ue=We-(Ve()-Ge),De.extend(Je,Ue)):(De.extend(Je,We),Ue=We-Ve(),De.extend(Ye,0),Ne=Ve()-Ge+_e(Ye),De.extend(Ye,Ne)),Ae.setStart(Ye,Ne),Ae.setEnd(Je,Ue),{mode:vt?"right":"left",range:Ae}}},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function he(ue,ce){for(var pe=0;pe<ce.length;pe++){var fe=ce[pe];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ue,fe.key,fe)}}return function(ue,ce,pe){return ce&&he(ue.prototype,ce),pe&&he(ue,pe),ue}}();function oe(he,ue){if(!(he instanceof ue))throw new TypeError("Cannot call a class as a function")}var de=function(){function he(ue,ce){oe(this,he),this.quill=ue,this.options=ce,this.modules={}}return ne(he,[{key:"init",value:function(){var ce=this;Object.keys(this.options.modules).forEach(function(pe){ce.modules[pe]==null&&ce.addModule(pe)})}},{key:"addModule",value:function(ce){var pe=this.quill.constructor.import("modules/"+ce);return this.modules[ce]=new pe(this.quill,this.options.modules[ce]||{}),this.modules[ce]}}]),he}();de.DEFAULTS={modules:{}},de.themes={default:de},te.default=de},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function ye(we,Se){for(var _e=0;_e<Se.length;_e++){var Ce=Se[_e];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(we,Ce.key,Ce)}}return function(we,Se,_e){return Se&&ye(we.prototype,Se),_e&&ye(we,_e),we}}(),oe=function ye(we,Se,_e){we===null&&(we=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(we,Se);if(Ce===void 0){var Le=Object.getPrototypeOf(we);return Le===null?void 0:ye(Le,Se,_e)}else{if("value"in Ce)return Ce.value;var Pe=Ce.get;return Pe===void 0?void 0:Pe.call(_e)}},de=re(0),he=pe(de),ue=re(7),ce=pe(ue);function pe(ye){return ye&&ye.__esModule?ye:{default:ye}}function fe(ye,we){if(!(ye instanceof we))throw new TypeError("Cannot call a class as a function")}function ge(ye,we){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ye}function me(ye,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ye.prototype=Object.create(we&&we.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,we):ye.__proto__=we)}var ve="\uFEFF",be=function(ye){me(we,ye);function we(Se){fe(this,we);var _e=ge(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,Se));return _e.contentNode=document.createElement("span"),_e.contentNode.setAttribute("contenteditable",!1),[].slice.call(_e.domNode.childNodes).forEach(function(Ce){_e.contentNode.appendChild(Ce)}),_e.leftGuard=document.createTextNode(ve),_e.rightGuard=document.createTextNode(ve),_e.domNode.appendChild(_e.leftGuard),_e.domNode.appendChild(_e.contentNode),_e.domNode.appendChild(_e.rightGuard),_e}return ne(we,[{key:"index",value:function(_e,Ce){return _e===this.leftGuard?0:_e===this.rightGuard?1:oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"index",this).call(this,_e,Ce)}},{key:"restore",value:function(_e){var Ce=void 0,Le=void 0,Pe=_e.data.split(ve).join("");if(_e===this.leftGuard)if(this.prev instanceof ce.default){var Ie=this.prev.length();this.prev.insertAt(Ie,Pe),Ce={startNode:this.prev.domNode,startOffset:Ie+Pe.length}}else Le=document.createTextNode(Pe),this.parent.insertBefore(he.default.create(Le),this),Ce={startNode:Le,startOffset:Pe.length};else _e===this.rightGuard&&(this.next instanceof ce.default?(this.next.insertAt(0,Pe),Ce={startNode:this.next.domNode,startOffset:Pe.length}):(Le=document.createTextNode(Pe),this.parent.insertBefore(he.default.create(Le),this.next),Ce={startNode:Le,startOffset:Pe.length}));return _e.data=ve,Ce}},{key:"update",value:function(_e,Ce){var Le=this;_e.forEach(function(Pe){if(Pe.type==="characterData"&&(Pe.target===Le.leftGuard||Pe.target===Le.rightGuard)){var Ie=Le.restore(Pe.target);Ie&&(Ce.range=Ie)}})}}]),we}(he.default.Embed);te.default=be},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.AlignStyle=te.AlignClass=te.AlignAttribute=void 0;var ne=re(0),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}var he={scope:oe.default.Scope.BLOCK,whitelist:["right","center","justify"]},ue=new oe.default.Attributor.Attribute("align","align",he),ce=new oe.default.Attributor.Class("align","ql-align",he),pe=new oe.default.Attributor.Style("align","text-align",he);te.AlignAttribute=ue,te.AlignClass=ce,te.AlignStyle=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.BackgroundStyle=te.BackgroundClass=void 0;var ne=re(0),oe=he(ne),de=re(26);function he(pe){return pe&&pe.__esModule?pe:{default:pe}}var ue=new oe.default.Attributor.Class("background","ql-bg",{scope:oe.default.Scope.INLINE}),ce=new de.ColorAttributor("background","background-color",{scope:oe.default.Scope.INLINE});te.BackgroundClass=ue,te.BackgroundStyle=ce},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.DirectionStyle=te.DirectionClass=te.DirectionAttribute=void 0;var ne=re(0),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}var he={scope:oe.default.Scope.BLOCK,whitelist:["rtl"]},ue=new oe.default.Attributor.Attribute("direction","dir",he),ce=new oe.default.Attributor.Class("direction","ql-direction",he),pe=new oe.default.Attributor.Style("direction","direction",he);te.DirectionAttribute=ue,te.DirectionClass=ce,te.DirectionStyle=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.FontClass=te.FontStyle=void 0;var ne=function(){function ye(we,Se){for(var _e=0;_e<Se.length;_e++){var Ce=Se[_e];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(we,Ce.key,Ce)}}return function(we,Se,_e){return Se&&ye(we.prototype,Se),_e&&ye(we,_e),we}}(),oe=function ye(we,Se,_e){we===null&&(we=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(we,Se);if(Ce===void 0){var Le=Object.getPrototypeOf(we);return Le===null?void 0:ye(Le,Se,_e)}else{if("value"in Ce)return Ce.value;var Pe=Ce.get;return Pe===void 0?void 0:Pe.call(_e)}},de=re(0),he=ue(de);function ue(ye){return ye&&ye.__esModule?ye:{default:ye}}function ce(ye,we){if(!(ye instanceof we))throw new TypeError("Cannot call a class as a function")}function pe(ye,we){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ye}function fe(ye,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ye.prototype=Object.create(we&&we.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,we):ye.__proto__=we)}var ge={scope:he.default.Scope.INLINE,whitelist:["serif","monospace"]},me=new he.default.Attributor.Class("font","ql-font",ge),ve=function(ye){fe(we,ye);function we(){return ce(this,we),pe(this,(we.__proto__||Object.getPrototypeOf(we)).apply(this,arguments))}return ne(we,[{key:"value",value:function(_e){return oe(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"value",this).call(this,_e).replace(/["']/g,"")}}]),we}(he.default.Attributor.Style),be=new ve("font","font-family",ge);te.FontStyle=be,te.FontClass=me},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.SizeStyle=te.SizeClass=void 0;var ne=re(0),oe=de(ne);function de(ce){return ce&&ce.__esModule?ce:{default:ce}}var he=new oe.default.Attributor.Class("size","ql-size",{scope:oe.default.Scope.INLINE,whitelist:["small","large","huge"]}),ue=new oe.default.Attributor.Style("size","font-size",{scope:oe.default.Scope.INLINE,whitelist:["10px","18px","32px"]});te.SizeClass=he,te.SizeStyle=ue},function(J,te,re){J.exports={align:{"":re(77),center:re(78),right:re(79),justify:re(80)},background:re(81),blockquote:re(82),bold:re(83),clean:re(84),code:re(59),"code-block":re(59),color:re(85),direction:{"":re(86),rtl:re(87)},float:{center:re(88),full:re(89),left:re(90),right:re(91)},formula:re(92),header:{1:re(93),2:re(94)},italic:re(95),image:re(96),indent:{"+1":re(97),"-1":re(98)},link:re(99),list:{ordered:re(100),bullet:re(101),check:re(102)},script:{sub:re(103),super:re(104)},strike:re(105),underline:re(106),video:re(107)}},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.getLastChangeIndex=te.default=void 0;var ne=function(){function Se(_e,Ce){for(var Le=0;Le<Ce.length;Le++){var Pe=Ce[Le];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(_e,Pe.key,Pe)}}return function(_e,Ce,Le){return Ce&&Se(_e.prototype,Ce),Le&&Se(_e,Le),_e}}(),oe=re(0),de=fe(oe),he=re(5),ue=fe(he),ce=re(9),pe=fe(ce);function fe(Se){return Se&&Se.__esModule?Se:{default:Se}}function ge(Se,_e){if(!(Se instanceof _e))throw new TypeError("Cannot call a class as a function")}function me(Se,_e){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e&&(typeof _e=="object"||typeof _e=="function")?_e:Se}function ve(Se,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _e);Se.prototype=Object.create(_e&&_e.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),_e&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,_e):Se.__proto__=_e)}var be=function(Se){ve(_e,Se);function _e(Ce,Le){ge(this,_e);var Pe=me(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this,Ce,Le));return Pe.lastRecorded=0,Pe.ignoreChange=!1,Pe.clear(),Pe.quill.on(ue.default.events.EDITOR_CHANGE,function(Ie,ze,qe,Ae){Ie!==ue.default.events.TEXT_CHANGE||Pe.ignoreChange||(!Pe.options.userOnly||Ae===ue.default.sources.USER?Pe.record(ze,qe):Pe.transform(ze))}),Pe.quill.keyboard.addBinding({key:"Z",shortKey:!0},Pe.undo.bind(Pe)),Pe.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},Pe.redo.bind(Pe)),/Win/i.test(navigator.platform)&&Pe.quill.keyboard.addBinding({key:"Y",shortKey:!0},Pe.redo.bind(Pe)),Pe}return ne(_e,[{key:"change",value:function(Le,Pe){if(this.stack[Le].length!==0){var Ie=this.stack[Le].pop();this.stack[Pe].push(Ie),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(Ie[Le],ue.default.sources.USER),this.ignoreChange=!1;var ze=we(Ie[Le]);this.quill.setSelection(ze)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(Le,Pe){if(Le.ops.length!==0){this.stack.redo=[];var Ie=this.quill.getContents().diff(Pe),ze=Date.now();if(this.lastRecorded+this.options.delay>ze&&this.stack.undo.length>0){var qe=this.stack.undo.pop();Ie=Ie.compose(qe.undo),Le=qe.redo.compose(Le)}else this.lastRecorded=ze;this.stack.undo.push({redo:Le,undo:Ie}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(Le){this.stack.undo.forEach(function(Pe){Pe.undo=Le.transform(Pe.undo,!0),Pe.redo=Le.transform(Pe.redo,!0)}),this.stack.redo.forEach(function(Pe){Pe.undo=Le.transform(Pe.undo,!0),Pe.redo=Le.transform(Pe.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),_e}(pe.default);be.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function ye(Se){var _e=Se.ops[Se.ops.length-1];return _e==null?!1:_e.insert!=null?typeof _e.insert=="string"&&_e.insert.endsWith(`
|
|
6047
|
+
`):_e.attributes!=null?Object.keys(_e.attributes).some(function(Ce){return de.default.query(Ce,de.default.Scope.BLOCK)!=null}):!1}function we(Se){var _e=Se.reduce(function(Le,Pe){return Le+=Pe.delete||0,Le},0),Ce=Se.length()-_e;return ye(Se)&&(Ce-=1),Ce}te.default=be,te.getLastChangeIndex=we},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.BaseTooltip=void 0;var ne=function(){function Ue(We,Qe){for(var Ze=0;Ze<Qe.length;Ze++){var je=Qe[Ze];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(We,je.key,je)}}return function(We,Qe,Ze){return Qe&&Ue(We.prototype,Qe),Ze&&Ue(We,Ze),We}}(),oe=function Ue(We,Qe,Ze){We===null&&(We=Function.prototype);var je=Object.getOwnPropertyDescriptor(We,Qe);if(je===void 0){var Ke=Object.getPrototypeOf(We);return Ke===null?void 0:Ue(Ke,Qe,Ze)}else{if("value"in je)return je.value;var it=je.get;return it===void 0?void 0:it.call(Ze)}},de=re(3),he=ze(de),ue=re(2),ce=ze(ue),pe=re(8),fe=ze(pe),ge=re(23),me=ze(ge),ve=re(35),be=ze(ve),ye=re(60),we=ze(ye),Se=re(61),_e=ze(Se),Ce=re(28),Le=ze(Ce),Pe=re(62),Ie=ze(Pe);function ze(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function qe(Ue,We){if(!(Ue instanceof We))throw new TypeError("Cannot call a class as a function")}function Ae(Ue,We){if(!Ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We&&(typeof We=="object"||typeof We=="function")?We:Ue}function De(Ue,We){if(typeof We!="function"&&We!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof We);Ue.prototype=Object.create(We&&We.prototype,{constructor:{value:Ue,enumerable:!1,writable:!0,configurable:!0}}),We&&(Object.setPrototypeOf?Object.setPrototypeOf(Ue,We):Ue.__proto__=We)}var Me=[!1,"center","right","justify"],Be=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Ve=[!1,"serif","monospace"],Ye=["1","2","3",!1],Je=["petita",!1,"gran","enorme"],vt=function(Ue){De(We,Ue);function We(Qe,Ze){qe(this,We);var je=Ae(this,(We.__proto__||Object.getPrototypeOf(We)).call(this,Qe,Ze)),Ke=function it(nt){if(!document.body.contains(Qe.root))return document.body.removeEventListener("click",it);je.tooltip!=null&&!je.tooltip.root.contains(nt.target)&&document.activeElement!==je.tooltip.textbox&&!je.quill.hasFocus()&&je.tooltip.hide(),je.pickers!=null&&je.pickers.forEach(function(bt){bt.container.contains(nt.target)||bt.close()})};return Qe.emitter.listenDOM("click",document.body,Ke),je}return ne(We,[{key:"addModule",value:function(Ze){var je=oe(We.prototype.__proto__||Object.getPrototypeOf(We.prototype),"addModule",this).call(this,Ze);return Ze==="toolbar"&&this.extendToolbar(je),je}},{key:"buildButtons",value:function(Ze,je){Ze.forEach(function(Ke){var it=Ke.getAttribute("class")||"";it.split(/\s+/).forEach(function(nt){if(nt.startsWith("ql-")&&(nt=nt.slice(3),je[nt]!=null))if(nt==="direction")Ke.innerHTML=je[nt][""]+je[nt].rtl;else if(typeof je[nt]=="string")Ke.innerHTML=je[nt];else{var bt=Ke.value||"";bt!=null&&je[nt][bt]&&(Ke.innerHTML=je[nt][bt])}})})}},{key:"buildPickers",value:function(Ze,je){var Ke=this;this.pickers=Ze.map(function(nt){if(nt.classList.contains("ql-align"))return nt.querySelector("option")==null&&Ne(nt,Me),new _e.default(nt,je.align);if(nt.classList.contains("ql-background")||nt.classList.contains("ql-color")){var bt=nt.classList.contains("ql-background")?"background":"color";return nt.querySelector("option")==null&&Ne(nt,Be,bt==="background"?"#ffffff":"#000000"),new we.default(nt,je[bt])}else return nt.querySelector("option")==null&&(nt.classList.contains("ql-font")?Ne(nt,Ve):nt.classList.contains("ql-header")?Ne(nt,Ye):nt.classList.contains("ql-size")&&Ne(nt,Je)),new Le.default(nt)});var it=function(){Ke.pickers.forEach(function(bt){bt.update()})};this.quill.on(fe.default.events.EDITOR_CHANGE,it)}}]),We}(be.default);vt.DEFAULTS=(0,he.default)(!0,{},be.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var We=this,Qe=this.container.querySelector("input.ql-image[type=file]");Qe==null&&(Qe=document.createElement("input"),Qe.setAttribute("type","file"),Qe.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Qe.classList.add("ql-image"),Qe.addEventListener("change",function(){if(Qe.files!=null&&Qe.files[0]!=null){var Ze=new FileReader;Ze.onload=function(je){var Ke=We.quill.getSelection(!0);We.quill.updateContents(new ce.default().retain(Ke.index).delete(Ke.length).insert({image:je.target.result}),fe.default.sources.USER),We.quill.setSelection(Ke.index+1,fe.default.sources.SILENT),Qe.value=""},Ze.readAsDataURL(Qe.files[0])}}),this.container.appendChild(Qe)),Qe.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Xe=function(Ue){De(We,Ue);function We(Qe,Ze){qe(this,We);var je=Ae(this,(We.__proto__||Object.getPrototypeOf(We)).call(this,Qe,Ze));return je.textbox=je.root.querySelector('input[type="text"]'),je.listen(),je}return ne(We,[{key:"listen",value:function(){var Ze=this;this.textbox.addEventListener("keydown",function(je){me.default.match(je,"enter")?(Ze.save(),je.preventDefault()):me.default.match(je,"escape")&&(Ze.cancel(),je.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),je!=null?this.textbox.value=je:Ze!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Ze)||""),this.root.setAttribute("data-mode",Ze)}},{key:"restoreFocus",value:function(){var Ze=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=Ze}},{key:"save",value:function(){var Ze=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var je=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ze,fe.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ze,fe.default.sources.USER)),this.quill.root.scrollTop=je;break}case"video":Ze=Ge(Ze);case"formula":{if(!Ze)break;var Ke=this.quill.getSelection(!0);if(Ke!=null){var it=Ke.index+Ke.length;this.quill.insertEmbed(it,this.root.getAttribute("data-mode"),Ze,fe.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(it+1," ",fe.default.sources.USER),this.quill.setSelection(it+2,fe.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),We}(Ie.default);function Ge(Ue){var We=Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return We?(We[1]||"https")+"://www.youtube.com/embed/"+We[2]+"?showinfo=0":(We=Ue.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(We[1]||"https")+"://player.vimeo.com/video/"+We[2]+"/":Ue}function Ne(Ue,We){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;We.forEach(function(Ze){var je=document.createElement("option");Ze===Qe?je.setAttribute("selected","selected"):je.setAttribute("value",Ze),Ue.appendChild(je)})}te.BaseTooltip=Xe,te.default=vt},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function oe(){this.head=this.tail=null,this.length=0}return oe.prototype.append=function(){for(var de=[],he=0;he<arguments.length;he++)de[he]=arguments[he];this.insertBefore(de[0],null),de.length>1&&this.append.apply(this,de.slice(1))},oe.prototype.contains=function(de){for(var he,ue=this.iterator();he=ue();)if(he===de)return!0;return!1},oe.prototype.insertBefore=function(de,he){de&&(de.next=he,he!=null?(de.prev=he.prev,he.prev!=null&&(he.prev.next=de),he.prev=de,he===this.head&&(this.head=de)):this.tail!=null?(this.tail.next=de,de.prev=this.tail,this.tail=de):(de.prev=null,this.head=this.tail=de),this.length+=1)},oe.prototype.offset=function(de){for(var he=0,ue=this.head;ue!=null;){if(ue===de)return he;he+=ue.length(),ue=ue.next}return-1},oe.prototype.remove=function(de){this.contains(de)&&(de.prev!=null&&(de.prev.next=de.next),de.next!=null&&(de.next.prev=de.prev),de===this.head&&(this.head=de.next),de===this.tail&&(this.tail=de.prev),this.length-=1)},oe.prototype.iterator=function(de){return de===void 0&&(de=this.head),function(){var he=de;return de!=null&&(de=de.next),he}},oe.prototype.find=function(de,he){he===void 0&&(he=!1);for(var ue,ce=this.iterator();ue=ce();){var pe=ue.length();if(de<pe||he&&de===pe&&(ue.next==null||ue.next.length()!==0))return[ue,de];de-=pe}return[null,0]},oe.prototype.forEach=function(de){for(var he,ue=this.iterator();he=ue();)de(he)},oe.prototype.forEachAt=function(de,he,ue){if(!(he<=0))for(var ce=this.find(de),pe=ce[0],fe=ce[1],ge,me=de-fe,ve=this.iterator(pe);(ge=ve())&&me<de+he;){var be=ge.length();de>me?ue(ge,de-me,Math.min(he,me+be-de)):ue(ge,0,Math.min(be,de+he-me)),me+=be}},oe.prototype.map=function(de){return this.reduce(function(he,ue){return he.push(de(ue)),he},[])},oe.prototype.reduce=function(de,he){for(var ue,ce=this.iterator();ue=ce();)he=de(he,ue);return he},oe}();te.default=ne},function(J,te,re){var ne=this&&this.__extends||function(){var pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ge){fe.__proto__=ge}||function(fe,ge){for(var me in ge)ge.hasOwnProperty(me)&&(fe[me]=ge[me])};return function(fe,ge){pe(fe,ge);function me(){this.constructor=fe}fe.prototype=ge===null?Object.create(ge):(me.prototype=ge.prototype,new me)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(17),de=re(1),he={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ue=100,ce=function(pe){ne(fe,pe);function fe(ge){var me=pe.call(this,ge)||this;return me.scroll=me,me.observer=new MutationObserver(function(ve){me.update(ve)}),me.observer.observe(me.domNode,he),me.attach(),me}return fe.prototype.detach=function(){pe.prototype.detach.call(this),this.observer.disconnect()},fe.prototype.deleteAt=function(ge,me){this.update(),ge===0&&me===this.length()?this.children.forEach(function(ve){ve.remove()}):pe.prototype.deleteAt.call(this,ge,me)},fe.prototype.formatAt=function(ge,me,ve,be){this.update(),pe.prototype.formatAt.call(this,ge,me,ve,be)},fe.prototype.insertAt=function(ge,me,ve){this.update(),pe.prototype.insertAt.call(this,ge,me,ve)},fe.prototype.optimize=function(ge,me){var ve=this;ge===void 0&&(ge=[]),me===void 0&&(me={}),pe.prototype.optimize.call(this,me);for(var be=[].slice.call(this.observer.takeRecords());be.length>0;)ge.push(be.pop());for(var ye=function(Ce,Le){Le===void 0&&(Le=!0),!(Ce==null||Ce===ve)&&Ce.domNode.parentNode!=null&&(Ce.domNode[de.DATA_KEY].mutations==null&&(Ce.domNode[de.DATA_KEY].mutations=[]),Le&&ye(Ce.parent))},we=function(Ce){Ce.domNode[de.DATA_KEY]==null||Ce.domNode[de.DATA_KEY].mutations==null||(Ce instanceof oe.default&&Ce.children.forEach(we),Ce.optimize(me))},Se=ge,_e=0;Se.length>0;_e+=1){if(_e>=ue)throw new Error("[Parchment] Maximum optimize iterations reached");for(Se.forEach(function(Ce){var Le=de.find(Ce.target,!0);Le!=null&&(Le.domNode===Ce.target&&(Ce.type==="childList"?(ye(de.find(Ce.previousSibling,!1)),[].forEach.call(Ce.addedNodes,function(Pe){var Ie=de.find(Pe,!1);ye(Ie,!1),Ie instanceof oe.default&&Ie.children.forEach(function(ze){ye(ze,!1)})})):Ce.type==="attributes"&&ye(Le.prev)),ye(Le))}),this.children.forEach(we),Se=[].slice.call(this.observer.takeRecords()),be=Se.slice();be.length>0;)ge.push(be.pop())}},fe.prototype.update=function(ge,me){var ve=this;me===void 0&&(me={}),ge=ge||this.observer.takeRecords(),ge.map(function(be){var ye=de.find(be.target,!0);return ye==null?null:ye.domNode[de.DATA_KEY].mutations==null?(ye.domNode[de.DATA_KEY].mutations=[be],ye):(ye.domNode[de.DATA_KEY].mutations.push(be),null)}).forEach(function(be){be==null||be===ve||be.domNode[de.DATA_KEY]==null||be.update(be.domNode[de.DATA_KEY].mutations||[],me)}),this.domNode[de.DATA_KEY].mutations!=null&&pe.prototype.update.call(this,this.domNode[de.DATA_KEY].mutations,me),this.optimize(ge,me)},fe.blotName="scroll",fe.defaultChild="block",fe.scope=de.Scope.BLOCK_BLOT,fe.tagName="DIV",fe}(oe.default);te.default=ce},function(J,te,re){var ne=this&&this.__extends||function(){var ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,fe){pe.__proto__=fe}||function(pe,fe){for(var ge in fe)fe.hasOwnProperty(ge)&&(pe[ge]=fe[ge])};return function(pe,fe){ce(pe,fe);function ge(){this.constructor=pe}pe.prototype=fe===null?Object.create(fe):(ge.prototype=fe.prototype,new ge)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(18),de=re(1);function he(ce,pe){if(Object.keys(ce).length!==Object.keys(pe).length)return!1;for(var fe in ce)if(ce[fe]!==pe[fe])return!1;return!0}var ue=function(ce){ne(pe,ce);function pe(){return ce!==null&&ce.apply(this,arguments)||this}return pe.formats=function(fe){if(fe.tagName!==pe.tagName)return ce.formats.call(this,fe)},pe.prototype.format=function(fe,ge){var me=this;fe===this.statics.blotName&&!ge?(this.children.forEach(function(ve){ve instanceof oe.default||(ve=ve.wrap(pe.blotName,!0)),me.attributes.copy(ve)}),this.unwrap()):ce.prototype.format.call(this,fe,ge)},pe.prototype.formatAt=function(fe,ge,me,ve){if(this.formats()[me]!=null||de.query(me,de.Scope.ATTRIBUTE)){var be=this.isolate(fe,ge);be.format(me,ve)}else ce.prototype.formatAt.call(this,fe,ge,me,ve)},pe.prototype.optimize=function(fe){ce.prototype.optimize.call(this,fe);var ge=this.formats();if(Object.keys(ge).length===0)return this.unwrap();var me=this.next;me instanceof pe&&me.prev===this&&he(ge,me.formats())&&(me.moveChildren(this),me.remove())},pe.blotName="inline",pe.scope=de.Scope.INLINE_BLOT,pe.tagName="SPAN",pe}(oe.default);te.default=ue},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(18),de=re(1),he=function(ue){ne(ce,ue);function ce(){return ue!==null&&ue.apply(this,arguments)||this}return ce.formats=function(pe){var fe=de.query(ce.blotName).tagName;if(pe.tagName!==fe)return ue.formats.call(this,pe)},ce.prototype.format=function(pe,fe){de.query(pe,de.Scope.BLOCK)!=null&&(pe===this.statics.blotName&&!fe?this.replaceWith(ce.blotName):ue.prototype.format.call(this,pe,fe))},ce.prototype.formatAt=function(pe,fe,ge,me){de.query(ge,de.Scope.BLOCK)!=null?this.format(ge,me):ue.prototype.formatAt.call(this,pe,fe,ge,me)},ce.prototype.insertAt=function(pe,fe,ge){if(ge==null||de.query(fe,de.Scope.INLINE)!=null)ue.prototype.insertAt.call(this,pe,fe,ge);else{var me=this.split(pe),ve=de.create(fe,ge);me.parent.insertBefore(ve,me)}},ce.prototype.update=function(pe,fe){navigator.userAgent.match(/Trident/)?this.build():ue.prototype.update.call(this,pe,fe)},ce.blotName="block",ce.scope=de.Scope.BLOCK_BLOT,ce.tagName="P",ce}(oe.default);te.default=he},function(J,te,re){var ne=this&&this.__extends||function(){var he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ce){ue.__proto__=ce}||function(ue,ce){for(var pe in ce)ce.hasOwnProperty(pe)&&(ue[pe]=ce[pe])};return function(ue,ce){he(ue,ce);function pe(){this.constructor=ue}ue.prototype=ce===null?Object.create(ce):(pe.prototype=ce.prototype,new pe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(19),de=function(he){ne(ue,he);function ue(){return he!==null&&he.apply(this,arguments)||this}return ue.formats=function(ce){},ue.prototype.format=function(ce,pe){he.prototype.formatAt.call(this,0,this.length(),ce,pe)},ue.prototype.formatAt=function(ce,pe,fe,ge){ce===0&&pe===this.length()?this.format(fe,ge):he.prototype.formatAt.call(this,ce,pe,fe,ge)},ue.prototype.formats=function(){return this.statics.formats(this.domNode)},ue}(oe.default);te.default=de},function(J,te,re){var ne=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var fe in pe)pe.hasOwnProperty(fe)&&(ce[fe]=pe[fe])};return function(ce,pe){ue(ce,pe);function fe(){this.constructor=ce}ce.prototype=pe===null?Object.create(pe):(fe.prototype=pe.prototype,new fe)}}();Object.defineProperty(te,"__esModule",{value:!0});var oe=re(19),de=re(1),he=function(ue){ne(ce,ue);function ce(pe){var fe=ue.call(this,pe)||this;return fe.text=fe.statics.value(fe.domNode),fe}return ce.create=function(pe){return document.createTextNode(pe)},ce.value=function(pe){var fe=pe.data;return fe.normalize&&(fe=fe.normalize()),fe},ce.prototype.deleteAt=function(pe,fe){this.domNode.data=this.text=this.text.slice(0,pe)+this.text.slice(pe+fe)},ce.prototype.index=function(pe,fe){return this.domNode===pe?fe:-1},ce.prototype.insertAt=function(pe,fe,ge){ge==null?(this.text=this.text.slice(0,pe)+fe+this.text.slice(pe),this.domNode.data=this.text):ue.prototype.insertAt.call(this,pe,fe,ge)},ce.prototype.length=function(){return this.text.length},ce.prototype.optimize=function(pe){ue.prototype.optimize.call(this,pe),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ce&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},ce.prototype.position=function(pe,fe){return[this.domNode,pe]},ce.prototype.split=function(pe,fe){if(fe===void 0&&(fe=!1),!fe){if(pe===0)return this;if(pe===this.length())return this.next}var ge=de.create(this.domNode.splitText(pe));return this.parent.insertBefore(ge,this.next),this.text=this.statics.value(this.domNode),ge},ce.prototype.update=function(pe,fe){var ge=this;pe.some(function(me){return me.type==="characterData"&&me.target===ge.domNode})&&(this.text=this.statics.value(this.domNode))},ce.prototype.value=function(){return this.text},ce.blotName="text",ce.scope=de.Scope.INLINE_BLOT,ce}(oe.default);te.default=he},function(J,te,re){var ne=document.createElement("div");if(ne.classList.toggle("test-class",!1),ne.classList.contains("test-class")){var oe=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(de,he){return arguments.length>1&&!this.contains(de)==!he?he:oe.call(this,de)}}String.prototype.startsWith||(String.prototype.startsWith=function(de,he){return he=he||0,this.substr(he,de.length)===de}),String.prototype.endsWith||(String.prototype.endsWith=function(de,he){var ue=this.toString();(typeof he!="number"||!isFinite(he)||Math.floor(he)!==he||he>ue.length)&&(he=ue.length),he-=de.length;var ce=ue.indexOf(de,he);return ce!==-1&&ce===he}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(he){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof he!="function")throw new TypeError("predicate must be a function");for(var ue=Object(this),ce=ue.length>>>0,pe=arguments[1],fe,ge=0;ge<ce;ge++)if(fe=ue[ge],he.call(pe,fe,ge,ue))return fe}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(J,te){var re=-1,ne=1,oe=0;function de(_e,Ce,Le){if(_e==Ce)return _e?[[oe,_e]]:[];(Le<0||_e.length<Le)&&(Le=null);var Pe=pe(_e,Ce),Ie=_e.substring(0,Pe);_e=_e.substring(Pe),Ce=Ce.substring(Pe),Pe=fe(_e,Ce);var ze=_e.substring(_e.length-Pe);_e=_e.substring(0,_e.length-Pe),Ce=Ce.substring(0,Ce.length-Pe);var qe=he(_e,Ce);return Ie&&qe.unshift([oe,Ie]),ze&&qe.push([oe,ze]),me(qe),Le!=null&&(qe=ye(qe,Le)),qe=we(qe),qe}function he(_e,Ce){var Le;if(!_e)return[[ne,Ce]];if(!Ce)return[[re,_e]];var Pe=_e.length>Ce.length?_e:Ce,Ie=_e.length>Ce.length?Ce:_e,ze=Pe.indexOf(Ie);if(ze!=-1)return Le=[[ne,Pe.substring(0,ze)],[oe,Ie],[ne,Pe.substring(ze+Ie.length)]],_e.length>Ce.length&&(Le[0][0]=Le[2][0]=re),Le;if(Ie.length==1)return[[re,_e],[ne,Ce]];var qe=ge(_e,Ce);if(qe){var Ae=qe[0],De=qe[1],Me=qe[2],Be=qe[3],Ve=qe[4],Ye=de(Ae,Me),Je=de(De,Be);return Ye.concat([[oe,Ve]],Je)}return ue(_e,Ce)}function ue(_e,Ce){for(var Le=_e.length,Pe=Ce.length,Ie=Math.ceil((Le+Pe)/2),ze=Ie,qe=2*Ie,Ae=new Array(qe),De=new Array(qe),Me=0;Me<qe;Me++)Ae[Me]=-1,De[Me]=-1;Ae[ze+1]=0,De[ze+1]=0;for(var Be=Le-Pe,Ve=Be%2!=0,Ye=0,Je=0,vt=0,Xe=0,Ge=0;Ge<Ie;Ge++){for(var Ne=-Ge+Ye;Ne<=Ge-Je;Ne+=2){var Ue=ze+Ne,We;Ne==-Ge||Ne!=Ge&&Ae[Ue-1]<Ae[Ue+1]?We=Ae[Ue+1]:We=Ae[Ue-1]+1;for(var Qe=We-Ne;We<Le&&Qe<Pe&&_e.charAt(We)==Ce.charAt(Qe);)We++,Qe++;if(Ae[Ue]=We,We>Le)Je+=2;else if(Qe>Pe)Ye+=2;else if(Ve){var Ze=ze+Be-Ne;if(Ze>=0&&Ze<qe&&De[Ze]!=-1){var je=Le-De[Ze];if(We>=je)return ce(_e,Ce,We,Qe)}}}for(var Ke=-Ge+vt;Ke<=Ge-Xe;Ke+=2){var Ze=ze+Ke,je;Ke==-Ge||Ke!=Ge&&De[Ze-1]<De[Ze+1]?je=De[Ze+1]:je=De[Ze-1]+1;for(var it=je-Ke;je<Le&&it<Pe&&_e.charAt(Le-je-1)==Ce.charAt(Pe-it-1);)je++,it++;if(De[Ze]=je,je>Le)Xe+=2;else if(it>Pe)vt+=2;else if(!Ve){var Ue=ze+Be-Ke;if(Ue>=0&&Ue<qe&&Ae[Ue]!=-1){var We=Ae[Ue],Qe=ze+We-Ue;if(je=Le-je,We>=je)return ce(_e,Ce,We,Qe)}}}}return[[re,_e],[ne,Ce]]}function ce(_e,Ce,Le,Pe){var Ie=_e.substring(0,Le),ze=Ce.substring(0,Pe),qe=_e.substring(Le),Ae=Ce.substring(Pe),De=de(Ie,ze),Me=de(qe,Ae);return De.concat(Me)}function pe(_e,Ce){if(!_e||!Ce||_e.charAt(0)!=Ce.charAt(0))return 0;for(var Le=0,Pe=Math.min(_e.length,Ce.length),Ie=Pe,ze=0;Le<Ie;)_e.substring(ze,Ie)==Ce.substring(ze,Ie)?(Le=Ie,ze=Le):Pe=Ie,Ie=Math.floor((Pe-Le)/2+Le);return Ie}function fe(_e,Ce){if(!_e||!Ce||_e.charAt(_e.length-1)!=Ce.charAt(Ce.length-1))return 0;for(var Le=0,Pe=Math.min(_e.length,Ce.length),Ie=Pe,ze=0;Le<Ie;)_e.substring(_e.length-Ie,_e.length-ze)==Ce.substring(Ce.length-Ie,Ce.length-ze)?(Le=Ie,ze=Le):Pe=Ie,Ie=Math.floor((Pe-Le)/2+Le);return Ie}function ge(_e,Ce){var Le=_e.length>Ce.length?_e:Ce,Pe=_e.length>Ce.length?Ce:_e;if(Le.length<4||Pe.length*2<Le.length)return null;function Ie(Je,vt,Xe){for(var Ge=Je.substring(Xe,Xe+Math.floor(Je.length/4)),Ne=-1,Ue="",We,Qe,Ze,je;(Ne=vt.indexOf(Ge,Ne+1))!=-1;){var Ke=pe(Je.substring(Xe),vt.substring(Ne)),it=fe(Je.substring(0,Xe),vt.substring(0,Ne));Ue.length<it+Ke&&(Ue=vt.substring(Ne-it,Ne)+vt.substring(Ne,Ne+Ke),We=Je.substring(0,Xe-it),Qe=Je.substring(Xe+Ke),Ze=vt.substring(0,Ne-it),je=vt.substring(Ne+Ke))}return Ue.length*2>=Je.length?[We,Qe,Ze,je,Ue]:null}var ze=Ie(Le,Pe,Math.ceil(Le.length/4)),qe=Ie(Le,Pe,Math.ceil(Le.length/2)),Ae;if(!ze&&!qe)return null;qe?ze?Ae=ze[4].length>qe[4].length?ze:qe:Ae=qe:Ae=ze;var De,Me,Be,Ve;_e.length>Ce.length?(De=Ae[0],Me=Ae[1],Be=Ae[2],Ve=Ae[3]):(Be=Ae[0],Ve=Ae[1],De=Ae[2],Me=Ae[3]);var Ye=Ae[4];return[De,Me,Be,Ve,Ye]}function me(_e){_e.push([oe,""]);for(var Ce=0,Le=0,Pe=0,Ie="",ze="",qe;Ce<_e.length;)switch(_e[Ce][0]){case ne:Pe++,ze+=_e[Ce][1],Ce++;break;case re:Le++,Ie+=_e[Ce][1],Ce++;break;case oe:Le+Pe>1?(Le!==0&&Pe!==0&&(qe=pe(ze,Ie),qe!==0&&(Ce-Le-Pe>0&&_e[Ce-Le-Pe-1][0]==oe?_e[Ce-Le-Pe-1][1]+=ze.substring(0,qe):(_e.splice(0,0,[oe,ze.substring(0,qe)]),Ce++),ze=ze.substring(qe),Ie=Ie.substring(qe)),qe=fe(ze,Ie),qe!==0&&(_e[Ce][1]=ze.substring(ze.length-qe)+_e[Ce][1],ze=ze.substring(0,ze.length-qe),Ie=Ie.substring(0,Ie.length-qe))),Le===0?_e.splice(Ce-Pe,Le+Pe,[ne,ze]):Pe===0?_e.splice(Ce-Le,Le+Pe,[re,Ie]):_e.splice(Ce-Le-Pe,Le+Pe,[re,Ie],[ne,ze]),Ce=Ce-Le-Pe+(Le?1:0)+(Pe?1:0)+1):Ce!==0&&_e[Ce-1][0]==oe?(_e[Ce-1][1]+=_e[Ce][1],_e.splice(Ce,1)):Ce++,Pe=0,Le=0,Ie="",ze="";break}_e[_e.length-1][1]===""&&_e.pop();var Ae=!1;for(Ce=1;Ce<_e.length-1;)_e[Ce-1][0]==oe&&_e[Ce+1][0]==oe&&(_e[Ce][1].substring(_e[Ce][1].length-_e[Ce-1][1].length)==_e[Ce-1][1]?(_e[Ce][1]=_e[Ce-1][1]+_e[Ce][1].substring(0,_e[Ce][1].length-_e[Ce-1][1].length),_e[Ce+1][1]=_e[Ce-1][1]+_e[Ce+1][1],_e.splice(Ce-1,1),Ae=!0):_e[Ce][1].substring(0,_e[Ce+1][1].length)==_e[Ce+1][1]&&(_e[Ce-1][1]+=_e[Ce+1][1],_e[Ce][1]=_e[Ce][1].substring(_e[Ce+1][1].length)+_e[Ce+1][1],_e.splice(Ce+1,1),Ae=!0)),Ce++;Ae&&me(_e)}var ve=de;ve.INSERT=ne,ve.DELETE=re,ve.EQUAL=oe,J.exports=ve;function be(_e,Ce){if(Ce===0)return[oe,_e];for(var Le=0,Pe=0;Pe<_e.length;Pe++){var Ie=_e[Pe];if(Ie[0]===re||Ie[0]===oe){var ze=Le+Ie[1].length;if(Ce===ze)return[Pe+1,_e];if(Ce<ze){_e=_e.slice();var qe=Ce-Le,Ae=[Ie[0],Ie[1].slice(0,qe)],De=[Ie[0],Ie[1].slice(qe)];return _e.splice(Pe,1,Ae,De),[Pe+1,_e]}else Le=ze}}throw new Error("cursor_pos is out of bounds!")}function ye(_e,Ce){var Le=be(_e,Ce),Pe=Le[1],Ie=Le[0],ze=Pe[Ie],qe=Pe[Ie+1];if(ze==null)return _e;if(ze[0]!==oe)return _e;if(qe!=null&&ze[1]+qe[1]===qe[1]+ze[1])return Pe.splice(Ie,2,qe,ze),Se(Pe,Ie,2);if(qe!=null&&qe[1].indexOf(ze[1])===0){Pe.splice(Ie,2,[qe[0],ze[1]],[0,ze[1]]);var Ae=qe[1].slice(ze[1].length);return Ae.length>0&&Pe.splice(Ie+2,0,[qe[0],Ae]),Se(Pe,Ie,3)}else return _e}function we(_e){for(var Ce=!1,Le=function(qe){return qe.charCodeAt(0)>=56320&&qe.charCodeAt(0)<=57343},Pe=function(qe){return qe.charCodeAt(qe.length-1)>=55296&&qe.charCodeAt(qe.length-1)<=56319},Ie=2;Ie<_e.length;Ie+=1)_e[Ie-2][0]===oe&&Pe(_e[Ie-2][1])&&_e[Ie-1][0]===re&&Le(_e[Ie-1][1])&&_e[Ie][0]===ne&&Le(_e[Ie][1])&&(Ce=!0,_e[Ie-1][1]=_e[Ie-2][1].slice(-1)+_e[Ie-1][1],_e[Ie][1]=_e[Ie-2][1].slice(-1)+_e[Ie][1],_e[Ie-2][1]=_e[Ie-2][1].slice(0,-1));if(!Ce)return _e;for(var ze=[],Ie=0;Ie<_e.length;Ie+=1)_e[Ie][1].length>0&&ze.push(_e[Ie]);return ze}function Se(_e,Ce,Le){for(var Pe=Ce+Le-1;Pe>=0&&Pe>=Ce-1;Pe--)if(Pe+1<_e.length){var Ie=_e[Pe],ze=_e[Pe+1];Ie[0]===ze[1]&&_e.splice(Pe,2,[Ie[0],Ie[1]+ze[1]])}return _e}},function(J,te){te=J.exports=typeof Object.keys=="function"?Object.keys:re,te.shim=re;function re(ne){var oe=[];for(var de in ne)oe.push(de);return oe}},function(J,te){var re=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";te=J.exports=re?ne:oe,te.supported=ne;function ne(de){return Object.prototype.toString.call(de)=="[object Arguments]"}te.unsupported=oe;function oe(de){return de&&typeof de=="object"&&typeof de.length=="number"&&Object.prototype.hasOwnProperty.call(de,"callee")&&!Object.prototype.propertyIsEnumerable.call(de,"callee")||!1}},function(J,te){var re=Object.prototype.hasOwnProperty,ne="~";function oe(){}Object.create&&(oe.prototype=Object.create(null),new oe().__proto__||(ne=!1));function de(ue,ce,pe){this.fn=ue,this.context=ce,this.once=pe||!1}function he(){this._events=new oe,this._eventsCount=0}he.prototype.eventNames=function(){var ce=[],pe,fe;if(this._eventsCount===0)return ce;for(fe in pe=this._events)re.call(pe,fe)&&ce.push(ne?fe.slice(1):fe);return Object.getOwnPropertySymbols?ce.concat(Object.getOwnPropertySymbols(pe)):ce},he.prototype.listeners=function(ce,pe){var fe=ne?ne+ce:ce,ge=this._events[fe];if(pe)return!!ge;if(!ge)return[];if(ge.fn)return[ge.fn];for(var me=0,ve=ge.length,be=new Array(ve);me<ve;me++)be[me]=ge[me].fn;return be},he.prototype.emit=function(ce,pe,fe,ge,me,ve){var be=ne?ne+ce:ce;if(!this._events[be])return!1;var ye=this._events[be],we=arguments.length,Se,_e;if(ye.fn){switch(ye.once&&this.removeListener(ce,ye.fn,void 0,!0),we){case 1:return ye.fn.call(ye.context),!0;case 2:return ye.fn.call(ye.context,pe),!0;case 3:return ye.fn.call(ye.context,pe,fe),!0;case 4:return ye.fn.call(ye.context,pe,fe,ge),!0;case 5:return ye.fn.call(ye.context,pe,fe,ge,me),!0;case 6:return ye.fn.call(ye.context,pe,fe,ge,me,ve),!0}for(_e=1,Se=new Array(we-1);_e<we;_e++)Se[_e-1]=arguments[_e];ye.fn.apply(ye.context,Se)}else{var Ce=ye.length,Le;for(_e=0;_e<Ce;_e++)switch(ye[_e].once&&this.removeListener(ce,ye[_e].fn,void 0,!0),we){case 1:ye[_e].fn.call(ye[_e].context);break;case 2:ye[_e].fn.call(ye[_e].context,pe);break;case 3:ye[_e].fn.call(ye[_e].context,pe,fe);break;case 4:ye[_e].fn.call(ye[_e].context,pe,fe,ge);break;default:if(!Se)for(Le=1,Se=new Array(we-1);Le<we;Le++)Se[Le-1]=arguments[Le];ye[_e].fn.apply(ye[_e].context,Se)}}return!0},he.prototype.on=function(ce,pe,fe){var ge=new de(pe,fe||this),me=ne?ne+ce:ce;return this._events[me]?this._events[me].fn?this._events[me]=[this._events[me],ge]:this._events[me].push(ge):(this._events[me]=ge,this._eventsCount++),this},he.prototype.once=function(ce,pe,fe){var ge=new de(pe,fe||this,!0),me=ne?ne+ce:ce;return this._events[me]?this._events[me].fn?this._events[me]=[this._events[me],ge]:this._events[me].push(ge):(this._events[me]=ge,this._eventsCount++),this},he.prototype.removeListener=function(ce,pe,fe,ge){var me=ne?ne+ce:ce;if(!this._events[me])return this;if(!pe)return--this._eventsCount===0?this._events=new oe:delete this._events[me],this;var ve=this._events[me];if(ve.fn)ve.fn===pe&&(!ge||ve.once)&&(!fe||ve.context===fe)&&(--this._eventsCount===0?this._events=new oe:delete this._events[me]);else{for(var be=0,ye=[],we=ve.length;be<we;be++)(ve[be].fn!==pe||ge&&!ve[be].once||fe&&ve[be].context!==fe)&&ye.push(ve[be]);ye.length?this._events[me]=ye.length===1?ye[0]:ye:--this._eventsCount===0?this._events=new oe:delete this._events[me]}return this},he.prototype.removeAllListeners=function(ce){var pe;return ce?(pe=ne?ne+ce:ce,this._events[pe]&&(--this._eventsCount===0?this._events=new oe:delete this._events[pe])):(this._events=new oe,this._eventsCount=0),this},he.prototype.off=he.prototype.removeListener,he.prototype.addListener=he.prototype.on,he.prototype.setMaxListeners=function(){return this},he.prefixed=ne,he.EventEmitter=he,typeof J<"u"&&(J.exports=he)},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.matchText=te.matchSpacing=te.matchNewline=te.matchBlot=te.matchAttributor=te.default=void 0;var ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(gt){return typeof gt}:function(gt){return gt&&typeof Symbol=="function"&>.constructor===Symbol&>!==Symbol.prototype?"symbol":typeof gt},oe=function(){function gt(mt,xt){var St=[],$t=!0,Ft=!1,Nt=void 0;try{for(var zt=mt[Symbol.iterator](),or;!($t=(or=zt.next()).done)&&(St.push(or.value),!(xt&&St.length===xt));$t=!0);}catch(pr){Ft=!0,Nt=pr}finally{try{!$t&&zt.return&&zt.return()}finally{if(Ft)throw Nt}}return St}return function(mt,xt){if(Array.isArray(mt))return mt;if(Symbol.iterator in Object(mt))return gt(mt,xt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),de=function(){function gt(mt,xt){for(var St=0;St<xt.length;St++){var $t=xt[St];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(mt,$t.key,$t)}}return function(mt,xt,St){return xt&>(mt.prototype,xt),St&>(mt,St),mt}}(),he=re(3),ue=De(he),ce=re(2),pe=De(ce),fe=re(0),ge=De(fe),me=re(5),ve=De(me),be=re(10),ye=De(be),we=re(9),Se=De(we),_e=re(37),Ce=re(38),Le=re(13),Pe=De(Le),Ie=re(26),ze=re(39),qe=re(40),Ae=re(41);function De(gt){return gt&>.__esModule?gt:{default:gt}}function Me(gt,mt,xt){return mt in gt?Object.defineProperty(gt,mt,{value:xt,enumerable:!0,configurable:!0,writable:!0}):gt[mt]=xt,gt}function Be(gt,mt){if(!(gt instanceof mt))throw new TypeError("Cannot call a class as a function")}function Ve(gt,mt){if(!gt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return mt&&(typeof mt=="object"||typeof mt=="function")?mt:gt}function Ye(gt,mt){if(typeof mt!="function"&&mt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof mt);gt.prototype=Object.create(mt&&mt.prototype,{constructor:{value:gt,enumerable:!1,writable:!0,configurable:!0}}),mt&&(Object.setPrototypeOf?Object.setPrototypeOf(gt,mt):gt.__proto__=mt)}var Je=(0,ye.default)("quill:clipboard"),vt="__ql-matcher",Xe=[[Node.TEXT_NODE,rr],[Node.TEXT_NODE,Bt],["br",Ct],[Node.ELEMENT_NODE,Bt],[Node.ELEMENT_NODE,bt],[Node.ELEMENT_NODE,jt],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,dr],["li",Lt],["b",it.bind(it,"bold")],["i",it.bind(it,"italic")],["style",Dt]],Ge=[_e.AlignAttribute,ze.DirectionAttribute].reduce(function(gt,mt){return gt[mt.keyName]=mt,gt},{}),Ne=[_e.AlignStyle,Ce.BackgroundStyle,Ie.ColorStyle,ze.DirectionStyle,qe.FontStyle,Ae.SizeStyle].reduce(function(gt,mt){return gt[mt.keyName]=mt,gt},{}),Ue=function(gt){Ye(mt,gt);function mt(xt,St){Be(this,mt);var $t=Ve(this,(mt.__proto__||Object.getPrototypeOf(mt)).call(this,xt,St));return $t.quill.root.addEventListener("paste",$t.onPaste.bind($t)),$t.container=$t.quill.addContainer("ql-clipboard"),$t.container.setAttribute("contenteditable",!0),$t.container.setAttribute("tabindex",-1),$t.matchers=[],Xe.concat($t.options.matchers).forEach(function(Ft){var Nt=oe(Ft,2),zt=Nt[0],or=Nt[1];!St.matchVisual&&or===jt||$t.addMatcher(zt,or)}),$t}return de(mt,[{key:"addMatcher",value:function(St,$t){this.matchers.push([St,$t])}},{key:"convert",value:function(St){if(typeof St=="string")return this.container.innerHTML=St.replace(/\>\r?\n +\</g,"><"),this.convert();var $t=this.quill.getFormat(this.quill.selection.savedRange.index);if($t[Pe.default.blotName]){var Ft=this.container.innerText;return this.container.innerHTML="",new pe.default().insert(Ft,Me({},Pe.default.blotName,$t[Pe.default.blotName]))}var Nt=this.prepareMatching(),zt=oe(Nt,2),or=zt[0],pr=zt[1],Zt=Ke(this.container,or,pr);return Ze(Zt,`
|
|
6048
|
+
`)&&Zt.ops[Zt.ops.length-1].attributes==null&&(Zt=Zt.compose(new pe.default().retain(Zt.length()-1).delete(1))),Je.log("convert",this.container.innerHTML,Zt),this.container.innerHTML="",Zt}},{key:"dangerouslyPasteHTML",value:function(St,$t){var Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve.default.sources.API;if(typeof St=="string")this.quill.setContents(this.convert(St),$t),this.quill.setSelection(0,ve.default.sources.SILENT);else{var Nt=this.convert($t);this.quill.updateContents(new pe.default().retain(St).concat(Nt),Ft),this.quill.setSelection(St+Nt.length(),ve.default.sources.SILENT)}}},{key:"onPaste",value:function(St){var $t=this;if(!(St.defaultPrevented||!this.quill.isEnabled())){var Ft=this.quill.getSelection(),Nt=new pe.default().retain(Ft.index),zt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(ve.default.sources.SILENT),setTimeout(function(){Nt=Nt.concat($t.convert()).delete(Ft.length),$t.quill.updateContents(Nt,ve.default.sources.USER),$t.quill.setSelection(Nt.length()-Ft.length,ve.default.sources.SILENT),$t.quill.scrollingContainer.scrollTop=zt,$t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var St=this,$t=[],Ft=[];return this.matchers.forEach(function(Nt){var zt=oe(Nt,2),or=zt[0],pr=zt[1];switch(or){case Node.TEXT_NODE:Ft.push(pr);break;case Node.ELEMENT_NODE:$t.push(pr);break;default:[].forEach.call(St.container.querySelectorAll(or),function(Zt){Zt[vt]=Zt[vt]||[],Zt[vt].push(pr)});break}}),[$t,Ft]}}]),mt}(Se.default);Ue.DEFAULTS={matchers:[],matchVisual:!0};function We(gt,mt,xt){return(typeof mt>"u"?"undefined":ne(mt))==="object"?Object.keys(mt).reduce(function(St,$t){return We(St,$t,mt[$t])},gt):gt.reduce(function(St,$t){return $t.attributes&&$t.attributes[mt]?St.push($t):St.insert($t.insert,(0,ue.default)({},Me({},mt,xt),$t.attributes))},new pe.default)}function Qe(gt){if(gt.nodeType!==Node.ELEMENT_NODE)return{};var mt="__ql-computed-style";return gt[mt]||(gt[mt]=window.getComputedStyle(gt))}function Ze(gt,mt){for(var xt="",St=gt.ops.length-1;St>=0&&xt.length<mt.length;--St){var $t=gt.ops[St];if(typeof $t.insert!="string")break;xt=$t.insert+xt}return xt.slice(-1*mt.length)===mt}function je(gt){if(gt.childNodes.length===0)return!1;var mt=Qe(gt);return["block","list-item"].indexOf(mt.display)>-1}function Ke(gt,mt,xt){return gt.nodeType===gt.TEXT_NODE?xt.reduce(function(St,$t){return $t(gt,St)},new pe.default):gt.nodeType===gt.ELEMENT_NODE?[].reduce.call(gt.childNodes||[],function(St,$t){var Ft=Ke($t,mt,xt);return $t.nodeType===gt.ELEMENT_NODE&&(Ft=mt.reduce(function(Nt,zt){return zt($t,Nt)},Ft),Ft=($t[vt]||[]).reduce(function(Nt,zt){return zt($t,Nt)},Ft)),St.concat(Ft)},new pe.default):new pe.default}function it(gt,mt,xt){return We(xt,gt,!0)}function nt(gt,mt){var xt=ge.default.Attributor.Attribute.keys(gt),St=ge.default.Attributor.Class.keys(gt),$t=ge.default.Attributor.Style.keys(gt),Ft={};return xt.concat(St).concat($t).forEach(function(Nt){var zt=ge.default.query(Nt,ge.default.Scope.ATTRIBUTE);zt!=null&&(Ft[zt.attrName]=zt.value(gt),Ft[zt.attrName])||(zt=Ge[Nt],zt!=null&&(zt.attrName===Nt||zt.keyName===Nt)&&(Ft[zt.attrName]=zt.value(gt)||void 0),zt=Ne[Nt],zt!=null&&(zt.attrName===Nt||zt.keyName===Nt)&&(zt=Ne[Nt],Ft[zt.attrName]=zt.value(gt)||void 0))}),Object.keys(Ft).length>0&&(mt=We(mt,Ft)),mt}function bt(gt,mt){var xt=ge.default.query(gt);if(xt==null)return mt;if(xt.prototype instanceof ge.default.Embed){var St={},$t=xt.value(gt);$t!=null&&(St[xt.blotName]=$t,mt=new pe.default().insert(St,xt.formats(gt)))}else typeof xt.formats=="function"&&(mt=We(mt,xt.blotName,xt.formats(gt)));return mt}function Ct(gt,mt){return Ze(mt,`
|
|
6057
6049
|
`)||mt.insert(`
|
|
6058
6050
|
`),mt}function Dt(){return new pe.default}function Lt(gt,mt){var xt=ge.default.query(gt);if(xt==null||xt.blotName!=="list-item"||!Ze(mt,`
|
|
6059
6051
|
`))return mt;for(var St=-1,$t=gt.parentNode;!$t.classList.contains("ql-clipboard");)(ge.default.query($t)||{}).blotName==="list"&&(St+=1),$t=$t.parentNode;return St<=0?mt:mt.compose(new pe.default().retain(mt.length()-1).retain(1,{indent:St}))}function Bt(gt,mt){return Ze(mt,`
|
|
@@ -6061,7 +6053,7 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
6061
6053
|
`),mt}function jt(gt,mt){if(je(gt)&>.nextElementSibling!=null&&!Ze(mt,`
|
|
6062
6054
|
|
|
6063
6055
|
`)){var xt=gt.offsetHeight+parseFloat(Qe(gt).marginTop)+parseFloat(Qe(gt).marginBottom);gt.nextElementSibling.offsetTop>gt.offsetTop+xt*1.5&&mt.insert(`
|
|
6064
|
-
`)}return mt}function dr(gt,mt){var xt={},St=gt.style||{};return St.fontStyle&&Qe(gt).fontStyle==="italic"&&(xt.italic=!0),St.fontWeight&&(Qe(gt).fontWeight.startsWith("bold")||parseInt(Qe(gt).fontWeight)>=700)&&(xt.bold=!0),Object.keys(xt).length>0&&(mt=We(mt,xt)),parseFloat(St.textIndent||0)>0&&(mt=new pe.default().insert(" ").concat(mt)),mt}function rr(gt,mt){var xt=gt.data;if(gt.parentNode.tagName==="O:P")return mt.insert(xt.trim());if(xt.trim().length===0&>.parentNode.classList.contains("ql-clipboard"))return mt;if(!Qe(gt.parentNode).whiteSpace.startsWith("pre")){var St=function(Ft,Nt){return Nt=Nt.replace(/[^\u00a0]/g,""),Nt.length<1&&Ft?" ":Nt};xt=xt.replace(/\r\n/g," ").replace(/\n/g," "),xt=xt.replace(/\s\s+/g,St.bind(St,!0)),(gt.previousSibling==null&&je(gt.parentNode)||gt.previousSibling!=null&&je(gt.previousSibling))&&(xt=xt.replace(/^\s+/,St.bind(St,!1))),(gt.nextSibling==null&&je(gt.parentNode)||gt.nextSibling!=null&&je(gt.nextSibling))&&(xt=xt.replace(/\s+$/,St.bind(St,!1)))}return mt.insert(xt)}te.default=Ue,te.matchAttributor=nt,te.matchBlot=bt,te.matchNewline=Bt,te.matchSpacing=jt,te.matchText=rr},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(6),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(){return ce(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return ne(ve,[{key:"optimize",value:function(ye){oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"optimize",this).call(this,ye),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return oe(ve.__proto__||Object.getPrototypeOf(ve),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),ve}(he.default);ge.blotName="bold",ge.tagName=["STRONG","B"],te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.addControls=te.default=void 0;var ne=function(){function De(Me,Be){var Ve=[],Ye=!0,Je=!1,vt=void 0;try{for(var Xe=Me[Symbol.iterator](),Ge;!(Ye=(Ge=Xe.next()).done)&&(Ve.push(Ge.value),!(Be&&Ve.length===Be));Ye=!0);}catch(Ne){Je=!0,vt=Ne}finally{try{!Ye&&Xe.return&&Xe.return()}finally{if(Je)throw vt}}return Ve}return function(Me,Be){if(Array.isArray(Me))return Me;if(Symbol.iterator in Object(Me))return De(Me,Be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(){function De(Me,Be){for(var Ve=0;Ve<Be.length;Ve++){var Ye=Be[Ve];Ye.enumerable=Ye.enumerable||!1,Ye.configurable=!0,"value"in Ye&&(Ye.writable=!0),Object.defineProperty(Me,Ye.key,Ye)}}return function(Me,Be,Ve){return Be&&De(Me.prototype,Be),Ve&&De(Me,Ve),Me}}(),de=re(2),he=ye(de),ue=re(0),ce=ye(ue),pe=re(5),fe=ye(pe),ge=re(10),me=ye(ge),ve=re(9),be=ye(ve);function ye(De){return De&&De.__esModule?De:{default:De}}function we(De,Me,Be){return Me in De?Object.defineProperty(De,Me,{value:Be,enumerable:!0,configurable:!0,writable:!0}):De[Me]=Be,De}function Se(De,Me){if(!(De instanceof Me))throw new TypeError("Cannot call a class as a function")}function _e(De,Me){if(!De)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me&&(typeof Me=="object"||typeof Me=="function")?Me:De}function Ce(De,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Me);De.prototype=Object.create(Me&&Me.prototype,{constructor:{value:De,enumerable:!1,writable:!0,configurable:!0}}),Me&&(Object.setPrototypeOf?Object.setPrototypeOf(De,Me):De.__proto__=Me)}var Le="getRootNode"in document,qe=(0,me.default)("quill:toolbar"),Ie=function(De){Ce(Me,De);function Me(Be,Ve){Se(this,Me);var Ye=_e(this,(Me.__proto__||Object.getPrototypeOf(Me)).call(this,Be,Ve));if(Array.isArray(Ye.options.container)){var Je=document.createElement("div");Pe(Je,Ye.options.container),Be.container.parentNode.insertBefore(Je,Be.container),Ye.container=Je}else if(typeof Ye.options.container=="string"){var vt=Le?Be.container.getRootNode():document;Ye.container=vt.querySelector(Ye.options.container)}else Ye.container=Ye.options.container;if(!(Ye.container instanceof HTMLElement)){var Xe;return Xe=qe.error("Container required for toolbar",Ye.options),_e(Ye,Xe)}return Ye.container.classList.add("ql-toolbar"),Ye.controls=[],Ye.handlers={},Object.keys(Ye.options.handlers).forEach(function(Ge){Ye.addHandler(Ge,Ye.options.handlers[Ge])}),[].forEach.call(Ye.container.querySelectorAll("button, select"),function(Ge){Ye.attach(Ge)}),Ye.quill.on(fe.default.events.EDITOR_CHANGE,function(Ge,Ne){Ge===fe.default.events.SELECTION_CHANGE&&Ye.update(Ne)}),Ye.quill.on(fe.default.events.SCROLL_OPTIMIZE,function(){var Ge=Ye.quill.selection.getRange(),Ne=ne(Ge,1),Ue=Ne[0];Ye.update(Ue)}),Ye}return oe(Me,[{key:"addHandler",value:function(Ve,Ye){this.handlers[Ve]=Ye}},{key:"attach",value:function(Ve){var Ye=this,Je=[].find.call(Ve.classList,function(Xe){return Xe.indexOf("ql-")===0});if(Je){if(Je=Je.slice(3),Ve.tagName==="BUTTON"&&Ve.setAttribute("type","button"),this.handlers[Je]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Je]==null){qe.warn("ignoring attaching to disabled format",Je,Ve);return}if(ce.default.query(Je)==null){qe.warn("ignoring attaching to nonexistent format",Je,Ve);return}}var vt=Ve.tagName==="SELECT"?"change":"click";Ve.addEventListener(vt,function(Xe){var Ge=void 0;if(Ve.tagName==="SELECT"){if(Ve.selectedIndex<0)return;var Ne=Ve.options[Ve.selectedIndex];Ne.hasAttribute("selected")?Ge=!1:Ge=Ne.value||!1}else Ve.classList.contains("ql-active")?Ge=!1:Ge=Ve.value||!Ve.hasAttribute("value"),Xe.preventDefault();Ye.quill.focus();var Ue=Ye.quill.selection.getRange(),We=ne(Ue,1),Qe=We[0];if(Ye.handlers[Je]!=null)Ye.handlers[Je].call(Ye,Ge);else if(ce.default.query(Je).prototype instanceof ce.default.Embed){if(Ge=prompt("Enter "+Je),!Ge)return;Ye.quill.updateContents(new he.default().retain(Qe.index).delete(Qe.length).insert(we({},Je,Ge)),fe.default.sources.USER)}else Ye.quill.format(Je,Ge,fe.default.sources.USER);Ye.update(Qe)}),this.controls.push([Je,Ve])}}},{key:"update",value:function(Ve){var Ye=Ve==null?{}:this.quill.getFormat(Ve);this.controls.forEach(function(Je){var vt=ne(Je,2),Xe=vt[0],Ge=vt[1];if(Ge.tagName==="SELECT"){var Ne=void 0;if(Ve==null)Ne=null;else if(Ye[Xe]==null)Ne=Ge.querySelector("option[selected]");else if(!Array.isArray(Ye[Xe])){var Ue=Ye[Xe];typeof Ue=="string"&&(Ue=Ue.replace(/\"/g,'\\"')),Ne=Ge.querySelector('option[value="'+Ue+'"]')}Ne==null?(Ge.value="",Ge.selectedIndex=-1):Ne.selected=!0}else if(Ve==null)Ge.classList.remove("ql-active");else if(Ge.hasAttribute("value")){var We=Ye[Xe]===Ge.getAttribute("value")||Ye[Xe]!=null&&Ye[Xe].toString()===Ge.getAttribute("value")||Ye[Xe]==null&&!Ge.getAttribute("value");Ge.classList.toggle("ql-active",We)}else Ge.classList.toggle("ql-active",Ye[Xe]!=null)})}}]),Me}(be.default);Ie.DEFAULTS={};function ze(De,Me,Be){var Ve=document.createElement("button");Ve.setAttribute("type","button"),Ve.classList.add("ql-"+Me),Be!=null&&(Ve.value=Be),De.appendChild(Ve)}function Pe(De,Me){Array.isArray(Me[0])||(Me=[Me]),Me.forEach(function(Be){var Ve=document.createElement("span");Ve.classList.add("ql-formats"),Be.forEach(function(Ye){if(typeof Ye=="string")ze(Ve,Ye);else{var Je=Object.keys(Ye)[0],vt=Ye[Je];Array.isArray(vt)?Ae(Ve,Je,vt):ze(Ve,Je,vt)}}),De.appendChild(Ve)})}function Ae(De,Me,Be){var Ve=document.createElement("select");Ve.classList.add("ql-"+Me),Be.forEach(function(Ye){var Je=document.createElement("option");Ye!==!1?Je.setAttribute("value",Ye):Je.setAttribute("selected","selected"),Ve.appendChild(Je)}),De.appendChild(Ve)}Ie.DEFAULTS={container:null,handlers:{clean:function(){var Me=this,Be=this.quill.getSelection();if(Be!=null)if(Be.length==0){var Ve=this.quill.getFormat();Object.keys(Ve).forEach(function(Ye){ce.default.query(Ye,ce.default.Scope.INLINE)!=null&&Me.quill.format(Ye,!1)})}else this.quill.removeFormat(Be,fe.default.sources.USER)},direction:function(Me){var Be=this.quill.getFormat().align;Me==="rtl"&&Be==null?this.quill.format("align","right",fe.default.sources.USER):!Me&&Be==="right"&&this.quill.format("align",!1,fe.default.sources.USER),this.quill.format("direction",Me,fe.default.sources.USER)},indent:function(Me){var Be=this.quill.getSelection(),Ve=this.quill.getFormat(Be),Ye=parseInt(Ve.indent||0);if(Me==="+1"||Me==="-1"){var Je=Me==="+1"?1:-1;Ve.direction==="rtl"&&(Je*=-1),this.quill.format("indent",Ye+Je,fe.default.sources.USER)}},link:function(Me){Me===!0&&(Me=prompt("Enter link URL:")),this.quill.format("link",Me,fe.default.sources.USER)},list:function(Me){var Be=this.quill.getSelection(),Ve=this.quill.getFormat(Be);Me==="check"?Ve.list==="checked"||Ve.list==="unchecked"?this.quill.format("list",!1,fe.default.sources.USER):this.quill.format("list","unchecked",fe.default.sources.USER):this.quill.format("list",Me,fe.default.sources.USER)}}},te.default=Ie,te.addControls=Pe},function(J,te){J.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(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(28),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(be,ye){ce(this,ve);var we=pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,be));return we.label.innerHTML=ye,we.container.classList.add("ql-color-picker"),[].slice.call(we.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(Se){Se.classList.add("ql-primary")}),we}return ne(ve,[{key:"buildItem",value:function(ye){var we=oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"buildItem",this).call(this,ye);return we.style.backgroundColor=ye.getAttribute("value")||"",we}},{key:"selectItem",value:function(ye,we){oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"selectItem",this).call(this,ye,we);var Se=this.label.querySelector(".ql-color-label"),_e=ye&&ye.getAttribute("data-value")||"";Se&&(Se.tagName==="line"?Se.style.stroke=_e:Se.style.fill=_e)}}]),ve}(he.default);te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(28),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(be,ye){ce(this,ve);var we=pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,be));return we.container.classList.add("ql-icon-picker"),[].forEach.call(we.container.querySelectorAll(".ql-picker-item"),function(Se){Se.innerHTML=ye[Se.getAttribute("data-value")||""]}),we.defaultItem=we.container.querySelector(".ql-selected"),we.selectItem(we.defaultItem),we}return ne(ve,[{key:"selectItem",value:function(ye,we){oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"selectItem",this).call(this,ye,we),ye=ye||this.defaultItem,this.label.innerHTML=ye.innerHTML}}]),ve}(he.default);te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function he(ue,ce){for(var pe=0;pe<ce.length;pe++){var fe=ce[pe];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ue,fe.key,fe)}}return function(ue,ce,pe){return ce&&he(ue.prototype,ce),pe&&he(ue,pe),ue}}();function oe(he,ue){if(!(he instanceof ue))throw new TypeError("Cannot call a class as a function")}var de=function(){function he(ue,ce){var pe=this;oe(this,he),this.quill=ue,this.boundsContainer=ce||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(){pe.root.style.marginTop=-1*pe.quill.root.scrollTop+"px"}),this.hide()}return ne(he,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(ce){var pe=ce.left+ce.width/2-this.root.offsetWidth/2,fe=ce.bottom+this.quill.root.scrollTop;this.root.style.left=pe+"px",this.root.style.top=fe+"px",this.root.classList.remove("ql-flip");var ge=this.boundsContainer.getBoundingClientRect(),me=this.root.getBoundingClientRect(),ve=0;if(me.right>ge.right&&(ve=ge.right-me.right,this.root.style.left=pe+ve+"px"),me.left<ge.left&&(ve=ge.left-me.left,this.root.style.left=pe+ve+"px"),me.bottom>ge.bottom){var be=me.bottom-me.top,ye=ce.bottom-ce.top+be;this.root.style.top=fe-ye+"px",this.root.classList.add("ql-flip")}return ve}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),he}();te.default=de},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function Pe(Ae,De){var Me=[],Be=!0,Ve=!1,Ye=void 0;try{for(var Je=Ae[Symbol.iterator](),vt;!(Be=(vt=Je.next()).done)&&(Me.push(vt.value),!(De&&Me.length===De));Be=!0);}catch(Xe){Ve=!0,Ye=Xe}finally{try{!Be&&Je.return&&Je.return()}finally{if(Ve)throw Ye}}return Me}return function(Ae,De){if(Array.isArray(Ae))return Ae;if(Symbol.iterator in Object(Ae))return Pe(Ae,De);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function Pe(Ae,De,Me){Ae===null&&(Ae=Function.prototype);var Be=Object.getOwnPropertyDescriptor(Ae,De);if(Be===void 0){var Ve=Object.getPrototypeOf(Ae);return Ve===null?void 0:Pe(Ve,De,Me)}else{if("value"in Be)return Be.value;var Ye=Be.get;return Ye===void 0?void 0:Ye.call(Me)}},de=function(){function Pe(Ae,De){for(var Me=0;Me<De.length;Me++){var Be=De[Me];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Ae,Be.key,Be)}}return function(Ae,De,Me){return De&&Pe(Ae.prototype,De),Me&&Pe(Ae,Me),Ae}}(),he=re(3),ue=Se(he),ce=re(8),pe=Se(ce),fe=re(44),ge=Se(fe),me=re(27),ve=Se(me),be=re(15),ye=re(42),we=Se(ye);function Se(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}function _e(Pe,Ae){if(!(Pe instanceof Ae))throw new TypeError("Cannot call a class as a function")}function Ce(Pe,Ae){if(!Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ae&&(typeof Ae=="object"||typeof Ae=="function")?Ae:Pe}function Le(Pe,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ae);Pe.prototype=Object.create(Ae&&Ae.prototype,{constructor:{value:Pe,enumerable:!1,writable:!0,configurable:!0}}),Ae&&(Object.setPrototypeOf?Object.setPrototypeOf(Pe,Ae):Pe.__proto__=Ae)}var qe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],Ie=function(Pe){Le(Ae,Pe);function Ae(De,Me){_e(this,Ae),Me.modules.toolbar!=null&&Me.modules.toolbar.container==null&&(Me.modules.toolbar.container=qe);var Be=Ce(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,De,Me));return Be.quill.container.classList.add("ql-snow"),Be}return de(Ae,[{key:"extendToolbar",value:function(Me){Me.container.classList.add("ql-snow"),this.buildButtons([].slice.call(Me.container.querySelectorAll("button")),we.default),this.buildPickers([].slice.call(Me.container.querySelectorAll("select")),we.default),this.tooltip=new ze(this.quill,this.options.bounds),Me.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(Be,Ve){Me.handlers.link.call(Me,!Ve.format.link)})}}]),Ae}(ge.default);Ie.DEFAULTS=(0,ue.default)(!0,{},ge.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Ae){if(Ae){var De=this.quill.getSelection();if(De==null||De.length==0)return;var Me=this.quill.getText(De);/^\S+@\S+\.\S+$/.test(Me)&&Me.indexOf("mailto:")!==0&&(Me="mailto:"+Me);var Be=this.quill.theme.tooltip;Be.edit("link",Me)}else this.quill.format("link",!1)}}}}});var ze=function(Pe){Le(Ae,Pe);function Ae(De,Me){_e(this,Ae);var Be=Ce(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,De,Me));return Be.preview=Be.root.querySelector("a.ql-preview"),Be}return de(Ae,[{key:"listen",value:function(){var Me=this;oe(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(Be){Me.root.classList.contains("ql-editing")?Me.save():Me.edit("link",Me.preview.textContent),Be.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(Be){if(Me.linkRange!=null){var Ve=Me.linkRange;Me.restoreFocus(),Me.quill.formatText(Ve,"link",!1,pe.default.sources.USER),delete Me.linkRange}Be.preventDefault(),Me.hide()}),this.quill.on(pe.default.events.SELECTION_CHANGE,function(Be,Ve,Ye){if(Be!=null){if(Be.length===0&&Ye===pe.default.sources.USER){var Je=Me.quill.scroll.descendant(ve.default,Be.index),vt=ne(Je,2),Xe=vt[0],Ge=vt[1];if(Xe!=null){Me.linkRange=new be.Range(Be.index-Ge,Xe.length());var Ne=ve.default.formats(Xe.domNode);Me.preview.textContent=Ne,Me.preview.setAttribute("href",Ne),Me.show(),Me.position(Me.quill.getBounds(Me.linkRange));return}}else delete Me.linkRange;Me.hide()}})}},{key:"show",value:function(){oe(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),Ae}(fe.BaseTooltip);ze.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(""),te.default=Ie},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(29),oe=$t(ne),de=re(37),he=re(39),ue=re(65),ce=re(66),pe=$t(ce),fe=re(67),ge=$t(fe),me=re(68),ve=$t(me),be=re(38),ye=re(26),we=re(40),Se=re(41),_e=re(57),Ce=$t(_e),Le=re(69),qe=$t(Le),Ie=re(27),ze=$t(Ie),Pe=re(70),Ae=$t(Pe),De=re(71),Me=$t(De),Be=re(72),Ve=$t(Be),Ye=re(73),Je=$t(Ye),vt=re(74),Xe=$t(vt),Ge=re(13),Ne=$t(Ge),Ue=re(75),We=$t(Ue),Qe=re(76),Ze=$t(Qe),je=re(58),Ke=$t(je),it=re(42),nt=$t(it),bt=re(28),Et=$t(bt),Dt=re(60),Lt=$t(Dt),Bt=re(61),jt=$t(Bt),dr=re(62),rr=$t(dr),gt=re(109),mt=$t(gt),xt=re(63),St=$t(xt);function $t(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}oe.default.register({"attributors/attribute/direction":he.DirectionAttribute,"attributors/class/align":de.AlignClass,"attributors/class/background":be.BackgroundClass,"attributors/class/color":ye.ColorClass,"attributors/class/direction":he.DirectionClass,"attributors/class/font":we.FontClass,"attributors/class/size":Se.SizeClass,"attributors/style/align":de.AlignStyle,"attributors/style/background":be.BackgroundStyle,"attributors/style/color":ye.ColorStyle,"attributors/style/direction":he.DirectionStyle,"attributors/style/font":we.FontStyle,"attributors/style/size":Se.SizeStyle},!0),oe.default.register({"formats/align":de.AlignClass,"formats/direction":he.DirectionClass,"formats/indent":ue.IndentClass,"formats/background":be.BackgroundStyle,"formats/color":ye.ColorStyle,"formats/font":we.FontClass,"formats/size":Se.SizeClass,"formats/blockquote":pe.default,"formats/code-block":Ne.default,"formats/header":ge.default,"formats/list":ve.default,"formats/bold":Ce.default,"formats/code":Ge.Code,"formats/italic":qe.default,"formats/link":ze.default,"formats/script":Ae.default,"formats/strike":Me.default,"formats/underline":Ve.default,"formats/image":Je.default,"formats/video":Xe.default,"formats/list/item":me.ListItem,"modules/formula":We.default,"modules/syntax":Ze.default,"modules/toolbar":Ke.default,"themes/bubble":mt.default,"themes/snow":St.default,"ui/icons":nt.default,"ui/picker":Et.default,"ui/icon-picker":jt.default,"ui/color-picker":Lt.default,"ui/tooltip":rr.default},!0),te.default=oe.default},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.IndentClass=void 0;var ne=function(){function ve(be,ye){for(var we=0;we<ye.length;we++){var Se=ye[we];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(be,Se.key,Se)}}return function(be,ye,we){return ye&&ve(be.prototype,ye),we&&ve(be,we),be}}(),oe=function ve(be,ye,we){be===null&&(be=Function.prototype);var Se=Object.getOwnPropertyDescriptor(be,ye);if(Se===void 0){var _e=Object.getPrototypeOf(be);return _e===null?void 0:ve(_e,ye,we)}else{if("value"in Se)return Se.value;var Ce=Se.get;return Ce===void 0?void 0:Ce.call(we)}},de=re(0),he=ue(de);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function ce(ve,be){if(!(ve instanceof be))throw new TypeError("Cannot call a class as a function")}function pe(ve,be){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:ve}function fe(ve,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);ve.prototype=Object.create(be&&be.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,be):ve.__proto__=be)}var ge=function(ve){fe(be,ve);function be(){return ce(this,be),pe(this,(be.__proto__||Object.getPrototypeOf(be)).apply(this,arguments))}return ne(be,[{key:"add",value:function(we,Se){if(Se==="+1"||Se==="-1"){var _e=this.value(we)||0;Se=Se==="+1"?_e+1:_e-1}return Se===0?(this.remove(we),!0):oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"add",this).call(this,we,Se)}},{key:"canAdd",value:function(we,Se){return oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"canAdd",this).call(this,we,Se)||oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"canAdd",this).call(this,we,parseInt(Se))}},{key:"value",value:function(we){return parseInt(oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"value",this).call(this,we))||void 0}}]),be}(he.default.Attributor.Class),me=new ge("indent","ql-indent",{scope:he.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});te.IndentClass=me},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(4),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default);pe.blotName="blockquote",pe.tagName="blockquote",te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function ge(me,ve){for(var be=0;be<ve.length;be++){var ye=ve[be];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(me,ye.key,ye)}}return function(me,ve,be){return ve&&ge(me.prototype,ve),be&&ge(me,be),me}}(),oe=re(4),de=he(oe);function he(ge){return ge&&ge.__esModule?ge:{default:ge}}function ue(ge,me){if(!(ge instanceof me))throw new TypeError("Cannot call a class as a function")}function ce(ge,me){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ge}function pe(ge,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ge.prototype=Object.create(me&&me.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,me):ge.__proto__=me)}var fe=function(ge){pe(me,ge);function me(){return ue(this,me),ce(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return ne(me,null,[{key:"formats",value:function(be){return this.tagName.indexOf(be.tagName)+1}}]),me}(de.default);fe.blotName="header",fe.tagName=["H1","H2","H3","H4","H5","H6"],te.default=fe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.ListItem=void 0;var ne=function(){function _e(Ce,Le){for(var qe=0;qe<Le.length;qe++){var Ie=Le[qe];Ie.enumerable=Ie.enumerable||!1,Ie.configurable=!0,"value"in Ie&&(Ie.writable=!0),Object.defineProperty(Ce,Ie.key,Ie)}}return function(Ce,Le,qe){return Le&&_e(Ce.prototype,Le),qe&&_e(Ce,qe),Ce}}(),oe=function _e(Ce,Le,qe){Ce===null&&(Ce=Function.prototype);var Ie=Object.getOwnPropertyDescriptor(Ce,Le);if(Ie===void 0){var ze=Object.getPrototypeOf(Ce);return ze===null?void 0:_e(ze,Le,qe)}else{if("value"in Ie)return Ie.value;var Pe=Ie.get;return Pe===void 0?void 0:Pe.call(qe)}},de=re(0),he=ge(de),ue=re(4),ce=ge(ue),pe=re(25),fe=ge(pe);function ge(_e){return _e&&_e.__esModule?_e:{default:_e}}function me(_e,Ce,Le){return Ce in _e?Object.defineProperty(_e,Ce,{value:Le,enumerable:!0,configurable:!0,writable:!0}):_e[Ce]=Le,_e}function ve(_e,Ce){if(!(_e instanceof Ce))throw new TypeError("Cannot call a class as a function")}function be(_e,Ce){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ce&&(typeof Ce=="object"||typeof Ce=="function")?Ce:_e}function ye(_e,Ce){if(typeof Ce!="function"&&Ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ce);_e.prototype=Object.create(Ce&&Ce.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),Ce&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,Ce):_e.__proto__=Ce)}var we=function(_e){ye(Ce,_e);function Ce(){return ve(this,Ce),be(this,(Ce.__proto__||Object.getPrototypeOf(Ce)).apply(this,arguments))}return ne(Ce,[{key:"format",value:function(qe,Ie){qe===Se.blotName&&!Ie?this.replaceWith(he.default.create(this.statics.scope)):oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"format",this).call(this,qe,Ie)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(qe,Ie){return this.parent.isolate(this.offset(this.parent),this.length()),qe===this.parent.statics.blotName?(this.parent.replaceWith(qe,Ie),this):(this.parent.unwrap(),oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"replaceWith",this).call(this,qe,Ie))}}],[{key:"formats",value:function(qe){return qe.tagName===this.tagName?void 0:oe(Ce.__proto__||Object.getPrototypeOf(Ce),"formats",this).call(this,qe)}}]),Ce}(ce.default);we.blotName="list-item",we.tagName="LI";var Se=function(_e){ye(Ce,_e),ne(Ce,null,[{key:"create",value:function(qe){var Ie=qe==="ordered"?"OL":"UL",ze=oe(Ce.__proto__||Object.getPrototypeOf(Ce),"create",this).call(this,Ie);return(qe==="checked"||qe==="unchecked")&&ze.setAttribute("data-checked",qe==="checked"),ze}},{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 Ce(Le){ve(this,Ce);var qe=be(this,(Ce.__proto__||Object.getPrototypeOf(Ce)).call(this,Le)),Ie=function(Pe){if(Pe.target.parentNode===Le){var Ae=qe.statics.formats(Le),De=he.default.find(Pe.target);Ae==="checked"?De.format("list","unchecked"):Ae==="unchecked"&&De.format("list","checked")}};return Le.addEventListener("touchstart",Ie),Le.addEventListener("mousedown",Ie),qe}return ne(Ce,[{key:"format",value:function(qe,Ie){this.children.length>0&&this.children.tail.format(qe,Ie)}},{key:"formats",value:function(){return me({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(qe,Ie){if(qe instanceof we)oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"insertBefore",this).call(this,qe,Ie);else{var ze=Ie==null?this.length():Ie.offset(this),Pe=this.split(ze);Pe.parent.insertBefore(qe,Pe)}}},{key:"optimize",value:function(qe){oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"optimize",this).call(this,qe);var Ie=this.next;Ie!=null&&Ie.prev===this&&Ie.statics.blotName===this.statics.blotName&&Ie.domNode.tagName===this.domNode.tagName&&Ie.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(Ie.moveChildren(this),Ie.remove())}},{key:"replace",value:function(qe){if(qe.statics.blotName!==this.statics.blotName){var Ie=he.default.create(this.statics.defaultChild);qe.moveChildren(Ie),this.appendChild(Ie)}oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"replace",this).call(this,qe)}}]),Ce}(fe.default);Se.blotName="list",Se.scope=he.default.Scope.BLOCK_BLOT,Se.tagName=["OL","UL"],Se.defaultChild="list-item",Se.allowedChildren=[we],te.ListItem=we,te.default=Se},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(57),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default);pe.blotName="italic",pe.tagName=["EM","I"],te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(6),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(){return ce(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return ne(ve,null,[{key:"create",value:function(ye){return ye==="super"?document.createElement("sup"):ye==="sub"?document.createElement("sub"):oe(ve.__proto__||Object.getPrototypeOf(ve),"create",this).call(this,ye)}},{key:"formats",value:function(ye){if(ye.tagName==="SUB")return"sub";if(ye.tagName==="SUP")return"super"}}]),ve}(he.default);ge.blotName="script",ge.tagName=["SUB","SUP"],te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(6),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default);pe.blotName="strike",pe.tagName="S",te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(6),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default);pe.blotName="underline",pe.tagName="U",te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),oe=function be(ye,we,Se){ye===null&&(ye=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ye,we);if(_e===void 0){var Ce=Object.getPrototypeOf(ye);return Ce===null?void 0:be(Ce,we,Se)}else{if("value"in _e)return _e.value;var Le=_e.get;return Le===void 0?void 0:Le.call(Se)}},de=re(0),he=ce(de),ue=re(27);function ce(be){return be&&be.__esModule?be:{default:be}}function pe(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function fe(be,ye){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:be}function ge(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ye):be.__proto__=ye)}var me=["alt","height","width"],ve=function(be){ge(ye,be);function ye(){return pe(this,ye),fe(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return ne(ye,[{key:"format",value:function(Se,_e){me.indexOf(Se)>-1?_e?this.domNode.setAttribute(Se,_e):this.domNode.removeAttribute(Se):oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"format",this).call(this,Se,_e)}}],[{key:"create",value:function(Se){var _e=oe(ye.__proto__||Object.getPrototypeOf(ye),"create",this).call(this,Se);return typeof Se=="string"&&_e.setAttribute("src",this.sanitize(Se)),_e}},{key:"formats",value:function(Se){return me.reduce(function(_e,Ce){return Se.hasAttribute(Ce)&&(_e[Ce]=Se.getAttribute(Ce)),_e},{})}},{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);ve.blotName="image",ve.tagName="IMG",te.default=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),oe=function be(ye,we,Se){ye===null&&(ye=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ye,we);if(_e===void 0){var Ce=Object.getPrototypeOf(ye);return Ce===null?void 0:be(Ce,we,Se)}else{if("value"in _e)return _e.value;var Le=_e.get;return Le===void 0?void 0:Le.call(Se)}},de=re(4),he=re(27),ue=ce(he);function ce(be){return be&&be.__esModule?be:{default:be}}function pe(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function fe(be,ye){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:be}function ge(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ye):be.__proto__=ye)}var me=["height","width"],ve=function(be){ge(ye,be);function ye(){return pe(this,ye),fe(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return ne(ye,[{key:"format",value:function(Se,_e){me.indexOf(Se)>-1?_e?this.domNode.setAttribute(Se,_e):this.domNode.removeAttribute(Se):oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"format",this).call(this,Se,_e)}}],[{key:"create",value:function(Se){var _e=oe(ye.__proto__||Object.getPrototypeOf(ye),"create",this).call(this,Se);return _e.setAttribute("frameborder","0"),_e.setAttribute("allowfullscreen",!0),_e.setAttribute("src",this.sanitize(Se)),_e}},{key:"formats",value:function(Se){return me.reduce(function(_e,Ce){return Se.hasAttribute(Ce)&&(_e[Ce]=Se.getAttribute(Ce)),_e},{})}},{key:"sanitize",value:function(Se){return ue.default.sanitize(Se)}},{key:"value",value:function(Se){return Se.getAttribute("src")}}]),ye}(de.BlockEmbed);ve.blotName="video",ve.className="ql-video",ve.tagName="IFRAME",te.default=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.FormulaBlot=void 0;var ne=function(){function Se(_e,Ce){for(var Le=0;Le<Ce.length;Le++){var qe=Ce[Le];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(_e,qe.key,qe)}}return function(_e,Ce,Le){return Ce&&Se(_e.prototype,Ce),Le&&Se(_e,Le),_e}}(),oe=function Se(_e,Ce,Le){_e===null&&(_e=Function.prototype);var qe=Object.getOwnPropertyDescriptor(_e,Ce);if(qe===void 0){var Ie=Object.getPrototypeOf(_e);return Ie===null?void 0:Se(Ie,Ce,Le)}else{if("value"in qe)return qe.value;var ze=qe.get;return ze===void 0?void 0:ze.call(Le)}},de=re(36),he=ge(de),ue=re(5),ce=ge(ue),pe=re(9),fe=ge(pe);function ge(Se){return Se&&Se.__esModule?Se:{default:Se}}function me(Se,_e){if(!(Se instanceof _e))throw new TypeError("Cannot call a class as a function")}function ve(Se,_e){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e&&(typeof _e=="object"||typeof _e=="function")?_e:Se}function be(Se,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _e);Se.prototype=Object.create(_e&&_e.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),_e&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,_e):Se.__proto__=_e)}var ye=function(Se){be(_e,Se);function _e(){return me(this,_e),ve(this,(_e.__proto__||Object.getPrototypeOf(_e)).apply(this,arguments))}return ne(_e,null,[{key:"create",value:function(Le){var qe=oe(_e.__proto__||Object.getPrototypeOf(_e),"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")}}]),_e}(he.default);ye.blotName="formula",ye.className="ql-formula",ye.tagName="SPAN";var we=function(Se){be(_e,Se),ne(_e,null,[{key:"register",value:function(){ce.default.register(ye,!0)}}]);function _e(){me(this,_e);var Ce=ve(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return Ce}return _e}(fe.default);te.FormulaBlot=ye,te.default=we},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.CodeToken=te.CodeBlock=void 0;var ne=function(){function Le(qe,Ie){for(var ze=0;ze<Ie.length;ze++){var Pe=Ie[ze];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(qe,Pe.key,Pe)}}return function(qe,Ie,ze){return Ie&&Le(qe.prototype,Ie),ze&&Le(qe,ze),qe}}(),oe=function Le(qe,Ie,ze){qe===null&&(qe=Function.prototype);var Pe=Object.getOwnPropertyDescriptor(qe,Ie);if(Pe===void 0){var Ae=Object.getPrototypeOf(qe);return Ae===null?void 0:Le(Ae,Ie,ze)}else{if("value"in Pe)return Pe.value;var De=Pe.get;return De===void 0?void 0:De.call(ze)}},de=re(0),he=ve(de),ue=re(5),ce=ve(ue),pe=re(9),fe=ve(pe),ge=re(13),me=ve(ge);function ve(Le){return Le&&Le.__esModule?Le:{default:Le}}function be(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 we(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){we(qe,Le);function qe(){return be(this,qe),ye(this,(qe.__proto__||Object.getPrototypeOf(qe)).apply(this,arguments))}return ne(qe,[{key:"replaceWith",value:function(ze){this.domNode.textContent=this.domNode.textContent,this.attach(),oe(qe.prototype.__proto__||Object.getPrototypeOf(qe.prototype),"replaceWith",this).call(this,ze)}},{key:"highlight",value:function(ze){var Pe=this.domNode.textContent;this.cachedText!==Pe&&((Pe.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=ze(Pe),this.domNode.normalize(),this.attach()),this.cachedText=Pe)}}]),qe}(me.default);Se.className="ql-syntax";var _e=new he.default.Attributor.Class("token","hljs",{scope:he.default.Scope.INLINE}),Ce=function(Le){we(qe,Le),ne(qe,null,[{key:"register",value:function(){ce.default.register(_e,!0),ce.default.register(Se,!0)}}]);function qe(Ie,ze){be(this,qe);var Pe=ye(this,(qe.__proto__||Object.getPrototypeOf(qe)).call(this,Ie,ze));if(typeof Pe.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var Ae=null;return Pe.quill.on(ce.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(Ae),Ae=setTimeout(function(){Pe.highlight(),Ae=null},Pe.options.interval)}),Pe.highlight(),Pe}return ne(qe,[{key:"highlight",value:function(){var ze=this;if(!this.quill.selection.composing){this.quill.update(ce.default.sources.USER);var Pe=this.quill.getSelection();this.quill.scroll.descendants(Se).forEach(function(Ae){Ae.highlight(ze.options.highlight)}),this.quill.update(ce.default.sources.SILENT),Pe!=null&&this.quill.setSelection(Pe,ce.default.sources.SILENT)}}}]),qe}(fe.default);Ce.DEFAULTS={highlight:function(){return window.hljs==null?null:function(Le){var qe=window.hljs.highlightAuto(Le);return qe.value}}(),interval:1e3},te.CodeBlock=Se,te.CodeToken=_e,te.default=Ce},function(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.BubbleTooltip=void 0;var ne=function qe(Ie,ze,Pe){Ie===null&&(Ie=Function.prototype);var Ae=Object.getOwnPropertyDescriptor(Ie,ze);if(Ae===void 0){var De=Object.getPrototypeOf(Ie);return De===null?void 0:qe(De,ze,Pe)}else{if("value"in Ae)return Ae.value;var Me=Ae.get;return Me===void 0?void 0:Me.call(Pe)}},oe=function(){function qe(Ie,ze){for(var Pe=0;Pe<ze.length;Pe++){var Ae=ze[Pe];Ae.enumerable=Ae.enumerable||!1,Ae.configurable=!0,"value"in Ae&&(Ae.writable=!0),Object.defineProperty(Ie,Ae.key,Ae)}}return function(Ie,ze,Pe){return ze&&qe(Ie.prototype,ze),Pe&&qe(Ie,Pe),Ie}}(),de=re(3),he=be(de),ue=re(8),ce=be(ue),pe=re(44),fe=be(pe),ge=re(15),me=re(42),ve=be(me);function be(qe){return qe&&qe.__esModule?qe:{default:qe}}function ye(qe,Ie){if(!(qe instanceof Ie))throw new TypeError("Cannot call a class as a function")}function we(qe,Ie){if(!qe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ie&&(typeof Ie=="object"||typeof Ie=="function")?Ie:qe}function Se(qe,Ie){if(typeof Ie!="function"&&Ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ie);qe.prototype=Object.create(Ie&&Ie.prototype,{constructor:{value:qe,enumerable:!1,writable:!0,configurable:!0}}),Ie&&(Object.setPrototypeOf?Object.setPrototypeOf(qe,Ie):qe.__proto__=Ie)}var _e=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Ce=function(qe){Se(Ie,qe);function Ie(ze,Pe){ye(this,Ie),Pe.modules.toolbar!=null&&Pe.modules.toolbar.container==null&&(Pe.modules.toolbar.container=_e);var Ae=we(this,(Ie.__proto__||Object.getPrototypeOf(Ie)).call(this,ze,Pe));return Ae.quill.container.classList.add("ql-bubble"),Ae}return oe(Ie,[{key:"extendToolbar",value:function(Pe){this.tooltip=new Le(this.quill,this.options.bounds),this.tooltip.root.appendChild(Pe.container),this.buildButtons([].slice.call(Pe.container.querySelectorAll("button")),ve.default),this.buildPickers([].slice.call(Pe.container.querySelectorAll("select")),ve.default)}}]),Ie}(fe.default);Ce.DEFAULTS=(0,he.default)(!0,{},fe.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Ie){Ie?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var Le=function(qe){Se(Ie,qe);function Ie(ze,Pe){ye(this,Ie);var Ae=we(this,(Ie.__proto__||Object.getPrototypeOf(Ie)).call(this,ze,Pe));return Ae.quill.on(ce.default.events.EDITOR_CHANGE,function(De,Me,Be,Ve){if(De===ce.default.events.SELECTION_CHANGE)if(Me!=null&&Me.length>0&&Ve===ce.default.sources.USER){Ae.show(),Ae.root.style.left="0px",Ae.root.style.width="",Ae.root.style.width=Ae.root.offsetWidth+"px";var Ye=Ae.quill.getLines(Me.index,Me.length);if(Ye.length===1)Ae.position(Ae.quill.getBounds(Me));else{var Je=Ye[Ye.length-1],vt=Ae.quill.getIndex(Je),Xe=Math.min(Je.length()-1,Me.index+Me.length-vt),Ge=Ae.quill.getBounds(new ge.Range(vt,Xe));Ae.position(Ge)}}else document.activeElement!==Ae.textbox&&Ae.quill.hasFocus()&&Ae.hide()}),Ae}return oe(Ie,[{key:"listen",value:function(){var Pe=this;ne(Ie.prototype.__proto__||Object.getPrototypeOf(Ie.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Pe.root.classList.remove("ql-editing")}),this.quill.on(ce.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Pe.root.classList.contains("ql-hidden")){var Ae=Pe.quill.getSelection();Ae!=null&&Pe.position(Pe.quill.getBounds(Ae))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Pe){var Ae=ne(Ie.prototype.__proto__||Object.getPrototypeOf(Ie.prototype),"position",this).call(this,Pe),De=this.root.querySelector(".ql-tooltip-arrow");if(De.style.marginLeft="",Ae===0)return Ae;De.style.marginLeft=-1*Ae-De.offsetWidth/2+"px"}}]),Ie}(pe.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(""),te.BubbleTooltip=Le,te.default=Ce},function(J,te,re){J.exports=re(64)}]).default})})(quill);var quillExports=quill.exports;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$2=X=>ke$1`
|
|
6056
|
+
`)}return mt}function dr(gt,mt){var xt={},St=gt.style||{};return St.fontStyle&&Qe(gt).fontStyle==="italic"&&(xt.italic=!0),St.fontWeight&&(Qe(gt).fontWeight.startsWith("bold")||parseInt(Qe(gt).fontWeight)>=700)&&(xt.bold=!0),Object.keys(xt).length>0&&(mt=We(mt,xt)),parseFloat(St.textIndent||0)>0&&(mt=new pe.default().insert(" ").concat(mt)),mt}function rr(gt,mt){var xt=gt.data;if(gt.parentNode.tagName==="O:P")return mt.insert(xt.trim());if(xt.trim().length===0&>.parentNode.classList.contains("ql-clipboard"))return mt;if(!Qe(gt.parentNode).whiteSpace.startsWith("pre")){var St=function(Ft,Nt){return Nt=Nt.replace(/[^\u00a0]/g,""),Nt.length<1&&Ft?" ":Nt};xt=xt.replace(/\r\n/g," ").replace(/\n/g," "),xt=xt.replace(/\s\s+/g,St.bind(St,!0)),(gt.previousSibling==null&&je(gt.parentNode)||gt.previousSibling!=null&&je(gt.previousSibling))&&(xt=xt.replace(/^\s+/,St.bind(St,!1))),(gt.nextSibling==null&&je(gt.parentNode)||gt.nextSibling!=null&&je(gt.nextSibling))&&(xt=xt.replace(/\s+$/,St.bind(St,!1)))}return mt.insert(xt)}te.default=Ue,te.matchAttributor=nt,te.matchBlot=bt,te.matchNewline=Bt,te.matchSpacing=jt,te.matchText=rr},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(6),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(){return ce(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return ne(ve,[{key:"optimize",value:function(ye){oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"optimize",this).call(this,ye),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return oe(ve.__proto__||Object.getPrototypeOf(ve),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),ve}(he.default);ge.blotName="bold",ge.tagName=["STRONG","B"],te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.addControls=te.default=void 0;var ne=function(){function De(Me,Be){var Ve=[],Ye=!0,Je=!1,vt=void 0;try{for(var Xe=Me[Symbol.iterator](),Ge;!(Ye=(Ge=Xe.next()).done)&&(Ve.push(Ge.value),!(Be&&Ve.length===Be));Ye=!0);}catch(Ne){Je=!0,vt=Ne}finally{try{!Ye&&Xe.return&&Xe.return()}finally{if(Je)throw vt}}return Ve}return function(Me,Be){if(Array.isArray(Me))return Me;if(Symbol.iterator in Object(Me))return De(Me,Be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(){function De(Me,Be){for(var Ve=0;Ve<Be.length;Ve++){var Ye=Be[Ve];Ye.enumerable=Ye.enumerable||!1,Ye.configurable=!0,"value"in Ye&&(Ye.writable=!0),Object.defineProperty(Me,Ye.key,Ye)}}return function(Me,Be,Ve){return Be&&De(Me.prototype,Be),Ve&&De(Me,Ve),Me}}(),de=re(2),he=ye(de),ue=re(0),ce=ye(ue),pe=re(5),fe=ye(pe),ge=re(10),me=ye(ge),ve=re(9),be=ye(ve);function ye(De){return De&&De.__esModule?De:{default:De}}function we(De,Me,Be){return Me in De?Object.defineProperty(De,Me,{value:Be,enumerable:!0,configurable:!0,writable:!0}):De[Me]=Be,De}function Se(De,Me){if(!(De instanceof Me))throw new TypeError("Cannot call a class as a function")}function _e(De,Me){if(!De)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me&&(typeof Me=="object"||typeof Me=="function")?Me:De}function Ce(De,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Me);De.prototype=Object.create(Me&&Me.prototype,{constructor:{value:De,enumerable:!1,writable:!0,configurable:!0}}),Me&&(Object.setPrototypeOf?Object.setPrototypeOf(De,Me):De.__proto__=Me)}var Le="getRootNode"in document,Pe=(0,me.default)("quill:toolbar"),Ie=function(De){Ce(Me,De);function Me(Be,Ve){Se(this,Me);var Ye=_e(this,(Me.__proto__||Object.getPrototypeOf(Me)).call(this,Be,Ve));if(Array.isArray(Ye.options.container)){var Je=document.createElement("div");qe(Je,Ye.options.container),Be.container.parentNode.insertBefore(Je,Be.container),Ye.container=Je}else if(typeof Ye.options.container=="string"){var vt=Le?Be.container.getRootNode():document;Ye.container=vt.querySelector(Ye.options.container)}else Ye.container=Ye.options.container;if(!(Ye.container instanceof HTMLElement)){var Xe;return Xe=Pe.error("Container required for toolbar",Ye.options),_e(Ye,Xe)}return Ye.container.classList.add("ql-toolbar"),Ye.controls=[],Ye.handlers={},Object.keys(Ye.options.handlers).forEach(function(Ge){Ye.addHandler(Ge,Ye.options.handlers[Ge])}),[].forEach.call(Ye.container.querySelectorAll("button, select"),function(Ge){Ye.attach(Ge)}),Ye.quill.on(fe.default.events.EDITOR_CHANGE,function(Ge,Ne){Ge===fe.default.events.SELECTION_CHANGE&&Ye.update(Ne)}),Ye.quill.on(fe.default.events.SCROLL_OPTIMIZE,function(){var Ge=Ye.quill.selection.getRange(),Ne=ne(Ge,1),Ue=Ne[0];Ye.update(Ue)}),Ye}return oe(Me,[{key:"addHandler",value:function(Ve,Ye){this.handlers[Ve]=Ye}},{key:"attach",value:function(Ve){var Ye=this,Je=[].find.call(Ve.classList,function(Xe){return Xe.indexOf("ql-")===0});if(Je){if(Je=Je.slice(3),Ve.tagName==="BUTTON"&&Ve.setAttribute("type","button"),this.handlers[Je]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Je]==null){Pe.warn("ignoring attaching to disabled format",Je,Ve);return}if(ce.default.query(Je)==null){Pe.warn("ignoring attaching to nonexistent format",Je,Ve);return}}var vt=Ve.tagName==="SELECT"?"change":"click";Ve.addEventListener(vt,function(Xe){var Ge=void 0;if(Ve.tagName==="SELECT"){if(Ve.selectedIndex<0)return;var Ne=Ve.options[Ve.selectedIndex];Ne.hasAttribute("selected")?Ge=!1:Ge=Ne.value||!1}else Ve.classList.contains("ql-active")?Ge=!1:Ge=Ve.value||!Ve.hasAttribute("value"),Xe.preventDefault();Ye.quill.focus();var Ue=Ye.quill.selection.getRange(),We=ne(Ue,1),Qe=We[0];if(Ye.handlers[Je]!=null)Ye.handlers[Je].call(Ye,Ge);else if(ce.default.query(Je).prototype instanceof ce.default.Embed){if(Ge=prompt("Enter "+Je),!Ge)return;Ye.quill.updateContents(new he.default().retain(Qe.index).delete(Qe.length).insert(we({},Je,Ge)),fe.default.sources.USER)}else Ye.quill.format(Je,Ge,fe.default.sources.USER);Ye.update(Qe)}),this.controls.push([Je,Ve])}}},{key:"update",value:function(Ve){var Ye=Ve==null?{}:this.quill.getFormat(Ve);this.controls.forEach(function(Je){var vt=ne(Je,2),Xe=vt[0],Ge=vt[1];if(Ge.tagName==="SELECT"){var Ne=void 0;if(Ve==null)Ne=null;else if(Ye[Xe]==null)Ne=Ge.querySelector("option[selected]");else if(!Array.isArray(Ye[Xe])){var Ue=Ye[Xe];typeof Ue=="string"&&(Ue=Ue.replace(/\"/g,'\\"')),Ne=Ge.querySelector('option[value="'+Ue+'"]')}Ne==null?(Ge.value="",Ge.selectedIndex=-1):Ne.selected=!0}else if(Ve==null)Ge.classList.remove("ql-active");else if(Ge.hasAttribute("value")){var We=Ye[Xe]===Ge.getAttribute("value")||Ye[Xe]!=null&&Ye[Xe].toString()===Ge.getAttribute("value")||Ye[Xe]==null&&!Ge.getAttribute("value");Ge.classList.toggle("ql-active",We)}else Ge.classList.toggle("ql-active",Ye[Xe]!=null)})}}]),Me}(be.default);Ie.DEFAULTS={};function ze(De,Me,Be){var Ve=document.createElement("button");Ve.setAttribute("type","button"),Ve.classList.add("ql-"+Me),Be!=null&&(Ve.value=Be),De.appendChild(Ve)}function qe(De,Me){Array.isArray(Me[0])||(Me=[Me]),Me.forEach(function(Be){var Ve=document.createElement("span");Ve.classList.add("ql-formats"),Be.forEach(function(Ye){if(typeof Ye=="string")ze(Ve,Ye);else{var Je=Object.keys(Ye)[0],vt=Ye[Je];Array.isArray(vt)?Ae(Ve,Je,vt):ze(Ve,Je,vt)}}),De.appendChild(Ve)})}function Ae(De,Me,Be){var Ve=document.createElement("select");Ve.classList.add("ql-"+Me),Be.forEach(function(Ye){var Je=document.createElement("option");Ye!==!1?Je.setAttribute("value",Ye):Je.setAttribute("selected","selected"),Ve.appendChild(Je)}),De.appendChild(Ve)}Ie.DEFAULTS={container:null,handlers:{clean:function(){var Me=this,Be=this.quill.getSelection();if(Be!=null)if(Be.length==0){var Ve=this.quill.getFormat();Object.keys(Ve).forEach(function(Ye){ce.default.query(Ye,ce.default.Scope.INLINE)!=null&&Me.quill.format(Ye,!1)})}else this.quill.removeFormat(Be,fe.default.sources.USER)},direction:function(Me){var Be=this.quill.getFormat().align;Me==="rtl"&&Be==null?this.quill.format("align","right",fe.default.sources.USER):!Me&&Be==="right"&&this.quill.format("align",!1,fe.default.sources.USER),this.quill.format("direction",Me,fe.default.sources.USER)},indent:function(Me){var Be=this.quill.getSelection(),Ve=this.quill.getFormat(Be),Ye=parseInt(Ve.indent||0);if(Me==="+1"||Me==="-1"){var Je=Me==="+1"?1:-1;Ve.direction==="rtl"&&(Je*=-1),this.quill.format("indent",Ye+Je,fe.default.sources.USER)}},link:function(Me){Me===!0&&(Me=prompt("Enter link URL:")),this.quill.format("link",Me,fe.default.sources.USER)},list:function(Me){var Be=this.quill.getSelection(),Ve=this.quill.getFormat(Be);Me==="check"?Ve.list==="checked"||Ve.list==="unchecked"?this.quill.format("list",!1,fe.default.sources.USER):this.quill.format("list","unchecked",fe.default.sources.USER):this.quill.format("list",Me,fe.default.sources.USER)}}},te.default=Ie,te.addControls=qe},function(J,te){J.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(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(28),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(be,ye){ce(this,ve);var we=pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,be));return we.label.innerHTML=ye,we.container.classList.add("ql-color-picker"),[].slice.call(we.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(Se){Se.classList.add("ql-primary")}),we}return ne(ve,[{key:"buildItem",value:function(ye){var we=oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"buildItem",this).call(this,ye);return we.style.backgroundColor=ye.getAttribute("value")||"",we}},{key:"selectItem",value:function(ye,we){oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"selectItem",this).call(this,ye,we);var Se=this.label.querySelector(".ql-color-label"),_e=ye&&ye.getAttribute("data-value")||"";Se&&(Se.tagName==="line"?Se.style.stroke=_e:Se.style.fill=_e)}}]),ve}(he.default);te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(28),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(be,ye){ce(this,ve);var we=pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,be));return we.container.classList.add("ql-icon-picker"),[].forEach.call(we.container.querySelectorAll(".ql-picker-item"),function(Se){Se.innerHTML=ye[Se.getAttribute("data-value")||""]}),we.defaultItem=we.container.querySelector(".ql-selected"),we.selectItem(we.defaultItem),we}return ne(ve,[{key:"selectItem",value:function(ye,we){oe(ve.prototype.__proto__||Object.getPrototypeOf(ve.prototype),"selectItem",this).call(this,ye,we),ye=ye||this.defaultItem,this.label.innerHTML=ye.innerHTML}}]),ve}(he.default);te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function he(ue,ce){for(var pe=0;pe<ce.length;pe++){var fe=ce[pe];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ue,fe.key,fe)}}return function(ue,ce,pe){return ce&&he(ue.prototype,ce),pe&&he(ue,pe),ue}}();function oe(he,ue){if(!(he instanceof ue))throw new TypeError("Cannot call a class as a function")}var de=function(){function he(ue,ce){var pe=this;oe(this,he),this.quill=ue,this.boundsContainer=ce||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(){pe.root.style.marginTop=-1*pe.quill.root.scrollTop+"px"}),this.hide()}return ne(he,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(ce){var pe=ce.left+ce.width/2-this.root.offsetWidth/2,fe=ce.bottom+this.quill.root.scrollTop;this.root.style.left=pe+"px",this.root.style.top=fe+"px",this.root.classList.remove("ql-flip");var ge=this.boundsContainer.getBoundingClientRect(),me=this.root.getBoundingClientRect(),ve=0;if(me.right>ge.right&&(ve=ge.right-me.right,this.root.style.left=pe+ve+"px"),me.left<ge.left&&(ve=ge.left-me.left,this.root.style.left=pe+ve+"px"),me.bottom>ge.bottom){var be=me.bottom-me.top,ye=ce.bottom-ce.top+be;this.root.style.top=fe-ye+"px",this.root.classList.add("ql-flip")}return ve}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),he}();te.default=de},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function qe(Ae,De){var Me=[],Be=!0,Ve=!1,Ye=void 0;try{for(var Je=Ae[Symbol.iterator](),vt;!(Be=(vt=Je.next()).done)&&(Me.push(vt.value),!(De&&Me.length===De));Be=!0);}catch(Xe){Ve=!0,Ye=Xe}finally{try{!Be&&Je.return&&Je.return()}finally{if(Ve)throw Ye}}return Me}return function(Ae,De){if(Array.isArray(Ae))return Ae;if(Symbol.iterator in Object(Ae))return qe(Ae,De);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function qe(Ae,De,Me){Ae===null&&(Ae=Function.prototype);var Be=Object.getOwnPropertyDescriptor(Ae,De);if(Be===void 0){var Ve=Object.getPrototypeOf(Ae);return Ve===null?void 0:qe(Ve,De,Me)}else{if("value"in Be)return Be.value;var Ye=Be.get;return Ye===void 0?void 0:Ye.call(Me)}},de=function(){function qe(Ae,De){for(var Me=0;Me<De.length;Me++){var Be=De[Me];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Ae,Be.key,Be)}}return function(Ae,De,Me){return De&&qe(Ae.prototype,De),Me&&qe(Ae,Me),Ae}}(),he=re(3),ue=Se(he),ce=re(8),pe=Se(ce),fe=re(44),ge=Se(fe),me=re(27),ve=Se(me),be=re(15),ye=re(42),we=Se(ye);function Se(qe){return qe&&qe.__esModule?qe:{default:qe}}function _e(qe,Ae){if(!(qe instanceof Ae))throw new TypeError("Cannot call a class as a function")}function Ce(qe,Ae){if(!qe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ae&&(typeof Ae=="object"||typeof Ae=="function")?Ae:qe}function Le(qe,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ae);qe.prototype=Object.create(Ae&&Ae.prototype,{constructor:{value:qe,enumerable:!1,writable:!0,configurable:!0}}),Ae&&(Object.setPrototypeOf?Object.setPrototypeOf(qe,Ae):qe.__proto__=Ae)}var Pe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],Ie=function(qe){Le(Ae,qe);function Ae(De,Me){_e(this,Ae),Me.modules.toolbar!=null&&Me.modules.toolbar.container==null&&(Me.modules.toolbar.container=Pe);var Be=Ce(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,De,Me));return Be.quill.container.classList.add("ql-snow"),Be}return de(Ae,[{key:"extendToolbar",value:function(Me){Me.container.classList.add("ql-snow"),this.buildButtons([].slice.call(Me.container.querySelectorAll("button")),we.default),this.buildPickers([].slice.call(Me.container.querySelectorAll("select")),we.default),this.tooltip=new ze(this.quill,this.options.bounds),Me.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(Be,Ve){Me.handlers.link.call(Me,!Ve.format.link)})}}]),Ae}(ge.default);Ie.DEFAULTS=(0,ue.default)(!0,{},ge.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Ae){if(Ae){var De=this.quill.getSelection();if(De==null||De.length==0)return;var Me=this.quill.getText(De);/^\S+@\S+\.\S+$/.test(Me)&&Me.indexOf("mailto:")!==0&&(Me="mailto:"+Me);var Be=this.quill.theme.tooltip;Be.edit("link",Me)}else this.quill.format("link",!1)}}}}});var ze=function(qe){Le(Ae,qe);function Ae(De,Me){_e(this,Ae);var Be=Ce(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,De,Me));return Be.preview=Be.root.querySelector("a.ql-preview"),Be}return de(Ae,[{key:"listen",value:function(){var Me=this;oe(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(Be){Me.root.classList.contains("ql-editing")?Me.save():Me.edit("link",Me.preview.textContent),Be.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(Be){if(Me.linkRange!=null){var Ve=Me.linkRange;Me.restoreFocus(),Me.quill.formatText(Ve,"link",!1,pe.default.sources.USER),delete Me.linkRange}Be.preventDefault(),Me.hide()}),this.quill.on(pe.default.events.SELECTION_CHANGE,function(Be,Ve,Ye){if(Be!=null){if(Be.length===0&&Ye===pe.default.sources.USER){var Je=Me.quill.scroll.descendant(ve.default,Be.index),vt=ne(Je,2),Xe=vt[0],Ge=vt[1];if(Xe!=null){Me.linkRange=new be.Range(Be.index-Ge,Xe.length());var Ne=ve.default.formats(Xe.domNode);Me.preview.textContent=Ne,Me.preview.setAttribute("href",Ne),Me.show(),Me.position(Me.quill.getBounds(Me.linkRange));return}}else delete Me.linkRange;Me.hide()}})}},{key:"show",value:function(){oe(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),Ae}(fe.BaseTooltip);ze.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(""),te.default=Ie},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(29),oe=$t(ne),de=re(37),he=re(39),ue=re(65),ce=re(66),pe=$t(ce),fe=re(67),ge=$t(fe),me=re(68),ve=$t(me),be=re(38),ye=re(26),we=re(40),Se=re(41),_e=re(57),Ce=$t(_e),Le=re(69),Pe=$t(Le),Ie=re(27),ze=$t(Ie),qe=re(70),Ae=$t(qe),De=re(71),Me=$t(De),Be=re(72),Ve=$t(Be),Ye=re(73),Je=$t(Ye),vt=re(74),Xe=$t(vt),Ge=re(13),Ne=$t(Ge),Ue=re(75),We=$t(Ue),Qe=re(76),Ze=$t(Qe),je=re(58),Ke=$t(je),it=re(42),nt=$t(it),bt=re(28),Ct=$t(bt),Dt=re(60),Lt=$t(Dt),Bt=re(61),jt=$t(Bt),dr=re(62),rr=$t(dr),gt=re(109),mt=$t(gt),xt=re(63),St=$t(xt);function $t(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}oe.default.register({"attributors/attribute/direction":he.DirectionAttribute,"attributors/class/align":de.AlignClass,"attributors/class/background":be.BackgroundClass,"attributors/class/color":ye.ColorClass,"attributors/class/direction":he.DirectionClass,"attributors/class/font":we.FontClass,"attributors/class/size":Se.SizeClass,"attributors/style/align":de.AlignStyle,"attributors/style/background":be.BackgroundStyle,"attributors/style/color":ye.ColorStyle,"attributors/style/direction":he.DirectionStyle,"attributors/style/font":we.FontStyle,"attributors/style/size":Se.SizeStyle},!0),oe.default.register({"formats/align":de.AlignClass,"formats/direction":he.DirectionClass,"formats/indent":ue.IndentClass,"formats/background":be.BackgroundStyle,"formats/color":ye.ColorStyle,"formats/font":we.FontClass,"formats/size":Se.SizeClass,"formats/blockquote":pe.default,"formats/code-block":Ne.default,"formats/header":ge.default,"formats/list":ve.default,"formats/bold":Ce.default,"formats/code":Ge.Code,"formats/italic":Pe.default,"formats/link":ze.default,"formats/script":Ae.default,"formats/strike":Me.default,"formats/underline":Ve.default,"formats/image":Je.default,"formats/video":Xe.default,"formats/list/item":me.ListItem,"modules/formula":We.default,"modules/syntax":Ze.default,"modules/toolbar":Ke.default,"themes/bubble":mt.default,"themes/snow":St.default,"ui/icons":nt.default,"ui/picker":Ct.default,"ui/icon-picker":jt.default,"ui/color-picker":Lt.default,"ui/tooltip":rr.default},!0),te.default=oe.default},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.IndentClass=void 0;var ne=function(){function ve(be,ye){for(var we=0;we<ye.length;we++){var Se=ye[we];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(be,Se.key,Se)}}return function(be,ye,we){return ye&&ve(be.prototype,ye),we&&ve(be,we),be}}(),oe=function ve(be,ye,we){be===null&&(be=Function.prototype);var Se=Object.getOwnPropertyDescriptor(be,ye);if(Se===void 0){var _e=Object.getPrototypeOf(be);return _e===null?void 0:ve(_e,ye,we)}else{if("value"in Se)return Se.value;var Ce=Se.get;return Ce===void 0?void 0:Ce.call(we)}},de=re(0),he=ue(de);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function ce(ve,be){if(!(ve instanceof be))throw new TypeError("Cannot call a class as a function")}function pe(ve,be){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:ve}function fe(ve,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);ve.prototype=Object.create(be&&be.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,be):ve.__proto__=be)}var ge=function(ve){fe(be,ve);function be(){return ce(this,be),pe(this,(be.__proto__||Object.getPrototypeOf(be)).apply(this,arguments))}return ne(be,[{key:"add",value:function(we,Se){if(Se==="+1"||Se==="-1"){var _e=this.value(we)||0;Se=Se==="+1"?_e+1:_e-1}return Se===0?(this.remove(we),!0):oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"add",this).call(this,we,Se)}},{key:"canAdd",value:function(we,Se){return oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"canAdd",this).call(this,we,Se)||oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"canAdd",this).call(this,we,parseInt(Se))}},{key:"value",value:function(we){return parseInt(oe(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"value",this).call(this,we))||void 0}}]),be}(he.default.Attributor.Class),me=new ge("indent","ql-indent",{scope:he.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});te.IndentClass=me},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(4),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default);pe.blotName="blockquote",pe.tagName="blockquote",te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function ge(me,ve){for(var be=0;be<ve.length;be++){var ye=ve[be];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(me,ye.key,ye)}}return function(me,ve,be){return ve&&ge(me.prototype,ve),be&&ge(me,be),me}}(),oe=re(4),de=he(oe);function he(ge){return ge&&ge.__esModule?ge:{default:ge}}function ue(ge,me){if(!(ge instanceof me))throw new TypeError("Cannot call a class as a function")}function ce(ge,me){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ge}function pe(ge,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ge.prototype=Object.create(me&&me.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,me):ge.__proto__=me)}var fe=function(ge){pe(me,ge);function me(){return ue(this,me),ce(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return ne(me,null,[{key:"formats",value:function(be){return this.tagName.indexOf(be.tagName)+1}}]),me}(de.default);fe.blotName="header",fe.tagName=["H1","H2","H3","H4","H5","H6"],te.default=fe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.ListItem=void 0;var ne=function(){function _e(Ce,Le){for(var Pe=0;Pe<Le.length;Pe++){var Ie=Le[Pe];Ie.enumerable=Ie.enumerable||!1,Ie.configurable=!0,"value"in Ie&&(Ie.writable=!0),Object.defineProperty(Ce,Ie.key,Ie)}}return function(Ce,Le,Pe){return Le&&_e(Ce.prototype,Le),Pe&&_e(Ce,Pe),Ce}}(),oe=function _e(Ce,Le,Pe){Ce===null&&(Ce=Function.prototype);var Ie=Object.getOwnPropertyDescriptor(Ce,Le);if(Ie===void 0){var ze=Object.getPrototypeOf(Ce);return ze===null?void 0:_e(ze,Le,Pe)}else{if("value"in Ie)return Ie.value;var qe=Ie.get;return qe===void 0?void 0:qe.call(Pe)}},de=re(0),he=ge(de),ue=re(4),ce=ge(ue),pe=re(25),fe=ge(pe);function ge(_e){return _e&&_e.__esModule?_e:{default:_e}}function me(_e,Ce,Le){return Ce in _e?Object.defineProperty(_e,Ce,{value:Le,enumerable:!0,configurable:!0,writable:!0}):_e[Ce]=Le,_e}function ve(_e,Ce){if(!(_e instanceof Ce))throw new TypeError("Cannot call a class as a function")}function be(_e,Ce){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ce&&(typeof Ce=="object"||typeof Ce=="function")?Ce:_e}function ye(_e,Ce){if(typeof Ce!="function"&&Ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ce);_e.prototype=Object.create(Ce&&Ce.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),Ce&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,Ce):_e.__proto__=Ce)}var we=function(_e){ye(Ce,_e);function Ce(){return ve(this,Ce),be(this,(Ce.__proto__||Object.getPrototypeOf(Ce)).apply(this,arguments))}return ne(Ce,[{key:"format",value:function(Pe,Ie){Pe===Se.blotName&&!Ie?this.replaceWith(he.default.create(this.statics.scope)):oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"format",this).call(this,Pe,Ie)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(Pe,Ie){return this.parent.isolate(this.offset(this.parent),this.length()),Pe===this.parent.statics.blotName?(this.parent.replaceWith(Pe,Ie),this):(this.parent.unwrap(),oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"replaceWith",this).call(this,Pe,Ie))}}],[{key:"formats",value:function(Pe){return Pe.tagName===this.tagName?void 0:oe(Ce.__proto__||Object.getPrototypeOf(Ce),"formats",this).call(this,Pe)}}]),Ce}(ce.default);we.blotName="list-item",we.tagName="LI";var Se=function(_e){ye(Ce,_e),ne(Ce,null,[{key:"create",value:function(Pe){var Ie=Pe==="ordered"?"OL":"UL",ze=oe(Ce.__proto__||Object.getPrototypeOf(Ce),"create",this).call(this,Ie);return(Pe==="checked"||Pe==="unchecked")&&ze.setAttribute("data-checked",Pe==="checked"),ze}},{key:"formats",value:function(Pe){if(Pe.tagName==="OL")return"ordered";if(Pe.tagName==="UL")return Pe.hasAttribute("data-checked")?Pe.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function Ce(Le){ve(this,Ce);var Pe=be(this,(Ce.__proto__||Object.getPrototypeOf(Ce)).call(this,Le)),Ie=function(qe){if(qe.target.parentNode===Le){var Ae=Pe.statics.formats(Le),De=he.default.find(qe.target);Ae==="checked"?De.format("list","unchecked"):Ae==="unchecked"&&De.format("list","checked")}};return Le.addEventListener("touchstart",Ie),Le.addEventListener("mousedown",Ie),Pe}return ne(Ce,[{key:"format",value:function(Pe,Ie){this.children.length>0&&this.children.tail.format(Pe,Ie)}},{key:"formats",value:function(){return me({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(Pe,Ie){if(Pe instanceof we)oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"insertBefore",this).call(this,Pe,Ie);else{var ze=Ie==null?this.length():Ie.offset(this),qe=this.split(ze);qe.parent.insertBefore(Pe,qe)}}},{key:"optimize",value:function(Pe){oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"optimize",this).call(this,Pe);var Ie=this.next;Ie!=null&&Ie.prev===this&&Ie.statics.blotName===this.statics.blotName&&Ie.domNode.tagName===this.domNode.tagName&&Ie.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(Ie.moveChildren(this),Ie.remove())}},{key:"replace",value:function(Pe){if(Pe.statics.blotName!==this.statics.blotName){var Ie=he.default.create(this.statics.defaultChild);Pe.moveChildren(Ie),this.appendChild(Ie)}oe(Ce.prototype.__proto__||Object.getPrototypeOf(Ce.prototype),"replace",this).call(this,Pe)}}]),Ce}(fe.default);Se.blotName="list",Se.scope=he.default.Scope.BLOCK_BLOT,Se.tagName=["OL","UL"],Se.defaultChild="list-item",Se.allowedChildren=[we],te.ListItem=we,te.default=Se},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(57),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default);pe.blotName="italic",pe.tagName=["EM","I"],te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function me(ve,be){for(var ye=0;ye<be.length;ye++){var we=be[ye];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ve,we.key,we)}}return function(ve,be,ye){return be&&me(ve.prototype,be),ye&&me(ve,ye),ve}}(),oe=function me(ve,be,ye){ve===null&&(ve=Function.prototype);var we=Object.getOwnPropertyDescriptor(ve,be);if(we===void 0){var Se=Object.getPrototypeOf(ve);return Se===null?void 0:me(Se,be,ye)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ye)}},de=re(6),he=ue(de);function ue(me){return me&&me.__esModule?me:{default:me}}function ce(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(me,ve){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:me}function fe(me,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);me.prototype=Object.create(ve&&ve.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ve):me.__proto__=ve)}var ge=function(me){fe(ve,me);function ve(){return ce(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return ne(ve,null,[{key:"create",value:function(ye){return ye==="super"?document.createElement("sup"):ye==="sub"?document.createElement("sub"):oe(ve.__proto__||Object.getPrototypeOf(ve),"create",this).call(this,ye)}},{key:"formats",value:function(ye){if(ye.tagName==="SUB")return"sub";if(ye.tagName==="SUP")return"super"}}]),ve}(he.default);ge.blotName="script",ge.tagName=["SUB","SUP"],te.default=ge},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(6),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default);pe.blotName="strike",pe.tagName="S",te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=re(6),oe=de(ne);function de(fe){return fe&&fe.__esModule?fe:{default:fe}}function he(fe,ge){if(!(fe instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(fe,ge){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:fe}function ce(fe,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);fe.prototype=Object.create(ge&&ge.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,ge):fe.__proto__=ge)}var pe=function(fe){ce(ge,fe);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge}(oe.default);pe.blotName="underline",pe.tagName="U",te.default=pe},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),oe=function be(ye,we,Se){ye===null&&(ye=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ye,we);if(_e===void 0){var Ce=Object.getPrototypeOf(ye);return Ce===null?void 0:be(Ce,we,Se)}else{if("value"in _e)return _e.value;var Le=_e.get;return Le===void 0?void 0:Le.call(Se)}},de=re(0),he=ce(de),ue=re(27);function ce(be){return be&&be.__esModule?be:{default:be}}function pe(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function fe(be,ye){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:be}function ge(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ye):be.__proto__=ye)}var me=["alt","height","width"],ve=function(be){ge(ye,be);function ye(){return pe(this,ye),fe(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return ne(ye,[{key:"format",value:function(Se,_e){me.indexOf(Se)>-1?_e?this.domNode.setAttribute(Se,_e):this.domNode.removeAttribute(Se):oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"format",this).call(this,Se,_e)}}],[{key:"create",value:function(Se){var _e=oe(ye.__proto__||Object.getPrototypeOf(ye),"create",this).call(this,Se);return typeof Se=="string"&&_e.setAttribute("src",this.sanitize(Se)),_e}},{key:"formats",value:function(Se){return me.reduce(function(_e,Ce){return Se.hasAttribute(Ce)&&(_e[Ce]=Se.getAttribute(Ce)),_e},{})}},{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);ve.blotName="image",ve.tagName="IMG",te.default=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0});var ne=function(){function be(ye,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ye,_e.key,_e)}}return function(ye,we,Se){return we&&be(ye.prototype,we),Se&&be(ye,Se),ye}}(),oe=function be(ye,we,Se){ye===null&&(ye=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ye,we);if(_e===void 0){var Ce=Object.getPrototypeOf(ye);return Ce===null?void 0:be(Ce,we,Se)}else{if("value"in _e)return _e.value;var Le=_e.get;return Le===void 0?void 0:Le.call(Se)}},de=re(4),he=re(27),ue=ce(he);function ce(be){return be&&be.__esModule?be:{default:be}}function pe(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function fe(be,ye){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:be}function ge(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ye):be.__proto__=ye)}var me=["height","width"],ve=function(be){ge(ye,be);function ye(){return pe(this,ye),fe(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return ne(ye,[{key:"format",value:function(Se,_e){me.indexOf(Se)>-1?_e?this.domNode.setAttribute(Se,_e):this.domNode.removeAttribute(Se):oe(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"format",this).call(this,Se,_e)}}],[{key:"create",value:function(Se){var _e=oe(ye.__proto__||Object.getPrototypeOf(ye),"create",this).call(this,Se);return _e.setAttribute("frameborder","0"),_e.setAttribute("allowfullscreen",!0),_e.setAttribute("src",this.sanitize(Se)),_e}},{key:"formats",value:function(Se){return me.reduce(function(_e,Ce){return Se.hasAttribute(Ce)&&(_e[Ce]=Se.getAttribute(Ce)),_e},{})}},{key:"sanitize",value:function(Se){return ue.default.sanitize(Se)}},{key:"value",value:function(Se){return Se.getAttribute("src")}}]),ye}(de.BlockEmbed);ve.blotName="video",ve.className="ql-video",ve.tagName="IFRAME",te.default=ve},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.FormulaBlot=void 0;var ne=function(){function Se(_e,Ce){for(var Le=0;Le<Ce.length;Le++){var Pe=Ce[Le];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(_e,Pe.key,Pe)}}return function(_e,Ce,Le){return Ce&&Se(_e.prototype,Ce),Le&&Se(_e,Le),_e}}(),oe=function Se(_e,Ce,Le){_e===null&&(_e=Function.prototype);var Pe=Object.getOwnPropertyDescriptor(_e,Ce);if(Pe===void 0){var Ie=Object.getPrototypeOf(_e);return Ie===null?void 0:Se(Ie,Ce,Le)}else{if("value"in Pe)return Pe.value;var ze=Pe.get;return ze===void 0?void 0:ze.call(Le)}},de=re(36),he=ge(de),ue=re(5),ce=ge(ue),pe=re(9),fe=ge(pe);function ge(Se){return Se&&Se.__esModule?Se:{default:Se}}function me(Se,_e){if(!(Se instanceof _e))throw new TypeError("Cannot call a class as a function")}function ve(Se,_e){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e&&(typeof _e=="object"||typeof _e=="function")?_e:Se}function be(Se,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _e);Se.prototype=Object.create(_e&&_e.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),_e&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,_e):Se.__proto__=_e)}var ye=function(Se){be(_e,Se);function _e(){return me(this,_e),ve(this,(_e.__proto__||Object.getPrototypeOf(_e)).apply(this,arguments))}return ne(_e,null,[{key:"create",value:function(Le){var Pe=oe(_e.__proto__||Object.getPrototypeOf(_e),"create",this).call(this,Le);return typeof Le=="string"&&(window.katex.render(Le,Pe,{throwOnError:!1,errorColor:"#f00"}),Pe.setAttribute("data-value",Le)),Pe}},{key:"value",value:function(Le){return Le.getAttribute("data-value")}}]),_e}(he.default);ye.blotName="formula",ye.className="ql-formula",ye.tagName="SPAN";var we=function(Se){be(_e,Se),ne(_e,null,[{key:"register",value:function(){ce.default.register(ye,!0)}}]);function _e(){me(this,_e);var Ce=ve(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return Ce}return _e}(fe.default);te.FormulaBlot=ye,te.default=we},function(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.CodeToken=te.CodeBlock=void 0;var ne=function(){function Le(Pe,Ie){for(var ze=0;ze<Ie.length;ze++){var qe=Ie[ze];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(Pe,qe.key,qe)}}return function(Pe,Ie,ze){return Ie&&Le(Pe.prototype,Ie),ze&&Le(Pe,ze),Pe}}(),oe=function Le(Pe,Ie,ze){Pe===null&&(Pe=Function.prototype);var qe=Object.getOwnPropertyDescriptor(Pe,Ie);if(qe===void 0){var Ae=Object.getPrototypeOf(Pe);return Ae===null?void 0:Le(Ae,Ie,ze)}else{if("value"in qe)return qe.value;var De=qe.get;return De===void 0?void 0:De.call(ze)}},de=re(0),he=ve(de),ue=re(5),ce=ve(ue),pe=re(9),fe=ve(pe),ge=re(13),me=ve(ge);function ve(Le){return Le&&Le.__esModule?Le:{default:Le}}function be(Le,Pe){if(!(Le instanceof Pe))throw new TypeError("Cannot call a class as a function")}function ye(Le,Pe){if(!Le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe&&(typeof Pe=="object"||typeof Pe=="function")?Pe:Le}function we(Le,Pe){if(typeof Pe!="function"&&Pe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Pe);Le.prototype=Object.create(Pe&&Pe.prototype,{constructor:{value:Le,enumerable:!1,writable:!0,configurable:!0}}),Pe&&(Object.setPrototypeOf?Object.setPrototypeOf(Le,Pe):Le.__proto__=Pe)}var Se=function(Le){we(Pe,Le);function Pe(){return be(this,Pe),ye(this,(Pe.__proto__||Object.getPrototypeOf(Pe)).apply(this,arguments))}return ne(Pe,[{key:"replaceWith",value:function(ze){this.domNode.textContent=this.domNode.textContent,this.attach(),oe(Pe.prototype.__proto__||Object.getPrototypeOf(Pe.prototype),"replaceWith",this).call(this,ze)}},{key:"highlight",value:function(ze){var qe=this.domNode.textContent;this.cachedText!==qe&&((qe.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=ze(qe),this.domNode.normalize(),this.attach()),this.cachedText=qe)}}]),Pe}(me.default);Se.className="ql-syntax";var _e=new he.default.Attributor.Class("token","hljs",{scope:he.default.Scope.INLINE}),Ce=function(Le){we(Pe,Le),ne(Pe,null,[{key:"register",value:function(){ce.default.register(_e,!0),ce.default.register(Se,!0)}}]);function Pe(Ie,ze){be(this,Pe);var qe=ye(this,(Pe.__proto__||Object.getPrototypeOf(Pe)).call(this,Ie,ze));if(typeof qe.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var Ae=null;return qe.quill.on(ce.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(Ae),Ae=setTimeout(function(){qe.highlight(),Ae=null},qe.options.interval)}),qe.highlight(),qe}return ne(Pe,[{key:"highlight",value:function(){var ze=this;if(!this.quill.selection.composing){this.quill.update(ce.default.sources.USER);var qe=this.quill.getSelection();this.quill.scroll.descendants(Se).forEach(function(Ae){Ae.highlight(ze.options.highlight)}),this.quill.update(ce.default.sources.SILENT),qe!=null&&this.quill.setSelection(qe,ce.default.sources.SILENT)}}}]),Pe}(fe.default);Ce.DEFAULTS={highlight:function(){return window.hljs==null?null:function(Le){var Pe=window.hljs.highlightAuto(Le);return Pe.value}}(),interval:1e3},te.CodeBlock=Se,te.CodeToken=_e,te.default=Ce},function(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te){J.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(J,te,re){Object.defineProperty(te,"__esModule",{value:!0}),te.default=te.BubbleTooltip=void 0;var ne=function Pe(Ie,ze,qe){Ie===null&&(Ie=Function.prototype);var Ae=Object.getOwnPropertyDescriptor(Ie,ze);if(Ae===void 0){var De=Object.getPrototypeOf(Ie);return De===null?void 0:Pe(De,ze,qe)}else{if("value"in Ae)return Ae.value;var Me=Ae.get;return Me===void 0?void 0:Me.call(qe)}},oe=function(){function Pe(Ie,ze){for(var qe=0;qe<ze.length;qe++){var Ae=ze[qe];Ae.enumerable=Ae.enumerable||!1,Ae.configurable=!0,"value"in Ae&&(Ae.writable=!0),Object.defineProperty(Ie,Ae.key,Ae)}}return function(Ie,ze,qe){return ze&&Pe(Ie.prototype,ze),qe&&Pe(Ie,qe),Ie}}(),de=re(3),he=be(de),ue=re(8),ce=be(ue),pe=re(44),fe=be(pe),ge=re(15),me=re(42),ve=be(me);function be(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}function ye(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 Se(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 _e=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Ce=function(Pe){Se(Ie,Pe);function Ie(ze,qe){ye(this,Ie),qe.modules.toolbar!=null&&qe.modules.toolbar.container==null&&(qe.modules.toolbar.container=_e);var Ae=we(this,(Ie.__proto__||Object.getPrototypeOf(Ie)).call(this,ze,qe));return Ae.quill.container.classList.add("ql-bubble"),Ae}return oe(Ie,[{key:"extendToolbar",value:function(qe){this.tooltip=new Le(this.quill,this.options.bounds),this.tooltip.root.appendChild(qe.container),this.buildButtons([].slice.call(qe.container.querySelectorAll("button")),ve.default),this.buildPickers([].slice.call(qe.container.querySelectorAll("select")),ve.default)}}]),Ie}(fe.default);Ce.DEFAULTS=(0,he.default)(!0,{},fe.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Ie){Ie?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var Le=function(Pe){Se(Ie,Pe);function Ie(ze,qe){ye(this,Ie);var Ae=we(this,(Ie.__proto__||Object.getPrototypeOf(Ie)).call(this,ze,qe));return Ae.quill.on(ce.default.events.EDITOR_CHANGE,function(De,Me,Be,Ve){if(De===ce.default.events.SELECTION_CHANGE)if(Me!=null&&Me.length>0&&Ve===ce.default.sources.USER){Ae.show(),Ae.root.style.left="0px",Ae.root.style.width="",Ae.root.style.width=Ae.root.offsetWidth+"px";var Ye=Ae.quill.getLines(Me.index,Me.length);if(Ye.length===1)Ae.position(Ae.quill.getBounds(Me));else{var Je=Ye[Ye.length-1],vt=Ae.quill.getIndex(Je),Xe=Math.min(Je.length()-1,Me.index+Me.length-vt),Ge=Ae.quill.getBounds(new ge.Range(vt,Xe));Ae.position(Ge)}}else document.activeElement!==Ae.textbox&&Ae.quill.hasFocus()&&Ae.hide()}),Ae}return oe(Ie,[{key:"listen",value:function(){var qe=this;ne(Ie.prototype.__proto__||Object.getPrototypeOf(Ie.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){qe.root.classList.remove("ql-editing")}),this.quill.on(ce.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!qe.root.classList.contains("ql-hidden")){var Ae=qe.quill.getSelection();Ae!=null&&qe.position(qe.quill.getBounds(Ae))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(qe){var Ae=ne(Ie.prototype.__proto__||Object.getPrototypeOf(Ie.prototype),"position",this).call(this,qe),De=this.root.querySelector(".ql-tooltip-arrow");if(De.style.marginLeft="",Ae===0)return Ae;De.style.marginLeft=-1*Ae-De.offsetWidth/2+"px"}}]),Ie}(pe.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(""),te.BubbleTooltip=Le,te.default=Ce},function(J,te,re){J.exports=re(64)}]).default})})(quill);var quillExports=quill.exports;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$2=X=>ke$1`
|
|
6065
6057
|
<div class="container">
|
|
6066
6058
|
<div id="rte">
|
|
6067
6059
|
</div>
|
|
@@ -6102,5 +6094,5 @@ Registered bindings:`,re.forEach(function(ne){var oe="Object";ne.implementationT
|
|
|
6102
6094
|
<slot name="anchor"></slot>
|
|
6103
6095
|
<slot name="content"></slot>
|
|
6104
6096
|
</span>
|
|
6105
|
-
`;var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp(W,J,re),re};let QuickActionsMenu=class extends h$n{render(){return ke$1`${template()}`}firstUpdated(X){var J;super.firstUpdated(X);const W=(J=this.shadowRoot)==null?void 0:J.querySelector('slot[name="anchor"]');W==null||W.addEventListener("slotchange",this.handleSlotChange.bind(this))}handleSlotChange(X){const J=X.target.assignedElements();if(J.length>0){const te=J[0];te.id==="usage-anchor"&&te.addEventListener("click",this._handleOpenMenu.bind(this))}}_handleOpenMenu(X){var
|
|
6097
|
+
`;var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(X,W,J,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc(W,J):W,ne=X.length-1,oe;ne>=0;ne--)(oe=X[ne])&&(re=(te?oe(W,J,re):oe(re))||re);return te&&re&&__defProp(W,J,re),re};let QuickActionsMenu=class extends h$n{render(){return ke$1`${template()}`}firstUpdated(X){var J;super.firstUpdated(X);const W=(J=this.shadowRoot)==null?void 0:J.querySelector('slot[name="anchor"]');W==null||W.addEventListener("slotchange",this.handleSlotChange.bind(this))}handleSlotChange(X){const J=X.target.assignedElements();if(J.length>0){const te=J[0];te.id==="usage-anchor"&&te.addEventListener("click",this._handleOpenMenu.bind(this))}}_handleOpenMenu(X){var ne;const W=(ne=this.shadowRoot)==null?void 0:ne.querySelector('slot[name="content"]'),J=this.querySelector("dss-action-menu"),te=W==null?void 0:W.assignedElements();te[0]&&this._addMenuCustomStyle(W,J);const re=te.find(oe=>oe.id==="content");re&&re.show()}_addMenuCustomStyle(X,W){var te;X.style.borderRadius="var(--dss-radius-sm)";const J=(te=W.shadowRoot)==null?void 0:te.querySelector("ul");J&&(J.style.overflow="hidden")}};QuickActionsMenu=__decorateClass([t$k("quick-actions-menu")],QuickActionsMenu);class n extends HTMLElement{constructor(W,J,te={}){super(),this.jsx=W,this.styles=J,this.root=this.attachShadow({mode:"open"}),this.reactRoot=null,te&&(this.props=te)}connectedCallback(){const W=document.createElement("div"),J=document.createElement("style");J.innerText=this.styles,this.root.appendChild(W),this.root.appendChild(J),this.reactRoot=r$P.createRoot(W),this.renderReact()}disconnectedCallback(){this.reactRoot&&this.reactRoot.unmount()}renderReact(){this.reactRoot&&this.reactRoot.render(c$s.createElement(this.jsx,{...this.props}))}}customElements.define("ux-react-web-component",n);const h=(X,W)=>(J={})=>Promise.resolve(new n(X,W,J));exports.ActivityHistoryFilterOperation=ActivityHistoryFilterOperation,exports.ActivityHistoryFilterType=ActivityHistoryFilterType,exports.EcapEventManager=EcapEventManager,exports.PrimariaInteractionService=PrimariaInteractionService,exports.PrimariaRegionHost=PrimariaRegionHost,exports.addAsyncHistoryItemsCommand=addAsyncHistoryItemsCommand,exports.addHistoryItemCommand=addHistoryItemCommand,exports.addHistoryItemsCommand=addHistoryItemsCommand,exports.bootstrapPlugins=bootstrapPlugins,exports.clinicalMonitoringRegions=clinicalMonitoringRegions,exports.createEcapEventManager=createEcapEventManager,exports.disposePlugins=disposePlugins,exports.disposeShell=disposeShell,exports.initializeShell=initializeShell,exports.isCommonFilterGroup=isCommonFilterGroup,exports.isNotCommonFilterGroup=isNotCommonFilterGroup,exports.primariaApiFactory=primariaApiFactory,exports.raiseCloseEvent=raiseCloseEvent,exports.shellApi=shellApi,exports.shellEvents=shellEvents,exports.shellRegions=shellRegions,exports.updateHistoryItemCommand=updateHistoryItemCommand,exports.wrapReactViewFactory=h,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
|
|
6106
6098
|
//# sourceMappingURL=index.umd.cjs.map
|