@kizmann/pico-js 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/utility/array.js +4 -0
package/dist/pico-js.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack://Pico/webpack/universalModuleDefinition","webpack://Pico/webpack/bootstrap","webpack://Pico/./src/index.js","webpack://Pico/./src/utility/any.js","webpack://Pico/./src/utility/array.js","webpack://Pico/./src/utility/number.js","webpack://Pico/./src/utility/object.js","webpack://Pico/(webpack)/buildin/global.js","webpack://Pico/./src/utility/string.js","webpack://Pico/./src/utility/now.js","webpack://Pico/./src/utility/dom.js","webpack://Pico/./src/library/cookie.js","webpack://Pico/./src/library/data.js","webpack://Pico/./src/library/element.js","webpack://Pico/./src/library/event.js","webpack://Pico/./src/library/locale.js","webpack://Pico/./src/library/map.js","webpack://Pico/./src/library/queue.js","webpack://Pico/./src/library/route.js","webpack://Pico/./node_modules/uuid/index.js","webpack://Pico/./node_modules/uuid/lib/rng-browser.js","webpack://Pico/./node_modules/uuid/lib/bytesToUuid.js","webpack://Pico/./node_modules/uuid/v1.js","webpack://Pico/./node_modules/uuid/v4.js"],"names":["root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Pico","UUID","Arr","Obj","Num","Str","Now","Any","Dom","Cookie","Data","Element","Event","Locale","Map","Queue","Route","global","IE","navigator","userAgent","match","WIN","pi","document","ready","listen","_classCallCheck","val","this","isNumber","isString","isBool","isPlain","isArray","keys","length","obj","Node","isEqualNode","is","_typeof","isObject","constructor","Array","Date","String","empty","arguments","undefined","isEmpty","string","fallback","NaN","res","toString","integer","Number","isNaN","parseInt","replace","parseFloat","result","yes","no","format","make","push","callback","_len","args","_key","setTimeout","apply","delay","_len2","_key2","ref","debounce","__debouce","_len3","_key3","clearTimeout","throttle","timer","rate","latest","now","form","FormData","appendField","values","each","index","inner","merge","splice","append","count","map","fill","arr","isFunction","sort","a","b","va","toLowerCase","vb","filter","filterIndex","includes","first","findIndex","finder","slice","arr1","arr2","_this","complete","rainbow","has","_step","_iterator","_createForOfIteratorHelper","vals","done","indexOf","err","e","f","_step2","_iterator2","concat","clone","_step3","_iterator3","diff","_len4","_key4","reduce","chunk","accumulator","path","_step4","_iterator4","_step5","_iterator5","_this2","cascade","recursive","num","Math","ceil","round","floor","fixed","toFixed","start","end","random","base","pow","acc","cord1","cord2","miles","defaultCord","lat","lng","assign","radlat1","PI","radlat2","theta","radtheta","dist","sin","cos","acos","decimal","thousand","totals","minals","splits","split","reverse","join","lst","pop","undef","nested","shift","unset","matches","entries","_step4$value","_slicedToArray","_step6","_iterator6","sey","tey","g","Function","toUpperCase","slug","slugify","ucfirst","targets","source","RegExp","charAt","search","lower","decimals","size","unit","limit","real","array","bool","fromParams","fromOptions","JSON","parse","params","options","stringify","quota","convertFromOptions","attr","set","convertFromParams","date","_defineProperty","moment","Error","toDate","initialDate","second","add","minute","hour","day","subtract","month","year","isValid","force","valid","before","code","after","equal","fromDate","subDecades","addDecades","prevMonth","decade","_this3","_this4","lastDate","target","range","targetNow","afterDate","equalDate","nextDate","beforeDate","dates","getDates","prev","prepend","prevDate","next","last","_this5","interval","_this6","_this7","el","NodeList","ratio","viewport","find","width","element","height","scroll","offset","left","right","top","bottom","selector","parent","els","node","parentNode","body","scrollHeight","clientHeight","contains","closest","nodes","childNodes","nodeType","querySelectorAll","insertBefore","removeChild","previousSibling","nextSibling","timeout","setInterval","naturalWidth","clearInterval","event","paused","on","func","events","addEventListener","live","srcElement","location","clientX","clientY","inside","off","dispatchEvent","indexes","removeEventListener","removeIndex","unpause","_this8","pause","_this9","observer","MutationObserver","mutation","observe","_this10","ResizeObserver","datas","html","innerHTML","computed","getComputedStyle","styles","objectify","cls","intersect","addClass","removeClass","remove","toggleClass","hasClass","_this11","getAttribute","removeAttribute","setAttribute","style","offsetParent","boundry","loopOffsetParent","offsetTop","offsetLeft","scrollWidth","loopParent","scrollTop","pageYOffset","scrollLeft","pageXOffset","computedStyle","margin","marginTop","marginLeft","marginBottom","marginRight","padding","paddingTop","paddingLeft","paddingBottom","paddingRight","innerHeight","offsetHeight","_this12","actual","auto","display","css","innerWidth","offsetWidth","_this13","readyState","globals","required","createElement","posx","posy","elementsFromPoint","msElementsFromPoint","text","glue","title","baseTitle","decode","pattern","cookie","plain","expire","setTime","getTime","expires","toUTCString","input","data","isEqual","fire","forceSet","id","invi","item","inviewY","cb","instance","inis","prefix","getPrefix","console","error","runs","deamon","unbind","childList","subtree","attributes","attributeFilter","mounted","deamons","_ref","_plain","pluck","bindCb","bindInview","_event$callback","splitLength","locales","message","pickByCount","google","center","only","mapStyle","gestureHandling","scrollwheel","zoom","except","maps","allowCreate","cluster","MarkerClusterer","imagePath","clearMarkers","clusterFilter","markers","visible","getMarkerVisibility","marker","clusterOptions","type","getInfoVisibility","markerStyles","setIcon","getVisible","getPosition","hideMarker","showMarker","hidden","setVisible","closeInfo","styleMarker","info","getMap","openInfo","closeInfoWindows","open","close","extras","position","Marker","clusterMarkers","addListener","enterMarker","leaveMarker","InfoWindow","content","toggleInfo","setPosition","address","getLocationByAddress","setMarkerPosition","geocoderService","Geocoder","Promise","resolve","reject","geocode","response","status","hideMarkers","LatLngBounds","extend","maxZoom","boundSpace","getMarkerBoundry","setCenter","getCenter","fitBounds","getZoom","setZoom","directionsService","DirectionsService","directionsRenderer","DirectionsRenderer","travelMode","setMap","panel","setPanel","route","setDirections","extra","final","Size","origin","Point","anchor","url","scaledSize","hover","active","prop","queue","stopQueue","handler","activeQueue","routes","href","v1","v4","uuid","getRandomValues","crypto","msCrypto","rnds8","Uint8Array","rnds","byteToHex","substr","buf","bth","_nodeId","_clockseq","rng","bytesToUuid","_lastMSecs","_lastNSecs","clockseq","seedBytes","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IjU,EAAI+kB,GAAO9Q,GAAU,EAEF,iBAAb,IACR8Q,EAAkB,WAAZ7U,EAAuB,IAAItL,MAAM,IAAM,KAC7CsL,EAAU,MAIZ,IAAI0U,GAFJ1U,EAAUA,GAAW,CAAC,GAEHlE,SAAWkE,EAAQiV,KAAOA,KAO7C,GAJAP,EAAK,GAAgB,GAAVA,EAAK,GAAa,GAC7BA,EAAK,GAAgB,GAAVA,EAAK,GAAa,IAGzBG,EACF,IAAK,IAAIe,EAAK,EAAGA,EAAK,KAAMA,EAC1Bf,EAAI/kB,EAAI8lB,GAAMlB,EAAKkB,GAIvB,OAAOf,GAAOK,EAAYR,EAC5B,C","file":"pico-js.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Pico\"] = factory();\n\telse\n\t\troot[\"Pico\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 20);\n","\nimport Arr from \"./utility/array.js\";\nexport { Arr };\n\nimport Obj from \"./utility/object.js\";\nexport { Obj };\n\nimport Num from \"./utility/number.js\";\nexport { Num };\n\nimport Str from \"./utility/string.js\";\nexport { Str };\n\nimport Now from \"./utility/now.js\";\nexport { Now };\n\nimport Any from \"./utility/any.js\";\nexport { Any };\n\nimport Dom from \"./utility/dom.js\";\nexport { Dom };\n\nimport Cookie from \"./library/cookie.js\";\nexport { Cookie };\n\nimport Data from \"./library/data.js\";\nexport { Data };\n\nimport Element from \"./library/element.js\";\nexport { Element };\n\nimport Event from \"./library/event.js\";\nexport { Event };\n\nimport Locale from \"./library/locale.js\";\nexport { Locale };\n\nimport Map from \"./library/map.js\";\nexport { Map };\n\nimport Queue from \"./library/queue.js\";\nexport { Queue };\n\nimport Route from \"./library/route.js\";\nexport { Route };\n\nimport { v4 as UUID } from \"uuid\"\nexport { UUID };\n\nexport const Pico = {\n\n UUID: UUID,\n\n Arr: Arr,\n Obj: Obj,\n Num: Num,\n Str: Str,\n Now: Now,\n Any: Any,\n Dom: Dom,\n\n Cookie: Cookie,\n Data: Data,\n Element: Element,\n Event: Event,\n Locale: Locale,\n Map: Map,\n Queue: Queue,\n Route: Route,\n}\n\n/**\n * @const global\n */\n\nif ( typeof global.IE === 'undefined' && global.navigator ) {\n global.IE = !! global.navigator.userAgent.match(/Edge\\/|Trident\\/|MSIE /);\n}\n\nif ( typeof global.WIN === 'undefined' && global.navigator ) {\n global.WIN = !! global.navigator.userAgent.match(/Windows/);\n}\n\nif ( typeof global.pi === 'undefined' && global.navigator ) {\n global.pi = Pico;\n}\n\nif ( typeof global.pi !== 'undefined' && global.document ) {\n global.pi.Dom.ready(global.pi.Element.listen);\n}\n\nexport default Pico;\n","import { Arr, Obj, Now } from \"../index.js\";\n\nexport class Any\n{\n static isEmpty(val)\n {\n if ( this.isNumber(val) ) {\n return false;\n }\n\n if ( this.isString(val) ) {\n return val === '';\n }\n\n if ( this.isBool(val) ) {\n return val === null;\n }\n\n if ( this.isPlain(val) ) {\n return Object.keys(val).length === 0;\n }\n\n if ( this.isArray(val) ) {\n return Object.keys(val).length === 0;\n }\n\n return val === null || val === undefined;\n }\n\n static isNull(val)\n {\n return val === null;\n }\n\n static isEqual(obj, val)\n {\n if ( obj instanceof Node ) {\n return obj.isEqualNode(val);\n }\n\n if ( this.isPlain(obj) ) {\n return Object.is(obj, val)\n }\n\n if ( this.isArray(obj) ) {\n return Object.is(obj, val)\n }\n\n return obj === val;\n }\n\n static isString(val)\n {\n return typeof val === 'string';\n }\n\n static isNumber(val)\n {\n return typeof val === 'number' ||\n (typeof val === 'string' && val.match(/^\\-?[0-9]+$/));\n }\n\n static isBool(val)\n {\n return typeof val === 'boolean' ||\n (typeof val === 'string' && val.match(/^(true|false)$/));\n }\n\n static isFunction(val)\n {\n return typeof val === 'function';\n }\n\n static isObject(val)\n {\n return val !== null && typeof val === 'object';\n }\n\n static isPlain(val)\n {\n return this.isObject(val) && val.constructor === Object;\n }\n\n static isArray(val)\n {\n return this.isObject(val) && val.constructor === Array;\n }\n\n static isDate(val)\n {\n return val instanceof Date;\n }\n\n static string(val)\n {\n return String(val);\n }\n\n static convertString(val, empty = '-')\n {\n return this.isEmpty(val) ? empty : this.string(val);\n }\n\n static number(val, fallback = NaN)\n {\n let res = ! val || typeof val.toString === 'undefined' ?\n String(val) : val.toString();\n\n if ( ! Any.isString(res) ) {\n return fallback;\n }\n\n if ( res.match(/^[0-9]+$/) ) {\n return this.integer(val);\n }\n\n if ( res.match(/^[0-9.,]+$/) ) {\n return this.float(val);\n }\n\n if ( ! this.isNumber(res) || Number.isNaN(res) ) {\n return fallback;\n }\n\n return res;\n }\n\n static integer(val)\n {\n let res = ! val || typeof val.toString === 'undefined' ?\n String(val) : val.toString();\n\n if ( ! Any.isString(res) ) {\n return NaN;\n }\n\n return parseInt(val);\n }\n\n static float(val)\n {\n let res = typeof val.toString === 'undefined' ?\n String(val) : val.toString();\n\n if ( ! Any.isString(res) ) {\n return NaN;\n }\n\n if ( res.match(/^[0-9,]+$/) ) {\n res = res.replace(/,/g, '.');\n }\n\n return parseFloat(res);\n }\n\n static bool(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static boolean(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static convertBool(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertBoolean(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertDatetime(val, format = 'YYYY-MM-DD hh:mm:ss', empty = '-')\n {\n if ( Any.isEmpty(val) === true ) {\n return empty;\n }\n\n return Now.make(val).format(format);\n }\n\n static vals(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n\n static keys(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n\n static async(callback, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, 0);\n\n return this;\n }\n\n static delay(callback, delay = 100, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, delay);\n\n return this;\n }\n\n static debounce(callback, delay = 100, ref = null)\n {\n let debounce = null;\n\n if ( ! Any.isEmpty(ref) ) {\n debounce = ref();\n }\n\n if ( ref !== null && ref.__debouce !== undefined ) {\n debounce = ref.__debouce;\n }\n\n return (...args) => {\n\n clearTimeout(debounce);\n\n debounce = setTimeout(() => {\n callback(...args);\n }, delay);\n\n if ( ! Any.isEmpty(ref) ) {\n ref(debounce);\n }\n };\n }\n\n static throttle(callback, delay = 100, ref = null)\n {\n let throttle = null;\n\n if ( ! Any.isEmpty(ref) ) {\n throttle = ref();\n }\n\n let timer = null;\n\n return (...args) => {\n\n clearTimeout(timer);\n\n timer = setTimeout(() => {\n throttle = null;\n }, delay);\n\n if ( throttle === true ) {\n return;\n }\n\n throttle = true;\n\n if ( ! Any.isEmpty(ref) ) {\n ref(throttle);\n }\n\n callback(...args);\n };\n }\n\n static framerate(callback, rate = 30, ref = null)\n {\n let latest = 0;\n\n if ( ! Any.isEmpty(ref) ) {\n latest = ref();\n }\n\n return (...args) => {\n\n if ( Date.now() - latest <= (1000 / rate) ) {\n return;\n }\n\n callback(...args);\n\n latest = Date.now();\n\n if ( ! Any.isEmpty(ref) ) {\n ref(latest);\n }\n\n };\n }\n\n static form(obj)\n {\n let form = new FormData();\n\n let appendField = (values, keys = []) => {\n Obj.each(values, (value, index) => {\n\n let inner = Arr.merge([], keys, index);\n\n if ( Any.isPlain(value) ) {\n return appendField(value, inner);\n }\n\n if ( Any.isArray(value) ) {\n return appendField(value, inner);\n }\n\n let key = inner.splice(0, 1)[0];\n\n Arr.each(inner, (index) => {\n key += '[' + index + ']';\n });\n\n if ( value !== null ) {\n form.append(key, value);\n }\n });\n\n return form;\n };\n\n return appendField(obj);\n }\n\n}\n\nexport default Any;\n","import { Obj, Num, Any } from \"../index.js\"\n\nexport class Arr\n{\n static make(count)\n {\n return Arr.map(Array(count).fill(null), (val, key) => {\n return Num.int(key) + 1;\n });\n }\n\n static all(arr)\n {\n return Array.isArray(arr) ? arr : [arr];\n }\n\n static get(arr, index, fallback = null)\n {\n return arr[index] || fallback;\n }\n\n static set(arr, index, value)\n {\n return arr[index] = value;\n }\n\n static first(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[0] : \n arr) || fallback;\n }\n\n static second(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[1] || \n arr[0] : arr) || fallback;\n }\n\n static third(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[2] || \n arr[1] || arr[0] : arr) || fallback;\n }\n\n static last(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[arr.length - 1] : \n arr) || fallback;\n }\n\n static prepend(arr, val)\n {\n arr.splice(0, 0, val);\n return arr;\n }\n\n static append(arr, val)\n {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return(va < vb) ? -1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n\n static filter(arr, filter)\n {\n return Arr.each(Arr.filterIndex(arr, filter), (key) => {\n return arr[key];\n });\n }\n\n static filterIndex(arr, filter)\n {\n return Any.keys(arr).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, arr[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, arr[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n\n static find(arr, val, fallback = null)\n {\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n\n static findIndex(arr, val, fallback = -1)\n {\n return Any.integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n\n static has(arr, val)\n {\n return this.findIndex(arr, val) !== - 1;\n }\n\n static add(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index === - 1 ) {\n arr.push(val);\n }\n\n return arr;\n }\n\n static replace(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n\n return arr;\n }\n\n static remove(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n\n static toggle(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n } else {\n arr.push(val);\n }\n\n return arr;\n }\n\n static removeIndex(arr, val)\n {\n if ( val < arr.length ) {\n arr.splice(Num.int(val), 1);\n }\n\n return arr;\n }\n\n static insert(arr, key, val)\n {\n arr.splice(Num.int(key), 0, val);\n\n return arr;\n }\n\n static slice(arr, key, count = 1)\n {\n return arr.slice(Num.int(key), count);\n }\n\n static splice(arr, key, count = 1)\n {\n return arr.splice(Num.int(key), count);\n }\n\n static equal(arr1, arr2)\n {\n let complete = this.merge([], arr1, arr2);\n\n let rainbow = this.each(complete, (value) => {\n return this.has(arr1, value) && this.has(arr2, value);\n });\n\n return ! this.has(rainbow, false);\n }\n\n static includes(arr, val)\n {\n if ( Any.isString(val) ) {\n val = [val];\n }\n\n let result = false;\n\n for ( let key of Any.vals(arr) ) {\n result = val.indexOf(key) !== -1 || result;\n }\n\n return result;\n }\n\n static contains(arr, val)\n {\n let result = true;\n\n for ( let key of Any.vals(val) ) {\n result = Any.vals(arr).indexOf(key) !== -1 && result;\n }\n\n return result;\n }\n\n static concat(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static clone(arr)\n {\n let clone;\n\n if ( Any.isPlain(arr) ){\n return Obj.clone(arr);\n }\n\n if ( Any.isArray(arr) ){\n\n clone = [];\n\n for ( let key of Any.keys(arr) ) {\n clone[key] = Obj.clone(arr[key]);\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n\n static merge(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static push(arr, ...args)\n {\n arr.push(...args);\n\n return arr;\n }\n\n static diff(arr, val)\n {\n return arr.filter((diff) => val.indexOf(diff) < 0);\n }\n\n static intersect(...args)\n {\n return args.reduce((a, c) => a.filter(i => c.includes(i)));\n }\n\n static chunk(arr, chunk = 10)\n {\n let res = [];\n\n for ( let i = 0; i < arr.length; i += chunk ) {\n res.push(arr.slice(i, i + chunk));\n }\n\n return res;\n }\n\n static reduce(arr, callback, accumulator)\n {\n return Object.values(arr).reduce(callback, accumulator);\n }\n\n static extract(arr, path)\n {\n return this.each(arr, (val) => Obj.get(val, path, null));\n }\n\n static each(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return Any.vals(result);\n }\n\n static map(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = arr[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return result;\n }\n\n static recursive(arr, key, callback, cascade = [])\n {\n if ( Any.isArray(arr) === true ) {\n return this.map(arr, (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n }\n\n if ( Any.isObject(arr) === true ) {\n\n let res = callback(arr, cascade);\n\n arr = res !== undefined ?\n res : arr;\n }\n\n if ( Any.isArray(arr[key]) === true ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.map(arr[key], (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n\n return arr;\n }\n\n if ( Any.isEmpty(arr[key]) === false ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n\n return arr;\n }\n\n return arr;\n }\n\n}\n\nexport default Arr;\n","import { Any, Arr, Obj } from \"../index.js\"\n\nexport class Num\n{\n static int(num)\n {\n return !Any.isString(num) ? parseInt(num) :\n parseInt(num.replace('px', ''));\n }\n\n static float(num)\n {\n return !Any.isString(num) ? parseFloat(num) :\n parseFloat(num.replace('px', ''));\n }\n\n static ceil(num)\n {\n return Math.ceil(num);\n }\n\n static round(num)\n {\n return Math.round(num);\n }\n\n static floor(num)\n {\n return Math.floor(num);\n }\n\n static fixed(num, fixed = 2)\n {\n return this.float(num).toFixed(fixed);\n }\n\n static random(start = 0, end = 100)\n {\n return Math.floor((Math.random() * (end + 1)) + start);\n }\n\n static matrix(num, limit = 10, base = [])\n {\n let value = 0;\n\n for ( let i = 20; i >= 0; i -- ) {\n if ( num >= (value = Math.pow(2, i)) ) {\n base.push(value);\n num -= value;\n }\n }\n\n return base;\n }\n\n static combine(arr)\n {\n return Arr.reduce(arr, (acc, val) => acc + val, 0);\n }\n\n static distance(cord1, cord2, miles = false)\n {\n let defaultCord = {\n lat: 0, lng: 0\n };\n\n cord1 = Obj.assign({}, defaultCord, cord1);\n cord2 = Obj.assign({}, defaultCord, cord2);\n\n let radlat1 = (Math.PI * this.float(cord1.lat)) / 180;\n let radlat2 = (Math.PI * this.float(cord2.lat)) / 180;\n\n let theta = this.float(cord1.lng) - this.float(cord2.lng);\n let radtheta = (Math.PI * theta) / 180;\n\n let dist = Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n\n if ( dist > 1 ) {\n dist = 1;\n }\n\n dist = (Math.acos(dist) * 180) / Math.PI * 60 * 1.1515;\n\n if ( !miles ) {\n dist = dist * 1.609344;\n }\n\n return dist;\n }\n\n static format(num, decimal = '.', thousand = ',', fixed = null)\n {\n if ( num === null ) {\n return null;\n }\n\n let value = num.toString();\n\n if ( fixed !== null && fixed !== - 1 ) {\n value = Any.float(num).toFixed(fixed);\n }\n\n let totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n\n let splits = Arr.reduce(totals.split('').reverse(), (result, val, key) => {\n\n let index = Math.floor(key / 3);\n\n result[index] = index === key / 3 ?\n val : result[index] = val + result[index];\n\n return result;\n }, []);\n\n let result = splits.reverse().join(thousand);\n\n if ( fixed !== - 1 && fixed !== 0 && value.match(/\\./) ) {\n result += decimal + minals;\n }\n\n return result;\n }\n}\n\nexport default Num;\n","import Arr from \"./array.js\";\nimport Any from \"./any.js\";\n\nexport class Obj\n{\n static has(obj, keys)\n {\n if ( obj === null || obj === undefined ) {\n return false;\n }\n\n if ( keys === null || keys === undefined ) {\n return false;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let lst = keys.pop(), index = 0, length = keys.length;\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return false;\n }\n\n return obj[lst] !== undefined;\n }\n\n static empty(obj, key)\n {\n return Any.isEmpty(this.get(obj, key, null));\n }\n\n static get(obj, keys, fallback = null)\n {\n if ( obj === null || obj === undefined ) {\n return fallback;\n }\n\n if ( keys === null || keys === undefined ) {\n return fallback;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n let undef = true;\n\n if ( typeof obj === 'object' ) {\n undef = obj[keys] === null || obj[keys] === undefined\n }\n\n if ( ! undef ) {\n return obj[keys];\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length;\n\n if ( length === 0 ) {\n return fallback;\n }\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return fallback;\n }\n\n return obj;\n }\n\n static set(obj, keys, val)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n let undef = true;\n\n if ( typeof obj === 'object' ) {\n undef = obj[keys] === null || obj[keys] === undefined\n }\n\n if ( ! undef ) {\n obj[keys] = val; return obj;\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length, nested = obj;\n\n if ( length === 0 ) {\n return obj;\n }\n\n while (nested !== null && index < length) {\n\n if ( nested[keys[index]] === undefined || nested[keys[index]] === null ) {\n nested[keys[index]] = {};\n }\n\n if ( index == length - 1 ) {\n nested[keys[index]] = val;\n }\n\n nested = nested[keys[index++]];\n }\n\n return obj;\n }\n\n static unset(obj, keys)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let key = keys.shift();\n\n if ( typeof obj[key] === 'undefined' ) {\n return obj;\n }\n\n if ( keys.length === 0 ) {\n delete obj[key];\n return obj;\n }\n\n return this.unset(obj[key], keys);\n }\n\n static pluck(obj, keys, fallback = null)\n {\n let value = this.get(obj, keys, fallback);\n\n this.unset(obj, keys);\n\n return value;\n }\n\n static only(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === true ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static except(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === false ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static includes(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isPlain(obj[key]) || Any.isArray(obj[key]) ?\n this.includes(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static matches(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isObject(obj[key]) ?\n this.matches(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return (va < vb) ? - 1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static filter(obj, filter)\n {\n return Obj.each(Obj.filterIndex(obj, filter), (key) => {\n return obj[key];\n });\n }\n\n static filterIndex(obj, filter)\n {\n return Any.keys(obj).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, obj[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, obj[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, obj[key]);\n }\n\n return filter === obj[key];\n });\n }\n\n static find(arr, obj, fallback = null)\n {\n return Arr.first(Obj.filter(arr, obj)) || fallback;\n }\n\n static findIndex(arr, obj, fallback = - 1)\n {\n return Arr.first(Obj.filterIndex(arr, obj)) || fallback;\n }\n\n static clone(obj)\n {\n let clone;\n\n if ( Any.isArray(obj) === true ) {\n return Arr.clone(obj);\n }\n\n if ( Any.isPlain(obj) === true ) {\n\n clone = {};\n\n for ( let key of Any.keys(obj) ) {\n clone[key] = Obj.clone(obj[key]);\n }\n\n return clone;\n }\n\n return clone || obj;\n }\n\n static assign(...args)\n {\n return Object.assign(...args);\n }\n\n static remove(obj, keys)\n {\n Arr.each(keys, (key) => delete obj[key]);\n\n return obj;\n }\n\n static each(obj, callback)\n {\n let result = {};\n\n if ( global.FormData && obj instanceof FormData ) {\n\n for ( let [key, value] of obj.entries() ) {\n result[key] = callback(value, key);\n }\n\n return obj;\n }\n\n for ( let key of Any.keys(obj) ) {\n result[key] = callback(obj[key], key);\n }\n\n return result;\n }\n\n static map(obj, callback)\n {\n for ( let key of Any.keys(obj) ) {\n obj[key] = callback(obj[key], key);\n }\n\n return obj;\n }\n\n static values(obj)\n {\n let result = [];\n\n this.each(obj, val => result.push(val));\n\n return result;\n }\n\n static flatten(obj)\n {\n let result = {};\n\n let callback = (val, sey = null) => {\n\n Arr.each(Any.keys(val), (key) => {\n\n let tey = key;\n\n if ( ! Any.isEmpty(sey) ) {\n tey = `${sey}.${key}`;\n }\n\n if ( Any.isPlain(val[key]) ) {\n return callback(val[key], tey);\n }\n\n result[tey] = val[key];\n });\n\n };\n\n callback(obj);\n\n return result;\n }\n\n}\n\nexport default Obj;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","import Arr from \"./array.js\";\nimport Obj from \"./object.js\";\nimport Num from \"./number.js\";\nimport Any from \"./any.js\";\n\nexport class Str\n{\n static regexEscape(val)\n {\n return String(val).replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n static upper(val)\n {\n return String(val).toUpperCase();\n }\n\n static lower(val)\n {\n return String(val).toLowerCase();\n }\n\n static camelcase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split, index) => {\n\n if ( index === 0 ) {\n return split;\n }\n\n return Str.ucfirst(split);\n });\n\n return slugSplits.join('');\n }\n\n static humancase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split) => {\n return Str.ucfirst(split);\n });\n\n return slugSplits.join(' ');\n }\n\n static slugify(val)\n {\n val = String(val).replace(/^\\s+|\\s+$/g, '')\n .toLowerCase();\n\n let sources = [\n 'à', 'á', 'â', 'è', 'é', 'ê', 'ì', 'í', 'ï', 'î', 'ò', 'ó', 'ô',\n 'ù', 'ú', 'û', 'ñ', 'ç', '·', '/', '_', ',', ':', ';', 'ä', 'ö', 'ü'\n ];\n\n let targets = [\n 'a', 'a', 'a', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'o', 'o', 'o',\n 'u', 'u', 'u', 'n', 'c', '-', '-', '-', '-', '-', '-', 'ae', 'oe', 'ue'\n ];\n\n Arr.each(sources, (source, index) => {\n val = val.replace(new RegExp(source.charAt(source), 'g'), targets[index]);\n });\n\n return val.replace(/[^a-z0-9 -]/g, '')\n .replace(/\\s+/g, '-').replace(/-+/g, '-');\n }\n\n static ucfirst(val)\n {\n return val.charAt(0).toUpperCase() + val.slice(1);\n }\n\n static lcfirst(val)\n {\n return val.charAt(0).toLowerCase() + val.slice(1);\n }\n\n static has(val, search)\n {\n return this.lower(val).indexOf(this.lower(search)) !== -1;\n }\n\n static filesize(val, decimals = 1)\n {\n let size = null;\n\n let units = [\n 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'\n ];\n\n Arr.each(units, (unit, count) => {\n\n let limit = Math.pow(1000, Any.integer(count));\n\n if ( val <= limit) {\n return;\n }\n\n size = Num.fixed(val / limit, decimals) + ' ' + unit;\n });\n\n return size;\n }\n\n static array(value, fallback = [])\n {\n value = value.replace(/^@\\[(.*?)?\\]$/, '$1');\n\n if ( Any.isEmpty(value) ) {\n return fallback;\n }\n\n return Arr.each(value.split(','), (val) => {\n return Str.real(val.replace(/(^\"|^'|\"$|'$)/g, ''));\n });\n }\n\n static real(value)\n {\n if ( typeof value === 'string' && value.match(/^@\\[.*?\\]$/) ) {\n value = Str.array(value);\n }\n\n if ( typeof value === 'string' && value.match(/^(null|undefined)$/i) ) {\n value = null;\n }\n\n if ( typeof value === 'string' && value.match(/^(true|false)$/i) ) {\n value = Any.bool(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+$/) ) {\n value = Num.int(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+\\\\.[0-9]+$/) ) {\n value = Num.float(value);\n }\n\n return value;\n }\n\n /**\n * Parse param string to object\n */\n static objectify(value, mode = 'options', isArray = false)\n {\n if ( Any.isObject(value) ) {\n return value;\n }\n\n if ( mode === 'params' ) {\n return Str.fromParams(value, isArray);\n }\n\n if ( mode === 'options' ) {\n return Str.fromOptions(value, isArray);\n }\n\n return JSON.parse(value);\n }\n\n /**\n * Parse param object to string\n */\n static stringify(value, mode = 'options')\n {\n if ( Any.isString(value) ) {\n return value;\n }\n if ( mode === 'params' ) {\n return Str.params(value);\n }\n\n if ( mode === 'options' ) {\n return Str.options(value);\n }\n\n return JSON.stringify(value);\n }\n\n /**\n * Parse object to string (e.g. foo:bar;test:lorem).\n */\n static options(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '.' + key;\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.options(value, key).replace(/;$/, ''));\n }\n\n result.push(String(key) + ':' + String(value));\n });\n\n return result.join(';') + ';';\n }\n\n /**\n * Parse string to object (e.g. foo:bar;test:lorem).\n */\n static fromOptions(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|;)(\\\\s*(.*?)\\\\s*:\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=;|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromOptions, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result;\n }\n\n static convertFromOptions(result, match)\n {\n // Get key and value from match\n let attr = match.match(/^;?\\s*(.*?)\\s*:\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, attr[1], val);\n\n return result;\n }\n\n /**\n * Parse object to string (e.g. foo=bar&test=lorem).\n */\n static params(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '[' + key + ']';\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.params(value, key));\n }\n\n result.push(String(key) + '=' + String(value));\n });\n\n return result.join('&');\n }\n\n /**\n * Parse string to object (e.g. foo=bar&test=lorem).\n */\n static fromParams(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|&)(\\\\s*(.*?)\\\\s*=\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=&|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromParams, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result\n }\n\n static convertFromParams(result, match) {\n\n // Get key and value from match\n let attr = match.match(/^&?\\s*(.*?)\\s*=\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let key = attr[1].replace(/(\\]\\[|\\[|\\])/g, '.')\n .replace(/\\.$/, '');\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, key, val);\n\n return result;\n }\n\n}\n\nexport default Str;\n","import { Num, Arr, Any } from \"../index.js\";\n\nexport class Now\n{\n initialDate = null;\n moment = null;\n\n constructor(date = null, format = 'YYYY-MM-DD HH:mm:ss')\n {\n if ( ! global.moment ) {\n throw new Error('Moment.js is required for pi.Now');\n }\n\n if ( date instanceof Now ) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if ( ! Any.isString(date) ) {\n this.moment = global.moment(date || new Date, format);\n }\n\n if ( this.moment !== null ) {\n return this;\n }\n\n this.moment = global.moment(date.match(/^now/) ?\n new Date : date, format);\n\n let second = this.initialDate.match(/(\\+|-)([0-9]+)seconds?/);\n\n if ( Any.isEmpty(second) === false && second[1] === '+' ) {\n this.moment.add(second[2], 'second');\n }\n\n let minute = this.initialDate.match(/(\\+|-)([0-9]+)minutes?/);\n\n if ( Any.isEmpty(minute) === false && minute[1] === '+' ) {\n this.moment.add(minute[2], 'minute');\n }\n\n let hour = this.initialDate.match(/(\\+|-)([0-9]+)hours?/);\n\n if ( Any.isEmpty(hour) === false && hour[1] === '+' ) {\n this.moment.add(hour[2], 'hour');\n }\n\n let day = this.initialDate.match(/(\\+|-)([0-9]+)days?/);\n\n if ( Any.isEmpty(day) === false && day[1] === '+' ) {\n this.moment.add(day[2], 'day');\n }\n\n if ( Any.isEmpty(day) === false && day[1] === '-' ) {\n this.moment.subtract(day[2], 'day');\n }\n\n let month = this.initialDate.match(/(\\+|-)([0-9]+)months?/);\n\n if ( Any.isEmpty(month) === false && month[1] === '+' ) {\n this.moment.add(month[2], 'month');\n }\n\n if ( Any.isEmpty(month) === false && month[1] === '-' ) {\n this.moment.subtract(month[2], 'month');\n }\n\n let year = this.initialDate.match(/(\\+|-)([0-9]+)years?/);\n\n if ( Any.isEmpty(year) === false && year[1] === '+' ) {\n this.moment.add(year[2], 'year');\n }\n\n if ( Any.isEmpty(year) === false && year[1] === '-' ) {\n this.moment.subtract(year[2], 'year');\n }\n\n return this;\n }\n\n static make(date = null, format = 'YYYY-MM-DD HH:mm:ss')\n {\n return new Now(date, format);\n }\n\n get()\n {\n return this.moment;\n }\n\n valid()\n {\n return ! Any.isEmpty(this.initialDate) &&\n global.moment(this.initialDate).isValid();\n }\n\n clone()\n {\n return new Now(this.moment.toDate());\n }\n\n code(format = 'X')\n {\n return Num.int(this.format(format, true));\n }\n\n format(format = 'YYYY-MM-DD HH:mm:ss', force = false)\n {\n if ( ! this.valid() && ! force ) {\n return '';\n }\n\n return this.moment.format(format);\n }\n\n before(before = null)\n {\n return this.code() < Now.make(before).code();\n }\n\n beforeDate(before = null)\n {\n return this.code('YYYYMMDD') <\n Now.make(before).code('YYYYMMDD');\n }\n\n beforeTime(before = null)\n {\n return this.code('HHmmss') <\n Now.make(before).code('HHmmss');\n }\n\n after(after = null)\n {\n return this.code() > Now.make(after).code();\n }\n\n afterDate(after = null)\n {\n return this.code('YYYYMMDD') >\n Now.make(after).code('YYYYMMDD');\n }\n\n afterTime(after = null)\n {\n return this.code('HHmmss') >\n Now.make(after).code('HHmmss');\n }\n\n equal(equal = null, format = 'X')\n {\n return this.code(format) ===\n Now.make(equal).code(format);\n }\n\n equalDate(equal = null, format = 'YYYYMMDD')\n {\n return this.equal(equal, format);\n }\n\n equalTime(equal = null, format = 'HHmmss')\n {\n return this.equal(equal, format);\n }\n\n between(fromDate = null, toDate = null, format = 'YYYYMMDD')\n {\n if ( Now.make(toDate).code(format) < Now.make(fromDate).code(format) ) {\n return this.after(toDate, format) && this.before(fromDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n return this.after(fromDate, format) && this.before(toDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n decade()\n {\n return Math.floor(this.year() / 10) * 10;\n }\n\n prevDecade()\n {\n return this.clone().subDecades(1);\n }\n\n nextDecade()\n {\n return this.clone().addDecades(1);\n }\n\n addDecades(count = 1)\n {\n return this.year(this.moment.year() + (count * 10));\n }\n\n subDecades(count = 1)\n {\n return this.year(this.moment.year() - (count * 10));\n }\n\n year(year = null)\n {\n if ( year === null ) {\n return this.moment.year();\n }\n\n this.moment.year(year);\n\n return this;\n }\n\n prevYear()\n {\n return this.clone().year(this.year() - 1);\n }\n\n nextYear()\n {\n return this.clone().year(this.year() + 1);\n }\n\n addYears(count = 1)\n {\n return this.year(this.year() + count);\n }\n\n subYears(count = 1)\n {\n return this.year(this.year() - count);\n }\n\n month(month = null)\n {\n if ( month === null ) {\n return this.moment.month();\n }\n\n this.moment.month(month);\n\n return this;\n }\n\n addMonths(count = 1)\n {\n return this.month(this.month() + count);\n }\n\n subMonths(count = 1)\n {\n return this.month(this.month() - count);\n }\n\n prevMonth()\n {\n return this.clone().month(this.month() - 1);\n }\n\n nextMonth()\n {\n return this.clone().month(this.month() + 1);\n }\n\n date(date = null)\n {\n if ( date === null ) {\n return this.moment.date();\n }\n\n this.moment.date(date);\n\n return this;\n }\n\n addDates(count = 1)\n {\n return this.date(this.date() + count);\n }\n\n subDates(count = 1)\n {\n return this.date(this.date() - count);\n }\n\n prevDate()\n {\n return this.clone().date(this.date() - 1);\n }\n\n nextDate()\n {\n return this.clone().date(this.date() + 1);\n }\n\n lastDate()\n {\n return this.prevMonth().date(0).date();\n }\n\n day(day = null)\n {\n if ( day === null ) {\n return this.moment.day();\n }\n\n this.moment.day(day);\n\n return this;\n }\n\n hour(hour = null)\n {\n if ( hour === null ) {\n return this.moment.hour();\n }\n\n this.moment.hour(hour);\n\n return this;\n }\n\n addHour(count = 1)\n {\n return this.hour(this.hour() + count);\n }\n\n subHour(count = 1)\n {\n return this.hour(this.hour() - count);\n }\n\n prevHour()\n {\n return this.clone().hour(this.hour() - 1);\n }\n\n nextHour()\n {\n return this.clone().hour(this.hour() + 1);\n }\n\n minute(minute = null)\n {\n if ( minute === null ) {\n return this.moment.minute();\n }\n\n this.moment.minute(minute);\n\n return this;\n }\n\n addMinute(count = 1)\n {\n return this.minute(this.minute() + count);\n }\n\n subMinute(count = 1)\n {\n return this.minute(this.minute() - count);\n }\n\n prevMinute()\n {\n return this.clone().minute(this.minute() - 1);\n }\n\n nextMinute()\n {\n return this.clone().minute(this.minute() + 1);\n }\n\n second(second = null)\n {\n if ( second === null ) {\n return this.moment.second();\n }\n\n this.moment.second(second);\n\n return this;\n }\n\n addSecond(count = 1)\n {\n return this.second(this.second() + count);\n }\n\n subSecond(count = 1)\n {\n return this.second(this.second() - count);\n }\n\n prevSecond()\n {\n return this.clone().second(this.second() - 1);\n }\n\n nextSecond()\n {\n return this.clone().second(this.second() + 1);\n }\n\n humanDay()\n {\n return this.day();\n }\n\n humanMonth()\n {\n return this.month();\n }\n\n getMonths()\n {\n return Arr.make(12).map((month) => {\n return this.clone().month(month - 1);\n });\n }\n\n getYears()\n {\n return Arr.make(10).map((year) => {\n return this.clone().year(this.decade() + year - 1);\n });\n }\n\n getYearsGrid(size = 12)\n {\n return Arr.make(size).map((year) => {\n return this.clone().year((Math.floor(this.year() / size)\n * size) + year - 1);\n });\n }\n\n getDates()\n {\n return Arr.make(this.lastDate()).map((date) => {\n return this.clone().date(date);\n });\n }\n\n getDatesRange(target = null)\n {\n let range = [], targetNow = Now.make(target);\n\n if ( this.afterDate(target) ) {\n\n for ( let day = targetNow; ! day.equalDate(this); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, this);\n }\n\n if ( this.beforeDate(target) ) {\n\n for ( let day = this; ! day.equalDate(targetNow); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, targetNow);\n }\n\n if ( range.length === 0 ) {\n range = [this];\n }\n\n return range;\n }\n\n getDatesGrid(start = 1, end = 0)\n {\n let dates = this.getDates(), before = [], after = [];\n\n let prev = Arr.first(dates);\n\n for (let day = prev.day(); prev.day() !== start; day = prev.day()) {\n Arr.prepend(before, prev = prev.prevDate());\n }\n\n let next = Arr.last(dates);\n\n for (let day = next.day(); next.day() !== end; day = next.day()) {\n Arr.append(after, next = next.nextDate());\n }\n\n return Arr.merge(before, dates, after);\n }\n\n getHours(interval = 1)\n {\n return Arr.make(24 / interval).map((val, hour) => {\n return this.clone().hour(hour * interval);\n });\n }\n\n getMinutes(interval = 1)\n {\n return Arr.make(60 / interval).map((val, minute) => {\n return this.clone().minute(minute * interval);\n });\n }\n\n getSeconds(interval = 1)\n {\n return Arr.make(60 / interval).map((val, second) => {\n return this.clone().second(second * interval);\n });\n }\n\n resetTime()\n {\n this.hour(0);\n this.minute(0);\n this.second(0);\n\n return this;\n }\n\n applyDate(now, format = 'YYYY-MM-DD HH:mm:ss')\n {\n now = Now.make(now, format);\n\n this.year(now.year());\n this.month(now.month());\n this.date(now.date());\n }\n\n applyTime(now, format = 'YYYY-MM-DD HH:mm:ss')\n {\n now = Now.make(now, format);\n\n this.hour(now.hour());\n this.minute(now.minute());\n this.second(now.second());\n }\n\n}\n\nexport default Now;\n","import Arr from './array.js';\nimport Obj from './object.js';\nimport Str from './string.js';\nimport Num from './number.js';\nimport Any from './any.js';\n\nexport class Dom\n{\n el = null;\n\n static events = [];\n\n static datas = [];\n\n constructor(el)\n {\n if ( el instanceof NodeList ) {\n el = Array.prototype.slice.call(el);\n }\n\n this.el = el;\n }\n\n static ready(callback, delay = 0, count = 0)\n {\n let ready = document.readyState !== 'loading';\n\n if ( delay === 0 && (ready === false && count >= delay) ) {\n Dom.find(document).on('DOMContentLoaded', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count <= delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 50), 50);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static complete(callback, delay = 0, count = 0)\n {\n let ready = document.readyState === 'complete' ||\n document.readyState === 'interactive';\n\n if ( delay === 0 && (ready === false || count < delay) ) {\n Dom.find(document).on('load', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count < delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 50), 50);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static required(callback, globals = [], timer = 100) {\n\n let matches = Arr.each(globals, (key) => {\n return Obj.has(window, key);\n });\n\n if ( Arr.has(matches, false) ) {\n setTimeout(() => Dom.required(callback, globals, timer), timer);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static find(element)\n {\n let el = typeof element !== 'string' ?\n element : document.querySelectorAll(element);\n\n return new Dom(el);\n }\n\n static make(element, options = {})\n {\n let el = typeof element !== 'string' ?\n element : document.createElement(element);\n\n Obj.assign(el, options);\n\n return new Dom(el);\n }\n\n static location(posx, posy)\n {\n let el = null;\n\n if ( document.elementsFromPoint !== undefined ) {\n el = document.elementsFromPoint(posx, posy);\n }\n\n if ( document.msElementsFromPoint !== undefined ) {\n el = document.msElementsFromPoint(posx, posy);\n }\n\n return new Dom(el);\n }\n\n static title(text = null, glue = ' - ')\n {\n document.title = global.baseTitle !== undefined ?\n text + glue + global.baseTitle : text;\n\n return this;\n }\n\n length()\n {\n return Any.isArray(this.el) ?\n this.el.length : (Any.isEmpty(this.el) ? 0 : 1);\n }\n\n empty()\n {\n return this.length() === 0 || this.el === null;\n }\n\n visible()\n {\n return this.get(0) && this.get(0).is(':visible');\n }\n\n inviewX(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let left = offset.left + (ratio * element.width) -\n viewport.width;\n\n let right = offset.left + element.width -\n (ratio * element.width);\n\n return left <= scroll.left && scroll.left <= right;\n }\n\n inviewY(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let top = offset.top + (ratio * element.height) -\n viewport.height;\n\n let bottom = offset.top + element.height -\n (ratio * element.height);\n\n return top <= scroll.top && scroll.top <= bottom;\n }\n\n is(selector)\n {\n return this.matches(selector);\n }\n\n isParent(selector)\n {\n let el = this.parent();\n\n if ( Any.isEmpty(el) === true ) {\n return false;\n }\n\n return Any.isString(selector) ?\n Dom.find(el).matches(selector) : this.get(0) === selector;\n }\n\n first(offset = 0)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[offset];\n }\n\n last(offset = 1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[els.length - offset];\n }\n\n get(index = -1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return index !== -1 ? els[index] || null : els;\n }\n\n getNot(el)\n {\n for ( let node of this.el ) {\n if ( node !== el ) {\n return Dom.find(node);\n }\n }\n\n return null;\n }\n\n each(callback)\n {\n return Any.isArray(this.el) ? Arr.each(this.el, callback) :\n callback(this.el, 0);\n }\n\n matches(selector)\n {\n let source = this.get(0), target = null;\n\n Dom.find(selector).each((el) => {\n if ( el === source) target = el;\n });\n\n return target !== null;\n }\n\n closest(selector)\n {\n if ( this.get(0) === selector ) {\n return selector;\n }\n\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if ( Dom.find(el).is(selector) ) {\n return el;\n }\n }\n\n return null;\n }\n\n closestScrollable(fallback = document.body)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if ( el.scrollHeight > el.clientHeight + 1 ) {\n return el;\n }\n }\n\n return fallback;\n }\n\n contains(selector)\n {\n if ( Any.isString(selector) === true ) {\n return this.find(selector).get(0) !== null;\n }\n\n\n if ( selector instanceof Element === false ) {\n return false;\n }\n\n return this.get(0).contains(selector);\n }\n\n inside(selector)\n {\n return this.closest(selector) !== null;\n }\n\n parent()\n {\n let el = this.get(0);\n\n if ( el === null || el.parentNode === undefined ) {\n return Dom.find(null);\n }\n\n return Dom.find(el.parentNode);\n }\n\n child(selector)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes[0] || null);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes[0] || null);\n }\n\n childs(selector = null, filter = true)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 && filter === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n find(selector)\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) === true ) {\n return Dom.find(null);\n }\n\n let nodes = el.querySelectorAll(selector);\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n where(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n not(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n prepend(val)\n {\n this.each((el) => el.prepend(val));\n\n return this;\n }\n\n prependTo(el)\n {\n Dom.find(el).each((val) => val.prepend(this.el));\n\n return this;\n }\n\n append(val)\n {\n this.each((el) => {\n if ( el.append !== undefined ) {\n el.append(val);\n }\n });\n\n return this;\n }\n\n appendTo(el)\n {\n Dom.find(el).each((val) => {\n if ( val.append !== undefined ) {\n val.append(this.el);\n }\n });\n\n return this;\n }\n\n replace(el)\n {\n // Append node to element\n this.parent().get(0).insertBefore(el, this.get(0));\n\n // Remove existing element\n this.parent().get(0).removeChild(this.get(0));\n\n return this;\n }\n\n previous()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let el = this.get(0).previousSibling; el !== null; el = el.previousSibling) {\n if ( el.nodeType === 1 ) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n\n next()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let el = this.get(0).nextSibling; el !== null; el = el.nextSibling) {\n if ( el.nodeType === 1 ) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n\n loaded(callback)\n {\n let el = this.get(0), timeout = null;\n\n if ( ! el ) {\n return this;\n }\n\n timeout = setInterval(() => {\n\n if ( ! el.complete || el.naturalWidth === 0 ) {\n return;\n }\n\n callback(el);\n clearInterval(timeout);\n\n }, 100);\n\n return this;\n }\n\n bind(event, callback)\n {\n this.each((el) => el[event] = (e) => callback.call(el, e));\n\n return this;\n }\n\n unbind(event)\n {\n this.each((el) => delete el[event]);\n }\n\n on(event, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.on(e, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n callback.call(e.target, e, e.target);\n };\n\n let selector = null;\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n live(event, selector, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.live(e, selector, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n\n let target = e.srcElement || e.target;\n\n if ( event.match(/^(drag[a-z]*|drop$)/) ) {\n target = Dom.location(e.clientX, e.clientY).get(0);\n }\n\n if ( ! Dom.find(target).inside(selector) ) {\n return;\n }\n\n callback.call(target, e, Dom.find(target).closest(selector));\n };\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n one(event, callback, options = {})\n {\n this.on(event, (e) => {\n callback(e); this.off(event);\n }, options);\n\n return this;\n }\n\n fire(event)\n {\n let callback = new Event(event);\n\n this.each((el) => {\n el.dispatchEvent(callback);\n });\n\n return this;\n }\n\n delayed(event, callback, delay = 0, options = {})\n {\n this.on(event, Any.debounce(callback, delay), options);\n\n return this;\n }\n\n off(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.off(e, selector);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let indexes = Arr.filterIndex(Dom.events, {\n el, event, selector, options\n });\n\n if ( indexes.length === 0 ) {\n return;\n }\n\n Arr.each(indexes.reverse(), (index) => {\n\n el.removeEventListener(event, Dom.events[index].func,\n Dom.events[index].options);\n\n Arr.removeIndex(Dom.events, index);\n });\n });\n\n return this;\n }\n\n unpause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.unpause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.addEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n pause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.pause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.removeEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n observer(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el, {}));\n }\n\n let observer = new MutationObserver((mutation) => {\n this.each((el) => callback(el, mutation));\n });\n\n return (el, options) => {\n observer.observe(Dom.find(el).get(0), options);\n };\n }\n\n observerResize(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el));\n }\n\n let observer = new ResizeObserver(() => {\n this.each((el) => callback(el));\n });\n\n return (el) => {\n observer.observe(Dom.find(el).get(0));\n }\n }\n\n data(key = undefined, val = undefined, fallback = null)\n {\n let match = Arr.find(Dom.datas, { el: this.get(0) },\n { el: this.get(0) });\n\n if ( key === undefined ) {\n return match;\n }\n\n if ( val === undefined ) {\n return Obj.get(match, key, fallback);\n }\n\n Arr.replace(Dom.datas, Obj.set(match, key, val),\n { el: this.get(0) });\n\n return this;\n }\n\n value(val = undefined)\n {\n if ( val === undefined ) {\n return this.get(0).value;\n }\n\n this.each((el) => el.value = val);\n\n return this;\n }\n\n html(html)\n {\n this.each((el) => el.innerHTML = html);\n\n return this;\n }\n\n computed(key = null, fallback = null)\n {\n let el = this.get(0);\n\n if ( el === null || el === window || el === document) {\n return key !== null ? fallback : {};\n }\n\n let computed = getComputedStyle(el);\n\n return key !== null ? Obj.get(computed, key, fallback) : computed;\n }\n\n css(vals = undefined)\n {\n if ( vals === null ) {\n return this.attr('style', null);\n }\n\n let styles = Str.objectify(this.attr('style') || '');\n\n if ( vals === undefined ) {\n return styles;\n }\n\n this.attr('style', Obj.assign({}, styles, Str.objectify(vals)));\n }\n\n class(vals)\n {\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n this.attr('class', vals.join(' '));\n }\n\n hasClass(vals)\n {\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n return Arr.intersect(vals, cls).length !== 0;\n }\n\n addClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).addClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.add(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n removeClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).removeClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.remove(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n toggleClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).toggleClass(vals));\n }\n\n this.hasClass(vals) ? this.removeClass(vals) : this.addClass(vals);\n\n return this;\n }\n\n attr(attr, val = undefined)\n {\n if ( this.empty() ) {\n return null;\n }\n\n if ( Any.isPlain(attr) ) {\n return Obj.each(attr, (value, key) =>\n this.attr(key, value));\n }\n\n let res = this.get(0).getAttribute(attr);\n\n if ( val === undefined ) {\n return res;\n }\n\n if ( val === null ) {\n this.get(0).removeAttribute(attr);\n return res;\n }\n\n if ( Any.isPlain(val) ) {\n val = Str.options(val);\n }\n\n this.get(0).setAttribute(attr, val);\n return res;\n }\n\n actual(callback, val = null)\n {\n let style = this.attr('style');\n\n this.attr('style', val);\n\n let result = callback.call(this.get(0), this.get(0));\n\n this.attr('style', style);\n\n return result;\n }\n\n loopParent(callback, target = null)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n\n if ( Dom.find(el).computed('position') === 'fixed' ) {\n return true;\n }\n\n if ( Dom.find(el).is(target) === true ) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n\n loopOffsetParent(callback, target = document.body)\n {\n for (let el = this.get(0); el !== null && el.offsetParent !== undefined; el = el.offsetParent) {\n\n if ( Dom.find(el).is(target) === true ) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n\n offset(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n this.loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n source.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n source.left += Num.float(el.offsetLeft);\n }\n\n });\n\n source.bottom = Dom.find(document.body).scrollHeight() -\n source.top - this.height();\n\n source.right = Dom.find(document.body).scrollWidth() -\n source.left - this.width();\n\n let target = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n Dom.find(boundry).loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n target.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n target.left += Num.float(el.offsetLeft);\n }\n\n });\n\n target.bottom = Dom.find(document.body).scrollHeight() -\n target.top - Dom.find(boundry || document.body).scrollHeight();\n\n target.right = Dom.find(document.body).scrollWidth() -\n target.left - Dom.find(boundry || document.body).scrollWidth();\n\n let offset = {\n top: source.top - target.top,\n bottom: source.bottom - target.bottom,\n left: source.left - target.left,\n right: source.right - target.right\n };\n\n return key !== null ? Obj.get(offset, key, 0) : offset;\n }\n\n offsetTop(boundry = null)\n {\n return this.offset('top', boundry);\n }\n\n offsetBottom(boundry = null)\n {\n return this.offset('bottom', boundry);\n }\n\n offsetLeft(boundry = null)\n {\n return this.offset('left', boundry);\n }\n\n offsetRight(boundry = null)\n {\n return this.offset('right', boundry);\n }\n\n scroll(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0\n };\n\n this.loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n source.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n source.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n source.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n source.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let target = {\n top: 0, left: 0\n };\n\n Dom.find(boundry).loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n target.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n target.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n target.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n target.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let scroll = {\n top: source.top - target.top,\n left: source.left - target.left\n };\n\n return key !== null ? Obj.get(scroll, key, 0) : scroll;\n }\n\n scrollTop(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('top', boundry);\n }\n\n this.each((el) => el.scrollTop = val);\n\n return this;\n }\n\n scrollTopGlobal()\n {\n return this.scroll('top', document.body);\n }\n\n scrollLeft(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('left', boundry);\n }\n\n this.each((el) => el.scrollLeft = val);\n\n return this;\n }\n\n scrollLeftGlobal()\n {\n return this.scroll('left', document.body);\n }\n\n margin(key = null)\n {\n let computedStyle = this.computed();\n\n let margin = {\n top: Num.float(computedStyle.marginTop),\n left: Num.float(computedStyle.marginLeft),\n bottom: Num.float(computedStyle.marginBottom),\n right: Num.float(computedStyle.marginRight),\n } ;\n\n return key !== null ? Obj.get(margin, key, 0) : margin;\n }\n\n padding(key = null)\n {\n let computedStyle = this.computed();\n\n let padding = {\n top: Num.float(computedStyle.paddingTop),\n left: Num.float(computedStyle.paddingLeft),\n bottom: Num.float(computedStyle.paddingBottom),\n right: Num.float(computedStyle.paddingRight),\n };\n\n return key !== null ? Obj.get(padding, key, 0) : padding;\n }\n\n height()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerHeight;\n }\n\n return el.offsetHeight;\n }\n\n clientHeight()\n {\n return Any.integer(this.computed('height', '0px').replace(\"px\", \"\"));\n }\n\n scrollHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollHeight;\n }\n\n innerHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.height() - this.padding('top') -\n this.padding('bottom');\n }\n\n realHeight(styles = {})\n {\n let height = 'auto';\n\n this.actual(() => height = this.height(), styles);\n\n return height;\n }\n\n evaluateHeight(target = null, auto = true)\n {\n if ( Any.isString(target) ) {\n target = Dom.find(target);\n }\n\n if ( target === null ) {\n target = this.parent();\n }\n\n let height = 'auto';\n\n this.actual(() => {\n height = target.innerHeight();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ height: height + 'px' });\n }\n\n return height;\n }\n\n width()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerWidth;\n }\n\n return el.offsetWidth;\n }\n\n clientWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return Any.integer(this.computed('width', '0px').replace(\"px\", \"\"));\n }\n\n scrollWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollWidth;\n }\n\n innerWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.width() - this.padding('left') -\n this.padding('right');\n }\n\n realWidth(styles = {})\n {\n let width = 0;\n\n this.actual(() => width = this.width(), styles);\n\n return width;\n }\n\n evaluateWidth(target = null, auto = true)\n {\n if ( target === null ) {\n target = this.parent();\n }\n\n let width = 'auto';\n\n this.actual(() => {\n width = target.innerWidth();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ width: width + 'px' });\n }\n\n return width;\n }\n\n}\n\nexport default Dom;\n","import { Str, Arr, Obj, Num, Any, Event } from \"../index.js\";\n\nexport class Cookie\n{\n /**\n * Pattern to get the cookie desired\n *\n * @type {string}\n */\n static pattern = '(^|;)\\\\s*{key}\\\\s*=\\\\s*([^;]+)';\n\n /**\n * Get cookie from current session\n *\n * @param {string} key\n * @param {*} fallback\n * @param {'string','boolean','float','integer','object','array'} decode\n * @returns {*}\n */\n static get(key, fallback = null, decode = 'string')\n {\n let pattern = this.pattern\n .replace('{key}', key);\n\n let result = document.cookie\n .match(pattern);\n\n if ( ! result ) {\n return fallback;\n }\n\n let plain = result[2].replace(/\\{:\\}/g, ';');\n\n if ( decode === 'boolean' ) {\n return Any.boolean(plain);\n }\n\n if ( decode === 'float' ) {\n return Any.float(plain);\n }\n\n if ( decode === 'integer' ) {\n return Any.integer(plain);\n }\n\n if ( decode === 'object' ) {\n return Str.objectify(plain, 'params', false);\n }\n\n if ( decode === 'array' ) {\n return Str.objectify(plain, 'params', true);\n }\n\n return plain;\n }\n\n /**\n * Set cookie in current session\n *\n * @param {string} key\n * @param {*} value\n * @param {integer} expire\n * @param {object} options\n */\n static set(key, value, expire = null, options = {})\n {\n let date = new Date;\n\n if ( expire !== null ) {\n date.setTime(Date.now() + (expire || 0));\n }\n\n if ( Date.now() !== date.getTime() ) {\n options.expires = date.toUTCString();\n }\n\n if ( ! options.path ) {\n options.path = '/';\n }\n\n if ( Any.isObject(value) ) {\n value = Str.stringify(value, 'params');\n }\n\n if ( Any.isString(value) ) {\n value = value.replace(/;/g, '{:}');\n }\n\n let plain = `${key}=${value};`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n /**\n * Forget cookie from current session\n *\n * @param {string} key\n * @param {object} options\n */\n static forget(key, options = {})\n {\n if ( ! options.path ) {\n options.path = '/';\n }\n\n options.expires = 'Thu, 01 Jan 1970 00:00:01 GMT';\n\n let plain = `${key}=null;`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n}\n\nexport default Cookie;\n","import { Arr, Obj, Num, Any, Event } from \"../index.js\";\n\nexport class Data\n{\n static data = Obj.get(global, '_data', {});\n\n static has(input)\n {\n return Obj.has(this.data, Arr.first(input));\n }\n\n static set(input, value)\n {\n let clone = value, key = Arr.first(input);\n\n if ( Any.isEqual(Obj.get(this.data, key), clone) ) {\n return;\n }\n\n Obj.set(this.data, key, clone);\n\n Event.fire('store:' + key, clone, key);\n }\n\n static unset(input)\n {\n let key = Arr.first(input);\n\n Obj.unset(this.data, key);\n }\n\n static get (input, fallback = null, forceSet = false)\n {\n let key = Arr.first(input);\n\n if ( ! Obj.has(this.data, key) && ! forceSet ) {\n return fallback;\n }\n\n if ( Obj.has(this.data, key) && forceSet ) {\n Obj.set(this.data, key, fallback);\n }\n\n let value = Obj.get(this.data, key, fallback);\n\n if ( ! Any.isPlain(value) ) {\n return value;\n }\n\n return Obj.clone(value);\n }\n\n static find (input, value, fallback = null)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return fallback;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return fallback;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: value.id\n });\n\n if ( index === -1 ) {\n return fallback;\n }\n\n return this.get(key + '.' + index);\n }\n\n static replace (input, value)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: Num.int(value.id)\n });\n\n if ( index === -1 ) {\n return;\n }\n\n this.set(key + '.' + index, value);\n }\n\n static add (input, ...args)\n {\n this.set(input, Arr.concat(this.get(input, []), args));\n }\n\n static remove (input, ...args)\n {\n this.set(input, Arr.diff(this.get(input, []), args));\n }\n\n}\n\nexport default Data;\n","import { Str, Obj, Dom, Any, Arr } from \"../index.js\";\n\nexport class Element\n{\n /**\n * Prefix for attribute selector.\n */\n static prefix = 'js';\n\n /**\n * Mounted identifier.\n */\n static mount = 'mount';\n\n /**\n * Instance storage.\n */\n static inis = {};\n\n /**\n * Runtime storage.\n */\n static runs = [];\n\n /**\n * Instance storage.\n */\n static invi = [];\n\n static listen()\n {\n // Apply dom scroll event\n document.addEventListener(\"scroll\", Element.scroll);\n\n // Apply initial scroll event\n Element.scroll();\n }\n\n static scroll()\n {\n Arr.each(this.invi, (item, index) => {\n\n if ( ! Dom.find(item.el).inviewY() ) {\n return;\n }\n\n Arr.removeIndex(this.invi, index);\n\n item.cb();\n });\n }\n\n /**\n * Bind a class on selector.\n */\n static alias(key, instance)\n {\n Obj.set(this.inis, key, instance);\n\n return this;\n }\n\n static bind(key, selector, options = {})\n {\n let el = Dom.find(selector), prefix = this.getPrefix(key);\n\n // Add mounted class\n el.addClass(prefix);\n\n let instance = Obj.get(this.inis,\n key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = new instance(\n el.get(0), options\n );\n\n Element.runs.push({\n el: el.get(0), prefix: prefix, deamon: cb\n });\n\n\n el.data(prefix, cb);\n\n return cb.bind !== undefined ?\n cb.bind(el.get(0), options) : cb;\n };\n\n // Bind option\n Dom.ready(() => callback.call({}, el, options));\n\n return this;\n }\n\n static unbind(key, selector, options = {})\n {\n let el = Dom.find(selector), prefix = this.getPrefix(key);\n\n let instance = Obj.get(this.inis,\n key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = el.data(prefix);\n\n if ( cb.unbind === undefined ) {\n return;\n }\n\n return cb.unbind(el.get(0), options);\n };\n\n // Unbind option\n callback.call({}, el, options);\n\n Arr.remove(Element.runs, { el: el.get(0) });\n\n return this;\n }\n\n\n /**\n * Bind callback on selector.\n */\n static observe(key, plain = false)\n {\n let selector = this.getPrefix(key);\n\n let options = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [selector]\n };\n\n let callback = () => {\n\n let mounted = Element.getPrefix(key);\n\n let deamons = Arr.filter(this.runs,\n { prefix: selector });\n\n Arr.each(deamons, ({ el }) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n if ( plain && Any.isEmpty(options) ) {\n options = { _plain: Dom.find(el).attr(selector) };\n }\n\n let inview = Obj.pluck(options, 'inview', false);\n\n if ( inview ) {\n Arr.remove(this.invi, { el });\n }\n\n if ( document.body.contains(el) ) {\n return;\n }\n\n return this.unbind(key, el, options)\n });\n\n Dom.find(`[${selector}]:not(.${mounted})`).each((el) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n if ( plain && Any.isEmpty(options) ) {\n options = { _plain: Dom.find(el).attr(selector) };\n }\n\n let inview = Obj.pluck(options, 'inview', false);\n\n let bindCb = () => {\n this.bind(key, el, options);\n };\n\n inview ? this.bindInview(el, bindCb) : bindCb();\n });\n\n };\n\n Dom.find(document.body).observer(callback)\n (document.body, options);\n\n Dom.find(document.body).on('dom.change', callback);\n\n return this;\n }\n\n static bindInview(el, cb)\n {\n Arr.add(this.invi, { el, cb }, { el });\n }\n\n static unbindInview(el, cb)\n {\n Arr.remove(this.invi, { el, cb }, { el });\n }\n\n\n\n /**\n * Return prefix with key.\n */\n static getPrefix(key)\n {\n return key ? this.prefix + '-' + key : this.prefix;\n }\n\n /**\n * Set prefix to given value.\n */\n static setPrefix(prefix)\n {\n this.prefix = prefix;\n }\n\n}\n\nexport default Element;\n","import { Arr, Any } from \"../index.js\";\n\nexport class Event\n{\n static events = [];\n\n static bind(name, callback, options = {}, paused = false)\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) =>\n this.bind(val, callback, options, paused));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n this.events = Arr.push(this.events, {\n name, callback, options, paused\n });\n\n return this;\n }\n\n static unbind(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unbind(val, options));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n Arr.remove(this.events, { name, options });\n\n return this;\n }\n\n static fire(name, ...args)\n {\n let events = this.events.filter((item) => {\n return item.name === name;\n });\n\n Arr.each(events, (event) => {\n if ( event.paused === false ) {\n event.callback.call({}, ...args);\n }\n });\n\n return this;\n }\n\n static pause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.pause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n return this;\n }\n\n static unpause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unpause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = false;\n\n return this;\n }\n\n}\n\nexport default Event;\n","import { Obj } from \"../index.js\";\n\nexport class Locale\n{\n /**\n * Get locales from window if present.\n */\n static locales = Obj.get(global, '_locales', {});\n\n static pickByCount(splits, count)\n {\n let splitLength = splits.length;\n\n if ( splitLength === 3 && count === 0 ) {\n return splits[0];\n }\n\n if ( splitLength === 3 && count === 1 ) {\n return splits[1];\n }\n\n if ( splitLength === 3 && count >= 2 ) {\n return splits[2];\n }\n\n if ( splitLength === 2 && count === 1 ) {\n return splits[0];\n }\n\n if ( splitLength === 2 && count !== 1 ) {\n return splits[1];\n }\n\n return splits[0];\n }\n\n static has(key)\n {\n return Obj.has(Locale.locales, key);\n }\n\n static get(key, fallback = null)\n {\n return Obj.get(Locale.locales, key, fallback || key);\n }\n\n static set(key, value)\n {\n Obj.set(Locale.locales, key, value);\n\n return this;\n }\n\n static trans(key, values = {})\n {\n let message = Obj.get(Locale.locales, key, key);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n static choice(key, count = 0, values = {})\n {\n let splits = Obj.get(Locale.locales, key, key).split('|');\n\n if ( typeof values.count === 'undefined' ) {\n values = Obj.assign({ count: count }, values);\n }\n\n let message = Locale.pickByCount(splits, count);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n}\n\nexport default Locale;\n","import { Obj, Arr, Any, Dom, Event, UUID } from \"../index.js\";\n\n/**\n * @const {object} google\n */\n\nexport default class Map\n{\n map = null;\n\n static mapStyle = [];\n\n markers = {};\n\n static markerStyles = {};\n\n cluster = null;\n\n clusterFilter = null;\n\n clusterOptions = {};\n\n static hideMarkers = true;\n\n static closeInfoWindows = true;\n\n constructor(el, options = {})\n {\n if ( ! global.google ) {\n throw new Error('Google Maps is required for pi.Map');\n }\n\n let center = Obj.only(options, ['lat', 'lng']);\n\n if ( ! Obj.has(options, 'styles') ) {\n options.styles = Map.mapStyle;\n }\n\n options = Obj.assign({ gestureHandling: 'cooperative', scrollwheel: null, zoom: 12, center },\n Obj.except(options, ['lat', 'lng']));\n\n this.map = new global.google.maps.Map(Dom.find(el).get(0), options)\n }\n\n static setMapStyle(style = [])\n {\n Map.mapStyle = style;\n\n return this;\n }\n\n static setMarkerStyle(key, style = {}, extra = {})\n {\n if ( ! global.google ) {\n throw new Error('Google Maps is required for pi.Map');\n }\n\n if ( ! Obj.has(style, 'default') ) {\n return console.error('Marker style requires default property')\n }\n\n if ( ! Obj.has(style, 'width') ) {\n style.width = 45;\n }\n\n if ( ! Obj.has(style, 'height') ) {\n style.height = 45;\n }\n\n let final = {};\n\n // Marker size\n let size = new global.google.maps.Size(style.width, style.height);\n\n // Point position\n let origin = new global.google.maps.Point(0, 0);\n\n // Point position\n let anchor = new global.google.maps.Point(style.width / 2, style.height);\n\n final.default = {\n url: style.default, size: size, origin: origin, anchor: anchor, scaledSize: size\n };\n\n if ( Obj.has(style, 'hover') ) {\n final.hover = Obj.assign({}, final.default, { url: style.hover });\n }\n\n if ( ! Obj.has(final, 'hover') ) {\n final.hover = final.default;\n }\n\n if ( Obj.has(style, 'active') ) {\n final.active = Obj.assign({}, final.default, { url: style.active });\n }\n\n if ( ! Obj.has(final, 'active') ) {\n final.active = final.default;\n }\n\n Obj.each(extra, (value, prop) => {\n final[prop] = Obj.assign({}, final.default, { url: value });\n });\n\n Obj.set(Map.markerStyles, key, final);\n\n return this;\n }\n\n clusterMarkers(options = {}, filter = null, allowCreate = true)\n {\n if ( ! this.cluster && ! allowCreate ) {\n return;\n }\n\n if ( typeof global.MarkerClusterer === \"undefined\" ) {\n return console.error('Google Maps Cluster library not laoded!');\n }\n\n if ( ! Obj.has(options, 'imagePath') && ! Obj.has(options, 'styles') ) {\n options.imagePath = '//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';\n }\n\n if ( this.cluster ) {\n this.cluster.clearMarkers();\n }\n\n if ( Any.isFunction(filter) ) {\n this.clusterFilter = filter;\n }\n\n let markers = Arr.filter(this.markers, (item) => {\n\n let visible = this.getMarkerVisibility(item.key);\n\n if ( ! Any.isFunction(this.clusterFilter) ) {\n return visible;\n }\n\n return visible && this.clusterFilter.call(this, item);\n });\n\n this.cluster = new global.MarkerClusterer(this.map, Arr.each(markers, (item) => item.marker),\n this.clusterOptions = options);\n }\n\n styleMarker(key, type = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( Any.isEmpty(type) ) {\n type = this.getInfoVisibility(key) ? 'active' : 'default';\n }\n\n if ( ! Obj.has(Map.markerStyles, [item.style, type]) ) {\n return;\n }\n\n item.marker.setIcon(Obj.get(Map.markerStyles, [item.style, type]));\n }\n\n getMarker(key)\n {\n return Obj.get(this.markers, key);\n }\n\n getMarkerVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getVisible();\n }\n\n getMarkerPositon(key, fallback = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getPosition();\n }\n\n toggleMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( item.marker.getVisible() ) {\n return this.hideMarker(key);\n }\n\n return this.showMarker(key);\n }\n\n showMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let hidden = ! item.marker.getVisible();\n\n if ( hidden ) {\n item.marker.setVisible(true);\n }\n\n return hidden;\n }\n\n hideMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let visible = !! item.marker.getVisible();\n\n if ( visible ) {\n item.marker.setVisible(false);\n }\n\n this.closeInfo(key);\n\n return visible;\n }\n\n enterMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'hover';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n leaveMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'default';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n getInfoVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) || ! Obj.has(item, 'info') ) {\n return fallback;\n }\n\n return !! item.info.getMap();\n }\n\n toggleInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( item.info.getMap() ) {\n return this.closeInfo(key);\n }\n\n return this.openInfo(key);\n }\n\n openInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return true;\n }\n\n let hidden = ! item.info.getMap();\n\n if ( Map.closeInfoWindows ) {\n Obj.each(Any.keys(this.markers), this.closeInfo.bind(this));\n }\n\n if ( hidden ) {\n item.info.open(this.map, item.marker);\n }\n\n this.styleMarker(key, 'active');\n\n return hidden;\n }\n\n closeInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return false;\n }\n\n let visible = !! item.info.getMap();\n\n if ( visible ) {\n item.info.close();\n }\n\n this.styleMarker(key, 'default');\n\n return visible;\n }\n\n createMarker(key = null, options = {})\n {\n if ( Any.isEmpty(key) ) {\n key = UUID();\n }\n\n let item = { key };\n\n if ( ! Obj.has(options, 'visible') ) {\n options.visible = true;\n }\n\n item.extras = Obj.except(options, [\n 'map', 'position', 'lat', 'lng', 'html', 'style', 'visible'\n ]);\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'positon') ) {\n options.position = Obj.only(options, ['lat', 'lng']);\n }\n\n if ( Obj.has(options, 'style') ) {\n item.style = options.style;\n }\n\n item.marker = new global.google.maps.Marker(options);\n\n if ( !options.visible ) {\n item.marker.setVisible(false);\n }\n\n Obj.set(this.markers, key, item);\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n if ( ! Obj.has(options, 'html') ) {\n return Obj.get(this.markers, key);\n }\n\n if ( ! Obj.has(item, 'style') ) {\n item.style = 'default';\n }\n\n // Style marker\n this.styleMarker(key);\n\n // Add marker hover style\n item.marker.addListener('mouseover', () => this.enterMarker(key));\n\n // Add marker default style\n item.marker.addListener('mouseout', () => this.leaveMarker(key));\n\n item.info = new global.google.maps.InfoWindow({\n content: '<div class=\"gw-i-html\">' + Obj.get(options, 'html') + '</div>'\n });\n\n item.marker.addListener('click', () => this.toggleInfo(key));\n item.info.addListener('closeclick', () => this.closeInfo(key));\n\n // Dom change event\n item.info.addListener('domready', () => Event.fire('MapsDomReady'));\n\n Obj.set(this.markers, key, item);\n\n return Obj.get(this.markers, key);\n }\n\n setMarkerPosition(key, options = {})\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n item.marker.setPosition(options);\n }\n\n setMarkerByAddress(key, address)\n {\n return this.getLocationByAddress(address, (res) => {\n this.setMarkerPosition(key, Obj.get(res, '0.geometry.location', {}));\n });\n }\n\n getLocationByAddress(address, callback = null)\n {\n let geocoderService = new global.google.maps.Geocoder();\n\n let geocoderPromise = (resolve, reject) => {\n\n let geocoderResult = (response, status) => {\n\n if ( status === 'OK' ) {\n callback(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n geocoderService.geocode({ address }, geocoderResult);\n };\n\n return new Promise(geocoderPromise);\n }\n\n showMarkers(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n if ( Map.hideMarkers ) {\n Obj.each(Any.keys(this.markers), this.hideMarker.bind(this));\n }\n\n Obj.each(markers, (item) => this.showMarker(item.key));\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n return this;\n }\n\n getMarkerBoundry(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n let boundry = new global.google.maps.LatLngBounds();\n\n Obj.each(markers, (item) => {\n if ( item.marker.getVisible() ) {\n boundry.extend(item.marker.getPosition());\n }\n });\n\n return boundry;\n }\n\n focusMarkers(filter = null, maxZoom = 14, boundSpace = 15)\n {\n let boundry = this.getMarkerBoundry(filter);\n\n // Center map to boundry\n this.map.setCenter(boundry.getCenter());\n\n // Adapt viewport to boundry\n this.map.fitBounds(boundry, boundSpace);\n\n if ( this.map.getZoom() > maxZoom ) {\n this.map.setZoom(maxZoom);\n }\n\n return this;\n }\n\n renderDirections(options)\n {\n // Get directions service\n let directionsService = new global.google.maps.DirectionsService();\n\n // Get directions renderer\n let directionsRenderer = new global.google.maps.DirectionsRenderer();\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'travelMode') ) {\n options.travelMode = 'DRIVING';\n }\n\n // Set directions map\n directionsRenderer.setMap(options.map);\n\n if ( Obj.has(options, 'panel') && ! Dom.find(options.panel).empty() ) {\n directionsRenderer.setPanel(Dom.find(options.panel).get(0));\n }\n\n options = Obj.only(options, ['origin', 'destination', 'travelMode']);\n\n let directionsPromise = (resolve, reject) => {\n\n let directionsResult = (response, status) => {\n\n if ( status === 'OK' ) {\n directionsRenderer.setDirections(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n directionsService.route(options, directionsResult);\n };\n\n return new Promise(directionsPromise);\n }\n\n}\n","import { Arr } from \"../index.js\";\n\nexport default class Queue\n{\n queue = [];\n stopQueue = false;\n activeQueue = false;\n\n constructor(queue = [])\n {\n this.queue = queue;\n }\n\n handler(queue, index)\n {\n return () => queue.length - 1 > index ++ && this.stopQueue === false ?\n queue[index](this.handler(queue, index)) : () => {};\n }\n\n stop()\n {\n this.stopQueue = true;\n this.activeQueue = false;\n\n this.queue = [];\n\n return this;\n }\n\n clear()\n {\n this.queue = [];\n\n return this;\n }\n\n add(cb)\n {\n this.queue.push(cb);\n\n return this;\n }\n\n run()\n {\n let instance = new Queue(this.queue);\n\n instance.add(() => {\n instance.activeQueue = false;\n });\n\n if ( instance.queue.length !== 0 ) {\n Arr.first(instance.queue)(instance.handler(instance.queue.slice(0), 0));\n }\n\n return instance;\n }\n\n active()\n {\n return this.activeQueue;\n }\n\n}\n","import { Obj, Str, Any } from \"../index.js\";\n\nexport default class Route\n{\n static routes = Obj.get(global, '_routes', {});\n\n static set (key, value)\n {\n this.routes[key] = value;\n }\n\n static get (key, values = null, params = null)\n {\n let route = key.match(/^https?:\\/\\//) ? key : this.routes[key] || key;\n\n Obj.each(values || {}, (value, key) => {\n route = route.replace(new RegExp('{' + key + '\\\\?*}', 'g'), value);\n });\n\n return route + (! Any.isEmpty(params) ? ('?' + Str.params(params)) : '');\n }\n\n static goto (key, values = null, params = null)\n {\n global.location.href = this.get(key, values, params);\n }\n\n}\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","// Unique ID creation requires a high quality random # generator. In the\n// browser this is a little complicated due to unknown quality of Math.random()\n// and inconsistent support for the `crypto` API. We do the best we can via\n// feature-detection\n\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\n// implementation. Also, find the complete implementation of crypto on IE11.\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\n (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\n\nif (getRandomValues) {\n // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\n module.exports = function whatwgRNG() {\n getRandomValues(rnds8);\n return rnds8;\n };\n} else {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var rnds = new Array(16);\n\n module.exports = function mathRNG() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\n rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return rnds;\n };\n}\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\nvar _clockseq;\n\n// Previous uuid creation time\nvar _lastMSecs = 0;\nvar _lastNSecs = 0;\n\n// See https://github.com/uuidjs/uuid for API details\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\n\n // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n if (node == null || clockseq == null) {\n var seedBytes = rng();\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [\n seedBytes[0] | 0x01,\n seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\n ];\n }\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n }\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : bytesToUuid(b);\n}\n\nmodule.exports = v1;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n"],"sourceRoot":""}
|
1
|
+
{"version":3,"sources":["webpack://Pico/webpack/universalModuleDefinition","webpack://Pico/webpack/bootstrap","webpack://Pico/./src/index.js","webpack://Pico/./src/utility/any.js","webpack://Pico/./src/utility/array.js","webpack://Pico/./src/utility/number.js","webpack://Pico/./src/utility/object.js","webpack://Pico/(webpack)/buildin/global.js","webpack://Pico/./src/utility/string.js","webpack://Pico/./src/utility/now.js","webpack://Pico/./src/utility/dom.js","webpack://Pico/./src/library/cookie.js","webpack://Pico/./src/library/data.js","webpack://Pico/./src/library/element.js","webpack://Pico/./src/library/event.js","webpack://Pico/./src/library/locale.js","webpack://Pico/./src/library/map.js","webpack://Pico/./src/library/queue.js","webpack://Pico/./src/library/route.js","webpack://Pico/./node_modules/uuid/index.js","webpack://Pico/./node_modules/uuid/lib/rng-browser.js","webpack://Pico/./node_modules/uuid/lib/bytesToUuid.js","webpack://Pico/./node_modules/uuid/v1.js","webpack://Pico/./node_modules/uuid/v4.js"],"names":["root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Pico","UUID","Arr","Obj","Num","Str","Now","Any","Dom","Cookie","Data","Element","Event","Locale","Map","Queue","Route","global","IE","navigator","userAgent","match","WIN","pi","document","ready","listen","_classCallCheck","val","this","isNumber","isString","isBool","isPlain","isArray","keys","length","obj","Node","isEqualNode","is","_typeof","isObject","constructor","Array","Date","String","empty","arguments","undefined","isEmpty","string","fallback","NaN","res","toString","integer","Number","isNaN","parseInt","replace","parseFloat","result","yes","no","format","make","push","callback","_len","args","_key","setTimeout","apply","delay","_len2","_key2","ref","debounce","__debouce","_len3","_key3","clearTimeout","throttle","timer","rate","latest","now","form","FormData","appendField","values","each","index","inner","merge","splice","append","count","map","fill","arr","isFunction","sort","a","b","va","toLowerCase","vb","filter","filterIndex","includes","first","findIndex","finder","slice","arr1","arr2","_this","complete","rainbow","has","_step","_iterator","_createForOfIteratorHelper","vals","done","indexOf","err","e","f","_step2","_iterator2","concat","clone","_step3","_iterator3","diff","_len4","_key4","reduce","chunk","accumulator","path","_step4","_iterator4","_step5","_iterator5","_this2","cascade","recursive","num","Math","ceil","round","floor","fixed","toFixed","start","end","random","base","pow","acc","cord1","cord2","miles","defaultCord","lat","lng","assign","radlat1","PI","radlat2","theta","radtheta","dist","sin","cos","acos","decimal","thousand","totals","minals","splits","split","reverse","join","lst","pop","undef","nested","shift","unset","matches","entries","_step4$value","_slicedToArray","_step6","_iterator6","sey","tey","g","Function","toUpperCase","slug","slugify","ucfirst","targets","source","RegExp","charAt","search","lower","decimals","size","unit","limit","real","array","bool","fromParams","fromOptions","JSON","parse","params","options","stringify","quota","convertFromOptions","attr","set","convertFromParams","date","_defineProperty","moment","Error","toDate","initialDate","second","add","minute","hour","day","subtract","month","year","isValid","force","valid","before","code","after","equal","fromDate","subDecades","addDecades","prevMonth","decade","_this3","_this4","lastDate","target","range","targetNow","afterDate","equalDate","nextDate","beforeDate","dates","getDates","prev","prepend","prevDate","next","last","_this5","interval","_this6","_this7","el","NodeList","ratio","viewport","find","width","element","height","scroll","offset","left","right","top","bottom","selector","parent","els","node","parentNode","body","scrollHeight","clientHeight","contains","closest","nodes","childNodes","nodeType","querySelectorAll","insertBefore","removeChild","previousSibling","nextSibling","timeout","setInterval","naturalWidth","clearInterval","event","paused","on","func","events","addEventListener","live","srcElement","location","clientX","clientY","inside","off","dispatchEvent","indexes","removeEventListener","removeIndex","unpause","_this8","pause","_this9","observer","MutationObserver","mutation","observe","_this10","ResizeObserver","datas","html","innerHTML","computed","getComputedStyle","styles","objectify","cls","intersect","addClass","removeClass","remove","toggleClass","hasClass","_this11","getAttribute","removeAttribute","setAttribute","style","offsetParent","boundry","loopOffsetParent","offsetTop","offsetLeft","scrollWidth","loopParent","scrollTop","pageYOffset","scrollLeft","pageXOffset","computedStyle","margin","marginTop","marginLeft","marginBottom","marginRight","padding","paddingTop","paddingLeft","paddingBottom","paddingRight","innerHeight","offsetHeight","_this12","actual","auto","display","css","innerWidth","offsetWidth","_this13","readyState","globals","required","createElement","posx","posy","elementsFromPoint","msElementsFromPoint","text","glue","title","baseTitle","decode","pattern","cookie","plain","expire","setTime","getTime","expires","toUTCString","input","data","isEqual","fire","forceSet","id","invi","item","inviewY","cb","instance","inis","prefix","getPrefix","console","error","runs","deamon","unbind","childList","subtree","attributes","attributeFilter","mounted","deamons","_ref","_plain","pluck","bindCb","bindInview","_event$callback","splitLength","locales","message","pickByCount","google","center","only","mapStyle","gestureHandling","scrollwheel","zoom","except","maps","allowCreate","cluster","MarkerClusterer","imagePath","clearMarkers","clusterFilter","markers","visible","getMarkerVisibility","marker","clusterOptions","type","getInfoVisibility","markerStyles","setIcon","getVisible","getPosition","hideMarker","showMarker","hidden","setVisible","closeInfo","styleMarker","info","getMap","openInfo","closeInfoWindows","open","close","extras","position","Marker","clusterMarkers","addListener","enterMarker","leaveMarker","InfoWindow","content","toggleInfo","setPosition","address","getLocationByAddress","setMarkerPosition","geocoderService","Geocoder","Promise","resolve","reject","geocode","response","status","hideMarkers","LatLngBounds","extend","maxZoom","boundSpace","getMarkerBoundry","setCenter","getCenter","fitBounds","getZoom","setZoom","directionsService","DirectionsService","directionsRenderer","DirectionsRenderer","travelMode","setMap","panel","setPanel","route","setDirections","extra","final","Size","origin","Point","anchor","url","scaledSize","hover","active","prop","queue","stopQueue","handler","activeQueue","routes","href","v1","v4","uuid","getRandomValues","crypto","msCrypto","rnds8","Uint8Array","rnds","byteToHex","substr","buf","bth","_nodeId","_clockseq","rng","bytesToUuid","_lastMSecs","_lastNSecs","clockseq","seedBytes","msecs","nsecs","dt","tl","tmh","ii"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAc,KAAID,IAElBD,EAAW,KAAIC,GAChB,CATD,CASGK,QAAQ,WACX,O,YCTE,IAAIC,EAAmB,CAAC,EAGxB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUP,QAGnC,IAAIC,EAASI,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHT,QAAS,CAAC,GAUX,OANAU,EAAQH,GAAUI,KAAKV,EAAOD,QAASC,EAAQA,EAAOD,QAASM,GAG/DL,EAAOQ,GAAI,EAGJR,EAAOD,OACf,CAyDA,OArDAM,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASd,EAASe,EAAMC,GAC3CV,EAAoBW,EAAEjB,EAASe,IAClCG,OAAOC,eAAenB,EAASe,EAAM,CAAEK,YAAY,EAAMC,IAAKL,GAEhE,EAGAV,EAAoBgB,EAAI,SAAStB,GACX,oBAAXuB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAenB,EAASuB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAenB,EAAS,aAAc,CAAEyB,OAAO,GACvD,EAOAnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFAxB,EAAoBgB,EAAEO,GACtBX,O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3c,EACjC,C,kBC1GA,IAAI0c,EAAM,EAAQ,IACdC,EAAc,EAAQ,IA2B1B3lB,EAAOD,QAzBP,SAAY0Q,EAAS6U,EAAK9Q,GACxB,IAAIjU,EAAI+kB,GAAO9Q,GAAU,EAEF,iBAAb,IACR8Q,EAAkB,WAAZ7U,EAAuB,IAAItL,MAAM,IAAM,KAC7CsL,EAAU,MAIZ,IAAI0U,GAFJ1U,EAAUA,GAAW,CAAC,GAEHlE,SAAWkE,EAAQiV,KAAOA,KAO7C,GAJAP,EAAK,GAAgB,GAAVA,EAAK,GAAa,GAC7BA,EAAK,GAAgB,GAAVA,EAAK,GAAa,IAGzBG,EACF,IAAK,IAAIe,EAAK,EAAGA,EAAK,KAAMA,EAC1Bf,EAAI/kB,EAAI8lB,GAAMlB,EAAKkB,GAIvB,OAAOf,GAAOK,EAAYR,EAC5B,C","file":"pico-js.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Pico\"] = factory();\n\telse\n\t\troot[\"Pico\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 20);\n","\nimport Arr from \"./utility/array.js\";\nexport { Arr };\n\nimport Obj from \"./utility/object.js\";\nexport { Obj };\n\nimport Num from \"./utility/number.js\";\nexport { Num };\n\nimport Str from \"./utility/string.js\";\nexport { Str };\n\nimport Now from \"./utility/now.js\";\nexport { Now };\n\nimport Any from \"./utility/any.js\";\nexport { Any };\n\nimport Dom from \"./utility/dom.js\";\nexport { Dom };\n\nimport Cookie from \"./library/cookie.js\";\nexport { Cookie };\n\nimport Data from \"./library/data.js\";\nexport { Data };\n\nimport Element from \"./library/element.js\";\nexport { Element };\n\nimport Event from \"./library/event.js\";\nexport { Event };\n\nimport Locale from \"./library/locale.js\";\nexport { Locale };\n\nimport Map from \"./library/map.js\";\nexport { Map };\n\nimport Queue from \"./library/queue.js\";\nexport { Queue };\n\nimport Route from \"./library/route.js\";\nexport { Route };\n\nimport { v4 as UUID } from \"uuid\"\nexport { UUID };\n\nexport const Pico = {\n\n UUID: UUID,\n\n Arr: Arr,\n Obj: Obj,\n Num: Num,\n Str: Str,\n Now: Now,\n Any: Any,\n Dom: Dom,\n\n Cookie: Cookie,\n Data: Data,\n Element: Element,\n Event: Event,\n Locale: Locale,\n Map: Map,\n Queue: Queue,\n Route: Route,\n}\n\n/**\n * @const global\n */\n\nif ( typeof global.IE === 'undefined' && global.navigator ) {\n global.IE = !! global.navigator.userAgent.match(/Edge\\/|Trident\\/|MSIE /);\n}\n\nif ( typeof global.WIN === 'undefined' && global.navigator ) {\n global.WIN = !! global.navigator.userAgent.match(/Windows/);\n}\n\nif ( typeof global.pi === 'undefined' && global.navigator ) {\n global.pi = Pico;\n}\n\nif ( typeof global.pi !== 'undefined' && global.document ) {\n global.pi.Dom.ready(global.pi.Element.listen);\n}\n\nexport default Pico;\n","import { Arr, Obj, Now } from \"../index.js\";\n\nexport class Any\n{\n static isEmpty(val)\n {\n if ( this.isNumber(val) ) {\n return false;\n }\n\n if ( this.isString(val) ) {\n return val === '';\n }\n\n if ( this.isBool(val) ) {\n return val === null;\n }\n\n if ( this.isPlain(val) ) {\n return Object.keys(val).length === 0;\n }\n\n if ( this.isArray(val) ) {\n return Object.keys(val).length === 0;\n }\n\n return val === null || val === undefined;\n }\n\n static isNull(val)\n {\n return val === null;\n }\n\n static isEqual(obj, val)\n {\n if ( obj instanceof Node ) {\n return obj.isEqualNode(val);\n }\n\n if ( this.isPlain(obj) ) {\n return Object.is(obj, val)\n }\n\n if ( this.isArray(obj) ) {\n return Object.is(obj, val)\n }\n\n return obj === val;\n }\n\n static isString(val)\n {\n return typeof val === 'string';\n }\n\n static isNumber(val)\n {\n return typeof val === 'number' ||\n (typeof val === 'string' && val.match(/^\\-?[0-9]+$/));\n }\n\n static isBool(val)\n {\n return typeof val === 'boolean' ||\n (typeof val === 'string' && val.match(/^(true|false)$/));\n }\n\n static isFunction(val)\n {\n return typeof val === 'function';\n }\n\n static isObject(val)\n {\n return val !== null && typeof val === 'object';\n }\n\n static isPlain(val)\n {\n return this.isObject(val) && val.constructor === Object;\n }\n\n static isArray(val)\n {\n return this.isObject(val) && val.constructor === Array;\n }\n\n static isDate(val)\n {\n return val instanceof Date;\n }\n\n static string(val)\n {\n return String(val);\n }\n\n static convertString(val, empty = '-')\n {\n return this.isEmpty(val) ? empty : this.string(val);\n }\n\n static number(val, fallback = NaN)\n {\n let res = ! val || typeof val.toString === 'undefined' ?\n String(val) : val.toString();\n\n if ( ! Any.isString(res) ) {\n return fallback;\n }\n\n if ( res.match(/^[0-9]+$/) ) {\n return this.integer(val);\n }\n\n if ( res.match(/^[0-9.,]+$/) ) {\n return this.float(val);\n }\n\n if ( ! this.isNumber(res) || Number.isNaN(res) ) {\n return fallback;\n }\n\n return res;\n }\n\n static integer(val)\n {\n let res = ! val || typeof val.toString === 'undefined' ?\n String(val) : val.toString();\n\n if ( ! Any.isString(res) ) {\n return NaN;\n }\n\n return parseInt(val);\n }\n\n static float(val)\n {\n let res = typeof val.toString === 'undefined' ?\n String(val) : val.toString();\n\n if ( ! Any.isString(res) ) {\n return NaN;\n }\n\n if ( res.match(/^[0-9,]+$/) ) {\n res = res.replace(/,/g, '.');\n }\n\n return parseFloat(res);\n }\n\n static bool(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static boolean(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static convertBool(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertBoolean(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertDatetime(val, format = 'YYYY-MM-DD hh:mm:ss', empty = '-')\n {\n if ( Any.isEmpty(val) === true ) {\n return empty;\n }\n\n return Now.make(val).format(format);\n }\n\n static vals(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n\n static keys(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n\n static async(callback, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, 0);\n\n return this;\n }\n\n static delay(callback, delay = 100, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, delay);\n\n return this;\n }\n\n static debounce(callback, delay = 100, ref = null)\n {\n let debounce = null;\n\n if ( ! Any.isEmpty(ref) ) {\n debounce = ref();\n }\n\n if ( ref !== null && ref.__debouce !== undefined ) {\n debounce = ref.__debouce;\n }\n\n return (...args) => {\n\n clearTimeout(debounce);\n\n debounce = setTimeout(() => {\n callback(...args);\n }, delay);\n\n if ( ! Any.isEmpty(ref) ) {\n ref(debounce);\n }\n };\n }\n\n static throttle(callback, delay = 100, ref = null)\n {\n let throttle = null;\n\n if ( ! Any.isEmpty(ref) ) {\n throttle = ref();\n }\n\n let timer = null;\n\n return (...args) => {\n\n clearTimeout(timer);\n\n timer = setTimeout(() => {\n throttle = null;\n }, delay);\n\n if ( throttle === true ) {\n return;\n }\n\n throttle = true;\n\n if ( ! Any.isEmpty(ref) ) {\n ref(throttle);\n }\n\n callback(...args);\n };\n }\n\n static framerate(callback, rate = 30, ref = null)\n {\n let latest = 0;\n\n if ( ! Any.isEmpty(ref) ) {\n latest = ref();\n }\n\n return (...args) => {\n\n if ( Date.now() - latest <= (1000 / rate) ) {\n return;\n }\n\n callback(...args);\n\n latest = Date.now();\n\n if ( ! Any.isEmpty(ref) ) {\n ref(latest);\n }\n\n };\n }\n\n static form(obj)\n {\n let form = new FormData();\n\n let appendField = (values, keys = []) => {\n Obj.each(values, (value, index) => {\n\n let inner = Arr.merge([], keys, index);\n\n if ( Any.isPlain(value) ) {\n return appendField(value, inner);\n }\n\n if ( Any.isArray(value) ) {\n return appendField(value, inner);\n }\n\n let key = inner.splice(0, 1)[0];\n\n Arr.each(inner, (index) => {\n key += '[' + index + ']';\n });\n\n if ( value !== null ) {\n form.append(key, value);\n }\n });\n\n return form;\n };\n\n return appendField(obj);\n }\n\n}\n\nexport default Any;\n","import { Obj, Num, Any } from \"../index.js\"\n\nexport class Arr\n{\n static make(count)\n {\n return Arr.map(Array(count).fill(null), (val, key) => {\n return Num.int(key) + 1;\n });\n }\n\n static all(arr)\n {\n return Array.isArray(arr) ? arr : [arr];\n }\n\n static get(arr, index, fallback = null)\n {\n return arr[index] || fallback;\n }\n\n static set(arr, index, value)\n {\n return arr[index] = value;\n }\n\n static first(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[0] : \n arr) || fallback;\n }\n\n static second(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[1] || \n arr[0] : arr) || fallback;\n }\n\n static third(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[2] || \n arr[1] || arr[0] : arr) || fallback;\n }\n\n static last(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[arr.length - 1] : \n arr) || fallback;\n }\n\n static prepend(arr, val)\n {\n arr.splice(0, 0, val);\n return arr;\n }\n\n static append(arr, val)\n {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return(va < vb) ? -1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n\n static filter(arr, filter)\n {\n return Arr.each(Arr.filterIndex(arr, filter), (key) => {\n return arr[key];\n });\n }\n\n static filterIndex(arr, filter)\n {\n return Any.keys(arr).filter((key) => {\n\n if ( typeof filter === \"undefined\" ) {\n return ! Any.isEmpty(arr[key]);\n }\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, arr[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, arr[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n\n static find(arr, val, fallback = null)\n {\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n\n static findIndex(arr, val, fallback = -1)\n {\n return Any.integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n\n static has(arr, val)\n {\n return this.findIndex(arr, val) !== - 1;\n }\n\n static add(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index === - 1 ) {\n arr.push(val);\n }\n\n return arr;\n }\n\n static replace(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n\n return arr;\n }\n\n static remove(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n\n static toggle(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n } else {\n arr.push(val);\n }\n\n return arr;\n }\n\n static removeIndex(arr, val)\n {\n if ( val < arr.length ) {\n arr.splice(Num.int(val), 1);\n }\n\n return arr;\n }\n\n static insert(arr, key, val)\n {\n arr.splice(Num.int(key), 0, val);\n\n return arr;\n }\n\n static slice(arr, key, count = 1)\n {\n return arr.slice(Num.int(key), count);\n }\n\n static splice(arr, key, count = 1)\n {\n return arr.splice(Num.int(key), count);\n }\n\n static equal(arr1, arr2)\n {\n let complete = this.merge([], arr1, arr2);\n\n let rainbow = this.each(complete, (value) => {\n return this.has(arr1, value) && this.has(arr2, value);\n });\n\n return ! this.has(rainbow, false);\n }\n\n static includes(arr, val)\n {\n if ( Any.isString(val) ) {\n val = [val];\n }\n\n let result = false;\n\n for ( let key of Any.vals(arr) ) {\n result = val.indexOf(key) !== -1 || result;\n }\n\n return result;\n }\n\n static contains(arr, val)\n {\n let result = true;\n\n for ( let key of Any.vals(val) ) {\n result = Any.vals(arr).indexOf(key) !== -1 && result;\n }\n\n return result;\n }\n\n static concat(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static clone(arr)\n {\n let clone;\n\n if ( Any.isPlain(arr) ){\n return Obj.clone(arr);\n }\n\n if ( Any.isArray(arr) ){\n\n clone = [];\n\n for ( let key of Any.keys(arr) ) {\n clone[key] = Obj.clone(arr[key]);\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n\n static merge(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static push(arr, ...args)\n {\n arr.push(...args);\n\n return arr;\n }\n\n static diff(arr, val)\n {\n return arr.filter((diff) => val.indexOf(diff) < 0);\n }\n\n static intersect(...args)\n {\n return args.reduce((a, c) => a.filter(i => c.includes(i)));\n }\n\n static chunk(arr, chunk = 10)\n {\n let res = [];\n\n for ( let i = 0; i < arr.length; i += chunk ) {\n res.push(arr.slice(i, i + chunk));\n }\n\n return res;\n }\n\n static reduce(arr, callback, accumulator)\n {\n return Object.values(arr).reduce(callback, accumulator);\n }\n\n static extract(arr, path)\n {\n return this.each(arr, (val) => Obj.get(val, path, null));\n }\n\n static each(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return Any.vals(result);\n }\n\n static map(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = arr[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return result;\n }\n\n static recursive(arr, key, callback, cascade = [])\n {\n if ( Any.isArray(arr) === true ) {\n return this.map(arr, (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n }\n\n if ( Any.isObject(arr) === true ) {\n\n let res = callback(arr, cascade);\n\n arr = res !== undefined ?\n res : arr;\n }\n\n if ( Any.isArray(arr[key]) === true ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.map(arr[key], (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n\n return arr;\n }\n\n if ( Any.isEmpty(arr[key]) === false ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n\n return arr;\n }\n\n return arr;\n }\n\n}\n\nexport default Arr;\n","import { Any, Arr, Obj } from \"../index.js\"\n\nexport class Num\n{\n static int(num)\n {\n return !Any.isString(num) ? parseInt(num) :\n parseInt(num.replace('px', ''));\n }\n\n static float(num)\n {\n return !Any.isString(num) ? parseFloat(num) :\n parseFloat(num.replace('px', ''));\n }\n\n static ceil(num)\n {\n return Math.ceil(num);\n }\n\n static round(num)\n {\n return Math.round(num);\n }\n\n static floor(num)\n {\n return Math.floor(num);\n }\n\n static fixed(num, fixed = 2)\n {\n return this.float(num).toFixed(fixed);\n }\n\n static random(start = 0, end = 100)\n {\n return Math.floor((Math.random() * (end + 1)) + start);\n }\n\n static matrix(num, limit = 10, base = [])\n {\n let value = 0;\n\n for ( let i = 20; i >= 0; i -- ) {\n if ( num >= (value = Math.pow(2, i)) ) {\n base.push(value);\n num -= value;\n }\n }\n\n return base;\n }\n\n static combine(arr)\n {\n return Arr.reduce(arr, (acc, val) => acc + val, 0);\n }\n\n static distance(cord1, cord2, miles = false)\n {\n let defaultCord = {\n lat: 0, lng: 0\n };\n\n cord1 = Obj.assign({}, defaultCord, cord1);\n cord2 = Obj.assign({}, defaultCord, cord2);\n\n let radlat1 = (Math.PI * this.float(cord1.lat)) / 180;\n let radlat2 = (Math.PI * this.float(cord2.lat)) / 180;\n\n let theta = this.float(cord1.lng) - this.float(cord2.lng);\n let radtheta = (Math.PI * theta) / 180;\n\n let dist = Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n\n if ( dist > 1 ) {\n dist = 1;\n }\n\n dist = (Math.acos(dist) * 180) / Math.PI * 60 * 1.1515;\n\n if ( !miles ) {\n dist = dist * 1.609344;\n }\n\n return dist;\n }\n\n static format(num, decimal = '.', thousand = ',', fixed = null)\n {\n if ( num === null ) {\n return null;\n }\n\n let value = num.toString();\n\n if ( fixed !== null && fixed !== - 1 ) {\n value = Any.float(num).toFixed(fixed);\n }\n\n let totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n\n let splits = Arr.reduce(totals.split('').reverse(), (result, val, key) => {\n\n let index = Math.floor(key / 3);\n\n result[index] = index === key / 3 ?\n val : result[index] = val + result[index];\n\n return result;\n }, []);\n\n let result = splits.reverse().join(thousand);\n\n if ( fixed !== - 1 && fixed !== 0 && value.match(/\\./) ) {\n result += decimal + minals;\n }\n\n return result;\n }\n}\n\nexport default Num;\n","import Arr from \"./array.js\";\nimport Any from \"./any.js\";\n\nexport class Obj\n{\n static has(obj, keys)\n {\n if ( obj === null || obj === undefined ) {\n return false;\n }\n\n if ( keys === null || keys === undefined ) {\n return false;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let lst = keys.pop(), index = 0, length = keys.length;\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return false;\n }\n\n return obj[lst] !== undefined;\n }\n\n static empty(obj, key)\n {\n return Any.isEmpty(this.get(obj, key, null));\n }\n\n static get(obj, keys, fallback = null)\n {\n if ( obj === null || obj === undefined ) {\n return fallback;\n }\n\n if ( keys === null || keys === undefined ) {\n return fallback;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n let undef = true;\n\n if ( typeof obj === 'object' ) {\n undef = obj[keys] === null || obj[keys] === undefined\n }\n\n if ( ! undef ) {\n return obj[keys];\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length;\n\n if ( length === 0 ) {\n return fallback;\n }\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return fallback;\n }\n\n return obj;\n }\n\n static set(obj, keys, val)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n let undef = true;\n\n if ( typeof obj === 'object' ) {\n undef = obj[keys] === null || obj[keys] === undefined\n }\n\n if ( ! undef ) {\n obj[keys] = val; return obj;\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length, nested = obj;\n\n if ( length === 0 ) {\n return obj;\n }\n\n while (nested !== null && index < length) {\n\n if ( nested[keys[index]] === undefined || nested[keys[index]] === null ) {\n nested[keys[index]] = {};\n }\n\n if ( index == length - 1 ) {\n nested[keys[index]] = val;\n }\n\n nested = nested[keys[index++]];\n }\n\n return obj;\n }\n\n static unset(obj, keys)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let key = keys.shift();\n\n if ( typeof obj[key] === 'undefined' ) {\n return obj;\n }\n\n if ( keys.length === 0 ) {\n delete obj[key];\n return obj;\n }\n\n return this.unset(obj[key], keys);\n }\n\n static pluck(obj, keys, fallback = null)\n {\n let value = this.get(obj, keys, fallback);\n\n this.unset(obj, keys);\n\n return value;\n }\n\n static only(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === true ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static except(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === false ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static includes(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isPlain(obj[key]) || Any.isArray(obj[key]) ?\n this.includes(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static matches(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isObject(obj[key]) ?\n this.matches(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return (va < vb) ? - 1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static filter(obj, filter)\n {\n return Obj.each(Obj.filterIndex(obj, filter), (key) => {\n return obj[key];\n });\n }\n\n static filterIndex(obj, filter)\n {\n return Any.keys(obj).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, obj[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, obj[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, obj[key]);\n }\n\n return filter === obj[key];\n });\n }\n\n static find(arr, obj, fallback = null)\n {\n return Arr.first(Obj.filter(arr, obj)) || fallback;\n }\n\n static findIndex(arr, obj, fallback = - 1)\n {\n return Arr.first(Obj.filterIndex(arr, obj)) || fallback;\n }\n\n static clone(obj)\n {\n let clone;\n\n if ( Any.isArray(obj) === true ) {\n return Arr.clone(obj);\n }\n\n if ( Any.isPlain(obj) === true ) {\n\n clone = {};\n\n for ( let key of Any.keys(obj) ) {\n clone[key] = Obj.clone(obj[key]);\n }\n\n return clone;\n }\n\n return clone || obj;\n }\n\n static assign(...args)\n {\n return Object.assign(...args);\n }\n\n static remove(obj, keys)\n {\n Arr.each(keys, (key) => delete obj[key]);\n\n return obj;\n }\n\n static each(obj, callback)\n {\n let result = {};\n\n if ( global.FormData && obj instanceof FormData ) {\n\n for ( let [key, value] of obj.entries() ) {\n result[key] = callback(value, key);\n }\n\n return obj;\n }\n\n for ( let key of Any.keys(obj) ) {\n result[key] = callback(obj[key], key);\n }\n\n return result;\n }\n\n static map(obj, callback)\n {\n for ( let key of Any.keys(obj) ) {\n obj[key] = callback(obj[key], key);\n }\n\n return obj;\n }\n\n static values(obj)\n {\n let result = [];\n\n this.each(obj, val => result.push(val));\n\n return result;\n }\n\n static flatten(obj)\n {\n let result = {};\n\n let callback = (val, sey = null) => {\n\n Arr.each(Any.keys(val), (key) => {\n\n let tey = key;\n\n if ( ! Any.isEmpty(sey) ) {\n tey = `${sey}.${key}`;\n }\n\n if ( Any.isPlain(val[key]) ) {\n return callback(val[key], tey);\n }\n\n result[tey] = val[key];\n });\n\n };\n\n callback(obj);\n\n return result;\n }\n\n}\n\nexport default Obj;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","import Arr from \"./array.js\";\nimport Obj from \"./object.js\";\nimport Num from \"./number.js\";\nimport Any from \"./any.js\";\n\nexport class Str\n{\n static regexEscape(val)\n {\n return String(val).replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n static upper(val)\n {\n return String(val).toUpperCase();\n }\n\n static lower(val)\n {\n return String(val).toLowerCase();\n }\n\n static camelcase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split, index) => {\n\n if ( index === 0 ) {\n return split;\n }\n\n return Str.ucfirst(split);\n });\n\n return slugSplits.join('');\n }\n\n static humancase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split) => {\n return Str.ucfirst(split);\n });\n\n return slugSplits.join(' ');\n }\n\n static slugify(val)\n {\n val = String(val).replace(/^\\s+|\\s+$/g, '')\n .toLowerCase();\n\n let sources = [\n 'à', 'á', 'â', 'è', 'é', 'ê', 'ì', 'í', 'ï', 'î', 'ò', 'ó', 'ô',\n 'ù', 'ú', 'û', 'ñ', 'ç', '·', '/', '_', ',', ':', ';', 'ä', 'ö', 'ü'\n ];\n\n let targets = [\n 'a', 'a', 'a', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'o', 'o', 'o',\n 'u', 'u', 'u', 'n', 'c', '-', '-', '-', '-', '-', '-', 'ae', 'oe', 'ue'\n ];\n\n Arr.each(sources, (source, index) => {\n val = val.replace(new RegExp(source.charAt(source), 'g'), targets[index]);\n });\n\n return val.replace(/[^a-z0-9 -]/g, '')\n .replace(/\\s+/g, '-').replace(/-+/g, '-');\n }\n\n static ucfirst(val)\n {\n return val.charAt(0).toUpperCase() + val.slice(1);\n }\n\n static lcfirst(val)\n {\n return val.charAt(0).toLowerCase() + val.slice(1);\n }\n\n static has(val, search)\n {\n return this.lower(val).indexOf(this.lower(search)) !== -1;\n }\n\n static filesize(val, decimals = 1)\n {\n let size = null;\n\n let units = [\n 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'\n ];\n\n Arr.each(units, (unit, count) => {\n\n let limit = Math.pow(1000, Any.integer(count));\n\n if ( val <= limit) {\n return;\n }\n\n size = Num.fixed(val / limit, decimals) + ' ' + unit;\n });\n\n return size;\n }\n\n static array(value, fallback = [])\n {\n value = value.replace(/^@\\[(.*?)?\\]$/, '$1');\n\n if ( Any.isEmpty(value) ) {\n return fallback;\n }\n\n return Arr.each(value.split(','), (val) => {\n return Str.real(val.replace(/(^\"|^'|\"$|'$)/g, ''));\n });\n }\n\n static real(value)\n {\n if ( typeof value === 'string' && value.match(/^@\\[.*?\\]$/) ) {\n value = Str.array(value);\n }\n\n if ( typeof value === 'string' && value.match(/^(null|undefined)$/i) ) {\n value = null;\n }\n\n if ( typeof value === 'string' && value.match(/^(true|false)$/i) ) {\n value = Any.bool(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+$/) ) {\n value = Num.int(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+\\\\.[0-9]+$/) ) {\n value = Num.float(value);\n }\n\n return value;\n }\n\n /**\n * Parse param string to object\n */\n static objectify(value, mode = 'options', isArray = false)\n {\n if ( Any.isObject(value) ) {\n return value;\n }\n\n if ( mode === 'params' ) {\n return Str.fromParams(value, isArray);\n }\n\n if ( mode === 'options' ) {\n return Str.fromOptions(value, isArray);\n }\n\n return JSON.parse(value);\n }\n\n /**\n * Parse param object to string\n */\n static stringify(value, mode = 'options')\n {\n if ( Any.isString(value) ) {\n return value;\n }\n if ( mode === 'params' ) {\n return Str.params(value);\n }\n\n if ( mode === 'options' ) {\n return Str.options(value);\n }\n\n return JSON.stringify(value);\n }\n\n /**\n * Parse object to string (e.g. foo:bar;test:lorem).\n */\n static options(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '.' + key;\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.options(value, key).replace(/;$/, ''));\n }\n\n result.push(String(key) + ':' + String(value));\n });\n\n return result.join(';') + ';';\n }\n\n /**\n * Parse string to object (e.g. foo:bar;test:lorem).\n */\n static fromOptions(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|;)(\\\\s*(.*?)\\\\s*:\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=;|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromOptions, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result;\n }\n\n static convertFromOptions(result, match)\n {\n // Get key and value from match\n let attr = match.match(/^;?\\s*(.*?)\\s*:\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, attr[1], val);\n\n return result;\n }\n\n /**\n * Parse object to string (e.g. foo=bar&test=lorem).\n */\n static params(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '[' + key + ']';\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.params(value, key));\n }\n\n result.push(String(key) + '=' + String(value));\n });\n\n return result.join('&');\n }\n\n /**\n * Parse string to object (e.g. foo=bar&test=lorem).\n */\n static fromParams(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|&)(\\\\s*(.*?)\\\\s*=\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=&|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromParams, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result\n }\n\n static convertFromParams(result, match) {\n\n // Get key and value from match\n let attr = match.match(/^&?\\s*(.*?)\\s*=\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let key = attr[1].replace(/(\\]\\[|\\[|\\])/g, '.')\n .replace(/\\.$/, '');\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, key, val);\n\n return result;\n }\n\n}\n\nexport default Str;\n","import { Num, Arr, Any } from \"../index.js\";\n\nexport class Now\n{\n initialDate = null;\n moment = null;\n\n constructor(date = null, format = 'YYYY-MM-DD HH:mm:ss')\n {\n if ( ! global.moment ) {\n throw new Error('Moment.js is required for pi.Now');\n }\n\n if ( date instanceof Now ) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if ( ! Any.isString(date) ) {\n this.moment = global.moment(date || new Date, format);\n }\n\n if ( this.moment !== null ) {\n return this;\n }\n\n this.moment = global.moment(date.match(/^now/) ?\n new Date : date, format);\n\n let second = this.initialDate.match(/(\\+|-)([0-9]+)seconds?/);\n\n if ( Any.isEmpty(second) === false && second[1] === '+' ) {\n this.moment.add(second[2], 'second');\n }\n\n let minute = this.initialDate.match(/(\\+|-)([0-9]+)minutes?/);\n\n if ( Any.isEmpty(minute) === false && minute[1] === '+' ) {\n this.moment.add(minute[2], 'minute');\n }\n\n let hour = this.initialDate.match(/(\\+|-)([0-9]+)hours?/);\n\n if ( Any.isEmpty(hour) === false && hour[1] === '+' ) {\n this.moment.add(hour[2], 'hour');\n }\n\n let day = this.initialDate.match(/(\\+|-)([0-9]+)days?/);\n\n if ( Any.isEmpty(day) === false && day[1] === '+' ) {\n this.moment.add(day[2], 'day');\n }\n\n if ( Any.isEmpty(day) === false && day[1] === '-' ) {\n this.moment.subtract(day[2], 'day');\n }\n\n let month = this.initialDate.match(/(\\+|-)([0-9]+)months?/);\n\n if ( Any.isEmpty(month) === false && month[1] === '+' ) {\n this.moment.add(month[2], 'month');\n }\n\n if ( Any.isEmpty(month) === false && month[1] === '-' ) {\n this.moment.subtract(month[2], 'month');\n }\n\n let year = this.initialDate.match(/(\\+|-)([0-9]+)years?/);\n\n if ( Any.isEmpty(year) === false && year[1] === '+' ) {\n this.moment.add(year[2], 'year');\n }\n\n if ( Any.isEmpty(year) === false && year[1] === '-' ) {\n this.moment.subtract(year[2], 'year');\n }\n\n return this;\n }\n\n static make(date = null, format = 'YYYY-MM-DD HH:mm:ss')\n {\n return new Now(date, format);\n }\n\n get()\n {\n return this.moment;\n }\n\n valid()\n {\n return ! Any.isEmpty(this.initialDate) &&\n global.moment(this.initialDate).isValid();\n }\n\n clone()\n {\n return new Now(this.moment.toDate());\n }\n\n code(format = 'X')\n {\n return Num.int(this.format(format, true));\n }\n\n format(format = 'YYYY-MM-DD HH:mm:ss', force = false)\n {\n if ( ! this.valid() && ! force ) {\n return '';\n }\n\n return this.moment.format(format);\n }\n\n before(before = null)\n {\n return this.code() < Now.make(before).code();\n }\n\n beforeDate(before = null)\n {\n return this.code('YYYYMMDD') <\n Now.make(before).code('YYYYMMDD');\n }\n\n beforeTime(before = null)\n {\n return this.code('HHmmss') <\n Now.make(before).code('HHmmss');\n }\n\n after(after = null)\n {\n return this.code() > Now.make(after).code();\n }\n\n afterDate(after = null)\n {\n return this.code('YYYYMMDD') >\n Now.make(after).code('YYYYMMDD');\n }\n\n afterTime(after = null)\n {\n return this.code('HHmmss') >\n Now.make(after).code('HHmmss');\n }\n\n equal(equal = null, format = 'X')\n {\n return this.code(format) ===\n Now.make(equal).code(format);\n }\n\n equalDate(equal = null, format = 'YYYYMMDD')\n {\n return this.equal(equal, format);\n }\n\n equalTime(equal = null, format = 'HHmmss')\n {\n return this.equal(equal, format);\n }\n\n between(fromDate = null, toDate = null, format = 'YYYYMMDD')\n {\n if ( Now.make(toDate).code(format) < Now.make(fromDate).code(format) ) {\n return this.after(toDate, format) && this.before(fromDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n return this.after(fromDate, format) && this.before(toDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n decade()\n {\n return Math.floor(this.year() / 10) * 10;\n }\n\n prevDecade()\n {\n return this.clone().subDecades(1);\n }\n\n nextDecade()\n {\n return this.clone().addDecades(1);\n }\n\n addDecades(count = 1)\n {\n return this.year(this.moment.year() + (count * 10));\n }\n\n subDecades(count = 1)\n {\n return this.year(this.moment.year() - (count * 10));\n }\n\n year(year = null)\n {\n if ( year === null ) {\n return this.moment.year();\n }\n\n this.moment.year(year);\n\n return this;\n }\n\n prevYear()\n {\n return this.clone().year(this.year() - 1);\n }\n\n nextYear()\n {\n return this.clone().year(this.year() + 1);\n }\n\n addYears(count = 1)\n {\n return this.year(this.year() + count);\n }\n\n subYears(count = 1)\n {\n return this.year(this.year() - count);\n }\n\n month(month = null)\n {\n if ( month === null ) {\n return this.moment.month();\n }\n\n this.moment.month(month);\n\n return this;\n }\n\n addMonths(count = 1)\n {\n return this.month(this.month() + count);\n }\n\n subMonths(count = 1)\n {\n return this.month(this.month() - count);\n }\n\n prevMonth()\n {\n return this.clone().month(this.month() - 1);\n }\n\n nextMonth()\n {\n return this.clone().month(this.month() + 1);\n }\n\n date(date = null)\n {\n if ( date === null ) {\n return this.moment.date();\n }\n\n this.moment.date(date);\n\n return this;\n }\n\n addDates(count = 1)\n {\n return this.date(this.date() + count);\n }\n\n subDates(count = 1)\n {\n return this.date(this.date() - count);\n }\n\n prevDate()\n {\n return this.clone().date(this.date() - 1);\n }\n\n nextDate()\n {\n return this.clone().date(this.date() + 1);\n }\n\n lastDate()\n {\n return this.prevMonth().date(0).date();\n }\n\n day(day = null)\n {\n if ( day === null ) {\n return this.moment.day();\n }\n\n this.moment.day(day);\n\n return this;\n }\n\n hour(hour = null)\n {\n if ( hour === null ) {\n return this.moment.hour();\n }\n\n this.moment.hour(hour);\n\n return this;\n }\n\n addHour(count = 1)\n {\n return this.hour(this.hour() + count);\n }\n\n subHour(count = 1)\n {\n return this.hour(this.hour() - count);\n }\n\n prevHour()\n {\n return this.clone().hour(this.hour() - 1);\n }\n\n nextHour()\n {\n return this.clone().hour(this.hour() + 1);\n }\n\n minute(minute = null)\n {\n if ( minute === null ) {\n return this.moment.minute();\n }\n\n this.moment.minute(minute);\n\n return this;\n }\n\n addMinute(count = 1)\n {\n return this.minute(this.minute() + count);\n }\n\n subMinute(count = 1)\n {\n return this.minute(this.minute() - count);\n }\n\n prevMinute()\n {\n return this.clone().minute(this.minute() - 1);\n }\n\n nextMinute()\n {\n return this.clone().minute(this.minute() + 1);\n }\n\n second(second = null)\n {\n if ( second === null ) {\n return this.moment.second();\n }\n\n this.moment.second(second);\n\n return this;\n }\n\n addSecond(count = 1)\n {\n return this.second(this.second() + count);\n }\n\n subSecond(count = 1)\n {\n return this.second(this.second() - count);\n }\n\n prevSecond()\n {\n return this.clone().second(this.second() - 1);\n }\n\n nextSecond()\n {\n return this.clone().second(this.second() + 1);\n }\n\n humanDay()\n {\n return this.day();\n }\n\n humanMonth()\n {\n return this.month();\n }\n\n getMonths()\n {\n return Arr.make(12).map((month) => {\n return this.clone().month(month - 1);\n });\n }\n\n getYears()\n {\n return Arr.make(10).map((year) => {\n return this.clone().year(this.decade() + year - 1);\n });\n }\n\n getYearsGrid(size = 12)\n {\n return Arr.make(size).map((year) => {\n return this.clone().year((Math.floor(this.year() / size)\n * size) + year - 1);\n });\n }\n\n getDates()\n {\n return Arr.make(this.lastDate()).map((date) => {\n return this.clone().date(date);\n });\n }\n\n getDatesRange(target = null)\n {\n let range = [], targetNow = Now.make(target);\n\n if ( this.afterDate(target) ) {\n\n for ( let day = targetNow; ! day.equalDate(this); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, this);\n }\n\n if ( this.beforeDate(target) ) {\n\n for ( let day = this; ! day.equalDate(targetNow); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, targetNow);\n }\n\n if ( range.length === 0 ) {\n range = [this];\n }\n\n return range;\n }\n\n getDatesGrid(start = 1, end = 0)\n {\n let dates = this.getDates(), before = [], after = [];\n\n let prev = Arr.first(dates);\n\n for (let day = prev.day(); prev.day() !== start; day = prev.day()) {\n Arr.prepend(before, prev = prev.prevDate());\n }\n\n let next = Arr.last(dates);\n\n for (let day = next.day(); next.day() !== end; day = next.day()) {\n Arr.append(after, next = next.nextDate());\n }\n\n return Arr.merge(before, dates, after);\n }\n\n getHours(interval = 1)\n {\n return Arr.make(24 / interval).map((val, hour) => {\n return this.clone().hour(hour * interval);\n });\n }\n\n getMinutes(interval = 1)\n {\n return Arr.make(60 / interval).map((val, minute) => {\n return this.clone().minute(minute * interval);\n });\n }\n\n getSeconds(interval = 1)\n {\n return Arr.make(60 / interval).map((val, second) => {\n return this.clone().second(second * interval);\n });\n }\n\n resetTime()\n {\n this.hour(0);\n this.minute(0);\n this.second(0);\n\n return this;\n }\n\n applyDate(now, format = 'YYYY-MM-DD HH:mm:ss')\n {\n now = Now.make(now, format);\n\n this.year(now.year());\n this.month(now.month());\n this.date(now.date());\n }\n\n applyTime(now, format = 'YYYY-MM-DD HH:mm:ss')\n {\n now = Now.make(now, format);\n\n this.hour(now.hour());\n this.minute(now.minute());\n this.second(now.second());\n }\n\n}\n\nexport default Now;\n","import Arr from './array.js';\nimport Obj from './object.js';\nimport Str from './string.js';\nimport Num from './number.js';\nimport Any from './any.js';\n\nexport class Dom\n{\n el = null;\n\n static events = [];\n\n static datas = [];\n\n constructor(el)\n {\n if ( el instanceof NodeList ) {\n el = Array.prototype.slice.call(el);\n }\n\n this.el = el;\n }\n\n static ready(callback, delay = 0, count = 0)\n {\n let ready = document.readyState !== 'loading';\n\n if ( delay === 0 && (ready === false && count >= delay) ) {\n Dom.find(document).on('DOMContentLoaded', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count <= delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 50), 50);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static complete(callback, delay = 0, count = 0)\n {\n let ready = document.readyState === 'complete' ||\n document.readyState === 'interactive';\n\n if ( delay === 0 && (ready === false || count < delay) ) {\n Dom.find(document).on('load', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count < delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 50), 50);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static required(callback, globals = [], timer = 100) {\n\n let matches = Arr.each(globals, (key) => {\n return Obj.has(window, key);\n });\n\n if ( Arr.has(matches, false) ) {\n setTimeout(() => Dom.required(callback, globals, timer), timer);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static find(element)\n {\n let el = typeof element !== 'string' ?\n element : document.querySelectorAll(element);\n\n return new Dom(el);\n }\n\n static make(element, options = {})\n {\n let el = typeof element !== 'string' ?\n element : document.createElement(element);\n\n Obj.assign(el, options);\n\n return new Dom(el);\n }\n\n static location(posx, posy)\n {\n let el = null;\n\n if ( document.elementsFromPoint !== undefined ) {\n el = document.elementsFromPoint(posx, posy);\n }\n\n if ( document.msElementsFromPoint !== undefined ) {\n el = document.msElementsFromPoint(posx, posy);\n }\n\n return new Dom(el);\n }\n\n static title(text = null, glue = ' - ')\n {\n document.title = global.baseTitle !== undefined ?\n text + glue + global.baseTitle : text;\n\n return this;\n }\n\n length()\n {\n return Any.isArray(this.el) ?\n this.el.length : (Any.isEmpty(this.el) ? 0 : 1);\n }\n\n empty()\n {\n return this.length() === 0 || this.el === null;\n }\n\n visible()\n {\n return this.get(0) && this.get(0).is(':visible');\n }\n\n inviewX(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let left = offset.left + (ratio * element.width) -\n viewport.width;\n\n let right = offset.left + element.width -\n (ratio * element.width);\n\n return left <= scroll.left && scroll.left <= right;\n }\n\n inviewY(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let top = offset.top + (ratio * element.height) -\n viewport.height;\n\n let bottom = offset.top + element.height -\n (ratio * element.height);\n\n return top <= scroll.top && scroll.top <= bottom;\n }\n\n is(selector)\n {\n return this.matches(selector);\n }\n\n isParent(selector)\n {\n let el = this.parent();\n\n if ( Any.isEmpty(el) === true ) {\n return false;\n }\n\n return Any.isString(selector) ?\n Dom.find(el).matches(selector) : this.get(0) === selector;\n }\n\n first(offset = 0)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[offset];\n }\n\n last(offset = 1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[els.length - offset];\n }\n\n get(index = -1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return index !== -1 ? els[index] || null : els;\n }\n\n getNot(el)\n {\n for ( let node of this.el ) {\n if ( node !== el ) {\n return Dom.find(node);\n }\n }\n\n return null;\n }\n\n each(callback)\n {\n return Any.isArray(this.el) ? Arr.each(this.el, callback) :\n callback(this.el, 0);\n }\n\n matches(selector)\n {\n let source = this.get(0), target = null;\n\n Dom.find(selector).each((el) => {\n if ( el === source) target = el;\n });\n\n return target !== null;\n }\n\n closest(selector)\n {\n if ( this.get(0) === selector ) {\n return selector;\n }\n\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if ( Dom.find(el).is(selector) ) {\n return el;\n }\n }\n\n return null;\n }\n\n closestScrollable(fallback = document.body)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if ( el.scrollHeight > el.clientHeight + 1 ) {\n return el;\n }\n }\n\n return fallback;\n }\n\n contains(selector)\n {\n if ( Any.isString(selector) === true ) {\n return this.find(selector).get(0) !== null;\n }\n\n\n if ( selector instanceof Element === false ) {\n return false;\n }\n\n return this.get(0).contains(selector);\n }\n\n inside(selector)\n {\n return this.closest(selector) !== null;\n }\n\n parent()\n {\n let el = this.get(0);\n\n if ( el === null || el.parentNode === undefined ) {\n return Dom.find(null);\n }\n\n return Dom.find(el.parentNode);\n }\n\n child(selector)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes[0] || null);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes[0] || null);\n }\n\n childs(selector = null, filter = true)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 && filter === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n find(selector)\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) === true ) {\n return Dom.find(null);\n }\n\n let nodes = el.querySelectorAll(selector);\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n where(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n not(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n prepend(val)\n {\n this.each((el) => el.prepend(val));\n\n return this;\n }\n\n prependTo(el)\n {\n Dom.find(el).each((val) => val.prepend(this.el));\n\n return this;\n }\n\n append(val)\n {\n this.each((el) => {\n if ( el.append !== undefined ) {\n el.append(val);\n }\n });\n\n return this;\n }\n\n appendTo(el)\n {\n Dom.find(el).each((val) => {\n if ( val.append !== undefined ) {\n val.append(this.el);\n }\n });\n\n return this;\n }\n\n replace(el)\n {\n // Append node to element\n this.parent().get(0).insertBefore(el, this.get(0));\n\n // Remove existing element\n this.parent().get(0).removeChild(this.get(0));\n\n return this;\n }\n\n previous()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let el = this.get(0).previousSibling; el !== null; el = el.previousSibling) {\n if ( el.nodeType === 1 ) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n\n next()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let el = this.get(0).nextSibling; el !== null; el = el.nextSibling) {\n if ( el.nodeType === 1 ) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n\n loaded(callback)\n {\n let el = this.get(0), timeout = null;\n\n if ( ! el ) {\n return this;\n }\n\n timeout = setInterval(() => {\n\n if ( ! el.complete || el.naturalWidth === 0 ) {\n return;\n }\n\n callback(el);\n clearInterval(timeout);\n\n }, 100);\n\n return this;\n }\n\n bind(event, callback)\n {\n this.each((el) => el[event] = (e) => callback.call(el, e));\n\n return this;\n }\n\n unbind(event)\n {\n this.each((el) => delete el[event]);\n }\n\n on(event, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.on(e, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n callback.call(e.target, e, e.target);\n };\n\n let selector = null;\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n live(event, selector, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.live(e, selector, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n\n let target = e.srcElement || e.target;\n\n if ( event.match(/^(drag[a-z]*|drop$)/) ) {\n target = Dom.location(e.clientX, e.clientY).get(0);\n }\n\n if ( ! Dom.find(target).inside(selector) ) {\n return;\n }\n\n callback.call(target, e, Dom.find(target).closest(selector));\n };\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n one(event, callback, options = {})\n {\n this.on(event, (e) => {\n callback(e); this.off(event);\n }, options);\n\n return this;\n }\n\n fire(event)\n {\n let callback = new Event(event);\n\n this.each((el) => {\n el.dispatchEvent(callback);\n });\n\n return this;\n }\n\n delayed(event, callback, delay = 0, options = {})\n {\n this.on(event, Any.debounce(callback, delay), options);\n\n return this;\n }\n\n off(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.off(e, selector);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let indexes = Arr.filterIndex(Dom.events, {\n el, event, selector, options\n });\n\n if ( indexes.length === 0 ) {\n return;\n }\n\n Arr.each(indexes.reverse(), (index) => {\n\n el.removeEventListener(event, Dom.events[index].func,\n Dom.events[index].options);\n\n Arr.removeIndex(Dom.events, index);\n });\n });\n\n return this;\n }\n\n unpause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.unpause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.addEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n pause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.pause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.removeEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n observer(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el, {}));\n }\n\n let observer = new MutationObserver((mutation) => {\n this.each((el) => callback(el, mutation));\n });\n\n return (el, options) => {\n observer.observe(Dom.find(el).get(0), options);\n };\n }\n\n observerResize(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el));\n }\n\n let observer = new ResizeObserver(() => {\n this.each((el) => callback(el));\n });\n\n return (el) => {\n observer.observe(Dom.find(el).get(0));\n }\n }\n\n data(key = undefined, val = undefined, fallback = null)\n {\n let match = Arr.find(Dom.datas, { el: this.get(0) },\n { el: this.get(0) });\n\n if ( key === undefined ) {\n return match;\n }\n\n if ( val === undefined ) {\n return Obj.get(match, key, fallback);\n }\n\n Arr.replace(Dom.datas, Obj.set(match, key, val),\n { el: this.get(0) });\n\n return this;\n }\n\n value(val = undefined)\n {\n if ( val === undefined ) {\n return this.get(0).value;\n }\n\n this.each((el) => el.value = val);\n\n return this;\n }\n\n html(html)\n {\n this.each((el) => el.innerHTML = html);\n\n return this;\n }\n\n computed(key = null, fallback = null)\n {\n let el = this.get(0);\n\n if ( el === null || el === window || el === document) {\n return key !== null ? fallback : {};\n }\n\n let computed = getComputedStyle(el);\n\n return key !== null ? Obj.get(computed, key, fallback) : computed;\n }\n\n css(vals = undefined)\n {\n if ( vals === null ) {\n return this.attr('style', null);\n }\n\n let styles = Str.objectify(this.attr('style') || '');\n\n if ( vals === undefined ) {\n return styles;\n }\n\n this.attr('style', Obj.assign({}, styles, Str.objectify(vals)));\n }\n\n class(vals)\n {\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n this.attr('class', vals.join(' '));\n }\n\n hasClass(vals)\n {\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n return Arr.intersect(vals, cls).length !== 0;\n }\n\n addClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).addClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.add(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n removeClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).removeClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.remove(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n toggleClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).toggleClass(vals));\n }\n\n this.hasClass(vals) ? this.removeClass(vals) : this.addClass(vals);\n\n return this;\n }\n\n attr(attr, val = undefined)\n {\n if ( this.empty() ) {\n return null;\n }\n\n if ( Any.isPlain(attr) ) {\n return Obj.each(attr, (value, key) =>\n this.attr(key, value));\n }\n\n let res = this.get(0).getAttribute(attr);\n\n if ( val === undefined ) {\n return res;\n }\n\n if ( val === null ) {\n this.get(0).removeAttribute(attr);\n return res;\n }\n\n if ( Any.isPlain(val) ) {\n val = Str.options(val);\n }\n\n this.get(0).setAttribute(attr, val);\n return res;\n }\n\n actual(callback, val = null)\n {\n let style = this.attr('style');\n\n this.attr('style', val);\n\n let result = callback.call(this.get(0), this.get(0));\n\n this.attr('style', style);\n\n return result;\n }\n\n loopParent(callback, target = null)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n\n if ( Dom.find(el).computed('position') === 'fixed' ) {\n return true;\n }\n\n if ( Dom.find(el).is(target) === true ) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n\n loopOffsetParent(callback, target = document.body)\n {\n for (let el = this.get(0); el !== null && el.offsetParent !== undefined; el = el.offsetParent) {\n\n if ( Dom.find(el).is(target) === true ) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n\n offset(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n this.loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n source.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n source.left += Num.float(el.offsetLeft);\n }\n\n });\n\n source.bottom = Dom.find(document.body).scrollHeight() -\n source.top - this.height();\n\n source.right = Dom.find(document.body).scrollWidth() -\n source.left - this.width();\n\n let target = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n Dom.find(boundry).loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n target.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n target.left += Num.float(el.offsetLeft);\n }\n\n });\n\n target.bottom = Dom.find(document.body).scrollHeight() -\n target.top - Dom.find(boundry || document.body).scrollHeight();\n\n target.right = Dom.find(document.body).scrollWidth() -\n target.left - Dom.find(boundry || document.body).scrollWidth();\n\n let offset = {\n top: source.top - target.top,\n bottom: source.bottom - target.bottom,\n left: source.left - target.left,\n right: source.right - target.right\n };\n\n return key !== null ? Obj.get(offset, key, 0) : offset;\n }\n\n offsetTop(boundry = null)\n {\n return this.offset('top', boundry);\n }\n\n offsetBottom(boundry = null)\n {\n return this.offset('bottom', boundry);\n }\n\n offsetLeft(boundry = null)\n {\n return this.offset('left', boundry);\n }\n\n offsetRight(boundry = null)\n {\n return this.offset('right', boundry);\n }\n\n scroll(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0\n };\n\n this.loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n source.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n source.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n source.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n source.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let target = {\n top: 0, left: 0\n };\n\n Dom.find(boundry).loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n target.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n target.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n target.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n target.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let scroll = {\n top: source.top - target.top,\n left: source.left - target.left\n };\n\n return key !== null ? Obj.get(scroll, key, 0) : scroll;\n }\n\n scrollTop(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('top', boundry);\n }\n\n this.each((el) => el.scrollTop = val);\n\n return this;\n }\n\n scrollTopGlobal()\n {\n return this.scroll('top', document.body);\n }\n\n scrollLeft(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('left', boundry);\n }\n\n this.each((el) => el.scrollLeft = val);\n\n return this;\n }\n\n scrollLeftGlobal()\n {\n return this.scroll('left', document.body);\n }\n\n margin(key = null)\n {\n let computedStyle = this.computed();\n\n let margin = {\n top: Num.float(computedStyle.marginTop),\n left: Num.float(computedStyle.marginLeft),\n bottom: Num.float(computedStyle.marginBottom),\n right: Num.float(computedStyle.marginRight),\n } ;\n\n return key !== null ? Obj.get(margin, key, 0) : margin;\n }\n\n padding(key = null)\n {\n let computedStyle = this.computed();\n\n let padding = {\n top: Num.float(computedStyle.paddingTop),\n left: Num.float(computedStyle.paddingLeft),\n bottom: Num.float(computedStyle.paddingBottom),\n right: Num.float(computedStyle.paddingRight),\n };\n\n return key !== null ? Obj.get(padding, key, 0) : padding;\n }\n\n height()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerHeight;\n }\n\n return el.offsetHeight;\n }\n\n clientHeight()\n {\n return Any.integer(this.computed('height', '0px').replace(\"px\", \"\"));\n }\n\n scrollHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollHeight;\n }\n\n innerHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.height() - this.padding('top') -\n this.padding('bottom');\n }\n\n realHeight(styles = {})\n {\n let height = 'auto';\n\n this.actual(() => height = this.height(), styles);\n\n return height;\n }\n\n evaluateHeight(target = null, auto = true)\n {\n if ( Any.isString(target) ) {\n target = Dom.find(target);\n }\n\n if ( target === null ) {\n target = this.parent();\n }\n\n let height = 'auto';\n\n this.actual(() => {\n height = target.innerHeight();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ height: height + 'px' });\n }\n\n return height;\n }\n\n width()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerWidth;\n }\n\n return el.offsetWidth;\n }\n\n clientWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return Any.integer(this.computed('width', '0px').replace(\"px\", \"\"));\n }\n\n scrollWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollWidth;\n }\n\n innerWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.width() - this.padding('left') -\n this.padding('right');\n }\n\n realWidth(styles = {})\n {\n let width = 0;\n\n this.actual(() => width = this.width(), styles);\n\n return width;\n }\n\n evaluateWidth(target = null, auto = true)\n {\n if ( target === null ) {\n target = this.parent();\n }\n\n let width = 'auto';\n\n this.actual(() => {\n width = target.innerWidth();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ width: width + 'px' });\n }\n\n return width;\n }\n\n}\n\nexport default Dom;\n","import { Str, Arr, Obj, Num, Any, Event } from \"../index.js\";\n\nexport class Cookie\n{\n /**\n * Pattern to get the cookie desired\n *\n * @type {string}\n */\n static pattern = '(^|;)\\\\s*{key}\\\\s*=\\\\s*([^;]+)';\n\n /**\n * Get cookie from current session\n *\n * @param {string} key\n * @param {*} fallback\n * @param {'string','boolean','float','integer','object','array'} decode\n * @returns {*}\n */\n static get(key, fallback = null, decode = 'string')\n {\n let pattern = this.pattern\n .replace('{key}', key);\n\n let result = document.cookie\n .match(pattern);\n\n if ( ! result ) {\n return fallback;\n }\n\n let plain = result[2].replace(/\\{:\\}/g, ';');\n\n if ( decode === 'boolean' ) {\n return Any.boolean(plain);\n }\n\n if ( decode === 'float' ) {\n return Any.float(plain);\n }\n\n if ( decode === 'integer' ) {\n return Any.integer(plain);\n }\n\n if ( decode === 'object' ) {\n return Str.objectify(plain, 'params', false);\n }\n\n if ( decode === 'array' ) {\n return Str.objectify(plain, 'params', true);\n }\n\n return plain;\n }\n\n /**\n * Set cookie in current session\n *\n * @param {string} key\n * @param {*} value\n * @param {integer} expire\n * @param {object} options\n */\n static set(key, value, expire = null, options = {})\n {\n let date = new Date;\n\n if ( expire !== null ) {\n date.setTime(Date.now() + (expire || 0));\n }\n\n if ( Date.now() !== date.getTime() ) {\n options.expires = date.toUTCString();\n }\n\n if ( ! options.path ) {\n options.path = '/';\n }\n\n if ( Any.isObject(value) ) {\n value = Str.stringify(value, 'params');\n }\n\n if ( Any.isString(value) ) {\n value = value.replace(/;/g, '{:}');\n }\n\n let plain = `${key}=${value};`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n /**\n * Forget cookie from current session\n *\n * @param {string} key\n * @param {object} options\n */\n static forget(key, options = {})\n {\n if ( ! options.path ) {\n options.path = '/';\n }\n\n options.expires = 'Thu, 01 Jan 1970 00:00:01 GMT';\n\n let plain = `${key}=null;`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n}\n\nexport default Cookie;\n","import { Arr, Obj, Num, Any, Event } from \"../index.js\";\n\nexport class Data\n{\n static data = Obj.get(global, '_data', {});\n\n static has(input)\n {\n return Obj.has(this.data, Arr.first(input));\n }\n\n static set(input, value)\n {\n let clone = value, key = Arr.first(input);\n\n if ( Any.isEqual(Obj.get(this.data, key), clone) ) {\n return;\n }\n\n Obj.set(this.data, key, clone);\n\n Event.fire('store:' + key, clone, key);\n }\n\n static unset(input)\n {\n let key = Arr.first(input);\n\n Obj.unset(this.data, key);\n }\n\n static get (input, fallback = null, forceSet = false)\n {\n let key = Arr.first(input);\n\n if ( ! Obj.has(this.data, key) && ! forceSet ) {\n return fallback;\n }\n\n if ( Obj.has(this.data, key) && forceSet ) {\n Obj.set(this.data, key, fallback);\n }\n\n let value = Obj.get(this.data, key, fallback);\n\n if ( ! Any.isPlain(value) ) {\n return value;\n }\n\n return Obj.clone(value);\n }\n\n static find (input, value, fallback = null)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return fallback;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return fallback;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: value.id\n });\n\n if ( index === -1 ) {\n return fallback;\n }\n\n return this.get(key + '.' + index);\n }\n\n static replace (input, value)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: Num.int(value.id)\n });\n\n if ( index === -1 ) {\n return;\n }\n\n this.set(key + '.' + index, value);\n }\n\n static add (input, ...args)\n {\n this.set(input, Arr.concat(this.get(input, []), args));\n }\n\n static remove (input, ...args)\n {\n this.set(input, Arr.diff(this.get(input, []), args));\n }\n\n}\n\nexport default Data;\n","import { Str, Obj, Dom, Any, Arr } from \"../index.js\";\n\nexport class Element\n{\n /**\n * Prefix for attribute selector.\n */\n static prefix = 'js';\n\n /**\n * Mounted identifier.\n */\n static mount = 'mount';\n\n /**\n * Instance storage.\n */\n static inis = {};\n\n /**\n * Runtime storage.\n */\n static runs = [];\n\n /**\n * Instance storage.\n */\n static invi = [];\n\n static listen()\n {\n // Apply dom scroll event\n document.addEventListener(\"scroll\", Element.scroll);\n\n // Apply initial scroll event\n Element.scroll();\n }\n\n static scroll()\n {\n Arr.each(this.invi, (item, index) => {\n\n if ( ! Dom.find(item.el).inviewY() ) {\n return;\n }\n\n Arr.removeIndex(this.invi, index);\n\n item.cb();\n });\n }\n\n /**\n * Bind a class on selector.\n */\n static alias(key, instance)\n {\n Obj.set(this.inis, key, instance);\n\n return this;\n }\n\n static bind(key, selector, options = {})\n {\n let el = Dom.find(selector), prefix = this.getPrefix(key);\n\n // Add mounted class\n el.addClass(prefix);\n\n let instance = Obj.get(this.inis,\n key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = new instance(\n el.get(0), options\n );\n\n Element.runs.push({\n el: el.get(0), prefix: prefix, deamon: cb\n });\n\n\n el.data(prefix, cb);\n\n return cb.bind !== undefined ?\n cb.bind(el.get(0), options) : cb;\n };\n\n // Bind option\n Dom.ready(() => callback.call({}, el, options));\n\n return this;\n }\n\n static unbind(key, selector, options = {})\n {\n let el = Dom.find(selector), prefix = this.getPrefix(key);\n\n let instance = Obj.get(this.inis,\n key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = el.data(prefix);\n\n if ( cb.unbind === undefined ) {\n return;\n }\n\n return cb.unbind(el.get(0), options);\n };\n\n // Unbind option\n callback.call({}, el, options);\n\n Arr.remove(Element.runs, { el: el.get(0) });\n\n return this;\n }\n\n\n /**\n * Bind callback on selector.\n */\n static observe(key, plain = false)\n {\n let selector = this.getPrefix(key);\n\n let options = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [selector]\n };\n\n let callback = () => {\n\n let mounted = Element.getPrefix(key);\n\n let deamons = Arr.filter(this.runs,\n { prefix: selector });\n\n Arr.each(deamons, ({ el }) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n if ( plain && Any.isEmpty(options) ) {\n options = { _plain: Dom.find(el).attr(selector) };\n }\n\n let inview = Obj.pluck(options, 'inview', false);\n\n if ( inview ) {\n Arr.remove(this.invi, { el });\n }\n\n if ( document.body.contains(el) ) {\n return;\n }\n\n return this.unbind(key, el, options)\n });\n\n Dom.find(`[${selector}]:not(.${mounted})`).each((el) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n if ( plain && Any.isEmpty(options) ) {\n options = { _plain: Dom.find(el).attr(selector) };\n }\n\n let inview = Obj.pluck(options, 'inview', false);\n\n let bindCb = () => {\n this.bind(key, el, options);\n };\n\n inview ? this.bindInview(el, bindCb) : bindCb();\n });\n\n };\n\n Dom.find(document.body).observer(callback)\n (document.body, options);\n\n Dom.find(document.body).on('dom.change', callback);\n\n return this;\n }\n\n static bindInview(el, cb)\n {\n Arr.add(this.invi, { el, cb }, { el });\n }\n\n static unbindInview(el, cb)\n {\n Arr.remove(this.invi, { el, cb }, { el });\n }\n\n\n\n /**\n * Return prefix with key.\n */\n static getPrefix(key)\n {\n return key ? this.prefix + '-' + key : this.prefix;\n }\n\n /**\n * Set prefix to given value.\n */\n static setPrefix(prefix)\n {\n this.prefix = prefix;\n }\n\n}\n\nexport default Element;\n","import { Arr, Any } from \"../index.js\";\n\nexport class Event\n{\n static events = [];\n\n static bind(name, callback, options = {}, paused = false)\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) =>\n this.bind(val, callback, options, paused));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n this.events = Arr.push(this.events, {\n name, callback, options, paused\n });\n\n return this;\n }\n\n static unbind(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unbind(val, options));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n Arr.remove(this.events, { name, options });\n\n return this;\n }\n\n static fire(name, ...args)\n {\n let events = this.events.filter((item) => {\n return item.name === name;\n });\n\n Arr.each(events, (event) => {\n if ( event.paused === false ) {\n event.callback.call({}, ...args);\n }\n });\n\n return this;\n }\n\n static pause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.pause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n return this;\n }\n\n static unpause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unpause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = false;\n\n return this;\n }\n\n}\n\nexport default Event;\n","import { Obj } from \"../index.js\";\n\nexport class Locale\n{\n /**\n * Get locales from window if present.\n */\n static locales = Obj.get(global, '_locales', {});\n\n static pickByCount(splits, count)\n {\n let splitLength = splits.length;\n\n if ( splitLength === 3 && count === 0 ) {\n return splits[0];\n }\n\n if ( splitLength === 3 && count === 1 ) {\n return splits[1];\n }\n\n if ( splitLength === 3 && count >= 2 ) {\n return splits[2];\n }\n\n if ( splitLength === 2 && count === 1 ) {\n return splits[0];\n }\n\n if ( splitLength === 2 && count !== 1 ) {\n return splits[1];\n }\n\n return splits[0];\n }\n\n static has(key)\n {\n return Obj.has(Locale.locales, key);\n }\n\n static get(key, fallback = null)\n {\n return Obj.get(Locale.locales, key, fallback || key);\n }\n\n static set(key, value)\n {\n Obj.set(Locale.locales, key, value);\n\n return this;\n }\n\n static trans(key, values = {})\n {\n let message = Obj.get(Locale.locales, key, key);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n static choice(key, count = 0, values = {})\n {\n let splits = Obj.get(Locale.locales, key, key).split('|');\n\n if ( typeof values.count === 'undefined' ) {\n values = Obj.assign({ count: count }, values);\n }\n\n let message = Locale.pickByCount(splits, count);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n}\n\nexport default Locale;\n","import { Obj, Arr, Any, Dom, Event, UUID } from \"../index.js\";\n\n/**\n * @const {object} google\n */\n\nexport default class Map\n{\n map = null;\n\n static mapStyle = [];\n\n markers = {};\n\n static markerStyles = {};\n\n cluster = null;\n\n clusterFilter = null;\n\n clusterOptions = {};\n\n static hideMarkers = true;\n\n static closeInfoWindows = true;\n\n constructor(el, options = {})\n {\n if ( ! global.google ) {\n throw new Error('Google Maps is required for pi.Map');\n }\n\n let center = Obj.only(options, ['lat', 'lng']);\n\n if ( ! Obj.has(options, 'styles') ) {\n options.styles = Map.mapStyle;\n }\n\n options = Obj.assign({ gestureHandling: 'cooperative', scrollwheel: null, zoom: 12, center },\n Obj.except(options, ['lat', 'lng']));\n\n this.map = new global.google.maps.Map(Dom.find(el).get(0), options)\n }\n\n static setMapStyle(style = [])\n {\n Map.mapStyle = style;\n\n return this;\n }\n\n static setMarkerStyle(key, style = {}, extra = {})\n {\n if ( ! global.google ) {\n throw new Error('Google Maps is required for pi.Map');\n }\n\n if ( ! Obj.has(style, 'default') ) {\n return console.error('Marker style requires default property')\n }\n\n if ( ! Obj.has(style, 'width') ) {\n style.width = 45;\n }\n\n if ( ! Obj.has(style, 'height') ) {\n style.height = 45;\n }\n\n let final = {};\n\n // Marker size\n let size = new global.google.maps.Size(style.width, style.height);\n\n // Point position\n let origin = new global.google.maps.Point(0, 0);\n\n // Point position\n let anchor = new global.google.maps.Point(style.width / 2, style.height);\n\n final.default = {\n url: style.default, size: size, origin: origin, anchor: anchor, scaledSize: size\n };\n\n if ( Obj.has(style, 'hover') ) {\n final.hover = Obj.assign({}, final.default, { url: style.hover });\n }\n\n if ( ! Obj.has(final, 'hover') ) {\n final.hover = final.default;\n }\n\n if ( Obj.has(style, 'active') ) {\n final.active = Obj.assign({}, final.default, { url: style.active });\n }\n\n if ( ! Obj.has(final, 'active') ) {\n final.active = final.default;\n }\n\n Obj.each(extra, (value, prop) => {\n final[prop] = Obj.assign({}, final.default, { url: value });\n });\n\n Obj.set(Map.markerStyles, key, final);\n\n return this;\n }\n\n clusterMarkers(options = {}, filter = null, allowCreate = true)\n {\n if ( ! this.cluster && ! allowCreate ) {\n return;\n }\n\n if ( typeof global.MarkerClusterer === \"undefined\" ) {\n return console.error('Google Maps Cluster library not laoded!');\n }\n\n if ( ! Obj.has(options, 'imagePath') && ! Obj.has(options, 'styles') ) {\n options.imagePath = '//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';\n }\n\n if ( this.cluster ) {\n this.cluster.clearMarkers();\n }\n\n if ( Any.isFunction(filter) ) {\n this.clusterFilter = filter;\n }\n\n let markers = Arr.filter(this.markers, (item) => {\n\n let visible = this.getMarkerVisibility(item.key);\n\n if ( ! Any.isFunction(this.clusterFilter) ) {\n return visible;\n }\n\n return visible && this.clusterFilter.call(this, item);\n });\n\n this.cluster = new global.MarkerClusterer(this.map, Arr.each(markers, (item) => item.marker),\n this.clusterOptions = options);\n }\n\n styleMarker(key, type = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( Any.isEmpty(type) ) {\n type = this.getInfoVisibility(key) ? 'active' : 'default';\n }\n\n if ( ! Obj.has(Map.markerStyles, [item.style, type]) ) {\n return;\n }\n\n item.marker.setIcon(Obj.get(Map.markerStyles, [item.style, type]));\n }\n\n getMarker(key)\n {\n return Obj.get(this.markers, key);\n }\n\n getMarkerVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getVisible();\n }\n\n getMarkerPositon(key, fallback = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getPosition();\n }\n\n toggleMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( item.marker.getVisible() ) {\n return this.hideMarker(key);\n }\n\n return this.showMarker(key);\n }\n\n showMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let hidden = ! item.marker.getVisible();\n\n if ( hidden ) {\n item.marker.setVisible(true);\n }\n\n return hidden;\n }\n\n hideMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let visible = !! item.marker.getVisible();\n\n if ( visible ) {\n item.marker.setVisible(false);\n }\n\n this.closeInfo(key);\n\n return visible;\n }\n\n enterMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'hover';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n leaveMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'default';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n getInfoVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) || ! Obj.has(item, 'info') ) {\n return fallback;\n }\n\n return !! item.info.getMap();\n }\n\n toggleInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( item.info.getMap() ) {\n return this.closeInfo(key);\n }\n\n return this.openInfo(key);\n }\n\n openInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return true;\n }\n\n let hidden = ! item.info.getMap();\n\n if ( Map.closeInfoWindows ) {\n Obj.each(Any.keys(this.markers), this.closeInfo.bind(this));\n }\n\n if ( hidden ) {\n item.info.open(this.map, item.marker);\n }\n\n this.styleMarker(key, 'active');\n\n return hidden;\n }\n\n closeInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return false;\n }\n\n let visible = !! item.info.getMap();\n\n if ( visible ) {\n item.info.close();\n }\n\n this.styleMarker(key, 'default');\n\n return visible;\n }\n\n createMarker(key = null, options = {})\n {\n if ( Any.isEmpty(key) ) {\n key = UUID();\n }\n\n let item = { key };\n\n if ( ! Obj.has(options, 'visible') ) {\n options.visible = true;\n }\n\n item.extras = Obj.except(options, [\n 'map', 'position', 'lat', 'lng', 'html', 'style', 'visible'\n ]);\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'positon') ) {\n options.position = Obj.only(options, ['lat', 'lng']);\n }\n\n if ( Obj.has(options, 'style') ) {\n item.style = options.style;\n }\n\n item.marker = new global.google.maps.Marker(options);\n\n if ( !options.visible ) {\n item.marker.setVisible(false);\n }\n\n Obj.set(this.markers, key, item);\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n if ( ! Obj.has(options, 'html') ) {\n return Obj.get(this.markers, key);\n }\n\n if ( ! Obj.has(item, 'style') ) {\n item.style = 'default';\n }\n\n // Style marker\n this.styleMarker(key);\n\n // Add marker hover style\n item.marker.addListener('mouseover', () => this.enterMarker(key));\n\n // Add marker default style\n item.marker.addListener('mouseout', () => this.leaveMarker(key));\n\n item.info = new global.google.maps.InfoWindow({\n content: '<div class=\"gw-i-html\">' + Obj.get(options, 'html') + '</div>'\n });\n\n item.marker.addListener('click', () => this.toggleInfo(key));\n item.info.addListener('closeclick', () => this.closeInfo(key));\n\n // Dom change event\n item.info.addListener('domready', () => Event.fire('MapsDomReady'));\n\n Obj.set(this.markers, key, item);\n\n return Obj.get(this.markers, key);\n }\n\n setMarkerPosition(key, options = {})\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n item.marker.setPosition(options);\n }\n\n setMarkerByAddress(key, address)\n {\n return this.getLocationByAddress(address, (res) => {\n this.setMarkerPosition(key, Obj.get(res, '0.geometry.location', {}));\n });\n }\n\n getLocationByAddress(address, callback = null)\n {\n let geocoderService = new global.google.maps.Geocoder();\n\n let geocoderPromise = (resolve, reject) => {\n\n let geocoderResult = (response, status) => {\n\n if ( status === 'OK' ) {\n callback(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n geocoderService.geocode({ address }, geocoderResult);\n };\n\n return new Promise(geocoderPromise);\n }\n\n showMarkers(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n if ( Map.hideMarkers ) {\n Obj.each(Any.keys(this.markers), this.hideMarker.bind(this));\n }\n\n Obj.each(markers, (item) => this.showMarker(item.key));\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n return this;\n }\n\n getMarkerBoundry(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n let boundry = new global.google.maps.LatLngBounds();\n\n Obj.each(markers, (item) => {\n if ( item.marker.getVisible() ) {\n boundry.extend(item.marker.getPosition());\n }\n });\n\n return boundry;\n }\n\n focusMarkers(filter = null, maxZoom = 14, boundSpace = 15)\n {\n let boundry = this.getMarkerBoundry(filter);\n\n // Center map to boundry\n this.map.setCenter(boundry.getCenter());\n\n // Adapt viewport to boundry\n this.map.fitBounds(boundry, boundSpace);\n\n if ( this.map.getZoom() > maxZoom ) {\n this.map.setZoom(maxZoom);\n }\n\n return this;\n }\n\n renderDirections(options)\n {\n // Get directions service\n let directionsService = new global.google.maps.DirectionsService();\n\n // Get directions renderer\n let directionsRenderer = new global.google.maps.DirectionsRenderer();\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'travelMode') ) {\n options.travelMode = 'DRIVING';\n }\n\n // Set directions map\n directionsRenderer.setMap(options.map);\n\n if ( Obj.has(options, 'panel') && ! Dom.find(options.panel).empty() ) {\n directionsRenderer.setPanel(Dom.find(options.panel).get(0));\n }\n\n options = Obj.only(options, ['origin', 'destination', 'travelMode']);\n\n let directionsPromise = (resolve, reject) => {\n\n let directionsResult = (response, status) => {\n\n if ( status === 'OK' ) {\n directionsRenderer.setDirections(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n directionsService.route(options, directionsResult);\n };\n\n return new Promise(directionsPromise);\n }\n\n}\n","import { Arr } from \"../index.js\";\n\nexport default class Queue\n{\n queue = [];\n stopQueue = false;\n activeQueue = false;\n\n constructor(queue = [])\n {\n this.queue = queue;\n }\n\n handler(queue, index)\n {\n return () => queue.length - 1 > index ++ && this.stopQueue === false ?\n queue[index](this.handler(queue, index)) : () => {};\n }\n\n stop()\n {\n this.stopQueue = true;\n this.activeQueue = false;\n\n this.queue = [];\n\n return this;\n }\n\n clear()\n {\n this.queue = [];\n\n return this;\n }\n\n add(cb)\n {\n this.queue.push(cb);\n\n return this;\n }\n\n run()\n {\n let instance = new Queue(this.queue);\n\n instance.add(() => {\n instance.activeQueue = false;\n });\n\n if ( instance.queue.length !== 0 ) {\n Arr.first(instance.queue)(instance.handler(instance.queue.slice(0), 0));\n }\n\n return instance;\n }\n\n active()\n {\n return this.activeQueue;\n }\n\n}\n","import { Obj, Str, Any } from \"../index.js\";\n\nexport default class Route\n{\n static routes = Obj.get(global, '_routes', {});\n\n static set (key, value)\n {\n this.routes[key] = value;\n }\n\n static get (key, values = null, params = null)\n {\n let route = key.match(/^https?:\\/\\//) ? key : this.routes[key] || key;\n\n Obj.each(values || {}, (value, key) => {\n route = route.replace(new RegExp('{' + key + '\\\\?*}', 'g'), value);\n });\n\n return route + (! Any.isEmpty(params) ? ('?' + Str.params(params)) : '');\n }\n\n static goto (key, values = null, params = null)\n {\n global.location.href = this.get(key, values, params);\n }\n\n}\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","// Unique ID creation requires a high quality random # generator. In the\n// browser this is a little complicated due to unknown quality of Math.random()\n// and inconsistent support for the `crypto` API. We do the best we can via\n// feature-detection\n\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\n// implementation. Also, find the complete implementation of crypto on IE11.\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\n (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\n\nif (getRandomValues) {\n // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\n module.exports = function whatwgRNG() {\n getRandomValues(rnds8);\n return rnds8;\n };\n} else {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var rnds = new Array(16);\n\n module.exports = function mathRNG() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\n rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return rnds;\n };\n}\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\nvar _clockseq;\n\n// Previous uuid creation time\nvar _lastMSecs = 0;\nvar _lastNSecs = 0;\n\n// See https://github.com/uuidjs/uuid for API details\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\n\n // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n if (node == null || clockseq == null) {\n var seedBytes = rng();\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [\n seedBytes[0] | 0x01,\n seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\n ];\n }\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n }\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : bytesToUuid(b);\n}\n\nmodule.exports = v1;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n"],"sourceRoot":""}
|