@bbn/bbn 1.0.211 → 1.0.213

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.
@@ -83,7 +83,8 @@ export default function callback(url, res, fn, fn2, ele) {
83
83
  tmp = (function (data, ele) {
84
84
  var r = null;
85
85
  try {
86
- r = eval(res.script);
86
+ var fnScript = new Function(res.script);
87
+ r = fnScript();
87
88
  if (isFunction(r)) {
88
89
  r = r(data, ele);
89
90
  }
@@ -104,7 +105,8 @@ export default function callback(url, res, fn, fn2, ele) {
104
105
  bbn.fn.defaultPostLinkFunction(res, ele);
105
106
  }
106
107
  if (tmp && isObj && res.postscript) {
107
- eval(res.postscript);
108
+ var fnPost = new Function(res.postscript);
109
+ fnPost(res.postscript);
108
110
  }
109
111
  if (isObj && res.error) {
110
112
  errTitle = res.errorTitle || bbn.lng.server_response;
@@ -144,7 +144,7 @@ export default function extend() {
144
144
  out[key] = a;
145
145
  }
146
146
  }
147
- else if (out[key] !== a) {
147
+ else if ((out[key] !== a) || ((a === undefined) && !Object.prototype.hasOwnProperty.apply(out, [key]))) {
148
148
  out[key] = a;
149
149
  }
150
150
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.211",
3
+ "version": "1.0.213",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -42,11 +42,11 @@
42
42
  "@rollup/plugin-json": "^6.1.0",
43
43
  "@rollup/plugin-node-resolve": "^15.2.3",
44
44
  "@rollup/plugin-replace": "^5.0.5",
45
+ "@rollup/plugin-terser": "^0.4.4",
45
46
  "@rollup/plugin-typescript": "^11.1.6",
46
47
  "axios": "^1.5.1",
47
48
  "dayjs": "^1.11.10",
48
49
  "rollup": "^4.16.2",
49
- "rollup-plugin-terser": "^7.0.2",
50
50
  "tslib": "^2.6.2"
51
51
  },
52
52
  "directories": {
package/dist/bbn.js DELETED
@@ -1,2 +0,0 @@
1
- var bbn=function(exports){"use strict";function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,kindOf=(cache=Object.create(null),e=>{const t=toString.call(e);return cache[t]||(cache[t]=t.slice(8,-1).toLowerCase())});var cache;const kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray$1}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$1=e=>null!==e&&"object"==typeof e,isBoolean$1=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob$1=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$1(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),isArray$1(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function findKey(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e}=isContextDefined(this)&&this||{},t={},r=(r,n)=>{const o=e&&findKey(t,n)||n;isPlainObject(t[o])&&isPlainObject(r)?t[o]=merge(t[o],r):isPlainObject(r)?t[o]=merge({},r):isArray$1(r)?t[o]=r.slice():t[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&forEach(arguments[e],r);return t}const extend$1=(e,t,r,{allOwnKeys:n}={})=>(forEach(t,((t,n)=>{r&&isFunction$1(t)?e[n]=bind(t,r):e[n]=t}),{allOwnKeys:n}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray=e=>{if(!e)return null;if(isArray$1(e))return e;let t=e.length;if(!isNumber$1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray=(TypedArray="undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array),e=>TypedArray&&e instanceof TypedArray);var TypedArray;const forEachEntry=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll=(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),hasOwnProperty=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},freezeMethods=e=>{reduceDescriptors(e,((t,r)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];isFunction$1(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet=(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return isArray$1(e)?n(e):n(String(e).split(t)),r},noop=()=>{},toFiniteNumber=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT:DIGIT,ALPHA:ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,t=ALPHABET.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const toJSONObject=e=>{const t=new Array(10),r=(e,n)=>{if(isObject$1(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=isArray$1(e)?[]:{};return forEach(e,((e,t)=>{const i=r(e,n+1);!isUndefined(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$1(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch);var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$1,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate$1,isFile:isFile,isBlob:isBlob$1,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend$1,trim:trim$1,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable};function AxiosError(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{descriptors[e]={value:e}})),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(e,t,r,n,o,i)=>{const a=Object.create(prototype$1);return utils$1.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),AxiosError.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map((function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,(function(e){return/^is[A-Z]/.test(e)}));function toFormData(e,t,r){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=utils$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!utils$1.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(utils$1.isDate(e))return e.toISOString();if(!s&&utils$1.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(e)||utils$1.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(utils$1.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1.isArray(e)&&isFlatArray(e)||(utils$1.isFileList(e)||utils$1.endsWith(r,"[]"))&&(s=utils$1.toArray(e)))return r=removeBrackets(r),s.forEach((function(e,n){!utils$1.isUndefined(e)&&null!==e&&t.append(!0===a?renderKey([r],n,i):null===a?r:r+"[]",u(e))})),!1;return!!isVisitable(e)||(t.append(renderKey(o,r,i),u(e)),!1)}const c=[],f=Object.assign(predicates,{defaultVisitor:l,convertValue:u,isVisitable:isVisitable});if(!utils$1.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!utils$1.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),utils$1.forEach(r,(function(r,i){!0===(!(utils$1.isUndefined(r)||null===r)&&o.call(t,r,utils$1.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),c.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){if(!t)return e;const n=r&&r.encode||encode,o=r&&r.serialize;let i;if(i=o?o(t,r):utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData$1="undefined"!=typeof FormData?FormData:null,Blob$1="undefined"!=typeof Blob?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,hasStandardBrowserEnv=(product="undefined"!=typeof navigator&&navigator.product,hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(product)<0);var product;const hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var utils=Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv}),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return platform.isNode&&utils$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function arrayToObject(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function formDataToJSON(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&utils$1.isArray(n)?n.length:i,s)return utils$1.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&utils$1.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&utils$1.isArray(n[i])&&(n[i]=arrayToObject(n[i])),!a}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const r={};return utils$1.forEachEntry(e,((e,n)=>{t(parsePropPath(e),n,r,0)})),r}return null}function stringifySafely(e,t,r){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=utils$1.isObject(e);o&&utils$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1.isFormData(e))return n?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((i=utils$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&utils$1.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],(e=>{defaults.headers[e]={}}));const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ignoreDuplicateOf[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t};const $internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,n,o){return utils$1.isFunction(n)?n.call(this,t,r):(o&&(t=r),utils$1.isString(t)?utils$1.isString(n)?-1!==t.indexOf(n):utils$1.isRegExp(n)?n.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}function buildAccessors(e,t){const r=utils$1.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=normalizeHeader(t);if(!o)throw new Error("header name must be a non-empty string");const i=utils$1.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=normalizeValue(e))}const i=(e,t)=>utils$1.forEach(e,((e,r)=>o(e,r,t)));return utils$1.isPlainObject(e)||e instanceof this.constructor?i(e,t):utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e)?i(parseHeaders(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens(e);if(utils$1.isFunction(t))return t.call(this,e,r);if(utils$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue(this,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=normalizeHeader(e)){const o=utils$1.findKey(r,e);!o||t&&!matchHeaderValue(r,r[o],o,t)||(delete r[o],n=!0)}}return utils$1.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!matchHeaderValue(this,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return utils$1.forEach(this,((n,o)=>{const i=utils$1.findKey(r,o);if(i)return t[i]=normalizeValue(n),void delete t[o];const a=e?formatHeader(o):String(o).trim();a!==o&&delete t[o],t[a]=normalizeValue(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&utils$1.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=normalizeHeader(e);t[n]||(buildAccessors(r,e),t[n]=!0)}return utils$1.isArray(e)?e.forEach(n):n(e),this}}function transformData(e,t){const r=this||defaults,n=t||r,o=AxiosHeaders.from(n.headers);let i=n.data;return utils$1.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function isCancel(e){return!(!e||!e.__CANCEL__)}function CanceledError(e,t,r){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),utils$1.freezeMethods(AxiosHeaders),utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var cookies=platform.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];utils$1.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),utils$1.isString(n)&&a.push("path="+n),utils$1.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}var isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=utils$1.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),l=n[a];o||(o=u),r[i]=s,n[i]=u;let c=a,f=0;for(;c!==i;)f+=r[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=l&&u-l;return d?Math.round(1e3*f/d):void 0}}function progressEventReducer(e,t){let r=0;const n=speedometer(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,u=n(s);r=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest;var xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise((function(t,r){let n=e.data;const o=AxiosHeaders.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:u}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(utils$1.isFormData(n))if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const f=buildFullPath(e.baseURL,e.url);function d(){if(!c)return;const n=AxiosHeaders.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());settle((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),buildURL(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||transitionalDefaults;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new AxiosError(t,n.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,c)),c=null},platform.hasStandardBrowserEnv&&(u&&utils$1.isFunction(u)&&(u=u(e)),u||!1!==u&&isURLSameOrigin(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&cookies.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&utils$1.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),utils$1.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(r(!t||t.type?new CanceledError(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const h=parseProtocol(f);h&&-1===platform.protocols.indexOf(h)?r(new AxiosError("Unsupported protocol "+h+":",AxiosError.ERR_BAD_REQUEST,e)):c.send(n||null)}))};const knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||null===e||!1===e;var adapters={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!isResolvedHandle(r)&&(n=knownAdapters[(t=String(r)).toLowerCase()],void 0===n))throw new AxiosError(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new AxiosError("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters.getAdapter(e.adapter||defaults.adapter)(e).then((function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders.from(t.headers),t}),(function(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders.from(t.response.headers))),Promise.reject(t)}))}const headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};const r={};function n(e,t,r){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(t)?utils$1.merge.call({caseless:r},e,t):utils$1.isPlainObject(t)?utils$1.merge({},t):utils$1.isArray(t)?t.slice():t}function o(e,t,r){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!utils$1.isUndefined(t))return n(void 0,t)}function a(e,t){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(headersToObject(e),headersToObject(t),!0)};return utils$1.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=u[n]||o,a=i(e[n],t[n],n);utils$1.isUndefined(a)&&i!==s||(r[n]=a)})),r}const VERSION="1.6.8",validators$1={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const deprecatedWarnings={};function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new AxiosError("option "+i+" must be "+r,AxiosError.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError("Unknown option "+i,AxiosError.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,r){function n(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new AxiosError(n(o," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var validator={assertOptions:assertOptions,validators:validators$1};const validators=validator.validators;class Axios{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=n&&(utils$1.isFunction(n)?t.paramsSerializer={serialize:n}:validator.assertOptions(n,{encode:validators.function,serialize:validators.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&utils$1.merge(o.common,o[t.method]);o&&utils$1.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=AxiosHeaders.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let l;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let c,f=0;if(!s){const e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),c=e.length,l=Promise.resolve(t);f<c;)l=l.then(e[f++],e[f++]);return l}c=a.length;let d=t;for(f=0;f<c;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=dispatchRequest.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,c=u.length;f<c;)l=l.then(u[f++],u[f++]);return l}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],(function(e){Axios.prototype[e]=function(t,r){return this.request(mergeConfig(r||{},{method:e,url:t,data:(r||{}).data}))}})),utils$1.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(mergeConfig(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Axios.prototype[e]=t(),Axios.prototype[e+"Form"]=t(!0)}));class CancelToken{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new CanceledError(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new CancelToken((function(t){e=t}));return{token:t,cancel:e}}}function spread(e){return function(t){return e.apply(null,t)}}function isAxiosError(e){return utils$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance(e){const t=new Axios(e),r=bind(Axios.prototype.request,t);return utils$1.extend(r,Axios.prototype,t,{allOwnKeys:!0}),utils$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig(e,t))},r}Object.entries(HttpStatusCode).forEach((([e,t])=>{HttpStatusCode[t]=e}));const axios$1=createInstance(defaults);axios$1.Axios=Axios,axios$1.CanceledError=CanceledError,axios$1.CancelToken=CancelToken,axios$1.isCancel=isCancel,axios$1.VERSION=VERSION,axios$1.toFormData=toFormData,axios$1.AxiosError=AxiosError,axios$1.Cancel=axios$1.CanceledError,axios$1.all=function(e){return Promise.all(e)},axios$1.spread=spread,axios$1.isAxiosError=isAxiosError,axios$1.mergeConfig=mergeConfig,axios$1.AxiosHeaders=AxiosHeaders,axios$1.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios$1.getAdapter=adapters.getAdapter,axios$1.HttpStatusCode=HttpStatusCode,axios$1.default=axios$1;var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dayjs_min={exports:{}},module;module=dayjs_min,module.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",a="hour",s="day",u="week",l="month",c="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,l),i=r-o<0,a=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:f,w:u,d:s,D:d,h:a,m:i,s:o,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=b;var x="$isDayjsObject",$=function(e){return e instanceof E||!(!e||!e[x])},O=function e(t,r,n){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),r&&(w[i]=r,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!n&&o&&(y=o),o||!n&&y},A=function(e,t){if($(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},S=v;S.l=O,S.i=$,S.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function b(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=b.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var r=A(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return A(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<A(e)},g.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,n=!!S.u(t)||t,c=S.p(e),h=function(e,t){var o=S.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?o:o.endOf(s)},p=function(e,t){return S.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,b=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case f:return n?h(1,0):h(31,11);case l:return n?h(1,b):h(0,b+1);case u:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(n?g-w:g+(6-w),b);case s:case d:return p(v+"Hours",0);case a:return p(v+"Minutes",1);case i:return p(v+"Seconds",2);case o:return p(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var r,u=S.p(e),c="set"+(this.$u?"UTC":""),h=(r={},r[s]=c+"Date",r[d]=c+"Date",r[l]=c+"Month",r[f]=c+"FullYear",r[a]=c+"Hours",r[i]=c+"Minutes",r[o]=c+"Seconds",r[n]=c+"Milliseconds",r)[u],p=u===s?this.$D+(t-this.$W):t;if(u===l||u===f){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(n,c){var d,h=this;n=Number(n);var p=S.p(c),m=function(e){var t=A(h);return S.w(t.date(t.date()+Math.round(e*n)),h)};if(p===l)return this.set(l,this.$M+n);if(p===f)return this.set(f,this.$y+n);if(p===s)return m(1);if(p===u)return m(7);var b=(d={},d[i]=t,d[a]=r,d[o]=e,d)[p]||1,g=this.$d.getTime()+n*b;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),i=this.$H,a=this.$m,s=this.$M,u=r.weekdays,l=r.months,c=r.meridiem,f=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].slice(0,i)},d=function(e){return S.s(i%12||12,e,"0")},p=c||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,l,3);case"MMMM":return f(l,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,u,2);case"ddd":return f(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return S.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,a,!0);case"A":return p(i,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,h){var p,m=this,b=S.p(d),g=A(n),v=(g.utcOffset()-this.utcOffset())*t,y=this-g,w=function(){return S.m(m,g)};switch(b){case f:p=w()/12;break;case l:p=w();break;case c:p=w()/3;break;case u:p=(y-v)/6048e5;break;case s:p=(y-v)/864e5;break;case a:p=y/r;break;case i:p=y/t;break;case o:p=y/e;break;default:p=y}return h?p:S.a(p)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=O(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),j=E.prototype;return A.prototype=j,[["$ms",n],["$s",o],["$m",i],["$H",a],["$W",s],["$M",l],["$y",f],["$D",d]].forEach((function(e){j[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),A.extend=function(e,t){return e.$i||(e(t,E,A),e.$i=!0),A},A.locale=O,A.isDayjs=$,A.unix=function(e){return A(1e3*e)},A.en=w[y],A.Ls=w,A.p={},A}();var dayjs_minExports=dayjs_min.exports,dayjs$1=getDefaultExportFromCjs(dayjs_minExports),calendar$2={exports:{}};!function(e,t){e.exports=function(e,t,r){var n="h:mm A",o={lastDay:"[Yesterday at] "+n,sameDay:"[Today at] "+n,nextDay:"[Tomorrow at] "+n,nextWeek:"dddd [at] "+n,lastWeek:"[Last] dddd [at] "+n,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var n=t||this.$locale().calendar||o,i=r(e||void 0).startOf("d"),a=this.diff(i,"d",!0),s="sameElse",u=a<-6?s:a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":s,l=n[u]||o[u];return"function"==typeof l?l.call(this,r()):this.format(l)}}}(calendar$2);var calendarExports=calendar$2.exports,calendar$1=getDefaultExportFromCjs(calendarExports),dayOfYear$1={exports:{}};!function(e,t){e.exports=function(e,t,r){t.prototype.dayOfYear=function(e){var t=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports,dayOfYear=getDefaultExportFromCjs(dayOfYearExports),duration$1={exports:{}};!function(e,t){e.exports=function(){var e,t,r=1e3,n=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:s,months:u,days:i,hours:o,minutes:n,seconds:r,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof v},d=function(e,t,r){return new v(e,r,t.$l)},h=function(e){return t.p(e)+"s"},p=function(e){return e<0},m=function(e){return p(e)?Math.ceil(e):Math.floor(e)},b=function(e){return Math.abs(e)},g=function(e,t){return e?p(e)?{negative:!0,format:""+b(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function p(e,t,r){var n=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*c[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(l);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var b=p.prototype;return b.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,r){return t+(e.$d[r]||0)*c[r]}),0)},b.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/u),e%=u,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/o),e%=o,this.$d.minutes=m(e/n),e%=n,this.$d.seconds=m(e/r),e%=r,this.$d.milliseconds=e},b.toISOString=function(){var e=g(this.$d.years,"Y"),t=g(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=g(r,"D"),o=g(this.$d.hours,"H"),i=g(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=g(a,"S"),u=e.negative||t.negative||n.negative||o.negative||i.negative||s.negative,l=o.format||i.format||s.format?"T":"",c=(u?"-":"")+"P"+e.format+t.format+n.format+l+o.format+i.format+s.format;return"P"===c||"-P"===c?"P0D":c},b.toJSON=function(){return this.toISOString()},b.format=function(e){var r=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return r.replace(a,(function(e,t){return t||String(n[e])}))},b.as=function(e){return this.$ms/c[h(e)]},b.get=function(e){var t=this.$ms,r=h(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?m(t/c[r]):this.$d[r],t||0},b.add=function(e,t,r){var n;return n=t?e*c[h(t)]:f(e)?e.$ms:d(e,this).$ms,d(this.$ms+n*(r?-1:1),this)},b.subtract=function(e,t){return this.add(e,t,!0)},b.locale=function(e){var t=this.clone();return t.$l=e,t},b.clone=function(){return d(this.$ms,this)},b.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},p}(),y=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")};return function(r,n,o){e=o,t=o().$utils(),o.duration=function(e,t){var r=o.locale();return d(e,{$l:r},t)},o.isDuration=f;var i=n.prototype.add,a=n.prototype.subtract;n.prototype.add=function(e,t){return f(e)?y(this,e,1):i.bind(this)(e,t)},n.prototype.subtract=function(e,t){return f(e)?y(this,e,-1):a.bind(this)(e,t)}}}()}(duration$1);var durationExports=duration$1.exports,duration=getDefaultExportFromCjs(durationExports),isBetween$1={exports:{}};!function(e,t){e.exports=function(e,t,r){t.prototype.isBetween=function(e,t,n,o){var i=r(e),a=r(t),s="("===(o=o||"()")[0],u=")"===o[1];return(s?this.isAfter(i,n):!this.isBefore(i,n))&&(u?this.isBefore(a,n):!this.isAfter(a,n))||(s?this.isBefore(i,n):!this.isAfter(i,n))&&(u?this.isAfter(a,n):!this.isBefore(a,n))}}}(isBetween$1);var isBetweenExports=isBetween$1.exports,isBetween=getDefaultExportFromCjs(isBetweenExports),isLeapYear$1={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}(isLeapYear$1);var isLeapYearExports=isLeapYear$1.exports,isLeapYear=getDefaultExportFromCjs(isLeapYearExports),isoWeek$1={exports:{}};!function(e,t){var r;e.exports=(r="day",function(e,t,n){var o=function(e){return e.add(4-e.isoWeekday(),r)},i=t.prototype;i.isoWeekYear=function(){return o(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),r);var t,i,a,s=o(this),u=(t=this.isoWeekYear(),a=4-(i=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(a+=7),i.add(a,r));return s.diff(u,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}})}(isoWeek$1);var isoWeekExports=isoWeek$1.exports,isoWeek=getDefaultExportFromCjs(isoWeekExports),localeData$1={exports:{}};!function(e,t){e.exports=function(e,t,r){var n=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,r,n,i){var a=e.name?e:e.$locale(),s=o(a[t]),u=o(a[r]),l=s||u.map((function(e){return e.slice(0,n)}));if(!i)return l;var c=a.weekStart;return l.map((function(e,t){return l[(t+(c||0))%7]}))},a=function(){return r.Ls[r.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}(e.formats[t.toUpperCase()])},u=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return u.bind(this)()},r.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},r.months=function(){return i(a(),"months")},r.monthsShort=function(){return i(a(),"monthsShort","months",3)},r.weekdays=function(e){return i(a(),"weekdays",null,null,e)},r.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},r.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}(localeData$1);var localeDataExports=localeData$1.exports,localeData=getDefaultExportFromCjs(localeDataExports),localizedFormat$1={exports:{}};!function(e,t){var r;e.exports=(r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,n){var o=t.prototype,i=o.format;n.en.formats=r,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,n=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,o){var i=o&&o.toUpperCase();return n||t[o]||r[o]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))}(e,void 0===t?{}:t);return i.call(this,n)}})}(localizedFormat$1);var localizedFormatExports=localizedFormat$1.exports,localizedFormat=getDefaultExportFromCjs(localizedFormatExports),minMax$1={exports:{}};!function(e,t){e.exports=function(e,t,r){var n=function(e,t){if(!t||!t.length||1===t.length&&!t[0]||1===t.length&&Array.isArray(t[0])&&!t[0].length)return null;var r;1===t.length&&t[0].length>0&&(t=t[0]),r=(t=t.filter((function(e){return e})))[0];for(var n=1;n<t.length;n+=1)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r};r.max=function(){var e=[].slice.call(arguments,0);return n("isAfter",e)},r.min=function(){var e=[].slice.call(arguments,0);return n("isBefore",e)}}}(minMax$1);var minMaxExports=minMax$1.exports,minMax=getDefaultExportFromCjs(minMaxExports),quarterOfYear$1={exports:{}};!function(e,t){var r,n;e.exports=(r="month",n="quarter",function(e,t){var o=t.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(e,t){return e=Number(e),this.$utils().p(t)===n?this.add(3*e,r):i.bind(this)(e,t)};var a=o.startOf;o.startOf=function(e,t){var o=this.$utils(),i=!!o.u(t)||t;if(o.p(e)===n){var s=this.quarter()-1;return i?this.month(3*s).startOf(r).startOf("day"):this.month(3*s+2).endOf(r).endOf("day")}return a.bind(this)(e,t)}})}(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports,quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports),relativeTime$1={exports:{}};!function(e,t){e.exports=function(e,t,r){e=e||{};var n=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,r,o){return n.fromToBase(e,t,r,o)}r.en.relativeTime=o,n.fromToBase=function(t,n,i,a,s){for(var u,l,c,f=i.$locale().relativeTime||o,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(u=a?r(t).diff(i,m.d,!0):i.diff(t,m.d,!0));var b=(e.rounding||Math.round)(Math.abs(u));if(c=u>0,b<=m.r||!m.r){b<=1&&p>0&&(m=d[p-1]);var g=f[m.l];s&&(b=s(""+b)),l="string"==typeof g?g.replace("%d",b):g(b,n,m.l,c);break}}if(n)return l;var v=c?f.future:f.past;return"function"==typeof v?v(l):v.replace("%s",l)},n.to=function(e,t){return i(e,t,this,!0)},n.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(a(this),e)},n.fromNow=function(e){return this.from(a(this),e)}}}(relativeTime$1);var relativeTimeExports=relativeTime$1.exports,relativeTime=getDefaultExportFromCjs(relativeTimeExports),timezone$1={exports:{}};!function(e,t){var r,n;e.exports=(r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(e,t,o){var i,a=function(e,t,r){void 0===r&&(r={});var o=new Date(e),i=function(e,t){void 0===t&&(t={});var r=t.timeZoneName||"short",o=e+"|"+r,i=n[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[o]=i),i}(t,r);return i.formatToParts(o)},s=function(e,t){for(var n=a(e,t),i=[],s=0;s<n.length;s+=1){var u=n[s],l=u.type,c=u.value,f=r[l];f>=0&&(i[f]=parseInt(c,10))}var d=i[3],h=24===d?0:d,p=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",m=+e;return(o.utc(p).valueOf()-(m-=m%1e3))/6e4},u=t.prototype;u.tz=function(e,t){void 0===e&&(e=i);var r=this.utcOffset(),n=this.toDate(),a=n.toLocaleString("en-US",{timeZone:e}),s=Math.round((n-new Date(a))/1e3/60),u=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-s,!0);if(t){var l=u.utcOffset();u=u.add(r-l,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),r=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return r&&r.value};var l=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var r=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(r,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,r){var n=r&&t,a=r||t||i,u=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var l=function(e,t,r){var n=e-60*t*1e3,o=s(n,r);if(t===o)return[n,t];var i=s(n-=60*(o-t)*1e3,r);return o===i?[n,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,n).valueOf(),u,a),c=l[0],f=l[1],d=o(c).utcOffset(f);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}})}(timezone$1);var timezoneExports=timezone$1.exports,timezone=getDefaultExportFromCjs(timezoneExports),updateLocale$1={exports:{}};!function(e,t){e.exports=function(e,t,r){r.updateLocale=function(e,t){var n=r.Ls[e];if(n)return(t?Object.keys(t):[]).forEach((function(e){n[e]=t[e]})),n}}}(updateLocale$1);var updateLocaleExports=updateLocale$1.exports,updateLocale=getDefaultExportFromCjs(updateLocaleExports),utc$1={exports:{}};!function(e,t){e.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var l=a.utcOffset;a.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?l.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(o)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,r){if(e&&this.$u===e.$u)return d.call(this,e,t,r);var n=this.local(),o=i(e).local();return d.call(n,o,t,r)}}}()}(utc$1);var utcExports=utc$1.exports,utc=getDefaultExportFromCjs(utcExports),weekday$1={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}}(weekday$1);var weekdayExports=weekday$1.exports,weekday=getDefaultExportFromCjs(weekdayExports),weekOfYear$1={exports:{}};!function(e,t){var r,n;e.exports=(r="week",n="year",function(e,t,o){var i=t.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(n).add(1,n).date(t),a=o(this).endOf(r);if(i.isBefore(a))return 1}var s=o(this).startOf(n).date(t).startOf(r).subtract(1,"millisecond"),u=this.diff(s,r,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports,weekOfYear=getDefaultExportFromCjs(weekOfYearExports);function isArray(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!Array.isArray(o))return!1}return!0}function isNumber(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(["boolean","object","symbol"].includes(typeof o)||""===o||isNaN(o))return!1}return!0}function isIterable(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!o||"object"!=typeof o||!(Symbol.iterator in Object(o)))return!1}return!0}function isString(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object String]"!=={}.toString.apply(o))return!1}return!0}function isInt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!Number.isInteger(o))return!1}return!0}function isFunction(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!(o&&o.constructor&&o.call&&o.apply))return!1}return!0}function log(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(void 0!==window.console){var o=void 0,i=5,a="log";r[0]&&"object"==typeof r[0]&&r[0]._bbn_console_style&&(r[0]._bbn_console_mode&&isFunction(console[r[0]._bbn_console_mode])?a=r[0]._bbn_console_mode:(o=r[0]._bbn_console_style,i=r[0]._bbn_console_level),r.shift());var s=window.console[a];if((null===(t=null===(e=window.bbn)||void 0===e?void 0:e.env)||void 0===t?void 0:t.loggingLevel)>=i)for(var u=0;u<r.length;){var l=typeof r[u],c=[r[u]];"string"!==l&&"number"!==l||c.unshift("%c %s ",o),s.apply(window.console,c),u++}}return this}function substr(e,t,r){if(!isString(e)||!isInt(t))throw log(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return t<0&&(t=e.length+t),isInt(r)?e.substring(t,(r<0?e.length:t)+r):e.substring(t)}function removePrivateProp(e,t){void 0===t&&(t=!1);var r=null;if("object"==typeof e)for(var n in r={},e)substr(n,0,1).match(/^[A-z0-9]$/)&&n in e&&(t&&"object"==typeof e[n]?r[n]=removePrivateProp(e[n],!0):r[n]=e[n]);return r||!1}function iterate(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!1),null!==e&&"object"==typeof e){var o=Object.keys(r?removePrivateProp(e):e);n&&o.reverse();for(var i=0,a=o;i<a.length;i++){var s=a[i];if(!1===t(e[s],s))break}}return e}function each(e,t){if(!(isNumber(e)&&e>0)){if(isIterable(e)){for(r=0;r<e.length;r++)if(!1===t(e[r],r))return;return e}return iterate(e,t)}for(var r=0;r<e;r++)if(!1===t(r,r))return}function correctCase(e){return e.replace(/[A-z]{1}/,(function(e){return e.toUpperCase()}))}function error(e){if(arguments.length>1){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);t.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),log.apply(this,t)}throw new Error(e)}function checkType(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var i=!1;isArray(t)||(t=[t]);var a=[];if(each(t,(function(t){var r;if(t===String?t="string":t===Number?t="number":t===Array?t="array":t===Boolean?t="boolean":t===Object?t="object":t===Function&&(t="function"),isFunction(t)){if(a.push(t.name||(null===(r=t.constructor)||void 0===r?void 0:r.name)||t.toString()),e instanceof t)return i=!0,!1}else if(isString(t)&&isFunction(bbn.fn["is"+correctCase(t)])){if(bbn.fn["is"+correctCase(t)](e))return i=!0,!1;a.push(t)}else error("The type ".concat(t," is not recognized"))})),!i)throw log(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),n.length&&log(n),new Error((r?r+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function _(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.shift(),n=bbn.lng[r]||r;if(e.length){var o=0;return n.replace(/\%([d|s])/g,(function(t,r){var n=e[o++];return n||(n="d"===r?0:""),checkType(n,"d"===r?"number":"string",bbn._("The value you gave did not correspond, check the loggg")),n}))}return n}function $(e,t){if(null==t?void 0:t.querySelectorAll)return t.querySelectorAll(e);if(t)throw new Error("Invalid context");return document.body.querySelectorAll(e)}var 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"},vars={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:[33,34,35,36,38,40],leftRight:[36,35,37,39],dels:[8,46,45],confirm:[13,9],alt:[20,16,17,18,144],numbers:[48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105],numsigns:[109,110,189,190]},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}},env={siteTitle:window.document.title,logging:!1,cdn:"",lang:"en",host:window.location.protocol+"//"+window.location.hostname,url:window.location.href,old_path:null,loading:!1,width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:20,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax"},idb=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB,dbObject=function(e){var t=this,r=db._connections[e],n=db._structures[e];this.insert=function(e,t){return Array.isArray(t)||(t=[t]),new Promise((function(n){var o=r.transaction(e,"readwrite"),i=o.objectStore(e),a=t.length;each(t,(function(e){var t=i.put(e);t.onerror=function(){log(t.error),a--}})),o.onabort=function(){throw new Error(o.error)},o.oncomplete=function(){n(a)}}))},this.update=function(e,t,o){return new Promise((function(i){var a=r.transaction(e,"readwrite"),s=a.objectStore(e),u=n[e],l=u.keys.PRIMARY.columns.length>1?u.keys.PRIMARY.columns:u.keys.PRIMARY.columns[0];if(!o[l])throw new Error(_("No "));var c=1,f=s.put(t,o[l]);f.onerror=function(){log(f.error),c--},a.onabort=function(){throw new Error(a.error)},a.oncomplete=function(){i(c)}}))},this.delete=function(e,t){return new Promise((function(o){var i=r.transaction(e,"readwrite"),a=i.objectStore(e),s=n[e],u=s.keys.PRIMARY.columns.length>1?s.keys.PRIMARY.columns:s.keys.PRIMARY.columns[0];if(!t[u])throw new Error(_("No "));var l=1,c=a.delete(t[u]);c.onerror=function(){log(c.error),l--},i.onabort=function(){throw new Error(i.error)},i.oncomplete=function(){o(l)}}))},this.selectOne=function(e,r,n,o,i,a){return new Promise((function(s){t.select(e,[r],n,o,i,a).then((function(e){var t;s(null!==(t=e[r])&&void 0!==t?t:void 0)}))}))},this.select=function(e,t,o,i,a,s){var u=r.transaction(e,"readonly").objectStore(e),l=n[e],c=l.keys.PRIMARY.columns.length>1?l.keys.PRIMARY.columns:l.keys.PRIMARY.columns[0];if(!o[c])throw new Error(_("No "));return new Promise((function(e){var r=u.get(o[c]);r.onsuccess=function(){var n=r.result;if(t.length){var o={};return iterate(n,(function(e,r){t.indexOf(r)>-1&&(o[r]=e)})),e(o)}e(n)}}))},this.selectAll=function(e,t,o,i,a,s){var u=r.transaction(e,"read").objectStore(e),l=n[e];if(!o[l.keys.PRIMARY.columns.length>1?l.keys.PRIMARY.columns:l.keys.PRIMARY.columns[0]])throw new Error(_("No "));return new Promise((function(e){u.get(n.keys.PRIMARY)}))},this.getColumnValues=function(e,t,n,o,i,a){return new Promise((function(t){r.transaction(e,"read").objectStore(e)}))}},db={_structures:{},_connections:{},_stores:{},ok:void 0!==idb,open:function(e){return new Promise((function(t){if(!db._connections[e]){if(!db._structures[e])throw new Error(_("Impossible to find a structure for the database %s",e));var r=idb.open(e);return r.onupgradeneeded=function(){log("UPGRADE NEEDED");var t=r.result;iterate(db._structures[e],(function(e,r){var n=e.keys.PRIMARY.columns.length>1?e.keys.PRIMARY.columns:e.keys.PRIMARY.columns[0],o=t.createObjectStore(r,{keyPath:n});iterate(e.keys,(function(e,t){"PRIMARY"!==t&&o.createIndex(t,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})}))}))},void(r.onsuccess=function(){db._connections[e]=r.result;var n=new dbObject(e);t(n)})}t(new dbObject(db._connections[e]))}))},add:function(e,t,r){var n;if(!(null===(n=null==r?void 0:r.keys)||void 0===n?void 0:n.PRIMARY)||!(null==r?void 0:r.fields))throw new Error(_("The database structure for %s is not valid (are there keys and field? Is there a primary?",t));db._structures[e]||(db._structures[e]={}),db._structures[e][t]=r}};function _addLoader(e,t,r){var n=(new Date).getTime(),o={key:e,url:substr(e,0,e.length-33),loader:t,aborter:r,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:n};bbn.env.loaders.push(o),bbn.env.loadersHistory.unshift(o);for(var i=bbn.env.loadersHistory.length;i&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)i--,bbn.env.loading||bbn.env.loadersHistory.splice(i,1);return n}function getProperty(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if("object"==typeof e){var n=[];return 1===t.length&&"string"==typeof t[0]&&n.push.apply(n,t[0].split(".")),n.reduce((function(e,t){if(e)return e[t]}),e)}}function removeAccents(e){if(!isString(e)){if(!e.toString)throw log(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function isDate(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Date]"!=={}.toString.apply(o))return!1}return!0}function _compareValues(e,t,r,n){void 0===n&&(n="asc");var o=getProperty(e,r),i=getProperty(t,r),a=(typeof o).toLowerCase(),s=(typeof i).toLowerCase();if("asc"!==n&&isString(n)&&"desc"===n.toLowerCase()&&(n="desc"),a!==s)o=a,i=s;else switch(a){case"string":o=removeAccents(o).toLowerCase(),i=removeAccents(i).toLowerCase();break;case"boolean":o=o?1:0,i=i?1:0;break;case"object":isDate(o)&&(o=o.getTime(),i=isDate(i)?i.getTime():0)}return o<i?"desc"===n?1:-1:o>i?"desc"===n?-1:1:0}function numProperties(e){return e&&"object"==typeof e?Object.keys(e).length:0}function isEmpty(e){return!e||(isArray(e)?!e.length:"object"==typeof e&&!numProperties(e))}function isNull(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Null]"!=={}.toString.apply(o))return!1}return!0}function isObject(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Object]"!=={}.toString.apply(o))return!1}return!0}function isDom(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){if(!(n[r]instanceof HTMLElement))return!1}return!0}function isCp(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(!t.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(var n=0,o=t;n<o.length;n++){var i=o[n];if(!bbn.cp.isComponent(i)||isDom(i)||!(null===(e=i.$el)||void 0===e?void 0:e.bbnCid))return!1}return!0}function circularReplacer(){var e=new WeakSet;return function(t,r){if("object"==typeof r&&null!==r){if(e.has(r))return;e.add(r),[void 0,Object,Array,null].includes(r.constructor)||(r=isDom(r)?r.bbnId?"__BBN_DOM__"+r.tagName+"/"+r.bbnId+r.bbnHash:"__BBN_DOM__"+r.tagName+"/"+r.className:isCp(r)?"__BBN_CP__"+r.$options.name+"/"+r.$cid:r.constructor.toString())}return r}}function simpleHash1(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return Math.abs(t).toString(16)}function simpleHash2(e){for(var t=0,r=0;r<e.length;r++){t=e.charCodeAt(r)+(t<<6)+(t<<16)-t,t|=0}return Math.abs(t).toString(16)}function simpleHash(e){return simpleHash1(e).padStart(8,"0")+simpleHash2(e).padStart(8,"0")}function hash(e){var t="__bbn__";for(var r in arguments)if(arguments[r]){var n=arguments[r];if(isDom(n))n.bbnId?t+="__BBN_DOM__"+n.tagName+"/"+n.bbnId+n.bbnHash:t+="__BBN_DOM__"+n.tagName+"/"+n.className;else if(isCp(n))t+="__BBN_CP__"+n.$options.name+"/"+n.$cid;else try{t+=JSON.stringify(arguments[r],circularReplacer())}catch(e){t+="."}}return simpleHash(t)}function md5(e){var t="0123456789abcdef";function r(e){var r,n="";for(r=0;r<=3;r++)n+=t.charAt(e>>8*r+4&15)+t.charAt(e>>8*r&15);return n}function n(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,a){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(o,a)),i),r)}function i(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function a(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}var l,c,f,d,h,p=function(e){var t,r=1+(e.length+8>>6),n=new Array(16*r);for(t=0;t<16*r;t++)n[t]=0;for(t=0;t<e.length;t++)n[t>>2]|=e.charCodeAt(t)<<t%4*8;return n[t>>2]|=128<<t%4*8,n[16*r-2]=8*e.length,n}(e),m=1732584193,b=-271733879,g=-1732584194,v=271733878;for(l=0;l<p.length;l+=16)c=m,f=b,d=g,h=v,m=i(m,b,g,v,p[l+0],7,-680876936),v=i(v,m,b,g,p[l+1],12,-389564586),g=i(g,v,m,b,p[l+2],17,606105819),b=i(b,g,v,m,p[l+3],22,-1044525330),m=i(m,b,g,v,p[l+4],7,-176418897),v=i(v,m,b,g,p[l+5],12,1200080426),g=i(g,v,m,b,p[l+6],17,-1473231341),b=i(b,g,v,m,p[l+7],22,-45705983),m=i(m,b,g,v,p[l+8],7,1770035416),v=i(v,m,b,g,p[l+9],12,-1958414417),g=i(g,v,m,b,p[l+10],17,-42063),b=i(b,g,v,m,p[l+11],22,-1990404162),m=i(m,b,g,v,p[l+12],7,1804603682),v=i(v,m,b,g,p[l+13],12,-40341101),g=i(g,v,m,b,p[l+14],17,-1502002290),m=a(m,b=i(b,g,v,m,p[l+15],22,1236535329),g,v,p[l+1],5,-165796510),v=a(v,m,b,g,p[l+6],9,-1069501632),g=a(g,v,m,b,p[l+11],14,643717713),b=a(b,g,v,m,p[l+0],20,-373897302),m=a(m,b,g,v,p[l+5],5,-701558691),v=a(v,m,b,g,p[l+10],9,38016083),g=a(g,v,m,b,p[l+15],14,-660478335),b=a(b,g,v,m,p[l+4],20,-405537848),m=a(m,b,g,v,p[l+9],5,568446438),v=a(v,m,b,g,p[l+14],9,-1019803690),g=a(g,v,m,b,p[l+3],14,-187363961),b=a(b,g,v,m,p[l+8],20,1163531501),m=a(m,b,g,v,p[l+13],5,-1444681467),v=a(v,m,b,g,p[l+2],9,-51403784),g=a(g,v,m,b,p[l+7],14,1735328473),m=s(m,b=a(b,g,v,m,p[l+12],20,-1926607734),g,v,p[l+5],4,-378558),v=s(v,m,b,g,p[l+8],11,-2022574463),g=s(g,v,m,b,p[l+11],16,1839030562),b=s(b,g,v,m,p[l+14],23,-35309556),m=s(m,b,g,v,p[l+1],4,-1530992060),v=s(v,m,b,g,p[l+4],11,1272893353),g=s(g,v,m,b,p[l+7],16,-155497632),b=s(b,g,v,m,p[l+10],23,-1094730640),m=s(m,b,g,v,p[l+13],4,681279174),v=s(v,m,b,g,p[l+0],11,-358537222),g=s(g,v,m,b,p[l+3],16,-722521979),b=s(b,g,v,m,p[l+6],23,76029189),m=s(m,b,g,v,p[l+9],4,-640364487),v=s(v,m,b,g,p[l+12],11,-421815835),g=s(g,v,m,b,p[l+15],16,530742520),m=u(m,b=s(b,g,v,m,p[l+2],23,-995338651),g,v,p[l+0],6,-198630844),v=u(v,m,b,g,p[l+7],10,1126891415),g=u(g,v,m,b,p[l+14],15,-1416354905),b=u(b,g,v,m,p[l+5],21,-57434055),m=u(m,b,g,v,p[l+12],6,1700485571),v=u(v,m,b,g,p[l+3],10,-1894986606),g=u(g,v,m,b,p[l+10],15,-1051523),b=u(b,g,v,m,p[l+1],21,-2054922799),m=u(m,b,g,v,p[l+8],6,1873313359),v=u(v,m,b,g,p[l+15],10,-30611744),g=u(g,v,m,b,p[l+6],15,-1560198380),b=u(b,g,v,m,p[l+13],21,1309151649),m=u(m,b,g,v,p[l+4],6,-145523070),v=u(v,m,b,g,p[l+11],10,-1120210379),g=u(g,v,m,b,p[l+2],15,718787259),b=u(b,g,v,m,p[l+9],21,-343485551),m=n(m,c),b=n(b,f),g=n(g,d),v=n(v,h);return r(m)+r(b)+r(g)+r(v)}function analyzeFunction(e){var t="function"==typeof e?e.toString():e;if("string"!=typeof t)throw Error("Unexpected type "+typeof e+" while parsing function");for(var r,n="",o=!1,i=!1,a=!1,s="",u=0,l=0,c=[],f={},d="",h=['"',"'","`"],p=!1,m=!1,b=!1,g=!1,v=!1,y="",w=0;w<t.length;w++)if(b||"/"!==t[w]||"*"!==t[w+1])if("/"===t[w]&&"*"===t[w-1])b=!1;else if(g||"/"!==t[w]||"/"!==t[w+1])if("\n"===t[w])g=!1;else{if(b||g)continue;if(t[w]===d&&!p&&d)d="",n+=t[w];else if(d)p="\\"===t[w]&&!p,n+=t[w];else if(h.includes(t[w])&&!p)d=t[w],n+=t[w];else if("("===t[w]){if(u++,""!==n.trim()){if("function"===n.trim())a=!0;else if("async"!==n.trim()){var x=(s=n.trim()).match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);x&&(s=x[1])}n=""}}else if(")"===t[w])u===l+1&&(m?(f.default=n.trim(),m=!1):n&&(f.name=n.trim()),(f.name||f.default)&&(c.push(f),f={}),n=""),l++;else if(v&&"}"!==t[w])n+=t[w];else{if(u&&u===l&&":"===t[w]){var $=t.substring(w+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!$)throw Error("Unexpected ':' while parsing function");y=$[1],r=t.substring(w+$[0].length).trim();break}if("="===t[w]&&">"===t[w+1]){""!==n.trim()&&u===l&&(f.name=n.trim(),c.push(f),f={},n=""),o=!0,w++;continue}if("="===t[w]&&u>l&&!m)f.name=n.trim(),n="",m=!0;else if(","===t[w])if(v)n+=t[w];else{if(!(u>l))throw Error("Unexpected ',' while parsing function");m?(f.default=n.trim(),m=!1):n&&(f.name=n.trim()),(f.name||f.default)&&(c.push(f),f={}),n=""}else if("{"===t[w]||"}"===t[w]){if(u===l){r=t.substring(w).trim();break}u>l?"{"!==t[w]||v?"}"===t[w]&&v&&(v=!1,n+=t[w]):(v=!0,n=t[w]):n=""}else{if(o){r=t.substring(t.indexOf("=>")+2).trim();break}" "===t[w]?""!==n.trim()&&("async"===n.trim()&&(i=!0),u>l?n+=t[w]:n=""):n+=t[w]}}}else g=!0,n="";else b=!0,n="";if(!r){if(!o)throw Error("Unexpected end of function while parsing function");r=n}var O=c.map((function(e){return e.name+(e.default?" = "+e.default:"")})).join(", ");return{body:r,args:c,argString:O,isArrow:o,hasFunction:a,name:s,isAsync:i,hash:md5(r+(s?"-"+s:"")+(O?"-"+O:"")),returnType:y}}function isSame(e,t,r){if(r||(r=[]),e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n=Object.keys(e).sort(),o=Object.keys(t).sort();if(hash(n)!==hash(o))return!1;var i=!0;if(e&&"object"==typeof e){if(r.includes(e))return i;r.push(e)}return each(n,(function(r){if(!isSame(e[r],t[r]))return i=!1,!1})),i}if(e&&t&&"function"==typeof e&&"function"==typeof t){n=analyzeFunction(e),o=analyzeFunction(t);return n.hash===o.hash}return!1}function compare(e,t,r){switch(r){case"===":case"=":case"equal":case"eq":case"is":return e===t;case"!==":case"notequal":case"neq":case"isnot":return e!==t;case"!=":case"different":return e!=t;case"contains":case"contain":case"icontains":case"icontain":return!isEmpty(e)&&!isEmpty(t)&&-1!==removeAccents(e).toLowerCase().indexOf(removeAccents(t).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!isNull(e)&&!isNull(t))||-1===removeAccents(e.toLowerCase()).indexOf(removeAccents(t.toLowerCase()));case"starts":case"start":return!isNull(e)&&!isNull(t)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof t&&(t=t.toString()||""),0===e.indexOf(t));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!isNull(e)&&!isNull(t)&&0===removeAccents(e).toLowerCase().indexOf(removeAccents(t).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!isNull(e)&&!isNull(t)&&e.lastIndexOf(t)===e.length-t.length;case"like":return!isNull(e)&&!isNull(t)&&removeAccents(e).toLowerCase()===removeAccents(t).toLowerCase();case"gt":case">":return e>t;case"gte":case">=":return e>=t;case"lt":case"<":return e<t;case"lte":case"<=":return e<=t;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(isObject(e,t))return isSame(e,t);default:return e==t}}function compareConditions(e,t){if(!t.conditions||!t.logic||!isArray(t.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");var r="AND"===t.logic;return each(t.conditions,(function(n){var o;if(n.conditions&&isArray(n.conditions))o=compareConditions(e,n);else if(o=compare(getProperty(e,n.field),n.value,n.operator)){var i=n.field.split("."),a=i.pop();i.length&&each(i,(function(t){return e=e[t]})),void 0===getProperty(e,a)&&void 0!==n.value&&(o=!1)}if(o){if("OR"===t.logic)return r=!0,!1}else if("AND"===t.logic)return r=!1,!1})),r}function filterToConditions(e,t){if(void 0===t&&(t="="),!isObject(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!isArray(e.conditions)){var r=[];iterate(e,(function(e,n){isObject(e)&&"object"==typeof e.conditions?r.push(filterToConditions(e)):r.push({field:n,operator:t,value:e})})),e={conditions:r}}return e.logic||(e.logic="AND"),e}function search(e,t,r,n,o){if(void 0===r&&(r=null),void 0===n&&(n="="),void 0===o&&(o=0),!isIterable(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;var i,a=!1;if("string"==typeof t?i={conditions:[{field:t,value:r,operator:n||"="}]}:t?(o="number"==typeof n?n:0,n=r,isObject(t)?i=t:"function"==typeof t&&(a=!0,i=t)):(a=!0,i=function(e){return compareConditions({value:e},filterToConditions({logic:"AND",conditions:[{field:"value",operator:n||"=",value:r}]}))}),a||isObject(i)&&numProperties(i))if(isNumber(n)&&(o="number"==typeof n?n:0,n=void 0),isNumber(o)||(o=0),"function"==typeof i){for(var s=o;s<e.length;s++)if(i(e[s]))return s}else{i=filterToConditions(i);for(s=o;s<e.length;s++)if(compareConditions(e[s],i))return s}return-1}function getRow(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n="=");var o=search(e,t,r,n);return o>-1&&e[o]}function _deleteLoader(e,t,r){void 0===t&&(t=null),void 0===r&&(r=!1);var n=search(bbn.env.loaders,{key:e});if(n>-1){var o=bbn.env.loaders.splice(n,1)[0],i=getRow(bbn.env.loadersHistory,{key:e,start:o.start});return i&&(i.loading=!1,i.duration=(new Date).getTime()-o.start,"string"==typeof t?(i.errorMessage=t,i.error=!r,i.abort=r):isObject(t)&&(i.success=!0)),!0}return!1}function getLoader(e){var t=search(bbn.env.loaders,{key:e});return t>-1?bbn.env.loaders[t]:null}function abort(e){var t=getLoader(e);(null==t?void 0:t.aborter)&&t.aborter.abort("Operation canceled by the user.")}function filter(e,t,r,n){if(void 0===r&&(r=null),void 0===n&&(n="="),!isArray(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");var o={},i=[],a="function"==typeof t;if(!t||!e.length)return e;if(e.length){if("object"==typeof t)n=r,o=t;else if("string"==typeof t)o[t]=r;else if(!a)throw new Error("Search function error: The prop argument should be a string or an object");return"function"==typeof t?each(e,(function(e,r){t(e,r)&&i.push(e)})):(o=filterToConditions(o,n)).conditions&&o.logic&&each(e,(function(e){compareConditions(e,o)&&i.push(e)})),i}}function abortURL(e){each(filter(bbn.env.loaders,{url:e}),(function(t){if(!t||!t.source)throw new Error("Impossible to find the loader with URL "+e);t.source.cancel("Operation canceled by the user.")}))}function addColors(e){if(numProperties(e)){bbn.var.colors||(bbn.var.colors={});var t=document.createElement("style");document.head.appendChild(t);var r=t.sheet;iterate(e,(function(e,t){bbn.var.colors[t]=e,r.insertRule(".bbn-"+t+", .bbn-color-text-"+t+" {color: "+e+" !important;}",0),r.insertRule("svg.bbn-"+t+", .bbn-"+t+" svg, svg.bbn-color-text-"+t+", .bbn-color-text-"+t+" svg {fill: "+e+";}",0),r.insertRule(".bbn-bg-"+t+", .bbn-color-bg-"+t+", .bbn-color-background-"+t+" {background-color: "+e+" !important;}",0),r.insertRule(".bbn-border-"+t+", .bbn-color-border-"+t+" {border-color: "+e+" !important;}",0),r.insertRule(".bbn-color-"+t+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",0)}))}}function addInputs(e,t,r){if(void 0===t&&(t=null),void 0===r&&(r=""),e&&"FORM"===e.tagName){var n=function(t,r){var n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",t),n.setAttribute("value",r),e.appendChild(n)};t=JSON.parse(JSON.stringify(t||{})),r=r||"",t&&iterate(t,(function(t,o){var i=r?"".concat(r,"[").concat(o,"]"):o;t instanceof Date?n(i,t.toISOString()):t instanceof Array?t.forEach((function(t,r){var o="".concat(i,"[").concat(r,"]");"object"==typeof t?addInputs(e,t,o):n(o,t.toString())})):"object"!=typeof t||t instanceof File?n(i,t.toString()):addInputs(e,t,i)}))}}function addStyle(e,t){isObject(t)&&iterate(t,(function(t,r){e.style[r]=t}))}function adjustSize(e,t){var r=0;each(t,(function(t){t.style[e]="auto"})),each(t,(function(t,n){var o=t.getBoundingClientRect(),i=o[e]%1?o[e]-o[e]%1+1:o[e];i>r&&(r=i)})),each(t,(function(t,n){r&&(t.style[e]=r+"px")}))}function adjustHeight(){var e=arguments;return 1===e.length&&isIterable(e[0])&&(e=e[0]),adjustSize("height",e)}function adjustWidth(){var e=arguments;return 1===e.length&&isIterable(e[0])&&(e=e[0]),adjustSize("width",e)}function escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function replaceAll(e,t,r,n){return void 0===n&&(n=""),r.toString().replace(isObject(e)?e:new RegExp(escapeRegExp(e),"g"+n),t)}function getRequestId(e,t,r){var n={};return t&&iterate(t,(function(e,t){-1===t.indexOf("_bbn")&&(n[t]=e)})),e+":"+md5((r||"json")+JSON.stringify(n))}function extend(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=!1,n=[],o=0;o<e.length;o++)if(!0===e[o])r=!0;else{if(!e[o])continue;if("object"!=typeof e[o])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[o]);n.push(e[o])}if(!n.length)throw new Error("No argument given");var i=n[0];for(o=1;o<n.length;o++)iterate(n[o],(function(e,t){r?isArray(e)?(i[t]=isArray(i[t])?i[t]:[],each(e,(function(e,r){if(e&&"object"==typeof e){var n=i[t][r];isArray(e)?isArray(n)||(n=[]):isObject(n)||(n={}),i[t][r]=extend(!0,n,e)}else i[t][r]=e}))):isObject(e)?i[t]=extend(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:i[t]!==e&&(i[t]=e)})),n[o].__bbnNoData&&Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1});return i}function ajax(e,t,r,n,o,i){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=null),void 0===i&&(i=null),1===arguments.length&&e&&"object"==typeof e&&e.url&&(e.abort&&(i=e.abort),e.failure&&(o=e.failure),e.success&&(n=e.success),e.data&&(r=e.data),e.datatype&&(t=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=replaceAll("//","/",e)),t||(t="json");var a=getRequestId(e,r,t),s=getLoader(a);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&extend(r||{},{_bbn_token:bbn.env.token});var u=new AbortController,l={responseType:t,signal:u.signal};"text"===t&&(l.headers={accept:"text/javascript","Content-Type":"text/javascript"});var c=[e];isObject(r)&&numProperties(r)>0&&c.push(r),c.push(l);var f=2===c.length?"get":"post",d=axios[f].apply(null,c).then((function(t){if(_deleteLoader(a,t),bbn.fn.defaultEndLoadingFunction(e,h,r,t),200===t.status)isFunction(n)&&n(t.data,t.headers);else bbn.fn.defaultAjaxErrorFunction(d,t);return t})).catch((function(t){var n=axios.isCancel(t);if(_deleteLoader(a,t.message||t.response.data,n),bbn.fn.defaultEndLoadingFunction(e,h,r,t),n){var s=1;isFunction(i)&&(s=i(t.message,e)),s&&bbn.fn.defaultAjaxAbortFunction(t.message,e)}else{s=1;isFunction(o)&&(s=o(t.request,t)),s&&bbn.fn.defaultAjaxErrorFunction(t.request,t.response?t.response.data:"",t.response?t.response.status:t)}})),h=_addLoader(a,d,u);return bbn.fn.defaultStartLoadingFunction(e,h,r,a),d}}function animateCss(e,t,r){e.classList.add("animated"),e.classList.add(t),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function e(n){n.target.removeEventListener(n.type,e),"function"==typeof r&&r.call(this),n.target.classList.remove(t)}))}function arrayBuffer2String(e){return String.fromCharCode.apply(null,new Uint16Array(e))}function arrayFromProp(e,t){var r=[];return each(e,(function(e,n){r.push(getProperty(e,t))})),r}function autoExtend(e,t){bbn[e]||(bbn[e]={}),extend(bbn[e],t)}function baseName(e,t){if(e&&isString(e)){var r=e.split("/").pop();if(!t)return r;var n=t.length;if(r&&substr(r,-n)===t)return substr(r,0,r.length-n)}return""}function br2nl(e){return replaceAll("<br />","\n",replaceAll("<br/>","\n",replaceAll("<br>","\n",e)))}function date(e){var t=typeof e;if(void 0===e)return new Date;if("number"===t||isNumber(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===t){if(10===e.length)return new Date(parseInt(substr(e,0,4)),parseInt(substr(e,5,2))-1,parseInt(substr(e,8,2)),12);if(19===e.length)return new Date(parseInt(substr(e,0,4)),parseInt(substr(e,5,2))-1,parseInt(substr(e,8,2)),parseInt(substr(e,11,2)),parseInt(substr(e,14,2)),parseInt(substr(e,17,2)))}else if(isDate(e))return e;return!1}function fdatetime(e,t){void 0===t&&(t=!1);var r=date(e);return isDate(r)?void 0!==dayjs?dayjs(r).calendar(null,{sameDay:"["+bbn._("Today")+"] HH:mm",nextDay:"["+bbn._("Tomorrow")+"] HH:mm",nextWeek:"ddd D HH:mm",lastDay:"["+bbn._("Yesterday")+"] HH:mm",lastWeek:"ddd D HH:mm",sameElse:"DD/MM/YYYY HH:mm"}):r.toLocaleDateString():t&&isString(t)?t:""}function fdate(e,t){if(void 0===t&&(t=!1),!0===t)return fdatetime(e);var r=date(e);return isDate(r)?void 0!==dayjs?dayjs(r).format("L"):r.toLocaleDateString():t&&isString(t)?t:""}var bbn$2={_:function(e){return e}};function calendar(e,t){if(void 0===t&&(t=!1),void 0===dayjs$1)return fdate(e,t);var r=date(e);return isDate(r)?dayjs$1(r).calendar(null,{sameDay:"["+bbn$2._("Today")+"]",nextDay:"["+bbn$2._("Tomorrow")+"]",nextWeek:"ddd D",lastDay:"["+bbn$2._("Yesterday")+"]",lastWeek:"ddd D",sameElse:"L"}):t&&isString(t)?t:""}function callback(url,res,fn,fn2,ele){void 0===res&&(res=null),void 0===fn&&(fn=null),void 0===fn2&&(fn2=null),void 0===ele&&(ele=null);var tmp=!1;if(res){tmp=!0;var t=typeof res,isObj="object"===t.toLowerCase(),errTitle=void 0;if(isObj&&res.prescript)try{var preFn=new Function(res.prescript);preFn()}catch(e){error(e.message||"")}isObj&&void 0===res.url&&(res.url=url),tmp=fn&&isFunction(fn)?fn(res,ele):bbn.fn.defaultLinkFunction(res,ele),ele&&isObj&&void 0!==res.content&&("value"in ele?ele.value=res.content:ele.innerHTML=res.content),tmp&&isObj&&res.script&&(tmp="function"==typeof res.script?res.script(res.data?res.data:{},ele||null):function(data,ele){var r=null;try{r=eval(res.script),isFunction(r)&&(r=r(data,ele))}catch(e){log(e,res),error(isFunction(e.getMessage)?e.getMessage():null)}return r}(res.data?res.data:{},ele||!1)),tmp&&fn2&&isFunction(fn2)?fn2(res):isObj&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(res,ele),tmp&&isObj&&res.postscript&&eval(res.postscript),isObj&&res.error&&(errTitle=res.errorTitle||bbn.lng.server_response,bbn.fn.defaultAlertFunction(res.error,errTitle))}else bbn.fn.defaultAlertFunction(bbn.lng.errorText,bbn.lng.error);return tmp}function camelize(e){return e.replace(/^([A-Z])|[\s-](\w)/g,(function(e,t,r,n){return r?r.toUpperCase():t.toLowerCase()}))}function camelToCss(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})).replace("/^./",(function(e){return e.toLowerCase()}))}function canvasToImage(e){var t=new Image;return t.src=e.toDataURL("image/png"),t}function center(e){for(var t=e.parentNode,r=t.clientWidth,n=t.clientHeight;t&&(!r||!n);)r=(t=e.parentNode).clientWidth,n=t.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(n-e.offsetHeight)/2+t.scrollTop)+"px",e.style.left=Math.max(0,(n-e.offsetWidth)/2+t.scrollLeft)+"px",e}function checkPropsDetails(e,t,r){void 0===r&&(r=!1);var n,o={error:!1,result:!0};("string"==typeof t&&(t=[t]),isArray(t)||(o.error=bbn._("checkProps must receive a string or an array as props argument")),isObject(e)||(o.error=bbn._("checkProps must receive an object as obj argument")),o.error)||each(t,(function(t){var i=(t=t.trim().split(":"))[1]||!1;if(t=t[0],void 0===e[t]?o.error=t+" "+bbn._("is not defined"):i?(n="is"+substr(i,0,1).toUpperCase()+substr(i,1).toLowerCase(),void 0===bbn.fn[n]?o.error=i+" "+bbn._("is not a valid type"):bbn.fn[n](e[t])||(o.error=t+" "+bbn._("is not a")+" "+i)):r&&!e[t]&&(o.error=t+" "+bbn._("is empty")),o.error)return!1}));return o.error&&(o.result=!1),o}function checkProps(e,t,r){return void 0===r&&(r=!1),checkPropsDetails(e,t,r).result}function checkPropsOrDie(e,t,r){void 0===r&&(r=!1);var n=checkPropsDetails(e,t,r);if(n.error)throw new Error(n.error);return!0}function clone(e){return isArray(e)?e.slice().map((function(e){return"object"==typeof e?clone(e):e})):isObject(e)?extend(!0,Object.create(Object.getPrototypeOf(e)),e):e}function colorToHex(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}function copy(e){return new Promise((function(t){var r;if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?navigator.clipboard.write([new ClipboardItem((r={},r[e.type.toString()]=e,r))]).then((function(){t(!0)})):isObject(e)&&isFunction(e.toBlob)?e.toBlob((function(e){var r;navigator.clipboard.write([new ClipboardItem((r={},r[e.type.toString()]=e,r))]).then((function(){t(!0)}))})):(navigator.clipboard.writeText(e),t(!0)));var n=document.createElement("textarea");n.style.opacity="0",n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),t(!0)}t(!1)}))}function count(e,t,r,n){return void 0===r&&(r=null),void 0===n&&(n="="),filter(e,t,r,n).length||0}dayjs$1.extend(calendar$1),dayjs$1.extend(isLeapYear);for(var crc32Table=[],i=0;i<256;i++){for(var c=i,j=0;j<8;j++)c=1&c?3988292384^c>>>1:c>>>1;crc32Table.push(c)}function crc32(e){for(var t=~0,r=0;r<e.length;r++){var n=e.charCodeAt(r);t=t>>>8^crc32Table[255&(t^n)]}return~t>>>0}var __spreadArray=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function createObject(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.length&&extend.apply(void 0,__spreadArray([r],e,!1)),r}function cssExists(e){for(var t,r,n=document.styleSheets,o=0;o<n.length;o++){t=1;try{r=n[o].rules||n[o].cssRules}catch(e){if(t=!1,"SecurityError"!==e.name)throw e}if(t)for(var i=0;i<r.length;i++)if(new RegExp("(^|\\s)"+escapeRegExp(e)+"(\\{|\\s)","g").test(r[i].selectorText))return!0}return!1}function dateSQL(e,t){var r=date(e);if(r)return dayjs$1(r).format("YYYY-MM-DD"+(t?"":" HH:mm:ss"))}function daysInMonth(e){var t=date(e);return!!t&&dayjs(t).daysInMonth()}function deepPath(e,t,r,n){var o;void 0===n&&(n=[]);return(o=search(e,t,0))>-1?(n.push(o),n):(each(e,(function(e,o){if(isArray(e[r])){var i=n.slice();i.push(o);var a=deepPath(e[r],t,r,i);if(!1!==a)return a}})),!1)}function defaultAjaxAbortFunction(e,t){log(e)}function defaultAjaxErrorFunction(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null),log(t,r)}function defaultAlertFunction(e,t){alert(e)}function defaultConfirmFunction(e,t,r){void 0===r&&(r=null);var n=0;confirm(e)&&isFunction(t)&&(t(),n=1),!n&&isFunction(r)&&r()}function defaultEndLoadingFunction(e,t,r,n){return!0}function defaultErrorFunction(e){log(e)}function defaultHistoryFunction(e){return!0}function defaultLinkFunction(e,t){return!0}function defaultPostLinkFunction(e,t){return!0}function defaultPreLinkFunction(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=null),log("defaultPreLinkFunction",e,t,r),!0}function defaultResizeFunction(){return!0}function defaultStartLoadingFunction(e,t,r,n){return!0}function deleteProp(e,t){checkType(e,"object",bbn._("The obj must be an object in setProp")),checkType(t,"string",bbn._("The prop must be a string in setProp")),delete e[t]}function isValue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("object"==typeof o&&!isNull(o))return!1}return!0}var diffObjProcessed=[];function diffObj(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n=!1),n||(diffObjProcessed=[]);var o="unchanged";void 0===n&&(n=!1);var i=createObject();if(!isFunction(e)&&!isFunction(t)){if(isValue(e)||isValue(t)){var a=function(e,t){return e===t||isDate(e)&&isDate(t)&&e.getTime()===t.getTime()?o:void 0===e?"created":void 0===t?"deleted":"updated"}(e,t);if(r||a!==o){var s=createObject();return Object.defineProperty(s,"type",{value:a,enumerable:!1}),Object.defineProperty(s,"data",{value:void 0===e?t:e,enumerable:!1}),Object.defineProperty(s,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==e&&Object.defineProperty(s,"newData",{value:t,enumerable:!1}),s}return!1}if(isDom(e)||isDom(t))return!1;if(diffObjProcessed.includes(e)||diffObjProcessed.includes(t))return!1;for(var u in diffObjProcessed.push(e,t),e)if(!isFunction(e[u])){var l=void 0;void 0!==t[u]&&(l=t[u]),(a=diffObj(e[u],l,r,!0))&&(i[u]=a)}for(var u in t){if(!isFunction(t[u])&&void 0===e[u])(a=diffObj(void 0,t[u],r,!0))&&(i[u]=a)}}return!(n&&!r&&!numProperties(i))&&i}function dirName(e){if(isString(e)&&e){for(;"/"===substr(e,e.length-1);)e=substr(e,0,e.length-1);var t=e.lastIndexOf("/");if(t>0)return substr(e,0,t);if(0===t)return"/"}return""}function isBlob(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Blob]"!=={}.toString.apply(o))return!1}return!0}function fileExt(e){if(e&&isString(e)){var t=e.split(".");if(t[0]&&t.length>1)return t[t.length-1].toLowerCase()}return""}function isCanvas(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){if(!(n[r]instanceof HTMLCanvasElement))return!1}return!0}function downloadContent(e,t,r){if(void 0===r&&(r=null),isCanvas(t))t.toBlob((function(t){var r=document.createElement("a");r.download=e,r.href=window.URL.createObjectURL(t),r.className="bbn-no",r.click(),window.URL.revokeObjectURL(r.href)}),r||"image/png");else{r?-1===r.indexOf("/")&&(r="text/"+r):r=isObject(t)&&t.type?t.type:"octet/stream";var n=window.document.createElement("a");n.className="bbn-no";var o=null;if(isString(t))o=new Blob([t],{type:r});else try{o=t}catch(e){log(e)}n.href=window.URL.createObjectURL(o),n.download=e,document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(n.href),document.body.removeChild(n)}}function download(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=null),t&&"object"==typeof t&&(r=t,t=""),ajax(e,"blob",r||{_bbn_download:1},(function(r,n){if(!t){var o="content-disposition",i="attachment; filename=";t=(null==n?void 0:n[o])&&0===n[o].indexOf(i)?substr(n[o],22,n[o].length-21-2):baseName(e)}if(isBlob(r)){var a=fileExt(t);if("string"==typeof t&&("type"in r&&"text/html"!==r.type||["php","html"].includes(a)))return void downloadContent(t,r)}}),(function(e){bbn.fn.defaultAjaxErrorFunction(e)}))}function eraseCookie(e){document.cookie=e+"=; Max-Age=-99999999;"}function escapeDquotes(e){return isString(e)?e.replace(/"/g,'\\"'):e}function escapeSquotes(e){return isString(e)?e.replace(/'/g,"\\'"):e}function escapeTicks(e){return isString(e)?e.replace(/`/g,"\\`"):e}function escapeUrl(e,t){var r="";e.match("^(http|https)://")&&(r+="http","s"===(e=e.substring(4)).substr(0,1)&&(r+="s",e=e.substring(1)),r+="://",e=e.substring(3)),each(dirName(e).split("/"),(function(e){r+=encodeURIComponent(e)+"/"}));var n=baseName(e),o="?",i="";if(n.indexOf(o)){var a=n.split("?");o="&",i="?"+a[1],n=a[0]}return t&&isString(t)?(t.match("^(\\&|\\?)")&&(t=t.substring(1)),t=o+t):t="",r+encodeURIComponent(n)+i+t}function extendOut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=null,n=0,o=e;n<o.length;n++){var i=o[n];if(!isObject(i))throw new Error("Each argument for extendOut must be an object, "+typeof i+" given");if(null===r)r=i;else for(var a in i)isObject(r[a],i[a])?extendOut(r[a],i[a]):void 0===r[a]&&(r[a]=i[a])}return r}function fieldValue(e){var t;return"checkbox"===e.type?e.checked?(t=e.value)||(t=1):t=0:"radio"===e.type?e.checked&&(t=e.value):t=e.value,t}function findAll(e,t,r,n){var o;void 0===n&&(n=[]);for(var i=0;(o=search(e,t,i))>-1;)n.push(e[o]),i=o+1;return each(e,(function(e){isArray(e[r])&&findAll(e[r],t,r,n)})),n}function fori(e,t,r,n){if(void 0===r&&(r=e.length-1),void 0===n&&(n=0),isArray(e)){var o=e.length-1;isNumber(r)&&0<r&&r<=o||(r=o),(!isNumber(n)||!(0<=n&&n<o)||n>r)&&(n=0);for(var i=n;i<=r;i++)if(!1===t(e[i],i))return}}function forir(e,t,r,n){if(void 0===r&&(r=e.length-1),void 0===n&&(n=0),isArray(e)){var o=e.length-1;isNumber(r)&&0<r&&r<=o||(r=o),(!isNumber(n)||!(0<=n&&n<o)||n>r)&&(n=0);for(var i=r;i>=n;i--)if(!1===t(e[i],i))return}}function format(e){var t=Array.prototype.slice.call(arguments,1);if(t.length){var r=0;return e.replace(/\%([d|s])/g,(function(e,n){var o=t[r++];return checkType(o,"d"===n?"number":"string",bbn._("The value doesn't correspond to the format")),o}))}return e}function formatBytes(e,t){if(void 0===t&&(t=2),!e)return"0 B";var r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(t<0?0:t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}function formatDate(e,t){return dayjs(e).format(t)}function formatSize(e,t){return isNumber(e)?e+"px":isString(e)?e:!t&&"auto"}function formdata(e){var t,r,n=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),o={};return each(n,(function(e,n){if(void 0!==(r=fieldValue(e))&&!e.disabled){var i=e.name;if(-1===i.indexOf("[]")&&i.indexOf("[")>-1&&i.indexOf("]")>-1&&i.lastIndexOf("]")===i.length-1&&(i=replaceAll("][",".",i),i=replaceAll("[",".",i),i=replaceAll("]","",i)),i.length>2&&i.indexOf("[]")===i.length-2)t=substr(i,0,i.length-2),void 0===o[t]&&(o[t]=[]),o[t].push(r);else if(i.indexOf(".")>-1){var a=void 0,s=i.split(".");a=o;for(var u=0;u<s.length;u++)void 0===o[s[u]]&&(u<s.length-1?a[s[u]]={}:a[s[u]]=r),a=a[s[u]]}else o[i]=r}})),o}function fromXml(e,t){var r=null;if(window.DOMParser)r=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if((r=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!r.loadXML(e))throw r.parseError.reason+" "+r.parseError.srcText}function n(e,r){if("#text"!=e.nodeName){var o={},i=r[e.nodeName];if(i?Array.isArray(i)?r[e.nodeName].push(o):r[e.nodeName]=[i,o]:t&&-1!=t.indexOf(e.nodeName)?r[e.nodeName]=[o]:r[e.nodeName]=o,e.attributes)for(var a=0,s=e.attributes;a<s.length;a++){var u=s[a];o[u.nodeName]=u.nodeValue}for(var l=0,c=e.childNodes;l<c.length;l++){n(c[l],o)}}else{var f=e.nodeValue;f.trim()&&(r["#text"]=f)}}for(var o={},i=0,a=r.childNodes;i<a.length;i++){n(a[i],o)}return o}function ftime(e,t){var r=date(e);return isDate(r)?void 0!==dayjs?dayjs(r).calendar():r.toLocaleDateString():t&&isString(t)?t:""}function unique(e){return e.filter((function(e,t,r){return t===r.indexOf(e)}))}function getAllTags(){return unique(Array.prototype.map.apply(document.all,[function(e){return e.tagName.toLowerCase()}]))}function getAncestors(e,t){void 0===t&&(t=null);var r=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof t)for(;e=e.parentElement.closest(t);)r.push(e);else for(!0===t&&r.push(e);e=e.parentElement;)r.push(e);return r}function getAttributes(e){e.getAttributeNames||error("The element is not a proper HTML Element");var t=Object.create(null);return e.getAttributeNames().forEach((function(r){t[r]=e.getAttribute(r)})),t}function getBrowserName(){var 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"}}function getBrowserVersion(){var 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""}}function getCookie(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t)){var i=o.substring(t.length,o.length);if(i)return JSON.parse(unescape(i)).value}}return null}function getCssVar(e){return 0!==e.indexOf("--")&&(e="--"+e),getComputedStyle(document.documentElement).getPropertyValue(e)}function getDay(e){var t=date(e);if(t){var r=t.getTime(),n=t.getYear(),o=365*(n-1970);t.getMonth()<2&&n--;for(var i=1972;i<=n;i+=4)o++;return o+Math.floor(r/864e5)}return!1}function getDeviceType(){var 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 getHTMLOfSelection(){var e,t=window.getSelection();if(t.rangeCount>0){log("RANGE",e=t.getRangeAt(0));var r=e.cloneContents();log("clonedSelection",r);var n=document.createElement("div");return n.appendChild(r),n.innerHTML}return""}function getEventData(e){var t=e.dataTransfer||e.clipboardData,r=t.getData("Text"),n={raw:r,files:[],str:[]};return new Promise((function(o,i){var a=!(t instanceof DataTransfer);if(!r&&"copy"===e.type){var s=window.getSelection();n.raw=s.toString();var u=getHTMLOfSelection();n.str.push({type:"text/plain",data:n.raw}),u!==n.raw?n.str.push({type:"text/html",data:u}):0===n.raw.trim().indexOf("<")&&n.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+n.raw+"\n</code>"}),a=!0,o(n)}if(!a){var l=[],c=t.items.length;each(t.items,(function(e,r){var i=e.kind,s=e.type;if("file"===i){var u=t.files[r];if(!s&&u.name){var f=u.name.split(".");s=f[f.length-1]}var d=u?u.name:bbn._("untitled"),h=u?u.size:null,p=u?u.lastModified:null,m=e.getAsFile();m?(a=!0,c--,n.files.push({type:s,data:m,name:d,size:h,mdate:p}),l.push(d),c||(n.raw||(n.raw=l.join(", ")),o(n))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+d)}else a=!0,e.getAsString((function(e){c--,n.str.push({type:s,data:e}),"text/plain"===s&&l.push(name),c||(n.raw||(n.raw=l.join(", ")),o(n))}))}))}a||setTimeout((function(){o(n)}))}))}function getField(e,t,r,n,o){var i;if(void 0===r&&(r=""),void 0===n&&(n=null),void 0===o&&(o="="),t&&(i=getRow(e,r,n,o)))return i[t]}function getFieldValues(e,t,r,n,o){checkType(t,"string"),r&&(e=filter(e,r,n,o));var i=[];return each(e,(function(e){return-1===i.indexOf(e[t])?i.push(e[t]):null})),i}function removeHtmlComments(e){return isString(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function getHtml(e,t){void 0===t&&(t=!1);var r=e.innerHTML();return t&&(r=removeHtmlComments(r)),r.trim()}function getPath(e){for(var t,r=e,n=0,o=function(){var e=r,o=e.localName;if(!o)return"break";if(e===document.body)return"break";if(e.id)return{value:"#"+e.id};n||(e.className&&" "!==e.className&&(o+="."+replaceAll(" ",".",replaceAll(" "," ",e.className))),n=1);var i=r.parentNode;if(i.children.filter((function(e){return e.tagName===o})).length>1){var a=i.children.indexOf(e)+1;a>1&&(o+=":nth-child("+a+")")}t=o+(t?">"+t:""),r=i};r.length;){var i=o();if("object"==typeof i)return i.value;if("break"===i)break}return t}function getProp(e,t){return checkType(e,"object",bbn._("The obj must be an object in setProp")),checkType(t,"string",bbn._("The prop must be a string in setProp")),e[t]}function getScrollBarSize(){if(void 0===bbn.env.scrollBarSize){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var r=document.createElement("div");r.style.width="100%",e.appendChild(r);var n=r.offsetWidth;e.parentNode.removeChild(e);var o=t-n;bbn.env.scrollBarSize=o?o+1:0}return bbn.env.scrollBarSize}function getText(e){return e.innerText().trim()}function getTimeoff(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)}function happy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),log.apply(this,e),this}function hex2rgb(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function history(){return window.history||!1}function html2text(e){var t=document.createElement("div");return t.innerHTML=e,e=t.innerText}function imageToCanvas(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t}function imgToBase64(e,t){return void 0===t&&(t="image/png"),imageToCanvas(e).toDataURL(t)}function info(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),log.apply(this,e),this}function treatAjaxArguments(e){var t,r,n={};if(isObject(e[0])&&1===e.length)return e[0];for(r=0;r<e.length;r++)t=(t=typeof e[r]).toLowerCase(),isFunction(e[r])?(n.errorFn&&!n.abortFn&&(n.abortFn=e[r]),n.successFn&&!n.errorFn?n.errorFn=e[r]:n.successFn||(n.successFn=e[r])):1===e[r]||!0===e[r]?n.force=!0:"string"===t?n.url?n.datatype=e[r]:0===e[r].indexOf("#")||0===e[r].indexOf(bbn.env.root+"#")?n.url=substr(e[r],bbn.env.root.length):(n.url=e[r],0===n.url.indexOf(bbn.env.root)&&(n.url=substr(n.url,bbn.env.root.length))):e[r]&&"object"===t&&(e[r]instanceof Event?n.e=e[r]:n.ele||1!==e[r].nodeType?"object"===t.toLowerCase()&&(n.obj=e[r]):n.ele=e[r]);return!n.url&&numProperties(n)&&(n.url=bbn.env.path),void 0===n.obj&&(n.obj={_bbn:"public"}),n.datatype||(n.datatype="json"),n}function setNavigationVars(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=!1),bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(substr(e,0,7))?e:bbn.env.root+e,bbn.env.path=substr(bbn.env.url,bbn.env.root.length),bbn.env.params=filter(bbn.env.path.split("/"),(function(e){return""!==e}));var o=window.history;if(o){var i=o.state,a={url:bbn.env.path,old_path:bbn.env.old_path||null,data:r||{},reload:!1};i&&i.url===bbn.env.path&&(i.data&&extend(a.data,i.data),i.title&&!t&&(t=i.title),n=!0),t=t?html2text(t):bbn.env.siteTitle,n?(a.reload=!0,o.replaceState(a,t,bbn.env.url)):o.pushState(a,t,bbn.env.url)}}function link(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=treatAjaxArguments(e),n=1;if(!0===r)return!0;if(!r)return link(window.location.href);if(0===r.url.indexOf("javascript:"))return!0;if(0===r.url.indexOf("data:"))return!0;if(0===r.url.indexOf("#"))return location.href=bbn.env.url+r.url,!0;if(0===r.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=r.url,setTimeout((function(){bbn.env.ignoreUnload=!1}),0),!1;if(getLoader(r.url))return!1;if((0===r.url.indexOf("http://")||0===r.url.indexOf("https://"))&&0!==r.url.indexOf(bbn.env.host))return r.e&&r.e.preventDefault(),window.open(r.url),!1;if(r.url!==bbn.env.params.join("/")||1===r.force){if(r.successFn)n=r.successFn(r.url);else if(bbn.fn.defaultPreLinkFunction){var o=bbn.fn.defaultPreLinkFunction(r.url,r.force,r.ele);void 0!==o.data?(extend(r.obj,o.data),n=1):n=o}if(n){1!==n&&"string"==typeof n&&(r.url=n);var i=bbn._("The Ajax call to")+" "+r.url+" ";return ajax(r.url,r.datatype,r.obj,(function(e){e||log(i+bbn._("returned no answer")),isObject(e)&&(0===Object.keys(e).length&&log(i+bbn._("returned an empty object")),e.new_url?(e.old_path=r.url,r.url=e.new_url):e.url&&r.url!==e.url&&(e.old_path=r.url)),callback(r.url,e,r.successFn,null,r.ele)&&void 0===e.noNav&&0!==bbn.env.path.indexOf(r.url)&&setNavigationVars(r.url,(e.title?e.title+" - ":"")+bbn.env.siteTitle)}),r.errorFn||null)}}return!0}function post(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=treatAjaxArguments(e);if(r.url)return ajax(r.url,r.datatype,r.obj,(function(e){callback(r.url,e,r.successFn,null,r.ele)}),r.errorFn,r.abortFn)}function submit(e,t,r){var n,o=e.getAttribute("action")||bbn.env.path;if(""===o&&(o="."),"string"==typeof o&&(0!==o.indexOf("http")||-1!==o.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(t&&t.preventDefault(),n=formdata(e))){e.setAttribute("action",null);var i=[o,n];!r&&e.getAttribute("data-script")&&(r=(r=new Function(e.getAttribute("data-script")))()),r&&i.push(r),post.apply(void 0,i)}}function resize(){var e=bbn.env.width!==window.innerWidth,t=bbn.env.height!==window.innerHeight;if(e||t){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),t&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));var r=parseInt(getCssVar("mobile-limit"))||650,n="bbn-screen-"+(bbn.env.width<r?"small":"regular"),o=(document.body.className||"").split(" "),i=!1;each(o,(function(e,t){if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return i=!0,e!==n&&o.splice(t,1,n),!1})),i||o.push(n),bbn.fn.defaultResizeFunction(),document.body.className=o.join(" ")}}function isMobileDevice(){return"mobile"===getDeviceType()}function isTabletDevice(){return"tablet"===getDeviceType()}function isMobile(){return isMobileDevice()||isTabletDevice()}function init(e,t){bbn.env.isInit&&!t||(bbn.env.root=document.baseURI.length>0?document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==substr(bbn.env.root,-1)&&(bbn.env.root+="/"),bbn.env.isInit||"undefined"==typeof dayjs||each(["advancedFormat","arraySupport","badMutable","buddhistEra","calendar","customParseFormat","dayOfYear","devHelper","duration","isBetween","isLeapYear","isSameOrAfter","isSameOrBefore","isToday","isTomorrow","isYesterday","isoWeek","isoWeeksInYear","localeData","localizedFormat","minMax","objectSupport","pluralGetSet","quarterOfYear","relativeTime","timezone","toArray","toObject","updateLocale","utc","weekOfYear","weekYear","weekday"],(function(e){window["dayjs_plugin_"+e]&&dayjs.extend(window["dayjs_plugin_"+e])})),"object"==typeof e&&extend(!0,bbn,e),bbn.env.path=substr(bbn.env.url,bbn.env.root.length),each(bbn.env.path.split("/"),(function(e,t){""!==(e=decodeURI(e.trim()))&&bbn.env.params.push(e)})),bbn.var.colors&&addColors(bbn.var.colors),bbn.env.lang&&void 0!==dayjs&&dayjs.locale(bbn.env.lang),window.onfocus=function(){bbn.env.isFocused=!0},window.onblur=function(){bbn.env.isFocused=!1,bbn.env.timeoff=Math.round((new Date).getTime()/1e3)},document.addEventListener("focusin",(function(e){e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.last_focus=(new Date).getTime()})),document.addEventListener("click",(function(e){if(bbn.env.last_focus=(new Date).getTime(),"ajax"===bbn.env.nav){var t=e.target;if(t instanceof HTMLElement&&"A"!==t.tagName){for(var r=t;r&&"A"!==r.tagName&&"BODY"!==r.tagName;)r=r.parentElement;t=r&&"A"===r.tagName?r:null}return t instanceof HTMLElement&&t.hasAttribute("href")&&!t.hasAttribute("target")&&!t.classList.contains("bbn-no")?(e.preventDefault(),e.stopPropagation(),link(t.getAttribute("href")),!1):void 0}})),each(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"),(function(e){e.addEventListener("submit",(function(t){submit(e,t)}))})),window.addEventListener("hashchange",(function(){bbn.env.hashChanged=(new Date).getTime()}),!1),window.addEventListener("resize",(function(){resize()})),window.addEventListener("orientationchange",(function(){resize()})),resize(),isMobile()&&(document.body.classList.add("bbn-mobile"),isTabletDevice()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){var t=window.history;if(!bbn.env.historyDisabled&&t&&bbn.fn.defaultHistoryFunction(t.state)){var r=t.state;r?link(r.url,extend({title:r.title||bbn.env.siteTitle},r.data||{})):r&&r.data&&isFunction(r.data.script)&&r.data.script()}}),bbn.env.isInit=!0,document.dispatchEvent(new Event("bbninit")),bbn.env.logging&&log("Logging in bbn is enabled"))}function isActiveInterface(e){return void 0===e&&(e=600),!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e}function isBoolean(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(![!0,!1].includes(o))return!1}return!0}function isColor(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=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"),n=0,o=e;n<o.length;n++){var i=o[n];if(!isString(i))return!1;if(!r.test(i))return!1}return!0}function isComment(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){if(!(n[r]instanceof Comment))return!1}return!0}function isDesktopDevice(){return"desktop"===getDeviceType()}function isValidDimension(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||isNumber(substr(e,0,1)))){var t=document.createElement("div");t.style.width=e;var r=!!t.style.width.length;return t.remove(),r}return!1}function isDimension(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("number"!=typeof o||o<0)return!1;if(!isValidDimension(o))return!1}return!0}function isEmail(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,n=0,o=e;n<o.length;n++){var i=o[n];if(!isString(i))return!1;if(!r.test(i))return!1}return!0}function isEvent(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){if(!(n[r]instanceof Event))return!1}return!0}function isFocused(e,t){return void 0===t&&(t=!1),e===document.activeElement||t&&e.contains&&e.contains(document.activeElement)}function isIP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!isString(o)||!bbn.var.regexp.ip.test(o))return!1}return!0}function isHostname(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!isString(o))return!1;if(!isIP(o)&&!bbn.var.regexp.hostname.test(o))return!1}return!0}function isInside(e,t){var r=getAncestors(e);if(r.length){if(isString(t)){var n=!1;return each(r,(function(e){if(e.matches&&e.matches(t))return n=!0,!1})),n}if(t instanceof HTMLElement)return r.indexOf(t)>-1}return!1}function isInViewport(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect();if(t)return r.top>=0&&r.left>=0&&r.right<=(window.innerWidth||document.documentElement.clientWidth)&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight);var n=e.offsetHeight,o=e.offsetWidth;return r.top>=-n&&r.left>=-o&&r.right<=(window.innerWidth||document.documentElement.clientWidth)+o&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)+n}function isPercent(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("string"!=typeof o||!o.match(/^\d+(?:\.\d+)?%$/))return!1}return!0}function isPrimitive(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(null!==o&&("object"==typeof o||"function"==typeof o))return!1}return!0}function isPromise(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Promise]"!=={}.toString.apply(o))return!1}return!0}function isPropSize(e){var t=!1;return each(["width","height","gap","margin","padding","top","left","right","bottom"],(function(r){if(-1!==e.indexOf(r))return t=!0,!1})),t}function isSQLDate(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("string"!=typeof o||!o.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}function isSymbol(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Symbol]"!=={}.toString.apply(o))return!1}return!0}function isURL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!bbn.var.regexp.url.test(o))return!1}return!0}function isValidName(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!isString(o)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(o))return!1}return!0}function isVue(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(!t.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue)for(var n=0,o=t;n<o.length;n++){if(!(s=o[n])||"function"!=typeof s.render)return!1}else for(var i=0,a=t;i<a.length;i++){var s;if(!((s=a[i])instanceof window.Vue))return!1}return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||(e=bbn.cp).isComponent.apply(e,t)}function lightenDarkenHex(e,t){if(e&&t){var r="#"===e[0];e=r?e.slice(1):e;var n=parseInt(e,16),o=(n>>16)+t,i=(n>>8&255)+t,a=(255&n)+t;return o>255?o=255:o<0&&(o=0),i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),(r?"#":"")+(a|i<<8|o<<16).toString(16)}}function warning(e){var t=["BBN: "+e];t.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),log.apply(this,t)}function makeReactive(e,t,r,n){var o=(null==r?void 0:r.$cid)||"",i="__bbn_"+(o?o+"_":"");if(e&&"object"==typeof e&&[void 0,Object,Array].includes(e.constructor)){if(e.__bbnIsProxy&&e.__bbnParent===r)return e;r&&r.$options&&"bbn-loadbar"===r.$options.name&&log(["MAKING bbn-loadbar",e]),e.__bbnWatchers||Reflect.defineProperty(e,"__bbnWatchers",{value:createObject(),writable:!0,configurable:!0,enumerable:!1});var a={get:function(a,s){var u=Reflect.get(a,s),l=a.__bbnRoot||a;if(isSymbol(s))return Reflect.get(l,s);var c=n?n+"."+s:s,f=i+(isNumber(s)?s.toString():s);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(s)&&isArray(a))return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=l[s].apply(l,e);return warning("DOING ARRAY STUFF"),log(a.__bbnParent),t(a,"length",r),o};if(isFunction(u))return u;if("__bbnRoot"===s){for(var d=e;d&&(null==d?void 0:d.__bbnTarget);)d=d.__bbnTarget;return d}return"__bbnIsProxy"===s||("__bbnTarget"===s?a:"__bbnParent"===s?r:"__bbnWatchers"===s?a.__bbnWatchers:0===s.indexOf("__bbn_")?Reflect.get(a,s):"length"===s&&isArray(a.__bbnRoot||a)?l.length:s in a&&u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)?(u.__bbnIsProxy&&u.__bbnParent===r||(f in l||Reflect.defineProperty(l,f,{value:makeReactive(u,t,r,c),writable:!0,configurable:!0,enumerable:!1}),l[f].__bbnIsProxy&&!l.__bbnWatchers[o]&&(l.__bbnWatchers[o]=c)),l[f]):u)},set:function(e,a,s){if(isSymbol(a))return Reflect.get(e,a,s);var u=e.__bbnRoot||e,l=n?n+"."+a:a;if(isSymbol(a))return Reflect.get(e,a);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&log(["Setting proxy prop in "+r.$options.name,e,a,s]),!isSame(u[a],s)){if(0===a.indexOf("__bbn_"))Reflect.defineProperty(u,a,{value:makeReactive(s,t,r,l),writable:!0,configurable:!0,enumerable:!1});else if(s&&"object"==typeof s&&[void 0,Object,Array].includes(s.constructor)){var c=i+(isNumber(a)?a.toString():a);Reflect.defineProperty(u,c,{value:makeReactive(s,t,r,l),writable:!0,configurable:!0,enumerable:!1}),u[c].__bbnIsProxy&&!u.__bbnWatchers[o]&&(u.__bbnWatchers[o]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&log(["Setting proxy prop in "+r.$options.name+" "+(isNumber(a)?a.toString():a),s,e]),Reflect.set(u,a,s),t(e,a,r)}return!0},defineProperty:function(e,o,a){var s=e,u=n?n+"."+o:o;if("__bbnWatchers"===o||isSymbol(o)||0===o.indexOf("__bbn_"))Reflect.defineProperty(s,o,a);else{var l=i+(isNumber(o)?o.toString():o);Reflect.defineProperty(s,l,{value:makeReactive(a.value,t,r,u),writable:!0,configurable:!0,enumerable:!1})}return t(e,o,r),!0},deleteProperty:function(e,t){var r=e;if(0===t.indexOf("__bbn_"))Reflect.deleteProperty(r,t);else{var n=i+(isNumber(t)?t.toString():t);Reflect.deleteProperty(r,n),Reflect.deleteProperty(e,t)}return!0}};return new Proxy(e,a)}return e}function map(e,t,r,n){return void 0===n&&(n=0),e.map((function(e,o){return e=t(e,o,n),r&&e[r]&&isArray(e[r])&&(e[r]=map(e[r],t,r,n+1)),e}))}function money(e,t,r,n,o,i,a){if(o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),r||(r=void 0===r&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),t||(t=!(void 0!==t||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),n||(n=!(void 0!==n||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),isNumber(a)||(a=t?3:0),0===e&&"number"==typeof a&&a>0){var s=e.toFixed(a).replace(".",o);return r&&(s+=" "+(t?"K"+r:r)),s}if((isNaN(e)||!e)&&n)return n;if(isNaN(e)||!e)return 0+(r?" "+r:"");t&&e&&(e/=1e3,r&&(r="K"+r));var u=e.toFixed(a),l=0,c=1e4;return u&&((c=u.indexOf("."))<=0?c=1e4:l=u.length-c),u.replace(/./g,(function(e,t,r){return"."===e?o:t&&(r.length-t-l)%3==0&&t<c?i+e:e}))+(r?" "+r:"")}function move(e,t,r){if(r>=e.length)for(var n=r-e.length;1+n--;)e.push(void 0);return e.splice(r,0,e.splice(t,1)[0]),e}function multiorder(e,t){if(!t)return e;var r;if(Array.isArray(t)||"object"!=typeof t)r=t;else for(var n in r=[],t)r.push({field:n,dir:t[n]});if(!Array.isArray(r))throw new Error("The orders argument must be an array");return e.slice().sort((function(e,t){for(var n,o=0,i=r;o<i.length;o++){var a=i[o];if(0!==(n=_compareValues(e,t,a.field,a.dir)))return n}return 0}))}function mutateArray(e,t){if(!isArray(e,t))throw new TypeError("mutateArray can only be called with arrays");var r=new Map(t.map((function(e){return[hash(e),e]}))),n=[];t.forEach((function(e){n.push(e)}));for(var o=e.length;o--;)r.has(hash(e[o]))||e.splice(o,1);for(var i=0;i<n.length;i++)if(i>=e.length||!isSame(e[i],n[i])){var a=search(e,n[i]);if(-1!==a){var s=e.splice(a,1)[0];e.splice(i,0,s)}else e.splice(i,0,n[i])}return e.length>n.length&&e.splice(n.length,e.length-n.length),e}function nl2br(e,t){return replaceAll("\n","<br>"+(t?"\n":""),e)}function objectToFormData(e,t,r){void 0===t&&(t=""),void 0===r&&(r=null);var n=new FormData,o=function(e,t){void 0===t&&(t=""),(!r||isArray(r)&&!r.includes(t))&&(e instanceof File?n.append(t,e):isArray(e)?each(e,(function(e,r){o(e,t+"["+r+"]")})):isObject(e)&&Object.keys(e).length?iterate(e,(function(r,n){n in e&&o(r,t?t+"["+n+"]":n)})):isNull(e)||void 0===e||n.append(t,e))};return o(e,t),n}function order(e,t,r){return void 0===r&&(r="asc"),e?e.sort((function(e,n){return _compareValues(e,n,t,r)})):e}function selector(e){return"string"==typeof e?document.querySelector(e):e}function outerHeight(e){if((e=selector(e))&&"offsetHeight"in e){var t=window.getComputedStyle(e),r=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+r)}}function outerWidth(e){e=selector(e);var t=window.getComputedStyle(e),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+r)}function percent(e,t){return t/100*e}function pickValue(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]}function setProperty(e,t,r,n){if("object"==typeof e&&"string"==typeof t){var o=e,i=t.split(".");each(i,(function(e,t){if(!o){if(!n)throw new Error(bbn._("The object is invalid"));o={}}i.length-1===t?o[e]=r:o=o[e]}))}}function postOut(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n="");var o=document.body.querySelector("form#bbn-form_out");o||((o=document.createElement("form")).classList.add("bbn-no"),o.setAttribute("id","bbn-form_out"),o.setAttribute("method","post"),o.setAttribute("enctype","multipart/form-data-encoded"),setProperty(o,"style.display","none"),document.body.appendChild(o)),o instanceof HTMLFormElement&&(o.innerHTML="",o.setAttribute("action",e),o.setAttribute("target",n||"_blank"),t||(t={}),(t=createObject(t)).bbn||(t.bbn="public"),addInputs(o,t),o.submit(),r&&r())}function printf(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,r){return void 0!==t[r]?t[r]:e}))}function quotes2html(e,t){return t&&0!==t.toLowerCase().indexOf("s")||(e=replaceAll("'","&#39;",e)),t&&0!==t.toLowerCase().indexOf("d")||(e=replaceAll('"',"&quot;",e)),e}function randomInt(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function randomString(e,t,r){var n,o,i={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};r||(r="nlu"),e||(n=randomInt(8,14)),"string"==typeof t?(r="n",delete i.l,delete i.u,i.n=t,n||(n=e)):"number"==typeof t&&e<t?n=randomInt(e,t):e&&(n=e);for(var a="",s=0;s<n;s++)0===s?"n"!==r&&(o=-1===r.indexOf("u")?"l":"u"):o=r[Math.floor(Math.random()*r.length)],a+=i[o][Math.floor(Math.random()*i[o].length)];return a}function removeEmpty(e){var t=[];if(isArray(e))for(var r=0;r<e.length;r++){var n=!1;e[r]&&(isArray(e[r])?e[r].length&&(n=!0):isObject(e[r])?numProperties(e[r])&&(n=!0):n=!0),n&&t.push(e[r])}return t}function removeExtraSpaces(e){return e.replace(/\s+/g," ").trim()}function removeTrailingChars(e,t){if(t||(t=" "),t.length){for(;substr(e,-t.length)===t;)e=substr(e,0,e.length-t.length);for(;substr(e,0,t.length)===t;)e=substr(e,t.length)}return e}function repeat(e,t){return e.repeat(t)}function replaceSelection(e,t){var r,n,o;if((r=window.getSelection()).getRangeAt&&r.rangeCount){if((n=window.getSelection().getRangeAt(0)).deleteContents(),n.createContextualFragment)o=n.createContextualFragment(e);else{var i=document.createElement("div"),a=void 0;for(i.innerHTML=e,o=document.createDocumentFragment();a=i.firstChild;)o.appendChild(a)}var s=o.firstChild,u=o.lastChild;n.insertNode(o),r.removeAllRanges(),t?(s&&(n.setStartBefore(s),n.setEndAfter(u)),r.addRange(n)):(n.setStartAfter(u),r.addRange(n))}}function rgb2hex(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):""}function riterate(e,t,r){return void 0===r&&(r=!1),iterate(e,t,r,!0)}function roundDecimal(e,t){return Math.round(Math.pow(Math.pow(e,t),-t))}function trim(e,t){if(void 0===t&&(t=" ")," "===t)return e.trim();if(!t)return e;if(t===e)return"";for(;0===e.indexOf(t);)e=substr(e,t.length);for(;e.lastIndexOf(t)===e.length-t.length;)e=substr(e,0,e.length-t.length);return e}function sanitize(e,t){void 0===t&&(t="_");for(var r=["[","]","{","}","(",")","-","+","*","/"],n="[",o=0;o<t.length;o++)r.includes(t[o])&&(n+="\\"),n+=t[o];n+="]+";var i=new RegExp(n,"g");return trim(removeAccents(e).replace(/[^a-z0-9]/gi,t).replace(i,t),t)}function selectElementText(e,t){if(void 0===t&&(t=null),t=t||window,e instanceof HTMLInputElement)e.select();else{var r,n,o=t.document;t.getSelection&&o.createRange?(r=t.getSelection(),(n=o.createRange()).selectNodeContents(e),r.removeAllRanges(),r.addRange(n)):"createTextRange"in o.body&&"function"==typeof o.body.createTextRange&&((n=o.body.createTextRange()).moveToElementText(e),n.select())}}function setCookie(e,t,r){var n="";if(r){var o=new Date;o.setTime(o.getTime()+24*r*60*60*1e3),n="; expires="+o.toUTCString()}var i=escape(JSON.stringify({value:t}));document.cookie=e+"="+i+n+"; path=/"}function setCssVar(e,t){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,t)}function setProp(e,t,r,n,o){void 0===n&&(n=!0),void 0===o&&(o=!0),Object.defineProperty(e,t,{value:r,writable:n,configurable:o})}function shorten(e,t,r){return"string"==typeof e.toLowerCase()&&(t||(t=bbn.var.shortenLen),void 0!==r&&isString(r)||(r="..."),e.length>t&&(e=substr(e,0,t)+r)),e}function shortenObj(e,t){void 0===t&&(t=100);var r=clone(e);return each(r,(function(e,n){isString(e)&&e.length>t?r[n]=shorten(e,t):e&&"object"==typeof e&&(r[n]=shortenObj(e))})),r}function shuffle(e){for(var t,r,n=e.length;0!=n;)r=Math.floor(Math.random()*n),n--,t=[e[r],e[n]],e[n]=t[0],e[r]=t[1];return e}function startChrono(e){var t=(new Date).getTime();this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=t}function stopChrono(e){if(this.constructor.chronos[e||"default"]){var t=(new Date).getTime()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],t}throw Error("No chrono with name "+(e||"default"))}function string2ArrayBuffer(e){for(var t=new ArrayBuffer(2*e.length),r=new Uint16Array(t),n=0,o=e.length;n<o;n++)r[n]=e.charCodeAt(n);return t}function sum(e,t,r,n,o){var i=0;return each(filter(e,r,n,o),(function(e){var r="function"==typeof t?t(e):e[t];r&&(i+=parseFloat(r)||0)})),i}function timestamp(e){void 0===e&&(e=!1);var t=(new Date).getTime();return e?Math.round(t/1e3):t}function toCSV(e,t,r,n){void 0===t&&(t=","),void 0===r&&(r=""),void 0===n&&(n='"'),t||(t=","),n||(n='"');var o="",i=e.length;return each(e,(function(e,a){var s=isArray(e)?e.length:Object.values(e).length,u=0;each(e,(function(e){o+="string"==typeof e?n+replaceAll(n,"\\"+n,e)+n:0===e?"0":e&&e.toString?e.toString():n+n,++u<s&&(o+=t)})),a<i-1&&(o+=r+"\n")})),o}function toggleFullScreen(){"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(){resize()}),0)}function translate(e,t){var r=t?bbn.lng[0===t.indexOf("_")?t:"_"+t]:bbn.lng;iterate(e,(function(e,t){r[t]=e}))}function uniqString(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=function(){if(e[o])if("object"==typeof e[o])if(isArray(e[o]))r+=JSON.stringify(e[o]);else{var t={};each(Object.keys(e[o]).sort(),(function(r){t[r]=e[o][r]})),r+=JSON.stringify(t)}else"string"!=typeof e[o]?r+=e[o].toString():r+=e[o];else r+="__bbn_empty__"},o=0;o<e.length;o++)n();return md5(r)}function upload(e,t,r,n,o){void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=null);var i=function(){return axios.post(e||bbn.env.path,objectToFormData(t),{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){if(o){var t=Math.round(100*e.loaded/e.total);o(t,e.loaded,e.total)}}})};return r||n?i().then((function(e){r&&(log("SUCCESS",e),r(e))})).catch((function(e){n&&(log("ERROR",e),n(e))})):i()}var fn={_addLoader:_addLoader,_compareValues:_compareValues,_deleteLoader:_deleteLoader,abort:abort,abortURL:abortURL,addColors:addColors,addInputs:addInputs,addStyle:addStyle,adjustHeight:adjustHeight,adjustSize:adjustSize,adjustWidth:adjustWidth,ajax:ajax,analyzeFunction:analyzeFunction,animateCss:animateCss,arrayBuffer2String:arrayBuffer2String,arrayFromProp:arrayFromProp,autoExtend:autoExtend,baseName:baseName,br2nl:br2nl,calendar:calendar,callback:callback,camelize:camelize,camelToCss:camelToCss,canvasToImage:canvasToImage,center:center,checkProps:checkProps,checkPropsDetails:checkPropsDetails,checkPropsOrDie:checkPropsOrDie,checkType:checkType,circularReplacer:circularReplacer,clone:clone,colorToHex:colorToHex,compare:compare,compareConditions:compareConditions,copy:copy,correctCase:correctCase,count:count,crc32:crc32,createObject:createObject,cssExists:cssExists,date:date,dateSQL:dateSQL,daysInMonth:daysInMonth,deepPath:deepPath,defaultAjaxAbortFunction:defaultAjaxAbortFunction,defaultAjaxErrorFunction:defaultAjaxErrorFunction,defaultAlertFunction:defaultAlertFunction,defaultConfirmFunction:defaultConfirmFunction,defaultEndLoadingFunction:defaultEndLoadingFunction,defaultErrorFunction:defaultErrorFunction,defaultHistoryFunction:defaultHistoryFunction,defaultLinkFunction:defaultLinkFunction,defaultPostLinkFunction:defaultPostLinkFunction,defaultPreLinkFunction:defaultPreLinkFunction,defaultResizeFunction:defaultResizeFunction,defaultStartLoadingFunction:defaultStartLoadingFunction,deleteProp:deleteProp,diffObj:diffObj,dirName:dirName,download:download,downloadContent:downloadContent,each:each,eraseCookie:eraseCookie,error:error,escapeDquotes:escapeDquotes,escapeRegExp:escapeRegExp,escapeSquotes:escapeSquotes,escapeTicks:escapeTicks,escapeUrl:escapeUrl,extend:extend,extendOut:extendOut,fdate:fdate,fdatetime:fdatetime,fieldValue:fieldValue,fileExt:fileExt,filter:filter,filterToConditions:filterToConditions,findAll:findAll,fori:fori,forir:forir,format:format,formatBytes:formatBytes,formatDate:formatDate,formatSize:formatSize,formdata:formdata,fromXml:fromXml,ftime:ftime,getAllTags:getAllTags,getAncestors:getAncestors,getAttributes:getAttributes,getBrowserName:getBrowserName,getBrowserVersion:getBrowserVersion,getCookie:getCookie,getCssVar:getCssVar,getDay:getDay,getDeviceType:getDeviceType,getEventData:getEventData,getField:getField,getFieldValues:getFieldValues,getHtml:getHtml,getHTMLOfSelection:getHTMLOfSelection,getLoader:getLoader,getPath:getPath,getProp:getProp,getProperty:getProperty,getRequestId:getRequestId,getRow:getRow,getScrollBarSize:getScrollBarSize,getText:getText,getTimeoff:getTimeoff,happy:happy,hash:hash,hex2rgb:hex2rgb,history:history,html2text:html2text,imageToCanvas:imageToCanvas,imgToBase64:imgToBase64,info:info,init:init,isActiveInterface:isActiveInterface,isArray:isArray,isBlob:isBlob,isBoolean:isBoolean,isCanvas:isCanvas,isColor:isColor,isComment:isComment,isCp:isCp,isDate:isDate,isDesktopDevice:isDesktopDevice,isDimension:isDimension,isDom:isDom,isEmail:isEmail,isEmpty:isEmpty,isEvent:isEvent,isFocused:isFocused,isFunction:isFunction,isHostname:isHostname,isInside:isInside,isInt:isInt,isInViewport:isInViewport,isIP:isIP,isIterable:isIterable,isMobile:isMobile,isMobileDevice:isMobileDevice,isNull:isNull,isNumber:isNumber,isObject:isObject,isPercent:isPercent,isPrimitive:isPrimitive,isPromise:isPromise,isPropSize:isPropSize,isSame:isSame,isSQLDate:isSQLDate,isString:isString,isSymbol:isSymbol,isTabletDevice:isTabletDevice,isURL:isURL,isValidDimension:isValidDimension,isValidName:isValidName,isValue:isValue,isVue:isVue,iterate:iterate,lightenDarkenHex:lightenDarkenHex,link:link,log:log,makeReactive:makeReactive,map:map,md5:md5,money:money,move:move,multiorder:multiorder,mutateArray:mutateArray,nl2br:nl2br,numProperties:numProperties,objectToFormData:objectToFormData,order:order,outerHeight:outerHeight,outerWidth:outerWidth,percent:percent,pickValue:pickValue,post:post,postOut:postOut,printf:printf,quotes2html:quotes2html,randomInt:randomInt,randomString:randomString,removeAccents:removeAccents,removeEmpty:removeEmpty,removeExtraSpaces:removeExtraSpaces,removeHtmlComments:removeHtmlComments,removePrivateProp:removePrivateProp,removeTrailingChars:removeTrailingChars,repeat:repeat,replaceAll:replaceAll,replaceSelection:replaceSelection,resize:resize,rgb2hex:rgb2hex,riterate:riterate,roundDecimal:roundDecimal,sanitize:sanitize,search:search,selectElementText:selectElementText,selector:selector,setCookie:setCookie,setCssVar:setCssVar,setNavigationVars:setNavigationVars,setProp:setProp,setProperty:setProperty,shorten:shorten,shortenObj:shortenObj,shuffle:shuffle,simpleHash:simpleHash,simpleHash1:simpleHash1,simpleHash2:simpleHash2,startChrono:startChrono,stopChrono:stopChrono,string2ArrayBuffer:string2ArrayBuffer,submit:submit,substr:substr,sum:sum,timestamp:timestamp,toCSV:toCSV,toggleFullScreen:toggleFullScreen,translate:translate,treatAjaxArguments:treatAjaxArguments,trim:trim,uniqString:uniqString,unique:unique,upload:upload,warning:warning};dayjs$1.extend(calendar$1),dayjs$1.extend(dayOfYear),dayjs$1.extend(duration),dayjs$1.extend(isBetween),dayjs$1.extend(isLeapYear),dayjs$1.extend(isoWeek),dayjs$1.extend(localeData),dayjs$1.extend(localizedFormat),dayjs$1.extend(minMax),dayjs$1.extend(quarterOfYear),dayjs$1.extend(relativeTime),dayjs$1.extend(timezone),dayjs$1.extend(updateLocale),dayjs$1.extend(utc),dayjs$1.extend(weekday),dayjs$1.extend(weekOfYear);var bbn$1={version:"1.0.1",opt:{_cat:{}},app:{},_:_,$:$,lng:lng,var:vars,env:env,db:db,fn:fn};return"undefined"!=typeof window&&(window.axios=axios$1,window.dayjs=dayjs$1,window.bbn=bbn$1),exports.axios=axios$1,exports.bbn=bbn$1,exports.dayjs=dayjs$1,exports.default=bbn$1,Object.defineProperty(exports,"__esModule",{value:!0}),exports}({});
2
- //# sourceMappingURL=bbn.js.map