-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript-test.js
More file actions
1 lines (1 loc) · 40.2 KB
/
javascript-test.js
File metadata and controls
1 lines (1 loc) · 40.2 KB
1
!function(){var t={155:function(t){var e,n,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var u,c=[],l=!1,a=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):a=-1,c.length&&p())}function p(){if(!l){var t=o(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++a<e;)u&&u[a].run();a=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||l||o(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},575:function(t,e,n){"use strict";n.r(e),n.d(e,{Arr:function(){return P},ArrLike:function(){return C},Bool:function(){return F},Component:function(){return V},Datetime:function(){return i},Debug:function(){return s},Env:function(){return o},Factory:function(){return u},Func:function(){return R},Html:function(){return c},Integer:function(){return I},Json:function(){return l},Nav:function(){return a},Num:function(){return B},Obj:function(){return D},Pojo:function(){return K},Scalar:function(){return W},Shortcut:function(){return $},Str:function(){return z},Test:function(){return M},TestSuite:function(){return h},Tool:function(){return H},Validate:function(){return p},Vari:function(){return f}});var i={now:function(){return(new Date).getTime()},localeFormat:function(t,e,n){return z.typecheck(t),(e=z.isNotEmpty(e)?new Date(e):new Date).toLocaleString(t,n)},year:function(){return(new Date).getFullYear()},ymd:function(t,e,n,i){let s=I.is(t)?new Date(1e3*t):new Date;return s.setHours(0,0,0),I.is(i)&&s.setDate(i),I.is(n)&&s.setMonth(n-1),I.is(e)&&s.setFullYear(e),s.toISOString().substr(0,10)},his:function(t){return(I.is(t)?new Date(1e3*t):new Date).toTimeString().split(" ")[0]}},s=new function(){let t=!1;this.status=function(e){return W.is(e)&&(t=e),t},this.is=function(e){return!0===t||t===e},this.assertThrow=function(t){if(!0!==t)throw new Error},this.logError=function(t){console.error("Catched",t)}},r=n(155),o={isNode:function(){return void 0!==r&&void 0!==r.release&&"node"===r.release.name},isBrowser:function(){return!this.isNode()},isWindow:function(t){let e=!1;return this.isBrowser()&&D.is(t)&&(e=t instanceof Window||t.window===t),e},isTarget:function(t){let e=!1;return this.isBrowser()&&D.is(t)&&(e=t instanceof HTMLElement||t instanceof HTMLTemplateElement||t instanceof DocumentFragment||t===document||this.isWindow(t)||P.in(t.nodeType,[Node.TEXT_NODE,Node.DOCUMENT_TYPE_NODE])),e}};function u(t){const e=Object.create(!0===t?{}:t||null),n=Array.prototype.slice.call(arguments,1);return Object.assign.apply(null,[e].concat(n)),e}var c={valueAttr:{br:"data-value",hr:"data-value",img:"src",meta:"content",link:"href",input:"value"},htmlEscapes:{"&":"&","<":"<",">":">",'"':""","'":"'"},isSelfClosing:function(t){return P.in(t,["br","hr","img","meta","link","input"])},escape:function(t){const e=this;return z.typecheck(t),t.replace(/[&<>"']/g,(function(t){return e.htmlEscapes[t]}))},start:function(t,e,n){let i="";z.typecheck(t,!0);const s=this.isSelfClosing(t),r=this.attr(n,t,e);return i+="<",i+=t,z.isNotEmpty(r)&&(i+=" ",i+=r),!0===s?i+="/>":(i+=">",i+=this.value(e)),i},end:function(t){let e="";z.typecheck(t,!0);return!1===this.isSelfClosing(t)&&(e+="</",e+=t,e+=">"),e},value:function(t,e){return!0===t?t=!0===e?1:" ":!1===t&&(t=!0===e?0:""),!0!==e&&(K.is(t)&&(t=K.values(t)),P.is(t)&&(t=t.join(", "))),z.cast(t,!0)},attr:function(t,e,n){let i="";const s=this.isSelfClosing(e);if(t=this.attrToPojo(t),!0===s&&K.keyExists(e,this.valueAttr)){const i=K.get(e,this.valueAttr);if(null!=i){null!=K.get(i,t)&&null==n||(t[i]=this.value(n,!0))}}return t=this.prepareAttr(t),i=K.str(t,"="," ",!0),i},attrToPojo:function(t){let e={};return z.isNotEmpty(t)&&(e={class:t}),K.is(t)&&(e=t),e},prepareAttr:function(t){let e={};K.typecheck(t);const n=function(t,e){return{key:z.fromCamelCase("-",t),value:F.is(e)?F.toInt(e):e}};return K.each(t,(function(t,i){const s=n(i,t);i=s.key,t=s.value,"class"===i&&P.is(t)?t=t.join(" "):"data"===i&&K.is(t)&&(K.each(t,(function(t,i){const s=n(i,t),r="data-"+s.key;e[r]=s.value})),t=null),null!=t&&(e[i]=t)})),e},tag:function(t,e,n){return this.start(t,e,n)+this.end(t)},tagCond:function(t,e,n){return f.isNotEmpty(this.value(e))?this.tag(t,e,n):""},div:function(t,e){return this.tag("div",t,e)},span:function(t,e){return this.tag("span",t,e)},ul:function(t,e){return this.tag("ul",t,e)},li:function(t,e){return this.tag("li",t,e)},input:function(t,e){return this.tag("input",t,K.replace({type:"text"},this.attrToPojo(e)))},button:function(t,e){return this.tag("button",t,K.replace({type:"button"},this.attrToPojo(e)))}},l={encode:function(t){return JSON.stringify(t)},decode:function(t){return JSON.parse(z.typecheck(t))},recode:function(t){return this.decode(this.encode(t))}},a={isFirst:function(t,e){return t===this.getFirst(e)},hasPrev:function(t,e,n){return null!=this.getPrev(t,e,n)},hasNext:function(t,e,n){return null!=this.getNext(t,e,n)},isLast:function(t,e){return t===this.getLast(e)},isIndex:function(t,e){return this.getIndex(t,e)===t},getFirst:function(t){return I.isPositive(t)?0:null},getPrev:function(t,e,n){let i=null;if(I.isPositive(e)){const s=e-1,r=(t=I.is(t)?t:s)-1;r<0?!0===n&&(i=s):i=r}return i},getNext:function(t,e,n){let i=null;if(I.isPositive(e)){const s=e-1,r=(t=I.is(t)?t:-1)+1;r>s?!0===n&&(i=0):i=r}return i},getLast:function(t){return I.isPositive(t)?t-1:null},getIndex:function(t,e){return I.is(t)&&t>=0&&I.isPositive(e)&&t<e?t:null},index:function(t,e,n,i){let s=null;return I.isPositive(n)&&("first"===t?s=this.getFirst(n):"last"===t?s=this.getLast(n):"prev"===t?s=this.getPrev(e,n,i):"next"===t?s=this.getNext(e,n,i):I.is(t)&&(s=this.getIndex(t,n))),s},indexObj:function(t,e,n,i){let s=null;if(D.typechecks(n,!1),null!=n){const r=P.length(n);D.is(t)&&(t=P.search(t,n)),D.is(e)&&(e=P.search(e,n));const o=this.index(t,e,r,i);I.is(o)&&(s=P.get(o,n))}return s}};function h(t){return K.each(t,(function(t,e){return t()}))}var p={isNumericDash:function(t){return this.regex(t,"^[0-9-]+$")},isEmail:function(t){return this.regex(t,/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{1,4})+$/)},isRegexStr:function(t){return z.isNotEmpty(t)||t instanceof RegExp},regex:function(t,e){let n=!1;if(z.is(t)&&this.isRegexStr(e)){new RegExp(e).test(t)&&(n=!0)}return n},trigger:function(t,e,n){let i=this.required(t,e);return!0===i&&(i=this.pattern(t,n)),i},required:function(t,e){let n=!0;return F.is(e)&&(e=F.toInt(e)),B.isPositive(e)&&(t=z.cast(t),(t=z.trim(t)).length||(n=!1)),n},pattern:function(t,e){let n=!0;return z.isNotEmpty(e)&&(t=z.cast(t)).length&&!this.regex(t,e)&&(n=!1),n}},f={is:function(t){return void 0!==t},isEmpty:function(t){let e=!0;return P.is(t)||z.is(t)?e=!(t.length>0):W.is(t)?e=!t:o.isTarget(t)?e=!1:null!=t&&this.eachProto(t,(function(){return e=!1,!1})),e},isNotEmpty:function(t){return!this.isEmpty(t)},isReallyEmpty:function(t){return!B.is(t)&&!F.is(t)&&this.isEmpty(t)},isNotReallyEmpty:function(t){return!this.isReallyEmpty(t)},isNull:function(t){return null===t},isUndefined:function(t){return void 0===t},isEqual:function(){let t,e=!1,n=null;return e=C.each(arguments,(function(e){if(n=l.encode(e),void 0!==t)return n===t;t=n})),e},isEqualStrict:function(){let t,e=!1;return e=C.each(arguments,(function(e){if(void 0!==t)return Object.is(t,e);t=e})),e},type:function(t){let e=typeof t;const n={};if(null==t)e=t+"";else if("function"===e){const i=n.toString.call(t);e=n[i]||"object"}return e},check:function(t,e){if(t!==e)throw new Error([t,e]);return t},eachProto:function(t,e){let n=null;if(R.is(e)){var i,s;let r;for(i in n=!0,t)if(s=t[i],r=e.call(s,s,i,t),!1===r){n=!1;break}}return n}};const y={is:function(t){return Array.isArray(t)},in:function(t,e){return this.is(e)?Array.prototype.includes.call(e,t):null},keys:function(t){return this.typecheck(t),Array.from(Array.prototype.keys.call(t))},valueFirst:function(t){return this.typecheck(t),t.length?t[0]:void 0},valueLast:function(t){return this.typecheck(t),t.length?t[t.length-1]:void 0},keyFirst:function(t){return this.typecheck(t),t.length?0:void 0},keyLast:function(t){return this.typecheck(t),t.length?t.length-1:void 0},search:function(t,e){let n=null;return this.typecheck(e),n=Array.prototype.indexOf.call(e,t),n=-1===n?null:n,n},slice:function(t,e,n){let i=null;return this.typecheck(n),t=I.is(t)?t:0,e=I.is(e)?e:void 0,i=Array.prototype.slice.call(n,t,e),i},sliceStart:function(t,e){return this.slice(t,!0,e)},merge:function(t){let e=null;this.typecheck(t);const n=C.sliceStart(1,arguments);return e=Array.prototype.concat.apply(t,n),e},clean:function(t){return this.filter(t,(function(t){return f.isNotReallyEmpty(t)}))},valueStrip:function(t,e){return this.filter(e,(function(e){return e!==t}))},find:function(t,e){return this.typecheck(t),R.typecheck(e),Array.prototype.find.call(t,e)},some:function(t,e){return this.typecheck(t),R.typecheck(e),Array.prototype.some.call(t,e)},every:function(t,e){return this.typecheck(t),R.typecheck(e),Array.prototype.every.call(t,e)},map:function(t,e){return this.typecheck(t),R.typecheck(e),Array.prototype.map.call(t,e)},filter:function(t,e){return this.typecheck(t),R.typecheck(e),Array.prototype.filter.call(t,e)},reduce:function(t,e,n){return this.typecheck(e),R.typecheck(n),Array.prototype.reduce.call(e,n,t)},column:function(t,e){const n=[];return z.typecheck(t,!0),this.each(e,(function(e){K.is(e)&&K.keyExists(t,e)&&n.push(e[t])})),n},new:function(){return[]}},m={mergeRef:function(t){this.typecheck(t);let e=t;const n=C.sliceStart(1,arguments);return this.each(n,(function(t){P.is(t)||(t=[t]),Array.prototype.push.apply(e,t)})),e},reverseRef:function(t){return this.typecheck(t),t.reverse()},spliceValue:function(t,e,n){let i=null,s=this.search(t,e);this.typecheck(e);let r=[s,1];return void 0!==n&&r.push(n),i=Array.prototype.splice.apply(e,r),i}},d={timeouts:function(t,e,n,i){return I.typecheck(e),I.typecheck(n),R.typecheck(i),P.each(t,(function(t,s){const r=e+s*n;R.timeout(r,(function(){i(t,s,r)}))}))},oddEven:function(t,e,n){return R.typechecks([e,n],!1),P.each(t,(function(t,i){const s=i+1;B.isOdd(s)?null!=e&&e(t,i):null!=n&&n(t,i)}))}};var k={is:function(t){let e=!1;if(!(P.is(t)||W.is(t)||R.is(t)||o.isWindow(t))){const n=f.type(t),i=!!t&&"length"in t&&t.length;e="array"===n||0===i||"number"==typeof i&&i>0&&i-1 in t}return e},toArray:function(t){return P.is(t)?t:this.is(t)?Array.from(t):null}},g={is:function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},noop:function(){return function(){}},async:function(t,e){return this.timeout(0,t,e)},timeout:function(t,e,n){return this.typecheck(e),I.is(t)||(t=0),setTimeout(e.bind(n),t)},debounce:function(t,e){I.typecheck(t),this.typecheck(e);const n=this;let i;return function(){const s=this,r=arguments;i&&clearTimeout(i),i=n.timeout(t,(function(){e.apply(s,r)}))}},debounceOnce:function(t,e){let n=!1;return Func.typecheck(e),this.debounce(t,(function(){const t=arguments;!1===n&&(e.apply(this,t),n=!0)}))},throttle:function(t,e){I.typecheck(t),this.typecheck(e);const n=this;let i=!0;return function(){const s=this;!0===i&&(e.apply(s,arguments),i=!1,n.timeout(t,(function(){i=!0})))}}},E={is:function(t){return B.is(t)&&parseInt(t)===t},cast:function(t){return W.isNotBool(t)&&""!==t?parseInt(t):null},toBool:function(t){let e=null;return this.typecheck(t),1===t?e=!0:0===t&&(e=!1),e},toggle:function(t){let e=null;return this.typecheck(t),1===t?e=0:0===t&&(e=1),e},range:function(t,e,n){let i=null;if(t=null==t?1:t,n=null==n?1:n,this.isPositive(t,!0)&&this.isPositive(e,!0)&&this.isPositive(n)){const s=Math.floor((e-t)/n)+1,r=Array(s).fill(t);i=P.map(r,(function(t,e){return t+e*n}))}return i},unique:function(t){let e=0;return function(){return e++}}()};const v={is:function(t){let e=!1;const n=f.type(t);return"number"!==n&&"string"!==n||(e=!isNaN(t-parseFloat(t))),e},isEmpty:function(t){return!!this.is(t)&&f.isEmpty(this.cast(t))},isNotEmpty:function(t){return!!this.is(t)&&f.isNotEmpty(this.cast(t))},isPositive:function(t,e){let n=!1;return this.is(t)&&((t=this.cast(t))>0||!0===e&&0===t)&&(n=!0),n},isNegative:function(t,e){let n=!1;return this.is(t)&&((t=this.cast(t))<0||!0===e&&0===t)&&(n=!0),n},isOdd:function(t){return this.is(t)&&!I.is(t/2)},isEven:function(t){return this.is(t)&&I.is(t/2)},isNan:function(t){return isNaN(t)},cast:function(t){return W.isNotBool(t)&&""!==t?parseFloat(t):null},str:function(t){return this.typecheck(t),Number(t).toString()}},w={decimal:function(t,e){return this.typecheck(t),e=I.is(e)?e:2,t.toFixed(e)},round:function(t){return t=this.cast(t),this.typecheck(t),Math.round(t)},floor:function(t){return t=this.cast(t),this.typecheck(t),Math.floor(t)},ceil:function(t){return t=this.cast(t),this.typecheck(t),Math.ceil(t)}},b={is:function(t){return"object"===f.type(t)},isEqual:function(){let t=!1;const e=Array.from(arguments);return e.length>1&&this.is(e[0])&&(t=f.isEqual.apply(null,e)),t},length:function(t){this.typecheck(t);return Object.keys(t).length}},q={isKey:function(t){return W.isNotBool(t)},keyExists:function(t,e){return!(!this.isKey(t)||!this.is(e))&&e.hasOwnProperty(t)},keys:function(t){return this.typecheck(t),Object.keys(t)},values:function(t){return this.typecheck(t),Object.values(t)},get:function(t,e){return this.typecheck(e),this.keyExists(t,e)?e[t]:void 0},toArray:function(t){return this.typecheck(t),Array.from(this.values(t))},valueFirst:function(t){let e;const n=this.keys(t);if(null!=n){e=t[n[0]]}return e},valueLast:function(t){let e;const n=this.keys(t);if(null!=n){e=t[n[n.length-1]]}return e},find:function(t,e){let n;return R.typecheck(e),this.each(t,(function(t,i){if(e(t,i))return n=t,!1})),n},findKey:function(t,e){let n=null;return R.typecheck(e),this.each(t,(function(t,i){if(e(t,i))return n=i,!1})),n},some:function(t,e){let n=!1;return R.typecheck(e),this.each(t,(function(t,i){if(e(t,i))return n=!0,!1})),n},every:function(t,e){let n=!0;return R.typecheck(e),this.each(t,(function(t,i){if(!e(t,i))return n=!1})),n},reduce:function(t,e,n){return R.typecheck(n),this.each(e,(function(e,i){t=n(t,e,i)})),t},accumulate:function(t,e,n){return R.typecheck(n),this.each(e,(function(e,i){const s=n(e,i);if(null==s)return!0;P.is(t)?t.push(s):K.is(t)?t[i]=s:t+=s})),t},str:function(t,e,n,i){return e=z.is(e)?e:"=",n=z.is(n)?n:" ",this.reduce("",t,(function(t,s,r){if(z.isNotEmpty(r))return s=z.cast(s,!0),!0===i&&(s=z.quote(s,!1,!0)),t.length&&(t+=n),t+=r,t+=e,t+=s}))},climb:function(t,e){z.is(t)&&(t=z.explode("/",t)),P.typecheck(t),this.typecheck(e);const n=this;return P.each(t,(function(t){if(!n.keyExists(t,e))return e=void 0,!1;e=e[t]})),e}},N={each:function(t,e){let n=!0;R.typecheck(e);let i,s,r,o=this.keys(t);for(var u=0;u<o.length;u++)if(i=o[u],s=t[i],r=e(s,i),!1===r){n=!1;break}return n}},x={copy:function(t){return this.typecheck(t),Object.assign(this.new(),t)},new:function(){return{}},filter:function(t,e){let n=this.new();R.typecheck(e);const i=!Array.isArray(n);return this.each(t,(function(t,s){const r=e(t,s);s=!1===i?n.length:s,r&&(n[s]=t)})),n},map:function(t,e){let n=this.new();return R.typecheck(e),this.each(t,(function(t,i){const s=e(t,i);n[i]=s})),n}},j={set:function(t,e,n){let i=this.copy(n);return i[t]=e,i},unset:function(t,e){let n=this.copy(e);return delete n[t],n},unsets:function(t,e){let n=this.copy(e);const i=this;return P.each(t,(function(t){i.keyExists(t,e)&&delete n[t]})),n},replace:function(){let t=this.new(),e=Array.from(arguments);if(e.length>0){const n=this;P.each(e,(function(e){n.typecheck(e,!1),null!=e&&(t=Object.assign(t,e))}))}return t}},A={setRef:function(t,e,n){return this.typecheck(n),n[t]=e,n},unsetRef:function(t,e){return this.typecheck(e),this.keyExists(t,e)&&delete e[t],e},unsetsRef:function(t,e){this.typecheck(e);const n=this;return P.each(t,(function(t){n.keyExists(t,e)&&delete e[t]})),e}};var T={is:function(t){return null!=t&&"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype&&"[object Object]"===t.toString()},gets:function(t,e){let n={};this.typecheck(e);const i=this;return P.each(t,(function(t){n[t]=i.keyExists(t,e)?e[t]:void 0})),n},replaceRecursive:function(){let t=null,e=Array.from(arguments);if(e.length>0){t=this.copy(e[0]);const n=this,i=P.sliceStart(1,e);P.each(i,(function(e){null!=e&&n.each(e,(function(e,i){n.is(t[i])&&n.keyExists(i,t)?t[i]=n.replaceRecursive(t[i],e):t[i]=e}))}))}return t}},O={is:function(t){let e=!1;const n=typeof t;return"boolean"!==n&&"number"!==n&&"string"!==n||(e=!0),e},isNotBool:function(t){return this.is(t)&&!F.is(t)},cast:function(t,e){return null!=t&&null!=e&&(P.in(e,[!0,"json"])?t=l.decode(t):"int"===e?t=I.cast(t):"num"===e?t=B.cast(t):"bool"===e&&this.is(t)&&(t=this.toBool(t))),t},toBool:function(t){let e=null;return this.typecheck(t),P.in(t,[1,"1",!0,"true"])?e=!0:P.in(t,[0,"0",!1,"false"])&&(e=!1),e}},S={is:function(t){return"string"==typeof t},isStart:function(t,e){return this.is(t)&&this.is(e)?e.startsWith(t):null},isEnd:function(t,e){return this.is(t)&&this.is(e)?e.endsWith(t):null},isEqual:function(t,e){return this.cast(t)===this.cast(e)},in:function(t,e){return this.is(e)&&this.is(t)?e.includes(t):null},icompare:function(t,e){return!(!this.is(t)||!this.is(e))&&t.toUpperCase()===e.toUpperCase()},cast:function(t,e){let n="";return null!=t&&(n=D.is(t)&&!0===e?l.encode(t):String(t)),n},toNum:function(t){return this.typecheck(t),B.cast(t)},toInt:function(t){return this.typecheck(t),I.cast(t)},pos:function(t,e){this.typecheck(e);let n=e.indexOf(t);return n=-1===n?null:n,n},lower:function(t){return this.typecheck(t),t.toLowerCase()},lowerFirst:function(t){return this.typecheck(t),this.isNotEmpty(t)?t.charAt(0).toLowerCase()+t.slice(1):null},upper:function(t){return this.typecheck(t),t.toUpperCase()},upperFirst:function(t){return this.typecheck(t),this.isNotEmpty(t)?t.charAt(0).toUpperCase()+t.slice(1):null},trim:function(t){return this.typecheck(t),t.trim()},quote:function(t,e,n){let i=null;this.typecheck(t);const s=!0===e?'"':"'";return!0===n&&(t=c.escape(t)),i=s+t+s,i},sub:function(t,e,n){return this.typecheck(n),I.typecheck(t),n.substring(t,!0===e?void 0:e)},excerpt:function(t,e,n){let i=this.sub(0,t,e);return i!==e&&this.isNotEmpty(n)&&(i+=n),i},explode:function(t,e,n){this.typechecks([t,e]);let i=e.split(t);return!0===n&&(i=P.clean(i)),i},explodeIndex:function(t,e,n){let i;const s=this.explode(e,n);return I.is(t)&&this.isNotEmpty(s[t])&&(i=s[t]),i},removeAllWhitespace:function(t){return this.typecheck(t),t.replace(/\s/g,"")},fromCamelCase:function(t,e){return this.typecheck(t),(e=this.trim(e)).replace(/[\w]([A-Z])/g,(function(e){return e[0]+t+e[1]})).toLowerCase()},toCamelCase:function(t,e){let n=null;const i=this;e=this.trim(e);let s=this.explode(t,e,!0);return s=P.map(s,(function(t,e){return 0==e?i.lower(t):i.upperFirst(t)})),n=s.join(""),n=this.removeAllWhitespace(n),n},slug:function(t){return(t=this.lower(t)).replace(/ /g,"-").replace(/[^\w-]+/g,"").replace(/--/g,"-")},keepNumber:function(t){return this.typecheck(t),t.replace(/[^0-9]/g,"")},replace:function(t,e){return this.typecheck(e),K.each(t,(function(t,n){e=e.replace(n,t)})),e}},L={is:function(t){return"object"!==f.type(t)},are:function(t){const e=this;return!!P.is(t)&&P.each(t,(function(t){return e.is(t)}))},isEmpty:function(t){return!!this.is(t)&&f.isEmpty(t)},isNotEmpty:function(t){return!!this.is(t)&&f.isNotEmpty(t)},typecheck:function(t,e){if((!0===e&&!this.isNotEmpty(t)||!0!==e&&!this.is(t))&&(!1!==e||null!=t))throw new Error(t);return t},typechecks:function(t,e){if(!P.is(t))throw new Error(t);{const n=this;P.each(t,(function(t){n.typecheck(t,e)}))}return t}};const P=u(L,b,q,N,x,j,A,y,m,d),C=u(L,b,q,N,x,y,k,d),F=u(L,{is:function(t){return"boolean"==typeof t},toInt:function(t){let e=null;return this.typecheck(t),!0===t?e=1:!1===t&&(e=0),e},toggle:function(t){let e=null;return this.typecheck(t),!0===t?e=!1:!1===t&&(e=!0),e}}),R=u(L,b,g),I=u(L,v,E),B=u(L,v,w),D=u(L,b,q,N,x,j,A,{keyExists:function(t,e){return!(!this.isKey(t)||!this.is(e))&&t in e}}),K=u(L,b,q,N,x,j,A,T),W=u(L,O),z=u(L,b,q,N,S),H={Type:L,ArrLoop:d},M={},V={},$={d:console.log,assert:s.assertThrow.bind(s),logError:s.logError.bind(s)}}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};!function(){"use strict";n.r(i),n.d(i,{Arr:function(){return t.Arr},ArrLike:function(){return t.ArrLike},Bool:function(){return t.Bool},Component:function(){return t.Component},Datetime:function(){return t.Datetime},Debug:function(){return t.Debug},Env:function(){return t.Env},Factory:function(){return t.Factory},Func:function(){return t.Func},Html:function(){return t.Html},Integer:function(){return t.Integer},Json:function(){return t.Json},Nav:function(){return t.Nav},Num:function(){return t.Num},Obj:function(){return t.Obj},Pojo:function(){return t.Pojo},Scalar:function(){return t.Scalar},Shortcut:function(){return t.Shortcut},Str:function(){return t.Str},Test:function(){return t.Test},TestSuite:function(){return t.TestSuite},Tool:function(){return t.Tool},Validate:function(){return t.Validate},Vari:function(){return t.Vari}});var t=n(575);const{Arr:e,ArrLike:s,Bool:r,Datetime:o,Env:u,Func:c,Html:l,Integer:a,Json:h,Nav:p,Num:f,Obj:y,Pojo:m,Scalar:d,Shortcut:k,Str:g,Test:E,Validate:v,Vari:w}=t,{d:b,assert:q,logError:N}=k;E.Node=function(){let t=!0;try{const t=function(){},i=g.isEmpty.bind(g);q(Object.getPrototypeOf(y)===Object.getPrototypeOf(g)),q(e.is!==y.is),q(y.each===g.each),q(!0),q(!0),q(!0),q(!0),q(!0),q(!(1==[])),q(e.is([])),q(!e.is({})),q(!e.is(arguments)),q(e.in(null,[null])),q(!e.in(null,null)),q(!e.in(!0,[!1])),q(e.isEqual(e.keys([1,2,3]),[0,1,2])),q(1===e.search(2,[1,2,3])),q(e.isEqual(e.slice(1,3,[2,4,6,8,10]),[4,6])),q(e.isEqual(e.slice(1,void 0,[2,4,6,8,10]),[4,6,8,10])),q(e.isEqual(e.slice(null,null,[2,4,6,8,10]),[2,4,6,8,10])),q(e.isEqual(e.sliceStart(2,[2,4,6,8,10]),[6,8,10]));let k=[12,3,40];e.spliceValue(3,k),q(e.isEqual(k,[12,40])),q(e.isEqual(e.spliceValue(40,k,"ok"),[40])),q(e.isEqual(k,[12,"ok"])),q(w.isEqual(e.valueStrip(3,[3,2,3,1,5]),[2,1,5])),q(e.isEmpty([])),q(e.isNotEmpty([null])),q(e.isNotEmpty([1,2,3])),q(!e.isNotEmpty([])),q(!e.isEmpty("")),q(e.isEqual(e.typecheck([]),[])),q(e.isEqual(e.typecheck([1],!0),[1])),q(void 0===e.typecheck(void 0,!1)),q(e.isEqual([],[])),q(!e.isEqual({},{}));let E,b=[3,2,3,1,5];q(3===e.valueFirst(b)),q(5===e.valueLast(b)),q(void 0===e.valueFirst([])),q(e.valueStrip("8",b)!==b),q(0===e.keyFirst(b)),q(4===e.keyLast(b)),q(e.isEqual(e.valueStrip("8",b),b)),q(w.isEqual(e.copy([1,2,3]),[1,2,3]));let N=[1,2,3];q(e.copy(N)!==N),q(e.each([1,2,3],(function(t,e){q(t!==this),E=e}))),q(2===E),q(3===e.length([1,2,3])),q(e.isEqual(e.set(1,"z",["a","b","c"]),["a","z","c"])),q(e.isEqual(N,[1,2,3])),q(e.setRef(2,4,N)===N);let x=[1,2,3];if(q(e.mergeRef(x,"what",[4,5,6],arguments)===x),q(e.isEqual(e.merge([1,2,3],"what",[4,5,6],arguments),x)),q(e.merge(x)!==x),q(e.mergeRef(x)===x),q(8===e.length(x)),q(e.isEqual(N,[1,2,4])),q(7===e.length(e.merge([1,2,3],[4,5,6],arguments))),q(e.some([1,"2",3],(function(t,n,i){return q(e.is(i)),g.is(t)}))),q(!e.some([1,"2",3],(function(t,e,n){return y.is(t)}))),q(!e.every([1,"2",3],(function(t,n,i){return q(e.is(i)),g.is(t)}))),q(e.every([1,2,3],(function(t,e,n){return a.is(t)}))),q(2===e.find([1,2,3],(function(t,n,i){return q(a.is(t)),q(a.is(n)),q(e.is(i)),2===t}))),q(e.isEqual(e.map([1,2,3],(function(t,n,i){return q(e.is(i)),n})),[0,1,2])),q(1===e.filter([1,2,3],(function(t,n,i){return 1===t&&q(0===n),q(e.is(b)),2===t})).length),q("0test1ok2what"===e.reduce("",["test","ok","what"],(function(t,n,i,s){return q(e.is(s)),t+(i+n)}))),q(e.isEqual(e.replace([1,2,2],[4,5],[0]),[0,5,2])),q(e.isEqual(e.clean([null,void 0,0,"0",[],{},!1,!0,"",1]),[0,"0",!1,!0,1])),q(e.timeouts([1,2,3],20,20,(function(t){q(a.is(t))}))),q(e.oddEven([1,2,3],(function(t){q(2!==t)}),(function(t){q(2===t)}))),q(1===e.findKey([3,4,5],(function(t,e,n){return q(null==n),4===t}))),q(9===e.accumulate(0,[2,3,4],(function(t,e,n){return q(null==n),t}))),q("ehokwhat"===e.accumulate("",["eh","ok","what"],(function(t,e){return t}))),q(e.isEqual(e.accumulate([],["eh","ok","what"],(function(t,e){return e+t})),["0eh","1ok","2what"])),q(e.isEqual(e.column("test",[{test:"OK"},{test2:"WELL",test:"OK2"},{test2:"NOP"}]),["OK","OK2"])),q(!s.is([])),q(!s.is({})),q(!s.is((function(){}))),q(s.is(arguments)),q(!s.is(2)),q(!s.is("str")),q(!s.is(null)),q(s.isEmpty(arguments)),q(!s.isNotEmpty(arguments)),q(s.typecheck(arguments)===arguments),q(void 0===s.typecheck(void 0,!1)),q(0===s.length(arguments)),q(s.toArray(N)===N),q(!r.is("true")),q(!r.is((function(){}))),q(!r.is(null)),q(!r.is(1)),q(r.is(!0)),q(r.typecheck(!0)),q(!1===r.typecheck(!1)),q(!0===r.toggle(!1)),q(r.isEmpty(!1)),q(!r.isEmpty(0)),q(r.isNotEmpty(!0)),q(1===r.toInt(!0)),q(0===r.toInt(!1)),q(null===r.typecheck(null,!1)),q(!1===r.typecheck(!1)),q(!0===r.typecheck(!0,!1)),q(f.is(o.now())),q(f.is(o.year())),q(g.length(o.localeFormat("fr-CA"))>=19),q("2010-02-03"===o.ymd(null,2010,2,3)),q("2018-02-21"===o.ymd(1519241542)),q("14:32:22"===o.his(1519241542)),"undefined"==typeof window)q(u.isNode()),q(!u.isBrowser()),q(!u.isWindow("test")),q(!u.isTarget("test"));else{q(!u.isNode()),q(u.isBrowser()),q(u.isWindow(window)),q(u.isTarget(window)),q(u.isTarget(document));const t=document.querySelector("html");q(u.isTarget(t))}q(!c.is("test")),q(c.is(t)),q(0===c.length(t)),c.typecheck(t),c.typecheck(null,!1),c.timeout(null,(function(){q(!0)})),q(c.is(c.debounce(2,(function(){})))),q(c.is(c.throttle(2,(function(){}))));const j=c.debounce(100,(function(t){q(99===t)}));for(var n=0;n<100;n++)j(n);const A=c.throttle(50,(function(t){q(a.is(t))}));for(n=0;n<100;n++){let t=n;c.timeout(t,(function(){A(t)}))}q(l.isSelfClosing("br")),q(!l.isSelfClosing("div")),q("L'arti"cle"===l.escape("L'arti\"cle")),q("<test>ok</test>"===l.escape("<test>ok</test>")),q("<div>james"===l.start("div","james")),q("<img src='james.jpg'/>"===l.start("img",null,{src:"james.jpg"})),q("<img src='bleh.jpg'/>"===l.start("img","bleh.jpg",{src:"james.jpg"})),q("<div class='ok' data-test='ok2'>james"===l.start("div","james",{class:"ok",dataTest:"ok2"})),q("</div>"===l.end("div")),q(""===l.end("input")),q("2"===l.value(2)),q("src='james.jpg'"===l.attr({src:"james.jpg"})),q("src='james.jpg' value='what'"===l.attr({src:"james.jpg"},"input","what")),q("<span id='test'>ok</span>"===l.tag("span","ok",{id:"test"})),q("<input value='ok' name='NOé'/>"===l.tag("input","ok",{value:"test",name:"NOé"})),q(""===l.tagCond("ul",!1,"ok")),q(""==l.tagCond("ul","","ok")),q(""==l.tagCond("ul",null,"ok")),q("<ul class='ok'>0</ul>"===l.tagCond("ul",0,"ok")),q("<ul class='ok'>0</ul>"===l.tagCond("ul","0","ok")),q("<ul class='ok'> </ul>"===l.tagCond("ul",!0,"ok")),q("<div myattr='L'article' myattr2='L"article'>well</div>"===l.div("well",{myattr:"L'article",myattr2:'L"article'})),q("<span>2, OK</span>"===l.span({tag:"2",well:"OK"})),q("<ul>meh</ul>"===l.ul("meh")),q("<li class='test test2'></li>"===l.li(null,{class:["test","test2"]})),q("<span a='' b='1' c='0' e='["1","2"]'></span>"===l.span(null,{a:"",b:!0,c:!1,d:null,e:["1","2"]})),q("<span test='3' data-test='2' data-ok='WHAT' data-james='[1,2]' data-james2='{"ok":"Mé"}'></span>"===l.span(!1,{test:3,data:{test:2,ok:"WHAT",james:[1,2],james2:{ok:"Mé"}}})),q("<button type='button'> </button>"===l.button(!0)),q("<button type='button'>OKÉÉÉ, MEH</button>"===l.button({test:"OKÉÉÉ",ble:"MEH"})),q("<button type='button'>1, 2, 3</button>"===l.button([1,2,3])),q("<input type='email' value='1'/>"===l.input(!0,{type:"email"})),q("<input type='text' value='0'/>"===l.input(!1,{type:"text"})),q("<input type='text' value=''/>"===l.input(null,{type:"text"})),q("<div class='whatEscape'>ok</div>"===l.div("ok","whatEscape")),q("<button type='button' class='james'>ok</button>"===l.button("ok","james")),q(!a.is("2")),q(a.is(2)),q(!a.is(2.2)),q(null===a.cast(!0)),q(2===a.cast("2.3")),q(2===a.cast("2.6")),q(25===a.cast("25px")),q(4===a.cast(4)),q(2===a.cast(2.3)),q(null===a.cast("")),q(!0===a.toBool(1)),q(!1===a.toBool(0)),q(0===a.toggle(1)),q(null===a.toggle(2)),q(a.is(a.unique())),q(a.unique()!=a.unique()),q("40"===a.str(40)),q(a.isEmpty(0)),q(!a.isEmpty("0")),q(!a.isNotEmpty("1")),q(a.isNotEmpty(1)),q(a.isNotEmpty(-1)),q(a.isPositive(2)),q(!a.isPositive(0)),q(a.isPositive(0,!0)),q(!a.isPositive("2")),q(!a.isPositive(-1)),q(a.isNegative(-1)),q(!a.isNegative(0)),q(a.isNegative(0,!0)),q(1===a.typecheck(1)),q(0===a.typecheck(0)),q(null===a.typecheck(null,!1)),q(101===e.length(a.range(0,100,1))),q(100===e.length(a.range(1,100,1))),q(6===e.length(a.range(2,18,3))),q('{"ok":2}'===h.encode({ok:2})),q(m.isEqual(h.decode('{"ok":2}'),{ok:2}));const T={ok:2};q(h.recode(T)!==T),q(m.isEqual(h.recode(T),T)),q(p.isFirst(0,10)),q(!p.isFirst(2,10)),q(p.hasPrev(0,10,!0)),q(!p.hasPrev(0,10)),q(p.hasPrev(2,10)),q(p.hasNext(2,10)),q(p.hasNext(8,10)),q(!p.hasNext(9,10)),q(p.hasNext(9,10,!0)),q(p.isLast(9,10)),q(!p.isLast(10,10)),q(p.isIndex(2,10)),q(!p.isIndex(-2,10)),q(0===p.getFirst(10)),q(0===p.getPrev(1,10)),q(0===p.getNext(9,10,!0)),q(9===p.getLast(10)),q(0===p.getIndex(0,10)),q(null===p.getIndex(20,10)),q(0===p.index("first",2,10)),q(9===p.index("last",2,10)),q(1===p.index("prev",2,10)),q(3===p.index("next",2,10)),q(null===p.index("next",9,10)),q(0===p.index("next",9,10,!0)),q(null===p.index("prev",0,10)),q(9===p.index("prev",0,10,!0)),q(2===p.index(2,0,10,!0)),q(0===p.index(0,0,10,!0)),q(null===p.index(11,0,10,!0)),q(!f.is("what")),q(!f.is("2 px")),q(f.is("2")),q(f.is("2.3")),q(f.is(2)),q(f.is(2.2)),q(!f.isNan(2)),q(1.2===f.cast("1.2")),q(1===f.cast("1,2")),q(1===f.cast(1)),q(1.2===f.cast(1.2)),q(null===f.cast(null)),q(null===f.cast([])),q("2.3"===f.str("2.3")),q(4.3===f.cast("4.3px")),q("4"===f.str(4)),q("2.3"===f.str(2.3)),q(f.isEmpty("0")),q(f.isEmpty(0)),q(!f.isEmpty(!0)),q(f.isNotEmpty("1.1")),q(f.isNotEmpty(1.1)),q(f.isPositive("2.2")),q(!f.isPositive("0")),q(f.isPositive("0",!0)),q(f.isNegative("-2.2")),q("0"===f.typecheck("0")),q(2.1===f.typecheck(2.1,!0)),q(f.isOdd(1)),q(!f.isEven(1)),q(f.isEven(2)),q(f.isOdd(11)),q(!f.isOdd(0)),q(f.isEven(0)),q("2.00"===f.decimal(2)),q("2.03"===f.decimal(2.034)),q("2.034"===f.decimal(2.034,3)),q("2"===f.decimal(2.034,0)),q(4===f.round("4.2")),q(4===f.round(4.2)),q(4===f.round(4)),q(5===f.ceil("4.2")),q(5===f.ceil(4.2)),q(4===f.ceil(4)),q(4===f.floor("4.2")),q(4===f.floor(4.2)),q(4===f.floor(4)),q(y.is({})),q(y.is([])),q(y.is(arguments)),q(y.is((function(){}))),q(!y.is("test")),q(!y.is(null)),q(!y.is(void 0)),q(!y.is(!0)),q(2===y.length({test:2,ok:3})),q(0===y.length({})),q(3===y.length([1,2,3])),q(1===y.length({test:2})),q(y.isEqual([],[])),q(!y.isEqual({},[])),q(!y.isEqual({},{},[])),q(y.isEqual({},{},{})),q(y.isEqual([2],[2],[2])),q(!y.isEqual([2],[2],[1])),q(y.isEqual({test:2},{test:2})),q(!y.isEqual({test:2},{test:3})),q(!y.isEqual("test","test")),q(!y.isEqual("test","testz")),q(!y.isEqual(3,3)),q(!y.isEqual(3,4)),q(!y.isEqual(null,null)),q(!y.isEqual(null,void 0));let O={test:3};q(3===y.get("test",O)),q(y.set("test",4,O)!==O),q(3===y.get("test",O)),q(y.unset("test",O)!==O),q('str=2 what=ok loop=[1,2] meh={"what":2}'===y.str({str:2,what:"ok",loop:[1,2],meh:{what:2}})),q('str!2 what!ok loop![1,2] meh!{"what":2}'===y.str({str:2,what:"ok",loop:[1,2],meh:{what:2}},"!")),q("str='2' what='ok' loop='[1,2]' meh='{"what":2}'"===y.str({str:2,what:"ok",loop:[1,2],meh:{what:2}},"="," ",!0)),q("str='2' what='ok' loop='[1,2]' meh='{"what":2}'"===y.str({str:2,what:"ok",loop:[1,2],meh:{what:2}},"=",!0,!0));let S,L,P,C={test:3};q(y.copy(C)!==C),q(y.isEqual(y.new(),{})),q(2===y.length(y.replace(C,{test2:4}))),q(y.isEmpty({})),q(y.isEmpty([])),q(y.isEmpty((function(){}))),q(!y.isEmpty({ok:2})),q(!y.isEmpty([2])),q(!y.isEmpty(null)),q(!y.isEmpty(!1)),q(!y.isEmpty(void 0)),q(y.isEmpty((function(){return 2}))),q(y.isNotEmpty({ok:2})),q(y.isNotEmpty([2])),q(!y.isNotEmpty(2)),q(!y.isNotEmpty(null)),q(2===y.length({test:2,ok:3})),q(y.each({test:"ok",what:3},(function(t,e){q(t!==this),S=e,L=t}))),q("what"===S),q(3===L),q(!1===y.each({test:"ok",what:3},(function(t,e){return S=e,L=t,!1}))),q("test"===S),q("ok"===L),q(y.each({ok:2},(function(t){P=t}))),q(2===P);q(m.is({})),q(!m.is([])),q(!m.is(arguments)),q(!m.is((function(){}))),q(!m.is("test")),q(!m.is(null)),q(!m.is(void 0));let F={test:2,ok:{what:!0}},R={};q(m.isEqual(m.replaceRecursive({test:2,ok:{what:!0}},null,{ok:{james:!1}}),{test:2,ok:{what:!0,james:!1}})),q(m.isEqual(m.replaceRecursive({test:2},{test:{ok:3}},{test:{ok:{ok:1},ok2:[1,2,3]}}),{test:{ok:{ok:1},ok2:[1,2,3]}})),q("LOL"===m.climb(["test","what"],{test:{what:"LOL"}})),q(void 0===m.climb(["test","whatz"],{test:{what:"LOL"}})),q("LOL"===m.climb("test/what",{test:{what:"LOL"}})),q(m.isEqual(m.replace(F,{ok:{james:!1}}),{test:2,ok:{james:!1}})),q(m.isEqual(F,{test:2,ok:{what:!0}})),q(m.set("meh",2,R)!==R),q(m.isEqual(m.set("meh",2,R),{meh:2})),q(m.setRef("meh",2,R)===R),q(2===m.get("meh",R)),q(m.isEqual(m.gets(["meh","ok","what"],{ok:3,meh:4,whatz:"LOL"}),{meh:4,ok:3,what:void 0})),q(m.isEmpty(m.unsets(["meh"],R))),q(m.unset("meh",R)!==R),q(m.isEqual(m.unset("meh",R),{})),q(m.unsetRef("meh",R)===R),R.meh=2,q(m.unsetsRef(["meh","test"],R)===R),q(m.isEmpty(R)),q(void 0===m.get("meh",R)),q(m.isEqual(m.copy(F),F)),q(m.copy(F)!==F),q(m.isEmpty({})),q(!m.isEmpty([])),q(!m.isNotEmpty({})),q(m.isNotEmpty({test:2})),q(!m.isEqual([],[])),q(m.isEqual({ok:2},{ok:2})),q(!m.isEqual({ok:2},{ok:3})),q(m.isKey(2)),q(m.keyExists("test",{test:2})),q(!m.keyExists("test",{testz:2})),q(2===m.valueFirst(F)),q(m.valueLast(F)===F.ok),q(void 0===m.get("what",R));let I={test:3,ok:"what",james:{lol:!0},final:null,undef:void 0};q(4===m.length(m.filter(I,(function(t){return!m.is(t)})))),q(5===m.length(I)),q(!0===m.map(I,(function(t){return!m.is(t)})).final),q(m.isEqual(m.find(I,(function(t,e){return m.is(t)})),{lol:!0})),q(5===e.length(m.toArray(I))),q("test"===m.findKey({james:3,test:"4"},(function(t,e){return g.is(t)}))),q(m.isEqual(m.accumulate({},{james:3,test:"4"},(function(t,e){return e})),{james:"james",test:"test"})),q(!m.some({james:3,james2:"ok"},(function(t){return e.is(t)}))),q(m.some({james:3,james2:"ok"},(function(t){return g.is(t)}))),q(!m.every({james:3,james2:"ok"},(function(t){return g.is(t)}))),q(m.every({james:3,james2:4},(function(t,e){return a.is(t)&&g.is(e)}))),q("testjamesOKok"===m.reduce("",{james:"test",ok:"OK"},(function(t,e,n){return t+(e+n)}))),q(d.is("test")),q(d.is(2)),q(d.is(!0)),q(d.is(!1)),q(!d.is(null)),q(d.isNotBool(1)),q(!d.isNotBool(!1)),q(!d.isEmpty(1)),q(d.isEmpty(!1)),q(d.isNotEmpty(1)),q(!d.isNotEmpty(!1)),q(""===d.typecheck("")),q(!0===d.typecheck(!0,!0)),q(!1===d.typecheck(!1)),q(null===d.typecheck(null,!1)),q(2===d.cast("2.4","int")),q(!0===d.cast("1","bool")),q(2.4===d.cast("2.4","num")),q(5===d.cast("5d","int")),q(null===d.cast("5d","bool")),q(!0===d.toBool(1)),q(!0===d.toBool("true")),q(!1===d.toBool(0)),q(!1===d.toBool(!1)),q(g.is("WHAT")),q(g.is("")),q(!g.is([])),q(!g.is(null)),q(g.are(["test","ok"])),q(3===e.length(g.typechecks(["test","ok",null],!1))),q(g.isStart("a","as")),q(!g.isStart(3,"3s")),q(g.isEnd("s","as")),q(!g.isEnd("a","as")),q(g.isEqual("test","test")),q(g.isEqual("2",2)),q(g.isEqual(!0,"true")),q(g.isEqual(void 0,"")),q(g.isEqual(void 0,null)),q(!0===g.in("a","as")),q(!1===g.in("é","aÉè")),q(g.icompare("E","e")),q(g.icompare("e","e")),q(g.icompare("éÈ","Éè")),q(!g.icompare("2",2)),q("2"===g.cast(2)),q("false"===g.cast(!1)),q("true"===g.cast(!0)),q(""===g.cast(null)),q(""===g.cast(void 0)),q(0===g.pos("a","as")),q(1===g.pos("é","aéè")),q(null===g.pos("é","aÉè")),q("ae"===g.lower("AE")),q("as"===g.lowerFirst("as")),q("as"===g.lowerFirst("As")),q("és"===g.lowerFirst("És")),q("AE"===g.upper("ae")),q("As"===g.upperFirst("as")),q("As"===g.upperFirst("As")),q("As"===g.trim(" As ")),q('"what"'===g.quote("what",!0)),q("'what'"===g.quote("what")),q("'L'article"de'"===g.quote("L'article\"de",!1,!0)),q("at"===g.sub(2,!0,"what")),q("à"===g.sub(2,!0,"éèà")),q("okk..."===g.excerpt(3,"okkkkk","...")),q("okkkkk"===g.excerpt(12,"okkkkk","...")),q(y.isEqual(g.explode("-","la-vie-ok"),["la","vie","ok"])),q("ok"===g.explodeIndex(2,"-","la-vie-ok")),q(void 0===g.explodeIndex("2","-","la-vie-ok")),q(void 0===g.explodeIndex(3,"-","la-vie-ok")),q(!g.isEmpty("WHAT")),q(g.isEmpty("")),q(!g.isEmpty("as")),q(i("")),q(!g.isNotEmpty("")),q(g.isNotEmpty("as")),q("ok"===g.typecheck("ok")),q(""===g.typecheck("")),q(null===g.typecheck(null,!1)),q(void 0===g.typecheck(void 0,!1)),q(""===g.typecheck("",!1));let B=null;q(g.each("abcde",(function(t){q(t!==this),B=t}))),q(e.isEqual(g.keys("whaé"),["0","1","2","3"])),q(e.isEqual(g.values("whaé"),["w","h","a","é"])),q(4===g.length("whaé")),q("e"===B),q(!1===g.each("abcde",(function(t){return B=t,"c"!==t}))),q("c"===B);let D="wéè";q("é"===g.get(1,D)),q("é"===g.valueFirst("éèè")),q("o"===g.find("john",(function(t){return"j"!=t}))),q(4===e.length(g.toArray("what"))),q("adsdassda"===g.removeAllWhitespace(" ads das sda ")),q("data"===g.fromCamelCase("-","data")),q("margin-top-right"===g.fromCamelCase("-","marginTopRight")),q("margin|top|right"===g.fromCamelCase("|","marginTopRight")),q("marginTopRight"===g.toCamelCase("-","margin-top-right")),q("marginTopRight"===g.toCamelCase(" "," margin top right ")),q("margintopright"===g.toCamelCase("_"," margin top right ")),q("marginTopRight"===g.toCamelCase("-","-margin--top--right-")),q(g.every("aaaa",(function(t,e){return"a"===t&&f.is(e)}))),q("a0a1a2a3"===g.reduce("","aaaa",(function(t,e,n){return t+(e+n)}))),q(30===g.toNum("30MB")),q(1===g.toNum("1,4")),q(1.4===g.toNum("1.4")),q(1===g.toInt("1,4")),q("ok-la-vie-est-bonne"===g.slug("OK LA VIE EST BONNE")),q("ok-la-vie-est-bonne"===g.slug("OK-LAé À@#?& VIE EST BONNE")),q("515509150212345"===g.keepNumber("(515) 509-1502 #poste 12345")),q("tout va OK well WHAT!"===g.replace({"[test]":"OK",what:"well"},"tout va [test] what WHAT!")),q(v.isNumericDash("213-123")),q(v.isNumericDash("213123")),q(!v.isNumericDash("213_123")),q(v.isEmail("test@test.com")),q(!v.isEmail("testtest.com")),q(v.isEmail("bla@bla.zzzzzzz")),q(v.isRegexStr("bla")),q(v.isRegexStr(new RegExp("/asd/"))),q(v.regex("212","^[0-9-]+$")),q(!v.trigger("test",!0,"^[0-9-]+$")),q(!v.trigger("abc-de",!0,"^[0-9-]+$")),q(!v.trigger("",1,"^[0-9-]+$")),q(v.trigger("",!1,"^[0-9-]+$")),q(v.required("test",!0)),q(!v.required("",!0)),q(v.required("test",1)),q(v.required("test",0)),q(!v.required("",1)),q(v.required("",0)),q(v.pattern("","^[0-9-]+$")),q(v.pattern("01-2","^[0-9-]+$")),q(!v.pattern("abc","^[0-9-]+$")),q(w.is(null)),q(!w.is(void 0)),q(w.isEmpty(null)),q(w.isEmpty({})),q(w.isEmpty(!1)),q(!w.isEmpty(!0)),q(w.isEmpty("")),q(w.isEmpty([])),q(!w.isEmpty("0")),q(w.isEmpty(0)),q(!w.isEmpty(1)),q(w.isEmpty(void 0)),q(w.isNotEmpty(2)),q(!w.isNotEmpty(null)),q(!w.isReallyEmpty(0)),q(w.isNotReallyEmpty(0)),q(w.isNull(null)),q(!w.isNull(void 0)),q(!w.isUndefined(null)),q(w.isUndefined(void 0)),q(w.isEqual("test","test")),q(!w.isEqual("test","testz")),q(w.isEqual(3,3)),q(!w.isEqual(3,4)),q(w.isEqual(null,null)),q(!w.isEqual(null,void 0)),q(w.isEqualStrict(null,null)),q(w.isEqualStrict("test","test")),q(!w.isEqualStrict([],[])),q("string"===w.type("test")),q("object"===w.type({})),q("object"===w.type([])),q("object"===w.type((function(){}))),q("number"===w.type(2)),q("number"===w.type(2.3)),q("null"===w.type(null)),q("boolean"===w.type(!0)),q("undefined"===w.type(void 0))}catch(e){t=!1,N(e)}return t}}(),window.Quid=i}();