@kizmann/pico-js 2.0.7 → 2.0.8

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.
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.pi=e():t.pi=e()}(self,()=>(()=>{"use strict";var t={d:(e,r)=>{for(var i in r)t.o(r,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};function r(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.r(e),t.d(e,{Any:()=>ve,Arr:()=>g,Cookie:()=>B,Data:()=>le,Dom:()=>ge,Element:()=>me,Event:()=>we,For:()=>be,Hash:()=>Y,Locale:()=>H,Map:()=>de,Mix:()=>D,Now:()=>ye,Num:()=>p,Obj:()=>b,Route:()=>ue,Run:()=>s,Signal:()=>T,Str:()=>u,UUID:()=>Oe,browser:()=>se,device:()=>ne,go:()=>ie});class i{static clear(t){return D.isArr(t)?g.each(t,t=>this.clear(t),this):D.isFunc(t)?(t(),this):(clearTimeout(t),clearInterval(t),this)}static tryin(t){try{requestIdleCallback(t)}catch(t){}return this}static wait(t,e=0,r=500){let i,s;return s=setTimeout(()=>{this.clear([i,s])},e*r),i=setInterval(()=>{t()&&this.clear([s,i])},e),()=>clearInterval(i)}static frame(t,...e){return requestAnimationFrame(()=>{t(...e)}),()=>null}static idle(t,...e){return requestIdleCallback(()=>{t(...e)}),()=>null}static async(t,...e){return setTimeout(()=>{t(...e)}),()=>null}static delay(t,e=0,...r){let i=setTimeout(()=>{t(...r)},e);return()=>clearTimeout(i)}static debounce(t,e=100){let r=null;return(...i)=>{r&&clearTimeout(r),r=setTimeout(()=>{this.frame(t,...i)},e)}}static throttle(t,e=100){let r,i=null;return(...s)=>{i&&clearTimeout(i),i=setTimeout(()=>{r=!1},e),r||(this.frame(t,...s),r=!0)}}static framerate(t,e=30){let r=0;return(...i)=>{Date.now()-r<=1e3/e||(this.frame(t,...i),r=Date.now())}}static framebuffer(t,e,r=1e3){const i={key:e,cb:t,priority:r,args:[],active:!1};return g.add(this.$buffer,i),(t,...e)=>{/^drag/.test(t.type)&&t.preventDefault(),b.assign(i,{args:[t,...e],active:!0}),this.runFramebuffer()}}static runFramebuffer(){if(this.$idler&&clearTimeout(this.$idler),this.$idler=setTimeout(()=>{this.runFramebuffer()},50),Date.now()-this.$timer<50)return;this.$idler&&clearTimeout(this.$idler),this.$timer=Date.now();let t=g.filter(this.$buffer,{active:!0});0!==t.length&&(t=g.sort(t,"priority"),g.each(t.reverse(),t=>{t.cb(...t.args),t.active=!1}))}}r(i,"$idler",null),r(i,"$timer",0),r(i,"$buffer",[]);const s=i;var n;function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class a{static get(t,e){return D.isStr(t)||(t=D.str(t)),D.isInt(e)&&(e=D.int(e)),t.charAt(e)}static set(t,e,r=""){return D.isStr(t)||(t=D.str(t)),D.isInt(e)&&(e=D.int(e)),t.substring(0,e)+r+t.substring(e+r.length)}static replace(t,e,r=null){D.isNull(r)&&(r=t);let i=r.indexOf(e);return-1===i?t:this.set(t,i,e)}static extract(t,e,r=null){D.isNull(r)&&(r=t);let i=this.range(r,e);return null===i?null:this.slice(t,...i)}static match(t,e,r=null){let i=D.str(t).match(e);return D.isEmpty(i)?[]:D.isFunc(r)?r(i):i}static regex(t){return D.str(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static uc(t){return D.str(t).toUpperCase()}static ucfirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lc(t){return D.str(t).toLowerCase()}static lcfirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static cc(t){return g.each(be.slugify(t).split("-"),(t,e)=>e?this.ucfirst(t):t).join("")}static kc(t){return be.slugify(t)}static sc(t){return be.slugify(t).replace("-","_")}static pc(t){return g.each(be.slugify(t).split("-"),t=>this.ucfirst(t)).join("")}static has(t,e){return-1!==this.lc(t).indexOf(this.lc(e))}static range(t,e,r=null){let i=D.str(t).indexOf(e);return-1===i?r:[i,i+e.length]}static slice(t,e,r){return D.str(t).slice(e,r)}static string(t,e="-",r=!1){return D.isEmpty(t)?e:(t=D.str(t),r?t:t.replace(/<[^>]*>?/gm,""))}static boolean(t,e="Yes",r="No",i="-"){return D.isEmpty(t)?i:D.bool(t)?e:r}static number(t,e=null,r=null,i={}){return D.isNum(t)?(null==r&&(r=H.code()),i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({maximumFractionDigits:12},i),null!=e&&(i.minimumFractionDigits=e,i.maximumFractionDigits=e),D.num(t).toLocaleString(r,i)):t}static integer(t,e=0,r="0"){return D.isNum(t)?(D.isInt(t)||(t=D.int(t)),t=D.int(t),e?D.str(t).padStart(e,r):D.str(t)):t}static datetime(t,e="YYYY-MM-DD HH:mm:ss",r="-"){return D.isDate(t)||(t=ye.make(t)),t.valid()?t.format(e):r}static date(t,e="YYYY-MM-DD",r="-"){return this.datetime(t,e,r)}static time(t,e="HH:mm:ss",r="-"){return this.datetime(t,e,r)}static objectify(t,e="options",r=!1){return D.isRef(t)?t:("params"===e&&(t=be.parseParams(t)),"options"===e&&(t=be.parseOptions(t)),D.isRef(t)||(t=JSON.parse(t)),r?D.vals(t):t)}static stringify(t,e="options"){return D.isStr(t)?t:"params"===e?be.castParams(t):"options"===e?be.castOptions(t):JSON.stringify(t)}}l(a,"upper",(n=a).uc),l(a,"lower",n.lc),l(a,"camelcase",n.cc),l(a,"kebabcase",n.kc),l(a,"snakecase",n.sc),l(a,"pascalcase",n.pc),a.regexEscape=(...t)=>(console.warn("Str.regexEscape() is deprecated, use Str.regex() instead."),u.regex(...t)),a.humancase=(...t)=>(console.warn("Str.humancase() is deprecated, use Str.pascalcase() instead."),u.pascalcase(...t)),a.slugify=(...t)=>(console.warn("Str.slugify() is deprecated, use For.slugify() instead."),be.slugify(...t)),a.options=(...t)=>(console.warn("Str.options() is deprecated, use For.castOptions() instead."),be.castOptions(...t)),a.fromOptions=(...t)=>(console.warn("Str.fromOptions() is deprecated, use For.parseOptions() instead."),be.parseOptions(...t)),a.params=(...t)=>(console.warn("Str.params() is deprecated, use For.castParams() instead."),be.castParams(...t)),a.fromParams=(...t)=>(console.warn("Str.fromParams() is deprecated, use For.parseParams() instead."),be.parseParams(...t)),a.filesize=(...t)=>(console.warn("Str.filesize() is deprecated, use For.filesize() instead."),be.filesize(...t)),a.real=()=>{console.error("Str.real() is not implemented anymore.")},a.array=()=>{console.error("Str.array() is not implemented anymore.")};const u=a;function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class f{static fixed(t,e=2){return D.isNum(t)||(t=D.num(t)),t.toFixed(e)}static float(t){return D.isNum(t)||(t=D.num(t)),parseFloat(t)}static int(t){return D.isNum(t)||(t=D.num(t)),parseInt(t)}static ceil(t){return D.isNum(t)||(t=D.num(t)),Math.ceil(t)}static floor(t){return D.isNum(t)||(t=D.num(t)),Math.floor(t)}static round(t){return D.isNum(t)||(t=D.num(t)),Math.round(t)}static combine(t){return g.reduce(t,(t,e)=>t+e,0)}static subtract(t){return g.reduce(t,(t,e)=>t-e,0)}static decade(t){return D.isNum(t)||(t=D.num(t)),10*Math.floor(t/10)}static matrix(t,e=10,r=[]){let i=0;for(let e=20;e>=0;e--)t>=(i=Math.pow(2,e))&&(r.push(i),t-=i);return r}static distance(t,e,r=!1){let i={lat:0,lng:0};[t,e]=[h(h({},i),t),h(h({},i),e)];let s=Math.PI*this.float(t.lat)/180,n=Math.PI*this.float(e.lat)/180,o=(this.float(t.lng)-this.float(e.lng))/180,l=this.combine([Math.sin(s)*Math.sin(n),Math.cos(s)*Math.cos(n)*Math.cos(o)]);return l=180*Math.acos(l>1?1:l)/Math.PI*60*1.1515,r?1.609344*l:l}}f.format=(t,...e)=>(console.warn("Num.format() is deprecated, use Str.number() instead."),u.number(t,e[2]||null)),f.random=(...t)=>(console.warn("Num.random() is deprecated, use Hash.number() instead."),Y.number(...t));const p=f;class m{static all(t){return D.isArr(t)?t:[t]}static get(t,e,r=null){return D.isArr(t)?t&&t[e]?t[e]:r:t}static set(t,e,r){return this.splice(t,e,1,r)}static unset(t,e){return this.splice(t,e,1)}static make(t,e=null){let r=new Array(t);null==e&&(e=t=>t);for(let i=0;i<t;i++)r[i]="function"==typeof e?e(i):e;return r}static has(t,e){if(!D.isPrim(e))return-1!==this.findIndex(t,e);return D.isRef(t)||(t=[t]),D.isArr(t)||(t=D.vals(t)),-1!==t.findIndex(t=>t==e)}static unique(t){let e={};for(const r of t)e[r]=!0;return D.keys(e)}static lengths(t,...e){let r=t.length;for(let t=0;t<e.length;t++)if(e[t].length!==r)return!1;return!0}static first(t,e=null){return this.get(t,0,e)}static second(t,e=null){return this.get(t,2,e)}static third(t,e=null){return this.get(t,2,e)}static last(t,e=null){return this.get(t,t.length-1,e)}static each(t,e,r=null){if(D.isObj(t))return this.eachObj(t,e,r);null==t&&(t=[]);let i=new Array(t.length);for(let r=0;r<t.length;r++)i[r]=e(t[r],r);return null!=r?r:i}static eachObj(t,e,r=null){if(D.isArr(t))return this.each(t,e,r);null==t&&(t={});let i=D.keys(t).map(r=>e(t[r],r));return null!=r?r:i}static map(t,e){let[r,i]=[D.isArr(t),D.keys(t)],s=t=>r?parseInt(t):t;for(let r of i)t[r]=e(t[r],s(r));return t}static recursive(t,e,r,i=[]){let s=t=>i=>this.recursive(i,e,r,t);return D.isArr(t)?this.map(t,s(i)):(D.isObj(t)&&(t=r(t,i)??t),i=[...this.clone(i),t],null==t||(D.isObj(t[e])&&(t[e]=s(i)(t[e])),D.isArr(t[e])&&(t[e]=this.map(t[e],s(i)))),t)}static filterIndex(t,e=null){return null==t?[]:(null==e&&(e=t=>!D.isEmpty(t)),D.keys(t).filter(r=>D.isFunc(e)?e.call({},t[r],r):D.isRef(e)?this.includes(t[r],e):e===t[r]))}static filterRemove(t,e=null){if(null==t)return t;let r=this.filterIndex(t,e);return 0===r.length?t:this.splices(t,r)}static filter(t,e=null){return null==t?[]:(null==e&&(e=t=>!D.isEmpty(t)),D.vals(t).filter((r,i)=>D.isFunc(e)?e.call({},r,i):D.isRef(e)?this.includes(r,e):e===t[i]))}static findIndex(t,e=null,r=-1){if(null==t)return r;null==e&&(e=t=>!D.isEmpty(t));for(let r=0;r<t.length;r++){if(D.isFunc(e)&&e.call({},t[r],r))return r;if(D.isRef(e)&&this.includes(t[r],e))return r;if(e===t[r])return r}return r}static find(t,e=null,r=null){let i=this.findIndex(t,e);return-1===i?r:t[i]}static sort(t,e=null){return D.isFunc(e)?this.sortFunc(t,e):null!=e?this.sortDeep(t,e):this.sortPrim(t)}static sortFunc(t,e){let r=D.keys(t).sort((r,i)=>e.call({},t[r],t[i])),i=[];for(const e of r)i.push(t[e]);return i}static sortDeep(t,e){let r=t=>b.get(t,e),i=D.keys(t).sort((e,i)=>D.compare(r(t[e]),r(t[i]))),s=[];for(const e of i)s.push(t[e]);return s}static sortPrim(t){let e=D.keys(t).sort((t,e)=>D.compare(t,e)),r=[];for(const i of e)r.push(t[i]);return r}static merge(t,...e){return t.concat(...e)}static prepend(t,...e){return t.unshift(...e),t}static append(t,...e){return t.push(...e),t}static add(t,e,r=null){return null==r&&(r=e),-1!==this.findIndex(t,r)||t.push(e),t}static replace(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1!==i&&this.splice(t,i,1),t.push(e),t}static remove(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1===i||this.splice(t,i,1),t}static toggle(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1===i?(t.push(e),t):(this.splice(t,i,1),t)}static insert(t,e,r){return this.splice(t,e,0,r),t}static slice(t,e,r=1){return t.slice(parseInt(e),r)}static splice(t,e,r=1,...i){return t.splice(parseInt(e),r,...i)}static splices(t,e,r=1){return this.each(e,e=>{this.splice(t,e,r)}),t}static clone(t){if(D.isPrim(t))return t;if(D.isObj(t))return b.clone(t);if(!D.isArr(t))return t;let e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=this.clone(t[r]);return e}static diff(...t){return t.reduce((t,e)=>t.filter(t=>!e.includes(t)))}static isect(...t){return t.reduce((t,e)=>t.filter(t=>e.includes(t)))}static extract(t,e){let r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=b.get(t[i],e);return r}static reduce(t,e,r){return D.vals(t).reduce(e,r)}static chunk(t,e=10){let r=[];for(let i=0;i<t.length;i+=e)r.push(t.slice(i,i+e));return r}static includes(t,e){if(D.isObj(e))return b.includes(t,e);if(!D.isArr(e))return t===e;let[r,i]=[!1,e.length];if(0===i)return!0;for(let s=0;!1===r&&s<i;s++)r||=this.has(t,e[s]);return r}static contains(t,e){let r=!0;for(let i of D.vals(e))r&&=-1!==D.vals(t).indexOf(i);return r}static matches(t,e){if(D.isObj(e))return b.matches(t,e);if(!D.isArr(t))return t===e;e=this.unique(e);let[r,i]=[!0,e.length];if(t.length!==e.length)return!1;for(let s=0;!0===r&&s<i;s++)r&&=this.has(t,e[s]);return r}}m.removeIndex=function(...t){return console.warn("Arr.removeIndex() is deprecated, use Arr.unset() instead."),this.unset(...t)},m.sortString=function(...t){return console.warn("Arr.sortString() is deprecated, use Arr.sortPrim() instead."),this.sortPrim(...t)},m.push=function(...t){return console.warn("Arr.push() is deprecated, use Arr.append() instead."),this.append(...t)},m.concat=function(...t){return console.warn("Arr.concat() is deprecated, use Arr.merge() instead."),this.merge(...t)},m.equal=function(...t){return console.warn("Arr.equal() is deprecated, use Arr.matches() instead."),this.matches(...t)},m.diffrence=function(...t){return console.warn("Arr.diffrence() is deprecated, use Arr.diff() instead."),this.diff(...t)},m.intersect=function(...t){return console.warn("Arr.intersect() is deprecated, use Arr.isect() instead."),this.isect(...t)};const g=m;class y{static keyoptim(t,e=!1,r=null){return null===r&&(r=D.isStr(t)),!r&&e&&(t=t.join(".")),r||e?t.split("."):t}static has(t,e,r=!1){if(null==t||null==e)return!1;"number"==typeof e&&(e=D.str(e));const i="string"==typeof e;if(i&&t&&void 0!==t[e])return void 0!==t[e];e=this.keyoptim(e,r,i);let[s,n,o]=[e.pop(),0,e.length];if(0===o)return void 0!==t[s];for(;null!=t&&n<o;)t=t[e[n++]];return null!=t&&void 0!==t[s]}static get(t,e,r=null,i=!1){if(null==t||null==e)return r;"number"==typeof e&&(e=D.str(e));const s="string"==typeof e;if(s&&t&&void 0!==t[e])return t[e];let n=0,o=(e=this.keyoptim(e,i,s)).length;if(0===o)return r;for(;null!=t&&n<o;)t=t[e[n++]];return null==t?r:t}static set(t,e,r,i=!1){if(null==e)return t;"number"==typeof e&&(e=D.str(e));const s="string"==typeof e;if(s&&t&&void 0!==t[e])return t[e]=r,t;if(0===(e=this.keyoptim(e,i,s)).length)return t;let n=t;for(let t,i,s=0;s<e.length;s++)t=i=String(e[s]),-1!==i.indexOf("[]")&&(t=i.replace("[]","")),null==n[t]&&(n[t]=t===i?{}:[]),t!==i&&g.insert(e,s+1,n[t].length),e.length-1===s&&(n[t]=r),n=n[t];return t}static unset(t,e,r=!1){if(null==e)return t;"number"==typeof e&&(e=D.str(e));const i="string"==typeof e;if(i&&t&&void 0!==t[e])return delete t[e],t;e=this.keyoptim(e,r,i);let[s,n,o,l]=[e.pop(),0,e.length,t];if(0===o)return t;for(;null!=l&&n<o;)l=l[e[n++]];return null==l||delete l[s],t}static empty(t,e){return D.isEmpty(this.get(t,e))}static remove(t,e){if(!D.isArr(e))return t;for(let r of e)this.unset(t,r);return t}static each(t,e,r=null){let i={};for(let r of D.keys(t))i[r]=e(t[r],r);return null!=r?r:i}static map(t,e){for(let r of D.keys(t))t[r]=e(t[r],r);return t}static filterIndex(t,e=null){return g.filterIndex(t,e)}static filter(t,e=null){let r={};for(let i of this.filterIndex(t,e))r[i]=t[i];return r}static flatten(t,e="",r={}){if("object"!=typeof t)return r[e]=t;""!==e&&(e+=".");for(let i of D.keys(t))this.flatten(t[i],e+i,r);return r}static flattenForm(t,e="",r={}){if("object"!=typeof t)return r[e]=t;let i=t=>e?`${e}[${t}]`:t;for(let e of D.keys(t))this.flattenForm(t[e],i(e),r);return r}static unpack(t,e={}){return g.each(D.keys(t),r=>{this.set(e,r,t[r])}),e}static assign(...t){return Object.assign(...t)}static clone(t,e=null){if(D.isPrim(t))return t;if(D.isArr(t))return g.clone(t);if(!D.isObj(t))return t;let r={};for(let e of D.keys(t))r[e]=this.clone(t[e]);return null!=e?this.assign(r,e):r}static pluck(t,e,r=null){let i=this.get(t,e,r);return this.unset(t,e),i}static only(t,e,r=null){let i={};return this.each(t,(t,r)=>{g.has(e,r)&&(i[r]=t)}),null==r?i:this.assign(i,r)}static except(t,e,r=null){let i={};return this.each(t,(t,r)=>{g.has(e,r)||(i[r]=t)}),null==r?i:this.assign(i,r)}static includes(t,e){if(D.isArr(e))return g.includes(t,e);if(!D.isObj(e))return t===e;let r=D.keys(e),[i,s]=[!0,r.length];for(let n=0;!0===i&&n<s;n++)i=this.includes(t[r[n]],e[r[n]]);return i}static matches(t,e){if(D.isArr(e))return g.matches(t,e);if(!D.isObj(t))return t===e;let r=g.unique([...D.keys(e),...D.keys(t)]),[i,s]=[!0,r.length];for(let n=0;!0===i&&n<s;n++)i&&=this.matches(t[r[n]],e[r[n]]);return i}static sort(t,e){let r=D.keys(t);D.isFunction(e)&&(r=r.sort((r,i)=>e.call({},t[r],t[i]))),D.isFunction(e)||(r=r.sort((r,i)=>D.integer(this.get(t[r],e))-D.integer(this.get(t[i],e))));let i=[];return g.each(r,(e,r)=>{t[e]._key=e,i[r]=t[e]}),i}static sortString(t,e){let r=D.keys(t);D.isFunction(e)||(r=r.sort((r,i)=>{let s=D.string(this.get(t[r],e)).toLowerCase(),n=D.string(this.get(t[i],e)).toLowerCase();return s<n?-1:s>n?1:0}));let i=[];return g.each(r,(e,r)=>{t[e]._key=e,i[r]=t[e]}),i}}y.values=(...t)=>(console.warn("Obj.values() is deprecated, use Mix.vals() instead."),D.vals(...t)),y.find=(...t)=>(console.warn("Obj.find() is deprecated, use Arr.find() instead."),g.find(...t)),y.findIndex=(...t)=>(console.warn("Obj.findIndex() is deprecated, use Arr.findIndex() instead."),g.findIndex(...t));const b=y;var v;function w(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const O={iso:/^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/};class M{static isEmpty(t){return null==t||("string"==typeof t?""===t:"number"!=typeof t&&("boolean"!=typeof t&&(this.isArr(t)?0===t.length:0===this.len(t))))}static isNull(t){return null===t}static isUndef(t){return void 0===t}static isNix(t){return null==t}static isPrim(t){return"string"==typeof t||"number"==typeof t}static isStr(t){return"string"==typeof t}static isNum(t){return"number"==typeof t||!!this.isStr(t)&&/^-?[0-9]+(\.[0-9]+)?$/.test(t)}static isInt(t){return!!this.isNum(t)&&(this.isStr(t)?/^-?[0-9]+$/.test(t):parseInt(t)===parseFloat(t))}static isBool(t){return"boolean"==typeof t||!!this.isStr(t)&&/^(true|false)$/.test(t)}static isFunc(t){return"function"==typeof t}static isRef(t){return null!=t&&"object"==typeof t}static isObj(t){return null!=t&&("object"==typeof t&&t.constructor===Object)}static isArr(t){return null!=t&&("object"==typeof t&&t.constructor===Array)}static isIter(t){return!this.isArr(t)&&(!!this.isRef(t)&&this.isFunc(t.entries))}static isIsoDate(t){return t instanceof Date||O.iso.test(t)}static isDate(t){return t instanceof Date||/^\d{4}-\d{2}-\d{2}$/.test(t)}static isTime(t){return t instanceof Date||/^\d{2}:\d{2}:\d{2}$/.test(t)}static isEqual(t,e){return t instanceof Node?t.isEqualNode(e):this.isRef(t)?Object.is(t,e):t===e}static iter(t){if(null==t)return{};let e={};for(const[r,i]of t.entries())e[r]=i;return e}static keys(t){return null==t?[]:(this.isFunc(t.toJSON)&&(t=t.toJSON()),this.isIter(t)&&(t=this.iter(t)),Object.keys(t))}static vals(t){if(null==t)return[];if(this.isFunc(t.toJSON)&&(t=t.toJSON()),this.isIter(t)&&(t=this.iter(t)),this.isArr(t)||!ie().chrome)return Object.values(t);let e=this.keys(t);for(let r=0;r<e.length;r++)e[r]=t[e[r]];return e}static nodes(t){return Array.prototype.slice.call(t)}static props(t,e=[]){let r={};for(const i of Object.getOwnPropertyNames(t))e.length&&!g.has(e,i)&&(r[i]=t[i]);return r}static class(t,e=[]){return e=g.merge(e,["length","name","prototype","constructor"]),this.props(t,e)}static proto(t,e=[]){return e=g.merge(e,["constructor"]),this.props(t.prototype,e)}static form(t){let e=new FormData;return b.each(b.flattenForm(t),(t,r)=>{e.append(r,t)}),e}static each(t,e){if(!this.isRef(t))throw new Error("Iterate non object");for(let r of D.keys(t))e(t[r],r);return this}static len(t){return this.isArr(t)?t.length:this.isRef(t)?this.keys(t).length:this.string(t).length}static compare(t,e){return H.collator().compare(t,e)}static null(t,e=null){return"null"===t||this.isEmpty(t)?null:e}static arr(t){return this.isArr(t)?t:this.isStr(t)?(t=t.replace(/^@?\[?(.*?)]$/g,"$1"),g.each(t.split(","),t=>t.replace(/(^"|^'|'$|"$)/g,""))):[t]}static str(t){return this.isNix(t)||void 0===t.toString?String(t):t.toString()}static num(t,e=NaN){return this.isPrim(t)?(this.isStr(t)&&(t=parseFloat(t)),t):e}static int(t,e=NaN){return this.isPrim(t)?(this.isStr(t)&&(t=parseFloat(t)),Math.round(t)):e}static bool(t){return this.isRef(t)?!!this.vals(t).length:this.isNum(t)?0!==this.num(t):/^(true|yes)$/i.test(t)}}w(M,"isPrimitive",(v=M).isPrim),w(M,"isString",v.isStr),w(M,"isNumber",v.isNum),w(M,"isInteger",v.isInt),w(M,"isBoolean",v.isBool),w(M,"isFunction",v.isFunc),w(M,"isReference",v.isRef),w(M,"isObject",v.isObj),w(M,"isArray",v.isArr),w(M,"isIterable",v.isIter),w(M,"length",v.len),w(M,"array",v.arr),w(M,"string",v.str),w(M,"number",v.num),w(M,"integer",v.int),w(M,"boolean",v.bool),M.global=function(...t){return console.warn("Mix.global() is deprecated, use go() instead."),ie(...t)},M.isPlain=function(...t){return console.warn("Mix.isPlain() is deprecated, use Mix.isObj() instead."),D.isObj(...t)},M.float=function(...t){return console.warn("Mix.float() is deprecated, use Mix.num() instead."),D.num(...t)},M.delay=function(...t){return console.warn("Mix.delay() is deprecated, use Run.delay() instead."),s.delay(...t)},M.async=function(...t){return console.warn("Mix.async() is deprecated, use Run.async() instead."),s.async(...t)},M.debounce=function(...t){return console.warn("Mix.debounce() is deprecated, use Run.debounce() instead."),s.debounce(...t)},M.throttle=function(...t){return console.warn("Mix.throttle() is deprecated, use Run.throttle() instead."),s.throttle(...t)},M.framerate=function(...t){return console.warn("Mix.framerate() is deprecated, use Run.framerate() instead."),s.framerate(...t)},M.convertString=function(...t){return console.warn("Mix.convertString() is deprecated, use Str.string() instead."),u.string(...t)},M.convertDatetime=function(...t){return console.warn("Mix.convertDatetime() is deprecated, use Str.date() instead."),u.date(...t)},M.convertBool=function(...t){return console.warn("Mix.convertBool() is deprecated, use Str.boolean() instead."),u.boolean(...t)},M.convertBoolean=function(...t){return console.warn("Mix.convertBoolean() is deprecated, use Str.boolean() instead."),u.boolean(...t)};const D=M;const k=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","A","B","C","D","E","F"],P=["8","9","a","b"],j=["@","#","$","%","^","&","*","(",")","_","+","-","=","[","]","{","}",";",":",",",".","/","<",">","?"];class ${static radix(t=60,e=null){return(e||this.RADIX)[this.number(t-1)]}static number(t=1024,e=0){return Math.floor(Math.random()*(t-e+1))+e}static make(t=6,e=62,r={}){let i="";for(let r=0;r<t;r++)i+=this.radix(e);for(const t of Object.keys(r))i=u.set(i,t,r[t]);return i}static uuid(t=4){let e="";for(let t=0;t<31;t++)e+=15===t?this.radix(P.length,P):this.radix(k.length,k);return e.substring(0,8)+"-"+e.substring(8,12)+"-"+t+e.substring(12,15)+"-"+e.substring(15,19)+"-"+e.substring(19,31)}static password(t=24,e=null){let r=[...this.RADIX,...e||j],i="";for(let e=0;e<t;e++)i+=this.radix(r.length,r);return i}}var x,S,N;x=$,N=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],(S=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(S="RADIX"))in x?Object.defineProperty(x,S,{value:N,enumerable:!0,configurable:!0,writable:!0}):x[S]=N;const Y=$;class E{static bind(t,e,r={},i=!1){return D.isArr(t)?g.each(t,t=>this.bind(t,...arguments),this):(D.isPrim(r)&&(r={id:r}),this.$events=g.append(this.$events,{event:t,cb:e,options:r,paused:i}),this)}static unbind(t,e={}){return D.isArr(t)?g.each(t,t=>this.unbind(t,...arguments),this):(D.isPrim(e)&&(e={id:e}),g.remove(this.$events,{event:t,options:e}),this)}static fire(t,...e){let r=this.$events.filter(e=>e.event===t);return g.each(r,t=>{t.paused||t.cb.call({},...e)}),this}static pause(t,e={}){if(D.isArr(t))return g.each(t,t=>this.pause(t,...arguments),this);let r=g.find(this.$events,{event:t,options:e});return null!=r&&(r.paused=!0),this}static unpause(t,e={}){if(D.isArr(t))return g.each(t,t=>this.pause(t,...arguments),this);let r=g.find(this.$events,{event:t,options:e});return null!=r&&(r.paused=!1),this}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(E,"$events",[]);const T=E;function I(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class A{static has(t=void 0){return void 0===t||D.has(A.$text,t)}static get(t=void 0,e=null){return void 0===t?A.$text:b.get(A.$text,t,e)}static set(t=void 0,e=void 0){return void 0===e?A.$text=t:b.set(A.$text,t,e)}static code(t=null){return D.isNull(t)?D.isNull(H.$code)?(H.$code=(navigator.language||"en-US").replace(/-[A-Z]+$/,""),H.$code):H.$code:H.$code=t}static collator(){return D.isNull(H.$sort)?(H.$sort=new Intl.Collator(H.code(),{numeric:!0,sensitivity:"base"}),H.$sort):H.$sort}static replace(t,e=null){return null==e||b.each(e,(e,r)=>{t=t.replace(new RegExp(":"+r,"g"),e)}),t}static trans(t,e=null){return t=b.get(A.$text,t,t),H.replace(t,e)}static choice(t,e=0,r={}){return t=b.get(A.$text,t,t),void 0===r.count&&(r.count=e),t=H.countpick(t.split("|"),e),H.replace(t,r)}static countpick(t,e){let r=t.length;return 3===r&&0===e?t[0]:3===r&&1===e?t[1]:3===r&&e>=2?t[2]:2===r&&1===e?t[0]:2===r&&1!==e?t[1]:t[0]}}I(A,"$text",{}),I(A,"$sort",null),I(A,"$code","en");const H=A;function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach(function(e){L(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function L(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const R={entry:/(?<=^|;)\s*(?<key>.*?)\s*=\s*(?<value>[^;$]+)/g};class W{static global(){return null==globalThis.document?"":globalThis.document.cookie||""}static parse(t=!1){if(!t&&this.$cookie)return this.$cookie;this.$cookie={};let e=this.global().matchAll(R.entry);if(null==e)return this.$cookie;return g.each(Array.from(e),({groups:t})=>{this.$cookie[t.key]=t.value.replaceAll("{:}",";")}),this.$cookie}static get(t,e=null,r="string"){return this.$cookie||this.parse(),null==this.$cookie[t]?e:/^bool(ean)?$/.test(r)||/^num(ber)?$/.test(r)||/^int(eger)?$/.test(r)?D.bool(this.$cookie[t]):/^obj(ext)?$/.test(r)?be.parseOptions(this.$cookie[t]):D.str(this.$cookie[t])}static set(t,e,r=null,i={}){this.$cookie||this.parse(),r instanceof ye||(r=ye.make(r||"+7 days")),i=C({expires:r.toUTC(),path:"/"},i),D.isRef(e)&&(e=be.castOptions(e,!1)),null!=e&&(this.$cookie[t]=e);let s=t+"="+D.str(e).replaceAll(";","{:}");return g.each(i,(t,e)=>{s+=`;${e}=${t}`}),globalThis.document.cookie=s,this}static forget(t,e={}){e=C({expires:"Thu, 01 Jan 1970 00:00:01 GMT",path:"/"},e),this.$cookie[t]&&delete this.$cookie[t];let r=`${t}=null`;return g.each(e,(t,e)=>{r+=`;${e}=${t}`}),globalThis.document.cookie=r,this}}L(W,"$cookie",null);const B=W;class q{static filterNodes(t,e=1){return g.filter(D.nodes(t),t=>t.nodeType===e)}static getNodePoint(t,e){let r=null;return null!=ge.doc().elementsFromPoint&&(r=document.elementsFromPoint(t,e)),null!=ge.doc().msElementsFromPoint&&(r=document.msElementsFromPoint(t,e)),r}static getNodeEvent(t,e={}){let r=e.srcElement;null==r&&(r=e.target);let{type:i,clientX:s,clientY:n}=e;return/^(drag[a-z]*|drop$)/.test(i)&&(r=ge.getNodePoint(s,n)),D.isArr(r)&&(r=g.first(r)),null==r&&(r=e.target),r.closest(t)}}class G{static _constructFinder(t){return"string"==typeof t&&(t=document.querySelectorAll(t)),t instanceof NodeList&&(t=D.nodes(t)),t}getNodeType(t=-1){return this.el?this.el.nodeType:t}getNodeParent(t=null){return this.el?ge.find(this.el.parentNode):t}getNodePrev(t=null){return this.el?ge.find(this.el.previousSibling):t}getNodeNext(t=null){return this.el?ge.find(this.el.nextSibling):t}getNodeChilds(t=-1,e=[]){if(!this.el)return e;let r=D.nodes(this.el.childNodes);return-1===t?r:g.filter(r,e=>e.nodeType===t)}sanatize(t=1){return this.els=ge.filterNodes(this.els,t),this}filter(t){return"function"!=typeof t&&(t=e=>ge.find(e).is(t)),g.filter(this.els,t)}except(t){return"function"!=typeof t&&(t=e=>!ge.find(e).is(t)),g.filter(this.els,t)}find(t){if(null==this.el)return ge.find(null);let e=this.el;e instanceof Window&&(e=document.body);let r=t;return D.isStr(r)&&(r=e.querySelectorAll(t)),ge.find(r)}get(t=-1){let e=this.els;return-1===t?e:g.get(e,t)}first(t=0){return this.get(t)}last(t=1){return g.get(this.els,this.els.length-t)}each(t){return g.each(this.els,t)}loopParent(t,e=null){null==e&&(e=ge.win());for(let r=this.el;r&&r!==e;r=r.parentNode)t.call({},r);return this}parent(){let t=this.getNodeParent();return null==t?ge.find(null):t}child(t,e=1){for(let t of this.els)if(t.nodeType===e)return ge.find(t);return ge.find(null)}childs(t=null,e=1){let r=this.getNodeChilds(e);return null==t?r:g.filter(r,e=>ge.find(e).is(t))}closest(t){if(this.el===t)return this.el;for(let e=this;null!=e.el;e=e.getNodeParent())if(e.is(t))return e.el;return null}upnode(t){return ge.find(this.closest(t))}prev(t=1){let e=this.getNodePrev();for(;null!=e;e=e.getNodePrev())if(e.getNodeType()===t)return ge.find(e);return ge.find(null)}next(t=1){let e=this.getNodeNext();for(;null!=e;e=e.getNodeNext())if(e.getNodeType()===t)return ge.find(e);return ge.find(null)}length(){return this.els.length}is(t){if(this.el===t)return!0;if(null==this.el)return!1;for(let e of this.parent().find(t).get())if(e===this.el)return!0;return!1}matches(t){if(this.el===t)return!0;if(null==this.el)return!1;for(let e of this.find(t).get())if(e===this.el)return!0;return!1}empty(){return this.length()<1||null==this.el}visible(){return null!=this.el&&this.el.is(":visible")}above(t){return this.parent().is(t)}inside(t){return null!=this.closest(t)}contains(t){return this.el.contains(t)}}G.prototype.isParent=function(...t){return console.warn("Dom.isParent() is deprecated, use Dom.above() instead."),this.above(...t)},G.prototype.previous=function(){return console.warn("Dom.previous() is deprecated, use Dom.prev() instead."),this.prev()},G.prototype.where=function(...t){return console.warn("Dom.where() is deprecated, use Dom.filter() instead."),this.filter(...t)},G.prototype.not=function(...t){return console.warn("Dom.not() is deprecated, use Dom.except() instead."),this.except(...t)},G.prototype.getNot=()=>{console.error("Dom.getNot() is not implemented anymore.")};class X{}class z{value(t=void 0){return void 0===t?this.el.value:(this.each(e=>{e.value=t}),this)}}class U{}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(U,"$events",[]);class V{bind(t,e,r,i=null,s=!1,n={}){return D.isPrim(n)&&(n={id:n}),ge.$events=g.append(ge.$events,{el:t,event:e,cb:r,selector:i,pause:s,options:n}),t.addEventListener(e,r,n),this}unbind(t,e,r=null,i={}){D.isPrim(i)&&(i={id:i});let s=g.filterIndex(ge.$events,{el:t,event:e,selector:r,options:i});if(0===s.length)return;return g.each(s.reverse(),r=>{var i;t.removeEventListener(...(i=ge.$events[r],[e,i.cb,i.options]))}),g.splices(ge.$events,s),this}on(t,e,r={},i=!1,s=null){D.isPrim(r)&&(r={id:r});let n=t=>{e.call(t.target,t,t.target)};return this.each(e=>{this.bind(e,t,n,s,i,r)}),this}off(t,e=null,r={}){return D.isPrim(r)&&(r={id:r}),D.isObj(e)&&(r=e,e=null),this.each(i=>{this.unbind(i,t,e,r)}),this}optoff(t={}){return s.idle(()=>{g.filterRemove(ge.$events,{options:t})}),this.each(t=>{t&&t.removeAllListeners()}),this}once(t,e,r={}){return r.id=Y.make(24),this.on(t,i=>{e(i),this.off(t,r)},r),this}live(t,e,r,i={},s=!1){return this.on(t,function(t){let i=ge.getNodeEvent(e,t);null!=i&&r.call({},t,i)},i,s,e),this}fire(t,e={}){let r=new CustomEvent(t,{detail:e});return this.each(t=>{t.dispatchEvent(r)}),this}}V.prototype.one=function(...t){return console.warn("Dom.one() is deprecated, use Dom.once() instead."),this.once(...t)},V.prototype.delayed=function(){console.error("Dom.delayed() is not implemented anymore.")},V.prototype.pause=function(){console.error("Dom.pause() is not implemented anymore.")},V.prototype.unpause=function(){console.error("Dom.unpause() is not implemented anymore.")};class J{static make(t,e={}){t instanceof ge&&(t=t.el),D.isStr(t)&&(t=document.createElement(t)),t=b.assign(t,e);let r=new ge(t);return e.class&&r.class(e.class),e.html&&r.html(e.html),r}}class _{prepend(t){return this.each(e=>{null!=e.prepend&&e.prepend(t)}),this}prependTo(t){return ge.find(t).each(t=>{null!=t.prepend&&t.prepend(this.el)}),this}append(t){return this.each(e=>{null!=e.append&&e.append(t)}),this}appendTo(t){return ge.find(t).each(t=>{null!=t.append&&t.append(this.el)}),this}replace(t){return this.parent().each(el,e=>{e.insertBefore(t,e),e.removeChild(e)}),this}}class K{static getDomState(){return document.readyState}static isDomReady(){return"complete"===ge.getDomState()}static isDomComplete(){let t=ge.getDomState();return"complete"===t||"interactive"===t}static ready(t,e=0,r=6e3){let[i,n,o]=[Y.make(),ge.find(document),"DOMContentLoaded"],l=()=>{s.delay(t,e),n.off(o,null,{id:i})},a=ge.isDomReady;return a()?(s.wait(()=>{if(a())return l(),!0},10,r),this):(n.on(o,l,{id:i}),this)}static complete(t,e=0,r=6e3){let i=()=>{s.delay(t,e)},[n,o]=[ge.find(document),"load"],l=ge.isDomComplete;return l()?(s.wait(()=>{if(l())return i(),!0},10,r),this):(n.on(o,i),this)}}K.required=()=>{console.error("Dom.required() is not implemented anymore.")};class Z{isNodeComplete(){return null!=this.el&&(!!this.el.naturalWidth||(!!this.el.naturalHeight||!!this.el.complete))}loaded(t,e=6e3){if(!this.el)return this;let r=this.isNodeComplete;return s.wait(()=>{if(r.call(this))return t(),!0},10,e),this}}function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach(function(e){et(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function et(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class rt{static num(t){return"string"==typeof t&&(t=t.replace(/(^\s+|\s$|px)/g,"")),D.num(t,0)}}class it{rect(t={}){const e=this.el.getBoundingClientRect();return null==e?t:e.toJSON()}margin(t=null,e=0){let r=this.computed(),i={top:ge.num(r.marginTop),right:ge.num(r.marginRight),bottom:ge.num(r.marginBottom),left:ge.num(r.marginLeft)};return null==t?i:b.get(i,t,e)}padding(t=null,e=0){let r=this.computed(),i={top:ge.num(r.paddingTop),right:ge.num(r.paddingRight),bottom:ge.num(r.paddingBottom),left:ge.num(r.paddingLeft)};return null==t?i:b.get(i,t,e)}height(){return null==this.el?0:this.el instanceof Window?this.el.innerHeight:this.el.offsetHeight}clientHeight(){return null==this.el?0:ge.num(this.computed("height",0))}scrollHeight(){return null==this.el?0:this.el.scrollHeight}innerHeight(){if(null==this.el)return 0;if(this.el instanceof Window)return this.el.innerHeight;let t=this.padding();return this.el.offsetHeight-t.top-t.bottom}realHeight(t={}){let e="auto";return this.actual(()=>e=this.height(),t),e}evaluateHeight(t=null,e=!0){null===(t=ge.find(t))&&(t=this.parent());let r="auto";return this.actual(()=>{r=t.innerHeight()},{display:"none"}),!0===e&&this.style({height:r+"px"}),r}width(){return null==this.el?0:this.el instanceof Window?this.el.innerWidth:this.el.offsetWidth}clientWidth(){return null==this.el?0:ge.num(this.computed("width",0))}scrollWidth(){return null==this.el?0:this.el.scrollWidth}innerWidth(){if(null==this.el)return 0;if(this.el instanceof Window)return this.el.innerWidth;let t=this.padding();return this.el.offsetWidth-t.left-t.right}realWidth(t={}){let e="auto";return this.actual(()=>e=this.width(),t),e}evaluateWidth(t=null,e=!0){null===(t=ge.find(t))&&(t=this.parent());let r="auto";return this.actual(()=>{r=t.innerWidth()},{display:"none"}),!0===e&&this.style({width:r+"px"}),r}offset(t=null,e=null){let r=this.getOffset(e);return null==t?r:b.get(r,t,0)}offsetTop(t=null){return this.offset("top",t)}offsetBottom(t=null){return this.offset("bottom",t)}offsetLeft(t=null){return this.offset("left",t)}offsetRight(t=null){return this.offset("right",t)}loopOffset(t,e=null){null==e&&(e=ge.body());for(let r=this.el;r&&r!==e;r=r.offsetParent)t.call({},r);return this}calcOffset(t,e,r){let i={right:ge.body().scrollWidth-t.left-e,bottom:ge.body().scrollHeight-t.top-r};return tt(tt({},t),i)}getOffset(t=null){null==t&&(t=ge.body());let e,r={top:0,left:0,bottom:0,right:0};if(null==this.el)return r;e=t=>{r.top+=ge.num(t.offsetTop,0),r.left+=ge.num(t.offsetLeft,0)},this.loopOffset(e),r=this.calcOffset(r,this.width(),this.height());let i=ge.find(t),s={top:0,left:0,bottom:0,right:0};return e=t=>{s.top+=ge.num(t.offsetTop,0),s.left+=ge.num(t.offsetLeft,0)},i.loopOffset(e),s=this.calcOffset(s,i.scrollWidth(),i.scrollHeight()),{top:r.top-s.top,bottom:r.bottom-s.bottom,left:r.left-s.left,right:r.right-s.right}}scroll(t=null,e=null){let r=this.getScroll(e);return null==t?r:b.get(r,t,0)}scrollTop(t=null,e=null){return null==t?this.scroll("top",e):(this.each(e=>{e.scrollTop=t}),this)}scrollLeft(t=null,e=null){return null==t||this.each(e=>{e.scrollLeft=t}),this.scroll("left",e)}getScroll(t=null){null==t&&(t=ge.win());let e,r={top:0,left:0};if(null==this.el)return r;e=t=>{r.top+=ge.num(t.scrollTop||t.pageYOffset||0),r.left+=ge.num(t.scrollLeft||t.pageXOffset||0)},this.loopParent(e);let i={top:0,left:0};return e=t=>{i.top+=ge.num(t.scrollTop||t.pageYOffset||0),i.left+=ge.num(t.scrollLeft||t.pageXOffset||0)},ge.find(t).loopParent(e),{top:r.top-i.top,left:r.left-i.left}}}it.prototype.loopOffsetParent=function(...t){return console.warn("Dom.loopOffsetParent() is deprecated, use Dom.loopOffset() instead."),this.loopOffset(...t)},it.prototype.scrollTopGlobal=function(){return console.warn("Dom.scrollTopGlobal() is deprecated, use Dom.scroll('top') instead."),this.scroll("top",null)},it.prototype.scrollLeftGlobal=function(){return console.warn("Dom.scrollLeftGlobal() is deprecated, use Dom.scroll('left') instead."),this.scroll("left",null)};function st(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?st(Object(r),!0).forEach(function(e){ot(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ot(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class lt{}class at{attr(t,e=void 0,r=null){if(null==this.el)return e?this:r;let i=this.el.getAttribute(t);return D.isUndef(e)?i||r:null===e?(this.el.removeAttribute(t),i):(D.isArr(e)&&(e=e.join(" ")),D.isObj(e)&&(e=be.castOptions(e)),this.el.setAttribute(t,e),this)}data(t,e=void 0,r=null){return this.attr("data-"+t,e,r)}computed(t=null,e=null){if(null==this.el)return e;if(1!==this.getNodeType())return e;let r=getComputedStyle(this.el);return null==t?r:b.get(r,t,e)}style(t=void 0,e=!0){if(null==this.el)return this;if(null===t)return this.attr("style",null);let r=this.attr("style",void 0,{});return D.isStr(r)&&(r=be.parseOptions(r)),D.isUndef(t)?r:(e&&(t=nt(nt({},r),t)),t.translate&&(t.transform=`translate3d(${t.translate.join(",")}, 0)`),delete t.translate,D.isNum(t.top)&&(t.top+="px"),D.isNum(t.left)&&(t.left+="px"),D.isNum(t.width)&&(t.width+="px"),D.isNum(t.height)&&(t.height+="px"),this.attr("style",t),this)}class(t=void 0,e=!1){if(null==this.el)return this;if(null===t)return this.attr("class","");let r=this.attr("class",void 0,[]);return D.isStr(r)&&(r=r.split(" ")),D.isUndef(t)?r:(e&&(t=[...r,...t]),this.attr("class",t),this)}html(t=void 0){return void 0===t?this.el.innerHTML:(this.each(e=>{e.innerHTML=t}),this)}actual(t,e=null){let r=this.attr("style");this.style(e);let i=t(this.el,this.el);return this.attr("style",r),i}hasClass(t){return D.isArr(t)||(t=[t]),g.isect(this.class(),t).length>0}addClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>ge.find(e).addClass(t));let e=this.el.className.split(" ");return D.isStr(t)&&(t=t.split(" ")),e=g.append(e,...t),this.el.className=g.unique(e).join(" "),this}remClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>ge.find(e).remClass(t));let e=this.el.className.split(" ");return D.isStr(t)&&(t=t.split(" ")),e=g.diff(e,t),this.el.className=g.unique(e).join(" "),this}toggleClass(t){return this.els.length>1?this.each(e=>ge.find(e).toggleClass(t)):this.hasClass(t)?this.remClass(t):this.addClass(t)}stateClass(t,e=!0){return this.els.length>1?this.each(e=>ge.find(e).stateClass(t)):e?this.addClass(t):this.remClass(t)}}at.prototype.css=function(...t){return console.warn("Dom.css() is deprecated, use Dom.style() instead."),this.style(...t)},at.prototype.removeClass=function(...t){return console.warn("Dom.removeClass() is deprecated, use Dom.remClass() instead."),this.remClass(...t)};function ut(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(r),!0).forEach(function(e){ht(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ht(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class dt{static inviewMaxY(t,e=null){if(D.isString(t)&&(t={el:t}),!(t=ct(ct({},{boundry:null,multiple:!1,threshold:0,mode:"ratio"}),t)).el)throw new Error("Dom.inviewY() requires an element.");let r=[t.threshold,t.mode,t.boundry],i=[];return ge.find(t.el).each(t=>{(t=>ge.find(t).isInviewY(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:g.first(i)}static inviewMaxX(t,e=null){if(D.isString(t)&&(t={el:t}),!(t=ct(ct({},{boundry:null,multiple:!1,threshold:0,mode:"ratio"}),t)).el)throw new Error("Dom.inviewX() requires an element.");let r=[t.threshold,t.mode,t.boundry],i=[];return ge.find(t.el).each(t=>{(t=>ge.find(t).isInviewX(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:g.first(i)}}class ft{viewoffX(){if(null==this.el)return{top:0,bot:0};let[t,e]=[ge.win().innerWidth,this.width()],[r,i]=[this.offset("left"),this.parent().scroll("left")];return{left:Math.max(0,r-i),right:Math.max(0,t-(r+e-i))}}inviewX(t=null){let{left:e,right:r}=ge.find(t).viewoffY(),[i,s]=[ge.win().innerHeight-r-e,this.height()],[n,o]=[this.offset("left")+e,this.scroll("left")+e],l=Math.max(0,o+i-n+e);return l>s&&(l=Math.min(s,i+s-l)),Math.max(0,l)}inratioX(t=null){return 1/this.width()*this.inviewX(t)}isInviewX(t=.1,e="ratio",r=null){return"pixel"===e?this.inviewX(r)>t:this.inratioX(r)>t}viewoffY(){if(null==this.el)return{top:0,bottom:0};let[t,e]=[ge.win().innerHeight,this.height()],[r,i]=[this.offset("top"),this.parent().scroll("top")];return{top:Math.max(0,r-i),bottom:Math.max(0,t-(r+e-i))}}inviewY(t=null){let{top:e,bottom:r}=ge.find(t).viewoffY(),[i,s]=[ge.win().innerHeight-r-e,this.height()],[n,o]=[this.offset("top")+e,this.scroll("top")+e],l=Math.max(0,o+i-n+e);return l>s&&(l=Math.min(s,i+s-l)),Math.min(Math.max(0,l),i)}inratioY(t=null){return 1/this.height()*this.inviewY(t)}isInviewY(t=.1,e="ratio",r=null){return"pixel"===e?this.inviewY(r)>t:this.inratioY(r)>t}}ft.prototype.inviewHeight=function(...t){return console.warn("Dom.inviewHeight() is deprecated, use Dom.inviewY() instead."),this.inviewY(...t)},ft.prototype.inviewWidth=function(...t){return console.warn("Dom.inviewWidth() is deprecated, use Dom.inviewX() instead."),this.inviewX(...t)};class pt{static setMetaTitle(t,e=":value - :title"){return this.$meta.title||(this.$meta.title=ge.doc().title),document.title=H.replace(e,{value:t,title:this.$meta.title}),this}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(pt,"$meta",{}),pt.title=t=>(console.warn("Dom.title() is deprecated, use Dom.setMetaTitle() instead."),ge.setMetaTitle(t));class mt{}class gt{}class yt{}function bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(r),!0).forEach(function(e){wt(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function wt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class Ot{}class Mt{popover(t,e="botttom-center",r={}){return/^(top|bottom)-/.test(e)?this.popoverY(t,e,r):/^(left|right)-/.test(e)?this.popoverX(t,e,r):void 0}popoverY(t,e="bottom-center",r={}){t=ge.find(t);let[i,s]=[t.rect(),this.rect()];r.x&&(i=vt(vt({},i),{},{left:r.x,width:1})),r.y&&(i=vt(vt({},i),{},{top:r.y,height:1})),r.width;let[n,o]=[{x:0,y:0},i.width-s.width];/^top-/.test(e)&&(n.y=i.top-s.height),/^bottom-/.test(e)&&(n.y=i.top+i.height),/-start$/.test(e)&&(n.x=i.left),/-center$/.test(e)&&(n.x=i.left+.5*o),/-end$/.test(e)&&(n.x=i.left+o);let l=e;/^top-/.test(e)&&(l=l.replace(/^top-/,"bottom-")),/^bottom-/.test(e)&&(l=l.replace(/^bottom-/,"top-"));let a={x:window.innerWidth,y:window.innerHeight},u=n.y+s.height>a.y||n.y<0;n.y<0&&(u=!0);const c=vt(vt({},r),{},{offset:n});if(u&&!r.offset)return this.popoverY(t,l,c);return u&&r.offset&&(n=r.offset),n.y<0&&(n.y=0),n.y+s.height>a.height&&(n.y=a.height-s.height),u&&(e="auto"),vt(vt({},this.popoverNormalize(n,s,i,a)),{},{position:e})}popoverX(t,e="left-center",r={}){t=ge.find(t);let[i,s]=[t.rect(),this.rect()];r.height;let[n,o]=[{x:0,y:0},i.height-s.height];/^left-/.test(e)&&(n.x=i.left-s.width),/^right-/.test(e)&&(n.x=i.left+i.width),/-start$/.test(e)&&(n.y=i.top),/-center/.test(e)&&(n.y=i.top+.5*o),/-end/.test(e)&&(n.y=i.top+o);let l=e;/^left-/.test(e)&&(l=l.replace(/^left-/,"right-")),/^right-/.test(e)&&(l=l.replace(/^right-/,"left-"));let a={x:window.innerWidth,y:window.innerHeight},u=n.y+s.height>a.y;n.y<0&&(u=!0);const c=vt(vt({},r),{},{offset:n});if(u&&!r.offset)return this.popoverX(t,l,c);return u&&r.offset&&(n=r.offset),u&&(e="auto"),vt(vt({},this.popoverNormalize(n,s,i,a)),{},{position:e})}popoverNormalize(t,e,r,i){const s=ge.find(document.body).scroll();t.y<0&&(t.y=0),t.y+e.height>i.y&&(t.y=i.y-e.height),t.x<0&&(t.x=0);const n=document.body.clientWidth;return t.x+e.width>i.x&&(t.x=i.x-e.width-(i.x-n)),t={x:t.x+s.left,y:t.y+s.top},b.each(t,(e,r)=>{t[r]=Math.round(e)}),t.self={width:e.width,height:e.height},t.rect={width:r.width,height:r.height},t}}function Dt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const kt=[function(t){return b.each(D.class(q),(e,r)=>{t[r]=e}),b.each(D.proto(G),(e,r)=>{t.prototype[r]=e}),t.init.push(G._constructFinder),t},function(t){return b.each(D.class(K),(e,r)=>{t[r]=e}),b.each(D.proto(Z),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(X),(e,r)=>{t[r]=e}),b.each(D.proto(z),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(U),(e,r)=>{t[r]=e}),b.each(D.proto(V),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(J),(e,r)=>{t[r]=e}),b.each(D.proto(_),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(rt),(e,r)=>{t[r]=e}),b.each(D.proto(it),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(lt),(e,r)=>{t[r]=e}),b.each(D.proto(at),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(dt),(e,r)=>{t[r]=e}),b.each(D.proto(ft),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(pt),(e,r)=>{t[r]=e}),b.each(D.proto(mt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(gt),(e,r)=>{t[r]=e}),b.each(D.proto(yt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(Ot),(e,r)=>{t[r]=e}),b.each(D.proto(Mt),(e,r)=>{t.prototype[r]=e}),t}];class Pt{constructor(t,...e){Dt(this,"el",null),Dt(this,"els",[]),g.each(ge.init,r=>{t=r.call(this,t,...e)}),t instanceof ge&&(t=t.el),D.isArr(t)||(t=[t]),this.el=t[0],this.els=t}static find(t,...e){return new ge(t,...e)}static extend(t){t.call({},this)}static win(){return null==globalThis.window?{}:window}static doc(){return null==globalThis.document?{}:document}static body(){return this.doc().body?this.doc().body:{}}}Dt(Pt,"init",[]);const jt=function(){let t=Pt;for(const e of kt)t=e.call(t,t);return t},$t={second:/([+-])([0-9]+)\s?seconds?/i,minute:/([+-])([0-9]+)\s?minutes?/i,hour:/([+-])([0-9]+)\s?hours?/i,date:/([+-])([0-9]+)\s?days?/i,month:/([+-])([0-9]+)\s?months?/i,year:/([+-])([0-9]+)\s?years?/i};class xt{get(t){return"time"===t?this.value.getTime():/^seconds?$/i.test(t)?this.value.getSeconds():/^minutes?$/i.test(t)?this.value.getMinutes():/^hours?$/i.test(t)?this.value.getHours():/^days?$/i.test(t)?this.value.getDay():/^dates?$/i.test(t)?this.value.getDate():/^months?$/i.test(t)?this.value.getMonth()+1:/^years?$/i.test(t)?this.value.getFullYear():this}set(t,e){D.isNum(t)||(t=D.int(t));let r=this.value.getDay();return"day"===e&&(t=t+1-(r||7)),"time"===e&&this.value.setTime(t),/^seconds?$/i.test(e)&&this.value.setSeconds(t),/^minutes?$/i.test(e)&&this.value.setMinutes(t),/^hours?$/i.test(e)&&this.value.setHours(t),/^days?$/i.test(e)&&this.add(t,"date"),/^dates?$/i.test(e)&&this.value.setDate(t),/^months?$/i.test(e)&&this.value.setMonth(t-1),/^years?$/i.test(e)&&this.value.setFullYear(t),this}time(t=null){return null==t?this.get("time"):this.set(t,"time")}second(t=null){return null==t?this.get("second"):this.set(t,"second")}minute(t=null){return null==t?this.get("minute"):this.set(t,"minute")}hour(t=null){return null==t?this.get("hour"):this.set(t,"hour")}day(t=null){return null==t?this.get("day"):this.set(t,"day")}date(t=null){return null==t?this.get("date"):this.set(t,"date")}month(t=null){return null==t?this.get("month"):this.set(t,"month")}year(t=null){return null==t?this.get("year"):this.set(t,"year")}shortyear(){return this.get("year").toString().slice(-2)}add(t,e="day"){return/^days?$/i.test(e)&&(e="date"),this.set(this.get(e)+D.int(t),e),this}sub(t,e="day"){return/^days?$/i.test(e)&&(e="date"),this.set(this.get(e)-D.int(t),e),this}isModifible(t){return/^(\s*[+-][0-9]+\s?[a-z]+\s*)+$/i.test(t)}modify(t){return D.isEmpty(t)||b.each($t,(e,r)=>{u.match(t,e,([t,e,i])=>{"+"===e?this.add(i,r):this.sub(i,r)})}),this}apply(t,e="YYYY-MM-DD HH:mm:ss",r=[]){t=ye.make(t,e);for(const e of r)this.set(t.get(e),e);return this}applyDate(t,e="YYYY-MM-DD HH:mm:ss"){return this.apply(t,e,["date","month","year"])}applyTime(t,e="YYYY-MM-DD HH:mm:ss"){return this.apply(t,e,["hour","minute","second"])}}xt.prototype.addSecond=function(t){return console.warn("Now.addSecond() is deprecated, use Now.add(value, 'second') instead."),this.add(t,"second")},xt.prototype.subSecond=function(t){return console.warn("Now.subSecond() is deprecated, use Now.sub(value, 'second') instead."),this.sub(t,"second")},xt.prototype.addMinute=function(t){return console.warn("Now.addMinute() is deprecated, use Now.add(value, 'minute') instead."),this.add(t,"minute")},xt.prototype.subMinute=function(t){return console.warn("Now.subMinute() is deprecated, use Now.sub(value, 'minute') instead."),this.sub(t,"minute")},xt.prototype.addHour=function(t){return console.warn("Now.addHour() is deprecated, use Now.add(value, 'hour') instead."),this.add(t,"hour")},xt.prototype.subHour=function(t){return console.warn("Now.subHour() is deprecated, use Now.sub(value, 'hour') instead."),this.sub(t,"hour")},xt.prototype.addDates=function(t){return console.warn("Now.addDates() is deprecated, use Now.add(value, 'date') instead."),this.add(t,"date")},xt.prototype.subDates=function(t){return console.warn("Now.subDates() is deprecated, use Now.sub(value, 'date') instead."),this.sub(t,"date")},xt.prototype.addMonths=function(t){return console.warn("Now.addMonths() is deprecated, use Now.add(value, 'month') instead."),this.add(t,"month")},xt.prototype.subMonths=function(t){return console.warn("Now.subMonths() is deprecated, use Now.sub(value, 'month') instead."),this.sub(t,"month")},xt.prototype.addYears=function(t){return console.warn("Now.addYears() is deprecated, use Now.add(value, 'year') instead."),this.add(t,"year")},xt.prototype.subYears=function(t){return console.warn("Now.subYears() is deprecated, use Now.sub(value, 'year') instead."),this.sub(t,"year")},xt.prototype.addDecades=function(t){return console.warn("Now.addDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.add(10*t,"year")},xt.prototype.subDecades=function(t){return console.warn("Now.subDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.sub(10*t,"year")},xt.prototype.humanDay=function(){return console.warn("Now.humanDay() is deprecated, use Now.day() instead."),this.day()},xt.prototype.humanMonth=function(){return console.warn("Now.humanMonth() is deprecated, use Now.month() instead."),this.month()};const St={L:"DD/MM/YYYY",LL:"MMMM DD, YYYY",LLL:"MMMM DD, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm",LT:"HH:mm",LTS:"HH:mm:ss",LTSD:"DD/MM/YYYY HH:mm:ss"},Nt={second:"ss",minute:"mm",hour:"HH",date:"DD",month:"MM",year:"YYYY"};class Yt{isParsable(t,e="YYYY-MM-DD HH:mm:ss"){for(const r in Nt)t=u.replace(t,Nt[r],e);return t===e}parse(t,e="YYYY-MM-DD HH:mm:ss"){return D.isTime(t)&&(e="HH:mm:ss"),D.isDate(t)&&(e="YYYY-MM-DD"),this.isModifible(t)?this.modify(t):D.isIsoDate(t)?(this.value=new Date(t),this):this.parseFormat(t,e)}parseFormat(t,e){if(!this.isParsable(t,e))return this.value=new Date(NaN),this;for(const r in Nt)this.set(u.extract(t,Nt[r],e),r);return this}format(t="YYYY-MM-DD HH:mm:ss"){return b.has(St,t)&&(t=H.$text[t]??St[t]),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("dddd",()=>this.human("day"))).replace("ddd",()=>this.human("day",3))).replace("dd",()=>this.human("day",2))).replace("MMMM",()=>this.human("month"))).replace("MMM",()=>this.human("month",3))).replace("YYYY",()=>u.integer(this.year(),4))).replace("MM",()=>u.integer(this.month(),2))).replace("DD",()=>u.integer(this.date(),2))).replace("HH",()=>u.integer(this.hour(),2))).replace("mm",()=>u.integer(this.minute(),2))).replace("ss",()=>u.integer(this.second(),2))).replace("YY",()=>u.integer(this.shortyear(),2))).replace("X",()=>u.integer(this.time()))).replace("x",()=>u.integer(this.time()/1e3))}code(t="X"){return D.int(this.format(t))}}class Et{before(t=null,e="x"){return this.code(e)<ye.make(t).code(e)}beforeDate(t=null,e="YYYYMMDD"){return this.before(t,e)}beforeTime(t=null,e="HHmmss"){return this.before(t,e)}after(t=null,e="x"){return this.code(e)>ye.make(t).code(e)}afterDate(t=null,e="YYYYMMDD"){return this.after(t,e)}afterTime(t=null,e="HHmmss"){return this.after(t,e)}equal(t=null,e="x"){return t instanceof ye||(t=ye.make(t)),this.code(e)===t.clone().code(e)}equalDate(t=null,e="YYYYMMDD"){return this.equal(t,e)}equalTime(t=null,e="HHmmss"){return this.equal(t,e)}between(t=null,e=null,r="YYYYMMDD"){let i=[ye.make(t),ye.make(e)];return i[0].after(i[1],r)&&(i=i.reverse()),this.after(i[0],r)&&this.before(i[1],r)}}class Tt{grid(t="day"){if(/^seconds?$/i.test(t))return this.getSecondsGrid();if(/^minutes?$/i.test(t))return this.getMinutesGrid();if(/^hours?$/i.test(t))return this.getHoursGrid();if(/^days?$/i.test(t))return this.getDaysGrid();if(/^dates?$/i.test(t))return this.getDatesGrid();if(/^months?$/i.test(t))return this.getMonthsGrid();if(/^years?$/i.test(t))return this.getYearsGrid();if(/^decades?$/i.test(t))return this.getDecadesGrid();throw new Error(`Invalid grid scope type "${t}".`)}getSecondsGrid(t=1){return null==t&&(t=1),g.make(60/t,e=>this.clone().second(e*t))}getMinutesGrid(t=1){return null==t&&(t=1),g.make(60/t,e=>this.clone().minute(e*t))}getHoursGrid(t=1){return null==t&&(t=1),g.make(24/t,e=>this.clone().hour(e*t))}getDaysGrid(){let t=[this.first("date").first("day"),this.last("date").last("day")];return t[0].range(t[1],"date")}getDatesGrid(){let t=[this.first("date"),this.last("date")];return t[0].range(t[1],"date")}getMonthsGrid(){let t=[this.first("month"),this.last("month")];return t[0].range(t[1],"month")}getYearsGrid(){let t=[this.first("year"),this.clone().last("year")];return t[0].range(t[1],"year")}getDecadesGrid(){let t=[this.first("decade"),this.clone().last("decade")];return t[0].range(t[1],"decade")}}Tt.prototype.getYears=function(){return console.warn("Now.getYears() is deprecated, use Now.grid('years') instead."),this.grid("years")},Tt.prototype.getMonths=function(){return console.warn("Now.getMonths() is deprecated, use Now.grid('months') instead."),this.grid("months")},Tt.prototype.getDates=function(){return console.warn("Now.getDates() is deprecated, use Now.grid('dates') instead."),this.grid("dates")},Tt.prototype.getHours=function(){return console.warn("Now.getHours() is deprecated, use Now.grid('hours') instead."),this.grid("hours")},Tt.prototype.getMinutes=function(){return console.warn("Now.getMinutes() is deprecated, use Now.grid('minutes') instead."),this.grid("minutes")},Tt.prototype.getSeconds=function(){return console.warn("Now.getSeconds() is deprecated, use Now.grid('seconds') instead."),this.grid("seconds")};class It{prev(t="date"){return/^days?$/i.test(t)&&(t="date"),/^decades?$/i.test(t)?this.clone().sub(10,"year"):this.clone().sub(1,t)}next(t="day"){return/^days?$/i.test(t)&&(t="date"),/^decades?$/i.test(t)?this.clone().add(10,"year"):this.clone().add(1,t)}prevSecond(){return this.prev("second")}nextSecond(){return this.next("second")}prevMinute(){return this.prev("minute")}nextMinute(){return this.next("minute")}prevHour(){return this.prev("hour")}nextHour(){return this.next("hour")}prevDate(){return this.prev("date")}nextDate(){return this.next("date")}prevMonth(){return this.prev("month")}nextMonth(){return this.next("month")}prevYear(){return this.prev("year")}nextYear(){return this.next("year")}prevDecade(){return this.prev("decade")}nextDecade(){return this.next("decade")}first(t="date"){if(/^seconds?$/i.test(t))return this.firstSecond();if(/^minutes?$/i.test(t))return this.firstMinute();if(/^hours?$/i.test(t))return this.firstHour();if(/^days?$/i.test(t))return this.firstDay();if(/^dates?$/i.test(t))return this.firstDate();if(/^months?$/i.test(t))return this.firstMonth();if(/^years?$/i.test(t))return this.firstYear();if(/^decades?$/i.test(t))return this.firstDecade();throw new Error(`Invalid first scope type "${t}".`)}last(t="date"){if(/^seconds?$/i.test(t))return this.lastSecond();if(/^minutes?$/i.test(t))return this.lastMinute();if(/^hours?$/i.test(t))return this.lastHour();if(/^days?$/i.test(t))return this.lastDay();if(/^dates?$/i.test(t))return this.lastDate();if(/^months?$/i.test(t))return this.lastMonth();if(/^years?$/i.test(t))return this.lastYear();if(/^decades?$/i.test(t))return this.lastDecade();throw new Error(`Invalid last scope type "${t}".`)}firstSecond(){return this.clone().set(0,"second")}lastSecond(){return this.clone().set(59,"second")}firstMinute(){return this.clone().set(0,"minute")}lastMinute(){return this.clone().set(59,"minute")}firstHour(){return this.clone().set(0,"hour")}lastHour(){return this.clone().set(23,"hour")}firstDay(){return this.clone().set(0,"day")}lastDay(){return this.clone().set(6,"day")}firstDate(){return this.clone().set(1,"date")}lastDate(){return this.clone().next("month").set(0,"date")}firstMonth(){return this.clone().set(1,"month")}lastMonth(){return this.clone().set(12,"month")}nthYear(t=0){let e=10*Math.floor(this.year()/10);return this.clone().set(e+t,"year")}firstYear(){return this.nthYear(0)}lastYear(){return this.nthYear(9)}nthDecade(t=0){let e=100*Math.floor(this.year()/100);return this.clone().set(e+10*t,"year")}firstDecade(){return this.nthDecade(0)}lastDecade(){return this.nthDecade(9)}}class At{range(t=null,e="date"){let r="YYYYMMDD";/^months?$/.test(e)&&(r="YYYYMM"),/^years?$/.test(e)&&(r="YYYY");let i=[],s=[this.clone(),ye.make(t)];s[0].afterDate(s[1])&&(s=s.reverse()),s[1].add(1,e);for(let t=s[0];!t.equal(s[1],r);t=t.next(e))g.append(i,t);return i}}At.prototype.getDatesRange=function(...t){return console.warn("NowRange.getDatesRange() is deprecated, use NowRange.range() instead."),this.range(...t)};const Ht=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ft=["January","February","March","April","May","June","July","August","September","October","November","December"];class Ct{human(t="day",e=null){return/^days?$/i.test(t)?this.getHumanDay(e):/^months?$/i.test(t)?this.getHumanMonth(e):this.get(t)}getHumanDay(t=null){let e=this.day()-1;if(!Ht[e])throw new Error(`Invalid day number "${e}".`);let r=H.trans(Ht[e]);return null!=t&&(r=r.substring(0,t)),r}getHumanMonth(t=null){let e=this.day()-1;if(!Ft[e])throw new Error(`Invalid month number "${e}".`);let r=H.trans(Ft[e]);return null!=t&&(r=r.substring(0,t)),r}}function Lt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Rt=[function(t){return b.each(D.proto(xt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(Yt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(Et),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(Tt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(It),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(At),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(Ct),(e,r)=>{t.prototype[r]=e}),t}];class Wt{constructor(t=null,e="YYYY-MM-DD HH:mm:ss"){Lt(this,"input",null),Lt(this,"value",null),"now"===t&&(t=null);let r=t;return t&&t.toDate&&(t=t.toDate()),t instanceof Date||(t=new Date),this.input=t,D.isNix(r)&&(this.input=r),this.value=t,D.isStr(r)&&this.parse(r,e),g.each(ye.init,t=>{el=t.call(this,el,e)}),this}static extend(t){t.call({},this)}static make(t=null,e="YYYY-MM-DD HH:mm:ss"){return new ye(t,e)}reset(t=null){return null==t&&(t={month:!0,day:!0,time:!0}),t.month&&this.value.setMonth(0),t.day&&this.value.setDate(1),t.time&&this.value.setHours(0,0,0),this}clone(t=!1){return new ye(new Date(this.value),null,t)}valid(){return!isNaN(this.input)}toDate(){return this.value}toUTC(){return this.value.toUTCString()}}Lt(Wt,"init",[]),Wt.prototype.resetTime=function(){return console.warn("Now.resetTime() is deprecated, use Now.reset({ time: true }) instead."),this.reset({time:!0})};const Bt=function(){let t=Wt;for(const e of Rt)t=e.call(t,t);return t},qt=[{match:t=>/^(null|undefined)$/i.test(t),parse:t=>D.null(t)},{match:t=>/^(true|false|yes|no)$/i.test(t),parse:t=>D.bool(t)},{match:t=>/^-?[0-9]+$/.test(t),parse:t=>D.int(t)},{match:t=>/^-?[0-9]+\.[0-9]+$/.test(t),parse:t=>D.num(t)},{match:t=>/^[{\[].*?[}\]]$/.test(t),parse:t=>JSON.parse(t)}],Gt=[{match:t=>D.isArr(t),parse:t=>JSON.stringify(t)}];class Xt{static keyed(t,e=null){return D.isStr(t)?-1===t.indexOf("[")?t:t.replace(/\[([^\]]+)\]/g,".$1"):e}static parsed(t,e=null,r=[]){if(!D.isStr(t))return e;t=t.replace(/(^"|^'|'$|"$)/g,"");for(let e of r)if(e.match(t))return e.parse(t);for(let e of qt)if(e.match(t))return e.parse(t);return t}static casted(t,e=!1,r=[]){if(e&&(t=encodeURI(t)),D.isStr(t))return t;for(let e of r)if(e.match(t))return e.parse(t);for(let e of Gt)if(e.match(t))return e.parse(t);return D.str(t)}}const zt={entry:/(?<=^|&|\?)(\s*(?<key>.*?)\s*=\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=&|$)/g};class Ut{static castParams(t={}){if(D.isEmpty(t))return"";return g.each(t,(t,e)=>this.castParam(e,t)).join("&")}static castParam(t,e,r=null){if(null!=r&&(t=r+"["+t+"]"),!D.isRef(e))return D.str(t)+"="+be.casted(e,!0);return g.each(e,(r,i)=>this.castParam(D.isArr(e)?"":i,r,t)).join("&")}static parseParams(t){if(D.isEmpty(t))return{};let e=(t=decodeURIComponent(t)).matchAll(zt.entry);if(null==e)return{};const[r,i]=[be.keyed,be.parsed];return g.reduce(Array.from(e),(t,{groups:e})=>b.set(t,r(e.key),i(e.val)),{})}}const Vt={entry:/(^|;)(\s*(?<key>.*?)\s*:\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=;|$)/g};class Jt{static castOptions(t={},e=!0){if(D.isEmpty(t))return"";return g.each(t,(t,r)=>this.castOption(r,t,null,e)).join(e?"; ":";")+";"}static castOption(t,e,r=null,i=!0){null!=r&&(t=r+"."+t);let s=i?": ":":";return D.isObj(e)?g.map(e,(e,r)=>this.castOption(r,e,t,i)).join(i?"; ":";"):D.str(t)+s+be.casted(e,!1)}static parseOptions(t){if(D.isEmpty(t))return{};let e=t.matchAll(Vt.entry);if(null==e)return{};const[r,i]=[be.keyed,be.parsed];return g.reduce(Array.from(e),(t,{groups:e})=>b.set(t,r(e.key),i(e.val)),{})}}const _t=[["à","a"],["á","a"],["â","a"],["è","e"],["é","e"],["ê","e"],["ì","i"],["í","i"],["ï","i"],["î","i"],["ò","o"],["ó","o"],["ô","o"],["ù","u"],["ú","u"],["û","u"],["ñ","n"],["ç","c"],[".","-"],["·","-"],["/","-"],["_","-"],[",","-"],[":","-"],[";","-"],["ä","ae"],["ö","oe"],["ü","ue"],["ß","ss"]];class Kt{static slugify(t){return t=String(t).replace(/(^\s+|\s+$)/g,"").toLowerCase(),g.each(_t,e=>{t=t.replaceAll(e[0],e[1])}),t.replace(/[^a-z0-9-\s]+/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}}const Zt=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];class Qt{static filesize(t,e=1){D.isNum(t)||(t=D.num(t,0));let r=r=>p.fixed(t/Math.pow(1e3,r),e);for(let e=0;e<Zt.length;e++)if(t<=Math.pow(1e3,e+1))return r(e)+" "+Zt[e];return r(Zt.length)}}const te=[function(t){return b.each(D.class(Xt),(e,r)=>{t[r]=e}),t},function(t){return b.each(D.class(Ut),(e,r)=>{t[r]=e}),t},function(t){return b.each(D.class(Jt),(e,r)=>{t[r]=e}),t},function(t){return b.each(D.class(Kt),(e,r)=>{t[r]=e}),t},function(t){return b.each(D.class(Qt),(e,r)=>{t[r]=e}),t}];class ee{static extend(t){t.call({},this)}}const re=function(){let t=ee;for(const e of te)t=e.call(t,t);return t};function ie(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:{}}function se(){const t=ie();if(!t.navigator)return;let[e,r]=[t.navigator.userAgent,{}];null==r.safari&&(r.safari=/Safari\//.test(e)),null==r.firefox&&(r.firefox=/Firefox\//.test(e)),null==r.edge&&(r.edge=/Edge\//.test(e)),null==r.chrome&&(r.chrome=/Chrome\//.test(e)),t.piuag=r}function ne(){const t=ie();if(!t.navigator)return;let[e,r]=[t.navigator.userAgent,{}];null==r.win&&(r.win=/Windows/.test(e)),null==r.osx&&(r.osx=/Macintosh|Mac OS X/.test(e)),null==r.gnu&&(r.gnu=/Linux/.test(e)),null==r.ios&&(r.ios=/iPhone|iPad|iPod/.test(e)),null==r.oid&&(r.oid=/Android/.test(e)),t.piudv=r}class oe{static has(t){return b.has(this.$data,g.first(t))}static set(t,e){let[r,i]=[null,g.first(t)];b.has(this.$data,i)&&(r=b.get(this.$data,i)),D.isEqual(r,e)||(b.set(this.$data,i,e),we.fire("store:"+i,e,i))}static unset(t){b.unset(this.$data,[...g.first(t)])}static get(t,e=null,r=!1){let i=g.first(t);if(!b.has(this.$data,i)&&!r)return e;b.has(this.$data,i)&&r&&b.set(this.$data,i,e);let s=b.get(this.$data,i,e);return D.isObj(s)?b.clone(s):s}static find(t,e,r=null){let i=g.first(t);if(!1===b.has(this.$data,i))return r;if(!1===b.has(e,"id"))return r;let s=g.findIndex(this.get(i),{id:e.id});return-1===s?r:this.get(i+"."+s)}static replace(t,e){let r=g.first(t);if(!1===b.has(this.$data,r))return;if(!1===b.has(e,"id"))return;let i=g.findIndex(this.get(r),{id:p.int(e.id)});-1!==i&&this.set(r+"."+i,e)}static add(t,...e){this.set(t,g.concat(this.get(t,[]),e))}static remove(t,...e){this.set(t,g.diff(this.get(t,[]),e))}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(oe,"$data",{});const le=oe;class ae{static set(t,e){this.$routes[t]=e}static get(t,e=null,r=null){let i=t;return/^https?:\/\//.test(i)||(i=this.$routes[t]||t),b.each(e,(t,e)=>{i=i.replace(new RegExp("{"+e+"}","g"),t)}),D.isEmpty(r)||(i+="?"+be.castParams(r)),i}static goto(t,e=null,r=null){window.location.href=this.get(t,e,r)}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(ae,"$routes",{});const ue=ae;function ce(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class he{constructor(t,e={}){if(ce(this,"map",null),ce(this,"markers",{}),ce(this,"cluster",null),ce(this,"clusterFilter",null),ce(this,"clusterOptions",{}),!globalThis.google)throw new Error("Google Maps is required for pi.Map");let r=b.only(e,["lat","lng"]);b.has(e,"styles")||(e.styles=Map.mapStyle),e=b.assign({gestureHandling:"cooperative",scrollwheel:null,zoom:12,center:r},b.except(e,["lat","lng"])),this.map=new globalThis.google.maps.Map(ge.find(t).get(0),e)}static setMapStyle(t=[]){return Map.mapStyle=t,this}static setMarkerStyle(t,e={},r={}){if(!globalThis.google)throw new Error("Google Maps is required for pi.Map");if(!b.has(e,"default"))return console.error("Marker style requires default property");b.has(e,"width")||(e.width=45),b.has(e,"height")||(e.height=45);let i={},s=new globalThis.google.maps.Size(e.width,e.height),n=new globalThis.google.maps.Point(0,0),o=new globalThis.google.maps.Point(e.width/2,e.height);return i.default={url:e.default,size:s,origin:n,anchor:o,scaledSize:s},b.has(e,"hover")&&(i.hover=b.assign({},i.default,{url:e.hover})),b.has(i,"hover")||(i.hover=i.default),b.has(e,"active")&&(i.active=b.assign({},i.default,{url:e.active})),b.has(i,"active")||(i.active=i.default),b.each(r,(t,e)=>{i[e]=b.assign({},i.default,{url:t})}),b.set(Map.markerStyles,t,i),this}clusterMarkers(t={},e=null,r=!0){if(!this.cluster&&!r)return;if(void 0===globalThis.MarkerClusterer)return console.error("Google Maps Cluster library not laoded!");b.has(t,"imagePath")||b.has(t,"styles")||(t.imagePath="//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"),this.cluster&&this.cluster.clearMarkers(),D.isFunction(e)&&(this.clusterFilter=e);let i=g.filter(this.markers,t=>{let e=this.getMarkerVisibility(t.key);return D.isFunction(this.clusterFilter)?e&&this.clusterFilter.call(this,t):e});this.cluster=new globalThis.MarkerClusterer(this.map,g.each(i,t=>t.marker),this.clusterOptions=t)}styleMarker(t,e=null){let r=b.get(this.markers,t);if(D.isEmpty(r))return console.error(`Marker "${t}" not found`);D.isEmpty(e)&&(e=this.getInfoVisibility(t)?"active":"default"),b.has(Map.markerStyles,[r.style,e])&&r.marker.setIcon(b.get(Map.markerStyles,[r.style,e]))}getMarker(t){return b.get(this.markers,t)}getMarkerVisibility(t,e=!1){let r=b.get(this.markers,t);return D.isEmpty(r)?e:r.marker.getVisible()}getMarkerPositon(t,e=null){let r=b.get(this.markers,t);return D.isEmpty(r)?e:r.marker.getPosition()}toggleMarker(t){let e=b.get(this.markers,t);return D.isEmpty(e)?console.error(`Marker "${t}" not found`):e.marker.getVisible()?this.hideMarker(t):this.showMarker(t)}showMarker(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`Marker "${t}" not found`);let r=!e.marker.getVisible();return r&&e.marker.setVisible(!0),r}hideMarker(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`Marker "${t}" not found`);let r=!!e.marker.getVisible();return r&&e.marker.setVisible(!1),this.closeInfo(t),r}enterMarker(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`Marker "${t}" not found`);let r="hover";return this.getInfoVisibility(t)&&(r="active"),this.styleMarker(t,r),this}leaveMarker(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`Marker "${t}" not found`);let r="default";return this.getInfoVisibility(t)&&(r="active"),this.styleMarker(t,r),this}getInfoVisibility(t,e=!1){let r=b.get(this.markers,t);return D.isEmpty(r)||!b.has(r,"info")?e:!!r.info.getMap()}toggleInfo(t){let e=b.get(this.markers,t);return D.isEmpty(e)?console.error(`Marker "${t}" not found`):e.info.getMap()?this.closeInfo(t):this.openInfo(t)}openInfo(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!b.has(e,"info"))return!0;let r=!e.info.getMap();return Map.closeInfoWindows&&b.each(D.keys(this.markers),this.closeInfo.bind(this)),r&&e.info.open(this.map,e.marker),D.isFunction(e.onOpen)&&e.onOpen(e),this.styleMarker(t,"active"),r}closeInfo(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!b.has(e,"info"))return!1;let r=!!e.info.getMap();return r&&e.info.close(),D.isFunction(e.onClose)&&e.onClose(e),this.styleMarker(t,"default"),r}createMarker(t=null,e={}){D.isEmpty(t)&&(t=Y.uuid());let r={key:t};return b.has(e,"visible")||(e.visible=!0),r.extras=b.except(e,["map","position","lat","lng","html","style","visible","onOpen","onClose"]),b.has(e,"map")||(e.map=this.map),b.has(e,"position")||(e.position=b.only(e,["lat","lng"])),b.has(e,"style")&&(r.style=e.style),r.marker=new globalThis.google.maps.Marker(e),e.visible||r.marker.setVisible(!1),b.assign(r,{onOpen:b.get(e,"onOpen"),onClose:b.get(e,"onClose")}),b.set(this.markers,t,r),this.clusterMarkers(this.clusterOptions,null,!1),b.has(e,"html")?(b.has(r,"style")||(r.style="default"),this.styleMarker(t),r.marker.addListener("mouseover",()=>this.enterMarker(t)),r.marker.addListener("mouseout",()=>this.leaveMarker(t)),r.info=new globalThis.google.maps.InfoWindow({content:'<div class="gw-i-html">'+b.get(e,"html")+"</div>"}),r.marker.addListener("click",()=>this.toggleInfo(t)),r.info.addListener("closeclick",()=>this.closeInfo(t)),r.info.addListener("domready",()=>we.fire("MapsDomReady")),b.set(this.markers,t,r),b.get(this.markers,t)):b.get(this.markers,t)}setMarkerPosition(t,e={}){let r=b.get(this.markers,t);if(D.isEmpty(r))return console.error(`Marker "${t}" not found`);r.marker.setPosition(e)}setMarkerByAddress(t,e){return this.getLocationByAddress(e,e=>{this.setMarkerPosition(t,b.get(e,"0.geometry.location",{}))})}getLocationByAddress(t,e=null){let r=new globalThis.google.maps.Geocoder;return new Promise((i,s)=>{r.geocode({address:t},(t,r)=>{"OK"===r&&(e(t),i(t)),"OK"!==r&&s(t)})})}showMarkers(t=null){let e=this.markers;return D.isEmpty(t)||(e=b.filter(this.markers,t)),Map.hideMarkers&&b.each(D.keys(this.markers),this.hideMarker.bind(this)),b.each(e,t=>this.showMarker(t.key)),this.clusterMarkers(this.clusterOptions,null,!1),this}getMarkerBoundry(t=null){let e=this.markers;D.isEmpty(t)||(e=b.filter(this.markers,t));let r=new globalThis.google.maps.LatLngBounds;return b.each(e,t=>{t.marker.getVisible()&&r.extend(t.marker.getPosition())}),r}focusMarkers(t=null,e=14,r=15){let i=this.getMarkerBoundry(t);return this.map.setCenter(i.getCenter()),this.map.fitBounds(i,r),this.map.getZoom()>e&&this.map.setZoom(e),this}renderDirections(t){let e=new globalThis.google.maps.DirectionsService,r=new globalThis.google.maps.DirectionsRenderer;b.has(t,"map")||(t.map=this.map),b.has(t,"travelMode")||(t.travelMode="DRIVING"),r.setMap(t.map),b.has(t,"panel")&&!ge.find(t.panel).empty()&&r.setPanel(ge.find(t.panel).get(0)),t=b.only(t,["origin","destination","travelMode"]);return new Promise((i,s)=>{e.route(t,(t,e)=>{"OK"===e&&(r.setDirections(t),i(t)),"OK"!==e&&s(t)})})}}ce(he,"mapStyle",[]),ce(he,"markerStyles",{}),ce(he,"hideMarkers",!0),ce(he,"closeInfoWindows",!0);const de=he;function fe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class pe{static listen(){document.addEventListener("scroll",pe.scroll),pe.scroll()}static scroll(){g.each(this.invi,(t,e)=>{ge.find(t.el).inviewY()&&(g.removeIndex(this.invi,e),t.cb())})}static alias(t,e){return b.set(this.inis,t,e),this}static bind(t,e,r={}){let i=ge.find(e),s=this.getPrefix(t);i.addClass(s);let n=b.get(this.inis,t,null);if(D.isEmpty(n))return console.error(`Element "${t}" is not defined.`);let o=(t,e)=>{let r=new n(t.get(0),e);return pe.runs.push({el:t.get(0),prefix:s,deamon:r}),t.data(s,r),void 0!==r.bind?r.bind(t.get(0),e):r};return ge.ready(()=>o.call({},i,r)),this}static unbind(t,e,r={}){let i=ge.find(e),s=this.getPrefix(t),n=b.get(this.inis,t,null);if(D.isEmpty(n))return console.error(`Element "${t}" is not defined.`);return((t,e)=>{let r=t.data(s);if(void 0!==r.unbind)return r.unbind(t.get(0),e)}).call({},i,r),g.remove(pe.runs,{el:i.get(0)}),this}static observe(t,e=!1){let r=this.getPrefix(t),i={childList:!0,subtree:!0,attributes:!0,attributeFilter:[r]},s=()=>{let i=pe.getPrefix(t),s=g.filter(this.runs,{prefix:r});g.each(s,({el:i})=>{let s=u.objectify(ge.find(i).attr(r));if(e&&D.isEmpty(s)&&(s={_plain:ge.find(i).attr(r)}),b.pluck(s,"inview",!1)&&g.remove(this.invi,{el:i}),!document.body.contains(i))return this.unbind(t,i,s)}),ge.find(`[${r}]:not(.${i})`).each(i=>{let s=u.objectify(ge.find(i).attr(r));e&&D.isEmpty(s)&&(s={_plain:ge.find(i).attr(r)});let n=()=>{this.bind(t,i,s)};b.pluck(s,"inview",!1)?this.bindInview(i,n):n()})};return ge.find(document.body).observer(s)(document.body,i),ge.find(document.body).on("dom.change",s),this}static bindInview(t,e){g.add(this.invi,{el:t,cb:e},{el:t})}static unbindInview(t,e){g.remove(this.invi,{el:t,cb:e},{el:t})}static getPrefix(t){return t?this.prefix+"-"+t:this.prefix}static setPrefix(t){this.prefix=t}}fe(pe,"prefix","js"),fe(pe,"mount","mount"),fe(pe,"inis",{}),fe(pe,"runs",[]),fe(pe,"invi",[]);const me=pe,ge=jt(),ye=Bt(),be=re(),ve=new Proxy({},{get:function(t,e){return console.warn(`Any.${e} is deprecated, use Mix.${e}() instead.`),(...t)=>D[e](...t)}}),we=new Proxy({},{get:function(t,e){return console.warn(`Event.${e} is deprecated, use Signal.${e}() instead.`),(...t)=>T[e](...t)}}),Oe=function(){return console.warn("UUID() is deprecated, use Hash.make() instead."),Y.make()};return e})());
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.pi=e():t.pi=e()}(self,()=>(()=>{"use strict";var t={d:(e,r)=>{for(var i in r)t.o(r,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};function r(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.r(e),t.d(e,{Any:()=>ve,Arr:()=>g,Cookie:()=>B,Data:()=>le,Dom:()=>ge,Element:()=>me,Event:()=>we,For:()=>be,Hash:()=>Y,Locale:()=>H,Map:()=>de,Mix:()=>D,Now:()=>ye,Num:()=>p,Obj:()=>b,Route:()=>ue,Run:()=>n,Signal:()=>T,Str:()=>u,UUID:()=>Oe,browser:()=>ne,device:()=>se,go:()=>ie});class i{static interval(t,e=0){const r=setInterval(()=>{t()},e);return()=>clearInterval(r)}static clear(t){return D.isArr(t)?g.each(t,t=>this.clear(t),this):D.isFunc(t)?(t(),this):(clearTimeout(t),clearInterval(t),this)}static tryin(t){try{t()}catch(t){}return this}static wait(t,e=0,r=500){let i,n;return n=setTimeout(()=>{this.clear([i,n])},e*r),i=setInterval(()=>{t()&&this.clear([n,i])},e),()=>clearInterval(i)}static frame(t,e={}){const r=requestAnimationFrame(()=>{t()});return()=>cancelAnimationFrame(r)}static async(t){const e=setTimeout(()=>{t()});return()=>clearTimeout(e)}static delay(t,e=0){let r=setTimeout(()=>{t()},e);return()=>clearTimeout(r)}static debounce(t,e=100){let r=null;return(...i)=>{r&&clearTimeout(r),r=setTimeout(()=>{this.frame(t,...i)},e)}}static throttle(t,e=100){let r,i=null;return(...n)=>{i&&clearTimeout(i),i=setTimeout(()=>{r=!1},e),r||(this.frame(t,...n),r=!0)}}static framerate(t,e=30,r=!0){let i,n=0,s=1e3/e;const o=(...e)=>{if(clearTimeout(i),Date.now()-n<=s)return r&&(i=setTimeout(o,s+1));this.frame(()=>t(...e)),n=Date.now()};return o}static framebuffer(t,e,r=1e3){const i={key:e,cb:t,priority:r,args:[],active:!1};return g.add(this.$buffer,i),(t,...e)=>{/^drag/.test(t.type)&&t.preventDefault(),b.assign(i,{args:[t,...e],active:!0}),this.runFramebuffer()}}static runFramebuffer(){if(this.$idler&&clearTimeout(this.$idler),this.$idler=setTimeout(()=>{this.runFramebuffer()},50),Date.now()-this.$timer<50)return;this.$idler&&clearTimeout(this.$idler),this.$timer=Date.now();let t=g.filter(this.$buffer,{active:!0});0!==t.length&&(t=g.sort(t,"priority"),g.each(t.reverse(),t=>{t.cb(...t.args),t.active=!1}))}}r(i,"$idler",null),r(i,"$timer",0),r(i,"$buffer",[]);const n=i;var s;function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class a{static get(t,e){return D.isStr(t)||(t=D.str(t)),D.isInt(e)&&(e=D.int(e)),t.charAt(e)}static set(t,e,r=""){return D.isStr(t)||(t=D.str(t)),D.isInt(e)&&(e=D.int(e)),t.substring(0,e)+r+t.substring(e+r.length)}static replace(t,e,r=null){D.isNull(r)&&(r=t);let i=r.indexOf(e);return-1===i?t:this.set(t,i,e)}static extract(t,e,r=null){D.isNull(r)&&(r=t);let i=this.range(r,e);return null===i?null:this.slice(t,...i)}static match(t,e,r=null){let i=D.str(t).match(e);return D.isEmpty(i)?[]:D.isFunc(r)?r(i):i}static regex(t){return D.str(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static uc(t){return D.str(t).toUpperCase()}static ucfirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lc(t){return D.str(t).toLowerCase()}static lcfirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static cc(t){return g.each(be.slugify(t).split("-"),(t,e)=>e?this.ucfirst(t):t).join("")}static kc(t){return be.slugify(t)}static sc(t){return be.slugify(t).replace("-","_")}static pc(t){return g.each(be.slugify(t).split("-"),t=>this.ucfirst(t)).join("")}static has(t,e){return-1!==this.lc(t).indexOf(this.lc(e))}static range(t,e,r=null){let i=D.str(t).indexOf(e);return-1===i?r:[i,i+e.length]}static slice(t,e,r){return D.str(t).slice(e,r)}static string(t,e="-",r=!1){return D.isEmpty(t)?e:(t=D.str(t),r?t:t.replace(/<[^>]*>?/gm,""))}static boolean(t,e="Yes",r="No",i="-"){return D.isEmpty(t)?i:D.bool(t)?e:r}static number(t,e=null,r=null,i={}){return D.isNum(t)?(null==r&&(r=H.code()),i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({maximumFractionDigits:12},i),null!=e&&(i.minimumFractionDigits=e,i.maximumFractionDigits=e),D.num(t).toLocaleString(r,i)):t}static integer(t,e=0,r="0"){return D.isNum(t)?(D.isInt(t)||(t=D.int(t)),t=D.int(t),e?D.str(t).padStart(e,r):D.str(t)):t}static datetime(t,e="YYYY-MM-DD HH:mm:ss",r="-"){return D.isDate(t)||(t=ye.make(t)),t.valid()?t.format(e):r}static date(t,e="YYYY-MM-DD",r="-"){return this.datetime(t,e,r)}static time(t,e="HH:mm:ss",r="-"){return this.datetime(t,e,r)}static objectify(t,e="options",r=!1){return D.isRef(t)?t:("params"===e&&(t=be.parseParams(t)),"options"===e&&(t=be.parseOptions(t)),D.isRef(t)||(t=JSON.parse(t)),r?D.vals(t):t)}static stringify(t,e="options"){return D.isStr(t)?t:"params"===e?be.castParams(t):"options"===e?be.castOptions(t):JSON.stringify(t)}}l(a,"upper",(s=a).uc),l(a,"lower",s.lc),l(a,"camelcase",s.cc),l(a,"kebabcase",s.kc),l(a,"snakecase",s.sc),l(a,"pascalcase",s.pc),a.regexEscape=(...t)=>(console.warn("Str.regexEscape() is deprecated, use Str.regex() instead."),u.regex(...t)),a.humancase=(...t)=>(console.warn("Str.humancase() is deprecated, use Str.pascalcase() instead."),u.pascalcase(...t)),a.slugify=(...t)=>(console.warn("Str.slugify() is deprecated, use For.slugify() instead."),be.slugify(...t)),a.options=(...t)=>(console.warn("Str.options() is deprecated, use For.castOptions() instead."),be.castOptions(...t)),a.fromOptions=(...t)=>(console.warn("Str.fromOptions() is deprecated, use For.parseOptions() instead."),be.parseOptions(...t)),a.params=(...t)=>(console.warn("Str.params() is deprecated, use For.castParams() instead."),be.castParams(...t)),a.fromParams=(...t)=>(console.warn("Str.fromParams() is deprecated, use For.parseParams() instead."),be.parseParams(...t)),a.filesize=(...t)=>(console.warn("Str.filesize() is deprecated, use For.filesize() instead."),be.filesize(...t)),a.real=()=>{console.error("Str.real() is not implemented anymore.")},a.array=()=>{console.error("Str.array() is not implemented anymore.")};const u=a;function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class f{static fixed(t,e=2){return D.isNum(t)||(t=D.num(t)),t.toFixed(e)}static float(t){return D.isNum(t)||(t=D.num(t)),parseFloat(t)}static int(t){return D.isNum(t)||(t=D.num(t)),parseInt(t)}static ceil(t){return D.isNum(t)||(t=D.num(t)),Math.ceil(t)}static floor(t){return D.isNum(t)||(t=D.num(t)),Math.floor(t)}static round(t){return D.isNum(t)||(t=D.num(t)),Math.round(t)}static combine(t){return g.reduce(t,(t,e)=>t+e,0)}static subtract(t){return g.reduce(t,(t,e)=>t-e,0)}static decade(t){return D.isNum(t)||(t=D.num(t)),10*Math.floor(t/10)}static matrix(t,e=10,r=[]){let i=0;for(let e=20;e>=0;e--)t>=(i=Math.pow(2,e))&&(r.push(i),t-=i);return r}static distance(t,e,r=!1){let i={lat:0,lng:0};[t,e]=[h(h({},i),t),h(h({},i),e)];let n=Math.PI*this.float(t.lat)/180,s=Math.PI*this.float(e.lat)/180,o=(this.float(t.lng)-this.float(e.lng))/180,l=this.combine([Math.sin(n)*Math.sin(s),Math.cos(n)*Math.cos(s)*Math.cos(o)]);return l=180*Math.acos(l>1?1:l)/Math.PI*60*1.1515,r?1.609344*l:l}}f.format=(t,...e)=>(console.warn("Num.format() is deprecated, use Str.number() instead."),u.number(t,e[2]||null)),f.random=(...t)=>(console.warn("Num.random() is deprecated, use Hash.number() instead."),Y.number(...t));const p=f;class m{static all(t){return D.isArr(t)?t:[t]}static get(t,e,r=null){return D.isArr(t)?t&&t[e]?t[e]:r:t}static set(t,e,r){return this.splice(t,e,1,r)}static unset(t,e){return this.splice(t,e,1)}static prev(t,e,r=0){return D.isEmpty(t)||!D.isArr(t)?0:e-1<0?t.length-1:e-1}static next(t,e,r=0){return D.isEmpty(t)||!D.isArr(t)||e+1>t.length?0:e+1}static make(t,e=null){let r=new Array(t);null==e&&(e=t=>t);for(let i=0;i<t;i++)r[i]="function"==typeof e?e(i):e;return r}static has(t,e){if(!D.isPrim(e))return-1!==this.findIndex(t,e);return D.isRef(t)||(t=[t]),D.isArr(t)||(t=D.vals(t)),-1!==t.findIndex(t=>t==e)}static unique(t){let e={};for(const r of t)e[r]=!0;return D.keys(e)}static lengths(t,...e){let r=t.length;for(let t=0;t<e.length;t++)if(e[t].length!==r)return!1;return!0}static first(t,e=null){return this.get(t,0,e)}static second(t,e=null){return this.get(t,2,e)}static third(t,e=null){return this.get(t,2,e)}static last(t,e=null){return this.get(t,t.length-1,e)}static each(t,e,r=null){if(D.isObj(t))return this.eachObj(t,e,r);null==t&&(t=[]);let i=new Array(t.length);for(let r=0;r<t.length;r++)i[r]=e(t[r],r);return null!=r?r:i}static eachObj(t,e,r=null){if(D.isArr(t))return this.each(t,e,r);null==t&&(t={});let i=D.keys(t).map(r=>e(t[r],r));return null!=r?r:i}static map(t,e){let[r,i]=[D.isArr(t),D.keys(t)],n=t=>r?parseInt(t):t;for(let r of i)t[r]=e(t[r],n(r));return t}static recursive(t,e,r,i=[]){let n=t=>i=>this.recursive(i,e,r,t);return D.isArr(t)?this.map(t,n(i)):(D.isObj(t)&&(t=r(t,i)??t),i=[...this.clone(i),t],null==t||(D.isObj(t[e])&&(t[e]=n(i)(t[e])),D.isArr(t[e])&&(t[e]=this.map(t[e],n(i)))),t)}static cascade(t,e,r,i=[],n={}){if(null==t)return n;if(D.isObj(t))return this.cascade(t[r],r,cb);const s=t=>this.cascade(t[e],e,r,n[t[r]],n);return this.each(t,t=>{n[t[r]]=[...i,t[r]],s(t)}),n}static filterIndex(t,e=null){return null==t?[]:(null==e&&(e=t=>!D.isEmpty(t)),D.keys(t).filter(r=>D.isFunc(e)?e.call({},t[r],r):D.isRef(e)?this.includes(t[r],e):e===t[r]))}static filterRemove(t,e=null){if(null==t)return t;let r=this.filterIndex(t,e);return 0===r.length?t:this.splices(t,r)}static filter(t,e=null){return null==t?[]:(null==e&&(e=t=>!D.isEmpty(t)),D.vals(t).filter((r,i)=>D.isFunc(e)?e.call({},r,i):D.isRef(e)?this.includes(r,e):e===t[i]))}static findIndex(t,e=null,r=-1){if(null==t)return r;null==e&&(e=t=>!D.isEmpty(t));for(let r=0;r<t.length;r++){if(D.isFunc(e)&&e.call({},t[r],r))return r;if(D.isRef(e)&&this.includes(t[r],e))return r;if(e===t[r])return r}return r}static find(t,e=null,r=null){let i=this.findIndex(t,e);return-1===i?r:t[i]}static sort(t,e=null){return D.isFunc(e)?this.sortFunc(t,e):null!=e?this.sortDeep(t,e):this.sortPrim(t)}static sortFunc(t,e){let r=D.keys(t).sort((r,i)=>e.call({},t[r],t[i])),i=[];for(const e of r)i.push(t[e]);return i}static sortDeep(t,e){let r=t=>b.get(t,e),i=D.keys(t).sort((e,i)=>D.compare(r(t[e]),r(t[i]))),n=[];for(const e of i)n.push(t[e]);return n}static sortPrim(t){let e=D.keys(t).sort((t,e)=>D.compare(t,e)),r=[];for(const i of e)r.push(t[i]);return r}static merge(t,...e){return t.concat(...e)}static prepend(t,...e){return t.unshift(...e),t}static append(t,...e){return t.push(...e),t}static add(t,e,r=null){return null==r&&(r=e),-1!==this.findIndex(t,r)||t.push(e),t}static replace(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1!==i&&this.splice(t,i,1),t.push(e),t}static remove(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1===i||this.splice(t,i,1),t}static toggle(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1===i?(t.push(e),t):(this.splice(t,i,1),t)}static insert(t,e,r){return this.splice(t,e,0,r),t}static slice(t,e,r=1){return t.slice(parseInt(e),r)}static splice(t,e,r=1,...i){return t.splice(parseInt(e),r,...i)}static splices(t,e,r=1){return this.each(e,e=>{this.splice(t,e,r)}),t}static clone(t){if(D.isPrim(t))return t;if(D.isObj(t))return b.clone(t);if(!D.isArr(t))return t;let e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=this.clone(t[r]);return e}static diff(...t){return t.reduce((t,e)=>t.filter(t=>!e.includes(t)))}static isect(...t){return t.reduce((t,e)=>t.filter(t=>e.includes(t)))}static extract(t,e){let r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=b.get(t[i],e);return r}static reduce(t,e,r){return D.vals(t).reduce(e,r)}static chunk(t,e=10){let r=[];for(let i=0;i<t.length;i+=e)r.push(t.slice(i,i+e));return r}static includes(t,e){if(D.isObj(e))return b.includes(t,e);if(!D.isArr(e))return t===e;let[r,i]=[!1,e.length];if(0===i)return!0;for(let n=0;!1===r&&n<i;n++)r||=this.has(t,e[n]);return r}static contains(t,e){let r=!0;for(let i of D.vals(e))r&&=-1!==D.vals(t).indexOf(i);return r}static matches(t,e){if(D.isObj(e))return b.matches(t,e);if(!D.isArr(t))return t===e;e=this.unique(e);let[r,i]=[!0,e.length];if(t.length!==e.length)return!1;for(let n=0;!0===r&&n<i;n++)r&&=this.has(t,e[n]);return r}}m.removeIndex=function(...t){return console.warn("Arr.removeIndex() is deprecated, use Arr.unset() instead."),this.unset(...t)},m.sortString=function(...t){return console.warn("Arr.sortString() is deprecated, use Arr.sortPrim() instead."),this.sortPrim(...t)},m.push=function(...t){return console.warn("Arr.push() is deprecated, use Arr.append() instead."),this.append(...t)},m.concat=function(...t){return console.warn("Arr.concat() is deprecated, use Arr.merge() instead."),this.merge(...t)},m.equal=function(...t){return console.warn("Arr.equal() is deprecated, use Arr.matches() instead."),this.matches(...t)},m.diffrence=function(...t){return console.warn("Arr.diffrence() is deprecated, use Arr.diff() instead."),this.diff(...t)},m.intersect=function(...t){return console.warn("Arr.intersect() is deprecated, use Arr.isect() instead."),this.isect(...t)};const g=m;class y{static keyoptim(t,e=!1,r=null){return null===r&&(r=D.isStr(t)),!r&&e&&(t=t.join(".")),r||e?t.split("."):t}static has(t,e,r=!1){if(null==t||null==e)return!1;"number"==typeof e&&(e=D.str(e));const i="string"==typeof e;if(i&&t&&void 0!==t[e])return void 0!==t[e];e=this.keyoptim(e,r,i);let[n,s,o]=[e.pop(),0,e.length];if(0===o)return void 0!==t[n];for(;null!=t&&s<o;)t=t[e[s++]];return null!=t&&void 0!==t[n]}static get(t,e,r=null,i=!1){if(null==t||null==e)return r;"number"==typeof e&&(e=D.str(e));const n="string"==typeof e;if(n&&t&&void 0!==t[e])return t[e];let s=0,o=(e=this.keyoptim(e,i,n)).length;if(0===o)return r;for(;null!=t&&s<o;)t=t[e[s++]];return null==t?r:t}static set(t,e,r,i=!1){if(null==e)return t;"number"==typeof e&&(e=D.str(e));const n="string"==typeof e;if(n&&t&&void 0!==t[e])return t[e]=r,t;if(0===(e=this.keyoptim(e,i,n)).length)return t;let s=t;for(let t,i,n=0;n<e.length;n++)t=i=String(e[n]),-1!==i.indexOf("[]")&&(t=i.replace("[]","")),null==s[t]&&(s[t]=t===i?{}:[]),t!==i&&g.insert(e,n+1,s[t].length),e.length-1===n&&(s[t]=r),s=s[t];return t}static unset(t,e,r=!1){if(null==e)return t;"number"==typeof e&&(e=D.str(e));const i="string"==typeof e;if(i&&t&&void 0!==t[e])return delete t[e],t;e=this.keyoptim(e,r,i);let[n,s,o,l]=[e.pop(),0,e.length,t];if(0===o)return t;for(;null!=l&&s<o;)l=l[e[s++]];return null==l||delete l[n],t}static empty(t,e){return D.isEmpty(this.get(t,e))}static remove(t,e){if(!D.isArr(e))return t;for(let r of e)this.unset(t,r);return t}static each(t,e,r=null){let i={};for(let r of D.keys(t))i[r]=e(t[r],r);return null!=r?r:i}static map(t,e){for(let r of D.keys(t))t[r]=e(t[r],r);return t}static filterIndex(t,e=null){return g.filterIndex(t,e)}static filter(t,e=null){let r={};for(let i of this.filterIndex(t,e))r[i]=t[i];return r}static flatten(t,e="",r={}){if("object"!=typeof t)return r[e]=t;""!==e&&(e+=".");for(let i of D.keys(t))this.flatten(t[i],e+i,r);return r}static flattenForm(t,e="",r={}){if("object"!=typeof t)return r[e]=t;let i=t=>e?`${e}[${t}]`:t;for(let e of D.keys(t))this.flattenForm(t[e],i(e),r);return r}static unpack(t,e={}){return g.each(D.keys(t),r=>{this.set(e,r,t[r])}),e}static assign(...t){return Object.assign(...t)}static clone(t,e=null){if(D.isPrim(t))return t;if(D.isArr(t))return g.clone(t);if(!D.isObj(t))return t;let r={};for(let e of D.keys(t))r[e]=this.clone(t[e]);return null!=e?this.assign(r,e):r}static pluck(t,e,r=null){let i=this.get(t,e,r);return this.unset(t,e),i}static only(t,e,r=null){let i={};return this.each(t,(t,r)=>{g.has(e,r)&&(i[r]=t)}),null==r?i:this.assign(i,r)}static except(t,e,r=null){let i={};return this.each(t,(t,r)=>{g.has(e,r)||(i[r]=t)}),null==r?i:this.assign(i,r)}static includes(t,e){if(D.isArr(e))return g.includes(t,e);if(!D.isObj(e))return t===e;let r=D.keys(e),[i,n]=[!0,r.length];for(let s=0;!0===i&&s<n;s++)i=this.includes(t[r[s]],e[r[s]]);return i}static matches(t,e){if(D.isArr(e))return g.matches(t,e);if(!D.isObj(t))return t===e;let r=g.unique([...D.keys(e),...D.keys(t)]),[i,n]=[!0,r.length];for(let s=0;!0===i&&s<n;s++)i&&=this.matches(t[r[s]],e[r[s]]);return i}static sort(t,e){let r=D.keys(t);D.isFunction(e)&&(r=r.sort((r,i)=>e.call({},t[r],t[i]))),D.isFunction(e)||(r=r.sort((r,i)=>D.integer(this.get(t[r],e))-D.integer(this.get(t[i],e))));let i=[];return g.each(r,(e,r)=>{t[e]._key=e,i[r]=t[e]}),i}static sortString(t,e){let r=D.keys(t);D.isFunction(e)||(r=r.sort((r,i)=>{let n=D.string(this.get(t[r],e)).toLowerCase(),s=D.string(this.get(t[i],e)).toLowerCase();return n<s?-1:n>s?1:0}));let i=[];return g.each(r,(e,r)=>{t[e]._key=e,i[r]=t[e]}),i}}y.values=(...t)=>(console.warn("Obj.values() is deprecated, use Mix.vals() instead."),D.vals(...t)),y.find=(...t)=>(console.warn("Obj.find() is deprecated, use Arr.find() instead."),g.find(...t)),y.findIndex=(...t)=>(console.warn("Obj.findIndex() is deprecated, use Arr.findIndex() instead."),g.findIndex(...t));const b=y;var v;function w(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const O={iso:/^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/};class M{static isEmpty(t){return null==t||("string"==typeof t?""===t:"number"!=typeof t&&("boolean"!=typeof t&&(this.isArr(t)?0===t.length:0===this.len(t))))}static isNull(t){return null===t}static isUndef(t){return void 0===t}static isNix(t){return null==t}static isPrim(t){return"string"==typeof t||"number"==typeof t}static isStr(t){return"string"==typeof t}static isNum(t){return"number"==typeof t||!!this.isStr(t)&&/^-?[0-9]+(\.[0-9]+)?$/.test(t)}static isInt(t){return!!this.isNum(t)&&(this.isStr(t)?/^-?[0-9]+$/.test(t):parseInt(t)===parseFloat(t))}static isBool(t){return"boolean"==typeof t||!!this.isStr(t)&&/^(true|false)$/.test(t)}static isFunc(t){return"function"==typeof t}static isRef(t){return null!=t&&"object"==typeof t}static isObj(t){return null!=t&&("object"==typeof t&&t.constructor===Object)}static isArr(t){return null!=t&&("object"==typeof t&&t.constructor===Array)}static isIter(t){return!this.isArr(t)&&(!!this.isRef(t)&&this.isFunc(t.entries))}static isIsoDate(t){return t instanceof Date||O.iso.test(t)}static isDate(t){return t instanceof Date||/^\d{4}-\d{2}-\d{2}$/.test(t)}static isTime(t){return t instanceof Date||/^\d{2}:\d{2}:\d{2}$/.test(t)}static isEqual(t,e){return t instanceof Node?t.isEqualNode(e):this.isRef(t)?Object.is(t,e):t===e}static iter(t){if(null==t)return{};let e={};for(const[r,i]of t.entries())e[r]=i;return e}static keys(t){return null==t?[]:(this.isFunc(t.toJSON)&&(t=t.toJSON()),this.isIter(t)&&(t=this.iter(t)),Object.keys(t))}static vals(t){if(null==t)return[];if(this.isFunc(t.toJSON)&&(t=t.toJSON()),this.isIter(t)&&(t=this.iter(t)),this.isArr(t)||!ie().chrome)return Object.values(t);let e=this.keys(t);for(let r=0;r<e.length;r++)e[r]=t[e[r]];return e}static nodes(t){return Array.prototype.slice.call(t)}static props(t,e=[]){let r={};for(const i of Object.getOwnPropertyNames(t))e.length&&!g.has(e,i)&&(r[i]=t[i]);return r}static extend(t,e,r=["constructor"]){if(null==e)return{};let i=Object.getPrototypeOf(e);for(const n of Object.getOwnPropertyNames(e)){if(!r.length||g.has(r,n))continue;let s=Object.getOwnPropertyDescriptor(i,n);s||(s=Object.getOwnPropertyDescriptor(e,n)),s||s.get||s.set||(t[n]=e[n]),s&&(s.get||s.set)&&Object.defineProperty(t,n,s)}return t}static class(t,e=[]){return e=g.merge(e,["length","name","prototype","constructor"]),this.props(t,e)}static proto(t,e=[]){return e=g.merge(e,["constructor"]),this.props(t.prototype,e)}static form(t){let e=new FormData;return b.each(b.flattenForm(t),(t,r)=>{e.append(r,t)}),e}static each(t,e){if(!this.isRef(t))throw new Error("Iterate non object");for(let r of D.keys(t))e(t[r],r);return this}static len(t){return this.isArr(t)?t.length:this.isRef(t)?this.keys(t).length:this.string(t).length}static compare(t,e){return H.collator().compare(t,e)}static null(t,e=null){return"null"===t||this.isEmpty(t)?null:e}static arr(t){return this.isArr(t)?t:this.isStr(t)?(t=t.replace(/^@?\[?(.*?)]$/g,"$1"),g.each(t.split(","),t=>t.replace(/(^"|^'|'$|"$)/g,""))):[t]}static str(t){return this.isNix(t)||void 0===t.toString?String(t):t.toString()}static num(t,e=NaN){return this.isPrim(t)?(this.isStr(t)&&(t=parseFloat(t)),t):e}static int(t,e=NaN){return this.isPrim(t)?(this.isStr(t)&&(t=parseFloat(t)),Math.round(t)):e}static bool(t){return this.isRef(t)?!!this.vals(t).length:this.isNum(t)?0!==this.num(t):/^(true|yes)$/i.test(t)}}w(M,"isPrimitive",(v=M).isPrim),w(M,"isString",v.isStr),w(M,"isNumber",v.isNum),w(M,"isInteger",v.isInt),w(M,"isBoolean",v.isBool),w(M,"isFunction",v.isFunc),w(M,"isReference",v.isRef),w(M,"isObject",v.isObj),w(M,"isArray",v.isArr),w(M,"isIterable",v.isIter),w(M,"length",v.len),w(M,"array",v.arr),w(M,"string",v.str),w(M,"number",v.num),w(M,"integer",v.int),w(M,"boolean",v.bool),M.global=function(...t){return console.warn("Mix.global() is deprecated, use go() instead."),ie(...t)},M.isPlain=function(...t){return console.warn("Mix.isPlain() is deprecated, use Mix.isObj() instead."),D.isObj(...t)},M.float=function(...t){return console.warn("Mix.float() is deprecated, use Mix.num() instead."),D.num(...t)},M.delay=function(...t){return console.warn("Mix.delay() is deprecated, use Run.delay() instead."),n.delay(...t)},M.async=function(...t){return console.warn("Mix.async() is deprecated, use Run.async() instead."),n.async(...t)},M.debounce=function(...t){return console.warn("Mix.debounce() is deprecated, use Run.debounce() instead."),n.debounce(...t)},M.throttle=function(...t){return console.warn("Mix.throttle() is deprecated, use Run.throttle() instead."),n.throttle(...t)},M.framerate=function(...t){return console.warn("Mix.framerate() is deprecated, use Run.framerate() instead."),n.framerate(...t)},M.convertString=function(...t){return console.warn("Mix.convertString() is deprecated, use Str.string() instead."),u.string(...t)},M.convertDatetime=function(...t){return console.warn("Mix.convertDatetime() is deprecated, use Str.date() instead."),u.date(...t)},M.convertBool=function(...t){return console.warn("Mix.convertBool() is deprecated, use Str.boolean() instead."),u.boolean(...t)},M.convertBoolean=function(...t){return console.warn("Mix.convertBoolean() is deprecated, use Str.boolean() instead."),u.boolean(...t)};const D=M;const P=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","A","B","C","D","E","F"],j=["8","9","a","b"],k=["@","#","$","%","^","&","*","(",")","_","+","-","=","[","]","{","}",";",":",",",".","/","<",">","?"];class ${static radix(t=60,e=null){return(e||this.RADIX)[this.number(t-1)]}static number(t=1024,e=0){return Math.floor(Math.random()*(t-e+1))+e}static make(t=6,e=62,r={}){let i="";for(let r=0;r<t;r++)i+=this.radix(e);for(const t of Object.keys(r))i=u.set(i,t,r[t]);return i}static uuid(t=4){let e="";for(let t=0;t<31;t++)e+=15===t?this.radix(j.length,j):this.radix(P.length,P);return e.substring(0,8)+"-"+e.substring(8,12)+"-"+t+e.substring(12,15)+"-"+e.substring(15,19)+"-"+e.substring(19,31)}static password(t=24,e=null){let r=[...this.RADIX,...e||k],i="";for(let e=0;e<t;e++)i+=this.radix(r.length,r);return i}}var x,S,N;x=$,N=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],(S=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(S="RADIX"))in x?Object.defineProperty(x,S,{value:N,enumerable:!0,configurable:!0,writable:!0}):x[S]=N;const Y=$;class E{static bind(t,e,r={},i=!1){return D.isArr(t)?g.each(t,t=>this.bind(t,...arguments),this):(D.isPrim(r)&&(r={id:r}),this.$events=g.append(this.$events,{event:t,cb:e,options:r,paused:i}),this)}static unbind(t,e={}){return D.isArr(t)?g.each(t,t=>this.unbind(t,...arguments),this):(D.isPrim(e)&&(e={id:e}),g.remove(this.$events,{event:t,options:e}),this)}static fire(t,...e){let r=this.$events.filter(e=>e.event===t);return g.each(r,t=>{t.paused||t.cb.call({},...e)}),this}static pause(t,e={}){if(D.isArr(t))return g.each(t,t=>this.pause(t,...arguments),this);let r=g.find(this.$events,{event:t,options:e});return null!=r&&(r.paused=!0),this}static unpause(t,e={}){if(D.isArr(t))return g.each(t,t=>this.pause(t,...arguments),this);let r=g.find(this.$events,{event:t,options:e});return null!=r&&(r.paused=!1),this}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(E,"$events",[]);const T=E;function A(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class I{static has(t=void 0){return void 0===t||D.has(I.$text,t)}static get(t=void 0,e=null){return void 0===t?I.$text:b.get(I.$text,t,e)}static set(t=void 0,e=void 0){return void 0===e?I.$text=t:b.set(I.$text,t,e)}static code(t=null){return D.isNull(t)?D.isNull(H.$code)?(H.$code=(navigator.language||"en-US").replace(/-[A-Z]+$/,""),H.$code):H.$code:H.$code=t}static collator(){return D.isNull(H.$sort)?(H.$sort=new Intl.Collator(H.code(),{numeric:!0,sensitivity:"base"}),H.$sort):H.$sort}static replace(t,e=null){return null==e||b.each(e,(e,r)=>{t=t.replace(new RegExp(":"+r,"g"),e)}),t}static trans(t,e=null){return t=b.get(I.$text,t,t),H.replace(t,e)}static choice(t,e=0,r={}){return t=b.get(I.$text,t,t),void 0===r.count&&(r.count=e),t=H.countpick(t.split("|"),e),H.replace(t,r)}static countpick(t,e){let r=t.length;return 3===r&&0===e?t[0]:3===r&&1===e?t[1]:3===r&&e>=2?t[2]:2===r&&1===e?t[0]:2===r&&1!==e?t[1]:t[0]}}A(I,"$text",{}),A(I,"$sort",null),A(I,"$code","en");const H=I;function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach(function(e){L(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function L(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const R={entry:/(?<=^|;)\s*(?<key>.*?)\s*=\s*(?<value>[^;$]+)/g};class W{static global(){return null==globalThis.document?"":globalThis.document.cookie||""}static parse(t=!1){if(!t&&this.$cookie)return this.$cookie;this.$cookie={};let e=this.global().matchAll(R.entry);if(null==e)return this.$cookie;return g.each(Array.from(e),({groups:t})=>{this.$cookie[t.key]=t.value.replaceAll("{:}",";")}),this.$cookie}static get(t,e=null,r="string"){return this.$cookie||this.parse(),null==this.$cookie[t]?e:/^bool(ean)?$/.test(r)||/^num(ber)?$/.test(r)||/^int(eger)?$/.test(r)?D.bool(this.$cookie[t]):/^obj(ext)?$/.test(r)?be.parseOptions(this.$cookie[t]):D.str(this.$cookie[t])}static set(t,e,r=null,i={}){this.$cookie||this.parse(),r instanceof ye||(r=ye.make(r||"+7 days")),i=C({expires:r.toUTC(),path:"/"},i),D.isRef(e)&&(e=be.castOptions(e,!1)),null!=e&&(this.$cookie[t]=e);let n=t+"="+D.str(e).replaceAll(";","{:}");return g.each(i,(t,e)=>{n+=`;${e}=${t}`}),globalThis.document.cookie=n,this}static forget(t,e={}){e=C({expires:"Thu, 01 Jan 1970 00:00:01 GMT",path:"/"},e),this.$cookie[t]&&delete this.$cookie[t];let r=`${t}=null`;return g.each(e,(t,e)=>{r+=`;${e}=${t}`}),globalThis.document.cookie=r,this}}L(W,"$cookie",null);const B=W;class G{static filterNodes(t,e=1){return g.filter(D.nodes(t),t=>t.nodeType===e)}static getNodePoint(t){t.touches;let[e,r]=[null,[t.clientX,t.clientY]];return null!=ge.doc().elementsFromPoint&&(e=document.elementsFromPoint(r[0],r[1])),null!=ge.doc().msElementsFromPoint&&(e=document.msElementsFromPoint(r[0],r[1])),e}static getNodeEvent(t,e={}){let r=e.srcElement;null==r&&(r=e.target);let{type:i}=e;return/^(drag[a-z]*|drop$)/.test(i)&&(r=ge.getNodePoint(e)),D.isArr(r)&&(r=g.first(r)),null==r&&(r=e.target),r.closest(t)}}class q{static _constructFinder(t){return"string"==typeof t&&(t=document.querySelectorAll(t)),t instanceof NodeList&&(t=D.nodes(t)),t}getNodeType(t=-1){return this.el?this.el.nodeType:t}getNodeParent(t=null){return this.el?ge.find(this.el.parentNode):t}getNodePrev(t=null){return this.el?ge.find(this.el.previousSibling):t}getNodeNext(t=null){return this.el?ge.find(this.el.nextSibling):t}getNodeChilds(t=-1,e=[]){if(!this.el)return e;let r=D.nodes(this.el.childNodes);return-1===t?r:g.filter(r,e=>e.nodeType===t)}sanatize(t=1){return this.els=ge.filterNodes(this.els,t),this}filter(t){return"function"!=typeof t&&(t=e=>ge.find(e).is(t)),g.filter(this.els,t)}except(t){return"function"!=typeof t&&(t=e=>!ge.find(e).is(t)),g.filter(this.els,t)}find(t){if(null==this.el)return ge.find(null);let e=this.el;e instanceof Window&&(e=document.body);let r=t;return D.isStr(r)&&(r=e.querySelectorAll(t)),ge.find(r)}get(t=-1){let e=this.els;return-1===t?e:g.get(e,t)}first(t=0){return this.get(t)}last(t=1){return g.get(this.els,this.els.length-t)}each(t){return g.each(this.els,t)}loopParent(t,e=null){null==e&&(e=ge.win());for(let r=this.el;r&&r!==e;r=r.parentNode)t.call({},r);return this}parent(){let t=this.getNodeParent();return null==t?ge.find(null):t}child(t=null,e=1){for(let r of this.childs(t,e))return ge.find(r);return ge.find(null)}childs(t=null,e=1){let r=this.getNodeChilds(e);return null==t?r:g.filter(r,e=>ge.find(e).is(t))}closest(t){if(this.el===t)return this.el;for(let e=this;null!=e.el;e=e.getNodeParent())if(e.is(t))return e.el;return null}upnode(t){return ge.find(this.closest(t))}prev(t=1){let e=this.getNodePrev();for(;null!=e;e=e.getNodePrev())if(e.getNodeType()===t)return ge.find(e);return ge.find(null)}next(t=1){let e=this.getNodeNext();for(;null!=e;e=e.getNodeNext())if(e.getNodeType()===t)return ge.find(e);return ge.find(null)}length(){return this.els.length}is(t,e=!1){if(this.el===t)return!0;if(null==this.el)return e;for(let e of this.parent().find(t).get())if(e===this.el)return!0;return!1}matches(t){if(this.el===t)return!0;if(null==this.el)return!1;for(let e of this.find(t).get())if(e===this.el)return!0;return!1}empty(){return this.length()<1||null==this.el}visible(){return null!=this.el&&this.el.is(":visible")}above(t){return this.parent().is(t)}inside(t){return null!=this.closest(t)}contains(t){return this.el.contains(t)}}q.prototype.isParent=function(...t){return console.warn("Dom.isParent() is deprecated, use Dom.above() instead."),this.above(...t)},q.prototype.previous=function(){return console.warn("Dom.previous() is deprecated, use Dom.prev() instead."),this.prev()},q.prototype.where=function(...t){return console.warn("Dom.where() is deprecated, use Dom.filter() instead."),this.filter(...t)},q.prototype.not=function(...t){return console.warn("Dom.not() is deprecated, use Dom.except() instead."),this.except(...t)},q.prototype.getNot=()=>{console.error("Dom.getNot() is not implemented anymore.")};class X{}class z{value(t=void 0){return void 0===t?this.el.value:(this.each(e=>{e.value=t}),this)}}class U{}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(U,"$events",[]);class V{bind(t,e,r,i=null,n=!1,s={}){return D.isPrim(s)&&(s={id:s}),ge.$events=g.append(ge.$events,{el:t,event:e,cb:r,selector:i,pause:n,options:s}),t.addEventListener(e,r,s),this}unbind(t,e,r=null,i={}){D.isPrim(i)&&(i={id:i});let n=g.filterIndex(ge.$events,{el:t,event:e,selector:r,options:i});if(0===n.length)return;return g.each(n.reverse(),r=>{var i;t.removeEventListener(...(i=ge.$events[r],[e,i.cb,i.options]))}),g.splices(ge.$events,n),this}on(t,e,r={},i=!1,n=null){D.isPrim(r)&&(r={id:r});let s=t=>{e.call(t.target,t,t.target)};return this.each(e=>{this.bind(e,t,s,n,i,r)}),this}off(t,e=null,r={}){return D.isPrim(r)&&(r={id:r}),D.isObj(e)&&(r=e,e=null),this.each(i=>{this.unbind(i,t,e,r)}),this}optoff(t={}){return n.async(()=>{g.filterRemove(ge.$events,{options:t})}),this.each(t=>{t&&t.removeAllListeners()}),this}once(t,e,r={}){return r.id=Y.make(24),this.on(t,i=>{e(i),this.off(t,r)},r),this}live(t,e,r,i={},n=!1){return this.on(t,function(t){let i=ge.getNodeEvent(e,t);null!=i&&r.call({},t,i)},i,n,e),this}fire(t,e={}){let r=new CustomEvent(t,{detail:e});return this.each(t=>{t.dispatchEvent(r)}),this}pointerdown(t=1){const e=this.rect(),[r,i]=[e.left+e.width/2,e.top+e.height/2],n=new PointerEvent("pointerdown",{view:window,bubbles:!0,cancelable:!0,buttons:1,clientX:r,clientY:i});return this.each(t=>{t.dispatchEvent(n)}),this}}V.prototype.one=function(...t){return console.warn("Dom.one() is deprecated, use Dom.once() instead."),this.once(...t)},V.prototype.delayed=function(){console.error("Dom.delayed() is not implemented anymore.")},V.prototype.pause=function(){console.error("Dom.pause() is not implemented anymore.")},V.prototype.unpause=function(){console.error("Dom.unpause() is not implemented anymore.")};class J{static make(t,e={}){t instanceof ge&&(t=t.el),D.isStr(t)&&(t=document.createElement(t)),t=b.assign(t,e);let r=new ge(t);return e.class&&r.class(e.class),e.html&&r.html(e.html),r}}class _{prepend(t){return this.each(e=>{null!=e.prepend&&e.prepend(t)}),this}prependTo(t){return ge.find(t).each(t=>{null!=t.prepend&&t.prepend(this.el)}),this}append(t){return this.each(e=>{null!=e.append&&e.append(t)}),this}appendTo(t){return ge.find(t).each(t=>{null!=t.append&&t.append(this.el)}),this}replace(t){return this.parent().each(el,e=>{e.insertBefore(t,e),e.removeChild(e)}),this}}class K{static getDomState(){return document.readyState}static isDomReady(){return"complete"===ge.getDomState()}static isDomComplete(){let t=ge.getDomState();return"complete"===t||"interactive"===t}static ready(t,e=0,r=6e3){let[i,s,o]=[Y.make(),ge.find(document),"DOMContentLoaded"],l=()=>{n.delay(t,e),s.off(o,null,{id:i})},a=ge.isDomReady;return a()?(n.wait(()=>{if(a())return l(),!0},10,r),this):(s.on(o,l,{id:i}),this)}static complete(t,e=0,r=6e3){let i=()=>{n.delay(t,e)},[s,o]=[ge.find(document),"load"],l=ge.isDomComplete;return l()?(n.wait(()=>{if(l())return i(),!0},10,r),this):(s.on(o,i),this)}}K.required=()=>{console.error("Dom.required() is not implemented anymore.")};class Z{isNodeComplete(){return null!=this.el&&(!!this.el.naturalWidth||(!!this.el.naturalHeight||!!this.el.complete))}loaded(t,e=6e3){if(!this.el)return this;let r=this.isNodeComplete;return n.wait(()=>{if(r.call(this))return t(),!0},10,e),this}}function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach(function(e){et(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function et(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class rt{static num(t){return"string"==typeof t&&(t=t.replace(/(^\s+|\s$|px)/g,"")),D.num(t,0)}}class it{rect(t={left:0,top:0,width:0,height:0}){if(!this.el.getBoundingClientRect)return t;const e=this.el.getBoundingClientRect();return null==e?t:e.toJSON()}margin(t=null,e=0){let r=this.computed(),i={top:ge.num(r.marginTop),right:ge.num(r.marginRight),bottom:ge.num(r.marginBottom),left:ge.num(r.marginLeft)};return null==t?i:b.get(i,t,e)}padding(t=null,e=0){let r=this.computed(),i={top:ge.num(r.paddingTop),right:ge.num(r.paddingRight),bottom:ge.num(r.paddingBottom),left:ge.num(r.paddingLeft)};return null==t?i:b.get(i,t,e)}height(){return null==this.el?0:this.el instanceof Window?this.el.innerHeight:this.el.offsetHeight}clientHeight(){return null==this.el?0:ge.num(this.computed("height",0))}scrollHeight(){return null==this.el?0:this.el.scrollHeight}innerHeight(){if(null==this.el)return 0;if(this.el instanceof Window)return this.el.innerHeight;let t=this.padding();return this.el.offsetHeight-t.top-t.bottom}realHeight(t={}){let e="auto";return this.actual(()=>e=this.height(),t),e}evaluateHeight(t=null,e=!0){null===(t=ge.find(t))&&(t=this.parent());let r="auto";return this.actual(()=>{r=t.innerHeight()},{display:"none"}),!0===e&&this.style({height:r+"px"}),r}width(){return null==this.el?0:this.el instanceof Window?this.el.innerWidth:this.el.offsetWidth}clientWidth(){return null==this.el?0:ge.num(this.computed("width",0))}scrollWidth(){return null==this.el?0:this.el.scrollWidth}innerWidth(){if(null==this.el)return 0;if(this.el instanceof Window)return this.el.innerWidth;let t=this.padding();return this.el.offsetWidth-t.left-t.right}realWidth(t={}){let e="auto";return this.actual(()=>e=this.width(),t),e}evaluateWidth(t=null,e=!0){null===(t=ge.find(t))&&(t=this.parent());let r="auto";return this.actual(()=>{r=t.innerWidth()},{display:"none"}),!0===e&&this.style({width:r+"px"}),r}offset(t=null,e=null){let r=this.getOffset(e);return null==t?r:b.get(r,t,0)}offsetTop(t=null){return this.offset("top",t)}offsetBottom(t=null){return this.offset("bottom",t)}offsetLeft(t=null){return this.offset("left",t)}offsetRight(t=null){return this.offset("right",t)}loopOffset(t,e=null){null==e&&(e=ge.body());for(let r=this.el;r&&r!==e;r=r.offsetParent)t.call({},r);return this}calcOffset(t,e,r){let i={right:ge.body().scrollWidth-t.left-e,bottom:ge.body().scrollHeight-t.top-r};return tt(tt({},t),i)}getOffset(t=null){null==t&&(t=ge.body());let e,r={top:0,left:0,bottom:0,right:0};if(null==this.el)return r;e=t=>{r.top+=ge.num(t.offsetTop,0),r.left+=ge.num(t.offsetLeft,0)},this.loopOffset(e),r=this.calcOffset(r,this.width(),this.height());let i=ge.find(t),n={top:0,left:0,bottom:0,right:0};return e=t=>{n.top+=ge.num(t.offsetTop,0),n.left+=ge.num(t.offsetLeft,0)},i.loopOffset(e),n=this.calcOffset(n,i.scrollWidth(),i.scrollHeight()),{top:r.top-n.top,bottom:r.bottom-n.bottom,left:r.left-n.left,right:r.right-n.right}}scroll(t=null,e=null){let r=this.getScroll(e);return null==t?r:b.get(r,t,0)}scrollTop(t=null,e=null){return null==t?this.scroll("top",e):(this.each(e=>{e.scrollTop=t}),this)}scrollLeft(t=null,e=null){return null==t||this.each(e=>{e.scrollLeft=t}),this.scroll("left",e)}getScroll(t=null){null==t&&(t=ge.win());let e,r={top:0,left:0};if(null==this.el)return r;e=t=>{r.top+=ge.num(t.scrollTop||t.pageYOffset||0),r.left+=ge.num(t.scrollLeft||t.pageXOffset||0)},this.loopParent(e);let i={top:0,left:0};return e=t=>{i.top+=ge.num(t.scrollTop||t.pageYOffset||0),i.left+=ge.num(t.scrollLeft||t.pageXOffset||0)},ge.find(t).loopParent(e),{top:r.top-i.top,left:r.left-i.left}}}it.prototype.loopOffsetParent=function(...t){return console.warn("Dom.loopOffsetParent() is deprecated, use Dom.loopOffset() instead."),this.loopOffset(...t)},it.prototype.scrollTopGlobal=function(){return console.warn("Dom.scrollTopGlobal() is deprecated, use Dom.scroll('top') instead."),this.scroll("top",null)},it.prototype.scrollLeftGlobal=function(){return console.warn("Dom.scrollLeftGlobal() is deprecated, use Dom.scroll('left') instead."),this.scroll("left",null)};function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function st(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nt(Object(r),!0).forEach(function(e){ot(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ot(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class lt{}class at{attr(t,e=void 0,r=null){if(null==this.el)return e?this:r;let i=this.el.getAttribute(t);return D.isUndef(e)?i||r:null===e?(this.el.removeAttribute(t),i):(D.isArr(e)&&(e=e.join(" ")),D.isObj(e)&&(e=be.castOptions(e)),this.el.setAttribute(t,e),this)}data(t,e=void 0,r=null){return this.attr("data-"+t,e,r)}computed(t=null,e=null){if(null==this.el)return e;if(1!==this.getNodeType())return e;let r=getComputedStyle(this.el);return null==t?r:b.get(r,t,e)}style(t=void 0,e=!0){if(null==this.el)return this;if(null===t)return this.attr("style",null);let r=this.attr("style",void 0,{});return D.isStr(r)&&(r=be.parseOptions(r)),D.isUndef(t)?r:(e&&(t=st(st({},r),t)),t.translate&&(t.transform=`translate3d(${t.translate.join(",")}, 0)`),delete t.translate,D.isNum(t.top)&&(t.top+="px"),D.isNum(t.left)&&(t.left+="px"),D.isNum(t.width)&&(t.width+="px"),D.isNum(t.height)&&(t.height+="px"),this.attr("style",t),this)}class(t=void 0,e=!1){if(null==this.el)return this;if(null===t)return this.attr("class","");let r=this.attr("class",void 0,[]);return D.isStr(r)&&(r=r.split(" ")),D.isUndef(t)?r:(e&&(t=[...r,...t]),this.attr("class",t),this)}html(t=void 0){return void 0===t?this.el.innerHTML:(this.each(e=>{e.innerHTML=t}),this)}actual(t,e=null){let r=this.attr("style");this.style(e);let i=t(this.el,this.el);return this.attr("style",r),i}hasClass(t){return D.isArr(t)||(t=[t]),g.isect(this.class(),t).length>0}addClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>ge.find(e).addClass(t));let e=this.el.className.split(" ");return D.isStr(t)&&(t=t.split(" ")),e=g.append(e,...t),this.el.className=g.unique(e).join(" "),this}remClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>ge.find(e).remClass(t));let e=this.el.className.split(" ");return D.isStr(t)&&(t=t.split(" ")),e=g.diff(e,t),this.el.className=g.unique(e).join(" "),this}toggleClass(t){return this.els.length>1?this.each(e=>ge.find(e).toggleClass(t)):this.hasClass(t)?this.remClass(t):this.addClass(t)}stateClass(t,e=!0){return this.els.length>1?this.each(e=>ge.find(e).stateClass(t)):e?this.addClass(t):this.remClass(t)}}at.prototype.css=function(...t){return console.warn("Dom.css() is deprecated, use Dom.style() instead."),this.style(...t)},at.prototype.removeClass=function(...t){return console.warn("Dom.removeClass() is deprecated, use Dom.remClass() instead."),this.remClass(...t)};function ut(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(r),!0).forEach(function(e){ht(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ht(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class dt{static inviewMaxY(t,e=null){if(D.isString(t)&&(t={el:t}),!(t=ct(ct({},{boundry:null,multiple:!1,threshold:0,mode:"ratio"}),t)).el)throw new Error("Dom.inviewY() requires an element.");let r=[t.threshold,t.mode,t.boundry],i=[];return ge.find(t.el).each(t=>{(t=>ge.find(t).isInviewY(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:g.first(i)}static inviewMaxX(t,e=null){if(D.isString(t)&&(t={el:t}),!(t=ct(ct({},{boundry:null,multiple:!1,threshold:0,mode:"ratio"}),t)).el)throw new Error("Dom.inviewX() requires an element.");let r=[t.threshold,t.mode,t.boundry],i=[];return ge.find(t.el).each(t=>{(t=>ge.find(t).isInviewX(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:g.first(i)}}class ft{viewoffX(){if(null==this.el)return{top:0,bot:0};let[t,e]=[ge.win().innerWidth,this.width()],[r,i]=[this.offset("left"),this.parent().scroll("left")];return{left:Math.max(0,r-i),right:Math.max(0,t-(r+e-i))}}inviewX(t=null){let{left:e,right:r}=ge.find(t).viewoffY(),[i,n]=[ge.win().innerHeight-r-e,this.height()],[s,o]=[this.offset("left")+e,this.scroll("left")+e],l=Math.max(0,o+i-s+e);return l>n&&(l=Math.min(n,i+n-l)),Math.max(0,l)}inratioX(t=null){return 1/this.width()*this.inviewX(t)}isInviewX(t=.1,e="ratio",r=null){return"pixel"===e?this.inviewX(r)>t:this.inratioX(r)>t}viewoffY(){if(null==this.el)return{top:0,bottom:0};let[t,e]=[ge.win().innerHeight,this.height()],[r,i]=[this.offset("top"),this.parent().scroll("top")];return{top:Math.max(0,r-i),bottom:Math.max(0,t-(r+e-i))}}inviewY(t=null){let{top:e,bottom:r}=ge.find(t).viewoffY(),[i,n]=[ge.win().innerHeight-r-e,this.height()],[s,o]=[this.offset("top")+e,this.scroll("top")+e],l=Math.max(0,o+i-s+e);return l>n&&(l=Math.min(n,i+n-l)),Math.min(Math.max(0,l),i)}inratioY(t=null){return 1/this.height()*this.inviewY(t)}isInviewY(t=.1,e="ratio",r=null){return"pixel"===e?this.inviewY(r)>t:this.inratioY(r)>t}}ft.prototype.inviewHeight=function(...t){return console.warn("Dom.inviewHeight() is deprecated, use Dom.inviewY() instead."),this.inviewY(...t)},ft.prototype.inviewWidth=function(...t){return console.warn("Dom.inviewWidth() is deprecated, use Dom.inviewX() instead."),this.inviewX(...t)};class pt{static setMetaTitle(t,e=":value - :title"){return this.$meta.title||(this.$meta.title=ge.doc().title),document.title=H.replace(e,{value:t,title:this.$meta.title}),this}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(pt,"$meta",{}),pt.title=t=>(console.warn("Dom.title() is deprecated, use Dom.setMetaTitle() instead."),ge.setMetaTitle(t));class mt{}class gt{}class yt{}function bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(r),!0).forEach(function(e){wt(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function wt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class Ot{}class Mt{popover(t,e="botttom-center",r={}){return/^(top|bottom)-/.test(e)?this.popoverY(t,e,r):/^(left|right)-/.test(e)?this.popoverX(t,e,r):void 0}popoverY(t,e="bottom-center",r={}){t=ge.find(t);let[i,n]=[t.rect(),this.rect()];r.x&&(i=vt(vt({},i),{},{left:r.x,width:1})),r.y&&(i=vt(vt({},i),{},{top:r.y,height:1})),r.width;let[s,o]=[{x:0,y:0},i.width-n.width];/^top-/.test(e)&&(s.y=i.top-n.height),/^bottom-/.test(e)&&(s.y=i.top+i.height),/-start$/.test(e)&&(s.x=i.left),/-center$/.test(e)&&(s.x=i.left+.5*o),/-end$/.test(e)&&(s.x=i.left+o);let l=e;/^top-/.test(e)&&(l=l.replace(/^top-/,"bottom-")),/^bottom-/.test(e)&&(l=l.replace(/^bottom-/,"top-"));let a={x:window.innerWidth,y:window.innerHeight},u=s.y+n.height>a.y||s.y<0;s.y<0&&(u=!0);const c=vt(vt({},r),{},{offset:s});if(u&&!r.offset)return this.popoverY(t,l,c);return u&&r.offset&&(s=r.offset),s.y<0&&(s.y=0),s.y+n.height>a.height&&(s.y=a.height-n.height),u&&(e="auto"),vt(vt({},this.popoverNormalize(s,n,i,a)),{},{position:e})}popoverX(t,e="left-center",r={}){t=ge.find(t);let[i,n]=[t.rect(),this.rect()];r.height;let[s,o]=[{x:0,y:0},i.height-n.height];/^left-/.test(e)&&(s.x=i.left-n.width),/^right-/.test(e)&&(s.x=i.left+i.width),/-start$/.test(e)&&(s.y=i.top),/-center/.test(e)&&(s.y=i.top+.5*o),/-end/.test(e)&&(s.y=i.top+o);let l=e;/^left-/.test(e)&&(l=l.replace(/^left-/,"right-")),/^right-/.test(e)&&(l=l.replace(/^right-/,"left-"));let a={x:window.innerWidth,y:window.innerHeight},u=s.y+n.height>a.y;s.y<0&&(u=!0);const c=vt(vt({},r),{},{offset:s});if(u&&!r.offset)return this.popoverX(t,l,c);return u&&r.offset&&(s=r.offset),u&&(e="auto"),vt(vt({},this.popoverNormalize(s,n,i,a)),{},{position:e})}popoverNormalize(t,e,r,i){const n=ge.find(document.body).scroll();t.y<0&&(t.y=0),t.y+e.height>i.y&&(t.y=i.y-e.height),t.x<0&&(t.x=0);const s=document.body.clientWidth;return t.x+e.width>i.x&&(t.x=i.x-e.width-(i.x-s)),t={x:t.x+n.left,y:t.y+n.top},b.each(t,(e,r)=>{t[r]=Math.round(e)}),t.self={width:e.width,height:e.height},t.rect={width:r.width,height:r.height},t}}function Dt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Pt=[function(t){return b.each(D.class(G),(e,r)=>{t[r]=e}),b.each(D.proto(q),(e,r)=>{t.prototype[r]=e}),t.init.push(q._constructFinder),t},function(t){return b.each(D.class(K),(e,r)=>{t[r]=e}),b.each(D.proto(Z),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(X),(e,r)=>{t[r]=e}),b.each(D.proto(z),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(U),(e,r)=>{t[r]=e}),b.each(D.proto(V),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(J),(e,r)=>{t[r]=e}),b.each(D.proto(_),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(rt),(e,r)=>{t[r]=e}),b.each(D.proto(it),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(lt),(e,r)=>{t[r]=e}),b.each(D.proto(at),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(dt),(e,r)=>{t[r]=e}),b.each(D.proto(ft),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(pt),(e,r)=>{t[r]=e}),b.each(D.proto(mt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(gt),(e,r)=>{t[r]=e}),b.each(D.proto(yt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.class(Ot),(e,r)=>{t[r]=e}),b.each(D.proto(Mt),(e,r)=>{t.prototype[r]=e}),t}];class jt{constructor(t,...e){Dt(this,"el",null),Dt(this,"els",[]),g.each(ge.init,r=>{t=r.call(this,t,...e)}),t instanceof ge&&(t=t.el),D.isArr(t)||(t=[t]),this.el=t[0],this.els=t}static find(t,...e){return new ge(t,...e)}static extend(t){t.call({},this)}static win(){return null==globalThis.window?{}:window}static doc(){return null==globalThis.document?{}:document}static body(){return this.doc().body?this.doc().body:{}}}Dt(jt,"init",[]);const kt=function(){let t=jt;for(const e of Pt)t=e.call(t,t);return t},$t={second:/([+-])([0-9]+)\s?seconds?/i,minute:/([+-])([0-9]+)\s?minutes?/i,hour:/([+-])([0-9]+)\s?hours?/i,date:/([+-])([0-9]+)\s?days?/i,month:/([+-])([0-9]+)\s?months?/i,year:/([+-])([0-9]+)\s?years?/i};class xt{get(t){return"time"===t?this.value.getTime():/^seconds?$/i.test(t)?this.value.getSeconds():/^minutes?$/i.test(t)?this.value.getMinutes():/^hours?$/i.test(t)?this.value.getHours():/^days?$/i.test(t)?this.value.getDay():/^dates?$/i.test(t)?this.value.getDate():/^months?$/i.test(t)?this.value.getMonth()+1:/^years?$/i.test(t)?this.value.getFullYear():this}set(t,e){D.isNum(t)||(t=D.int(t));let r=this.value.getDay();return"day"===e&&(t=t+1-(r||7)),"time"===e&&this.value.setTime(t),/^seconds?$/i.test(e)&&this.value.setSeconds(t),/^minutes?$/i.test(e)&&this.value.setMinutes(t),/^hours?$/i.test(e)&&this.value.setHours(t),/^days?$/i.test(e)&&this.add(t,"date"),/^dates?$/i.test(e)&&this.value.setDate(t),/^months?$/i.test(e)&&this.value.setMonth(t-1),/^years?$/i.test(e)&&this.value.setFullYear(t),this}time(t=null){return null==t?this.get("time"):this.set(t,"time")}second(t=null){return null==t?this.get("second"):this.set(t,"second")}minute(t=null){return null==t?this.get("minute"):this.set(t,"minute")}hour(t=null){return null==t?this.get("hour"):this.set(t,"hour")}day(t=null){return null==t?this.get("day"):this.set(t,"day")}date(t=null){return null==t?this.get("date"):this.set(t,"date")}month(t=null){return null==t?this.get("month"):this.set(t,"month")}year(t=null){return null==t?this.get("year"):this.set(t,"year")}shortyear(){return this.get("year").toString().slice(-2)}add(t,e="day"){return/^days?$/i.test(e)&&(e="date"),this.set(this.get(e)+D.int(t),e),this}sub(t,e="day"){return/^days?$/i.test(e)&&(e="date"),this.set(this.get(e)-D.int(t),e),this}isModifible(t){return/^(\s*[+-][0-9]+\s?[a-z]+\s*)+$/i.test(t)}modify(t){return D.isEmpty(t)||b.each($t,(e,r)=>{u.match(t,e,([t,e,i])=>{"+"===e?this.add(i,r):this.sub(i,r)})}),this}apply(t,e="YYYY-MM-DD HH:mm:ss",r=[]){t=ye.make(t,e);for(const e of r)this.set(t.get(e),e);return this}applyDate(t,e="YYYY-MM-DD HH:mm:ss"){return this.apply(t,e,["date","month","year"])}applyTime(t,e="YYYY-MM-DD HH:mm:ss"){return this.apply(t,e,["hour","minute","second"])}}xt.prototype.addSecond=function(t){return console.warn("Now.addSecond() is deprecated, use Now.add(value, 'second') instead."),this.add(t,"second")},xt.prototype.subSecond=function(t){return console.warn("Now.subSecond() is deprecated, use Now.sub(value, 'second') instead."),this.sub(t,"second")},xt.prototype.addMinute=function(t){return console.warn("Now.addMinute() is deprecated, use Now.add(value, 'minute') instead."),this.add(t,"minute")},xt.prototype.subMinute=function(t){return console.warn("Now.subMinute() is deprecated, use Now.sub(value, 'minute') instead."),this.sub(t,"minute")},xt.prototype.addHour=function(t){return console.warn("Now.addHour() is deprecated, use Now.add(value, 'hour') instead."),this.add(t,"hour")},xt.prototype.subHour=function(t){return console.warn("Now.subHour() is deprecated, use Now.sub(value, 'hour') instead."),this.sub(t,"hour")},xt.prototype.addDates=function(t){return console.warn("Now.addDates() is deprecated, use Now.add(value, 'date') instead."),this.add(t,"date")},xt.prototype.subDates=function(t){return console.warn("Now.subDates() is deprecated, use Now.sub(value, 'date') instead."),this.sub(t,"date")},xt.prototype.addMonths=function(t){return console.warn("Now.addMonths() is deprecated, use Now.add(value, 'month') instead."),this.add(t,"month")},xt.prototype.subMonths=function(t){return console.warn("Now.subMonths() is deprecated, use Now.sub(value, 'month') instead."),this.sub(t,"month")},xt.prototype.addYears=function(t){return console.warn("Now.addYears() is deprecated, use Now.add(value, 'year') instead."),this.add(t,"year")},xt.prototype.subYears=function(t){return console.warn("Now.subYears() is deprecated, use Now.sub(value, 'year') instead."),this.sub(t,"year")},xt.prototype.addDecades=function(t){return console.warn("Now.addDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.add(10*t,"year")},xt.prototype.subDecades=function(t){return console.warn("Now.subDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.sub(10*t,"year")},xt.prototype.humanDay=function(){return console.warn("Now.humanDay() is deprecated, use Now.day() instead."),this.day()},xt.prototype.humanMonth=function(){return console.warn("Now.humanMonth() is deprecated, use Now.month() instead."),this.month()};const St={L:"DD/MM/YYYY",LL:"MMMM DD, YYYY",LLL:"MMMM DD, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm",LT:"HH:mm",LTS:"HH:mm:ss",LTSD:"DD/MM/YYYY HH:mm:ss"},Nt={second:"ss",minute:"mm",hour:"HH",date:"DD",month:"MM",year:"YYYY"};class Yt{isParsable(t,e="YYYY-MM-DD HH:mm:ss"){for(const r in Nt)t=u.replace(t,Nt[r],e);return t===e}parse(t,e="YYYY-MM-DD HH:mm:ss"){return D.isTime(t)&&(e="HH:mm:ss"),D.isDate(t)&&(e="YYYY-MM-DD"),this.isModifible(t)?this.modify(t):D.isIsoDate(t)?(this.value=new Date(t),this):this.parseFormat(t,e)}parseFormat(t,e){if(!this.isParsable(t,e))return this.value=new Date(NaN),this;for(const r in Nt)this.set(u.extract(t,Nt[r],e),r);return this}format(t="YYYY-MM-DD HH:mm:ss"){return b.has(St,t)&&(t=H.$text[t]??St[t]),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("dddd",()=>this.human("day"))).replace("ddd",()=>this.human("day",3))).replace("dd",()=>this.human("day",2))).replace("MMMM",()=>this.human("month"))).replace("MMM",()=>this.human("month",3))).replace("YYYY",()=>u.integer(this.year(),4))).replace("MM",()=>u.integer(this.month(),2))).replace("DD",()=>u.integer(this.date(),2))).replace("HH",()=>u.integer(this.hour(),2))).replace("mm",()=>u.integer(this.minute(),2))).replace("ss",()=>u.integer(this.second(),2))).replace("YY",()=>u.integer(this.shortyear(),2))).replace("X",()=>u.integer(this.time()))).replace("x",()=>u.integer(this.time()/1e3))}code(t="X"){return D.int(this.format(t))}}class Et{before(t=null,e="x"){return this.code(e)<ye.make(t).code(e)}beforeDate(t=null,e="YYYYMMDD"){return this.before(t,e)}beforeTime(t=null,e="HHmmss"){return this.before(t,e)}after(t=null,e="x"){return this.code(e)>ye.make(t).code(e)}afterDate(t=null,e="YYYYMMDD"){return this.after(t,e)}afterTime(t=null,e="HHmmss"){return this.after(t,e)}equal(t=null,e="x"){return t instanceof ye||(t=ye.make(t)),this.code(e)===t.clone().code(e)}equalDate(t=null,e="YYYYMMDD"){return this.equal(t,e)}equalTime(t=null,e="HHmmss"){return this.equal(t,e)}between(t=null,e=null,r="YYYYMMDD"){let i=[ye.make(t),ye.make(e)];return i[0].after(i[1],r)&&(i=i.reverse()),this.after(i[0],r)&&this.before(i[1],r)}}class Tt{grid(t="day"){if(/^seconds?$/i.test(t))return this.getSecondsGrid();if(/^minutes?$/i.test(t))return this.getMinutesGrid();if(/^hours?$/i.test(t))return this.getHoursGrid();if(/^days?$/i.test(t))return this.getDaysGrid();if(/^dates?$/i.test(t))return this.getDatesGrid();if(/^months?$/i.test(t))return this.getMonthsGrid();if(/^years?$/i.test(t))return this.getYearsGrid();if(/^decades?$/i.test(t))return this.getDecadesGrid();throw new Error(`Invalid grid scope type "${t}".`)}getSecondsGrid(t=1){return null==t&&(t=1),g.make(60/t,e=>this.clone().second(e*t))}getMinutesGrid(t=1){return null==t&&(t=1),g.make(60/t,e=>this.clone().minute(e*t))}getHoursGrid(t=1){return null==t&&(t=1),g.make(24/t,e=>this.clone().hour(e*t))}getDaysGrid(){let t=[this.first("date").first("day"),this.last("date").last("day")];return t[0].range(t[1],"date")}getDatesGrid(){let t=[this.first("date"),this.last("date")];return t[0].range(t[1],"date")}getMonthsGrid(){let t=[this.first("month"),this.last("month")];return t[0].range(t[1],"month")}getYearsGrid(){let t=[this.first("year"),this.clone().last("year")];return t[0].range(t[1],"year")}getDecadesGrid(){let t=[this.first("decade"),this.clone().last("decade")];return t[0].range(t[1],"decade")}}Tt.prototype.getYears=function(){return console.warn("Now.getYears() is deprecated, use Now.grid('years') instead."),this.grid("years")},Tt.prototype.getMonths=function(){return console.warn("Now.getMonths() is deprecated, use Now.grid('months') instead."),this.grid("months")},Tt.prototype.getDates=function(){return console.warn("Now.getDates() is deprecated, use Now.grid('dates') instead."),this.grid("dates")},Tt.prototype.getHours=function(){return console.warn("Now.getHours() is deprecated, use Now.grid('hours') instead."),this.grid("hours")},Tt.prototype.getMinutes=function(){return console.warn("Now.getMinutes() is deprecated, use Now.grid('minutes') instead."),this.grid("minutes")},Tt.prototype.getSeconds=function(){return console.warn("Now.getSeconds() is deprecated, use Now.grid('seconds') instead."),this.grid("seconds")};class At{prev(t="date"){return/^days?$/i.test(t)&&(t="date"),/^decades?$/i.test(t)?this.clone().sub(10,"year"):this.clone().sub(1,t)}next(t="day"){return/^days?$/i.test(t)&&(t="date"),/^decades?$/i.test(t)?this.clone().add(10,"year"):this.clone().add(1,t)}prevSecond(){return this.prev("second")}nextSecond(){return this.next("second")}prevMinute(){return this.prev("minute")}nextMinute(){return this.next("minute")}prevHour(){return this.prev("hour")}nextHour(){return this.next("hour")}prevDate(){return this.prev("date")}nextDate(){return this.next("date")}prevMonth(){return this.prev("month")}nextMonth(){return this.next("month")}prevYear(){return this.prev("year")}nextYear(){return this.next("year")}prevDecade(){return this.prev("decade")}nextDecade(){return this.next("decade")}first(t="date"){if(/^seconds?$/i.test(t))return this.firstSecond();if(/^minutes?$/i.test(t))return this.firstMinute();if(/^hours?$/i.test(t))return this.firstHour();if(/^days?$/i.test(t))return this.firstDay();if(/^dates?$/i.test(t))return this.firstDate();if(/^months?$/i.test(t))return this.firstMonth();if(/^years?$/i.test(t))return this.firstYear();if(/^decades?$/i.test(t))return this.firstDecade();throw new Error(`Invalid first scope type "${t}".`)}last(t="date"){if(/^seconds?$/i.test(t))return this.lastSecond();if(/^minutes?$/i.test(t))return this.lastMinute();if(/^hours?$/i.test(t))return this.lastHour();if(/^days?$/i.test(t))return this.lastDay();if(/^dates?$/i.test(t))return this.lastDate();if(/^months?$/i.test(t))return this.lastMonth();if(/^years?$/i.test(t))return this.lastYear();if(/^decades?$/i.test(t))return this.lastDecade();throw new Error(`Invalid last scope type "${t}".`)}firstSecond(){return this.clone().set(0,"second")}lastSecond(){return this.clone().set(59,"second")}firstMinute(){return this.clone().set(0,"minute")}lastMinute(){return this.clone().set(59,"minute")}firstHour(){return this.clone().set(0,"hour")}lastHour(){return this.clone().set(23,"hour")}firstDay(){return this.clone().set(0,"day")}lastDay(){return this.clone().set(6,"day")}firstDate(){return this.clone().set(1,"date")}lastDate(){return this.clone().next("month").set(0,"date")}firstMonth(){return this.clone().set(1,"month")}lastMonth(){return this.clone().set(12,"month")}nthYear(t=0){let e=10*Math.floor(this.year()/10);return this.clone().set(e+t,"year")}firstYear(){return this.nthYear(0)}lastYear(){return this.nthYear(9)}nthDecade(t=0){let e=100*Math.floor(this.year()/100);return this.clone().set(e+10*t,"year")}firstDecade(){return this.nthDecade(0)}lastDecade(){return this.nthDecade(9)}}class It{range(t=null,e="date"){let r="YYYYMMDD";/^months?$/.test(e)&&(r="YYYYMM"),/^years?$/.test(e)&&(r="YYYY");let i=[],n=[this.clone(),ye.make(t)];n[0].afterDate(n[1])&&(n=n.reverse()),n[1].add(1,e);for(let t=n[0];!t.equal(n[1],r);t=t.next(e))g.append(i,t);return i}}It.prototype.getDatesRange=function(...t){return console.warn("NowRange.getDatesRange() is deprecated, use NowRange.range() instead."),this.range(...t)};const Ht=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ft=["January","February","March","April","May","June","July","August","September","October","November","December"];class Ct{human(t="day",e=null){return/^days?$/i.test(t)?this.getHumanDay(e):/^months?$/i.test(t)?this.getHumanMonth(e):this.get(t)}getHumanDay(t=null){let e=this.day()-1;if(!Ht[e])throw new Error(`Invalid day number "${e}".`);let r=H.trans(Ht[e]);return null!=t&&(r=r.substring(0,t)),r}getHumanMonth(t=null){let e=this.day()-1;if(!Ft[e])throw new Error(`Invalid month number "${e}".`);let r=H.trans(Ft[e]);return null!=t&&(r=r.substring(0,t)),r}}function Lt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Rt=[function(t){return b.each(D.proto(xt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(Yt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(Et),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(Tt),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(At),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(It),(e,r)=>{t.prototype[r]=e}),t},function(t){return b.each(D.proto(Ct),(e,r)=>{t.prototype[r]=e}),t}];class Wt{constructor(t=null,e="YYYY-MM-DD HH:mm:ss"){Lt(this,"input",null),Lt(this,"value",null),"now"===t&&(t=null);let r=t;return t&&t.toDate&&(t=t.toDate()),t instanceof Date||(t=new Date),this.input=t,D.isNix(r)&&(this.input=r),this.value=t,D.isStr(r)&&this.parse(r,e),g.each(ye.init,t=>{el=t.call(this,el,e)}),this}static extend(t){t.call({},this)}static make(t=null,e="YYYY-MM-DD HH:mm:ss"){return new ye(t,e)}reset(t=null){return null==t&&(t={month:!0,day:!0,time:!0}),t.month&&this.value.setMonth(0),t.day&&this.value.setDate(1),t.time&&this.value.setHours(0,0,0),this}clone(t=!1){return new ye(new Date(this.value),null,t)}valid(){return!isNaN(this.input)}toDate(){return this.value}toUTC(){return this.value.toUTCString()}}Lt(Wt,"init",[]),Wt.prototype.resetTime=function(){return console.warn("Now.resetTime() is deprecated, use Now.reset({ time: true }) instead."),this.reset({time:!0})};const Bt=function(){let t=Wt;for(const e of Rt)t=e.call(t,t);return t},Gt=[{match:t=>/^(null|undefined)$/i.test(t),parse:t=>D.null(t)},{match:t=>/^(true|false|yes|no)$/i.test(t),parse:t=>D.bool(t)},{match:t=>/^-?[0-9]+$/.test(t),parse:t=>D.int(t)},{match:t=>/^-?[0-9]+\.[0-9]+$/.test(t),parse:t=>D.num(t)},{match:t=>/^[{\[].*?[}\]]$/.test(t),parse:t=>JSON.parse(t)}],qt=[{match:t=>D.isArr(t),parse:t=>JSON.stringify(t)}];class Xt{static keyed(t,e=null){return D.isStr(t)?-1===t.indexOf("[")?t:t.replace(/\[([^\]]+)\]/g,".$1"):e}static parsed(t,e=null,r=[]){if(!D.isStr(t))return e;t=t.replace(/(^"|^'|'$|"$)/g,"");for(let e of r)if(e.match(t))return e.parse(t);for(let e of Gt)if(e.match(t))return e.parse(t);return t}static casted(t,e=!1,r=[]){if(e&&(t=encodeURI(t)),D.isStr(t))return t;for(let e of r)if(e.match(t))return e.parse(t);for(let e of qt)if(e.match(t))return e.parse(t);return D.str(t)}}const zt={entry:/(?<=^|&|\?)(\s*(?<key>.*?)\s*=\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=&|$)/g};class Ut{static castParams(t={}){if(D.isEmpty(t))return"";return g.each(t,(t,e)=>this.castParam(e,t)).join("&")}static castParam(t,e,r=null){if(null!=r&&(t=r+"["+t+"]"),!D.isRef(e))return D.str(t)+"="+be.casted(e,!0);return g.each(e,(r,i)=>this.castParam(D.isArr(e)?"":i,r,t)).join("&")}static parseParams(t){if(D.isEmpty(t))return{};let e=(t=decodeURIComponent(t)).matchAll(zt.entry);if(null==e)return{};const[r,i]=[be.keyed,be.parsed];return g.reduce(Array.from(e),(t,{groups:e})=>b.set(t,r(e.key),i(e.val)),{})}}const Vt={entry:/(^|;)(\s*(?<key>.*?)\s*:\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=;|$)/g};class Jt{static castOptions(t={},e=!0){if(D.isEmpty(t))return"";return g.each(t,(t,r)=>this.castOption(r,t,null,e)).join(e?"; ":";")+";"}static castOption(t,e,r=null,i=!0){null!=r&&(t=r+"."+t);let n=i?": ":":";return D.isObj(e)?g.map(e,(e,r)=>this.castOption(r,e,t,i)).join(i?"; ":";"):D.str(t)+n+be.casted(e,!1)}static parseOptions(t){if(D.isEmpty(t))return{};let e=t.matchAll(Vt.entry);if(null==e)return{};const[r,i]=[be.keyed,be.parsed];return g.reduce(Array.from(e),(t,{groups:e})=>b.set(t,r(e.key),i(e.val)),{})}}const _t=[["à","a"],["á","a"],["â","a"],["è","e"],["é","e"],["ê","e"],["ì","i"],["í","i"],["ï","i"],["î","i"],["ò","o"],["ó","o"],["ô","o"],["ù","u"],["ú","u"],["û","u"],["ñ","n"],["ç","c"],[".","-"],["·","-"],["/","-"],["_","-"],[",","-"],[":","-"],[";","-"],["ä","ae"],["ö","oe"],["ü","ue"],["ß","ss"]];class Kt{static slugify(t){return t=String(t).replace(/(^\s+|\s+$)/g,"").toLowerCase(),g.each(_t,e=>{t=t.replaceAll(e[0],e[1])}),t.replace(/[^a-z0-9-\s]+/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}}const Zt=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];class Qt{static filesize(t,e=1){D.isNum(t)||(t=D.num(t,0));let r=r=>p.fixed(t/Math.pow(1e3,r),e);for(let e=0;e<Zt.length;e++)if(t<=Math.pow(1e3,e+1))return r(e)+" "+Zt[e];return r(Zt.length)}}const te=[function(t){return b.each(D.class(Xt),(e,r)=>{t[r]=e}),t},function(t){return b.each(D.class(Ut),(e,r)=>{t[r]=e}),t},function(t){return b.each(D.class(Jt),(e,r)=>{t[r]=e}),t},function(t){return b.each(D.class(Kt),(e,r)=>{t[r]=e}),t},function(t){return b.each(D.class(Qt),(e,r)=>{t[r]=e}),t}];class ee{static extend(t){t.call({},this)}}const re=function(){let t=ee;for(const e of te)t=e.call(t,t);return t};function ie(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:{}}function ne(){const t=ie();if(!t.navigator)return;let[e,r]=[t.navigator.userAgent,{}];null==r.safari&&(r.safari=/Safari\//.test(e)),null==r.firefox&&(r.firefox=/Firefox\//.test(e)),null==r.edge&&(r.edge=/Edge\//.test(e)),null==r.chrome&&(r.chrome=/Chrome\//.test(e)),t.piuag=r}function se(){const t=ie();if(!t.navigator)return;let[e,r]=[t.navigator.userAgent,{}];null==r.win&&(r.win=/Windows/.test(e)),null==r.osx&&(r.osx=/Macintosh|Mac OS X/.test(e)),null==r.gnu&&(r.gnu=/Linux/.test(e)),null==r.ios&&(r.ios=/iPhone|iPad|iPod/.test(e)),null==r.oid&&(r.oid=/Android/.test(e)),t.piudv=r}class oe{static has(t){return b.has(this.$data,g.first(t))}static set(t,e){let[r,i]=[null,g.first(t)];b.has(this.$data,i)&&(r=b.get(this.$data,i)),D.isEqual(r,e)||(b.set(this.$data,i,e),we.fire("store:"+i,e,i))}static unset(t){b.unset(this.$data,[...g.first(t)])}static get(t,e=null,r=!1){let i=g.first(t);if(!b.has(this.$data,i)&&!r)return e;b.has(this.$data,i)&&r&&b.set(this.$data,i,e);let n=b.get(this.$data,i,e);return D.isObj(n)?b.clone(n):n}static find(t,e,r=null){let i=g.first(t);if(!1===b.has(this.$data,i))return r;if(!1===b.has(e,"id"))return r;let n=g.findIndex(this.get(i),{id:e.id});return-1===n?r:this.get(i+"."+n)}static replace(t,e){let r=g.first(t);if(!1===b.has(this.$data,r))return;if(!1===b.has(e,"id"))return;let i=g.findIndex(this.get(r),{id:p.int(e.id)});-1!==i&&this.set(r+"."+i,e)}static add(t,...e){this.set(t,g.concat(this.get(t,[]),e))}static remove(t,...e){this.set(t,g.diff(this.get(t,[]),e))}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(oe,"$data",{});const le=oe;class ae{static set(t,e){this.$routes[t]=e}static get(t,e=null,r=null){let i=t;return/^https?:\/\//.test(i)||(i=this.$routes[t]||t),b.each(e,(t,e)=>{i=i.replace(new RegExp("{"+e+"}","g"),t)}),D.isEmpty(r)||(i+="?"+be.castParams(r)),i}static goto(t,e=null,r=null){window.location.href=this.get(t,e,r)}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(ae,"$routes",{});const ue=ae;function ce(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class he{constructor(t,e={}){if(ce(this,"map",null),ce(this,"markers",{}),ce(this,"cluster",null),ce(this,"clusterFilter",null),ce(this,"clusterOptions",{}),!globalThis.google)throw new Error("Google Maps is required for pi.Map");let r=b.only(e,["lat","lng"]);b.has(e,"styles")||(e.styles=Map.mapStyle),e=b.assign({gestureHandling:"cooperative",scrollwheel:null,zoom:12,center:r},b.except(e,["lat","lng"])),this.map=new globalThis.google.maps.Map(ge.find(t).get(0),e)}static setMapStyle(t=[]){return Map.mapStyle=t,this}static setMarkerStyle(t,e={},r={}){if(!globalThis.google)throw new Error("Google Maps is required for pi.Map");if(!b.has(e,"default"))return console.error("Marker style requires default property");b.has(e,"width")||(e.width=45),b.has(e,"height")||(e.height=45);let i={},n=new globalThis.google.maps.Size(e.width,e.height),s=new globalThis.google.maps.Point(0,0),o=new globalThis.google.maps.Point(e.width/2,e.height);return i.default={url:e.default,size:n,origin:s,anchor:o,scaledSize:n},b.has(e,"hover")&&(i.hover=b.assign({},i.default,{url:e.hover})),b.has(i,"hover")||(i.hover=i.default),b.has(e,"active")&&(i.active=b.assign({},i.default,{url:e.active})),b.has(i,"active")||(i.active=i.default),b.each(r,(t,e)=>{i[e]=b.assign({},i.default,{url:t})}),b.set(Map.markerStyles,t,i),this}clusterMarkers(t={},e=null,r=!0){if(!this.cluster&&!r)return;if(void 0===globalThis.MarkerClusterer)return console.error("Google Maps Cluster library not laoded!");b.has(t,"imagePath")||b.has(t,"styles")||(t.imagePath="//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"),this.cluster&&this.cluster.clearMarkers(),D.isFunction(e)&&(this.clusterFilter=e);let i=g.filter(this.markers,t=>{let e=this.getMarkerVisibility(t.key);return D.isFunction(this.clusterFilter)?e&&this.clusterFilter.call(this,t):e});this.cluster=new globalThis.MarkerClusterer(this.map,g.each(i,t=>t.marker),this.clusterOptions=t)}styleMarker(t,e=null){let r=b.get(this.markers,t);if(D.isEmpty(r))return console.error(`Marker "${t}" not found`);D.isEmpty(e)&&(e=this.getInfoVisibility(t)?"active":"default"),b.has(Map.markerStyles,[r.style,e])&&r.marker.setIcon(b.get(Map.markerStyles,[r.style,e]))}getMarker(t){return b.get(this.markers,t)}getMarkerVisibility(t,e=!1){let r=b.get(this.markers,t);return D.isEmpty(r)?e:r.marker.getVisible()}getMarkerPositon(t,e=null){let r=b.get(this.markers,t);return D.isEmpty(r)?e:r.marker.getPosition()}toggleMarker(t){let e=b.get(this.markers,t);return D.isEmpty(e)?console.error(`Marker "${t}" not found`):e.marker.getVisible()?this.hideMarker(t):this.showMarker(t)}showMarker(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`Marker "${t}" not found`);let r=!e.marker.getVisible();return r&&e.marker.setVisible(!0),r}hideMarker(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`Marker "${t}" not found`);let r=!!e.marker.getVisible();return r&&e.marker.setVisible(!1),this.closeInfo(t),r}enterMarker(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`Marker "${t}" not found`);let r="hover";return this.getInfoVisibility(t)&&(r="active"),this.styleMarker(t,r),this}leaveMarker(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`Marker "${t}" not found`);let r="default";return this.getInfoVisibility(t)&&(r="active"),this.styleMarker(t,r),this}getInfoVisibility(t,e=!1){let r=b.get(this.markers,t);return D.isEmpty(r)||!b.has(r,"info")?e:!!r.info.getMap()}toggleInfo(t){let e=b.get(this.markers,t);return D.isEmpty(e)?console.error(`Marker "${t}" not found`):e.info.getMap()?this.closeInfo(t):this.openInfo(t)}openInfo(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!b.has(e,"info"))return!0;let r=!e.info.getMap();return Map.closeInfoWindows&&b.each(D.keys(this.markers),this.closeInfo.bind(this)),r&&e.info.open(this.map,e.marker),D.isFunction(e.onOpen)&&e.onOpen(e),this.styleMarker(t,"active"),r}closeInfo(t){let e=b.get(this.markers,t);if(D.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!b.has(e,"info"))return!1;let r=!!e.info.getMap();return r&&e.info.close(),D.isFunction(e.onClose)&&e.onClose(e),this.styleMarker(t,"default"),r}createMarker(t=null,e={}){D.isEmpty(t)&&(t=Y.uuid());let r={key:t};return b.has(e,"visible")||(e.visible=!0),r.extras=b.except(e,["map","position","lat","lng","html","style","visible","onOpen","onClose"]),b.has(e,"map")||(e.map=this.map),b.has(e,"position")||(e.position=b.only(e,["lat","lng"])),b.has(e,"style")&&(r.style=e.style),r.marker=new globalThis.google.maps.Marker(e),e.visible||r.marker.setVisible(!1),b.assign(r,{onOpen:b.get(e,"onOpen"),onClose:b.get(e,"onClose")}),b.set(this.markers,t,r),this.clusterMarkers(this.clusterOptions,null,!1),b.has(e,"html")?(b.has(r,"style")||(r.style="default"),this.styleMarker(t),r.marker.addListener("mouseover",()=>this.enterMarker(t)),r.marker.addListener("mouseout",()=>this.leaveMarker(t)),r.info=new globalThis.google.maps.InfoWindow({content:'<div class="gw-i-html">'+b.get(e,"html")+"</div>"}),r.marker.addListener("click",()=>this.toggleInfo(t)),r.info.addListener("closeclick",()=>this.closeInfo(t)),r.info.addListener("domready",()=>we.fire("MapsDomReady")),b.set(this.markers,t,r),b.get(this.markers,t)):b.get(this.markers,t)}setMarkerPosition(t,e={}){let r=b.get(this.markers,t);if(D.isEmpty(r))return console.error(`Marker "${t}" not found`);r.marker.setPosition(e)}setMarkerByAddress(t,e){return this.getLocationByAddress(e,e=>{this.setMarkerPosition(t,b.get(e,"0.geometry.location",{}))})}getLocationByAddress(t,e=null){let r=new globalThis.google.maps.Geocoder;return new Promise((i,n)=>{r.geocode({address:t},(t,r)=>{"OK"===r&&(e(t),i(t)),"OK"!==r&&n(t)})})}showMarkers(t=null){let e=this.markers;return D.isEmpty(t)||(e=b.filter(this.markers,t)),Map.hideMarkers&&b.each(D.keys(this.markers),this.hideMarker.bind(this)),b.each(e,t=>this.showMarker(t.key)),this.clusterMarkers(this.clusterOptions,null,!1),this}getMarkerBoundry(t=null){let e=this.markers;D.isEmpty(t)||(e=b.filter(this.markers,t));let r=new globalThis.google.maps.LatLngBounds;return b.each(e,t=>{t.marker.getVisible()&&r.extend(t.marker.getPosition())}),r}focusMarkers(t=null,e=14,r=15){let i=this.getMarkerBoundry(t);return this.map.setCenter(i.getCenter()),this.map.fitBounds(i,r),this.map.getZoom()>e&&this.map.setZoom(e),this}renderDirections(t){let e=new globalThis.google.maps.DirectionsService,r=new globalThis.google.maps.DirectionsRenderer;b.has(t,"map")||(t.map=this.map),b.has(t,"travelMode")||(t.travelMode="DRIVING"),r.setMap(t.map),b.has(t,"panel")&&!ge.find(t.panel).empty()&&r.setPanel(ge.find(t.panel).get(0)),t=b.only(t,["origin","destination","travelMode"]);return new Promise((i,n)=>{e.route(t,(t,e)=>{"OK"===e&&(r.setDirections(t),i(t)),"OK"!==e&&n(t)})})}}ce(he,"mapStyle",[]),ce(he,"markerStyles",{}),ce(he,"hideMarkers",!0),ce(he,"closeInfoWindows",!0);const de=he;function fe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class pe{static listen(){document.addEventListener("scroll",pe.scroll),pe.scroll()}static scroll(){g.each(this.invi,(t,e)=>{ge.find(t.el).inviewY()&&(g.removeIndex(this.invi,e),t.cb())})}static alias(t,e){return b.set(this.inis,t,e),this}static bind(t,e,r={}){let i=ge.find(e),n=this.getPrefix(t);i.addClass(n);let s=b.get(this.inis,t,null);if(D.isEmpty(s))return console.error(`Element "${t}" is not defined.`);let o=(t,e)=>{let r=new s(t.get(0),e);return pe.runs.push({el:t.get(0),prefix:n,deamon:r}),t.data(n,r),void 0!==r.bind?r.bind(t.get(0),e):r};return ge.ready(()=>o.call({},i,r)),this}static unbind(t,e,r={}){let i=ge.find(e),n=this.getPrefix(t),s=b.get(this.inis,t,null);if(D.isEmpty(s))return console.error(`Element "${t}" is not defined.`);return((t,e)=>{let r=t.data(n);if(void 0!==r.unbind)return r.unbind(t.get(0),e)}).call({},i,r),g.remove(pe.runs,{el:i.get(0)}),this}static observe(t,e=!1){let r=this.getPrefix(t),i={childList:!0,subtree:!0,attributes:!0,attributeFilter:[r]},n=()=>{let i=pe.getPrefix(t),n=g.filter(this.runs,{prefix:r});g.each(n,({el:i})=>{let n=u.objectify(ge.find(i).attr(r));if(e&&D.isEmpty(n)&&(n={_plain:ge.find(i).attr(r)}),b.pluck(n,"inview",!1)&&g.remove(this.invi,{el:i}),!document.body.contains(i))return this.unbind(t,i,n)}),ge.find(`[${r}]:not(.${i})`).each(i=>{let n=u.objectify(ge.find(i).attr(r));e&&D.isEmpty(n)&&(n={_plain:ge.find(i).attr(r)});let s=()=>{this.bind(t,i,n)};b.pluck(n,"inview",!1)?this.bindInview(i,s):s()})};return ge.find(document.body).observer(n)(document.body,i),ge.find(document.body).on("dom.change",n),this}static bindInview(t,e){g.add(this.invi,{el:t,cb:e},{el:t})}static unbindInview(t,e){g.remove(this.invi,{el:t,cb:e},{el:t})}static getPrefix(t){return t?this.prefix+"-"+t:this.prefix}static setPrefix(t){this.prefix=t}}fe(pe,"prefix","js"),fe(pe,"mount","mount"),fe(pe,"inis",{}),fe(pe,"runs",[]),fe(pe,"invi",[]);const me=pe,ge=kt(),ye=Bt(),be=re(),ve=new Proxy({},{get:function(t,e){return console.warn(`Any.${e} is deprecated, use Mix.${e}() instead.`),(...t)=>D[e](...t)}}),we=new Proxy({},{get:function(t,e){return console.warn(`Event.${e} is deprecated, use Signal.${e}() instead.`),(...t)=>T[e](...t)}}),Oe=function(){return console.warn("UUID() is deprecated, use Hash.make() instead."),Y.make()};return e})());
2
2
  //# sourceMappingURL=pico-js.esm.js.map