@kizmann/pico-js 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pico-js.browser.js +1 -1
- package/dist/pico-js.browser.js.map +1 -1
- package/dist/pico-js.esm.js +1 -1
- package/dist/pico-js.esm.js.map +1 -1
- package/package.json +1 -2
- package/src/dom/DomAttribute.js +13 -11
- package/src/dom/DomBuilder.js +9 -7
- package/src/dom/DomEvent.js +11 -9
- package/src/dom/DomFinder.js +7 -5
- package/src/dom/DomForm.js +5 -3
- package/src/dom/DomGlobal.js +7 -5
- package/src/dom/DomInview.js +4 -2
- package/src/dom/DomMeta.js +5 -3
- package/src/dom/DomObserver.js +5 -3
- package/src/dom/DomRectangle.js +7 -6
- package/src/format/FormatFile.js +4 -2
- package/src/format/FormatOption.js +4 -2
- package/src/format/FormatParam.js +4 -2
- package/src/format/FormatParser.js +4 -2
- package/src/format/FormatUrl.js +4 -2
- package/src/index.browser.js +30 -9
- package/src/index.esm.js +46 -68
- package/src/now/NowDefault.js +4 -2
- package/src/now/NowFormat.js +4 -2
- package/src/now/NowGrid.js +4 -2
- package/src/now/NowHuman.js +4 -2
- package/src/now/NowMatch.js +4 -2
- package/src/now/NowRange.js +4 -2
- package/src/now/NowWalker.js +4 -2
- package/src/utils/Array.js +1 -1
- package/src/utils/Cookie.js +1 -1
- package/src/utils/Data.js +1 -1
- package/src/utils/Dom.js +28 -28
- package/src/utils/Event.js +2 -2
- package/src/utils/Format.js +10 -10
- package/src/utils/Hash.js +1 -1
- package/src/utils/Locale.js +1 -1
- package/src/utils/Mixed.js +1 -1
- package/src/utils/Now.js +15 -15
- package/src/utils/Number.js +1 -1
- package/src/utils/Object.js +1 -1
- package/src/utils/Route.js +1 -1
- package/src/utils/Runner.js +4 -4
- package/src/utils/String.js +1 -1
- package/src/wip/Element.js +4 -4
- package/src/wip/Map.js +4 -4
- package/types/dom/DomAttribute.d.ts +21 -20
- package/types/dom/DomBuilder.d.ts +12 -11
- package/types/dom/DomEvent.d.ts +17 -16
- package/types/dom/DomFinder.d.ts +8 -7
- package/types/dom/DomForm.d.ts +4 -3
- package/types/dom/DomGlobal.d.ts +8 -7
- package/types/dom/DomInview.d.ts +2 -1
- package/types/dom/DomMeta.d.ts +4 -3
- package/types/dom/DomObserver.d.ts +4 -3
- package/types/dom/DomRectangle.d.ts +9 -8
- package/types/format/FormatFile.d.ts +2 -1
- package/types/format/FormatOption.d.ts +2 -1
- package/types/format/FormatParam.d.ts +2 -1
- package/types/format/FormatParser.d.ts +2 -1
- package/types/format/FormatUrl.d.ts +2 -1
- package/types/index.esm.d.ts +67 -41
- package/types/now/NowDefault.d.ts +2 -1
- package/types/now/NowFormat.d.ts +2 -1
- package/types/now/NowGrid.d.ts +2 -1
- package/types/now/NowHuman.d.ts +2 -1
- package/types/now/NowMatch.d.ts +2 -1
- package/types/now/NowRange.d.ts +2 -1
- package/types/now/NowWalker.d.ts +2 -1
- package/types/utils/Array.d.ts +6 -6
- package/types/utils/Dom.d.ts +35 -35
- package/types/utils/Event.d.ts +2 -2
- package/types/utils/Format.d.ts +11 -11
- package/types/utils/Now.d.ts +14 -14
- package/types/utils/Runner.d.ts +6 -6
- package/types/wip/Element.d.ts +8 -8
- package/types/wip/Map.d.ts +8 -8
- package/types/index.browser.d.ts +0 -1
package/dist/pico-js.esm.js
CHANGED
|
@@ -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,r,i,s={};t.r(s),t.d(s,{Any:()=>ke,Arr:()=>be,Cookie:()=>De,Data:()=>o,Dom:()=>de,Element:()=>p,Event:()=>Oe,For:()=>pe,Hash:()=>Me,Locale:()=>Pe,Map:()=>h,Mix:()=>we,Now:()=>fe,Num:()=>ye,Obj:()=>ve,Route:()=>l,Run:()=>me,Str:()=>ge,UUID:()=>$e,browser:()=>ce,device:()=>he,go:()=>ue});class n{static has(t){return ve.has(this.$data,be.first(t))}static set(t,e){let[r,i]=[null,be.first(t)];ve.has(this.$data,i)&&(r=ve.get(this.$data,i)),we.isEqual(r,e)||(ve.set(this.$data,i,e),Oe.fire("store:"+i,e,i))}static unset(t){ve.unset(this.$data,[...be.first(t)])}static get(t,e=null,r=!1){let i=be.first(t);if(!ve.has(this.$data,i)&&!r)return e;ve.has(this.$data,i)&&r&&ve.set(this.$data,i,e);let s=ve.get(this.$data,i,e);return we.isObj(s)?ve.clone(s):s}static find(t,e,r=null){let i=be.first(t);if(!1===ve.has(this.$data,i))return r;if(!1===ve.has(e,"id"))return r;let s=be.findIndex(this.get(i),{id:e.id});return-1===s?r:this.get(i+"."+s)}static replace(t,e){let r=be.first(t);if(!1===ve.has(this.$data,r))return;if(!1===ve.has(e,"id"))return;let i=be.findIndex(this.get(r),{id:ye.int(e.id)});-1!==i&&this.set(r+"."+i,e)}static add(t,...e){this.set(t,be.concat(this.get(t,[]),e))}static remove(t,...e){this.set(t,be.diff(this.get(t,[]),e))}}e=n,i={},(r=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+""}(r="$data"))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i;const o=n;class a{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),i=Pe.replace(i,e),we.isEmpty(r)||(i+="?"+pe.castParams(e)),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}(a,"$routes",{});const l=a;function u(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 c{constructor(t,e={}){if(u(this,"map",null),u(this,"markers",{}),u(this,"cluster",null),u(this,"clusterFilter",null),u(this,"clusterOptions",{}),!globalThis.google)throw new Error("Google Maps is required for pi.Map");let r=ve.only(e,["lat","lng"]);ve.has(e,"styles")||(e.styles=Map.mapStyle),e=ve.assign({gestureHandling:"cooperative",scrollwheel:null,zoom:12,center:r},ve.except(e,["lat","lng"])),this.map=new globalThis.google.maps.Map(de.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(!ve.has(e,"default"))return console.error("Marker style requires default property");ve.has(e,"width")||(e.width=45),ve.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},ve.has(e,"hover")&&(i.hover=ve.assign({},i.default,{url:e.hover})),ve.has(i,"hover")||(i.hover=i.default),ve.has(e,"active")&&(i.active=ve.assign({},i.default,{url:e.active})),ve.has(i,"active")||(i.active=i.default),ve.each(r,(t,e)=>{i[e]=ve.assign({},i.default,{url:t})}),ve.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!");ve.has(t,"imagePath")||ve.has(t,"styles")||(t.imagePath="//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"),this.cluster&&this.cluster.clearMarkers(),we.isFunction(e)&&(this.clusterFilter=e);let i=be.filter(this.markers,t=>{let e=this.getMarkerVisibility(t.key);return we.isFunction(this.clusterFilter)?e&&this.clusterFilter.call(this,t):e});this.cluster=new globalThis.MarkerClusterer(this.map,be.each(i,t=>t.marker),this.clusterOptions=t)}styleMarker(t,e=null){let r=ve.get(this.markers,t);if(we.isEmpty(r))return console.error(`Marker "${t}" not found`);we.isEmpty(e)&&(e=this.getInfoVisibility(t)?"active":"default"),ve.has(Map.markerStyles,[r.style,e])&&r.marker.setIcon(ve.get(Map.markerStyles,[r.style,e]))}getMarker(t){return ve.get(this.markers,t)}getMarkerVisibility(t,e=!1){let r=ve.get(this.markers,t);return we.isEmpty(r)?e:r.marker.getVisible()}getMarkerPositon(t,e=null){let r=ve.get(this.markers,t);return we.isEmpty(r)?e:r.marker.getPosition()}toggleMarker(t){let e=ve.get(this.markers,t);return we.isEmpty(e)?console.error(`Marker "${t}" not found`):e.marker.getVisible()?this.hideMarker(t):this.showMarker(t)}showMarker(t){let e=ve.get(this.markers,t);if(we.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=ve.get(this.markers,t);if(we.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=ve.get(this.markers,t);if(we.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=ve.get(this.markers,t);if(we.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=ve.get(this.markers,t);return we.isEmpty(r)||!ve.has(r,"info")?e:!!r.info.getMap()}toggleInfo(t){let e=ve.get(this.markers,t);return we.isEmpty(e)?console.error(`Marker "${t}" not found`):e.info.getMap()?this.closeInfo(t):this.openInfo(t)}openInfo(t){let e=ve.get(this.markers,t);if(we.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!ve.has(e,"info"))return!0;let r=!e.info.getMap();return Map.closeInfoWindows&&ve.each(we.keys(this.markers),this.closeInfo.bind(this)),r&&e.info.open(this.map,e.marker),we.isFunction(e.onOpen)&&e.onOpen(e),this.styleMarker(t,"active"),r}closeInfo(t){let e=ve.get(this.markers,t);if(we.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!ve.has(e,"info"))return!1;let r=!!e.info.getMap();return r&&e.info.close(),we.isFunction(e.onClose)&&e.onClose(e),this.styleMarker(t,"default"),r}createMarker(t=null,e={}){we.isEmpty(t)&&(t=Me.uuid());let r={key:t};return ve.has(e,"visible")||(e.visible=!0),r.extras=ve.except(e,["map","position","lat","lng","html","style","visible","onOpen","onClose"]),ve.has(e,"map")||(e.map=this.map),ve.has(e,"position")||(e.position=ve.only(e,["lat","lng"])),ve.has(e,"style")&&(r.style=e.style),r.marker=new globalThis.google.maps.Marker(e),e.visible||r.marker.setVisible(!1),ve.assign(r,{onOpen:ve.get(e,"onOpen"),onClose:ve.get(e,"onClose")}),ve.set(this.markers,t,r),this.clusterMarkers(this.clusterOptions,null,!1),ve.has(e,"html")?(ve.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">'+ve.get(e,"html")+"</div>"}),r.marker.addListener("click",()=>this.toggleInfo(t)),r.info.addListener("closeclick",()=>this.closeInfo(t)),r.info.addListener("domready",()=>Oe.fire("MapsDomReady")),ve.set(this.markers,t,r),ve.get(this.markers,t)):ve.get(this.markers,t)}setMarkerPosition(t,e={}){let r=ve.get(this.markers,t);if(we.isEmpty(r))return console.error(`Marker "${t}" not found`);r.marker.setPosition(e)}setMarkerByAddress(t,e){return this.getLocationByAddress(e,e=>{this.setMarkerPosition(t,ve.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 we.isEmpty(t)||(e=ve.filter(this.markers,t)),Map.hideMarkers&&ve.each(we.keys(this.markers),this.hideMarker.bind(this)),ve.each(e,t=>this.showMarker(t.key)),this.clusterMarkers(this.clusterOptions,null,!1),this}getMarkerBoundry(t=null){let e=this.markers;we.isEmpty(t)||(e=ve.filter(this.markers,t));let r=new globalThis.google.maps.LatLngBounds;return ve.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;ve.has(t,"map")||(t.map=this.map),ve.has(t,"travelMode")||(t.travelMode="DRIVING"),r.setMap(t.map),ve.has(t,"panel")&&!de.find(t.panel).empty()&&r.setPanel(de.find(t.panel).get(0)),t=ve.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)})})}}u(c,"mapStyle",[]),u(c,"markerStyles",{}),u(c,"hideMarkers",!0),u(c,"closeInfoWindows",!0);const h=c;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 listen(){document.addEventListener("scroll",f.scroll),f.scroll()}static scroll(){be.each(this.invi,(t,e)=>{de.find(t.el).inviewY()&&(be.removeIndex(this.invi,e),t.cb())})}static alias(t,e){return ve.set(this.inis,t,e),this}static bind(t,e,r={}){let i=de.find(e),s=this.getPrefix(t);i.addClass(s);let n=ve.get(this.inis,t,null);if(we.isEmpty(n))return console.error(`Element "${t}" is not defined.`);let o=(t,e)=>{let r=new n(t.get(0),e);return f.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 de.ready(()=>o.call({},i,r)),this}static unbind(t,e,r={}){let i=de.find(e),s=this.getPrefix(t),n=ve.get(this.inis,t,null);if(we.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),be.remove(f.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=f.getPrefix(t),s=be.filter(this.runs,{prefix:r});be.each(s,({el:i})=>{let s=ge.objectify(de.find(i).attr(r));if(e&&we.isEmpty(s)&&(s={_plain:de.find(i).attr(r)}),ve.pluck(s,"inview",!1)&&be.remove(this.invi,{el:i}),!document.body.contains(i))return this.unbind(t,i,s)}),de.find(`[${r}]:not(.${i})`).each(i=>{let s=ge.objectify(de.find(i).attr(r));e&&we.isEmpty(s)&&(s={_plain:de.find(i).attr(r)});let n=()=>{this.bind(t,i,s)};ve.pluck(s,"inview",!1)?this.bindInview(i,n):n()})};return de.find(document.body).observer(s)(document.body,i),de.find(document.body).on("dom.change",s),this}static bindInview(t,e){be.add(this.invi,{el:t,cb:e},{el:t})}static unbindInview(t,e){be.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}}d(f,"prefix","js"),d(f,"mount","mount"),d(f,"inis",{}),d(f,"runs",[]),d(f,"invi",[]);const p=f;function m(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:{}}class g{static filterNodes(t,e=1){return be.filter(we.nodes(t),t=>t.nodeType===e)}static getNodePoint(t,e){let r=null;return null!=de.doc().elementsFromPoint&&(r=document.elementsFromPoint(t,e)),null!=de.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=de.getNodePoint(s,n)),we.isArr(r)&&(r=be.first(r)),null==r&&(r=e.target),r.closest(t)}}class y{static _constructFinder(t){return"string"==typeof t&&(t=document.querySelectorAll(t)),t instanceof NodeList&&(t=we.nodes(t)),t}getNodeType(t=-1){return this.el?this.el.nodeType:t}getNodeParent(t=null){return this.el?de.find(this.el.parentNode):t}getNodePrev(t=null){return this.el?de.find(this.el.previousSibling):t}getNodeNext(t=null){return this.el?de.find(this.el.nextSibling):t}getNodeChilds(t=-1,e=[]){if(!this.el)return e;let r=we.nodes(this.el.childNodes);return-1===t?r:be.filter(r,e=>e.nodeType===t)}sanatize(t=1){return this.els=de.filterNodes(this.els,t),this}filter(t){return"function"!=typeof t&&(t=e=>de.find(e).is(t)),be.filter(this.els,t)}except(t){return"function"!=typeof t&&(t=e=>!de.find(e).is(t)),be.filter(this.els,t)}find(t){if(null==this.el)return de.find(null);let e=this.el;e instanceof Window&&(e=document.body);let r=t;return we.isStr(r)&&(r=e.querySelectorAll(t)),de.find(r)}get(t=-1){let e=this.els;return-1===t?e:be.get(e,t)}first(t=0){return this.get(t)}last(t=1){return be.get(this.els,this.els.length-t)}each(t){return be.each(this.els,t)}loopParent(t,e=null){null==e&&(e=de.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?de.find(null):t}child(t,e=1){for(let t of this.els)if(t.nodeType===e)return de.find(t);return de.find(null)}childs(t=null,e=1){let r=this.getNodeChilds(e);return null==t?r:be.filter(r,e=>de.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}prev(t=1){let e=this.getNodePrev();for(;null!=e;e=e.getNodePrev())if(e.getNodeType()===t)return de.find(e);return de.find(null)}next(t=1){let e=this.getNodeNext();for(;null!=e;e=e.getNodeNext())if(e.getNodeType()===t)return de.find(e);return de.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 null!=this.find(t)}}y.prototype.isParent=function(...t){return console.warn("Dom.isParent() is deprecated, use Dom.above() instead."),this.above(...t)},y.prototype.previous=function(){return console.warn("Dom.previous() is deprecated, use Dom.prev() instead."),this.prev()},y.prototype.where=function(...t){return console.warn("Dom.where() is deprecated, use Dom.filter() instead."),this.filter(...t)},y.prototype.not=function(...t){return console.warn("Dom.not() is deprecated, use Dom.except() instead."),this.except(...t)},y.prototype.getNot=()=>{console.error("Dom.getNot() is not implemented anymore.")};class b{}class v{value(t=void 0){return void 0===t?this.el.value:(this.each(e=>{e.value=t}),this)}}class w{}!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}(w,"events",[]);class M{bind(t,e,r,i=null,s=!1,n={}){return we.isPrim(n)&&(n={id:n}),de.events=be.append(de.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={}){we.isPrim(i)&&(i={id:i});let s=be.filterIndex(de.events,{el:t,event:e,selector:r,options:i});if(0===s.length)return;return be.each(s.reverse(),r=>{var i;t.removeEventListener(...(i=de.events[r],[e,i.cb,i.options]))}),be.splices(de.events,s),this}on(t,e,r={},i=!1,s=null){if(we.isPrim(r)&&(r={id:r}),we.isArr(t))return be.each(t,t=>this.on(t,...arguments)),this;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 we.isArr(t)?(be.each(t,t=>this.off(t,...arguments)),this):(we.isObj(e)&&(r=e,e=null),this.each(i=>{this.unbind(i,t,e,r)}),this)}once(t,e,r={}){return r.id=Me.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=de.getNodeEvent(e,t);null!=i&&r.call({},t,i)},i,s,e),this}fire(t){let e=new Event(t);return this.each(t=>{t.dispatchEvent(e)}),this}}M.prototype.one=function(...t){return console.warn("Dom.one() is deprecated, use Dom.once() instead."),this.once(...t)},M.prototype.delayed=function(){console.error("Dom.delayed() is not implemented anymore.")},M.prototype.pause=function(){console.error("Dom.pause() is not implemented anymore.")},M.prototype.unpause=function(){console.error("Dom.unpause() is not implemented anymore.")};class O{static make(t,e={}){t instanceof de&&(t=t.el),we.isStr(t)&&(t=document.createElement(t)),t=ve.assign(t,e);let r=new de(t);return e.class&&r.class(e.class),e.html&&r.html(e.html),r}}class P{prepend(t){return this.each(e=>{null!=e.prepend&&e.prepend(t)}),this}prependTo(t){return de.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 de.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 D{static getDomState(){return document.readyState}static isDomReady(){return"complete"===de.getDomState()}static isDomComplete(){let t=de.getDomState();return"complete"===t||"interactive"===t}static ready(t,e=0,r=6e3){let i=()=>{me.delay(t,e)},[s,n]=[de.find(document),"DOMContentLoaded"],o=de.isDomReady;return o()?(me.wait(()=>{if(o())return i(),!0},10,r),this):(s.on(n,i),this)}static complete(t,e=0,r=6e3){let i=()=>{me.delay(t,e)},[s,n]=[de.find(document),"load"],o=de.isDomComplete;return o()?(me.wait(()=>{if(o())return i(),!0},10,r),this):(s.on(n,i),this)}}D.required=()=>{console.error("Dom.required() is not implemented anymore.")};class k{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 me.wait(()=>{if(r.call(this))return t(),!0},10,e),this}}function $(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 j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$(Object(r),!0).forEach(function(e){N(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function N(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 S{static num(t){return"string"==typeof t&&(t=t.replace(/(^\s+|\s$|px)/g,"")),we.num(t,0)}}class x{margin(t=null,e=0){let r=this.computed(),i={top:de.num(r.marginTop),right:de.num(r.marginRight),bottom:de.num(r.marginBottom),left:de.num(r.marginLeft)};return null==t?i:ve.get(i,t,e)}padding(t=null,e=0){let r=this.computed(),i={top:de.num(r.paddingTop),right:de.num(r.paddingRight),bottom:de.num(r.paddingBottom),left:de.num(r.paddingLeft)};return null==t?i:ve.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:de.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=de.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:de.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=de.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:ve.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=de.body());for(let r=this.el;r&&r!==e;r=r.offsetParent)t.call({},r);return this}calcOffset(t,e,r){let i={right:de.body().scrollWidth-t.left-e,bottom:de.body().scrollHeight-t.top-r};return j(j({},t),i)}getOffset(t=null){null==t&&(t=de.body());let e,r={top:0,left:0,bottom:0,right:0};if(null==this.el)return r;e=t=>{r.top+=de.num(t.offsetTop,0),r.left+=de.num(t.offsetLeft,0)},this.loopOffset(e),r=this.calcOffset(r,this.width(),this.height());let i=de.find(t),s={top:0,left:0,bottom:0,right:0};return e=t=>{s.top+=de.num(t.offsetTop,0),s.left+=de.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:ve.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=de.win());let e,r={top:0,left:0};if(null==this.el)return r;e=t=>{r.top+=de.num(t.scrollTop||t.pageYOffset||0),r.left+=de.num(t.scrollLeft||t.pageXOffset||0)},this.loopParent(e);let i={top:0,left:0};return e=t=>{i.top+=de.num(t.scrollTop||t.pageYOffset||0),i.left+=de.num(t.scrollLeft||t.pageXOffset||0)},de.find(t).loopParent(e),{top:r.top-i.top,left:r.left-i.left}}}x.prototype.loopOffsetParent=function(...t){return console.warn("Dom.loopOffsetParent() is deprecated, use Dom.loopOffset() instead."),this.loopOffset(...t)},x.prototype.scrollTopGlobal=function(){return console.warn("Dom.scrollTopGlobal() is deprecated, use Dom.scroll('top') instead."),this.scroll("top",null)},x.prototype.scrollLeftGlobal=function(){return console.warn("Dom.scrollLeftGlobal() is deprecated, use Dom.scroll('left') instead."),this.scroll("left",null)};function Y(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 I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach(function(e){E(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function E(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 T{}class A{attr(t,e=void 0,r=null){if(null==this.el)return e?this:r;let i=this.el.getAttribute(t);return we.isUndef(e)?i||r:null===e?(this.el.removeAttribute(t),i):(we.isArr(e)&&(e=e.join(" ")),we.isObj(e)&&(e=pe.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:ve.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 we.isStr(r)&&(r=pe.parseOptions(r)),we.isUndef(t)?r:(e&&(t=I(I({},r),t)),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 we.isStr(r)&&(r=r.split(" ")),we.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 we.isArr(t)||(t=[t]),be.isect(this.class(),t).length>0}addClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>de.find(e).addClass(t));let e=this.el.className.split(" ");return we.isStr(t)&&(t=t.split(" ")),e=be.append(e,...t),this.el.className=be.unique(e).join(" "),this}remClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>de.find(e).remClass(t));let e=this.el.className.split(" ");return we.isStr(t)&&(t=t.split(" ")),e=be.diff(e,t),this.el.className=be.unique(e).join(" "),this}toggleClass(t){return this.els.length>1?this.each(e=>de.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=>de.find(e).stateClass(t)):e?this.addClass(t):this.remClass(t)}}A.prototype.css=function(...t){return console.warn("Dom.css() is deprecated, use Dom.style() instead."),this.style(...t)},A.prototype.removeClass=function(...t){return console.warn("Dom.removeClass() is deprecated, use Dom.remClass() instead."),this.remClass(...t)};function H(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 F(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?H(Object(r),!0).forEach(function(e){C(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function C(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 L{static inviewMaxY(t,e=null){if(we.isString(t)&&(t={el:t}),!(t=F(F({},{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 de.find(t.el).each(t=>{(t=>de.find(t).isInviewY(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:be.first(i)}static inviewMaxX(t,e=null){if(we.isString(t)&&(t={el:t}),!(t=F(F({},{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 de.find(t.el).each(t=>{(t=>de.find(t).isInviewX(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:be.first(i)}}class G{viewoffX(){if(null==this.el)return{top:0,bot:0};let[t,e]=[de.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}=de.find(t).viewoffY(),[i,s]=[de.win().innerHeight-r-e,this.height()],[n,o]=[this.offset("left")+e,this.scroll("left")+e],a=Math.max(0,o+i-n+e);return a>s&&(a=Math.min(s,i+s-a)),Math.max(0,a)}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]=[de.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}=de.find(t).viewoffY(),[i,s]=[de.win().innerHeight-r-e,this.height()],[n,o]=[this.offset("top")+e,this.scroll("top")+e],a=Math.max(0,o+i-n+e);return a>s&&(a=Math.min(s,i+s-a)),Math.min(Math.max(0,a),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}}G.prototype.inviewHeight=function(...t){return console.warn("Dom.inviewHeight() is deprecated, use Dom.inviewY() instead."),this.inviewY(...t)},G.prototype.inviewWidth=function(...t){return console.warn("Dom.inviewWidth() is deprecated, use Dom.inviewX() instead."),this.inviewX(...t)};class R{static setMetaTitle(t,e=":value - :title"){return this.$meta.title||(this.$meta.title=de.doc().title),document.title=Pe.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}(R,"$meta",{}),R.title=t=>(console.warn("Dom.title() is deprecated, use Dom.setMetaTitle() instead."),de.setMetaTitle(t));class W{}class B{}class q{value(t=void 0){return void 0===t?this.el.value:(this.each(e=>{e.value=t}),this)}}function X(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 U=[function(t){return ve.each(we.class(g),(e,r)=>{t[r]=e}),ve.each(we.proto(y),(e,r)=>{t.prototype[r]=e}),t.init.push(y._constructFinder),t},function(t){return ve.each(we.class(D),(e,r)=>{t[r]=e}),ve.each(we.proto(k),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.class(b),(e,r)=>{t[r]=e}),ve.each(we.proto(v),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.class(w),(e,r)=>{t[r]=e}),ve.each(we.proto(M),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.class(O),(e,r)=>{t[r]=e}),ve.each(we.proto(P),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.class(S),(e,r)=>{t[r]=e}),ve.each(we.proto(x),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.class(T),(e,r)=>{t[r]=e}),ve.each(we.proto(A),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.class(L),(e,r)=>{t[r]=e}),ve.each(we.proto(G),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.class(R),(e,r)=>{t[r]=e}),ve.each(we.proto(W),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.class(B),(e,r)=>{t[r]=e}),ve.each(we.proto(q),(e,r)=>{t.prototype[r]=e}),t}];class V{constructor(t,...e){X(this,"el",null),X(this,"els",[]),be.each(de.init,r=>{t=r.call(this,t,...e)}),t instanceof de&&(t=t.el),we.isArr(t)||(t=[t]),this.el=t[0],this.els=t}static find(t,...e){return new de(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:{}}}X(V,"init",[]);const z=function(){let t=V;for(const e of U)t=e.call(t,t);return t},J={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 _{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){we.isNum(t)||(t=we.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)+we.int(t),e),this}sub(t,e="day"){return/^days?$/i.test(e)&&(e="date"),this.set(this.get(e)-we.int(t),e),this}isModifible(t){return/^(\s*[+-][0-9]+\s?[a-z]+\s*)+$/i.test(t)}modify(t){return we.isEmpty(t)||ve.each(J,(e,r)=>{ge.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=fe.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"])}}PicoNowGridInstance.prototype.addSecond=function(t){return console.warn("Now.addSecond() is deprecated, use Now.add(value, 'second') instead."),this.add(t,"second")},PicoNowGridInstance.prototype.subSecond=function(t){return console.warn("Now.subSecond() is deprecated, use Now.sub(value, 'second') instead."),this.sub(t,"second")},PicoNowGridInstance.prototype.addMinute=function(t){return console.warn("Now.addMinute() is deprecated, use Now.add(value, 'minute') instead."),this.add(t,"minute")},PicoNowGridInstance.prototype.subMinute=function(t){return console.warn("Now.subMinute() is deprecated, use Now.sub(value, 'minute') instead."),this.sub(t,"minute")},PicoNowGridInstance.prototype.addHour=function(t){return console.warn("Now.addHour() is deprecated, use Now.add(value, 'hour') instead."),this.add(t,"hour")},PicoNowGridInstance.prototype.subHour=function(t){return console.warn("Now.subHour() is deprecated, use Now.sub(value, 'hour') instead."),this.sub(t,"hour")},PicoNowGridInstance.prototype.addDates=function(t){return console.warn("Now.addDates() is deprecated, use Now.add(value, 'date') instead."),this.add(t,"date")},PicoNowGridInstance.prototype.subDates=function(t){return console.warn("Now.subDates() is deprecated, use Now.sub(value, 'date') instead."),this.sub(t,"date")},PicoNowGridInstance.prototype.addMonths=function(t){return console.warn("Now.addMonths() is deprecated, use Now.add(value, 'month') instead."),this.add(t,"month")},PicoNowGridInstance.prototype.subMonths=function(t){return console.warn("Now.subMonths() is deprecated, use Now.sub(value, 'month') instead."),this.sub(t,"month")},PicoNowGridInstance.prototype.addYears=function(t){return console.warn("Now.addYears() is deprecated, use Now.add(value, 'year') instead."),this.add(t,"year")},PicoNowGridInstance.prototype.subYears=function(t){return console.warn("Now.subYears() is deprecated, use Now.sub(value, 'year') instead."),this.sub(t,"year")},PicoNowGridInstance.prototype.addDecades=function(t){return console.warn("Now.addDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.add(10*t,"year")},PicoNowGridInstance.prototype.subDecades=function(t){return console.warn("Now.subDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.sub(10*t,"year")},PicoNowGridInstance.prototype.humanDay=function(){return console.warn("Now.humanDay() is deprecated, use Now.day() instead."),this.day()},PicoNowGridInstance.prototype.humanMonth=function(){return console.warn("Now.humanMonth() is deprecated, use Now.month() instead."),this.month()};const K={L:"DD/MM/YYYY",LL:"MMMM DD, YYYY",LLL:"MMMM DD, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},Z={second:"ss",minute:"mm",hour:"HH",date:"DD",month:"MM",year:"YYYY"};class Q{isParsable(t,e="YYYY-MM-DD HH:mm:ss"){for(const r in Z)t=ge.replace(t,Z[r],e);return t===e}parse(t,e="YYYY-MM-DD HH:mm:ss"){return we.isTime(t)&&(e="HH:mm:ss"),we.isDate(t)&&(e="YYYY-MM-DD"),this.isModifible(t)?this.modify(t):we.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 Z)this.set(ge.extract(t,Z[r],e),r);return this}format(t="YYYY-MM-DD HH:mm:ss"){return ve.has(K,t)&&(t=Pe.trans(K[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",()=>ge.integer(this.year(),4))).replace("MM",()=>ge.integer(this.month(),2))).replace("DD",()=>ge.integer(this.date(),2))).replace("HH",()=>ge.integer(this.hour(),2))).replace("mm",()=>ge.integer(this.minute(),2))).replace("ss",()=>ge.integer(this.second(),2))).replace("YY",()=>ge.integer(this.shortyear(),2))).replace("X",()=>ge.integer(this.time()))).replace("x",()=>ge.integer(this.time()/1e3))}code(t="X"){return we.int(this.format(t))}}class tt{before(t=null,e="x"){return this.code(e)<fe.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)>fe.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 fe||(t=fe.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=[fe.make(t),fe.make(e)];return i[0].after(i[1],r)&&(i=i.reverse()),this.after(i[0],r)&&this.before(i[1],r)}}class et{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),be.make(60/t,e=>this.clone().second(e*t))}getMinutesGrid(t=1){return null==t&&(t=1),be.make(60/t,e=>this.clone().minute(e*t))}getHoursGrid(t=1){return null==t&&(t=1),be.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")}}et.prototype.getYears=function(){return console.warn("Now.getYears() is deprecated, use Now.grid('years') instead."),this.grid("years")},et.prototype.getMonths=function(){return console.warn("Now.getMonths() is deprecated, use Now.grid('months') instead."),this.grid("months")},et.prototype.getDates=function(){return console.warn("Now.getDates() is deprecated, use Now.grid('dates') instead."),this.grid("dates")},et.prototype.getHours=function(){return console.warn("Now.getHours() is deprecated, use Now.grid('hours') instead."),this.grid("hours")},et.prototype.getMinutes=function(){return console.warn("Now.getMinutes() is deprecated, use Now.grid('minutes') instead."),this.grid("minutes")},et.prototype.getSeconds=function(){return console.warn("Now.getSeconds() is deprecated, use Now.grid('seconds') instead."),this.grid("seconds")};class rt{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=[],s=[this.clone(),fe.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))be.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 st=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],nt=["January","February","March","April","May","June","July","August","September","October","November","December"];class ot{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(!st[e])throw new Error(`Invalid day number "${e}".`);let r=Pe.trans(st[e]);return null!=t&&(r=r.substring(0,t)),r}getHumanMonth(t=null){let e=this.day()-1;if(!nt[e])throw new Error(`Invalid month number "${e}".`);let r=Pe.trans(nt[e]);return null!=t&&(r=r.substring(0,t)),r}}function at(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 lt=[function(t){return ve.each(we.proto(_),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.proto(Q),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.proto(tt),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.proto(et),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.proto(rt),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.proto(it),(e,r)=>{t.prototype[r]=e}),t},function(t){return ve.each(we.proto(ot),(e,r)=>{t.prototype[r]=e}),t}];class ut{constructor(t=null,e="YYYY-MM-DD HH:mm:ss"){at(this,"input",null),at(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,we.isNix(r)&&(this.input=r),this.value=t,we.isStr(r)&&this.parse(r,e),be.each(fe.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 fe(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 fe(new Date(this.value),null,t)}valid(){return!isNaN(this.input)}toDate(){return this.value}toUTC(){return this.value.toUTCString()}}at(ut,"init",[]),ut.prototype.resetTime=function(){return console.warn("Now.resetTime() is deprecated, use Now.reset({ time: true }) instead."),this.reset({time:!0})};const ct=function(){let t=ut;for(const e of lt)t=e.call(t,t);return t},ht=[{match:t=>/^(null|undefined)$/i.test(t),parse:t=>we.null(t)},{match:t=>/^(true|false|yes|no)$/i.test(t),parse:t=>we.bool(t)},{match:t=>/^-?[0-9]+$/.test(t),parse:t=>we.int(t)},{match:t=>/^-?[0-9]+\.[0-9]+$/.test(t),parse:t=>we.num(t)},{match:t=>/^[{\[].*?[}\]]$/.test(t),parse:t=>JSON.parse(t)}],dt=[{match:t=>we.isArr(t),parse:t=>JSON.stringify(t)}];class ft{static keyed(t,e=null){return we.isStr(t)?-1===t.indexOf("[")?t:t.replace(/\[([^\]]+)\]/g,".$1"):e}static parsed(t,e=null,r=[]){if(!we.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 ht)if(e.match(t))return e.parse(t);return t}static casted(t,e=!1,r=[]){if(e&&(t=encodeURI(t)),we.isStr(t))return t;for(let e of r)if(e.match(t))return e.parse(t);for(let e of dt)if(e.match(t))return e.parse(t);return we.str(t)}}const pt={entry:/(?<=^|&|\?)(\s*(?<key>.*?)\s*=\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=&|$)/g};class mt{static castParams(t={}){if(we.isEmpty(t))return"";return be.each(t,(t,e)=>this.castParam(e,t)).join("&")}static castParam(t,e,r=null){if(null!=r&&(t=r+"["+t+"]"),!we.isRef(e))return we.str(t)+"="+pe.casted(e,!0);return be.each(e,(r,i)=>this.castParam(we.isArr(e)?"":i,r,t)).join("&")}static parseParams(t){if(we.isEmpty(t))return{};let e=(t=decodeURIComponent(t)).matchAll(pt.entry);if(null==e)return{};const[r,i]=[pe.keyed,pe.parsed];return be.reduce(Array.from(e),(t,{groups:e})=>ve.set(t,r(e.key),i(e.val)),{})}}const gt={entry:/(^|;)(\s*(?<key>.*?)\s*:\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=;|$)/g};class yt{static castOptions(t={},e=!0){if(we.isEmpty(t))return"";return be.each(t,(t,r)=>this.castOption(r,t,null,e)).join(";")+";"}static castOption(t,e,r=null,i=!0){null!=r&&(t=r+"."+t);let s=i?": ":":";return we.isObj(e)?be.map(e,(e,r)=>this.castOption(r,e,t)).join(";"):we.str(t)+s+pe.casted(e,!1)}static parseOptions(t){if(we.isEmpty(t))return{};let e=t.matchAll(gt.entry);if(null==e)return{};const[r,i]=[pe.keyed,pe.parsed];return be.reduce(Array.from(e),(t,{groups:e})=>ve.set(t,r(e.key),i(e.val)),{})}}const bt=[["à","a"],["á","a"],["â","a"],["è","e"],["é","e"],["ê","e"],["ì","i"],["í","i"],["ï","i"],["î","i"],["ò","o"],["ó","o"],["ô","o"],["ù","u"],["ú","u"],["û","u"],["ñ","n"],["ç","c"],[".","-"],["·","-"],["/","-"],["_","-"],[",","-"],[":","-"],[";","-"],["ä","ae"],["ö","oe"],["ü","ue"],["ß","ss"]];class vt{static slugify(t){return t=String(t).replace(/(^\s+|\s+$)/g,"").toLowerCase(),be.each(bt,e=>{t=t.replaceAll(e[0],e[1])}),t.replace(/[^a-z0-9-\s]+/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}}const wt=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];class Mt{static filesize(t,e=1){we.isNum(t)||(t=we.num(t,0));let r=r=>ye.fixed(t/Math.pow(1e3,r),e);for(let e=0;e<wt.length;e++)if(t<=Math.pow(1e3,e+1))return r(e)+" "+wt[e];return r(wt.length)}}const Ot=[function(t){return ve.each(we.class(ft),(e,r)=>{t[r]=e}),t},function(t){return ve.each(we.class(mt),(e,r)=>{t[r]=e}),t},function(t){return ve.each(we.class(yt),(e,r)=>{t[r]=e}),t},function(t){return ve.each(we.class(vt),(e,r)=>{t[r]=e}),t},function(t){return ve.each(we.class(Mt),(e,r)=>{t[r]=e}),t}];class Pt{static extend(t){t.call({},this)}}const Dt=function(){let t=Pt;for(const e of Ot)t=e.call(t,t);return t};function kt(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 $t{static timeout(t,e=0,r=null){let i=$t.$idler.native;return null==r&&(r=Me.make(12)),i[r="t-"+r]=setInterval(()=>{t()},e),r}static interval(t,e=0,r=null){let i=$t.$idler.native;return null==r&&(r=Me.make(12)),i[r="i-"+r]=setInterval(()=>{t()},e),r}static clear(t,e="native"){if(we.isArr(t))return be.each(t,t=>this.clear(t,e)),this;let r=$t.$idler[e];return!1===/^i-/.test(t)&&clearInterval(r[t]),!1===/^t-/.test(t)&&clearTimeout(r[t]),this}static wait(t,e=0,r=500){let i,s;s=this.timeout(()=>{this.clear([i,s])},e*r),i=this.interval(()=>{t()&&this.clear([i,s])},e)}static frame(t,...e){return requestAnimationFrame(function(){t(...e)}),this}static async(t,...e){return setTimeout(()=>{t(...e)}),this}static delay(t,e=0,...r){let i=setTimeout(()=>{this.async(t,...r)},e);return()=>clearTimeout(i)}static debounce(t,e=100,r=null){let i=$t.$idler.debounce;return null==r&&(r=Me.make(12)),(...s)=>{i[r]&&clearTimeout(i[r]),i[r]=setTimeout(()=>{this.frame(t,...s)},e)}}static throttle(t,e=100,r=null){let i,s=$t.$idler.throttle;return null==r&&(r=Me.make(12)),(...n)=>{s[r]&&clearTimeout(s[r]),s[r]=setTimeout(()=>{i=!1},e),i||(this.frame(t,...n),i=!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){return(i,...s)=>{be.replace($t.$buffer,{key:e,cb:t,order:r,args:[i,...s],active:!0},{key:e}),i.preventDefault(),$t.runFramebuffer()}}static runFramebuffer(){if(this.$timer.func&&this.$timer.func(),this.$timer.func=this.delay(()=>{this.runFramebuffer()},50),Date.now()-this.$timer.date<=50)return;this.$timer.func&&this.$timer.func(),this.$timer.date=Date.now();let t=be.filter(this.$buffer,{active:!0});0!==t.length&&this.frame(()=>{be.each(be.sort(t,"order"),t=>{t.cb(...t.args),t.active=!1})})}}kt($t,"$idler",{native:{},debounce:{},throttle:{}}),kt($t,"$timer",{date:0,func:null}),kt($t,"$buffer",[]);const jt=$t;var Nt;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 xt(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 Yt{static get(t,e){return we.isStr(t)||(t=we.str(t)),we.isInt(e)&&(e=we.int(e)),t.charAt(e)}static set(t,e,r=""){return we.isStr(t)||(t=we.str(t)),we.isInt(e)&&(e=we.int(e)),t.substring(0,e)+r+t.substring(e+r.length)}static replace(t,e,r=null){we.isNull(r)&&(r=t);let i=r.indexOf(e);return-1===i?t:this.set(t,i,e)}static extract(t,e,r=null){we.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=we.str(t).match(e);return we.isEmpty(i)?[]:we.isFunc(r)?r(i):i}static regex(t){return we.str(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static uc(t){return we.str(t).toUpperCase()}static ucfirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lc(t){return we.str(t).toLowerCase()}static lcfirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static cc(t){return be.each(pe.slugify(t).split("-"),(t,e)=>e?this.ucfirst(t):t).join("")}static kc(t){return pe.slugify(t)}static sc(t){return pe.slugify(t).replace("-","_")}static pc(t){return be.each(pe.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=we.str(t).indexOf(e);return-1===i?r:[i,i+e.length]}static slice(t,e,r){return we.str(t).slice(e,r)}static string(t,e="-",r=!1){return we.isEmpty(t)?e:(t=we.str(t),r?t:t.replace(/<[^>]*>?/gm,""))}static boolean(t,e="Yes",r="No",i="-"){return we.isEmpty(t)?i:we.bool(t)?e:r}static number(t,e=null,r=null,i={}){return we.isNum(t)?(null==r&&(r=Pe.code()),i=function(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){xt(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}({maximumFractionDigits:12},i),null!=e&&(i.minimumFractionDigits=e,i.maximumFractionDigits=e),we.num(t).toLocaleString(r,i)):t}static integer(t,e=0,r="0"){return we.isNum(t)?(we.isInt(t)||(t=we.int(t)),t=we.int(t),e?we.str(t).padStart(e,r):we.str(t)):t}static datetime(t,e="YYYY-MM-DD HH:mm:ss",r="-"){return we.isDate(t)||(t=fe.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 we.isRef(t)?t:("params"===e&&(t=pe.parseParams(t)),"options"===e&&(t=pe.parseOptions(t)),we.isRef(t)||(t=JSON.parse(t)),r?we.vals(t):t)}static stringify(t,e="options"){return we.isStr(t)?t:"params"===e?pe.castParams(t):"options"===e?pe.castOptions(t):JSON.stringify(t)}}xt(Yt,"upper",(Nt=Yt).uc),xt(Yt,"lower",Nt.lc),xt(Yt,"camelcase",Nt.cc),xt(Yt,"kebabcase",Nt.kc),xt(Yt,"snakecase",Nt.sc),xt(Yt,"pascalcase",Nt.pc),Yt.regexEscape=(...t)=>(console.warn("Str.regexEscape() is deprecated, use Str.regex() instead."),ge.regex(...t)),Yt.humancase=(...t)=>(console.warn("Str.humancase() is deprecated, use Str.pascalcase() instead."),ge.pascalcase(...t)),Yt.slugify=(...t)=>(console.warn("Str.slugify() is deprecated, use For.slugify() instead."),pe.slugify(...t)),Yt.options=(...t)=>(console.warn("Str.options() is deprecated, use For.castOptions() instead."),pe.castOptions(...t)),Yt.fromOptions=(...t)=>(console.warn("Str.fromOptions() is deprecated, use For.parseOptions() instead."),pe.parseOptions(...t)),Yt.params=(...t)=>(console.warn("Str.params() is deprecated, use For.castParams() instead."),pe.castParams(...t)),Yt.fromParams=(...t)=>(console.warn("Str.fromParams() is deprecated, use For.parseParams() instead."),pe.parseParams(...t)),Yt.filesize=(...t)=>(console.warn("Str.filesize() is deprecated, use For.filesize() instead."),pe.filesize(...t)),Yt.real=()=>{console.error("Str.real() is not implemented anymore.")},Yt.array=()=>{console.error("Str.array() is not implemented anymore.")};const It=Yt;function Et(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?Et(Object(r),!0).forEach(function(e){At(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function At(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 Ht{static fixed(t,e=2){return we.isNum(t)||(t=we.num(t)),t.toFixed(e)}static float(t){return we.isNum(t)||(t=we.num(t)),parseFloat(t)}static int(t){return we.isNum(t)||(t=we.num(t)),parseInt(t)}static ceil(t){return we.isNum(t)||(t=we.num(t)),Math.ceil(t)}static floor(t){return we.isNum(t)||(t=we.num(t)),Math.floor(t)}static round(t){return we.isNum(t)||(t=we.num(t)),Math.round(t)}static combine(t){return be.reduce(t,(t,e)=>t+e,0)}static subtract(t){return be.reduce(t,(t,e)=>t-e,0)}static decade(t){return we.isNum(t)||(t=we.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]=[Tt(Tt({},i),t),Tt(Tt({},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,a=this.combine([Math.sin(s)*Math.sin(n),Math.cos(s)*Math.cos(n)*Math.cos(o)]);return a=180*Math.acos(a>1?1:a)/Math.PI*60*1.1515,r?1.609344*a:a}}Ht.format=(t,...e)=>(console.warn("Num.format() is deprecated, use Str.number() instead."),ge.number(t,e[2]||null)),Ht.random=(...t)=>(console.warn("Num.random() is deprecated, use Hash.number() instead."),Me.number(...t));const Ft=Ht;class Ct{static all(t){return we.isArr(t)?t:[t]}static get(t,e,r=null){return we.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(!we.isPrim(e))return-1!==this.findIndex(t,e);return we.isArr(t)||(t=[t]),-1!==t.findIndex(t=>t==e)}static unique(t){let e={};for(const r of t)e[r]=!0;return we.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){let[i,s]=[we.isArr(t),we.keys(t)],n=t=>i?parseInt(t):t,o=new Array(s.length);for(let r=0;r<s.length;r++)o[r]=e(t[s[r]],n(s[r]));return null!=r?r:o}static map(t,e){let[r,i]=[we.isArr(t),we.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=[]){return null==t?t:this.map(t,s=>(this.recursive(s[e],e,r,[...i,t]),r(s,i)))}static filterIndex(t,e=null){return null==e&&(e=t=>!we.isEmpty(t)),we.keys(t).filter(r=>we.isFunc(e)?e.call({},t[r],r):we.isRef(e)?this.includes(t[r],e):e===t[r])}static filter(t,e=null){return null==e&&(e=t=>!we.isEmpty(t)),we.vals(t).filter((r,i)=>we.isFunc(e)?e.call({},r,i):we.isRef(e)?this.includes(r,e):e===t[i])}static findIndex(t,e=null,r=-1){null==e&&(e=t=>!we.isEmpty(t));for(let r=0;r<t.length;r++){if(we.isFunc(e)&&e.call({},t[r],r))return r;if(we.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 we.isFunc(e)?this.sortFunc(t,e):null!=e?this.sortDeep(t,e):this.sortPrim(t)}static sortFunc(t,e){let r=we.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=we.keys(t).sort((t,r)=>we.compare(ve.get(t,e),ve.get(r,e))),i=[];for(const e of r)i.push(t[e]);return i}static sortPrim(t){let e=we.keys(t).sort((t,e)=>we.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(we.isPrim(t))return t;if(we.isObj(t))return ve.clone(t);if(!we.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]=ve.get(t[i],e);return r}static reduce(t,e,r){return we.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(we.isObj(e))return ve.includes(t,e);if(!we.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 we.vals(e))r&&=-1!==we.vals(t).indexOf(i);return r}static matches(t,e){if(we.isObj(e))return ve.matches(t,e);if(!we.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}}Ct.removeIndex=(...t)=>(console.warn("Arr.removeIndex() is deprecated, use Arr.unset() instead."),be.unset(...t)),Ct.sortString=(...t)=>(console.warn("Arr.sortString() is deprecated, use Arr.sortPrim() instead."),be.sortPrim(...t)),Ct.push=(...t)=>(console.warn("Arr.push() is deprecated, use Arr.append() instead."),be.append(...t)),Ct.concat=(...t)=>(console.warn("Arr.concat() is deprecated, use Arr.merge() instead."),be.merge(...t)),Ct.equal=(...t)=>(console.warn("Arr.equal() is deprecated, use Arr.matches() instead."),be.matches(...t)),Ct.diffrence=(...t)=>(console.warn("Arr.diffrence() is deprecated, use Arr.diff() instead."),be.diff(...t)),Ct.intersect=(...t)=>(console.warn("Arr.intersect() is deprecated, use Arr.isect() instead."),be.isect(...t));const Lt=Ct;class Gt{static keyoptim(t,e=!1,r=null){return null===r&&(r=we.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=we.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=we.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=we.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&&be.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=we.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,a]=[e.pop(),0,e.length,t];if(0===o)return t;for(;null!=a&&n<o;)a=a[e[n++]];return null==a||delete a[s],t}static empty(t,e){return we.isEmpty(this.get(t,e))}static remove(t,e){if(!we.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 we.keys(t))i[r]=e(t[r],r);return null!=r?r:i}static map(t,e){let r={};for(let i of we.keys(t))r[i]=e(t[i],i);return r}static filterIndex(t,e=null){return be.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 we.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 we.keys(t))this.flattenForm(t[e],i(e),r);return r}static unpack(t,e={}){return be.each(we.keys(t),r=>{this.set(e,r,t[r])}),e}static assign(...t){return Object.assign(...t)}static clone(t,e=null){if(we.isPrim(t))return t;if(we.isArr(t))return be.clone(t);if(!we.isObj(t))return t;let r={};for(let e of we.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)=>{be.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)=>{be.has(e,r)||(i[r]=t)}),null==r?i:this.assign(i,r)}static includes(t,e){if(we.isArr(e))return be.includes(t,e);if(!we.isObj(e))return t===e;let r=we.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(we.isArr(e))return be.matches(t,e);if(!we.isObj(t))return t===e;let r=be.unique([...we.keys(e),...we.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}}Gt.values=(...t)=>(console.warn("Obj.values() is deprecated, use Mix.vals() instead."),we.vals(...t)),Gt.find=(...t)=>(console.warn("Obj.find() is deprecated, use Arr.find() instead."),be.find(...t)),Gt.findIndex=(...t)=>(console.warn("Obj.findIndex() is deprecated, use Arr.findIndex() instead."),be.findIndex(...t)),Gt.sort=(...t)=>(console.warn("Obj.sort() is deprecated, use Arr.sort() instead."),be.sort(...t)),Gt.sortString=(...t)=>(console.warn("Obj.sortString() is deprecated, use Arr.sortDeep() instead."),be.sortDeep(...t));const Rt=Gt;var Wt;function Bt(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 qt={iso:/^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/};class Xt{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.getPrototypeOf(t)===Object.prototype}static isArr(t){return null!=t&&Object.getPrototypeOf(t)===Array.prototype}static isIter(t){return!this.isArr(t)&&(!!this.isRef(t)&&this.isFunc(t.entries))}static isIsoDate(t){return t instanceof Date||qt.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.isIter(t)&&(t=this.iter(t)),Object.keys(t))}static vals(t){if(null==t)return[];if(this.isIter(t)&&(t=this.iter(t)),this.isArr(t)||!ue().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&&!be.has(e,i)&&(r[i]=t[i]);return r}static class(t,e=[]){return e=be.merge(e,["length","name","prototype","constructor"]),this.props(t,e)}static proto(t,e=[]){return e=be.merge(e,["constructor"]),this.props(t.prototype,e)}static form(t){let e=new FormData;return ve.each(ve.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 we.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 Pe.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"),be.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)}}Bt(Xt,"isPrimitive",(Wt=Xt).isPrim),Bt(Xt,"isString",Wt.isStr),Bt(Xt,"isNumber",Wt.isNum),Bt(Xt,"isInteger",Wt.isInt),Bt(Xt,"isBoolean",Wt.isBool),Bt(Xt,"isFunction",Wt.isFunc),Bt(Xt,"isReference",Wt.isRef),Bt(Xt,"isObject",Wt.isObj),Bt(Xt,"isArray",Wt.isArr),Bt(Xt,"isIterable",Wt.isIter),Bt(Xt,"length",Wt.len),Bt(Xt,"array",Wt.arr),Bt(Xt,"string",Wt.str),Bt(Xt,"number",Wt.num),Bt(Xt,"integer",Wt.int),Bt(Xt,"boolean",Wt.bool),Xt.global=function(...t){return console.warn("Mix.global() is deprecated, use go() instead."),ue(...t)},Xt.isPlain=function(...t){return console.warn("Mix.isPlain() is deprecated, use Mix.isObj() instead."),we.isObj(...t)},Xt.float=function(...t){return console.warn("Mix.float() is deprecated, use Mix.num() instead."),we.num(...t)},Xt.delay=function(...t){return console.warn("Mix.delay() is deprecated, use Run.delay() instead."),me.delay(...t)},Xt.async=function(...t){return console.warn("Mix.async() is deprecated, use Run.async() instead."),me.async(...t)},Xt.debounce=function(...t){return console.warn("Mix.debounce() is deprecated, use Run.debounce() instead."),me.debounce(...t)},Xt.throttle=function(...t){return console.warn("Mix.throttle() is deprecated, use Run.throttle() instead."),me.throttle(...t)},Xt.framerate=function(...t){return console.warn("Mix.framerate() is deprecated, use Run.framerate() instead."),me.framerate(...t)},Xt.convertString=function(...t){return console.warn("Mix.convertString() is deprecated, use Str.string() instead."),ge.string(...t)},Xt.convertDatetime=function(...t){return console.warn("Mix.convertDatetime() is deprecated, use Str.date() instead."),ge.date(...t)},Xt.convertBool=function(...t){return console.warn("Mix.convertBool() is deprecated, use Str.boolean() instead."),ge.boolean(...t)},Xt.convertBoolean=function(...t){return console.warn("Mix.convertBoolean() is deprecated, use Str.boolean() instead."),ge.boolean(...t)};const Ut=Xt;const Vt=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","A","B","C","D","E","F"],zt=["8","9","a","b"],Jt=["@","#","$","%","^","&","*","(",")","_","+","-","=","[","]","{","}",";",":",",",".","/","<",">","?"];class _t{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+=Me.radix(e);for(const t of Object.keys(r))i=ge.set(i,t,r[t]);return i}static uuid(t=4){let e="";for(let t=0;t<31;t++)e+=15===t?Me.radix(zt.length,zt):Me.radix(Vt.length,Vt);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||Jt],i="";for(let e=0;e<t;e++)i+=Me.radix(r.length,r);return i}}!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}(_t,"RADIX",["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"]);const Kt=_t;class Zt{static bind(t,e,r={},i=!1){return we.isArr(t)?be.each(t,t=>this.bind(t,...arguments),this):(we.isPrim(r)&&(r={id:r}),this.$events=be.append(this.$events,{event:t,cb:e,options:r,paused:i}),this)}static unbind(t,e={}){return we.isArr(t)?be.each(t,t=>this.unbind(t,...arguments),this):(we.isPrim(e)&&(e={id:e}),be.remove(this.$events,{event:t,options:e}),this)}static fire(t,...e){let r=this.$events.filter(e=>e.event===t);return be.each(r,t=>{t.paused||t.cb.call({},...e)}),this}static pause(t,e={}){if(we.isArr(t))return be.each(t,t=>this.pause(t,...arguments),this);let r=be.find(this.$events,{event:t,options:e});return null!=r&&(r.paused=!0),this}static unpause(t,e={}){if(we.isArr(t))return be.each(t,t=>this.pause(t,...arguments),this);let r=be.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}(Zt,"$events",[]);const Qt=Zt;function te(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 ee{static has(t=void 0){return void 0===t||we.has(ee.$text,t)}static get(t=void 0,e=null){return void 0===t?ee.$text:ve.get(ee.$text,t,e)}static set(t=void 0,e=void 0){return void 0===e?ee.$text=t:ve.set(ee.$text,t,e)}static code(t=null){return we.isNull(t)?we.isNull(Pe.$code)?(Pe.$code=(navigator.language||"en-US").replace(/-[A-Z]+$/,""),Pe.$code):Pe.$code:Pe.$code=t}static collator(){return we.isNull(Pe.$sort)?(Pe.$sort=new Intl.Collator(Pe.code(),{numeric:!0,sensitivity:"base"}),Pe.$sort):Pe.$sort}static replace(t,e=null){return null==e||ve.each(e,(e,r)=>{t=t.replace(new RegExp(":"+r,"g"),e)}),t}static trans(t,e=null){return t=ve.get(ee.$text,t,t),Pe.replace(t,e)}static choice(t,e=0,r={}){return t=ve.get(ee.$text,t,t),void 0===r.count&&(r.count=e),t=Pe.countpick(t.split("|"),e),Pe.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]}}te(ee,"$text",{}),te(ee,"$sort",null),te(ee,"$code","en");const re=ee;function ie(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 se(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(r),!0).forEach(function(e){ne(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ne(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 oe={entry:/(?<=^|;)\s*(?<key>.*?)\s*=\s*(?<value>[^;$]+)/g};class ae{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(oe.entry);if(null==e)return this.$cookie;return be.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)?we.bool(this.$cookie[t]):/^obj(ext)?$/.test(r)?pe.parseOptions(this.$cookie[t]):we.str(this.$cookie[t])}static set(t,e,r=null,i={}){this.$cookie||this.parse(),r instanceof fe||(r=fe.make(r||"+7 days")),i=se({expires:r.toUTC(),path:"/"},i),we.isRef(e)&&(e=pe.castOptions(e,!1)),null!=e&&(this.$cookie[t]=e);let s=t+"="+e.replaceAll(";","{:}");return be.each(i,(t,e)=>{s+=`;${e}=${t}`}),globalThis.document.cookie=s,this}static forget(t,e={}){e=se({expires:"Thu, 01 Jan 1970 00:00:01 GMT",path:"/"},e),this.$cookie[t]&&delete this.$cookie[t];let r=`${t}=null`;return be.each(e,(t,e)=>{r+=`;${e}=${t}`}),globalThis.document.cookie=r,this}}ne(ae,"$cookie",null);const le=ae,ue=m,ce=function(){const t=m();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},he=function(){const t=m();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},de=z(),fe=ct(),pe=Dt(),me=jt,ge=It,ye=Ft,be=Lt,ve=Rt,we=Ut,Me=Kt,Oe=Qt,Pe=re,De=le,ke=new Proxy({},{get:function(t,e){return console.warn(`Any.${e} is deprecated, use Mix.${e}() instead.`),(...t)=>we[e](...t)}}),$e=function(){return console.warn("UUID() is deprecated, use Hash.make() instead."),Me.make()};return s})());
|
|
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:()=>De,Arr:()=>ye,Cookie:()=>Pe,Data:()=>re,Dom:()=>he,Element:()=>ce,Event:()=>Me,For:()=>fe,Hash:()=>we,Locale:()=>Oe,Map:()=>ae,Mix:()=>ve,Now:()=>de,Num:()=>ge,Obj:()=>be,Route:()=>se,Run:()=>pe,Str:()=>me,UUID:()=>ke,browser:()=>Qt,device:()=>te,go:()=>Zt});class i{static timeout(t,e=0,r=null){let s=i.$idler.native;return null==r&&(r=we.make(12)),s[r="t-"+r]=setInterval(()=>{t()},e),r}static interval(t,e=0,r=null){let s=i.$idler.native;return null==r&&(r=we.make(12)),s[r="i-"+r]=setInterval(()=>{t()},e),r}static clear(t,e="native"){if(ve.isArr(t))return ye.each(t,t=>this.clear(t,e)),this;let r=i.$idler[e];return!1===/^i-/.test(t)&&clearInterval(r[t]),!1===/^t-/.test(t)&&clearTimeout(r[t]),this}static wait(t,e=0,r=500){let i,s;s=this.timeout(()=>{this.clear([i,s])},e*r),i=this.interval(()=>{t()&&this.clear([i,s])},e)}static frame(t,...e){return requestAnimationFrame(function(){t(...e)}),this}static async(t,...e){return setTimeout(()=>{t(...e)}),this}static delay(t,e=0,...r){let i=setTimeout(()=>{this.async(t,...r)},e);return()=>clearTimeout(i)}static debounce(t,e=100,r=null){let s=i.$idler.debounce;return null==r&&(r=we.make(12)),(...i)=>{s[r]&&clearTimeout(s[r]),s[r]=setTimeout(()=>{this.frame(t,...i)},e)}}static throttle(t,e=100,r=null){let s,n=i.$idler.throttle;return null==r&&(r=we.make(12)),(...i)=>{n[r]&&clearTimeout(n[r]),n[r]=setTimeout(()=>{s=!1},e),s||(this.frame(t,...i),s=!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){return(s,...n)=>{ye.replace(i.$buffer,{key:e,cb:t,order:r,args:[s,...n],active:!0},{key:e}),s.preventDefault(),i.runFramebuffer()}}static runFramebuffer(){if(this.$timer.func&&this.$timer.func(),this.$timer.func=this.delay(()=>{this.runFramebuffer()},50),Date.now()-this.$timer.date<=50)return;this.$timer.func&&this.$timer.func(),this.$timer.date=Date.now();let t=ye.filter(this.$buffer,{active:!0});0!==t.length&&this.frame(()=>{ye.each(ye.sort(t,"order"),t=>{t.cb(...t.args),t.active=!1})})}}r(i,"$idler",{native:{},debounce:{},throttle:{}}),r(i,"$timer",{date:0,func:null}),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 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 l{static get(t,e){return ve.isStr(t)||(t=ve.str(t)),ve.isInt(e)&&(e=ve.int(e)),t.charAt(e)}static set(t,e,r=""){return ve.isStr(t)||(t=ve.str(t)),ve.isInt(e)&&(e=ve.int(e)),t.substring(0,e)+r+t.substring(e+r.length)}static replace(t,e,r=null){ve.isNull(r)&&(r=t);let i=r.indexOf(e);return-1===i?t:this.set(t,i,e)}static extract(t,e,r=null){ve.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=ve.str(t).match(e);return ve.isEmpty(i)?[]:ve.isFunc(r)?r(i):i}static regex(t){return ve.str(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static uc(t){return ve.str(t).toUpperCase()}static ucfirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lc(t){return ve.str(t).toLowerCase()}static lcfirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static cc(t){return ye.each(fe.slugify(t).split("-"),(t,e)=>e?this.ucfirst(t):t).join("")}static kc(t){return fe.slugify(t)}static sc(t){return fe.slugify(t).replace("-","_")}static pc(t){return ye.each(fe.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=ve.str(t).indexOf(e);return-1===i?r:[i,i+e.length]}static slice(t,e,r){return ve.str(t).slice(e,r)}static string(t,e="-",r=!1){return ve.isEmpty(t)?e:(t=ve.str(t),r?t:t.replace(/<[^>]*>?/gm,""))}static boolean(t,e="Yes",r="No",i="-"){return ve.isEmpty(t)?i:ve.bool(t)?e:r}static number(t,e=null,r=null,i={}){return ve.isNum(t)?(null==r&&(r=Oe.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){a(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),ve.num(t).toLocaleString(r,i)):t}static integer(t,e=0,r="0"){return ve.isNum(t)?(ve.isInt(t)||(t=ve.int(t)),t=ve.int(t),e?ve.str(t).padStart(e,r):ve.str(t)):t}static datetime(t,e="YYYY-MM-DD HH:mm:ss",r="-"){return ve.isDate(t)||(t=de.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 ve.isRef(t)?t:("params"===e&&(t=fe.parseParams(t)),"options"===e&&(t=fe.parseOptions(t)),ve.isRef(t)||(t=JSON.parse(t)),r?ve.vals(t):t)}static stringify(t,e="options"){return ve.isStr(t)?t:"params"===e?fe.castParams(t):"options"===e?fe.castOptions(t):JSON.stringify(t)}}a(l,"upper",(n=l).uc),a(l,"lower",n.lc),a(l,"camelcase",n.cc),a(l,"kebabcase",n.kc),a(l,"snakecase",n.sc),a(l,"pascalcase",n.pc),l.regexEscape=(...t)=>(console.warn("Str.regexEscape() is deprecated, use Str.regex() instead."),me.regex(...t)),l.humancase=(...t)=>(console.warn("Str.humancase() is deprecated, use Str.pascalcase() instead."),me.pascalcase(...t)),l.slugify=(...t)=>(console.warn("Str.slugify() is deprecated, use For.slugify() instead."),fe.slugify(...t)),l.options=(...t)=>(console.warn("Str.options() is deprecated, use For.castOptions() instead."),fe.castOptions(...t)),l.fromOptions=(...t)=>(console.warn("Str.fromOptions() is deprecated, use For.parseOptions() instead."),fe.parseOptions(...t)),l.params=(...t)=>(console.warn("Str.params() is deprecated, use For.castParams() instead."),fe.castParams(...t)),l.fromParams=(...t)=>(console.warn("Str.fromParams() is deprecated, use For.parseParams() instead."),fe.parseParams(...t)),l.filesize=(...t)=>(console.warn("Str.filesize() is deprecated, use For.filesize() instead."),fe.filesize(...t)),l.real=()=>{console.error("Str.real() is not implemented anymore.")},l.array=()=>{console.error("Str.array() is not implemented anymore.")};const u=l;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 ve.isNum(t)||(t=ve.num(t)),t.toFixed(e)}static float(t){return ve.isNum(t)||(t=ve.num(t)),parseFloat(t)}static int(t){return ve.isNum(t)||(t=ve.num(t)),parseInt(t)}static ceil(t){return ve.isNum(t)||(t=ve.num(t)),Math.ceil(t)}static floor(t){return ve.isNum(t)||(t=ve.num(t)),Math.floor(t)}static round(t){return ve.isNum(t)||(t=ve.num(t)),Math.round(t)}static combine(t){return ye.reduce(t,(t,e)=>t+e,0)}static subtract(t){return ye.reduce(t,(t,e)=>t-e,0)}static decade(t){return ve.isNum(t)||(t=ve.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,a=this.combine([Math.sin(s)*Math.sin(n),Math.cos(s)*Math.cos(n)*Math.cos(o)]);return a=180*Math.acos(a>1?1:a)/Math.PI*60*1.1515,r?1.609344*a:a}}f.format=(t,...e)=>(console.warn("Num.format() is deprecated, use Str.number() instead."),me.number(t,e[2]||null)),f.random=(...t)=>(console.warn("Num.random() is deprecated, use Hash.number() instead."),we.number(...t));const p=f;class m{static all(t){return ve.isArr(t)?t:[t]}static get(t,e,r=null){return ve.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(!ve.isPrim(e))return-1!==this.findIndex(t,e);return ve.isArr(t)||(t=[t]),-1!==t.findIndex(t=>t==e)}static unique(t){let e={};for(const r of t)e[r]=!0;return ve.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){let[i,s]=[ve.isArr(t),ve.keys(t)],n=t=>i?parseInt(t):t,o=new Array(s.length);for(let r=0;r<s.length;r++)o[r]=e(t[s[r]],n(s[r]));return null!=r?r:o}static map(t,e){let[r,i]=[ve.isArr(t),ve.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=[]){return null==t?t:this.map(t,s=>(this.recursive(s[e],e,r,[...i,t]),r(s,i)))}static filterIndex(t,e=null){return null==e&&(e=t=>!ve.isEmpty(t)),ve.keys(t).filter(r=>ve.isFunc(e)?e.call({},t[r],r):ve.isRef(e)?this.includes(t[r],e):e===t[r])}static filter(t,e=null){return null==e&&(e=t=>!ve.isEmpty(t)),ve.vals(t).filter((r,i)=>ve.isFunc(e)?e.call({},r,i):ve.isRef(e)?this.includes(r,e):e===t[i])}static findIndex(t,e=null,r=-1){null==e&&(e=t=>!ve.isEmpty(t));for(let r=0;r<t.length;r++){if(ve.isFunc(e)&&e.call({},t[r],r))return r;if(ve.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 ve.isFunc(e)?this.sortFunc(t,e):null!=e?this.sortDeep(t,e):this.sortPrim(t)}static sortFunc(t,e){let r=ve.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=ve.keys(t).sort((t,r)=>ve.compare(be.get(t,e),be.get(r,e))),i=[];for(const e of r)i.push(t[e]);return i}static sortPrim(t){let e=ve.keys(t).sort((t,e)=>ve.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(ve.isPrim(t))return t;if(ve.isObj(t))return be.clone(t);if(!ve.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]=be.get(t[i],e);return r}static reduce(t,e,r){return ve.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(ve.isObj(e))return be.includes(t,e);if(!ve.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 ve.vals(e))r&&=-1!==ve.vals(t).indexOf(i);return r}static matches(t,e){if(ve.isObj(e))return be.matches(t,e);if(!ve.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=(...t)=>(console.warn("Arr.removeIndex() is deprecated, use Arr.unset() instead."),Arr.unset(...t)),m.sortString=(...t)=>(console.warn("Arr.sortString() is deprecated, use Arr.sortPrim() instead."),Arr.sortPrim(...t)),m.push=(...t)=>(console.warn("Arr.push() is deprecated, use Arr.append() instead."),Arr.append(...t)),m.concat=(...t)=>(console.warn("Arr.concat() is deprecated, use Arr.merge() instead."),Arr.merge(...t)),m.equal=(...t)=>(console.warn("Arr.equal() is deprecated, use Arr.matches() instead."),Arr.matches(...t)),m.diffrence=(...t)=>(console.warn("Arr.diffrence() is deprecated, use Arr.diff() instead."),Arr.diff(...t)),m.intersect=(...t)=>(console.warn("Arr.intersect() is deprecated, use Arr.isect() instead."),Arr.isect(...t));const g=m;class y{static keyoptim(t,e=!1,r=null){return null===r&&(r=ve.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=ve.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=ve.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=ve.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&&ye.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=ve.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,a]=[e.pop(),0,e.length,t];if(0===o)return t;for(;null!=a&&n<o;)a=a[e[n++]];return null==a||delete a[s],t}static empty(t,e){return ve.isEmpty(this.get(t,e))}static remove(t,e){if(!ve.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 ve.keys(t))i[r]=e(t[r],r);return null!=r?r:i}static map(t,e){let r={};for(let i of ve.keys(t))r[i]=e(t[i],i);return r}static filterIndex(t,e=null){return ye.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 ve.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 ve.keys(t))this.flattenForm(t[e],i(e),r);return r}static unpack(t,e={}){return ye.each(ve.keys(t),r=>{this.set(e,r,t[r])}),e}static assign(...t){return Object.assign(...t)}static clone(t,e=null){if(ve.isPrim(t))return t;if(ve.isArr(t))return ye.clone(t);if(!ve.isObj(t))return t;let r={};for(let e of ve.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)=>{ye.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)=>{ye.has(e,r)||(i[r]=t)}),null==r?i:this.assign(i,r)}static includes(t,e){if(ve.isArr(e))return ye.includes(t,e);if(!ve.isObj(e))return t===e;let r=ve.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(ve.isArr(e))return ye.matches(t,e);if(!ve.isObj(t))return t===e;let r=ye.unique([...ve.keys(e),...ve.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}}y.values=(...t)=>(console.warn("Obj.values() is deprecated, use Mix.vals() instead."),ve.vals(...t)),y.find=(...t)=>(console.warn("Obj.find() is deprecated, use Arr.find() instead."),ye.find(...t)),y.findIndex=(...t)=>(console.warn("Obj.findIndex() is deprecated, use Arr.findIndex() instead."),ye.findIndex(...t)),y.sort=(...t)=>(console.warn("Obj.sort() is deprecated, use Arr.sort() instead."),ye.sort(...t)),y.sortString=(...t)=>(console.warn("Obj.sortString() is deprecated, use Arr.sortDeep() instead."),ye.sortDeep(...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 M={iso:/^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/};class O{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.getPrototypeOf(t)===Object.prototype}static isArr(t){return null!=t&&Object.getPrototypeOf(t)===Array.prototype}static isIter(t){return!this.isArr(t)&&(!!this.isRef(t)&&this.isFunc(t.entries))}static isIsoDate(t){return t instanceof Date||M.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.isIter(t)&&(t=this.iter(t)),Object.keys(t))}static vals(t){if(null==t)return[];if(this.isIter(t)&&(t=this.iter(t)),this.isArr(t)||!Zt().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&&!ye.has(e,i)&&(r[i]=t[i]);return r}static class(t,e=[]){return e=ye.merge(e,["length","name","prototype","constructor"]),this.props(t,e)}static proto(t,e=[]){return e=ye.merge(e,["constructor"]),this.props(t.prototype,e)}static form(t){let e=new FormData;return be.each(be.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 ve.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 Oe.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"),ye.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(O,"isPrimitive",(v=O).isPrim),w(O,"isString",v.isStr),w(O,"isNumber",v.isNum),w(O,"isInteger",v.isInt),w(O,"isBoolean",v.isBool),w(O,"isFunction",v.isFunc),w(O,"isReference",v.isRef),w(O,"isObject",v.isObj),w(O,"isArray",v.isArr),w(O,"isIterable",v.isIter),w(O,"length",v.len),w(O,"array",v.arr),w(O,"string",v.str),w(O,"number",v.num),w(O,"integer",v.int),w(O,"boolean",v.bool),O.global=function(...t){return console.warn("Mix.global() is deprecated, use go() instead."),Zt(...t)},O.isPlain=function(...t){return console.warn("Mix.isPlain() is deprecated, use Mix.isObj() instead."),ve.isObj(...t)},O.float=function(...t){return console.warn("Mix.float() is deprecated, use Mix.num() instead."),ve.num(...t)},O.delay=function(...t){return console.warn("Mix.delay() is deprecated, use Run.delay() instead."),pe.delay(...t)},O.async=function(...t){return console.warn("Mix.async() is deprecated, use Run.async() instead."),pe.async(...t)},O.debounce=function(...t){return console.warn("Mix.debounce() is deprecated, use Run.debounce() instead."),pe.debounce(...t)},O.throttle=function(...t){return console.warn("Mix.throttle() is deprecated, use Run.throttle() instead."),pe.throttle(...t)},O.framerate=function(...t){return console.warn("Mix.framerate() is deprecated, use Run.framerate() instead."),pe.framerate(...t)},O.convertString=function(...t){return console.warn("Mix.convertString() is deprecated, use Str.string() instead."),me.string(...t)},O.convertDatetime=function(...t){return console.warn("Mix.convertDatetime() is deprecated, use Str.date() instead."),me.date(...t)},O.convertBool=function(...t){return console.warn("Mix.convertBool() is deprecated, use Str.boolean() instead."),me.boolean(...t)},O.convertBoolean=function(...t){return console.warn("Mix.convertBoolean() is deprecated, use Str.boolean() instead."),me.boolean(...t)};const P=O;const D=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","A","B","C","D","E","F"],k=["8","9","a","b"],$=["@","#","$","%","^","&","*","(",")","_","+","-","=","[","]","{","}",";",":",",",".","/","<",">","?"];class j{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+=we.radix(e);for(const t of Object.keys(r))i=me.set(i,t,r[t]);return i}static uuid(t=4){let e="";for(let t=0;t<31;t++)e+=15===t?we.radix(k.length,k):we.radix(D.length,D);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||$],i="";for(let e=0;e<t;e++)i+=we.radix(r.length,r);return i}}var N,S,x;N=j,x=["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 N?Object.defineProperty(N,S,{value:x,enumerable:!0,configurable:!0,writable:!0}):N[S]=x;const Y=j;class I{static bind(t,e,r={},i=!1){return ve.isArr(t)?ye.each(t,t=>this.bind(t,...arguments),this):(ve.isPrim(r)&&(r={id:r}),this.$events=ye.append(this.$events,{event:t,cb:e,options:r,paused:i}),this)}static unbind(t,e={}){return ve.isArr(t)?ye.each(t,t=>this.unbind(t,...arguments),this):(ve.isPrim(e)&&(e={id:e}),ye.remove(this.$events,{event:t,options:e}),this)}static fire(t,...e){let r=this.$events.filter(e=>e.event===t);return ye.each(r,t=>{t.paused||t.cb.call({},...e)}),this}static pause(t,e={}){if(ve.isArr(t))return ye.each(t,t=>this.pause(t,...arguments),this);let r=ye.find(this.$events,{event:t,options:e});return null!=r&&(r.paused=!0),this}static unpause(t,e={}){if(ve.isArr(t))return ye.each(t,t=>this.pause(t,...arguments),this);let r=ye.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}(I,"$events",[]);const E=I;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 T{static has(t=void 0){return void 0===t||ve.has(T.$text,t)}static get(t=void 0,e=null){return void 0===t?T.$text:be.get(T.$text,t,e)}static set(t=void 0,e=void 0){return void 0===e?T.$text=t:be.set(T.$text,t,e)}static code(t=null){return ve.isNull(t)?ve.isNull(Oe.$code)?(Oe.$code=(navigator.language||"en-US").replace(/-[A-Z]+$/,""),Oe.$code):Oe.$code:Oe.$code=t}static collator(){return ve.isNull(Oe.$sort)?(Oe.$sort=new Intl.Collator(Oe.code(),{numeric:!0,sensitivity:"base"}),Oe.$sort):Oe.$sort}static replace(t,e=null){return null==e||be.each(e,(e,r)=>{t=t.replace(new RegExp(":"+r,"g"),e)}),t}static trans(t,e=null){return t=be.get(T.$text,t,t),Oe.replace(t,e)}static choice(t,e=0,r={}){return t=be.get(T.$text,t,t),void 0===r.count&&(r.count=e),t=Oe.countpick(t.split("|"),e),Oe.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(T,"$text",{}),A(T,"$sort",null),A(T,"$code","en");const H=T;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 G={entry:/(?<=^|;)\s*(?<key>.*?)\s*=\s*(?<value>[^;$]+)/g};class R{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(G.entry);if(null==e)return this.$cookie;return ye.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)?ve.bool(this.$cookie[t]):/^obj(ext)?$/.test(r)?fe.parseOptions(this.$cookie[t]):ve.str(this.$cookie[t])}static set(t,e,r=null,i={}){this.$cookie||this.parse(),r instanceof de||(r=de.make(r||"+7 days")),i=C({expires:r.toUTC(),path:"/"},i),ve.isRef(e)&&(e=fe.castOptions(e,!1)),null!=e&&(this.$cookie[t]=e);let s=t+"="+e.replaceAll(";","{:}");return ye.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 ye.each(e,(t,e)=>{r+=`;${e}=${t}`}),globalThis.document.cookie=r,this}}L(R,"$cookie",null);const W=R;class B{static filterNodes(t,e=1){return ye.filter(ve.nodes(t),t=>t.nodeType===e)}static getNodePoint(t,e){let r=null;return null!=he.doc().elementsFromPoint&&(r=document.elementsFromPoint(t,e)),null!=he.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=he.getNodePoint(s,n)),ve.isArr(r)&&(r=ye.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=ve.nodes(t)),t}getNodeType(t=-1){return this.el?this.el.nodeType:t}getNodeParent(t=null){return this.el?he.find(this.el.parentNode):t}getNodePrev(t=null){return this.el?he.find(this.el.previousSibling):t}getNodeNext(t=null){return this.el?he.find(this.el.nextSibling):t}getNodeChilds(t=-1,e=[]){if(!this.el)return e;let r=ve.nodes(this.el.childNodes);return-1===t?r:ye.filter(r,e=>e.nodeType===t)}sanatize(t=1){return this.els=he.filterNodes(this.els,t),this}filter(t){return"function"!=typeof t&&(t=e=>he.find(e).is(t)),ye.filter(this.els,t)}except(t){return"function"!=typeof t&&(t=e=>!he.find(e).is(t)),ye.filter(this.els,t)}find(t){if(null==this.el)return he.find(null);let e=this.el;e instanceof Window&&(e=document.body);let r=t;return ve.isStr(r)&&(r=e.querySelectorAll(t)),he.find(r)}get(t=-1){let e=this.els;return-1===t?e:ye.get(e,t)}first(t=0){return this.get(t)}last(t=1){return ye.get(this.els,this.els.length-t)}each(t){return ye.each(this.els,t)}loopParent(t,e=null){null==e&&(e=he.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?he.find(null):t}child(t,e=1){for(let t of this.els)if(t.nodeType===e)return he.find(t);return he.find(null)}childs(t=null,e=1){let r=this.getNodeChilds(e);return null==t?r:ye.filter(r,e=>he.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}prev(t=1){let e=this.getNodePrev();for(;null!=e;e=e.getNodePrev())if(e.getNodeType()===t)return he.find(e);return he.find(null)}next(t=1){let e=this.getNodeNext();for(;null!=e;e=e.getNodeNext())if(e.getNodeType()===t)return he.find(e);return he.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 null!=this.find(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 U{value(t=void 0){return void 0===t?this.el.value:(this.each(e=>{e.value=t}),this)}}class V{}!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}(V,"events",[]);class z{bind(t,e,r,i=null,s=!1,n={}){return ve.isPrim(n)&&(n={id:n}),he.events=ye.append(he.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={}){ve.isPrim(i)&&(i={id:i});let s=ye.filterIndex(he.events,{el:t,event:e,selector:r,options:i});if(0===s.length)return;return ye.each(s.reverse(),r=>{var i;t.removeEventListener(...(i=he.events[r],[e,i.cb,i.options]))}),ye.splices(he.events,s),this}on(t,e,r={},i=!1,s=null){if(ve.isPrim(r)&&(r={id:r}),ve.isArr(t))return ye.each(t,t=>this.on(t,...arguments)),this;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 ve.isArr(t)?(ye.each(t,t=>this.off(t,...arguments)),this):(ve.isObj(e)&&(r=e,e=null),this.each(i=>{this.unbind(i,t,e,r)}),this)}once(t,e,r={}){return r.id=we.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=he.getNodeEvent(e,t);null!=i&&r.call({},t,i)},i,s,e),this}fire(t){let e=new Event(t);return this.each(t=>{t.dispatchEvent(e)}),this}}z.prototype.one=function(...t){return console.warn("Dom.one() is deprecated, use Dom.once() instead."),this.once(...t)},z.prototype.delayed=function(){console.error("Dom.delayed() is not implemented anymore.")},z.prototype.pause=function(){console.error("Dom.pause() is not implemented anymore.")},z.prototype.unpause=function(){console.error("Dom.unpause() is not implemented anymore.")};class J{static make(t,e={}){t instanceof he&&(t=t.el),ve.isStr(t)&&(t=document.createElement(t)),t=be.assign(t,e);let r=new he(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 he.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 he.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"===he.getDomState()}static isDomComplete(){let t=he.getDomState();return"complete"===t||"interactive"===t}static ready(t,e=0,r=6e3){let i=()=>{pe.delay(t,e)},[s,n]=[he.find(document),"DOMContentLoaded"],o=he.isDomReady;return o()?(pe.wait(()=>{if(o())return i(),!0},10,r),this):(s.on(n,i),this)}static complete(t,e=0,r=6e3){let i=()=>{pe.delay(t,e)},[s,n]=[he.find(document),"load"],o=he.isDomComplete;return o()?(pe.wait(()=>{if(o())return i(),!0},10,r),this):(s.on(n,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 pe.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,"")),ve.num(t,0)}}class it{margin(t=null,e=0){let r=this.computed(),i={top:he.num(r.marginTop),right:he.num(r.marginRight),bottom:he.num(r.marginBottom),left:he.num(r.marginLeft)};return null==t?i:be.get(i,t,e)}padding(t=null,e=0){let r=this.computed(),i={top:he.num(r.paddingTop),right:he.num(r.paddingRight),bottom:he.num(r.paddingBottom),left:he.num(r.paddingLeft)};return null==t?i:be.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:he.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=he.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:he.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=he.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:be.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=he.body());for(let r=this.el;r&&r!==e;r=r.offsetParent)t.call({},r);return this}calcOffset(t,e,r){let i={right:he.body().scrollWidth-t.left-e,bottom:he.body().scrollHeight-t.top-r};return tt(tt({},t),i)}getOffset(t=null){null==t&&(t=he.body());let e,r={top:0,left:0,bottom:0,right:0};if(null==this.el)return r;e=t=>{r.top+=he.num(t.offsetTop,0),r.left+=he.num(t.offsetLeft,0)},this.loopOffset(e),r=this.calcOffset(r,this.width(),this.height());let i=he.find(t),s={top:0,left:0,bottom:0,right:0};return e=t=>{s.top+=he.num(t.offsetTop,0),s.left+=he.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:be.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=he.win());let e,r={top:0,left:0};if(null==this.el)return r;e=t=>{r.top+=he.num(t.scrollTop||t.pageYOffset||0),r.left+=he.num(t.scrollLeft||t.pageXOffset||0)},this.loopParent(e);let i={top:0,left:0};return e=t=>{i.top+=he.num(t.scrollTop||t.pageYOffset||0),i.left+=he.num(t.scrollLeft||t.pageXOffset||0)},he.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 at{}class lt{attr(t,e=void 0,r=null){if(null==this.el)return e?this:r;let i=this.el.getAttribute(t);return ve.isUndef(e)?i||r:null===e?(this.el.removeAttribute(t),i):(ve.isArr(e)&&(e=e.join(" ")),ve.isObj(e)&&(e=fe.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:be.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 ve.isStr(r)&&(r=fe.parseOptions(r)),ve.isUndef(t)?r:(e&&(t=nt(nt({},r),t)),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 ve.isStr(r)&&(r=r.split(" ")),ve.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 ve.isArr(t)||(t=[t]),ye.isect(this.class(),t).length>0}addClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>he.find(e).addClass(t));let e=this.el.className.split(" ");return ve.isStr(t)&&(t=t.split(" ")),e=ye.append(e,...t),this.el.className=ye.unique(e).join(" "),this}remClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>he.find(e).remClass(t));let e=this.el.className.split(" ");return ve.isStr(t)&&(t=t.split(" ")),e=ye.diff(e,t),this.el.className=ye.unique(e).join(" "),this}toggleClass(t){return this.els.length>1?this.each(e=>he.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=>he.find(e).stateClass(t)):e?this.addClass(t):this.remClass(t)}}lt.prototype.css=function(...t){return console.warn("Dom.css() is deprecated, use Dom.style() instead."),this.style(...t)},lt.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(ve.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 he.find(t.el).each(t=>{(t=>he.find(t).isInviewY(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:ye.first(i)}static inviewMaxX(t,e=null){if(ve.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 he.find(t.el).each(t=>{(t=>he.find(t).isInviewX(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:ye.first(i)}}class ft{viewoffX(){if(null==this.el)return{top:0,bot:0};let[t,e]=[he.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}=he.find(t).viewoffY(),[i,s]=[he.win().innerHeight-r-e,this.height()],[n,o]=[this.offset("left")+e,this.scroll("left")+e],a=Math.max(0,o+i-n+e);return a>s&&(a=Math.min(s,i+s-a)),Math.max(0,a)}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]=[he.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}=he.find(t).viewoffY(),[i,s]=[he.win().innerHeight-r-e,this.height()],[n,o]=[this.offset("top")+e,this.scroll("top")+e],a=Math.max(0,o+i-n+e);return a>s&&(a=Math.min(s,i+s-a)),Math.min(Math.max(0,a),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=he.doc().title),document.title=Oe.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."),he.setMetaTitle(t));class mt{}class gt{}class yt{value(t=void 0){return void 0===t?this.el.value:(this.each(e=>{e.value=t}),this)}}function bt(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 vt=[function(t){return be.each(ve.class(B),(e,r)=>{t[r]=e}),be.each(ve.proto(q),(e,r)=>{t.prototype[r]=e}),t.init.push(q._constructFinder),t},function(t){return be.each(ve.class(K),(e,r)=>{t[r]=e}),be.each(ve.proto(Z),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.class(X),(e,r)=>{t[r]=e}),be.each(ve.proto(U),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.class(V),(e,r)=>{t[r]=e}),be.each(ve.proto(z),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.class(J),(e,r)=>{t[r]=e}),be.each(ve.proto(_),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.class(rt),(e,r)=>{t[r]=e}),be.each(ve.proto(it),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.class(at),(e,r)=>{t[r]=e}),be.each(ve.proto(lt),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.class(dt),(e,r)=>{t[r]=e}),be.each(ve.proto(ft),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.class(pt),(e,r)=>{t[r]=e}),be.each(ve.proto(mt),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.class(gt),(e,r)=>{t[r]=e}),be.each(ve.proto(yt),(e,r)=>{t.prototype[r]=e}),t}];class wt{constructor(t,...e){bt(this,"el",null),bt(this,"els",[]),ye.each(he.init,r=>{t=r.call(this,t,...e)}),t instanceof he&&(t=t.el),ve.isArr(t)||(t=[t]),this.el=t[0],this.els=t}static find(t,...e){return new he(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:{}}}bt(wt,"init",[]);const Mt=function(){let t=wt;for(const e of vt)t=e.call(t,t);return t},Ot={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 Pt{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){ve.isNum(t)||(t=ve.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)+ve.int(t),e),this}sub(t,e="day"){return/^days?$/i.test(e)&&(e="date"),this.set(this.get(e)-ve.int(t),e),this}isModifible(t){return/^(\s*[+-][0-9]+\s?[a-z]+\s*)+$/i.test(t)}modify(t){return ve.isEmpty(t)||be.each(Ot,(e,r)=>{me.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=de.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"])}}PicoNowGridInstance.prototype.addSecond=function(t){return console.warn("Now.addSecond() is deprecated, use Now.add(value, 'second') instead."),this.add(t,"second")},PicoNowGridInstance.prototype.subSecond=function(t){return console.warn("Now.subSecond() is deprecated, use Now.sub(value, 'second') instead."),this.sub(t,"second")},PicoNowGridInstance.prototype.addMinute=function(t){return console.warn("Now.addMinute() is deprecated, use Now.add(value, 'minute') instead."),this.add(t,"minute")},PicoNowGridInstance.prototype.subMinute=function(t){return console.warn("Now.subMinute() is deprecated, use Now.sub(value, 'minute') instead."),this.sub(t,"minute")},PicoNowGridInstance.prototype.addHour=function(t){return console.warn("Now.addHour() is deprecated, use Now.add(value, 'hour') instead."),this.add(t,"hour")},PicoNowGridInstance.prototype.subHour=function(t){return console.warn("Now.subHour() is deprecated, use Now.sub(value, 'hour') instead."),this.sub(t,"hour")},PicoNowGridInstance.prototype.addDates=function(t){return console.warn("Now.addDates() is deprecated, use Now.add(value, 'date') instead."),this.add(t,"date")},PicoNowGridInstance.prototype.subDates=function(t){return console.warn("Now.subDates() is deprecated, use Now.sub(value, 'date') instead."),this.sub(t,"date")},PicoNowGridInstance.prototype.addMonths=function(t){return console.warn("Now.addMonths() is deprecated, use Now.add(value, 'month') instead."),this.add(t,"month")},PicoNowGridInstance.prototype.subMonths=function(t){return console.warn("Now.subMonths() is deprecated, use Now.sub(value, 'month') instead."),this.sub(t,"month")},PicoNowGridInstance.prototype.addYears=function(t){return console.warn("Now.addYears() is deprecated, use Now.add(value, 'year') instead."),this.add(t,"year")},PicoNowGridInstance.prototype.subYears=function(t){return console.warn("Now.subYears() is deprecated, use Now.sub(value, 'year') instead."),this.sub(t,"year")},PicoNowGridInstance.prototype.addDecades=function(t){return console.warn("Now.addDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.add(10*t,"year")},PicoNowGridInstance.prototype.subDecades=function(t){return console.warn("Now.subDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.sub(10*t,"year")},PicoNowGridInstance.prototype.humanDay=function(){return console.warn("Now.humanDay() is deprecated, use Now.day() instead."),this.day()},PicoNowGridInstance.prototype.humanMonth=function(){return console.warn("Now.humanMonth() is deprecated, use Now.month() instead."),this.month()};const Dt={L:"DD/MM/YYYY",LL:"MMMM DD, YYYY",LLL:"MMMM DD, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},kt={second:"ss",minute:"mm",hour:"HH",date:"DD",month:"MM",year:"YYYY"};class $t{isParsable(t,e="YYYY-MM-DD HH:mm:ss"){for(const r in kt)t=me.replace(t,kt[r],e);return t===e}parse(t,e="YYYY-MM-DD HH:mm:ss"){return ve.isTime(t)&&(e="HH:mm:ss"),ve.isDate(t)&&(e="YYYY-MM-DD"),this.isModifible(t)?this.modify(t):ve.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 kt)this.set(me.extract(t,kt[r],e),r);return this}format(t="YYYY-MM-DD HH:mm:ss"){return be.has(Dt,t)&&(t=Oe.trans(Dt[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",()=>me.integer(this.year(),4))).replace("MM",()=>me.integer(this.month(),2))).replace("DD",()=>me.integer(this.date(),2))).replace("HH",()=>me.integer(this.hour(),2))).replace("mm",()=>me.integer(this.minute(),2))).replace("ss",()=>me.integer(this.second(),2))).replace("YY",()=>me.integer(this.shortyear(),2))).replace("X",()=>me.integer(this.time()))).replace("x",()=>me.integer(this.time()/1e3))}code(t="X"){return ve.int(this.format(t))}}class jt{before(t=null,e="x"){return this.code(e)<de.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)>de.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 de||(t=de.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=[de.make(t),de.make(e)];return i[0].after(i[1],r)&&(i=i.reverse()),this.after(i[0],r)&&this.before(i[1],r)}}class Nt{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),ye.make(60/t,e=>this.clone().second(e*t))}getMinutesGrid(t=1){return null==t&&(t=1),ye.make(60/t,e=>this.clone().minute(e*t))}getHoursGrid(t=1){return null==t&&(t=1),ye.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")}}Nt.prototype.getYears=function(){return console.warn("Now.getYears() is deprecated, use Now.grid('years') instead."),this.grid("years")},Nt.prototype.getMonths=function(){return console.warn("Now.getMonths() is deprecated, use Now.grid('months') instead."),this.grid("months")},Nt.prototype.getDates=function(){return console.warn("Now.getDates() is deprecated, use Now.grid('dates') instead."),this.grid("dates")},Nt.prototype.getHours=function(){return console.warn("Now.getHours() is deprecated, use Now.grid('hours') instead."),this.grid("hours")},Nt.prototype.getMinutes=function(){return console.warn("Now.getMinutes() is deprecated, use Now.grid('minutes') instead."),this.grid("minutes")},Nt.prototype.getSeconds=function(){return console.warn("Now.getSeconds() is deprecated, use Now.grid('seconds') instead."),this.grid("seconds")};class St{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 xt{range(t=null,e="date"){let r="YYYYMMDD";/^months?$/.test(e)&&(r="YYYYMM"),/^years?$/.test(e)&&(r="YYYY");let i=[],s=[this.clone(),de.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))ye.append(i,t);return i}}xt.prototype.getDatesRange=function(...t){return console.warn("NowRange.getDatesRange() is deprecated, use NowRange.range() instead."),this.range(...t)};const Yt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],It=["January","February","March","April","May","June","July","August","September","October","November","December"];class Et{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(!Yt[e])throw new Error(`Invalid day number "${e}".`);let r=Oe.trans(Yt[e]);return null!=t&&(r=r.substring(0,t)),r}getHumanMonth(t=null){let e=this.day()-1;if(!It[e])throw new Error(`Invalid month number "${e}".`);let r=Oe.trans(It[e]);return null!=t&&(r=r.substring(0,t)),r}}function At(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 Tt=[function(t){return be.each(ve.proto(Pt),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.proto($t),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.proto(jt),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.proto(Nt),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.proto(St),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.proto(xt),(e,r)=>{t.prototype[r]=e}),t},function(t){return be.each(ve.proto(Et),(e,r)=>{t.prototype[r]=e}),t}];class Ht{constructor(t=null,e="YYYY-MM-DD HH:mm:ss"){At(this,"input",null),At(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,ve.isNix(r)&&(this.input=r),this.value=t,ve.isStr(r)&&this.parse(r,e),ye.each(de.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 de(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 de(new Date(this.value),null,t)}valid(){return!isNaN(this.input)}toDate(){return this.value}toUTC(){return this.value.toUTCString()}}At(Ht,"init",[]),Ht.prototype.resetTime=function(){return console.warn("Now.resetTime() is deprecated, use Now.reset({ time: true }) instead."),this.reset({time:!0})};const Ft=function(){let t=Ht;for(const e of Tt)t=e.call(t,t);return t},Ct=[{match:t=>/^(null|undefined)$/i.test(t),parse:t=>ve.null(t)},{match:t=>/^(true|false|yes|no)$/i.test(t),parse:t=>ve.bool(t)},{match:t=>/^-?[0-9]+$/.test(t),parse:t=>ve.int(t)},{match:t=>/^-?[0-9]+\.[0-9]+$/.test(t),parse:t=>ve.num(t)},{match:t=>/^[{\[].*?[}\]]$/.test(t),parse:t=>JSON.parse(t)}],Lt=[{match:t=>ve.isArr(t),parse:t=>JSON.stringify(t)}];class Gt{static keyed(t,e=null){return ve.isStr(t)?-1===t.indexOf("[")?t:t.replace(/\[([^\]]+)\]/g,".$1"):e}static parsed(t,e=null,r=[]){if(!ve.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 Ct)if(e.match(t))return e.parse(t);return t}static casted(t,e=!1,r=[]){if(e&&(t=encodeURI(t)),ve.isStr(t))return t;for(let e of r)if(e.match(t))return e.parse(t);for(let e of Lt)if(e.match(t))return e.parse(t);return ve.str(t)}}const Rt={entry:/(?<=^|&|\?)(\s*(?<key>.*?)\s*=\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=&|$)/g};class Wt{static castParams(t={}){if(ve.isEmpty(t))return"";return ye.each(t,(t,e)=>this.castParam(e,t)).join("&")}static castParam(t,e,r=null){if(null!=r&&(t=r+"["+t+"]"),!ve.isRef(e))return ve.str(t)+"="+fe.casted(e,!0);return ye.each(e,(r,i)=>this.castParam(ve.isArr(e)?"":i,r,t)).join("&")}static parseParams(t){if(ve.isEmpty(t))return{};let e=(t=decodeURIComponent(t)).matchAll(Rt.entry);if(null==e)return{};const[r,i]=[fe.keyed,fe.parsed];return ye.reduce(Array.from(e),(t,{groups:e})=>be.set(t,r(e.key),i(e.val)),{})}}const Bt={entry:/(^|;)(\s*(?<key>.*?)\s*:\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=;|$)/g};class qt{static castOptions(t={},e=!0){if(ve.isEmpty(t))return"";return ye.each(t,(t,r)=>this.castOption(r,t,null,e)).join(";")+";"}static castOption(t,e,r=null,i=!0){null!=r&&(t=r+"."+t);let s=i?": ":":";return ve.isObj(e)?ye.map(e,(e,r)=>this.castOption(r,e,t)).join(";"):ve.str(t)+s+fe.casted(e,!1)}static parseOptions(t){if(ve.isEmpty(t))return{};let e=t.matchAll(Bt.entry);if(null==e)return{};const[r,i]=[fe.keyed,fe.parsed];return ye.reduce(Array.from(e),(t,{groups:e})=>be.set(t,r(e.key),i(e.val)),{})}}const Xt=[["à","a"],["á","a"],["â","a"],["è","e"],["é","e"],["ê","e"],["ì","i"],["í","i"],["ï","i"],["î","i"],["ò","o"],["ó","o"],["ô","o"],["ù","u"],["ú","u"],["û","u"],["ñ","n"],["ç","c"],[".","-"],["·","-"],["/","-"],["_","-"],[",","-"],[":","-"],[";","-"],["ä","ae"],["ö","oe"],["ü","ue"],["ß","ss"]];class Ut{static slugify(t){return t=String(t).replace(/(^\s+|\s+$)/g,"").toLowerCase(),ye.each(Xt,e=>{t=t.replaceAll(e[0],e[1])}),t.replace(/[^a-z0-9-\s]+/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}}const Vt=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];class zt{static filesize(t,e=1){ve.isNum(t)||(t=ve.num(t,0));let r=r=>ge.fixed(t/Math.pow(1e3,r),e);for(let e=0;e<Vt.length;e++)if(t<=Math.pow(1e3,e+1))return r(e)+" "+Vt[e];return r(Vt.length)}}const Jt=[function(t){return be.each(ve.class(Gt),(e,r)=>{t[r]=e}),t},function(t){return be.each(ve.class(Wt),(e,r)=>{t[r]=e}),t},function(t){return be.each(ve.class(qt),(e,r)=>{t[r]=e}),t},function(t){return be.each(ve.class(Ut),(e,r)=>{t[r]=e}),t},function(t){return be.each(ve.class(zt),(e,r)=>{t[r]=e}),t}];class _t{static extend(t){t.call({},this)}}const Kt=function(){let t=_t;for(const e of Jt)t=e.call(t,t);return t};function Zt(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:{}}function Qt(){const t=Zt();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 te(){const t=Zt();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 ee{static has(t){return be.has(this.$data,ye.first(t))}static set(t,e){let[r,i]=[null,ye.first(t)];be.has(this.$data,i)&&(r=be.get(this.$data,i)),ve.isEqual(r,e)||(be.set(this.$data,i,e),Me.fire("store:"+i,e,i))}static unset(t){be.unset(this.$data,[...ye.first(t)])}static get(t,e=null,r=!1){let i=ye.first(t);if(!be.has(this.$data,i)&&!r)return e;be.has(this.$data,i)&&r&&be.set(this.$data,i,e);let s=be.get(this.$data,i,e);return ve.isObj(s)?be.clone(s):s}static find(t,e,r=null){let i=ye.first(t);if(!1===be.has(this.$data,i))return r;if(!1===be.has(e,"id"))return r;let s=ye.findIndex(this.get(i),{id:e.id});return-1===s?r:this.get(i+"."+s)}static replace(t,e){let r=ye.first(t);if(!1===be.has(this.$data,r))return;if(!1===be.has(e,"id"))return;let i=ye.findIndex(this.get(r),{id:ge.int(e.id)});-1!==i&&this.set(r+"."+i,e)}static add(t,...e){this.set(t,ye.concat(this.get(t,[]),e))}static remove(t,...e){this.set(t,ye.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}(ee,"$data",{});const re=ee;class ie{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),i=Oe.replace(i,e),ve.isEmpty(r)||(i+="?"+fe.castParams(e)),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}(ie,"$routes",{});const se=ie;function ne(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 oe{constructor(t,e={}){if(ne(this,"map",null),ne(this,"markers",{}),ne(this,"cluster",null),ne(this,"clusterFilter",null),ne(this,"clusterOptions",{}),!globalThis.google)throw new Error("Google Maps is required for pi.Map");let r=be.only(e,["lat","lng"]);be.has(e,"styles")||(e.styles=Map.mapStyle),e=be.assign({gestureHandling:"cooperative",scrollwheel:null,zoom:12,center:r},be.except(e,["lat","lng"])),this.map=new globalThis.google.maps.Map(he.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(!be.has(e,"default"))return console.error("Marker style requires default property");be.has(e,"width")||(e.width=45),be.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},be.has(e,"hover")&&(i.hover=be.assign({},i.default,{url:e.hover})),be.has(i,"hover")||(i.hover=i.default),be.has(e,"active")&&(i.active=be.assign({},i.default,{url:e.active})),be.has(i,"active")||(i.active=i.default),be.each(r,(t,e)=>{i[e]=be.assign({},i.default,{url:t})}),be.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!");be.has(t,"imagePath")||be.has(t,"styles")||(t.imagePath="//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"),this.cluster&&this.cluster.clearMarkers(),ve.isFunction(e)&&(this.clusterFilter=e);let i=ye.filter(this.markers,t=>{let e=this.getMarkerVisibility(t.key);return ve.isFunction(this.clusterFilter)?e&&this.clusterFilter.call(this,t):e});this.cluster=new globalThis.MarkerClusterer(this.map,ye.each(i,t=>t.marker),this.clusterOptions=t)}styleMarker(t,e=null){let r=be.get(this.markers,t);if(ve.isEmpty(r))return console.error(`Marker "${t}" not found`);ve.isEmpty(e)&&(e=this.getInfoVisibility(t)?"active":"default"),be.has(Map.markerStyles,[r.style,e])&&r.marker.setIcon(be.get(Map.markerStyles,[r.style,e]))}getMarker(t){return be.get(this.markers,t)}getMarkerVisibility(t,e=!1){let r=be.get(this.markers,t);return ve.isEmpty(r)?e:r.marker.getVisible()}getMarkerPositon(t,e=null){let r=be.get(this.markers,t);return ve.isEmpty(r)?e:r.marker.getPosition()}toggleMarker(t){let e=be.get(this.markers,t);return ve.isEmpty(e)?console.error(`Marker "${t}" not found`):e.marker.getVisible()?this.hideMarker(t):this.showMarker(t)}showMarker(t){let e=be.get(this.markers,t);if(ve.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=be.get(this.markers,t);if(ve.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=be.get(this.markers,t);if(ve.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=be.get(this.markers,t);if(ve.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=be.get(this.markers,t);return ve.isEmpty(r)||!be.has(r,"info")?e:!!r.info.getMap()}toggleInfo(t){let e=be.get(this.markers,t);return ve.isEmpty(e)?console.error(`Marker "${t}" not found`):e.info.getMap()?this.closeInfo(t):this.openInfo(t)}openInfo(t){let e=be.get(this.markers,t);if(ve.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!be.has(e,"info"))return!0;let r=!e.info.getMap();return Map.closeInfoWindows&&be.each(ve.keys(this.markers),this.closeInfo.bind(this)),r&&e.info.open(this.map,e.marker),ve.isFunction(e.onOpen)&&e.onOpen(e),this.styleMarker(t,"active"),r}closeInfo(t){let e=be.get(this.markers,t);if(ve.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!be.has(e,"info"))return!1;let r=!!e.info.getMap();return r&&e.info.close(),ve.isFunction(e.onClose)&&e.onClose(e),this.styleMarker(t,"default"),r}createMarker(t=null,e={}){ve.isEmpty(t)&&(t=we.uuid());let r={key:t};return be.has(e,"visible")||(e.visible=!0),r.extras=be.except(e,["map","position","lat","lng","html","style","visible","onOpen","onClose"]),be.has(e,"map")||(e.map=this.map),be.has(e,"position")||(e.position=be.only(e,["lat","lng"])),be.has(e,"style")&&(r.style=e.style),r.marker=new globalThis.google.maps.Marker(e),e.visible||r.marker.setVisible(!1),be.assign(r,{onOpen:be.get(e,"onOpen"),onClose:be.get(e,"onClose")}),be.set(this.markers,t,r),this.clusterMarkers(this.clusterOptions,null,!1),be.has(e,"html")?(be.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">'+be.get(e,"html")+"</div>"}),r.marker.addListener("click",()=>this.toggleInfo(t)),r.info.addListener("closeclick",()=>this.closeInfo(t)),r.info.addListener("domready",()=>Me.fire("MapsDomReady")),be.set(this.markers,t,r),be.get(this.markers,t)):be.get(this.markers,t)}setMarkerPosition(t,e={}){let r=be.get(this.markers,t);if(ve.isEmpty(r))return console.error(`Marker "${t}" not found`);r.marker.setPosition(e)}setMarkerByAddress(t,e){return this.getLocationByAddress(e,e=>{this.setMarkerPosition(t,be.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 ve.isEmpty(t)||(e=be.filter(this.markers,t)),Map.hideMarkers&&be.each(ve.keys(this.markers),this.hideMarker.bind(this)),be.each(e,t=>this.showMarker(t.key)),this.clusterMarkers(this.clusterOptions,null,!1),this}getMarkerBoundry(t=null){let e=this.markers;ve.isEmpty(t)||(e=be.filter(this.markers,t));let r=new globalThis.google.maps.LatLngBounds;return be.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;be.has(t,"map")||(t.map=this.map),be.has(t,"travelMode")||(t.travelMode="DRIVING"),r.setMap(t.map),be.has(t,"panel")&&!he.find(t.panel).empty()&&r.setPanel(he.find(t.panel).get(0)),t=be.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)})})}}ne(oe,"mapStyle",[]),ne(oe,"markerStyles",{}),ne(oe,"hideMarkers",!0),ne(oe,"closeInfoWindows",!0);const ae=oe;function le(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 ue{static listen(){document.addEventListener("scroll",ue.scroll),ue.scroll()}static scroll(){ye.each(this.invi,(t,e)=>{he.find(t.el).inviewY()&&(ye.removeIndex(this.invi,e),t.cb())})}static alias(t,e){return be.set(this.inis,t,e),this}static bind(t,e,r={}){let i=he.find(e),s=this.getPrefix(t);i.addClass(s);let n=be.get(this.inis,t,null);if(ve.isEmpty(n))return console.error(`Element "${t}" is not defined.`);let o=(t,e)=>{let r=new n(t.get(0),e);return ue.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 he.ready(()=>o.call({},i,r)),this}static unbind(t,e,r={}){let i=he.find(e),s=this.getPrefix(t),n=be.get(this.inis,t,null);if(ve.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),ye.remove(ue.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=ue.getPrefix(t),s=ye.filter(this.runs,{prefix:r});ye.each(s,({el:i})=>{let s=me.objectify(he.find(i).attr(r));if(e&&ve.isEmpty(s)&&(s={_plain:he.find(i).attr(r)}),be.pluck(s,"inview",!1)&&ye.remove(this.invi,{el:i}),!document.body.contains(i))return this.unbind(t,i,s)}),he.find(`[${r}]:not(.${i})`).each(i=>{let s=me.objectify(he.find(i).attr(r));e&&ve.isEmpty(s)&&(s={_plain:he.find(i).attr(r)});let n=()=>{this.bind(t,i,s)};be.pluck(s,"inview",!1)?this.bindInview(i,n):n()})};return he.find(document.body).observer(s)(document.body,i),he.find(document.body).on("dom.change",s),this}static bindInview(t,e){ye.add(this.invi,{el:t,cb:e},{el:t})}static unbindInview(t,e){ye.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}}le(ue,"prefix","js"),le(ue,"mount","mount"),le(ue,"inis",{}),le(ue,"runs",[]),le(ue,"invi",[]);const ce=ue,he=Mt(),de=Ft(),fe=Kt(),pe=s,me=u,ge=p,ye=g,be=b,ve=P,we=Y,Me=E,Oe=H,Pe=W,De=new Proxy({},{get:function(t,e){return console.warn(`Any.${e} is deprecated, use Mix.${e}() instead.`),(...t)=>ve[e](...t)}}),ke=function(){return console.warn("UUID() is deprecated, use Hash.make() instead."),Y.make()};return e})());
|
|
2
2
|
//# sourceMappingURL=pico-js.esm.js.map
|