@bbn/bbn 2.0.231 → 2.0.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/bbn.sw.js +1 -1
- package/dist/bbn.sw.js.map +1 -1
- package/dist/db.js +4 -1
- package/package.json +1 -1
package/dist/bbn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bbn={})}(this,function(e){"use strict";function n(e,n){return n.forEach(function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach(function(t){if("default"!==t&&!(t in e)){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}})}),Object.freeze(e)}function t(e,n,t,i,a){return r(n,((e,n)=>{const t=e[n];if(void 0===t)throw new TypeError(Ei(n));return t})(e,n),t,i,a)}function r(e,n,t,r,i,a){const o=E(n,t,r);if(i&&n!==o)throw new RangeError(bi(e,n,t,r,a));return o}function i(e){return null!==e&&/object|function/.test(typeof e)}function a(e,n=Map){const t=new n;return(n,...r)=>{if(t.has(n))return t.get(n);const i=e(n,...r);return t.set(n,i),i}}function o(e){return s({name:e},1)}function s(e,n){return d(e=>({value:e,configurable:1,writable:!n}),e)}function u(e){return d(e=>({get:e,configurable:1}),e)}function c(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function l(e,n){const t={};let r=e.length;for(const i of n)t[e[--r]]=i;return t}function d(e,n,t){const r={};for(const i in n)r[i]=e(n[i],i,t);return r}function m(e,n,t){const r={};for(let i=0;i<n.length;i++){const a=n[i];r[a]=e(a,i,t)}return r}function f(e,n,t){const r={};for(let i=0;i<e.length;i++)r[n[i]]=t[e[i]];return r}function h(e,n){const t=Object.create(null);for(const r of e)t[r]=n[r];return t}function y(e,n){for(const t of n)if(t in e)return 1;return 0}function M(e,n,t){for(const r of e)if(n[r]!==t[r])return 0;return 1}function g(e,n,t){const r={...t};for(let t=0;t<n;t++)r[e[t]]=0;return r}function p(e,...n){return(...t)=>e(...n,...t)}function v(e){return e[0].toUpperCase()+e.substring(1)}function w(e){return e.slice().sort()}function b(e,n){return String(n).padStart(e,"0")}function _(e,n){return Math.sign(e-n)}function E(e,n,t){return Math.min(Math.max(e,n),t)}function T(e,n){return[Math.floor(e/n),D(e,n)]}function D(e,n){return(e%n+n)%n}function S(e,n){return[A(e,n),k(e,n)]}function A(e,n){return Math.trunc(e/n)||0}function k(e,n){return e%n||0}function C(e){return.5===Math.abs(e%1)}function P(e,n,t){let r=0,i=0;for(let a=0;a<=n;a++){const n=e[t[a]],o=pa[a],s=ga/o,[u,c]=S(n,s);r+=c*o,i+=u}const[a,o]=S(r,ga);return[i+a,o]}function N(e,n,t){const r={};for(let i=n;i>=0;i--){const n=pa[i];r[t[i]]=A(e,n),e=k(e,n)}return r}function z(e){if(void 0!==e)return I(e)}function H(e){return B(I(e))}function I(e){return G(Ya(e))}function F(e,n){if(null==n)throw new RangeError(Ei(e));return n}function O(e){if(!i(e))throw new TypeError(wi);return e}function L(e,n,t=e){if(typeof n!==e)throw new TypeError(_i(t,n));return n}function G(e,n="number"){if(!Number.isInteger(e))throw new RangeError(hi(n,e));return e||0}function B(e,n="number"){if(e<=0)throw new RangeError(yi(n,e));return e}function x(e){if("symbol"==typeof e)throw new TypeError(vi);return String(e)}function R(e,n){return i(e)?String(e):Za(e,n)}function j(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(pi(e));return e}function Z(e,n="number"){if("bigint"==typeof e)throw new TypeError(gi(n));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Mi(n,e));return e}function U(e,n){return Math.trunc(Z(e,n))||0}function Y(e,n){return G(Z(e,n),n)}function q(e,n){return B(U(e,n),n)}function W(e,n){let[t,r]=S(n,ga),i=e+t;const a=Math.sign(i);return a&&a===-Math.sign(r)&&(i-=a,r+=a*ga),[i,r]}function K(e,n,t=1){return W(e[0]+n[0]*t,e[1]+n[1]*t)}function V(e,n){return W(e[0],e[1]+n)}function $(e,n){return K(n,e,-1)}function J(e,n){return _(e[0],n[0])||_(e[1],n[1])}function Q(e,n,t){return-1===J(e,n)||1===J(e,t)}function X(e,n=1){const t=BigInt(ga/n);return[Number(e/t),Number(e%t)*n]}function ee(e,n=1){const t=ga/n,[r,i]=S(e,t);return[r,i*n]}function ne(e,n=1,t){const[r,i]=e,[a,o]=S(i,n);return r*(ga/n)+(a+(t?o/n:0))}function te(e,n,t=T){const[r,i]=e,[a,o]=t(i,n);return[r*(ga/n)+a,o]}function re(e){return t(e,"isoYear",yo,ho,1),e.isoYear===yo?t(e,"isoMonth",4,12,1):e.isoYear===ho&&t(e,"isoMonth",1,9,1),e}function ie(e){return ae({...e,...so,isoHour:12}),e}function ae(e){const n=t(e,"isoYear",yo,ho,1),r=n===yo?1:n===ho?-1:0;return r&&oe(de({...e,isoDay:e.isoDay+r,isoNanosecond:e.isoNanosecond-r})),e}function oe(e){if(!e||Q(e,fo,mo))throw new RangeError(Ki);return e}function se(e){return P(e,5,no)[1]}function ue(e){const[n,t]=T(e,ga);return[N(t,5,no),n]}function ce(e){return te(e,ha)}function le(e){return he(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function de(e){const n=le(e);if(void 0!==n){const[t,r]=S(n,la);return[t,r*fa+(e.isoMicrosecond||0)*ma+(e.isoNanosecond||0)]}}function me(e,n){const[t,r]=ue(se(e)-n);return oe(de({...e,isoDay:e.isoDay+r,...t}))}function fe(...e){return he(...e)/da}function he(...e){const[n,t]=ye(...e),r=n.valueOf();if(!isNaN(r))return r-t*la}function ye(e,n=1,t=1,r=0,i=0,a=0,o=0){const s=e===yo?1:e===ho?-1:0,u=new Date;return u.setUTCHours(r,i,a,o),u.setUTCFullYear(e,n-1,t+s),[u,s]}function Me(e,n){let[t,r]=V(e,n);r<0&&(r+=ga,t-=1);const[i,a]=T(r,fa),[o,s]=T(a,ma);return ge(t*la+i,o,s)}function ge(e,n=0,t=0){const r=Math.ceil(Math.max(0,Math.abs(e)-lo)/la)*Math.sign(e),i=new Date(e-r*la);return l(ro,[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()+r,i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds(),n,t])}function pe(e,n){if(n<-lo)throw new RangeError(Ki);const t=e.formatToParts(n),r={};for(const e of t)r[e.type]=e.value;return r}function ve(e){return[e.isoYear,e.isoMonth,e.isoDay]}function we(e,n){return[n,0]}function be(){return wo}function _e(e,n){switch(n){case 2:return Te(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Ee(e){return Te(e)?366:365}function Te(e){return e%4==0&&(e%100!=0||e%400==0)}function De(e){const[n,t]=ye(e.isoYear,e.isoMonth,e.isoDay);return D(n.getUTCDay()-t,7)||7}function Se(e){return this.id===Ga?(({isoYear:e})=>e<1?["gregory-inverse",1-e]:["gregory",e])(e):this.id===Ba?_o(e):[]}function Ae(e){const n=le(e);if(n<bo){const{isoYear:n}=e;return n<1?["japanese-inverse",1-n]:["japanese",n]}const t=pe(Hs(Ba),n),{era:r,eraYear:i}=zr(t,Ba);return[r,i]}function ke(e){return Ce(e),ze(e,1),e}function Ce(e){return Ne(e,1),e}function Pe(e){return M(to,e,Ne(e))}function Ne(e,n){const{isoYear:r}=e,i=t(e,"isoMonth",1,be(),n);return{isoYear:r,isoMonth:i,isoDay:t(e,"isoDay",1,_e(r,i),n)}}function ze(e,n){return l(no,[t(e,"isoHour",0,23,n),t(e,"isoMinute",0,59,n),t(e,"isoSecond",0,59,n),t(e,"isoMillisecond",0,999,n),t(e,"isoMicrosecond",0,999,n),t(e,"isoNanosecond",0,999,n)])}function He(e){return void 0===e?0:Ro(O(e))}function Ie(e,n=0){e=Ue(e);const t=jo(e),r=Zo(e,n);return[Ro(e),r,t]}function Fe(e,n,t,r=9,i=0,a=4){n=Ue(n);let o=Bo(n,r,i),s=Re(n),u=Wo(n,a);const c=Go(n,r,i,1);return null==o?o=Math.max(t,c):Ve(o,c),s=je(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[o,c,s,u]}function Oe(e,n=6,t){let r=Re(e=Ye(e,Eo));const i=Wo(e,7);let a=Go(e,n);return a=F(Eo,a),r=je(r,a,void 0,t),[a,r,i]}function Le(e){return Uo(Ue(e))}function Ge(e,n){return Be(Ue(e),n)}function Be(e,n=4){const t=Ze(e);return[Wo(e,4),...xe(Go(e,n),t)]}function xe(e,n){return null!=e?[pa[e],e<4?9-3*e:-1]:[void 0===n?1:10**(9-n),n]}function Re(e){const n=e[Do];return void 0===n?1:U(n,Do)}function je(e,n,t,i){const a=i?ga:pa[n+1];if(a){const t=pa[n];if(a%((e=r(Do,e,1,a/t-(i?0:1),1))*t))throw new RangeError(_i(Do,e))}else e=r(Do,e,1,t?10**9:1,1);return e}function Ze(e){let n=e[So];if(void 0!==n){if("number"!=typeof n){if("auto"===x(n))return;throw new RangeError(_i(So,n))}n=r(So,Math.floor(n),0,9,1)}return n}function Ue(e){return void 0===e?{}:O(e)}function Ye(e,n){return"string"==typeof e?{[n]:e}:O(e)}function qe(e){return{overflow:Po[e]}}function We(e,n,t=9,i=0,a){let o=n[e];if(void 0===o)return a?i:void 0;if(o=x(o),"auto"===o)return a?i:null;let s=ua[o];if(void 0===s&&(s=Ja[o]),void 0===s)throw new RangeError(Ai(e,o,ua));return r(e,s,i,t,1,ca),s}function Ke(e,n,t,r=0){const i=t[e];if(void 0===i)return r;const a=x(i),o=n[a];if(void 0===o)throw new RangeError(Ai(e,a,n));return o}function Ve(e,n){if(n>e)throw new RangeError(ea)}function $e(e){return{branding:es,epochNanoseconds:e}}function Je(e,n,t){return{branding:Xo,calendar:t,timeZone:n,epochNanoseconds:e}}function Qe(e,n=e.calendar){return{branding:Jo,calendar:n,...h(oo,e)}}function Xe(e,n=e.calendar){return{branding:$o,calendar:n,...h(io,e)}}function en(e,n=e.calendar){return{branding:Ko,calendar:n,...h(io,e)}}function nn(e,n=e.calendar){return{branding:Vo,calendar:n,...h(io,e)}}function tn(e){return{branding:Qo,...h(ao,e)}}function rn(e){return{branding:ns,sign:pt(e),...h(Wa,e)}}function an(e){return te(e.epochNanoseconds,fa)[0]}function on(e){return e.epochNanoseconds}function sn(e,n){return ne(bt(e),pa[n],1)}function un(e,n,t,r,i,a,o){const s=qa[t],u={...n,[s]:n[s]+r},c=o(e,i,n),l=o(e,i,u);return[a(c),a(l)]}function cn(e,n,t){const r=ne($(n,t));if(!r)throw new RangeError(Gi);return ne($(n,e))/r}function ln(e,n,t,r){return dn(e,hn(n,t),r)}function dn(e,n,t){const[r,i]=mn(e,n,t);return ae({...ut(e,i),...r})}function mn(e,n,t){return ue(bn(se(e),n,t))}function fn(e){return bn(e,ya,7)}function hn(e,n){return pa[e]*n}function yn(e){const n=Mn(e);return[n,ut(n,1)]}function Mn(e){return uo(6,e)}function gn(e,n,t){const r=Math.min(Dt(e),6);return _t(wn(bt(e,r),n,t),r)}function pn(e,n,t,r,i,a,o,s,u,c){if(0===r&&1===i)return e;const l=ht(r,s)?ft(s)&&r<6&&t>=6?Tn:En:Dn;let[d,m,f]=l(e,n,t,r,i,a,o,s,u,c);return f&&7!==r&&(d=((e,n,t,r,i,a,o,s)=>{const u=pt(e);for(let c=r+1;c<=t;c++){if(7===c&&7!==t)continue;const r=eo(c,e);r[qa[c]]+=u;const l=ne($(o(s(i,a,r)),n));if(l&&Math.sign(l)!==u)break;e=r}return e})(d,m,t,Math.max(6,r),o,s,u,c)),d}function vn(e,n,t,r,i){if(6===n){const n=(e=>e[0]+e[1]/ga)(e);return[bn(n,t,r),0]}return wn(e,hn(n,t),r,i)}function wn(e,n,t,r){let[i,a]=e;r&&a<0&&(a+=ga,i-=1);const[o,s]=T(bn(a,n,t),ga);return W(i+o,s)}function bn(e,n,t){return _n(e/n,t)*n}function _n(e,n){return ts[n](e)}function En(e,n,t,r,i,a){const o=pt(e),s=bt(e),u=vn(s,r,i,a),c=$(s,u),l=Math.sign(u[0]-s[0])===o,d=_t(u,Math.min(t,6));return[{...e,...d},K(n,c),l]}function Tn(e,n,t,r,i,a,o,s,u,c){const l=pt(e)||1,d=ne(bt(e,5)),m=hn(r,i);let f=bn(d,m,a);const[h,y]=un(o,{...e,...Xa},6,l,s,u,c),M=f-ne($(h,y));let g=0;M&&Math.sign(M)!==l?n=V(h,f):(g+=l,f=bn(M,m,a),n=V(y,f));const p=Et(f);return[{...e,...p,days:e.days+g},n,Boolean(g)]}function Dn(e,n,t,r,i,a,o,s,u,c){const l=pt(e),d=qa[r],m=eo(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const f=A(e[d],i)*i;m[d]=f;const[h,y]=un(o,m,r,i*l,s,u,c),M=f+cn(n,h,y)*l*i,g=bn(M,i,a),p=Math.sign(g-M)===l;return m[d]=g,[m,p?y:h,p]}function Sn(e,n,t,r){const[i,a,o,s]=(e=>{const n=Be(e=Ue(e));return[e.timeZone,...n]})(r),u=void 0!==i;return((e,n,t,r,i,a)=>{t=wn(t,i,r,1);const o=n.R(t);return On(Me(t,o),a)+(e?Rn(fn(o)):"Z")})(u,n(u?e(i):rs),t.epochNanoseconds,a,o,s)}function An(e,n,t){const[r,i,a,o,s,u]=(e=>{e=Ue(e);const n=Uo(e),t=Ze(e),r=qo(e),i=Wo(e,4),a=Go(e,4);return[n,Yo(e),r,i,...xe(a,t)]})(t);return((e,n,t,r,i,a,o,s,u,c)=>{r=wn(r,u,s,1);const l=e(t).R(r);return On(Me(r,l),c)+Rn(fn(l),o)+((e,n)=>1!==n?"["+(2===n?"!":"")+e+"]":"")(t,a)+jn(n,i)})(e,n.calendar,n.timeZone,n.epochNanoseconds,r,i,a,o,s,u)}function kn(e,n){const[t,r,i,a]=(e=>(e=Ue(e),[Uo(e),...Be(e)]))(n);return o=e.calendar,s=t,u=a,On(dn(e,i,r),u)+jn(o,s);var o,s,u}function Cn(e,n){return t=e.calendar,r=e,i=Le(n),Ln(r)+jn(t,i);var t,r,i}function Pn(e,n){return In(e.calendar,Gn,e,Le(n))}function Nn(e,n){return In(e.calendar,Bn,e,Le(n))}function zn(e,n){const[t,r,i]=Ge(n);return a=i,xn(mn(e,r,t)[0],a);var a}function Hn(e,n){const[t,r,i]=Ge(n,3);return r>1&&vt(e={...e,...gn(e,r,t)}),((e,n)=>{const{sign:t}=e,r=-1===t?gt(e):e,{hours:i,minutes:a}=r,[o,s]=te(bt(r,3),ha,S);wt(o);const u=Un(s,n),c=n>=0||!t||u;return(t<0?"-":"")+"P"+Fn({Y:qn(r.years),M:qn(r.months),W:qn(r.weeks),D:qn(r.days)})+(i||a||o||c?"T"+Fn({H:qn(i),M:qn(a),S:qn(o,c)+u}):"")})(e,i)}function In(e,n,t,r){const i=r>1||0===r&&e!==La;return 1===r?e===La?n(t):Ln(t):i?Ln(t)+Zn(e,2===r):n(t)}function Fn(e){const n=[];for(const t in e){const r=e[t];r&&n.push(r,t)}return n.join("")}function On(e,n){return Ln(e)+"T"+xn(e,n)}function Ln(e){return Gn(e)+"-"+sa(e.isoDay)}function Gn(e){const{isoYear:n}=e;return(n<0||n>9999?Yn(n)+b(6,Math.abs(n)):b(4,n))+"-"+sa(e.isoMonth)}function Bn(e){return sa(e.isoMonth)+"-"+sa(e.isoDay)}function xn(e,n){const t=[sa(e.isoHour),sa(e.isoMinute)];return-1!==n&&t.push(sa(e.isoSecond)+((e,n,t,r)=>Un(e*fa+n*ma+t,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,n)),t.join(":")}function Rn(e,n=0){if(1===n)return"";const[t,r]=T(Math.abs(e),Ma),[i,a]=T(r,ya),[o,s]=T(a,ha);return Yn(e)+sa(t)+":"+sa(i)+(o||s?":"+sa(o)+Un(s):"")}function jn(e,n){return 1!==n&&(n>1||0===n&&e!==La)?Zn(e,2===n):""}function Zn(e,n){return"["+(n?"!":"")+"u-ca="+e+"]"}function Un(e,n){let t=b(9,e);return t=void 0===n?t.replace(ss,""):t.slice(0,n),t?"."+t:""}function Yn(e){return e<0?"-":"+"}function qn(e,n){return e||n?e.toLocaleString("fullwide",{useGrouping:0}):""}function Wn(e,n){const{epochNanoseconds:t}=e,r=(n.R?n:n(e.timeZone)).R(t),i=Me(t,r);return{calendar:e.calendar,...i,offsetNanoseconds:r}}function Kn(e,n,t,r=0,i=0,a,o){if(void 0!==t&&1===r&&(1===r||o))return me(n,t);const s=e.I(n);if(void 0!==t&&3!==r){const e=((e,n,t,r)=>{const i=de(n);r&&(t=fn(t));for(const n of e){let e=ne($(n,i));if(r&&(e=fn(e)),e===t)return n}})(s,n,t,a);if(void 0!==e)return e;if(0===r)throw new RangeError(qi)}return o?de(n):Vn(e,n,i,s)}function Vn(e,n,t=0,r=e.I(n)){if(1===r.length)return r[0];if(1===t)throw new RangeError(Wi);if(r.length)return r[3===t?1:0];const i=de(n),a=((e,n)=>{const t=e.R(V(n,-ga));return(e=>{if(e>ga)throw new RangeError(Yi);return e})(e.R(V(n,ga))-t)})(e,i),o=a*(2===t?-1:1);return(r=e.I(Me(i,o)))[2===t?0:r.length-1]}function $n(e,n){const t=e.I(n);if(t.length)return t[0];const r=V(de(n),-ga);return e.O(r,1)}function Jn(e,n,t){return $e(oe(K(n.epochNanoseconds,(e=>{if(Tt(e))throw new RangeError(Qi);return bt(e,5)})(e?gt(t):t))))}function Qn(e,n,t,r,i,a=Object.create(null)){const o=n(r.timeZone),s=e(r.calendar);return{...r,...rt(o,s,r,t?gt(i):i,a)}}function Xn(e,n,t,r,i=Object.create(null)){const{calendar:a}=t;return Qe(it(e(a),t,n?gt(r):r,i),a)}function et(e,n,t,r,i){const{calendar:a}=t;return Xe(at(e(a),t,n?gt(r):r,i),a)}function nt(e,n,t,r,i){const a=t.calendar,o=e(a);let s=ie(ot(o,t));n&&(r=Mt(r)),r.sign<0&&(s=o.P(s,{...Qa,months:1}),s=ut(s,-1));const u=o.P(s,r,i);return en(ot(o,u),a)}function tt(e,n,t){return tn(st(n,e?gt(t):t)[0])}function rt(e,n,t,r,i){const a=bt(r,5);let o=t.epochNanoseconds;if(Tt(r)){const s=us(t,e);o=K(Vn(e,{...at(n,s,{...r,...Xa},i),...h(no,s)}),a)}else o=K(o,a),He(i);return{epochNanoseconds:oe(o)}}function it(e,n,t,r){const[i,a]=st(n,t);return ae({...at(e,n,{...t,...Xa,days:t.days+a},r),...i})}function at(e,n,t,r){if(t.years||t.months||t.weeks)return e.P(n,t,r);He(r);const i=t.days+bt(t,5)[0];return i?ie(ut(n,i)):n}function ot(e,n,t=1){return ut(n,t-e.day(n))}function st(e,n){const[t,r]=bt(n,5),[i,a]=ue(se(e)+r);return[i,t+a]}function ut(e,n){return n?{...e,...ge(le(e)+n*la)}:e}function ct(e,n,t){const r=e(t.calendar);return ft(t)?[t,r,n(t.timeZone)]:[{...t,...so},r]}function lt(e){return e?on:de}function dt(e){return e?p(rt,e):it}function mt(e){return e?p(ur,e):cr}function ft(e){return e&&e.epochNanoseconds}function ht(e,n){return e<=6-(ft(n)?1:0)}function yt(e,n,t,r,i,a,o){const s=e(Ue(o).relativeTo),u=Math.max(Dt(i),Dt(a));if(ht(u,s))return rn(vt(((e,n,t,r)=>{const i=K(bt(e),bt(n),r?-1:1);if(!Number.isFinite(i[0]))throw new RangeError(Ki);return{...Qa,..._t(i,t)}})(i,a,u,r)));if(!s)throw new RangeError(Ji);r&&(a=gt(a));const[c,l,d]=ct(n,t,s),m=dt(d),f=mt(d),h=m(l,c,i);return rn(f(l,c,m(l,h,a),u))}function Mt(e){return rn(gt(e))}function gt(e){const n={};for(const t of qa)n[t]=-1*e[t]||0;return n}function pt(e,n=qa){let t=0;for(const r of n){const n=Math.sign(e[r]);if(n){if(t&&t!==n)throw new RangeError($i);t=n}}return t}function vt(e){for(const n of $a)r(n,e[n],-cs,cs,1);return wt(ne(bt(e),ha)),e}function wt(e){if(!Number.isSafeInteger(e))throw new RangeError(Vi)}function bt(e,n=6){return P(e,n,qa)}function _t(e,n=6){const[t,r]=e,i=N(r,n,qa);if(i[qa[n]]+=t*(ga/pa[n]),!Number.isFinite(i[qa[n]]))throw new RangeError(Ki);return i}function Et(e,n=5){return N(e,n,qa)}function Tt(e){return Boolean(pt(e,Va))}function Dt(e){let n=9;for(;n>0&&!e[qa[n]];n--);return n}function St(e,n){return[e,n]}function At(e){const n=Math.floor(e/is)*is;return[n,n+is]}function kt(e){const n=Gt(e);if(void 0===n)throw new RangeError(na(e));return n}function Ct(e,n,t){let r=Ft(Za(e));if(!r||r.j)throw new RangeError(na(e));return n?r.calendar===La&&(r=-271821===r.isoYear&&4===r.isoMonth?{...r,isoDay:20,...so}:{...r,isoDay:1,...so}):t&&r.calendar===La&&(r={...r,isoYear:vo}),Xe(r.C?zt(r):Ht(r))}function Pt(e){if(e.calendar!==La)throw new RangeError(ta(e.calendar))}function Nt(e,n,t=0,r=0){const i=qt(e.timeZone),a=ls(i);let o;return ke(e),o=e.C?Kn(a,e,n,t,r,!a.$,e.j):$n(a,e),Je(o,i,Ur(e.calendar))}function zt(e){return It(ae(ke(e)))}function Ht(e){return It(ie(Ce(e)))}function It(e){return{...e,calendar:Ur(e.calendar)}}function Ft(e){const n=Es.exec(e);return n?(e=>{const n=e[10],t="Z"===(n||"").toUpperCase();return{isoYear:Bt(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...xt(e.slice(5)),...Rt(e[16]),C:Boolean(e[6]),j:t,offset:t?void 0:n}})(n):void 0}function Ot(e){const n=bs.exec(e);return n?(e=>({isoYear:Bt(e),isoMonth:parseInt(e[4]),isoDay:1,...Rt(e[5])}))(n):void 0}function Lt(e){const n=_s.exec(e);return n?(e=>({isoYear:vo,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Rt(e[3])}))(n):void 0}function Gt(e,n){const t=Ds.exec(e);return t?((e,n)=>{const t=e[4]||e[5];if(n&&t)throw new RangeError(ta(t));return(e=>{if(Math.abs(e)>=ga)throw new RangeError(Ui);return e})((Yt(e[2])*Ma+Yt(e[3])*ya+Yt(e[4])*ha+jt(e[5]||""))*Ut(e[1]))})(t,n):void 0}function Bt(e){const n=Ut(e[1]),t=parseInt(e[2]||e[3]);if(n<0&&!t)throw new RangeError(ta(-0));return n*t}function xt(e){const n=Yt(e[3]);return{...ue(jt(e[4]||""))[0],isoHour:Yt(e[1]),isoMinute:Yt(e[2]),isoSecond:60===n?59:n}}function Rt(e){let n,t;const r=[];if(e.replace(Ss,(e,i,a)=>{const o=Boolean(i),[s,u]=a.split("=").reverse();if(u){if("u-ca"===u)r.push(s),n||(n=o);else if(o||/[A-Z]/.test(u))throw new RangeError(ta(e))}else{if(t)throw new RangeError(ta(e));t=s}return""}),r.length>1&&n)throw new RangeError(ta(e));return{timeZone:t,calendar:r[0]||La}}function jt(e){return parseInt(e.padEnd(9,"0"))}function Zt(e){return new RegExp(`^${e}$`,"i")}function Ut(e){return e&&"+"!==e?-1:1}function Yt(e){return void 0===e?0:parseInt(e)}function qt(e){const n=Kt(e);return"number"==typeof n?Rn(n):n?(e=>{if(Ps.test(e))throw new RangeError(Ri(e));if(Cs.test(e))throw new RangeError(Zi);return e.toLowerCase().split("/").map((e,n)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,t)=>e.length<=2&&!n||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!t?v(e).replace(/island|noronha|murdo|rivadavia|urville/,v):e)).join("/")})(e):rs}function Wt(e){const n=Kt(e);return"number"==typeof n?n:n?n.resolvedOptions().timeZone:rs}function Kt(e){const n=Gt(e=e.toUpperCase(),1);return void 0!==n?n:e!==rs?ks(e):void 0}function Vt(e,n){return J(e.epochNanoseconds,n.epochNanoseconds)}function $t(e,n){return J(e.epochNanoseconds,n.epochNanoseconds)}function Jt(e,n){return Qt(e,n)||Xt(e,n)}function Qt(e,n){return _(le(e),le(n))}function Xt(e,n){return _(se(e),se(n))}function er(e,n){if(e===n)return 1;try{return Wt(e)===Wt(n)}catch(e){}}function nr(e,n,t,r){const i=Fe(e,r,3,5),a=mr(n.epochNanoseconds,t.epochNanoseconds,...i);return rn(e?gt(a):a)}function tr(e,n,t,r,i,a){const o=gr(r.calendar,i.calendar),[s,u,c,l]=Fe(t,a,5),d=r.epochNanoseconds,m=i.epochNanoseconds,f=J(m,d);let h;if(f)if(s<6)h=mr(d,m,s,u,c,l);else{const t=n(((e,n)=>{if(!er(e,n))throw new RangeError(ji);return e})(r.timeZone,i.timeZone)),d=e(o);h=lr(d,t,r,i,f,s,a),h=pn(h,m,s,u,c,l,d,r,on,p(rt,t))}else h=Qa;return rn(t?gt(h):h)}function rr(e,n,t,r,i){const a=gr(t.calendar,r.calendar),[o,s,u,c]=Fe(n,i,6),l=de(t),d=de(r),m=J(d,l);let f;if(m)if(o<=6)f=mr(l,d,o,s,u,c);else{const n=e(a);f=dr(n,t,r,m,o,i),f=pn(f,d,o,s,u,c,n,t,de,it)}else f=Qa;return rn(n?gt(f):f)}function ir(e,n,t,r,i){const a=gr(t.calendar,r.calendar);return or(n,()=>e(a),t,r,...Fe(n,i,6,9,6))}function ar(e,n,t,r,i){const a=gr(t.calendar,r.calendar),o=Fe(n,i,9,9,8),s=e(a),u=ot(s,t),c=ot(s,r);return u.isoYear===c.isoYear&&u.isoMonth===c.isoMonth&&u.isoDay===c.isoDay?rn(Qa):or(n,()=>s,ie(u),ie(c),...o,8)}function or(e,n,t,r,i,a,o,s,u=6){const c=de(t),l=de(r);if(void 0===c||void 0===l)throw new RangeError(Ki);let d;if(J(l,c))if(6===i)d=mr(c,l,i,a,o,s);else{const e=n();d=e.N(t,r,i),a===u&&1===o||(d=pn(d,l,i,a,o,s,e,t,de,at))}else d=Qa;return rn(e?gt(d):d)}function sr(e,n,t,r){const[i,a,o,s]=Fe(e,r,5,5),u=bn(Mr(n,t),hn(a,o),s),c={...Qa,...Et(u,i)};return rn(e?gt(c):c)}function ur(e,n,t,r,i,a){const o=J(r.epochNanoseconds,t.epochNanoseconds);return o?i<6?fr(t.epochNanoseconds,r.epochNanoseconds,i):lr(n,e,t,r,o,i,a):Qa}function cr(e,n,t,r,i){const a=de(n),o=de(t),s=J(o,a);return s?r<=6?fr(a,o,r):dr(e,n,t,s,r,i):Qa}function lr(e,n,t,r,i,a,o){const[s,u,c]=((e,n,t,r)=>{function i(){return d={...ut(s,c++*-r),...o},m=Vn(e,d),J(u,m)===-r}const a=us(n,e),o=h(no,a),s=us(t,e),u=t.epochNanoseconds;let c=0;const l=Mr(a,s);let d,m;if(Math.sign(l)===-r&&c++,i()&&(-1===r||i()))throw new RangeError(Gi);const f=ne($(m,u));return[a,d,f]})(n,t,r,i);var l,d;return{...6===a?(l=s,d=u,{...Qa,days:hr(l,d)}):e.N(s,u,a,o),...Et(c)}}function dr(e,n,t,r,i,a){const[o,s,u]=((e,n,t)=>{let r=n,i=Mr(e,n);return Math.sign(i)===-t&&(r=ut(n,-t),i+=ga*t),[e,r,i]})(n,t,r);return{...e.N(o,s,i,a),...Et(u)}}function mr(e,n,t,r,i,a){return{...Qa,..._t(vn($(e,n),r,i,a),t)}}function fr(e,n,t){return{...Qa,..._t($(e,n),t)}}function hr(e,n){return yr(le(e),le(n))}function yr(e,n){return Math.trunc((n-e)/la)}function Mr(e,n){return se(n)-se(e)}function gr(e,n){if(e!==n)throw new RangeError(xi);return e}function pr(e){return this.m(e)[0]}function vr(e){return this.m(e)[1]}function wr(e){const[n]=this.v(e);return yr(this.p(n),le(e))+1}function br(e){const n=Ns.exec(e);if(!n)throw new RangeError(Ii(e));return[parseInt(n[1]),Boolean(n[2])]}function _r(e,n){return"M"+sa(e)+(n?"L":"")}function Er(e,n,t){return e+(n||t&&e>=t?1:0)}function Tr(e,n){return e-(n&&e>=n?1:0)}function Dr(e,n){return(n+e)*(Math.sign(n)||1)||0}function Sr(e){return xa[kr(e)]}function Ar(e){return ja[kr(e)]}function kr(e){return Yr(e.id||La)}function Cr(e){function n(e){return((e,n)=>({...zr(e,n),o:e.month,day:parseInt(e.day)}))(pe(t,e),r)}const t=Hs(e),r=Yr(e);return{id:e,h:Pr(n),l:Nr(n)}}function Pr(e){return a(n=>{const t=le(n);return e(t)},WeakMap)}function Nr(e){const n=e(0).year-po;return a(t=>{let r,i=he(t-n),a=0;const o=[],s=[];do{i+=400*la}while((r=e(i)).year<=t);do{if(i+=(1-r.day)*la,r.year===t&&(o.push(i),s.push(r.o)),i-=la,++a>100||i<-lo)throw new RangeError(Gi)}while((r=e(i)).year>=t);return{i:o.reverse(),u:aa(s.reverse())}})}function zr(e,n){let t,r,i=Hr(e);if(e.era){const a=xa[n],o=Ra[n]||{};void 0!==a&&(t="islamic"===n?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===t||"b"===t?t="bce":"ad"===t||"a"===t?t="ce":"beforeroc"===t&&(t="broc"),t=o[t]||t,r=i,i=Dr(r,a[t]||0))}return{era:t,eraYear:r,year:i}}function Hr(e){return parseInt(e.relatedYear||e.year)}function Ir(e){const{year:n,o:t,day:r}=this.h(e),{u:i}=this.l(n);return[n,i[t]+1,r]}function Fr(e,n=1,t=1){return this.l(e).i[n-1]+(t-1)*la}function Or(e,n){const t=Lr.call(this,e);return[Tr(n,t),t===n]}function Lr(e){const n=jr(this,e),t=jr(this,e-1),r=n.length;if(r>t.length){const e=Ar(this);if(e<0)return-e;for(let e=0;e<r;e++)if(n[e]!==t[e])return e+1}}function Gr(e){return yr(Fr.call(this,e),Fr.call(this,e+1))}function Br(e,n){const{i:t}=this.l(e);let r=n+1,i=t;return r>t.length&&(r=1,i=this.l(e+1).i),yr(t[n-1],i[r-1])}function xr(e){return this.l(e).i.length}function Rr(e){const n=this.h(e);return[n.era,n.eraYear]}function jr(e,n){return Object.keys(e.l(n).u)}function Zr(e){return Ur(Za(e))}function Ur(e){if((e=e.toLowerCase())!==La&&e!==Ga){const n=Hs(e).resolvedOptions().calendar;if(Yr(e)!==Yr(n))throw new RangeError(Bi(e));return n}return e}function Yr(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function qr(e,n){return t=>t===La?e:t===Ga||t===Ba?Object.assign(Object.create(e),{id:t}):Object.assign(Object.create(n),zs(t))}function Wr(e,n,t,r){const i=Kr(t,r,Ha,[],Ta);if(void 0!==i.timeZone){const r=t.F(i),a=$r(i),o=e(i.timeZone);return{epochNanoseconds:Kn(n(o),{...r,...a},void 0!==i.offset?kt(i.offset):void 0),timeZone:o}}return{...t.F(i),...so}}function Kr(e,n,t,r=[],i=[]){return Vr(n,[...e.fields(t),...i].sort(),r)}function Vr(e,n,t,r=!t){const i={};let a,o=0;for(const r of n){if(r===a)throw new RangeError(Di(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Ti(r));let n=e[r];if(void 0!==n)o=1,Us[r]&&(n=Us[r](n,r)),i[r]=n;else if(t){if(t.includes(r))throw new TypeError(Ei(r));i[r]=Oa[r]}a=r}if(r&&!o)throw new TypeError(Si(n));return i}function $r(e,n){return ze(Ys({...Oa,...e}),n)}function Jr(e,n,t,r,i){n=h(t=e.fields(t),n),r=Vr(r,i=e.fields(i),[]);let a=e.k(n,r);return a=Vr(a,[...t,...i].sort(),[]),e.F(a)}function Qr(e,n){const t=Sr(e),r=Ra[e.id||""]||{};let{era:i,eraYear:a,year:o}=n;if(void 0!==i||void 0!==a){if(void 0===i||void 0===a)throw new TypeError(Pi);if(!t)throw new RangeError(Ci);const e=t[r[i]||i];if(void 0===e)throw new RangeError(zi(i));const n=Dr(a,e);if(void 0!==o&&o!==n)throw new RangeError(Ni);o=n}else if(void 0===o)throw new TypeError(Hi(t));return o}function Xr(e,n,t,i){let{month:a,monthCode:o}=n;if(void 0!==o){const n=((e,n,t,r)=>{const i=e.L(t),[a,o]=br(n);let s=Er(a,o,i);if(o){const n=Ar(e);if(void 0===n)throw new RangeError(Li);if(n>0){if(s>n)throw new RangeError(Li);if(void 0===i){if(1===r)throw new RangeError(Li);s--}}else{if(s!==-n)throw new RangeError(Li);if(void 0===i&&1===r)throw new RangeError(Li)}}return s})(e,o,t,i);if(void 0!==a&&a!==n)throw new RangeError(Fi);a=n,i=1}else if(void 0===a)throw new TypeError(Oi);return r("month",a,1,e.B(t),i)}function ei(e,n,r,i,a){return t(n,"day",1,e.U(i,r),a)}function ni(e,n,t,r){let i=0;const a=[];for(const e of t)void 0!==n[e]?i=1:a.push(e);if(Object.assign(e,n),i)for(const n of r||a)delete e[n]}function ti(e){const n=js(e.calendar),[t,r,i]=n.v(e),[a,o]=n.q(t,r);return{year:t,monthCode:_r(a,o),day:i}}function ri(e,n){return Qe(us(n,e))}function ii(e,n){return Xe(us(n,e))}function ai(e,n){return tn(us(n,e))}function oi(e,n,t){const r=new Set(t);return(i,a)=>{const o=t&&y(i,t);if(!y(i=((e,n)=>{const t={};for(const r in n)e.has(r)||(t[r]=n[r]);return t})(r,i),e)){if(a&&o)throw new TypeError("Invalid formatting options");i={...n,...i}}return t&&(i.timeZone=rs,["full","long"].includes(i.J)&&(i.J="medium")),i}}function si(e,n=ui,t=0){const[r,,,i]=e;return(a,o=_u,...s)=>{const u=n(i&&i(...s),a,o,r,t),c=u.resolvedOptions();return[u,...ci(e,c,s)]}}function ui(e,n,t,r,i){if(t=r(t,i),e){if(void 0!==t.timeZone)throw new TypeError(ia);t.timeZone=e}return new Mo(n,t)}function ci(e,n,t){const[,r,i]=e;return t.map(e=>(e.calendar&&((e,n,t)=>{if((t||e!==La)&&e!==n)throw new RangeError(xi)})(e.calendar,n.calendar,i),r(e,n)))}function li(e,n){return{...e,calendar:n}}function di(e){const n=mi();return Me(n,e.R(n))}function mi(){return ee(Date.now(),fa)}function fi(){return Nu||(Nu=(new Mo).resolvedOptions().timeZone)}const hi=(e,n)=>`Non-integer ${e}: ${n}`,yi=(e,n)=>`Non-positive ${e}: ${n}`,Mi=(e,n)=>`Non-finite ${e}: ${n}`,gi=e=>`Cannot convert bigint to ${e}`,pi=e=>`Invalid bigint: ${e}`,vi="Cannot convert Symbol to string",wi="Invalid object",bi=(e,n,t,r,i)=>i?bi(e,i[n],i[t],i[r]):_i(e,n)+`; must be between ${t}-${r}`,_i=(e,n)=>`Invalid ${e}: ${n}`,Ei=e=>`Missing ${e}`,Ti=e=>`Invalid field ${e}`,Di=e=>`Duplicate field ${e}`,Si=e=>"No valid fields: "+e.join(),Ai=(e,n,t)=>_i(e,n)+"; must be "+Object.keys(t).join(),ki="Invalid calling context",Ci="Forbidden era/eraYear",Pi="Mismatching era/eraYear",Ni="Mismatching year/eraYear",zi=e=>`Invalid era: ${e}`,Hi=e=>"Missing year"+(e?"/era/eraYear":""),Ii=e=>`Invalid monthCode: ${e}`,Fi="Mismatching month/monthCode",Oi="Missing month/monthCode",Li="Invalid leap month",Gi="Invalid protocol results",Bi=e=>_i("Calendar",e),xi="Mismatching Calendars",Ri=e=>_i("TimeZone",e),ji="Mismatching TimeZones",Zi="Forbidden ICU TimeZone",Ui="Out-of-bounds offset",Yi="Out-of-bounds TimeZone gap",qi="Invalid TimeZone offset",Wi="Ambiguous offset",Ki="Out-of-bounds date",Vi="Out-of-bounds duration",$i="Cannot mix duration signs",Ji="Missing relativeTo",Qi="Cannot use large units",Xi="Required smallestUnit or largestUnit",ea="smallestUnit > largestUnit",na=e=>`Cannot parse: ${e}`,ta=e=>`Invalid substring: ${e}`,ra="Mismatching types for formatting",ia="Cannot specify TimeZone",aa=p(m,(e,n)=>n),oa=p(m,(e,n,t)=>t),sa=p(b,2),ua={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},ca=Object.keys(ua),la=864e5,da=1e3,ma=1e3,fa=1e6,ha=1e9,ya=6e10,Ma=36e11,ga=864e11,pa=[1,ma,fa,ha,ya,Ma,ga],va=ca.slice(0,6),wa=w(va),ba=["offset"],_a=["timeZone"],Ea=va.concat(ba),Ta=Ea.concat(_a),Da=["era","eraYear"],Sa=Da.concat(["year"]),Aa=["year"],ka=["monthCode"],Ca=["month"].concat(ka),Pa=["day"],Na=Ca.concat(Aa),za=ka.concat(Aa),Ha=Pa.concat(Na),Ia=Pa.concat(Ca),Fa=Pa.concat(ka),Oa=oa(va,0),La="iso8601",Ga="gregory",Ba="japanese",xa={[Ga]:{"gregory-inverse":-1,gregory:0},[Ba]:{"japanese-inverse":-1,japanese:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethiopic:{ethioaa:0,ethiopic:5500},coptic:{"coptic-inverse":-1,coptic:0},roc:{"roc-inverse":-1,roc:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Ra={[Ga]:{bce:"gregory-inverse",ce:"gregory"},[Ba]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},ja={chinese:13,dangi:13,hebrew:-6},Za=p(L,"string"),Ua=p(L,"boolean"),Ya=p(L,"number"),qa=ca.map(e=>e+"s"),Wa=w(qa),Ka=qa.slice(0,6),Va=qa.slice(6),$a=Va.slice(1),Ja=aa(qa),Qa=oa(qa,0),Xa=oa(Ka,0),eo=p(g,qa),no=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],to=["isoDay","isoMonth","isoYear"],ro=no.concat(to),io=w(to),ao=w(no),oo=w(ro),so=oa(ao,0),uo=p(g,ro),co=1e8,lo=co*la,mo=[co,0],fo=[-co,0],ho=275760,yo=-271821,Mo=Intl.DateTimeFormat,go="en-GB",po=1970,vo=1972,wo=12,bo=he(1868,9,8),_o=a(Ae,WeakMap),Eo="smallestUnit",To="unit",Do="roundingIncrement",So="fractionalSecondDigits",Ao="relativeTo",ko="direction",Co={constrain:0,reject:1},Po=Object.keys(Co),No={compatible:0,reject:1,earlier:2,later:3},zo={reject:0,use:1,prefer:2,ignore:3},Ho={auto:0,never:1,critical:2,always:3},Io={auto:0,never:1,critical:2},Fo={auto:0,never:1},Oo={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Lo={previous:-1,next:1},Go=p(We,Eo),Bo=p(We,"largestUnit"),xo=p(We,To),Ro=p(Ke,"overflow",Co),jo=p(Ke,"disambiguation",No),Zo=p(Ke,"offset",zo),Uo=p(Ke,"calendarName",Ho),Yo=p(Ke,"timeZoneName",Io),qo=p(Ke,"offset",Fo),Wo=p(Ke,"roundingMode",Oo),Ko="PlainYearMonth",Vo="PlainMonthDay",$o="PlainDate",Jo="PlainDateTime",Qo="PlainTime",Xo="ZonedDateTime",es="Instant",ns="Duration",ts=[Math.floor,e=>C(e)?Math.floor(e):Math.round(e),Math.ceil,e=>C(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>C(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>C(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],rs="UTC",is=5184e3,as=fe(1847),os=fe((new Date).getUTCFullYear()+10),ss=/0+$/,us=a(Wn,WeakMap),cs=2**32-1,ls=a(e=>{const n=Kt(e);return"object"==typeof n?new ms(n):new ds(n||0)});class ds{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{const n=de({...e,...so});if(!n||Math.abs(n[0])>1e8)throw new RangeError(Ki)})(e),[me(e,this.$)]}O(){}}class ms{constructor(e){this.nn=(e=>{function n(e){const n=E(e,o,s),[a,u]=At(n),c=r(a),l=r(u);return c===l?c:t(i(a,u),c,l,e)}function t(n,t,r,i){let a,o;for(;(void 0===i||void 0===(a=i<n[0]?t:i>=n[1]?r:void 0))&&(o=n[1]-n[0]);){const t=n[0]+Math.floor(o/2);e(t)===r?n[1]=t:n[0]=t+1}return a}const r=a(e),i=a(St);let o=as,s=os;return{tn(e){const t=n(e-86400),r=n(e+86400),i=e-t,a=e-r;if(t===r)return[i];const o=n(i);return o===n(a)?[e-o]:t>r?[i,a]:[]},rn:n,O(e,n){const a=E(e,o,s);let[u,c]=At(a);const l=is*n,d=n<0?()=>c>o||(o=a,0):()=>u<s||(s=a,0);for(;d();){const a=r(u),o=r(c);if(a!==o){const r=i(u,c);t(r,a,o);const s=r[0];if((_(s,e)||1)===n)return s}u+=l,c+=l}}}})((e=>n=>{const t=pe(e,n*da);return fe(Hr(t),parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second))-n})(e))}R(e){return this.nn.rn((e=>ce(e)[0])(e))*ha}I(e){const[n,t]=[fe((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*fa+r.isoMicrosecond*ma+r.isoNanosecond];var r;return this.nn.tn(n).map(e=>oe(V(ee(e,ha),t)))}O(e,n){const[t,r]=ce(e),i=this.nn.O(t+(n>0||r?1:0),n);if(void 0!==i)return ee(i,ha)}}const fs="([+-])",hs="(?:[.,](\\d{1,9}))?",ys=`(?:(?:${fs}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Ms="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+hs+")?)?",gs=fs+Ms,ps=ys+"-?(\\d{2})(?:[T ]"+Ms+"(Z|"+gs+")?)?",vs="\\[(!?)([^\\]]*)\\]",ws=`((?:${vs}){0,9})`,bs=Zt(ys+ws),_s=Zt("(?:--)?(\\d{2})-?(\\d{2})"+ws),Es=Zt(ps+ws),Ts=Zt("T?"+Ms+"(?:"+gs+")?"+ws),Ds=Zt(gs),Ss=new RegExp(vs,"g"),As=Zt(`${fs}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${hs}H)?(?:(\\d+)${hs}M)?(?:(\\d+)${hs}S)?)?`),ks=a(e=>new Mo(go,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),Cs=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,Ps=/[^\w\/:+-]+/,Ns=/^M(\d{2})(L?)$/,zs=a(Cr),Hs=a(e=>new Mo(go,{calendar:e,timeZone:rs,era:"short",year:"numeric",month:"short",day:"numeric"})),Is={P(e,n,t){const i=He(t);let a,{years:o,months:s,weeks:u,days:c}=n;if(c+=bt(n,5)[0],o||s)a=((e,n,t,i,a)=>{let[o,s,u]=e.v(n);if(t){const[n,i]=e.q(o,s);o+=t,s=Er(n,i,e.L(o)),s=r("month",s,1,e.B(o),a)}return i&&([o,s]=e.un(o,s,i)),u=r("day",u,1,e.U(o,s),a),e.p(o,s,u)})(this,e,o,s,i);else{if(!u&&!c)return e;a=le(e)}if(void 0===a)throw new RangeError(Ki);return a+=(7*u+c)*la,ie(ge(a))},N(e,n,t){if(t<=7){let r=0,i=hr({...e,...so},{...n,...so});return 7===t&&([r,i]=S(i,7)),{...Qa,weeks:r,days:i}}const r=this.v(e),i=this.v(n);let[a,o,s]=((e,n,t,r,i,a,o)=>{let s=i-n,u=a-t,c=o-r;if(s||u){const l=Math.sign(s||u);let d=e.U(i,a),m=0;if(Math.sign(c)===-l){const r=d;[i,a]=e.un(i,a,-l),s=i-n,u=a-t,d=e.U(i,a),m=l<0?-r:d}if(c=o-Math.min(r,d)+m,s){const[r,o]=e.q(n,t),[c,d]=e.q(i,a);if(u=c-r||Number(d)-Number(o),Math.sign(u)===-l){const t=l<0&&-e.B(i);s=(i-=l)-n,u=a-Er(r,o,e.L(i))+(t||e.B(i))}}}return[s,u,c]})(this,...r,...i);return 8===t&&(o+=this.cn(a,r[0]),a=0),{...Qa,years:a,months:o,days:s}},F(e,n){const t=He(n),r=Qr(this,e),i=Xr(this,e,r,t),a=ei(this,e,i,r,t);return Xe(ie(this.V(r,i,a)),this.id||La)},K(e,n){const t=He(n),r=Qr(this,e),i=Xr(this,e,r,t);return en(re(this.V(r,i,1)),this.id||La)},_(e,n){const t=He(n);let r,i,a,o=void 0!==e.eraYear||void 0!==e.year?Qr(this,e):void 0;const s=!this.id;if(void 0===o&&s&&(o=vo),void 0!==o){const n=Xr(this,e,o,t);r=ei(this,e,n,o,t);const s=this.L(o);i=Tr(n,s),a=n===s}else{if(void 0===e.monthCode)throw new TypeError(Oi);if([i,a]=br(e.monthCode),this.id&&this.id!==Ga&&this.id!==Ba)if(this.id&&"coptic"===Yr(this.id)&&0===t){const n=a||13!==i?30:6;r=e.day,r=E(r,1,n)}else if(this.id&&"chinese"===Yr(this.id)&&0===t){const n=!a||1!==i&&9!==i&&10!==i&&11!==i&&12!==i?30:29;r=e.day,r=E(r,1,n)}else r=e.day;else r=ei(this,e,Xr(this,e,vo,t),vo,t)}const u=this.G(i,a,r);if(!u)throw new RangeError("Cannot guess year");const[c,l]=u;return nn(ie(this.V(c,l,r)),this.id||La)},fields(e){return Sr(this)&&e.includes("year")?[...e,...Da]:e},k(e,n){const t=Object.assign(Object.create(null),e);return ni(t,n,Ca),Sr(this)&&(ni(t,n,Sa),this.id===Ba&&ni(t,n,Ia,Da)),t},inLeapYear(e){const[n]=this.v(e);return this.sn(n)},monthsInYear(e){const[n]=this.v(e);return this.B(n)},daysInMonth(e){const[n,t]=this.v(e);return this.U(n,t)},daysInYear(e){const[n]=this.v(e);return this.fn(n)},dayOfYear:wr,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){const[n,t]=this.v(e),[r,i]=this.q(n,t);return _r(r,i)},dayOfWeek:De,daysInWeek:()=>7},Fs={v:ve,hn:Se,q:we},Os={dayOfYear:wr,v:ve,p:he},Ls=Object.assign({},Os,{weekOfYear:pr,yearOfWeek:vr,m(e){function n(e){return(7-e<r?7:0)-e}function t(e){const t=Ee(m+e),r=e||1,i=n(D(u+t*r,7));return l=(t+(i-c)*r)/7}const r=this.id?1:4,i=De(e),a=this.dayOfYear(e),o=D(i-1,7),s=a-1,u=D(o-s,7),c=n(u);let l,d=Math.floor((s-c)/7)+1,m=e.isoYear;return d?d>t(0)&&(d=1,m++):(d=t(-1),m--),[d,m,l]}}),Gs=Object.assign({},Is,Ls,{v:ve,hn:Se,q:we,G(e,n){if(!n)return[vo,e]},sn:Te,L(){},B:be,cn:e=>e*wo,U:_e,fn:Ee,V:(e,n,t)=>({isoYear:e,isoMonth:n,isoDay:t}),p:he,un:(e,n,t)=>(e+=A(t,wo),(n+=k(t,wo))<1?(e--,n+=wo):n>wo&&(e++,n-=wo),[e,n]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Bs={v:Ir,hn:Rr,q:Or},xs={dayOfYear:wr,v:Ir,p:Fr,weekOfYear:pr,yearOfWeek:vr,m:()=>[]},Rs=Object.assign({},Is,xs,{v:Ir,hn:Rr,q:Or,G(e,n,t){const r=this.id&&"chinese"===Yr(this.id)?((e,n,t)=>{if(n)switch(e){case 1:return 1651;case 2:return t<30?1947:1765;case 3:return t<30?1966:1955;case 4:return t<30?1963:1944;case 5:return t<30?1971:1952;case 6:return t<30?1960:1941;case 7:return t<30?1968:1938;case 8:return t<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,n,t):vo;let[i,a,o]=Ir.call(this,{isoYear:r,isoMonth:wo,isoDay:31});const s=Lr.call(this,i),u=a===s;1===(_(e,Tr(a,s))||_(Number(n),Number(u))||_(t,o))&&i--;for(let r=0;r<100;r++){const a=i-r,o=Lr.call(this,a),s=Er(e,n,o);if(n===(s===o)&&t<=Br.call(this,a,s))return[a,s]}},sn(e){const n=Gr.call(this,e);return n>Gr.call(this,e-1)&&n>Gr.call(this,e+1)},L:Lr,B:xr,cn(e,n){const t=n+e,r=Math.sign(e),i=r<0?-1:0;let a=0;for(let e=n;e!==t;e+=r)a+=xr.call(this,e+i);return a},U:Br,fn:Gr,V(e,n,t){return ge(Fr.call(this,e,n,t))},p:Fr,un(e,n,t){if(t){if(n+=t,!Number.isSafeInteger(n))throw new RangeError(Ki);if(t<0)for(;n<1;)n+=xr.call(this,--e);else{let t;for(;n>(t=xr.call(this,e));)n-=t,e++}}return[e,n]},year(e){return this.h(e).year},month(e){const{year:n,o:t}=this.h(e),{u:r}=this.l(n);return r[t]+1},day(e){return this.h(e).day}}),js=qr(Fs,Bs),Zs=qr(Gs,Rs),Us={...{era:R,eraYear:U,year:U,month:q,monthCode(e){const n=R(e);return br(n),n},day:q},...oa(va,U),...oa(qa,Y),offset(e){const n=R(e);return kt(n),n}},Ys=p(f,va,no),qs=p(f,no,va),Ws="numeric",Ks=["timeZoneName"],Vs={month:Ws,day:Ws},$s={year:Ws,month:Ws},Js=Object.assign({},$s,{day:Ws}),Qs={hour:Ws,minute:Ws,second:Ws},Xs=Object.assign({},Js,Qs),eu=Object.assign({},Xs,{timeZoneName:"short"}),nu=Object.keys($s),tu=Object.keys(Vs),ru=Object.keys(Js),iu=Object.keys(Qs),au=["dateStyle"],ou=nu.concat(au),su=tu.concat(au),uu=ru.concat(au,["weekday"]),cu=iu.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),lu=uu.concat(cu),du=Ks.concat(cu),mu=Ks.concat(uu),fu=Ks.concat(["day","weekday"],cu),hu=Ks.concat(["year","weekday"],cu),yu=oi(lu,Xs),Mu=oi(lu,eu),gu=oi(lu,Xs,Ks),pu=oi(uu,Js,du),vu=oi(cu,Qs,mu),wu=oi(ou,$s,fu),bu=oi(su,Vs,hu),_u={},Eu=new Mo(void 0,{calendar:La}).resolvedOptions().calendar===La,Tu=[yu,an],Du=[Mu,an,0,(e,n)=>{const t=e.timeZone;if(n&&n.timeZone!==t)throw new RangeError(ji);return t}],Su=[gu,le],Au=[pu,le],ku=[vu,e=>se(e)/fa],Cu=[wu,le,Eu],Pu=[bu,le,Eu];let Nu;function zu(e,n,t,r,i){function a(...e){if(!(this instanceof a))throw new TypeError(ki);ic(this,n(...e))}function l(e,n){return Object.defineProperties(function(...n){return e.call(this,m(this),...n)},o(n))}function m(n){const t=rc(n);if(!t||t.branding!==e)throw new TypeError(ki);return t}return Object.defineProperties(a.prototype,{...u(d(l,t)),...s(d(l,r)),...c("Temporal."+e)}),Object.defineProperties(a,{...s(i),...o(e)}),[a,e=>{const n=Object.create(a.prototype);return ic(n,e),n},m]}function Hu(e){if(rc(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Iu(e){return Fu(e)||La}function Fu(e){const{calendar:n}=e;if(void 0!==n)return Ou(n)}function Ou(e){if(i(e)){const{calendar:n}=rc(e)||{};if(!n)throw new TypeError(Bi(e));return n}return(e=>Ur(function(e){const n=Ft(e)||Ot(e)||Lt(e);return n?n.calendar:e}(Za(e))))(e)}function Lu(e){const n={};for(const t in e)n[t]=e=>{const{calendar:n}=e;return Zs(n)[t](e)};return n}function Gu(){throw new TypeError("Cannot use valueOf")}function Bu(e){if(i(e)){const{timeZone:n}=rc(e)||{};if(!n)throw new TypeError(Ri(e));return n}return(e=>qt(function(e){const n=Ft(e);return n&&(n.timeZone||n.j&&rs||n.offset)||e}(Za(e))))(e)}function xu(e){if(i(e)){const n=rc(e);return n&&n.branding===ns?n:function(e){const n=Vr(e,Wa);return rn(vt({...Qa,...n}))}(e)}return function(e){const n=(e=>{const n=As.exec(e);return n?(e=>{function n(e,n,a){let o=0,s=0;if(a&&([o,i]=T(i,pa[a])),void 0!==e){if(r)throw new RangeError(ta(e));s=(e=>{const n=parseInt(e);if(!Number.isFinite(n))throw new RangeError(ta(e));return n})(e),t=1,n&&(i=jt(n)*(pa[a]/ha),r=1)}return o+s}let t=0,r=0,i=0,a={...l(qa,[n(e[2]),n(e[3]),n(e[4]),n(e[5]),n(e[6],e[7],5),n(e[8],e[9],4),n(e[10],e[11],3)]),...N(i,2,qa)};if(!t)throw new RangeError(Si(qa));return Ut(e[1])<0&&(a=gt(a)),a})(n):void 0})(Za(e));if(!n)throw new RangeError(na(e));return rn(vt(n))}(e)}function Ru(e){if(void 0!==e){if(i(e)){const n=rc(e)||{};switch(n.branding){case Xo:case $o:return n;case Jo:return Xe(n)}const t=Iu(e);return{...Wr(Bu,ls,Zs(t),e),calendar:t}}return function(e){const n=Ft(Za(e));if(!n)throw new RangeError(na(e));if(n.timeZone)return Nt(n,n.offset?kt(n.offset):void 0);if(n.j)throw new RangeError(na(e));return Ht(n)}(e)}}function ju(e,n){if(i(e)){const t=rc(e)||{};switch(t.branding){case Qo:return He(n),t;case Jo:return He(n),tn(t);case Xo:return He(n),ai(ls,t)}return function(e,n){return tn($r(Vr(e,wa,[],1),He(n)))}(e,n)}const t=function(e){let n,t=(e=>{const n=Ts.exec(e);return n?(Rt(n[10]),xt(n)):void 0})(Za(e));if(!t){if(t=Ft(e),!t)throw new RangeError(na(e));if(!t.C)throw new RangeError(na(e));if(t.j)throw new RangeError(ta("Z"));Pt(t)}if((n=Ot(e))&&Pe(n))throw new RangeError(na(e));if((n=Lt(e))&&Pe(n))throw new RangeError(na(e));return tn(ze(t,1))}(e);return He(n),t}function Zu(e){return void 0===e?void 0:ju(e)}function Uu(e,n){if(i(e)){const t=rc(e)||{};switch(t.branding){case Jo:return He(n),t;case $o:return He(n),Qe({...t,...so});case Xo:return He(n),ri(ls,t)}return function(e,n,t){const r=Kr(e,n,Ha,[],va),i=He(t);return Qe(ae({...e.F(r,qe(i)),...$r(r,i)}))}(Zs(Iu(e)),e,n)}const t=function(e){const n=Ft(Za(e));if(!n||n.j)throw new RangeError(na(e));return Qe(zt(n))}(e);return He(n),t}function Yu(e,n){if(i(e)){const t=rc(e);if(t&&t.branding===Vo)return He(n),t;const r=Fu(e);return function(e,n,t,r){const i=Kr(e,t,Ha,Pa);return n&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=vo),e._(i,r)}(Zs(r||La),!r,e,n)}const t=function(e,n){const t=Lt(Za(n));if(t)return Pt(t),nn(Ce(t));const r=Ct(n,0,1),{calendar:i}=r,a=e(i),[o,s,u]=a.v(r),[c,l]=a.q(o,s),[d,m]=a.G(c,l,u);return nn(ie(a.V(d,m,u)),i)}(Zs,e);return He(n),t}function qu(e,n){if(i(e)){const t=rc(e);return t&&t.branding===Ko?(He(n),t):function(e,n,t,r){const i=Kr(e,n,Na,r);return e.K(i,t)}(Zs(Iu(e)),e,n)}const t=function(e,n){const t=Ot(Za(n));if(t)return Pt(t),en(re(Ce(t)));const r=Ct(n,1);return en(ot(e(r.calendar),r))}(Zs,e);return He(n),t}function Wu(e,n){if(i(e)){const t=rc(e)||{};switch(t.branding){case $o:return He(n),t;case Jo:return He(n),Xe(t);case Xo:return He(n),ii(ls,t)}return function(e,n,t,r=[]){const i=Kr(e,n,Ha,r);return e.F(i,t)}(Zs(Iu(e)),e,n)}const t=Ct(e);return He(n),t}function Ku(e,n){if(i(e)){const t=rc(e);if(t&&t.branding===Xo)return Ie(n),t;const r=Iu(e);return function(e,n,t,r,i,a){const o=Kr(t,i,Ha,_a,Ta),s=e(o.timeZone),[u,c,l]=Ie(a),d=t.F(o,qe(u)),m=$r(o,u);return Je(Kn(n(s),{...d,...m},void 0!==o.offset?kt(o.offset):void 0,c,l),s,r)}(Bu,ls,Zs(r),r,e,n)}return function(e,n){const t=Ft(Za(e));if(!t||!t.timeZone)throw new RangeError(na(e));const{offset:r}=t,i=r?kt(r):void 0,[,a,o]=Ie(n);return Nt(t,i,a,o)}(e,n)}function Vu(e){return d(e=>n=>e($u(n)),e)}function $u(e){return us(e,ls)}function Ju(e){if(i(e)){const n=rc(e);if(n)switch(n.branding){case es:return n;case Xo:return $e(n.epochNanoseconds)}}return function(e){const n=Ft(e=R(e));if(!n)throw new RangeError(na(e));let t;if(n.j)t=0;else{if(!n.offset)throw new RangeError(na(e));t=kt(n.offset)}return n.timeZone&&Gt(n.timeZone,1),$e(me(ke(n),t))}(e)}function Qu(){function e(e,t){return new n(e,t)}function n(e,n=Object.create(null)){Zc.set(this,((e,n)=>{const t=new Mo(e,n),r=t.resolvedOptions(),i=r.locale,o=h(Object.keys(n),r),s=a(nc),u=(e,...n)=>{if(e){if(2!==n.length)throw new TypeError(ra);for(const e of n)if(void 0===e)throw new TypeError(ra)}e||void 0!==n[0]||(n=[]);const r=n.map(e=>rc(e)||Number(e));let a,u=0;for(const e of r){const n="object"==typeof e?e.branding:void 0;if(u++&&n!==a)throw new TypeError(ra);a=n}return a?s(a)(i,o,...r):[t,...r]};return u.X=t,u})(e,n))}const t=Mo.prototype,r=Object.getOwnPropertyDescriptors(t),i=Object.getOwnPropertyDescriptors(Mo);for(const n in r){const t=r[n],i=n.startsWith("format")&&Xu(n);"function"==typeof t.value?t.value="constructor"===n?e:i||ec(n):i&&(t.get=function(){if(!Zc.has(this))throw new TypeError(ki);return(...e)=>i.apply(this,e)},Object.defineProperties(t.get,o(`get ${n}`)))}return i.prototype.value=n.prototype=Object.create({},r),Object.defineProperties(e,i),e}function Xu(e){return Object.defineProperties(function(...n){const t=Zc.get(this),[r,...i]=t(e.includes("Range"),...n);return r[e](...i)},o(e))}function ec(e){return Object.defineProperties(function(...n){return Zc.get(this).X[e](...n)},o(e))}function nc(e){const n=pc[e];if(!n)throw new TypeError((e=>`Cannot format ${e}`)(e));return si(n,a(ui),1)}const tc=new WeakMap,rc=tc.get.bind(tc),ic=tc.set.bind(tc),ac={era:function(e){if(void 0!==e)return Za(e)},eraYear:z,year:I,month:H,daysInMonth:H,daysInYear:H,inLeapYear:Ua,monthsInYear:H},oc={monthCode:Za},sc={day:H},uc={dayOfWeek:H,dayOfYear:H,weekOfYear:function(e){if(void 0!==e)return H(e)},yearOfWeek:z,daysInWeek:H},cc=Lu(Object.assign({},ac,oc,sc,uc)),lc=Lu({...ac,...oc}),dc=Lu({...oc,...sc}),mc={calendarId:e=>e.calendar},fc=m(e=>n=>n[e],qa.concat("sign")),hc=m((e,n)=>e=>e[no[n]],va),yc={epochMilliseconds:an,epochNanoseconds:function(e){return((e,n=1)=>{const[t,r]=e,i=Math.floor(r/n),a=ga/n;return BigInt(t)*BigInt(a)+BigInt(i)})(e.epochNanoseconds)}},[Mc,gc]=zu(ns,function(e=0,n=0,t=0,r=0,i=0,a=0,o=0,s=0,u=0,c=0){return rn(vt(d(Y,l(qa,[e,n,t,r,i,a,o,s,u,c]))))},{...fc,blank:function(e){return!e.sign}},{with:(e,n)=>gc(function(e,n){return rn((t=e,r=n,vt({...t,...Vr(r,Wa)})));var t,r}(e,n)),negated:e=>gc(Mt(e)),abs:e=>gc(function(e){return-1===e.sign?Mt(e):e}(e)),add:(e,n,t)=>gc(yt(Ru,Zs,ls,0,e,xu(n),t)),subtract:(e,n,t)=>gc(yt(Ru,Zs,ls,1,e,xu(n),t)),round:(e,n)=>gc(function(e,n,t,r,i){const a=Dt(r),[o,s,u,c,l]=((e,n,t)=>{e=Ye(e,Eo);let r=Bo(e);const i=t(e[Ao]);let a=Re(e);const o=Wo(e,7);let s=Go(e);if(void 0===r&&void 0===s)throw new RangeError(Xi);if(null==s&&(s=0),null==r&&(r=Math.max(s,n)),Ve(r,s),a=je(a,s,1),a>1&&s>5&&r!==s)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[r,s,a,o,i]})(i,a,e),d=Math.max(a,o);if(!l&&d<=6)return rn(vt(((e,n,t,r,i)=>{const a=vn(bt(e),t,r,i);return{...Qa,..._t(a,n)}})(r,o,s,u,c)));if(!ft(l)&&!r.sign)return r;if(!l)throw new RangeError(Ji);const[m,f,h]=ct(n,t,l),y=lt(h),M=dt(h),g=mt(h),p=M(f,m,r);ft(l)||(ae(m),ae(p));let v=g(f,m,p,o);const w=r.sign,b=pt(v);if(w&&b&&w!==b)throw new RangeError(Gi);return v=pn(v,y(p),o,s,u,c,f,m,y,M),rn(v)}(Ru,Zs,ls,e,n)),total:(e,n)=>function(e,n,t,r,i){const a=Dt(r),[o,s]=((e,n)=>{const t=n((e=Ye(e,To))[Ao]);let r=xo(e);return r=F(To,r),[r,t]})(i,e),u=Math.max(o,a);if(!s&&ht(u,s))return sn(r,o);if(!s)throw new RangeError(Ji);if(!r.sign)return 0;const[c,l,d]=ct(n,t,s),m=lt(d),f=dt(d),h=mt(d),y=f(l,c,r);ft(s)||(ae(c),ae(y));const M=h(l,c,y,o);return ht(o,s)?sn(M,o):((e,n,t,r,i,a,o)=>{const s=pt(e),[u,c]=un(r,eo(t,e),t,s,i,a,o),l=cn(n,u,c);return e[qa[t]]+l*s})(M,m(y),o,l,c,m,f)}(Ru,Zs,ls,e,n),toLocaleString(e,n,t){return Intl.DurationFormat?new Intl.DurationFormat(n,t).format(this):Hn(e)},toString:Hn,toJSON:e=>Hn(e),valueOf:Gu},{from:e=>gc(xu(e)),compare:(e,n,t)=>function(e,n,t,r,i,a){const o=e(Ue(a).relativeTo),s=Math.max(Dt(r),Dt(i));if(M(qa,r,i))return 0;if(ht(s,o))return J(bt(r),bt(i));if(!o)throw new RangeError(Ji);const[u,c,l]=ct(n,t,o),d=lt(l),m=dt(l);return J(d(m(c,u,r)),d(m(c,u,i)))}(Ru,Zs,ls,xu(e),xu(n),t)}),pc={Instant:Tu,PlainDateTime:Su,PlainDate:Au,PlainTime:ku,PlainYearMonth:Cu,PlainMonthDay:Pu},vc=si(Tu),wc=si(Du),bc=si(Su),_c=si(Au),Ec=si(ku),Tc=si(Cu),Dc=si(Pu),[Sc,Ac]=zu(Qo,function(e=0,n=0,t=0,r=0,i=0,a=0){return tn(ze(d(U,l(no,[e,n,t,r,i,a])),1))},hc,{with(e,n,t){return Ac(function(e,n,t){return tn(((e,n,t)=>$r({...h(wa,e),...Vr(n,wa)},He(t)))(e,n,t))}(this,Hu(n),t))},add:(e,n)=>Ac(tt(0,e,xu(n))),subtract:(e,n)=>Ac(tt(1,e,xu(n))),until:(e,n,t)=>gc(sr(0,e,ju(n),t)),since:(e,n,t)=>gc(sr(1,e,ju(n),t)),round:(e,n)=>Ac(function(e,n){const[t,r,i]=Oe(n,5);var a;return tn((a=i,mn(e,hn(t,r),a)[0]))}(e,n)),equals:(e,n)=>function(e,n){return!Xt(e,n)}(e,ju(n)),toLocaleString(e,n,t){const[r,i]=Ec(n,t,e);return r.format(i)},toString:zn,toJSON:e=>zn(e),valueOf:Gu},{from:(e,n)=>Ac(ju(e,n)),compare:(e,n)=>Xt(ju(e),ju(n))}),[kc,Cc]=zu(Jo,p(function(e,n,t,r,i=0,a=0,o=0,s=0,u=0,c=0,m=La){return Qe(ae(ke(d(U,l(ro,[n,t,r,i,a,o,s,u,c])))),e(m))},Zr),{...mc,...cc,...hc},{with:(e,n,t)=>Cc(function(e,n,t,r){const i=e(n.calendar),a=[...i.fields(Ha),...va].sort(),o={...ti(s=n),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;const u=Vr(t,a),c=He(r),l=i.k(o,u),d={...o,...u};return Qe(ae({...i.F(l,qe(c)),...ze(Ys(d),c)}))}(Zs,e,Hu(n),t)),withCalendar:(e,n)=>Cc(li(e,Ou(n))),withPlainTime:(e,n)=>Cc(function(e,n=so){return Qe(ae({...e,...n}))}(e,Zu(n))),add:(e,n,t)=>Cc(Xn(Zs,0,e,xu(n),t)),subtract:(e,n,t)=>Cc(Xn(Zs,1,e,xu(n),t)),until:(e,n,t)=>gc(rr(Zs,0,e,Uu(n),t)),since:(e,n,t)=>gc(rr(Zs,1,e,Uu(n),t)),round:(e,n)=>Cc(function(e,n){return Qe(ln(e,...Oe(n)),e.calendar)}(e,n)),equals:(e,n)=>function(e,n){return!Jt(e,n)&&e.calendar===n.calendar}(e,Uu(n)),toZonedDateTime:(e,n,t)=>Lc(function(e,n,t,r){const i=((e,n,t,r)=>{const i=(e=>jo(Ue(e)))(r);return Vn(e(n),t,i)})(e,t,n,r);return Je(oe(i),t,n.calendar)}(ls,e,Bu(n),t)),toPlainDate:e=>Fc(Xe(e)),toPlainTime:e=>Ac(tn(e)),toLocaleString(e,n,t){const[r,i]=bc(n,t,e);return r.format(i)},toString:kn,toJSON:e=>kn(e),valueOf:Gu},{from:(e,n)=>Cc(Uu(e,n)),compare:(e,n)=>Jt(Uu(e),Uu(n))}),[Pc,Nc]=zu(Vo,p(function(e,n,t,r=La,i=vo){const a=U(n),o=U(t),s=e(r);return nn(ie(Ce({isoYear:U(i),isoMonth:a,isoDay:o})),s)},Zr),{...mc,...dc},{with:(e,n,t)=>Nc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(Ha).sort(),o=(e=>{const n=js(e.calendar),[t,r,i]=n.v(e),[a,o]=n.q(t,r);return{monthCode:_r(a,o),day:i}})(n),s=Vr(t,a),u=i.k(o,s);return i._(u,r)}(Zs,e,Hu(n),t)),equals:(e,n)=>function(e,n){return!Qt(e,n)&&e.calendar===n.calendar}(e,Yu(n)),toPlainDate(e,n){return Fc(function(e,n,t,r){return((e,n,t)=>Jr(e,n,Fa,O(t),Aa))(e(n.calendar),t,r)}(Zs,e,this,n))},toLocaleString(e,n,t){const[r,i]=Dc(n,t,e);return r.format(i)},toString:Nn,toJSON:e=>Nn(e),valueOf:Gu},{from:(e,n)=>Nc(Yu(e,n))}),[zc,Hc]=zu(Ko,p(function(e,n,t,r=La,i=1){const a=U(n),o=U(t),s=e(r);return en(re(Ce({isoYear:a,isoMonth:o,isoDay:U(i)})),s)},Zr),{...mc,...lc},{with:(e,n,t)=>Hc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(Na).sort(),o=(e=>{const n=js(e.calendar),[t,r]=n.v(e),[i,a]=n.q(t,r);return{year:t,monthCode:_r(i,a)}})(n),s=Vr(t,a),u=i.k(o,s);return i.K(u,r)}(Zs,e,Hu(n),t)),add:(e,n,t)=>Hc(nt(Zs,0,e,xu(n),t)),subtract:(e,n,t)=>Hc(nt(Zs,1,e,xu(n),t)),until:(e,n,t)=>gc(ar(Zs,0,e,qu(n),t)),since:(e,n,t)=>gc(ar(Zs,1,e,qu(n),t)),equals:(e,n)=>function(e,n){return!Qt(e,n)&&e.calendar===n.calendar}(e,qu(n)),toPlainDate(e,n){return Fc(function(e,n,t,r){return((e,n,t)=>Jr(e,n,za,O(t),Pa))(e(n.calendar),t,r)}(Zs,e,this,n))},toLocaleString(e,n,t){const[r,i]=Tc(n,t,e);return r.format(i)},toString:Pn,toJSON:e=>Pn(e),valueOf:Gu},{from:(e,n)=>Hc(qu(e,n)),compare:(e,n)=>Qt(qu(e),qu(n))}),[Ic,Fc]=zu($o,p(function(e,n,t,r,i=La){return Xe(ie(Ce(d(U,{isoYear:n,isoMonth:t,isoDay:r}))),e(i))},Zr),{...mc,...cc},{with:(e,n,t)=>Fc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(Ha).sort(),o=ti(n),s=Vr(t,a),u=i.k(o,s);return i.F(u,r)}(Zs,e,Hu(n),t)),withCalendar:(e,n)=>Fc(li(e,Ou(n))),add:(e,n,t)=>Fc(et(Zs,0,e,xu(n),t)),subtract:(e,n,t)=>Fc(et(Zs,1,e,xu(n),t)),until:(e,n,t)=>gc(ir(Zs,0,e,Wu(n),t)),since:(e,n,t)=>gc(ir(Zs,1,e,Wu(n),t)),equals:(e,n)=>function(e,n){return!Qt(e,n)&&e.calendar===n.calendar}(e,Wu(n)),toZonedDateTime(e,n){const t=i(n)?n:{timeZone:n};return Lc(function(e,n,t,r,i){const a=e(i.timeZone),o=i.plainTime,s=void 0!==o?n(o):void 0,u=t(a);let c;return c=s?Vn(u,{...r,...s}):$n(u,{...r,...so}),Je(c,a,r.calendar)}(Bu,ju,ls,e,t))},toPlainDateTime:(e,n)=>Cc(function(e,n=so){return Qe(ae({...e,...n}))}(e,Zu(n))),toPlainYearMonth(e){return Hc(function(e,n,t){return((e,n)=>{const t=Kr(e,n,za);return e.K(t,void 0)})(e(n.calendar),t)}(Zs,e,this))},toPlainMonthDay(e){return Nc(function(e,n,t){return((e,n)=>{const t=Kr(e,n,Fa);return e._(t)})(e(n.calendar),t)}(Zs,e,this))},toLocaleString(e,n,t){const[r,i]=_c(n,t,e);return r.format(i)},toString:Cn,toJSON:e=>Cn(e),valueOf:Gu},{from:(e,n)=>Fc(Wu(e,n)),compare:(e,n)=>Qt(Wu(e),Wu(n))}),[Oc,Lc]=zu(Xo,p(function(e,n,t,r,i=La){return Je(oe(X(j(t))),n(r),e(i))},Zr,function(e){return qt(Za(e))}),{...yc,...mc,...Vu(cc),...Vu(hc),offset:e=>Rn($u(e).offsetNanoseconds),offsetNanoseconds:e=>$u(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>function(e,n){const t=e(n.timeZone),r=us(n,t),[i,a]=yn(r),o=ne($($n(t,i),$n(t,a)),Ma,1);if(o<=0)throw new RangeError(Gi);return o}(ls,e)},{with:(e,n,t)=>Lc(function(e,n,t,r,i){const{calendar:a,timeZone:o}=t,s=e(a),u=n(o),c=[...s.fields(Ha),...Ea].sort(),l=(e=>{const n=us(e,ls),t=Rn(n.offsetNanoseconds),r=js(e.calendar),[i,a,o]=r.v(n),[s,u]=r.q(i,a),c=_r(s,u);return{...qs(n),year:i,monthCode:c,day:o,offset:t}})(t),d=Vr(r,c),m=s.k(l,d),f={...l,...d},[h,y,M]=Ie(i,2);return Je(Kn(u,{...s.F(m,qe(h)),...ze(Ys(f),h)},kt(f.offset),y,M),o,a)}(Zs,ls,e,Hu(n),t)),withCalendar:(e,n)=>Lc(li(e,Ou(n))),withTimeZone:(e,n)=>Lc(function(e,n){return{...e,timeZone:n}}(e,Bu(n))),withPlainTime:(e,n)=>Lc(function(e,n,t){const r=n.timeZone,i=e(r),a={...us(n,i),...t||so};let o;return o=t?Kn(i,a,a.offsetNanoseconds,2):$n(i,a),Je(o,r,n.calendar)}(ls,e,Zu(n))),add:(e,n,t)=>Lc(Qn(Zs,ls,0,e,xu(n),t)),subtract:(e,n,t)=>Lc(Qn(Zs,ls,1,e,xu(n),t)),until:(e,n,t)=>gc(rn(tr(Zs,ls,0,e,Ku(n),t))),since:(e,n,t)=>gc(rn(tr(Zs,ls,1,e,Ku(n),t))),round:(e,n)=>Lc(function(e,n,t){let{epochNanoseconds:r,timeZone:i,calendar:a}=n;const[o,s,u]=Oe(t);if(0===o&&1===s)return n;const c=e(i);if(6===o)r=((e,n,t,r)=>{const i=us(t,n),[a,o]=e(i),s=t.epochNanoseconds,u=$n(n,a),c=$n(n,o);if(Q(s,u,c))throw new RangeError(Gi);return _n(cn(s,u,c),r)?c:u})(yn,c,n,u);else{const e=c.R(r);r=Kn(c,ln(Me(r,e),o,s,u),e,2,0,1)}return Je(r,i,a)}(ls,e,n)),startOfDay:e=>Lc(function(e,n){const{timeZone:t,calendar:r}=n,i=((e,n,t)=>$n(n,e(us(t,n))))(Mn,e(t),n);return Je(i,t,r)}(ls,e)),equals:(e,n)=>function(e,n){return!$t(e,n)&&!!er(e.timeZone,n.timeZone)&&e.calendar===n.calendar}(e,Ku(n)),toInstant:e=>Bc(function(e){return $e(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Cc(ri(ls,e)),toPlainDate:e=>Fc(ii(ls,e)),toPlainTime:e=>Ac(ai(ls,e)),toLocaleString(e,n,t={}){const[r,i]=wc(n,t,e);return r.format(i)},toString:(e,n)=>An(ls,e,n),toJSON:e=>An(ls,e),valueOf:Gu,getTimeZoneTransition(e,n){const{timeZone:t,epochNanoseconds:r}=e,i=function(e){const n=Ye(e,ko),t=Ke(ko,Lo,n,0);if(!t)throw new RangeError(_i(ko,t));return t}(n),a=ls(t).O(r,i);return a?Lc({...e,epochNanoseconds:a}):null}},{from:(e,n)=>Lc(Ku(e,n)),compare:(e,n)=>$t(Ku(e),Ku(n))}),[Gc,Bc]=zu(es,function(e){return $e(oe(X(j(e))))},yc,{add:(e,n)=>Bc(Jn(0,e,xu(n))),subtract:(e,n)=>Bc(Jn(1,e,xu(n))),until:(e,n,t)=>gc(nr(0,e,Ju(n),t)),since:(e,n,t)=>gc(nr(1,e,Ju(n),t)),round:(e,n)=>Bc(function(e,n){const[t,r,i]=Oe(n,5,1);return $e(vn(e.epochNanoseconds,t,r,i,1))}(e,n)),equals:(e,n)=>function(e,n){return!Vt(e,n)}(e,Ju(n)),toZonedDateTimeISO:(e,n)=>Lc(function(e,n,t=La){return Je(e.epochNanoseconds,n,t)}(e,Bu(n))),toLocaleString(e,n,t){const[r,i]=vc(n,t,e);return r.format(i)},toString:(e,n)=>Sn(Bu,ls,e,n),toJSON:e=>Sn(Bu,ls,e),valueOf:Gu},{from:e=>Bc(Ju(e)),fromEpochMilliseconds:e=>Bc(function(e){return $e(oe(ee(Y(e),fa)))}(e)),fromEpochNanoseconds:e=>Bc(function(e){return $e(oe(X(j(e))))}(e)),compare:(e,n)=>Vt(Ju(e),Ju(n))}),xc=Object.defineProperties({},{...c("Temporal.Now"),...s({timeZoneId:()=>fi(),instant:()=>Bc($e(mi())),zonedDateTimeISO:(e=fi())=>Lc(Je(mi(),Bu(e),La)),plainDateTimeISO:(e=fi())=>Cc(Qe(di(ls(Bu(e))),La)),plainDateISO:(e=fi())=>Fc(Xe(di(ls(Bu(e))),La)),plainTimeISO:(e=fi())=>Ac(tn(di(ls(Bu(e)))))})}),Rc=Object.defineProperties({},{...c("Temporal"),...s({PlainYearMonth:zc,PlainMonthDay:Pc,PlainDate:Ic,PlainTime:Sc,PlainDateTime:kc,ZonedDateTime:Oc,Instant:Gc,Duration:Mc,Now:xc})}),jc=Qu(),Zc=new WeakMap;function Uc(e,...n){let t=bbn.lng[e]||e;if(n.length){let e=0;return t.replace(/\%([d|s])/g,(t,r)=>{let i=n[e++];i||(i="d"===r?0:"");const a=typeof i;return"d"===r&&"number"!==a?(i=parseFloat(i),isNaN(i)&&(i=0)):"s"===r&&"string"!==a&&(i=""+i),i})}return t}Object.create(Intl),s({DateTimeFormat:jc});var Yc,qc,Wc,Kc,Vc,$c,Jc={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:["PageUp","PageDown","End","Home","ArrowUp","ArrowDown"],leftRight:["Home","End","ArrowLeft","ArrowRight"],dels:["Backspace","Delete","Insert"],confirm:["Enter","Tab"],alt:["CapsLock","Shift","Control","Alt","NumLock"],numbers:["0","1","2","3","4","5","6","7","8","9","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9"],numsigns:["NumpadSubtract","NumpadDecimal","-","."]},comparators:[">=","<=",">","<","="],operators:["+","-","/","*"],tags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],colors:{darkgrey:"#5a6a62",black:"#000000",anthracite:"#454545",grey:"#d3d3d3",white:"#ffffff",beige:"#fdfdfd",lightgrey:"#dcdcdc",pastelblue:"#ddebf6",cyan:"#00c8f8",blue:"#6e9ecf",indigo:"#3f51b5",navy:"#354458",webblue:"#2196f3",teal:"#009688",turquoise:"#1fda9a",pastelgreen:"#e2efda",palegreen:"#ccffcc",green:"#00a03e",olive:"#92b06a",pastelorange:"#fff2cc",yellow:"#fdf200",orange:"#ff9900",pink:"#eb65a0",purple:"#a333c8",red:"#db3340",brown:"#8c6954"},reserved:["abstract","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","new","null","package","return","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","while","with"],mockText:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",regexp:{url:new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),ip:/^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,hostname:/^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i}},Qc={siteTitle:null===(Yc=globalThis.document)||void 0===Yc?void 0:Yc.title,logging:!1,cdn:"",lang:"en",host:(null===(qc=globalThis.location)||void 0===qc?void 0:qc.protocol)+"//"+(null===(Wc=globalThis.location)||void 0===Wc?void 0:Wc.hostname),url:null===(Kc=globalThis.location)||void 0===Kc?void 0:Kc.href,old_path:null,getParameters:{},loading:!1,_enumerated:[],get isEnumerating(){return this._enumerated.length>0},width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:50,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,isVisible:!(null===(Vc=globalThis.document)||void 0===Vc?void 0:Vc.hidden),timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax",online:null===($c=globalThis.navigator)||void 0===$c?void 0:$c.onLine},Xc=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};class el extends Error{constructor(e){super(e||"Request canceled"),this.name="Cancel",this.__BBN_CANCEL__=!0}}const nl=["POST","PUT","PATCH","DELETE"],tl=(e,n,t={},r)=>{const i=new XMLHttpRequest,a=nl.includes(e.toUpperCase()),o=new Promise((r,o)=>{i.open(e.toUpperCase(),n,!0);const{body:s,headers:u}=((e,n)=>{const t=new Headers(n||{});let r=e;return null==e||e instanceof FormData||"object"!=typeof e||(t.set("Content-Type","application/json"),r=JSON.stringify(e)),{body:r,headers:t}})(t.data,t.headers);u.forEach((e,n)=>{i.setRequestHeader(n,e)}),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e=>{const n=e.lengthComputable?e.total:void 0;t.onUploadProgress({loaded:e.loaded,total:n,progress:n?e.loaded/n:void 0})}),i.onreadystatechange=()=>{if(4!==i.readyState)return;const e=(e=>{const n={};return e?(e.trim().split(/[\r\n]+/).forEach(e=>{const t=e.split(": "),r=t.shift(),i=t.join(": ");r&&(n[r.toLowerCase()]=i)}),n):n})(i.getAllResponseHeaders()),n=1223===i.status?204:i.status,a=i.statusText||"";let s=i.responseText;if((e["content-type"]||"").includes("application/json"))try{s=JSON.parse(i.responseText)}catch(e){}const u={data:s,status:n,statusText:a,headers:e,config:t,request:i};if(n>=200&&n<300)r(u);else{const e=new Error("Request failed with status code "+n);e.response=u,e.config=t,e.request=i,o(e)}},i.onerror=()=>{const e=new Error("Network Error");e.config=t,e.request=i,o(e)},i.onabort=()=>{o(new el("Request canceled"))},a?i.send(s):i.send()});return o.cancel=()=>i.abort(),o};var rl={isCancel:e=>!(!e||!0!==e.__BBN_CANCEL__),run:(e,n,t={},r)=>{t.baseURL&&!/^https?:\/\//i.test(n)&&(n=t.baseURL.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,"")),n=((e,n)=>{if(!n)return e;const t=new URLSearchParams(n).toString();return t?e+(e.includes("?")?"&":"?")+t:e})(n,t.params);return"function"==typeof t.onUploadProgress&&nl.includes(e.toUpperCase())?tl(e,n,t):((e,n,t={},r)=>{const i={method:e,headers:new Headers(t.headers||{}),signal:null==r?void 0:r.signal},a=nl.includes(e.toUpperCase());if(null!=t.data&&a&&("object"!=typeof t.data||t.data instanceof FormData?i.body=t.data:(i.headers.set("Content-Type","application/json"),i.body=JSON.stringify(t.data))),t.params){const e=new URLSearchParams(t.params).toString();n+=(n.includes("?")?"&":"?")+e}const o=fetch(n,i).then(e=>Xc(void 0,void 0,void 0,function*(){let n;const r=e.headers.get("content-type")||"";try{n=r.includes("application/json")?yield e.json():r.startsWith("text/")?yield e.text():r.includes("multipart/")?yield e.arrayBuffer():yield e.blob()}catch(t){n=yield e.text()}const i={data:n,status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries()),config:t,request:e};if(!e.ok){const n=new Error("Request failed with status code "+e.status);throw n.response=i,n.config=t,n.request=e,n}return i})).catch(e=>{if("AbortError"===e.name)throw new el("Request canceled");throw e});return o.cancel=()=>r.abort(),o})(e,n,t,r)}};function il(...e){if(!e.length)return!1;for(let n of e)if("[object String]"!=={}.toString.apply(n))return!1;return!0}function al(...e){if(!e.length)return!1;for(let n of e)if(!Number.isInteger(n))return!1;return!0}function ol(...e){if(!e.length)return!1;for(let n of e)if(!(n&&n.constructor&&n.call&&n.apply))return!1;return!0}function sl(...e){var n,t,r,i;if((null===(t=null===(n=globalThis.bbn)||void 0===n?void 0:n.env)||void 0===t?void 0:t.logging)&&void 0!==globalThis.console){let n,t=5,a="log";e[0]&&"object"==typeof e[0]&&e[0]._bbn_console_style&&(e[0]._bbn_console_mode&&ol(globalThis.console[e[0]._bbn_console_mode])?a=e[0]._bbn_console_mode:(n=e[0]._bbn_console_style,t=e[0]._bbn_console_level),e.shift());const o=globalThis.console[a];if((null===(i=null===(r=globalThis.bbn)||void 0===r?void 0:r.env)||void 0===i?void 0:i.loggingLevel)>=t){let t=0;for(;t<e.length;){let r=typeof e[t],i=[e[t]];"string"!==r&&"number"!==r||i.unshift("%c %s ",n),o.apply(globalThis.console,i),t++}}}}function ul(e,n,t){if(!il(e)||!al(n))throw sl(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return n<0&&(n=e.length+n),al(t)?e.substring(n,(t<0?e.length:n)+t):e.substring(n)}function cl(e,n=!1){let t=null;if("object"==typeof e)for(var r in t={},e)ul(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(n&&"object"==typeof e[r]?t[r]=cl(e[r],!0):t[r]=e[r]);return t||!1}function ll(e,n,t=!1,r=!1){if(null!==e&&"object"==typeof e){let i=Object.keys(t?cl(e):e);r&&i.reverse();for(let t of i)if(!1===n(e[t],t))break}return e}function dl(...e){if(!e.length)return!1;for(let n of e)if("[object Object]"!=={}.toString.apply(n))return!1;return!0}function ml(...e){if(!e.length)return!1;for(let n of e)if(!Array.isArray(n))return!1;return!0}function fl(...e){if(!e.length)return!1;for(let n of e)if(["boolean","object","symbol"].includes(typeof n)||""===n||isNaN(n))return!1;return!0}function hl(...e){if(!e.length)return!1;for(let n of e)if(!n||"object"!=typeof n||!(Symbol.iterator in Object(n)))return!1;return!0}function yl(e,n){if(!(fl(e)&&e>0)){if(hl(e)){for(let t=0;t<e.length;t++)if(!1===n(e[t],t))return;return e}return ll(e,n)}for(let t=0;t<e;t++)if(!1===n(t,t))return}function Ml(...e){let n=!1,t=[];for(let r=0;r<e.length;r++)if(!0===e[r])n=!0;else{if(!e[r])continue;if("object"!=typeof e[r])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[r]);t.push(e[r])}if(!t.length)throw new Error("No argument given");let r,i=t[0];for(let e=1;e<t.length;e++)ll(t[e],(e,t)=>{n?ml(e)?(i[t]=ml(i[t])?i[t]:[],yl(e,(e,n)=>{if(e&&"object"==typeof e){let r=i[t][n];ml(e)?ml(r)||(r=[]):dl(r)||(r={}),i[t][n]=Ml(!0,r,e)}else i[t][n]=e})):dl(e)?i[t]=Ml(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:(i[t]!==e||void 0===e&&!Object.prototype.hasOwnProperty.apply(i,[t]))&&(i[t]=e)}),r||(r=!!t[e].__bbnNoData);return r&&"bbnData"in window&&(i.__bbnData&&i.__bbnData.unset(),Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1})),i}var gl=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};const pl=globalThis.indexedDB||globalThis.webkitIndexedDB||globalThis.mozIndexedDB||globalThis.OIndexedDB||globalThis.msIndexedDB,vl=(e,n)=>{if(e){if(null==n?void 0:n.length){const t={};return ll(e,(e,r)=>{n.includes(r)&&(t[r]=e)}),t}return e}},wl=(e,n=[])=>{var t;return(null===(t=null==e?void 0:e.conditions)||void 0===t?void 0:t.length)?e.conditions.forEach(e=>{e.field&&!n.includes(e.field)?n.push(e.field):e.conditions&&wl(e,n)}):dl(e)?ll(e,(e,t)=>{n.includes(t)||n.push(t)}):ml(e)&&e.forEach(e=>{e.field&&!n.includes(e.field)?n.push(e.field):e.conditions&&wl(e,n)}),n},bl=e=>{const n=e.keys.PRIMARY.columns;return n.length>1?n:n[0]},_l=e=>new Promise((n,t)=>{e.onsuccess=()=>n(e.result),e.onerror=()=>t(e.error)}),El=e=>new Promise((n,t)=>{e.oncomplete=()=>n(),e.onabort=()=>t(e.error),e.onerror=()=>t(e.error)});class Tl{constructor(e){this.lastErr=null,this.dbName=e}hasMissingStores(e,n){const t=Dl._structures[e]||{};return Object.keys(t).some(e=>!n.objectStoreNames.contains(e))}getConnection(){return gl(this,arguments,void 0,function*(e=""){let n=Dl._connections[e||this.dbName];if(!n){if(yield Dl.open(e||this.dbName),!Dl._connections[e||this.dbName])throw new Error(Uc("The database %s is not open",this.dbName));n=Dl._connections[e||this.dbName]}return n})}get structure(){const e=Dl._structures[this.dbName];if(!e)throw new Error(Uc("No structure defined for database %s",this.dbName));return e}getStore(e,n){return gl(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!this.structure[e])throw new Error(Uc("Table %s is not defined in database structure %s",e,this.dbName));if(!t.objectStoreNames.contains(e))throw new Error(Uc("Table %s does not exist in database %s. Schema upgrade required.",e,this.dbName));const r=t.transaction([e],n);return r.onabort=()=>{this.lastErr=r.error,sl(r.error)},r.onerror=()=>{this.lastErr=r.error,sl(r.error)},[r,r.objectStore(e)]})}lastError(){return this.lastErr}close(){const e=Dl._connections[this.dbName];e&&(e.close(),delete Dl._connections[this.dbName])}insert(e,n){return gl(this,void 0,void 0,function*(){const t=Array.isArray(n)?n:[n];if(!t.length)return 0;const[r,i]=yield this.getStore(e,"readwrite");let a=0;for(const e of t){const n=i.put(e);n.onsuccess=()=>{a++},n.onerror=()=>{this.lastErr=n.error,sl(n.error)}}return yield El(r),a})}update(e,n,t){return gl(this,arguments,void 0,function*(e,n,t,r=!1){const i=yield this.selectAll(e,[],t);if(!i.length)return 0;const a=this.structure[e],o=bl(a);if(Array.isArray(o))throw new Error(Uc("Composite primary keys are not supported by this update implementation"));const[s,u]=yield this.getStore(e,"readwrite");let c=0;for(const e of i){const t=Ml({},r?{[o]:e[o]}:e,n);if(!(o in t))throw new Error(Uc("No primary key in the data"));const i=u.put(t);i.onsuccess=()=>{c++},i.onerror=()=>{this.lastErr=i.error,sl(i.error)}}return yield El(s),c})}delete(e,n){return gl(this,void 0,void 0,function*(){const t=this.structure[e],r=bl(t);if(Array.isArray(r))throw new Error(Uc("Composite primary keys are not supported by this delete implementation"));if(!(r in n))throw new Error(Uc("No primary key in the filter"));const[i,a]=yield this.getStore(e,"readwrite");return a.delete(n[r]),yield El(i),1})}selectOne(e,n){return gl(this,arguments,void 0,function*(e,n,t=null,r=null,i=0,a=1){var o;const s=yield this.selectAll(e,[n],t,r,i,a);return null===(o=null==s?void 0:s[0])||void 0===o?void 0:o[n]})}select(e){return gl(this,arguments,void 0,function*(e,n=[],t=null,r=null,i=0){const a=yield this.selectAll(e,n,t,r,i,1);return a.length?a[0]:null})}selectAll(e){return gl(this,arguments,void 0,function*(e,n=[],t=null,r=null,i=0,a=null){const[o,s]=yield this.getStore(e,"readonly"),u=this.structure[e],c=bl(u),l=[],d=dl(t)?Object.keys(t)[0]:!t||ml(t)?null:c;if(!Array.isArray(c)&&d===c){if(Array.isArray(null==t?void 0:t[c])){const e=t[c],r=Math.min(e.length-i,null!=a?a:e.length),u=e.slice(i,i+r);for(const e of u){const t=yield _l(s.get(e)),r=vl(t,n);r&&l.push(r)}return yield El(o),l}const e=dl(t)?t[c]:t,r=yield _l(s.get(e)),u=vl(r,n);return u&&l.push(u),yield El(o),l}return yield new Promise((e,r)=>{const o=s.openCursor();let u=0;o.onsuccess=r=>{var o,s;const c=r.target.result;if(!c)return void e();if(!t||!(null===(s=null===(o=globalThis.bbn)||void 0===o?void 0:o.fn)||void 0===s?void 0:s.search)||0===globalThis.bbn.fn.search([c.value],t)){if(u>=i){const t=vl(c.value,n);if(t&&l.push(t),null!==a&&l.length>=a)return void e()}u++}c.continue()},o.onerror=()=>{this.lastErr=o.error,sl(o.error),r(o.error)}}),yield El(o),l})}getColumnValues(e,n){return gl(this,arguments,void 0,function*(e,n,t=null,r=null,i=0,a=null){return(yield this.selectAll(e,wl(t,[n]),t,r,i,a)).map(e=>e[n]).filter(e=>void 0!==e)})}copyTable(e,n){return gl(this,arguments,void 0,function*(e,n,t=[],r=null,i=null,a=0,o=null){if(!this.structure[n])throw new Error(Uc("Source table %s does not exist in structure",n));let s=yield this.getConnection();if(s.objectStoreNames.contains(e)||(yield Dl.add(this.dbName,e,this.structure[n]),s=yield this.getConnection()),!s.objectStoreNames.contains(e))throw new Error(Uc("The target table %s does not exist",e));const u=yield this.selectAll(n,t,r,i,a,o);return u.length?this.insert(e,u):0})}deleteTable(e){return gl(this,void 0,void 0,function*(){return yield Dl.remove(this.dbName,e),!0})}}const Dl={_structures:{},_connections:{},_stores:{},ok:void 0!==pl,close(e){const n=this._connections[e];n&&(n.close(),delete this._connections[e])},updateStructure(e,n,t){const r=bl(n);if(!t.objectStoreNames.contains(e)){const i=t.createObjectStore(e,{keyPath:r});ll(n.keys,(e,n)=>{"PRIMARY"!==n&&i.createIndex(n,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})})}},importStructure(e,n){return gl(this,void 0,void 0,function*(){this._structures[e]||(this._structures[e]={});for(const t in n)this._structures[e].hasOwnProperty(t)||(this._structures[e][t]=n[t]);yield this.reopenWithUpgrade(e),this.close(e)})},getExistingVersion(e){return gl(this,void 0,void 0,function*(){const n=this._connections[e];return n?n.version:new Promise((n,t)=>{if(!pl)return void t(new Error(Uc("IndexedDB is not available")));const r=pl.open(e);r.onsuccess=()=>{const e=r.result,t=e.version;e.close(),n(t)},r.onupgradeneeded=()=>{const e=r.result,t=e.version;e.close(),n(t)},r.onerror=()=>t(r.error)})})},reopenWithUpgrade(e){return gl(this,void 0,void 0,function*(){if(!this._structures[e])throw new Error(Uc("Impossible to find a structure for the database %s",e));const n=yield this.getExistingVersion(e),t=n+1;return sl(Uc("Going from version %s to version %s for database %s",n,t,e)),this._connections[e]&&this.close(e),yield this.open(e,t)})},open(e,n){return gl(this,void 0,void 0,function*(){if(!pl)throw new Error(Uc("IndexedDB is not available"));if(!this._structures[e])throw new Error(Uc("Impossible to find a structure for the database %s",e));return this._connections[e]||(yield new Promise((t,r)=>{const i=n?pl.open(e,n):pl.open(e);i.onupgradeneeded=()=>{const n=i.result;ll(this._structures[e]||{},(e,t)=>{n.objectStoreNames.contains(t)||this.updateStructure(t,e,n)})},i.onsuccess=()=>{this._connections[e]=i.result,t(i.result)},i.onerror=()=>r(i.error),i.onblocked=n=>{r(Uc("open: Upgrade blocked for database %s. Please close other connections to proceed.",e))}})),new Tl(e)})},add(e,n,t){return gl(this,void 0,void 0,function*(){var r;if(!(null===(r=null==t?void 0:t.keys)||void 0===r?void 0:r.PRIMARY)||!(null==t?void 0:t.fields))throw new Error(Uc("The database structure for %s is not valid (missing keys, fields, or primary key)",n));if(this._structures[e]||(this._structures[e]={}),this._structures[e][n]=t,this._connections[e])throw new Error(Uc("Database %s is already open. Close it before adding a new store.",e));yield this.open(e);let i=this._connections[e];if(!i.objectStoreNames.contains(n)){if(yield this.reopenWithUpgrade(e),!this._connections[e])throw new Error(Uc("The database %s is not open after upgrade",e));i=this._connections[e]}return this.close(e),!0})},remove(e,n){return gl(this,void 0,void 0,function*(){const t=this._structures[e];if(!(null==t?void 0:t[n]))return;const r=t[n];delete t[n];try{const t=this._connections[e];if(!t)return;const r=t.version+1;this.close(e),yield new Promise((t,i)=>{if(!pl)return void i(new Error(Uc("IndexedDB is not available")));const a=pl.open(e,r);a.onupgradeneeded=()=>{const e=a.result;e.objectStoreNames.contains(n)&&(e.deleteObjectStore(n),e.close())},a.onsuccess=()=>{a.result.close(),t()},a.onerror=()=>i(a.error),a.onblocked=()=>i(new Error(Uc("Remove blocked for database %s",e)))})}catch(e){throw t[n]=r,e}})}};function Sl(e,n,t){let r=(new Date).getTime(),i={key:e,url:ul(e,0,e.length-33),loader:n,aborter:t,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(i),bbn.env.loadersHistory.unshift(i);let a=bbn.env.loadersHistory.length;for(;a&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)a--,bbn.env.loading||bbn.env.loadersHistory.splice(a,1);return r}function Al(e,...n){if("object"==typeof e){const t=[];return 1===n.length&&"string"==typeof n[0]?t.push(...n[0].split(".")):t.push(...n),t.reduce((e,n)=>{if(e)return e[e instanceof Array?parseInt(n):n]},e)}}function kl(e){if(!il(e)){if(!e.toString)throw sl(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Cl(...e){if(!e.length)return!1;for(let n of e)if("[object Date]"!=={}.toString.apply(n))return!1;return!0}function Pl(e,n,t,r="asc"){let i=Al(e,t),a=Al(n,t),o=(typeof i).toLowerCase(),s=(typeof a).toLowerCase();if("asc"!==r&&il(r)&&"desc"===r.toLowerCase()&&(r="desc"),o!==s)i=o,a=s;else switch(o){case"string":i=kl(i).toLowerCase(),a=kl(a).toLowerCase();break;case"boolean":i=i?1:0,a=a?1:0;break;case"object":Cl(i)&&(i=i.getTime(),a=Cl(a)?a.getTime():0)}return i<a?"desc"===r?1:-1:i>a?"desc"===r?-1:1:0}function Nl(e){return e&&"object"==typeof e?Object.keys(e).length:0}function zl(e){return!e||(ml(e)?!e.length:"object"==typeof e&&!Nl(e))}function Hl(...e){if(!e.length)return!1;for(let n of e)if("[object Null]"!=={}.toString.apply(n))return!1;return!0}function Il(e){let n=0;for(let t=0;t<e.length;t++){n=(n<<5)-n+e.charCodeAt(t),n|=0}return Math.abs(n).toString(16)}function Fl(e){let n=0;for(let t=0;t<e.length;t++){n=e.charCodeAt(t)+(n<<6)+(n<<16)-n,n|=0}return Math.abs(n).toString(16)}function Ol(e){return Il(e).padStart(8,"0")+Fl(e).padStart(8,"0")}function Ll(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof HTMLElement))return!1;return!0}function Gl(e){let n="",t=e;if(e.id)return"#"+e.id;for(;t&&t!==document.body;){let e=t,r=e.localName,i=0;if(!r)break;if(e===document.body)break;e.id&&(n="#"+e.id+">"+n,i=1);let a=t.parentNode,o=Array.from(a.children).filter(n=>n.tagName===e.tagName);if(!i&&o.length>1){let n=Array.from(a.children).indexOf(e)+1;n>1&&(r+=":nth-child("+n+")")}n=r+(n?">"+n:""),t=a}return n}function Bl(...e){var n;if(!e.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(let t of e){if(!bbn.cp.isComponent(t)||Ll(t)||!(null===(n=t.$el)||void 0===n?void 0:n.bbnCid))return!1}return!0}function xl(e,n=null,t=0,r=null,i=null){if(t||r||(r=new WeakSet),void 0===e)e="__BBN_UNDEFINED__";else if(null===e)e="__BBN_NULL__";else if(null===e)e="__BBN_NULL__";else if("function"==typeof e)e="__BBN_FUNCTION__"+e.toString();else if("symbol"==typeof e)e="__BBN_SYMBOL__"+e.toString();else if("string"==typeof e)e="__BBN_STRING__"+e;else if("number"==typeof e)e="__BBN_NUMBER__"+e.toString();else if("boolean"==typeof e)e="__BBN_BOOLEAN__"+e.toString();else if([void 0,Object,Array,null].includes(null==e?void 0:e.constructor)){if(bbn.fn.isArray(e))if(r.has(e)||n&&n<t)e="__BBN_ARRAY__"+e.constructor.toString();else{r.add(e);let a="";for(let o=0;o<e.length;o++)a+="__BBN_ITEM"+o.toString()+"__"+i(e[o],n,t+1,r,i);e="__BBN_ARRAY__"+a}else if("object"==typeof e)if(r.has(e)||n&&n<t)e="__BBN_OBJECT__"+(e.constructor?e.constructor.toString():"");else{r.add(e);let a="";for(let o in e){let s=o;"string"!=typeof s&&(s=i(s,i,1,1)),a+="__BBN_PROP_"+s+"__"+i(e[o],n,t+1,r,i)}e="__BBN_OBJECT__"+a}}else e=Ll(e)?Bl(e)?"__BBN_CP__"+e.$cid:e.bbnId?"__BBN_DOM__"+e.tagName+"/"+e.bbnId+e.bbnHash:"__BBN_DOM__"+Gl(e):"__BBN_UNKNOWN_OBJECT__"+e.constructor.toString();return e}function Rl(...e){let n="",t=null;2===e.length&&"number"==typeof e[1]&&(t=e[1],e=[e[0]]);for(let r in e)n+=xl(e[r],t,0,null,xl);return Ol(n)}function jl(e){var n="0123456789abcdef";function t(e){var t,r="";for(t=0;t<=3;t++)r+=n.charAt(e>>8*t+4&15)+n.charAt(e>>8*t&15);return r}function r(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function i(e,n,t,i,a,o){return r(function(e,n){return e<<n|e>>>32-n}(r(r(n,e),r(i,o)),a),t)}function a(e,n,t,r,a,o,s){return i(n&t|~n&r,e,n,a,o,s)}function o(e,n,t,r,a,o,s){return i(n&r|t&~r,e,n,a,o,s)}function s(e,n,t,r,a,o,s){return i(n^t^r,e,n,a,o,s)}function u(e,n,t,r,a,o,s){return i(t^(n|~r),e,n,a,o,s)}var c,l,d,m,f,h=function(e){var n,t=1+(e.length+8>>6),r=new Array(16*t);for(n=0;n<16*t;n++)r[n]=0;for(n=0;n<e.length;n++)r[n>>2]|=e.charCodeAt(n)<<n%4*8;return r[n>>2]|=128<<n%4*8,r[16*t-2]=8*e.length,r}(e),y=1732584193,M=-271733879,g=-1732584194,p=271733878;for(c=0;c<h.length;c+=16)l=y,d=M,m=g,f=p,y=a(y,M,g,p,h[c+0],7,-680876936),p=a(p,y,M,g,h[c+1],12,-389564586),g=a(g,p,y,M,h[c+2],17,606105819),M=a(M,g,p,y,h[c+3],22,-1044525330),y=a(y,M,g,p,h[c+4],7,-176418897),p=a(p,y,M,g,h[c+5],12,1200080426),g=a(g,p,y,M,h[c+6],17,-1473231341),M=a(M,g,p,y,h[c+7],22,-45705983),y=a(y,M,g,p,h[c+8],7,1770035416),p=a(p,y,M,g,h[c+9],12,-1958414417),g=a(g,p,y,M,h[c+10],17,-42063),M=a(M,g,p,y,h[c+11],22,-1990404162),y=a(y,M,g,p,h[c+12],7,1804603682),p=a(p,y,M,g,h[c+13],12,-40341101),g=a(g,p,y,M,h[c+14],17,-1502002290),y=o(y,M=a(M,g,p,y,h[c+15],22,1236535329),g,p,h[c+1],5,-165796510),p=o(p,y,M,g,h[c+6],9,-1069501632),g=o(g,p,y,M,h[c+11],14,643717713),M=o(M,g,p,y,h[c+0],20,-373897302),y=o(y,M,g,p,h[c+5],5,-701558691),p=o(p,y,M,g,h[c+10],9,38016083),g=o(g,p,y,M,h[c+15],14,-660478335),M=o(M,g,p,y,h[c+4],20,-405537848),y=o(y,M,g,p,h[c+9],5,568446438),p=o(p,y,M,g,h[c+14],9,-1019803690),g=o(g,p,y,M,h[c+3],14,-187363961),M=o(M,g,p,y,h[c+8],20,1163531501),y=o(y,M,g,p,h[c+13],5,-1444681467),p=o(p,y,M,g,h[c+2],9,-51403784),g=o(g,p,y,M,h[c+7],14,1735328473),y=s(y,M=o(M,g,p,y,h[c+12],20,-1926607734),g,p,h[c+5],4,-378558),p=s(p,y,M,g,h[c+8],11,-2022574463),g=s(g,p,y,M,h[c+11],16,1839030562),M=s(M,g,p,y,h[c+14],23,-35309556),y=s(y,M,g,p,h[c+1],4,-1530992060),p=s(p,y,M,g,h[c+4],11,1272893353),g=s(g,p,y,M,h[c+7],16,-155497632),M=s(M,g,p,y,h[c+10],23,-1094730640),y=s(y,M,g,p,h[c+13],4,681279174),p=s(p,y,M,g,h[c+0],11,-358537222),g=s(g,p,y,M,h[c+3],16,-722521979),M=s(M,g,p,y,h[c+6],23,76029189),y=s(y,M,g,p,h[c+9],4,-640364487),p=s(p,y,M,g,h[c+12],11,-421815835),g=s(g,p,y,M,h[c+15],16,530742520),y=u(y,M=s(M,g,p,y,h[c+2],23,-995338651),g,p,h[c+0],6,-198630844),p=u(p,y,M,g,h[c+7],10,1126891415),g=u(g,p,y,M,h[c+14],15,-1416354905),M=u(M,g,p,y,h[c+5],21,-57434055),y=u(y,M,g,p,h[c+12],6,1700485571),p=u(p,y,M,g,h[c+3],10,-1894986606),g=u(g,p,y,M,h[c+10],15,-1051523),M=u(M,g,p,y,h[c+1],21,-2054922799),y=u(y,M,g,p,h[c+8],6,1873313359),p=u(p,y,M,g,h[c+15],10,-30611744),g=u(g,p,y,M,h[c+6],15,-1560198380),M=u(M,g,p,y,h[c+13],21,1309151649),y=u(y,M,g,p,h[c+4],6,-145523070),p=u(p,y,M,g,h[c+11],10,-1120210379),g=u(g,p,y,M,h[c+2],15,718787259),M=u(M,g,p,y,h[c+9],21,-343485551),y=r(y,l),M=r(M,d),g=r(g,m),p=r(p,f);return t(y)+t(M)+t(g)+t(p)}function Zl(e){const n="function"==typeof e?e.toString():e;if("string"!=typeof n)throw Error("Unexpected type "+typeof e+" while parsing function");let t,r="",i=!1,a=!1,o=!1,s="",u=0,c=0,l=[],d={},m="",f=['"',"'","`"],h=!1,y=!1,M=!1,g=!1,p=!1,v=!1,w="";for(let e=0;e<n.length;e++)if(M||"/"!==n[e]||"*"!==n[e+1])if("/"===n[e]&&"*"===n[e-1])M=!1;else if(g||"/"!==n[e]||"/"!==n[e+1])if("\n"===n[e])g=!1;else{if(M||g)continue;if(n[e]===m&&!h&&m)m="",r+=n[e];else if(m)h="\\"===n[e]&&!h,r+=n[e];else if(f.includes(n[e])&&!h)m=n[e],r+=n[e];else if("("===n[e]){if(u++,""!==r.trim()){if("function"===r.trim())o=!0;else if("async"!==r.trim()){s=r.trim();let e=s.match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);e&&(s=e[1])}r=""}}else if(")"===n[e])u===c+1&&(y?(d.default=r.trim(),y=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(l.push(d),d={}),r=""),c++;else if(p&&"}"!==n[e])r+=n[e];else{if(u&&u===c&&":"===n[e]){const r=n.substring(e+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!r)throw Error("Unexpected ':' while parsing function");w=r[1],t=n.substring(e+r[0].length).trim();break}if(!(r||"="!==n[e]||">"!==n[e+1]||u!==c||c||i)){d.name=n.slice(0,e).trim(),l.push(d),d={},i=!0,t=bbn.fn.substr(n,e+2).trim();break}if(u===c&&"="===n[e]&&">"===n[e+1]){""!==r.trim()&&(d.name=r.trim(),l.push(d),d={},r=""),i=!0,e++;continue}if("="===n[e]&&u>c&&!y)d.name=r.trim(),r="",y=!0;else if(","===n[e])if(p)r+=n[e];else{if(!(u>c))throw Error("Unexpected ',' while parsing function");y?(d.default=r.trim(),y=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(l.push(d),d={}),r=""}else if("{"===n[e]||"}"===n[e]){if(u===c){t=n.substring(e).trim();break}u>c?"{"!==n[e]||p?"}"===n[e]&&p&&(p=!1,r+=n[e]):(p=!0,r=n[e]):r=""}else{if(i){t=n.substring(n.indexOf("=>")+2).trim();break}" "===n[e]?""!==r.trim()&&("async"===r.trim()&&(a=!0),u>c?r+=n[e]:r=""):r+=n[e]}}}else g=!0,r="";else M=!0,r="";if(!t){if(!i)throw Error("Unexpected end of function while parsing function");t=r}t.substr(0,25).indexOf("[native code]")>-1&&(v=!0);const b=l.map(e=>e.name+(e.default?" = "+e.default:"")).join(", ");return{body:t,args:l,argString:b,isArrow:i,hasFunction:o,name:s,isAsync:a,isBinary:v,hash:jl(t+(s?"-"+s:"")+(b?"-"+b:"")),returnType:w}}function Ul(e,n,t){if(t||(t=[]),e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(![void 0,Object,Array,null].includes(null==e?void 0:e.constructor)||![void 0,Object,Array,null].includes(null==n?void 0:n.constructor))return!1;let r=Object.keys(e).sort(),i=Object.keys(n).sort();if(Rl(r)!==Rl(i))return!1;let a=!0;if(e&&"object"==typeof e){if(t.includes(e))return a;t.push(e)}return yl(r,t=>{if(!Ul(e[t],n[t]))return a=!1,!1}),a}if(e&&n&&"function"==typeof e&&"function"==typeof n){let t=Zl(e),r=Zl(n),i=t.hash===r.hash;return i&&t.isBinary&&(i=!1),i}return!1}function Yl(e,n,t){switch(t){case"===":case"=":case"equal":case"eq":case"is":return e===n;case"!==":case"notequal":case"neq":case"isnot":return e!==n;case"!=":case"different":return e!=n;case"contains":case"contain":case"icontains":case"icontain":return!zl(e)&&!zl(n)&&-1!==kl(e).toLowerCase().indexOf(kl(n).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!Hl(e)&&!Hl(n))||-1===kl(e.toLowerCase()).indexOf(kl(n.toLowerCase()));case"starts":case"start":return!Hl(e)&&!Hl(n)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof n&&(n=n.toString()||""),0===e.indexOf(n));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!Hl(e)&&!Hl(n)&&0===kl(e).toLowerCase().indexOf(kl(n).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!Hl(e)&&!Hl(n)&&e.lastIndexOf(n)===e.length-n.length;case"like":return!Hl(e)&&!Hl(n)&&kl(e).toLowerCase()===kl(n).toLowerCase();case"gt":case">":return e>n;case"gte":case">=":return e>=n;case"lt":case"<":return e<n;case"lte":case"<=":return e<=n;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(dl(e,n))return Ul(e,n);default:return e==n}}function ql(e,n){if(!n.conditions||!n.logic||!ml(n.conditions))throw new Error("Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects");let t="AND"===n.logic;return yl(n.conditions,r=>{let i;if(r.conditions&&ml(r.conditions))i=ql(e,r);else if(i=Yl(Al(e,r.field),r.value,r.operator),i){let n=r.field.split("."),t=n.pop();n.length&&yl(n,n=>e=e[n]),void 0===Al(e,t)&&void 0!==r.value&&(i=!1)}if(i){if("OR"===n.logic)return t=!0,!1}else if("AND"===n.logic)return t=!1,!1}),t}function Wl(e,n="="){if(!dl(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!ml(e.conditions)){let t=[];ll(e,(e,r)=>{dl(e)&&"object"==typeof e.conditions?t.push(Wl(e)):t.push({field:r,operator:n,value:e})}),e={conditions:t}}return e.logic||(e.logic="AND"),e}function Kl(e,n,t=null,r="=",i=0,a=!1){if(!hl(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;let o,s,u=!1;if(n)if("string"==typeof n)o={conditions:[{field:n,value:t,operator:r||"="}]};else if(a=!0===r,i="number"==typeof t?t:a?e.length-1:0,"function"==typeof n)u=!0,s=n;else if(dl(n))if("field"in n&&"value"in n)o={conditions:[n],logic:"AND"};else if("conditions"in n)o=n;else{const e=[];for(let t in n)e.push({field:t,value:n[t],operator:"="});o={conditions:e,logic:"AND"}}else ml(n)&&(o={conditions:n,logic:"AND"});else u=!0,s=e=>ql({value:e},Wl({logic:"AND",conditions:[{field:"value",operator:r||"=",value:t}]}));if(u||o){if("number"!=typeof i&&(i=a?e.length-1:0),!s){const e=Wl(o);s=n=>ql(n,e)}if(a)for(let n=i;n>=0;n--){if(bbn.env._enumerated.push(!0),s(e[n]))return bbn.env._enumerated.pop(),e[n],n;bbn.env._enumerated.pop()}else for(let n=i;n<e.length;n++){if(bbn.env._enumerated.push(!0),s(e[n]))return bbn.env._enumerated.pop(),e[n],n;bbn.env._enumerated.pop()}}return-1}function Vl(e,n,t=null,r="=",i=0,a=!1,o=!1){let s=Kl(e,n,t,r,i,a);return s>-1?e[s]:n&&["object","function"].includes(typeof n)&&5 in arguments?a:o}function $l(e,n=null,t=!1){let r=Kl(bbn.env.loaders,{key:e});if(r>-1){let i=bbn.env.loaders.splice(r,1)[0],a=Vl(bbn.env.loadersHistory,{key:e,start:i.start});return a&&(a.loading=!1,a.duration=(new Date).getTime()-i.start,"string"==typeof n?(a.errorMessage=n,a.error=!t,a.abort=t):dl(n)&&(a.success=!0)),!0}return!1}function Jl(e){let n=Kl(bbn.env.loaders,{key:e});return n>-1?bbn.env.loaders[n]:null}function Ql(e,n,t=null,r="=",i=0){if(!ml(e))try{e=Array.from(e)}catch(n){throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array")}let a={};const o=[],s="function"==typeof n;if(!n||!e.length)return e;if("object"==typeof n)a=n;else if("string"==typeof n)a[n]=t;else if(!s)throw new Error("Search function error: The prop argument should be a string or an object");let u;u="function"==typeof n?n:(e,n)=>ql(e,a);for(let n=0;n<e.length&&(bbn.env._enumerated.push(!0),!(u(e[n],n)&&(bbn.env._enumerated.pop(),o.push(e[n]),bbn.env._enumerated.push(!0),i&&o.length>=i)));n++)bbn.env._enumerated.pop();return o}function Xl(e){if(Nl(e)){bbn.var.colors||(bbn.var.colors={});let n=document.createElement("style");document.head.appendChild(n);let t=n.sheet,r=0;ll(e,(e,n)=>{bbn.var.colors[n]=e,t.insertRule(".bbn-"+n+", .bbn-color-text-"+n+" {color: "+e+" !important;}",r),t.insertRule("svg.bbn-"+n+", .bbn-"+n+" svg, svg.bbn-color-text-"+n+", .bbn-color-text-"+n+" svg {fill: "+e+";}",r),t.insertRule(".bbn-bg-"+n+", .bbn-color-bg-"+n+", .bbn-color-background-"+n+" {background-color: "+e+" !important;}",r),t.insertRule(".bbn-border-"+n+", .bbn-color-border-"+n+" {border-color: "+e+" !important;}",r),t.insertRule(".bbn-color-"+n+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",r)})}}function ed(e,n=null,t=""){if(e&&"FORM"===e.tagName){let r=(n,t)=>{let r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",n),r.setAttribute("value",t),e.appendChild(r)};n=JSON.parse(JSON.stringify(n||{})),t=t||"",n&&ll(n,(n,i)=>{let a=t?`${t}[${i}]`:i;n instanceof Date?r(a,n.toISOString()):n instanceof Array?n.forEach((n,t)=>{const i=`${a}[${t}]`;"object"==typeof n?ed(e,n,i):r(i,n.toString())}):"object"!=typeof n||n instanceof File?r(a,n.toString()):ed(e,n,a)})}}function nd(e,n){let t=0;yl(n,n=>{n.style[e]="auto"}),yl(n,(n,r)=>{let i=n.getBoundingClientRect(),a=i[e]%1?i[e]-i[e]%1+1:i[e];a>t&&(t=a)}),yl(n,(n,r)=>{t&&(n.style[e]=t+"px")})}function td(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function rd(e,n,t,r=""){return t.toString().replace(dl(e)?e:new RegExp(td(e),"g"+r),n)}function id(e,n,t){let r={};return n&&ll(n,(e,n)=>{-1===n.indexOf("_bbn")&&(r[n]=e)}),e+":"+jl((t||"json")+JSON.stringify(r))}function ad(e,n=null,t=null,r=null,i=null,a=null){if(null===n&&e&&"object"==typeof e&&e.url&&(e.abort&&(a=e.abort),e.failure&&(i=e.failure),e.success&&(r=e.success),e.data&&(t=e.data),e.datatype&&(n=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=rd("//","/",e)),n||(n="json");let o=id(e,t,n),s=Jl(o);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&Ml(t||{},{_bbn_token:bbn.env.token});const u=new AbortController;let c={responseType:n,signal:u.signal};"text"===n?c.headers={accept:"text/javascript","Content-Type":"text/javascript"}:"json"===n?c.headers={accept:"application/json","Content-Type":"application/json"}:"html"===n&&(c.headers={accept:"text/html","Content-Type":"text/html"});let l="get";dl(t)&&Nl(t)>0&&(c.data=t,l="post");let d=rl.run(l,e,c).then(n=>{if($l(o,n),bbn.fn.defaultEndLoadingFunction(e,m,t,n),200===n.status)ol(r)&&r(n.data,n.headers);else{let e=1;ol(i)&&(e=i(d,n.message,n)),e&&bbn.fn.defaultAjaxErrorFunction(d,n.message,n)}return n}).catch(n=>{let r=rl.isCancel(n);if($l(o,n.message||n.response.data,r),bbn.fn.defaultEndLoadingFunction(e,m,t,n),r){let t=1;ol(a)&&(t=a(n.message,e)),t&&bbn.fn.defaultAjaxAbortFunction(n.message,e)}else{let e=1;ol(i)&&(e=i(d,n.message,n)),e&&bbn.fn.defaultAjaxErrorFunction(d,n.message,n.response)}return n.response}),m=Sl(o,d,u);return bbn.fn.defaultStartLoadingFunction(e,m,t,o),d}}const od=new TextDecoder;function sd(e){return od.decode(e)}function ud(e,n){if(e&&il(e)){let t=e.split("/").pop();if(!n)return t;let r=n.length;if(t&&ul(t,-r)===n)return ul(t,0,t.length-r)}return""}const cd=[["y","year",31536e6],["m","month",2592e6],["w","week",6048e5],["d","day",864e5],["h","hour",36e5],["i","minute",6e4],["s","second",1e3],["x","millisecond",1]],ld={years:"y",year:"y",YEARS:"y",YEAR:"y",Years:"y",Year:"y",YYYY:"y",YY:"y",yyyy:"y",yy:"y",months:"m",month:"m",Months:"m",Month:"m",MONTHS:"m",MONTH:"m",MMMM:"m",MMM:"m",MM:"m",weekday:"e",WEEKDAY:"e",ee:"e",EE:"e",ddd:"e",days:"d",day:"d",Days:"d",Day:"d",DAYS:"d",DAY:"d",DD:"d",dd:"d",hours:"h",hour:"h",Hours:"h",Hour:"h",HOURS:"h",HOUR:"h",HH:"h",hr:"h",hh:"h",milliseconds:"x",millisecond:"x",Milliseconds:"x",Millisecond:"x",MILLISECONDS:"x",MILLISECOND:"x",minutes:"i",minute:"i",Minutes:"i",Minute:"i",MINUTES:"i",MINUTE:"i",II:"i",ii:"i",mn:"i",mm:"i",min:"i",ms:"x",SSS:"x",sss:"x",SS:"s",ss:"s",seconds:"s",second:"s",Seconds:"s",Second:"s",SECONDS:"s",SECOND:"s",sec:"s",WW:"w",Y:"y",y:"y",M:"m",m:"m",e:"e",E:"e",D:"d",d:"d",H:"h",h:"h",n:"i",i:"i",s:"s",S:"s",W:"w",w:"w",ZZ:"z",Z:"z"},dd={y:"YYYY",m:"MM",d:"DD",e:"EE",w:"WW",h:"HH",i:"II",s:"SS",x:"SSS",z:"Z"};function md(...e){if(!e.length)return!1;for(let n of e)if(null!==n&&("object"==typeof n||"function"==typeof n))return!1;return!0}var fd,hd,yd,Md,gd=function(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t},pd=function(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)};const vd=Rc.ZonedDateTime.from("1970-01-01T00:00Z[UTC]");class wd{static fromUnit(e,n){const t=ld[n]||"ms",r=["y"===t?e:0,"m"===t?e:0,"w"===t?e:0,"d"===t?e:0,"h"===t?e:0,"i"===t?e:0,"s"===t?e:0,["y","m","w","d","h","i","s"].includes(t)?0:e],i=new Rc.Duration(...r);return new wd(i)}constructor(e,n,t,r,i,a,o,s,u){fd.add(this),hd.set(this,void 0),yd.set(this,void 0),e instanceof Rc.Duration?gd(this,hd,e,"f"):gd(this,hd,"object"==typeof e?new Rc.Duration(e.years||0,e.months||0,e.weeks||0,e.days||0,e.hours||0,e.minutes||0,e.seconds||0,e.milliseconds||0,0,0):new Rc.Duration(e||0,n||0,t||0,r||0,i||0,a||0,o||0,s||0,0,0),"f");const c=ld[u||""]||u;gd(this,yd,c||"ms","f"),Vl(cd,e=>e[0]===c),Object.defineProperty(this,"isValid",{value:!1,writable:!1,configurable:!0})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return pd(this,hd,"f")}years(e=!1){return pd(this,fd,"m",Md).call(this,"year",e)}months(e=!1){return pd(this,fd,"m",Md).call(this,"month",e)}weeks(e=!1){return pd(this,fd,"m",Md).call(this,"week",e)}days(e=!1){return pd(this,fd,"m",Md).call(this,"day",e)}hours(e=!1){return pd(this,fd,"m",Md).call(this,"hour",e)}minutes(e=!1){return pd(this,fd,"m",Md).call(this,"minute",e)}seconds(e=!1){return pd(this,fd,"m",Md).call(this,"second",e)}toJSON(){return this.value.toJSON()}asYears(){return pd(this,hd,"f").total({unit:"year",relativeTo:vd})}asMonths(){return pd(this,hd,"f").total({unit:"month",relativeTo:vd})}asWeeks(){return pd(this,hd,"f").total({unit:"week",relativeTo:vd})}asDays(){return pd(this,hd,"f").total({unit:"day",relativeTo:vd})}asHours(){return pd(this,hd,"f").total({unit:"hour",relativeTo:vd})}asMinutes(){return pd(this,hd,"f").total({unit:"minute",relativeTo:vd})}asSeconds(){return pd(this,hd,"f").total({unit:"second",relativeTo:vd})}add(e,n){let t=pd(this,yd,"f");if(n)if(ld[n]){const e=Vl(cd,e=>e[0]===ld[n]);e&&(t=e[1])}else t=n;const r=t+"s";if(!["years","months","weeks","days","hours","minutes","seconds","milliseconds"].includes(r))throw new Error("Invalid unit for duration: "+(null!=n?n:t));const i={[r]:e},a=pd(this,hd,"f").add(i);return new wd(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,pd(this,yd,"f"))}subtract(e,n){return this.add(-e,n)}toMilliseconds(){const e=pd(this,hd,"f");return e.years||e.months||e.weeks||e.days?e.total({unit:"millisecond",relativeTo:vd}):e.total({unit:"millisecond"})}}hd=new WeakMap,yd=new WeakMap,fd=new WeakSet,Md=function(e,n){const t=pd(this,hd,"f");if(n)switch(e){case"year":return t.years;case"month":return t.months;case"week":return t.weeks;case"day":return t.days;case"hour":return t.hours;case"minute":return t.minutes;case"second":return t.seconds}const r=t.total({unit:e,relativeTo:vd});return Math.floor(r)};var bd,_d=function(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t},Ed=function(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)};class Td{constructor(e){this.__bbnNoData=!0,this.__isBbnDt=!0,bd.set(this,void 0),this.getWeekdayIndex=(e,n)=>{const t=n||bbn.env.lang,r=e.trim().toLowerCase(),i=[t,...navigator.languages];for(let e=0;e<i.length;e++){if(!i[e])continue;const n=new Intl.DateTimeFormat(i[e],{weekday:"long"});for(let e=0;e<7;e++){const t=new Date(2023,0,1+e);if(n.format(t).toLowerCase()===r)return e}}throw new Error(`Unknown weekday name '${e}' for locale '${t}'`)},Object.defineProperty(this,"isValid",{value:!0,writable:!1,configurable:!0}),_d(this,bd,e,"f");const n=new Date;Object.defineProperty(this,"defaultValue",{value:{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds(),millisecond:n.getMilliseconds()},writable:!1,configurable:!1})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return Ed(this,bd,"f")}get hasFullDate(){return!!this.value&&"year"in this.value&&"month"in this.value&&"day"in this.value}toEpochMs(){if("zoned"===this.kind){return this.value.toInstant().epochMilliseconds}const e=Td.systemTimeZoneId;let n;switch(this.kind){case"dateTime":return this.value.toZonedDateTime(e).toInstant().epochMilliseconds;case"date":return this.value.toZonedDateTime({timeZone:e,plainTime:{hour:this.defaultValue.hour,minute:this.defaultValue.minute,second:this.defaultValue.second,millisecond:this.defaultValue.millisecond}}).toInstant().epochMilliseconds;case"time":{const t=this.value;n=`${Rc.Now.plainDateISO().toString()}T${t.toString()}[${e}]`}case"yearMonth":n=`${this.value.toPlainDate({day:1}).toString()}T00:00[${e}]`;case"monthDay":{const t=this.value,r=Rc.Now.plainDateISO();n=`${t.toPlainDate({year:r.year}).toString()}T00:00[${e}]`}}if(n){return Rc.ZonedDateTime.from(n).toInstant().epochMilliseconds}throw new Error(`Unsupported kind '${this.kind}' in toEpochMs`)}static nowForKind(e){switch(e){case"zoned":return Rc.Now.zonedDateTimeISO();case"dateTime":return Rc.Now.plainDateTimeISO();case"date":return Rc.Now.plainDateISO();case"time":return Rc.Now.plainTimeISO();case"yearMonth":{const e=Rc.Now.plainDateISO();return new Rc.PlainYearMonth(e.year,e.month)}case"monthDay":{const e=Rc.Now.plainDateISO();return new Rc.PlainMonthDay(e.month,e.day,void 0,e.year)}default:throw new Error(`Unsupported kind '${e}' in nowForKind`)}}withValue(e){return new(0,this.constructor)(e)}static compare(e,n,t){if(!e||!n)throw new TypeError("Both arguments must be Temporal values");const r=Rc.Now.timeZoneId();let i=t&&ld[t]?Vl(cd,e=>e[0]===ld[t])[1]:void 0;i=i?i+"s":void 0;const a=e=>e instanceof Td,o=e=>a(e)?e.value:e,s=e=>{if(a(e))switch(e.kind){case"zoned":return e.value;case"dateTime":{const n=`${e.value.toString()}[${r}]`;return Rc.ZonedDateTime.from(n)}case"date":{const n=`${e.value.toString()}T00:00[${r}]`;return Rc.ZonedDateTime.from(n)}case"yearMonth":{const n=`${e.value.toPlainDate({day:1}).toString()}T00:00[${r}]`;return Rc.ZonedDateTime.from(n)}default:throw new TypeError(`Cannot convert kind '${e.kind}' to ZonedDateTime for comparison`)}if(e instanceof Rc.ZonedDateTime)return e;throw new TypeError("toZdt expects a bbnDt wrapper or ZonedDateTime")},u=o(e),c=o(n);if(u.constructor===c.constructor){const e=u.constructor,n=e.compare(u,c);if(void 0===i){if("function"!=typeof e.compare)throw new TypeError("This Temporal type has no static compare");return n}if("function"!=typeof u.until||"function"!=typeof u.since)throw new TypeError("This Temporal type does not support until/since");return u[1===n?"since":"until"](c,{smallestUnit:i,largestUnit:i,roundingMode:"floor"}).sign}const l=new Set(["zoned","dateTime","date","yearMonth"]);if(a(e)&&a(n)&&l.has(e.kind)&&l.has(n.kind)){const t=s(e),r=s(n),a=Rc.ZonedDateTime.compare(t,r);if(void 0===i)return a;if("function"!=typeof t.until||"function"!=typeof t.since)throw new TypeError("ZonedDateTime does not support until/since");return t[1===a?"since":"until"](r,{smallestUnit:i,largestUnit:i,roundingMode:"floor"}).sign}throw new TypeError("Cannot compare different Temporal or bbnDt types")}static parse(e,n,t="auto",r){return bbn.dt(e,n,t,r)}parse(e,n,t){return Td.parse(e,n,t||this.kind)}compare(e,n){return e instanceof Td||(e=bbn.dt(e,null,this.kind)),Td.compare(this,e,n)}add(e,n){if(this.value){if(this.value instanceof Rc.PlainMonthDay||"function"!=typeof this.value.add)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof wd){const n=this.value.add(e.value);return new this.constructor(n)}if("object"==typeof e){const n=new wd(e),t=this.value.add(n.value);return new this.constructor(t)}{if(!n)throw new Error("Unit must be specified when adding a number");const t=wd.fromUnit(e,n),r=this.value.add(t.value);return new this.constructor(r)}}}subtract(e,n){if(this.value){if(this.value instanceof Rc.PlainMonthDay||"function"!=typeof this.value.subtract)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof wd){const n=this.value.subtract(e.value);return new this.constructor(n)}if("object"==typeof e){const n=new wd(e),t=this.value.subtract(n.value);return new this.constructor(t)}{if(!n)throw new Error("Unit must be specified when adding a number");const t=wd.fromUnit(e,n),r=this.value.subtract(t.value);return new this.constructor(r)}}}duration(e,n){return wd.fromUnit(e,n)}isBefore(e,n){return this.compare(e,n)<0}isBeforeOrSame(e,n){return this.compare(e,n)<=0}isAfter(e,n){return this.compare(e,n)>0}isAfterOrSame(e,n){return this.compare(e,n)>=0}isSame(e,n){return 0===this.compare(e,n)}equals(e){return this.isSame(e)}toJSON(){if(Ed(this,bd,"f")&&"toZonedDateTime"in Ed(this,bd,"f")){const e=Ed(this,bd,"f").toZonedDateTime(Td.systemTimeZoneId).withTimeZone("UTC");return bbn.dt(e).format("YYYY-MM-DDTHH:II:SS.SSS")+"Z"}if("zoned"===this.kind)return this.timezone("America/New_York").format("YYYY-MM-DDTHH:II:SS.SSS")+"Z"}timezone(e){switch(this.kind){case"zoned":if(void 0===e){return this.value.timeZoneId}{const n=this.value.withTimeZone(e);return bbn.dt(n)}case"dateTime":if(void 0===e){const e=`${this.value.toString()}[${Td.systemTimeZoneId}]`;return Rc.ZonedDateTime.from(e).timeZoneId}{const n=`${this.value.toString()}[${e}]`,t=Rc.ZonedDateTime.from(n);return bbn.dt(t)}default:throw new Error(`timezone() is not supported for kind '${this.kind}'`)}}toString(){return new Date(this.valueOf()).toString()}year(e){if(this.value){if(!("year"in this.value))throw new Error("year() is not supported for this type");if(void 0!==e&&!(e instanceof Event)&&parseInt(e)){const n=this.value.with({year:e});return new this.constructor(n)}return this.value.year}}month(e){if(this.value){if(!("month"in this.value))throw new Error("month() is not supported for this type");if(void 0!==e&&!(e instanceof Event)&&parseInt(e)){const n=this.value.with({month:e});return new this.constructor(n)}return this.value.month}}day(e){if(this.value){if(!("day"in this.value))throw new Error("day() is not supported for this type");if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({day:e});return new this.constructor(n)}return this.value.day}}hour(e){if(this.value){if(!("hour"in this.value)){if(this.hasFullDate)return 0;throw new Error("hour() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({hour:e});return new this.constructor(n)}return this.value.hour}}minute(e){if(this.value){if(!("minute"in this.value)){if(this.hasFullDate)return 0;throw new Error("minute() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({minute:e});return new this.constructor(n)}return this.value.minute}}second(e){if(this.value){if(!("second"in this.value)){if(this.hasFullDate)return 0;throw new Error("second() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({second:e});return new this.constructor(n)}return this.value.second}}millisecond(e){if(this.value){if(!("millisecond"in this.value)){if(this.hasFullDate)return 0;throw new Error("millisecond() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({millisecond:e});return new this.constructor(n)}return this.value.millisecond}}weekday(e,n){if(this.value){if(!("dayOfWeek"in this.value))throw new Error("weekday() is not supported for this type");return void 0===e||e instanceof Event?this.value.dayOfWeek%7:this.setWeekday(e,n)}}date(e){if(this.value){if(!this.hasFullDate)throw new Error("date() is not supported for this type");return!(0 in arguments)||void 0===e||e instanceof Event?this.YYYY+"-"+this.MM+"-"+this.DD:this.parse(e,"Y-m-d")}}datetime(e){return!(0 in arguments)||void 0===e||e instanceof Event?this.YYYY+"-"+this.MM+"-"+this.DD+" "+this.HH+":"+this.II+":"+this.SS:"date"===this.kind?this.parse(this.date()+" "+e,"Y-m-d 00:00:00","dateTime"):this.parse(e,"Y-m-d H:i:s")}time(e){return!(0 in arguments)||void 0===e||e instanceof Event?this.HH+":"+this.II+":"+this.SS:"zoned"===this.kind?this.parse(this.date()+" "+e+" GMT"+this.value.timeZoneId,"Y-m-d H:i:s[ GMT]Z","dateTime"):["dateTime","date"].includes(this.kind)?this.parse(this.date()+" "+e,"Y-m-d H:i:s","dateTime"):this.parse(e,"H:i:s")}fdate(e=!1,n=!1){return this.value?bbn.dt.locales.formatters[e?"long":"numeric"].format(new Date(this.toEpochMs())):""}ftime(e=!0){return this.value?this.format("HH:II"+(e?":SS":"")):""}week(){if(!this.value)return;const e=this.year(),n=new Date(Date.UTC(e,this.month()-1,this.day())),t=new Date(Date.UTC(e,0,1)),r=Math.floor((n.getTime()-t.getTime())/864e5),i=t.getUTCDay();let a=(bbn.dt.locales.firstDayOfWeek-i+7)%7;const o=0===a?7:a;if(r<o)return 1;const s=r-o;return 2+Math.floor(s/7)}get YYYY(){if(this.value&&"year"in this.value)return this.year().toString()}get YY(){if(this.value&&"year"in this.value)return ul(this.year().toString(),2,2)}get MMMM(){if(this.value&&"month"in this.value)return bbn.dt.locales.monthsLong[this.month()-1]}get MMM(){if(this.value&&"month"in this.value)return bbn.dt.locales.monthsShort[this.month()-1]}get MM(){if(this.value&&"month"in this.value){const e=parseInt(this.month().toString());return e<10?"0"+e.toString():e.toString()}}get M(){if(this.value&&"month"in this.value)return this.month().toString()}get EE(){if(this.value&&"dayOfWeek"in this.value)return this.value.dayOfWeek.toString()}get DD(){if(this.value&&"day"in this.value){const e=parseInt(this.day().toString());return e<10?"0"+e.toString():e.toString()}}get d(){if(this.value&&"day"in this.value)return this.day().toString()}get dddd(){if(this.value&&"dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"long")}get ddd(){if(this.value&&"dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"short")}get D(){if(this.value&&"day"in this.value)return this.day().toString()}get HH(){if(this.value&&"hour"in this.value){const e=parseInt(this.hour().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.hour.toString().padStart(2,"0")}get H(){return this.value&&"hour"in this.value?this.hour().toString():this.hasFullDate?"0":void 0}get II(){if(this.value&&"minute"in this.value){const e=parseInt(this.minute().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.minute.toString().padStart(2,"0")}get mm(){if(this.value&&"minute"in this.value){const e=parseInt(this.minute().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.minute.toString().padStart(2,"0")}get I(){return this.value&&"minute"in this.value?this.minute().toString():this.hasFullDate?"0":void 0}get SS(){if(this.value&&"second"in this.value){const e=parseInt(this.second().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.second.toString().padStart(2,"0")}get SSS(){if(this.value&&"millisecond"in this.value){const e=parseInt(this.millisecond().toString());return e<10?"00"+e.toString():e<100?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.millisecond.toString().padStart(3,"0")}get S(){return this.value&&"second"in this.value?this.second().toString():this.hasFullDate?"0":void 0}get WW(){if(this.value&&"weekOfYear"in this.value)return this.value.weekOfYear.toString().padStart(2,"0")}get W(){if(this.value&&"weekOfYear"in this.value)return this.value.weekOfYear.toString()}get Z(){if("zoned"===this.kind){return this.value.offset}}get ZZ(){if("zoned"===this.kind){return this.value.offset.replace(":","")}}unix(e=!1){if("number"==typeof e){return new(0,this.constructor)(new Date(e))}return e?this.toEpochMs():Math.floor(this.toEpochMs()/1e3)}format(e="YYYY-MM-DD HH:II:SS"){let n="";if(e){const t=new RegExp("([|]|"+Object.keys(ld).join("|")+")","g");let r=0;yl(e.split(t),e=>{if("["!==e)if("]"!==e)if(r>0)n+=e;else if(e in ld)if(e in this&&md(this[e]))n+=this[e];else{n+=this[dd[ld[e]]]||""}else n+=e;else r--;else r++})}return n}calendar(e){const n=new this.constructor,t=this.startOf("day"),r=n.startOf("day"),i=t.diff(r,"day"),a={numeric:"auto"};e&&(a.style="short");const o=new Intl.RelativeTimeFormat(bbn.env.lang,a);let s="",u=[],c="";if(i>=-1&&i<=1)u=o.formatToParts(i,"day");else if(i>=-6&&i<-1)c=this.dddd+", ",u=o.formatToParts(i,"day");else{if(!(i<=6&&i>1))return this.fdate();c=this.dddd,u=[]}return bbn.fn.each(u,e=>{s+=e.value}),`${c}${s} ${this.ftime()}`}matchFormat(e,n){try{return this.parse(e,n),!0}catch(e){return!1}}getWeekday(e,n="long",t){if(!n){const n=this.getWeekday(e,"narrow",t),r=this.getWeekday(e,"short",t),i=this.getWeekday(e,"long",t);return{letter:n,abbr:r,full:i,long:i,short:r,narrow:n}}let r;if("letter"===n)r="narrow";else if("abbr"===n)r="short";else if("full"===n)r="long";else{if(!["long","short","narrow"].includes(n))throw new Error("Invalid mode for getWeekDay: "+n+'. Allowed values are "long", "short", "narrow", "letter", "abbr", "full".');r=n}return new Date(2023,0,1+e).toLocaleDateString([t||bbn.env.lang,...navigator.languages],{weekday:r})}setWeekday(e,n=!1,t){let r;if("string"==typeof e&&(e=this.getWeekdayIndex(e,t)),"number"!=typeof e)throw new TypeError("weekday must be a number (0–6) or a string");if(e<0||e>6)throw new RangeError("weekday number must be between 0 and 6");r=e;const i=this.weekday();let a;return n?(a=(i-r+7)%7,0===a&&(a=7),a=-a):(a=(r-i+7)%7,0===a&&(a=7)),this.add(a,"d")}diff(e,n="",t=!1){let r;if(e instanceof Td)r=e.toEpochMs();else if(e instanceof Rc.ZonedDateTime||e instanceof Rc.PlainDateTime||e instanceof Rc.PlainDate||e instanceof Rc.PlainTime||e instanceof Rc.PlainYearMonth||e instanceof Rc.PlainMonthDay){r={kind:this.kind,value:e}.toEpochMs()}else{if("string"!=typeof e&&"number"!=typeof e)throw bbn.fn.log("DATE??",e),new TypeError("Unsupported date argument for diff");r=this.parse(String(e),"").toEpochMs()}let i=this.toEpochMs()-r;if(t&&(i=Math.abs(i)),!n)return i;const a=ld[n]||n,o=Vl(cd,e=>e[0]===a);if(!o)throw new Error("Invalid unit for diff: "+n);const[,,s]=o,u=i/s;return u<0?Math.ceil(u):Math.floor(u)}guessUnit(e){const n=Math.abs(e);for(const[e,t,r]of cd)if(n>=r||"millisecond"===t)return e;return null}fromNow(e=""){Td.nowForKind(this.kind);const n=bbn.dt(void 0,null,this.kind),t=this.diff(n),r=ld[e]||this.guessUnit(t);if(!r)throw new Error("Cannot guess unit for fromNow");let i=this.diff(n,r);const a=new Intl.RelativeTimeFormat([bbn.env.lang,...navigator.languages],{numeric:"auto"}),o=Vl(cd,e=>e[0]===r);if(!o)throw new Error("Invalid unit for fromNow: "+e);let[,s]=o;return"millisecond"===s&&(s="second",i=Math.round(i/1e3)),bbn.fn.log("FROM NOW",i,s,a),a.format(i,s)}from(e,n=""){const t=this.diff(e),r=ld[n]||this.guessUnit(t);if(!r)throw new Error("Cannot guess unit for fromDate");const i=this.diff(e,r),a=r;return i>0?Uc("%d %s before",i,a):i<0?Uc("%d %s after",-i,a):Uc("The same %s",a)}startOf(e="d"){var n,t;const r=ld[e]||e;if(!r)throw new Error("Invalid unit for startOf: "+e);let i=this.value;const a=e=>{const n={};return"hour"in e?(Object.assign(n,{hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),e.with(n)):e};switch(r){case"y":if(!("year"in i))throw new Error('startOf("y") only valid for year-based types');i=a(i.with({month:1,day:1}));break;case"m":if(!("month"in i))throw new Error('startOf("m") only valid for month-based types');i=a(i.with({day:1}));break;case"w":{const e="toPlainDate"in i?i.toPlainDate():i,r=e.dayOfWeek-1,o=e.subtract({days:r});i="toPlainDateTime"in i?a(o.toPlainDateTime(null!==(t=null===(n=i.toPlainTime)||void 0===n?void 0:n.call(i))&&void 0!==t?t:Rc.PlainTime.from("00:00"))):o;break}case"d":i=a(i);break;case"h":i=i.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"i":i=i.with({second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"s":i=i.with({millisecond:0,microsecond:0,nanosecond:0});break;default:throw new Error("Invalid unit for startOf: "+e)}return this.withValue(i)}endOf(e="d"){const n=Rc.Now.timeZoneId(),t=ld[e]||e;let r,i=(()=>{switch(this.kind){case"zoned":return this.value;case"dateTime":{const e=`${this.value.toString()}[${n}]`;return Rc.ZonedDateTime.from(e)}case"date":{const e=`${this.value.toString()}T00:00[${n}]`;return Rc.ZonedDateTime.from(e)}case"time":{const e=this.value,t=`${Rc.Now.plainDateISO().toString()}T${e.toString()}[${n}]`;return Rc.ZonedDateTime.from(t)}case"yearMonth":{const e=`${this.value.toPlainDate({day:1}).toString()}T00:00[${n}]`;return Rc.ZonedDateTime.from(e)}case"monthDay":{const e=this.value,t=Rc.Now.plainDateISO(),r=`${e.toPlainDate({year:t.year}).toString()}T00:00[${n}]`;return Rc.ZonedDateTime.from(r)}default:throw new Error("Unsupported kind in endOf")}})(this.value);switch(t){case"y":r=i.with({month:1,day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({years:1});break;case"m":r=i.with({day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({months:1});break;case"w":{const e=-(i.toPlainDate().dayOfWeek-1);r=i.add({days:e}).with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({weeks:1});break}case"d":r=i.with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({days:1});break;case"h":r=i.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({hours:1});break;case"i":case"n":case"min":r=i.with({second:0,millisecond:0,microsecond:0,nanosecond:0}).add({minutes:1});break;case"s":r=i.with({millisecond:0,microsecond:0,nanosecond:0}).add({seconds:1});break;default:throw new Error("Invalid unit for endOf: "+e)}const a=r.subtract({milliseconds:1});switch(this.kind){case"zoned":return this.withValue(a);case"dateTime":return this.withValue(a.toPlainDateTime());case"date":return this.withValue(a.toPlainDate());case"time":return this.withValue(a.toPlainTime());case"yearMonth":{const e=a.toPlainDate();return this.withValue(new Rc.PlainYearMonth(e.year,e.month))}case"monthDay":{const e=a.toPlainDate();return this.withValue(new Rc.PlainMonthDay(e.month,e.day))}default:throw new Error("Unsupported kind in endOf")}}clone(){return this.withValue(this.value)}isLeapYear(){if(this.isValid){const e=this.year();return e%4==0&&e%100!=0||e%400==0}return!1}daysInMonth(){if(this.isValid)switch(this.month()){case 2:return this.year()%4==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}return 0}valueOf(){return this.unix(!0)}}bd=new WeakMap,Td.systemTimeZoneId=Rc.Now.timeZoneId();class Dd extends Td{constructor(e,n,t,r,i,a,o){let s;if(e)if(void 0===n)if(e instanceof Rc.PlainDateTime)s=e;else if(e instanceof Date)s=new Rc.PlainDateTime(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");s=Rc.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Td.systemTimeZoneId).toPlainDateTime()}else s=new Rc.PlainDateTime(e,n,t||1,r||0,i||0,a||0,o||0);else s=Rc.PlainDateTime.from(Rc.Now.plainDateTimeISO());super(s),this.kind="dateTime"}format(e){return[!0,"long","full"].includes(e)&&(e=Vl(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long",hour:"2-digit",minute:"2-digit",second:void 0}).pattern),e||(e=Vl(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:void 0}).pattern),Td.prototype.format.call(this,e)}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),i=Object.assign(Object.assign({year:"numeric",month:e?"long":"2-digit",day:"2-digit"},t?{weekday:e?"long":"short"}:{}),n?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}class Sd extends Td{constructor(e,n,t){let r;if(e)if(void 0===n)if(e instanceof Rc.PlainDate)r=e;else if(e instanceof Date)r=new Rc.PlainDate(e.getFullYear(),e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const n=new Date(e);r=new Rc.PlainDate(n.getFullYear(),n.getMonth()+1,n.getDate())}}else r=new Rc.PlainDate(e,n,t||1);else r=Rc.PlainDate.from(Rc.Now.plainDateISO());super(r),this.kind="date"}compareSameKind(e){const n=Rc.PlainDate.compare(this.value,e.value);return n<0?-1:n>0?1:0}format(e){return!0===e&&(e=Vl(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long"}).pattern),e||(e=Vl(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric"}).pattern),Td.prototype.format.call(this,e)}ftime(e=!1){return"00:00"+(e?":00":"")}fdate(e=!1,n=!1){const t=new Date(this.year(),this.month()-1,this.day()),r=Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},n?{weekday:e?"long":"short"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],r).format(t)}}class Ad extends Td{constructor(e,n,t,r,i,a,o,s){let u;if(e)if(void 0===n)if(e instanceof Rc.ZonedDateTime)u=e;else if(e instanceof Date)u=function(e,n=!1,t=Rc.Now.timeZoneId()){const r=Rc.Instant.fromEpochMilliseconds(e.getTime()).toZonedDateTimeISO(t);return n?r:r.toPlainDateTime()}(e,!0);else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtZoned");u=Rc.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone)}else{u=new Rc.PlainDateTime(n,t,r||1,i||0,a||0,o||0,s||0).toZonedDateTime(e||Rc.Now.timeZoneId())}else u=Rc.Now.zonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone);super(u),this.kind="zoned"}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),i=Object.assign(Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},t?{weekday:e?"long":"short"}:{}),n?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}class kd extends Td{constructor(e,n){let t;if(e)if(void 0===n)if(e instanceof Rc.PlainYearMonth)t=e;else if(e instanceof Date)t=new Rc.PlainYearMonth(e.getFullYear(),e.getMonth()+1);else{if("number"!=typeof n)throw new Error("Invalid value for bbnDtDateTime");{const e=new Date(n);t=new Rc.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}}else t=new Rc.PlainYearMonth(e,n);else{const e=new Date;t=new Rc.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}super(t),this.kind="yearMonth"}format(e){return!0===e&&(e=Vl(bbn.dt.locales.date,e=>"numeric"===e.year&&"long"===e.month&&!("day"in e)).pattern),e||(e=Vl(bbn.dt.locales.date,e=>"numeric"===e.year&&"numeric"===e.month&&!("day"in e)).pattern),Td.prototype.format.call(this,e)}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1),i={year:"numeric",month:e?"long":"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}}class Cd extends Td{constructor(e,n){let t;if(e)if(void 0===n)if(e instanceof Rc.PlainMonthDay)t=e;else if(e instanceof Date)t=new Rc.PlainMonthDay(e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const n=new Date(e);t=new Rc.PlainMonthDay(n.getMonth()+1,n.getDate())}}else t=new Rc.PlainMonthDay(e,n);else{const e=new Date;t=new Rc.PlainMonthDay(e.getMonth()+1,e.getDate())}super(t),this.kind="monthDay"}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(2e3,this.month()-1,this.day()),i={month:e?"long":"numeric",day:"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}}function Pd(e,n,t){let r="";const i=e.some(e=>"dayPeriod"===e.type),a=i||"h12"===n||"h11"===n,o=!!t.weekday,s="short"===t.month||"long"===t.month,u="numeric"===t.year&&"numeric"===t.month&&"numeric"===t.day&&!o&&!s;for(const n of e)switch(n.type){case"year":"2-digit"===t.year?r+="YY":r+="YYYY";break;case"month":if("short"===t.month){r+="MMM";break}if("long"===t.month){r+="MMMM";break}if(u){r+="M";break}/^\d+$/.test(n.value)?r+=2===n.value.length?"MM":"M":r+=n.value.length>3?"MMMM":"MMM";break;case"day":if(u){r+="D";break}r+=2===n.value.length?"DD":"D";break;case"weekday":"short"===t.weekday||"narrow"===t.weekday?r+="ddd":"long"===t.weekday?r+="dddd":r+=n.value.length>3?"dddd":"ddd";break;case"hour":r+=a?2===n.value.length?"hh":"h":2===n.value.length?"HH":"H";break;case"minute":r+="II";break;case"second":r+="SS";break;case"dayPeriod":r+="A";break;case"timeZoneName":r+="z";break;case"literal":if(!n.value)break;if(/[A-Za-zÀ-ÖØ-öø-ÿ]/.test(n.value)){r+=`[${n.value.replace(/]/g,"\\]")}]`}else r+=n.value;break;default:r+=n.value}return r}const Nd=()=>{if(Object.keys(bbn.dt.locales).length)return;const e=[bbn.env.lang,...navigator.languages],n=new Intl.DateTimeFormat(e,{month:"long"}),t=new Intl.DateTimeFormat(e,{month:"short"}),r=new Intl.DateTimeFormat(e,{weekday:"long"}),i=new Intl.DateTimeFormat(e,{weekday:"short"}),a=new Intl.DateTimeFormat(e,{dateStyle:"short",timeStyle:"short"}),o=new Intl.DateTimeFormat(e,{dateStyle:"long",timeStyle:"long"}),s=new Intl.DateTimeFormat(e,{year:"numeric",month:"numeric",day:"numeric"}),u=new Intl.RelativeTimeFormat(e,{numeric:"auto"}),c=new Intl.Locale(e[0]),l=[],d=[];for(let e=0;e<12;e++){const r=new Date(2020,e,1);l.push(n.format(r)),d.push(t.format(r))}const m=new Date(2020,1,2),f=[],h=[];for(let e=0;e<7;e++){const n=new Date(m.getTime()+864e5*e);f.push(r.format(n)),h.push(i.format(n))}const{date:y,time:M,datetime:g}=(e=>{e||(e=[bbn.env.lang,...navigator.languages]);const n=new Date(Date.UTC(2e3,0,2,13,45,30)),t=[],r=[],i=[],a=new Set,o=new Set,s=new Set,u=[{year:"numeric",month:"2-digit",day:"2-digit"},{year:"numeric",month:"numeric",day:"numeric"},{year:"numeric",month:"short",day:"numeric"},{year:"numeric",month:"long",day:"numeric"},{weekday:"short",year:"numeric",month:"short",day:"numeric"},{weekday:"long",year:"numeric",month:"long",day:"numeric"},{year:"numeric",month:"numeric"},{year:"numeric",month:"2-digit"},{year:"numeric",month:"short"},{year:"numeric",month:"long"},{month:"numeric",day:"numeric"},{month:"2-digit",day:"2-digit"},{month:"short",day:"numeric"},{month:"long",day:"numeric"}],c=[];for(const r of u){const i=new Intl.DateTimeFormat(e,r),o=Pd(i.formatToParts(n),i.resolvedOptions().hourCycle,r);a.has(o)||(a.add(o),t.push({pattern:o,sample:i.format(n),options:r})),r.year&&r.month&&r.day&&c.push(r)}const l=[{hour:"numeric"},{hour:"2-digit",minute:"2-digit"},{hour:"2-digit",minute:"2-digit",second:"2-digit"},{hour:"2-digit",minute:"2-digit",timeZoneName:"short"},{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"},{hour:"2-digit",minute:"2-digit",timeZoneName:"long"}];for(const t of l){const i=new Intl.DateTimeFormat(e,t),a=Pd(i.formatToParts(n),i.resolvedOptions().hourCycle,t);o.has(a)||(o.add(a),r.push({pattern:a,sample:i.format(n),options:t}))}for(const t of c)for(const r of l){const a=Object.assign(Object.assign({},t),r),o=new Intl.DateTimeFormat(e,a),u=Pd(o.formatToParts(n),o.resolvedOptions().hourCycle,a);s.has(u)||(s.add(u),i.push({pattern:u,sample:o.format(n),options:a}))}return{date:t,time:r,datetime:i}})(e),p=c.getWeekInfo?c.getWeekInfo():{firstDay:1};Ml(bbn.dt.locales,{formatters:{short:a,long:o,numeric:s,relative:u},firstDayOfWeek:p.firstDay,monthsLong:l,monthsShort:d,weekdaysLong:f,weekdaysShort:h,locale:c,date:y,time:M,datetime:g})};class zd extends Td{constructor(e,n,t,r){let i;if(e)if(void 0===e)if(e instanceof Rc.PlainTime)i=e;else if(e instanceof Date)i=new Rc.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");if(void 0!==n)i=new Rc.PlainTime(e,n,t||0,r||0);else{const n=new Date(e);i=new Rc.PlainTime(n.getHours(),n.getMinutes(),n.getSeconds(),1e6*n.getMilliseconds())}}else i=new Rc.PlainTime(e,n||0,t||0,r||0);else{const e=new Date;i=new Rc.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds())}super(i),this.kind="time"}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}const Hd=function(e,n){try{return n?e.toLocaleLowerCase(n):e.toLowerCase()}catch(n){return e.toLowerCase()}};function Id(e,n,t="auto",r,i){var a,o,s,u,c,l,d;Nd();const m=Rc;if(!m)throw new Error("Temporal API is required (load @js-temporal/polyfill)");let f=!0;i||(i=(null===(a=null===bbn||void 0===bbn?void 0:bbn.dt)||void 0===a?void 0:a.locales)||{});const h={monthsLong:null!==(o=null==i?void 0:i.monthsLong)&&void 0!==o?o:bbn.dt.locales.monthsLong,monthsShort:null!==(s=null==i?void 0:i.monthsShort)&&void 0!==s?s:bbn.dt.locales.monthsShort,weekdaysLong:null!==(u=null==i?void 0:i.weekdaysLong)&&void 0!==u?u:bbn.dt.locales.weekdaysLong,weekdaysShort:null!==(c=null==i?void 0:i.weekdaysShort)&&void 0!==c?c:bbn.dt.locales.weekdaysShort},y=(null===bbn||void 0===bbn?void 0:bbn.env)&&(null===(l=bbn.env)||void 0===l?void 0:l.lang)||(null===bbn||void 0===bbn?void 0:bbn.dt)&&(null===(d=bbn.dt)||void 0===d?void 0:d.locale)||Intl.DateTimeFormat().resolvedOptions().locale,M=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function g(n,t="auto"){var i;const a=new Dd,o={year:a.year(),month:1,day:1,hour:0,minute:0,second:0,ms:0,hasYear:!1,hasMonth:!1,hasDay:!1,hasHour:!1,hasMinute:!1,hasSecond:!1,hasMs:!1},s="auto"===t,u="zoned"===t.toLowerCase(),c="datetime"===t.toLowerCase(),l="date"===t.toLowerCase(),d="time"===t.toLowerCase(),g="yearmonth"===t.toLowerCase(),p="monthday"===t.toLowerCase(),v=[{token:"YYYY",regex:"\\d{4}",apply:(e,n)=>{n.year=parseInt(e,10),n.hasYear=!0}},{token:"YY",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);n.year=t>=70?1900+t:2e3+t,n.hasYear=!0}},{token:"Y",regex:"[+-]?\\d{1,6}",apply:(e,n)=>{n.year=parseInt(e,10),n.hasYear=!0}},{token:"MMMM",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=Hd(e,y),r=h.monthsLong.findIndex(e=>Hd(e,y)===t);if(-1===r)throw new Error("Invalid month name: "+e);n.month=r+1,n.hasMonth=!0}},{token:"MMM",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=Hd(e,y),r=h.monthsShort.findIndex(e=>Hd(e,y)===t);if(-1===r)throw new Error("Invalid short month name: "+e);n.month=r+1,n.hasMonth=!0}},{token:"MM",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"mm",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"M",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"m",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"DD",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"D",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"d",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"dddd",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=Hd(e,y),r=h.weekdaysLong.findIndex(e=>Hd(e,y)===t);if(-1===r)throw new Error("Invalid weekday name: "+e);n.weekday=r}},{token:"ddd",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=Hd(e,y),r=h.weekdaysShort.findIndex(e=>Hd(e,y)===t);if(-1===r)throw new Error("Invalid short weekday name: "+e);n.weekday=r}},{token:"EE",regex:"\\d{1}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>7)throw new Error("Invalid weekday number: "+t);n.weekday=t}},{token:"hh",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid 12-hour clock hour: "+t);n.hour=t,n.hasHour=!0,n.uses12Hour=!0}},{token:"HH",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"H",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"h",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"II",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"I",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"i",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"SS",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"S",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"ss",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"s",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"ms",regex:"\\d{1,3}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>999)throw new Error("Invalid millisecond: "+t);n.ms=t,n.hasMs=!0}},{token:"WWWW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"WWW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"WW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"W",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"ZZ",regex:"(?:Z?[+-]\\d{2}\\d{2})",apply:(e,n)=>{if("Z"===e||"z"===e)return void(n.offsetMinutes=0);const t="-"===e[0]?-1:1,r=e.slice(1),i=parseInt(r.slice(0,2),10),a=parseInt(r.slice(2),10);if(i<0||i>23||a<0||a>59)throw new Error("Invalid timezone offset: "+e);n.offsetMinutes=t*(60*i+a)}},{token:"Z",regex:"(?:Z?[+-]\\d{2}\\:{1}\\d{2})",apply:(e,n)=>{if("Z"===e||"z"===e)return void(n.offsetMinutes=0);const t="-"===e[0]?-1:1,r=e.slice(1),[i,a]=r.split(":");let o=parseInt(i,10),s=parseInt(a,10);if(o<0||o>23||s<0||s>59)throw new Error("Invalid timezone offset: "+e);n.offsetMinutes=t*(60*o+s)}},{token:"z",regex:"[A-Za-z_\\/]+",apply:(e,n)=>{n.timeZone=e}},{token:"A",regex:"(?:AM|PM|am|pm)",apply:(e,n)=>{n.isPM=/pm/i.test(e),n.hasAmPm=!0}},{token:"a",regex:"(?:AM|PM|am|pm)",apply:(e,n)=>{n.isPM=/pm/i.test(e),n.hasAmPm=!0}}],w=[...v].sort((e,n)=>n.token.length-e.token.length);let b="";const _=[];let E=0,T=0;for(;E<n.length;){if("["===n[E]){let e=E+1,t="";for(;e<n.length&&"]"!==n[e];)t+=n[e],e++;if(e<n.length&&"]"===n[e]){const n=t.replace(/\\]/g,"]");b+=M(n),E=e+1;continue}}let e=null;for(const t of w)if(n.startsWith(t.token,E)){e=t;break}e?(b+=`(${e.regex})`,T=b.length,e.apply?_.push(n=>e.apply(n,o)):_.push(()=>{}),E+=e.token.length):(b+=M(n[E]),E+=1)}const D=new RegExp("^"+bbn.fn.substr(b,0,T));let S=D.exec(e);if(!S){if(!r)throw new Error(`Date string "${e}" does not match format "${n}"`);{const t=new Dd(a.year(),1,1,0,0,0,0);e=t.format(n),f=!1,S=D.exec(e)}}if(S)for(let e=1;e<S.length;e++){const n=S[e],t=_[e-1];null!=n&&t&&t(n)}if(o.uses12Hour){if(!o.hasAmPm)throw new Error("AM/PM marker (A or a) is required with 12-hour format (hh)");let e=o.hour;o.isPM?e<12&&(e+=12):12===e&&(e=0),o.hour=e}const A=o.hasYear||o.hasMonth||o.hasDay,k=o.hasYear&&o.hasMonth&&o.hasDay,C=o.hasYear&&o.hasMonth&&!o.hasDay,P=!o.hasYear&&o.hasMonth&&o.hasDay,N=o.hasHour||o.hasMinute||o.hasSecond||o.hasMs,z=null!=o.timeZone||null!=o.offsetMinutes;let H;if(u||z&&s){let e;try{e=new m.PlainDateTime(o.year,o.month,o.day,o.hour,o.minute,o.second,1e6*o.ms)}catch(e){throw new Error("Invalid date/time components")}if(o.timeZone){const n=m.TimeZone.from(o.timeZone),t=e.toZonedDateTime(n);H=new Ad(t)}else{const e=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.ms)-6e4*(null!==(i=o.offsetMinutes)&&void 0!==i?i:0);H=new Ad(m.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(m.Now.timeZoneId()))}}else if(c||s&&(f||A&&N)){if(!k&&!f)throw new Error("PlainDateTime requires year, month and day");const e=new m.PlainDateTime(o.year,o.month,o.day,o.hour,o.minute,o.second,1e6*o.ms);H=new Dd(e)}else if(l||g||p||s&&A&&!N)if(l||k&&s){const e=new m.PlainDate(o.year,o.month,o.day);H=new Sd(e)}else if(g||C&&s){const e=new m.PlainYearMonth(o.year,o.month);H=new kd(e)}else if(p||P&&s){const e=new m.PlainMonthDay(o.month,o.day,1972);H=new Cd(e)}else{if(!s||!o.hasYear)throw new Error("Not enough date components for a known Temporal type");{const e=new m.PlainDate(o.year,1,1);H=new Sd(e)}}else{if(!(d||s&&!A&&N))throw new Error("No date or time information found in input");{const e=new m.PlainTime(o.hour,o.minute,o.second,1e6*o.ms);H=new zd(e)}}return H.setValid(f),H}if(Array.isArray(n)){let e=null;for(const r of n)try{return g(r,t)}catch(n){e=n}throw null!=e?e:new Error("No format matched")}return g(n,t)}const Fd=["YYYY-MM-DD HH:II:SS.ms","YYYY-MM-DD HH:II:SS","YYYY-MM-DD HH:II:SS[ GMT]Z","YYYY-MM-DD HH:II","YYYY-MM-DDTHH:II:SS.msZ","YYYY-MM-DDTHH:II:SSZ","YYYY-MM-DDTHH:II:SS","YYYY-MM-DDTHH:II","ddd[, ]DD MMM YYYY HH:II:SS[ GMT]","ddd MMM DD YYYY HH:II:SS[ GMT]Z","ddd MMM DD YYYY HH:II:SS","D MMM","D MMMM","D/M","YYYY-MM-DD","YYYY-MM","HH:II:SS","HH:II"];function Od(e,n,t){const r=e.trim();if(!r)return null;Nd();const i=e=>{for(const n of e)try{return Id(r,n),n}catch(e){}return null};if(n){return i(Array.isArray(n)?n:[n])}const a=new Set,o=Fd.filter(e=>!a.has(e)&&(a.add(e),!0)),s=[...bbn.dt.locales.datetime.map(e=>e.pattern),...bbn.dt.locales.date.map(e=>e.pattern),...bbn.dt.locales.time.map(e=>e.pattern)].filter(e=>!a.has(e)&&(a.add(e),!0)),u=i([...o,...s]);return u||null}const Ld=(e,n=null,t="auto")=>{if(void 0===e)return new Dd;if(!e){const e=new Dd;return e.setValid(!1),e}if("string"==typeof e){if(n)return Id(e,n,t,!0);{const n=Od(e);if(n)return Id(e,n,t);throw new Error(Uc("Could not guess the date format for value: %s",e))}}if("number"==typeof e)return new Dd(Math.floor(Math.abs(e)<99999999999?1e3*e:e));if(e.__isBbnDt)return e;if(e instanceof Date){const n=e;return new Dd(n.getFullYear(),n.getMonth()+1,n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}if(e instanceof Rc.PlainDateTime)return new Dd(e);if(e instanceof Rc.PlainDate)return new Sd(e);if(e instanceof Rc.PlainTime)return new Ad(e);if(e instanceof Rc.PlainYearMonth)return new kd(e);if(e instanceof Rc.PlainMonthDay)return new Cd(e);if(e instanceof Rc.ZonedDateTime)return new Ad(e);if(e instanceof Rc.Duration)return new wd(e);throw bbn.fn.log("Invalid date value",e),new Error(Uc("Invalid date value"))};function Gd(e){if(arguments.length>1){const e=[];for(let n=1;n<arguments.length;n++)e.push(arguments[n]);e.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),sl.apply(this,e)}throw new Error(e)}function Bd(e,n=null,t=null,r=null,i=null){let a=!1;if(n){a=!0;let o,s="object"===(typeof n).toLowerCase();if(s&&n.prescript)try{new Function(n.prescript)()}catch(e){Gd(e.message||"")}if(s&&void 0===n.url&&(n.url=e),a=t&&ol(t)?t(n,i):bbn.fn.defaultLinkFunction(n,i),i&&s&&void 0!==n.content&&("value"in i?i.value=n.content:i.innerHTML=n.content),a&&s&&n.script&&(a="function"==typeof n.script?n.script(n.data?n.data:{},i||null):((e,t)=>{let r=null;try{r=new Function(n.script)(),ol(r)&&(r=r(e,t))}catch(e){sl(e,n),Gd(ol(e.getMessage)?e.getMessage():null)}return r})(n.data?n.data:{},i||!1)),a&&r&&ol(r)?r(n):s&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(n,i),a&&s&&n.postscript){new Function(n.postscript)(n.postscript)}s&&n.error&&(o=n.errorTitle||bbn.lng.server_response,bbn.fn.defaultErrorFunction(n.error,o))}else bbn.fn.defaultErrorFunction(bbn.lng.errorText,bbn.lng.error);return a}function xd(e,n,t=!1){let r={error:!1,result:!0};if("string"==typeof n&&(n=[n]),ml(n)||(r.error=bbn._("checkProps must receive a string or an array as props argument")),dl(e)||(r.error=bbn._("checkProps must receive an object as obj argument")),!r.error){let i;yl(n,n=>{let a=(n=n.trim().split(":"))[1]||!1;if(n=n[0],void 0===e[n]?r.error=n+" "+bbn._("is not defined"):a?(i="is"+ul(a,0,1).toUpperCase()+ul(a,1).toLowerCase(),void 0===bbn.fn[i]?r.error=a+" "+bbn._("is not a valid type"):bbn.fn[i](e[n])||(r.error=n+" "+bbn._("is not a")+" "+a)):t&&!e[n]&&(r.error=n+" "+bbn._("is empty")),r.error)return!1})}return r.error&&(r.result=!1),r}function Rd(e){return e.replace(/[A-z]{1}/,e=>e.toUpperCase())}function jd(e,n,t,...r){let i=!1;ml(n)||(n=[n]);const a=[];if(yl(n,n=>{var t;if(n===String?n="string":n===Number?n="number":n===Array?n="array":n===Boolean?n="boolean":n===Object?n="object":n===Function&&(n="function"),ol(n)){if(a.push(n.name||(null===(t=n.constructor)||void 0===t?void 0:t.name)||n.toString()),e instanceof n)return i=!0,!1}else if(il(n)&&ol(bbn.fn["is"+Rd(n)])){if(bbn.fn["is"+Rd(n)](e))return i=!0,!1;a.push(n)}else Gd(`The type ${n} is not recognized`)}),!i)throw sl(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),r.length&&sl(r),new Error((t?t+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function Zd(e){if(ml(e))return e.slice().map(e=>"object"==typeof e?Zd(e):e);if(dl(e)){return Ml(!0,Object.create(Object.getPrototypeOf(e)),e)}return e}Ld.locales=Object.create(null),Ld.parse=Id,Ld.guessFormat=Od,Ld.time=()=>{},Ld.date=()=>{},Ld.dateTime=()=>{},Ld.duration=(e,n)=>e instanceof Rc.Duration?new wd(e):wd.fromUnit(e,n||"ms"),Ld.zoned=()=>{},Ld.monthDay=()=>{},Ld.yearMonth=()=>{};const Ud=(e,n="text/plain")=>{const t=new DataTransfer;t.setData(n,e);const r=new ClipboardEvent("copy",{bubbles:!0,cancelable:!0,clipboardData:t});document.dispatchEvent(r)};function Yd(e,n,t=null,r="="){if(!ml(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");let i={};const a=[],o="function"==typeof n;if(!n||!e.length)return e;if("object"==typeof n)r=t,i=n;else if("string"==typeof n)i[n]=t;else if(!o)throw new Error("Search function error: The prop argument should be a string or an object");if("function"==typeof n)for(let t=0;t<e.length;t++)n(e[t],t)&&a.push(e[t]);else if(i=Wl(i,r),i.conditions&&i.logic)for(let n=0;n<e.length;n++)ql(e[n],i)&&a.push(e[n]);return a}const qd=[];for(let e=0;e<256;e++){let n=e;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;qd.push(n)}function Wd(...e){const n=Object.create(null);return e.length&&Ml(n,...e),n}function Kd(e){let n=typeof e;if(void 0===e)return new Date;if("number"===n||fl(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===n){if(10===e.length)return new Date(parseInt(ul(e,0,4)),parseInt(ul(e,5,2))-1,parseInt(ul(e,8,2)),12);if(19===e.length)return new Date(parseInt(ul(e,0,4)),parseInt(ul(e,5,2))-1,parseInt(ul(e,8,2)),parseInt(ul(e,11,2)),parseInt(ul(e,14,2)),parseInt(ul(e,17,2)))}else if(Cl(e))return e;return!1}function Vd(e,n=""){sl(e)}function $d(e,n=null,t=null){sl(n,t)}function Jd(e,n,t=null,r=null){return!0}function Qd(...e){if(!e.length)return!1;for(let n of e)if("object"==typeof n&&!Hl(n))return!1;return!0}let Xd=[];function em(e){if(il(e)&&e){for(;"/"===ul(e,e.length-1);)e=ul(e,0,e.length-1);let n=e.lastIndexOf("/");if(n>0)return ul(e,0,n);if(0===n)return"/"}return""}function nm(...e){if(!e.length)return!1;for(let n of e)if("[object Blob]"!=={}.toString.apply(n))return!1;return!0}function tm(e){if(e&&il(e)){let n=e.split(".");if(n[0]&&n.length>1)return n[n.length-1].toLowerCase()}return""}function rm(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof HTMLCanvasElement))return!1;return!0}function im(e,n,t=null){if(rm(n))return void n.toBlob(n=>{let t=document.createElement("a");t.download=e,t.href=window.URL.createObjectURL(n),t.className="bbn-no",t.click(),window.URL.revokeObjectURL(t.href)},t||"image/png");t?-1===t.indexOf("/")&&(t="text/"+t):t=dl(n)&&n.type?n.type:"octet/stream";let r=window.document.createElement("a");r.className="bbn-no";let i=null;if(il(n))i=new Blob([n],{type:t});else try{i=n}catch(e){sl(e)}r.href=window.URL.createObjectURL(i),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}var am=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function om(){return am(this,void 0,void 0,function*(){var e;(null===(e=window.scheduler)||void 0===e?void 0:e.yield)?yield window.scheduler.yield():yield new Promise(requestAnimationFrame)})}var sm=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function um(e){let n;return"checkbox"===e.type?e.checked?(n=e.value,n||(n=1)):n=0:"radio"===e.type?e.checked&&(n=e.value):n=e.value,n}function cm(e){let n,t,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),i={};return yl(r,(e,r)=>{if(t=um(e),void 0!==t&&!e.disabled){let r=e.name;if(-1===r.indexOf("[]")&&r.indexOf("[")>-1&&r.indexOf("]")>-1&&r.lastIndexOf("]")===r.length-1&&(r=rd("][",".",r),r=rd("[",".",r),r=rd("]","",r)),r.length>2&&r.indexOf("[]")===r.length-2)n=ul(r,0,r.length-2),void 0===i[n]&&(i[n]=[]),i[n].push(t);else if(r.indexOf(".")>-1){let e,n=r.split(".");e=i;for(let r=0;r<n.length;r++)void 0===i[n[r]]&&(r<n.length-1?e[n[r]]={}:e[n[r]]=t),e=e[n[r]]}else i[r]=t}}),i}function lm(e){return e.filter((e,n,t)=>n===t.indexOf(e))}function dm(e,n=null){let t=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof n)for(;e=e.parentElement.closest(n);)t.push(e);else for(!0===n&&t.push(e);e=e.parentElement;)t.push(e);return t}function mm(e){0!==e.indexOf("--")&&(e="--"+e);let n=getComputedStyle(document.documentElement).getPropertyValue(e);return"string"==typeof n&&(n=n.trim()),n}function fm(){const e=navigator.userAgent.toLowerCase();return/iPhone|Android/i.test(navigator.userAgent)?"mobile":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?"tablet":"desktop"}function hm(){let e,n=window.getSelection();if(n.rangeCount>0){e=n.getRangeAt(0),sl("RANGE",e);let t=e.cloneContents();sl("clonedSelection",t);let r=document.createElement("div");return r.appendChild(t),r.innerHTML}return""}function ym(e){return il(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function Mm(e){let n=document.createElement("div");return n.innerHTML=e,e=n.innerText}function gm(e){let n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0),n}function pm(e){let n,t={};if(dl(e[0])&&1===e.length)return e[0];for(let r=0;r<e.length;r++)n=typeof e[r],n=n.toLowerCase(),ol(e[r])?(t.errorFn&&!t.abortFn&&(t.abortFn=e[r]),t.successFn&&!t.errorFn?t.errorFn=e[r]:t.successFn||(t.successFn=e[r])):1===e[r]||!0===e[r]?t.force=!0:"string"===n?t.url?t.datatype=e[r]:(t.url=e[r],0===t.url.indexOf(bbn.env.root)&&(t.url=ul(t.url,bbn.env.root.length))):e[r]&&"object"===n&&(e[r]instanceof Event?t.e=e[r]:t.ele||1!==e[r].nodeType?"object"===n.toLowerCase()&&(t.obj=e[r]):t.ele=e[r]);return!t.url&&Nl(t)&&(t.url=bbn.env.path),void 0===t.obj&&(t.obj={_bbn:"public"}),t.datatype||(t.datatype="json"),t}function vm(e,n,t=null,r=!1){bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(ul(e,0,7))?e:bbn.env.root+e;const[i,a]=bbn.env.url.split("?"),o=a?a.split("&").reduce((e,n)=>{const[t,r]=n.split("=");return e[t]=r,e},{}):{};bbn.env.getParameters=o,bbn.env.path=ul(i,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e);let s=window.history;if(s){let e=s.state,i={url:bbn.env.path,old_path:bbn.env.old_path||null,data:t||{},reload:!1};e&&e.url===bbn.env.path&&(e.data&&Ml(i.data,e.data),e.title&&!n&&(n=e.title),r=!0),n=n?Mm(n):bbn.env.siteTitle,r?(i.reload=!0,s.replaceState(i,n,bbn.env.url)):s.pushState(i,n,bbn.env.url)}}function wm(...e){let n=pm(e),t=1;if(n){if(0===n.url.indexOf("javascript:"))return!0;if(0===n.url.indexOf("data:"))return!0;if(0===n.url.indexOf("#"))return n.e&&n.e.preventDefault(),document.location.hash=n.url.substring(1),!1;if(0===n.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=n.url,setTimeout(()=>{bbn.env.ignoreUnload=!1},0),!1;if(Jl(n.url))return!1;if((0===n.url.indexOf("http://")||0===n.url.indexOf("https://"))&&0!==n.url.indexOf(bbn.env.host))return n.e&&n.e.preventDefault(),window.open(n.url),!1;if(n.url!==bbn.env.params.join("/")||1===n.force){if(n.e&&n.e.preventDefault(),n.successFn)t=n.successFn(n.url);else if(bbn.fn.defaultPreLinkFunction){let e=bbn.fn.defaultPreLinkFunction(n.url,n.force,n.ele);void 0!==e.data?(Ml(n.obj,e.data),t=1):t=e}if(t){1!==t&&"string"==typeof t&&(n.url=t);let e=bbn._("The Ajax call to")+" "+n.url+" ";return ad(n.url,n.datatype,n.obj,t=>{t||sl(e+bbn._("returned no answer")),dl(t)&&(0===Object.keys(t).length&&sl(e+bbn._("returned an empty object")),t.new_url?(t.old_path=n.url,n.url=t.new_url):t.url&&n.url!==t.url&&(t.old_path=n.url)),Bd(n.url,t,n.successFn,null,n.ele)&&void 0===t.noNav&&0!==bbn.env.path.indexOf(n.url)&&vm(n.url,(t.title?t.title+" - ":"")+bbn.env.siteTitle)},n.errorFn||null)}}return!0}}function bm(){let e=bbn.env.width!==window.innerWidth,n=bbn.env.height!==window.innerHeight;if(e||n){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),n&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));let t=parseInt(mm("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<t?"small":"regular"),i=(document.body.className||"").split(" "),a=!1;yl(i,(e,n)=>{if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return a=!0,e!==r&&i.splice(n,1,r),!1}),a||i.push(r),bbn.fn.defaultResizeFunction(),document.body.className=i.join(" ")}}function _m(){return"mobile"===fm()}function Em(){return"tablet"===fm()}function Tm(){return _m()||Em()}function Dm(e=!1){let n=(new Date).getTime();return e?Math.round(n/1e3):n}function Sm(e){const n=String(null!=e?e:"").split("-").filter(Boolean);if(!n.length)return{language:"und"};let t,r,i=n[0].toLowerCase();for(let e=1;e<n.length;e++){const i=n[e];t||4!==i.length?r||2!==i.length&&3!==i.length||(r=i.toUpperCase()):t=i[0].toUpperCase()+i.slice(1).toLowerCase()}return{language:i,script:t,region:r}}const Am=globalThis.document?Promise.resolve().then(function(){return Wm}):{};function km(e){var n,t,r;const i=null!==(r=null!==(n=e.baseName)&&void 0!==n?n:null===(t=e.toString)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"und",{region:a}=Sm(i),o=a&&Am[a]||{firstDay:1,weekend:[6,7],minimalDays:4};return{firstDay:o.firstDay,weekend:o.weekend.slice(),minimalDays:o.minimalDays}}function Cm(){!function(){if("undefined"==typeof Intl)return;if("function"!=typeof Intl.Locale){class e{constructor(e){const n=Array.isArray(e)?e[0]:e,t=String(null!=n?n:"und"),r=Sm(t);this._tag=t,this._language=r.language,this._script=r.script,this._region=r.region}toString(){return this._tag}get baseName(){return this._tag}get language(){return this._language}get script(){return this._script}get region(){return this._region}getWeekInfo(){return km(this)}get weekInfo(){return km(this)}}Intl.Locale=e}const e=Intl.Locale.prototype;"function"!=typeof e.getWeekInfo&&(e.getWeekInfo=function(){return km(this)}),Object.getOwnPropertyDescriptor(e,"weekInfo")||Object.defineProperty(e,"weekInfo",{configurable:!0,enumerable:!0,get(){return"function"==typeof this.getWeekInfo?this.getWeekInfo():km(this)}})}()}var Pm=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function Nm(){return Pm(this,void 0,void 0,function*(){const e=[];"undefined"!=typeof Intl&&"function"==typeof Intl.RelativeTimeFormat||e.push((()=>Pm(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Cg}),yield Promise.resolve().then(function(){return Ng})}))()),function(){if("undefined"==typeof Intl||"function"!=typeof Intl.DateTimeFormat)return!0;try{return new Intl.DateTimeFormat("en",{dateStyle:"medium"}),!1}catch(e){return!0}}()&&e.push((()=>Pm(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return xp}),yield Promise.resolve().then(function(){return Rp})}))()),e.length>0&&(yield Promise.all(e)),Cm()})}const zm=()=>{bbn.env.last_focus=bbn.dt().unix()},Hm=e=>{if(zm(),"ajax"!==bbn.env.nav)return;let n=e.target;if(n instanceof HTMLElement&&"A"!==n.tagName){let e=n;for(;e&&"A"!==e.tagName&&"BODY"!==e.tagName;)e=e.parentElement;n=e&&"A"===e.tagName?e:null}n instanceof HTMLElement&&n.hasAttribute("href")&&!n.hasAttribute("target")&&!n.classList.contains("bbn-no")&&(sl("Link clicked: "+n.getAttribute("href")),wm(n.getAttribute("href"),e))};function Im(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||fl(ul(e,0,1)))){let n=document.createElement("div");n.style.width=e;let t=!!n.style.width.length;return n.remove(),t}return!1}function Fm(...e){if(!e.length)return!1;for(let n of e)if(!il(n)||!bbn.var.regexp.ip.test(n))return!1;return!0}function Om(...e){if(!e.length)return!1;for(let n of e)if("[object Symbol]"!=={}.toString.apply(n))return!1;return!0}function Lm(e){const n=["BBN: "+e];n.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),sl.apply(this,n)}function Gm(e,n="",t=null){let r=new FormData,i=(e,n="")=>{(!t||ml(t)&&!t.includes(n))&&(e instanceof File?r.append(n,e):ml(e)?yl(e,(e,t)=>{i(e,n+"["+t+"]")}):dl(e)&&Object.keys(e).length?ll(e,(t,r)=>{r in e&&i(t,n?n+"["+r+"]":r)}):Hl(e)||void 0===e||r.append(n,e))};return i(e,n),r}function Bm(e){return"string"==typeof e?document.querySelector(e):e}function xm(...e){let n=pm(e);if(n.url)return ad(n.url,n.datatype,n.obj,e=>{Bd(n.url,e,n.successFn,n.errorFn,n.ele)},n.errorFn,n.abortFn)}function Rm(e,n,t,r){if("object"==typeof e&&"string"==typeof n){let i=e;const a=n.split(".");yl(a,(e,n)=>{if(!i){if(!r)throw new Error(bbn._("The object is invalid"));i={}}a.length-1===n?i[e]=t:i=i[e]})}}function jm(e,n){return Math.floor(Math.random()*(n-e+1)+e)}function Zm(e,n=" "){if(" "===n)return e.trim();if(!n)return e;if(n===e)return"";for(;0===e.indexOf(n);)e=ul(e,n.length);for(;e.lastIndexOf(n)===e.length-n.length;)e=ul(e,0,e.length-n.length);return e}function Um(e,n,t){return"string"==typeof e.toLowerCase()&&(n||(n=bbn.var.shortenLen),void 0!==t&&il(t)||(t="..."),e.length>n&&(e=ul(e,0,n)+t)),e}var Ym={_addLoader:Sl,_compareValues:Pl,_deleteLoader:$l,abort:function(e){let n=Jl(e);(null==n?void 0:n.aborter)&&n.aborter.abort("Operation canceled by the user.")},abortURL:function(e){yl(Ql(bbn.env.loaders,{url:e}),n=>{if(!n||!n.source)throw new Error("Impossible to find the loader with URL "+e);n.source.cancel("Operation canceled by the user.")})},addColors:Xl,addInputs:ed,addStyle:function(e,n){dl(n)&&ll(n,(n,t)=>{e.style[t]=n})},adjustHeight:function(){let e=arguments;return 1===e.length&&hl(e[0])&&(e=e[0]),nd("height",e)},adjustSize:nd,adjustWidth:function(){let e=arguments;return 1===e.length&&hl(e[0])&&(e=e[0]),nd("width",e)},ajax:ad,analyzeFunction:Zl,animateCss:function(e,n,t){e.classList.add("animated"),e.classList.add(n),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function e(r){r.target.removeEventListener(r.type,e),"function"==typeof t&&t.call(this),r.target.classList.remove(n)})},arrayBuffer2String:sd,arrayFromProp:function(e,n){let t=[];return yl(e,(e,r)=>{t.push(Al(e,n))}),t},autoExtend:function(e,n){bbn[e]||(bbn[e]={}),Ml(bbn[e],n)},baseName:ud,br2nl:function(e){return rd("<br />","\n",rd("<br/>","\n",rd("<br>","\n",e)))},calendar:function(e,n=!1){let t=Ld(e);return t.isValid?t.calendar():n&&il(n)?n:""},callback:Bd,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,function(e,n,t,r){return t?t.toUpperCase():n.toLowerCase()})},camelToCss:function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).replace("/^./",function(e){return e.toLowerCase()})},canvasToImage:function(e){let n=new Image;return n.src=e.toDataURL("image/png"),n},cast:function(e){var n;return e?"object"==typeof e?bbn.fn.isArray(e)?"Array ("+e.length+")":(null===(n=e.constructor)||void 0===n?void 0:n.name)||"{}":e.toString?e.toString():"string"==typeof e?e:"":""},center:function(e){let n=e.parentNode,t=n.clientWidth,r=n.clientHeight;for(;n&&(!t||!r);)n=e.parentNode,t=n.clientWidth,r=n.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+n.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+n.scrollLeft)+"px",e},checkProps:function(e,n,t=!1){return xd(e,n,t).result},checkPropsDetails:xd,checkPropsOrDie:function(e,n,t=!1){let r=xd(e,n,t);if(r.error)throw new Error(r.error);return!0},checkType:jd,circularReplacer:function(){const e=new WeakSet;return(n,t)=>{if("object"==typeof t&&null!==t){if(e.has(t))return;e.add(t),[void 0,Object,Array,null].includes(t.constructor)||(t=Ll(t)?t.bbnId?"__BBN_DOM__"+t.tagName+"/"+t.bbnId+t.bbnHash:"__BBN_DOM__"+t.tagName+"/"+t.className:Bl(t)?"__BBN_CP__"+t.$options.name+"/"+t.$cid:t.constructor.toString())}return t}},clone:Zd,colorToHex:function(e){let n=document.createElement("canvas").getContext("2d");return n.fillStyle=e,n.fillStyle},compare:Yl,compareConditions:ql,copy:function(e,n){return new Promise(t=>{if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?(navigator.clipboard.write([new ClipboardItem({[e.type.toString()]:e})]).then(()=>{t(!0)}),n||Ud(e,e.type.toString())):dl(e)&&ol(e.toBlob)?e.toBlob(r=>{const i=new ClipboardItem({[r.type.toString()]:r});navigator.clipboard.write([i]).then(()=>{n||Ud(e,r.type.toString()),t(!0)})}):(navigator.clipboard.writeText(e),n||Ud(e),t(!0)));let r=document.createElement("textarea");r.style.opacity="0",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),n||Ud(e),t(!0)}t(!1)})},correctCase:Rd,count:function(e,n,t=null,r="="){return Yd(e,n,t,r).length||0},crc32:function(e){let n=~0;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);n=n>>>8^qd[255&(n^r)]}return(-1^n)>>>0},createObject:Wd,cssExists:function(e){let n,t,r=document.styleSheets;for(let i=0;i<r.length;i++){n=1;try{t=r[i].rules||r[i].cssRules}catch(e){if(n=!1,"SecurityError"!==e.name)throw e}if(n)for(let n=0;n<t.length;n++)if(new RegExp("(^|\\s)"+td(e)+"(\\{|\\s)","g").test(t[n].selectorText))return!0}return!1},data2Html:function e(n,t=""){const r=!ml(n);let i='<ul class="bbn-bottom-xspadding '+(t||"bbn-ul")+'">';for(let a in n)i+="<li>",r&&(i+="<em>"+a+"</em>: "),n[a]&&(ml(n[a])||dl(n[a]))?i+=e(n[a],t):i+=null===n[a]?"<em>null</em>":n[a].toString?n[a].toString():n[a],i+="</li>";return i+='</ul><div class="bbn-bottom-xspadding '+(t||"bbn-div")+'"></div>',i},date:Kd,dateSQL:function(e,n){let t=Ld(e);if(t)return t.format("YYYY-MM-DD"+(n?"":" HH:mm:ss"))},deepPath:function e(n,t,r,i=[]){let a;return(a=Kl(n,t,0))>-1?(i.push(a),i):(yl(n,(n,a)=>{if(ml(n[r])){let o=i.slice();o.push(a);let s=e(n[r],t,r,o);if(!1!==s)return s}}),!1)},defaultAjaxAbortFunction:Vd,defaultAjaxErrorFunction:$d,defaultAlertFunction:function(e,n=null){alert(e)},defaultConfirmFunction:function(e,n,t=null){let r=0;confirm(e)&&ol(n)&&(n(),r=1),!r&&ol(t)&&t()},defaultEndLoadingFunction:Jd,defaultErrorFunction:function(e){sl(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,n){return!0},defaultPostLinkFunction:function(e,n=null){return!0},defaultPreLinkFunction:function(e,n=!1,t=null){return sl("defaultPreLinkFunction",e,n,t),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,n,t,r){return!0},deleteProp:function(e,n){jd(e,"object",bbn._("The obj must be an object in setProp")),jd(n,"string",bbn._("The prop must be a string in setProp")),delete e[n]},diffObj:function e(n,t,r=!1,i=!1){i||(Xd=[]);let a="unchanged";void 0===i&&(i=!1);let o=Wd();if(!ol(n)&&!ol(t)){if(Qd(n)||Qd(t)){let e=(s=n)===(u=t)||Cl(s)&&Cl(u)&&s.getTime()===u.getTime()?a:void 0===s?"created":void 0===u?"deleted":"updated";if(r||e!==a){let r=Wd();return Object.defineProperty(r,"type",{value:e,enumerable:!1}),Object.defineProperty(r,"data",{value:void 0===n?t:n,enumerable:!1}),Object.defineProperty(r,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==n&&Object.defineProperty(r,"newData",{value:t,enumerable:!1}),r}return!1}if(Ll(n)||Ll(t))return!1;if(Xd.includes(n)||Xd.includes(t))return!1;Xd.push(n,t);for(let i in n){if(ol(n[i]))continue;let a;void 0!==t[i]&&(a=t[i]);let s=e(n[i],a,r,!0);s&&(o[i]=s)}for(let i in t){if(ol(t[i])||void 0!==n[i])continue;let a=e(void 0,t[i],r,!0);a&&(o[i]=a)}}var s,u;return!(i&&!r&&!Nl(o))&&o},dirName:em,download:function(e,n="",t=null){return n&&"object"==typeof n&&(t=n,n=""),ad(e,"blob",t||{_bbn_download:1},(t,r)=>{if(!n){let t="content-disposition",i="attachment; filename=";n=(null==r?void 0:r[t])&&0===r[t].indexOf(i)?ul(r[t],i.length+1,r[t].length-i.length-2):ud(e)}if(nm(t)){let e=tm(n),r=["php","html"];if("string"==typeof n&&("type"in t&&"text/html"!==t.type||r.includes(e)))return void im(n,t)}},e=>{bbn.fn.defaultAjaxErrorFunction(e)})},downloadContent:im,each:yl,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:Gd,escapeDquotes:function(e){return il(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:td,escapeSquotes:function(e){return il(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return il(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,n){let t="";e.match("^(http|https)://")&&(t+="http","s"===(e=e.substring(4)).substr(0,1)&&(t+="s",e=e.substring(1)),t+="://",e=e.substring(3)),yl(em(e).split("/"),e=>{t+=encodeURIComponent(e)+"/"});let r=ud(e),i="?",a="";if(r.indexOf(i)){let e=r.split("?");i="&",a="?"+e[1],r=e[0]}return n&&il(n)?(n.match("^(\\&|\\?)")&&(n=n.substring(1)),n=i+n):n="",t+encodeURIComponent(r)+a+n},executeSlowly:function(e,n){return sm(this,void 0,void 0,function*(){for(let t=0;t<e.length;t++){yield om();let r=n(e[t],t);if(r instanceof Promise&&(r=yield r),!1===r)return!1}return!0})},extend:Ml,extendOut:function e(...n){let t=null;for(let r of n){if(!dl(r))throw new Error("Each argument for extendOut must be an object, "+typeof r+" given");if(null===t)t=r;else for(let n in r)dl(t[n],r[n])?e(t[n],r[n]):void 0===t[n]&&(t[n]=r[n])}return t},fdate:function(e,n=!1){let t=Ld(e),r=!1;return!0===n&&(r=!0),t.isValid?t.fdate(!1,r):n&&il(n)?n:""},fdatetime:function(e,n=!1){let t=Ld(e);return t.isValid?t.fdate(!1,!0):n&&il(n)?n:""},fieldValue:um,fileExt:tm,filter:Yd,filterToConditions:Wl,findAll:function e(n,t,r,i=[]){let a,o=0;for(;(a=Kl(n,t,o))>-1;)i.push(n[a]),o=a+1;return yl(n,n=>{ml(n[r])&&e(n[r],t,r,i)}),i},firstVarElement:function(e){const n=e.indexOf("["),t=e.indexOf(".");return-1===n&&-1===t?e:-1===n?e.substring(0,t):-1===t?e.substring(0,n):e.substring(0,Math.min(n,t))},fori:function(e,n,t=e.length-1,r=0){if(ml(e)){let i=e.length-1;fl(t)&&0<t&&t<=i||(t=i),(!fl(r)||!(0<=r&&r<i)||r>t)&&(r=0);for(let i=r;i<=t;i++)if(!1===n(e[i],i))return}},forir:function(e,n,t=e.length-1,r=0){if(ml(e)){let i=e.length-1;fl(t)&&0<t&&t<=i||(t=i),(!fl(r)||!(0<=r&&r<i)||r>t)&&(r=0);for(let i=t;i>=r;i--)if(!1===n(e[i],i))return}},format:function(e){let n=Array.prototype.slice.call(arguments,1);if(n.length){let t=0;return e.replace(/\%([d|s])/g,(e,r)=>{let i=n[t++];return jd(i,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),i})}return e},formatBytes:function(e,n=2){if(!e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(n<0?0:n))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]},formatDate:function(e,n){const t=Ld(e);return t.isValid?t.format(n):""},formatSize:function(e,n){return fl(e)?e+"px":il(e)?e:!n&&"auto"},formdata:cm,fphone:function(e){var n;if(fl(e)&&(e=e.toString()),il(e)){const t=(null===(n=bbn.var)||void 0===n?void 0:n.phoneCodes)||[];let r="",i="",a="";if(t.length&&yl(t,n=>{e.startsWith(n.prefix)&&n.prefix.length>i.length&&(i=n.prefix,a=n.mask||"")}),!a.length&&e.startsWith("+")){i.length||(i=e.substr(0,3));const n=e.slice(i.length);for(let e=0;e<n.length;e++)e+1<=n.length&&e%2==0&&(a+="0"+(n[e+1]?"0":"")+" ");a=a.trim()}if(a.length){i.length&&(r=i+" ",e=e.slice(i.length));let n=0;return r+=a.replace(/[0-9]/g,()=>e[n++]||""),r}}return e},fromXml:function(e,n){let t=null;if(window.DOMParser)t=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if(t=new window.ActiveXObject("Microsoft.XMLDOM"),t.async=!1,!t.loadXML(e))throw t.parseError.reason+" "+t.parseError.srcText}function r(e,t){if("#text"==e.nodeName){let n=e.nodeValue;return void(n.trim()&&(t["#text"]=n))}let i={},a=t[e.nodeName];if(a?Array.isArray(a)?t[e.nodeName].push(i):t[e.nodeName]=[a,i]:n&&-1!=n.indexOf(e.nodeName)?t[e.nodeName]=[i]:t[e.nodeName]=i,e.attributes)for(let n of e.attributes)i[n.nodeName]=n.nodeValue;for(let n of e.childNodes)r(n,i)}let i={};for(let e of t.childNodes)r(e,i);return i},ftime:function(e,n){let t=Ld(e);return t.isValid?t.ftime():n&&il(n)?n:""},getAllTags:function(){return lm(Array.prototype.map.apply(document.all,[e=>e.tagName.toLowerCase()]))},getAncestors:dm,getAttributes:function(e){e.getAttributeNames||Gd("The element is not a proper HTML Element");let n=Object.create(null);return e.getAttributeNames().forEach(t=>{n[t]=e.getAttribute(t)}),n},getBrowserName:function(){const e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge"):case e.includes("edg/"):return"Edge";case e.includes("opr")&&!!window.opr:return"Opera";case e.includes("chrome")&&!!window.chrome:return"Chrome";case e.includes("trident"):return"Internet Explorer";case e.includes("firefox"):return"Firefox";case e.includes("safari"):return"Safari";default:return"Other"}},getBrowserVersion:function(){const e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge/"):return e.split("edge/")[1].split(" ")[0];case e.includes("edg/"):return e.split("edg/")[1].split(" ")[0];case e.includes("opr/")&&!!window.opr:return e.split("opr/")[1].split(" ")[0];case e.includes("chrome/")&&!!window.chrome:return e.split("chrome/")[1].split(" ")[0];case e.includes("trident/"):return e.split("trident/")[1].split(" ")[0];case e.includes("firefox/"):return e.split("firefox/")[1].split(" ")[0];case e.includes("safari/"):return e.split("version/")[1].split(" ")[0];default:return""}},getChrono:function(e="default"){return bbn.fn.microtimestamp()-this.constructor.chronos[e]},getCookie:function(e){let n=e+"=",t=document.cookie.split(";");for(let e=0;e<t.length;e++){let r=t[e];for(;" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(n)){let e=r.substring(n.length,r.length);if(e)return JSON.parse(unescape(e)).value}}return null},getCssVar:mm,getDay:function(e){let n=Kd(e);if(n){let e=n.getTime(),r=n.getYear(),i=365*(r-1970);n.getMonth()<2&&r--;for(var t=1972;t<=r;t+=4)i++;return i+Math.floor(e/864e5)}return!1},getDeviceType:fm,getEventData:function(e){let n=e.dataTransfer||e.clipboardData,t=n.getData("Text"),r={raw:t,files:[],str:[]},i=new Promise((i,a)=>{let o=!(n instanceof DataTransfer);if(!t&&"copy"===e.type){let e=window.getSelection();r.raw=e.toString();let n=hm();r.str.push({type:"text/plain",data:r.raw}),n!==r.raw?r.str.push({type:"text/html",data:n}):0===r.raw.trim().indexOf("<")&&r.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+r.raw+"\n</code>"}),o=!0,i(r)}if(!o){let e=[],t=n.items.length;yl(n.items,(a,s)=>{let u=a.kind,c=a.type;if("file"===u){let u=n.files[s];if(!c&&u.name){let e=u.name.split(".");c=e[e.length-1]}let l=u?u.name:bbn._("untitled"),d=u?u.size:null,m=u?u.lastModified:null,f=a.getAsFile();f?(o=!0,t--,r.files.push({type:c,data:f,name:l,size:d,mdate:m}),e.push(l),t||(r.raw||(r.raw=e.join(", ")),i(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+l)}else o=!0,a.getAsString(n=>{t--,r.str.push({type:c,data:n}),"text/plain"===c&&e.push(name),t||(r.raw||(r.raw=e.join(", ")),i(r))})})}o||setTimeout(()=>{i(r)})});return i},getField:function(e,n,t="",r=null,i="=",a=0,o=!1,s=void 0){let u;return t&&["object","function"].includes(typeof t)&&6 in arguments&&(s=o),n?(u=Vl(e,t,r,i,a,o,void 0),void 0===u?s:u[n]):s},getFieldValues:function(e,n,t,r,i){jd(n,"string"),t&&(e=Ql(e,t,r,i));let a=[];return yl(e,e=>-1===a.indexOf(e[n])?a.push(e[n]):null),a},getFileContent:function(){let e,n,t="",r="text";bbn.fn.each(arguments,i=>{"string"==typeof i?["binary","text"].includes(i.toLowerCase())?r=i.toLowerCase():t||(t=i,"image"===t&&(t="image/*")):bbn.fn.isFunction(i)&&(e?n||(n=i):e=i)});let i=document.createElement("input");i.type="file",t&&i.setAttribute("accept",t),i.onchange=function(t){var a;const o=null===(a=i.files)||void 0===a?void 0:a[0];if(!o)return;const s=new FileReader;"binary"===r?s.readAsArrayBuffer(o):s.readAsText(o,"UTF-8"),s.onload=function({target:n}){e&&e(null==n?void 0:n.result)},s.onerror=function(){n&&n("error reading file")}},i.click()},getIndex:function(e,n=""){return e.parentElement?(n||Array.from(e.parentElement.children).indexOf(e),Array.from(e.parentElement.children).filter(e=>e.matches(n)).indexOf(e)):-1},getHtml:function(e,n=!1){let t=e.innerHTML();return n&&(t=ym(t)),t.trim()},getHTMLOfSelection:hm,getLoader:Jl,getPath:Gl,getProp:function(e,n){return jd(e,"object",bbn._("The obj must be an object in setProp")),jd(n,"string",bbn._("The prop must be a string in setProp")),e[n]},getProperty:Al,getRequestId:id,getRow:Vl,getScrollBarSize:function(){if(void 0===bbn.env.scrollBarSize){let e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);let n=e.offsetWidth;e.style.overflow="scroll";let t=document.createElement("div");t.style.width="100%",e.appendChild(t);let r=t.offsetWidth;e.parentNode.removeChild(e);let i=n-r;bbn.env.scrollBarSize=i?i+1:0}return bbn.env.scrollBarSize},getSortingMoves:function(e,n){if(e.length!==n.length)throw new Error("Lengths must match.");const t=new Set(n);if(t.size!==n.length)throw new Error("dst has duplicates.");const r=new Set(e);if(r.size!==e.length)throw new Error("src has duplicates.");if(e.length!==t.size||Array.from(r).some(e=>!t.has(e)))throw new Error("Arrays must contain the same unique values.");const i=new Map(n.map((e,n)=>[e,n])),a=e.map(e=>i.get(e)),o=(e=>{const n=e.length,t=[],r=Array(n).fill(-1);for(let i=0;i<n;i++){let n=e[i],a=0,o=t.length;for(;a<o;){const r=a+o>>1;e[t[r]]<n?a=r+1:o=r}a>0&&(r[i]=t[a-1]),t[a]=i}const i=[];for(let e=t.length?t[t.length-1]:-1;-1!==e;e=r[e])i.push(e);return i.reverse()})(a),s=new Set(o.map(n=>e[n])),u=Array(n.length).fill(-1);for(let e=n.length-2;e>=0;e--)u[e]=u[e+1],s.has(n[e+1])&&(u[e]=e+1);const c=e.slice(),l=new Map(c.map((e,n)=>[e,n])),d=[];for(let e=0;e<n.length;e++){const t=n[e];if(s.has(t))continue;const r=l.get(t);if(void 0===r)throw new Error("Inconsistent state");const i=u[e],a=-1!==i?l.get(n[i]):c.length;if(void 0===a)throw new Error("Inconsistent state");const o=r<a?a-1:a;if(r!==o){const[e]=c.splice(r,1);c.splice(o,0,e),d.push({from:r,to:o,value:t}),l.clear();for(let e=0;e<c.length;e++)l.set(c[e],e)}}return d},getText:function(e){return e.innerText().trim()},getTimeoff:function(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)},happy:function(...e){return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),sl.apply(this,e),this},hash:Rl,hex2rgb:function(e){"#"!==e.charAt(0)&&(e="#"+e),4===e.length&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},history:function(){return window.history||!1},html2text:Mm,imageToCanvas:gm,imgToBase64:function(e,n="image/png"){return gm(e).toDataURL(n)},info:function(...e){return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),sl.apply(this,e),this},init:function(e,n){var t,r;if(!bbn.env.isInit){bbn.env.root=(null===(r=null===(t=globalThis.document)||void 0===t?void 0:t.baseURI)||void 0===r?void 0:r.length)?globalThis.document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==ul(bbn.env.root,-1)&&(bbn.env.root+="/"),"object"==typeof e&&Ml(!0,bbn,e);const[n,i]=bbn.env.url.split("?"),a=i?i.split("&").reduce((e,n)=>{const[t,r]=n.split("=");return e[t]=r,e},{}):{};bbn.env.getParameters=a,bbn.env.path=ul(n,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e),Nm(),globalThis.document&&(bbn.var.colors&&Xl(bbn.var.colors),document.addEventListener("visibilitychange",()=>{document.hidden?bbn.env.isVisible=!1:bbn.env.isVisible=!0}),document.addEventListener("focus",e=>{e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.isFocused=!0,bbn.env.last_focus=Dm()}),document.addEventListener("blur",e=>{e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.isFocused=!1,bbn.env.last_focus=Dm()}),document.addEventListener("click",Hm),document.addEventListener("keydown",Hm),document.addEventListener("focusin",zm),document.addEventListener("focusout",zm),window.addEventListener("hashchange",()=>{bbn.env.hashChanged=(new Date).getTime()},!1),window.addEventListener("resize",()=>{bm()}),window.addEventListener("orientationchange",()=>{bm()}),bm(),Tm()&&(document.body.classList.add("bbn-mobile"),Em()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){let n=window.history;if(!bbn.env.historyDisabled&&n&&bbn.fn.defaultHistoryFunction(n.state)){let e=n.state;e?wm(e.url,Ml({title:e.title||bbn.env.siteTitle},e.data||{})):e&&e.data&&ol(e.data.script)&&e.data.script()}}),window.addEventListener("online",()=>{bbn.env.online=!0}),window.addEventListener("offline",()=>{bbn.env.online=!1}),bbn.env.isInit=!0,document.dispatchEvent(new Event("bbninit")))}},isActiveInterface:function(e=600){return!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:ml,isBlob:nm,isBoolean:function(...e){if(!e.length)return!1;for(let n of e)if(![!0,!1].includes(n))return!1;return!0},isCanvas:rm,isColor:function(...e){if(!e.length)return!1;var n=new RegExp("^(#[a-f0-9]{6}|#[a-f0-9]{3}|rgb *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|rgba *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|black|green|silver|gray|olive|white|yellow|maroon|navy|red|blue|purple|teal|fuchsia|aqua)$","i");for(let t of e){if(!il(t))return!1;if(!n.test(t))return!1}return!0},isComment:function(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof Comment))return!1;return!0},isCp:Bl,isDataURL:function(...e){if(!e.length)return!1;for(let n of e)if(!/^data:([a-z]+\/[a-z0-9\-\+\.]+(;[a-z\-]+\=[a-z0-9\-\.]+)?)?(;base64)?,/i.test(n))return!1;return!0},isDate:Cl,isDesktopDevice:function(){return"desktop"===fm()},isDimension:function(...e){if(!e.length)return!1;for(let n of e){if("number"!=typeof n||n<0)return!1;if(!Im(n))return!1}return!0},isDom:Ll,isEmail:function(...e){if(!e.length)return!1;let n=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;for(let t of e){if(!il(t))return!1;if(!n.test(t))return!1}return!0},isEmpty:zl,isEvent:function(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof Event))return!1;return!0},isFocused:function(e,n=!1){return e===document.activeElement||n&&e.contains&&e.contains(document.activeElement)},isFunction:ol,isHex:function(e){return Boolean(e.match(/^(0x)?[0-9a-f]+$/i))},isHostname:function(...e){if(!e.length)return!1;for(let n of e){if(!il(n))return!1;if(!Fm(n)&&!bbn.var.regexp.hostname.test(n))return!1}return!0},isInside:function(e,n){let t=dm(e);if(t.length){if(il(n)){let e=!1;return yl(t,t=>{if(t.matches&&t.matches(n))return e=!0,!1}),e}if(n instanceof HTMLElement)return t.indexOf(n)>-1}return!1},isInt:al,isInViewport:function(e,n=!1){const t=e.getBoundingClientRect();if(n)return t.top>=0&&t.left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth)&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight);const r=e.offsetHeight,i=e.offsetWidth;return t.top>=-r&&t.left>=-i&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+i&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:Fm,isIterable:hl,isMobile:Tm,isMobileDevice:_m,isNotObject:Qd,isNull:Hl,isNumber:fl,isObject:dl,isPercent:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^\d+(?:\.\d+)?%$/))return!1;return!0},isPrimitive:md,isPromise:function(...e){if(!e.length)return!1;for(let n of e)if("[object Promise]"!=={}.toString.apply(n))return!1;return!0},isPropSize:function(e){let n=!1;return yl(["width","height","gap","margin","padding","top","left","right","bottom"],t=>{if(-1!==e.indexOf(t))return n=!0,!1}),n},isSame:Ul,isSQLDate:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^([1-2]\d{3})-((0\d)|(1[12]))-(([0-2]\d)|(3[01]))(?:( [0-2]\d):([0-5]\d):([0-5]\d))?$/))return!1;return!0},isString:il,isSymbol:Om,isTabletDevice:Em,isURL:function(...e){if(!e.length)return!1;for(let n of e)if(!bbn.var.regexp.url.test(n))return!1;return!0},isUid:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^[0-9a-f]{32}$/i))return!1;return!0},isValidDimension:Im,isValidName:function(...e){if(!e.length)return!1;for(let n of e)if(!il(n)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(n))return!1;return!0},isVue:function(...e){if(!e.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue){for(let n of e)if(!n||"function"!=typeof n.render)return!1}else for(let n of e)if(!(n instanceof window.Vue))return!1;return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||bbn.cp.isComponent(...e)},isWritable:function(e,n){let t;for(;e&&(t=Object.getOwnPropertyDescriptor(e,n),!t);)e=Object.getPrototypeOf(e);return!t||Boolean(t.writable||t.set)},iterate:ll,lightenDarkenHex:function(e,n){if(e&&n){let t="#"===e[0];e=t?e.slice(1):e;let r=parseInt(e,16),i=(r>>16)+n,a=(r>>8&255)+n,o=(255&r)+n;return i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),o>255?o=255:o<0&&(o=0),(t?"#":"")+(o|a<<8|i<<16).toString(16)}},link:wm,log:sl,makeReactive:function e(n,t,r,i){const a=(null==r?void 0:r.$cid)||"",o="__bbn_"+(a?a+"_":"");if(n&&"object"==typeof n&&[void 0,Object,Array].includes(n.constructor)){if(n.__bbnIsProxy&&n.__bbnParent===r)return n;r&&r.$options&&"bbn-loadbar"===r.$options.name&&sl(["MAKING bbn-loadbar",n]),n.__bbnWatchers||Reflect.defineProperty(n,"__bbnWatchers",{value:Wd(),writable:!0,configurable:!0,enumerable:!1});return new Proxy(n,{get(s,u){const c=Reflect.get(s,u),l=s.__bbnRoot||s;if(Om(u))return Reflect.get(l,u);const d=i?i+"."+u:u,m=o+(fl(u)?u.toString():u);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(u)&&ml(s))return function(...e){let n=l[u](...e);return Lm("DOING ARRAY STUFF"),sl(s.__bbnParent),t(s,"length",r),n};if(ol(c))return c;if("__bbnRoot"===u){let e=n;for(;e&&(null==e?void 0:e.__bbnTarget);)e=e.__bbnTarget;return e}return"__bbnIsProxy"===u||("__bbnTarget"===u?s:"__bbnParent"===u?r:"__bbnWatchers"===u?s.__bbnWatchers:0===u.indexOf("__bbn_")?Reflect.get(s,u):"length"===u&&ml(s.__bbnRoot||s)?l.length:u in s&&c&&"object"==typeof c&&[void 0,Object,Array].includes(c.constructor)?(c.__bbnIsProxy&&c.__bbnParent===r||(m in l||Reflect.defineProperty(l,m,{value:e(c,t,r,d),writable:!0,configurable:!0,enumerable:!1}),l[m].__bbnIsProxy&&!l.__bbnWatchers[a]&&(l.__bbnWatchers[a]=d)),l[m]):c)},set(n,s,u){if(Om(s))return Reflect.get(n,s,u);const c=n.__bbnRoot||n,l=i?i+"."+s:s;if(Om(s))return Reflect.get(n,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&sl(["Setting proxy prop in "+r.$options.name,n,s,u]),!Ul(c[s],u)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(c,s,{value:e(u,t,r,l),writable:!0,configurable:!0,enumerable:!1});else if(u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)){const n=o+(fl(s)?s.toString():s);Reflect.defineProperty(c,n,{value:e(u,t,r,l),writable:!0,configurable:!0,enumerable:!1}),c[n].__bbnIsProxy&&!c.__bbnWatchers[a]&&(c.__bbnWatchers[a]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&sl(["Setting proxy prop in "+r.$options.name+" "+(fl(s)?s.toString():s),u,n]),Reflect.set(c,s,u),t(n,s,r)}return!0},defineProperty(n,a,s){const u=n,c=i?i+"."+a:a;if("__bbnWatchers"===a||Om(a)||0===a.indexOf("__bbn_"))Reflect.defineProperty(u,a,s);else{const n=o+(fl(a)?a.toString():a);Reflect.defineProperty(u,n,{value:e(s.value,t,r,c),writable:!0,configurable:!0,enumerable:!1})}return t(n,a,r),!0},deleteProperty(e,n){const t=e;if(0===n.indexOf("__bbn_"))Reflect.deleteProperty(t,n);else{const r=o+(fl(n)?n.toString():n);Reflect.deleteProperty(t,r),Reflect.deleteProperty(e,n)}return!0}})}return n},map:function e(n,t,r,i=0){return n.map((n,a)=>(n=t(n,a,i),r&&n[r]&&ml(n[r])&&(n[r]=e(n[r],t,r,i+1)),n))},md5:jl,microtimestamp:function(){return window.performance.now()+performance.timeOrigin},money:function(e,n,t,r,i,a,o){if(i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),t||(t=void 0===t&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),n||(n=!(void 0!==n||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),r||(r=!(void 0!==r||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),fl(o)||(o=n?3:0),0===e&&"number"==typeof o&&o>0){let r=e.toFixed(o).replace(".",i);return t&&(r+=" "+(n?"K"+t:t)),r}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(t?" "+t:"");if("string"==typeof e&&(e=Number(e)),"number"!=typeof e)throw new Error("The value must be a number");n&&e&&(e/=1e3,t&&(t="K"+t));let s=e.toFixed(o),u=0,c=1e4;return s&&(c=s.indexOf("."),c<=0?c=1e4:u=s.length-c),s.replace(/./g,function(e,n,t){return"."===e?i:n&&(t.length-n-u)%3==0&&n<c?a+e:e})+(t?" "+t:"")},move:function(e,n,t){if(t>=e.length){let n=t-e.length;for(;1+n--;)e.push(void 0)}return e.splice(t,0,e.splice(n,1)[0]),e},multiorder:function(e,n){if(!n)return e;let t;if(Array.isArray(n)||"object"!=typeof n)t=n;else for(var r in t=[],n)t.push({field:r,dir:n[r]});if(!Array.isArray(t))throw new Error("The orders argument must be an array");return e.slice().sort((e,n)=>{let r;for(let i of t)if(r=Pl(e,n,i.field,i.dir),0!==r)return r;return 0})},mutateArray:function(e,n,t=null){if(!ml(e,n))throw new TypeError("mutateArray can only be called with arrays");t?jd(t,"function","The hash function must be a function"):t=Rl;const r=new Map(n.map(e=>[t(e),e]));let i=[];n.forEach(e=>{i.push(e)});let a=e.length;for(;a--;)r.has(t(e[a]))||e.splice(a,1);for(let n=0;n<i.length;n++)if(n>=e.length||!Ul(e[n],i[n])){const t=Kl(e,i[n]);if(-1!==t){const[r]=e.splice(t,1);e.splice(n,0,r)}else e.splice(n,0,i[n])}return e.length>i.length&&e.splice(i.length,e.length-i.length),e},mutateObject:function(e,n,t){if(!dl(e,n))throw new TypeError("mutateObject can only be called with objects parameters");t?jd(t,"function","The hash function must be a function"):t=Rl;const r=Object.keys(n);for(let n in e)r.includes(n)||delete e[n];return r.forEach(t=>{Ul(e[t],n[t])||(e[t]=n[t])}),e},nl2br:function(e,n){return rd("\n","<br>"+(n?"\n":""),e)},numProperties:Nl,objectToFormData:Gm,order:function(e,n,t="asc"){return e?e.sort(function(e,r){return Pl(e,r,n,t)}):e},outerHeight:function(e){if((e=Bm(e))&&"offsetHeight"in e){let n=window.getComputedStyle(e),t=parseFloat(n.marginTop)+parseFloat(n.marginBottom);return Math.ceil(e.offsetHeight+t)}},outerWidth:function(e){e=Bm(e);let n=window.getComputedStyle(e),t=parseFloat(n.marginLeft)+parseFloat(n.marginRight);return Math.ceil(e.offsetWidth+t)},percent:function(e,n){return n/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:xm,postOut:function(e,n,t=null,r=""){let i=document.body.querySelector("form#bbn-form_out");i||(i=document.createElement("form"),i.classList.add("bbn-no"),i.setAttribute("id","bbn-form_out"),i.setAttribute("method","post"),i.setAttribute("enctype","multipart/form-data-encoded"),Rm(i,"style.display","none"),document.body.appendChild(i)),i instanceof HTMLFormElement&&(i.innerHTML="",i.setAttribute("action",e),i.setAttribute("target",r||"_blank"),n||(n={}),(n=Wd(n)).bbn||(n.bbn="public"),ed(i,n),i.submit(),t&&t())},printf:function(e){var n=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,t){return void 0!==n[t]?n[t]:e})},quotes2html:function(e,n){return n&&0!==n.toLowerCase().indexOf("s")||(e=rd("'","'",e)),n&&0!==n.toLowerCase().indexOf("d")||(e=rd('"',""",e)),e},randomInt:jm,randomString:function(e,n,t){let r,i,a={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};t||(t="nlu"),e||(r=jm(8,14)),"string"==typeof n?(t="n",delete a.l,delete a.u,a.n=n,r||(r=e)):"number"==typeof n&&e<n?r=jm(e,n):e&&(r=e);let o="";for(let e=0;e<r;e++)0===e?"n"!==t&&(i=-1===t.indexOf("u")?"l":"u"):i=t[Math.floor(Math.random()*t.length)],o+=a[i][Math.floor(Math.random()*a[i].length)];return o},range:function(e,n,t){return Array.from({length:(n-e)/t+1},(n,r)=>e+r*t)},removeAccents:kl,removeEmpty:function(e){var n=[];if(ml(e))for(let t=0;t<e.length;t++){let r=!1;e[t]&&(ml(e[t])?e[t].length&&(r=!0):dl(e[t])?Nl(e[t])&&(r=!0):r=!0),r&&n.push(e[t])}return n},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:ym,removePrivateProp:cl,removeTrailingChars:function(e,n){if(n||(n=" "),n.length){for(;ul(e,-n.length)===n;)e=ul(e,0,e.length-n.length);for(;ul(e,0,n.length)===n;)e=ul(e,n.length)}return e},repeat:function(e,n){return e.repeat(n)},replaceAll:rd,replaceSelection:function(e,n){let t,r,i;if(t=window.getSelection(),t.getRangeAt&&t.rangeCount){if(r=window.getSelection().getRangeAt(0),r.deleteContents(),r.createContextualFragment)i=r.createContextualFragment(e);else{const n=document.createElement("div");let t;for(n.innerHTML=e,i=document.createDocumentFragment();t=n.firstChild;)i.appendChild(t)}const a=i.firstChild,o=i.lastChild;r.insertNode(i),t.removeAllRanges(),n?(a&&(r.setStartBefore(a),r.setEndAfter(o)),t.addRange(r)):(r.setStartAfter(o),t.addRange(r))}},resize:bm,rgb2hex:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},riterate:function(e,n,t=!1){return ll(e,n,t,!0)},roundDecimal:function(e,n){return Number(Math.round(parseFloat(e+"e"+n+"e-"+n)))},sanitize:function(e,n="_"){let t=["[","]","{","}","(",")","-","+","*","/"],r="[";for(let e=0;e<n.length;e++)t.includes(n[e])&&(r+="\\"),r+=n[e];r+="]+";let i=new RegExp(r,"g");return Zm(kl(e).replace(/[^a-z0-9]/gi,n).replace(i,n),n)},search:Kl,selectElementText:function(e,n=null){if(n=n||window,e instanceof HTMLInputElement)return void e.select();let t,r,i=n.document;n.getSelection&&i.createRange?(t=n.getSelection(),r=i.createRange(),r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r)):"createTextRange"in i.body&&"function"==typeof i.body.createTextRange&&(r=i.body.createTextRange(),r.moveToElementText(e),r.select())},selector:Bm,setCookie:function(e,n,t){let r="";if(t){let e=new Date;e.setTime(e.getTime()+24*t*60*60*1e3),r="; expires="+e.toUTCString()}let i=escape(JSON.stringify({value:n}));document.cookie=e+"="+i+r+"; path=/"},setCssVar:function(e,n){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,n)},setNavigationVars:vm,setProp:function(e,n,t,r=!0,i=!0){Object.defineProperty(e,n,{value:t,writable:r,configurable:i})},setProperty:Rm,shorten:Um,shortenObj:function e(n,t=100){let r=Zd(n);return yl(r,(n,i)=>{il(n)&&n.length>t?r[i]=Um(n,t):n&&"object"==typeof n&&(r[i]=e(n))}),r},shuffle:function(e){let n,t=e.length;for(;0!=t;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e},simpleHash:Ol,simpleHash1:Il,simpleHash2:Fl,startChrono:function(e){let n=bbn.fn.microtimestamp();return this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=n,e},stopChrono:function(e,n){if(this.constructor.chronos[e||"default"]){let t=bbn.fn.microtimestamp()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],n&&(t=Math.round(t)/1e3),t}throw Error("No chrono with name "+(e||"default"))},stream:function(e,n,t,r,i,a){const o=id(e,t,"json"),s=Jl(o);if(null==s?void 0:s.loader)return s.loader;t||(t={}),bbn.env.token&&(t._bbn_token=bbn.env.token);const u=new AbortController;let c="";const l=e=>{if(e.length){e=e.indexOf("\n")>-1?bbn.fn.removeEmpty(e.split("\n")):[e];for(let t in e)try{const r=JSON.parse(e[t]);(null==r?void 0:r.__bbn_stream_ping__)||n(r)}catch(e){throw e}}},d=fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",signal:u.signal,body:JSON.stringify(t||{})}).then(e=>{if(e.body){const r=e.body.getReader(),i=ol(n);r.read().then(function e({done:s,value:u}){if(s)return $l(o,t),c&&l(c),void(a&&a());if(i)if(c+=sd(u).trim(),bbn.fn.log(["STREAM RESULT",c.length,c]),c)try{l(c),c=""}catch(e){}else n();else bbn.fn.log(["STREAM SUCCESS IS FN? "+i]);return r.read().then(e)})}}).catch(n=>{let a=!(!(s=n)||!0!==s.__BBN_CANCEL__);var s;if($l(o,t,a),a){let t=1;ol(i)&&(t=i(n.message,e)),t&&Vd(n.message,e)}else{let e=1;ol(r)&&(e=r(n.request,n)),e&&$d(n.request,n.response?n.response.data:"",n.response?n.response.status:n)}});return Sl(o,d,u),d},string2ArrayBuffer:function(e){for(var n=new ArrayBuffer(2*e.length),t=new Uint16Array(n),r=0,i=e.length;r<i;r++)t[r]=e.charCodeAt(r);return n},submit:function(e,n,t){let r,i=e.getAttribute("action")||bbn.env.path;if(""===i&&(i="."),"string"==typeof i&&(0!==i.indexOf("http")||-1!==i.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(n&&n.preventDefault(),r=cm(e),r)){e.setAttribute("action",null);const n=[i,r];!t&&e.getAttribute("data-script")&&(t=(t=new Function(e.getAttribute("data-script")))()),t&&n.push(t),xm(...n)}},substr:ul,sum:function(e,n,t,r,i){let a=0;return yl(Yd(e,t,r,i),e=>{let t="function"==typeof n?n(e):e[n];t&&(a+=parseFloat(t)||0)}),a},timestamp:Dm,toCSV:function(e,n=",",t="",r='"'){n||(n=","),r||(r='"');let i="",a=e.length;return yl(e,(e,o)=>{let s=ml(e)?e.length:Object.values(e).length,u=0;yl(e,e=>{i+="string"==typeof e?r+rd(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,u++,u<s&&(i+=n)}),o<a-1&&(i+=t+"\n")}),i},toggleFullScreen:function(){"mozRequestFullScreen"in window.document.documentElement?window.document.mozFullScreen?window.document.mozCancelFullScreen():"function"==typeof window.document.documentElement.mozRequestFullScreen&&window.document.documentElement.mozRequestFullScreen():"webkitRequestFullScreen"in window.document.documentElement?window.document.webkitIsFullScreen?window.document.webkitCancelFullScreen():"function"==typeof window.document.documentElement.webkitRequestFullScreen&&window.document.documentElement.webkitRequestFullScreen():"msRequestFullScreen"in window.document.documentElement?window.document.msFullscreenEnabled?window.document.msExitFullscreen():"function"==typeof window.document.documentElement.msRequestFullScreen&&window.document.documentElement.msRequestFullScreen():"requestFullscreen"in window.document&&(window.document.fullscreenEnabled?window.document.exitFullscreen():window.document.documentElement.requestFullscreen()),setTimeout(function(){bm()},0)},translate:function(e,n){let t=n?bbn.lng[0===n.indexOf("_")?n:"_"+n]:bbn.lng;ll(e,(e,n)=>{t[n]=e})},treatAjaxArguments:pm,treatForHash:xl,trim:Zm,uniqString:function(...e){for(var n="",t=0;t<e.length;t++)if(e[t])if("object"==typeof e[t])if(ml(e[t]))n+=JSON.stringify(e[t]);else{let r={};yl(Object.keys(e[t]).sort(),n=>{r[n]=e[t][n]}),n+=JSON.stringify(r)}else"string"!=typeof e[t]?n+=e[t].toString():n+=e[t];else n+="__bbn_empty__";return jl(n)},unique:lm,upload:function(e,n,t=null,r=null,i=null){const a=()=>rl.run("post",e||bbn.env.path,{data:Gm(n),headers:{},onUploadProgress(e){if(i){let n=Math.round(100*e.loaded/e.total);i(n,e.loaded,e.total)}}});return t||r?a().then(e=>{t&&(sl("SUCCESS",e),t(e))}).catch(e=>{r&&(sl("ERROR",e),r(e))}):a()},warning:Lm,yieldToBrowser:om};const qm={version:"1.0.1",opt:{_cat:{}},app:{},_:Uc,$:function(e,n){if(null==n?void 0:n.querySelectorAll)return n.querySelectorAll(e);if(n)throw new Error("Invalid context");return document.body.querySelectorAll(e)},lng:{select_unselect_all:"Select/Clear all",select_all:"Select all",search:"Search",loading:"Loading...",choose:"Choose",error:"Error",server_response:"Server response",reload:"Reload",errorText:"Something went wrong",closeAll:"Close all",closeOthers:"Close others",pin:"Pin",arrange:"Arrange",cancel:"Cancel",unpin:"Unpin",yes:"Yes",no:"No",unknown:"Unknown",untitled:"Untitled",confirmation:"Confirmation",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},var:Jc,dt:Ld,com:rl,env:Qc,db:Dl,fn:Ym,info:[{value:"ajax",label:"Loading and streaming",description:"Functions related to Ajax requests",icon:"nf nf-fa-rocket"},{value:"browser",label:"Browser-only",description:"Functions that can only be run in the browser",icon:"nf nf-fa-desktop"},{value:"convert",label:"Conversion",description:"Functions related to data conversion",icon:"nf nf-fa-exchange"},{value:"datetime",label:"Date and time",description:"Functions related to dates and times",icon:"nf nf-fa-calendar"},{value:"form",label:"Form manipulation",description:"Functions related to form manipulation and validation",icon:"nf nf-fa-edit"},{value:"html",label:"HTML manipulation",description:"Functions related to HTML manipulation and DOM interaction",icon:"nf nf-fa-html5"},{value:"loop",label:"Looping",description:"Functions related to looping through arrays and objects",icon:"nf nf-fa-repeat"},{value:"misc",label:"Miscellaneous",description:"Miscellaneous functions that do not fit into other categories",icon:"nf nf-fa-cubes"},{value:"object",label:"Object manipulation",description:"Functions related to object manipulation and inspection",icon:"nf nf-fa-object_group"},{value:"phone",label:"Phone and contact",description:"Functions related to phone numbers and contact information",icon:"nf nf-fa-phone"},{value:"string",label:"String manipulation",description:"Functions related to string manipulation and formatting",icon:"nf nf-fa-text_height"},{value:"style",label:"Styling and layout",description:"Functions related to styling and layout management",icon:"nf nf-fa-paint_brush"},{value:"type",label:"Type checking",description:"Functions related to type checking and validation",icon:"nf nf-fa-check_square"}]};"undefined"!=typeof globalThis&&(globalThis.bbn=qm,"Temporal"in globalThis||(globalThis.Temporal=Rc));var Wm=Object.freeze({__proto__:null,default:{AE:{firstDay:1,weekend:[6,7],minimalDays:1},AF:{firstDay:6,weekend:[4,5],minimalDays:1},AG:{firstDay:7,weekend:[6,7],minimalDays:1},AI:{firstDay:1,weekend:[6,7],minimalDays:1},AL:{firstDay:1,weekend:[6,7],minimalDays:1},AM:{firstDay:1,weekend:[6,7],minimalDays:1},AR:{firstDay:1,weekend:[6,7],minimalDays:1},AS:{firstDay:7,weekend:[6,7],minimalDays:1},AU:{firstDay:1,weekend:[6,7],minimalDays:1},AZ:{firstDay:1,weekend:[6,7],minimalDays:1},BA:{firstDay:1,weekend:[6,7],minimalDays:1},BD:{firstDay:7,weekend:[6,7],minimalDays:1},BH:{firstDay:6,weekend:[5,6],minimalDays:1},BM:{firstDay:1,weekend:[6,7],minimalDays:1},BN:{firstDay:1,weekend:[6,7],minimalDays:1},BR:{firstDay:7,weekend:[6,7],minimalDays:1},BS:{firstDay:7,weekend:[6,7],minimalDays:1},BT:{firstDay:7,weekend:[6,7],minimalDays:1},BW:{firstDay:7,weekend:[6,7],minimalDays:1},BY:{firstDay:1,weekend:[6,7],minimalDays:1},BZ:{firstDay:7,weekend:[6,7],minimalDays:1},CA:{firstDay:7,weekend:[6,7],minimalDays:1},CL:{firstDay:1,weekend:[6,7],minimalDays:1},CM:{firstDay:1,weekend:[6,7],minimalDays:1},CN:{firstDay:1,weekend:[6,7],minimalDays:1},CO:{firstDay:7,weekend:[6,7],minimalDays:1},CR:{firstDay:1,weekend:[6,7],minimalDays:1},CY:{firstDay:1,weekend:[6,7],minimalDays:1},DJ:{firstDay:6,weekend:[6,7],minimalDays:1},DM:{firstDay:7,weekend:[6,7],minimalDays:1},DO:{firstDay:7,weekend:[6,7],minimalDays:1},DZ:{firstDay:6,weekend:[5,6],minimalDays:1},EC:{firstDay:1,weekend:[6,7],minimalDays:1},EG:{firstDay:6,weekend:[5,6],minimalDays:1},ET:{firstDay:7,weekend:[6,7],minimalDays:1},"GB-alt-variant":{firstDay:7,weekend:[6,7],minimalDays:1},GE:{firstDay:1,weekend:[6,7],minimalDays:1},GT:{firstDay:7,weekend:[6,7],minimalDays:1},GU:{firstDay:7,weekend:[6,7],minimalDays:1},HK:{firstDay:7,weekend:[6,7],minimalDays:1},HN:{firstDay:7,weekend:[6,7],minimalDays:1},HR:{firstDay:1,weekend:[6,7],minimalDays:1},ID:{firstDay:7,weekend:[6,7],minimalDays:1},IL:{firstDay:7,weekend:[5,6],minimalDays:1},IN:{firstDay:7,weekend:[7],minimalDays:1},IQ:{firstDay:6,weekend:[5,6],minimalDays:1},IR:{firstDay:6,weekend:[5],minimalDays:1},IS:{firstDay:7,weekend:[6,7],minimalDays:4},JM:{firstDay:7,weekend:[6,7],minimalDays:1},JO:{firstDay:6,weekend:[5,6],minimalDays:1},JP:{firstDay:7,weekend:[6,7],minimalDays:1},KE:{firstDay:7,weekend:[6,7],minimalDays:1},KG:{firstDay:1,weekend:[6,7],minimalDays:1},KH:{firstDay:7,weekend:[6,7],minimalDays:1},KR:{firstDay:7,weekend:[6,7],minimalDays:1},KW:{firstDay:6,weekend:[5,6],minimalDays:1},KZ:{firstDay:1,weekend:[6,7],minimalDays:1},LA:{firstDay:7,weekend:[6,7],minimalDays:1},LB:{firstDay:1,weekend:[6,7],minimalDays:1},LK:{firstDay:1,weekend:[6,7],minimalDays:1},LV:{firstDay:1,weekend:[6,7],minimalDays:1},LY:{firstDay:6,weekend:[5,6],minimalDays:1},MD:{firstDay:1,weekend:[6,7],minimalDays:1},ME:{firstDay:1,weekend:[6,7],minimalDays:1},MH:{firstDay:7,weekend:[6,7],minimalDays:1},MK:{firstDay:1,weekend:[6,7],minimalDays:1},MM:{firstDay:7,weekend:[6,7],minimalDays:1},MN:{firstDay:1,weekend:[6,7],minimalDays:1},MO:{firstDay:7,weekend:[6,7],minimalDays:1},MT:{firstDay:7,weekend:[6,7],minimalDays:1},MV:{firstDay:5,weekend:[6,7],minimalDays:1},MX:{firstDay:7,weekend:[6,7],minimalDays:1},MY:{firstDay:1,weekend:[6,7],minimalDays:1},MZ:{firstDay:7,weekend:[6,7],minimalDays:1},NI:{firstDay:7,weekend:[6,7],minimalDays:1},NP:{firstDay:7,weekend:[6,7],minimalDays:1},NZ:{firstDay:1,weekend:[6,7],minimalDays:1},OM:{firstDay:6,weekend:[5,6],minimalDays:1},PA:{firstDay:7,weekend:[6,7],minimalDays:1},PE:{firstDay:7,weekend:[6,7],minimalDays:1},PH:{firstDay:7,weekend:[6,7],minimalDays:1},PK:{firstDay:7,weekend:[6,7],minimalDays:1},PR:{firstDay:7,weekend:[6,7],minimalDays:1},PT:{firstDay:7,weekend:[6,7],minimalDays:4},PY:{firstDay:7,weekend:[6,7],minimalDays:1},QA:{firstDay:6,weekend:[5,6],minimalDays:1},RO:{firstDay:1,weekend:[6,7],minimalDays:1},RS:{firstDay:1,weekend:[6,7],minimalDays:1},SA:{firstDay:7,weekend:[5,6],minimalDays:1},SD:{firstDay:6,weekend:[5,6],minimalDays:1},SG:{firstDay:7,weekend:[6,7],minimalDays:1},SI:{firstDay:1,weekend:[6,7],minimalDays:1},SV:{firstDay:7,weekend:[6,7],minimalDays:1},SY:{firstDay:6,weekend:[5,6],minimalDays:1},TH:{firstDay:7,weekend:[6,7],minimalDays:1},TJ:{firstDay:1,weekend:[6,7],minimalDays:1},TM:{firstDay:1,weekend:[6,7],minimalDays:1},TR:{firstDay:1,weekend:[6,7],minimalDays:1},TT:{firstDay:7,weekend:[6,7],minimalDays:1},TW:{firstDay:7,weekend:[6,7],minimalDays:1},UA:{firstDay:1,weekend:[6,7],minimalDays:1},UG:{firstDay:1,weekend:[7],minimalDays:1},UM:{firstDay:7,weekend:[6,7],minimalDays:1},US:{firstDay:7,weekend:[6,7],minimalDays:1},UY:{firstDay:1,weekend:[6,7],minimalDays:1},UZ:{firstDay:1,weekend:[6,7],minimalDays:1},VE:{firstDay:7,weekend:[6,7],minimalDays:1},VI:{firstDay:7,weekend:[6,7],minimalDays:1},VN:{firstDay:1,weekend:[6,7],minimalDays:1},WS:{firstDay:7,weekend:[6,7],minimalDays:1},XK:{firstDay:1,weekend:[6,7],minimalDays:1},YE:{firstDay:7,weekend:[5,6],minimalDays:1},ZA:{firstDay:7,weekend:[6,7],minimalDays:1},ZW:{firstDay:7,weekend:[6,7],minimalDays:1}}});function Km(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vm(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if("function"==typeof n){var t=function e(){var t=!1;try{t=this instanceof e}catch{}return t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var $m={},Jm=function(e,n){return Jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},Jm(e,n)};function Qm(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}Jm(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Xm=function(){return Xm=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Xm.apply(this,arguments)};function ef(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t}function nf(e,n,t,r){var i,a=arguments.length,o=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(n,t,o):i(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o}function tf(e,n){return function(t,r){n(t,r,e)}}function rf(e,n,t,r,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,u=r.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!n&&e?r.static?e:e.prototype:null,d=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),m=!1,f=t.length-1;f>=0;f--){var h={};for(var y in r)h[y]="access"===y?{}:r[y];for(var y in r.access)h.access[y]=r.access[y];h.addInitializer=function(e){if(m)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var M=(0,t[f])("accessor"===u?{get:d.get,set:d.set}:d[c],h);if("accessor"===u){if(void 0===M)continue;if(null===M||"object"!=typeof M)throw new TypeError("Object expected");(s=o(M.get))&&(d.get=s),(s=o(M.set))&&(d.set=s),(s=o(M.init))&&i.unshift(s)}else(s=o(M))&&("field"===u?i.unshift(s):d[c]=s)}l&&Object.defineProperty(l,r.name,d),m=!0}function af(e,n,t){for(var r=arguments.length>2,i=0;i<n.length;i++)t=r?n[i].call(e,t):n[i].call(e);return r?t:void 0}function of(e){return"symbol"==typeof e?e:"".concat(e)}function sf(e,n,t){return"symbol"==typeof n&&(n=n.description?"[".concat(n.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:t?"".concat(t," ",n):n})}function uf(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function cf(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})}function lf(e,n){var t,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=n.call(e,a)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var df=Object.create?function(e,n,t,r){void 0===r&&(r=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,i)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]};function mf(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||df(n,e,t)}function ff(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function hf(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,a=t.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}function yf(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(hf(arguments[n]));return e}function Mf(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function gf(e,n,t){if(t||2===arguments.length)for(var r,i=0,a=n.length;i<a;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function pf(e){return this instanceof pf?(this.v=e,this):new pf(e)}function vf(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(n){return Promise.resolve(n).then(e,c)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,n){i[e]&&(r[e]=function(n){return new Promise(function(t,r){a.push([e,n,t,r])>1||s(e,n)})},n&&(r[e]=n(r[e])))}function s(e,n){try{!function(e){e.value instanceof pf?Promise.resolve(e.value.v).then(u,c):l(a[0][2],e)}(i[e](n))}catch(e){l(a[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,n){e(n),a.shift(),a.length&&s(a[0][0],a[0][1])}}function wf(e){var n,t;return n={},r("next"),r("throw",function(e){throw e}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,i){n[r]=e[r]?function(n){return(t=!t)?{value:pf(e[r](n)),done:!1}:i?i(n):n}:i}}function bf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=ff(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){(function(e,n,t,r){Promise.resolve(r).then(function(n){e({value:n,done:t})},n)})(r,i,(n=e[t](n)).done,n.value)})}}}function _f(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var Ef=Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n},Tf=function(e){return Tf=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},Tf(e)};function Df(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=Tf(e),r=0;r<t.length;r++)"default"!==t[r]&&df(n,e,t[r]);return Ef(n,e),n}function Sf(e){return e&&e.__esModule?e:{default:e}}function Af(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)}function kf(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t}function Cf(e,n){if(null===n||"object"!=typeof n&&"function"!=typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?n===e:e.has(n)}function Pf(e,n,t){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,i;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],t&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}var Nf="function"==typeof SuppressedError?SuppressedError:function(e,n,t){var r=new Error(t);return r.name="SuppressedError",r.error=e,r.suppressed=n,r};function zf(e){function n(n){e.error=e.hasError?new Nf(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}var t,r=0;return function i(){for(;t=e.stack.pop();)try{if(!t.async&&1===r)return r=0,e.stack.push(t),Promise.resolve().then(i);if(t.dispose){var a=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(a).then(i,function(e){return n(e),i()})}else r|=1}catch(e){n(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function Hf(e,n){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,t,r,i,a){return t?n?".jsx":".js":!r||i&&a?r+i+"."+a.toLowerCase()+"js":e}):e}var If={__extends:Qm,__assign:Xm,__rest:ef,__decorate:nf,__param:tf,__esDecorate:rf,__runInitializers:af,__propKey:of,__setFunctionName:sf,__metadata:uf,__awaiter:cf,__generator:lf,__createBinding:df,__exportStar:mf,__values:ff,__read:hf,__spread:yf,__spreadArrays:Mf,__spreadArray:gf,__await:pf,__asyncGenerator:vf,__asyncDelegator:wf,__asyncValues:bf,__makeTemplateObject:_f,__importStar:Df,__importDefault:Sf,__classPrivateFieldGet:Af,__classPrivateFieldSet:kf,__classPrivateFieldIn:Cf,__addDisposableResource:Pf,__disposeResources:zf,__rewriteRelativeImportExtension:Hf},Ff=Vm(Object.freeze({__proto__:null,__addDisposableResource:Pf,get __assign(){return Xm},__asyncDelegator:wf,__asyncGenerator:vf,__asyncValues:bf,__await:pf,__awaiter:cf,__classPrivateFieldGet:Af,__classPrivateFieldIn:Cf,__classPrivateFieldSet:kf,__createBinding:df,__decorate:nf,__disposeResources:zf,__esDecorate:rf,__exportStar:mf,__extends:Qm,__generator:lf,__importDefault:Sf,__importStar:Df,__makeTemplateObject:_f,__metadata:uf,__param:tf,__propKey:of,__read:hf,__rest:ef,__rewriteRelativeImportExtension:Hf,__runInitializers:af,__setFunctionName:sf,__spread:yf,__spreadArray:gf,__spreadArrays:Mf,__values:ff,default:If})),Of={};function Lf(e){return Intl.getCanonicalLocales(e)}
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bbn={})}(this,function(e){"use strict";function n(e,n){return n.forEach(function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach(function(t){if("default"!==t&&!(t in e)){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}})}),Object.freeze(e)}function t(e,n,t,i,a){return r(n,((e,n)=>{const t=e[n];if(void 0===t)throw new TypeError(Ei(n));return t})(e,n),t,i,a)}function r(e,n,t,r,i,a){const o=E(n,t,r);if(i&&n!==o)throw new RangeError(bi(e,n,t,r,a));return o}function i(e){return null!==e&&/object|function/.test(typeof e)}function a(e,n=Map){const t=new n;return(n,...r)=>{if(t.has(n))return t.get(n);const i=e(n,...r);return t.set(n,i),i}}function o(e){return s({name:e},1)}function s(e,n){return d(e=>({value:e,configurable:1,writable:!n}),e)}function u(e){return d(e=>({get:e,configurable:1}),e)}function c(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function l(e,n){const t={};let r=e.length;for(const i of n)t[e[--r]]=i;return t}function d(e,n,t){const r={};for(const i in n)r[i]=e(n[i],i,t);return r}function m(e,n,t){const r={};for(let i=0;i<n.length;i++){const a=n[i];r[a]=e(a,i,t)}return r}function f(e,n,t){const r={};for(let i=0;i<e.length;i++)r[n[i]]=t[e[i]];return r}function h(e,n){const t=Object.create(null);for(const r of e)t[r]=n[r];return t}function y(e,n){for(const t of n)if(t in e)return 1;return 0}function M(e,n,t){for(const r of e)if(n[r]!==t[r])return 0;return 1}function g(e,n,t){const r={...t};for(let t=0;t<n;t++)r[e[t]]=0;return r}function p(e,...n){return(...t)=>e(...n,...t)}function v(e){return e[0].toUpperCase()+e.substring(1)}function w(e){return e.slice().sort()}function b(e,n){return String(n).padStart(e,"0")}function _(e,n){return Math.sign(e-n)}function E(e,n,t){return Math.min(Math.max(e,n),t)}function T(e,n){return[Math.floor(e/n),D(e,n)]}function D(e,n){return(e%n+n)%n}function S(e,n){return[A(e,n),k(e,n)]}function A(e,n){return Math.trunc(e/n)||0}function k(e,n){return e%n||0}function C(e){return.5===Math.abs(e%1)}function P(e,n,t){let r=0,i=0;for(let a=0;a<=n;a++){const n=e[t[a]],o=pa[a],s=ga/o,[u,c]=S(n,s);r+=c*o,i+=u}const[a,o]=S(r,ga);return[i+a,o]}function N(e,n,t){const r={};for(let i=n;i>=0;i--){const n=pa[i];r[t[i]]=A(e,n),e=k(e,n)}return r}function z(e){if(void 0!==e)return I(e)}function H(e){return B(I(e))}function I(e){return G(Ya(e))}function F(e,n){if(null==n)throw new RangeError(Ei(e));return n}function O(e){if(!i(e))throw new TypeError(wi);return e}function L(e,n,t=e){if(typeof n!==e)throw new TypeError(_i(t,n));return n}function G(e,n="number"){if(!Number.isInteger(e))throw new RangeError(hi(n,e));return e||0}function B(e,n="number"){if(e<=0)throw new RangeError(yi(n,e));return e}function x(e){if("symbol"==typeof e)throw new TypeError(vi);return String(e)}function R(e,n){return i(e)?String(e):Za(e,n)}function j(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(pi(e));return e}function Z(e,n="number"){if("bigint"==typeof e)throw new TypeError(gi(n));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Mi(n,e));return e}function U(e,n){return Math.trunc(Z(e,n))||0}function Y(e,n){return G(Z(e,n),n)}function q(e,n){return B(U(e,n),n)}function W(e,n){let[t,r]=S(n,ga),i=e+t;const a=Math.sign(i);return a&&a===-Math.sign(r)&&(i-=a,r+=a*ga),[i,r]}function K(e,n,t=1){return W(e[0]+n[0]*t,e[1]+n[1]*t)}function V(e,n){return W(e[0],e[1]+n)}function $(e,n){return K(n,e,-1)}function J(e,n){return _(e[0],n[0])||_(e[1],n[1])}function Q(e,n,t){return-1===J(e,n)||1===J(e,t)}function X(e,n=1){const t=BigInt(ga/n);return[Number(e/t),Number(e%t)*n]}function ee(e,n=1){const t=ga/n,[r,i]=S(e,t);return[r,i*n]}function ne(e,n=1,t){const[r,i]=e,[a,o]=S(i,n);return r*(ga/n)+(a+(t?o/n:0))}function te(e,n,t=T){const[r,i]=e,[a,o]=t(i,n);return[r*(ga/n)+a,o]}function re(e){return t(e,"isoYear",yo,ho,1),e.isoYear===yo?t(e,"isoMonth",4,12,1):e.isoYear===ho&&t(e,"isoMonth",1,9,1),e}function ie(e){return ae({...e,...so,isoHour:12}),e}function ae(e){const n=t(e,"isoYear",yo,ho,1),r=n===yo?1:n===ho?-1:0;return r&&oe(de({...e,isoDay:e.isoDay+r,isoNanosecond:e.isoNanosecond-r})),e}function oe(e){if(!e||Q(e,fo,mo))throw new RangeError(Ki);return e}function se(e){return P(e,5,no)[1]}function ue(e){const[n,t]=T(e,ga);return[N(t,5,no),n]}function ce(e){return te(e,ha)}function le(e){return he(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function de(e){const n=le(e);if(void 0!==n){const[t,r]=S(n,la);return[t,r*fa+(e.isoMicrosecond||0)*ma+(e.isoNanosecond||0)]}}function me(e,n){const[t,r]=ue(se(e)-n);return oe(de({...e,isoDay:e.isoDay+r,...t}))}function fe(...e){return he(...e)/da}function he(...e){const[n,t]=ye(...e),r=n.valueOf();if(!isNaN(r))return r-t*la}function ye(e,n=1,t=1,r=0,i=0,a=0,o=0){const s=e===yo?1:e===ho?-1:0,u=new Date;return u.setUTCHours(r,i,a,o),u.setUTCFullYear(e,n-1,t+s),[u,s]}function Me(e,n){let[t,r]=V(e,n);r<0&&(r+=ga,t-=1);const[i,a]=T(r,fa),[o,s]=T(a,ma);return ge(t*la+i,o,s)}function ge(e,n=0,t=0){const r=Math.ceil(Math.max(0,Math.abs(e)-lo)/la)*Math.sign(e),i=new Date(e-r*la);return l(ro,[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()+r,i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds(),n,t])}function pe(e,n){if(n<-lo)throw new RangeError(Ki);const t=e.formatToParts(n),r={};for(const e of t)r[e.type]=e.value;return r}function ve(e){return[e.isoYear,e.isoMonth,e.isoDay]}function we(e,n){return[n,0]}function be(){return wo}function _e(e,n){switch(n){case 2:return Te(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Ee(e){return Te(e)?366:365}function Te(e){return e%4==0&&(e%100!=0||e%400==0)}function De(e){const[n,t]=ye(e.isoYear,e.isoMonth,e.isoDay);return D(n.getUTCDay()-t,7)||7}function Se(e){return this.id===Ga?(({isoYear:e})=>e<1?["gregory-inverse",1-e]:["gregory",e])(e):this.id===Ba?_o(e):[]}function Ae(e){const n=le(e);if(n<bo){const{isoYear:n}=e;return n<1?["japanese-inverse",1-n]:["japanese",n]}const t=pe(Hs(Ba),n),{era:r,eraYear:i}=zr(t,Ba);return[r,i]}function ke(e){return Ce(e),ze(e,1),e}function Ce(e){return Ne(e,1),e}function Pe(e){return M(to,e,Ne(e))}function Ne(e,n){const{isoYear:r}=e,i=t(e,"isoMonth",1,be(),n);return{isoYear:r,isoMonth:i,isoDay:t(e,"isoDay",1,_e(r,i),n)}}function ze(e,n){return l(no,[t(e,"isoHour",0,23,n),t(e,"isoMinute",0,59,n),t(e,"isoSecond",0,59,n),t(e,"isoMillisecond",0,999,n),t(e,"isoMicrosecond",0,999,n),t(e,"isoNanosecond",0,999,n)])}function He(e){return void 0===e?0:Ro(O(e))}function Ie(e,n=0){e=Ue(e);const t=jo(e),r=Zo(e,n);return[Ro(e),r,t]}function Fe(e,n,t,r=9,i=0,a=4){n=Ue(n);let o=Bo(n,r,i),s=Re(n),u=Wo(n,a);const c=Go(n,r,i,1);return null==o?o=Math.max(t,c):Ve(o,c),s=je(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[o,c,s,u]}function Oe(e,n=6,t){let r=Re(e=Ye(e,Eo));const i=Wo(e,7);let a=Go(e,n);return a=F(Eo,a),r=je(r,a,void 0,t),[a,r,i]}function Le(e){return Uo(Ue(e))}function Ge(e,n){return Be(Ue(e),n)}function Be(e,n=4){const t=Ze(e);return[Wo(e,4),...xe(Go(e,n),t)]}function xe(e,n){return null!=e?[pa[e],e<4?9-3*e:-1]:[void 0===n?1:10**(9-n),n]}function Re(e){const n=e[Do];return void 0===n?1:U(n,Do)}function je(e,n,t,i){const a=i?ga:pa[n+1];if(a){const t=pa[n];if(a%((e=r(Do,e,1,a/t-(i?0:1),1))*t))throw new RangeError(_i(Do,e))}else e=r(Do,e,1,t?10**9:1,1);return e}function Ze(e){let n=e[So];if(void 0!==n){if("number"!=typeof n){if("auto"===x(n))return;throw new RangeError(_i(So,n))}n=r(So,Math.floor(n),0,9,1)}return n}function Ue(e){return void 0===e?{}:O(e)}function Ye(e,n){return"string"==typeof e?{[n]:e}:O(e)}function qe(e){return{overflow:Po[e]}}function We(e,n,t=9,i=0,a){let o=n[e];if(void 0===o)return a?i:void 0;if(o=x(o),"auto"===o)return a?i:null;let s=ua[o];if(void 0===s&&(s=Ja[o]),void 0===s)throw new RangeError(Ai(e,o,ua));return r(e,s,i,t,1,ca),s}function Ke(e,n,t,r=0){const i=t[e];if(void 0===i)return r;const a=x(i),o=n[a];if(void 0===o)throw new RangeError(Ai(e,a,n));return o}function Ve(e,n){if(n>e)throw new RangeError(ea)}function $e(e){return{branding:es,epochNanoseconds:e}}function Je(e,n,t){return{branding:Xo,calendar:t,timeZone:n,epochNanoseconds:e}}function Qe(e,n=e.calendar){return{branding:Jo,calendar:n,...h(oo,e)}}function Xe(e,n=e.calendar){return{branding:$o,calendar:n,...h(io,e)}}function en(e,n=e.calendar){return{branding:Ko,calendar:n,...h(io,e)}}function nn(e,n=e.calendar){return{branding:Vo,calendar:n,...h(io,e)}}function tn(e){return{branding:Qo,...h(ao,e)}}function rn(e){return{branding:ns,sign:pt(e),...h(Wa,e)}}function an(e){return te(e.epochNanoseconds,fa)[0]}function on(e){return e.epochNanoseconds}function sn(e,n){return ne(bt(e),pa[n],1)}function un(e,n,t,r,i,a,o){const s=qa[t],u={...n,[s]:n[s]+r},c=o(e,i,n),l=o(e,i,u);return[a(c),a(l)]}function cn(e,n,t){const r=ne($(n,t));if(!r)throw new RangeError(Gi);return ne($(n,e))/r}function ln(e,n,t,r){return dn(e,hn(n,t),r)}function dn(e,n,t){const[r,i]=mn(e,n,t);return ae({...ut(e,i),...r})}function mn(e,n,t){return ue(bn(se(e),n,t))}function fn(e){return bn(e,ya,7)}function hn(e,n){return pa[e]*n}function yn(e){const n=Mn(e);return[n,ut(n,1)]}function Mn(e){return uo(6,e)}function gn(e,n,t){const r=Math.min(Dt(e),6);return _t(wn(bt(e,r),n,t),r)}function pn(e,n,t,r,i,a,o,s,u,c){if(0===r&&1===i)return e;const l=ht(r,s)?ft(s)&&r<6&&t>=6?Tn:En:Dn;let[d,m,f]=l(e,n,t,r,i,a,o,s,u,c);return f&&7!==r&&(d=((e,n,t,r,i,a,o,s)=>{const u=pt(e);for(let c=r+1;c<=t;c++){if(7===c&&7!==t)continue;const r=eo(c,e);r[qa[c]]+=u;const l=ne($(o(s(i,a,r)),n));if(l&&Math.sign(l)!==u)break;e=r}return e})(d,m,t,Math.max(6,r),o,s,u,c)),d}function vn(e,n,t,r,i){if(6===n){const n=(e=>e[0]+e[1]/ga)(e);return[bn(n,t,r),0]}return wn(e,hn(n,t),r,i)}function wn(e,n,t,r){let[i,a]=e;r&&a<0&&(a+=ga,i-=1);const[o,s]=T(bn(a,n,t),ga);return W(i+o,s)}function bn(e,n,t){return _n(e/n,t)*n}function _n(e,n){return ts[n](e)}function En(e,n,t,r,i,a){const o=pt(e),s=bt(e),u=vn(s,r,i,a),c=$(s,u),l=Math.sign(u[0]-s[0])===o,d=_t(u,Math.min(t,6));return[{...e,...d},K(n,c),l]}function Tn(e,n,t,r,i,a,o,s,u,c){const l=pt(e)||1,d=ne(bt(e,5)),m=hn(r,i);let f=bn(d,m,a);const[h,y]=un(o,{...e,...Xa},6,l,s,u,c),M=f-ne($(h,y));let g=0;M&&Math.sign(M)!==l?n=V(h,f):(g+=l,f=bn(M,m,a),n=V(y,f));const p=Et(f);return[{...e,...p,days:e.days+g},n,Boolean(g)]}function Dn(e,n,t,r,i,a,o,s,u,c){const l=pt(e),d=qa[r],m=eo(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const f=A(e[d],i)*i;m[d]=f;const[h,y]=un(o,m,r,i*l,s,u,c),M=f+cn(n,h,y)*l*i,g=bn(M,i,a),p=Math.sign(g-M)===l;return m[d]=g,[m,p?y:h,p]}function Sn(e,n,t,r){const[i,a,o,s]=(e=>{const n=Be(e=Ue(e));return[e.timeZone,...n]})(r),u=void 0!==i;return((e,n,t,r,i,a)=>{t=wn(t,i,r,1);const o=n.R(t);return On(Me(t,o),a)+(e?Rn(fn(o)):"Z")})(u,n(u?e(i):rs),t.epochNanoseconds,a,o,s)}function An(e,n,t){const[r,i,a,o,s,u]=(e=>{e=Ue(e);const n=Uo(e),t=Ze(e),r=qo(e),i=Wo(e,4),a=Go(e,4);return[n,Yo(e),r,i,...xe(a,t)]})(t);return((e,n,t,r,i,a,o,s,u,c)=>{r=wn(r,u,s,1);const l=e(t).R(r);return On(Me(r,l),c)+Rn(fn(l),o)+((e,n)=>1!==n?"["+(2===n?"!":"")+e+"]":"")(t,a)+jn(n,i)})(e,n.calendar,n.timeZone,n.epochNanoseconds,r,i,a,o,s,u)}function kn(e,n){const[t,r,i,a]=(e=>(e=Ue(e),[Uo(e),...Be(e)]))(n);return o=e.calendar,s=t,u=a,On(dn(e,i,r),u)+jn(o,s);var o,s,u}function Cn(e,n){return t=e.calendar,r=e,i=Le(n),Ln(r)+jn(t,i);var t,r,i}function Pn(e,n){return In(e.calendar,Gn,e,Le(n))}function Nn(e,n){return In(e.calendar,Bn,e,Le(n))}function zn(e,n){const[t,r,i]=Ge(n);return a=i,xn(mn(e,r,t)[0],a);var a}function Hn(e,n){const[t,r,i]=Ge(n,3);return r>1&&vt(e={...e,...gn(e,r,t)}),((e,n)=>{const{sign:t}=e,r=-1===t?gt(e):e,{hours:i,minutes:a}=r,[o,s]=te(bt(r,3),ha,S);wt(o);const u=Un(s,n),c=n>=0||!t||u;return(t<0?"-":"")+"P"+Fn({Y:qn(r.years),M:qn(r.months),W:qn(r.weeks),D:qn(r.days)})+(i||a||o||c?"T"+Fn({H:qn(i),M:qn(a),S:qn(o,c)+u}):"")})(e,i)}function In(e,n,t,r){const i=r>1||0===r&&e!==La;return 1===r?e===La?n(t):Ln(t):i?Ln(t)+Zn(e,2===r):n(t)}function Fn(e){const n=[];for(const t in e){const r=e[t];r&&n.push(r,t)}return n.join("")}function On(e,n){return Ln(e)+"T"+xn(e,n)}function Ln(e){return Gn(e)+"-"+sa(e.isoDay)}function Gn(e){const{isoYear:n}=e;return(n<0||n>9999?Yn(n)+b(6,Math.abs(n)):b(4,n))+"-"+sa(e.isoMonth)}function Bn(e){return sa(e.isoMonth)+"-"+sa(e.isoDay)}function xn(e,n){const t=[sa(e.isoHour),sa(e.isoMinute)];return-1!==n&&t.push(sa(e.isoSecond)+((e,n,t,r)=>Un(e*fa+n*ma+t,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,n)),t.join(":")}function Rn(e,n=0){if(1===n)return"";const[t,r]=T(Math.abs(e),Ma),[i,a]=T(r,ya),[o,s]=T(a,ha);return Yn(e)+sa(t)+":"+sa(i)+(o||s?":"+sa(o)+Un(s):"")}function jn(e,n){return 1!==n&&(n>1||0===n&&e!==La)?Zn(e,2===n):""}function Zn(e,n){return"["+(n?"!":"")+"u-ca="+e+"]"}function Un(e,n){let t=b(9,e);return t=void 0===n?t.replace(ss,""):t.slice(0,n),t?"."+t:""}function Yn(e){return e<0?"-":"+"}function qn(e,n){return e||n?e.toLocaleString("fullwide",{useGrouping:0}):""}function Wn(e,n){const{epochNanoseconds:t}=e,r=(n.R?n:n(e.timeZone)).R(t),i=Me(t,r);return{calendar:e.calendar,...i,offsetNanoseconds:r}}function Kn(e,n,t,r=0,i=0,a,o){if(void 0!==t&&1===r&&(1===r||o))return me(n,t);const s=e.I(n);if(void 0!==t&&3!==r){const e=((e,n,t,r)=>{const i=de(n);r&&(t=fn(t));for(const n of e){let e=ne($(n,i));if(r&&(e=fn(e)),e===t)return n}})(s,n,t,a);if(void 0!==e)return e;if(0===r)throw new RangeError(qi)}return o?de(n):Vn(e,n,i,s)}function Vn(e,n,t=0,r=e.I(n)){if(1===r.length)return r[0];if(1===t)throw new RangeError(Wi);if(r.length)return r[3===t?1:0];const i=de(n),a=((e,n)=>{const t=e.R(V(n,-ga));return(e=>{if(e>ga)throw new RangeError(Yi);return e})(e.R(V(n,ga))-t)})(e,i),o=a*(2===t?-1:1);return(r=e.I(Me(i,o)))[2===t?0:r.length-1]}function $n(e,n){const t=e.I(n);if(t.length)return t[0];const r=V(de(n),-ga);return e.O(r,1)}function Jn(e,n,t){return $e(oe(K(n.epochNanoseconds,(e=>{if(Tt(e))throw new RangeError(Qi);return bt(e,5)})(e?gt(t):t))))}function Qn(e,n,t,r,i,a=Object.create(null)){const o=n(r.timeZone),s=e(r.calendar);return{...r,...rt(o,s,r,t?gt(i):i,a)}}function Xn(e,n,t,r,i=Object.create(null)){const{calendar:a}=t;return Qe(it(e(a),t,n?gt(r):r,i),a)}function et(e,n,t,r,i){const{calendar:a}=t;return Xe(at(e(a),t,n?gt(r):r,i),a)}function nt(e,n,t,r,i){const a=t.calendar,o=e(a);let s=ie(ot(o,t));n&&(r=Mt(r)),r.sign<0&&(s=o.P(s,{...Qa,months:1}),s=ut(s,-1));const u=o.P(s,r,i);return en(ot(o,u),a)}function tt(e,n,t){return tn(st(n,e?gt(t):t)[0])}function rt(e,n,t,r,i){const a=bt(r,5);let o=t.epochNanoseconds;if(Tt(r)){const s=us(t,e);o=K(Vn(e,{...at(n,s,{...r,...Xa},i),...h(no,s)}),a)}else o=K(o,a),He(i);return{epochNanoseconds:oe(o)}}function it(e,n,t,r){const[i,a]=st(n,t);return ae({...at(e,n,{...t,...Xa,days:t.days+a},r),...i})}function at(e,n,t,r){if(t.years||t.months||t.weeks)return e.P(n,t,r);He(r);const i=t.days+bt(t,5)[0];return i?ie(ut(n,i)):n}function ot(e,n,t=1){return ut(n,t-e.day(n))}function st(e,n){const[t,r]=bt(n,5),[i,a]=ue(se(e)+r);return[i,t+a]}function ut(e,n){return n?{...e,...ge(le(e)+n*la)}:e}function ct(e,n,t){const r=e(t.calendar);return ft(t)?[t,r,n(t.timeZone)]:[{...t,...so},r]}function lt(e){return e?on:de}function dt(e){return e?p(rt,e):it}function mt(e){return e?p(ur,e):cr}function ft(e){return e&&e.epochNanoseconds}function ht(e,n){return e<=6-(ft(n)?1:0)}function yt(e,n,t,r,i,a,o){const s=e(Ue(o).relativeTo),u=Math.max(Dt(i),Dt(a));if(ht(u,s))return rn(vt(((e,n,t,r)=>{const i=K(bt(e),bt(n),r?-1:1);if(!Number.isFinite(i[0]))throw new RangeError(Ki);return{...Qa,..._t(i,t)}})(i,a,u,r)));if(!s)throw new RangeError(Ji);r&&(a=gt(a));const[c,l,d]=ct(n,t,s),m=dt(d),f=mt(d),h=m(l,c,i);return rn(f(l,c,m(l,h,a),u))}function Mt(e){return rn(gt(e))}function gt(e){const n={};for(const t of qa)n[t]=-1*e[t]||0;return n}function pt(e,n=qa){let t=0;for(const r of n){const n=Math.sign(e[r]);if(n){if(t&&t!==n)throw new RangeError($i);t=n}}return t}function vt(e){for(const n of $a)r(n,e[n],-cs,cs,1);return wt(ne(bt(e),ha)),e}function wt(e){if(!Number.isSafeInteger(e))throw new RangeError(Vi)}function bt(e,n=6){return P(e,n,qa)}function _t(e,n=6){const[t,r]=e,i=N(r,n,qa);if(i[qa[n]]+=t*(ga/pa[n]),!Number.isFinite(i[qa[n]]))throw new RangeError(Ki);return i}function Et(e,n=5){return N(e,n,qa)}function Tt(e){return Boolean(pt(e,Va))}function Dt(e){let n=9;for(;n>0&&!e[qa[n]];n--);return n}function St(e,n){return[e,n]}function At(e){const n=Math.floor(e/is)*is;return[n,n+is]}function kt(e){const n=Gt(e);if(void 0===n)throw new RangeError(na(e));return n}function Ct(e,n,t){let r=Ft(Za(e));if(!r||r.j)throw new RangeError(na(e));return n?r.calendar===La&&(r=-271821===r.isoYear&&4===r.isoMonth?{...r,isoDay:20,...so}:{...r,isoDay:1,...so}):t&&r.calendar===La&&(r={...r,isoYear:vo}),Xe(r.C?zt(r):Ht(r))}function Pt(e){if(e.calendar!==La)throw new RangeError(ta(e.calendar))}function Nt(e,n,t=0,r=0){const i=qt(e.timeZone),a=ls(i);let o;return ke(e),o=e.C?Kn(a,e,n,t,r,!a.$,e.j):$n(a,e),Je(o,i,Ur(e.calendar))}function zt(e){return It(ae(ke(e)))}function Ht(e){return It(ie(Ce(e)))}function It(e){return{...e,calendar:Ur(e.calendar)}}function Ft(e){const n=Es.exec(e);return n?(e=>{const n=e[10],t="Z"===(n||"").toUpperCase();return{isoYear:Bt(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...xt(e.slice(5)),...Rt(e[16]),C:Boolean(e[6]),j:t,offset:t?void 0:n}})(n):void 0}function Ot(e){const n=bs.exec(e);return n?(e=>({isoYear:Bt(e),isoMonth:parseInt(e[4]),isoDay:1,...Rt(e[5])}))(n):void 0}function Lt(e){const n=_s.exec(e);return n?(e=>({isoYear:vo,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Rt(e[3])}))(n):void 0}function Gt(e,n){const t=Ds.exec(e);return t?((e,n)=>{const t=e[4]||e[5];if(n&&t)throw new RangeError(ta(t));return(e=>{if(Math.abs(e)>=ga)throw new RangeError(Ui);return e})((Yt(e[2])*Ma+Yt(e[3])*ya+Yt(e[4])*ha+jt(e[5]||""))*Ut(e[1]))})(t,n):void 0}function Bt(e){const n=Ut(e[1]),t=parseInt(e[2]||e[3]);if(n<0&&!t)throw new RangeError(ta(-0));return n*t}function xt(e){const n=Yt(e[3]);return{...ue(jt(e[4]||""))[0],isoHour:Yt(e[1]),isoMinute:Yt(e[2]),isoSecond:60===n?59:n}}function Rt(e){let n,t;const r=[];if(e.replace(Ss,(e,i,a)=>{const o=Boolean(i),[s,u]=a.split("=").reverse();if(u){if("u-ca"===u)r.push(s),n||(n=o);else if(o||/[A-Z]/.test(u))throw new RangeError(ta(e))}else{if(t)throw new RangeError(ta(e));t=s}return""}),r.length>1&&n)throw new RangeError(ta(e));return{timeZone:t,calendar:r[0]||La}}function jt(e){return parseInt(e.padEnd(9,"0"))}function Zt(e){return new RegExp(`^${e}$`,"i")}function Ut(e){return e&&"+"!==e?-1:1}function Yt(e){return void 0===e?0:parseInt(e)}function qt(e){const n=Kt(e);return"number"==typeof n?Rn(n):n?(e=>{if(Ps.test(e))throw new RangeError(Ri(e));if(Cs.test(e))throw new RangeError(Zi);return e.toLowerCase().split("/").map((e,n)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,t)=>e.length<=2&&!n||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!t?v(e).replace(/island|noronha|murdo|rivadavia|urville/,v):e)).join("/")})(e):rs}function Wt(e){const n=Kt(e);return"number"==typeof n?n:n?n.resolvedOptions().timeZone:rs}function Kt(e){const n=Gt(e=e.toUpperCase(),1);return void 0!==n?n:e!==rs?ks(e):void 0}function Vt(e,n){return J(e.epochNanoseconds,n.epochNanoseconds)}function $t(e,n){return J(e.epochNanoseconds,n.epochNanoseconds)}function Jt(e,n){return Qt(e,n)||Xt(e,n)}function Qt(e,n){return _(le(e),le(n))}function Xt(e,n){return _(se(e),se(n))}function er(e,n){if(e===n)return 1;try{return Wt(e)===Wt(n)}catch(e){}}function nr(e,n,t,r){const i=Fe(e,r,3,5),a=mr(n.epochNanoseconds,t.epochNanoseconds,...i);return rn(e?gt(a):a)}function tr(e,n,t,r,i,a){const o=gr(r.calendar,i.calendar),[s,u,c,l]=Fe(t,a,5),d=r.epochNanoseconds,m=i.epochNanoseconds,f=J(m,d);let h;if(f)if(s<6)h=mr(d,m,s,u,c,l);else{const t=n(((e,n)=>{if(!er(e,n))throw new RangeError(ji);return e})(r.timeZone,i.timeZone)),d=e(o);h=lr(d,t,r,i,f,s,a),h=pn(h,m,s,u,c,l,d,r,on,p(rt,t))}else h=Qa;return rn(t?gt(h):h)}function rr(e,n,t,r,i){const a=gr(t.calendar,r.calendar),[o,s,u,c]=Fe(n,i,6),l=de(t),d=de(r),m=J(d,l);let f;if(m)if(o<=6)f=mr(l,d,o,s,u,c);else{const n=e(a);f=dr(n,t,r,m,o,i),f=pn(f,d,o,s,u,c,n,t,de,it)}else f=Qa;return rn(n?gt(f):f)}function ir(e,n,t,r,i){const a=gr(t.calendar,r.calendar);return or(n,()=>e(a),t,r,...Fe(n,i,6,9,6))}function ar(e,n,t,r,i){const a=gr(t.calendar,r.calendar),o=Fe(n,i,9,9,8),s=e(a),u=ot(s,t),c=ot(s,r);return u.isoYear===c.isoYear&&u.isoMonth===c.isoMonth&&u.isoDay===c.isoDay?rn(Qa):or(n,()=>s,ie(u),ie(c),...o,8)}function or(e,n,t,r,i,a,o,s,u=6){const c=de(t),l=de(r);if(void 0===c||void 0===l)throw new RangeError(Ki);let d;if(J(l,c))if(6===i)d=mr(c,l,i,a,o,s);else{const e=n();d=e.N(t,r,i),a===u&&1===o||(d=pn(d,l,i,a,o,s,e,t,de,at))}else d=Qa;return rn(e?gt(d):d)}function sr(e,n,t,r){const[i,a,o,s]=Fe(e,r,5,5),u=bn(Mr(n,t),hn(a,o),s),c={...Qa,...Et(u,i)};return rn(e?gt(c):c)}function ur(e,n,t,r,i,a){const o=J(r.epochNanoseconds,t.epochNanoseconds);return o?i<6?fr(t.epochNanoseconds,r.epochNanoseconds,i):lr(n,e,t,r,o,i,a):Qa}function cr(e,n,t,r,i){const a=de(n),o=de(t),s=J(o,a);return s?r<=6?fr(a,o,r):dr(e,n,t,s,r,i):Qa}function lr(e,n,t,r,i,a,o){const[s,u,c]=((e,n,t,r)=>{function i(){return d={...ut(s,c++*-r),...o},m=Vn(e,d),J(u,m)===-r}const a=us(n,e),o=h(no,a),s=us(t,e),u=t.epochNanoseconds;let c=0;const l=Mr(a,s);let d,m;if(Math.sign(l)===-r&&c++,i()&&(-1===r||i()))throw new RangeError(Gi);const f=ne($(m,u));return[a,d,f]})(n,t,r,i);var l,d;return{...6===a?(l=s,d=u,{...Qa,days:hr(l,d)}):e.N(s,u,a,o),...Et(c)}}function dr(e,n,t,r,i,a){const[o,s,u]=((e,n,t)=>{let r=n,i=Mr(e,n);return Math.sign(i)===-t&&(r=ut(n,-t),i+=ga*t),[e,r,i]})(n,t,r);return{...e.N(o,s,i,a),...Et(u)}}function mr(e,n,t,r,i,a){return{...Qa,..._t(vn($(e,n),r,i,a),t)}}function fr(e,n,t){return{...Qa,..._t($(e,n),t)}}function hr(e,n){return yr(le(e),le(n))}function yr(e,n){return Math.trunc((n-e)/la)}function Mr(e,n){return se(n)-se(e)}function gr(e,n){if(e!==n)throw new RangeError(xi);return e}function pr(e){return this.m(e)[0]}function vr(e){return this.m(e)[1]}function wr(e){const[n]=this.v(e);return yr(this.p(n),le(e))+1}function br(e){const n=Ns.exec(e);if(!n)throw new RangeError(Ii(e));return[parseInt(n[1]),Boolean(n[2])]}function _r(e,n){return"M"+sa(e)+(n?"L":"")}function Er(e,n,t){return e+(n||t&&e>=t?1:0)}function Tr(e,n){return e-(n&&e>=n?1:0)}function Dr(e,n){return(n+e)*(Math.sign(n)||1)||0}function Sr(e){return xa[kr(e)]}function Ar(e){return ja[kr(e)]}function kr(e){return Yr(e.id||La)}function Cr(e){function n(e){return((e,n)=>({...zr(e,n),o:e.month,day:parseInt(e.day)}))(pe(t,e),r)}const t=Hs(e),r=Yr(e);return{id:e,h:Pr(n),l:Nr(n)}}function Pr(e){return a(n=>{const t=le(n);return e(t)},WeakMap)}function Nr(e){const n=e(0).year-po;return a(t=>{let r,i=he(t-n),a=0;const o=[],s=[];do{i+=400*la}while((r=e(i)).year<=t);do{if(i+=(1-r.day)*la,r.year===t&&(o.push(i),s.push(r.o)),i-=la,++a>100||i<-lo)throw new RangeError(Gi)}while((r=e(i)).year>=t);return{i:o.reverse(),u:aa(s.reverse())}})}function zr(e,n){let t,r,i=Hr(e);if(e.era){const a=xa[n],o=Ra[n]||{};void 0!==a&&(t="islamic"===n?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===t||"b"===t?t="bce":"ad"===t||"a"===t?t="ce":"beforeroc"===t&&(t="broc"),t=o[t]||t,r=i,i=Dr(r,a[t]||0))}return{era:t,eraYear:r,year:i}}function Hr(e){return parseInt(e.relatedYear||e.year)}function Ir(e){const{year:n,o:t,day:r}=this.h(e),{u:i}=this.l(n);return[n,i[t]+1,r]}function Fr(e,n=1,t=1){return this.l(e).i[n-1]+(t-1)*la}function Or(e,n){const t=Lr.call(this,e);return[Tr(n,t),t===n]}function Lr(e){const n=jr(this,e),t=jr(this,e-1),r=n.length;if(r>t.length){const e=Ar(this);if(e<0)return-e;for(let e=0;e<r;e++)if(n[e]!==t[e])return e+1}}function Gr(e){return yr(Fr.call(this,e),Fr.call(this,e+1))}function Br(e,n){const{i:t}=this.l(e);let r=n+1,i=t;return r>t.length&&(r=1,i=this.l(e+1).i),yr(t[n-1],i[r-1])}function xr(e){return this.l(e).i.length}function Rr(e){const n=this.h(e);return[n.era,n.eraYear]}function jr(e,n){return Object.keys(e.l(n).u)}function Zr(e){return Ur(Za(e))}function Ur(e){if((e=e.toLowerCase())!==La&&e!==Ga){const n=Hs(e).resolvedOptions().calendar;if(Yr(e)!==Yr(n))throw new RangeError(Bi(e));return n}return e}function Yr(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function qr(e,n){return t=>t===La?e:t===Ga||t===Ba?Object.assign(Object.create(e),{id:t}):Object.assign(Object.create(n),zs(t))}function Wr(e,n,t,r){const i=Kr(t,r,Ha,[],Ta);if(void 0!==i.timeZone){const r=t.F(i),a=$r(i),o=e(i.timeZone);return{epochNanoseconds:Kn(n(o),{...r,...a},void 0!==i.offset?kt(i.offset):void 0),timeZone:o}}return{...t.F(i),...so}}function Kr(e,n,t,r=[],i=[]){return Vr(n,[...e.fields(t),...i].sort(),r)}function Vr(e,n,t,r=!t){const i={};let a,o=0;for(const r of n){if(r===a)throw new RangeError(Di(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Ti(r));let n=e[r];if(void 0!==n)o=1,Us[r]&&(n=Us[r](n,r)),i[r]=n;else if(t){if(t.includes(r))throw new TypeError(Ei(r));i[r]=Oa[r]}a=r}if(r&&!o)throw new TypeError(Si(n));return i}function $r(e,n){return ze(Ys({...Oa,...e}),n)}function Jr(e,n,t,r,i){n=h(t=e.fields(t),n),r=Vr(r,i=e.fields(i),[]);let a=e.k(n,r);return a=Vr(a,[...t,...i].sort(),[]),e.F(a)}function Qr(e,n){const t=Sr(e),r=Ra[e.id||""]||{};let{era:i,eraYear:a,year:o}=n;if(void 0!==i||void 0!==a){if(void 0===i||void 0===a)throw new TypeError(Pi);if(!t)throw new RangeError(Ci);const e=t[r[i]||i];if(void 0===e)throw new RangeError(zi(i));const n=Dr(a,e);if(void 0!==o&&o!==n)throw new RangeError(Ni);o=n}else if(void 0===o)throw new TypeError(Hi(t));return o}function Xr(e,n,t,i){let{month:a,monthCode:o}=n;if(void 0!==o){const n=((e,n,t,r)=>{const i=e.L(t),[a,o]=br(n);let s=Er(a,o,i);if(o){const n=Ar(e);if(void 0===n)throw new RangeError(Li);if(n>0){if(s>n)throw new RangeError(Li);if(void 0===i){if(1===r)throw new RangeError(Li);s--}}else{if(s!==-n)throw new RangeError(Li);if(void 0===i&&1===r)throw new RangeError(Li)}}return s})(e,o,t,i);if(void 0!==a&&a!==n)throw new RangeError(Fi);a=n,i=1}else if(void 0===a)throw new TypeError(Oi);return r("month",a,1,e.B(t),i)}function ei(e,n,r,i,a){return t(n,"day",1,e.U(i,r),a)}function ni(e,n,t,r){let i=0;const a=[];for(const e of t)void 0!==n[e]?i=1:a.push(e);if(Object.assign(e,n),i)for(const n of r||a)delete e[n]}function ti(e){const n=js(e.calendar),[t,r,i]=n.v(e),[a,o]=n.q(t,r);return{year:t,monthCode:_r(a,o),day:i}}function ri(e,n){return Qe(us(n,e))}function ii(e,n){return Xe(us(n,e))}function ai(e,n){return tn(us(n,e))}function oi(e,n,t){const r=new Set(t);return(i,a)=>{const o=t&&y(i,t);if(!y(i=((e,n)=>{const t={};for(const r in n)e.has(r)||(t[r]=n[r]);return t})(r,i),e)){if(a&&o)throw new TypeError("Invalid formatting options");i={...n,...i}}return t&&(i.timeZone=rs,["full","long"].includes(i.J)&&(i.J="medium")),i}}function si(e,n=ui,t=0){const[r,,,i]=e;return(a,o=_u,...s)=>{const u=n(i&&i(...s),a,o,r,t),c=u.resolvedOptions();return[u,...ci(e,c,s)]}}function ui(e,n,t,r,i){if(t=r(t,i),e){if(void 0!==t.timeZone)throw new TypeError(ia);t.timeZone=e}return new Mo(n,t)}function ci(e,n,t){const[,r,i]=e;return t.map(e=>(e.calendar&&((e,n,t)=>{if((t||e!==La)&&e!==n)throw new RangeError(xi)})(e.calendar,n.calendar,i),r(e,n)))}function li(e,n){return{...e,calendar:n}}function di(e){const n=mi();return Me(n,e.R(n))}function mi(){return ee(Date.now(),fa)}function fi(){return Nu||(Nu=(new Mo).resolvedOptions().timeZone)}const hi=(e,n)=>`Non-integer ${e}: ${n}`,yi=(e,n)=>`Non-positive ${e}: ${n}`,Mi=(e,n)=>`Non-finite ${e}: ${n}`,gi=e=>`Cannot convert bigint to ${e}`,pi=e=>`Invalid bigint: ${e}`,vi="Cannot convert Symbol to string",wi="Invalid object",bi=(e,n,t,r,i)=>i?bi(e,i[n],i[t],i[r]):_i(e,n)+`; must be between ${t}-${r}`,_i=(e,n)=>`Invalid ${e}: ${n}`,Ei=e=>`Missing ${e}`,Ti=e=>`Invalid field ${e}`,Di=e=>`Duplicate field ${e}`,Si=e=>"No valid fields: "+e.join(),Ai=(e,n,t)=>_i(e,n)+"; must be "+Object.keys(t).join(),ki="Invalid calling context",Ci="Forbidden era/eraYear",Pi="Mismatching era/eraYear",Ni="Mismatching year/eraYear",zi=e=>`Invalid era: ${e}`,Hi=e=>"Missing year"+(e?"/era/eraYear":""),Ii=e=>`Invalid monthCode: ${e}`,Fi="Mismatching month/monthCode",Oi="Missing month/monthCode",Li="Invalid leap month",Gi="Invalid protocol results",Bi=e=>_i("Calendar",e),xi="Mismatching Calendars",Ri=e=>_i("TimeZone",e),ji="Mismatching TimeZones",Zi="Forbidden ICU TimeZone",Ui="Out-of-bounds offset",Yi="Out-of-bounds TimeZone gap",qi="Invalid TimeZone offset",Wi="Ambiguous offset",Ki="Out-of-bounds date",Vi="Out-of-bounds duration",$i="Cannot mix duration signs",Ji="Missing relativeTo",Qi="Cannot use large units",Xi="Required smallestUnit or largestUnit",ea="smallestUnit > largestUnit",na=e=>`Cannot parse: ${e}`,ta=e=>`Invalid substring: ${e}`,ra="Mismatching types for formatting",ia="Cannot specify TimeZone",aa=p(m,(e,n)=>n),oa=p(m,(e,n,t)=>t),sa=p(b,2),ua={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},ca=Object.keys(ua),la=864e5,da=1e3,ma=1e3,fa=1e6,ha=1e9,ya=6e10,Ma=36e11,ga=864e11,pa=[1,ma,fa,ha,ya,Ma,ga],va=ca.slice(0,6),wa=w(va),ba=["offset"],_a=["timeZone"],Ea=va.concat(ba),Ta=Ea.concat(_a),Da=["era","eraYear"],Sa=Da.concat(["year"]),Aa=["year"],ka=["monthCode"],Ca=["month"].concat(ka),Pa=["day"],Na=Ca.concat(Aa),za=ka.concat(Aa),Ha=Pa.concat(Na),Ia=Pa.concat(Ca),Fa=Pa.concat(ka),Oa=oa(va,0),La="iso8601",Ga="gregory",Ba="japanese",xa={[Ga]:{"gregory-inverse":-1,gregory:0},[Ba]:{"japanese-inverse":-1,japanese:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethiopic:{ethioaa:0,ethiopic:5500},coptic:{"coptic-inverse":-1,coptic:0},roc:{"roc-inverse":-1,roc:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Ra={[Ga]:{bce:"gregory-inverse",ce:"gregory"},[Ba]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},ja={chinese:13,dangi:13,hebrew:-6},Za=p(L,"string"),Ua=p(L,"boolean"),Ya=p(L,"number"),qa=ca.map(e=>e+"s"),Wa=w(qa),Ka=qa.slice(0,6),Va=qa.slice(6),$a=Va.slice(1),Ja=aa(qa),Qa=oa(qa,0),Xa=oa(Ka,0),eo=p(g,qa),no=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],to=["isoDay","isoMonth","isoYear"],ro=no.concat(to),io=w(to),ao=w(no),oo=w(ro),so=oa(ao,0),uo=p(g,ro),co=1e8,lo=co*la,mo=[co,0],fo=[-co,0],ho=275760,yo=-271821,Mo=Intl.DateTimeFormat,go="en-GB",po=1970,vo=1972,wo=12,bo=he(1868,9,8),_o=a(Ae,WeakMap),Eo="smallestUnit",To="unit",Do="roundingIncrement",So="fractionalSecondDigits",Ao="relativeTo",ko="direction",Co={constrain:0,reject:1},Po=Object.keys(Co),No={compatible:0,reject:1,earlier:2,later:3},zo={reject:0,use:1,prefer:2,ignore:3},Ho={auto:0,never:1,critical:2,always:3},Io={auto:0,never:1,critical:2},Fo={auto:0,never:1},Oo={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Lo={previous:-1,next:1},Go=p(We,Eo),Bo=p(We,"largestUnit"),xo=p(We,To),Ro=p(Ke,"overflow",Co),jo=p(Ke,"disambiguation",No),Zo=p(Ke,"offset",zo),Uo=p(Ke,"calendarName",Ho),Yo=p(Ke,"timeZoneName",Io),qo=p(Ke,"offset",Fo),Wo=p(Ke,"roundingMode",Oo),Ko="PlainYearMonth",Vo="PlainMonthDay",$o="PlainDate",Jo="PlainDateTime",Qo="PlainTime",Xo="ZonedDateTime",es="Instant",ns="Duration",ts=[Math.floor,e=>C(e)?Math.floor(e):Math.round(e),Math.ceil,e=>C(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>C(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>C(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],rs="UTC",is=5184e3,as=fe(1847),os=fe((new Date).getUTCFullYear()+10),ss=/0+$/,us=a(Wn,WeakMap),cs=2**32-1,ls=a(e=>{const n=Kt(e);return"object"==typeof n?new ms(n):new ds(n||0)});class ds{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{const n=de({...e,...so});if(!n||Math.abs(n[0])>1e8)throw new RangeError(Ki)})(e),[me(e,this.$)]}O(){}}class ms{constructor(e){this.nn=(e=>{function n(e){const n=E(e,o,s),[a,u]=At(n),c=r(a),l=r(u);return c===l?c:t(i(a,u),c,l,e)}function t(n,t,r,i){let a,o;for(;(void 0===i||void 0===(a=i<n[0]?t:i>=n[1]?r:void 0))&&(o=n[1]-n[0]);){const t=n[0]+Math.floor(o/2);e(t)===r?n[1]=t:n[0]=t+1}return a}const r=a(e),i=a(St);let o=as,s=os;return{tn(e){const t=n(e-86400),r=n(e+86400),i=e-t,a=e-r;if(t===r)return[i];const o=n(i);return o===n(a)?[e-o]:t>r?[i,a]:[]},rn:n,O(e,n){const a=E(e,o,s);let[u,c]=At(a);const l=is*n,d=n<0?()=>c>o||(o=a,0):()=>u<s||(s=a,0);for(;d();){const a=r(u),o=r(c);if(a!==o){const r=i(u,c);t(r,a,o);const s=r[0];if((_(s,e)||1)===n)return s}u+=l,c+=l}}}})((e=>n=>{const t=pe(e,n*da);return fe(Hr(t),parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second))-n})(e))}R(e){return this.nn.rn((e=>ce(e)[0])(e))*ha}I(e){const[n,t]=[fe((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*fa+r.isoMicrosecond*ma+r.isoNanosecond];var r;return this.nn.tn(n).map(e=>oe(V(ee(e,ha),t)))}O(e,n){const[t,r]=ce(e),i=this.nn.O(t+(n>0||r?1:0),n);if(void 0!==i)return ee(i,ha)}}const fs="([+-])",hs="(?:[.,](\\d{1,9}))?",ys=`(?:(?:${fs}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Ms="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+hs+")?)?",gs=fs+Ms,ps=ys+"-?(\\d{2})(?:[T ]"+Ms+"(Z|"+gs+")?)?",vs="\\[(!?)([^\\]]*)\\]",ws=`((?:${vs}){0,9})`,bs=Zt(ys+ws),_s=Zt("(?:--)?(\\d{2})-?(\\d{2})"+ws),Es=Zt(ps+ws),Ts=Zt("T?"+Ms+"(?:"+gs+")?"+ws),Ds=Zt(gs),Ss=new RegExp(vs,"g"),As=Zt(`${fs}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${hs}H)?(?:(\\d+)${hs}M)?(?:(\\d+)${hs}S)?)?`),ks=a(e=>new Mo(go,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),Cs=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,Ps=/[^\w\/:+-]+/,Ns=/^M(\d{2})(L?)$/,zs=a(Cr),Hs=a(e=>new Mo(go,{calendar:e,timeZone:rs,era:"short",year:"numeric",month:"short",day:"numeric"})),Is={P(e,n,t){const i=He(t);let a,{years:o,months:s,weeks:u,days:c}=n;if(c+=bt(n,5)[0],o||s)a=((e,n,t,i,a)=>{let[o,s,u]=e.v(n);if(t){const[n,i]=e.q(o,s);o+=t,s=Er(n,i,e.L(o)),s=r("month",s,1,e.B(o),a)}return i&&([o,s]=e.un(o,s,i)),u=r("day",u,1,e.U(o,s),a),e.p(o,s,u)})(this,e,o,s,i);else{if(!u&&!c)return e;a=le(e)}if(void 0===a)throw new RangeError(Ki);return a+=(7*u+c)*la,ie(ge(a))},N(e,n,t){if(t<=7){let r=0,i=hr({...e,...so},{...n,...so});return 7===t&&([r,i]=S(i,7)),{...Qa,weeks:r,days:i}}const r=this.v(e),i=this.v(n);let[a,o,s]=((e,n,t,r,i,a,o)=>{let s=i-n,u=a-t,c=o-r;if(s||u){const l=Math.sign(s||u);let d=e.U(i,a),m=0;if(Math.sign(c)===-l){const r=d;[i,a]=e.un(i,a,-l),s=i-n,u=a-t,d=e.U(i,a),m=l<0?-r:d}if(c=o-Math.min(r,d)+m,s){const[r,o]=e.q(n,t),[c,d]=e.q(i,a);if(u=c-r||Number(d)-Number(o),Math.sign(u)===-l){const t=l<0&&-e.B(i);s=(i-=l)-n,u=a-Er(r,o,e.L(i))+(t||e.B(i))}}}return[s,u,c]})(this,...r,...i);return 8===t&&(o+=this.cn(a,r[0]),a=0),{...Qa,years:a,months:o,days:s}},F(e,n){const t=He(n),r=Qr(this,e),i=Xr(this,e,r,t),a=ei(this,e,i,r,t);return Xe(ie(this.V(r,i,a)),this.id||La)},K(e,n){const t=He(n),r=Qr(this,e),i=Xr(this,e,r,t);return en(re(this.V(r,i,1)),this.id||La)},_(e,n){const t=He(n);let r,i,a,o=void 0!==e.eraYear||void 0!==e.year?Qr(this,e):void 0;const s=!this.id;if(void 0===o&&s&&(o=vo),void 0!==o){const n=Xr(this,e,o,t);r=ei(this,e,n,o,t);const s=this.L(o);i=Tr(n,s),a=n===s}else{if(void 0===e.monthCode)throw new TypeError(Oi);if([i,a]=br(e.monthCode),this.id&&this.id!==Ga&&this.id!==Ba)if(this.id&&"coptic"===Yr(this.id)&&0===t){const n=a||13!==i?30:6;r=e.day,r=E(r,1,n)}else if(this.id&&"chinese"===Yr(this.id)&&0===t){const n=!a||1!==i&&9!==i&&10!==i&&11!==i&&12!==i?30:29;r=e.day,r=E(r,1,n)}else r=e.day;else r=ei(this,e,Xr(this,e,vo,t),vo,t)}const u=this.G(i,a,r);if(!u)throw new RangeError("Cannot guess year");const[c,l]=u;return nn(ie(this.V(c,l,r)),this.id||La)},fields(e){return Sr(this)&&e.includes("year")?[...e,...Da]:e},k(e,n){const t=Object.assign(Object.create(null),e);return ni(t,n,Ca),Sr(this)&&(ni(t,n,Sa),this.id===Ba&&ni(t,n,Ia,Da)),t},inLeapYear(e){const[n]=this.v(e);return this.sn(n)},monthsInYear(e){const[n]=this.v(e);return this.B(n)},daysInMonth(e){const[n,t]=this.v(e);return this.U(n,t)},daysInYear(e){const[n]=this.v(e);return this.fn(n)},dayOfYear:wr,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){const[n,t]=this.v(e),[r,i]=this.q(n,t);return _r(r,i)},dayOfWeek:De,daysInWeek:()=>7},Fs={v:ve,hn:Se,q:we},Os={dayOfYear:wr,v:ve,p:he},Ls=Object.assign({},Os,{weekOfYear:pr,yearOfWeek:vr,m(e){function n(e){return(7-e<r?7:0)-e}function t(e){const t=Ee(m+e),r=e||1,i=n(D(u+t*r,7));return l=(t+(i-c)*r)/7}const r=this.id?1:4,i=De(e),a=this.dayOfYear(e),o=D(i-1,7),s=a-1,u=D(o-s,7),c=n(u);let l,d=Math.floor((s-c)/7)+1,m=e.isoYear;return d?d>t(0)&&(d=1,m++):(d=t(-1),m--),[d,m,l]}}),Gs=Object.assign({},Is,Ls,{v:ve,hn:Se,q:we,G(e,n){if(!n)return[vo,e]},sn:Te,L(){},B:be,cn:e=>e*wo,U:_e,fn:Ee,V:(e,n,t)=>({isoYear:e,isoMonth:n,isoDay:t}),p:he,un:(e,n,t)=>(e+=A(t,wo),(n+=k(t,wo))<1?(e--,n+=wo):n>wo&&(e++,n-=wo),[e,n]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Bs={v:Ir,hn:Rr,q:Or},xs={dayOfYear:wr,v:Ir,p:Fr,weekOfYear:pr,yearOfWeek:vr,m:()=>[]},Rs=Object.assign({},Is,xs,{v:Ir,hn:Rr,q:Or,G(e,n,t){const r=this.id&&"chinese"===Yr(this.id)?((e,n,t)=>{if(n)switch(e){case 1:return 1651;case 2:return t<30?1947:1765;case 3:return t<30?1966:1955;case 4:return t<30?1963:1944;case 5:return t<30?1971:1952;case 6:return t<30?1960:1941;case 7:return t<30?1968:1938;case 8:return t<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,n,t):vo;let[i,a,o]=Ir.call(this,{isoYear:r,isoMonth:wo,isoDay:31});const s=Lr.call(this,i),u=a===s;1===(_(e,Tr(a,s))||_(Number(n),Number(u))||_(t,o))&&i--;for(let r=0;r<100;r++){const a=i-r,o=Lr.call(this,a),s=Er(e,n,o);if(n===(s===o)&&t<=Br.call(this,a,s))return[a,s]}},sn(e){const n=Gr.call(this,e);return n>Gr.call(this,e-1)&&n>Gr.call(this,e+1)},L:Lr,B:xr,cn(e,n){const t=n+e,r=Math.sign(e),i=r<0?-1:0;let a=0;for(let e=n;e!==t;e+=r)a+=xr.call(this,e+i);return a},U:Br,fn:Gr,V(e,n,t){return ge(Fr.call(this,e,n,t))},p:Fr,un(e,n,t){if(t){if(n+=t,!Number.isSafeInteger(n))throw new RangeError(Ki);if(t<0)for(;n<1;)n+=xr.call(this,--e);else{let t;for(;n>(t=xr.call(this,e));)n-=t,e++}}return[e,n]},year(e){return this.h(e).year},month(e){const{year:n,o:t}=this.h(e),{u:r}=this.l(n);return r[t]+1},day(e){return this.h(e).day}}),js=qr(Fs,Bs),Zs=qr(Gs,Rs),Us={...{era:R,eraYear:U,year:U,month:q,monthCode(e){const n=R(e);return br(n),n},day:q},...oa(va,U),...oa(qa,Y),offset(e){const n=R(e);return kt(n),n}},Ys=p(f,va,no),qs=p(f,no,va),Ws="numeric",Ks=["timeZoneName"],Vs={month:Ws,day:Ws},$s={year:Ws,month:Ws},Js=Object.assign({},$s,{day:Ws}),Qs={hour:Ws,minute:Ws,second:Ws},Xs=Object.assign({},Js,Qs),eu=Object.assign({},Xs,{timeZoneName:"short"}),nu=Object.keys($s),tu=Object.keys(Vs),ru=Object.keys(Js),iu=Object.keys(Qs),au=["dateStyle"],ou=nu.concat(au),su=tu.concat(au),uu=ru.concat(au,["weekday"]),cu=iu.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),lu=uu.concat(cu),du=Ks.concat(cu),mu=Ks.concat(uu),fu=Ks.concat(["day","weekday"],cu),hu=Ks.concat(["year","weekday"],cu),yu=oi(lu,Xs),Mu=oi(lu,eu),gu=oi(lu,Xs,Ks),pu=oi(uu,Js,du),vu=oi(cu,Qs,mu),wu=oi(ou,$s,fu),bu=oi(su,Vs,hu),_u={},Eu=new Mo(void 0,{calendar:La}).resolvedOptions().calendar===La,Tu=[yu,an],Du=[Mu,an,0,(e,n)=>{const t=e.timeZone;if(n&&n.timeZone!==t)throw new RangeError(ji);return t}],Su=[gu,le],Au=[pu,le],ku=[vu,e=>se(e)/fa],Cu=[wu,le,Eu],Pu=[bu,le,Eu];let Nu;function zu(e,n,t,r,i){function a(...e){if(!(this instanceof a))throw new TypeError(ki);ic(this,n(...e))}function l(e,n){return Object.defineProperties(function(...n){return e.call(this,m(this),...n)},o(n))}function m(n){const t=rc(n);if(!t||t.branding!==e)throw new TypeError(ki);return t}return Object.defineProperties(a.prototype,{...u(d(l,t)),...s(d(l,r)),...c("Temporal."+e)}),Object.defineProperties(a,{...s(i),...o(e)}),[a,e=>{const n=Object.create(a.prototype);return ic(n,e),n},m]}function Hu(e){if(rc(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Iu(e){return Fu(e)||La}function Fu(e){const{calendar:n}=e;if(void 0!==n)return Ou(n)}function Ou(e){if(i(e)){const{calendar:n}=rc(e)||{};if(!n)throw new TypeError(Bi(e));return n}return(e=>Ur(function(e){const n=Ft(e)||Ot(e)||Lt(e);return n?n.calendar:e}(Za(e))))(e)}function Lu(e){const n={};for(const t in e)n[t]=e=>{const{calendar:n}=e;return Zs(n)[t](e)};return n}function Gu(){throw new TypeError("Cannot use valueOf")}function Bu(e){if(i(e)){const{timeZone:n}=rc(e)||{};if(!n)throw new TypeError(Ri(e));return n}return(e=>qt(function(e){const n=Ft(e);return n&&(n.timeZone||n.j&&rs||n.offset)||e}(Za(e))))(e)}function xu(e){if(i(e)){const n=rc(e);return n&&n.branding===ns?n:function(e){const n=Vr(e,Wa);return rn(vt({...Qa,...n}))}(e)}return function(e){const n=(e=>{const n=As.exec(e);return n?(e=>{function n(e,n,a){let o=0,s=0;if(a&&([o,i]=T(i,pa[a])),void 0!==e){if(r)throw new RangeError(ta(e));s=(e=>{const n=parseInt(e);if(!Number.isFinite(n))throw new RangeError(ta(e));return n})(e),t=1,n&&(i=jt(n)*(pa[a]/ha),r=1)}return o+s}let t=0,r=0,i=0,a={...l(qa,[n(e[2]),n(e[3]),n(e[4]),n(e[5]),n(e[6],e[7],5),n(e[8],e[9],4),n(e[10],e[11],3)]),...N(i,2,qa)};if(!t)throw new RangeError(Si(qa));return Ut(e[1])<0&&(a=gt(a)),a})(n):void 0})(Za(e));if(!n)throw new RangeError(na(e));return rn(vt(n))}(e)}function Ru(e){if(void 0!==e){if(i(e)){const n=rc(e)||{};switch(n.branding){case Xo:case $o:return n;case Jo:return Xe(n)}const t=Iu(e);return{...Wr(Bu,ls,Zs(t),e),calendar:t}}return function(e){const n=Ft(Za(e));if(!n)throw new RangeError(na(e));if(n.timeZone)return Nt(n,n.offset?kt(n.offset):void 0);if(n.j)throw new RangeError(na(e));return Ht(n)}(e)}}function ju(e,n){if(i(e)){const t=rc(e)||{};switch(t.branding){case Qo:return He(n),t;case Jo:return He(n),tn(t);case Xo:return He(n),ai(ls,t)}return function(e,n){return tn($r(Vr(e,wa,[],1),He(n)))}(e,n)}const t=function(e){let n,t=(e=>{const n=Ts.exec(e);return n?(Rt(n[10]),xt(n)):void 0})(Za(e));if(!t){if(t=Ft(e),!t)throw new RangeError(na(e));if(!t.C)throw new RangeError(na(e));if(t.j)throw new RangeError(ta("Z"));Pt(t)}if((n=Ot(e))&&Pe(n))throw new RangeError(na(e));if((n=Lt(e))&&Pe(n))throw new RangeError(na(e));return tn(ze(t,1))}(e);return He(n),t}function Zu(e){return void 0===e?void 0:ju(e)}function Uu(e,n){if(i(e)){const t=rc(e)||{};switch(t.branding){case Jo:return He(n),t;case $o:return He(n),Qe({...t,...so});case Xo:return He(n),ri(ls,t)}return function(e,n,t){const r=Kr(e,n,Ha,[],va),i=He(t);return Qe(ae({...e.F(r,qe(i)),...$r(r,i)}))}(Zs(Iu(e)),e,n)}const t=function(e){const n=Ft(Za(e));if(!n||n.j)throw new RangeError(na(e));return Qe(zt(n))}(e);return He(n),t}function Yu(e,n){if(i(e)){const t=rc(e);if(t&&t.branding===Vo)return He(n),t;const r=Fu(e);return function(e,n,t,r){const i=Kr(e,t,Ha,Pa);return n&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=vo),e._(i,r)}(Zs(r||La),!r,e,n)}const t=function(e,n){const t=Lt(Za(n));if(t)return Pt(t),nn(Ce(t));const r=Ct(n,0,1),{calendar:i}=r,a=e(i),[o,s,u]=a.v(r),[c,l]=a.q(o,s),[d,m]=a.G(c,l,u);return nn(ie(a.V(d,m,u)),i)}(Zs,e);return He(n),t}function qu(e,n){if(i(e)){const t=rc(e);return t&&t.branding===Ko?(He(n),t):function(e,n,t,r){const i=Kr(e,n,Na,r);return e.K(i,t)}(Zs(Iu(e)),e,n)}const t=function(e,n){const t=Ot(Za(n));if(t)return Pt(t),en(re(Ce(t)));const r=Ct(n,1);return en(ot(e(r.calendar),r))}(Zs,e);return He(n),t}function Wu(e,n){if(i(e)){const t=rc(e)||{};switch(t.branding){case $o:return He(n),t;case Jo:return He(n),Xe(t);case Xo:return He(n),ii(ls,t)}return function(e,n,t,r=[]){const i=Kr(e,n,Ha,r);return e.F(i,t)}(Zs(Iu(e)),e,n)}const t=Ct(e);return He(n),t}function Ku(e,n){if(i(e)){const t=rc(e);if(t&&t.branding===Xo)return Ie(n),t;const r=Iu(e);return function(e,n,t,r,i,a){const o=Kr(t,i,Ha,_a,Ta),s=e(o.timeZone),[u,c,l]=Ie(a),d=t.F(o,qe(u)),m=$r(o,u);return Je(Kn(n(s),{...d,...m},void 0!==o.offset?kt(o.offset):void 0,c,l),s,r)}(Bu,ls,Zs(r),r,e,n)}return function(e,n){const t=Ft(Za(e));if(!t||!t.timeZone)throw new RangeError(na(e));const{offset:r}=t,i=r?kt(r):void 0,[,a,o]=Ie(n);return Nt(t,i,a,o)}(e,n)}function Vu(e){return d(e=>n=>e($u(n)),e)}function $u(e){return us(e,ls)}function Ju(e){if(i(e)){const n=rc(e);if(n)switch(n.branding){case es:return n;case Xo:return $e(n.epochNanoseconds)}}return function(e){const n=Ft(e=R(e));if(!n)throw new RangeError(na(e));let t;if(n.j)t=0;else{if(!n.offset)throw new RangeError(na(e));t=kt(n.offset)}return n.timeZone&&Gt(n.timeZone,1),$e(me(ke(n),t))}(e)}function Qu(){function e(e,t){return new n(e,t)}function n(e,n=Object.create(null)){Zc.set(this,((e,n)=>{const t=new Mo(e,n),r=t.resolvedOptions(),i=r.locale,o=h(Object.keys(n),r),s=a(nc),u=(e,...n)=>{if(e){if(2!==n.length)throw new TypeError(ra);for(const e of n)if(void 0===e)throw new TypeError(ra)}e||void 0!==n[0]||(n=[]);const r=n.map(e=>rc(e)||Number(e));let a,u=0;for(const e of r){const n="object"==typeof e?e.branding:void 0;if(u++&&n!==a)throw new TypeError(ra);a=n}return a?s(a)(i,o,...r):[t,...r]};return u.X=t,u})(e,n))}const t=Mo.prototype,r=Object.getOwnPropertyDescriptors(t),i=Object.getOwnPropertyDescriptors(Mo);for(const n in r){const t=r[n],i=n.startsWith("format")&&Xu(n);"function"==typeof t.value?t.value="constructor"===n?e:i||ec(n):i&&(t.get=function(){if(!Zc.has(this))throw new TypeError(ki);return(...e)=>i.apply(this,e)},Object.defineProperties(t.get,o(`get ${n}`)))}return i.prototype.value=n.prototype=Object.create({},r),Object.defineProperties(e,i),e}function Xu(e){return Object.defineProperties(function(...n){const t=Zc.get(this),[r,...i]=t(e.includes("Range"),...n);return r[e](...i)},o(e))}function ec(e){return Object.defineProperties(function(...n){return Zc.get(this).X[e](...n)},o(e))}function nc(e){const n=pc[e];if(!n)throw new TypeError((e=>`Cannot format ${e}`)(e));return si(n,a(ui),1)}const tc=new WeakMap,rc=tc.get.bind(tc),ic=tc.set.bind(tc),ac={era:function(e){if(void 0!==e)return Za(e)},eraYear:z,year:I,month:H,daysInMonth:H,daysInYear:H,inLeapYear:Ua,monthsInYear:H},oc={monthCode:Za},sc={day:H},uc={dayOfWeek:H,dayOfYear:H,weekOfYear:function(e){if(void 0!==e)return H(e)},yearOfWeek:z,daysInWeek:H},cc=Lu(Object.assign({},ac,oc,sc,uc)),lc=Lu({...ac,...oc}),dc=Lu({...oc,...sc}),mc={calendarId:e=>e.calendar},fc=m(e=>n=>n[e],qa.concat("sign")),hc=m((e,n)=>e=>e[no[n]],va),yc={epochMilliseconds:an,epochNanoseconds:function(e){return((e,n=1)=>{const[t,r]=e,i=Math.floor(r/n),a=ga/n;return BigInt(t)*BigInt(a)+BigInt(i)})(e.epochNanoseconds)}},[Mc,gc]=zu(ns,function(e=0,n=0,t=0,r=0,i=0,a=0,o=0,s=0,u=0,c=0){return rn(vt(d(Y,l(qa,[e,n,t,r,i,a,o,s,u,c]))))},{...fc,blank:function(e){return!e.sign}},{with:(e,n)=>gc(function(e,n){return rn((t=e,r=n,vt({...t,...Vr(r,Wa)})));var t,r}(e,n)),negated:e=>gc(Mt(e)),abs:e=>gc(function(e){return-1===e.sign?Mt(e):e}(e)),add:(e,n,t)=>gc(yt(Ru,Zs,ls,0,e,xu(n),t)),subtract:(e,n,t)=>gc(yt(Ru,Zs,ls,1,e,xu(n),t)),round:(e,n)=>gc(function(e,n,t,r,i){const a=Dt(r),[o,s,u,c,l]=((e,n,t)=>{e=Ye(e,Eo);let r=Bo(e);const i=t(e[Ao]);let a=Re(e);const o=Wo(e,7);let s=Go(e);if(void 0===r&&void 0===s)throw new RangeError(Xi);if(null==s&&(s=0),null==r&&(r=Math.max(s,n)),Ve(r,s),a=je(a,s,1),a>1&&s>5&&r!==s)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[r,s,a,o,i]})(i,a,e),d=Math.max(a,o);if(!l&&d<=6)return rn(vt(((e,n,t,r,i)=>{const a=vn(bt(e),t,r,i);return{...Qa,..._t(a,n)}})(r,o,s,u,c)));if(!ft(l)&&!r.sign)return r;if(!l)throw new RangeError(Ji);const[m,f,h]=ct(n,t,l),y=lt(h),M=dt(h),g=mt(h),p=M(f,m,r);ft(l)||(ae(m),ae(p));let v=g(f,m,p,o);const w=r.sign,b=pt(v);if(w&&b&&w!==b)throw new RangeError(Gi);return v=pn(v,y(p),o,s,u,c,f,m,y,M),rn(v)}(Ru,Zs,ls,e,n)),total:(e,n)=>function(e,n,t,r,i){const a=Dt(r),[o,s]=((e,n)=>{const t=n((e=Ye(e,To))[Ao]);let r=xo(e);return r=F(To,r),[r,t]})(i,e),u=Math.max(o,a);if(!s&&ht(u,s))return sn(r,o);if(!s)throw new RangeError(Ji);if(!r.sign)return 0;const[c,l,d]=ct(n,t,s),m=lt(d),f=dt(d),h=mt(d),y=f(l,c,r);ft(s)||(ae(c),ae(y));const M=h(l,c,y,o);return ht(o,s)?sn(M,o):((e,n,t,r,i,a,o)=>{const s=pt(e),[u,c]=un(r,eo(t,e),t,s,i,a,o),l=cn(n,u,c);return e[qa[t]]+l*s})(M,m(y),o,l,c,m,f)}(Ru,Zs,ls,e,n),toLocaleString(e,n,t){return Intl.DurationFormat?new Intl.DurationFormat(n,t).format(this):Hn(e)},toString:Hn,toJSON:e=>Hn(e),valueOf:Gu},{from:e=>gc(xu(e)),compare:(e,n,t)=>function(e,n,t,r,i,a){const o=e(Ue(a).relativeTo),s=Math.max(Dt(r),Dt(i));if(M(qa,r,i))return 0;if(ht(s,o))return J(bt(r),bt(i));if(!o)throw new RangeError(Ji);const[u,c,l]=ct(n,t,o),d=lt(l),m=dt(l);return J(d(m(c,u,r)),d(m(c,u,i)))}(Ru,Zs,ls,xu(e),xu(n),t)}),pc={Instant:Tu,PlainDateTime:Su,PlainDate:Au,PlainTime:ku,PlainYearMonth:Cu,PlainMonthDay:Pu},vc=si(Tu),wc=si(Du),bc=si(Su),_c=si(Au),Ec=si(ku),Tc=si(Cu),Dc=si(Pu),[Sc,Ac]=zu(Qo,function(e=0,n=0,t=0,r=0,i=0,a=0){return tn(ze(d(U,l(no,[e,n,t,r,i,a])),1))},hc,{with(e,n,t){return Ac(function(e,n,t){return tn(((e,n,t)=>$r({...h(wa,e),...Vr(n,wa)},He(t)))(e,n,t))}(this,Hu(n),t))},add:(e,n)=>Ac(tt(0,e,xu(n))),subtract:(e,n)=>Ac(tt(1,e,xu(n))),until:(e,n,t)=>gc(sr(0,e,ju(n),t)),since:(e,n,t)=>gc(sr(1,e,ju(n),t)),round:(e,n)=>Ac(function(e,n){const[t,r,i]=Oe(n,5);var a;return tn((a=i,mn(e,hn(t,r),a)[0]))}(e,n)),equals:(e,n)=>function(e,n){return!Xt(e,n)}(e,ju(n)),toLocaleString(e,n,t){const[r,i]=Ec(n,t,e);return r.format(i)},toString:zn,toJSON:e=>zn(e),valueOf:Gu},{from:(e,n)=>Ac(ju(e,n)),compare:(e,n)=>Xt(ju(e),ju(n))}),[kc,Cc]=zu(Jo,p(function(e,n,t,r,i=0,a=0,o=0,s=0,u=0,c=0,m=La){return Qe(ae(ke(d(U,l(ro,[n,t,r,i,a,o,s,u,c])))),e(m))},Zr),{...mc,...cc,...hc},{with:(e,n,t)=>Cc(function(e,n,t,r){const i=e(n.calendar),a=[...i.fields(Ha),...va].sort(),o={...ti(s=n),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;const u=Vr(t,a),c=He(r),l=i.k(o,u),d={...o,...u};return Qe(ae({...i.F(l,qe(c)),...ze(Ys(d),c)}))}(Zs,e,Hu(n),t)),withCalendar:(e,n)=>Cc(li(e,Ou(n))),withPlainTime:(e,n)=>Cc(function(e,n=so){return Qe(ae({...e,...n}))}(e,Zu(n))),add:(e,n,t)=>Cc(Xn(Zs,0,e,xu(n),t)),subtract:(e,n,t)=>Cc(Xn(Zs,1,e,xu(n),t)),until:(e,n,t)=>gc(rr(Zs,0,e,Uu(n),t)),since:(e,n,t)=>gc(rr(Zs,1,e,Uu(n),t)),round:(e,n)=>Cc(function(e,n){return Qe(ln(e,...Oe(n)),e.calendar)}(e,n)),equals:(e,n)=>function(e,n){return!Jt(e,n)&&e.calendar===n.calendar}(e,Uu(n)),toZonedDateTime:(e,n,t)=>Lc(function(e,n,t,r){const i=((e,n,t,r)=>{const i=(e=>jo(Ue(e)))(r);return Vn(e(n),t,i)})(e,t,n,r);return Je(oe(i),t,n.calendar)}(ls,e,Bu(n),t)),toPlainDate:e=>Fc(Xe(e)),toPlainTime:e=>Ac(tn(e)),toLocaleString(e,n,t){const[r,i]=bc(n,t,e);return r.format(i)},toString:kn,toJSON:e=>kn(e),valueOf:Gu},{from:(e,n)=>Cc(Uu(e,n)),compare:(e,n)=>Jt(Uu(e),Uu(n))}),[Pc,Nc]=zu(Vo,p(function(e,n,t,r=La,i=vo){const a=U(n),o=U(t),s=e(r);return nn(ie(Ce({isoYear:U(i),isoMonth:a,isoDay:o})),s)},Zr),{...mc,...dc},{with:(e,n,t)=>Nc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(Ha).sort(),o=(e=>{const n=js(e.calendar),[t,r,i]=n.v(e),[a,o]=n.q(t,r);return{monthCode:_r(a,o),day:i}})(n),s=Vr(t,a),u=i.k(o,s);return i._(u,r)}(Zs,e,Hu(n),t)),equals:(e,n)=>function(e,n){return!Qt(e,n)&&e.calendar===n.calendar}(e,Yu(n)),toPlainDate(e,n){return Fc(function(e,n,t,r){return((e,n,t)=>Jr(e,n,Fa,O(t),Aa))(e(n.calendar),t,r)}(Zs,e,this,n))},toLocaleString(e,n,t){const[r,i]=Dc(n,t,e);return r.format(i)},toString:Nn,toJSON:e=>Nn(e),valueOf:Gu},{from:(e,n)=>Nc(Yu(e,n))}),[zc,Hc]=zu(Ko,p(function(e,n,t,r=La,i=1){const a=U(n),o=U(t),s=e(r);return en(re(Ce({isoYear:a,isoMonth:o,isoDay:U(i)})),s)},Zr),{...mc,...lc},{with:(e,n,t)=>Hc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(Na).sort(),o=(e=>{const n=js(e.calendar),[t,r]=n.v(e),[i,a]=n.q(t,r);return{year:t,monthCode:_r(i,a)}})(n),s=Vr(t,a),u=i.k(o,s);return i.K(u,r)}(Zs,e,Hu(n),t)),add:(e,n,t)=>Hc(nt(Zs,0,e,xu(n),t)),subtract:(e,n,t)=>Hc(nt(Zs,1,e,xu(n),t)),until:(e,n,t)=>gc(ar(Zs,0,e,qu(n),t)),since:(e,n,t)=>gc(ar(Zs,1,e,qu(n),t)),equals:(e,n)=>function(e,n){return!Qt(e,n)&&e.calendar===n.calendar}(e,qu(n)),toPlainDate(e,n){return Fc(function(e,n,t,r){return((e,n,t)=>Jr(e,n,za,O(t),Pa))(e(n.calendar),t,r)}(Zs,e,this,n))},toLocaleString(e,n,t){const[r,i]=Tc(n,t,e);return r.format(i)},toString:Pn,toJSON:e=>Pn(e),valueOf:Gu},{from:(e,n)=>Hc(qu(e,n)),compare:(e,n)=>Qt(qu(e),qu(n))}),[Ic,Fc]=zu($o,p(function(e,n,t,r,i=La){return Xe(ie(Ce(d(U,{isoYear:n,isoMonth:t,isoDay:r}))),e(i))},Zr),{...mc,...cc},{with:(e,n,t)=>Fc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(Ha).sort(),o=ti(n),s=Vr(t,a),u=i.k(o,s);return i.F(u,r)}(Zs,e,Hu(n),t)),withCalendar:(e,n)=>Fc(li(e,Ou(n))),add:(e,n,t)=>Fc(et(Zs,0,e,xu(n),t)),subtract:(e,n,t)=>Fc(et(Zs,1,e,xu(n),t)),until:(e,n,t)=>gc(ir(Zs,0,e,Wu(n),t)),since:(e,n,t)=>gc(ir(Zs,1,e,Wu(n),t)),equals:(e,n)=>function(e,n){return!Qt(e,n)&&e.calendar===n.calendar}(e,Wu(n)),toZonedDateTime(e,n){const t=i(n)?n:{timeZone:n};return Lc(function(e,n,t,r,i){const a=e(i.timeZone),o=i.plainTime,s=void 0!==o?n(o):void 0,u=t(a);let c;return c=s?Vn(u,{...r,...s}):$n(u,{...r,...so}),Je(c,a,r.calendar)}(Bu,ju,ls,e,t))},toPlainDateTime:(e,n)=>Cc(function(e,n=so){return Qe(ae({...e,...n}))}(e,Zu(n))),toPlainYearMonth(e){return Hc(function(e,n,t){return((e,n)=>{const t=Kr(e,n,za);return e.K(t,void 0)})(e(n.calendar),t)}(Zs,e,this))},toPlainMonthDay(e){return Nc(function(e,n,t){return((e,n)=>{const t=Kr(e,n,Fa);return e._(t)})(e(n.calendar),t)}(Zs,e,this))},toLocaleString(e,n,t){const[r,i]=_c(n,t,e);return r.format(i)},toString:Cn,toJSON:e=>Cn(e),valueOf:Gu},{from:(e,n)=>Fc(Wu(e,n)),compare:(e,n)=>Qt(Wu(e),Wu(n))}),[Oc,Lc]=zu(Xo,p(function(e,n,t,r,i=La){return Je(oe(X(j(t))),n(r),e(i))},Zr,function(e){return qt(Za(e))}),{...yc,...mc,...Vu(cc),...Vu(hc),offset:e=>Rn($u(e).offsetNanoseconds),offsetNanoseconds:e=>$u(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>function(e,n){const t=e(n.timeZone),r=us(n,t),[i,a]=yn(r),o=ne($($n(t,i),$n(t,a)),Ma,1);if(o<=0)throw new RangeError(Gi);return o}(ls,e)},{with:(e,n,t)=>Lc(function(e,n,t,r,i){const{calendar:a,timeZone:o}=t,s=e(a),u=n(o),c=[...s.fields(Ha),...Ea].sort(),l=(e=>{const n=us(e,ls),t=Rn(n.offsetNanoseconds),r=js(e.calendar),[i,a,o]=r.v(n),[s,u]=r.q(i,a),c=_r(s,u);return{...qs(n),year:i,monthCode:c,day:o,offset:t}})(t),d=Vr(r,c),m=s.k(l,d),f={...l,...d},[h,y,M]=Ie(i,2);return Je(Kn(u,{...s.F(m,qe(h)),...ze(Ys(f),h)},kt(f.offset),y,M),o,a)}(Zs,ls,e,Hu(n),t)),withCalendar:(e,n)=>Lc(li(e,Ou(n))),withTimeZone:(e,n)=>Lc(function(e,n){return{...e,timeZone:n}}(e,Bu(n))),withPlainTime:(e,n)=>Lc(function(e,n,t){const r=n.timeZone,i=e(r),a={...us(n,i),...t||so};let o;return o=t?Kn(i,a,a.offsetNanoseconds,2):$n(i,a),Je(o,r,n.calendar)}(ls,e,Zu(n))),add:(e,n,t)=>Lc(Qn(Zs,ls,0,e,xu(n),t)),subtract:(e,n,t)=>Lc(Qn(Zs,ls,1,e,xu(n),t)),until:(e,n,t)=>gc(rn(tr(Zs,ls,0,e,Ku(n),t))),since:(e,n,t)=>gc(rn(tr(Zs,ls,1,e,Ku(n),t))),round:(e,n)=>Lc(function(e,n,t){let{epochNanoseconds:r,timeZone:i,calendar:a}=n;const[o,s,u]=Oe(t);if(0===o&&1===s)return n;const c=e(i);if(6===o)r=((e,n,t,r)=>{const i=us(t,n),[a,o]=e(i),s=t.epochNanoseconds,u=$n(n,a),c=$n(n,o);if(Q(s,u,c))throw new RangeError(Gi);return _n(cn(s,u,c),r)?c:u})(yn,c,n,u);else{const e=c.R(r);r=Kn(c,ln(Me(r,e),o,s,u),e,2,0,1)}return Je(r,i,a)}(ls,e,n)),startOfDay:e=>Lc(function(e,n){const{timeZone:t,calendar:r}=n,i=((e,n,t)=>$n(n,e(us(t,n))))(Mn,e(t),n);return Je(i,t,r)}(ls,e)),equals:(e,n)=>function(e,n){return!$t(e,n)&&!!er(e.timeZone,n.timeZone)&&e.calendar===n.calendar}(e,Ku(n)),toInstant:e=>Bc(function(e){return $e(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Cc(ri(ls,e)),toPlainDate:e=>Fc(ii(ls,e)),toPlainTime:e=>Ac(ai(ls,e)),toLocaleString(e,n,t={}){const[r,i]=wc(n,t,e);return r.format(i)},toString:(e,n)=>An(ls,e,n),toJSON:e=>An(ls,e),valueOf:Gu,getTimeZoneTransition(e,n){const{timeZone:t,epochNanoseconds:r}=e,i=function(e){const n=Ye(e,ko),t=Ke(ko,Lo,n,0);if(!t)throw new RangeError(_i(ko,t));return t}(n),a=ls(t).O(r,i);return a?Lc({...e,epochNanoseconds:a}):null}},{from:(e,n)=>Lc(Ku(e,n)),compare:(e,n)=>$t(Ku(e),Ku(n))}),[Gc,Bc]=zu(es,function(e){return $e(oe(X(j(e))))},yc,{add:(e,n)=>Bc(Jn(0,e,xu(n))),subtract:(e,n)=>Bc(Jn(1,e,xu(n))),until:(e,n,t)=>gc(nr(0,e,Ju(n),t)),since:(e,n,t)=>gc(nr(1,e,Ju(n),t)),round:(e,n)=>Bc(function(e,n){const[t,r,i]=Oe(n,5,1);return $e(vn(e.epochNanoseconds,t,r,i,1))}(e,n)),equals:(e,n)=>function(e,n){return!Vt(e,n)}(e,Ju(n)),toZonedDateTimeISO:(e,n)=>Lc(function(e,n,t=La){return Je(e.epochNanoseconds,n,t)}(e,Bu(n))),toLocaleString(e,n,t){const[r,i]=vc(n,t,e);return r.format(i)},toString:(e,n)=>Sn(Bu,ls,e,n),toJSON:e=>Sn(Bu,ls,e),valueOf:Gu},{from:e=>Bc(Ju(e)),fromEpochMilliseconds:e=>Bc(function(e){return $e(oe(ee(Y(e),fa)))}(e)),fromEpochNanoseconds:e=>Bc(function(e){return $e(oe(X(j(e))))}(e)),compare:(e,n)=>Vt(Ju(e),Ju(n))}),xc=Object.defineProperties({},{...c("Temporal.Now"),...s({timeZoneId:()=>fi(),instant:()=>Bc($e(mi())),zonedDateTimeISO:(e=fi())=>Lc(Je(mi(),Bu(e),La)),plainDateTimeISO:(e=fi())=>Cc(Qe(di(ls(Bu(e))),La)),plainDateISO:(e=fi())=>Fc(Xe(di(ls(Bu(e))),La)),plainTimeISO:(e=fi())=>Ac(tn(di(ls(Bu(e)))))})}),Rc=Object.defineProperties({},{...c("Temporal"),...s({PlainYearMonth:zc,PlainMonthDay:Pc,PlainDate:Ic,PlainTime:Sc,PlainDateTime:kc,ZonedDateTime:Oc,Instant:Gc,Duration:Mc,Now:xc})}),jc=Qu(),Zc=new WeakMap;function Uc(e,...n){let t=bbn.lng[e]||e;if(n.length){let e=0;return t.replace(/\%([d|s])/g,(t,r)=>{let i=n[e++];i||(i="d"===r?0:"");const a=typeof i;return"d"===r&&"number"!==a?(i=parseFloat(i),isNaN(i)&&(i=0)):"s"===r&&"string"!==a&&(i=""+i),i})}return t}Object.create(Intl),s({DateTimeFormat:jc});var Yc,qc,Wc,Kc,Vc,$c,Jc={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:["PageUp","PageDown","End","Home","ArrowUp","ArrowDown"],leftRight:["Home","End","ArrowLeft","ArrowRight"],dels:["Backspace","Delete","Insert"],confirm:["Enter","Tab"],alt:["CapsLock","Shift","Control","Alt","NumLock"],numbers:["0","1","2","3","4","5","6","7","8","9","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9"],numsigns:["NumpadSubtract","NumpadDecimal","-","."]},comparators:[">=","<=",">","<","="],operators:["+","-","/","*"],tags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],colors:{darkgrey:"#5a6a62",black:"#000000",anthracite:"#454545",grey:"#d3d3d3",white:"#ffffff",beige:"#fdfdfd",lightgrey:"#dcdcdc",pastelblue:"#ddebf6",cyan:"#00c8f8",blue:"#6e9ecf",indigo:"#3f51b5",navy:"#354458",webblue:"#2196f3",teal:"#009688",turquoise:"#1fda9a",pastelgreen:"#e2efda",palegreen:"#ccffcc",green:"#00a03e",olive:"#92b06a",pastelorange:"#fff2cc",yellow:"#fdf200",orange:"#ff9900",pink:"#eb65a0",purple:"#a333c8",red:"#db3340",brown:"#8c6954"},reserved:["abstract","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","new","null","package","return","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","while","with"],mockText:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",regexp:{url:new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),ip:/^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,hostname:/^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i}},Qc={siteTitle:null===(Yc=globalThis.document)||void 0===Yc?void 0:Yc.title,logging:!1,cdn:"",lang:"en",host:(null===(qc=globalThis.location)||void 0===qc?void 0:qc.protocol)+"//"+(null===(Wc=globalThis.location)||void 0===Wc?void 0:Wc.hostname),url:null===(Kc=globalThis.location)||void 0===Kc?void 0:Kc.href,old_path:null,getParameters:{},loading:!1,_enumerated:[],get isEnumerating(){return this._enumerated.length>0},width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:50,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,isVisible:!(null===(Vc=globalThis.document)||void 0===Vc?void 0:Vc.hidden),timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax",online:null===($c=globalThis.navigator)||void 0===$c?void 0:$c.onLine},Xc=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};class el extends Error{constructor(e){super(e||"Request canceled"),this.name="Cancel",this.__BBN_CANCEL__=!0}}const nl=["POST","PUT","PATCH","DELETE"],tl=(e,n,t={},r)=>{const i=new XMLHttpRequest,a=nl.includes(e.toUpperCase()),o=new Promise((r,o)=>{i.open(e.toUpperCase(),n,!0);const{body:s,headers:u}=((e,n)=>{const t=new Headers(n||{});let r=e;return null==e||e instanceof FormData||"object"!=typeof e||(t.set("Content-Type","application/json"),r=JSON.stringify(e)),{body:r,headers:t}})(t.data,t.headers);u.forEach((e,n)=>{i.setRequestHeader(n,e)}),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e=>{const n=e.lengthComputable?e.total:void 0;t.onUploadProgress({loaded:e.loaded,total:n,progress:n?e.loaded/n:void 0})}),i.onreadystatechange=()=>{if(4!==i.readyState)return;const e=(e=>{const n={};return e?(e.trim().split(/[\r\n]+/).forEach(e=>{const t=e.split(": "),r=t.shift(),i=t.join(": ");r&&(n[r.toLowerCase()]=i)}),n):n})(i.getAllResponseHeaders()),n=1223===i.status?204:i.status,a=i.statusText||"";let s=i.responseText;if((e["content-type"]||"").includes("application/json"))try{s=JSON.parse(i.responseText)}catch(e){}const u={data:s,status:n,statusText:a,headers:e,config:t,request:i};if(n>=200&&n<300)r(u);else{const e=new Error("Request failed with status code "+n);e.response=u,e.config=t,e.request=i,o(e)}},i.onerror=()=>{const e=new Error("Network Error");e.config=t,e.request=i,o(e)},i.onabort=()=>{o(new el("Request canceled"))},a?i.send(s):i.send()});return o.cancel=()=>i.abort(),o};var rl={isCancel:e=>!(!e||!0!==e.__BBN_CANCEL__),run:(e,n,t={},r)=>{t.baseURL&&!/^https?:\/\//i.test(n)&&(n=t.baseURL.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,"")),n=((e,n)=>{if(!n)return e;const t=new URLSearchParams(n).toString();return t?e+(e.includes("?")?"&":"?")+t:e})(n,t.params);return"function"==typeof t.onUploadProgress&&nl.includes(e.toUpperCase())?tl(e,n,t):((e,n,t={},r)=>{const i={method:e,headers:new Headers(t.headers||{}),signal:null==r?void 0:r.signal},a=nl.includes(e.toUpperCase());if(null!=t.data&&a&&("object"!=typeof t.data||t.data instanceof FormData?i.body=t.data:(i.headers.set("Content-Type","application/json"),i.body=JSON.stringify(t.data))),t.params){const e=new URLSearchParams(t.params).toString();n+=(n.includes("?")?"&":"?")+e}const o=fetch(n,i).then(e=>Xc(void 0,void 0,void 0,function*(){let n;const r=e.headers.get("content-type")||"";try{n=r.includes("application/json")?yield e.json():r.startsWith("text/")?yield e.text():r.includes("multipart/")?yield e.arrayBuffer():yield e.blob()}catch(t){n=yield e.text()}const i={data:n,status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries()),config:t,request:e};if(!e.ok){const n=new Error("Request failed with status code "+e.status);throw n.response=i,n.config=t,n.request=e,n}return i})).catch(e=>{if("AbortError"===e.name)throw new el("Request canceled");throw e});return o.cancel=()=>r.abort(),o})(e,n,t,r)}};function il(...e){if(!e.length)return!1;for(let n of e)if("[object String]"!=={}.toString.apply(n))return!1;return!0}function al(...e){if(!e.length)return!1;for(let n of e)if(!Number.isInteger(n))return!1;return!0}function ol(...e){if(!e.length)return!1;for(let n of e)if(!(n&&n.constructor&&n.call&&n.apply))return!1;return!0}function sl(...e){var n,t,r,i;if((null===(t=null===(n=globalThis.bbn)||void 0===n?void 0:n.env)||void 0===t?void 0:t.logging)&&void 0!==globalThis.console){let n,t=5,a="log";e[0]&&"object"==typeof e[0]&&e[0]._bbn_console_style&&(e[0]._bbn_console_mode&&ol(globalThis.console[e[0]._bbn_console_mode])?a=e[0]._bbn_console_mode:(n=e[0]._bbn_console_style,t=e[0]._bbn_console_level),e.shift());const o=globalThis.console[a];if((null===(i=null===(r=globalThis.bbn)||void 0===r?void 0:r.env)||void 0===i?void 0:i.loggingLevel)>=t){let t=0;for(;t<e.length;){let r=typeof e[t],i=[e[t]];"string"!==r&&"number"!==r||i.unshift("%c %s ",n),o.apply(globalThis.console,i),t++}}}}function ul(e,n,t){if(!il(e)||!al(n))throw sl(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return n<0&&(n=e.length+n),al(t)?e.substring(n,(t<0?e.length:n)+t):e.substring(n)}function cl(e,n=!1){let t=null;if("object"==typeof e)for(var r in t={},e)ul(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(n&&"object"==typeof e[r]?t[r]=cl(e[r],!0):t[r]=e[r]);return t||!1}function ll(e,n,t=!1,r=!1){if(null!==e&&"object"==typeof e){let i=Object.keys(t?cl(e):e);r&&i.reverse();for(let t of i)if(!1===n(e[t],t))break}return e}function dl(...e){if(!e.length)return!1;for(let n of e)if("[object Object]"!=={}.toString.apply(n))return!1;return!0}function ml(...e){if(!e.length)return!1;for(let n of e)if(!Array.isArray(n))return!1;return!0}function fl(...e){if(!e.length)return!1;for(let n of e)if(["boolean","object","symbol"].includes(typeof n)||""===n||isNaN(n))return!1;return!0}function hl(...e){if(!e.length)return!1;for(let n of e)if(!n||"object"!=typeof n||!(Symbol.iterator in Object(n)))return!1;return!0}function yl(e,n){if(!(fl(e)&&e>0)){if(hl(e)){for(let t=0;t<e.length;t++)if(!1===n(e[t],t))return;return e}return ll(e,n)}for(let t=0;t<e;t++)if(!1===n(t,t))return}function Ml(...e){let n=!1,t=[];for(let r=0;r<e.length;r++)if(!0===e[r])n=!0;else{if(!e[r])continue;if("object"!=typeof e[r])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[r]);t.push(e[r])}if(!t.length)throw new Error("No argument given");let r,i=t[0];for(let e=1;e<t.length;e++)ll(t[e],(e,t)=>{n?ml(e)?(i[t]=ml(i[t])?i[t]:[],yl(e,(e,n)=>{if(e&&"object"==typeof e){let r=i[t][n];ml(e)?ml(r)||(r=[]):dl(r)||(r={}),i[t][n]=Ml(!0,r,e)}else i[t][n]=e})):dl(e)?i[t]=Ml(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:(i[t]!==e||void 0===e&&!Object.prototype.hasOwnProperty.apply(i,[t]))&&(i[t]=e)}),r||(r=!!t[e].__bbnNoData);return r&&"bbnData"in window&&(i.__bbnData&&i.__bbnData.unset(),Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1})),i}var gl=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};const pl=globalThis.indexedDB||globalThis.webkitIndexedDB||globalThis.mozIndexedDB||globalThis.OIndexedDB||globalThis.msIndexedDB,vl=(e,n)=>{if(e){if(null==n?void 0:n.length){const t={};return ll(e,(e,r)=>{n.includes(r)&&(t[r]=e)}),t}return e}},wl=(e,n=[])=>{var t;return(null===(t=null==e?void 0:e.conditions)||void 0===t?void 0:t.length)?e.conditions.forEach(e=>{e.field&&!n.includes(e.field)?n.push(e.field):e.conditions&&wl(e,n)}):dl(e)?ll(e,(e,t)=>{n.includes(t)||n.push(t)}):ml(e)&&e.forEach(e=>{e.field&&!n.includes(e.field)?n.push(e.field):e.conditions&&wl(e,n)}),n},bl=e=>{const n=e.keys.PRIMARY.columns;return n.length>1?n:n[0]},_l=e=>new Promise((n,t)=>{e.onsuccess=()=>n(e.result),e.onerror=()=>t(e.error)}),El=e=>new Promise((n,t)=>{e.oncomplete=()=>n(),e.onabort=()=>t(e.error),e.onerror=()=>t(e.error)});class Tl{constructor(e){this.lastErr=null,this.dbName=e}hasMissingStores(e,n){const t=Dl._structures[e]||{};return Object.keys(t).some(e=>!n.objectStoreNames.contains(e))}getConnection(){return gl(this,arguments,void 0,function*(e=""){let n=Dl._connections[e||this.dbName];if(!n){if(yield Dl.open(e||this.dbName),!Dl._connections[e||this.dbName])throw new Error(Uc("The database %s is not open",this.dbName));n=Dl._connections[e||this.dbName]}return n})}get structure(){const e=Dl._structures[this.dbName];if(!e)throw new Error(Uc("No structure defined for database %s",this.dbName));return e}getStore(e,n){return gl(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!this.structure[e])throw new Error(Uc("Table %s is not defined in database structure %s",e,this.dbName));if(!t.objectStoreNames.contains(e))throw new Error(Uc("Table %s does not exist in database %s. Schema upgrade required.",e,this.dbName));const r=t.transaction([e],n);return r.onabort=()=>{this.lastErr=r.error,sl(r.error)},r.onerror=()=>{this.lastErr=r.error,sl(r.error)},[r,r.objectStore(e)]})}lastError(){return this.lastErr}close(){const e=Dl._connections[this.dbName];e&&(e.close(),delete Dl._connections[this.dbName])}insert(e,n){return gl(this,void 0,void 0,function*(){const t=Array.isArray(n)?n:[n];if(!t.length)return 0;const[r,i]=yield this.getStore(e,"readwrite");let a=0;for(const e of t){const n=i.put(e);n.onsuccess=()=>{a++},n.onerror=()=>{this.lastErr=n.error,sl(n.error)}}return yield El(r),a})}update(e,n,t){return gl(this,arguments,void 0,function*(e,n,t,r=!1){const i=yield this.selectAll(e,[],t);if(!i.length)return 0;const a=this.structure[e],o=bl(a);if(Array.isArray(o))throw new Error(Uc("Composite primary keys are not supported by this update implementation"));const[s,u]=yield this.getStore(e,"readwrite");let c=0;for(const e of i){const t=Ml({},r?{[o]:e[o]}:e,n);if(!(o in t))throw new Error(Uc("No primary key in the data"));const i=u.put(t);i.onsuccess=()=>{c++},i.onerror=()=>{this.lastErr=i.error,sl(i.error)}}return yield El(s),c})}delete(e,n){return gl(this,void 0,void 0,function*(){const t=this.structure[e],r=bl(t);if(Array.isArray(r))throw new Error(Uc("Composite primary keys are not supported by this delete implementation"));if(!(r in n))throw new Error(Uc("No primary key in the filter"));const[i,a]=yield this.getStore(e,"readwrite");return a.delete(n[r]),yield El(i),1})}selectOne(e,n){return gl(this,arguments,void 0,function*(e,n,t=null,r=null,i=0,a=1){var o;const s=yield this.selectAll(e,[n],t,r,i,a);return null===(o=null==s?void 0:s[0])||void 0===o?void 0:o[n]})}select(e){return gl(this,arguments,void 0,function*(e,n=[],t=null,r=null,i=0){const a=yield this.selectAll(e,n,t,r,i,1);return a.length?a[0]:null})}selectAll(e){return gl(this,arguments,void 0,function*(e,n=[],t=null,r=null,i=0,a=null){const[o,s]=yield this.getStore(e,"readonly"),u=this.structure[e],c=bl(u),l=[],d=dl(t)?Object.keys(t)[0]:!t||ml(t)?null:c;if(!Array.isArray(c)&&d===c){if(Array.isArray(null==t?void 0:t[c])){const e=t[c],r=Math.min(e.length-i,null!=a?a:e.length),u=e.slice(i,i+r);for(const e of u){const t=yield _l(s.get(e)),r=vl(t,n);r&&l.push(r)}return yield El(o),l}const e=dl(t)?t[c]:t,r=yield _l(s.get(e)),u=vl(r,n);return u&&l.push(u),yield El(o),l}return yield new Promise((e,r)=>{const o=s.openCursor();let u=0;o.onsuccess=r=>{var o,s;const c=r.target.result;if(!c)return void e();if(!t||!(null===(s=null===(o=globalThis.bbn)||void 0===o?void 0:o.fn)||void 0===s?void 0:s.search)||0===globalThis.bbn.fn.search([c.value],t)){if(u>=i){const t=vl(c.value,n);if(t&&l.push(t),null!==a&&l.length>=a)return void e()}u++}c.continue()},o.onerror=()=>{this.lastErr=o.error,sl(o.error),r(o.error)}}),yield El(o),l})}getColumnValues(e,n){return gl(this,arguments,void 0,function*(e,n,t=null,r=null,i=0,a=null){return(yield this.selectAll(e,wl(t,[n]),t,r,i,a)).map(e=>e[n]).filter(e=>void 0!==e)})}copyTable(e,n){return gl(this,arguments,void 0,function*(e,n,t=[],r=null,i=null,a=0,o=null){if(!this.structure[n])throw new Error(Uc("Source table %s does not exist in structure",n));let s=yield this.getConnection();if(s.objectStoreNames.contains(e)||(s.close(),yield Dl.add(this.dbName,e,this.structure[n]),s=yield this.getConnection()),!s.objectStoreNames.contains(e))throw new Error(Uc("The target table %s does not exist",e));const u=yield this.selectAll(n,t,r,i,a,o);if(!u.length)return 0;const c=yield this.insert(e,u);return s.close(),c})}deleteTable(e){return gl(this,void 0,void 0,function*(){return yield Dl.remove(this.dbName,e),!0})}}const Dl={_structures:{},_connections:{},_stores:{},ok:void 0!==pl,close(e){const n=this._connections[e];n&&(n.close(),delete this._connections[e])},updateStructure(e,n,t){const r=bl(n);if(!t.objectStoreNames.contains(e)){const i=t.createObjectStore(e,{keyPath:r});ll(n.keys,(e,n)=>{"PRIMARY"!==n&&i.createIndex(n,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})})}},importStructure(e,n){return gl(this,void 0,void 0,function*(){this._structures[e]||(this._structures[e]={});for(const t in n)this._structures[e].hasOwnProperty(t)||(this._structures[e][t]=n[t]);yield this.reopenWithUpgrade(e),this.close(e)})},getExistingVersion(e){return gl(this,void 0,void 0,function*(){const n=this._connections[e];return n?n.version:new Promise((n,t)=>{if(!pl)return void t(new Error(Uc("IndexedDB is not available")));const r=pl.open(e);r.onsuccess=()=>{const e=r.result,t=e.version;e.close(),n(t)},r.onupgradeneeded=()=>{const e=r.result,t=e.version;e.close(),n(t)},r.onerror=()=>t(r.error)})})},reopenWithUpgrade(e){return gl(this,void 0,void 0,function*(){if(!this._structures[e])throw new Error(Uc("Impossible to find a structure for the database %s",e));const n=yield this.getExistingVersion(e),t=n+1;return sl(Uc("Going from version %s to version %s for database %s",n,t,e)),this._connections[e]&&this.close(e),yield this.open(e,t)})},open(e,n){return gl(this,void 0,void 0,function*(){if(!pl)throw new Error(Uc("IndexedDB is not available"));if(!this._structures[e])throw new Error(Uc("Impossible to find a structure for the database %s",e));return this._connections[e]||(yield new Promise((t,r)=>{const i=n?pl.open(e,n):pl.open(e);i.onupgradeneeded=()=>{const n=i.result;ll(this._structures[e]||{},(e,t)=>{n.objectStoreNames.contains(t)||this.updateStructure(t,e,n)})},i.onsuccess=()=>{this._connections[e]=i.result,t(i.result)},i.onerror=()=>r(i.error),i.onblocked=n=>{r(Uc("open: Upgrade blocked for database %s. Please close other connections to proceed.",e))}})),new Tl(e)})},add(e,n,t){return gl(this,void 0,void 0,function*(){var r;if(!(null===(r=null==t?void 0:t.keys)||void 0===r?void 0:r.PRIMARY)||!(null==t?void 0:t.fields))throw new Error(Uc("The database structure for %s is not valid (missing keys, fields, or primary key)",n));if(this._structures[e]||(this._structures[e]={}),this._structures[e][n]=t,this._connections[e])throw new Error(Uc("Database %s is already open. Close it before adding a new store.",e));yield this.open(e);let i=this._connections[e];if(!i.objectStoreNames.contains(n)){if(yield this.reopenWithUpgrade(e),!this._connections[e])throw new Error(Uc("The database %s is not open after upgrade",e));i=this._connections[e]}return this.close(e),!0})},remove(e,n){return gl(this,void 0,void 0,function*(){const t=this._structures[e];if(!(null==t?void 0:t[n]))return;const r=t[n];delete t[n];try{const t=this._connections[e];if(!t)return;const r=t.version+1;this.close(e),yield new Promise((t,i)=>{if(!pl)return void i(new Error(Uc("IndexedDB is not available")));const a=pl.open(e,r);a.onupgradeneeded=()=>{const e=a.result;e.objectStoreNames.contains(n)&&(e.deleteObjectStore(n),e.close())},a.onsuccess=()=>{a.result.close(),t()},a.onerror=()=>i(a.error),a.onblocked=()=>i(new Error(Uc("Remove blocked for database %s",e)))})}catch(e){throw t[n]=r,e}})}};function Sl(e,n,t){let r=(new Date).getTime(),i={key:e,url:ul(e,0,e.length-33),loader:n,aborter:t,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(i),bbn.env.loadersHistory.unshift(i);let a=bbn.env.loadersHistory.length;for(;a&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)a--,bbn.env.loading||bbn.env.loadersHistory.splice(a,1);return r}function Al(e,...n){if("object"==typeof e){const t=[];return 1===n.length&&"string"==typeof n[0]?t.push(...n[0].split(".")):t.push(...n),t.reduce((e,n)=>{if(e)return e[e instanceof Array?parseInt(n):n]},e)}}function kl(e){if(!il(e)){if(!e.toString)throw sl(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Cl(...e){if(!e.length)return!1;for(let n of e)if("[object Date]"!=={}.toString.apply(n))return!1;return!0}function Pl(e,n,t,r="asc"){let i=Al(e,t),a=Al(n,t),o=(typeof i).toLowerCase(),s=(typeof a).toLowerCase();if("asc"!==r&&il(r)&&"desc"===r.toLowerCase()&&(r="desc"),o!==s)i=o,a=s;else switch(o){case"string":i=kl(i).toLowerCase(),a=kl(a).toLowerCase();break;case"boolean":i=i?1:0,a=a?1:0;break;case"object":Cl(i)&&(i=i.getTime(),a=Cl(a)?a.getTime():0)}return i<a?"desc"===r?1:-1:i>a?"desc"===r?-1:1:0}function Nl(e){return e&&"object"==typeof e?Object.keys(e).length:0}function zl(e){return!e||(ml(e)?!e.length:"object"==typeof e&&!Nl(e))}function Hl(...e){if(!e.length)return!1;for(let n of e)if("[object Null]"!=={}.toString.apply(n))return!1;return!0}function Il(e){let n=0;for(let t=0;t<e.length;t++){n=(n<<5)-n+e.charCodeAt(t),n|=0}return Math.abs(n).toString(16)}function Fl(e){let n=0;for(let t=0;t<e.length;t++){n=e.charCodeAt(t)+(n<<6)+(n<<16)-n,n|=0}return Math.abs(n).toString(16)}function Ol(e){return Il(e).padStart(8,"0")+Fl(e).padStart(8,"0")}function Ll(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof HTMLElement))return!1;return!0}function Gl(e){let n="",t=e;if(e.id)return"#"+e.id;for(;t&&t!==document.body;){let e=t,r=e.localName,i=0;if(!r)break;if(e===document.body)break;e.id&&(n="#"+e.id+">"+n,i=1);let a=t.parentNode,o=Array.from(a.children).filter(n=>n.tagName===e.tagName);if(!i&&o.length>1){let n=Array.from(a.children).indexOf(e)+1;n>1&&(r+=":nth-child("+n+")")}n=r+(n?">"+n:""),t=a}return n}function Bl(...e){var n;if(!e.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(let t of e){if(!bbn.cp.isComponent(t)||Ll(t)||!(null===(n=t.$el)||void 0===n?void 0:n.bbnCid))return!1}return!0}function xl(e,n=null,t=0,r=null,i=null){if(t||r||(r=new WeakSet),void 0===e)e="__BBN_UNDEFINED__";else if(null===e)e="__BBN_NULL__";else if(null===e)e="__BBN_NULL__";else if("function"==typeof e)e="__BBN_FUNCTION__"+e.toString();else if("symbol"==typeof e)e="__BBN_SYMBOL__"+e.toString();else if("string"==typeof e)e="__BBN_STRING__"+e;else if("number"==typeof e)e="__BBN_NUMBER__"+e.toString();else if("boolean"==typeof e)e="__BBN_BOOLEAN__"+e.toString();else if([void 0,Object,Array,null].includes(null==e?void 0:e.constructor)){if(bbn.fn.isArray(e))if(r.has(e)||n&&n<t)e="__BBN_ARRAY__"+e.constructor.toString();else{r.add(e);let a="";for(let o=0;o<e.length;o++)a+="__BBN_ITEM"+o.toString()+"__"+i(e[o],n,t+1,r,i);e="__BBN_ARRAY__"+a}else if("object"==typeof e)if(r.has(e)||n&&n<t)e="__BBN_OBJECT__"+(e.constructor?e.constructor.toString():"");else{r.add(e);let a="";for(let o in e){let s=o;"string"!=typeof s&&(s=i(s,i,1,1)),a+="__BBN_PROP_"+s+"__"+i(e[o],n,t+1,r,i)}e="__BBN_OBJECT__"+a}}else e=Ll(e)?Bl(e)?"__BBN_CP__"+e.$cid:e.bbnId?"__BBN_DOM__"+e.tagName+"/"+e.bbnId+e.bbnHash:"__BBN_DOM__"+Gl(e):"__BBN_UNKNOWN_OBJECT__"+e.constructor.toString();return e}function Rl(...e){let n="",t=null;2===e.length&&"number"==typeof e[1]&&(t=e[1],e=[e[0]]);for(let r in e)n+=xl(e[r],t,0,null,xl);return Ol(n)}function jl(e){var n="0123456789abcdef";function t(e){var t,r="";for(t=0;t<=3;t++)r+=n.charAt(e>>8*t+4&15)+n.charAt(e>>8*t&15);return r}function r(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function i(e,n,t,i,a,o){return r(function(e,n){return e<<n|e>>>32-n}(r(r(n,e),r(i,o)),a),t)}function a(e,n,t,r,a,o,s){return i(n&t|~n&r,e,n,a,o,s)}function o(e,n,t,r,a,o,s){return i(n&r|t&~r,e,n,a,o,s)}function s(e,n,t,r,a,o,s){return i(n^t^r,e,n,a,o,s)}function u(e,n,t,r,a,o,s){return i(t^(n|~r),e,n,a,o,s)}var c,l,d,m,f,h=function(e){var n,t=1+(e.length+8>>6),r=new Array(16*t);for(n=0;n<16*t;n++)r[n]=0;for(n=0;n<e.length;n++)r[n>>2]|=e.charCodeAt(n)<<n%4*8;return r[n>>2]|=128<<n%4*8,r[16*t-2]=8*e.length,r}(e),y=1732584193,M=-271733879,g=-1732584194,p=271733878;for(c=0;c<h.length;c+=16)l=y,d=M,m=g,f=p,y=a(y,M,g,p,h[c+0],7,-680876936),p=a(p,y,M,g,h[c+1],12,-389564586),g=a(g,p,y,M,h[c+2],17,606105819),M=a(M,g,p,y,h[c+3],22,-1044525330),y=a(y,M,g,p,h[c+4],7,-176418897),p=a(p,y,M,g,h[c+5],12,1200080426),g=a(g,p,y,M,h[c+6],17,-1473231341),M=a(M,g,p,y,h[c+7],22,-45705983),y=a(y,M,g,p,h[c+8],7,1770035416),p=a(p,y,M,g,h[c+9],12,-1958414417),g=a(g,p,y,M,h[c+10],17,-42063),M=a(M,g,p,y,h[c+11],22,-1990404162),y=a(y,M,g,p,h[c+12],7,1804603682),p=a(p,y,M,g,h[c+13],12,-40341101),g=a(g,p,y,M,h[c+14],17,-1502002290),y=o(y,M=a(M,g,p,y,h[c+15],22,1236535329),g,p,h[c+1],5,-165796510),p=o(p,y,M,g,h[c+6],9,-1069501632),g=o(g,p,y,M,h[c+11],14,643717713),M=o(M,g,p,y,h[c+0],20,-373897302),y=o(y,M,g,p,h[c+5],5,-701558691),p=o(p,y,M,g,h[c+10],9,38016083),g=o(g,p,y,M,h[c+15],14,-660478335),M=o(M,g,p,y,h[c+4],20,-405537848),y=o(y,M,g,p,h[c+9],5,568446438),p=o(p,y,M,g,h[c+14],9,-1019803690),g=o(g,p,y,M,h[c+3],14,-187363961),M=o(M,g,p,y,h[c+8],20,1163531501),y=o(y,M,g,p,h[c+13],5,-1444681467),p=o(p,y,M,g,h[c+2],9,-51403784),g=o(g,p,y,M,h[c+7],14,1735328473),y=s(y,M=o(M,g,p,y,h[c+12],20,-1926607734),g,p,h[c+5],4,-378558),p=s(p,y,M,g,h[c+8],11,-2022574463),g=s(g,p,y,M,h[c+11],16,1839030562),M=s(M,g,p,y,h[c+14],23,-35309556),y=s(y,M,g,p,h[c+1],4,-1530992060),p=s(p,y,M,g,h[c+4],11,1272893353),g=s(g,p,y,M,h[c+7],16,-155497632),M=s(M,g,p,y,h[c+10],23,-1094730640),y=s(y,M,g,p,h[c+13],4,681279174),p=s(p,y,M,g,h[c+0],11,-358537222),g=s(g,p,y,M,h[c+3],16,-722521979),M=s(M,g,p,y,h[c+6],23,76029189),y=s(y,M,g,p,h[c+9],4,-640364487),p=s(p,y,M,g,h[c+12],11,-421815835),g=s(g,p,y,M,h[c+15],16,530742520),y=u(y,M=s(M,g,p,y,h[c+2],23,-995338651),g,p,h[c+0],6,-198630844),p=u(p,y,M,g,h[c+7],10,1126891415),g=u(g,p,y,M,h[c+14],15,-1416354905),M=u(M,g,p,y,h[c+5],21,-57434055),y=u(y,M,g,p,h[c+12],6,1700485571),p=u(p,y,M,g,h[c+3],10,-1894986606),g=u(g,p,y,M,h[c+10],15,-1051523),M=u(M,g,p,y,h[c+1],21,-2054922799),y=u(y,M,g,p,h[c+8],6,1873313359),p=u(p,y,M,g,h[c+15],10,-30611744),g=u(g,p,y,M,h[c+6],15,-1560198380),M=u(M,g,p,y,h[c+13],21,1309151649),y=u(y,M,g,p,h[c+4],6,-145523070),p=u(p,y,M,g,h[c+11],10,-1120210379),g=u(g,p,y,M,h[c+2],15,718787259),M=u(M,g,p,y,h[c+9],21,-343485551),y=r(y,l),M=r(M,d),g=r(g,m),p=r(p,f);return t(y)+t(M)+t(g)+t(p)}function Zl(e){const n="function"==typeof e?e.toString():e;if("string"!=typeof n)throw Error("Unexpected type "+typeof e+" while parsing function");let t,r="",i=!1,a=!1,o=!1,s="",u=0,c=0,l=[],d={},m="",f=['"',"'","`"],h=!1,y=!1,M=!1,g=!1,p=!1,v=!1,w="";for(let e=0;e<n.length;e++)if(M||"/"!==n[e]||"*"!==n[e+1])if("/"===n[e]&&"*"===n[e-1])M=!1;else if(g||"/"!==n[e]||"/"!==n[e+1])if("\n"===n[e])g=!1;else{if(M||g)continue;if(n[e]===m&&!h&&m)m="",r+=n[e];else if(m)h="\\"===n[e]&&!h,r+=n[e];else if(f.includes(n[e])&&!h)m=n[e],r+=n[e];else if("("===n[e]){if(u++,""!==r.trim()){if("function"===r.trim())o=!0;else if("async"!==r.trim()){s=r.trim();let e=s.match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);e&&(s=e[1])}r=""}}else if(")"===n[e])u===c+1&&(y?(d.default=r.trim(),y=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(l.push(d),d={}),r=""),c++;else if(p&&"}"!==n[e])r+=n[e];else{if(u&&u===c&&":"===n[e]){const r=n.substring(e+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!r)throw Error("Unexpected ':' while parsing function");w=r[1],t=n.substring(e+r[0].length).trim();break}if(!(r||"="!==n[e]||">"!==n[e+1]||u!==c||c||i)){d.name=n.slice(0,e).trim(),l.push(d),d={},i=!0,t=bbn.fn.substr(n,e+2).trim();break}if(u===c&&"="===n[e]&&">"===n[e+1]){""!==r.trim()&&(d.name=r.trim(),l.push(d),d={},r=""),i=!0,e++;continue}if("="===n[e]&&u>c&&!y)d.name=r.trim(),r="",y=!0;else if(","===n[e])if(p)r+=n[e];else{if(!(u>c))throw Error("Unexpected ',' while parsing function");y?(d.default=r.trim(),y=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(l.push(d),d={}),r=""}else if("{"===n[e]||"}"===n[e]){if(u===c){t=n.substring(e).trim();break}u>c?"{"!==n[e]||p?"}"===n[e]&&p&&(p=!1,r+=n[e]):(p=!0,r=n[e]):r=""}else{if(i){t=n.substring(n.indexOf("=>")+2).trim();break}" "===n[e]?""!==r.trim()&&("async"===r.trim()&&(a=!0),u>c?r+=n[e]:r=""):r+=n[e]}}}else g=!0,r="";else M=!0,r="";if(!t){if(!i)throw Error("Unexpected end of function while parsing function");t=r}t.substr(0,25).indexOf("[native code]")>-1&&(v=!0);const b=l.map(e=>e.name+(e.default?" = "+e.default:"")).join(", ");return{body:t,args:l,argString:b,isArrow:i,hasFunction:o,name:s,isAsync:a,isBinary:v,hash:jl(t+(s?"-"+s:"")+(b?"-"+b:"")),returnType:w}}function Ul(e,n,t){if(t||(t=[]),e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(![void 0,Object,Array,null].includes(null==e?void 0:e.constructor)||![void 0,Object,Array,null].includes(null==n?void 0:n.constructor))return!1;let r=Object.keys(e).sort(),i=Object.keys(n).sort();if(Rl(r)!==Rl(i))return!1;let a=!0;if(e&&"object"==typeof e){if(t.includes(e))return a;t.push(e)}return yl(r,t=>{if(!Ul(e[t],n[t]))return a=!1,!1}),a}if(e&&n&&"function"==typeof e&&"function"==typeof n){let t=Zl(e),r=Zl(n),i=t.hash===r.hash;return i&&t.isBinary&&(i=!1),i}return!1}function Yl(e,n,t){switch(t){case"===":case"=":case"equal":case"eq":case"is":return e===n;case"!==":case"notequal":case"neq":case"isnot":return e!==n;case"!=":case"different":return e!=n;case"contains":case"contain":case"icontains":case"icontain":return!zl(e)&&!zl(n)&&-1!==kl(e).toLowerCase().indexOf(kl(n).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!Hl(e)&&!Hl(n))||-1===kl(e.toLowerCase()).indexOf(kl(n.toLowerCase()));case"starts":case"start":return!Hl(e)&&!Hl(n)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof n&&(n=n.toString()||""),0===e.indexOf(n));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!Hl(e)&&!Hl(n)&&0===kl(e).toLowerCase().indexOf(kl(n).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!Hl(e)&&!Hl(n)&&e.lastIndexOf(n)===e.length-n.length;case"like":return!Hl(e)&&!Hl(n)&&kl(e).toLowerCase()===kl(n).toLowerCase();case"gt":case">":return e>n;case"gte":case">=":return e>=n;case"lt":case"<":return e<n;case"lte":case"<=":return e<=n;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(dl(e,n))return Ul(e,n);default:return e==n}}function ql(e,n){if(!n.conditions||!n.logic||!ml(n.conditions))throw new Error("Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects");let t="AND"===n.logic;return yl(n.conditions,r=>{let i;if(r.conditions&&ml(r.conditions))i=ql(e,r);else if(i=Yl(Al(e,r.field),r.value,r.operator),i){let n=r.field.split("."),t=n.pop();n.length&&yl(n,n=>e=e[n]),void 0===Al(e,t)&&void 0!==r.value&&(i=!1)}if(i){if("OR"===n.logic)return t=!0,!1}else if("AND"===n.logic)return t=!1,!1}),t}function Wl(e,n="="){if(!dl(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!ml(e.conditions)){let t=[];ll(e,(e,r)=>{dl(e)&&"object"==typeof e.conditions?t.push(Wl(e)):t.push({field:r,operator:n,value:e})}),e={conditions:t}}return e.logic||(e.logic="AND"),e}function Kl(e,n,t=null,r="=",i=0,a=!1){if(!hl(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;let o,s,u=!1;if(n)if("string"==typeof n)o={conditions:[{field:n,value:t,operator:r||"="}]};else if(a=!0===r,i="number"==typeof t?t:a?e.length-1:0,"function"==typeof n)u=!0,s=n;else if(dl(n))if("field"in n&&"value"in n)o={conditions:[n],logic:"AND"};else if("conditions"in n)o=n;else{const e=[];for(let t in n)e.push({field:t,value:n[t],operator:"="});o={conditions:e,logic:"AND"}}else ml(n)&&(o={conditions:n,logic:"AND"});else u=!0,s=e=>ql({value:e},Wl({logic:"AND",conditions:[{field:"value",operator:r||"=",value:t}]}));if(u||o){if("number"!=typeof i&&(i=a?e.length-1:0),!s){const e=Wl(o);s=n=>ql(n,e)}if(a)for(let n=i;n>=0;n--){if(bbn.env._enumerated.push(!0),s(e[n]))return bbn.env._enumerated.pop(),e[n],n;bbn.env._enumerated.pop()}else for(let n=i;n<e.length;n++){if(bbn.env._enumerated.push(!0),s(e[n]))return bbn.env._enumerated.pop(),e[n],n;bbn.env._enumerated.pop()}}return-1}function Vl(e,n,t=null,r="=",i=0,a=!1,o=!1){let s=Kl(e,n,t,r,i,a);return s>-1?e[s]:n&&["object","function"].includes(typeof n)&&5 in arguments?a:o}function $l(e,n=null,t=!1){let r=Kl(bbn.env.loaders,{key:e});if(r>-1){let i=bbn.env.loaders.splice(r,1)[0],a=Vl(bbn.env.loadersHistory,{key:e,start:i.start});return a&&(a.loading=!1,a.duration=(new Date).getTime()-i.start,"string"==typeof n?(a.errorMessage=n,a.error=!t,a.abort=t):dl(n)&&(a.success=!0)),!0}return!1}function Jl(e){let n=Kl(bbn.env.loaders,{key:e});return n>-1?bbn.env.loaders[n]:null}function Ql(e,n,t=null,r="=",i=0){if(!ml(e))try{e=Array.from(e)}catch(n){throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array")}let a={};const o=[],s="function"==typeof n;if(!n||!e.length)return e;if("object"==typeof n)a=n;else if("string"==typeof n)a[n]=t;else if(!s)throw new Error("Search function error: The prop argument should be a string or an object");let u;u="function"==typeof n?n:(e,n)=>ql(e,a);for(let n=0;n<e.length&&(bbn.env._enumerated.push(!0),!(u(e[n],n)&&(bbn.env._enumerated.pop(),o.push(e[n]),bbn.env._enumerated.push(!0),i&&o.length>=i)));n++)bbn.env._enumerated.pop();return o}function Xl(e){if(Nl(e)){bbn.var.colors||(bbn.var.colors={});let n=document.createElement("style");document.head.appendChild(n);let t=n.sheet,r=0;ll(e,(e,n)=>{bbn.var.colors[n]=e,t.insertRule(".bbn-"+n+", .bbn-color-text-"+n+" {color: "+e+" !important;}",r),t.insertRule("svg.bbn-"+n+", .bbn-"+n+" svg, svg.bbn-color-text-"+n+", .bbn-color-text-"+n+" svg {fill: "+e+";}",r),t.insertRule(".bbn-bg-"+n+", .bbn-color-bg-"+n+", .bbn-color-background-"+n+" {background-color: "+e+" !important;}",r),t.insertRule(".bbn-border-"+n+", .bbn-color-border-"+n+" {border-color: "+e+" !important;}",r),t.insertRule(".bbn-color-"+n+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",r)})}}function ed(e,n=null,t=""){if(e&&"FORM"===e.tagName){let r=(n,t)=>{let r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",n),r.setAttribute("value",t),e.appendChild(r)};n=JSON.parse(JSON.stringify(n||{})),t=t||"",n&&ll(n,(n,i)=>{let a=t?`${t}[${i}]`:i;n instanceof Date?r(a,n.toISOString()):n instanceof Array?n.forEach((n,t)=>{const i=`${a}[${t}]`;"object"==typeof n?ed(e,n,i):r(i,n.toString())}):"object"!=typeof n||n instanceof File?r(a,n.toString()):ed(e,n,a)})}}function nd(e,n){let t=0;yl(n,n=>{n.style[e]="auto"}),yl(n,(n,r)=>{let i=n.getBoundingClientRect(),a=i[e]%1?i[e]-i[e]%1+1:i[e];a>t&&(t=a)}),yl(n,(n,r)=>{t&&(n.style[e]=t+"px")})}function td(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function rd(e,n,t,r=""){return t.toString().replace(dl(e)?e:new RegExp(td(e),"g"+r),n)}function id(e,n,t){let r={};return n&&ll(n,(e,n)=>{-1===n.indexOf("_bbn")&&(r[n]=e)}),e+":"+jl((t||"json")+JSON.stringify(r))}function ad(e,n=null,t=null,r=null,i=null,a=null){if(null===n&&e&&"object"==typeof e&&e.url&&(e.abort&&(a=e.abort),e.failure&&(i=e.failure),e.success&&(r=e.success),e.data&&(t=e.data),e.datatype&&(n=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=rd("//","/",e)),n||(n="json");let o=id(e,t,n),s=Jl(o);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&Ml(t||{},{_bbn_token:bbn.env.token});const u=new AbortController;let c={responseType:n,signal:u.signal};"text"===n?c.headers={accept:"text/javascript","Content-Type":"text/javascript"}:"json"===n?c.headers={accept:"application/json","Content-Type":"application/json"}:"html"===n&&(c.headers={accept:"text/html","Content-Type":"text/html"});let l="get";dl(t)&&Nl(t)>0&&(c.data=t,l="post");let d=rl.run(l,e,c).then(n=>{if($l(o,n),bbn.fn.defaultEndLoadingFunction(e,m,t,n),200===n.status)ol(r)&&r(n.data,n.headers);else{let e=1;ol(i)&&(e=i(d,n.message,n)),e&&bbn.fn.defaultAjaxErrorFunction(d,n.message,n)}return n}).catch(n=>{let r=rl.isCancel(n);if($l(o,n.message||n.response.data,r),bbn.fn.defaultEndLoadingFunction(e,m,t,n),r){let t=1;ol(a)&&(t=a(n.message,e)),t&&bbn.fn.defaultAjaxAbortFunction(n.message,e)}else{let e=1;ol(i)&&(e=i(d,n.message,n)),e&&bbn.fn.defaultAjaxErrorFunction(d,n.message,n.response)}return n.response}),m=Sl(o,d,u);return bbn.fn.defaultStartLoadingFunction(e,m,t,o),d}}const od=new TextDecoder;function sd(e){return od.decode(e)}function ud(e,n){if(e&&il(e)){let t=e.split("/").pop();if(!n)return t;let r=n.length;if(t&&ul(t,-r)===n)return ul(t,0,t.length-r)}return""}const cd=[["y","year",31536e6],["m","month",2592e6],["w","week",6048e5],["d","day",864e5],["h","hour",36e5],["i","minute",6e4],["s","second",1e3],["x","millisecond",1]],ld={years:"y",year:"y",YEARS:"y",YEAR:"y",Years:"y",Year:"y",YYYY:"y",YY:"y",yyyy:"y",yy:"y",months:"m",month:"m",Months:"m",Month:"m",MONTHS:"m",MONTH:"m",MMMM:"m",MMM:"m",MM:"m",weekday:"e",WEEKDAY:"e",ee:"e",EE:"e",ddd:"e",days:"d",day:"d",Days:"d",Day:"d",DAYS:"d",DAY:"d",DD:"d",dd:"d",hours:"h",hour:"h",Hours:"h",Hour:"h",HOURS:"h",HOUR:"h",HH:"h",hr:"h",hh:"h",milliseconds:"x",millisecond:"x",Milliseconds:"x",Millisecond:"x",MILLISECONDS:"x",MILLISECOND:"x",minutes:"i",minute:"i",Minutes:"i",Minute:"i",MINUTES:"i",MINUTE:"i",II:"i",ii:"i",mn:"i",mm:"i",min:"i",ms:"x",SSS:"x",sss:"x",SS:"s",ss:"s",seconds:"s",second:"s",Seconds:"s",Second:"s",SECONDS:"s",SECOND:"s",sec:"s",WW:"w",Y:"y",y:"y",M:"m",m:"m",e:"e",E:"e",D:"d",d:"d",H:"h",h:"h",n:"i",i:"i",s:"s",S:"s",W:"w",w:"w",ZZ:"z",Z:"z"},dd={y:"YYYY",m:"MM",d:"DD",e:"EE",w:"WW",h:"HH",i:"II",s:"SS",x:"SSS",z:"Z"};function md(...e){if(!e.length)return!1;for(let n of e)if(null!==n&&("object"==typeof n||"function"==typeof n))return!1;return!0}var fd,hd,yd,Md,gd=function(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t},pd=function(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)};const vd=Rc.ZonedDateTime.from("1970-01-01T00:00Z[UTC]");class wd{static fromUnit(e,n){const t=ld[n]||"ms",r=["y"===t?e:0,"m"===t?e:0,"w"===t?e:0,"d"===t?e:0,"h"===t?e:0,"i"===t?e:0,"s"===t?e:0,["y","m","w","d","h","i","s"].includes(t)?0:e],i=new Rc.Duration(...r);return new wd(i)}constructor(e,n,t,r,i,a,o,s,u){fd.add(this),hd.set(this,void 0),yd.set(this,void 0),e instanceof Rc.Duration?gd(this,hd,e,"f"):gd(this,hd,"object"==typeof e?new Rc.Duration(e.years||0,e.months||0,e.weeks||0,e.days||0,e.hours||0,e.minutes||0,e.seconds||0,e.milliseconds||0,0,0):new Rc.Duration(e||0,n||0,t||0,r||0,i||0,a||0,o||0,s||0,0,0),"f");const c=ld[u||""]||u;gd(this,yd,c||"ms","f"),Vl(cd,e=>e[0]===c),Object.defineProperty(this,"isValid",{value:!1,writable:!1,configurable:!0})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return pd(this,hd,"f")}years(e=!1){return pd(this,fd,"m",Md).call(this,"year",e)}months(e=!1){return pd(this,fd,"m",Md).call(this,"month",e)}weeks(e=!1){return pd(this,fd,"m",Md).call(this,"week",e)}days(e=!1){return pd(this,fd,"m",Md).call(this,"day",e)}hours(e=!1){return pd(this,fd,"m",Md).call(this,"hour",e)}minutes(e=!1){return pd(this,fd,"m",Md).call(this,"minute",e)}seconds(e=!1){return pd(this,fd,"m",Md).call(this,"second",e)}toJSON(){return this.value.toJSON()}asYears(){return pd(this,hd,"f").total({unit:"year",relativeTo:vd})}asMonths(){return pd(this,hd,"f").total({unit:"month",relativeTo:vd})}asWeeks(){return pd(this,hd,"f").total({unit:"week",relativeTo:vd})}asDays(){return pd(this,hd,"f").total({unit:"day",relativeTo:vd})}asHours(){return pd(this,hd,"f").total({unit:"hour",relativeTo:vd})}asMinutes(){return pd(this,hd,"f").total({unit:"minute",relativeTo:vd})}asSeconds(){return pd(this,hd,"f").total({unit:"second",relativeTo:vd})}add(e,n){let t=pd(this,yd,"f");if(n)if(ld[n]){const e=Vl(cd,e=>e[0]===ld[n]);e&&(t=e[1])}else t=n;const r=t+"s";if(!["years","months","weeks","days","hours","minutes","seconds","milliseconds"].includes(r))throw new Error("Invalid unit for duration: "+(null!=n?n:t));const i={[r]:e},a=pd(this,hd,"f").add(i);return new wd(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,pd(this,yd,"f"))}subtract(e,n){return this.add(-e,n)}toMilliseconds(){const e=pd(this,hd,"f");return e.years||e.months||e.weeks||e.days?e.total({unit:"millisecond",relativeTo:vd}):e.total({unit:"millisecond"})}}hd=new WeakMap,yd=new WeakMap,fd=new WeakSet,Md=function(e,n){const t=pd(this,hd,"f");if(n)switch(e){case"year":return t.years;case"month":return t.months;case"week":return t.weeks;case"day":return t.days;case"hour":return t.hours;case"minute":return t.minutes;case"second":return t.seconds}const r=t.total({unit:e,relativeTo:vd});return Math.floor(r)};var bd,_d=function(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t},Ed=function(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)};class Td{constructor(e){this.__bbnNoData=!0,this.__isBbnDt=!0,bd.set(this,void 0),this.getWeekdayIndex=(e,n)=>{const t=n||bbn.env.lang,r=e.trim().toLowerCase(),i=[t,...navigator.languages];for(let e=0;e<i.length;e++){if(!i[e])continue;const n=new Intl.DateTimeFormat(i[e],{weekday:"long"});for(let e=0;e<7;e++){const t=new Date(2023,0,1+e);if(n.format(t).toLowerCase()===r)return e}}throw new Error(`Unknown weekday name '${e}' for locale '${t}'`)},Object.defineProperty(this,"isValid",{value:!0,writable:!1,configurable:!0}),_d(this,bd,e,"f");const n=new Date;Object.defineProperty(this,"defaultValue",{value:{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds(),millisecond:n.getMilliseconds()},writable:!1,configurable:!1})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return Ed(this,bd,"f")}get hasFullDate(){return!!this.value&&"year"in this.value&&"month"in this.value&&"day"in this.value}toEpochMs(){if("zoned"===this.kind){return this.value.toInstant().epochMilliseconds}const e=Td.systemTimeZoneId;let n;switch(this.kind){case"dateTime":return this.value.toZonedDateTime(e).toInstant().epochMilliseconds;case"date":return this.value.toZonedDateTime({timeZone:e,plainTime:{hour:this.defaultValue.hour,minute:this.defaultValue.minute,second:this.defaultValue.second,millisecond:this.defaultValue.millisecond}}).toInstant().epochMilliseconds;case"time":{const t=this.value;n=`${Rc.Now.plainDateISO().toString()}T${t.toString()}[${e}]`}case"yearMonth":n=`${this.value.toPlainDate({day:1}).toString()}T00:00[${e}]`;case"monthDay":{const t=this.value,r=Rc.Now.plainDateISO();n=`${t.toPlainDate({year:r.year}).toString()}T00:00[${e}]`}}if(n){return Rc.ZonedDateTime.from(n).toInstant().epochMilliseconds}throw new Error(`Unsupported kind '${this.kind}' in toEpochMs`)}static nowForKind(e){switch(e){case"zoned":return Rc.Now.zonedDateTimeISO();case"dateTime":return Rc.Now.plainDateTimeISO();case"date":return Rc.Now.plainDateISO();case"time":return Rc.Now.plainTimeISO();case"yearMonth":{const e=Rc.Now.plainDateISO();return new Rc.PlainYearMonth(e.year,e.month)}case"monthDay":{const e=Rc.Now.plainDateISO();return new Rc.PlainMonthDay(e.month,e.day,void 0,e.year)}default:throw new Error(`Unsupported kind '${e}' in nowForKind`)}}withValue(e){return new(0,this.constructor)(e)}static compare(e,n,t){if(!e||!n)throw new TypeError("Both arguments must be Temporal values");const r=Rc.Now.timeZoneId();let i=t&&ld[t]?Vl(cd,e=>e[0]===ld[t])[1]:void 0;i=i?i+"s":void 0;const a=e=>e instanceof Td,o=e=>a(e)?e.value:e,s=e=>{if(a(e))switch(e.kind){case"zoned":return e.value;case"dateTime":{const n=`${e.value.toString()}[${r}]`;return Rc.ZonedDateTime.from(n)}case"date":{const n=`${e.value.toString()}T00:00[${r}]`;return Rc.ZonedDateTime.from(n)}case"yearMonth":{const n=`${e.value.toPlainDate({day:1}).toString()}T00:00[${r}]`;return Rc.ZonedDateTime.from(n)}default:throw new TypeError(`Cannot convert kind '${e.kind}' to ZonedDateTime for comparison`)}if(e instanceof Rc.ZonedDateTime)return e;throw new TypeError("toZdt expects a bbnDt wrapper or ZonedDateTime")},u=o(e),c=o(n);if(u.constructor===c.constructor){const e=u.constructor,n=e.compare(u,c);if(void 0===i){if("function"!=typeof e.compare)throw new TypeError("This Temporal type has no static compare");return n}if("function"!=typeof u.until||"function"!=typeof u.since)throw new TypeError("This Temporal type does not support until/since");return u[1===n?"since":"until"](c,{smallestUnit:i,largestUnit:i,roundingMode:"floor"}).sign}const l=new Set(["zoned","dateTime","date","yearMonth"]);if(a(e)&&a(n)&&l.has(e.kind)&&l.has(n.kind)){const t=s(e),r=s(n),a=Rc.ZonedDateTime.compare(t,r);if(void 0===i)return a;if("function"!=typeof t.until||"function"!=typeof t.since)throw new TypeError("ZonedDateTime does not support until/since");return t[1===a?"since":"until"](r,{smallestUnit:i,largestUnit:i,roundingMode:"floor"}).sign}throw new TypeError("Cannot compare different Temporal or bbnDt types")}static parse(e,n,t="auto",r){return bbn.dt(e,n,t,r)}parse(e,n,t){return Td.parse(e,n,t||this.kind)}compare(e,n){return e instanceof Td||(e=bbn.dt(e,null,this.kind)),Td.compare(this,e,n)}add(e,n){if(this.value){if(this.value instanceof Rc.PlainMonthDay||"function"!=typeof this.value.add)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof wd){const n=this.value.add(e.value);return new this.constructor(n)}if("object"==typeof e){const n=new wd(e),t=this.value.add(n.value);return new this.constructor(t)}{if(!n)throw new Error("Unit must be specified when adding a number");const t=wd.fromUnit(e,n),r=this.value.add(t.value);return new this.constructor(r)}}}subtract(e,n){if(this.value){if(this.value instanceof Rc.PlainMonthDay||"function"!=typeof this.value.subtract)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof wd){const n=this.value.subtract(e.value);return new this.constructor(n)}if("object"==typeof e){const n=new wd(e),t=this.value.subtract(n.value);return new this.constructor(t)}{if(!n)throw new Error("Unit must be specified when adding a number");const t=wd.fromUnit(e,n),r=this.value.subtract(t.value);return new this.constructor(r)}}}duration(e,n){return wd.fromUnit(e,n)}isBefore(e,n){return this.compare(e,n)<0}isBeforeOrSame(e,n){return this.compare(e,n)<=0}isAfter(e,n){return this.compare(e,n)>0}isAfterOrSame(e,n){return this.compare(e,n)>=0}isSame(e,n){return 0===this.compare(e,n)}equals(e){return this.isSame(e)}toJSON(){if(Ed(this,bd,"f")&&"toZonedDateTime"in Ed(this,bd,"f")){const e=Ed(this,bd,"f").toZonedDateTime(Td.systemTimeZoneId).withTimeZone("UTC");return bbn.dt(e).format("YYYY-MM-DDTHH:II:SS.SSS")+"Z"}if("zoned"===this.kind)return this.timezone("America/New_York").format("YYYY-MM-DDTHH:II:SS.SSS")+"Z"}timezone(e){switch(this.kind){case"zoned":if(void 0===e){return this.value.timeZoneId}{const n=this.value.withTimeZone(e);return bbn.dt(n)}case"dateTime":if(void 0===e){const e=`${this.value.toString()}[${Td.systemTimeZoneId}]`;return Rc.ZonedDateTime.from(e).timeZoneId}{const n=`${this.value.toString()}[${e}]`,t=Rc.ZonedDateTime.from(n);return bbn.dt(t)}default:throw new Error(`timezone() is not supported for kind '${this.kind}'`)}}toString(){return new Date(this.valueOf()).toString()}year(e){if(this.value){if(!("year"in this.value))throw new Error("year() is not supported for this type");if(void 0!==e&&!(e instanceof Event)&&parseInt(e)){const n=this.value.with({year:e});return new this.constructor(n)}return this.value.year}}month(e){if(this.value){if(!("month"in this.value))throw new Error("month() is not supported for this type");if(void 0!==e&&!(e instanceof Event)&&parseInt(e)){const n=this.value.with({month:e});return new this.constructor(n)}return this.value.month}}day(e){if(this.value){if(!("day"in this.value))throw new Error("day() is not supported for this type");if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({day:e});return new this.constructor(n)}return this.value.day}}hour(e){if(this.value){if(!("hour"in this.value)){if(this.hasFullDate)return 0;throw new Error("hour() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({hour:e});return new this.constructor(n)}return this.value.hour}}minute(e){if(this.value){if(!("minute"in this.value)){if(this.hasFullDate)return 0;throw new Error("minute() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({minute:e});return new this.constructor(n)}return this.value.minute}}second(e){if(this.value){if(!("second"in this.value)){if(this.hasFullDate)return 0;throw new Error("second() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({second:e});return new this.constructor(n)}return this.value.second}}millisecond(e){if(this.value){if(!("millisecond"in this.value)){if(this.hasFullDate)return 0;throw new Error("millisecond() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const n=this.value.with({millisecond:e});return new this.constructor(n)}return this.value.millisecond}}weekday(e,n){if(this.value){if(!("dayOfWeek"in this.value))throw new Error("weekday() is not supported for this type");return void 0===e||e instanceof Event?this.value.dayOfWeek%7:this.setWeekday(e,n)}}date(e){if(this.value){if(!this.hasFullDate)throw new Error("date() is not supported for this type");return!(0 in arguments)||void 0===e||e instanceof Event?this.YYYY+"-"+this.MM+"-"+this.DD:this.parse(e,"Y-m-d")}}datetime(e){return!(0 in arguments)||void 0===e||e instanceof Event?this.YYYY+"-"+this.MM+"-"+this.DD+" "+this.HH+":"+this.II+":"+this.SS:"date"===this.kind?this.parse(this.date()+" "+e,"Y-m-d 00:00:00","dateTime"):this.parse(e,"Y-m-d H:i:s")}time(e){return!(0 in arguments)||void 0===e||e instanceof Event?this.HH+":"+this.II+":"+this.SS:"zoned"===this.kind?this.parse(this.date()+" "+e+" GMT"+this.value.timeZoneId,"Y-m-d H:i:s[ GMT]Z","dateTime"):["dateTime","date"].includes(this.kind)?this.parse(this.date()+" "+e,"Y-m-d H:i:s","dateTime"):this.parse(e,"H:i:s")}fdate(e=!1,n=!1){return this.value?bbn.dt.locales.formatters[e?"long":"numeric"].format(new Date(this.toEpochMs())):""}ftime(e=!0){return this.value?this.format("HH:II"+(e?":SS":"")):""}week(){if(!this.value)return;const e=this.year(),n=new Date(Date.UTC(e,this.month()-1,this.day())),t=new Date(Date.UTC(e,0,1)),r=Math.floor((n.getTime()-t.getTime())/864e5),i=t.getUTCDay();let a=(bbn.dt.locales.firstDayOfWeek-i+7)%7;const o=0===a?7:a;if(r<o)return 1;const s=r-o;return 2+Math.floor(s/7)}get YYYY(){if(this.value&&"year"in this.value)return this.year().toString()}get YY(){if(this.value&&"year"in this.value)return ul(this.year().toString(),2,2)}get MMMM(){if(this.value&&"month"in this.value)return bbn.dt.locales.monthsLong[this.month()-1]}get MMM(){if(this.value&&"month"in this.value)return bbn.dt.locales.monthsShort[this.month()-1]}get MM(){if(this.value&&"month"in this.value){const e=parseInt(this.month().toString());return e<10?"0"+e.toString():e.toString()}}get M(){if(this.value&&"month"in this.value)return this.month().toString()}get EE(){if(this.value&&"dayOfWeek"in this.value)return this.value.dayOfWeek.toString()}get DD(){if(this.value&&"day"in this.value){const e=parseInt(this.day().toString());return e<10?"0"+e.toString():e.toString()}}get d(){if(this.value&&"day"in this.value)return this.day().toString()}get dddd(){if(this.value&&"dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"long")}get ddd(){if(this.value&&"dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"short")}get D(){if(this.value&&"day"in this.value)return this.day().toString()}get HH(){if(this.value&&"hour"in this.value){const e=parseInt(this.hour().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.hour.toString().padStart(2,"0")}get H(){return this.value&&"hour"in this.value?this.hour().toString():this.hasFullDate?"0":void 0}get II(){if(this.value&&"minute"in this.value){const e=parseInt(this.minute().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.minute.toString().padStart(2,"0")}get mm(){if(this.value&&"minute"in this.value){const e=parseInt(this.minute().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.minute.toString().padStart(2,"0")}get I(){return this.value&&"minute"in this.value?this.minute().toString():this.hasFullDate?"0":void 0}get SS(){if(this.value&&"second"in this.value){const e=parseInt(this.second().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.second.toString().padStart(2,"0")}get SSS(){if(this.value&&"millisecond"in this.value){const e=parseInt(this.millisecond().toString());return e<10?"00"+e.toString():e<100?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.millisecond.toString().padStart(3,"0")}get S(){return this.value&&"second"in this.value?this.second().toString():this.hasFullDate?"0":void 0}get WW(){if(this.value&&"weekOfYear"in this.value)return this.value.weekOfYear.toString().padStart(2,"0")}get W(){if(this.value&&"weekOfYear"in this.value)return this.value.weekOfYear.toString()}get Z(){if("zoned"===this.kind){return this.value.offset}}get ZZ(){if("zoned"===this.kind){return this.value.offset.replace(":","")}}unix(e=!1){if("number"==typeof e){return new(0,this.constructor)(new Date(e))}return e?this.toEpochMs():Math.floor(this.toEpochMs()/1e3)}format(e="YYYY-MM-DD HH:II:SS"){let n="";if(e){const t=new RegExp("([|]|"+Object.keys(ld).join("|")+")","g");let r=0;yl(e.split(t),e=>{if("["!==e)if("]"!==e)if(r>0)n+=e;else if(e in ld)if(e in this&&md(this[e]))n+=this[e];else{n+=this[dd[ld[e]]]||""}else n+=e;else r--;else r++})}return n}calendar(e){const n=new this.constructor,t=this.startOf("day"),r=n.startOf("day"),i=t.diff(r,"day"),a={numeric:"auto"};e&&(a.style="short");const o=new Intl.RelativeTimeFormat(bbn.env.lang,a);let s="",u=[],c="";if(i>=-1&&i<=1)u=o.formatToParts(i,"day");else if(i>=-6&&i<-1)c=this.dddd+", ",u=o.formatToParts(i,"day");else{if(!(i<=6&&i>1))return this.fdate();c=this.dddd,u=[]}return bbn.fn.each(u,e=>{s+=e.value}),`${c}${s} ${this.ftime()}`}matchFormat(e,n){try{return this.parse(e,n),!0}catch(e){return!1}}getWeekday(e,n="long",t){if(!n){const n=this.getWeekday(e,"narrow",t),r=this.getWeekday(e,"short",t),i=this.getWeekday(e,"long",t);return{letter:n,abbr:r,full:i,long:i,short:r,narrow:n}}let r;if("letter"===n)r="narrow";else if("abbr"===n)r="short";else if("full"===n)r="long";else{if(!["long","short","narrow"].includes(n))throw new Error("Invalid mode for getWeekDay: "+n+'. Allowed values are "long", "short", "narrow", "letter", "abbr", "full".');r=n}return new Date(2023,0,1+e).toLocaleDateString([t||bbn.env.lang,...navigator.languages],{weekday:r})}setWeekday(e,n=!1,t){let r;if("string"==typeof e&&(e=this.getWeekdayIndex(e,t)),"number"!=typeof e)throw new TypeError("weekday must be a number (0–6) or a string");if(e<0||e>6)throw new RangeError("weekday number must be between 0 and 6");r=e;const i=this.weekday();let a;return n?(a=(i-r+7)%7,0===a&&(a=7),a=-a):(a=(r-i+7)%7,0===a&&(a=7)),this.add(a,"d")}diff(e,n="",t=!1){let r;if(e instanceof Td)r=e.toEpochMs();else if(e instanceof Rc.ZonedDateTime||e instanceof Rc.PlainDateTime||e instanceof Rc.PlainDate||e instanceof Rc.PlainTime||e instanceof Rc.PlainYearMonth||e instanceof Rc.PlainMonthDay){r={kind:this.kind,value:e}.toEpochMs()}else{if("string"!=typeof e&&"number"!=typeof e)throw bbn.fn.log("DATE??",e),new TypeError("Unsupported date argument for diff");r=this.parse(String(e),"").toEpochMs()}let i=this.toEpochMs()-r;if(t&&(i=Math.abs(i)),!n)return i;const a=ld[n]||n,o=Vl(cd,e=>e[0]===a);if(!o)throw new Error("Invalid unit for diff: "+n);const[,,s]=o,u=i/s;return u<0?Math.ceil(u):Math.floor(u)}guessUnit(e){const n=Math.abs(e);for(const[e,t,r]of cd)if(n>=r||"millisecond"===t)return e;return null}fromNow(e=""){Td.nowForKind(this.kind);const n=bbn.dt(void 0,null,this.kind),t=this.diff(n),r=ld[e]||this.guessUnit(t);if(!r)throw new Error("Cannot guess unit for fromNow");let i=this.diff(n,r);const a=new Intl.RelativeTimeFormat([bbn.env.lang,...navigator.languages],{numeric:"auto"}),o=Vl(cd,e=>e[0]===r);if(!o)throw new Error("Invalid unit for fromNow: "+e);let[,s]=o;return"millisecond"===s&&(s="second",i=Math.round(i/1e3)),bbn.fn.log("FROM NOW",i,s,a),a.format(i,s)}from(e,n=""){const t=this.diff(e),r=ld[n]||this.guessUnit(t);if(!r)throw new Error("Cannot guess unit for fromDate");const i=this.diff(e,r),a=r;return i>0?Uc("%d %s before",i,a):i<0?Uc("%d %s after",-i,a):Uc("The same %s",a)}startOf(e="d"){var n,t;const r=ld[e]||e;if(!r)throw new Error("Invalid unit for startOf: "+e);let i=this.value;const a=e=>{const n={};return"hour"in e?(Object.assign(n,{hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),e.with(n)):e};switch(r){case"y":if(!("year"in i))throw new Error('startOf("y") only valid for year-based types');i=a(i.with({month:1,day:1}));break;case"m":if(!("month"in i))throw new Error('startOf("m") only valid for month-based types');i=a(i.with({day:1}));break;case"w":{const e="toPlainDate"in i?i.toPlainDate():i,r=e.dayOfWeek-1,o=e.subtract({days:r});i="toPlainDateTime"in i?a(o.toPlainDateTime(null!==(t=null===(n=i.toPlainTime)||void 0===n?void 0:n.call(i))&&void 0!==t?t:Rc.PlainTime.from("00:00"))):o;break}case"d":i=a(i);break;case"h":i=i.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"i":i=i.with({second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"s":i=i.with({millisecond:0,microsecond:0,nanosecond:0});break;default:throw new Error("Invalid unit for startOf: "+e)}return this.withValue(i)}endOf(e="d"){const n=Rc.Now.timeZoneId(),t=ld[e]||e;let r,i=(()=>{switch(this.kind){case"zoned":return this.value;case"dateTime":{const e=`${this.value.toString()}[${n}]`;return Rc.ZonedDateTime.from(e)}case"date":{const e=`${this.value.toString()}T00:00[${n}]`;return Rc.ZonedDateTime.from(e)}case"time":{const e=this.value,t=`${Rc.Now.plainDateISO().toString()}T${e.toString()}[${n}]`;return Rc.ZonedDateTime.from(t)}case"yearMonth":{const e=`${this.value.toPlainDate({day:1}).toString()}T00:00[${n}]`;return Rc.ZonedDateTime.from(e)}case"monthDay":{const e=this.value,t=Rc.Now.plainDateISO(),r=`${e.toPlainDate({year:t.year}).toString()}T00:00[${n}]`;return Rc.ZonedDateTime.from(r)}default:throw new Error("Unsupported kind in endOf")}})(this.value);switch(t){case"y":r=i.with({month:1,day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({years:1});break;case"m":r=i.with({day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({months:1});break;case"w":{const e=-(i.toPlainDate().dayOfWeek-1);r=i.add({days:e}).with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({weeks:1});break}case"d":r=i.with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({days:1});break;case"h":r=i.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({hours:1});break;case"i":case"n":case"min":r=i.with({second:0,millisecond:0,microsecond:0,nanosecond:0}).add({minutes:1});break;case"s":r=i.with({millisecond:0,microsecond:0,nanosecond:0}).add({seconds:1});break;default:throw new Error("Invalid unit for endOf: "+e)}const a=r.subtract({milliseconds:1});switch(this.kind){case"zoned":return this.withValue(a);case"dateTime":return this.withValue(a.toPlainDateTime());case"date":return this.withValue(a.toPlainDate());case"time":return this.withValue(a.toPlainTime());case"yearMonth":{const e=a.toPlainDate();return this.withValue(new Rc.PlainYearMonth(e.year,e.month))}case"monthDay":{const e=a.toPlainDate();return this.withValue(new Rc.PlainMonthDay(e.month,e.day))}default:throw new Error("Unsupported kind in endOf")}}clone(){return this.withValue(this.value)}isLeapYear(){if(this.isValid){const e=this.year();return e%4==0&&e%100!=0||e%400==0}return!1}daysInMonth(){if(this.isValid)switch(this.month()){case 2:return this.year()%4==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}return 0}valueOf(){return this.unix(!0)}}bd=new WeakMap,Td.systemTimeZoneId=Rc.Now.timeZoneId();class Dd extends Td{constructor(e,n,t,r,i,a,o){let s;if(e)if(void 0===n)if(e instanceof Rc.PlainDateTime)s=e;else if(e instanceof Date)s=new Rc.PlainDateTime(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");s=Rc.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Td.systemTimeZoneId).toPlainDateTime()}else s=new Rc.PlainDateTime(e,n,t||1,r||0,i||0,a||0,o||0);else s=Rc.PlainDateTime.from(Rc.Now.plainDateTimeISO());super(s),this.kind="dateTime"}format(e){return[!0,"long","full"].includes(e)&&(e=Vl(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long",hour:"2-digit",minute:"2-digit",second:void 0}).pattern),e||(e=Vl(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:void 0}).pattern),Td.prototype.format.call(this,e)}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),i=Object.assign(Object.assign({year:"numeric",month:e?"long":"2-digit",day:"2-digit"},t?{weekday:e?"long":"short"}:{}),n?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}class Sd extends Td{constructor(e,n,t){let r;if(e)if(void 0===n)if(e instanceof Rc.PlainDate)r=e;else if(e instanceof Date)r=new Rc.PlainDate(e.getFullYear(),e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const n=new Date(e);r=new Rc.PlainDate(n.getFullYear(),n.getMonth()+1,n.getDate())}}else r=new Rc.PlainDate(e,n,t||1);else r=Rc.PlainDate.from(Rc.Now.plainDateISO());super(r),this.kind="date"}compareSameKind(e){const n=Rc.PlainDate.compare(this.value,e.value);return n<0?-1:n>0?1:0}format(e){return!0===e&&(e=Vl(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long"}).pattern),e||(e=Vl(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric"}).pattern),Td.prototype.format.call(this,e)}ftime(e=!1){return"00:00"+(e?":00":"")}fdate(e=!1,n=!1){const t=new Date(this.year(),this.month()-1,this.day()),r=Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},n?{weekday:e?"long":"short"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],r).format(t)}}class Ad extends Td{constructor(e,n,t,r,i,a,o,s){let u;if(e)if(void 0===n)if(e instanceof Rc.ZonedDateTime)u=e;else if(e instanceof Date)u=function(e,n=!1,t=Rc.Now.timeZoneId()){const r=Rc.Instant.fromEpochMilliseconds(e.getTime()).toZonedDateTimeISO(t);return n?r:r.toPlainDateTime()}(e,!0);else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtZoned");u=Rc.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone)}else{u=new Rc.PlainDateTime(n,t,r||1,i||0,a||0,o||0,s||0).toZonedDateTime(e||Rc.Now.timeZoneId())}else u=Rc.Now.zonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone);super(u),this.kind="zoned"}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),i=Object.assign(Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},t?{weekday:e?"long":"short"}:{}),n?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}class kd extends Td{constructor(e,n){let t;if(e)if(void 0===n)if(e instanceof Rc.PlainYearMonth)t=e;else if(e instanceof Date)t=new Rc.PlainYearMonth(e.getFullYear(),e.getMonth()+1);else{if("number"!=typeof n)throw new Error("Invalid value for bbnDtDateTime");{const e=new Date(n);t=new Rc.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}}else t=new Rc.PlainYearMonth(e,n);else{const e=new Date;t=new Rc.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}super(t),this.kind="yearMonth"}format(e){return!0===e&&(e=Vl(bbn.dt.locales.date,e=>"numeric"===e.year&&"long"===e.month&&!("day"in e)).pattern),e||(e=Vl(bbn.dt.locales.date,e=>"numeric"===e.year&&"numeric"===e.month&&!("day"in e)).pattern),Td.prototype.format.call(this,e)}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1),i={year:"numeric",month:e?"long":"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}}class Cd extends Td{constructor(e,n){let t;if(e)if(void 0===n)if(e instanceof Rc.PlainMonthDay)t=e;else if(e instanceof Date)t=new Rc.PlainMonthDay(e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const n=new Date(e);t=new Rc.PlainMonthDay(n.getMonth()+1,n.getDate())}}else t=new Rc.PlainMonthDay(e,n);else{const e=new Date;t=new Rc.PlainMonthDay(e.getMonth()+1,e.getDate())}super(t),this.kind="monthDay"}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(2e3,this.month()-1,this.day()),i={month:e?"long":"numeric",day:"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}}function Pd(e,n,t){let r="";const i=e.some(e=>"dayPeriod"===e.type),a=i||"h12"===n||"h11"===n,o=!!t.weekday,s="short"===t.month||"long"===t.month,u="numeric"===t.year&&"numeric"===t.month&&"numeric"===t.day&&!o&&!s;for(const n of e)switch(n.type){case"year":"2-digit"===t.year?r+="YY":r+="YYYY";break;case"month":if("short"===t.month){r+="MMM";break}if("long"===t.month){r+="MMMM";break}if(u){r+="M";break}/^\d+$/.test(n.value)?r+=2===n.value.length?"MM":"M":r+=n.value.length>3?"MMMM":"MMM";break;case"day":if(u){r+="D";break}r+=2===n.value.length?"DD":"D";break;case"weekday":"short"===t.weekday||"narrow"===t.weekday?r+="ddd":"long"===t.weekday?r+="dddd":r+=n.value.length>3?"dddd":"ddd";break;case"hour":r+=a?2===n.value.length?"hh":"h":2===n.value.length?"HH":"H";break;case"minute":r+="II";break;case"second":r+="SS";break;case"dayPeriod":r+="A";break;case"timeZoneName":r+="z";break;case"literal":if(!n.value)break;if(/[A-Za-zÀ-ÖØ-öø-ÿ]/.test(n.value)){r+=`[${n.value.replace(/]/g,"\\]")}]`}else r+=n.value;break;default:r+=n.value}return r}const Nd=()=>{if(Object.keys(bbn.dt.locales).length)return;const e=[bbn.env.lang,...navigator.languages],n=new Intl.DateTimeFormat(e,{month:"long"}),t=new Intl.DateTimeFormat(e,{month:"short"}),r=new Intl.DateTimeFormat(e,{weekday:"long"}),i=new Intl.DateTimeFormat(e,{weekday:"short"}),a=new Intl.DateTimeFormat(e,{dateStyle:"short",timeStyle:"short"}),o=new Intl.DateTimeFormat(e,{dateStyle:"long",timeStyle:"long"}),s=new Intl.DateTimeFormat(e,{year:"numeric",month:"numeric",day:"numeric"}),u=new Intl.RelativeTimeFormat(e,{numeric:"auto"}),c=new Intl.Locale(e[0]),l=[],d=[];for(let e=0;e<12;e++){const r=new Date(2020,e,1);l.push(n.format(r)),d.push(t.format(r))}const m=new Date(2020,1,2),f=[],h=[];for(let e=0;e<7;e++){const n=new Date(m.getTime()+864e5*e);f.push(r.format(n)),h.push(i.format(n))}const{date:y,time:M,datetime:g}=(e=>{e||(e=[bbn.env.lang,...navigator.languages]);const n=new Date(Date.UTC(2e3,0,2,13,45,30)),t=[],r=[],i=[],a=new Set,o=new Set,s=new Set,u=[{year:"numeric",month:"2-digit",day:"2-digit"},{year:"numeric",month:"numeric",day:"numeric"},{year:"numeric",month:"short",day:"numeric"},{year:"numeric",month:"long",day:"numeric"},{weekday:"short",year:"numeric",month:"short",day:"numeric"},{weekday:"long",year:"numeric",month:"long",day:"numeric"},{year:"numeric",month:"numeric"},{year:"numeric",month:"2-digit"},{year:"numeric",month:"short"},{year:"numeric",month:"long"},{month:"numeric",day:"numeric"},{month:"2-digit",day:"2-digit"},{month:"short",day:"numeric"},{month:"long",day:"numeric"}],c=[];for(const r of u){const i=new Intl.DateTimeFormat(e,r),o=Pd(i.formatToParts(n),i.resolvedOptions().hourCycle,r);a.has(o)||(a.add(o),t.push({pattern:o,sample:i.format(n),options:r})),r.year&&r.month&&r.day&&c.push(r)}const l=[{hour:"numeric"},{hour:"2-digit",minute:"2-digit"},{hour:"2-digit",minute:"2-digit",second:"2-digit"},{hour:"2-digit",minute:"2-digit",timeZoneName:"short"},{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"},{hour:"2-digit",minute:"2-digit",timeZoneName:"long"}];for(const t of l){const i=new Intl.DateTimeFormat(e,t),a=Pd(i.formatToParts(n),i.resolvedOptions().hourCycle,t);o.has(a)||(o.add(a),r.push({pattern:a,sample:i.format(n),options:t}))}for(const t of c)for(const r of l){const a=Object.assign(Object.assign({},t),r),o=new Intl.DateTimeFormat(e,a),u=Pd(o.formatToParts(n),o.resolvedOptions().hourCycle,a);s.has(u)||(s.add(u),i.push({pattern:u,sample:o.format(n),options:a}))}return{date:t,time:r,datetime:i}})(e),p=c.getWeekInfo?c.getWeekInfo():{firstDay:1};Ml(bbn.dt.locales,{formatters:{short:a,long:o,numeric:s,relative:u},firstDayOfWeek:p.firstDay,monthsLong:l,monthsShort:d,weekdaysLong:f,weekdaysShort:h,locale:c,date:y,time:M,datetime:g})};class zd extends Td{constructor(e,n,t,r){let i;if(e)if(void 0===e)if(e instanceof Rc.PlainTime)i=e;else if(e instanceof Date)i=new Rc.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");if(void 0!==n)i=new Rc.PlainTime(e,n,t||0,r||0);else{const n=new Date(e);i=new Rc.PlainTime(n.getHours(),n.getMinutes(),n.getSeconds(),1e6*n.getMilliseconds())}}else i=new Rc.PlainTime(e,n||0,t||0,r||0);else{const e=new Date;i=new Rc.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds())}super(i),this.kind="time"}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}const Hd=function(e,n){try{return n?e.toLocaleLowerCase(n):e.toLowerCase()}catch(n){return e.toLowerCase()}};function Id(e,n,t="auto",r,i){var a,o,s,u,c,l,d;Nd();const m=Rc;if(!m)throw new Error("Temporal API is required (load @js-temporal/polyfill)");let f=!0;i||(i=(null===(a=null===bbn||void 0===bbn?void 0:bbn.dt)||void 0===a?void 0:a.locales)||{});const h={monthsLong:null!==(o=null==i?void 0:i.monthsLong)&&void 0!==o?o:bbn.dt.locales.monthsLong,monthsShort:null!==(s=null==i?void 0:i.monthsShort)&&void 0!==s?s:bbn.dt.locales.monthsShort,weekdaysLong:null!==(u=null==i?void 0:i.weekdaysLong)&&void 0!==u?u:bbn.dt.locales.weekdaysLong,weekdaysShort:null!==(c=null==i?void 0:i.weekdaysShort)&&void 0!==c?c:bbn.dt.locales.weekdaysShort},y=(null===bbn||void 0===bbn?void 0:bbn.env)&&(null===(l=bbn.env)||void 0===l?void 0:l.lang)||(null===bbn||void 0===bbn?void 0:bbn.dt)&&(null===(d=bbn.dt)||void 0===d?void 0:d.locale)||Intl.DateTimeFormat().resolvedOptions().locale,M=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function g(n,t="auto"){var i;const a=new Dd,o={year:a.year(),month:1,day:1,hour:0,minute:0,second:0,ms:0,hasYear:!1,hasMonth:!1,hasDay:!1,hasHour:!1,hasMinute:!1,hasSecond:!1,hasMs:!1},s="auto"===t,u="zoned"===t.toLowerCase(),c="datetime"===t.toLowerCase(),l="date"===t.toLowerCase(),d="time"===t.toLowerCase(),g="yearmonth"===t.toLowerCase(),p="monthday"===t.toLowerCase(),v=[{token:"YYYY",regex:"\\d{4}",apply:(e,n)=>{n.year=parseInt(e,10),n.hasYear=!0}},{token:"YY",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);n.year=t>=70?1900+t:2e3+t,n.hasYear=!0}},{token:"Y",regex:"[+-]?\\d{1,6}",apply:(e,n)=>{n.year=parseInt(e,10),n.hasYear=!0}},{token:"MMMM",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=Hd(e,y),r=h.monthsLong.findIndex(e=>Hd(e,y)===t);if(-1===r)throw new Error("Invalid month name: "+e);n.month=r+1,n.hasMonth=!0}},{token:"MMM",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=Hd(e,y),r=h.monthsShort.findIndex(e=>Hd(e,y)===t);if(-1===r)throw new Error("Invalid short month name: "+e);n.month=r+1,n.hasMonth=!0}},{token:"MM",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"mm",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"M",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"m",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"DD",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"D",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"d",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"dddd",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=Hd(e,y),r=h.weekdaysLong.findIndex(e=>Hd(e,y)===t);if(-1===r)throw new Error("Invalid weekday name: "+e);n.weekday=r}},{token:"ddd",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=Hd(e,y),r=h.weekdaysShort.findIndex(e=>Hd(e,y)===t);if(-1===r)throw new Error("Invalid short weekday name: "+e);n.weekday=r}},{token:"EE",regex:"\\d{1}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>7)throw new Error("Invalid weekday number: "+t);n.weekday=t}},{token:"hh",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid 12-hour clock hour: "+t);n.hour=t,n.hasHour=!0,n.uses12Hour=!0}},{token:"HH",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"H",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"h",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"II",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"I",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"i",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"SS",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"S",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"ss",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"s",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"ms",regex:"\\d{1,3}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>999)throw new Error("Invalid millisecond: "+t);n.ms=t,n.hasMs=!0}},{token:"WWWW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"WWW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"WW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"W",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"ZZ",regex:"(?:Z?[+-]\\d{2}\\d{2})",apply:(e,n)=>{if("Z"===e||"z"===e)return void(n.offsetMinutes=0);const t="-"===e[0]?-1:1,r=e.slice(1),i=parseInt(r.slice(0,2),10),a=parseInt(r.slice(2),10);if(i<0||i>23||a<0||a>59)throw new Error("Invalid timezone offset: "+e);n.offsetMinutes=t*(60*i+a)}},{token:"Z",regex:"(?:Z?[+-]\\d{2}\\:{1}\\d{2})",apply:(e,n)=>{if("Z"===e||"z"===e)return void(n.offsetMinutes=0);const t="-"===e[0]?-1:1,r=e.slice(1),[i,a]=r.split(":");let o=parseInt(i,10),s=parseInt(a,10);if(o<0||o>23||s<0||s>59)throw new Error("Invalid timezone offset: "+e);n.offsetMinutes=t*(60*o+s)}},{token:"z",regex:"[A-Za-z_\\/]+",apply:(e,n)=>{n.timeZone=e}},{token:"A",regex:"(?:AM|PM|am|pm)",apply:(e,n)=>{n.isPM=/pm/i.test(e),n.hasAmPm=!0}},{token:"a",regex:"(?:AM|PM|am|pm)",apply:(e,n)=>{n.isPM=/pm/i.test(e),n.hasAmPm=!0}}],w=[...v].sort((e,n)=>n.token.length-e.token.length);let b="";const _=[];let E=0,T=0;for(;E<n.length;){if("["===n[E]){let e=E+1,t="";for(;e<n.length&&"]"!==n[e];)t+=n[e],e++;if(e<n.length&&"]"===n[e]){const n=t.replace(/\\]/g,"]");b+=M(n),E=e+1;continue}}let e=null;for(const t of w)if(n.startsWith(t.token,E)){e=t;break}e?(b+=`(${e.regex})`,T=b.length,e.apply?_.push(n=>e.apply(n,o)):_.push(()=>{}),E+=e.token.length):(b+=M(n[E]),E+=1)}const D=new RegExp("^"+bbn.fn.substr(b,0,T));let S=D.exec(e);if(!S){if(!r)throw new Error(`Date string "${e}" does not match format "${n}"`);{const t=new Dd(a.year(),1,1,0,0,0,0);e=t.format(n),f=!1,S=D.exec(e)}}if(S)for(let e=1;e<S.length;e++){const n=S[e],t=_[e-1];null!=n&&t&&t(n)}if(o.uses12Hour){if(!o.hasAmPm)throw new Error("AM/PM marker (A or a) is required with 12-hour format (hh)");let e=o.hour;o.isPM?e<12&&(e+=12):12===e&&(e=0),o.hour=e}const A=o.hasYear||o.hasMonth||o.hasDay,k=o.hasYear&&o.hasMonth&&o.hasDay,C=o.hasYear&&o.hasMonth&&!o.hasDay,P=!o.hasYear&&o.hasMonth&&o.hasDay,N=o.hasHour||o.hasMinute||o.hasSecond||o.hasMs,z=null!=o.timeZone||null!=o.offsetMinutes;let H;if(u||z&&s){let e;try{e=new m.PlainDateTime(o.year,o.month,o.day,o.hour,o.minute,o.second,1e6*o.ms)}catch(e){throw new Error("Invalid date/time components")}if(o.timeZone){const n=m.TimeZone.from(o.timeZone),t=e.toZonedDateTime(n);H=new Ad(t)}else{const e=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.ms)-6e4*(null!==(i=o.offsetMinutes)&&void 0!==i?i:0);H=new Ad(m.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(m.Now.timeZoneId()))}}else if(c||s&&(f||A&&N)){if(!k&&!f)throw new Error("PlainDateTime requires year, month and day");const e=new m.PlainDateTime(o.year,o.month,o.day,o.hour,o.minute,o.second,1e6*o.ms);H=new Dd(e)}else if(l||g||p||s&&A&&!N)if(l||k&&s){const e=new m.PlainDate(o.year,o.month,o.day);H=new Sd(e)}else if(g||C&&s){const e=new m.PlainYearMonth(o.year,o.month);H=new kd(e)}else if(p||P&&s){const e=new m.PlainMonthDay(o.month,o.day,1972);H=new Cd(e)}else{if(!s||!o.hasYear)throw new Error("Not enough date components for a known Temporal type");{const e=new m.PlainDate(o.year,1,1);H=new Sd(e)}}else{if(!(d||s&&!A&&N))throw new Error("No date or time information found in input");{const e=new m.PlainTime(o.hour,o.minute,o.second,1e6*o.ms);H=new zd(e)}}return H.setValid(f),H}if(Array.isArray(n)){let e=null;for(const r of n)try{return g(r,t)}catch(n){e=n}throw null!=e?e:new Error("No format matched")}return g(n,t)}const Fd=["YYYY-MM-DD HH:II:SS.ms","YYYY-MM-DD HH:II:SS","YYYY-MM-DD HH:II:SS[ GMT]Z","YYYY-MM-DD HH:II","YYYY-MM-DDTHH:II:SS.msZ","YYYY-MM-DDTHH:II:SSZ","YYYY-MM-DDTHH:II:SS","YYYY-MM-DDTHH:II","ddd[, ]DD MMM YYYY HH:II:SS[ GMT]","ddd MMM DD YYYY HH:II:SS[ GMT]Z","ddd MMM DD YYYY HH:II:SS","D MMM","D MMMM","D/M","YYYY-MM-DD","YYYY-MM","HH:II:SS","HH:II"];function Od(e,n,t){const r=e.trim();if(!r)return null;Nd();const i=e=>{for(const n of e)try{return Id(r,n),n}catch(e){}return null};if(n){return i(Array.isArray(n)?n:[n])}const a=new Set,o=Fd.filter(e=>!a.has(e)&&(a.add(e),!0)),s=[...bbn.dt.locales.datetime.map(e=>e.pattern),...bbn.dt.locales.date.map(e=>e.pattern),...bbn.dt.locales.time.map(e=>e.pattern)].filter(e=>!a.has(e)&&(a.add(e),!0)),u=i([...o,...s]);return u||null}const Ld=(e,n=null,t="auto")=>{if(void 0===e)return new Dd;if(!e){const e=new Dd;return e.setValid(!1),e}if("string"==typeof e){if(n)return Id(e,n,t,!0);{const n=Od(e);if(n)return Id(e,n,t);throw new Error(Uc("Could not guess the date format for value: %s",e))}}if("number"==typeof e)return new Dd(Math.floor(Math.abs(e)<99999999999?1e3*e:e));if(e.__isBbnDt)return e;if(e instanceof Date){const n=e;return new Dd(n.getFullYear(),n.getMonth()+1,n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}if(e instanceof Rc.PlainDateTime)return new Dd(e);if(e instanceof Rc.PlainDate)return new Sd(e);if(e instanceof Rc.PlainTime)return new Ad(e);if(e instanceof Rc.PlainYearMonth)return new kd(e);if(e instanceof Rc.PlainMonthDay)return new Cd(e);if(e instanceof Rc.ZonedDateTime)return new Ad(e);if(e instanceof Rc.Duration)return new wd(e);throw bbn.fn.log("Invalid date value",e),new Error(Uc("Invalid date value"))};function Gd(e){if(arguments.length>1){const e=[];for(let n=1;n<arguments.length;n++)e.push(arguments[n]);e.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),sl.apply(this,e)}throw new Error(e)}function Bd(e,n=null,t=null,r=null,i=null){let a=!1;if(n){a=!0;let o,s="object"===(typeof n).toLowerCase();if(s&&n.prescript)try{new Function(n.prescript)()}catch(e){Gd(e.message||"")}if(s&&void 0===n.url&&(n.url=e),a=t&&ol(t)?t(n,i):bbn.fn.defaultLinkFunction(n,i),i&&s&&void 0!==n.content&&("value"in i?i.value=n.content:i.innerHTML=n.content),a&&s&&n.script&&(a="function"==typeof n.script?n.script(n.data?n.data:{},i||null):((e,t)=>{let r=null;try{r=new Function(n.script)(),ol(r)&&(r=r(e,t))}catch(e){sl(e,n),Gd(ol(e.getMessage)?e.getMessage():null)}return r})(n.data?n.data:{},i||!1)),a&&r&&ol(r)?r(n):s&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(n,i),a&&s&&n.postscript){new Function(n.postscript)(n.postscript)}s&&n.error&&(o=n.errorTitle||bbn.lng.server_response,bbn.fn.defaultErrorFunction(n.error,o))}else bbn.fn.defaultErrorFunction(bbn.lng.errorText,bbn.lng.error);return a}function xd(e,n,t=!1){let r={error:!1,result:!0};if("string"==typeof n&&(n=[n]),ml(n)||(r.error=bbn._("checkProps must receive a string or an array as props argument")),dl(e)||(r.error=bbn._("checkProps must receive an object as obj argument")),!r.error){let i;yl(n,n=>{let a=(n=n.trim().split(":"))[1]||!1;if(n=n[0],void 0===e[n]?r.error=n+" "+bbn._("is not defined"):a?(i="is"+ul(a,0,1).toUpperCase()+ul(a,1).toLowerCase(),void 0===bbn.fn[i]?r.error=a+" "+bbn._("is not a valid type"):bbn.fn[i](e[n])||(r.error=n+" "+bbn._("is not a")+" "+a)):t&&!e[n]&&(r.error=n+" "+bbn._("is empty")),r.error)return!1})}return r.error&&(r.result=!1),r}function Rd(e){return e.replace(/[A-z]{1}/,e=>e.toUpperCase())}function jd(e,n,t,...r){let i=!1;ml(n)||(n=[n]);const a=[];if(yl(n,n=>{var t;if(n===String?n="string":n===Number?n="number":n===Array?n="array":n===Boolean?n="boolean":n===Object?n="object":n===Function&&(n="function"),ol(n)){if(a.push(n.name||(null===(t=n.constructor)||void 0===t?void 0:t.name)||n.toString()),e instanceof n)return i=!0,!1}else if(il(n)&&ol(bbn.fn["is"+Rd(n)])){if(bbn.fn["is"+Rd(n)](e))return i=!0,!1;a.push(n)}else Gd(`The type ${n} is not recognized`)}),!i)throw sl(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),r.length&&sl(r),new Error((t?t+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function Zd(e){if(ml(e))return e.slice().map(e=>"object"==typeof e?Zd(e):e);if(dl(e)){return Ml(!0,Object.create(Object.getPrototypeOf(e)),e)}return e}Ld.locales=Object.create(null),Ld.parse=Id,Ld.guessFormat=Od,Ld.time=()=>{},Ld.date=()=>{},Ld.dateTime=()=>{},Ld.duration=(e,n)=>e instanceof Rc.Duration?new wd(e):wd.fromUnit(e,n||"ms"),Ld.zoned=()=>{},Ld.monthDay=()=>{},Ld.yearMonth=()=>{};const Ud=(e,n="text/plain")=>{const t=new DataTransfer;t.setData(n,e);const r=new ClipboardEvent("copy",{bubbles:!0,cancelable:!0,clipboardData:t});document.dispatchEvent(r)};function Yd(e,n,t=null,r="="){if(!ml(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");let i={};const a=[],o="function"==typeof n;if(!n||!e.length)return e;if("object"==typeof n)r=t,i=n;else if("string"==typeof n)i[n]=t;else if(!o)throw new Error("Search function error: The prop argument should be a string or an object");if("function"==typeof n)for(let t=0;t<e.length;t++)n(e[t],t)&&a.push(e[t]);else if(i=Wl(i,r),i.conditions&&i.logic)for(let n=0;n<e.length;n++)ql(e[n],i)&&a.push(e[n]);return a}const qd=[];for(let e=0;e<256;e++){let n=e;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;qd.push(n)}function Wd(...e){const n=Object.create(null);return e.length&&Ml(n,...e),n}function Kd(e){let n=typeof e;if(void 0===e)return new Date;if("number"===n||fl(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===n){if(10===e.length)return new Date(parseInt(ul(e,0,4)),parseInt(ul(e,5,2))-1,parseInt(ul(e,8,2)),12);if(19===e.length)return new Date(parseInt(ul(e,0,4)),parseInt(ul(e,5,2))-1,parseInt(ul(e,8,2)),parseInt(ul(e,11,2)),parseInt(ul(e,14,2)),parseInt(ul(e,17,2)))}else if(Cl(e))return e;return!1}function Vd(e,n=""){sl(e)}function $d(e,n=null,t=null){sl(n,t)}function Jd(e,n,t=null,r=null){return!0}function Qd(...e){if(!e.length)return!1;for(let n of e)if("object"==typeof n&&!Hl(n))return!1;return!0}let Xd=[];function em(e){if(il(e)&&e){for(;"/"===ul(e,e.length-1);)e=ul(e,0,e.length-1);let n=e.lastIndexOf("/");if(n>0)return ul(e,0,n);if(0===n)return"/"}return""}function nm(...e){if(!e.length)return!1;for(let n of e)if("[object Blob]"!=={}.toString.apply(n))return!1;return!0}function tm(e){if(e&&il(e)){let n=e.split(".");if(n[0]&&n.length>1)return n[n.length-1].toLowerCase()}return""}function rm(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof HTMLCanvasElement))return!1;return!0}function im(e,n,t=null){if(rm(n))return void n.toBlob(n=>{let t=document.createElement("a");t.download=e,t.href=window.URL.createObjectURL(n),t.className="bbn-no",t.click(),window.URL.revokeObjectURL(t.href)},t||"image/png");t?-1===t.indexOf("/")&&(t="text/"+t):t=dl(n)&&n.type?n.type:"octet/stream";let r=window.document.createElement("a");r.className="bbn-no";let i=null;if(il(n))i=new Blob([n],{type:t});else try{i=n}catch(e){sl(e)}r.href=window.URL.createObjectURL(i),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}var am=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function om(){return am(this,void 0,void 0,function*(){var e;(null===(e=window.scheduler)||void 0===e?void 0:e.yield)?yield window.scheduler.yield():yield new Promise(requestAnimationFrame)})}var sm=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function um(e){let n;return"checkbox"===e.type?e.checked?(n=e.value,n||(n=1)):n=0:"radio"===e.type?e.checked&&(n=e.value):n=e.value,n}function cm(e){let n,t,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),i={};return yl(r,(e,r)=>{if(t=um(e),void 0!==t&&!e.disabled){let r=e.name;if(-1===r.indexOf("[]")&&r.indexOf("[")>-1&&r.indexOf("]")>-1&&r.lastIndexOf("]")===r.length-1&&(r=rd("][",".",r),r=rd("[",".",r),r=rd("]","",r)),r.length>2&&r.indexOf("[]")===r.length-2)n=ul(r,0,r.length-2),void 0===i[n]&&(i[n]=[]),i[n].push(t);else if(r.indexOf(".")>-1){let e,n=r.split(".");e=i;for(let r=0;r<n.length;r++)void 0===i[n[r]]&&(r<n.length-1?e[n[r]]={}:e[n[r]]=t),e=e[n[r]]}else i[r]=t}}),i}function lm(e){return e.filter((e,n,t)=>n===t.indexOf(e))}function dm(e,n=null){let t=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof n)for(;e=e.parentElement.closest(n);)t.push(e);else for(!0===n&&t.push(e);e=e.parentElement;)t.push(e);return t}function mm(e){0!==e.indexOf("--")&&(e="--"+e);let n=getComputedStyle(document.documentElement).getPropertyValue(e);return"string"==typeof n&&(n=n.trim()),n}function fm(){const e=navigator.userAgent.toLowerCase();return/iPhone|Android/i.test(navigator.userAgent)?"mobile":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?"tablet":"desktop"}function hm(){let e,n=window.getSelection();if(n.rangeCount>0){e=n.getRangeAt(0),sl("RANGE",e);let t=e.cloneContents();sl("clonedSelection",t);let r=document.createElement("div");return r.appendChild(t),r.innerHTML}return""}function ym(e){return il(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function Mm(e){let n=document.createElement("div");return n.innerHTML=e,e=n.innerText}function gm(e){let n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0),n}function pm(e){let n,t={};if(dl(e[0])&&1===e.length)return e[0];for(let r=0;r<e.length;r++)n=typeof e[r],n=n.toLowerCase(),ol(e[r])?(t.errorFn&&!t.abortFn&&(t.abortFn=e[r]),t.successFn&&!t.errorFn?t.errorFn=e[r]:t.successFn||(t.successFn=e[r])):1===e[r]||!0===e[r]?t.force=!0:"string"===n?t.url?t.datatype=e[r]:(t.url=e[r],0===t.url.indexOf(bbn.env.root)&&(t.url=ul(t.url,bbn.env.root.length))):e[r]&&"object"===n&&(e[r]instanceof Event?t.e=e[r]:t.ele||1!==e[r].nodeType?"object"===n.toLowerCase()&&(t.obj=e[r]):t.ele=e[r]);return!t.url&&Nl(t)&&(t.url=bbn.env.path),void 0===t.obj&&(t.obj={_bbn:"public"}),t.datatype||(t.datatype="json"),t}function vm(e,n,t=null,r=!1){bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(ul(e,0,7))?e:bbn.env.root+e;const[i,a]=bbn.env.url.split("?"),o=a?a.split("&").reduce((e,n)=>{const[t,r]=n.split("=");return e[t]=r,e},{}):{};bbn.env.getParameters=o,bbn.env.path=ul(i,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e);let s=window.history;if(s){let e=s.state,i={url:bbn.env.path,old_path:bbn.env.old_path||null,data:t||{},reload:!1};e&&e.url===bbn.env.path&&(e.data&&Ml(i.data,e.data),e.title&&!n&&(n=e.title),r=!0),n=n?Mm(n):bbn.env.siteTitle,r?(i.reload=!0,s.replaceState(i,n,bbn.env.url)):s.pushState(i,n,bbn.env.url)}}function wm(...e){let n=pm(e),t=1;if(n){if(0===n.url.indexOf("javascript:"))return!0;if(0===n.url.indexOf("data:"))return!0;if(0===n.url.indexOf("#"))return n.e&&n.e.preventDefault(),document.location.hash=n.url.substring(1),!1;if(0===n.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=n.url,setTimeout(()=>{bbn.env.ignoreUnload=!1},0),!1;if(Jl(n.url))return!1;if((0===n.url.indexOf("http://")||0===n.url.indexOf("https://"))&&0!==n.url.indexOf(bbn.env.host))return n.e&&n.e.preventDefault(),window.open(n.url),!1;if(n.url!==bbn.env.params.join("/")||1===n.force){if(n.e&&n.e.preventDefault(),n.successFn)t=n.successFn(n.url);else if(bbn.fn.defaultPreLinkFunction){let e=bbn.fn.defaultPreLinkFunction(n.url,n.force,n.ele);void 0!==e.data?(Ml(n.obj,e.data),t=1):t=e}if(t){1!==t&&"string"==typeof t&&(n.url=t);let e=bbn._("The Ajax call to")+" "+n.url+" ";return ad(n.url,n.datatype,n.obj,t=>{t||sl(e+bbn._("returned no answer")),dl(t)&&(0===Object.keys(t).length&&sl(e+bbn._("returned an empty object")),t.new_url?(t.old_path=n.url,n.url=t.new_url):t.url&&n.url!==t.url&&(t.old_path=n.url)),Bd(n.url,t,n.successFn,null,n.ele)&&void 0===t.noNav&&0!==bbn.env.path.indexOf(n.url)&&vm(n.url,(t.title?t.title+" - ":"")+bbn.env.siteTitle)},n.errorFn||null)}}return!0}}function bm(){let e=bbn.env.width!==window.innerWidth,n=bbn.env.height!==window.innerHeight;if(e||n){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),n&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));let t=parseInt(mm("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<t?"small":"regular"),i=(document.body.className||"").split(" "),a=!1;yl(i,(e,n)=>{if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return a=!0,e!==r&&i.splice(n,1,r),!1}),a||i.push(r),bbn.fn.defaultResizeFunction(),document.body.className=i.join(" ")}}function _m(){return"mobile"===fm()}function Em(){return"tablet"===fm()}function Tm(){return _m()||Em()}function Dm(e=!1){let n=(new Date).getTime();return e?Math.round(n/1e3):n}function Sm(e){const n=String(null!=e?e:"").split("-").filter(Boolean);if(!n.length)return{language:"und"};let t,r,i=n[0].toLowerCase();for(let e=1;e<n.length;e++){const i=n[e];t||4!==i.length?r||2!==i.length&&3!==i.length||(r=i.toUpperCase()):t=i[0].toUpperCase()+i.slice(1).toLowerCase()}return{language:i,script:t,region:r}}const Am=globalThis.document?Promise.resolve().then(function(){return Wm}):{};function km(e){var n,t,r;const i=null!==(r=null!==(n=e.baseName)&&void 0!==n?n:null===(t=e.toString)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"und",{region:a}=Sm(i),o=a&&Am[a]||{firstDay:1,weekend:[6,7],minimalDays:4};return{firstDay:o.firstDay,weekend:o.weekend.slice(),minimalDays:o.minimalDays}}function Cm(){!function(){if("undefined"==typeof Intl)return;if("function"!=typeof Intl.Locale){class e{constructor(e){const n=Array.isArray(e)?e[0]:e,t=String(null!=n?n:"und"),r=Sm(t);this._tag=t,this._language=r.language,this._script=r.script,this._region=r.region}toString(){return this._tag}get baseName(){return this._tag}get language(){return this._language}get script(){return this._script}get region(){return this._region}getWeekInfo(){return km(this)}get weekInfo(){return km(this)}}Intl.Locale=e}const e=Intl.Locale.prototype;"function"!=typeof e.getWeekInfo&&(e.getWeekInfo=function(){return km(this)}),Object.getOwnPropertyDescriptor(e,"weekInfo")||Object.defineProperty(e,"weekInfo",{configurable:!0,enumerable:!0,get(){return"function"==typeof this.getWeekInfo?this.getWeekInfo():km(this)}})}()}var Pm=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function Nm(){return Pm(this,void 0,void 0,function*(){const e=[];"undefined"!=typeof Intl&&"function"==typeof Intl.RelativeTimeFormat||e.push((()=>Pm(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Cg}),yield Promise.resolve().then(function(){return Ng})}))()),function(){if("undefined"==typeof Intl||"function"!=typeof Intl.DateTimeFormat)return!0;try{return new Intl.DateTimeFormat("en",{dateStyle:"medium"}),!1}catch(e){return!0}}()&&e.push((()=>Pm(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return xp}),yield Promise.resolve().then(function(){return Rp})}))()),e.length>0&&(yield Promise.all(e)),Cm()})}const zm=()=>{bbn.env.last_focus=bbn.dt().unix()},Hm=e=>{if(zm(),"ajax"!==bbn.env.nav)return;let n=e.target;if(n instanceof HTMLElement&&"A"!==n.tagName){let e=n;for(;e&&"A"!==e.tagName&&"BODY"!==e.tagName;)e=e.parentElement;n=e&&"A"===e.tagName?e:null}n instanceof HTMLElement&&n.hasAttribute("href")&&!n.hasAttribute("target")&&!n.classList.contains("bbn-no")&&(sl("Link clicked: "+n.getAttribute("href")),wm(n.getAttribute("href"),e))};function Im(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||fl(ul(e,0,1)))){let n=document.createElement("div");n.style.width=e;let t=!!n.style.width.length;return n.remove(),t}return!1}function Fm(...e){if(!e.length)return!1;for(let n of e)if(!il(n)||!bbn.var.regexp.ip.test(n))return!1;return!0}function Om(...e){if(!e.length)return!1;for(let n of e)if("[object Symbol]"!=={}.toString.apply(n))return!1;return!0}function Lm(e){const n=["BBN: "+e];n.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),sl.apply(this,n)}function Gm(e,n="",t=null){let r=new FormData,i=(e,n="")=>{(!t||ml(t)&&!t.includes(n))&&(e instanceof File?r.append(n,e):ml(e)?yl(e,(e,t)=>{i(e,n+"["+t+"]")}):dl(e)&&Object.keys(e).length?ll(e,(t,r)=>{r in e&&i(t,n?n+"["+r+"]":r)}):Hl(e)||void 0===e||r.append(n,e))};return i(e,n),r}function Bm(e){return"string"==typeof e?document.querySelector(e):e}function xm(...e){let n=pm(e);if(n.url)return ad(n.url,n.datatype,n.obj,e=>{Bd(n.url,e,n.successFn,n.errorFn,n.ele)},n.errorFn,n.abortFn)}function Rm(e,n,t,r){if("object"==typeof e&&"string"==typeof n){let i=e;const a=n.split(".");yl(a,(e,n)=>{if(!i){if(!r)throw new Error(bbn._("The object is invalid"));i={}}a.length-1===n?i[e]=t:i=i[e]})}}function jm(e,n){return Math.floor(Math.random()*(n-e+1)+e)}function Zm(e,n=" "){if(" "===n)return e.trim();if(!n)return e;if(n===e)return"";for(;0===e.indexOf(n);)e=ul(e,n.length);for(;e.lastIndexOf(n)===e.length-n.length;)e=ul(e,0,e.length-n.length);return e}function Um(e,n,t){return"string"==typeof e.toLowerCase()&&(n||(n=bbn.var.shortenLen),void 0!==t&&il(t)||(t="..."),e.length>n&&(e=ul(e,0,n)+t)),e}var Ym={_addLoader:Sl,_compareValues:Pl,_deleteLoader:$l,abort:function(e){let n=Jl(e);(null==n?void 0:n.aborter)&&n.aborter.abort("Operation canceled by the user.")},abortURL:function(e){yl(Ql(bbn.env.loaders,{url:e}),n=>{if(!n||!n.source)throw new Error("Impossible to find the loader with URL "+e);n.source.cancel("Operation canceled by the user.")})},addColors:Xl,addInputs:ed,addStyle:function(e,n){dl(n)&&ll(n,(n,t)=>{e.style[t]=n})},adjustHeight:function(){let e=arguments;return 1===e.length&&hl(e[0])&&(e=e[0]),nd("height",e)},adjustSize:nd,adjustWidth:function(){let e=arguments;return 1===e.length&&hl(e[0])&&(e=e[0]),nd("width",e)},ajax:ad,analyzeFunction:Zl,animateCss:function(e,n,t){e.classList.add("animated"),e.classList.add(n),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function e(r){r.target.removeEventListener(r.type,e),"function"==typeof t&&t.call(this),r.target.classList.remove(n)})},arrayBuffer2String:sd,arrayFromProp:function(e,n){let t=[];return yl(e,(e,r)=>{t.push(Al(e,n))}),t},autoExtend:function(e,n){bbn[e]||(bbn[e]={}),Ml(bbn[e],n)},baseName:ud,br2nl:function(e){return rd("<br />","\n",rd("<br/>","\n",rd("<br>","\n",e)))},calendar:function(e,n=!1){let t=Ld(e);return t.isValid?t.calendar():n&&il(n)?n:""},callback:Bd,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,function(e,n,t,r){return t?t.toUpperCase():n.toLowerCase()})},camelToCss:function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).replace("/^./",function(e){return e.toLowerCase()})},canvasToImage:function(e){let n=new Image;return n.src=e.toDataURL("image/png"),n},cast:function(e){var n;return e?"object"==typeof e?bbn.fn.isArray(e)?"Array ("+e.length+")":(null===(n=e.constructor)||void 0===n?void 0:n.name)||"{}":e.toString?e.toString():"string"==typeof e?e:"":""},center:function(e){let n=e.parentNode,t=n.clientWidth,r=n.clientHeight;for(;n&&(!t||!r);)n=e.parentNode,t=n.clientWidth,r=n.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+n.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+n.scrollLeft)+"px",e},checkProps:function(e,n,t=!1){return xd(e,n,t).result},checkPropsDetails:xd,checkPropsOrDie:function(e,n,t=!1){let r=xd(e,n,t);if(r.error)throw new Error(r.error);return!0},checkType:jd,circularReplacer:function(){const e=new WeakSet;return(n,t)=>{if("object"==typeof t&&null!==t){if(e.has(t))return;e.add(t),[void 0,Object,Array,null].includes(t.constructor)||(t=Ll(t)?t.bbnId?"__BBN_DOM__"+t.tagName+"/"+t.bbnId+t.bbnHash:"__BBN_DOM__"+t.tagName+"/"+t.className:Bl(t)?"__BBN_CP__"+t.$options.name+"/"+t.$cid:t.constructor.toString())}return t}},clone:Zd,colorToHex:function(e){let n=document.createElement("canvas").getContext("2d");return n.fillStyle=e,n.fillStyle},compare:Yl,compareConditions:ql,copy:function(e,n){return new Promise(t=>{if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?(navigator.clipboard.write([new ClipboardItem({[e.type.toString()]:e})]).then(()=>{t(!0)}),n||Ud(e,e.type.toString())):dl(e)&&ol(e.toBlob)?e.toBlob(r=>{const i=new ClipboardItem({[r.type.toString()]:r});navigator.clipboard.write([i]).then(()=>{n||Ud(e,r.type.toString()),t(!0)})}):(navigator.clipboard.writeText(e),n||Ud(e),t(!0)));let r=document.createElement("textarea");r.style.opacity="0",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),n||Ud(e),t(!0)}t(!1)})},correctCase:Rd,count:function(e,n,t=null,r="="){return Yd(e,n,t,r).length||0},crc32:function(e){let n=~0;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);n=n>>>8^qd[255&(n^r)]}return(-1^n)>>>0},createObject:Wd,cssExists:function(e){let n,t,r=document.styleSheets;for(let i=0;i<r.length;i++){n=1;try{t=r[i].rules||r[i].cssRules}catch(e){if(n=!1,"SecurityError"!==e.name)throw e}if(n)for(let n=0;n<t.length;n++)if(new RegExp("(^|\\s)"+td(e)+"(\\{|\\s)","g").test(t[n].selectorText))return!0}return!1},data2Html:function e(n,t=""){const r=!ml(n);let i='<ul class="bbn-bottom-xspadding '+(t||"bbn-ul")+'">';for(let a in n)i+="<li>",r&&(i+="<em>"+a+"</em>: "),n[a]&&(ml(n[a])||dl(n[a]))?i+=e(n[a],t):i+=null===n[a]?"<em>null</em>":n[a].toString?n[a].toString():n[a],i+="</li>";return i+='</ul><div class="bbn-bottom-xspadding '+(t||"bbn-div")+'"></div>',i},date:Kd,dateSQL:function(e,n){let t=Ld(e);if(t)return t.format("YYYY-MM-DD"+(n?"":" HH:mm:ss"))},deepPath:function e(n,t,r,i=[]){let a;return(a=Kl(n,t,0))>-1?(i.push(a),i):(yl(n,(n,a)=>{if(ml(n[r])){let o=i.slice();o.push(a);let s=e(n[r],t,r,o);if(!1!==s)return s}}),!1)},defaultAjaxAbortFunction:Vd,defaultAjaxErrorFunction:$d,defaultAlertFunction:function(e,n=null){alert(e)},defaultConfirmFunction:function(e,n,t=null){let r=0;confirm(e)&&ol(n)&&(n(),r=1),!r&&ol(t)&&t()},defaultEndLoadingFunction:Jd,defaultErrorFunction:function(e){sl(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,n){return!0},defaultPostLinkFunction:function(e,n=null){return!0},defaultPreLinkFunction:function(e,n=!1,t=null){return sl("defaultPreLinkFunction",e,n,t),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,n,t,r){return!0},deleteProp:function(e,n){jd(e,"object",bbn._("The obj must be an object in setProp")),jd(n,"string",bbn._("The prop must be a string in setProp")),delete e[n]},diffObj:function e(n,t,r=!1,i=!1){i||(Xd=[]);let a="unchanged";void 0===i&&(i=!1);let o=Wd();if(!ol(n)&&!ol(t)){if(Qd(n)||Qd(t)){let e=(s=n)===(u=t)||Cl(s)&&Cl(u)&&s.getTime()===u.getTime()?a:void 0===s?"created":void 0===u?"deleted":"updated";if(r||e!==a){let r=Wd();return Object.defineProperty(r,"type",{value:e,enumerable:!1}),Object.defineProperty(r,"data",{value:void 0===n?t:n,enumerable:!1}),Object.defineProperty(r,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==n&&Object.defineProperty(r,"newData",{value:t,enumerable:!1}),r}return!1}if(Ll(n)||Ll(t))return!1;if(Xd.includes(n)||Xd.includes(t))return!1;Xd.push(n,t);for(let i in n){if(ol(n[i]))continue;let a;void 0!==t[i]&&(a=t[i]);let s=e(n[i],a,r,!0);s&&(o[i]=s)}for(let i in t){if(ol(t[i])||void 0!==n[i])continue;let a=e(void 0,t[i],r,!0);a&&(o[i]=a)}}var s,u;return!(i&&!r&&!Nl(o))&&o},dirName:em,download:function(e,n="",t=null){return n&&"object"==typeof n&&(t=n,n=""),ad(e,"blob",t||{_bbn_download:1},(t,r)=>{if(!n){let t="content-disposition",i="attachment; filename=";n=(null==r?void 0:r[t])&&0===r[t].indexOf(i)?ul(r[t],i.length+1,r[t].length-i.length-2):ud(e)}if(nm(t)){let e=tm(n),r=["php","html"];if("string"==typeof n&&("type"in t&&"text/html"!==t.type||r.includes(e)))return void im(n,t)}},e=>{bbn.fn.defaultAjaxErrorFunction(e)})},downloadContent:im,each:yl,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:Gd,escapeDquotes:function(e){return il(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:td,escapeSquotes:function(e){return il(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return il(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,n){let t="";e.match("^(http|https)://")&&(t+="http","s"===(e=e.substring(4)).substr(0,1)&&(t+="s",e=e.substring(1)),t+="://",e=e.substring(3)),yl(em(e).split("/"),e=>{t+=encodeURIComponent(e)+"/"});let r=ud(e),i="?",a="";if(r.indexOf(i)){let e=r.split("?");i="&",a="?"+e[1],r=e[0]}return n&&il(n)?(n.match("^(\\&|\\?)")&&(n=n.substring(1)),n=i+n):n="",t+encodeURIComponent(r)+a+n},executeSlowly:function(e,n){return sm(this,void 0,void 0,function*(){for(let t=0;t<e.length;t++){yield om();let r=n(e[t],t);if(r instanceof Promise&&(r=yield r),!1===r)return!1}return!0})},extend:Ml,extendOut:function e(...n){let t=null;for(let r of n){if(!dl(r))throw new Error("Each argument for extendOut must be an object, "+typeof r+" given");if(null===t)t=r;else for(let n in r)dl(t[n],r[n])?e(t[n],r[n]):void 0===t[n]&&(t[n]=r[n])}return t},fdate:function(e,n=!1){let t=Ld(e),r=!1;return!0===n&&(r=!0),t.isValid?t.fdate(!1,r):n&&il(n)?n:""},fdatetime:function(e,n=!1){let t=Ld(e);return t.isValid?t.fdate(!1,!0):n&&il(n)?n:""},fieldValue:um,fileExt:tm,filter:Yd,filterToConditions:Wl,findAll:function e(n,t,r,i=[]){let a,o=0;for(;(a=Kl(n,t,o))>-1;)i.push(n[a]),o=a+1;return yl(n,n=>{ml(n[r])&&e(n[r],t,r,i)}),i},firstVarElement:function(e){const n=e.indexOf("["),t=e.indexOf(".");return-1===n&&-1===t?e:-1===n?e.substring(0,t):-1===t?e.substring(0,n):e.substring(0,Math.min(n,t))},fori:function(e,n,t=e.length-1,r=0){if(ml(e)){let i=e.length-1;fl(t)&&0<t&&t<=i||(t=i),(!fl(r)||!(0<=r&&r<i)||r>t)&&(r=0);for(let i=r;i<=t;i++)if(!1===n(e[i],i))return}},forir:function(e,n,t=e.length-1,r=0){if(ml(e)){let i=e.length-1;fl(t)&&0<t&&t<=i||(t=i),(!fl(r)||!(0<=r&&r<i)||r>t)&&(r=0);for(let i=t;i>=r;i--)if(!1===n(e[i],i))return}},format:function(e){let n=Array.prototype.slice.call(arguments,1);if(n.length){let t=0;return e.replace(/\%([d|s])/g,(e,r)=>{let i=n[t++];return jd(i,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),i})}return e},formatBytes:function(e,n=2){if(!e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(n<0?0:n))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]},formatDate:function(e,n){const t=Ld(e);return t.isValid?t.format(n):""},formatSize:function(e,n){return fl(e)?e+"px":il(e)?e:!n&&"auto"},formdata:cm,fphone:function(e){var n;if(fl(e)&&(e=e.toString()),il(e)){const t=(null===(n=bbn.var)||void 0===n?void 0:n.phoneCodes)||[];let r="",i="",a="";if(t.length&&yl(t,n=>{e.startsWith(n.prefix)&&n.prefix.length>i.length&&(i=n.prefix,a=n.mask||"")}),!a.length&&e.startsWith("+")){i.length||(i=e.substr(0,3));const n=e.slice(i.length);for(let e=0;e<n.length;e++)e+1<=n.length&&e%2==0&&(a+="0"+(n[e+1]?"0":"")+" ");a=a.trim()}if(a.length){i.length&&(r=i+" ",e=e.slice(i.length));let n=0;return r+=a.replace(/[0-9]/g,()=>e[n++]||""),r}}return e},fromXml:function(e,n){let t=null;if(window.DOMParser)t=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if(t=new window.ActiveXObject("Microsoft.XMLDOM"),t.async=!1,!t.loadXML(e))throw t.parseError.reason+" "+t.parseError.srcText}function r(e,t){if("#text"==e.nodeName){let n=e.nodeValue;return void(n.trim()&&(t["#text"]=n))}let i={},a=t[e.nodeName];if(a?Array.isArray(a)?t[e.nodeName].push(i):t[e.nodeName]=[a,i]:n&&-1!=n.indexOf(e.nodeName)?t[e.nodeName]=[i]:t[e.nodeName]=i,e.attributes)for(let n of e.attributes)i[n.nodeName]=n.nodeValue;for(let n of e.childNodes)r(n,i)}let i={};for(let e of t.childNodes)r(e,i);return i},ftime:function(e,n){let t=Ld(e);return t.isValid?t.ftime():n&&il(n)?n:""},getAllTags:function(){return lm(Array.prototype.map.apply(document.all,[e=>e.tagName.toLowerCase()]))},getAncestors:dm,getAttributes:function(e){e.getAttributeNames||Gd("The element is not a proper HTML Element");let n=Object.create(null);return e.getAttributeNames().forEach(t=>{n[t]=e.getAttribute(t)}),n},getBrowserName:function(){const e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge"):case e.includes("edg/"):return"Edge";case e.includes("opr")&&!!window.opr:return"Opera";case e.includes("chrome")&&!!window.chrome:return"Chrome";case e.includes("trident"):return"Internet Explorer";case e.includes("firefox"):return"Firefox";case e.includes("safari"):return"Safari";default:return"Other"}},getBrowserVersion:function(){const e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge/"):return e.split("edge/")[1].split(" ")[0];case e.includes("edg/"):return e.split("edg/")[1].split(" ")[0];case e.includes("opr/")&&!!window.opr:return e.split("opr/")[1].split(" ")[0];case e.includes("chrome/")&&!!window.chrome:return e.split("chrome/")[1].split(" ")[0];case e.includes("trident/"):return e.split("trident/")[1].split(" ")[0];case e.includes("firefox/"):return e.split("firefox/")[1].split(" ")[0];case e.includes("safari/"):return e.split("version/")[1].split(" ")[0];default:return""}},getChrono:function(e="default"){return bbn.fn.microtimestamp()-this.constructor.chronos[e]},getCookie:function(e){let n=e+"=",t=document.cookie.split(";");for(let e=0;e<t.length;e++){let r=t[e];for(;" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(n)){let e=r.substring(n.length,r.length);if(e)return JSON.parse(unescape(e)).value}}return null},getCssVar:mm,getDay:function(e){let n=Kd(e);if(n){let e=n.getTime(),r=n.getYear(),i=365*(r-1970);n.getMonth()<2&&r--;for(var t=1972;t<=r;t+=4)i++;return i+Math.floor(e/864e5)}return!1},getDeviceType:fm,getEventData:function(e){let n=e.dataTransfer||e.clipboardData,t=n.getData("Text"),r={raw:t,files:[],str:[]},i=new Promise((i,a)=>{let o=!(n instanceof DataTransfer);if(!t&&"copy"===e.type){let e=window.getSelection();r.raw=e.toString();let n=hm();r.str.push({type:"text/plain",data:r.raw}),n!==r.raw?r.str.push({type:"text/html",data:n}):0===r.raw.trim().indexOf("<")&&r.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+r.raw+"\n</code>"}),o=!0,i(r)}if(!o){let e=[],t=n.items.length;yl(n.items,(a,s)=>{let u=a.kind,c=a.type;if("file"===u){let u=n.files[s];if(!c&&u.name){let e=u.name.split(".");c=e[e.length-1]}let l=u?u.name:bbn._("untitled"),d=u?u.size:null,m=u?u.lastModified:null,f=a.getAsFile();f?(o=!0,t--,r.files.push({type:c,data:f,name:l,size:d,mdate:m}),e.push(l),t||(r.raw||(r.raw=e.join(", ")),i(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+l)}else o=!0,a.getAsString(n=>{t--,r.str.push({type:c,data:n}),"text/plain"===c&&e.push(name),t||(r.raw||(r.raw=e.join(", ")),i(r))})})}o||setTimeout(()=>{i(r)})});return i},getField:function(e,n,t="",r=null,i="=",a=0,o=!1,s=void 0){let u;return t&&["object","function"].includes(typeof t)&&6 in arguments&&(s=o),n?(u=Vl(e,t,r,i,a,o,void 0),void 0===u?s:u[n]):s},getFieldValues:function(e,n,t,r,i){jd(n,"string"),t&&(e=Ql(e,t,r,i));let a=[];return yl(e,e=>-1===a.indexOf(e[n])?a.push(e[n]):null),a},getFileContent:function(){let e,n,t="",r="text";bbn.fn.each(arguments,i=>{"string"==typeof i?["binary","text"].includes(i.toLowerCase())?r=i.toLowerCase():t||(t=i,"image"===t&&(t="image/*")):bbn.fn.isFunction(i)&&(e?n||(n=i):e=i)});let i=document.createElement("input");i.type="file",t&&i.setAttribute("accept",t),i.onchange=function(t){var a;const o=null===(a=i.files)||void 0===a?void 0:a[0];if(!o)return;const s=new FileReader;"binary"===r?s.readAsArrayBuffer(o):s.readAsText(o,"UTF-8"),s.onload=function({target:n}){e&&e(null==n?void 0:n.result)},s.onerror=function(){n&&n("error reading file")}},i.click()},getIndex:function(e,n=""){return e.parentElement?(n||Array.from(e.parentElement.children).indexOf(e),Array.from(e.parentElement.children).filter(e=>e.matches(n)).indexOf(e)):-1},getHtml:function(e,n=!1){let t=e.innerHTML();return n&&(t=ym(t)),t.trim()},getHTMLOfSelection:hm,getLoader:Jl,getPath:Gl,getProp:function(e,n){return jd(e,"object",bbn._("The obj must be an object in setProp")),jd(n,"string",bbn._("The prop must be a string in setProp")),e[n]},getProperty:Al,getRequestId:id,getRow:Vl,getScrollBarSize:function(){if(void 0===bbn.env.scrollBarSize){let e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);let n=e.offsetWidth;e.style.overflow="scroll";let t=document.createElement("div");t.style.width="100%",e.appendChild(t);let r=t.offsetWidth;e.parentNode.removeChild(e);let i=n-r;bbn.env.scrollBarSize=i?i+1:0}return bbn.env.scrollBarSize},getSortingMoves:function(e,n){if(e.length!==n.length)throw new Error("Lengths must match.");const t=new Set(n);if(t.size!==n.length)throw new Error("dst has duplicates.");const r=new Set(e);if(r.size!==e.length)throw new Error("src has duplicates.");if(e.length!==t.size||Array.from(r).some(e=>!t.has(e)))throw new Error("Arrays must contain the same unique values.");const i=new Map(n.map((e,n)=>[e,n])),a=e.map(e=>i.get(e)),o=(e=>{const n=e.length,t=[],r=Array(n).fill(-1);for(let i=0;i<n;i++){let n=e[i],a=0,o=t.length;for(;a<o;){const r=a+o>>1;e[t[r]]<n?a=r+1:o=r}a>0&&(r[i]=t[a-1]),t[a]=i}const i=[];for(let e=t.length?t[t.length-1]:-1;-1!==e;e=r[e])i.push(e);return i.reverse()})(a),s=new Set(o.map(n=>e[n])),u=Array(n.length).fill(-1);for(let e=n.length-2;e>=0;e--)u[e]=u[e+1],s.has(n[e+1])&&(u[e]=e+1);const c=e.slice(),l=new Map(c.map((e,n)=>[e,n])),d=[];for(let e=0;e<n.length;e++){const t=n[e];if(s.has(t))continue;const r=l.get(t);if(void 0===r)throw new Error("Inconsistent state");const i=u[e],a=-1!==i?l.get(n[i]):c.length;if(void 0===a)throw new Error("Inconsistent state");const o=r<a?a-1:a;if(r!==o){const[e]=c.splice(r,1);c.splice(o,0,e),d.push({from:r,to:o,value:t}),l.clear();for(let e=0;e<c.length;e++)l.set(c[e],e)}}return d},getText:function(e){return e.innerText().trim()},getTimeoff:function(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)},happy:function(...e){return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),sl.apply(this,e),this},hash:Rl,hex2rgb:function(e){"#"!==e.charAt(0)&&(e="#"+e),4===e.length&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},history:function(){return window.history||!1},html2text:Mm,imageToCanvas:gm,imgToBase64:function(e,n="image/png"){return gm(e).toDataURL(n)},info:function(...e){return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),sl.apply(this,e),this},init:function(e,n){var t,r;if(!bbn.env.isInit){bbn.env.root=(null===(r=null===(t=globalThis.document)||void 0===t?void 0:t.baseURI)||void 0===r?void 0:r.length)?globalThis.document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==ul(bbn.env.root,-1)&&(bbn.env.root+="/"),"object"==typeof e&&Ml(!0,bbn,e);const[n,i]=bbn.env.url.split("?"),a=i?i.split("&").reduce((e,n)=>{const[t,r]=n.split("=");return e[t]=r,e},{}):{};bbn.env.getParameters=a,bbn.env.path=ul(n,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e),Nm(),globalThis.document&&(bbn.var.colors&&Xl(bbn.var.colors),document.addEventListener("visibilitychange",()=>{document.hidden?bbn.env.isVisible=!1:bbn.env.isVisible=!0}),document.addEventListener("focus",e=>{e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.isFocused=!0,bbn.env.last_focus=Dm()}),document.addEventListener("blur",e=>{e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.isFocused=!1,bbn.env.last_focus=Dm()}),document.addEventListener("click",Hm),document.addEventListener("keydown",Hm),document.addEventListener("focusin",zm),document.addEventListener("focusout",zm),window.addEventListener("hashchange",()=>{bbn.env.hashChanged=(new Date).getTime()},!1),window.addEventListener("resize",()=>{bm()}),window.addEventListener("orientationchange",()=>{bm()}),bm(),Tm()&&(document.body.classList.add("bbn-mobile"),Em()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){let n=window.history;if(!bbn.env.historyDisabled&&n&&bbn.fn.defaultHistoryFunction(n.state)){let e=n.state;e?wm(e.url,Ml({title:e.title||bbn.env.siteTitle},e.data||{})):e&&e.data&&ol(e.data.script)&&e.data.script()}}),window.addEventListener("online",()=>{bbn.env.online=!0}),window.addEventListener("offline",()=>{bbn.env.online=!1}),bbn.env.isInit=!0,document.dispatchEvent(new Event("bbninit")))}},isActiveInterface:function(e=600){return!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:ml,isBlob:nm,isBoolean:function(...e){if(!e.length)return!1;for(let n of e)if(![!0,!1].includes(n))return!1;return!0},isCanvas:rm,isColor:function(...e){if(!e.length)return!1;var n=new RegExp("^(#[a-f0-9]{6}|#[a-f0-9]{3}|rgb *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|rgba *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|black|green|silver|gray|olive|white|yellow|maroon|navy|red|blue|purple|teal|fuchsia|aqua)$","i");for(let t of e){if(!il(t))return!1;if(!n.test(t))return!1}return!0},isComment:function(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof Comment))return!1;return!0},isCp:Bl,isDataURL:function(...e){if(!e.length)return!1;for(let n of e)if(!/^data:([a-z]+\/[a-z0-9\-\+\.]+(;[a-z\-]+\=[a-z0-9\-\.]+)?)?(;base64)?,/i.test(n))return!1;return!0},isDate:Cl,isDesktopDevice:function(){return"desktop"===fm()},isDimension:function(...e){if(!e.length)return!1;for(let n of e){if("number"!=typeof n||n<0)return!1;if(!Im(n))return!1}return!0},isDom:Ll,isEmail:function(...e){if(!e.length)return!1;let n=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;for(let t of e){if(!il(t))return!1;if(!n.test(t))return!1}return!0},isEmpty:zl,isEvent:function(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof Event))return!1;return!0},isFocused:function(e,n=!1){return e===document.activeElement||n&&e.contains&&e.contains(document.activeElement)},isFunction:ol,isHex:function(e){return Boolean(e.match(/^(0x)?[0-9a-f]+$/i))},isHostname:function(...e){if(!e.length)return!1;for(let n of e){if(!il(n))return!1;if(!Fm(n)&&!bbn.var.regexp.hostname.test(n))return!1}return!0},isInside:function(e,n){let t=dm(e);if(t.length){if(il(n)){let e=!1;return yl(t,t=>{if(t.matches&&t.matches(n))return e=!0,!1}),e}if(n instanceof HTMLElement)return t.indexOf(n)>-1}return!1},isInt:al,isInViewport:function(e,n=!1){const t=e.getBoundingClientRect();if(n)return t.top>=0&&t.left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth)&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight);const r=e.offsetHeight,i=e.offsetWidth;return t.top>=-r&&t.left>=-i&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+i&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:Fm,isIterable:hl,isMobile:Tm,isMobileDevice:_m,isNotObject:Qd,isNull:Hl,isNumber:fl,isObject:dl,isPercent:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^\d+(?:\.\d+)?%$/))return!1;return!0},isPrimitive:md,isPromise:function(...e){if(!e.length)return!1;for(let n of e)if("[object Promise]"!=={}.toString.apply(n))return!1;return!0},isPropSize:function(e){let n=!1;return yl(["width","height","gap","margin","padding","top","left","right","bottom"],t=>{if(-1!==e.indexOf(t))return n=!0,!1}),n},isSame:Ul,isSQLDate:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^([1-2]\d{3})-((0\d)|(1[12]))-(([0-2]\d)|(3[01]))(?:( [0-2]\d):([0-5]\d):([0-5]\d))?$/))return!1;return!0},isString:il,isSymbol:Om,isTabletDevice:Em,isURL:function(...e){if(!e.length)return!1;for(let n of e)if(!bbn.var.regexp.url.test(n))return!1;return!0},isUid:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^[0-9a-f]{32}$/i))return!1;return!0},isValidDimension:Im,isValidName:function(...e){if(!e.length)return!1;for(let n of e)if(!il(n)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(n))return!1;return!0},isVue:function(...e){if(!e.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue){for(let n of e)if(!n||"function"!=typeof n.render)return!1}else for(let n of e)if(!(n instanceof window.Vue))return!1;return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||bbn.cp.isComponent(...e)},isWritable:function(e,n){let t;for(;e&&(t=Object.getOwnPropertyDescriptor(e,n),!t);)e=Object.getPrototypeOf(e);return!t||Boolean(t.writable||t.set)},iterate:ll,lightenDarkenHex:function(e,n){if(e&&n){let t="#"===e[0];e=t?e.slice(1):e;let r=parseInt(e,16),i=(r>>16)+n,a=(r>>8&255)+n,o=(255&r)+n;return i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),o>255?o=255:o<0&&(o=0),(t?"#":"")+(o|a<<8|i<<16).toString(16)}},link:wm,log:sl,makeReactive:function e(n,t,r,i){const a=(null==r?void 0:r.$cid)||"",o="__bbn_"+(a?a+"_":"");if(n&&"object"==typeof n&&[void 0,Object,Array].includes(n.constructor)){if(n.__bbnIsProxy&&n.__bbnParent===r)return n;r&&r.$options&&"bbn-loadbar"===r.$options.name&&sl(["MAKING bbn-loadbar",n]),n.__bbnWatchers||Reflect.defineProperty(n,"__bbnWatchers",{value:Wd(),writable:!0,configurable:!0,enumerable:!1});return new Proxy(n,{get(s,u){const c=Reflect.get(s,u),l=s.__bbnRoot||s;if(Om(u))return Reflect.get(l,u);const d=i?i+"."+u:u,m=o+(fl(u)?u.toString():u);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(u)&&ml(s))return function(...e){let n=l[u](...e);return Lm("DOING ARRAY STUFF"),sl(s.__bbnParent),t(s,"length",r),n};if(ol(c))return c;if("__bbnRoot"===u){let e=n;for(;e&&(null==e?void 0:e.__bbnTarget);)e=e.__bbnTarget;return e}return"__bbnIsProxy"===u||("__bbnTarget"===u?s:"__bbnParent"===u?r:"__bbnWatchers"===u?s.__bbnWatchers:0===u.indexOf("__bbn_")?Reflect.get(s,u):"length"===u&&ml(s.__bbnRoot||s)?l.length:u in s&&c&&"object"==typeof c&&[void 0,Object,Array].includes(c.constructor)?(c.__bbnIsProxy&&c.__bbnParent===r||(m in l||Reflect.defineProperty(l,m,{value:e(c,t,r,d),writable:!0,configurable:!0,enumerable:!1}),l[m].__bbnIsProxy&&!l.__bbnWatchers[a]&&(l.__bbnWatchers[a]=d)),l[m]):c)},set(n,s,u){if(Om(s))return Reflect.get(n,s,u);const c=n.__bbnRoot||n,l=i?i+"."+s:s;if(Om(s))return Reflect.get(n,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&sl(["Setting proxy prop in "+r.$options.name,n,s,u]),!Ul(c[s],u)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(c,s,{value:e(u,t,r,l),writable:!0,configurable:!0,enumerable:!1});else if(u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)){const n=o+(fl(s)?s.toString():s);Reflect.defineProperty(c,n,{value:e(u,t,r,l),writable:!0,configurable:!0,enumerable:!1}),c[n].__bbnIsProxy&&!c.__bbnWatchers[a]&&(c.__bbnWatchers[a]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&sl(["Setting proxy prop in "+r.$options.name+" "+(fl(s)?s.toString():s),u,n]),Reflect.set(c,s,u),t(n,s,r)}return!0},defineProperty(n,a,s){const u=n,c=i?i+"."+a:a;if("__bbnWatchers"===a||Om(a)||0===a.indexOf("__bbn_"))Reflect.defineProperty(u,a,s);else{const n=o+(fl(a)?a.toString():a);Reflect.defineProperty(u,n,{value:e(s.value,t,r,c),writable:!0,configurable:!0,enumerable:!1})}return t(n,a,r),!0},deleteProperty(e,n){const t=e;if(0===n.indexOf("__bbn_"))Reflect.deleteProperty(t,n);else{const r=o+(fl(n)?n.toString():n);Reflect.deleteProperty(t,r),Reflect.deleteProperty(e,n)}return!0}})}return n},map:function e(n,t,r,i=0){return n.map((n,a)=>(n=t(n,a,i),r&&n[r]&&ml(n[r])&&(n[r]=e(n[r],t,r,i+1)),n))},md5:jl,microtimestamp:function(){return window.performance.now()+performance.timeOrigin},money:function(e,n,t,r,i,a,o){if(i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),t||(t=void 0===t&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),n||(n=!(void 0!==n||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),r||(r=!(void 0!==r||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),fl(o)||(o=n?3:0),0===e&&"number"==typeof o&&o>0){let r=e.toFixed(o).replace(".",i);return t&&(r+=" "+(n?"K"+t:t)),r}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(t?" "+t:"");if("string"==typeof e&&(e=Number(e)),"number"!=typeof e)throw new Error("The value must be a number");n&&e&&(e/=1e3,t&&(t="K"+t));let s=e.toFixed(o),u=0,c=1e4;return s&&(c=s.indexOf("."),c<=0?c=1e4:u=s.length-c),s.replace(/./g,function(e,n,t){return"."===e?i:n&&(t.length-n-u)%3==0&&n<c?a+e:e})+(t?" "+t:"")},move:function(e,n,t){if(t>=e.length){let n=t-e.length;for(;1+n--;)e.push(void 0)}return e.splice(t,0,e.splice(n,1)[0]),e},multiorder:function(e,n){if(!n)return e;let t;if(Array.isArray(n)||"object"!=typeof n)t=n;else for(var r in t=[],n)t.push({field:r,dir:n[r]});if(!Array.isArray(t))throw new Error("The orders argument must be an array");return e.slice().sort((e,n)=>{let r;for(let i of t)if(r=Pl(e,n,i.field,i.dir),0!==r)return r;return 0})},mutateArray:function(e,n,t=null){if(!ml(e,n))throw new TypeError("mutateArray can only be called with arrays");t?jd(t,"function","The hash function must be a function"):t=Rl;const r=new Map(n.map(e=>[t(e),e]));let i=[];n.forEach(e=>{i.push(e)});let a=e.length;for(;a--;)r.has(t(e[a]))||e.splice(a,1);for(let n=0;n<i.length;n++)if(n>=e.length||!Ul(e[n],i[n])){const t=Kl(e,i[n]);if(-1!==t){const[r]=e.splice(t,1);e.splice(n,0,r)}else e.splice(n,0,i[n])}return e.length>i.length&&e.splice(i.length,e.length-i.length),e},mutateObject:function(e,n,t){if(!dl(e,n))throw new TypeError("mutateObject can only be called with objects parameters");t?jd(t,"function","The hash function must be a function"):t=Rl;const r=Object.keys(n);for(let n in e)r.includes(n)||delete e[n];return r.forEach(t=>{Ul(e[t],n[t])||(e[t]=n[t])}),e},nl2br:function(e,n){return rd("\n","<br>"+(n?"\n":""),e)},numProperties:Nl,objectToFormData:Gm,order:function(e,n,t="asc"){return e?e.sort(function(e,r){return Pl(e,r,n,t)}):e},outerHeight:function(e){if((e=Bm(e))&&"offsetHeight"in e){let n=window.getComputedStyle(e),t=parseFloat(n.marginTop)+parseFloat(n.marginBottom);return Math.ceil(e.offsetHeight+t)}},outerWidth:function(e){e=Bm(e);let n=window.getComputedStyle(e),t=parseFloat(n.marginLeft)+parseFloat(n.marginRight);return Math.ceil(e.offsetWidth+t)},percent:function(e,n){return n/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:xm,postOut:function(e,n,t=null,r=""){let i=document.body.querySelector("form#bbn-form_out");i||(i=document.createElement("form"),i.classList.add("bbn-no"),i.setAttribute("id","bbn-form_out"),i.setAttribute("method","post"),i.setAttribute("enctype","multipart/form-data-encoded"),Rm(i,"style.display","none"),document.body.appendChild(i)),i instanceof HTMLFormElement&&(i.innerHTML="",i.setAttribute("action",e),i.setAttribute("target",r||"_blank"),n||(n={}),(n=Wd(n)).bbn||(n.bbn="public"),ed(i,n),i.submit(),t&&t())},printf:function(e){var n=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,t){return void 0!==n[t]?n[t]:e})},quotes2html:function(e,n){return n&&0!==n.toLowerCase().indexOf("s")||(e=rd("'","'",e)),n&&0!==n.toLowerCase().indexOf("d")||(e=rd('"',""",e)),e},randomInt:jm,randomString:function(e,n,t){let r,i,a={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};t||(t="nlu"),e||(r=jm(8,14)),"string"==typeof n?(t="n",delete a.l,delete a.u,a.n=n,r||(r=e)):"number"==typeof n&&e<n?r=jm(e,n):e&&(r=e);let o="";for(let e=0;e<r;e++)0===e?"n"!==t&&(i=-1===t.indexOf("u")?"l":"u"):i=t[Math.floor(Math.random()*t.length)],o+=a[i][Math.floor(Math.random()*a[i].length)];return o},range:function(e,n,t){return Array.from({length:(n-e)/t+1},(n,r)=>e+r*t)},removeAccents:kl,removeEmpty:function(e){var n=[];if(ml(e))for(let t=0;t<e.length;t++){let r=!1;e[t]&&(ml(e[t])?e[t].length&&(r=!0):dl(e[t])?Nl(e[t])&&(r=!0):r=!0),r&&n.push(e[t])}return n},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:ym,removePrivateProp:cl,removeTrailingChars:function(e,n){if(n||(n=" "),n.length){for(;ul(e,-n.length)===n;)e=ul(e,0,e.length-n.length);for(;ul(e,0,n.length)===n;)e=ul(e,n.length)}return e},repeat:function(e,n){return e.repeat(n)},replaceAll:rd,replaceSelection:function(e,n){let t,r,i;if(t=window.getSelection(),t.getRangeAt&&t.rangeCount){if(r=window.getSelection().getRangeAt(0),r.deleteContents(),r.createContextualFragment)i=r.createContextualFragment(e);else{const n=document.createElement("div");let t;for(n.innerHTML=e,i=document.createDocumentFragment();t=n.firstChild;)i.appendChild(t)}const a=i.firstChild,o=i.lastChild;r.insertNode(i),t.removeAllRanges(),n?(a&&(r.setStartBefore(a),r.setEndAfter(o)),t.addRange(r)):(r.setStartAfter(o),t.addRange(r))}},resize:bm,rgb2hex:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},riterate:function(e,n,t=!1){return ll(e,n,t,!0)},roundDecimal:function(e,n){return Number(Math.round(parseFloat(e+"e"+n+"e-"+n)))},sanitize:function(e,n="_"){let t=["[","]","{","}","(",")","-","+","*","/"],r="[";for(let e=0;e<n.length;e++)t.includes(n[e])&&(r+="\\"),r+=n[e];r+="]+";let i=new RegExp(r,"g");return Zm(kl(e).replace(/[^a-z0-9]/gi,n).replace(i,n),n)},search:Kl,selectElementText:function(e,n=null){if(n=n||window,e instanceof HTMLInputElement)return void e.select();let t,r,i=n.document;n.getSelection&&i.createRange?(t=n.getSelection(),r=i.createRange(),r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r)):"createTextRange"in i.body&&"function"==typeof i.body.createTextRange&&(r=i.body.createTextRange(),r.moveToElementText(e),r.select())},selector:Bm,setCookie:function(e,n,t){let r="";if(t){let e=new Date;e.setTime(e.getTime()+24*t*60*60*1e3),r="; expires="+e.toUTCString()}let i=escape(JSON.stringify({value:n}));document.cookie=e+"="+i+r+"; path=/"},setCssVar:function(e,n){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,n)},setNavigationVars:vm,setProp:function(e,n,t,r=!0,i=!0){Object.defineProperty(e,n,{value:t,writable:r,configurable:i})},setProperty:Rm,shorten:Um,shortenObj:function e(n,t=100){let r=Zd(n);return yl(r,(n,i)=>{il(n)&&n.length>t?r[i]=Um(n,t):n&&"object"==typeof n&&(r[i]=e(n))}),r},shuffle:function(e){let n,t=e.length;for(;0!=t;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e},simpleHash:Ol,simpleHash1:Il,simpleHash2:Fl,startChrono:function(e){let n=bbn.fn.microtimestamp();return this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=n,e},stopChrono:function(e,n){if(this.constructor.chronos[e||"default"]){let t=bbn.fn.microtimestamp()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],n&&(t=Math.round(t)/1e3),t}throw Error("No chrono with name "+(e||"default"))},stream:function(e,n,t,r,i,a){const o=id(e,t,"json"),s=Jl(o);if(null==s?void 0:s.loader)return s.loader;t||(t={}),bbn.env.token&&(t._bbn_token=bbn.env.token);const u=new AbortController;let c="";const l=e=>{if(e.length){e=e.indexOf("\n")>-1?bbn.fn.removeEmpty(e.split("\n")):[e];for(let t in e)try{const r=JSON.parse(e[t]);(null==r?void 0:r.__bbn_stream_ping__)||n(r)}catch(e){throw e}}},d=fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",signal:u.signal,body:JSON.stringify(t||{})}).then(e=>{if(e.body){const r=e.body.getReader(),i=ol(n);r.read().then(function e({done:s,value:u}){if(s)return $l(o,t),c&&l(c),void(a&&a());if(i)if(c+=sd(u).trim(),bbn.fn.log(["STREAM RESULT",c.length,c]),c)try{l(c),c=""}catch(e){}else n();else bbn.fn.log(["STREAM SUCCESS IS FN? "+i]);return r.read().then(e)})}}).catch(n=>{let a=!(!(s=n)||!0!==s.__BBN_CANCEL__);var s;if($l(o,t,a),a){let t=1;ol(i)&&(t=i(n.message,e)),t&&Vd(n.message,e)}else{let e=1;ol(r)&&(e=r(n.request,n)),e&&$d(n.request,n.response?n.response.data:"",n.response?n.response.status:n)}});return Sl(o,d,u),d},string2ArrayBuffer:function(e){for(var n=new ArrayBuffer(2*e.length),t=new Uint16Array(n),r=0,i=e.length;r<i;r++)t[r]=e.charCodeAt(r);return n},submit:function(e,n,t){let r,i=e.getAttribute("action")||bbn.env.path;if(""===i&&(i="."),"string"==typeof i&&(0!==i.indexOf("http")||-1!==i.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(n&&n.preventDefault(),r=cm(e),r)){e.setAttribute("action",null);const n=[i,r];!t&&e.getAttribute("data-script")&&(t=(t=new Function(e.getAttribute("data-script")))()),t&&n.push(t),xm(...n)}},substr:ul,sum:function(e,n,t,r,i){let a=0;return yl(Yd(e,t,r,i),e=>{let t="function"==typeof n?n(e):e[n];t&&(a+=parseFloat(t)||0)}),a},timestamp:Dm,toCSV:function(e,n=",",t="",r='"'){n||(n=","),r||(r='"');let i="",a=e.length;return yl(e,(e,o)=>{let s=ml(e)?e.length:Object.values(e).length,u=0;yl(e,e=>{i+="string"==typeof e?r+rd(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,u++,u<s&&(i+=n)}),o<a-1&&(i+=t+"\n")}),i},toggleFullScreen:function(){"mozRequestFullScreen"in window.document.documentElement?window.document.mozFullScreen?window.document.mozCancelFullScreen():"function"==typeof window.document.documentElement.mozRequestFullScreen&&window.document.documentElement.mozRequestFullScreen():"webkitRequestFullScreen"in window.document.documentElement?window.document.webkitIsFullScreen?window.document.webkitCancelFullScreen():"function"==typeof window.document.documentElement.webkitRequestFullScreen&&window.document.documentElement.webkitRequestFullScreen():"msRequestFullScreen"in window.document.documentElement?window.document.msFullscreenEnabled?window.document.msExitFullscreen():"function"==typeof window.document.documentElement.msRequestFullScreen&&window.document.documentElement.msRequestFullScreen():"requestFullscreen"in window.document&&(window.document.fullscreenEnabled?window.document.exitFullscreen():window.document.documentElement.requestFullscreen()),setTimeout(function(){bm()},0)},translate:function(e,n){let t=n?bbn.lng[0===n.indexOf("_")?n:"_"+n]:bbn.lng;ll(e,(e,n)=>{t[n]=e})},treatAjaxArguments:pm,treatForHash:xl,trim:Zm,uniqString:function(...e){for(var n="",t=0;t<e.length;t++)if(e[t])if("object"==typeof e[t])if(ml(e[t]))n+=JSON.stringify(e[t]);else{let r={};yl(Object.keys(e[t]).sort(),n=>{r[n]=e[t][n]}),n+=JSON.stringify(r)}else"string"!=typeof e[t]?n+=e[t].toString():n+=e[t];else n+="__bbn_empty__";return jl(n)},unique:lm,upload:function(e,n,t=null,r=null,i=null){const a=()=>rl.run("post",e||bbn.env.path,{data:Gm(n),headers:{},onUploadProgress(e){if(i){let n=Math.round(100*e.loaded/e.total);i(n,e.loaded,e.total)}}});return t||r?a().then(e=>{t&&(sl("SUCCESS",e),t(e))}).catch(e=>{r&&(sl("ERROR",e),r(e))}):a()},warning:Lm,yieldToBrowser:om};const qm={version:"1.0.1",opt:{_cat:{}},app:{},_:Uc,$:function(e,n){if(null==n?void 0:n.querySelectorAll)return n.querySelectorAll(e);if(n)throw new Error("Invalid context");return document.body.querySelectorAll(e)},lng:{select_unselect_all:"Select/Clear all",select_all:"Select all",search:"Search",loading:"Loading...",choose:"Choose",error:"Error",server_response:"Server response",reload:"Reload",errorText:"Something went wrong",closeAll:"Close all",closeOthers:"Close others",pin:"Pin",arrange:"Arrange",cancel:"Cancel",unpin:"Unpin",yes:"Yes",no:"No",unknown:"Unknown",untitled:"Untitled",confirmation:"Confirmation",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},var:Jc,dt:Ld,com:rl,env:Qc,db:Dl,fn:Ym,info:[{value:"ajax",label:"Loading and streaming",description:"Functions related to Ajax requests",icon:"nf nf-fa-rocket"},{value:"browser",label:"Browser-only",description:"Functions that can only be run in the browser",icon:"nf nf-fa-desktop"},{value:"convert",label:"Conversion",description:"Functions related to data conversion",icon:"nf nf-fa-exchange"},{value:"datetime",label:"Date and time",description:"Functions related to dates and times",icon:"nf nf-fa-calendar"},{value:"form",label:"Form manipulation",description:"Functions related to form manipulation and validation",icon:"nf nf-fa-edit"},{value:"html",label:"HTML manipulation",description:"Functions related to HTML manipulation and DOM interaction",icon:"nf nf-fa-html5"},{value:"loop",label:"Looping",description:"Functions related to looping through arrays and objects",icon:"nf nf-fa-repeat"},{value:"misc",label:"Miscellaneous",description:"Miscellaneous functions that do not fit into other categories",icon:"nf nf-fa-cubes"},{value:"object",label:"Object manipulation",description:"Functions related to object manipulation and inspection",icon:"nf nf-fa-object_group"},{value:"phone",label:"Phone and contact",description:"Functions related to phone numbers and contact information",icon:"nf nf-fa-phone"},{value:"string",label:"String manipulation",description:"Functions related to string manipulation and formatting",icon:"nf nf-fa-text_height"},{value:"style",label:"Styling and layout",description:"Functions related to styling and layout management",icon:"nf nf-fa-paint_brush"},{value:"type",label:"Type checking",description:"Functions related to type checking and validation",icon:"nf nf-fa-check_square"}]};"undefined"!=typeof globalThis&&(globalThis.bbn=qm,"Temporal"in globalThis||(globalThis.Temporal=Rc));var Wm=Object.freeze({__proto__:null,default:{AE:{firstDay:1,weekend:[6,7],minimalDays:1},AF:{firstDay:6,weekend:[4,5],minimalDays:1},AG:{firstDay:7,weekend:[6,7],minimalDays:1},AI:{firstDay:1,weekend:[6,7],minimalDays:1},AL:{firstDay:1,weekend:[6,7],minimalDays:1},AM:{firstDay:1,weekend:[6,7],minimalDays:1},AR:{firstDay:1,weekend:[6,7],minimalDays:1},AS:{firstDay:7,weekend:[6,7],minimalDays:1},AU:{firstDay:1,weekend:[6,7],minimalDays:1},AZ:{firstDay:1,weekend:[6,7],minimalDays:1},BA:{firstDay:1,weekend:[6,7],minimalDays:1},BD:{firstDay:7,weekend:[6,7],minimalDays:1},BH:{firstDay:6,weekend:[5,6],minimalDays:1},BM:{firstDay:1,weekend:[6,7],minimalDays:1},BN:{firstDay:1,weekend:[6,7],minimalDays:1},BR:{firstDay:7,weekend:[6,7],minimalDays:1},BS:{firstDay:7,weekend:[6,7],minimalDays:1},BT:{firstDay:7,weekend:[6,7],minimalDays:1},BW:{firstDay:7,weekend:[6,7],minimalDays:1},BY:{firstDay:1,weekend:[6,7],minimalDays:1},BZ:{firstDay:7,weekend:[6,7],minimalDays:1},CA:{firstDay:7,weekend:[6,7],minimalDays:1},CL:{firstDay:1,weekend:[6,7],minimalDays:1},CM:{firstDay:1,weekend:[6,7],minimalDays:1},CN:{firstDay:1,weekend:[6,7],minimalDays:1},CO:{firstDay:7,weekend:[6,7],minimalDays:1},CR:{firstDay:1,weekend:[6,7],minimalDays:1},CY:{firstDay:1,weekend:[6,7],minimalDays:1},DJ:{firstDay:6,weekend:[6,7],minimalDays:1},DM:{firstDay:7,weekend:[6,7],minimalDays:1},DO:{firstDay:7,weekend:[6,7],minimalDays:1},DZ:{firstDay:6,weekend:[5,6],minimalDays:1},EC:{firstDay:1,weekend:[6,7],minimalDays:1},EG:{firstDay:6,weekend:[5,6],minimalDays:1},ET:{firstDay:7,weekend:[6,7],minimalDays:1},"GB-alt-variant":{firstDay:7,weekend:[6,7],minimalDays:1},GE:{firstDay:1,weekend:[6,7],minimalDays:1},GT:{firstDay:7,weekend:[6,7],minimalDays:1},GU:{firstDay:7,weekend:[6,7],minimalDays:1},HK:{firstDay:7,weekend:[6,7],minimalDays:1},HN:{firstDay:7,weekend:[6,7],minimalDays:1},HR:{firstDay:1,weekend:[6,7],minimalDays:1},ID:{firstDay:7,weekend:[6,7],minimalDays:1},IL:{firstDay:7,weekend:[5,6],minimalDays:1},IN:{firstDay:7,weekend:[7],minimalDays:1},IQ:{firstDay:6,weekend:[5,6],minimalDays:1},IR:{firstDay:6,weekend:[5],minimalDays:1},IS:{firstDay:7,weekend:[6,7],minimalDays:4},JM:{firstDay:7,weekend:[6,7],minimalDays:1},JO:{firstDay:6,weekend:[5,6],minimalDays:1},JP:{firstDay:7,weekend:[6,7],minimalDays:1},KE:{firstDay:7,weekend:[6,7],minimalDays:1},KG:{firstDay:1,weekend:[6,7],minimalDays:1},KH:{firstDay:7,weekend:[6,7],minimalDays:1},KR:{firstDay:7,weekend:[6,7],minimalDays:1},KW:{firstDay:6,weekend:[5,6],minimalDays:1},KZ:{firstDay:1,weekend:[6,7],minimalDays:1},LA:{firstDay:7,weekend:[6,7],minimalDays:1},LB:{firstDay:1,weekend:[6,7],minimalDays:1},LK:{firstDay:1,weekend:[6,7],minimalDays:1},LV:{firstDay:1,weekend:[6,7],minimalDays:1},LY:{firstDay:6,weekend:[5,6],minimalDays:1},MD:{firstDay:1,weekend:[6,7],minimalDays:1},ME:{firstDay:1,weekend:[6,7],minimalDays:1},MH:{firstDay:7,weekend:[6,7],minimalDays:1},MK:{firstDay:1,weekend:[6,7],minimalDays:1},MM:{firstDay:7,weekend:[6,7],minimalDays:1},MN:{firstDay:1,weekend:[6,7],minimalDays:1},MO:{firstDay:7,weekend:[6,7],minimalDays:1},MT:{firstDay:7,weekend:[6,7],minimalDays:1},MV:{firstDay:5,weekend:[6,7],minimalDays:1},MX:{firstDay:7,weekend:[6,7],minimalDays:1},MY:{firstDay:1,weekend:[6,7],minimalDays:1},MZ:{firstDay:7,weekend:[6,7],minimalDays:1},NI:{firstDay:7,weekend:[6,7],minimalDays:1},NP:{firstDay:7,weekend:[6,7],minimalDays:1},NZ:{firstDay:1,weekend:[6,7],minimalDays:1},OM:{firstDay:6,weekend:[5,6],minimalDays:1},PA:{firstDay:7,weekend:[6,7],minimalDays:1},PE:{firstDay:7,weekend:[6,7],minimalDays:1},PH:{firstDay:7,weekend:[6,7],minimalDays:1},PK:{firstDay:7,weekend:[6,7],minimalDays:1},PR:{firstDay:7,weekend:[6,7],minimalDays:1},PT:{firstDay:7,weekend:[6,7],minimalDays:4},PY:{firstDay:7,weekend:[6,7],minimalDays:1},QA:{firstDay:6,weekend:[5,6],minimalDays:1},RO:{firstDay:1,weekend:[6,7],minimalDays:1},RS:{firstDay:1,weekend:[6,7],minimalDays:1},SA:{firstDay:7,weekend:[5,6],minimalDays:1},SD:{firstDay:6,weekend:[5,6],minimalDays:1},SG:{firstDay:7,weekend:[6,7],minimalDays:1},SI:{firstDay:1,weekend:[6,7],minimalDays:1},SV:{firstDay:7,weekend:[6,7],minimalDays:1},SY:{firstDay:6,weekend:[5,6],minimalDays:1},TH:{firstDay:7,weekend:[6,7],minimalDays:1},TJ:{firstDay:1,weekend:[6,7],minimalDays:1},TM:{firstDay:1,weekend:[6,7],minimalDays:1},TR:{firstDay:1,weekend:[6,7],minimalDays:1},TT:{firstDay:7,weekend:[6,7],minimalDays:1},TW:{firstDay:7,weekend:[6,7],minimalDays:1},UA:{firstDay:1,weekend:[6,7],minimalDays:1},UG:{firstDay:1,weekend:[7],minimalDays:1},UM:{firstDay:7,weekend:[6,7],minimalDays:1},US:{firstDay:7,weekend:[6,7],minimalDays:1},UY:{firstDay:1,weekend:[6,7],minimalDays:1},UZ:{firstDay:1,weekend:[6,7],minimalDays:1},VE:{firstDay:7,weekend:[6,7],minimalDays:1},VI:{firstDay:7,weekend:[6,7],minimalDays:1},VN:{firstDay:1,weekend:[6,7],minimalDays:1},WS:{firstDay:7,weekend:[6,7],minimalDays:1},XK:{firstDay:1,weekend:[6,7],minimalDays:1},YE:{firstDay:7,weekend:[5,6],minimalDays:1},ZA:{firstDay:7,weekend:[6,7],minimalDays:1},ZW:{firstDay:7,weekend:[6,7],minimalDays:1}}});function Km(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vm(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if("function"==typeof n){var t=function e(){var t=!1;try{t=this instanceof e}catch{}return t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var $m={},Jm=function(e,n){return Jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},Jm(e,n)};function Qm(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}Jm(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Xm=function(){return Xm=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Xm.apply(this,arguments)};function ef(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t}function nf(e,n,t,r){var i,a=arguments.length,o=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(n,t,o):i(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o}function tf(e,n){return function(t,r){n(t,r,e)}}function rf(e,n,t,r,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,u=r.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!n&&e?r.static?e:e.prototype:null,d=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),m=!1,f=t.length-1;f>=0;f--){var h={};for(var y in r)h[y]="access"===y?{}:r[y];for(var y in r.access)h.access[y]=r.access[y];h.addInitializer=function(e){if(m)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var M=(0,t[f])("accessor"===u?{get:d.get,set:d.set}:d[c],h);if("accessor"===u){if(void 0===M)continue;if(null===M||"object"!=typeof M)throw new TypeError("Object expected");(s=o(M.get))&&(d.get=s),(s=o(M.set))&&(d.set=s),(s=o(M.init))&&i.unshift(s)}else(s=o(M))&&("field"===u?i.unshift(s):d[c]=s)}l&&Object.defineProperty(l,r.name,d),m=!0}function af(e,n,t){for(var r=arguments.length>2,i=0;i<n.length;i++)t=r?n[i].call(e,t):n[i].call(e);return r?t:void 0}function of(e){return"symbol"==typeof e?e:"".concat(e)}function sf(e,n,t){return"symbol"==typeof n&&(n=n.description?"[".concat(n.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:t?"".concat(t," ",n):n})}function uf(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function cf(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})}function lf(e,n){var t,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=n.call(e,a)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var df=Object.create?function(e,n,t,r){void 0===r&&(r=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,i)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]};function mf(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||df(n,e,t)}function ff(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function hf(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,a=t.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}function yf(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(hf(arguments[n]));return e}function Mf(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function gf(e,n,t){if(t||2===arguments.length)for(var r,i=0,a=n.length;i<a;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function pf(e){return this instanceof pf?(this.v=e,this):new pf(e)}function vf(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(n){return Promise.resolve(n).then(e,c)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,n){i[e]&&(r[e]=function(n){return new Promise(function(t,r){a.push([e,n,t,r])>1||s(e,n)})},n&&(r[e]=n(r[e])))}function s(e,n){try{!function(e){e.value instanceof pf?Promise.resolve(e.value.v).then(u,c):l(a[0][2],e)}(i[e](n))}catch(e){l(a[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,n){e(n),a.shift(),a.length&&s(a[0][0],a[0][1])}}function wf(e){var n,t;return n={},r("next"),r("throw",function(e){throw e}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,i){n[r]=e[r]?function(n){return(t=!t)?{value:pf(e[r](n)),done:!1}:i?i(n):n}:i}}function bf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=ff(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){(function(e,n,t,r){Promise.resolve(r).then(function(n){e({value:n,done:t})},n)})(r,i,(n=e[t](n)).done,n.value)})}}}function _f(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var Ef=Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n},Tf=function(e){return Tf=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},Tf(e)};function Df(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=Tf(e),r=0;r<t.length;r++)"default"!==t[r]&&df(n,e,t[r]);return Ef(n,e),n}function Sf(e){return e&&e.__esModule?e:{default:e}}function Af(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)}function kf(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t}function Cf(e,n){if(null===n||"object"!=typeof n&&"function"!=typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?n===e:e.has(n)}function Pf(e,n,t){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,i;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],t&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}var Nf="function"==typeof SuppressedError?SuppressedError:function(e,n,t){var r=new Error(t);return r.name="SuppressedError",r.error=e,r.suppressed=n,r};function zf(e){function n(n){e.error=e.hasError?new Nf(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}var t,r=0;return function i(){for(;t=e.stack.pop();)try{if(!t.async&&1===r)return r=0,e.stack.push(t),Promise.resolve().then(i);if(t.dispose){var a=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(a).then(i,function(e){return n(e),i()})}else r|=1}catch(e){n(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function Hf(e,n){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,t,r,i,a){return t?n?".jsx":".js":!r||i&&a?r+i+"."+a.toLowerCase()+"js":e}):e}var If={__extends:Qm,__assign:Xm,__rest:ef,__decorate:nf,__param:tf,__esDecorate:rf,__runInitializers:af,__propKey:of,__setFunctionName:sf,__metadata:uf,__awaiter:cf,__generator:lf,__createBinding:df,__exportStar:mf,__values:ff,__read:hf,__spread:yf,__spreadArrays:Mf,__spreadArray:gf,__await:pf,__asyncGenerator:vf,__asyncDelegator:wf,__asyncValues:bf,__makeTemplateObject:_f,__importStar:Df,__importDefault:Sf,__classPrivateFieldGet:Af,__classPrivateFieldSet:kf,__classPrivateFieldIn:Cf,__addDisposableResource:Pf,__disposeResources:zf,__rewriteRelativeImportExtension:Hf},Ff=Vm(Object.freeze({__proto__:null,__addDisposableResource:Pf,get __assign(){return Xm},__asyncDelegator:wf,__asyncGenerator:vf,__asyncValues:bf,__await:pf,__awaiter:cf,__classPrivateFieldGet:Af,__classPrivateFieldIn:Cf,__classPrivateFieldSet:kf,__createBinding:df,__decorate:nf,__disposeResources:zf,__esDecorate:rf,__exportStar:mf,__extends:Qm,__generator:lf,__importDefault:Sf,__importStar:Df,__makeTemplateObject:_f,__metadata:uf,__param:tf,__propKey:of,__read:hf,__rest:ef,__rewriteRelativeImportExtension:Hf,__runInitializers:af,__setFunctionName:sf,__spread:yf,__spreadArray:gf,__spreadArrays:Mf,__values:ff,default:If})),Of={};function Lf(e){return Intl.getCanonicalLocales(e)}
|
|
2
2
|
/*!
|
|
3
3
|
* decimal.js v10.6.0
|
|
4
4
|
* An arbitrary-precision Decimal type for JavaScript.
|