@quandis/qbo4.ui 4.0.1-CI-20240421-210609 → 4.0.1-CI-20240422-135811
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/package.json +1 -1
- package/readme.md +22 -5
- package/src/qbo/{ValidateDepends.d.ts → DependencyValidator.d.ts} +1 -6
- package/src/qbo/{ValidateDepends.js → DependencyValidator.js} +15 -59
- package/src/qbo/{ValidateDepends.ts → DependencyValidator.ts} +12 -59
- package/src/qbo/Program.d.ts +1 -1
- package/src/qbo/Program.js +1 -1
- package/src/qbo/Program.ts +1 -1
- package/wwwroot/js/qbo4.ui.js +209 -253
- package/wwwroot/js/qbo4.ui.min.js +2 -2
- package/wwwroot/js/qbo4.ui.min.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see qbo4.ui.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.qbo4=t():(e.qbo4=e.qbo4||{},e.qbo4.ui=t())}(self,(()=>(()=>{var e={630:(e,t,r)=>{var o;!function(e){!function(t){var o="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=i(e);function i(e,t){return function(r,o){Object.defineProperty(e,r,{configurable:!0,writable:!0,value:o}),t&&t(r,o)}}void 0!==o.Reflect&&(n=i(o.Reflect,n)),function(e,t){var r=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,n=o&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=o&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,l=!s&&!a,c={create:s?function(){return U(Object.create(null))}:a?function(){return U({__proto__:null})}:function(){return U({})},has:l?function(e,t){return r.call(e,t)}:function(e,t){return t in e},get:l?function(e,t){return r.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var o=this._keys.length,n=r+1;n<o;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,M(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,o)},t.prototype.values=function(){return new r(this._keys,this._values,n)},t.prototype.entries=function(){return new r(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){if(!M(this._cacheKey,e)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(M(this._keys[r],e)){this._cacheIndex=r;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function o(e,t){return e}function n(e,t){return t}function s(e,t){return[e,t]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=16,t=c.create(),o=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(e,t){if(!r.call(e,o)){if(!t)return;Object.defineProperty(e,o,{value:c.create()})}return e[o]}function s(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function a(){var t=function(e){if("function"==typeof Uint8Array){var t=new Uint8Array(e);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):s(t,e),t}return s(new Array(e),e)}(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",o=0;o<e;++o){var n=t[o];4!==o&&6!==o&&8!==o||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}(),b=o?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var e;return!E(b)&&T(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[b]),E(e)&&(e=function(){var e,r,o,n;E(b)||void 0===t.Reflect||b in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,r=e.hasOwnMetadata,o=e.getOwnMetadata,n=e.getOwnMetadataKeys,i=e.deleteMetadata,s=new f;return{isProviderFor:function(e,t){var r=s.get(e);return!(E(r)||!r.has(t))||!!n(e,t).length&&(E(r)&&(r=new p,s.set(e,r)),r.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(t.Reflect));var i=new f,s={registerProvider:a,getProvider:c,setProvider:h};return s;function a(t){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case E(r):r=t;break;case r===t:break;case E(o):o=t;break;case o===t:break;default:void 0===n&&(n=new p),n.add(t)}}function l(t,i){if(!E(r)){if(r.isProviderFor(t,i))return r;if(!E(o)){if(o.isProviderFor(t,i))return r;if(!E(n))for(var s=P(n);;){var a=z(s);if(!a)return;var l=j(a);if(l.isProviderFor(t,i))return N(s),l}}}if(!E(e)&&e.isProviderFor(t,i))return e}function c(e,t){var r,o=i.get(e);return E(o)||(r=o.get(t)),E(r)?(E(r=l(e,t))||(E(o)&&(o=new d,i.set(e,o)),o.set(t,r)),r):r}function u(e){if(E(e))throw new TypeError;return r===e||o===e||!E(n)&&n.has(e)}function h(e,t,r){if(!u(r))throw new Error("Metadata provider not registered.");var o=c(e,t);if(o!==r){if(!E(o))return!1;var n=i.get(e);E(n)&&(n=new d,i.set(e,n)),n.set(t,r)}return!0}}()),!E(b)&&T(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),g=function(e){var t=new f,r={isProviderFor:function(e,r){var o=t.get(e);return!E(o)&&o.has(r)},OrdinaryDefineOwnMetadata:function(e,t,r,n){o(r,n,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,r){var n=o(t,r,!1);return!E(n)&&O(n.has(e))},OrdinaryGetOwnMetadata:function(e,t,r){var n=o(t,r,!1);if(!E(n))return n.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var r=[],n=o(e,t,!1);if(E(n))return r;for(var i=P(n.keys()),s=0;;){var a=z(i);if(!a)return r.length=s,r;var l=j(a);try{r[s]=l}catch(e){try{N(i)}finally{throw e}}s++}},OrdinaryDeleteMetadata:function(e,r,n){var i=o(r,n,!1);if(E(i))return!1;if(!i.delete(e))return!1;if(0===i.size){var s=t.get(r);E(s)||(s.delete(n),0===s.size&&t.delete(s))}return!0}};return h.registerProvider(r),r;function o(o,n,i){var s=t.get(o),a=!1;if(E(s)){if(!i)return;s=new d,t.set(o,s),a=!0}var l=s.get(n);if(E(l)){if(!i)return;if(l=new d,s.set(n,l),!e.setProvider(o,n,r))throw s.delete(n),a&&t.delete(o),new Error("Wrong provider for target.")}return l}}(h);function v(e,t,r){if(m(e,t,r))return!0;var o=q(t);return!S(o)&&v(e,o,r)}function m(e,t,r){var o=H(t,r,!1);return!E(o)&&O(o.OrdinaryHasOwnMetadata(e,t,r))}function y(e,t,r){if(m(e,t,r))return w(e,t,r);var o=q(t);return S(o)?void 0:y(e,o,r)}function w(e,t,r){var o=H(t,r,!1);if(!E(o))return o.OrdinaryGetOwnMetadata(e,t,r)}function _(e,t,r,o){H(r,o,!0).OrdinaryDefineOwnMetadata(e,t,r,o)}function x(e,t){var r=k(e,t),o=q(e);if(null===o)return r;var n=x(o,t);if(n.length<=0)return r;if(r.length<=0)return n;for(var i=new p,s=[],a=0,l=r;a<l.length;a++){var c=l[a];i.has(c)||(i.add(c),s.push(c))}for(var u=0,d=n;u<d.length;u++)c=d[u],i.has(c)||(i.add(c),s.push(c));return s}function k(e,t){var r=H(e,t,!1);return r?r.OrdinaryOwnMetadataKeys(e,t):[]}function C(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function E(e){return void 0===e}function S(e){return null===e}function T(e){return"object"==typeof e?null!==e:"function"==typeof e}function A(e,t){switch(C(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",o=D(e,n);if(void 0!==o){var i=o.call(e,r);if(T(i))throw new TypeError;return i}return function(e,t){if("string"===t){var r=e.toString;if(R(r)&&!T(n=r.call(e)))return n;if(R(o=e.valueOf)&&!T(n=o.call(e)))return n}else{var o;if(R(o=e.valueOf)&&!T(n=o.call(e)))return n;var n,i=e.toString;if(R(i)&&!T(n=i.call(e)))return n}throw new TypeError}(e,"default"===r?"number":r)}function O(e){return!!e}function I(e){var t=A(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function $(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function R(e){return"function"==typeof e}function L(e){return"function"==typeof e}function M(e,t){return e===t||e!=e&&t!=t}function D(e,t){var r=e[t];if(null!=r){if(!R(r))throw new TypeError;return r}}function P(e){var t=D(e,i);if(!R(t))throw new TypeError;var r=t.call(e);if(!T(r))throw new TypeError;return r}function j(e){return e.value}function z(e){var t=e.next();return!t.done&&t}function N(e){var t=e.return;t&&t.call(e)}function q(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var r=e.prototype,o=r&&Object.getPrototypeOf(r);if(null==o||o===Object.prototype)return t;var n=o.constructor;return"function"!=typeof n||n===e?t:n}function H(e,t,r){var o=h.getProvider(e,t);if(!E(o))return o;if(r){if(h.setProvider(e,t,g))return g;throw new Error("Illegal state.")}}function U(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,r,o){if(E(r)){if(!$(e))throw new TypeError;if(!L(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=0;--r){var o=(0,e[r])(t);if(!E(o)&&!S(o)){if(!L(o))throw new TypeError;t=o}}return t}(e,t)}if(!$(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(o)&&!E(o)&&!S(o))throw new TypeError;return S(o)&&(o=void 0),function(e,t,r,o){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t,r,o);if(!E(i)&&!S(i)){if(!T(i))throw new TypeError;o=i}}return o}(e,t,r=I(r),o)})),e("metadata",(function(e,t){return function(r,o){if(!T(r))throw new TypeError;if(!E(o)&&!function(e){switch(C(e)){case 3:case 4:return!0;default:return!1}}(o))throw new TypeError;_(e,t,r,o)}})),e("defineMetadata",(function(e,t,r,o){if(!T(r))throw new TypeError;return E(o)||(o=I(o)),_(e,t,r,o)})),e("hasMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return E(r)||(r=I(r)),v(e,t,r)})),e("hasOwnMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return E(r)||(r=I(r)),m(e,t,r)})),e("getMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return E(r)||(r=I(r)),y(e,t,r)})),e("getOwnMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return E(r)||(r=I(r)),w(e,t,r)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return E(t)||(t=I(t)),x(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return E(t)||(t=I(t)),k(e,t)})),e("deleteMetadata",(function(e,t,r){if(!T(t))throw new TypeError;if(E(r)||(r=I(r)),!T(t))throw new TypeError;E(r)||(r=I(r));var o=H(t,r,!1);return!E(o)&&o.OrdinaryDeleteMetadata(e,t,r)}))}(n,o),void 0===o.Reflect&&(o.Reflect=e)}()}(o||(o={}))}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{ApiServiceComponent:()=>CT,DependValidator:()=>bw,Dependency:()=>cw,DependencyValidatorOptions:()=>uw,DependencyValidatorOptionsToken:()=>dw,EmailValidator:()=>aw,ExistsValidator:()=>lw,IApiServiceToken:()=>Qy,QboBadge:()=>ww,QboDataList:()=>kw,QboDocViewer:()=>Sw,QboFormElement:()=>Iw,QboMainMenu:()=>FS,QboMarkdown:()=>WS,QboMicrophone:()=>JS,QboPopover:()=>ZS,QboPopup:()=>sT,QboPopupListener:()=>cT,QboSelect:()=>pT,QboSideBar:()=>hT,QboTable:()=>mT,QboValidate:()=>_T,RestApiService:()=>ow,ValidateToken:()=>Zy,ZipCodeValidator:()=>sw,elementClearValue:()=>AT,elementOptions:()=>ET,elementResetValue:()=>TT,elementSelectorAll:()=>ST,getApiService:()=>Yy,getArray:()=>ew,matches:()=>OT,registerRestApi:()=>nw,replicate:()=>rw,services:()=>$,substitute:()=>tw});var e,t={};r.r(t),r.d(t,{afterMain:()=>Jw,afterRead:()=>Kw,afterWrite:()=>Zw,applyStyles:()=>s_,arrow:()=>S_,auto:()=>Dw,basePlacements:()=>Pw,beforeMain:()=>Xw,beforeRead:()=>Bw,beforeWrite:()=>Qw,bottom:()=>Rw,clippingParents:()=>Nw,computeStyles:()=>I_,createPopper:()=>ix,createPopperBase:()=>nx,createPopperLite:()=>sx,detectOverflow:()=>B_,end:()=>zw,eventListeners:()=>R_,flip:()=>W_,hide:()=>G_,left:()=>Mw,main:()=>Gw,modifierPhases:()=>e_,offset:()=>J_,placements:()=>Vw,popper:()=>Hw,popperGenerator:()=>ox,popperOffsets:()=>Q_,preventOverflow:()=>Y_,read:()=>Ww,reference:()=>Uw,right:()=>Lw,start:()=>jw,top:()=>$w,variationPlacements:()=>Fw,viewport:()=>qw,write:()=>Yw}),r(630),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(e||(e={}));const n=e;var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)};function s(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function u(e){return!!e.useClass}function d(e){return!!e.useFactory}var p=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var t,r=this,o=!1;return new Proxy({},this.createHandler((function(){return o||(t=e(r.wrap()),o=!0),t})))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach((function(r){t[r]=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t[0]=e(),Reflect[r].apply(void 0,c(t))}})),t},e}();function f(e){return"string"==typeof e||"symbol"==typeof e}function b(e){return"object"==typeof e&&"token"in e&&"transform"in e}function h(e){return!!e.useToken}function g(e){return null!=e.useValue}const v=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v),y=function(){this.scopedResolutions=new Map};var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v);const x=function(){this.preResolution=new w,this.postResolution=new _};var k=new Map,C=function(){function e(e){this.parent=e,this._registry=new m,this.interceptors=new x,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,t,r){var o;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),o=function(e){return u(e)||g(e)||h(e)||d(e)}(t)?t:{useClass:t},h(o))for(var i=[e],s=o;null!=s;){var a=s.useToken;if(i.includes(a))throw new Error("Token registration cycle detected! "+c(i,[a]).join(" -> "));i.push(a);var l=this._registry.get(a);s=l&&h(l.provider)?l.provider:null}if((r.lifecycle===n.Singleton||r.lifecycle==n.ContainerScoped||r.lifecycle==n.ResolutionScoped)&&(g(o)||d(o)))throw new Error('Cannot use lifecycle "'+n[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:o,options:r}),this},e.prototype.registerType=function(e,t){return this.ensureNotDisposed(),f(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(this.ensureNotDisposed(),f(e)){if(f(t))return this.register(e,{useToken:t},{lifecycle:n.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=e;return t&&!f(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:n.Singleton})},e.prototype.resolve=function(e,t){void 0===t&&(t=new y),this.ensureNotDisposed();var r=this.getRegistration(e);if(!r&&f(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"Single"),r){var o=this.resolveRegistration(r,t);return this.executePostResolutionInterceptor(e,o,"Single"),o}if(function(e){return"function"==typeof e||e instanceof p}(e))return o=this.construct(e,t),this.executePostResolutionInterceptor(e,o,"Single"),o;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,o;if(this.interceptors.preResolution.has(e)){var n=[];try{for(var i=a(this.interceptors.preResolution.getAll(e)),s=i.next();!s.done;s=i.next()){var l=s.value;"Once"!=l.options.frequency&&n.push(l),l.callback(e,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,n)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var o,n;if(this.interceptors.postResolution.has(e)){var i=[];try{for(var s=a(this.interceptors.postResolution.getAll(e)),l=s.next();!l.done;l=s.next()){var c=l.value;"Once"!=c.options.frequency&&i.push(c),c.callback(e,t,r)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}this.interceptors.postResolution.setAll(e,i)}},e.prototype.resolveRegistration=function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,o=e.options.lifecycle===n.Singleton,i=e.options.lifecycle===n.ContainerScoped,s=o||i;return r=g(e.provider)?e.provider.useValue:h(e.provider)?s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):u(e.provider)?s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):d(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t){var r=this;void 0===t&&(t=new y),this.ensureNotDisposed();var o=this.getAllRegistrations(e);if(!o&&f(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"All"),o){var n=o.map((function(e){return r.resolveRegistration(e,t)}));return this.executePostResolutionInterceptor(e,n,"All"),n}var i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;this.ensureNotDisposed();try{for(var r=a(this._registry.entries()),o=r.next();!o.done;o=r.next()){var n=l(o.value,2),i=n[0],s=n[1];this._registry.setAll(i,s.filter((function(e){return!g(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var o=new e(this);try{for(var i=a(this._registry.entries()),s=i.next();!s.done;s=i.next()){var c=l(s.value,2),u=c[0],d=c[1];d.some((function(e){return e.options.lifecycle===n.ContainerScoped}))&&o._registry.setAll(u,d.map((function(e){return e.options.lifecycle===n.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.dispose=function(){return function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return function(e,t){var r,o,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(t){switch(t.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach((function(t){var r=t.dispose();r&&e.push(r)})),[4,Promise.all(e)];case 1:return t.sent(),[2]}}))}))},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof p)return e.createProxy((function(e){return r.resolve(e,t)}));var o,n=function(){var o=k.get(e);if(!o||0===o.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var n=o.map(r.resolveParams(t,e));return new(e.bind.apply(e,c([void 0],n)))}();return"function"!=typeof(o=n).dispose||o.dispose.length>0||this.disposables.add(n),n},e.prototype.resolveParams=function(e,t){var r=this;return function(o,n){var i,s,a,u;try{return"object"==typeof(u=o)&&"token"in u&&"multiple"in u?b(o)?o.multiple?(i=r.resolve(o.transform)).transform.apply(i,c([r.resolveAll(o.token)],o.transformArgs)):(s=r.resolve(o.transform)).transform.apply(s,c([r.resolve(o.token,e)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,e):b(o)?(a=r.resolve(o.transform,e)).transform.apply(a,c([r.resolve(o.token,e)],o.transformArgs)):r.resolve(o,e)}catch(e){throw new Error(function(e,t,r){var o,n,i=l(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(e,t,r){return void 0===r&&(r=" "),c([e],t.message.split("\n").map((function(e){return r+e}))).join("\n")}("Cannot inject the dependency "+(n=t,(null===(o=void 0===i?null:i)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n)+' of "')+e.name+'" constructor. Reason:',r)}(t,n,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),E=new C,S="injectionTokens";function T(e,t){return function(r,o,n){var i=Reflect.getOwnMetadata(S,r)||{};i[n]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata(S,i,r)}}const A=function(e){return T(e)},O=function(){return function(e){k.set(e,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata(S,e)||{};return Object.keys(r).forEach((function(e){t[+e]=r[e]})),t}(e))}},I=function(e){return T({token:e,multiple:!0})};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new class{constructor(e,t){this.container=e,this.options=t}getService(e){return this.container.resolve(e)}}(E.createChildContainer(),{});const $=window.qbo4.services,R="IConfigurationSourceToken",L="IConfigurationToken";function*M(e,t=""){for(const[r,o]of Object.entries(e)){const e=t?`${t}:${r}`:r;if(Array.isArray(o))for(let t=0;t<o.length;t++){const r=o[t];"object"==typeof r&&null!==r?yield*M(r,`${e}:${t}`):yield{key:`${e}:${t}`,value:r}}else"object"==typeof o&&null!==o?yield*M(o,e):yield{key:e,value:o}}}class D{constructor(e){this.jsonConfig=e}getData(){return this.jsonConfig}*getValues(){yield*M(this.jsonConfig)}}class P{constructor(e){this.data=e}getSection(e){const t=e.split(":");let r=this.data;for(const e of t){if(!(e in r))return new P({});r=r[e]}return new P(r)}get(e){const t=e.split(":");let r=this.data;for(const e of t){if(!r||!(e in r))return{};r=r[e]}return r}bind(e){const t=new e;for(const e in this.data)this.data.hasOwnProperty(e)&&(t[e]=this.data[e]);return t}*getValues(){yield*M(this.data)}}let j=class extends P{constructor(e){super({}),this.sources=e,this.mergeConfigurations(e)}mergeConfigurations(e){e.forEach((e=>{const t=e.getData();this.data={...this.data,...t}}))}};var z,N;j=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),(z=0,N=I(R),function(e,t){N(e,t,z)}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Array])],j),$.container.register(L,{useClass:j},{lifecycle:n.Singleton}),$.container.register(R,{useClass:class{getData(){return{}}*getValues(){yield*M({})}}},{lifecycle:n.Singleton});const q=globalThis,H=q.ShadowRoot&&(void 0===q.ShadyCSS||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,U=Symbol(),F=new WeakMap;class V{constructor(e,t,r){if(this._$cssResult$=!0,r!==U)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(H&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=F.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&F.set(t,e))}return e}toString(){return this.cssText}}const B=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1]),e[0]);return new V(r,e,U)},W=H?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new V("string"==typeof e?e:e+"",void 0,U))(t)})(e):e,{is:K,defineProperty:X,getOwnPropertyDescriptor:G,getOwnPropertyNames:J,getOwnPropertySymbols:Q,getPrototypeOf:Y}=Object,Z=globalThis,ee=Z.trustedTypes,te=ee?ee.emptyScript:"",re=Z.reactiveElementPolyfillSupport,oe=(e,t)=>e,ne={toAttribute(e,t){switch(t){case Boolean:e=e?te:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},ie=(e,t)=>!K(e,t),se={attribute:!0,type:String,converter:ne,reflect:!1,hasChanged:ie};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class ae extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=se){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);void 0!==o&&X(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:n}=G(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return o?.call(this)},set(t){const i=o?.call(this);n.call(this,t),this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??se}static _$Ei(){if(this.hasOwnProperty(oe("elementProperties")))return;const e=Y(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oe("properties"))){const e=this.properties,t=[...J(e),...Q(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(W(e))}else void 0!==e&&t.push(W(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(H)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),o=q.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:ne).toAttribute(t,r.type);this._$Em=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){const r=this.constructor,o=r._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=r.getPropertyOptions(o),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:ne;this._$Em=o,this[o]=n.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??ie)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},ae[oe("elementProperties")]=new Map,ae[oe("finalized")]=new Map,re?.({ReactiveElement:ae}),(Z.reactiveElementVersions??=[]).push("2.0.4");const le=globalThis,ce=le.trustedTypes,ue=ce?ce.createPolicy("lit-html",{createHTML:e=>e}):void 0,de="$lit$",pe=`lit$${Math.random().toFixed(9).slice(2)}$`,fe="?"+pe,be=`<${fe}>`,he=document,ge=()=>he.createComment(""),ve=e=>null===e||"object"!=typeof e&&"function"!=typeof e,me=Array.isArray,ye="[ \t\n\f\r]",we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,xe=/>/g,ke=RegExp(`>|${ye}(?:([^\\s"'>=/]+)(${ye}*=${ye}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ce=/'/g,Ee=/"/g,Se=/^(?:script|style|textarea|title)$/i,Te=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ae=Te(1),Oe=(Te(2),Symbol.for("lit-noChange")),Ie=Symbol.for("lit-nothing"),$e=new WeakMap,Re=he.createTreeWalker(he,129);function Le(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ue?ue.createHTML(t):t}const Me=(e,t)=>{const r=e.length-1,o=[];let n,i=2===t?"<svg>":"",s=we;for(let t=0;t<r;t++){const r=e[t];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===we?"!--"===l[1]?s=_e:void 0!==l[1]?s=xe:void 0!==l[2]?(Se.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=ke):void 0!==l[3]&&(s=ke):s===ke?">"===l[0]?(s=n??we,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ke:'"'===l[3]?Ee:Ce):s===Ee||s===Ce?s=ke:s===_e||s===xe?s=we:(s=ke,n=void 0);const d=s===ke&&e[t+1].startsWith("/>")?" ":"";i+=s===we?r+be:c>=0?(o.push(a),r.slice(0,c)+de+r.slice(c)+pe+d):r+pe+(-2===c?t:d)}return[Le(e,i+(e[r]||"<?>")+(2===t?"</svg>":"")),o]};class De{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,i=0;const s=e.length-1,a=this.parts,[l,c]=Me(e,t);if(this.el=De.createElement(l,r),Re.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=Re.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(de)){const t=c[i++],r=o.getAttribute(e).split(pe),s=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?qe:"?"===s[1]?He:"@"===s[1]?Ue:Ne}),o.removeAttribute(e)}else e.startsWith(pe)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(Se.test(o.tagName)){const e=o.textContent.split(pe),t=e.length-1;if(t>0){o.textContent=ce?ce.emptyScript:"";for(let r=0;r<t;r++)o.append(e[r],ge()),Re.nextNode(),a.push({type:2,index:++n});o.append(e[t],ge())}}}else if(8===o.nodeType)if(o.data===fe)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(pe,e+1));)a.push({type:7,index:n}),e+=pe.length-1}n++}}static createElement(e,t){const r=he.createElement("template");return r.innerHTML=e,r}}function Pe(e,t,r=e,o){if(t===Oe)return t;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=ve(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(e),n._$AT(e,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(t=Pe(e,n._$AS(e,t.values),n,o)),t}class je{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??he).importNode(t,!0);Re.currentNode=o;let n=Re.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let t;2===a.type?t=new ze(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new Fe(n,this,e)),this._$AV.push(t),a=r[++s]}i!==a?.index&&(n=Re.nextNode(),i++)}return Re.currentNode=he,o}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ze{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Pe(this,e,t),ve(e)?e===Ie||null==e||""===e?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):e!==this._$AH&&e!==Oe&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>me(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==Ie&&ve(this._$AH)?this._$AA.nextSibling.data=e:this.T(he.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=De.createElement(Le(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new je(o,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=$e.get(e.strings);return void 0===t&&$e.set(e.strings,t=new De(e)),t}k(e){me(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of e)o===t.length?t.push(r=new ze(this.S(ge()),this.S(ge()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Ne{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ie}_$AI(e,t=this,r,o){const n=this.strings;let i=!1;if(void 0===n)e=Pe(this,e,t,0),i=!ve(e)||e!==this._$AH&&e!==Oe,i&&(this._$AH=e);else{const o=e;let s,a;for(e=n[0],s=0;s<n.length-1;s++)a=Pe(this,o[r+s],t,s),a===Oe&&(a=this._$AH[s]),i||=!ve(a)||a!==this._$AH[s],a===Ie?e=Ie:e!==Ie&&(e+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(e)}j(e){e===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class qe extends Ne{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class He extends Ne{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}class Ue extends Ne{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){if((e=Pe(this,e,t,0)??Ie)===Oe)return;const r=this._$AH,o=e===Ie&&r!==Ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==Ie&&(r===Ie||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Fe{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Pe(this,e)}}const Ve=le.litHtmlPolyfillSupport;Ve?.(De,ze),(le.litHtmlVersions??=[]).push("3.1.3");class Be extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const o=r?.renderBefore??t;let n=o._$litPart$;if(void 0===n){const e=r?.renderBefore??null;o._$litPart$=n=new ze(t.insertBefore(ge(),e),e,void 0,r??{})}return n._$AI(e),n})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Oe}}Be._$litElement$=!0,Be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Be});const We=globalThis.litElementPolyfillSupport;We?.({LitElement:Be}),(globalThis.litElementVersions??=[]).push("4.0.5");const Ke=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},Xe={attribute:!0,type:String,converter:ne,reflect:!1,hasChanged:ie},Ge=(e=Xe,t,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,e),"accessor"===o){const{name:o}=r;return{set(r){const n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e)},init(t){return void 0!==t&&this.P(o,void 0,e),t}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];t.call(this,r),this.requestUpdate(o,n,e)}}throw Error("Unsupported decorator location: "+o)};function Je(e){return(t,r)=>"object"==typeof r?Ge(e,t,r):((e,t,r)=>{const o=t.hasOwnProperty(r);return t.constructor.createProperty(r,o?{...e,wrapped:!0}:e),o?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}class Qe extends Be{static get formAssociated(){return!0}static{this.styles=B`
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.qbo4=t():(e.qbo4=e.qbo4||{},e.qbo4.ui=t())}(self,(()=>(()=>{var e={630:(e,t,r)=>{var o;!function(e){!function(t){var o="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=i(e);function i(e,t){return function(r,o){Object.defineProperty(e,r,{configurable:!0,writable:!0,value:o}),t&&t(r,o)}}void 0!==o.Reflect&&(n=i(o.Reflect,n)),function(e,t){var r=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,n=o&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=o&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,l=!s&&!a,c={create:s?function(){return U(Object.create(null))}:a?function(){return U({__proto__:null})}:function(){return U({})},has:l?function(e,t){return r.call(e,t)}:function(e,t){return t in e},get:l?function(e,t){return r.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var o=this._keys.length,n=r+1;n<o;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,M(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,o)},t.prototype.values=function(){return new r(this._keys,this._values,n)},t.prototype.entries=function(){return new r(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){if(!M(this._cacheKey,e)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(M(this._keys[r],e)){this._cacheIndex=r;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function o(e,t){return e}function n(e,t){return t}function s(e,t){return[e,t]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=16,t=c.create(),o=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(e,t){if(!r.call(e,o)){if(!t)return;Object.defineProperty(e,o,{value:c.create()})}return e[o]}function s(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function a(){var t=function(e){if("function"==typeof Uint8Array){var t=new Uint8Array(e);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):s(t,e),t}return s(new Array(e),e)}(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",o=0;o<e;++o){var n=t[o];4!==o&&6!==o&&8!==o||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}(),b=o?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var e;return!E(b)&&T(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[b]),E(e)&&(e=function(){var e,r,o,n;E(b)||void 0===t.Reflect||b in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,r=e.hasOwnMetadata,o=e.getOwnMetadata,n=e.getOwnMetadataKeys,i=e.deleteMetadata,s=new f;return{isProviderFor:function(e,t){var r=s.get(e);return!(E(r)||!r.has(t))||!!n(e,t).length&&(E(r)&&(r=new p,s.set(e,r)),r.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(t.Reflect));var i=new f,s={registerProvider:a,getProvider:c,setProvider:h};return s;function a(t){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case E(r):r=t;break;case r===t:break;case E(o):o=t;break;case o===t:break;default:void 0===n&&(n=new p),n.add(t)}}function l(t,i){if(!E(r)){if(r.isProviderFor(t,i))return r;if(!E(o)){if(o.isProviderFor(t,i))return r;if(!E(n))for(var s=P(n);;){var a=z(s);if(!a)return;var l=j(a);if(l.isProviderFor(t,i))return N(s),l}}}if(!E(e)&&e.isProviderFor(t,i))return e}function c(e,t){var r,o=i.get(e);return E(o)||(r=o.get(t)),E(r)?(E(r=l(e,t))||(E(o)&&(o=new d,i.set(e,o)),o.set(t,r)),r):r}function u(e){if(E(e))throw new TypeError;return r===e||o===e||!E(n)&&n.has(e)}function h(e,t,r){if(!u(r))throw new Error("Metadata provider not registered.");var o=c(e,t);if(o!==r){if(!E(o))return!1;var n=i.get(e);E(n)&&(n=new d,i.set(e,n)),n.set(t,r)}return!0}}()),!E(b)&&T(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),g=function(e){var t=new f,r={isProviderFor:function(e,r){var o=t.get(e);return!E(o)&&o.has(r)},OrdinaryDefineOwnMetadata:function(e,t,r,n){o(r,n,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,r){var n=o(t,r,!1);return!E(n)&&O(n.has(e))},OrdinaryGetOwnMetadata:function(e,t,r){var n=o(t,r,!1);if(!E(n))return n.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var r=[],n=o(e,t,!1);if(E(n))return r;for(var i=P(n.keys()),s=0;;){var a=z(i);if(!a)return r.length=s,r;var l=j(a);try{r[s]=l}catch(e){try{N(i)}finally{throw e}}s++}},OrdinaryDeleteMetadata:function(e,r,n){var i=o(r,n,!1);if(E(i))return!1;if(!i.delete(e))return!1;if(0===i.size){var s=t.get(r);E(s)||(s.delete(n),0===s.size&&t.delete(s))}return!0}};return h.registerProvider(r),r;function o(o,n,i){var s=t.get(o),a=!1;if(E(s)){if(!i)return;s=new d,t.set(o,s),a=!0}var l=s.get(n);if(E(l)){if(!i)return;if(l=new d,s.set(n,l),!e.setProvider(o,n,r))throw s.delete(n),a&&t.delete(o),new Error("Wrong provider for target.")}return l}}(h);function v(e,t,r){if(m(e,t,r))return!0;var o=q(t);return!S(o)&&v(e,o,r)}function m(e,t,r){var o=H(t,r,!1);return!E(o)&&O(o.OrdinaryHasOwnMetadata(e,t,r))}function y(e,t,r){if(m(e,t,r))return w(e,t,r);var o=q(t);return S(o)?void 0:y(e,o,r)}function w(e,t,r){var o=H(t,r,!1);if(!E(o))return o.OrdinaryGetOwnMetadata(e,t,r)}function _(e,t,r,o){H(r,o,!0).OrdinaryDefineOwnMetadata(e,t,r,o)}function x(e,t){var r=k(e,t),o=q(e);if(null===o)return r;var n=x(o,t);if(n.length<=0)return r;if(r.length<=0)return n;for(var i=new p,s=[],a=0,l=r;a<l.length;a++){var c=l[a];i.has(c)||(i.add(c),s.push(c))}for(var u=0,d=n;u<d.length;u++)c=d[u],i.has(c)||(i.add(c),s.push(c));return s}function k(e,t){var r=H(e,t,!1);return r?r.OrdinaryOwnMetadataKeys(e,t):[]}function C(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function E(e){return void 0===e}function S(e){return null===e}function T(e){return"object"==typeof e?null!==e:"function"==typeof e}function A(e,t){switch(C(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",o=D(e,n);if(void 0!==o){var i=o.call(e,r);if(T(i))throw new TypeError;return i}return function(e,t){if("string"===t){var r=e.toString;if(R(r)&&!T(n=r.call(e)))return n;if(R(o=e.valueOf)&&!T(n=o.call(e)))return n}else{var o;if(R(o=e.valueOf)&&!T(n=o.call(e)))return n;var n,i=e.toString;if(R(i)&&!T(n=i.call(e)))return n}throw new TypeError}(e,"default"===r?"number":r)}function O(e){return!!e}function I(e){var t=A(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function $(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function R(e){return"function"==typeof e}function L(e){return"function"==typeof e}function M(e,t){return e===t||e!=e&&t!=t}function D(e,t){var r=e[t];if(null!=r){if(!R(r))throw new TypeError;return r}}function P(e){var t=D(e,i);if(!R(t))throw new TypeError;var r=t.call(e);if(!T(r))throw new TypeError;return r}function j(e){return e.value}function z(e){var t=e.next();return!t.done&&t}function N(e){var t=e.return;t&&t.call(e)}function q(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var r=e.prototype,o=r&&Object.getPrototypeOf(r);if(null==o||o===Object.prototype)return t;var n=o.constructor;return"function"!=typeof n||n===e?t:n}function H(e,t,r){var o=h.getProvider(e,t);if(!E(o))return o;if(r){if(h.setProvider(e,t,g))return g;throw new Error("Illegal state.")}}function U(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,r,o){if(E(r)){if(!$(e))throw new TypeError;if(!L(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=0;--r){var o=(0,e[r])(t);if(!E(o)&&!S(o)){if(!L(o))throw new TypeError;t=o}}return t}(e,t)}if(!$(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(o)&&!E(o)&&!S(o))throw new TypeError;return S(o)&&(o=void 0),function(e,t,r,o){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t,r,o);if(!E(i)&&!S(i)){if(!T(i))throw new TypeError;o=i}}return o}(e,t,r=I(r),o)})),e("metadata",(function(e,t){return function(r,o){if(!T(r))throw new TypeError;if(!E(o)&&!function(e){switch(C(e)){case 3:case 4:return!0;default:return!1}}(o))throw new TypeError;_(e,t,r,o)}})),e("defineMetadata",(function(e,t,r,o){if(!T(r))throw new TypeError;return E(o)||(o=I(o)),_(e,t,r,o)})),e("hasMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return E(r)||(r=I(r)),v(e,t,r)})),e("hasOwnMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return E(r)||(r=I(r)),m(e,t,r)})),e("getMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return E(r)||(r=I(r)),y(e,t,r)})),e("getOwnMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return E(r)||(r=I(r)),w(e,t,r)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return E(t)||(t=I(t)),x(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return E(t)||(t=I(t)),k(e,t)})),e("deleteMetadata",(function(e,t,r){if(!T(t))throw new TypeError;if(E(r)||(r=I(r)),!T(t))throw new TypeError;E(r)||(r=I(r));var o=H(t,r,!1);return!E(o)&&o.OrdinaryDeleteMetadata(e,t,r)}))}(n,o),void 0===o.Reflect&&(o.Reflect=e)}()}(o||(o={}))}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{ApiServiceComponent:()=>CT,Dependency:()=>cw,DependencyValidator:()=>bw,DependencyValidatorOptions:()=>uw,DependencyValidatorOptionsToken:()=>dw,EmailValidator:()=>aw,ExistsValidator:()=>lw,IApiServiceToken:()=>Qy,QboBadge:()=>ww,QboDataList:()=>kw,QboDocViewer:()=>Sw,QboFormElement:()=>Iw,QboMainMenu:()=>FS,QboMarkdown:()=>WS,QboMicrophone:()=>JS,QboPopover:()=>ZS,QboPopup:()=>sT,QboPopupListener:()=>cT,QboSelect:()=>pT,QboSideBar:()=>hT,QboTable:()=>mT,QboValidate:()=>_T,RestApiService:()=>ow,ValidateToken:()=>Zy,ZipCodeValidator:()=>sw,elementClearValue:()=>AT,elementOptions:()=>ET,elementResetValue:()=>TT,elementSelectorAll:()=>ST,getApiService:()=>Yy,getArray:()=>ew,matches:()=>OT,registerRestApi:()=>nw,replicate:()=>rw,services:()=>$,substitute:()=>tw});var e,t={};r.r(t),r.d(t,{afterMain:()=>Jw,afterRead:()=>Kw,afterWrite:()=>Zw,applyStyles:()=>s_,arrow:()=>S_,auto:()=>Dw,basePlacements:()=>Pw,beforeMain:()=>Xw,beforeRead:()=>Bw,beforeWrite:()=>Qw,bottom:()=>Rw,clippingParents:()=>Nw,computeStyles:()=>I_,createPopper:()=>ix,createPopperBase:()=>nx,createPopperLite:()=>sx,detectOverflow:()=>B_,end:()=>zw,eventListeners:()=>R_,flip:()=>W_,hide:()=>G_,left:()=>Mw,main:()=>Gw,modifierPhases:()=>e_,offset:()=>J_,placements:()=>Vw,popper:()=>Hw,popperGenerator:()=>ox,popperOffsets:()=>Q_,preventOverflow:()=>Y_,read:()=>Ww,reference:()=>Uw,right:()=>Lw,start:()=>jw,top:()=>$w,variationPlacements:()=>Fw,viewport:()=>qw,write:()=>Yw}),r(630),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(e||(e={}));const n=e;var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)};function s(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function u(e){return!!e.useClass}function d(e){return!!e.useFactory}var p=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var t,r=this,o=!1;return new Proxy({},this.createHandler((function(){return o||(t=e(r.wrap()),o=!0),t})))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach((function(r){t[r]=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t[0]=e(),Reflect[r].apply(void 0,c(t))}})),t},e}();function f(e){return"string"==typeof e||"symbol"==typeof e}function b(e){return"object"==typeof e&&"token"in e&&"transform"in e}function h(e){return!!e.useToken}function g(e){return null!=e.useValue}const v=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v),y=function(){this.scopedResolutions=new Map};var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v);const x=function(){this.preResolution=new w,this.postResolution=new _};var k=new Map,C=function(){function e(e){this.parent=e,this._registry=new m,this.interceptors=new x,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,t,r){var o;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),o=function(e){return u(e)||g(e)||h(e)||d(e)}(t)?t:{useClass:t},h(o))for(var i=[e],s=o;null!=s;){var a=s.useToken;if(i.includes(a))throw new Error("Token registration cycle detected! "+c(i,[a]).join(" -> "));i.push(a);var l=this._registry.get(a);s=l&&h(l.provider)?l.provider:null}if((r.lifecycle===n.Singleton||r.lifecycle==n.ContainerScoped||r.lifecycle==n.ResolutionScoped)&&(g(o)||d(o)))throw new Error('Cannot use lifecycle "'+n[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:o,options:r}),this},e.prototype.registerType=function(e,t){return this.ensureNotDisposed(),f(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(this.ensureNotDisposed(),f(e)){if(f(t))return this.register(e,{useToken:t},{lifecycle:n.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=e;return t&&!f(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:n.Singleton})},e.prototype.resolve=function(e,t){void 0===t&&(t=new y),this.ensureNotDisposed();var r=this.getRegistration(e);if(!r&&f(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"Single"),r){var o=this.resolveRegistration(r,t);return this.executePostResolutionInterceptor(e,o,"Single"),o}if(function(e){return"function"==typeof e||e instanceof p}(e))return o=this.construct(e,t),this.executePostResolutionInterceptor(e,o,"Single"),o;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,o;if(this.interceptors.preResolution.has(e)){var n=[];try{for(var i=a(this.interceptors.preResolution.getAll(e)),s=i.next();!s.done;s=i.next()){var l=s.value;"Once"!=l.options.frequency&&n.push(l),l.callback(e,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,n)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var o,n;if(this.interceptors.postResolution.has(e)){var i=[];try{for(var s=a(this.interceptors.postResolution.getAll(e)),l=s.next();!l.done;l=s.next()){var c=l.value;"Once"!=c.options.frequency&&i.push(c),c.callback(e,t,r)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}this.interceptors.postResolution.setAll(e,i)}},e.prototype.resolveRegistration=function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,o=e.options.lifecycle===n.Singleton,i=e.options.lifecycle===n.ContainerScoped,s=o||i;return r=g(e.provider)?e.provider.useValue:h(e.provider)?s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):u(e.provider)?s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):d(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t){var r=this;void 0===t&&(t=new y),this.ensureNotDisposed();var o=this.getAllRegistrations(e);if(!o&&f(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"All"),o){var n=o.map((function(e){return r.resolveRegistration(e,t)}));return this.executePostResolutionInterceptor(e,n,"All"),n}var i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;this.ensureNotDisposed();try{for(var r=a(this._registry.entries()),o=r.next();!o.done;o=r.next()){var n=l(o.value,2),i=n[0],s=n[1];this._registry.setAll(i,s.filter((function(e){return!g(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var o=new e(this);try{for(var i=a(this._registry.entries()),s=i.next();!s.done;s=i.next()){var c=l(s.value,2),u=c[0],d=c[1];d.some((function(e){return e.options.lifecycle===n.ContainerScoped}))&&o._registry.setAll(u,d.map((function(e){return e.options.lifecycle===n.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.dispose=function(){return function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return function(e,t){var r,o,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(t){switch(t.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach((function(t){var r=t.dispose();r&&e.push(r)})),[4,Promise.all(e)];case 1:return t.sent(),[2]}}))}))},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof p)return e.createProxy((function(e){return r.resolve(e,t)}));var o,n=function(){var o=k.get(e);if(!o||0===o.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var n=o.map(r.resolveParams(t,e));return new(e.bind.apply(e,c([void 0],n)))}();return"function"!=typeof(o=n).dispose||o.dispose.length>0||this.disposables.add(n),n},e.prototype.resolveParams=function(e,t){var r=this;return function(o,n){var i,s,a,u;try{return"object"==typeof(u=o)&&"token"in u&&"multiple"in u?b(o)?o.multiple?(i=r.resolve(o.transform)).transform.apply(i,c([r.resolveAll(o.token)],o.transformArgs)):(s=r.resolve(o.transform)).transform.apply(s,c([r.resolve(o.token,e)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,e):b(o)?(a=r.resolve(o.transform,e)).transform.apply(a,c([r.resolve(o.token,e)],o.transformArgs)):r.resolve(o,e)}catch(e){throw new Error(function(e,t,r){var o,n,i=l(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(e,t,r){return void 0===r&&(r=" "),c([e],t.message.split("\n").map((function(e){return r+e}))).join("\n")}("Cannot inject the dependency "+(n=t,(null===(o=void 0===i?null:i)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n)+' of "')+e.name+'" constructor. Reason:',r)}(t,n,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),E=new C,S="injectionTokens";function T(e,t){return function(r,o,n){var i=Reflect.getOwnMetadata(S,r)||{};i[n]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata(S,i,r)}}const A=function(e){return T(e)},O=function(){return function(e){k.set(e,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata(S,e)||{};return Object.keys(r).forEach((function(e){t[+e]=r[e]})),t}(e))}},I=function(e){return T({token:e,multiple:!0})};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new class{constructor(e,t){this.container=e,this.options=t}getService(e){return this.container.resolve(e)}}(E.createChildContainer(),{});const $=window.qbo4.services,R="IConfigurationSourceToken",L="IConfigurationToken";function*M(e,t=""){for(const[r,o]of Object.entries(e)){const e=t?`${t}:${r}`:r;if(Array.isArray(o))for(let t=0;t<o.length;t++){const r=o[t];"object"==typeof r&&null!==r?yield*M(r,`${e}:${t}`):yield{key:`${e}:${t}`,value:r}}else"object"==typeof o&&null!==o?yield*M(o,e):yield{key:e,value:o}}}class D{constructor(e){this.jsonConfig=e}getData(){return this.jsonConfig}*getValues(){yield*M(this.jsonConfig)}}class P{constructor(e){this.data=e}getSection(e){const t=e.split(":");let r=this.data;for(const e of t){if(!(e in r))return new P({});r=r[e]}return new P(r)}get(e){const t=e.split(":");let r=this.data;for(const e of t){if(!r||!(e in r))return{};r=r[e]}return r}bind(e){const t=new e;for(const e in this.data)this.data.hasOwnProperty(e)&&(t[e]=this.data[e]);return t}*getValues(){yield*M(this.data)}}let j=class extends P{constructor(e){super({}),this.sources=e,this.mergeConfigurations(e)}mergeConfigurations(e){e.forEach((e=>{const t=e.getData();this.data={...this.data,...t}}))}};var z,N;j=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),(z=0,N=I(R),function(e,t){N(e,t,z)}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Array])],j),$.container.register(L,{useClass:j},{lifecycle:n.Singleton}),$.container.register(R,{useClass:class{getData(){return{}}*getValues(){yield*M({})}}},{lifecycle:n.Singleton});const q=globalThis,H=q.ShadowRoot&&(void 0===q.ShadyCSS||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,U=Symbol(),F=new WeakMap;class V{constructor(e,t,r){if(this._$cssResult$=!0,r!==U)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(H&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=F.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&F.set(t,e))}return e}toString(){return this.cssText}}const B=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1]),e[0]);return new V(r,e,U)},W=H?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new V("string"==typeof e?e:e+"",void 0,U))(t)})(e):e,{is:K,defineProperty:X,getOwnPropertyDescriptor:G,getOwnPropertyNames:J,getOwnPropertySymbols:Q,getPrototypeOf:Y}=Object,Z=globalThis,ee=Z.trustedTypes,te=ee?ee.emptyScript:"",re=Z.reactiveElementPolyfillSupport,oe=(e,t)=>e,ne={toAttribute(e,t){switch(t){case Boolean:e=e?te:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},ie=(e,t)=>!K(e,t),se={attribute:!0,type:String,converter:ne,reflect:!1,hasChanged:ie};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class ae extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=se){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);void 0!==o&&X(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:n}=G(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return o?.call(this)},set(t){const i=o?.call(this);n.call(this,t),this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??se}static _$Ei(){if(this.hasOwnProperty(oe("elementProperties")))return;const e=Y(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oe("properties"))){const e=this.properties,t=[...J(e),...Q(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(W(e))}else void 0!==e&&t.push(W(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(H)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),o=q.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:ne).toAttribute(t,r.type);this._$Em=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){const r=this.constructor,o=r._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=r.getPropertyOptions(o),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:ne;this._$Em=o,this[o]=n.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??ie)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},ae[oe("elementProperties")]=new Map,ae[oe("finalized")]=new Map,re?.({ReactiveElement:ae}),(Z.reactiveElementVersions??=[]).push("2.0.4");const le=globalThis,ce=le.trustedTypes,ue=ce?ce.createPolicy("lit-html",{createHTML:e=>e}):void 0,de="$lit$",pe=`lit$${Math.random().toFixed(9).slice(2)}$`,fe="?"+pe,be=`<${fe}>`,he=document,ge=()=>he.createComment(""),ve=e=>null===e||"object"!=typeof e&&"function"!=typeof e,me=Array.isArray,ye="[ \t\n\f\r]",we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,xe=/>/g,ke=RegExp(`>|${ye}(?:([^\\s"'>=/]+)(${ye}*=${ye}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ce=/'/g,Ee=/"/g,Se=/^(?:script|style|textarea|title)$/i,Te=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ae=Te(1),Oe=(Te(2),Symbol.for("lit-noChange")),Ie=Symbol.for("lit-nothing"),$e=new WeakMap,Re=he.createTreeWalker(he,129);function Le(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ue?ue.createHTML(t):t}const Me=(e,t)=>{const r=e.length-1,o=[];let n,i=2===t?"<svg>":"",s=we;for(let t=0;t<r;t++){const r=e[t];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===we?"!--"===l[1]?s=_e:void 0!==l[1]?s=xe:void 0!==l[2]?(Se.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=ke):void 0!==l[3]&&(s=ke):s===ke?">"===l[0]?(s=n??we,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ke:'"'===l[3]?Ee:Ce):s===Ee||s===Ce?s=ke:s===_e||s===xe?s=we:(s=ke,n=void 0);const d=s===ke&&e[t+1].startsWith("/>")?" ":"";i+=s===we?r+be:c>=0?(o.push(a),r.slice(0,c)+de+r.slice(c)+pe+d):r+pe+(-2===c?t:d)}return[Le(e,i+(e[r]||"<?>")+(2===t?"</svg>":"")),o]};class De{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,i=0;const s=e.length-1,a=this.parts,[l,c]=Me(e,t);if(this.el=De.createElement(l,r),Re.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=Re.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(de)){const t=c[i++],r=o.getAttribute(e).split(pe),s=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?qe:"?"===s[1]?He:"@"===s[1]?Ue:Ne}),o.removeAttribute(e)}else e.startsWith(pe)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(Se.test(o.tagName)){const e=o.textContent.split(pe),t=e.length-1;if(t>0){o.textContent=ce?ce.emptyScript:"";for(let r=0;r<t;r++)o.append(e[r],ge()),Re.nextNode(),a.push({type:2,index:++n});o.append(e[t],ge())}}}else if(8===o.nodeType)if(o.data===fe)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(pe,e+1));)a.push({type:7,index:n}),e+=pe.length-1}n++}}static createElement(e,t){const r=he.createElement("template");return r.innerHTML=e,r}}function Pe(e,t,r=e,o){if(t===Oe)return t;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=ve(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(e),n._$AT(e,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(t=Pe(e,n._$AS(e,t.values),n,o)),t}class je{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??he).importNode(t,!0);Re.currentNode=o;let n=Re.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let t;2===a.type?t=new ze(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new Fe(n,this,e)),this._$AV.push(t),a=r[++s]}i!==a?.index&&(n=Re.nextNode(),i++)}return Re.currentNode=he,o}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ze{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Pe(this,e,t),ve(e)?e===Ie||null==e||""===e?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):e!==this._$AH&&e!==Oe&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>me(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==Ie&&ve(this._$AH)?this._$AA.nextSibling.data=e:this.T(he.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=De.createElement(Le(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new je(o,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=$e.get(e.strings);return void 0===t&&$e.set(e.strings,t=new De(e)),t}k(e){me(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of e)o===t.length?t.push(r=new ze(this.S(ge()),this.S(ge()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Ne{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ie}_$AI(e,t=this,r,o){const n=this.strings;let i=!1;if(void 0===n)e=Pe(this,e,t,0),i=!ve(e)||e!==this._$AH&&e!==Oe,i&&(this._$AH=e);else{const o=e;let s,a;for(e=n[0],s=0;s<n.length-1;s++)a=Pe(this,o[r+s],t,s),a===Oe&&(a=this._$AH[s]),i||=!ve(a)||a!==this._$AH[s],a===Ie?e=Ie:e!==Ie&&(e+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(e)}j(e){e===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class qe extends Ne{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class He extends Ne{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}class Ue extends Ne{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){if((e=Pe(this,e,t,0)??Ie)===Oe)return;const r=this._$AH,o=e===Ie&&r!==Ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==Ie&&(r===Ie||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Fe{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Pe(this,e)}}const Ve=le.litHtmlPolyfillSupport;Ve?.(De,ze),(le.litHtmlVersions??=[]).push("3.1.3");class Be extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const o=r?.renderBefore??t;let n=o._$litPart$;if(void 0===n){const e=r?.renderBefore??null;o._$litPart$=n=new ze(t.insertBefore(ge(),e),e,void 0,r??{})}return n._$AI(e),n})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Oe}}Be._$litElement$=!0,Be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Be});const We=globalThis.litElementPolyfillSupport;We?.({LitElement:Be}),(globalThis.litElementVersions??=[]).push("4.0.5");const Ke=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},Xe={attribute:!0,type:String,converter:ne,reflect:!1,hasChanged:ie},Ge=(e=Xe,t,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,e),"accessor"===o){const{name:o}=r;return{set(r){const n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e)},init(t){return void 0!==t&&this.P(o,void 0,e),t}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];t.call(this,r),this.requestUpdate(o,n,e)}}throw Error("Unsupported decorator location: "+o)};function Je(e){return(t,r)=>"object"==typeof r?Ge(e,t,r):((e,t,r)=>{const o=t.hasOwnProperty(r);return t.constructor.createProperty(r,o?{...e,wrapped:!0}:e),o?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}class Qe extends Be{static get formAssociated(){return!0}static{this.styles=B`
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
5
|
padding: 16px;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
`}};Vy([Je({type:Boolean}),By("design:type",Object)],Wy.prototype,"debug",void 0),Vy([Je({type:Boolean}),By("design:type",Object)],Wy.prototype,"info",void 0),Vy([Je({type:Boolean}),By("design:type",Object)],Wy.prototype,"warning",void 0),Vy([Je({type:Boolean}),By("design:type",Object)],Wy.prototype,"error",void 0),Vy([Je({type:Boolean}),By("design:type",Object)],Wy.prototype,"critial",void 0),Vy([Je({type:Boolean}),By("design:type",Object)],Wy.prototype,"window",void 0),Vy([Je({type:Array}),By("design:type",Array)],Wy.prototype,"logs",void 0),Vy([Je({type:Object}),By("design:type",Object)],Wy.prototype,"logCounts",void 0),Vy([Je({type:Boolean}),By("design:type",Object)],Wy.prototype,"showModal",void 0),Wy=Fy=Vy([Ke("qbo-logging"),By("design:paramtypes",[])],Wy);var Ky=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Xy=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class Gy extends Be{constructor(){super(...arguments),this.selector="",this.cssClass="",this.selectorRoot=""}static{this.styles=[Uy]}render(){return Ae`<slot>
|
|
53
53
|
<input type="text" @input="${this.handleInput}" placeholder="Filter ...">
|
|
54
54
|
</slot>
|
|
55
|
-
`}connectedCallback(){super.connectedCallback(),this.root=this.getRoot()}getRoot(){if(this.selectorRoot){return this.closest(this.selectorRoot)||document}return document}handleInput(e){const t=e.target.value.toLowerCase(),r=this.root?.querySelectorAll(this.selector);null!=r&&r.forEach((e=>{(e.textContent?.toLowerCase()||"").includes(t)?this.cssClass?e.classList.remove(this.cssClass):e instanceof HTMLElement&&(e.style.display=""):this.cssClass?e.classList.add(this.cssClass):e instanceof HTMLElement&&(e.style.display="none")}))}}Ky([Je({type:String}),Xy("design:type",Object)],Gy.prototype,"selector",void 0),Ky([Je({type:String}),Xy("design:type",Object)],Gy.prototype,"cssClass",void 0),Ky([Je({type:String}),Xy("design:type",Object)],Gy.prototype,"selectorRoot",void 0),customElements.define("qbo-find",Gy);const Jy={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"},Qy="ApiServiceToken";function Yy(e){return $.container.resolve(e)}const Zy="ValidateToken";function ew(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.error("Error parsing JSON string:",e),null}if(Array.isArray(e))return e;if("object"==typeof e&&null!==e)for(const r in e){const o=e[r];if(Array.isArray(o))return o;if("object"==typeof o){const e=ew(o,t);if(e)return e}}return null}function tw(e,...t){const r=/\${(.*?)}/g;let o=e;for(let e=0;e<t.length;e++){const n=t[e];o=o.replace(r,((e,t)=>{const r=t.split(/\.|\[|\]/).filter((e=>""!==e));let o=n;for(let t of r){if(void 0===o[t])return e;o=o[t]}return o}))}return o=o.replace(r,(()=>"")),o}function rw(e,t,r,o=!0){if(null!=e&&null!=t){for(;o&&e.firstChild;)e.removeChild(e.firstChild);r.map(((r,o)=>{const n=t.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${o}`),n.firstElementChild.innerHTML=tw(n.firstElementChild?.innerHTML??"",r)),e.appendChild(n)}))}}class ow{constructor(e,t={"Content-Type":"application/json"},r=null){this.apiEndpoint=e,this.headers=t,this.method=r}async fetch(e,t=null){const r=tw(new URL(e??"",this.apiEndpoint).href,t),o=this.method??(null!==t?"POST":"GET"),n=new Headers(this.headers||{});null===t||n.has("Content-Type")||n.append("Content-Type","application/json");const i=await fetch(r,{method:o,headers:n,body:"POST"===o&&t?JSON.stringify(t):null});if(!i.ok)throw new Error(`API request failed with status ${i.status}`);return i.json()}}function nw(e,t,r={"Content-Type":"application/json"},o){$.container.registerInstance(e,new ow(t,r,o))}$.container.registerInstance("default",new ow(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var iw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};let sw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(e){return Promise.resolve(!0)}connect(e){}disconnect(){}};sw=iw([O()],sw),$.container.register(Zy,{useClass:sw});let aw=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(e){return Promise.resolve(!0)}connect(e){}disconnect(){}};aw=iw([O()],aw),$.container.register(Zy,{useClass:aw});let lw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(e){}disconnect(){}async validate(e){var t=e.getAttribute("data-exists");if(!t)return!1;var r=e.getAttribute("data-exists-path");const o=$.container.isRegistered(t)?$.container.resolve(t):new ow(t);if(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){const t=ew(await o.fetch(r,{value:e.value}));return null!=t&&t.length>0}return!1}};lw=iw([O()],lw),$.container.register(Zy,{useClass:lw});class cw{constructor(){this.operator="=",this.value=null}}class uw{constructor(){this.dependencies=[],this.evaluators=[],this.values=new Map,this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.conditionalRequired=!0,this.required=!1,this.disabledClass="disabled",this.target=null,this.disableChildren=!0}}const dw="DependencyValidatorOptions",pw=new Map([["!=",(e,t)=>!OT(e.value,t)],[">=",(e,t)=>e.value>=t],["<=",(e,t)=>e.value<=t],["=",(e,t)=>OT(e.value,t)],[">",(e,t)=>e.value>t],["<",(e,t)=>e.value<t]]),fw=Array.from(pw.keys());let bw=class{constructor(e,t){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async e=>{console.log("checking dependencies",this.optionsCache);for(const[e,t]of this.optionsCache)await this.validate(e)},this.form=e,this.options=t,this.currentOptions=t}connect(e){this.form.querySelectorAll(this.selector).forEach((e=>{e instanceof HTMLElement&&this.getOptions(e)})),this.optionsCache.forEach(((e,t)=>{this.validate(t)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(e){const t=this.getOptions(e);if(null==t)return Promise.resolve(!0);let r;return r="or"===t.condition?t.evaluators.some((e=>!0===e())):t.evaluators.every((e=>!0===e())),(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&(e.disabled=!r),e.classList.toggle(t.disabledClass,!r),r?t.disableChildren&&ST(e,"input,select,textarea").forEach((e=>e.removeAttribute("disabled"))):(t.disableChildren&&ST(e,"input,select,textarea").forEach((e=>e.setAttribute("disabled","disabled"))),t.resetOnDisable?ST(e,"input,select,textarea").forEach((e=>TT(e))):t.emptyOnDisable&&ST(e,"input,select,textarea").forEach((e=>AT(e)))),Promise.resolve(r)}getOptions(e){let t=this.optionsCache.get(e);if(!t){try{t=Object.assign({},this.options,ET(e,"data-depend-"))}catch(e){console.error("Error parsing data-depend-options attribute:",e)}if(!t)return null;t.evaluators=t.depends.split(",").map((e=>{e=e.trim();let t=fw.find((t=>e.includes(t)))??"!=",r=null,o="";if(t){const n=e.split(t);r=n[0],o=n[1]??""}else e.startsWith("!")?(t="=",r=e.substring(1)):r=e;const n=this.form.querySelector(`#${CSS.escape(r)}`)??this.form.querySelector(`[name="${CSS.escape(r)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===t?()=>n.checked:()=>!n.checked:()=>pw.get(t)(n,o):n instanceof HTMLSelectElement?()=>pw.get(t)(n,o):n instanceof HTMLOptionElement?"!="===t?()=>n.selected:()=>!n.selected:void 0})).filter((e=>void 0!==e)),t.dependencies=t.depends.split(",").map((e=>{e=e.trim();let t=fw.find((t=>e.includes(t)))??"!=",r=null,o="";if(t){const n=e.split(t);r=n[0],o=n[1]}else e.startsWith("!")?(t="=",r=e.substring(1)):(t="!=",r=e);return this.form.querySelector(`#${CSS.escape(r)}`)??this.form.querySelector(`[name="${CSS.escape(r)}"]`)})).filter((e=>null!==e)),this.optionsCache.set(e,t)}return t}getElement(e){return this.form.querySelector(`#${CSS.escape(e)}`)??this.form.querySelector(`[name="${CSS.escape(e)}"]`)}};bw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),function(e,t){return function(r,o){t(r,o,e)}}(1,A(dw)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[HTMLFormElement,uw])],bw),$.container.register(dw,{useValue:new uw}),$.container.register(Zy,{useClass:bw});var hw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},gw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const vw=(e=>{class t extends e{constructor(...e){super(...e),this.apiEndpoint=null,this.method="GET",this.error=!1,this.jsonData={},this.accept="application/json",this.headerTag='script[name="headers"]',this.html=null,this.fetchOnLoad=!0}async connectedCallback(){if(super.connectedCallback(),this.fetchOnLoad){const e=this.getHeaders(),t=this.getPayload(e);await this.fetchData(e,t)}}getHeaders(){const e=this.querySelector(this.headerTag);let t={Accept:this.accept};if(e&&null!==e.textContent)try{t=JSON.parse(e.textContent)}catch(e){console.error("Error parsing header JSON:",e)}return t}getPayload(e){const t=this.querySelector('script[name="payload"]');let r=null;if(t&&null!==t.textContent)try{r=JSON.parse(t.textContent),r&&(e["Content-Type"]="application/json")}catch(e){console.error("Error parsing payload JSON:",e)}return r}async fetchData(e,t){if(null!==this.apiEndpoint){null!==t&&(this.method="POST");try{const r=await fetch(this.apiEndpoint,{method:this.method,headers:e,body:t?JSON.stringify(t):null});"application/json"===this.accept?(this.jsonData=await r.json(),this.html=null):(this.html=await r.text(),this.jsonData=null),this.dispatchEvent(new CustomEvent("qbo-updated",{bubbles:!0,composed:!0}))}catch(e){this.error=!0,dispatchEvent(new CustomEvent("qbo-error",{detail:e}))}}}}return hw([Je({type:URL}),gw("design:type",Object)],t.prototype,"apiEndpoint",void 0),hw([Je({type:String}),gw("design:type",Object)],t.prototype,"method",void 0),hw([Je({type:Boolean}),gw("design:type",Object)],t.prototype,"error",void 0),hw([Je({type:Object}),gw("design:type",Object)],t.prototype,"jsonData",void 0),hw([Je({type:String}),gw("design:type",Object)],t.prototype,"accept",void 0),hw([Je({type:String}),gw("design:type",Object)],t.prototype,"headerTag",void 0),hw([Je({type:String}),gw("design:type",Object)],t.prototype,"html",void 0),hw([Je({type:Boolean}),gw("design:type",Object)],t.prototype,"fetchOnLoad",void 0),t})(Be);var mw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},yw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ww=class extends vw{constructor(){super(...arguments),this.loading=!1,this.target=null,this.values=[],this.targetElement=null,this.selector="*[data-badge]"}async connectedCallback(){if(this.targetElement=null!=this.target?this.closest(this.target):this,null==this.targetElement)throw new Error(`Could not find target element ${this.target}`);this.targetElement.addEventListener("qbo-updated",this.getIds.bind(this)),super.connectedCallback()}disconnectedCallback(){this.targetElement?.removeEventListener("qbo-updated",this.getIds)}getPayload(e){(super.getPayload(e)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const e=[];this.targetElement.querySelectorAll(this.selector).forEach((t=>{const r=t.getAttribute("data-badge");null!==r&&e.push(r)})),this.values=e}async fetchData(e,t){super.fetchData(e,t)}render(){this.targetElement.querySelectorAll(this.selector).forEach((e=>{e.innerHTML=e.getAttribute("data-badge")??""}))}};mw([Je({type:Boolean}),yw("design:type",Object)],ww.prototype,"loading",void 0),mw([Je(),yw("design:type",Object)],ww.prototype,"target",void 0),mw([Je(),yw("design:type",Array)],ww.prototype,"values",void 0),mw([Je(),yw("design:type",Object)],ww.prototype,"selector",void 0),ww=mw([Ke("qbo-badge")],ww);var _w=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},xw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let kw=class extends vw{constructor(){super(...arguments),this.listId=null,this.min=3,this.options=[],this.renderInHost=!0,this.text=null,this.value=null,this.fetchOnLoad=!1,this.endpoint=null,this.headers=null,this.payload={},this.targets=null}connectedCallback(){super.connectedCallback(),this.targets=document.querySelectorAll(`input[list=${this.listId}]`);const e=this;this.targets.forEach((function(t){t.addEventListener("keyup",e.buildDataList.bind(e)),t.hasAttribute("data-for")&&t.addEventListener("change",e.setOutputValue.bind(e))})),this.endpoint=this.apiEndpoint.toString(),this.headers=this.getHeaders(),this.payload=this.getPayload(this.headers)}disconnectedCallback(){const e=this;this.targets?.forEach((function(t){t.removeEventListener("keyup",e.buildDataList.bind(e)),t.hasAttribute("data-for")&&t.removeEventListener("change",e.setOutputValue.bind(e))})),super.disconnectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async buildDataList(e){const t=e.target;t instanceof HTMLInputElement&&t.value.length>=this.min&&(null!=this.endpoint&&(this.apiEndpoint=new URL(this.endpoint.replace("{value}",`${t.value}`),this.baseURI)),await this.fetchData(this.headers,this.payload))}setOutputValue(e){const t=e.target;let r=null;if(t.hasAttribute("data-for")){const e=t.getAttribute("data-for");r=document.getElementById(e)||t.querySelector(e)||t.parentElement?.querySelector(e)||document.getElementsByName(e)[0]}if(t instanceof HTMLInputElement&&r instanceof HTMLInputElement){const e=this.text,o=this.options?.filter((function(r){return r[e]==t.value}));t.value=1==o?.length?o[0][`${this.text}`]:"",r.value=1==o?.length?o[0][`${this.value}`]:""}}render(){return this.options=ew(this.jsonData),this.options&&0!==this.options.length?(null!=this.options&&(this.value??=Object.keys(this.options[0])[0],this.text??=Object.keys(this.options[0])[1]??this.value),Ae`
|
|
55
|
+
`}connectedCallback(){super.connectedCallback(),this.root=this.getRoot()}getRoot(){if(this.selectorRoot){return this.closest(this.selectorRoot)||document}return document}handleInput(e){const t=e.target.value.toLowerCase(),r=this.root?.querySelectorAll(this.selector);null!=r&&r.forEach((e=>{(e.textContent?.toLowerCase()||"").includes(t)?this.cssClass?e.classList.remove(this.cssClass):e instanceof HTMLElement&&(e.style.display=""):this.cssClass?e.classList.add(this.cssClass):e instanceof HTMLElement&&(e.style.display="none")}))}}Ky([Je({type:String}),Xy("design:type",Object)],Gy.prototype,"selector",void 0),Ky([Je({type:String}),Xy("design:type",Object)],Gy.prototype,"cssClass",void 0),Ky([Je({type:String}),Xy("design:type",Object)],Gy.prototype,"selectorRoot",void 0),customElements.define("qbo-find",Gy);const Jy={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"},Qy="ApiServiceToken";function Yy(e){return $.container.resolve(e)}const Zy="ValidateToken";function ew(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.error("Error parsing JSON string:",e),null}if(Array.isArray(e))return e;if("object"==typeof e&&null!==e)for(const r in e){const o=e[r];if(Array.isArray(o))return o;if("object"==typeof o){const e=ew(o,t);if(e)return e}}return null}function tw(e,...t){const r=/\${(.*?)}/g;let o=e;for(let e=0;e<t.length;e++){const n=t[e];o=o.replace(r,((e,t)=>{const r=t.split(/\.|\[|\]/).filter((e=>""!==e));let o=n;for(let t of r){if(void 0===o[t])return e;o=o[t]}return o}))}return o=o.replace(r,(()=>"")),o}function rw(e,t,r,o=!0){if(null!=e&&null!=t){for(;o&&e.firstChild;)e.removeChild(e.firstChild);r.map(((r,o)=>{const n=t.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${o}`),n.firstElementChild.innerHTML=tw(n.firstElementChild?.innerHTML??"",r)),e.appendChild(n)}))}}class ow{constructor(e,t={"Content-Type":"application/json"},r=null){this.apiEndpoint=e,this.headers=t,this.method=r}async fetch(e,t=null){const r=tw(new URL(e??"",this.apiEndpoint).href,t),o=this.method??(null!==t?"POST":"GET"),n=new Headers(this.headers||{});null===t||n.has("Content-Type")||n.append("Content-Type","application/json");const i=await fetch(r,{method:o,headers:n,body:"POST"===o&&t?JSON.stringify(t):null});if(!i.ok)throw new Error(`API request failed with status ${i.status}`);return i.json()}}function nw(e,t,r={"Content-Type":"application/json"},o){$.container.registerInstance(e,new ow(t,r,o))}$.container.registerInstance("default",new ow(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var iw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};let sw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(e){return Promise.resolve(!0)}connect(e){}disconnect(){}};sw=iw([O()],sw),$.container.register(Zy,{useClass:sw});let aw=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(e){return Promise.resolve(!0)}connect(e){}disconnect(){}};aw=iw([O()],aw),$.container.register(Zy,{useClass:aw});let lw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(e){}disconnect(){}async validate(e){var t=e.getAttribute("data-exists");if(!t)return!1;var r=e.getAttribute("data-exists-path");const o=$.container.isRegistered(t)?$.container.resolve(t):new ow(t);if(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){const t=ew(await o.fetch(r,{value:e.value}));return null!=t&&t.length>0}return!1}};lw=iw([O()],lw),$.container.register(Zy,{useClass:lw});class cw{constructor(){this.operator="=",this.value=null}}class uw{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const dw="DependencyValidatorOptions",pw=new Map([["!=",(e,t)=>!OT(e.value,t)],[">=",(e,t)=>e.value>=t],["<=",(e,t)=>e.value<=t],["=",(e,t)=>OT(e.value,t)],[">",(e,t)=>e.value>t],["<",(e,t)=>e.value<t]]),fw=Array.from(pw.keys());let bw=class{constructor(e,t){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async e=>{console.log("checking dependencies",this.optionsCache);for(const[e,t]of this.optionsCache)await this.validate(e)},this.form=e,this.options=t,this.currentOptions=t}connect(e){this.form.querySelectorAll(this.selector).forEach((e=>{e instanceof HTMLElement&&this.getOptions(e)})),this.optionsCache.forEach(((e,t)=>{this.validate(t)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(e){const t=this.getOptions(e);if(null==t)return Promise.resolve(!0);let r;r="or"===t.condition?t.evaluators.some((e=>!0===e())):t.evaluators.every((e=>!0===e())),(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&(e.disabled=!r),e.classList.toggle(t.disabledClass,!r);const o=ST(e,"input,select,textarea");return r?t.disableChildren&&o.forEach((e=>e.removeAttribute("disabled"))):(t.disableChildren&&o.forEach((e=>e.setAttribute("disabled","disabled"))),t.resetOnDisable?o.forEach((e=>TT(e))):t.emptyOnDisable&&o.forEach((e=>AT(e)))),Promise.resolve(r)}getOptions(e){let t=this.optionsCache.get(e);if(!t){try{t=Object.assign({},this.options,ET(e,"data-depend-"))}catch(e){console.error("Error parsing data-depend-options attribute:",e)}if(!t)return null;t.evaluators=t.depends.split(",").map((e=>{e=e.trim();let t=fw.find((t=>e.includes(t)))??"!=",r=null,o="";if(t){const n=e.split(t);r=n[0],o=n[1]??""}else e.startsWith("!")?(t="=",r=e.substring(1)):r=e;const n=this.form.querySelector(`#${CSS.escape(r)}`)??this.form.querySelector(`[name="${CSS.escape(r)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===t?()=>n.checked:()=>!n.checked:()=>pw.get(t)(n,o):n instanceof HTMLSelectElement?()=>pw.get(t)(n,o):n instanceof HTMLOptionElement?"!="===t?()=>n.selected:()=>!n.selected:void 0})).filter((e=>void 0!==e)),this.optionsCache.set(e,t)}return t}getElement(e){return this.form.querySelector(`#${CSS.escape(e)}`)??this.form.querySelector(`[name="${CSS.escape(e)}"]`)}};bw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),function(e,t){return function(r,o){t(r,o,e)}}(1,A(dw)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[HTMLFormElement,uw])],bw),$.container.register(dw,{useValue:new uw}),$.container.register(Zy,{useClass:bw});var hw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},gw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const vw=(e=>{class t extends e{constructor(...e){super(...e),this.apiEndpoint=null,this.method="GET",this.error=!1,this.jsonData={},this.accept="application/json",this.headerTag='script[name="headers"]',this.html=null,this.fetchOnLoad=!0}async connectedCallback(){if(super.connectedCallback(),this.fetchOnLoad){const e=this.getHeaders(),t=this.getPayload(e);await this.fetchData(e,t)}}getHeaders(){const e=this.querySelector(this.headerTag);let t={Accept:this.accept};if(e&&null!==e.textContent)try{t=JSON.parse(e.textContent)}catch(e){console.error("Error parsing header JSON:",e)}return t}getPayload(e){const t=this.querySelector('script[name="payload"]');let r=null;if(t&&null!==t.textContent)try{r=JSON.parse(t.textContent),r&&(e["Content-Type"]="application/json")}catch(e){console.error("Error parsing payload JSON:",e)}return r}async fetchData(e,t){if(null!==this.apiEndpoint){null!==t&&(this.method="POST");try{const r=await fetch(this.apiEndpoint,{method:this.method,headers:e,body:t?JSON.stringify(t):null});"application/json"===this.accept?(this.jsonData=await r.json(),this.html=null):(this.html=await r.text(),this.jsonData=null),this.dispatchEvent(new CustomEvent("qbo-updated",{bubbles:!0,composed:!0}))}catch(e){this.error=!0,dispatchEvent(new CustomEvent("qbo-error",{detail:e}))}}}}return hw([Je({type:URL}),gw("design:type",Object)],t.prototype,"apiEndpoint",void 0),hw([Je({type:String}),gw("design:type",Object)],t.prototype,"method",void 0),hw([Je({type:Boolean}),gw("design:type",Object)],t.prototype,"error",void 0),hw([Je({type:Object}),gw("design:type",Object)],t.prototype,"jsonData",void 0),hw([Je({type:String}),gw("design:type",Object)],t.prototype,"accept",void 0),hw([Je({type:String}),gw("design:type",Object)],t.prototype,"headerTag",void 0),hw([Je({type:String}),gw("design:type",Object)],t.prototype,"html",void 0),hw([Je({type:Boolean}),gw("design:type",Object)],t.prototype,"fetchOnLoad",void 0),t})(Be);var mw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},yw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ww=class extends vw{constructor(){super(...arguments),this.loading=!1,this.target=null,this.values=[],this.targetElement=null,this.selector="*[data-badge]"}async connectedCallback(){if(this.targetElement=null!=this.target?this.closest(this.target):this,null==this.targetElement)throw new Error(`Could not find target element ${this.target}`);this.targetElement.addEventListener("qbo-updated",this.getIds.bind(this)),super.connectedCallback()}disconnectedCallback(){this.targetElement?.removeEventListener("qbo-updated",this.getIds)}getPayload(e){(super.getPayload(e)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const e=[];this.targetElement.querySelectorAll(this.selector).forEach((t=>{const r=t.getAttribute("data-badge");null!==r&&e.push(r)})),this.values=e}async fetchData(e,t){super.fetchData(e,t)}render(){this.targetElement.querySelectorAll(this.selector).forEach((e=>{e.innerHTML=e.getAttribute("data-badge")??""}))}};mw([Je({type:Boolean}),yw("design:type",Object)],ww.prototype,"loading",void 0),mw([Je(),yw("design:type",Object)],ww.prototype,"target",void 0),mw([Je(),yw("design:type",Array)],ww.prototype,"values",void 0),mw([Je(),yw("design:type",Object)],ww.prototype,"selector",void 0),ww=mw([Ke("qbo-badge")],ww);var _w=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},xw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let kw=class extends vw{constructor(){super(...arguments),this.listId=null,this.min=3,this.options=[],this.renderInHost=!0,this.text=null,this.value=null,this.fetchOnLoad=!1,this.endpoint=null,this.headers=null,this.payload={},this.targets=null}connectedCallback(){super.connectedCallback(),this.targets=document.querySelectorAll(`input[list=${this.listId}]`);const e=this;this.targets.forEach((function(t){t.addEventListener("keyup",e.buildDataList.bind(e)),t.hasAttribute("data-for")&&t.addEventListener("change",e.setOutputValue.bind(e))})),this.endpoint=this.apiEndpoint.toString(),this.headers=this.getHeaders(),this.payload=this.getPayload(this.headers)}disconnectedCallback(){const e=this;this.targets?.forEach((function(t){t.removeEventListener("keyup",e.buildDataList.bind(e)),t.hasAttribute("data-for")&&t.removeEventListener("change",e.setOutputValue.bind(e))})),super.disconnectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async buildDataList(e){const t=e.target;t instanceof HTMLInputElement&&t.value.length>=this.min&&(null!=this.endpoint&&(this.apiEndpoint=new URL(this.endpoint.replace("{value}",`${t.value}`),this.baseURI)),await this.fetchData(this.headers,this.payload))}setOutputValue(e){const t=e.target;let r=null;if(t.hasAttribute("data-for")){const e=t.getAttribute("data-for");r=document.getElementById(e)||t.querySelector(e)||t.parentElement?.querySelector(e)||document.getElementsByName(e)[0]}if(t instanceof HTMLInputElement&&r instanceof HTMLInputElement){const e=this.text,o=this.options?.filter((function(r){return r[e]==t.value}));t.value=1==o?.length?o[0][`${this.text}`]:"",r.value=1==o?.length?o[0][`${this.value}`]:""}}render(){return this.options=ew(this.jsonData),this.options&&0!==this.options.length?(null!=this.options&&(this.value??=Object.keys(this.options[0])[0],this.text??=Object.keys(this.options[0])[1]??this.value),Ae`
|
|
56
56
|
<datalist id=${this.listId}>
|
|
57
57
|
${this.options.map((e=>Ae`<option value="${e[this.text]}" data-value="${e[this.value]}"/>`))}
|
|
58
58
|
</datalist>`):Ae``}};_w([Je({type:String}),xw("design:type",Object)],kw.prototype,"listId",void 0),_w([Je({type:Number}),xw("design:type",Object)],kw.prototype,"min",void 0),_w([Je({type:Array}),xw("design:type",Object)],kw.prototype,"options",void 0),_w([Je({type:Boolean}),xw("design:type",Object)],kw.prototype,"renderInHost",void 0),_w([Je({type:String}),xw("design:type",Object)],kw.prototype,"text",void 0),_w([Je({type:String}),xw("design:type",Object)],kw.prototype,"value",void 0),_w([Je({type:Boolean}),xw("design:type",Object)],kw.prototype,"fetchOnLoad",void 0),kw=_w([Ke("qbo-datalist")],kw);var Cw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ew=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Sw=class extends vw{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
|