工具库licia(一)

licia工具库的代码文件

licia是一款很全的常用工具库,github地址licia
由于直接下载licia源码,相关依赖一直没安装好,所以没有打包成功。直接用npm i licia安装,发现下载下来的是es6的源代码,于是笔者使用rollup打包,licia-rollup
目前使用的licia版本是1.34.0。
相对应的使用文档也是1.34.0,licia使用文档
下面贴出es模块形式源码一份,便于复制使用

1
var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(fn,module){return fn(module={exports:{}},module.exports),module.exports}var isUndef=createCommonjsModule(function(module,exports){module.exports=function(val){return void 0===val}}),objToStr=createCommonjsModule(function(module,exports){var ObjToStr=Object.prototype.toString;module.exports=function(val){return ObjToStr.call(val)}}),isNum=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object Number]"===objToStr(val)}}),isFn=createCommonjsModule(function(module,exports){module.exports=function(val){val=objToStr(val);return"[object Function]"===val||"[object GeneratorFunction]"===val||"[object AsyncFunction]"===val}}),isArrLike=createCommonjsModule(function(module,exports){var MAX_ARR_IDX=Math.pow(2,53)-1;module.exports=function(val){if(!val)return!1;var len=val.length;return isNum(len)&&0<=len&&len<=MAX_ARR_IDX&&!isFn(val)}}),has=createCommonjsModule(function(module,exports){var hasOwnProp=Object.prototype.hasOwnProperty;module.exports=function(obj,key){return hasOwnProp.call(obj,key)}}),keys=createCommonjsModule(function(module,exports){exports=Object.keys||function(obj){var key,ret=[];for(key in obj)has(obj,key)&&ret.push(key);return ret},module.exports=exports}),optimizeCb=createCommonjsModule(function(module,exports){module.exports=function(fn,ctx,argCount){if(isUndef(ctx))return fn;switch(null==argCount?3:argCount){case 1:return function(val){return fn.call(ctx,val)};case 3:return function(val,idx,collection){return fn.call(ctx,val,idx,collection)};case 4:return function(accumulator,val,idx,collection){return fn.call(ctx,accumulator,val,idx,collection)}}return function(){return fn.apply(ctx,arguments)}}}),each=createCommonjsModule(function(module,exports){module.exports=function(obj,iterator,ctx){if(iterator=optimizeCb(iterator,ctx),isArrLike(obj))for(i=0,len=obj.length;i<len;i++)iterator(obj[i],i,obj);else for(var _keys=keys(obj),i=0,len=_keys.length;i<len;i++)iterator(obj[_keys[i]],_keys[i],obj);return obj}}),createAssigner=createCommonjsModule(function(module,exports){module.exports=function(keysFn,defaults){return function(obj){return each(arguments,function(src,idx){0!==idx&&(idx=keysFn(src),each(idx,function(key){defaults&&!isUndef(obj[key])||(obj[key]=src[key])}))}),obj}}}),isObj=createCommonjsModule(function(module,exports){module.exports=function(val){var type=typeof val;return!!val&&("function"==type||"object"==type)}}),getProto=createCommonjsModule(function(module,exports){var getPrototypeOf=Object.getPrototypeOf,ObjectCtr={}.constructor;module.exports=function(obj){if(isObj(obj)){if(getPrototypeOf)return getPrototypeOf(obj);var proto=obj.__proto__;return proto||null===proto?proto:isFn(obj.constructor)?obj.constructor.prototype:obj instanceof ObjectCtr?ObjectCtr.prototype:void 0}}}),isArr=createCommonjsModule(function(module,exports){exports=Array.isArray||function(val){return"[object Array]"===objToStr(val)},module.exports=exports}),extendOwn=createCommonjsModule(function(module,exports){exports=createAssigner(keys),module.exports=exports}),isMatch=createCommonjsModule(function(module,exports){module.exports=function(obj,src){var _keys=keys(src),len=_keys.length;if(null==obj)return!len;obj=Object(obj);for(var i=0;i<len;i++){var key=_keys[i];if(src[key]!==obj[key]||!(key in obj))return!1}return!0}}),matcher=createCommonjsModule(function(module,exports){module.exports=function(attrs){return attrs=extendOwn({},attrs),function(obj){return isMatch(obj,attrs)}}}),identity=createCommonjsModule(function(module,exports){module.exports=function(val){return val}}),castPath=createCommonjsModule(function(module,exports){var regPropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,regEscapeChar=/\\(\\)?/g;module.exports=function(str,obj){if(isArr(str))return str;if(obj&&has(obj,str))return[str];var ret=[];return str.replace(regPropName,function(match,number,quote,str){ret.push(quote?str.replace(regEscapeChar,"$1"):number||match)}),ret}}),safeGet=createCommonjsModule(function(module,exports){module.exports=function(obj,path){for(var prop=(path=castPath(path,obj)).shift();!isUndef(prop);){if(null==(obj=obj[prop]))return;prop=path.shift()}return obj}}),property=createCommonjsModule(function(module,exports){module.exports=function(path){return isArr(path)?function(obj){return safeGet(obj,path)}:(key=path,function(obj){return null==obj?void 0:obj[key]});var key}}),safeCb=createCommonjsModule(function(module,exports){module.exports=function(val,ctx,argCount){return null==val?identity:isFn(val)?optimizeCb(val,ctx,argCount):(isObj(val)&&!isArr(val)?matcher:property)(val)}}),filter=createCommonjsModule(function(module,exports){module.exports=function(obj,predicate,ctx){var ret=[];return predicate=safeCb(predicate,ctx),each(obj,function(val,idx,list){predicate(val,idx,list)&&ret.push(val)}),ret}}),unique=createCommonjsModule(function(module,exports){function isEqual(a,b){return a===b}module.exports=function(arr,cmp){return cmp=cmp||isEqual,filter(arr,function(item,idx,arr){for(var len=arr.length;++idx<len;)if(cmp(item,arr[idx]))return!1;return!0})}}),allKeys=createCommonjsModule(function(module,exports){var getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols;module.exports=function(obj){var _ref=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},_ref$prototype=_ref.prototype,prototype=void 0===_ref$prototype||_ref$prototype,_ref$prototype=_ref.unenumerable,_ref$prototype=void 0!==_ref$prototype&&_ref$prototype,_ref=_ref.symbol,symbol=void 0!==_ref&&_ref,ret=[];if((_ref$prototype||symbol)&&getOwnPropertyNames){var getKeys=keys;for(_ref$prototype&&getOwnPropertyNames&&(getKeys=getOwnPropertyNames);ret=ret.concat(getKeys(obj)),symbol&&getOwnPropertySymbols&&(ret=ret.concat(getOwnPropertySymbols(obj))),prototype&&(obj=getProto(obj))&&obj!==Object.prototype;);ret=unique(ret)}else if(prototype)for(var key in obj)ret.push(key);else ret=keys(obj);return ret}}),extend=createCommonjsModule(function(module,exports){exports=createAssigner(allKeys),module.exports=exports}),map=createCommonjsModule(function(module,exports){module.exports=function(obj,iterator,ctx){iterator=safeCb(iterator,ctx);for(var _keys=!isArrLike(obj)&&keys(obj),len=(_keys||obj).length,results=Array(len),i=0;i<len;i++){var curKey=_keys?_keys[i]:i;results[i]=iterator(obj[curKey],curKey,obj)}return results}}),isStr=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object String]"===objToStr(val)}}),toArr=createCommonjsModule(function(module,exports){module.exports=function(val){return val?isArr(val)?val:isArrLike(val)&&!isStr(val)?map(val):[val]:[]}}),create=createCommonjsModule(function(module,exports){var objCreate=Object.create;module.exports=function(proto){return isObj(proto)?objCreate?objCreate(proto):(noop.prototype=proto,new noop):{};function noop(){}}}),inherits=createCommonjsModule(function(module,exports){module.exports=function(Class,SuperClass){Class.prototype=create(SuperClass.prototype)}}),isMiniProgram=createCommonjsModule(function(module,exports){exports="undefined"!=typeof wx&&isFn(wx.openLocation),module.exports=exports}),Class=createCommonjsModule(function(module,exports){var Base=(exports=function(methods,statics){return Base.extend(methods,statics)}).Base=function makeClass(parent,methods,statics){statics=statics||{};var className=methods.className||safeGet(methods,"initialize.name")||"",ctor=(delete methods.className,function(){var args=toArr(arguments);return this.initialize&&this.initialize.apply(this,args)||this});if(!isMiniProgram)try{ctor=new Function("toArr","return function "+className+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(toArr)}catch(e){}return inherits(ctor,parent),(ctor.prototype.constructor=ctor).extend=function(methods,statics){return makeClass(ctor,methods,statics)},ctor.inherits=function(Class){inherits(ctor,Class)},ctor.methods=function(methods){return extend(ctor.prototype,methods),ctor},ctor.statics=function(statics){return extend(ctor,statics),ctor},ctor.methods(methods).statics(statics),ctor}(Object,{className:"Base",callSuper:function(parent,name,args){return parent.prototype[name].apply(this,args)},toString:function(){return this.constructor.name}});module.exports=exports}),Class_1=Class.Base,restArgs=createCommonjsModule(function(module,exports){module.exports=function(fn,startIdx){return startIdx=null==startIdx?fn.length-1:+startIdx,function(){for(var len=Math.max(arguments.length-startIdx,0),rest=new Array(len),i=0;i<len;i++)rest[i]=arguments[i+startIdx];switch(startIdx){case 0:return fn.call(this,rest);case 1:return fn.call(this,arguments[0],rest);case 2:return fn.call(this,arguments[0],arguments[1],rest)}var args=new Array(startIdx+1);for(i=0;i<startIdx;i++)args[i]=arguments[i];return args[startIdx]=rest,fn.apply(this,args)}}}),mergeArr=createCommonjsModule(function(module,exports){exports=restArgs(function(first,arrays){for(var end=first.length,i=0,len=arrays.length;i<len;i++)for(var arr=arrays[i],j=0,_len=arr.length;j<_len;j++)first[end++]=arr[j];return first.length=end,first}),module.exports=exports}),Select=createCommonjsModule(function(module,exports){var rootSelect=new(exports=Class({className:"Select",initialize:function(selector){return this.length=0,selector?isStr(selector)?rootSelect.find(selector):void(selector.nodeType&&(this[0]=selector,this.length=1)):this},find:function(selector){var ret=new exports;return this.each(function(){mergeArr(ret,this.querySelectorAll(selector))}),ret},each:function(fn){return each(this,function(element,idx){fn.call(element,idx,element)}),this}}))(document);module.exports=exports}),$safeEls=createCommonjsModule(function(module,exports){module.exports=function(val){return toArr(isStr(val)?new Select(val):val)}}),$offset=createCommonjsModule(function(module,exports){module.exports=function(els){els=(els=$safeEls(els))[0].getBoundingClientRect();return{left:els.left+window.pageXOffset,top:els.top+window.pageYOffset,width:Math.round(els.width),height:Math.round(els.height)}}}),$show=createCommonjsModule(function(module,exports){var elDisplay={};module.exports=function(els){els=$safeEls(els),each(els,function(el){!function(el){return"none"==getComputedStyle(el,"").getPropertyValue("display")}(el)||(el.style.display=function(elName){var el,display;elDisplay[elName]||(el=document.createElement(elName),document.documentElement.appendChild(el),display=getComputedStyle(el,"").getPropertyValue("display"),el.parentNode.removeChild(el),"none"==display&&(display="block"),elDisplay[elName]=display);return elDisplay[elName]}(el.nodeName))})}}),splitCase=createCommonjsModule(function(module,exports){var regUpperCase=/([A-Z])/g,regSeparator=/[_.\- ]+/g,regTrim=/(^-)|(-$)/g;module.exports=function(str){return(str=str.replace(regUpperCase,"-$1").toLowerCase().replace(regSeparator,"-").replace(regTrim,"")).split("-")}}),kebabCase=createCommonjsModule(function(module,exports){module.exports=function(str){return splitCase(str).join("-")}}),idxOf=createCommonjsModule(function(module,exports){module.exports=function(arr,val,fromIdx){return Array.prototype.indexOf.call(arr,val,fromIdx)}}),values=createCommonjsModule(function(module,exports){module.exports=function(obj){var ret=[];return each(obj,function(val){ret.push(val)}),ret}}),contain=createCommonjsModule(function(module,exports){module.exports=function(arr,val){return isStr(arr)?-1<arr.indexOf(val):(isArrLike(arr)||(arr=values(arr)),0<=idxOf(arr,val))}}),memoize=createCommonjsModule(function(module,exports){module.exports=function(fn,hashFn){function memoize(key){var cache=memoize.cache,address=""+(hashFn?hashFn.apply(this,arguments):key);return has(cache,address)||(cache[address]=fn.apply(this,arguments)),cache[address]}return memoize.cache={},memoize}}),camelCase=createCommonjsModule(function(module,exports){function capitalize(val,idx){this[idx]=val.replace(/\w/,function(match){return match.toUpperCase()})}module.exports=function(str){var str=splitCase(str),ret=str[0];return str.shift(),str.forEach(capitalize,str),ret+=str.join("")}}),upperFirst=createCommonjsModule(function(module,exports){module.exports=function(str){return str.length<1?str:str[0].toUpperCase()+str.slice(1)}}),prefix=createCommonjsModule(function(module,exports){(exports=memoize(function(name){if(name=name.replace(regPrefixes,""),name=camelCase(name),has(style,name))return name;for(var i=prefixes.length;i--;){var prefixName=prefixes[i]+upperFirst(name);if(has(style,prefixName))return prefixName}return name})).dash=memoize(function(name){name=exports(name);return(regPrefixes.test(name)?"-":"")+kebabCase(name)});var prefixes=["O","ms","Moz","Webkit"],regPrefixes=/^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g,style=document.createElement("p").style;module.exports=exports}),prefix_1=prefix.dash,$css=createCommonjsModule(function(module,exports){var cssNumProps=["column-count","columns","font-weight","line-weight","opacity","z-index","zoom"];module.exports=function(nodes,name,val){if(nodes=$safeEls(nodes),isUndef(val)&&isStr(name))return function(node,name){return node.style[prefix(name)]||getComputedStyle(node,"").getPropertyValue(name)}(nodes[0],name);var css=name;isObj(css)||((css={})[name]=val),function(nodes,css){each(nodes,function(node){var cssText=";";each(css,function(val,key){key=prefix.dash(key),cssText+=key+":"+function(key,val){return isNum(val)&&!contain(cssNumProps,kebabCase(key))?val+"px":val}(key,val)+";"}),node.style.cssText+=cssText})}(nodes,css)}}),$attr=createCommonjsModule(function(module,exports){(exports=function(els,name,val){if(els=$safeEls(els),isUndef(val)&&isStr(name))return function(el,name){return el.getAttribute(name)}(els[0],name);var attrs=name;isObj(attrs)||((attrs={})[name]=val),function(els,attrs){each(els,function(el){each(attrs,function(val,name){el.setAttribute(name,val)})})}(els,attrs)}).remove=function(els,names){els=$safeEls(els),names=toArr(names),each(els,function(node){each(names,function(name){node.removeAttribute(name)})})},module.exports=exports}),$attr_1=$attr.remove,$property=createCommonjsModule(function(module,exports){function propFactory(name){return function(nodes,val){var node=(nodes=$safeEls(nodes))[0];if(isUndef(val))return node?node[name]:"";node&&each(nodes,function(node){node[name]=val})}}exports={html:propFactory("innerHTML"),text:propFactory("textContent"),val:propFactory("value")},module.exports=exports}),last=createCommonjsModule(function(module,exports){module.exports=function(arr){var len=arr?arr.length:0;if(len)return arr[len-1]}}),$remove=createCommonjsModule(function(module,exports){module.exports=function(els){els=$safeEls(els),each(els,function(el){var parent=el.parentNode;parent&&parent.removeChild(el)})}}),$data=createCommonjsModule(function(module,exports){module.exports=function(nodes,name,val){var dataName=name;return isStr(name)&&(dataName="data-"+name),isObj(name)&&(dataName={},each(name,function(val,key){dataName["data-"+key]=val})),$attr(nodes,dataName,val)}}),delegate=createCommonjsModule(function(module,exports){function retTrue(){return!0}function retFalse(){return!1}function trigger(e){for(var handler,j,matched,handlers=this.events[e.type],handlerQueue=function(e,handlers){var selector,matches,handler,i,current=e.target,ret=[],delegateCount=handlers.delegateCount;if(current.nodeType)for(;current!==this;current=current.parentNode||this){for(matches=[],i=0;i<delegateCount;i++)handler=handlers[i],selector=handler.selector+" ",void 0===matches[selector]&&(matches[selector]=contain(this.querySelectorAll(selector),current)),matches[selector]&&matches.push(handler);matches.length&&ret.push({el:current,handlers:matches})}delegateCount<handlers.length&&ret.push({el:this,handlers:handlers.slice(delegateCount)});return ret}.call(this,e,handlers),i=(e=new exports.Event(e),0);(matched=handlerQueue[i++])&&!e.isPropagationStopped();)for(e.curTarget=matched.el,j=0;(handler=matched.handlers[j++])&&!e.isImmediatePropagationStopped();)!1===handler.handler.apply(matched.el,[e])&&(e.preventDefault(),e.stopPropagation())}exports={add:function(el,type,selector,fn){var handlers,fn={selector:selector,handler:fn};el.events||(el.events={}),(handlers=el.events[type])||((handlers=el.events[type]=[]).delegateCount=0,el.addEventListener(type,function(){trigger.apply(el,arguments)},!1)),selector?handlers.splice(handlers.delegateCount++,0,fn):handlers.push(fn)},remove:function(el,type,selector,fn){el=el.events;if(el&&el[type])for(var handler,handlers=el[type],i=handlers.length;i--;)handler=handlers[i],selector&&handler.selector!=selector||handler.handler!=fn||(handlers.splice(i,1),handler.selector&&handlers.delegateCount--)},Event:Class({className:"Event",initialize:function(e){this.origEvent=e},isDefaultPrevented:retFalse,isPropagationStopped:retFalse,isImmediatePropagationStopped:retFalse,preventDefault:function(){var e=this.origEvent;this.isDefaultPrevented=retTrue,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.origEvent;this.isPropagationStopped=retTrue,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.origEvent;this.isImmediatePropagationStopped=retTrue,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}})},module.exports=exports}),$event=createCommonjsModule(function(module,exports){function eventFactory(type){return function(nodes,event,selector,handler){nodes=$safeEls(nodes),isUndef(handler)&&(handler=selector,selector=void 0),each(nodes,function(node){delegate[type](node,event,selector,handler)})}}exports={on:eventFactory("add"),off:eventFactory("remove")},module.exports=exports}),some=createCommonjsModule(function(module,exports){module.exports=function(obj,predicate,ctx){predicate=safeCb(predicate,ctx);for(var _keys=!isArrLike(obj)&&keys(obj),len=(_keys||obj).length,i=0;i<len;i++){var key=_keys?_keys[i]:i;if(predicate(obj[key],key,obj))return!0}return!1}}),$class=createCommonjsModule(function(module,exports){function safeName(name){return isStr(name)?name.split(/\s+/):toArr(name)}exports={add:function(els,name){els=$safeEls(els);var names=safeName(name);each(els,function(el){var classList=[];each(names,function(name){exports.has(el,name)||classList.push(name)}),0!==classList.length&&(el.className+=(el.className?" ":"")+classList.join(" "))})},has:function(els,name){els=$safeEls(els);var regName=new RegExp("(^|\\s)"+name+"(\\s|$)");return some(els,function(el){return regName.test(el.className)})},toggle:function(els,name){els=$safeEls(els),each(els,function(el){if(!exports.has(el,name))return exports.add(el,name);exports.remove(el,name)})},remove:function(els,name){els=$safeEls(els);var names=safeName(name);each(els,function(el){each(names,function(name){el.classList.remove(name)})})}},module.exports=exports}),$insert=createCommonjsModule(function(module,exports){function insertFactory(type){return function(nodes,val){nodes=$safeEls(nodes),each(nodes,function(node){if(isStr(val))node.insertAdjacentHTML(type,val);else{var parentNode=node.parentNode;switch(type){case"beforebegin":parentNode&&parentNode.insertBefore(val,node);break;case"afterend":parentNode&&parentNode.insertBefore(val,node.nextSibling);break;case"beforeend":node.appendChild(val);break;case"afterbegin":node.prepend(val)}}})}}exports={before:insertFactory("beforebegin"),after:insertFactory("afterend"),append:insertFactory("beforeend"),prepend:insertFactory("afterbegin")},module.exports=exports}),$=createCommonjsModule(function(module,exports){exports=function(selector){return new Select(selector)},Select.methods({offset:function(){return $offset(this)},hide:function(){return this.css("display","none")},show:function(){return $show(this),this},first:function(){return exports(this[0])},last:function(){return exports(last(this))},get:function(idx){return this[idx]},eq:function(idx){return exports(this[idx])},on:function(event,selector,handler){return $event.on(this,event,selector,handler),this},off:function(event,selector,handler){return $event.off(this,event,selector,handler),this},html:function(val){var result=$property.html(this,val);return isUndef(val)?result:this},text:function(val){var result=$property.text(this,val);return isUndef(val)?result:this},val:function(val){var result=$property.val(this,val);return isUndef(val)?result:this},css:function(name,val){var result=$css(this,name,val);return isGetter(name,val)?result:this},attr:function(name,val){var result=$attr(this,name,val);return isGetter(name,val)?result:this},data:function(name,val){var result=$data(this,name,val);return isGetter(name,val)?result:this},rmAttr:function(name){return $attr.remove(this,name),this},remove:function(){return $remove(this),this},addClass:function(name){return $class.add(this,name),this},rmClass:function(name){return $class.remove(this,name),this},toggleClass:function(name){return $class.toggle(this,name),this},hasClass:function(name){return $class.has(this,name)},parent:function(){return exports(this[0].parentNode)},append:function(val){return $insert.append(this,val),this},prepend:function(val){return $insert.prepend(this,val),this},before:function(val){return $insert.before(this,val),this},after:function(val){return $insert.after(this,val),this}});var isGetter=function(name,val){return isUndef(val)&&isStr(name)};module.exports=exports}),defaults=createCommonjsModule(function(module,exports){exports=createAssigner(allKeys,!0),module.exports=exports}),slice=createCommonjsModule(function(module,exports){module.exports=function(arr,start,end){for(var len=arr.length,ret=(start=null==start?0:start<0?Math.max(len+start,0):Math.min(start,len),end=null==end?len:end<0?Math.max(len+end,0):Math.min(end,len),[]);start<end;)ret.push(arr[start++]);return ret}}),partial=createCommonjsModule(function(module,exports){exports=restArgs(function(fn,partials){return function(){var args=[];return args=(args=args.concat(partials)).concat(toArr(arguments)),fn.apply(this,args)}}),module.exports=exports}),before=createCommonjsModule(function(module,exports){module.exports=function(n,fn){var memo;return function(){return 0<--n&&(memo=fn.apply(this,arguments)),n<=1&&(fn=null),memo}}}),once=createCommonjsModule(function(module,exports){exports=partial(before,2),module.exports=exports}),clone=createCommonjsModule(function(module,exports){module.exports=function(obj){return isObj(obj)?isArr(obj)?obj.slice():extend({},obj):obj}}),Emitter=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this._events=this._events||{}},on:function(event,listener){return this._events[event]=this._events[event]||[],this._events[event].push(listener),this},off:function(event,listener){var events=this._events;if(has(events,event))return listener=events[event].indexOf(listener),-1<listener&&events[event].splice(listener,1),this},once:function(event,listener){return this.on(event,once(listener)),this},emit:function(event){var args,events,_this=this;if(has(this._events,event))return args=slice(arguments,1),events=clone(this._events[event]),each(events,function(val){return val.apply(_this,args)},this),this},removeAllListeners:function(event){return event?delete this._events[event]:this._events={},this}},{mixin:function(obj){each(["on","off","once","emit","removeAllListeners"],function(val){obj[val]=exports.prototype[val]}),obj._events=obj._events||{}}}),module.exports=exports}),State=createCommonjsModule(function(module,exports){exports=Emitter.extend({className:"State",initialize:function(initial,events){this.callSuper(Emitter,"initialize"),this.current=initial;var self=this;each(events,function(event,key){self[key]=function(name,event){var from=toArr(event.from),to=event.to;return function(){var args=toArr(arguments);args.unshift(name),some(from,function(val){return this.current===val},this)?(this.current=to,this.emit.apply(this,args)):this.emit("error",new Error(this.current+" => "+to+" error"),name)}}(key,event)})},is:function(state){return this.current===state}}),module.exports=exports}),bind=createCommonjsModule(function(module,exports){exports=restArgs(function(fn,ctx,args){return restArgs(function(callArgs){return fn.apply(ctx,args.concat(callArgs))})}),module.exports=exports}),nextTick=createCommonjsModule(function(module,exports){function ensureCallable(fn){if("function"!=typeof fn)throw new TypeError(fn+" is not a function");return fn}exports="object"==typeof process&&process.nextTick?process.nextTick:"function"==typeof setImmediate?function(cb){setImmediate(ensureCallable(cb))}:function(cb){setTimeout(ensureCallable(cb),0)},module.exports=exports}),noop=createCommonjsModule(function(module,exports){module.exports=function(){}}),_Promise=createCommonjsModule(function(module,exports){var Promise=exports=Class({initialize:function(fn){if(!isObj(this))throw new TypeError("Promises must be constructed via new");if(!isFn(fn))throw new TypeError(fn+" is not a function");var self=this;function assignVal(val){self._value=val}this._state=new State("pending",{fulfill:{from:"pending",to:"fulfilled"},reject:{from:"pending",to:"rejected"},adopt:{from:"pending",to:"adopted"}}).on("fulfill",assignVal).on("reject",assignVal).on("adopt",assignVal),this._handled=!1,this._value=void 0,this._deferreds=[],doResolve(fn,this)},catch:function(onRejected){return this.then(null,onRejected)},then:function(onFulfilled,onRejected){var promise=new Promise(noop);return handle(this,new Handler(onFulfilled,onRejected,promise)),promise}},{all:function(arr){var args=toArr(arr);return new Promise(function(resolve,reject){if(0===args.length)return resolve([]);var remaining=args.length;for(var i=0;i<args.length;i++)!function res(i,val){try{if(val&&(isObj(val)||isFn(val))){var then=val.then;if(isFn(then))return void then.call(val,function(val){res(i,val)},reject)}args[i]=val,0==--remaining&&resolve(args)}catch(e){reject(e)}}(i,args[i])})},resolve:function(val){return val&&isObj(val)&&val.constructor===Promise?val:new Promise(function(resolve){resolve(val)})},reject:function(val){return new Promise(function(resolve,reject){reject(val)})},race:function(values){return new Promise(function(resolve,reject){for(var i=0,len=values.length;i<len;i++)values[i].then(resolve,reject)})}}),Handler=Class({initialize:function(onFulfilled,onRejected,promise){this.onFulfilled=isFn(onFulfilled)?onFulfilled:null,this.onRejected=isFn(onRejected)?onRejected:null,this.promise=promise}});function reject(self,err){self._state.reject(err),finale(self)}function resolve(self,val){try{if(val===self)throw new TypeError("A promise cannot be resolved with itself");if(val&&(isObj(val)||isFn(val))){var then=val.then;if(val instanceof Promise)return self._state.adopt(val),finale(self);if(isFn(then))return doResolve(bind(then,val),self)}self._state.fulfill(val),finale(self)}catch(e){reject(self,e)}}function finale(self){for(var i=0,len=self._deferreds.length;i<len;i++)handle(self,self._deferreds[i]);self._deferreds=null}function handle(self,deferred){for(;self._state.is("adopted");)self=self._value;if(self._state.is("pending"))return self._deferreds.push(deferred);self._handled=!0,nextTick(function(){var ret,isFulfilled=self._state.is("fulfilled"),cb=isFulfilled?deferred.onFulfilled:deferred.onRejected;if(null===cb)return(isFulfilled?resolve:reject)(deferred.promise,self._value);try{ret=cb(self._value)}catch(e){return reject(deferred.promise,e)}resolve(deferred.promise,ret)})}function doResolve(fn,self){var done=!1;try{fn(function(val){done||(done=!0,resolve(self,val))},function(reason){done||(done=!0,reject(self,reason))})}catch(e){if(done)return;done=!0,reject(self,e)}}module.exports=exports}),now=createCommonjsModule(function(module,exports){exports=Date.now||function(){return(new Date).getTime()},module.exports=exports}),isBrowser=createCommonjsModule(function(module,exports){exports="object"==typeof window&&"object"==typeof document&&9===document.nodeType,module.exports=exports}),root=createCommonjsModule(function(module,exports){exports=isBrowser?window:commonjsGlobal,module.exports=exports}),perfNow=createCommonjsModule(function(module,exports){var getNanoSeconds,loadTime,performance=root.performance,process=root.process;exports=performance&&performance.now?function(){return performance.now()}:process&&process.hrtime?(loadTime=(getNanoSeconds=function(){var hr=process.hrtime();return 1e9*hr[0]+hr[1]})()-1e9*process.uptime(),function(){return(getNanoSeconds()-loadTime)/1e6}):(loadTime=now(),function(){return now()-loadTime}),module.exports=exports}),delay=createCommonjsModule(function(module,exports){exports=restArgs(function(fn,wait,args){return setTimeout(function(){return fn.apply(null,args)},wait)}),module.exports=exports}),average=createCommonjsModule(function(module,exports){module.exports=function(){for(var arr=arguments,sum=0,len=arr.length,i=0;i<len;i++)sum+=arr[i];return sum/len}}),reduce=createCommonjsModule(function(module,exports){function createReduce(dir){return function(obj,iterator,initial,ctx){var key;if(iterator=optimizeCb(iterator,ctx),isArrLike(obj))for(len=obj.length,i=0<dir?0:len-1,isUndef(initial)&&(initial=obj[i],i+=dir);i<len&&0<=i;i+=dir)initial=iterator(initial,obj[i],i,obj);else{var _keys=keys(obj),len=_keys.length,i=0<dir?0:len-1;for(isUndef(initial)&&(initial=obj[_keys[i]],i+=dir);i<len&&0<=i;i+=dir)initial=iterator(initial,obj[key=_keys[i]],key,obj)}return initial}}(exports=createReduce(1)).create=createReduce,module.exports=exports}),reduce_1=reduce.create,stripAnsi=createCommonjsModule(function(module,exports){var regAnsi=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;module.exports=function(str){return str.replace(regAnsi,"")}}),isInt=createCommonjsModule(function(module,exports){module.exports=function(val){return isNum(val)&&val%1==0}}),isFullWidth=createCommonjsModule(function(module,exports){module.exports=function(c){return!!isInt(c)&&(4352<=c&&(c<=4447||9001===c||9002===c||11904<=c&&c<=12871&&12351!==c||12880<=c&&c<=19903||19968<=c&&c<=42182||43360<=c&&c<=43388||44032<=c&&c<=55203||63744<=c&&c<=64255||65040<=c&&c<=65049||65072<=c&&c<=65131||65281<=c&&c<=65376||65504<=c&&c<=65510||110592<=c&&c<=110593||127488<=c&&c<=127569||131072<=c&&c<=262141))}}),strWidth=createCommonjsModule(function(module,exports){module.exports=function(str){for(var width=0,i=0,len=(str=stripAnsi(str)).length;i<len;i++){var c=str.codePointAt(i);c<=31||127===c||(width+=isFullWidth(c)?2:1)}return width}}),repeat=createCommonjsModule(function(module,exports){module.exports=function(str,n){var ret="";if(n<1)return"";for(;0<n;)1&n&&(ret+=str),n>>=1,str+=str;return ret}}),mapObj=createCommonjsModule(function(module,exports){module.exports=function(obj,iterator,ctx){iterator=safeCb(iterator,ctx);for(var _keys=keys(obj),len=_keys.length,ret={},i=0;i<len;i++){var curKey=_keys[i];ret[curKey]=iterator(obj[curKey],curKey,obj)}return ret}}),cloneDeep=createCommonjsModule(function(module,exports){module.exports=exports=function(obj){return isArr(obj)?obj.map(exports):isObj(obj)&&!isFn(obj)?mapObj(obj,exports):obj}}),table=createCommonjsModule(function(module,exports){function loopData(rows,handler){for(var i=0,len=rows.length;i<len;i++)for(var row=rows[i],j=0,_len=row.length;j<_len;j++){var data=handler(row[j],i,j);data&&(row[j]=data)}}function renderBorder(type,options){var border=options.border,options=options.columns,left=border[type+"Left"],right=border[type+"Right"],body=border[type+"Body"],border=border[type+"Join"],left=left+(left=map(options,function(column){return repeat(body,column.width)}).join(border))+right;return"bottom"!==type&&(left+="\n"),left}var defBorder={topBody:"─",topJoin:"┬",topLeft:"┌",topRight:"┐",bottomBody:"─",bottomJoin:"┴",bottomLeft:"└",bottomRight:"┘",bodyLeft:"│",bodyRight:"│",bodyJoin:"│",joinBody:"─",joinLeft:"├",joinRight:"┤",joinJoin:"┼"};module.exports=function(rows){rows=cloneDeep(rows);var options={border:defBorder};return options.columns=function(rows){var columns=[];return loopData(rows,function(data,row,column){columns[column]=columns[column]||{width:2,paddingLeft:1,paddingRight:1};data=strWidth(data)+1+1;data>columns[column].width&&(columns[column].width=data)}),columns}(rows),function(rows,options){for(var columnCount=options.columns.length,i=0,len=rows.length;i<len;i++)for(;rows[i].length<columnCount;)rows[i].push("");loopData(rows,function(data,row,column){var column=options.columns[column],paddingLeft=column.paddingLeft,width=column.width,column=column.paddingRight;return repeat(" ",paddingLeft)+data+repeat(" ",width-strWidth(data)-column)})}(rows,options),function(rows,options){var ret="";return ret+=renderBorder("top",options),each(rows,function(row,idx){ret+=function(columns,options){options=options.border;return options.bodyLeft+columns.join(options.bodyJoin)+options.bodyRight+"\n"}(row,options),idx===rows.length-1?ret+=renderBorder("bottom",options):ret+=renderBorder("join",options)}),ret}(rows,options)}}),toStr=createCommonjsModule(function(module,exports){module.exports=function(val){return null==val?"":val.toString()}}),Benchmark=createCommonjsModule(function(module,exports){exports=Class({initialize:function(fn){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};defaults(options,defOpts),this._fn=fn,this._isRunning=!1,this._options=options},run:function(){var _this=this;if(this._isRunning)return this._pendingPromise;this._reset(),this._isRunning=!0;var options=this._options,pendingPromise=new _Promise(function(resolve,reject){function runSample(){var initCount=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;delay(function(){_this._runSample(initCount).then(function(_ref){var period=_ref.period,_ref=_ref.count,sample=_this._sample;sample.push(period),perfNow()-_this._timeStamp<options.maxTime||sample.length<options.minSamples?runSample(_ref):resolve(_this._calcResult())}).catch(function(err){reject(err)})},options.delay)}runSample()});function complete(){this._isRunning=!1,delete this._pendingPromise}return pendingPromise.then(complete).catch(complete),this._pendingPromise=pendingPromise},_reset:function(){this._timeStamp=perfNow(),this._sample=[]},_calcResult:function(){var sample=this._sample,result={sample:sample,toString:function(){var hz=this.hz,rme=this.rme,name=this.name,size=this.sample.length;return"".concat(name," x ").concat(formatNumber(hz.toFixed(hz<100?2:0))," ops/sec ±").concat(rme.toFixed(2),"% (").concat(size," run").concat(1===size?"":"s"," sampled)")}},size=sample.length;result.name=this._options.name||this._fn.name||"anonymous",result.mean=average.apply(null,sample),result.variance=reduce(sample,function(sum,x){return sum+Math.pow(x-result.mean,2)},0)/(size-1)||0,result.deviation=Math.sqrt(result.variance),result.sem=result.deviation/Math.sqrt(size);sample=tTable[Math.round(size-1)||1]||tTable.infinity;return result.moe=result.sem*sample,result.rme=result.moe/result.mean*100||0,result.hz=1e3/result.mean,result},_runSample:function(count){var _this2=this,options=this._options,minTime=options.minTime;return new _Promise(function(resolve,reject){function runCycle(count){delay(function(){var elapsed=0;try{elapsed=_this2._runCycle(count)}catch(e){return reject(e)}var period=elapsed/count;elapsed<minTime?(0===elapsed?count*=100:count+=Math.ceil((minTime-elapsed)/period),runCycle(count)):resolve({count:count,period:period})},options.delay)}runCycle(count)})},_runCycle:function(count){for(var fn=this._fn,now=perfNow();count--;)fn();return perfNow()-now}},{all:function(benches,options){var promises=[];return each(benches,function(bench){bench instanceof exports||(bench=new exports(bench,options)),promises.push(bench.run())}),_Promise.all(promises).then(function(results){return results.toString=function(){var data=map(results,function(_ref2,idx){var name=_ref2.name,sample=_ref2.sample,hz=_ref2.hz,_ref2=_ref2.rme,columns=[],sample=sample.length;return columns.push(toStr(idx+1),name||"anonymous",formatNumber(hz.toFixed(hz<100?2:0)),"±".concat(_ref2.toFixed(2),"%"),"".concat(sample," run").concat(1===sample?"":"s")),columns});return data.unshift(["index","name","ops/sec","rme","sampled"]),table(data)},results})}});var defOpts={minTime:50,maxTime:5e3,minSamples:5,delay:5,name:""},tTable={1:12.706,2:4.303,3:3.182,4:2.776,5:2.571,6:2.447,7:2.365,8:2.306,9:2.262,10:2.228,11:2.201,12:2.179,13:2.16,14:2.145,15:2.131,16:2.12,17:2.11,18:2.101,19:2.093,20:2.086,21:2.08,22:2.074,23:2.069,24:2.064,25:2.06,26:2.056,27:2.052,28:2.048,29:2.045,30:2.042,infinity:1.96};function formatNumber(number){return(number=String(number).split("."))[0].replace(/(?=(?:\d{3})+$)(?!\b)/g,",")+(number[1]?"."+number[1]:"")}module.exports=exports}),Blob$1=createCommonjsModule(function(module,exports){exports=root.Blob||function(parts,options){options=options||{};var blobBuilder=new BlobBuilder;return each(parts,function(part){blobBuilder.append(part)}),options.type?blobBuilder.getBlob(options.type):blobBuilder.getBlob()};var BlobBuilder=root.BlobBuilder||root.WebKitBlobBuilder||root.MSBlobBuilder||root.MozBlobBuilder;module.exports=exports}),fill=createCommonjsModule(function(module,exports){module.exports=function(arr,val,start,end){var len=arr.length;if(!len)return[];for(isUndef(end)&&(end=len),isUndef(start)&&(start=0);start<end;)arr[start++]=val;return arr}}),fnv1a=createCommonjsModule(function(module,exports){module.exports=function(str){for(var ret=2166136261,i=0,len=str.length;i<len;i++)ret=(ret^=str.charCodeAt(i))+((ret<<1)+(ret<<4)+(ret<<7)+(ret<<8)+(ret<<24));return ret>>>0}}),strHash=createCommonjsModule(function(module,exports){module.exports=function(str){for(var hash=5381,i=str.length;i;)hash=(hash<<5)+hash+str.charCodeAt(--i);return hash>>>0}}),BloomFilter=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){var size=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1024,k=1<arguments.length&&void 0!==arguments[1]?arguments[1]:3;this._buckets=fill(new Array(size),0),this._k=k,this._size=size},add:function(val){var _this=this;each(this._locations(val),function(location){return _this._buckets[location]=1})},test:function(val){var _this2=this;return!some(this._locations(val),function(location){return 0===_this2._buckets[location]})},_locations:function(val){for(var ret=[],size=this._size,a=fnv1a(val),b=strHash(val),i=0;i<this._k;i++)ret[i]=(a+b*i)%size;return console.log(ret),ret}}),module.exports=exports}),lowerCase=createCommonjsModule(function(module,exports){module.exports=function(str){return toStr(str).toLocaleLowerCase()}}),Caseless=createCommonjsModule(function(module,exports){exports=Class({initialize:function(obj){this._target=obj},set:function(key,val){var name=this.getKey(key);this._target[key=name?name:key]=val},get:function(key){if(key=this.getKey(key))return this._target[key]},getKey:function(key){for(var name=lowerCase(key),_keys=keys(this._target),i=0,len=_keys.length;i<len;i++){var _key=_keys[i];if(lowerCase(_key)===name)return _key}},remove:function(key){delete this._target[this.getKey(key)]},has:function(key){return!!this.getKey(key)}}),module.exports=exports}),clamp=createCommonjsModule(function(module,exports){module.exports=function(n,lower,upper){return isUndef(upper)&&(upper=lower,lower=void 0),!isUndef(lower)&&n<lower?lower:upper<n?upper:n}}),rgbToHsl=createCommonjsModule(function(module,exports){var mMin=Math.min,mMax=Math.max,round=Math.round;module.exports=function(rgb){var r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,min=mMin(r,g,b),max=mMax(r,g,b),delta=max-min,b=max===min?0:r===max?(g-b)/delta:g===max?2+(b-r)/delta:4+(r-g)/delta,r=((b=mMin(60*b,360))<0&&(b+=360),(min+max)/2),g=max===min?0:r<=.5?delta/(max+min):delta/(2-max-min),delta=[round(b),round(100*g),round(100*r)];return rgb[3]&&(delta[3]=rgb[3]),delta}}),hslToRgb=createCommonjsModule(function(module,exports){var round=Math.round;module.exports=function(hsl){var t3,val,h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100,ret=[];if(hsl[3]&&(ret[3]=hsl[3]),0==s)return val=round(255*l),ret[0]=ret[1]=ret[2]=val,ret;for(var t2,t1=2*l-(t2=l<.5?l*(1+s):l+s-l*s),i=0;i<3;i++)(t3=h+1/3*-(i-1))<0&&t3++,1<t3&&t3--,ret[i]=round(255*(val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1));return ret}}),isOdd=createCommonjsModule(function(module,exports){module.exports=function(num){return!!isInt(num)&&num%2!=0}}),hex=createCommonjsModule(function(module,exports){module.exports={encode:function(bytes){for(var hex=[],i=0,len=bytes.length;i<len;i++){var byte=bytes[i];hex.push((byte>>>4).toString(16)),hex.push((15&byte).toString(16))}return hex.join("")},decode:function(str){var bytes=[],len=str.length;isOdd(len)&&len--;for(var i=0;i<len;i+=2)bytes.push(parseInt(str.substr(i,2),16));return bytes}}}),Color=createCommonjsModule(function(module,exports){exports=Class({initialize:function(color){isStr(color)&&(color=exports.parse(color)),this.model=color.model,this.val=color.val},toRgb:function(){var val=this.val,prefix="rgba";return 1===(val="hsl"===this.model?hslToRgb(val):val)[3]&&(prefix="rgb",val=val.slice(0,3)),prefix+"("+val.join(", ")+")"},toHex:function(){var val=this.val,val=("hsl"===this.model&&(val=hslToRgb(val)),hex.encode(val.slice(0,3)));return"#"+(val=val[0]===val[1]&&val[2]===val[3]&&val[4]===val[5]?val[0]+val[2]+val[5]:val)},toHsl:function(){var val=this.val,prefix="hsla";return 1===(val="rgb"===this.model?rgbToHsl(val):val)[3]&&(prefix="hsl",val=val.slice(0,3)),val[1]=val[1]+"%",val[2]=val[2]+"%",prefix+"("+val.join(", ")+")"}},{parse:function(colorStr){var i,match,val=[0,0,0,1],model="rgb";if(match=colorStr.match(regHexAbbr))for(match=match[1],i=0;i<3;i++)val[i]=parseInt(match[i]+match[i],16);else if(match=colorStr.match(regHex))for(match=match[1],i=0;i<3;i++){var i2=2*i;val[i]=parseInt(match.slice(i2,2+i2),16)}else if(match=colorStr.match(regRgba)){for(i=0;i<3;i++)val[i]=parseInt(match[i+1],0);match[4]&&(val[3]=parseFloat(match[4]))}else if(match=colorStr.match(regRgbaPer)){for(i=0;i<3;i++)val[i]=Math.round(2.55*parseFloat(match[i+1]));match[4]&&(val[3]=parseFloat(match[4]))}else(match=colorStr.match(regHsla))&&(model="hsl",val=[(parseFloat(match[1])%360+360)%360,clamp(parseFloat(match[2]),0,100),clamp(parseFloat(match[3]),0,100),clamp(parseFloat(match[4]),0,1)]);return{val:val,model:model}}});var regHexAbbr=/^#([a-fA-F0-9]{3})$/,regHex=/^#([a-fA-F0-9]{6})$/,regRgba=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/,regRgbaPer=/^rgba?\(\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/,regHsla=/^hsla?\(\s*([+-]?\d*[.]?\d+)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/;module.exports=exports}),defineProp_1=createCommonjsModule(function(module,exports){function defineProp(obj,prop,descriptor){for(var path=castPath(prop,obj),lastProp=path.pop();prop=path.shift();)obj[prop]||(obj[prop]={}),obj=obj[prop];Object.defineProperty(obj,lastProp,descriptor)}module.exports=function(obj,prop,descriptor){return isStr(prop)?defineProp(obj,prop,descriptor):isObj(prop)&&each(prop,function(descriptor,prop){defineProp(obj,prop,descriptor)}),obj}}),Delegator=createCommonjsModule(function(module,exports){exports=Class({initialize:function(host,target){this._host=host,isStr(target)&&(target=safeGet(host,target)),this._target=target},method:function(name,targetName){var target=this._target,fn=target[targetName||name];return this._host[name]=function(){return fn.apply(target,arguments)},this},getter:function(name,targetName){var target=this._target;return targetName=targetName||name,defineProp_1(this._host,name,{get:function(){return target[targetName]},configurable:!0}),this},setter:function(name,targetName){var target=this._target;return targetName=targetName||name,defineProp_1(this._host,name,{set:function(val){return target[targetName]=val},configurable:!0}),this},access:function(name,targetName){return this.getter(name,targetName).setter(name,targetName)}}),module.exports=exports}),uniqId=createCommonjsModule(function(module,exports){var idCounter=0;module.exports=function(prefix){var id=++idCounter+"";return prefix?prefix+id:id}}),Dispatcher=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={}},dispatch:function(payload){for(var id in this._startDispatching(payload),this._callbacks)this._isPending[id]||this._invokeCb(id);this._stopDispatching()},register:function(cb){var id=uniqId("ID_");return this._callbacks[id]=cb,id},waitFor:function(ids){for(var i=0,len=ids.length;i<len;i++){var id=ids[i];this._isPending[id]||this._invokeCb(id)}},unregister:function(id){delete this._callbacks[id]},isDispatching:function(){return this._isDispatching},_startDispatching:function(payload){for(var id in this._callbacks)this._isPending[id]=!1,this._isHandled[id]=!1;this._pendingPayload=payload,this._isDispatching=!0},_stopDispatching:function(){delete this._pendingPayload,this._isDispatching=!1},_invokeCb:function(id){this._isPending[id]=!0,this._callbacks[id](this._pendingPayload),this._isHandled[id]=!0}}),module.exports=exports}),freeze=createCommonjsModule(function(module,exports){module.exports=function(obj){return Object.freeze?Object.freeze(obj):(keys(obj).forEach(function(prop){Object.getOwnPropertyDescriptor(obj,prop).configurable&&Object.defineProperty(obj,prop,{writable:!1,configurable:!1})}),obj)}}),Enum=createCommonjsModule(function(module,exports){exports=Class({initialize:function(map){isArr(map)?(this.size=map.length,each(map,function(member,val){this[member]=val},this)):(this.size=keys(map).length,each(map,function(val,member){this[member]=val},this)),freeze(this)}}),module.exports=exports}),LinkedList=createCommonjsModule(function(module,exports){var Node=(exports=Class({initialize:function(){this.tail=null,this.head=null,this.size=0},push:function(val){val=new Node(val,this.tail,null,this);return this.tail=val,this.head=this.head||val,this.size++,this.size},pop:function(){var node;if(this.tail)return node=this.tail,this.tail=node.prev,this.tail?this.tail.next=null:this.head=null,this.size--,node.value},unshift:function(val){val=new Node(val,null,this.head,this);return this.head=val,this.tail=this.tail||val,this.size++,this.size},shift:function(){var node;if(this.head)return node=this.head,this.head=node.next,this.head?this.head.prev=null:this.tail=null,this.size--,node.value},rmNode:function(node){if(node.list!==this)throw Error("Node does not belong to this list");var next=node.next,prev=node.prev;next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list=null,node.prev=null,node.next=null,this.size--},find:function(fn){for(var current=this.head;null!==current;0){if(fn(current.value))return current;current=current.next}},forEach:function(iterator,ctx){ctx=1<arguments.length?ctx:this;for(var i=0,current=this.head;null!==current;i++)iterator.call(ctx,current.value,i,this),current=current.next},toArr:function(){for(var arr=new Array(this.size),i=0,current=this.head;null!==current;i++)arr[i]=current.value,current=current.next;return arr}})).Node=Class({initialize:function(val,prev,next,list){this.value=val,this.list=list,prev?(prev.next=this).prev=prev:this.prev=null,next?(next.prev=this).next=next:this.next=null}});module.exports=exports}),LinkedList_1=LinkedList.Node,HashTable=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this._buckets=map(Array(0<arguments.length&&void 0!==arguments[0]?arguments[0]:32),function(){return new LinkedList}),this._keys={}},set:function(key,val){var keyHash=this._hash(key),keyHash=(this._keys[key]=keyHash,this._buckets[keyHash]),node=keyHash.find(function(val){return val.key===key});node?node.value.value=val:keyHash.push({key:key,value:val})},get:function(key){var node=this._buckets[this._hash(key)].find(function(val){return val.key===key});if(node)return node.value.value},has:function(key){return has(this._keys,key)},delete:function(key){var keyHash=this._hash(key),keyHash=(delete this._keys[key],this._buckets[keyHash]),node=keyHash.find(function(val){return val.key===key});node&&keyHash.rmNode(node)},_hash:function(key){return strHash(key)%this._buckets.length}}),module.exports=exports}),swap=createCommonjsModule(function(module,exports){module.exports=function(arr,a,b){var tmp=arr[a];return arr[a]=arr[b],arr[b]=tmp,arr}}),isSorted=createCommonjsModule(function(module,exports){(exports=function(arr){for(var cmp=1<arguments.length&&void 0!==arguments[1]?arguments[1]:exports.defComparator,i=0,len=arr.length;i<len-1;i++)if(0<cmp(arr[i],arr[i+1]))return!1;return!0}).defComparator=function(a,b){return a<b?-1:b<a?1:0},module.exports=exports}),isSorted_1=isSorted.defComparator,Heap=createCommonjsModule(function(module,exports){function parentIdx(idx){return Math.floor((idx-1)/2)}function rightChildIdx(idx){return 2*idx+2}exports=Class({initialize:function(){var cmp=0<arguments.length&&void 0!==arguments[0]?arguments[0]:isSorted.defComparator;this._cmp=cmp,this.clear()},clear:function(){this._data=[],this.size=0},add:function(item){return this._data.push(item),this.size++,this._heapifyUp(this.size-1),this.size},poll:function(){var item,data=this._data;if(0<this.size)return item=data[0],data[0]=data[this.size-1],this.size--,this._heapifyDown(0),item},peek:function(){if(0<this.size)return this._data[0]},_heapifyUp:function(idx){for(var data=this._data,parent=parentIdx(idx);0<idx&&0<this._cmp(data[parent],data[idx]);)swap(data,parent,idx),parent=parentIdx(idx=parent)},_heapifyDown:function(idx){for(var size=this.size,cmp=this._cmp,data=this._data;2*idx+1<size;){var smallerIdx=2*idx+1,rightChild=2*idx+2;if(rightChild<size&&cmp(data[rightChildIdx],data[smallerIdx])<0&&(smallerIdx=rightChild),cmp(data[idx],data[smallerIdx])<0)break;swap(data,idx,smallerIdx),idx=smallerIdx}}}),module.exports=exports}),toBool=createCommonjsModule(function(module,exports){module.exports=function(val){return isStr(val)?"0"!==(val=val.toLowerCase())&&""!==val&&"false"!==val:!!val}}),HeapSnapshot=createCommonjsModule(function(module,exports){exports=Class({initialize:function(profile){isStr(profile)&&(profile=JSON.parse(profile)),this.nodes=new LinkedList,this.edges=new LinkedList;var meta=profile.snapshot.meta;this.nodeFields=map(meta.node_fields,camelCase),this.nodeTypes=meta.node_types[this.nodeFields.indexOf("type")],this.edgeFields=map(meta.edge_fields,camelCase),this.edgeTypes=meta.edge_types[this.edgeFields.indexOf("type")],this._init(profile)},_init:function(profile){for(var _this=this,nodes=profile.nodes,edges=profile.edges,strings=profile.strings,profile=this.nodeFields,edgeFields=this.edgeFields,curEdgeIdx=0,nodeFieldCount=profile.length,edgeFieldCount=edgeFields.length,nodeMap={},i=0,len=nodes.length;i<len;i+=nodeFieldCount){var node=new Node(this);node.init(nodes.slice(i,i+nodeFieldCount),strings),this.nodes.push(node),nodeMap[i]=node}this.nodes.forEach(function(node){for(var edgeCount=node.edgeCount,maxEdgeIdx=(delete node.edgeCount,curEdgeIdx+edgeCount*edgeFieldCount),_i=curEdgeIdx;_i<maxEdgeIdx;_i+=edgeFieldCount){var edge=new Edge(_this,node);edge.init(edges.slice(_i,_i+edgeFieldCount),strings,nodeMap),_this.edges.push(edge)}curEdgeIdx=maxEdgeIdx})}});var Node=Class({initialize:function(heapSnapshot){this._heapSnapshot=heapSnapshot},init:function(fields,strings){var _this2=this,heapSnapshot=this._heapSnapshot,nodeFields=heapSnapshot.nodeFields,nodeTypes=heapSnapshot.nodeTypes;each(nodeFields,function(field,idx){var val=fields[idx];switch(field){case"name":val=strings[val];break;case"detachedness":val=toBool(val);break;case"type":val=nodeTypes[val]}_this2[field]=val})}}),Edge=Class({initialize:function(heapSnapshot,fromNode){this._heapSnapshot=heapSnapshot,this.fromNode=fromNode},init:function(fields,strings,nodeMap){var _this3=this,heapSnapshot=this._heapSnapshot,edgeFields=heapSnapshot.edgeFields,edgeTypes=heapSnapshot.edgeTypes;each(edgeFields,function(field,idx){var val=fields[idx];switch(field){case"nameOrIndex":val=strings[val];break;case"type":val=edgeTypes[val];break;case"toNode":val=nodeMap[val]}_this3[field]=val})}});module.exports=exports}),strTpl=createCommonjsModule(function(module,exports){var regSep=/{{(.*?)}}/g;module.exports=function(str,data){return str.replace(regSep,function(match,key){return toStr(safeGet(data,key))})}}),I18n=createCommonjsModule(function(module,exports){exports=Class({initialize:function(locale,langs){this._locale=locale,this._langs=langs},set:function(locale,lang){this._langs[locale]?extend(this._langs[locale],lang):this._langs[locale]=lang},t:function(path,data){var val="",lang=this._langs[this._locale];return lang?(val=safeGet(lang,path),data&&(isStr(val)?val=strTpl(val,data):isFn(val)&&(val=val(data))),val||""):""},locale:function(locale){this._locale=locale}}),module.exports=exports}),isSymbol=createCommonjsModule(function(module,exports){module.exports=function(val){return"symbol"==typeof val}}),safeSet=createCommonjsModule(function(module,exports){module.exports=function(obj,path,val){for(var lastProp=(path=castPath(path,obj)).pop(),prop=path.shift();!isUndef(prop);){if("__proto__"===(prop=isStr(prop)||isSymbol(prop)?prop:toStr(prop))||"constructor"===prop||"prototype"===prop)return;obj[prop]||(obj[prop]={}),obj=obj[prop],prop=path.shift()}obj[lastProp]=val}}),safeDel=createCommonjsModule(function(module,exports){module.exports=function(obj,path){var prop,ret;for(path=castPath(path,obj);prop=path.shift();)if(ret=obj[prop],0===path.length&&delete obj[prop],isUndef(obj=ret))return;return ret}}),JsonTransformer=createCommonjsModule(function(module,exports){exports=Class({className:"JsonTransformer",initialize:function(data){this._data=data||{}},set:function(key,val){return 1===arguments.length?this._data=key:safeSet(this._data,key,val),this},get:function(key){return null==key?this._data:safeGet(this._data,key)},map:function(from,to,fn){return isFn(from)?this.set(map(this._data,from,this)):(isFn(to)&&(fn=to,to=from),this.set(to,map(this.get(from),fn,this)))},filter:function(from,to,fn){return isFn(from)?this.set(filter(this._data,from,this)):(isFn(to)&&(fn=to,to=from),this.set(to,filter(this.get(from),fn,this)))},remove:function(keys){keys=toArr(keys);var data=this._data;return each(keys,function(key){safeDel(data,key)}),this},compute:function(from,to,fn){return isFn(from)?this.set(from.call(this,this._data)):isFn(to)?this.set(from,to.call(this,this.get(from))):(from=map(toArr(from),function(key){return safeGet(this._data,key)},this),this.set(to,fn.apply(this,from)))},toString:function(){return JSON.stringify(this._data)}}),module.exports=exports}),Store=createCommonjsModule(function(module,exports){exports=Emitter.extend({initialize:function(data){this.callSuper(Emitter,"initialize",arguments),this._data=data||{},this.save(this._data)},set:function(key,val){isStr(key)?(data={})[key]=val:isObj(key)&&(data=key);var data,self=this;each(data,function(val,key){var oldVal=self._data[key];self._data[key]=val,self.emit("change",key,val,oldVal)}),this.save(this._data)},get:function(key){var data=this._data;if(isStr(key))return data[key];var ret={};return each(key,function(val){ret[val]=data[val]}),ret},remove:function(key){key=toArr(key);var data=this._data;each(key,function(val){delete data[val]}),this.save(data)},clear:function(){this._data={},this.save(this._data)},each:function(fn){each(this._data,fn)},save:function(data){this._data=data}}),module.exports=exports}),memStorage=createCommonjsModule(function(module,exports){var keys$1=keys,cloak=(exports={getItem:function(key){return(API_KEYS[key]?cloak:this)[key]||null},setItem:function(key,val){API_KEYS[key]?cloak[key]=val:this[key]=val},removeItem:function(key){API_KEYS[key]?delete cloak[key]:delete this[key]},key:function(i){var keys=enumerableKeys();return 0<=i&&i<keys.length?keys[i]:null},clear:function(){for(var key,keys=uncloakedKeys(),i=0;key=keys[i];i++)delete this[key];for(var _key,keys=keys$1(cloak),_i=0;_key=keys[_i];_i++)delete cloak[_key]}},Object.defineProperty(exports,"length",{enumerable:!1,configurable:!0,get:function(){return enumerableKeys().length}}),{}),API_KEYS={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function enumerableKeys(){return uncloakedKeys().concat(keys$1(cloak))}function uncloakedKeys(){return keys$1(exports).filter(function(key){return!API_KEYS[key]})}module.exports=exports}),safeStorage=createCommonjsModule(function(module,exports){module.exports=function(type){var ret;switch(type=type||"local"){case"local":ret=window.localStorage;break;case"session":ret=window.sessionStorage}try{var x="test-localStorage-"+Date.now(),y=(ret.setItem(x,x),ret.getItem(x));if(ret.removeItem(x),y!==x)throw new Error}catch(e){return memStorage}return ret}}),isArgs=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object Arguments]"===objToStr(val)}}),isEmpty=createCommonjsModule(function(module,exports){module.exports=function(val){return null==val||(isArrLike(val)&&(isArr(val)||isStr(val)||isArgs(val))?0===val.length:0===keys(val).length)}}),_isNaN=createCommonjsModule(function(module,exports){module.exports=function(val){return isNum(val)&&val!==+val}}),isBuffer=createCommonjsModule(function(module,exports){module.exports=function(val){return null!=val&&(!!val._isBuffer||val.constructor&&isFn(val.constructor.isBuffer)&&val.constructor.isBuffer(val))}}),type=createCommonjsModule(function(module,exports){var regObj=/^\[object\s+(.*?)]$/;module.exports=function(val){var ret,lower=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];return null===val&&(ret="Null"),void 0===val&&(ret="Undefined"),_isNaN(val)&&(ret="NaN"),(ret=(ret=isBuffer(val)?"Buffer":ret)||(ret=objToStr(val).match(regObj))&&ret[1])?lower?lowerCase(ret):ret:""}}),isRegExp=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object RegExp]"===objToStr(val)}}),stringify=createCommonjsModule(function(module,exports){module.exports=function(obj,spaces){return JSON.stringify(obj,(stack=[],keys=[],function(key,val){var pos;return 0<stack.length?(-1<(pos=stack.indexOf(this))?(stack.splice(pos+1),keys.splice(pos,1/0,key)):(stack.push(this),keys.push(key)),-1<(pos=stack.indexOf(val))&&(val=stack[0]===val?"[Circular ~]":"[Circular ~."+keys.slice(0,pos).join(".")+"]")):stack.push(val),isRegExp(val)||isFn(val)?val="["+upperFirst(type(val))+" "+toStr(val)+"]":isUndef(val)&&(val=null),val}),spaces);var stack,keys}}),LocalStore=createCommonjsModule(function(module,exports){var localStorage=safeStorage("local");exports=Store.extend({initialize:function(name,data){this._name=name,data=data||{};name=localStorage.getItem(name);try{name=JSON.parse(name)}catch(e){name={}}isObj(name)||(name={}),data=defaults(name,data),this.callSuper(Store,"initialize",[data])},save:function(data){if(isEmpty(data))return localStorage.removeItem(this._name);localStorage.setItem(this._name,stringify(data))}}),module.exports=exports}),Logger=createCommonjsModule(function(module,exports){exports=Emitter.extend({initialize:function(name,level){this.name=name,this.setLevel(isUndef(level)?exports.level.DEBUG:level),this.callSuper(Emitter,"initialize",arguments)},setLevel:function(level){return isStr(level)?(level=exports.level[level.toUpperCase()])&&(this._level=level):isNum(level)&&(this._level=level),this},getLevel:function(){return this._level},formatter:function(type,argList){return argList},trace:function(){return this._log("trace",arguments)},debug:function(){return this._log("debug",arguments)},info:function(){return this._log("info",arguments)},warn:function(){return this._log("warn",arguments)},error:function(){return this._log("error",arguments)},_log:function(type,argList){return 0===(argList=toArr(argList)).length?this:(this.emit("all",type,clone(argList)),exports.level[type.toUpperCase()]<this._level||(this.emit(type,clone(argList)),("debug"===type?console.log:console[type]).apply(console,this.formatter(type,argList))),this)}},{level:new Enum({TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5})}),module.exports=exports}),PseudoMap=createCommonjsModule(function(module,exports){exports=root.Map||Class({initialize:function(data){this.clear();var self=this;defineProp_1(this,"size",{get:function(){return keys(self._data).length},set:function(){},enumerable:!0,configurable:!0}),data instanceof exports?data.forEach(function(val,key){this.set(key,val)},this):isArr(data)&&each(data,function(val){this.set(val[0],val[1])},this)},forEach:function(fn,ctx){each(this._data,function(val,key){fn.call(this,val,key)},ctx)},has:function(key){return!isUndef(this._data[key])},get:function(key){return this._data[key]},set:function(key,val){this._data[key]=val},delete:function(key){delete this._data[key]},clear:function(){this._data={}}}),module.exports=exports}),Lru=createCommonjsModule(function(module,exports){exports=Class({initialize:function(max){this._max=max,this._list=new LinkedList,this._map=new PseudoMap},has:function(key){return this._map.has(key)},remove:function(key){var node,map=this._map;this.has(key)&&(node=map.get(key),this._list.rmNode(node),map.delete(key))},get:function(key){var node,ret,list=this._list,map=this._map;return this.has(key)&&(ret=(node=map.get(key)).value.val,list.rmNode(node),list.unshift(node.value),map.set(key,list.head)),ret},set:function(key,val){var node,list=this._list,map=this._map;this.has(key)?(node=map.get(key),list.rmNode(node),list.unshift({key:key,val:val}),map.set(key,list.head)):(list.unshift({key:key,val:val}),map.set(key,list.head),list.size>this._max&&(node=list.pop(),map.delete(node.key)))},clear:function(){this._map=new PseudoMap,this._list=new LinkedList}}),module.exports=exports}),MediaQuery=createCommonjsModule(function(module,exports){exports=Emitter.extend({className:"MediaQuery",initialize:function(query){var _this=this;this.callSuper(Emitter,"initialize"),this._mql=window.matchMedia(query),this._mql.addListener(function(){_this.emit(_this.isMatch()?"match":"unmatch")})},isMatch:function(){return this._mql.matches}}),module.exports=exports}),MutationObserver=createCommonjsModule(function(module,exports){exports=(exports=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)||Class({initialize:function(){},observe:function(){},disconnect:function(){},takeRecords:function(){}}),module.exports=exports}),wrap=createCommonjsModule(function(module,exports){module.exports=function(fn,wrapper){return partial(wrapper,fn)}}),PriorityQueue=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){var cmp=0<arguments.length&&void 0!==arguments[0]?arguments[0]:isSorted.defComparator;this._heap=new Heap(wrap(cmp,function(fn,a,b){return-1*fn(a,b)})),this.size=0},clear:function(){this._heap.clear(),this.size=0},enqueue:function(item){return this._heap.add(item),this.size++,this.size},dequeue:function(){var item=this._heap.poll();if(item)return this.size--,item},peek:function(){return this._heap.peek()}}),module.exports=exports}),Queue=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this.clear()},clear:function(){this._items=[],this.size=0},enqueue:function(item){return this._items.push(item),++this.size},dequeue:function(){if(this.size)return this.size--,this._items.shift()},peek:function(){if(this.size)return this._items[0]},forEach:function(iterator,ctx){ctx=1<arguments.length?ctx:this;for(var items=this._items,i=0,size=this.size;i<size;i++)iterator.call(ctx,items[i],i,this)},toArr:function(){return this._items.slice(0)}}),module.exports=exports}),QuickLru=createCommonjsModule(function(module,exports){exports=Class({initialize:function(max){this._max=max,this._cache={},this._oldCache={},this._size=0},has:function(key){return!isUndef(this._cache[key])||!isUndef(this._oldCache[key])},remove:function(key){isUndef(this._cache[key])||(this._cache[key]=void 0),isUndef(this._oldCache[key])||(this._oldCache[key]=void 0)},get:function(key){if(!isUndef(this._cache[key]))return this._cache[key];var val=this._oldCache[key];return isUndef(val)?void 0:(this._update(key,val),val)},set:function(key,val){isUndef(this._cache[key])?this._update(key,val):this._cache[key]=val},clear:function(){this._cache={},this._oldCache={}},_update:function(key,val){this._cache[key]=val,this._size++,this._size>this._max&&(this._size=0,this._oldCache=this._cache,this._cache={})}}),module.exports=exports}),Readiness=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this._promises={},this._resolves={},this._states={}},signal:function(tasks){var states=this._states;each(this._getPromises(toArr(tasks)),function(val){val.state||(states[val.task]=!0,val.resolve())})},isReady:function(tasks){return!some(this._getPromises(toArr(tasks)),function(val){return!val.state})},ready:function(tasks){var fn=1<arguments.length&&void 0!==arguments[1]?arguments[1]:noop;return Promise.all(map(this._getPromises(toArr(tasks)),function(val){return val.promise})).then(fn)},_getPromises:function(tasks){var promises=this._promises,resolves=this._resolves,states=this._states;return map(tasks,function(task){return promises[task]||(promises[task]=new Promise(function(resolve){resolves[task]=resolve,states[task]=!1})),{task:task,promise:promises[task],resolve:resolves[task],state:states[task]}})}}),module.exports=exports}),remove=createCommonjsModule(function(module,exports){module.exports=function(arr,iterator,ctx){for(var ret=[],i=(iterator=safeCb(iterator,ctx),-1),len=arr.length;++i<len;){var val=arr[i];iterator(val,i,arr)&&(ret.push(val),arr.splice(i,1))}return ret}}),ReduceStore=createCommonjsModule(function(module,exports){exports=Class({initialize:function(reducer,initialState){this._reducer=reducer,this._state=initialState,this._curListeners=[],this._nextListeners=this._curListeners},subscribe:function(listener){var isSubscribed=!0,self=(this._ensureCanMutateNextListeners(),this._nextListeners.push(listener),this);return function(){isSubscribed&&(isSubscribed=!1,self._ensureCanMutateNextListeners(),remove(self._nextListeners,function(val){return val===listener}))}},dispatch:function(action){this._state=this._reducer(this._state,action);for(var listeners=this._curListeners=this._nextListeners,i=0,len=listeners.length;i<len;i++)listeners[i]();return action},getState:function(){return this._state},_ensureCanMutateNextListeners:function(){this._nextListeners===this._curListeners&&(this._nextListeners=clone(this._curListeners))}}),module.exports=exports}),SingleEmitter=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this._listeners=[]},addListener:function(listener){this._listeners.push(listener)},rmListener:function(listener){listener=this._listeners.indexOf(listener);-1<listener&&this._listeners.splice(listener,1)},rmAllListeners:function(){this._listeners=[]},emit:function(){var _this=this,args=toArr(arguments),listeners=clone(this._listeners);each(listeners,function(listener){return listener.apply(_this,args)},this)}},{mixin:function(obj){each(["addListener","rmListener","emit","rmAllListeners"],function(val){obj[val]=exports.prototype[val]}),obj._listeners=obj._listeners||[]}}),module.exports=exports}),isEl=createCommonjsModule(function(module,exports){module.exports=function(val){return!(!val||1!==val.nodeType)}}),startWith=createCommonjsModule(function(module,exports){module.exports=function(str,prefix){return 0===str.indexOf(prefix)}}),h=createCommonjsModule(function(module,exports){module.exports=function(tag,attrs){for(var _len=arguments.length,children=new Array(2<_len?_len-2:0),_key=2;_key<_len;_key++)children[_key-2]=arguments[_key];(isEl(attrs)||isStr(attrs))&&(children.unshift(attrs),attrs=null),attrs=attrs||{};var _parseTag=function(tag){for(var tagName="div",id="",classes=[],words=[],word="",i=0,len=tag.length;i<len;i++){var c=tag[i];"#"===c||"."===c?(words.push(word),word=c):word+=c}words.push(word);for(var _i=0,_len2=words.length;_i<_len2;_i++)(word=words[_i])&&(startWith(word,"#")?id=word.slice(1):startWith(word,".")?classes.push(word.slice(1)):tagName=word);return{tagName:tagName,id:id,classes:classes}}(tag),tagName=_parseTag.tagName,id=_parseTag.id,_parseTag=_parseTag.classes,el=document.createElement(tagName);return id&&el.setAttribute("id",id),$class.add(el,_parseTag),each(children,function(child){isStr(child)?el.appendChild(document.createTextNode(child)):isEl(child)&&el.appendChild(child)}),each(attrs,function(val,key){isStr(val)?el.setAttribute(key,val):isFn(val)&&startWith(key,"on")?el.addEventListener(key.slice(2),val,!1):"style"===key&&$css(el,val)}),el}}),ResizeSensor=createCommonjsModule(function(module,exports){exports=root.ResizeObserver?SingleEmitter.extend({initialize:function(el){var _this=this;if(el._resizeSensor)return el._resizeSensor;this.callSuper(SingleEmitter,"initialize");var resizeObserver=new root.ResizeObserver(function(){return _this.emit()});resizeObserver.observe(el),(el._resizeSensor=this)._resizeObserver=resizeObserver,this._el=el},destroy:function(){var el=this._el;el._resizeSensor&&(this.rmAllListeners(),delete el._resizeSensor,this._resizeObserver.unobserve(el))}}):SingleEmitter.extend({initialize:function(el){if(el._resizeSensor)return el._resizeSensor;this.callSuper(SingleEmitter,"initialize"),(this._el=el)._resizeSensor=this,contain(["absolute","relative","fixed","sticky"],$css(el,"position"))||$css(el,"position","relative"),this._appendResizeSensor(),this._bindEvent()},destroy:function(){var el=this._el;el._resizeSensor&&(this.rmAllListeners(),delete el._resizeSensor,el.removeChild(this._resizeSensorEl))},_appendResizeSensor:function(){var el=this._el,style={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},styleChild={position:"absolute",left:"0px",top:"0px",transition:"0s"},expandChildEl=h("div",{style:styleChild}),expandEl=h("div.resize-sensor-expand",{style:style},expandChildEl),styleChild=h("div.resize-sensor-shrink",{style:style},h("div",{style:extend({width:"200%",height:"200%"},styleChild)})),style=h("div.resize-sensor",{dir:"ltr",style:style},expandEl,styleChild);this._expandEl=expandEl,this._expandChildEl=expandChildEl,this._shrinkEl=styleChild,this._resizeSensorEl=style,el.appendChild(style),this._resetExpandShrink()},_bindEvent:function(){var _this2=this;$event.on(this._expandEl,"scroll",function(){return _this2._onScroll()}),$event.on(this._shrinkEl,"scroll",function(){return _this2._onScroll()})},_onScroll:function(){this.emit(),this._resetExpandShrink()},_resetExpandShrink:function(){var el=this._el,width=el.offsetWidth,el=el.offsetHeight;$css(this._expandChildEl,{width:width+10,height:el+10}),extend(this._expandEl,{scrollLeft:width+10,scrollTop:el+10}),extend(this._shrinkEl,{scrollLeft:width+10,scrollTop:el+10})}}),module.exports=exports}),Semaphore=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this._counter=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,this._tasks=new Queue},wait:function(fn){if(0<this._counter)return this._counter--,fn();this._tasks.enqueue(fn)},signal:function(){var task=this._tasks.dequeue();if(task)return task();this._counter++}}),module.exports=exports}),SessionStore=createCommonjsModule(function(module,exports){var sessionStorage=safeStorage("session");exports=Store.extend({initialize:function(name,data){this._name=name,data=data||{};name=sessionStorage.getItem(name);try{name=JSON.parse(name)}catch(e){name={}}isObj(name)||(name={}),data=defaults(name,data),this.callSuper(Store,"initialize",[data])},save:function(data){if(isEmpty(data))return sessionStorage.removeItem(this._name);sessionStorage.setItem(this._name,stringify(data))}}),module.exports=exports}),Socket=createCommonjsModule(function(module,exports){exports=Emitter.extend({initialize:function(url){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.callSuper(Emitter,"initialize"),defaults(options,defOpts),this._options=options,this._url=url,this.connect()},send:function(message){this._ws.send(message)},close:function(code,reason){this._ws.close(code||1e3,reason)},connect:function(){var _this=this,options=this._options,ws=new WebSocket(this._url,options.protocols);ws.onmessage=function(e){return _this.emit("message",e)},ws.onopen=function(e){return _this.emit("open",e)},ws.onclose=function(e){var code=e.code;1e3!==code&&1001!==code&&1005!==code&&options.reconnect&&_this.connect(),_this.emit("close",e)},ws.onerror=function(e){e&&"ECONNREFUSED"===e.code&&options.reconnect?_this.connect():_this.emit("error",e)},this._ws=ws}});var defOpts={protocols:[],reconnect:!0};module.exports=exports}),reverse=createCommonjsModule(function(module,exports){module.exports=function(arr){var len=arr.length,ret=Array(len);len--;for(var i=0;i<=len;i++)ret[len-i]=arr[i];return ret}}),Stack=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this.clear()},clear:function(){this._items=[],this.size=0},push:function(item){return this._items.push(item),++this.size},pop:function(){if(this.size)return this.size--,this._items.pop()},peek:function(){return this._items[this.size-1]},forEach:function(iterator,ctx){ctx=1<arguments.length?ctx:this;for(var items=this._items,i=this.size-1,j=0;0<=i;i--,j++)iterator.call(ctx,items[i],j,this)},toArr:function(){return reverse(this._items)}}),module.exports=exports}),Trace=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){var _this=this,events=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this._processes={},each(events,function(event){return _this.addEvent(event)})},addEvent:function(event){this.getProcess(event.pid).addEvent(event)},rmEvent:function(event){this.getProcess(event.pid).rmEvent(event)},getProcess:function(id){var process=this._processes[id];return process||(process=new Process(id),this._processes[id]=process),process},rmProcess:function(id){delete this._processes[id]},processes:function(){return map(this._processes)},toJSON:function(){var events=[];return each(this.processes(),function(process){events.push.apply(events,process.toJSON())}),events}});var Process=Class({initialize:function(id){this._id=id,this._name="",this._threads={},this._metadata={}},id:function(){return this._id},name:function(){return this._name},addEvent:function(event){"__metadata"!==event.cat||("process_name"===event.name&&(this._name=event.args.name),0!==event.tid)?this.getThread(event.tid).addEvent(event):this._metadata[event.name]=event.args},rmEvent:function(event){this.getThread(event.tid).rmEvent(event)},getThread:function(id){var thread=this._threads[id];return thread||(thread=new Thread(id,this.id()),this._threads[id]=thread),thread},rmThread:function(id){delete this._threads[id]},threads:function(){return map(this._threads)},toJSON:function(){var _this2=this,events=[];return each(this._metadata,function(args,name){events.push(createMetaEvent(_this2._id,0,name,args))}),each(this.threads(),function(thread){events.push.apply(events,thread.toJSON())}),events}}),Thread=Class({initialize:function(id,pid){this._id=id,this._pid=pid,this._name="",this._events=[],this._metadata={}},id:function(){return this._id},name:function(){return this._name},addEvent:function(event){if("__metadata"===event.cat)return"thread_name"===event.name&&(this._name=event.args.name),void(this._metadata[event.name]=event.args);this._events.push(event)},rmEvent:function(event){var events=this._events;events.splice(events.indexOf(event),1)},events:function(){return map(this._events)},toJSON:function(){var _this3=this,events=[];return each(this._metadata,function(args,name){events.push(createMetaEvent(_this3._pid,_this3._id,name,args))}),each(this.events(),function(event){events.push(event)}),events}});function createMetaEvent(pid,tid,name,args){return{args:args,cat:"__metadata",name:name,ph:"M",pid:pid,tid:tid,ts:0}}module.exports=exports}),isNode=createCommonjsModule(function(module,exports){exports="undefined"!=typeof process&&"[object process]"===objToStr(process),module.exports=exports}),ltrim=createCommonjsModule(function(module,exports){var regSpace=/^\s+/;module.exports=function(str,chars){if(null==chars)return str.trimLeft?str.trimLeft():str.replace(regSpace,"");for(var i,c,start=0,len=str.length,charLen=chars.length,found=!0;found&&start<len;)for(found=!1,i=-1,c=str.charAt(start);++i<charLen;)if(c===chars[i]){found=!0,start++;break}return len<=start?"":str.substr(start,len)}}),rtrim=createCommonjsModule(function(module,exports){module.exports=function(str,chars){if(null==chars){if(str.trimRight)return str.trimRight();chars=" \r\n\t\f\v"}for(var i,c,end=str.length-1,charLen=chars.length,found=!0;found&&0<=end;)for(found=!1,i=-1,c=str.charAt(end);++i<charLen;)if(c===chars[i]){found=!0,end--;break}return 0<=end?str.substring(0,end+1):""}}),trim=createCommonjsModule(function(module,exports){module.exports=function(str,chars){return null==chars&&str.trim?str.trim():ltrim(rtrim(str,chars),chars)}}),intersect=createCommonjsModule(function(module,exports){module.exports=function(arr){for(var ret=[],args=toArr(arguments),argsLen=args.length,i=0,len=arr.length;i<len;i++){var item=arr[i];if(!contain(ret,item)){for(var j=1;j<argsLen&&contain(args[j],item);j++);j===argsLen&&ret.push(item)}}return ret}}),convertBase=createCommonjsModule(function(module,exports){module.exports=function(num,from,to){return parseInt(num,from).toString(to)}}),Tracing=createCommonjsModule(function(module,exports){var defPid=0,defTid=0,id=0;if(isNode){defPid=process.pid;try{defTid=eval("require")("worker_threads").threadId}catch(e){}}exports=Class({initialize:function(){var _ref=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},_ref$pid=_ref.pid,_ref$pid=void 0===_ref$pid?defPid:_ref$pid,_ref$tid=_ref.tid,_ref$tid=void 0===_ref$tid?defTid:_ref$tid,_ref$processName=_ref.processName,_ref$processName=void 0===_ref$processName?"Process":_ref$processName,_ref=_ref.threadName,_ref=void 0===_ref?"Thread":_ref;this._pid=_ref$pid,this._tid=_ref$tid,this._processName=_ref$processName,this._threadName=_ref},start:function(){this._targetCat=processCat(0<arguments.length&&void 0!==arguments[0]?arguments[0]:""),isEmpty(this._targetCat)||this._targetCat.push("__metadata"),this._traceEventStack=new Stack,this._asyncEventMap={},this._trace=new Trace,this.metadata("process_name",{name:this._processName},{tid:0,ts:0}),this.metadata("thread_name",{name:this._threadName},{ts:0})},stop:function(){var trace=this._trace;if(!trace)throw Error("Need to call start first");return delete this._targetCat,delete this._traceEventStack,delete this._asyncEventMap,delete this._trace,trace.toJSON()},metadata:function(name,args,extra){this._addEvent("__metadata",name,Phase.Metadata,args,extra)},begin:function(cat,name){this._traceEventStack&&this._traceEventStack.push({cat:cat,name:name,args:2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},ts:this._getCurTs()})},end:function(args){if(this._traceEventStack){var beginEvent=this._traceEventStack.pop();if(!beginEvent)throw Error("Need to call begin first");var cat=beginEvent.cat,name=beginEvent.name,ts=beginEvent.ts;args=extend(beginEvent.args,args),this._addEvent(cat,name,Phase.Complete,args,{dur:this._getCurTs()-ts,ts:ts})}},asyncBegin:function(cat,name){var id=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.id(),args=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return this._asyncEventMap&&(this._asyncEventMap[id]={cat:cat,name:name},this._addEvent(cat,name,Phase.NestableAsyncBegin,args,{id:id})),id},asyncEnd:function(id){var args=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(this._asyncEventMap){var asyncBeginEvent=this._asyncEventMap[id];if(!asyncBeginEvent)throw Error("Need to call async begin first");var cat=asyncBeginEvent.cat,asyncBeginEvent=asyncBeginEvent.name;delete this._asyncEventMap[id],this._addEvent(cat,asyncBeginEvent,Phase.NestableAsyncEnd,args,{id:id})}},instant:function(cat,name){var scope=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"t";this._addEvent(cat,name,Phase.Instant,3<arguments.length?arguments[3]:void 0,{s:scope})},id:function(){return"0x"+convertBase(id++,10,16)},_addEvent:function(cat,name,ph){var args=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},extra=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{};if(this._trace){var targetCat=this._targetCat;if(!isEmpty(targetCat)){var catArr=processCat(cat);if(isEmpty(intersect(catArr,targetCat)))return}catArr=extend({name:name,cat:cat,ph:ph,ts:this._getCurTs(),pid:this._pid,tid:this._tid,args:args},extra);this._trace.addEvent(catArr)}},_getCurTs:function(){return Math.round(1e3*perfNow())}});var Phase={Begin:"B",End:"E",Complete:"X",Instant:"I",NestableAsyncBegin:"b",NestableAsyncEnd:"e",Metadata:"M"};function processCat(cat){return""===(cat=trim(cat))?[]:map(cat.split(","),trim)}module.exports=exports}),Trie=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this.clear()},add:function(word){var edges=this._edges,node=this._root;this._wordsInSubtree[node]++;for(var i=0,len=word.length;i<len;i++){var edge=word[i],next=edges[node][edge];next||(this._freeNodes.length?next=this._freeNodes.pop():(next=this._idx++,this._isWord.push(!1),this._wordsInSubtree.push(0),edges.push({})),edges[node][edge]=next),this._wordsInSubtree[next]++,node=next}this._isWord[node]=!0},remove:function(word){if(this.has(word)){var node=this._root;this._wordsInSubtree[node]--;for(var i=0,len=word.length;i<len;i++){var edge=word[i],next=this._edges[node][edge];--this._wordsInSubtree[next]||(delete this._edges[node][edge],this._freeNodes.push(next)),node=next}this._isWord[node]=!1}},has:function(word){for(var node=this._root,i=0,len=word.length;i<len;i++)if(!(node=this._edges[node][word[i]]))return!1;return this._isWord[node]},words:function(prefix){for(var node=this._root,i=0,len=prefix.length;i<len;i++)if(!(node=this._edges[node][prefix[i]]))return[];var result=[];return this._dfs(node,prefix,result),result},clear:function(){this._idx=1,this._root=0,this._edges=[{}],this._isWord=[!1],this._wordsInSubtree=[0],this._freeNodes=[]},_dfs:function(node,prefix,result){var _this=this,node=(this._isWord[node]&&result.push(prefix),this._edges[node]);each(node,function(node,edge){return _this._dfs(node,prefix+edge,result)})}}),module.exports=exports}),easing=createCommonjsModule(function(module,exports){exports.linear=function(t){return t};var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,min=Math.min,asin=Math.asin,PI=Math.PI,fns={sine:function(t){return 1+sin(PI/2*t-PI/2)},circ:function(t){return 1-sqrt(1-t*t)},elastic:function(t,m){if(0===t||1===t)return t;var m=1-min(m=m||DEFAULT_ELASTICITY,998)/1e3,t=+t-1,s=m/(2*PI)*asin(1);return-(pow(2,10*t)*sin(2*PI*(t-s)/m))},back:function(t){return t*t*(3*t-2)},bounce:function(t){for(var pow2,bounce=4;t<((pow2=pow(2,--bounce))-1)/11;);return 1/pow(4,3-bounce)-7.5625*pow((3*pow2-2)/22-t,2)}},DEFAULT_ELASTICITY=(each(["quad","cubic","quart","quint","expo"],function(name,i){fns[name]=function(t){return pow(t,i+2)}}),400);each(fns,function(fn,name){name=upperFirst(name),exports["in"+name]=fn,exports["out"+name]=function(t,m){return 1-fn(1-t,m)},exports["inOut"+name]=function(t,m){return t<.5?fn(2*t,m)/2:1-fn(-2*t+2,m)/2},exports["outIn"+name]=function(t,m){return t<.5?(1-fn(1-2*t,m))/2:(fn(2*t-1,m)+1)/2}}),module.exports=exports}),easing_1=easing.linear,raf_1=createCommonjsModule(function(module,exports){var lastTime=0;if(isBrowser)for(var raf=window.requestAnimationFrame,cancel=window.cancelAnimationFrame,vendors=["ms","moz","webkit","o"],i=0,len=vendors.length;i<len&&!raf;i++)raf=window[vendors[i]+"RequestAnimationFrame"],cancel=window[vendors[i]+"CancelAnimationFrame"]||window[vendors[i]+"CancelRequestAnimationFrame"];(raf=raf||function(cb){var curTime=now(),timeToCall=Math.max(0,16-(curTime-lastTime)),id=setTimeout(function(){cb(curTime+timeToCall)},timeToCall);return lastTime=curTime+timeToCall,id}).cancel=cancel=cancel||function(id){clearTimeout(id)},exports=raf,module.exports=exports}),Tween=createCommonjsModule(function(module,exports){exports=Emitter.extend({className:"Tween",initialize:function(target){this.callSuper(Emitter,"initialize",arguments),this._target=target,this._dest={},this._duration=0,this._progress=0,this._origin={},this._diff={},this._ease=easing.linear,this._state=new State("pause",{play:{from:"pause",to:"play"},pause:{from:"play",to:"pause"}})},to:function(props,duration,ease){var origin={},target=this._target,diff={};return ease=ease||this._ease,this._dest=props,this._duration=duration||this._duration,this._ease=isFn(ease)?ease:easing[ease],each(props,function(val,key){origin[key]=target[key],diff[key]=val-origin[key]}),this._origin=origin,this._diff=diff,this},progress:function(progress){var ease=this._ease,target=this._target,origin=this._origin,diff=this._diff,dest=this._dest;return null!=progress?(progress=progress<1?progress:1,this._progress=progress,each(dest,function(val,key){target[key]=origin[key]+diff[key]*ease(progress)}),this.emit("update",target),this):this._progress},play:function(){var startTime,progress,duration,target,self,state=this._state;if(!state.is("play"))return state.play(),startTime=now(),progress=this._progress,duration=this._duration*(1-progress),target=this._target,self=this,raf_1(function render(){if(!state.is("pause")){var time=now();if(self.progress(progress+(time-startTime)/duration),1===self._progress)return state.pause(),void self.emit("end",target);raf_1(render)}}),this},pause:function(){var state=this._state;if(!state.is("pause"))return state.pause(),this},paused:function(){return this._state.is("pause")}}),module.exports=exports}),query=createCommonjsModule(function(module,exports){exports={parse:function(str){var ret={};return str=trim(str).replace(regIllegalChars,""),each(str.split("&"),function(param){var param=param.split("="),key=param.shift(),param=0<param.length?param.join("="):null,key=decodeURIComponent(key),param=decodeURIComponent(param);isUndef(ret[key])?ret[key]=param:isArr(ret[key])?ret[key].push(param):ret[key]=[ret[key],param]}),ret},stringify:function(obj,arrKey){return filter(map(obj,function(val,key){return isObj(val)&&isEmpty(val)?"":isArr(val)?exports.stringify(val,key):(arrKey?encodeURIComponent(arrKey):encodeURIComponent(key))+"="+encodeURIComponent(val)}),function(str){return 0<str.length}).join("&")}};var regIllegalChars=/^(\?|#|&)/g;module.exports=exports}),Url=createCommonjsModule(function(module,exports){exports=Class({className:"Url",initialize:function(url){!url&&isBrowser&&(url=window.location.href),extend(this,exports.parse(url||""))},setQuery:function(name,val){var query=this.query;return isObj(name)?each(name,function(val,key){query[key]=toStr(val)}):query[name]=toStr(val),this},rmQuery:function(name){var query=this.query;return isArr(name)||(name=toArr(name)),each(name,function(key){delete query[key]}),this},toString:function(){return exports.stringify(this)}},{parse:function(url){var ret={protocol:"",auth:"",hostname:"",hash:"",query:{},port:"",pathname:"",slashes:!1},rest=trim(url),url=!1,proto=rest.match(regProto);if(proto&&(proto=proto[0],ret.protocol=proto.toLowerCase(),rest=rest.substr(proto.length)),proto&&(url="//"===rest.substr(0,2))&&(rest=rest.slice(2),ret.slashes=!0),url){for(var proto=rest,hostEnd=-1,i=0,len=hostEndingChars.length;i<len;i++){var pos=rest.indexOf(hostEndingChars[i]);-1!==pos&&(-1===hostEnd||pos<hostEnd)&&(hostEnd=pos)}-1<hostEnd&&(proto=rest.slice(0,hostEnd),rest=rest.slice(hostEnd));url=proto.lastIndexOf("@"),url=(-1!==url&&(ret.auth=decodeURIComponent(proto.slice(0,url)),proto=proto.slice(url+1)),(ret.hostname=proto).match(regPort));url&&(":"!==(url=url[0])&&(ret.port=url.substr(1)),ret.hostname=proto.substr(0,proto.length-url.length))}proto=rest.indexOf("#"),-1!==proto&&(ret.hash=rest.substr(proto),rest=rest.slice(0,proto)),url=rest.indexOf("?");return-1!==url&&(ret.query=query.parse(rest.substr(url+1)),rest=rest.slice(0,url)),ret.pathname=rest||"/",ret},stringify:function(obj){var ret=obj.protocol+(obj.slashes?"//":"")+(obj.auth?encodeURIComponent(obj.auth)+"@":"")+obj.hostname+(obj.port?":"+obj.port:"")+obj.pathname;return isEmpty(obj.query)||(ret+="?"+query.stringify(obj.query)),obj.hash&&(ret+=obj.hash),ret}});var regProto=/^([a-z0-9.+-]+:)/i,regPort=/:[0-9]*$/,hostEndingChars=["/","?","#"];module.exports=exports}),isBool=createCommonjsModule(function(module,exports){module.exports=function(val){return!0===val||!1===val}}),Validator=createCommonjsModule(function(module,exports){exports=Class({className:"Validator",initialize:function(options){this._options=options,this._optKeys=keys(options)},validate:function(obj){obj=obj||{};for(var options=this._options,objKeys=this._optKeys,i=0,len=objKeys.length;i<len;i++){var key=objKeys[i],key=this._validateVal(safeGet(obj,key),options[key],key);if(!0!==key)return key}return!0},_validateVal:function(val,rules,objKey){var plugins=exports.plugins;if(isFn(rules))return rules(val);for(var ruleKeys=keys(rules),i=0,len=ruleKeys.length;i<len;i++){var key=ruleKeys[i],config=rules[key],result=!0,key=(isFn(config)&&(result=config(val,objKey)),plugins[key]);if(!0!==(result=key?key(val,objKey,config):result))return result}return!0}},{plugins:{required:function(val,key,config){return!config||!isUndef(val)||key+" is required"},number:function(val,key,config){return!(config&&!isUndef(val)&&!isNum(val))||key+" should be a number"},boolean:function(val,key,config){return!(config&&!isUndef(val)&&!isBool(val))||key+" should be a boolean"},string:function(val,key,config){return!(config&&!isUndef(val)&&!isStr(val))||key+" should be a string"},regexp:function(val,key,config){return!(isStr(val)&&!config.test(val))||key+" should match given regexp "+config.toString()}},addPlugin:function(name,plugin){exports.plugins[name]=plugin}}),module.exports=exports}),max=createCommonjsModule(function(module,exports){module.exports=function(){for(var arr=arguments,ret=arr[0],i=1,len=arr.length;i<len;i++)ret<arr[i]&&(ret=arr[i]);return ret}}),gcd=createCommonjsModule(function(module,exports){module.exports=exports=function(a,b){return 0===b?a:exports(b,a%b)}}),Wrr=createCommonjsModule(function(module,exports){exports=Class({initialize:function(){this._peers=[]},set:function(val,weight){for(var peers=this._peers,size=this.size,i=0;i<size;i++){var peer=peers[i];if(peer.val===val)return peer.weight=weight,void this._reset()}peers.push({val:val,weight:weight}),this._reset()},get:function(val){for(var peers=this._peers,size=this.size,i=0;i<size;i++){var peer=peers[i];if(peer.val===val)return peer.weight}},remove:function(val){this._peers=filter(this._peers,function(peer){return peer.val!==val}),this._reset()},next:function(){var peers=this._peers,size=this.size;if(0!==size)for(;;){if(this._i=(this._i+1)%size,0===this._i&&(this._cw=this._cw-this._gcdS,this._cw<=0&&(this._cw=this._maxS)),0===this._cw)return;if(peers[this._i].weight>=this._cw)return peers[this._i].val}},clear:function(){this._peers=[],this._reset()},_reset:function(){var peers=this._peers,peers=(this.size=peers.length,map(peers,function(peer){return peer.weight}));this._i=-1,this._cw=0,this._maxS=max.apply(null,peers),this._gcdS=reduce(peers,function(prev,weight){return gcd(prev,weight)},0)}}),module.exports=exports}),abbrev=createCommonjsModule(function(module,exports){exports=restArgs(function(names){for(var ret={},idleMap={},i=0,len=(names=names.sort(isSorted.defComparator)).length;i<len;i++){var str=names[i],nextStr=names[i+1]||"";if(str!==nextStr)for(var start=!1,abbrev="",j=0,strLen=str.length;j<strLen;j++)abbrev+=str[j],(start=start||str[j]===nextStr[j]&&j!==strLen-1?start:!0)?ret[abbrev]||idleMap[abbrev]||(ret[abbrev]=str):idleMap[abbrev]=str}return ret}),module.exports=exports}),after=createCommonjsModule(function(module,exports){module.exports=function(n,fn){return function(){if(--n<1)return fn.apply(this,arguments)}}}),ajax=createCommonjsModule(function(module,exports){function parseArgs(url,data,success,dataType){return isFn(data)&&(dataType=success,success=data,data={}),{url:url,data:data,success:success,dataType:dataType}}(exports=function(options){defaults(options,exports.setting);var abortTimeout,type=options.type,url=options.url,data=options.data,dataType=options.dataType,success=options.success,error=options.error,timeout=options.timeout,complete=options.complete,xhr=options.xhr();return xhr.onreadystatechange=function(){if(4===xhr.readyState){clearTimeout(abortTimeout);var status=xhr.status;if(200<=status&&status<300||304===status){status=xhr.responseText,"xml"===dataType&&(status=xhr.responseXML);try{"json"===dataType&&(status=JSON.parse(status))}catch(e){}success(status,xhr)}else error(xhr);complete(xhr)}},"GET"===type?(data=query.stringify(data),url+=-1<url.indexOf("?")?"&"+data:"?"+data):"application/x-www-form-urlencoded"===options.contentType?isObj(data)&&(data=query.stringify(data)):"application/json"===options.contentType&&isObj(data)&&(data=JSON.stringify(data)),xhr.open(type,url,!0),xhr.setRequestHeader("Content-Type",options.contentType),0<timeout&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=noop,xhr.abort(),error(xhr,"timeout"),complete(xhr)},timeout)),xhr.send("GET"===type?null:data),xhr}).setting={type:"GET",success:noop,error:noop,complete:noop,dataType:"json",contentType:"application/x-www-form-urlencoded",data:{},xhr:function(){return new XMLHttpRequest},timeout:0},exports.get=function(){return exports(parseArgs.apply(null,arguments))},exports.post=function(){var options=parseArgs.apply(null,arguments);return options.type="POST",exports(options)},module.exports=exports}),ajax_1=ajax.setting,ajax_2=ajax.get,ajax_3=ajax.post,arrToMap=createCommonjsModule(function(module,exports){module.exports=function(arr,val){isUndef(val)&&(val=!0);var _isFn=isFn(val),ret={};return each(arr,function(key){ret[key]=_isFn?val(key):val}),ret}}),base64=createCommonjsModule(function(module,exports){exports={encode:function(bytes){var ret=[],len=bytes.length,remain=len%3;len-=remain;for(var num,tmp,i=0;i<len;i+=3)ret.push((num=(bytes[i]<<16)+(bytes[i+1]<<8)+bytes[i+2],code[num>>18&63]+code[num>>12&63]+code[num>>6&63]+code[63&num]));return len=bytes.length,1==remain?(tmp=bytes[len-1],ret.push(code[tmp>>2]),ret.push(code[tmp<<4&63]),ret.push("==")):2==remain&&(tmp=(bytes[len-2]<<8)+bytes[len-1],ret.push(code[tmp>>10]),ret.push(code[tmp>>4&63]),ret.push(code[tmp<<2&63]),ret.push("=")),ret.join("")},decode:function(str){for(var str2,str3,str4,tmp,remain=0,ret=("="===str[(len=str.length)-2]?remain=2:"="===str[len-1]&&(remain=1),new Array(3*len/4-remain)),len=0<remain?len-4:len,i=0,j=0;i<len;i+=4){str1=str[i],str2=str[i+1],str3=str[i+2],str4=str[i+3];var str1=codeMap[str1.charCodeAt(0)]<<18|codeMap[str2.charCodeAt(0)]<<12|codeMap[str3.charCodeAt(0)]<<6|codeMap[str4.charCodeAt(0)];ret[j++]=str1>>16&255,ret[j++]=str1>>8&255,ret[j++]=255&str1}return 2===remain?(tmp=codeMap[str.charCodeAt(i)]<<2|codeMap[str.charCodeAt(i+1)]>>4,ret[j++]=255&tmp):1===remain&&(tmp=codeMap[str.charCodeAt(i)]<<10|codeMap[str.charCodeAt(i+1)]<<4|codeMap[str.charCodeAt(i+2)]>>2,ret[j++]=tmp>>8&255,ret[j++]=255&tmp),ret}};for(var codeMap=[],code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=code.length;i<len;i++)codeMap[code.charCodeAt(i)]=i;module.exports=exports}),atob=createCommonjsModule(function(module,exports){exports=isNode?function(str){return new Buffer(str,"base64").toString("binary")}:root.atob||function(str){return map(base64.decode(str),function(c){return String.fromCharCode(c)}).join("")},module.exports=exports}),binarySearch=createCommonjsModule(function(module,exports){module.exports=function(arr,val){for(var cmp=2<arguments.length&&void 0!==arguments[2]?arguments[2]:isSorted.defComparator,startIdx=0,endIdx=arr.length-1;startIdx<=endIdx;){var middleIdx=startIdx+Math.floor((endIdx-startIdx)/2),middleVal=arr[middleIdx];if(0===cmp(middleVal,val))return middleIdx;cmp(middleVal,val)<0?startIdx=middleIdx+1:endIdx=middleIdx-1}return-1}}),btoa=createCommonjsModule(function(module,exports){exports=isNode?function(str){return new Buffer(str,"binary").toString("base64")}:root.btoa||function(str){return base64.encode(map(str,function(c){return c.charCodeAt(0)}))},module.exports=exports}),bubbleSort=createCommonjsModule(function(module,exports){module.exports=function(arr){for(var cmp=1<arguments.length&&void 0!==arguments[1]?arguments[1]:isSorted.defComparator,i=0,len=arr.length;i<len;i++)for(var j=i;0<j;j--)cmp(arr[j],arr[j-1])<0&&swap(arr,j,j-1);return arr}}),chunk=createCommonjsModule(function(module,exports){module.exports=function(arr,size){var ret=[];size=size||1;for(var i=0,len=Math.ceil(arr.length/size);i<len;i++){var start=i*size;ret.push(arr.slice(start,start+size))}return ret}}),ucs2=createCommonjsModule(function(module,exports){module.exports={encode:function(arr){return arr.length<32768?String.fromCodePoint.apply(String,arr):map(chunk(arr,32767),function(nums){return String.fromCodePoint.apply(String,nums)}).join("")},decode:function(str){for(var ret=[],i=0,len=str.length;i<len;){var tail,c=str.charCodeAt(i++);55296<=c&&c<=56319&&i<len?56320==(64512&(tail=str.charCodeAt(i++)))?ret.push(((1023&c)<<10)+(1023&tail)+65536):(ret.push(c),i--):ret.push(c)}return ret}}}),utf8=createCommonjsModule(function(module,exports){var byteArr,byteIdx,byteCount,codePoint,bytesSeen,bytesNeeded,lowerBoundary,upperBoundary,fromCharCode=String.fromCharCode;function goBack(){var start=byteIdx-bytesSeen-1;return byteIdx=1+start,bytesSeen=bytesNeeded=codePoint=0,lowerBoundary=128,upperBoundary=191,byteArr[start]}module.exports={encode:function(str){for(var codePoints=ucs2.decode(str),byteArr="",i=0,len=codePoints.length;i<len;i++)byteArr+=function(codePoint){if(0==(4294967168&codePoint))return fromCharCode(codePoint);var count,offset,ret="";0==(4294965248&codePoint)?(count=1,offset=192):0==(4294901760&codePoint)?(count=2,offset=224):0==(4292870144&codePoint)&&(count=3,offset=240);ret+=fromCharCode((codePoint>>6*count)+offset);for(;0<count;)ret+=fromCharCode(128|63&codePoint>>6*(count-1)),count--;return ret}(codePoints[i]);return byteArr},decode:function(str,safe){byteArr=ucs2.decode(str),byteIdx=0,byteCount=byteArr.length,bytesNeeded=bytesSeen=codePoint=0,lowerBoundary=128,upperBoundary=191;for(var tmp,codePoints=[];!1!==(tmp=function(safe){for(;;){if(byteCount<=byteIdx&&bytesNeeded){if(safe)return goBack();throw new Error("Invalid byte index")}if(byteIdx===byteCount)return!1;var tmp,byte=byteArr[byteIdx];if(byteIdx++,bytesNeeded){if(byte<lowerBoundary||upperBoundary<byte){if(safe)return byteIdx--,goBack();throw new Error("Invalid continuation byte")}if(lowerBoundary=128,upperBoundary=191,codePoint=codePoint<<6|63&byte,++bytesSeen===bytesNeeded)return tmp=codePoint,bytesSeen=bytesNeeded=codePoint=0,tmp}else{if(0==(128&byte))return byte;if(192==(224&byte))bytesNeeded=1,codePoint=31&byte;else if(224==(240&byte))224===byte&&(lowerBoundary=160),237===byte&&(upperBoundary=159),bytesNeeded=2,codePoint=15&byte;else{if(240!=(248&byte)){if(safe)return goBack();throw new Error("Invalid UTF-8 detected")}240===byte&&(lowerBoundary=144),244===byte&&(upperBoundary=143),bytesNeeded=3,codePoint=7&byte}}}}(safe));)codePoints.push(tmp);return ucs2.encode(codePoints)}}}),bytesToStr=createCommonjsModule(function(module,exports){module.exports=function(bytes){var encoding=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"utf8";if("hex"===encoding)return hex.encode(bytes);if("base64"===encoding)return base64.encode(bytes);for(var str=[],i=0,len=bytes.length;i<len;i++)str.push(String.fromCharCode(bytes[i]));return str=str.join(""),str="utf8"===encoding?utf8.decode(str):str}}),bytesToWords=createCommonjsModule(function(module,exports){module.exports=function(bytes){for(var words=[],i=0,len=bytes.length;i<len;i++)words[i>>>2]|=bytes[i]<<24-i%4*8;return words}}),callbackify=createCommonjsModule(function(module,exports){module.exports=function(fn){return restArgs(function(args){var cb=args.pop();fn.apply(this,args).then(function(value){cb(null,value)},function(err){null===err&&(err=new Error),cb(err)})})}}),capitalize=createCommonjsModule(function(module,exports){module.exports=function(str){return str.charAt(0).toUpperCase()+str.substring(1).toLowerCase()}}),size=createCommonjsModule(function(module,exports){module.exports=function(obj){return(isArrLike(obj)?obj:keys(obj)).length}}),longest=createCommonjsModule(function(module,exports){module.exports=function(arr){if(!(arr.length<1)){for(var ret=arr[0],retSize=size(arr[0]),i=1,len=arr.length;i<len;i++){var elSize=size(arr[i]);retSize<elSize&&(ret=arr[i],retSize=elSize)}return ret}}}),lpad=createCommonjsModule(function(module,exports){module.exports=function(str,len,chars){var strLen=(str=toStr(str)).length;return chars=chars||" ",str=strLen<len?(repeat(chars,len-strLen)+str).slice(-len):str}}),centerAlign=createCommonjsModule(function(module,exports){var regLineBreak=/\n/g,floor=Math.floor;module.exports=function(str,width){var ret=str;return isArr(ret)||(ret=ret.split(regLineBreak)),isUndef(width)&&(width=longest(str)),(ret=map(ret,function(str){var len=str.length;return lpad(str,floor((width-len)/2)+len)})).join("\n")}}),char_1=createCommonjsModule(function(module,exports){module.exports=function(num){return String.fromCodePoint(num)}}),className=createCommonjsModule(function(module,exports){module.exports=exports=function(){var ret=[];return each(arguments,function(arg){if(arg)return isStr(arg)||isNum(arg)?ret.push(arg):isArr(arg)?ret.push(exports.apply(null,arg)):void(isObj(arg)&&each(arg,function(val,key){val&&ret.push(key)}))}),ret.join(" ")}}),_escape=createCommonjsModule(function(module,exports){var map=(exports=function(str){return regTest.test(str)?str.replace(regReplace,replaceFn):str}).map={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},regSrc="(?:"+keys(map).join("|")+")",regTest=new RegExp(regSrc),regReplace=new RegExp(regSrc,"g"),replaceFn=function(match){return map[match]};module.exports=exports}),_escape_1=_escape.map,escapeJsStr=createCommonjsModule(function(module,exports){var regEscapeChars=/["'\\\n\r\u2028\u2029]/g;module.exports=function(str){return toStr(str).replace(regEscapeChars,function(char){switch(char){case'"':case"'":case"\\":return"\\"+char;case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})}}),template=createCommonjsModule(function(module,exports){var regMatcher=/<%-([\s\S]+?)%>|<%=([\s\S]+?)%>|<%([\s\S]+?)%>|$/g;module.exports=function(str,util){util?defaults(util,{escape:_escape}):util="object"==typeof _?_:{escape:_escape};var index=0,src="__p+='",render=(str.replace(regMatcher,function(match,escape,interpolate,evaluate,offset){return src+=escapeJsStr(str.slice(index,offset)),index=offset+match.length,escape?src+="'+\n((__t=(".concat(escape,"))==null?'':util.escape(__t))+\n'"):interpolate?src+="'+\n((__t=(".concat(interpolate,"))==null?'':__t)+\n'"):evaluate&&(src+="';\n".concat(evaluate,"\n__p+='")),match}),src+="';\n",src="with(obj||{}){\n".concat(src,"}\n"),src="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n".concat(src,"return __p;\n"),new Function("obj","util",src));return function(data){return render.call(null,data,util)}}}),rpad=createCommonjsModule(function(module,exports){module.exports=function(str,len,chars){var strLen=(str=toStr(str)).length;return chars=chars||" ",str=strLen<len?(str+repeat(chars,len-strLen)).slice(0,len):str}}),ansiColor=createCommonjsModule(function(module,exports){function genColor(codes){const open=`[${codes[0]}m`,close=`[${codes[1]}m`;return input=>open+input+close}exports={black:genColor([0,0]),red:genColor([31,39]),green:genColor([32,39]),yellow:genColor([33,39]),blue:genColor([34,39]),magenta:genColor([35,39]),cyan:genColor([36,39]),white:genColor([37,39]),gray:genColor([90,39]),grey:genColor([90,39]),bgBlack:genColor([40,49]),bgRed:genColor([41,49]),bgGreen:genColor([42,49]),bgYellow:genColor([43,49]),bgBlue:genColor([44,49]),bgMagenta:genColor([45,49]),bgCyan:genColor([46,49]),bgWhite:genColor([47,49]),blackBright:genColor([90,39]),redBright:genColor([91,39]),greenBright:genColor([92,39]),yellowBright:genColor([93,39]),blueBright:genColor([94,39]),magentaBright:genColor([95,39]),cyanBright:genColor([96,39]),whiteBright:genColor([97,39]),bgBlackBright:genColor([100,49]),bgRedBright:genColor([101,49]),bgGreenBright:genColor([102,49]),bgYellowBright:genColor([103,49]),bgBlueBright:genColor([104,49]),bgMagentaBright:genColor([105,49]),bgCyanBright:genColor([106,49]),bgWhiteBright:genColor([107,49])},module.exports=exports}),cliHelp=createCommonjsModule(function(module,exports){exports=function(data){if((data=cloneDeep(data)).usage=toArr(data.usage),data.commands)return cmdNameWidths=map(data.commands,function(command){return strWidth(command.name)}),data.maxNameWidth=max.apply(null,cmdNameWidths),helpTpl(data);each(data.options,function(option){option.name=(option.shorthand?"-"+option.shorthand+", ":"    ")+"--"+option.name});var cmdNameWidths=map(data.options,function(option){return strWidth(option.name)});return data.maxNameWidth=max.apply(null,cmdNameWidths),cmdTpl(data)};var tplUtil={each:each,rpad:function(text,len){return rpad(text,len," ")}},cmdTpl=(each(["yellow","green","cyan","red","white","magenta"],function(color){tplUtil[color]=function(text){return ansiColor[color](text)}}),template(["Usage:","","<% util.each(usage, function (value) { %>  <%=util.cyan(name)%> <%=value%><%='\\n'%><% }); %>","<% if (options) { %>Options:","","<%     util.each(options, function (option) { %>  <%=util.yellow(util.rpad(option.name, maxNameWidth))%> <%=option.desc%><%='\\n'%><% }); %>","<% } %>Description:","","  <%=desc%>"].join("\n"),tplUtil)),helpTpl=template(["Usage:","","<% util.each(usage, function (value) { %>  <%=util.cyan(name)%> <%=value%><%='\\n'%><% }); %>","Commands:","","<% util.each(commands, function (command) { %>  <%=util.yellow(util.rpad(command.name, maxNameWidth))%> <%=command.desc%><%='\\n'%><% }); %>","Run '<%=util.cyan(name + ' help <command>')%>' for more information on a specific command"].join("\n"),tplUtil);module.exports=exports}),toNum=createCommonjsModule(function(module,exports){module.exports=function(val){return isNum(val)?val:(isObj(val)&&(temp=isFn(val.valueOf)?val.valueOf():val,val=isObj(temp)?temp+"":temp),!isStr(val)&&0===val?val:+val);var temp}}),toInt=createCommonjsModule(function(module,exports){module.exports=function(val){return val?(val=toNum(val))-val%1:0===val?val:0}}),cmpVersion=createCommonjsModule(function(module,exports){module.exports=function(v1,v2){v1=v1.split("."),v2=v2.split(".");for(var len=max(v1.length,v2.length),i=0;i<len;i++){var num1=toInt(v1[i]),num2=toInt(v2[i]);if(num2<num1)return 1;if(num1<num2)return-1}return 0}}),combine=createCommonjsModule(function(module,exports){module.exports=function(keys,values){for(var ret={},i=0,len=keys.length;i<len;i++)ret[keys[i]]=values[i];return ret}}),compact=createCommonjsModule(function(module,exports){module.exports=function(arr){return filter(arr,function(val){return!!val})}}),compose=createCommonjsModule(function(module,exports){exports=restArgs(function(fnList){return function(){for(var i=fnList.length-1,result=fnList[i].apply(this,arguments);i--;)result=fnList[i].call(this,result);return result}}),module.exports=exports}),loadImg=createCommonjsModule(function(module,exports){module.exports=function(src,cb){cb=cb||noop;var img=new Image;img.onload=function(){cb(null,img)},img.onerror=function(err){cb(err)},img.src=src}}),isBlob=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object Blob]"===objToStr(val)}}),isFile=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object File]"===objToStr(val)}}),createUrl=createCommonjsModule(function(module,exports){var defOpts={type:"text/plain"};module.exports=function(data,options){return defaults(options=options||{},defOpts),isBlob(data)||isFile(data)||(data=new Blob$1(toArr(data),options)),URL.createObjectURL(data)}}),compressImg=createCommonjsModule(function(module,exports){var defOptions={maxWidth:1/0,maxHeight:1/0,quality:.8},floor=Math.floor;module.exports=function(file,options,cb){isFn(options)&&(cb=options,options={}),cb=cb||noop,defaults(options=options||{},defOptions),options.mimeType=options.mimeType||file.type,isStr(file)?options.isUrl=!0:file=createUrl(file),loadImg(file,function(err,img){if(err)return cb(err);!function(img,options,cb){var canvas=document.createElement("canvas"),ctx=canvas.getContext("2d"),width=img.width,height=img.height,ratio=width/height,maxWidth=options.maxWidth,maxHeight=options.maxHeight;options.width||options.height?options.width?(width=options.width,height=width/ratio):options.height&&(height=options.height,width=height*ratio):(maxWidth<width&&(height=(width=maxWidth)/ratio),maxHeight<height&&(width=(height=maxHeight)*ratio));width=floor(width),height=floor(height),canvas.width=width,canvas.height=height,ctx.drawImage(img,0,0,width,height),URL&&options.isUrl&&URL.revokeObjectURL(img.src);if(canvas.toBlob)try{canvas.toBlob(function(file){cb(null,file)},options.mimeType,options.quality)}catch(e){cb(e)}else cb(new Error("Canvas toBlob is not supported"))}(img,options,cb)})}}),concat=createCommonjsModule(function(module,exports){module.exports=function(){for(var args=toArr(arguments),ret=[],i=0,len=args.length;i<len;i++)ret=ret.concat(toArr(args[i]));return ret}}),isArrBuffer=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object ArrayBuffer]"===objToStr(val)}}),convertBin=createCommonjsModule(function(module,exports){(exports=function(bin,t){if(t=lowerCase(t),isStr(bin))result=new Uint8Array(base64.decode(bin));else if(isArrBuffer(bin))bin=bin.slice(0),result=new Uint8Array(bin);else if(isArr(bin))result=new Uint8Array(bin);else if("uint8array"===type(bin))result=bin.slice(0);else if(isBuffer(bin))for(var result=new Uint8Array(bin.length),i=0;i<bin.length;i++)result[i]=bin[i];if(result)switch(t){case"base64":result=base64.encode(result);break;case"arraybuffer":result=result.buffer;break;case"array":result=[].slice.call(result);break;case"buffer":result=Buffer.from(result);break;case"blob":result=new Blob([result.buffer])}return result}).blobToArrBuffer=function(blob){return new Promise(function(resolve,reject){var fileReader=new FileReader;fileReader.onload=function(e){resolve(e.target.result)},fileReader.onerror=function(err){reject(err)},fileReader.readAsArrayBuffer(blob)})},module.exports=exports}),convertBin_1=convertBin.blobToArrBuffer,decodeUriComponent=createCommonjsModule(function(module,exports){function hexToInt(numStr){return+("0x"+numStr)}var regMatcher=/(%[a-f0-9]{2})+/gi;module.exports=function(str){try{return decodeURIComponent(str)}catch(e){var matches=str.match(regMatcher);return matches?(each(matches,function(match){str=str.replace(match,function(str){str=str.split("%").slice(1);var bytes=map(str,hexToInt);return str=ucs2.encode(bytes),str=utf8.decode(str,!0)}(match))}),str):str}}}),cookie=createCommonjsModule(function(module,exports){var defOpts={path:"/"};function setCookie(key,val,options){var expires;if(!isUndef(val))return options=defaults(options=options||{},defOpts),isNum(options.expires)&&((expires=new Date).setMilliseconds(expires.getMilliseconds()+864e5*options.expires),options.expires=expires),val=encodeURIComponent(val),key=encodeURIComponent(key),document.cookie=[key,"=",val,options.expires&&"; expires="+options.expires.toUTCString(),options.path&&"; path="+options.path,options.domain&&"; domain="+options.domain,options.secure?"; secure":""].join(""),exports;for(var cookies=document.cookie?document.cookie.split("; "):[],result=key?void 0:{},i=0,len=cookies.length;i<len;i++){var parts=(c=cookies[i]).split("="),name=decodeUriComponent(parts.shift()),c=parts.join("=");if(c=decodeUriComponent(c),key===name){result=c;break}key||(result[name]=c)}return result}exports={get:setCookie,set:setCookie,remove:function(key,options){return(options=options||{}).expires=-1,setCookie(key,"",options)}},module.exports=exports}),copy=createCommonjsModule(function(module,exports){module.exports=function(text,cb){cb=cb||noop;var el=document.createElement("textarea"),body=document.body;extend(el.style,{fontSize:"12pt",border:"0",padding:"0",margin:"0",position:"absolute",left:"-9999px"}),el.value=text,body.appendChild(el),el.setAttribute("readonly",""),el.select(),el.setSelectionRange(0,text.length);try{document.execCommand("copy"),cb()}catch(e){cb(e)}finally{body.removeChild(el)}}}),strToBytes=createCommonjsModule(function(module,exports){module.exports=function(str){var encoding=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"utf8";if("hex"===encoding)return hex.decode(str);if("base64"===encoding)return base64.decode(str);for(var bytes=[],i=0,len=(str="utf8"===encoding?utf8.encode(str):str).length;i<len;i++)bytes.push(255&str.charCodeAt(i));return bytes}}),crc1=createCommonjsModule(function(module,exports){(exports=function(input,previous){return exports.signed(input,previous)>>>0}).signed=function(input,previous){for(var previous=~~previous,accum=0,i=0,len=(input=isStr(input)?strToBytes(input):input).length;i<len;i++)accum+=input[i];return(previous+=accum%256)%256},module.exports=exports}),crc1_1=crc1.signed,crc16=createCommonjsModule(function(module,exports){var TABLE=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(TABLE=new Int32Array(TABLE)),(exports=function(input,previous){return exports.signed(input,previous)>>>0}).signed=function(input,previous){for(var crc=~~previous,i=0,len=(input=isStr(input)?strToBytes(input):input).length;i<len;i++)var byte=input[i],crc=65535&(TABLE[255&(crc^byte)]^crc>>8);return crc},module.exports=exports}),crc16_1=crc16.signed,crc32=createCommonjsModule(function(module,exports){for(var TABLE=[],n=0;n<256;n++){for(var c=n,k=0;k<8;k++)1&c?c=3988292384^c>>>1:c>>>=1;TABLE[n]=c>>>0}"undefined"!=typeof Int32Array&&(TABLE=new Int32Array(TABLE)),(exports=function(input,previous){return exports.signed(input,previous)>>>0}).signed=function(input,previous){for(var crc=0===previous?0:-1^~~previous,i=0,len=(input=isStr(input)?strToBytes(input):input).length;i<len;i++)var byte=input[i],crc=TABLE[255&(crc^byte)]^crc>>>8;return-1^crc},module.exports=exports}),crc32_1=crc32.signed,crc8=createCommonjsModule(function(module,exports){var TABLE=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];"undefined"!=typeof Int32Array&&(TABLE=new Int32Array(TABLE)),(exports=function(input,previous){return exports.signed(input,previous)>>>0}).signed=function(input,previous){for(var crc=~~previous,i=0,len=(input=isStr(input)?strToBytes(input):input).length;i<len;i++)var byte=input[i],crc=255&TABLE[255&(crc^byte)];return crc},module.exports=exports}),crc8_1=crc8.signed,css=createCommonjsModule(function(module,exports){exports={parse:function(css){return new Parser(css).parse()},stringify:function(stylesheet,options){return new Compiler(stylesheet,options).compile()}};var regComments=/(\/\*[\s\S]*?\*\/)/gi,regOpen=/^{\s*/,regClose=/^}/,regWhitespace=/^\s*/,regProperty=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,regValue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,regSelector=/^([^{]+)/,regSemicolon=/^[;\s]*/,regColon=/^:\s*/,regMedia=/^@media *([^{]+)/,regKeyframes=/^@([-\w]+)?keyframes\s*/,regFontFace=/^@font-face\s*/,regSupports=/^@supports *([^{]+)/,regIdentifier=/^([-\w]+)\s*/,regKeyframeSelector=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/,regComma=/^,\s*/,Parser=Class({initialize:function(css){this.input=stripCmt(css),this.open=this._createMatcher(regOpen),this.close=this._createMatcher(regClose),this.whitespace=this._createMatcher(regWhitespace),this.atImport=this._createAtRule("import"),this.atCharset=this._createAtRule("charset"),this.atNamespace=this._createAtRule("namespace")},parse:function(){return this.stylesheet()},stylesheet:function(){return{type:"stylesheet",rules:this.rules()}},rules:function(){var rule,rules=[];for(this.whitespace();this.input.length&&"}"!==this.input[0]&&(rule=this.atRule()||this.rule());)rules.push(rule),this.whitespace();return rules},atRule:function(){if("@"===this.input[0])return this.atKeyframes()||this.atMedia()||this.atSupports()||this.atImport()||this.atCharset()||this.atNamespace()||this.atFontFace()},atKeyframes:function(){if(matched=this.match(regKeyframes)){var vendor=matched[1]||"";if(!(matched=this.match(regIdentifier)))throw Error("@keyframes missing name");var matched=matched[1];if(!this.open())throw Error("@keyframes missing '{'");for(var keyframe,keyframes=[];keyframe=this.keyframe();)keyframes.push(keyframe);if(!this.close())throw Error("@keyframes missing '}'");return{type:"keyframes",name:matched,vendor:vendor,keyframes:keyframes}}},keyframe:function(){for(var matched,selector=[];matched=this.match(regKeyframeSelector);)selector.push(matched[1]),this.match(regComma);if(selector.length)return this.whitespace(),{type:"keyframe",selector:selector.join(", "),declarations:this.declarations()}},atSupports:function(){var matched=this.match(regSupports);if(matched){matched=trim(matched[1]);if(!this.open())throw Error("@supports missing '{'");var rules=this.rules();if(!this.close())throw Error("@supports missing '}'");return{type:"supports",supports:matched,rules:rules}}},atFontFace:function(){if(this.match(regFontFace)){if(!this.open())throw Error("@font-face missing '{'");for(var declaration,declarations=[];declaration=this.declaration();)declarations.push(declaration);if(!this.close())throw Error("@font-face missing '}'");return{type:"font-face",declarations:declarations}}},atMedia:function(){var matched=this.match(regMedia);if(matched){matched=trim(matched[1]);if(!this.open())throw Error("@media missing '{'");this.whitespace();var rules=this.rules();if(!this.close())throw Error("@media missing '}'");return{type:"media",media:matched,rules:rules}}},rule:function(){var selector=this.selector();if(!selector)throw Error("missing selector");return{type:"rule",selector:selector,declarations:this.declarations()}},declarations:function(){var declaration,declarations=[];if(!this.open())throw Error("missing '{'");for(this.whitespace();declaration=this.declaration();)declarations.push(declaration);if(!this.close())throw Error("missing '}'");return this.whitespace(),declarations},declaration:function(){var property=this.match(regProperty);if(property){if(property=trim(property[0]),!this.match(regColon))throw Error("property missing ':'");var value=this.match(regValue);return this.match(regSemicolon),this.whitespace(),{type:"declaration",property:property,value:value?trim(value[0]):""}}},selector:function(){var matched=this.match(regSelector);if(matched)return trim(matched[0])},match:function(reg){reg=reg.exec(this.input);if(reg)return this.input=this.input.slice(reg[0].length),reg},_createMatcher:function(reg){var _this=this;return function(){return _this.match(reg)}},_createAtRule:function(name){var reg=new RegExp("^@"+name+"\\s*([^;]+);");return function(){var ret,matched=this.match(reg);if(matched)return ret={type:name},ret[name]=trim(matched[1]),ret}}}),Compiler=Class({initialize:function(input){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};defaults(options,{indent:"  "}),this.input=input,this.indentLevel=0,this.indentation=options.indent},compile:function(){return this.stylesheet(this.input)},stylesheet:function(node){return this.mapVisit(node.rules,"\n\n")},media:function(node){return"@media "+node.media+" {\n"+this.indent(1)+this.mapVisit(node.rules,"\n\n")+this.indent(-1)+"\n}"},keyframes:function(node){return"@".concat(node.vendor,"keyframes ")+node.name+" {\n"+this.indent(1)+this.mapVisit(node.keyframes,"\n")+this.indent(-1)+"\n}"},supports:function(node){return"@supports "+node.supports+" {\n"+this.indent(1)+this.mapVisit(node.rules,"\n\n")+this.indent(-1)+"\n}"},keyframe:function(node){return this.rule(node)},mapVisit:function(nodes,delimiter){for(var str="",i=0,len=nodes.length;i<len;i++){var node=nodes[i];str+=this[camelCase(node.type)](node),delimiter&&i<len-1&&(str+=delimiter)}return str},fontFace:function(node){return"@font-face {\n"+this.indent(1)+this.mapVisit(node.declarations,"\n")+this.indent(-1)+"\n}"},rule:function(node){return this.indent()+node.selector+" {\n"+this.indent(1)+this.mapVisit(node.declarations,"\n")+this.indent(-1)+"\n"+this.indent()+"}"},declaration:function(node){return this.indent()+node.property+": "+node.value+";"},import:function(node){return"@import ".concat(node.import,";")},charset:function(node){return"@charset ".concat(node.charset,";")},namespace:function(node){return"@namespace ".concat(node.namespace,";")},indent:function(level){return level?(this.indentLevel+=level,""):repeat(this.indentation,this.indentLevel)}}),stripCmt=function(str){return str.replace(regComments,"")};module.exports=exports}),selector=createCommonjsModule(function(module,exports){var whitespace="[\\x20\\t\\r\\n\\f]",identifier="(?:\\\\[\\da-fA-F]{1,6}".concat(whitespace,"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+"),attributes="\\[".concat(whitespace,"*(").concat(identifier,")(?:").concat(whitespace,"*([*^$|!~]?=)").concat(whitespace,"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(").concat(identifier,"))|)").concat(whitespace,"*\\]"),pseudos="::?(".concat(identifier,")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|").concat(attributes,")*)|.*)\\)|)"),regComma=new RegExp("^".concat(whitespace,"*,").concat(whitespace,"*")),regCombinators=new RegExp("^".concat(whitespace,"*([>+~]|").concat(whitespace,")").concat(whitespace,"*")),matchExpr={id:{reg:new RegExp("^#(".concat(identifier,")")),value:function(raw){return raw.slice(1)},toStr:function(value){return"#".concat(value)}},class:{reg:new RegExp("^\\.(".concat(identifier,")")),value:function(raw){return raw.slice(1)},toStr:function(value){return".".concat(value)}},tag:{reg:new RegExp("^(".concat(identifier,"|[*])")),value:identity},attribute:{reg:new RegExp("^".concat(attributes)),value:function(raw){return raw.slice(1,raw.length-1)},toStr:function(value){return"[".concat(value,"]")}},pseudo:{reg:new RegExp("^".concat(pseudos)),value:identity}};each(matchExpr,function(item){item.value||(item.value=identity),item.toStr||(item.toStr=identity)}),module.exports={parse:function(selector){selector=trim(selector);for(var tokens,match,matched,groups=[];selector&&(matched&&!(match=regComma.exec(selector))||(match&&(selector=selector.slice(match[0].length)),tokens=[],groups.push(tokens)),matched=!1,(match=regCombinators.exec(selector))&&(matched=match.shift(),selector=selector.slice(matched.length),matched=(matched=trim(matched))||" ",tokens.push({value:matched,type:"combinator"})),each(matchExpr,function(_ref,type){var reg=_ref.reg,_ref=_ref.value;(match=reg.exec(selector))&&(matched=match.shift(),selector=selector.slice(matched.length),matched=trim(matched),tokens.push({value:_ref(matched),type:type}))}),matched););return groups},stringify:function(groups){return map(groups,function(group){return(group=map(group,function(_ref2){var type=_ref2.type,_ref2=_ref2.value;return"combinator"===type?" "===_ref2?_ref2:" ".concat(_ref2," "):matchExpr[type].toStr(_ref2)})).join("")}).join(", ")}}}),cssPriority=createCommonjsModule(function(module,exports){var PSEUDO_ELEMS=["first-letter","last-letter","first-line","last-line","first-child","last-child","before","after"];(exports=function(sel){var _ref=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},_ref$important=_ref.important,_ref$inlineStyle=_ref.inlineStyle,_ref$inlineStyle=void 0!==_ref$inlineStyle&&_ref$inlineStyle,_ref=_ref.position,ret=[0,0,0,0,0,void 0===_ref?0:_ref],_ref=(void 0!==_ref$important&&_ref$important&&(ret[0]=1),_ref$inlineStyle&&(ret[1]=1),selector.parse(sel)[0]);return each(_ref,function(_ref2){var type=_ref2.type,value=_ref2.value;switch(type){case"id":ret[2]++;break;case"class":case"attribute":ret[3]++;break;case"pseudo":contain(PSEUDO_ELEMS,value.replace(/:/g,""))?ret[4]++:startWith(value,"::")||ret[3]++;break;case"tag":"*"!==value&&ret[4]++}}),ret}).compare=function(p1,p2){return cmpVersion(p1.join("."),p2.join("."))},module.exports=exports}),cssPriority_1=cssPriority.compare,cssSupports=createCommonjsModule(function(module,exports){exports=memoize(function(name,value){return isUndef(value)?(name=camelCase(name),!isUndef(style[name])):(style.cssText="",style.cssText=name+":"+value,!!style.length)},function(name,value){return name+" "+value});var style=document.createElement("p").style;module.exports=exports}),curry=createCommonjsModule(function(module,exports){module.exports=function(fn){var len=fn.length;return function curriedFn(){var args=toArr(arguments);return args.length<len?function(){return curriedFn.apply(null,args.concat(toArr(arguments)))}:fn.apply(null,args)}}}),isDate=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object Date]"===objToStr(val)}}),dateFormat=createCommonjsModule(function(module,exports){var padZero=function(str){var len=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return lpad(toStr(str),len,"0")},regToken=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,regTimezone=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,regNum=/\d/,regTimezoneClip=/[^-+\dA-Z]/g;(exports=function(date,mask,utc,gmt){1===arguments.length&&isStr(date)&&!regNum.test(date)&&(mask=date,date=void 0),date=date||new Date,isDate(date)||(date=new Date(date));var maskSlice=(mask=toStr(exports.masks[mask]||mask||exports.masks.default)).slice(0,4),maskSlice=("UTC:"!==maskSlice&&"GMT:"!==maskSlice||(mask=mask.slice(4),utc=!0,"GMT:"===maskSlice&&(gmt=!0)),utc?"getUTC":"get"),d=date[maskSlice+"Date"](),D=date[maskSlice+"Day"](),m=date[maskSlice+"Month"](),y=date[maskSlice+"FullYear"](),H=date[maskSlice+"Hours"](),M=date[maskSlice+"Minutes"](),s=date[maskSlice+"Seconds"](),maskSlice=date[maskSlice+"Milliseconds"](),o=utc?0:date.getTimezoneOffset(),flags={d:d,dd:padZero(d),ddd:exports.i18n.dayNames[D],dddd:exports.i18n.dayNames[D+7],m:m+1,mm:padZero(m+1),mmm:exports.i18n.monthNames[m],mmmm:exports.i18n.monthNames[m+12],yy:toStr(y).slice(2),yyyy:y,h:H%12||12,hh:padZero(H%12||12),H:H,HH:padZero(H),M:M,MM:padZero(M),s:s,ss:padZero(s),l:padZero(maskSlice,3),L:padZero(Math.round(maskSlice/10)),t:H<12?"a":"p",tt:H<12?"am":"pm",T:H<12?"A":"P",TT:H<12?"AM":"PM",Z:gmt?"GMT":utc?"UTC":(toStr(date).match(regTimezone)||[""]).pop().replace(regTimezoneClip,""),o:(0<o?"-":"+")+padZero(100*Math.floor(Math.abs(o)/60)+Math.abs(o)%60,4),S:["th","st","nd","rd"][3<d%10?0:(d%100-d%10!=10)*d%10]};return mask.replace(regToken,function(match){return match in flags?flags[match]:match.slice(1,match.length-1)})}).masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},exports.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},module.exports=exports}),dateFormat_1=dateFormat.masks,dateFormat_2=dateFormat.i18n,debounce=createCommonjsModule(function(module,exports){module.exports=function(fn,wait,immediate){var timeout;return function(){var ctx=this,args=arguments;immediate||clearTimeout(timeout),immediate&&timeout||(timeout=setTimeout(function(){timeout=null,fn.apply(ctx,args)},wait))}}}),format=createCommonjsModule(function(module,exports){exports=restArgs(function(str,values){for(var ret="",i=0,len=str.length;i<len;i++){var c=str[i];if("%"===c&&0!==values.length){i++;var val=values.shift();switch(str[i]){case"i":case"d":ret+=toInt(val);break;case"f":ret+=toNum(val);break;case"s":ret+=toStr(val);break;case"o":ret+=function(obj){try{return JSON.stringify(obj)}catch(err){return"[Error Stringify]"}}(val);break;default:i--,values.unshift(val),ret+=c}}else ret+=c}return ret}),module.exports=exports}),ms=createCommonjsModule(function(module,exports){exports=function(str){var match;if(isStr(str))return(match=str.match(regStrTime))?toNum(match[1])*factor[match[2]||"ms"]:0;for(var num=str,suffix="ms",i=0,len=suffixList.length;i<len;i++)if(num>=factor[suffixList[i]]){suffix=suffixList[i];break}return+(num/factor[suffix]).toFixed(2)+suffix};var factor={ms:1,s:1e3},suffixList=(factor.m=60*factor.s,factor.h=60*factor.m,factor.d=24*factor.h,factor.y=365.25*factor.d,["y","d","h","m","s"]),regStrTime=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;module.exports=exports}),debug=createCommonjsModule(function(module,exports){var browserColors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],terminalColors=["black","red","green","yellow","blue","magenta","cyan","white","gray","grey","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright"];module.exports=function(name){var prevTime;function debug(){var duration,cur,args,style;debug.enabled&&(args=toArr(arguments),cur=now(),duration=ms(cur-(prevTime||cur)),prevTime=cur,cur=format.apply(null,args),args=debug.color,isBrowser?(style="color:"+args,console.log("%c"+name+" %c"+cur+" %c+"+duration,style,"color:inherit",style)):console.log(ansiColor[args](name)+": "+cur+ansiColor[args](" +"+duration)))}return debug.enabled=!0,debug.color=function(name){name=strHash(name);return isBrowser?browserColors[name%browserColors.length]:terminalColors[name%terminalColors.length]}(name),debug}}),deburr=createCommonjsModule(function(module,exports){var regComboMark=/[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]/g,regLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};module.exports=function(str){return str.replace(regLatin,function(key){return deburredLetters[key]}).replace(regComboMark,"")}}),define_1=createCommonjsModule(function(module,exports){var modules=(exports=function(name,requires,method){2===arguments.length&&(method=requires,requires=[]),function(name,requires,method){modules[name]={requires:toArr(requires),body:method}}(name,requires,method)})._modules={};module.exports=exports}),define_2=define_1._modules,defined=createCommonjsModule(function(module,exports){module.exports=function(){for(var i=0,len=arguments.length;i<len;i++)if(!isUndef(arguments[i]))return arguments[i]}}),deprecate=createCommonjsModule(function(module,exports){var localStorage;exports=isNode?eval("require")("util").deprecate:(localStorage=root.localStorage||memStorage,function(fn,msg){if(localStorage.getItem("noDeprecation"))return fn;var warned=!1;function deprecated(){warned||(warned=!0,console.warn(msg));for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return fn.apply(this,args)}return Object.setPrototypeOf(deprecated,fn),fn.prototype&&(deprecated.prototype=fn.prototype),deprecated}),module.exports=exports}),detectBrowser=createCommonjsModule(function(module,exports){exports=function(ua){var ieVer=getVer(ua=(ua=ua||(isBrowser?navigator.userAgent:"")).toLowerCase(),"msie ");if(ieVer)return{version:ieVer,name:"ie"};if(regIe11.test(ua))return{version:11,name:"ie"};for(var i=0,len=browsers.length;i<len;i++){var name=browsers[i],match=ua.match(regBrowsers[name]);if(null!=match)return match=toInt(match[1].split(".")[0]),{name:name,version:match="opera"===name?getVer(ua,"version/")||match:match}}return{name:"unknown",version:-1}};var regBrowsers={edge:/edge\/([0-9._]+)/,firefox:/firefox\/([0-9.]+)(?:\s|$)/,opera:/opera\/([0-9.]+)(?:\s|$)/,android:/android\s([0-9.]+)/,ios:/version\/([0-9._]+).*mobile.*safari.*/,safari:/version\/([0-9._]+).*safari/,chrome:/(?!chrom.*opr)chrom(?:e|ium)\/([0-9.]+)(:?\s|$)/},regIe11=/trident\/7\./,browsers=keys(regBrowsers);function getVer(ua,mark){var idx=ua.indexOf(mark);if(-1<idx)return toInt(ua.substring(idx+mark.length,ua.indexOf(".",idx)))}module.exports=exports}),detectMocha=createCommonjsModule(function(module,exports){var methods=["afterEach","after","beforeEach","before","describe","it"];module.exports=function(){for(var i=0,len=methods.length;i<len;i++){var method=methods[i];if("function"!=typeof root[method])return!1}return!0}}),detectOs=createCommonjsModule(function(module,exports){module.exports=function(ua){return ua=(ua=ua||(isBrowser?navigator.userAgent:"")).toLowerCase(),detect("windows phone")?"windows phone":detect("win")?"windows":detect("android")?"android":detect("ipad")||detect("iphone")||detect("ipod")?"ios":detect("mac")?"os x":detect("linux")?"linux":"unknown";function detect(keyword){return-1<ua.indexOf(keyword)}}}),flatten=createCommonjsModule(function(module,exports){module.exports=function(arr){return function flat(arr,res){var cur,len=arr.length,i=-1;for(;len--;)cur=arr[++i],isArr(cur)?flat(cur,res):res.push(cur);return res}(arr,[])}}),difference=createCommonjsModule(function(module,exports){exports=restArgs(function(arr,args){return args=flatten(args),filter(arr,function(val){return!contain(args,val)})}),module.exports=exports}),dotCase=createCommonjsModule(function(module,exports){module.exports=function(str){return splitCase(str).join(".")}}),download=createCommonjsModule(function(module,exports){module.exports=function(data,name,type){type=type||"text/plain";var el=document.createElement("a");el.setAttribute("href",createUrl(data,{type:type})),el.setAttribute("download",name),el.addEventListener("click",function(e){e.stopImmediatePropagation()}),document.body.appendChild(el),el.click(),document.body.removeChild(el)}}),durationFormat=createCommonjsModule(function(module,exports){var floor=Math.floor,padZero=function(str){var len=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return lpad(toStr(str),len,"0")},regToken=/d{1,2}|h{1,2}|m{1,2}|s{1,2}|l{1,2}|"[^"]*"|'[^']*'/g;module.exports=function(duration){var mask=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"hh:mm:ss",d=(duration=toInt(duration),floor(duration/864e5)),h=floor(duration/36e5)%24,m=floor(duration/6e4)%60,s=floor(duration/1e3)%60,l=floor(duration)%1e3,flags={d:d,h:h,hh:padZero(h),m:m,mm:padZero(m),s:s,ss:padZero(s),l:l,ll:padZero(l,3)};return mask.replace(regToken,function(match){return match in flags?flags[match]:match.slice(1,match.length-1)})}}),trigger=createCommonjsModule(function(module,exports){var defOpts={bubbles:!0,cancelable:!0};module.exports=function(el,type,opts){isStr(el)&&(opts=type,type=el,el=document),defaults(opts=opts||{},defOpts);var event=document.createEvent("Event");event.initEvent(type,opts.bubbles,opts.cancelable),delete opts.bubbles,delete opts.cancelable,extend(event,opts),el.dispatchEvent(event)}}),emulateTouch=createCommonjsModule(function(module,exports){var hasTouchSupport="ontouchstart"in root;function onMouse(type){return function(e){1===e.which&&trigger(e.target,type,{altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,touches:getActiveTouches(e),targetTouches:getActiveTouches(e),changedTouches:createTouchList(e)})}}function getActiveTouches(e){return"mouseup"==e.type?createTouchList():createTouchList(e)}function Touch(target,identifier,pos,deltaX,deltaY){deltaX=deltaX||0,deltaY=deltaY||0,this.identifier=identifier,this.target=target,this.clientX=pos.clientX+deltaX,this.clientY=pos.clientY+deltaY,this.screenX=pos.screenX+deltaX,this.screenY=pos.screenY+deltaY,this.pageX=pos.pageX+deltaX,this.pageY=pos.pageY+deltaY}function createTouchList(e){var touchList=[];return touchList.item=function(index){return this[index]||null},e&&touchList.push(new Touch(e.target,1,e,0,0)),touchList}module.exports=function(){var el=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document;hasTouchSupport||el._isEmulated||(el._isEmulated=!0,el.addEventListener("mousedown",onMouse("touchstart"),!0),el.addEventListener("mousemove",onMouse("touchmove"),!0),el.addEventListener("mouseup",onMouse("touchend"),!0))}}),endWith=createCommonjsModule(function(module,exports){module.exports=function(str,suffix){var idx=str.length-suffix.length;return 0<=idx&&str.indexOf(suffix,idx)===idx}}),escapeRegExp=createCommonjsModule(function(module,exports){module.exports=function(str){return str.replace(/\W/g,"\\$&")}}),evalCss=createCommonjsModule(function(module,exports){module.exports=function(css){var style=document.createElement("style");return style.textContent=css,style.type="text/css",document.head.appendChild(style),style}}),evalJs=createCommonjsModule(function(module,exports){module.exports=function(js,ctx){ctx=ctx||root;try{return new Function("return ("+js+");").call(ctx)}catch(e){try{return new Function("return "+js).call(ctx)}catch(e){return new Function(js).call(ctx)}}}}),every=createCommonjsModule(function(module,exports){module.exports=function(obj,predicate,ctx){predicate=safeCb(predicate,ctx);for(var _keys=!isArrLike(obj)&&keys(obj),len=(_keys||obj).length,i=0;i<len;i++){var curKey=_keys?_keys[i]:i;if(!predicate(obj[curKey],curKey,obj))return!1}return!0}}),isPlainObj=createCommonjsModule(function(module,exports){module.exports=function(val){if(!isObj(val))return!1;var ctor=val.constructor;return!!isFn(ctor)&&(!!has(ctor.prototype,"isPrototypeOf")&&(!isArr(val)&&!isFn(val)))}}),extendDeep=createCommonjsModule(function(module,exports){module.exports=exports=function(obj){for(var i=0,ret=obj,len=arguments.length;++i<len;)obj=arguments[i],isPlainObj(ret)&&isPlainObj(obj)?each(obj,function(val,key){"__proto__"!==key&&"constructor"!==key&&"prototype"!==key&&(ret[key]=exports(ret[key],obj[key]))}):ret=cloneDeep(obj);return ret}}),extractBlockCmts=createCommonjsModule(function(module,exports){var regBlockCmt=/(\/\*[\s\S]*?\*\/)/gm;module.exports=function(str){str=str.match(regBlockCmt);return str?map(str,function(comment){return trim(map(comment.split("\n"),function(line){return trim(line).replace(/^\/\*+|\*+\/$|^\*+/g,"")}).join("\n"))}):[]}}),extractUrls=createCommonjsModule(function(module,exports){var regUrl=/((https?)|(ftp)):\/\/[\w.]+[^ \f\n\r\t\v"\\<>[\]\u2100-\uFFFF(),]*/gi;module.exports=function(str){str=toArr(str.match(regUrl));return unique(map(str,function(url){return trim(url)}))}}),fetch=createCommonjsModule(function(module,exports){var Promise=root.Promise,regHeaders=/^(.*?):\s*([\s\S]*?)$/gm;(exports=function(url,options){return defaults(options=options||{},exports.setting),new Promise(function(resolve,reject){var xhr=options.xhr(),headers=options.headers,body=options.body,timeout=options.timeout;xhr.withCredentials="include"==options.credentials,xhr.onload=function(){clearTimeout(void 0),resolve(function getRes(xhr){var keys=[];var all=[];var headers={};var header;xhr.getAllResponseHeaders().replace(regHeaders,function(m,key,val){key=key.toLowerCase(),keys.push(key),all.push([key,val]),header=headers[key],headers[key]=header?header+","+val:val});return{ok:200<=xhr.status&&xhr.status<400,status:xhr.status,statusText:xhr.statusText,url:xhr.responseURL,clone:function(){return getRes(xhr)},text:function(){return Promise.resolve(xhr.responseText)},json:function(){return Promise.resolve(xhr.responseText).then(JSON.parse)},xml:function(){return Promise.resolve(xhr.responseXML)},blob:function(){return Promise.resolve(new Blob([xhr.response]))},headers:{keys:function(){return keys},entries:function(){return all},get:function(name){return headers[name.toLowerCase()]},has:function(name){return has(headers,name)}}}}(xhr))},xhr.onerror=reject,xhr.open(options.method,url,!0),each(headers,function(val,key){xhr.setRequestHeader(key,val)}),0<timeout&&setTimeout(function(){xhr.onload=noop,xhr.abort(),reject(Error("timeout"))},timeout),xhr.send(body)})}).setting={method:"GET",headers:{},timeout:0,xhr:function(){return new XMLHttpRequest}},module.exports=exports}),fetch_1=fetch.setting,fibonacci=createCommonjsModule(function(module,exports){exports=memoize(function(n){return n<2?n:exports(n-1)+exports(n-2)}),module.exports=exports}),fileSize=createCommonjsModule(function(module,exports){var suffixList=["","K","M","G","T"];module.exports=function(bytes){if(bytes<=0)return"0";var suffixIdx=Math.floor(Math.log(bytes)/Math.log(1024));return+(bytes/Math.pow(2,10*suffixIdx)).toFixed(2)+suffixList[suffixIdx]}}),mime=createCommonjsModule(function(module,exports){var exts={"image/jpeg":["jpeg","jpg"],"image/png":["png"],"image/gif":["gif"],"image/webp":["webp"],"image/tiff":["tif","tiff"],"image/bmp":["bmp"],"image/vnd.adobe.photoshop":["psd"],"image/svg+xml":["svg"],"audio/mp4":["m4a","mp4a"],"audio/midi":["midi"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["ogg"],"audio/wav":["wav"],"video/mp4":["mp4","mp4v","mpg4"],"video/x-matroska":["mkv"],"video/webm":["webm"],"video/x-msvideo":["avi"],"video/quicktime":["qt","mov"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/3gpp":["3gp","3gpp"],"text/css":["css"],"text/html":["html","htm","shtml"],"text/yaml":["yaml","yml"],"text/csv":["csv"],"text/markdown":["markdown","md"],"text/plain":["txt","text","conf","log","ini"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"application/zip":["zip"],"application/x-tar":["tar"],"application/x-rar-compressed":["rar"],"application/gzip":["gz"],"application/x-7z-compressed":["7z"],"application/octet-stream":["bin","so","exe","dll","dmg","iso","msi"],"application/epub+zip":["epub"],"application/javascript":["js"],"application/json":["json"],"application/msword":["doc","docx","dot","dotx"],"application/vnd.ms-excel":["xls","xlsx","xla","xlt"],"application/vnd.ms-powerpoint":["ppt","pptx","pps","pot"],"application/pdf":["pdf"],"application/wasm":["wasm"],"application/xml":["xml"],"application/xml-dtd":["dtd"]},mimeTypes={};each(exts,function(ext,mimeType){each(ext,function(e){mimeTypes[e]=mimeType})}),module.exports=function(name){return(-1<name.indexOf("/")?function(name){if(exts[name])return exts[name][0]}:function(name){return mimeTypes[name]})(name)||void 0}}),fileType=createCommonjsModule(function(module,exports){function _slicedToArray(arr,i){return function(arr){if(Array.isArray(arr))return arr}(arr)||function(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i)||function(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Map"===(n="Object"===n&&o.constructor?o.constructor.name:n)||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}(arr,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var types=[["jpg",[255,216,255]],["png",[137,80,78,71,13,10,26,10]],["gif",[71,73,70]],["webp",[87,69,66,80],8],["bmp",[66,77]],["gz",[31,139,8]],["zip",function(input){return check(input,[80,75])&&(3===input[2]||5===input[2]||7===input[2])&&(4===input[3]||6===input[3]||8===input[3])}],["rar",function(input){return check(input,[82,97,114,33,26,7])&&(0===input[6]||1===input[6])}],["pdf",[37,80,68,70]],["exe",[77,90]]];function check(input,magic,argument_2){for(var offset=2<arguments.length&&void 0!==argument_2?argument_2:0,i=0,len=magic.length;i<len;i++)if(input[offset+i]!==magic[i])return!1;return!0}module.exports=function(input){"uint8array"!==type(input)&&(input=new Uint8Array(input));for(var i=0,len=types.length;i<len;i++){var _type2=_slicedToArray(types[i],3),ext=_type2[0],magic=_type2[1],_type2=_type2[2];if(isFn(magic)){if(magic(input))return{ext:ext,mime:mime(ext)}}else if(check(input,magic,_type2))return{ext:ext,mime:mime(ext)}}}}),findKey=createCommonjsModule(function(module,exports){module.exports=function(obj,predicate,ctx){predicate=safeCb(predicate,ctx);for(var key,_keys=keys(obj),i=0,len=_keys.length;i<len;i++)if(predicate(obj[key=_keys[i]],key,obj))return key}}),findIdx=createCommonjsModule(function(module,exports){module.exports=function(arr,predicate,ctx,dir){dir=dir||1,predicate=safeCb(predicate,ctx);for(var len=arr.length,i=0<dir?0:len-1;0<=i&&i<len;){if(predicate(arr[i],i,arr))return i;i+=dir}return-1}}),find=createCommonjsModule(function(module,exports){module.exports=function(obj,predicate,ctx){predicate=(isArrLike(obj)?findIdx:findKey)(obj,predicate,ctx);if(!isUndef(predicate)&&-1!==predicate)return obj[predicate]}}),findLastIdx=createCommonjsModule(function(module,exports){module.exports=function(arr,predicate,ctx){return findIdx(arr,predicate,ctx,-1)}}),fnArgs=createCommonjsModule(function(module,exports){function validateArg(value,types,num){for(var isValid=!1,i=0,len=types.length;i<len;i++){var t=lowerCase(types[i]);if("any"===t||"object"===t&&isObj(value)||type(value)===t){isValid=!0;break}}if(!isValid)throw TypeError("Argument ".concat(num," should be type ").concat(types.join("|")))}module.exports=function(types,args){for(var argsLen=args.length,typesLen=types.length,minLen=typesLen,maxLen=typesLen,i=0;i<typesLen;i++){var _type=types[i].split("|");startWith(_type[0],"?")&&(_type[0]=_type[0].slice(1),minLen===typesLen&&(minLen=i)),i===typesLen-1&&startWith(_type[0],"...")&&(maxLen=1/0,_type[0]=_type[0].slice(3),minLen===typesLen&&(minLen=i)),types[i]=_type}if(argsLen<minLen)throw Error("Expected at least ".concat(minLen," args but got ").concat(argsLen));if(maxLen<argsLen)throw Error("Expected at most ".concat(maxLen," args but got ").concat(argsLen));for(var _i=0;_i<argsLen;_i++){var arg=args[_i];validateArg(arg,typesLen<=_i?last(types):types[_i],_i)}}}),isNil=createCommonjsModule(function(module,exports){module.exports=function(val){return null==val}}),toSrc=createCommonjsModule(function(module,exports){var fnToStr=Function.prototype.toString;module.exports=function(fn){if(isNil(fn))return"";try{return fnToStr.call(fn)}catch(e){}try{return fn+""}catch(e){}return""}}),stripCmt=createCommonjsModule(function(module,exports){module.exports=function(str){for(var mode={singleQuote:!1,doubleQuote:!1,regex:!1,blockComment:!1,lineComment:!1,condComp:!1},i=0,l=(str=("__"+str+"__").split("")).length;i<l;i++)mode.regex?"/"===str[i]&&"\\"!==str[i-1]&&(mode.regex=!1):mode.singleQuote?"'"===str[i]&&"\\"!==str[i-1]&&(mode.singleQuote=!1):mode.doubleQuote?'"'===str[i]&&"\\"!==str[i-1]&&(mode.doubleQuote=!1):mode.blockComment?("*"===str[i]&&"/"===str[i+1]&&(str[i+1]="",mode.blockComment=!1),str[i]=""):mode.lineComment?("\n"===str[i+1]&&(mode.lineComment=!1),str[i]=""):(mode.doubleQuote='"'===str[i],mode.singleQuote="'"===str[i],"/"===str[i]&&("*"!==str[i+1]?"/"!==str[i+1]?mode.regex=!0:(str[i]="",mode.lineComment=!0):(str[i]="",mode.blockComment=!0)));return str.join("").slice(2,-2)}}),fnParams=createCommonjsModule(function(module,exports){var regArgNames=/[^\s,]+/g;module.exports=function(fn){var open,fn=stripCmt(isStr(fn)?fn:toSrc(fn)),close=startWith(fn,"async")||startWith(fn,"function")||startWith(fn,"(")?(open=fn.indexOf("(")+1,fn.indexOf(")")):(open=0,fn.indexOf("=>")),fn=fn.slice(open,close);return null===(fn=fn.match(regArgNames))?[]:fn}}),precision=createCommonjsModule(function(module,exports){var regExponential=/^(-?\d?\.?\d+)e([+-]\d)+/;module.exports=function(num){var coefficient=(num=num.toExponential().match(regExponential))[1],num=parseInt(num[2],10),coefficient=(coefficient.split(".")[1]||"").length-num;return coefficient<0?0:coefficient}}),fraction=createCommonjsModule(function(module,exports){var abs=Math.abs,pow=Math.pow;module.exports=function(num){if(0===num)return"0";var _precision=precision(num),num=num*(_precision=pow(10,_precision)),_gcd=abs(gcd(num,_precision));return(num/=_gcd)+"/"+(_precision/=_gcd)}}),freezeDeep=createCommonjsModule(function(module,exports){module.exports=exports=function(obj){return freeze(obj),keys(obj).forEach(function(prop){prop=obj[prop];isObj(prop)&&!Object.isFrozen(prop)&&exports(prop)}),obj}}),fullscreen=createCommonjsModule(function(module,exports){for(var fn,fnMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,len=fnMap.length;i<len&&!((fn=fnMap[i])[1]in document);i++);exports={request:function(){(0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.documentElement)[fn[0]]()},exit:function(){document[fn[1]]()},toggle:function(){var el=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.documentElement;this.isActive()?this.exit():this.request(el)},isActive:function(){return toBool(this.getEl())},isEnabled:function(){return toBool(document[fn[3]])},getEl:function(){return document[fn[2]]}},Emitter.mixin(exports),document.addEventListener(fn[4],function(){exports.emit("change")}),document.addEventListener(fn[5],function(){exports.emit("error")}),module.exports=exports}),levenshtein=createCommonjsModule(function(module,exports){var vector=[],bChars=[];module.exports=function(a,b){if(a===b)return 0;a.length>b.length&&(tmp=a,a=b,b=tmp);var tmp,aLen=a.length,bLen=b.length;if(!aLen)return bLen;if(!bLen)return aLen;for(;0<aLen&&a.charCodeAt(aLen-1)===b.charCodeAt(bLen-1);)aLen--,bLen--;if(!aLen)return bLen;for(var start=0;start<aLen&&a.charCodeAt(start)===b.charCodeAt(start);)start++;if(bLen-=start,!(aLen-=start))return bLen;for(var above,current=0,i=0;i<bLen;)bChars[i]=b.charCodeAt(start+i),vector[i]=++i;for(var _i=0;_i<aLen;_i++)for(var left=_i,current=_i+1,charA=a.charCodeAt(start+_i),j=0;j<bLen;j++)above=current,current=left,left=vector[j],charA!==bChars[j]&&(above<(current=left<current?left:current)&&(current=above),current++),vector[j]=current;return current}}),pluck=createCommonjsModule(function(module,exports){module.exports=function(obj,key){return map(obj,property(key))}}),fuzzySearch=createCommonjsModule(function(module,exports){module.exports=function(needle,haystacks){var options=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return options.caseSensitive||(needle=needle.toLowerCase()),haystacks=map(haystacks,function(haystack){var string=function(haystack,options){return isStr(haystack)?haystack:safeGet(haystack,options.key)||""}(haystack,options);return options.caseSensitive||(string=string.toLowerCase()),{value:haystack,levenshtein:levenshtein(needle,string),string:string}}),(haystacks=filter(haystacks,function(haystack){return function(needle,haystack){var hLen=haystack.length,nLen=needle.length;if(hLen<nLen)return!1;if(nLen===hLen)return needle===haystack;for(var i=0,j=0;i<nLen;i++){for(var c=needle.charCodeAt(i),has=!1;j<hLen;)if(haystack.charCodeAt(j++)===c){has=!0;break}if(!has)return!1}return!0}(needle,haystack.string)})).sort(function(a,b){return a.levenshtein-b.levenshtein}),pluck(haystacks,"value")}}),getUrlParam=createCommonjsModule(function(module,exports){module.exports=function(name,url){return new Url(url).query[name]}}),golangify=createCommonjsModule(function(module,exports){module.exports=function(fn){return isFn(fn)?restArgs(function(args){return fn.apply(this,args).then(function(v){return[v,null]}).catch(function(err){return[void 0,err]})}):fn.then(function(v){return[v,null]}).catch(function(err){return[void 0,err]})}}),heapSort=createCommonjsModule(function(module,exports){module.exports=function(arr){for(var cmp=1<arguments.length&&void 0!==arguments[1]?arguments[1]:isSorted.defComparator,heap=new Heap(cmp),len=arr.length,i=0;i<len;i++)heap.add(arr[i]);for(var _i=0;_i<len;_i++)arr[_i]=heap.poll();return arr}}),highlight=createCommonjsModule(function(module,exports){exports=function(str){var lang=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"js",style=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},subLangSi=(defaults(style,defStyle),str=str.replace(/</g,"&lt;").replace(/>/g,"&gt;"),lang=language[lang],0),subLangs=[],levels=(each(lang,function(val){val.language&&(str=str.replace(val.re,function($1,$2){return $2?(subLangs[subLangSi++]=exports($2,val.language,style),$1.replace($2,"___subtmpl"+(subLangSi-1)+"___")):$1}))}),each(lang,function(val,key){language[val.language]||(str=str.replace(val.re,"___"+key+"___$1___end"+key+"___"))}),[]);return str=str.replace(/___(?!subtmpl)\w+?___/g,function($0){var end="end"===$0.substr(3,3),tag=(end?$0.substr(6):$0.substr(3)).replace(/_/g,""),lastTag=0<levels.length?levels[levels.length-1]:null;return!end&&(null==lastTag||tag==lastTag||null!=lastTag&&lang[lastTag]&&null!=lang[lastTag].embed&&-1<lang[lastTag].embed.indexOf(tag))?(levels.push(tag),$0):end&&tag==lastTag?(levels.pop(),$0):""}),each(lang,function(val,key){var s=style[val.style]?' style="'.concat(style[val.style],'"'):"";str=str.replace(new RegExp("___end"+key+"___","g"),"</span>").replace(new RegExp("___"+key+"___","g"),'<span class="'.concat(val.style,'"').concat(s,">"))}),each(lang,function(val){val.language&&(str=str.replace(/___subtmpl\d+___/g,function($tmpl){$tmpl=parseInt($tmpl.replace(/___subtmpl(\d+)___/,"$1"),10);return subLangs[$tmpl]}))}),str};var defStyle={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},language={js:{comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|&lt;|&gt;|\||\?|\.)/g,style:"operator"}}};language.html={comment:{re:/(&lt;!--([\s\S]*?)--&gt;)/g,style:"comment"},tag:{re:/(&lt;\/?\w(.|\n)*?\/?&gt;)/g,style:"keyword",embed:["string"]},string:language.js.string,css:{re:/(?:&lt;style.*?&gt;)([\s\S]*)?(?:&lt;\/style&gt;)/gi,language:"css"},script:{re:/(?:&lt;script.*?&gt;)([\s\S]*?)(?:&lt;\/script&gt;)/gi,language:"js"}},language.css={comment:language.js.comment,string:language.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},module.exports=exports}),isErr=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object Error]"===objToStr(val)}}),hookFn=createCommonjsModule(function(module,exports){var defOptions={before:noop,after:noop,error:noop};module.exports=function(fn,options){return defaults(options,defOptions),function(){var args=toArr(arguments),newArgs=options.before.apply(this,args);isArr(newArgs)&&(args=newArgs);try{var result=fn.apply(this,args),newResult=options.after.call(this,result);return result=newResult?newResult:result}catch(e){newArgs=options.error(e);if(newArgs){if(isErr(newArgs))throw newArgs;return newArgs}throw e}}}}),invert=createCommonjsModule(function(module,exports){module.exports=function(obj){var ret={};return each(obj,function(val,key){ret[val]=key}),ret}}),keyCode=createCommonjsModule(function(module,exports){exports=function(val){return(isStr(val)?codeMap:nameMap)[val]};for(var codeMap={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,windows:91,"right windows":92,"windows menu":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=97;i<123;i++)codeMap[String.fromCharCode(i)]=i-32;for(var _i=48;_i<58;_i++)codeMap[_i-48]=_i;for(var _i2=1;_i2<13;_i2++)codeMap["f"+_i2]=_i2+111;for(var _i3=0;_i3<10;_i3++)codeMap["numpad "+_i3]=_i3+96;var nameMap=invert(codeMap);module.exports=exports}),hotkey=createCommonjsModule(function(module,exports){exports={on:function(keys,listener){keys=keys.split(regComma),each(keys,function(key){emitter.on(normalizeKey(key),listener)})},off:function(keys,listener){keys=keys.split(regComma),each(keys,function(key){emitter.off(normalizeKey(key),listener)})}};var emitter=new Emitter;function normalizeKey(keyStr){keyStr=keyStr.split(regPlus),keyStr=map(keyStr,function(key){return trim(key)});return(keyStr=unique(keyStr)).sort(),keyStr.join("+")}document.addEventListener("keydown",function(e){var keys=[];e.ctrlKey&&keys.push("ctrl"),e.shiftKey&&keys.push("shift"),keys.push(keyCode(e.keyCode)),emitter.emit(normalizeKey(keys.join("+")),e)});var regComma=/,/g,regPlus=/\+/g;module.exports=exports}),parseHtml=createCommonjsModule(function(module,exports){exports=function(html,handler){for(var stack=[],lastHtml=html;html;){var execRes,_text2,_match,_text,text=!0;if(last(stack)&&SPECIAL[last(stack)]?((execRes=new RegExp("</".concat(last(stack),"[^>]*>")).exec(html))&&(_text2=html.substring(0,execRes.index),html=html.substring(execRes.index+execRes[0].length),_text2&&handler.text&&handler.text(_text2)),parseEndTag(0,last(stack))):(startWith(html,"\x3c!--")?0<=(execRes=html.indexOf("--\x3e"))&&(handler.comment&&handler.comment(html.substring(4,execRes)),html=html.substring(execRes+3),text=!1):startWith(html,"<!")?(_text2=html.match(regDoctype))&&(handler.text&&handler.text(html.substring(0,_text2[0].length)),html=html.substring(_text2[0].length),text=!1):startWith(html,"</")?(_match=html.match(regEndTag))&&(html=html.substring(_match[0].length),_match[0].replace(regEndTag,parseEndTag),text=!1):!startWith(html,"<")||(_match=html.match(regStartTag))&&(html=html.substring(_match[0].length),_match[0].replace(regStartTag,parseStartTag),text=!1),text&&(_text=(text=html.indexOf("<"))<0?html:html.substring(0,text),html=text<0?"":html.substring(text),handler.text&&handler.text(_text))),lastHtml===html)throw Error("Parse Error: "+html);lastHtml=html}function parseStartTag(tag,tagName,rest,unary){var attrs;tagName=lowerCase(tagName),(unary=!!unary)||stack.push(tagName),handler.start&&(attrs={},rest.replace(regAttr,function(all,$1,$2,$3,$4){attrs[$1]=$2||$3||$4||""}),handler.start(tagName,attrs,unary))}function parseEndTag(tag,tagName){var pos;if(tagName=lowerCase(tagName))for(pos=stack.length-1;0<=pos&&stack[pos]!==tagName;pos--);else pos=0;if(0<=pos){for(var i=stack.length-1;pos<=i;i--)handler.end&&handler.end(stack[i]);stack.length=pos}}parseEndTag()};var regDoctype=/^<!\s*doctype((?:\s+[\w:]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,regEndTag=/^<\/([-A-Za-z0-9_]+)[^>]*>/,regStartTag=/^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,regAttr=/([-A-Za-z0-9_:@.]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,SPECIAL=arrToMap("script,style".split(","));module.exports=exports}),html=createCommonjsModule(function(module,exports){module.exports={parse:function(html){var ret=[],stack=new Stack;return parseHtml(html,{start:function(tag,attrs){attrs=mapObj(attrs,function(val){return val.replace(/&quot;/g,'"')}),stack.push({tag:tag,attrs:attrs})},end:function(){var lastNode,node=stack.pop();stack.size?(lastNode=stack.peek(),isArr(lastNode.content)||(lastNode.content=[]),lastNode.content.push(node)):ret.push(node)},comment:function(text){var text="\x3c!--".concat(text,"--\x3e"),lastNode=stack.peek();lastNode?(lastNode.content||(lastNode.content=[]),lastNode.content.push(text)):ret.push(text)},text:function(text){var lastNode=stack.peek();lastNode?(lastNode.content||(lastNode.content=[]),lastNode.content.push(text)):ret.push(text)}}),ret},stringify:function stringify(tree){var ret="";return isArr(tree)?each(tree,function(node){return ret+=stringify(node)}):isStr(tree)?ret=tree:(ret+="<".concat(tree.tag),each(tree.attrs,function(val,key){return ret+=" ".concat(key,'="').concat(val.replace(/"/g,"&quot;"),'"')}),ret+=">",tree.content&&(ret+=stringify(tree.content)),ret+="</".concat(tree.tag,">")),ret}}}),indent=createCommonjsModule(function(module,exports){var regLineBegin=/^(?!\s*$)/gm;module.exports=function(str,char,len){return isNum(char)&&(len=char,char=" "),isUndef(len)&&(len=4),isUndef(char)&&(char=" "),char=repeat(char,len),str.replace(regLineBegin,char)}}),ini=createCommonjsModule(function(module,exports){var regSection=/^\[([^\]]*)\]$/i,regKeyVal=/^([^=]+)(=(.*))?$/i,regComment=/^\s*[;#]/;module.exports={parse:function(ini){var ret={},section=ret;return each(ini.split("\n"),function(line){if((line=trim(line))&&!line.match(regComment)){var _key,match=line.match(regSection);if(match&&match[1])return _key=match[1],section=safeGet(ret,_key)||{},safeSet(ret,_key,section);(match=line.match(regKeyVal))&&(_key=trim(match[1]),"null"===(line="false"===(line="true"===(line=!match[2]||trim(match[3]))?!0:line)?!1:line)&&(line=null),endWith(_key,"[]")&&(_key=_key.substring(0,_key.length-2),section[_key]||(section[_key]=[])),isArr(section[_key])?section[_key].push(line):section[_key]=line)}}),ret},stringify:function stringify(obj){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},ret="",section=options.section,separator=options.whitespace?" = ":"=",children=[];return each(obj,function(val,key){isArr(val)?each(val,function(item){ret+="".concat(key,"[]").concat(separator).concat(item,"\n")}):isObj(val)?children.push({key:key,val:val}):ret+="".concat(key).concat(separator).concat(val,"\n")}),section&&ret&&(ret="[".concat(section,"]\n")+ret),section=section?section+".":"",each(children,function(child){(child=stringify(child.val,{section:section+child.key,whitespace:options.whitespace}))&&(ret&&(ret+="\n"),ret+=child)}),ret}}}),insertionSort=createCommonjsModule(function(module,exports){module.exports=function(arr){for(var cmp=1<arguments.length&&void 0!==arguments[1]?arguments[1]:isSorted.defComparator,i=1,len=arr.length;i<len;i++)for(var j=i;0<j&&cmp(arr[j],arr[j-1])<0;j--)swap(arr,j,j-1);return arr}}),intersectRange=createCommonjsModule(function(module,exports){module.exports=function(a,b){var min=a.start<b.start?a:b,b=min===a?b:a;if(!(min.end<b.start))return{start:b.start,end:(min.end<b.end?min:b).end}}}),invariant=createCommonjsModule(function(module,exports){module.exports=function(condition,format,a,b,c,d,e,f){var args,argIndex,error,process=root.process||{env:{NODE_ENV:"development"}};if("production"!==process.env.NODE_ENV&&void 0===format)throw new Error("invariant requires an error message argument");if(!condition)throw void 0===format?error=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(args=[a,b,c,d,e,f],argIndex=0,(error=new Error(format.replace(/%s/g,function(){return args[argIndex++]}))).name="Invariant Violation"),error.framesToPop=1,error}}),isAbsoluteUrl=createCommonjsModule(function(module,exports){var regAbsolute=/^[a-z][a-z0-9+.-]*:/;module.exports=function(url){return regAbsolute.test(url)}}),isAsyncFn=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object AsyncFunction]"===objToStr(val)}}),isClose=createCommonjsModule(function(module,exports){var abs=Math.abs,max=Math.max;module.exports=function(a,b,relTol,absTol){return isNum(relTol)||(relTol=1e-9),isNum(absTol)||(absTol=0),abs(a-b)<=max(relTol*max(abs(a),abs(b)),absTol)}}),isCyclic=createCommonjsModule(function(module,exports){exports=function(val,parents){if(!isObj(val))return!1;if(parents&&parents.contains(val))return!0;parents=new Node(val,parents);for(var _keys=keys(val),i=0,len=_keys.length;i<len;i++)if(exports(val[_keys[i]],parents))return!0;return!1};var Node=Class({initialize:function(val,next){this.val=val,this.next=next},contains:function(val){for(var cursor=this;cursor;){if(cursor.val===val)return!0;cursor=cursor.next}return!1}});module.exports=exports}),isDarkMode=createCommonjsModule(function(module,exports){var m=new MediaQuery("(prefers-color-scheme: dark)");module.exports=function(){return m.isMatch()}}),isDataUrl=createCommonjsModule(function(module,exports){var regDataUrl=/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)$/i;module.exports=function(str){return regDataUrl.test(trim(str))}}),isEmail=createCommonjsModule(function(module,exports){var regEmail=/.+@.+\..+/;module.exports=function(val){return regEmail.test(val)}}),isEqual=createCommonjsModule(function(module,exports){function eq(a,b,aStack,bStack){if(a===b)return 0!==a||1/a==1/b;if(null==a||null==b)return a===b;if(a!=a)return b!=b;var type=typeof a;return("function"==type||"object"==type||"object"==typeof b)&&function(a,b,aStack,bStack){var className=toString.call(a);if(className!==toString.call(b))return!1;switch(className){case"[object RegExp]":case"[object String]":return""+a==""+b;case"[object Number]":return+a!=+a?+b!=+b:0==+a?1/+a==1/b:+a==+b;case"[object Date]":case"[object Boolean]":return+a==+b}if(!(className="[object Array]"===className)){if("object"!=typeof a||"object"!=typeof b)return!1;var aCtor=a.constructor,bCtor=b.constructor;if(aCtor!==bCtor&&!(isFn(aCtor)&&aCtor instanceof aCtor&&isFn(bCtor)&&bCtor instanceof bCtor)&&"constructor"in a&&"constructor"in b)return!1}bStack=bStack||[];for(var length=(aStack=aStack||[]).length;length--;)if(aStack[length]===a)return bStack[length]===b;if(aStack.push(a),bStack.push(b),className){if((length=a.length)!==b.length)return!1;for(;length--;)if(!eq(a[length],b[length],aStack,bStack))return!1}else{var key,_keys=keys(a),length=_keys.length;if(keys(b).length!==length)return!1;for(;length--;)if(key=_keys[length],!has(b,key)||!eq(a[key],b[key],aStack,bStack))return!1}return aStack.pop(),bStack.pop(),!0}(a,b,aStack,bStack)}module.exports=function(a,b){return eq(a,b)}}),isEven=createCommonjsModule(function(module,exports){module.exports=function(num){return!!isInt(num)&&num%2==0}}),_isFinite=createCommonjsModule(function(module,exports){var nativeIsFinite=root.isFinite,nativeIsNaN=root.isNaN;module.exports=function(val){return nativeIsFinite(val)&&!nativeIsNaN(parseFloat(val))}}),isGeneratorFn=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object GeneratorFunction]"===objToStr(val)}}),isHidden=createCommonjsModule(function(module,exports){var getComputedStyle=root.getComputedStyle,document=root.document;function isOutside(clientRect,containerRect){return clientRect.right<containerRect.left||clientRect.left>containerRect.right||clientRect.bottom<containerRect.top||clientRect.top>containerRect.bottom}module.exports=function(el){var _ref=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},_ref$display=_ref.display,_ref$visibility=_ref.visibility,_ref$visibility=void 0!==_ref$visibility&&_ref$visibility,_ref$opacity=_ref.opacity,_ref$opacity=void 0!==_ref$opacity&&_ref$opacity,_ref$size=_ref.size,_ref$size=void 0!==_ref$size&&_ref$size,_ref$viewport=_ref.viewport,_ref$viewport=void 0!==_ref$viewport&&_ref$viewport,_ref=_ref.overflow,_ref=void 0!==_ref&&_ref;if(void 0===_ref$display||_ref$display)return null===el.offsetParent;_ref$display=getComputedStyle(el);if(_ref$visibility&&"hidden"===_ref$display.visibility)return!0;if(_ref$opacity){if("0"===_ref$display.opacity)return!0;for(var cur=el;cur=cur.parentElement;)if("0"===getComputedStyle(cur).opacity)return!0}var clientRect=el.getBoundingClientRect();if(_ref$size&&(0===clientRect.width||0===clientRect.height))return!0;if(_ref$viewport)return isOutside(clientRect,{top:0,left:0,right:document.documentElement.clientWidth,bottom:document.documentElement.clientHeight});if(_ref)for(var _cur=el;_cur=_cur.parentElement;){var _overflow=getComputedStyle(_cur).overflow;if("scroll"===_overflow||"hidden"===_overflow)if(isOutside(clientRect,_cur.getBoundingClientRect()))return!0}return!1}}),isIp=createCommonjsModule(function(module,exports){exports=function(str){return exports.v4(str)||exports.v6(str)};var v4="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",regV4=new RegExp("^".concat(v4,"$")),v6seg="[a-fA-F\\d]{1,4}",v4=["(","(?:".concat(v6seg,":){7}(?:").concat(v6seg,"|:)|"),"(?:".concat(v6seg,":){6}(?:").concat(v4,"|:").concat(v6seg,"|:)|"),"(?:".concat(v6seg,":){5}(?::").concat(v4,"|(:").concat(v6seg,"){1,2}|:)|"),"(?:".concat(v6seg,":){4}(?:(:").concat(v6seg,"){0,1}:").concat(v4,"|(:").concat(v6seg,"){1,3}|:)|"),"(?:".concat(v6seg,":){3}(?:(:").concat(v6seg,"){0,2}:").concat(v4,"|(:").concat(v6seg,"){1,4}|:)|"),"(?:".concat(v6seg,":){2}(?:(:").concat(v6seg,"){0,3}:").concat(v4,"|(:").concat(v6seg,"){1,5}|:)|"),"(?:".concat(v6seg,":){1}(?:(:").concat(v6seg,"){0,4}:").concat(v4,"|(:").concat(v6seg,"){1,6}|:)|"),"(?::((?::".concat(v6seg,"){0,5}:").concat(v4,"|(?::").concat(v6seg,"){1,7}|:))"),")(%[0-9a-zA-Z]{1,})?"].join(""),regV6=new RegExp("^".concat(v4,"$"));exports.v4=function(str){return regV4.test(str)},exports.v6=function(str){return regV6.test(str)},module.exports=exports}),isIp_1=isIp.v4,isIp_2=isIp.v6,isJson=createCommonjsModule(function(module,exports){module.exports=function(val){try{return JSON.parse(val),!0}catch(e){return!1}}}),isLeapYear=createCommonjsModule(function(module,exports){module.exports=function(year){return year%400==0||year%4==0&&year%100!=0}}),isMap=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object Map]"===objToStr(val)}}),isMobile=createCommonjsModule(function(module,exports){var regMobileAll=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,regMobileFour=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i;exports=memoize(function(ua){return ua=ua||(isBrowser?navigator.userAgent:""),regMobileAll.test(ua)||regMobileFour.test(ua.substr(0,4))}),module.exports=exports}),isNative=createCommonjsModule(function(module,exports){exports=function(val){return!!isObj(val)&&(isFn(val)?regIsNative:regIsHostCtor).test(toSrc(val))};var hasOwnProperty=Object.prototype.hasOwnProperty,regIsNative=new RegExp("^"+toSrc(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),regIsHostCtor=/^\[object .+?Constructor\]$/;module.exports=exports}),isNull=createCommonjsModule(function(module,exports){module.exports=function(val){return null===val}}),isNumeric=createCommonjsModule(function(module,exports){var regComma=/,/g;module.exports=function(val){return isStr(val)&&(val=val.replace(regComma,"")),!_isNaN(parseFloat(val))&&_isFinite(val)&&!isArr(val)}}),isPrime=createCommonjsModule(function(module,exports){module.exports=function(num){for(var boundary=Math.floor(Math.sqrt(num)),i=2;i<=boundary;i++)if(num%i==0)return!1;return 2<=num}}),isPrimitive=createCommonjsModule(function(module,exports){module.exports=function(val){var type=typeof val;return null==val||"function"!=type&&"object"!=type}}),isPromise=createCommonjsModule(function(module,exports){module.exports=function(val){return isObj(val)&&isFn(val.then)&&isFn(val.catch)}}),isRelative=createCommonjsModule(function(module,exports){var regAbsolute=/^([a-z]+:)?[\\/]/i;module.exports=function(path){return!regAbsolute.test(path)}}),isRetina=createCommonjsModule(function(module,exports){exports=isBrowser&&(1.25<window.devicePixelRatio||window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)").matches),module.exports=exports}),isSet=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object Set]"===objToStr(val)}}),isTypedArr=createCommonjsModule(function(module,exports){exports=function(val){return!!map[objToStr(val)]};var map={};each(["Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","Float32Array","Float64Array"],function(val){map["[object "+val+"]"]=!0}),module.exports=exports}),isUrl=createCommonjsModule(function(module,exports){var regUrl=/^(?:\w+:)?\/\/([^\s.]+\.\S{2}|localhost[:?\d]*)\S*$/;module.exports=function(val){return regUrl.test(val)}}),isWeakMap=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object WeakMap]"===objToStr(val)}}),isWeakSet=createCommonjsModule(function(module,exports){module.exports=function(val){return"[object WeakSet]"===objToStr(val)}}),jsonClone=createCommonjsModule(function(module,exports){module.exports=function(val){return JSON.parse(JSON.stringify(val))}}),loadJs=createCommonjsModule(function(module,exports){module.exports=function(src,cb){var script=document.createElement("script");script.src=src,script.onload=function(){var isNotLoaded=script.readyState&&"complete"!=script.readyState&&"loaded"!=script.readyState;cb&&cb(!isNotLoaded)},script.onerror=function(){cb(!1)},document.body.appendChild(script)}}),jsonp=createCommonjsModule(function(module,exports){(exports=function(options){defaults(options,exports.settings);var timer,name=options.name||uniqId("jsonp"),param=options.param,timeout=options.timeout,error=options.error,success=options.success,complete=options.complete,data=options.data,options=options.url,isTimeout=!1;0<timeout&&(timer=setTimeout(function(){isTimeout=!0,error(new Error("Timeout")),complete()},timeout)),window[name]=function(data){success(data),complete(),window[name]=noop},data[param]=name,data=query.stringify(data),options+=-1<options.indexOf("?")?"&"+data:"?"+data,loadJs(options,function(isLoaded){isTimeout||(timer&&clearTimeout(timer),isLoaded||(error(new Error),complete()))})}).settings={data:{},param:"callback",success:noop,error:noop,complete:noop,timeout:0},module.exports=exports}),jsonp_1=jsonp.settings,linkify=createCommonjsModule(function(module,exports){function defHyperlink(url){return'<a href="'+url+'">'+url+"</a>"}module.exports=function(str,hyperlink){hyperlink=hyperlink||defHyperlink;var urlList=extractUrls(str);return each(urlList,function(url){str=str.replace(new RegExp(escapeRegExp(url),"g"),hyperlink)}),str}}),loadCss=createCommonjsModule(function(module,exports){module.exports=function(src,cb){cb=cb||noop;var link=document.createElement("link");link.rel="stylesheet",link.type="text/css",link.onerror=function(){cb(!1)},link.onload=function(){cb(!0)},link.href=src,document.head.appendChild(link)}}),wordsToBytes=createCommonjsModule(function(module,exports){module.exports=function(words){for(var bytes=[],b=0,len=32*words.length;b<len;b+=8)bytes.push(words[b>>>5]>>>24-b%32&255);return bytes}}),md5=createCommonjsModule(function(module,exports){function FF(a,b,c,d,x,s,t){a=a+(b&c|~b&d)+(x>>>0)+t;return(a<<s|a>>>32-s)+b}function GG(a,b,c,d,x,s,t){a=a+(b&d|c&~d)+(x>>>0)+t;return(a<<s|a>>>32-s)+b}function HH(a,b,c,d,x,s,t){a=a+(b^c^d)+(x>>>0)+t;return(a<<s|a>>>32-s)+b}function II(a,b,c,d,x,s,t){a=a+(c^(b|~d))+(x>>>0)+t;return(a<<s|a>>>32-s)+b}function rotl(n,b){return n<<b|n>>>32-b}module.exports=function(msg){isStr(msg)&&(msg=strToBytes(msg));for(var m=bytesToWords(msg),msg=8*msg.length,a=1732584193,b=-271733879,c=-1732584194,d=271733878,i=0;i<m.length;i++)m[i]=16711935&(m[i]<<8|m[i]>>>24)|4278255360&(m[i]<<24|m[i]>>>8);m[msg>>>5]|=128<<msg%32,m[14+(64+msg>>>9<<4)]=msg;for(var _i=0;_i<m.length;_i+=16){var aa=a,bb=b,cc=c,dd=d,a=FF(a,b,c,d,m[_i+0],7,-680876936),d=FF(d,a,b,c,m[_i+1],12,-389564586),c=FF(c,d,a,b,m[_i+2],17,606105819),b=FF(b,c,d,a,m[_i+3],22,-1044525330);a=FF(a,b,c,d,m[_i+4],7,-176418897),d=FF(d,a,b,c,m[_i+5],12,1200080426),c=FF(c,d,a,b,m[_i+6],17,-1473231341),b=FF(b,c,d,a,m[_i+7],22,-45705983),a=FF(a,b,c,d,m[_i+8],7,1770035416),d=FF(d,a,b,c,m[_i+9],12,-1958414417),c=FF(c,d,a,b,m[_i+10],17,-42063),b=FF(b,c,d,a,m[_i+11],22,-1990404162),a=FF(a,b,c,d,m[_i+12],7,1804603682),d=FF(d,a,b,c,m[_i+13],12,-40341101),c=FF(c,d,a,b,m[_i+14],17,-1502002290),a=GG(a,b=FF(b,c,d,a,m[_i+15],22,1236535329),c,d,m[_i+1],5,-165796510),d=GG(d,a,b,c,m[_i+6],9,-1069501632),c=GG(c,d,a,b,m[_i+11],14,643717713),b=GG(b,c,d,a,m[_i+0],20,-373897302),a=GG(a,b,c,d,m[_i+5],5,-701558691),d=GG(d,a,b,c,m[_i+10],9,38016083),c=GG(c,d,a,b,m[_i+15],14,-660478335),b=GG(b,c,d,a,m[_i+4],20,-405537848),a=GG(a,b,c,d,m[_i+9],5,568446438),d=GG(d,a,b,c,m[_i+14],9,-1019803690),c=GG(c,d,a,b,m[_i+3],14,-187363961),b=GG(b,c,d,a,m[_i+8],20,1163531501),a=GG(a,b,c,d,m[_i+13],5,-1444681467),d=GG(d,a,b,c,m[_i+2],9,-51403784),c=GG(c,d,a,b,m[_i+7],14,1735328473),a=HH(a,b=GG(b,c,d,a,m[_i+12],20,-1926607734),c,d,m[_i+5],4,-378558),d=HH(d,a,b,c,m[_i+8],11,-2022574463),c=HH(c,d,a,b,m[_i+11],16,1839030562),b=HH(b,c,d,a,m[_i+14],23,-35309556),a=HH(a,b,c,d,m[_i+1],4,-1530992060),d=HH(d,a,b,c,m[_i+4],11,1272893353),c=HH(c,d,a,b,m[_i+7],16,-155497632),b=HH(b,c,d,a,m[_i+10],23,-1094730640),a=HH(a,b,c,d,m[_i+13],4,681279174),d=HH(d,a,b,c,m[_i+0],11,-358537222),c=HH(c,d,a,b,m[_i+3],16,-722521979),b=HH(b,c,d,a,m[_i+6],23,76029189),a=HH(a,b,c,d,m[_i+9],4,-640364487),d=HH(d,a,b,c,m[_i+12],11,-421815835),c=HH(c,d,a,b,m[_i+15],16,530742520),a=II(a,b=HH(b,c,d,a,m[_i+2],23,-995338651),c,d,m[_i+0],6,-198630844),d=II(d,a,b,c,m[_i+7],10,1126891415),c=II(c,d,a,b,m[_i+14],15,-1416354905),b=II(b,c,d,a,m[_i+5],21,-57434055),a=II(a,b,c,d,m[_i+12],6,1700485571),d=II(d,a,b,c,m[_i+3],10,-1894986606),c=II(c,d,a,b,m[_i+10],15,-1051523),b=II(b,c,d,a,m[_i+1],21,-2054922799),a=II(a,b,c,d,m[_i+8],6,1873313359),d=II(d,a,b,c,m[_i+15],10,-30611744),c=II(c,d,a,b,m[_i+6],15,-1560198380),b=II(b,c,d,a,m[_i+13],21,1309151649),a=II(a,b,c,d,m[_i+4],6,-145523070),d=II(d,a,b,c,m[_i+11],10,-1120210379),c=II(c,d,a,b,m[_i+2],15,718787259),b=II(b,c,d,a,m[_i+9],21,-343485551),a=a+aa>>>0,b=b+bb>>>0,c=c+cc>>>0,d=d+dd>>>0}return hex.encode(wordsToBytes(function endian(n){if(n.constructor==Number)return 16711935&rotl(n,8)|4278255360&rotl(n,24);for(var i=0;i<n.length;i++)n[i]=endian(n[i]);return n}([a,b,c,d])))}}),mergeSort=createCommonjsModule(function(module,exports){exports=function(arr){var cmp=1<arguments.length&&void 0!==arguments[1]?arguments[1]:isSorted.defComparator;if(arr.length<=1)return arr;var middle=floor(arr.length/2),left=arr.slice(0,middle),middle=arr.slice(middle);return function(left,right,cmp){var ret=[],i=0,j=0;for(;i<left.length&&j<right.length;)cmp(left[i],right[j])<0?ret.push(left[i++]):ret.push(right[j++]);for(;i<left.length;)ret.push(left[i++]);for(;j<right.length;)ret.push(right[j++]);return ret}(exports(left,cmp),exports(middle,cmp),cmp)};var floor=Math.floor;module.exports=exports}),meta=createCommonjsModule(function(module,exports){(exports=function(name,content){if(isUndef(name))return ret={},metaEach(function(name,content){ret[name]=content}),ret;var ret;if(isStr(name)&&isUndef(content)||isArr(name))return function(name){{var ret;{if(!isStr(name))return ret={},metaEach(function(key,val){contain(name,key)&&(ret[key]=val)}),ret;var meta=selectMeta(name);if(meta)return meta.getAttribute("content")}}}(name);var metas=name;isObj(metas)||((metas={})[name]=content),function(metas){each(metas,function(content,name){var meta=selectMeta(name);if(meta)return meta.setAttribute("content",content);(meta=doc.createElement("meta")).setAttribute("name",name),meta.setAttribute("content",content),doc.head.appendChild(meta)})}(metas)}).remove=function(nameList){nameList=toArr(nameList),each(nameList,function(name){name=selectMeta(name);name&&doc.head.removeChild(name)})};var doc=document;function metaEach(fn){var metaList=doc.querySelectorAll("meta");each(metaList,function(meta){var name=meta.getAttribute("name"),meta=meta.getAttribute("content");name&&meta&&fn(name,meta)})}function selectMeta(name){return doc.querySelector('meta[name="'+name+'"]')}module.exports=exports}),meta_1=meta.remove,methods=createCommonjsModule(function(module,exports){module.exports=function(obj){var key,ret=[];for(key in obj)isFn(obj[key])&&ret.push(key);return ret.sort()}}),min=createCommonjsModule(function(module,exports){module.exports=function(){for(var arr=arguments,ret=arr[0],i=1,len=arr.length;i<len;i++)arr[i]<ret&&(ret=arr[i]);return ret}}),toDate=createCommonjsModule(function(module,exports){var regDate=/^(\d{4})-?(\d{2})-?(\d{1,2})$/;module.exports=function(val){if(!val)return new Date;if(isDate(val))return val;if(isStr(val)){var match=val.match(regDate);if(match)return new Date(match[1],match[2]-1,match[3])}return new Date(val)}}),moment=createCommonjsModule(function(module,exports){exports=function(val){return new Moment(val)};var Moment=Class({initialize:function(val){this._d=toDate(val),this._init()},_init:function(){var d=this._d;return extend(this,{_year:d.getFullYear(),_month:d.getMonth(),_date:d.getDate(),_hour:d.getHours(),_minute:d.getMinutes(),_second:d.getSeconds(),_millisecond:d.getMilliseconds()}),this},format:function(mask){return dateFormat(this._d,mask)},isValid:function(){return!("Invalid Date"===this._d.toString())},isLeapYear:function(){return isLeapYear(this._year)},isSame:function(that){return this.valueOf()===that.valueOf()},valueOf:function(){return this._d.getTime()},isBefore:function(that){return this.valueOf()<that.valueOf()},isAfter:function(that){return this.valueOf()>that.valueOf()},year:makeGetSet("year"),month:makeGetSet("month"),date:makeGetSet("date"),hour:makeGetSet("hour"),minute:makeGetSet("minute"),second:makeGetSet("second"),millisecond:makeGetSet("millisecond"),unix:function(){return floor(this.valueOf()/1e3)},clone:function(){return new Moment(this)},toDate:function(){return new Date(this._d)},toArray:function(){return[this._year,this._month,this._date,this._hour,this._minute,this._second,this._millisecond]},toJSON:function(){return this.toISOString()},toISOString:function(){return this.toDate().toISOString()},toObject:function(){return{years:this._year,months:this._month,date:this._date,hours:this._hour,minutes:this._minute,seconds:this._second,milliseconds:this._millisecond}},toString:function(){return this._d.toUTCString()},set:function(unit,num){var d=this._d;switch(unit=normalizeUnit(unit)){case"year":d.setFullYear(num);break;case"month":d.setMonth(num);break;case"date":d.setDate(num);break;case"hour":d.setHours(num);break;case"minute":d.setMinutes(num);break;case"second":d.setSeconds(num);break;case"millisecond":d.setMilliseconds(num)}return this._init()},startOf:function(unit){switch(unit=normalizeUnit(unit)){case"year":this.month(0);case"month":this.date(1);case"day":case"date":this.hour(0);case"hour":this.minute(0);case"minute":this.second(0);case"second":this.millisecond(0)}return this},endOf:function(unit){return this.startOf(unit).add(1,unit).subtract(1,"ms")},daysInMonth:function(){return this.clone().endOf("month").date()},add:createAdder(1),subtract:createAdder(-1),diff:function(input,unit,asFloat){var ret,that=input instanceof Moment?input:new Moment(input),diff=this-that;switch(unit=normalizeUnit(unit)){case"year":ret=monthDiff(this,that)/12;break;case"month":ret=monthDiff(this,that);break;case"second":ret=diff/1e3;break;case"minute":ret=diff/6e4;break;case"hour":ret=diff/36e5;break;case"day":ret=diff/864e5;break;default:ret=diff}return asFloat?ret:(input=ret)<0?ceil(input)||0:floor(input)}}),floor=Math.floor,ceil=Math.ceil;var unitShorthandMap={y:"year",M:"month",D:"date",d:"day",h:"hour",m:"minute",s:"second",ms:"millisecond"},regEndS=/s$/;function normalizeUnit(unit){return unit=toStr(unit),unitShorthandMap[unit]||unit.toLowerCase().replace(regEndS,"")}function makeGetSet(unit){return function(num){return isNil(num)?this["_"+unit]:this.set(unit,num)}}function createAdder(dir){return function(num,unit){if("month"===(unit=normalizeUnit(unit)))return this.month(this._month+dir*num);if("year"===unit)return this.year(this._year+dir*num);num=function(num,unit){return ms(num+msMap[unit])}(num,unit);return this._d=new Date(this.valueOf()+dir*num),this._init()}}var msMap={day:"d",hour:"h",minute:"m",second:"s",millisecond:""};function monthDiff(a,b){var wholeMonthDiff=12*(b.year()-a.year())+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,"months"),b=b-anchor<0?(b-anchor)/(anchor-a.clone().add(wholeMonthDiff-1,"months")):(b-anchor)/(a.clone().add(1+wholeMonthDiff,"months")-anchor);return-(wholeMonthDiff+b)||0}module.exports=exports}),toEl=createCommonjsModule(function(module,exports){var range,doc=document;exports=function(str){var fragment=doc.createElement("body");return fragment.innerHTML=str,fragment.childNodes[0]},doc.createRange&&doc.body&&((range=doc.createRange()).selectNode(doc.body),range.createContextualFragment&&(exports=function(str){return range.createContextualFragment(str).childNodes[0]})),module.exports=exports}),morphDom=createCommonjsModule(function(module,exports){var ELEMENT_NODE=1,TEXT_NODE=3,COMMENT_NODE=8;function morphEl(from,to){!function(from,to){var attrs=to.attributes,removedAttrNames=(each(attrs,function(_ref){var name=_ref.name,_ref=_ref.value;from.getAttribute(name)!==_ref&&from.setAttribute(name,_ref)}),attrs=from.attributes,[]);each(attrs,function(_ref2){_ref2=_ref2.name;isNull(to.getAttribute(_ref2))&&removedAttrNames.push(_ref2)}),each(removedAttrNames,function(name){return from.removeAttribute(name)})}(from,to),function(from,to){var toNextSibling,fromNextSibling,curToChild=to.firstChild,curFromChild=from.firstChild;outer:for(;curToChild;){for(toNextSibling=curToChild.nextSibling;curFromChild;){fromNextSibling=curFromChild.nextSibling;var isCompatible=!1,curFromType=curFromChild.nodeType,curToType=curToChild.nodeType;if(curFromType===curToType&&(curFromType===ELEMENT_NODE?curFromChild.nodeName===curToChild.nodeName&&(isCompatible=!0,morphEl(curFromChild,curToChild)):curFromType!==TEXT_NODE&&curFromType!==COMMENT_NODE||(isCompatible=!0,curFromChild.nodeValue!==curToChild.nodeValue&&(curFromChild.nodeValue=curToChild.nodeValue))),isCompatible){curToChild=toNextSibling,curFromChild=fromNextSibling;continue outer}from.removeChild(curFromChild),curFromChild=fromNextSibling}from.appendChild(curToChild),curFromChild=fromNextSibling,curToChild=toNextSibling}if(curFromChild)for(;curFromChild;)fromNextSibling=curFromChild.nextSibling,from.removeChild(curFromChild),curFromChild=fromNextSibling}(from,to)}module.exports=function(from,to){isStr(to)&&(to=toEl(to));var morphed=from,morphedType=morphed.nodeType;if(morphedType===to.nodeType){if(morphedType===ELEMENT_NODE)morphed.nodeName!==to.nodeName&&function(from,to){var curChild=from.firstChild;for(;curChild;){var nextChild=curChild.nextSibling;to.appendChild(curChild),curChild=nextChild}}(from,morphed=h(to.nodeName));else if(morphedType===TEXT_NODE||morphedType===COMMENT_NODE)return morphed.nodeValue!==to.nodeValue&&(morphed.nodeValue=to.nodeValue),morphed}else morphed=to;return morphed!==to&&morphEl(morphed,to),from.parentNode&&from.parentNode.replaceChild(morphed,from),morphed}}),upperCase=createCommonjsModule(function(module,exports){module.exports=function(str){return toStr(str).toLocaleUpperCase()}}),morse=createCommonjsModule(function(module,exports){exports={encode:function(txt){for(var len=txt.length,ret=Array(len),i=0;i<len;i++){var c=upperCase(txt[i]);ret[i]=map[c]||"?"}return ret.join(" ")},decode:function(morse){for(var ret=morse.split(" "),i=0,len=ret.length;i<len;i++)ret[i]=decodeMap[ret[i]]||" ";return ret.join("")}};var map={A:".-",B:"-...",C:"-.-.",D:"-..",E:".",F:"..-.",G:"--.",H:"....",I:"..",J:".---",K:"-.-",L:".-..",M:"--",N:"-.",O:"---",P:".--.",Q:"--.-",R:".-.",S:"...",T:"-",U:"..-",V:"...-",W:".--",X:"-..-",Y:"-.--",Z:"--..","Á":".--.-","Ä":".-.-","É":"..-..","Ñ":"--.--","Ö":"---.","Ü":"..--",1:".----",2:"..---",3:"...--",4:"....-",5:".....",6:"-....",7:"--...",8:"---..",9:"----.",0:"-----",",":"--..--",".":".-.-.-","?":"..--..",";":"-.-.-",":":"---...","/":"-..-.","-":"-....-","'":".----.","()":"-.--.-",_:"..--.-","@":".--.-."," ":"......."},decodeMap=invert(map);module.exports=exports}),naturalSort=createCommonjsModule(function(module,exports){function naturalOrderComparator(a,b){if(a=toStr(a),b=toStr(b),startWith(a,"_")&&!startWith(b,"_"))return 1;if(startWith(b,"_")&&!startWith(a,"_"))return-1;for(var chunka,chunkb,bnum,chunk=/^\d+|^\D+/;;){if(!a)return b?-1:0;if(!b)return 1;if(chunka=a.match(chunk)[0],chunkb=b.match(chunk)[0],anum=!root.isNaN(chunka),bnum=!root.isNaN(chunkb),anum&&!bnum)return-1;if(bnum&&!anum)return 1;if(anum&&bnum){var anum=chunka-chunkb;if(anum)return anum;if(chunka.length!==chunkb.length)return+chunka||+chunkb?chunkb.length-chunka.length:chunka.length-chunkb.length}else if(chunka!==chunkb)return chunka<chunkb?-1:1;a=a.substring(chunka.length),b=b.substring(chunkb.length)}}module.exports=function(arr){return arr.sort(naturalOrderComparator)}}),negate=createCommonjsModule(function(module,exports){module.exports=function(predicate){return function(){return!predicate.apply(this,arguments)}}}),normalizeHeader=createCommonjsModule(function(module,exports){var specialHeaders={"content-md5":"Content-MD5",dnt:"DNT",etag:"ETag","last-event-id":"Last-Event-ID",tcn:"TCN",te:"TE","www-authenticate":"WWW-Authenticate","x-dnsprefetch-control":"X-DNSPrefetch-Control"};module.exports=function(header){return specialHeaders[header.toLowerCase()]||map(header.split("-"),capitalize).join("-")}}),normalizePath=createCommonjsModule(function(module,exports){var regSlashes=/[\\/]+/g;module.exports=function(path){return path.replace(regSlashes,"/")}}),normalizePhone=createCommonjsModule(function(module,exports){var regPlusSign=/^\+/,regNotDigit=/\D/g,regTrunkPrefix=/^\d/;module.exports=function(phone,options){phone=trim(phone);var countryCode=options.countryCode,options=options.trunkPrefix,options=void 0!==options&&options,plusSign=regPlusSign.test(phone);return phone=phone.replace(regNotDigit,""),plusSign&&(phone=phone.replace(new RegExp("^".concat(countryCode)),"")),options&&(phone=phone.replace(regTrunkPrefix,"")),"+".concat(countryCode+phone)}}),notify=createCommonjsModule(function(module,exports){var Notification=root.Notification;(exports=function(title,options){new exports.Notification(title,options).show()}).Notification=Emitter.extend({initialize:function(title){this._options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},this._title=title,this.callSuper(Emitter,"initialize",arguments)},handleEvent:function(e){this.emit(e.type,e)},show:function(){var _this=this;if(!Notification)return this.emit("error",Error("Notification is not supported"));"granted"===Notification.permission?this._show():Notification.requestPermission(function(permission){switch(permission){case"granted":_this._show();break;case"denied":_this.emit("error",Error("Notification permission is denied"))}})},_show:function(){var _this2=this,notification=new Notification(this._title,this._options);each(["show","close","click"],function(type){notification.addEventListener(type,_this2,!1)})}}),module.exports=exports}),notify_1=notify.Notification,pick=createCommonjsModule(function(module,exports){module.exports=function(obj,filter,omit){isStr(filter)&&(filter=[filter]),isArr(filter)&&(keys=filter,filter=function(val,key){return contain(keys,key)});var keys,ret={};return each(obj,omit?function(val,key){filter(val,key)||(ret[key]=val)}:function(val,key){filter(val,key)&&(ret[key]=val)}),ret}}),omit=createCommonjsModule(function(module,exports){module.exports=function(obj,filter){return pick(obj,filter,!0)}}),openFile=createCommonjsModule(function(module,exports){module.exports=function(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(resolve){var input=document.createElement("input");input.style.position="fixed",input.style.bottom="0",input.style.left="0",input.style.visibility="hidden",input.setAttribute("type","file"),options.accept&&input.setAttribute("accept",options.accept),options.multiple&&input.setAttribute("multiple",""),document.body.appendChild(input),input.addEventListener("change",function(){document.body.removeChild(input),resolve(input.files)}),input.click()})}}),ordinal=createCommonjsModule(function(module,exports){module.exports=function(num){var j=num%10,k=num%100;return num+(3==j&&13!=k?"rd":2==j&&12!=k?"nd":1==j&&11!=k?"st":"th")}}),orientation=createCommonjsModule(function(module,exports){var screen=window.screen;exports={get:function(){if(screen){var orientation=safeGet(screen,"orientation.type");if(orientation)return orientation.split("-").shift()}return window.innerWidth>window.innerHeight?"landscape":"portrait"}},Emitter.mixin(exports),window.addEventListener("orientationchange",function(){setTimeout(function(){exports.emit("change",exports.get())},200)},!1),module.exports=exports}),pad=createCommonjsModule(function(module,exports){module.exports=function(str,len,chars){var strLen=(str=toStr(str)).length;return chars=chars||" ",str=strLen<len?(str=(chars=repeat(chars,Math.ceil((len-strLen)/2)))+str+chars).substr(Math.ceil((str.length-len)/2),len):str}}),pairs=createCommonjsModule(function(module,exports){module.exports=function(obj){for(var _keys=keys(obj),len=_keys.length,ret=Array(len),i=0;i<len;i++)ret[i]=[_keys[i],obj[_keys[i]]];return ret}}),parallel=createCommonjsModule(function(module,exports){module.exports=function(tasks,cb){cb=cb||noop;var results=[],pending=tasks.length;if(!pending)return done(null);function done(err){nextTick(function(){cb(err,results),cb=noop})}each(tasks,function(task,i){task(function(err,result){!function(i,err,result){results[i]=result,0!=--pending&&!err||done(err)}(i,err,result)})})}}),parseArgs=createCommonjsModule(function(module,exports){var defOpts={names:{},shorthands:{}},regDoubleDash=/^--(.+)/,regSingleDash=/^-([^-]+)/,regDashStart=/^-/;module.exports=function(args,opts){defaults(opts=opts||{},defOpts);for(var type,names=opts.names,shorthands=invert(opts.shorthands),remain=[],ret={remain:remain},i=0,len=args.length;i<len;i++){var arg=args[i],nextArg=args[i+1],match=arg.match(regDoubleDash);if(match)name=match[1],(type=names[name])?nextArg&&!regDashStart.test(nextArg)?(setArg(name,nextArg),i++):"boolean"===type&&(setArg(name,!0),i++):remain.push(arg);else if(match=arg.match(regSingleDash))for(var letters=match[1],j=0;j<letters.length;j++){var name,letter=letters[j];(name=shorthands[letter])&&"boolean"===(type=names[name])&&setArg(shorthands[letter],!0)}else remain.push(arg)}function setArg(name,val){switch(names[name]){case"number":val=toNum(val);break;case"boolean":val=toBool(val)}ret[name]=val}return ret}}),pascalCase=createCommonjsModule(function(module,exports){module.exports=function(str){return upperFirst(camelCase(str))}}),prefetch=createCommonjsModule(function(module,exports){var link=document.createElement("link"),link=(link.relList||{}).supports&&link.relList.supports("prefetch");module.exports=link?function(url){return new Promise(function(resolve,reject){var link=document.createElement("link");link.rel="prefetch",link.href=url,link.onload=resolve,link.onerror=reject,document.head.appendChild(link)})}:function(url){return new Promise(function(resolve,reject){var req=new XMLHttpRequest;req.open("GET",url,req.withCredentials=!0),req.onload=function(){(200===req.status?resolve:reject)()},req.send()})}}),promisify=createCommonjsModule(function(module,exports){module.exports=function(fn,multiArgs){return restArgs(function(args){return new root.Promise(function(resolve,reject){args.push(restArgs(function(err,values){return err?reject(err):multiArgs?void resolve(values):resolve(values[0])})),fn.apply(this,args)})})}}),quickSort_1=createCommonjsModule(function(module,exports){function partition(arr,left,right,cmp){for(var pivot=arr[floor((right+left)/2)];left<=right;){for(;cmp(arr[left],pivot)<0;)left++;for(;0<cmp(arr[right],pivot);)right--;left<=right&&(swap(arr,left,right),left++,right--)}return left}var floor=Math.floor;module.exports=function(arr){var cmp=1<arguments.length&&void 0!==arguments[1]?arguments[1]:isSorted.defComparator;return function quickSort(arr,left,right,cmp){if(arr.length<=1)return arr;var idx=partition(arr,left,right,cmp);left<idx-1&&quickSort(arr,left,idx-1,cmp);idx<right&&quickSort(arr,idx,right,cmp);return arr}(arr,0,arr.length-1,cmp)}}),random=createCommonjsModule(function(module,exports){module.exports=function(min,max,floating){null==max&&(max=min,min=0);var rand=Math.random();return floating||min%1||max%1?Math.min(min+rand*(max-min+parseFloat("1e-"+((rand+"").length-1))),max):min+Math.floor(rand*(max-min+1))}}),randomBytes=createCommonjsModule(function(module,exports){var crypto;exports=function(size){for(var ret=new Uint8Array(size),i=0;i<size;i++)ret[i]=random(0,255);return ret},isBrowser?(crypto=window.crypto||window.msCrypto,crypto&&(exports=function(size){size=new Uint8Array(size);return crypto.getRandomValues(size),size})):isNode&&(crypto=eval("require")("crypto"),exports=function(size){return crypto.randomBytes(size)}),module.exports=exports}),seedRandom=createCommonjsModule(function(module,exports){module.exports=function(seed){var min=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,max=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,floating=!(3<arguments.length&&void 0!==arguments[3])||arguments[3];return function(){var rnd=min+(seed=(9301*seed+49297)%233280)/233280*(max-min);return floating?rnd:Math.floor(rnd)}}}),randomColor=createCommonjsModule(function(module,exports){var defOpts={count:1,format:"hex"};module.exports=exports=function(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},count=(defaults(options,defOpts),options.count),randomH=options.randomH,randomL=options.randomL,randomS=options.randomS;if(isFn(randomH)||(seed=options.seed||random(0,1e5),randomH=seedRandom(seed,0,360,!1),randomL=seedRandom(seed+1,0,1),randomS=seedRandom(seed+2,0,1)),1<count){for(var colors=[],i=0;i<count;i++)colors.push(exports(defaults({count:1,randomH:randomH,randomL:randomL,randomS:randomS},options)));return colors}var seed=options.hue||randomH(),lightness=options.lightness||randomL().toFixed(2),saturation=options.saturation||randomS().toFixed(2),color=new Color({val:[seed,Math.round(100*saturation),Math.round(100*lightness)],model:"hsl"});switch(options.format){case"hsl":return color.toHsl();case"rgb":return color.toRgb();default:return color.toHex()}}}),randomId=createCommonjsModule(function(module,exports){module.exports=function(){for(var size=0<arguments.length&&void 0!==arguments[0]?arguments[0]:21,symbols=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"ModuleSymbhasOwnPr-0123456789ABCDEFGHIJKLNQRTUVWXYZ_cfgijkpqtvxz",id="",len=symbols.length,bytes=randomBytes(21);0<size--;)id+=symbols[bytes[size]%len];return id}}),randomItem=createCommonjsModule(function(module,exports){module.exports=function(arr){return arr[random(0,arr.length-1)]}}),range=createCommonjsModule(function(module,exports){module.exports=function(start,end,step){null==end&&(end=start||0,start=0),step=step||(end<start?-1:1);for(var len=Math.max(Math.ceil((end-start)/step),0),ret=Array(len),i=0;i<len;i++,start+=step)ret[i]=start;return ret}}),rc4_1=createCommonjsModule(function(module,exports){function rc4(key,str,decrypt){key=strToBytes(key),str=decrypt?base64.decode(str):strToBytes(str);for(var x,result=[],s=[],j=0,i=0,i=0;i<256;i++)s[i]=i;for(i=0;i<256;i++)j=(j+s[i]+key[i%key.length])%256,x=s[i],s[i]=s[j],s[j]=x;for(var j=i=0,y=0,len=str.length;y<len;y++)j=(j+s[i=(i+1)%256])%256,x=s[i],s[i]=s[j],s[j]=x,result.push(str[y]^s[(s[i]+s[j])%256]);return decrypt?bytesToStr(result):base64.encode(result)}module.exports={encrypt:function(key,str){return rc4(key,str,!1)},decrypt:function(key,str){return rc4(key,str,!0)}}}),ready=createCommonjsModule(function(module,exports){var listener,fns=[],doc=document,hack=doc.documentElement.doScroll,loaded=(hack?/^loaded|^c/:/^loaded|^i|^c/).test(doc.readyState);loaded||doc.addEventListener("DOMContentLoaded",listener=function(){for(doc.removeEventListener("DOMContentLoaded",listener),loaded=1;listener=fns.shift();)listener()}),module.exports=function(fn){loaded?setTimeout(fn,0):fns.push(fn)}}),reduceRight=createCommonjsModule(function(module,exports){exports=reduce.create(-1),module.exports=exports}),reject=createCommonjsModule(function(module,exports){module.exports=function(obj,predicate,ctx){return predicate=safeCb(negate(predicate),ctx),filter(obj,predicate)}}),replaceAll=createCommonjsModule(function(module,exports){module.exports=function(str,substr,newSubstr){return str.replace(new RegExp(escapeRegExp(substr),"g"),newSubstr)}}),ric=createCommonjsModule(function(module,exports){(exports=root.requestIdleCallback||function(cb){var start=now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(now()-start))}})},1)}).cancel=root.cancelIdleCallback||function(id){clearTimeout(id)},module.exports=exports}),ric_1=ric.cancel,rmCookie=createCommonjsModule(function(module,exports){module.exports=function(key){var path,location=window.location,hostname=location.hostname,location=location.pathname,hostNames=hostname.split("."),pathNames=location.split("/"),domain="",pathLen=pathNames.length;if(!del())for(var i=hostNames.length-1;0<=i;i--){var hostName=hostNames[i];if(""!==hostName){if(del({domain:domain=""===domain?hostName:hostName+"."+domain,path:path="/"})||del({domain:domain}))return;for(var j=0;j<pathLen;j++){var pathName=pathNames[j];if(""!==pathName){if(del({domain:domain,path:path+=pathName})||del({path:path}))return;if(del({domain:domain,path:path+="/"})||del({path:path}))return}}}}function del(options){return cookie.remove(key,options=options||{}),!cookie.get(key)}}}),sameOrigin=createCommonjsModule(function(module,exports){module.exports=function(url1,url2){return url1=new Url(url1),url2=new Url(url2),url1.port=0|url1.port||("https"===url1.protocol?443:80),url2.port=0|url2.port||("https"===url2.protocol?443:80),url1.protocol===url2.protocol&&url1.hostname===url2.hostname&&url1.port===url2.port}}),sample=createCommonjsModule(function(module,exports){module.exports=function(obj,n){for(var sample=(isArrLike(obj)?clone:values)(obj),obj=sample.length,last=(n=Math.max(Math.min(n,obj),0),obj-1),i=0;i<n;i++){var rand=random(i,last);swap(sample,i,rand)}return sample.slice(0,n)}}),scrollTo=createCommonjsModule(function(module,exports){var defOpts={tolerance:0,duration:800,easing:"outQuart",callback:noop};module.exports=function(target,options){defaults(options=options||{},defOpts),isNum(target)||(target=$offset(target).top),new Tween({y:window.pageYOffset}).on("update",function(target){window.scroll(0,target.y)}).on("end",function(){options.callback()}).to({y:target-options.tolerance},options.duration,options.easing).play()}}),selectionSort=createCommonjsModule(function(module,exports){module.exports=function(arr){for(var cmp=1<arguments.length&&void 0!==arguments[1]?arguments[1]:isSorted.defComparator,i=0,len=arr.length;i<len;i++){for(var min=i,j=i+1;j<len;j++)cmp(arr[j],arr[min])<0&&(min=j);i!=min&&swap(arr,i,min)}return arr}}),shebang=createCommonjsModule(function(module,exports){var regShebang=/^#!(.*)/;module.exports=function(str){str=str.match(regShebang);if(str)return trim(str[1])}}),shellSort=createCommonjsModule(function(module,exports){module.exports=function(arr){for(var cmp=1<arguments.length&&void 0!==arguments[1]?arguments[1]:isSorted.defComparator,len=arr.length,gap=Math.floor(len/2);0<gap;){for(var i=gap;i<=len-gap;i++)for(var j=i;0<j&&cmp(arr[j],arr[j-gap])<0;j-=gap)swap(arr,j,j-gap);gap=Math.floor(gap/2)}return arr}}),shuffle=createCommonjsModule(function(module,exports){module.exports=function(obj){return sample(obj,1/0)}}),sizeof_1=createCommonjsModule(function(module,exports){var strSize=2,boolSize=4,numSize=8;module.exports=function(obj){return function sizeof(obj,_ref){var values=_ref.values;_ref=typeof obj;if("string"==_ref)return obj.length*strSize;if("number"==_ref)return numSize;if("boolean"==_ref)return boolSize;var size=0;if("object"==_ref&&!isNull(obj)){if(-1<values.indexOf(obj))return 0;if(values.push(obj),isArr(obj))for(var i=0,len=obj.length;i<len;i++)size+=sizeof(obj[i],{values:values});else for(var _keys=keys(obj),_i=0,_len=_keys.length;_i<_len;_i++){var key=_keys[_i];size=(size+=key.length*strSize)+sizeof(obj[key],{values:values})}}if(isBuffer(obj))return obj.length;return size}(obj,{values:[]})}}),sleep=createCommonjsModule(function(module,exports){module.exports=function(timeout){return new Promise(function(resolve){return setTimeout(resolve,timeout)})}}),slugify=createCommonjsModule(function(module,exports){exports=function(str){var replacement=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return defaults(replacement,defReplacement),reduce(str,function(result,char){return result+(replacement[char]||char)},"").replace(regForbidden,"")};var regForbidden=/[^\w\s$*_+~.()'"!\-:@]/g,defReplacement={};each("$ dollar,% percent,& and,< less,> greater,| or,¢ cent,£ pound,¤ currency,¥ yen,© (c),ª a,® (r),º o,À A,Á A, A,à A,Ä A,Å A,Æ AE,Ç C,È E,É E,Ê E,Ë E,Ì I,Í I,Î I,Ï I,Ð D,Ñ N,Ò O,Ó O,Ô O,Õ O,Ö O,Ø O,Ù U,Ú U,Û U,Ü U,Ý Y,Þ TH,ß ss,à a,á a,â a,ã a,ä a,å a,æ ae,ç c,è e,é e,ê e,ë e,ì i,í i,î i,ï i,ð d,ñ n,ò o,ó o,ô o,õ o,ö o,ø o,ù u,ú u,û u,ü u,ý y,þ th,ÿ y,Ā A,ā a,Ă A,ă a,Ą A,ą a,Ć C,ć c,Č C,č c,Ď D,ď d,Đ DJ,đ dj,Ē E,ē e,Ė E,ė e,Ę e,ę e,Ě E,ě e,Ğ G,ğ g,Ģ G,ģ g,Ĩ I,ĩ i,Ī i,ī i,Į I,į i,İ I,ı i,Ķ k,ķ k,Ļ L,ļ l,Ľ L,ľ l,Ł L,ł l,Ń N,ń n,Ņ N,ņ n,Ň N,ň n,Ő O,ő o,Œ OE,œ oe,Ŕ R,ŕ r,Ř R,ř r,Ś S,ś s,Ş S,ş s,Š S,š s,Ţ T,ţ t,Ť T,ť t,Ũ U,ũ u,Ū u,ū u,Ů U,ů u,Ű U,ű u,Ų U,ų u,Ź Z,ź z,Ż Z,ż z,Ž Z,ž z,ƒ f,Ơ O,ơ o,Ư U,ư u,Lj LJ,lj lj,Nj NJ,nj nj,Ș S,ș s,Ț T,ț t,˚ o,Ά A,Έ E,Ή H,Ί I,Ό O,Ύ Y,Ώ W,ΐ i,Α A,Β B,Γ G,Δ D,Ε E,Ζ Z,Η H,Θ 8,Ι I,Κ K,Λ L,Μ M,Ν N,Ξ 3,Ο O,Π P,Ρ R,Σ S,Τ T,Υ Y,Φ F,Χ X,Ψ PS,Ω W,Ϊ I,Ϋ Y,ά a,έ e,ή h,ί i,ΰ y,α a,β b,γ g,δ d,ε e,ζ z,η h,θ 8,ι i,κ k,λ l,μ m,ν n,ξ 3,ο o,π p,ρ r,ς s,σ s,τ t,υ y,φ f,χ x,ψ ps,ω w,ϊ i,ϋ y,ό o,ύ y,ώ w,Ё Yo,Ђ DJ,Є Ye,І I,Ї Yi,Ј J,Љ LJ,Њ NJ,Ћ C,Џ DZ,А A,Б B,В V,Г G,Д D,Е E,Ж Zh,З Z,И I,Й J,К K,Л L,М M,Н N,О O,П P,Р R,С S,Т T,У U,Ф F,Х H,Ц C,Ч Ch,Ш Sh,Щ Sh,Ъ U,Ы Y,Ь ,Э E,Ю Yu,Я Ya,а a,б b,в v,г g,д d,е e,ж zh,з z,и i,й j,к k,л l,м m,н n,о o,п p,р r,с s,т t,у u,ф f,х h,ц c,ч ch,ш sh,щ sh,ъ u,ы y,ь ,э e,ю yu,я ya,ё yo,ђ dj,є ye,і i,ї yi,ј j,љ lj,њ nj,ћ c,џ dz,Ґ G,ґ g,฿ baht,ა a,ბ b,გ g,დ d,ე e,ვ v,ზ z,თ t,ი i,კ k,ლ l,მ m,ნ n,ო o,პ p,ჟ zh,რ r,ს s,ტ t,უ u,ფ f,ქ k,ღ gh,ყ q,შ sh,ჩ ch,ც ts,ძ dz,წ ts,ჭ ch,ხ kh,ჯ j,ჰ h,ẞ SS,Ạ A,ạ a,Ả A,ả a,Ấ A,ấ a,Ầ A,ầ a,Ẩ A,ẩ a,Ẫ A,ẫ a,Ậ A,ậ a,Ắ A,ắ a,Ằ A,ằ a,Ẳ A,ẳ a,Ẵ A,ẵ a,Ặ A,ặ a,Ẹ E,ẹ e,Ẻ E,ẻ e,Ẽ E,ẽ e,Ế E,ế e,Ề E,ề e,Ể E,ể e,Ễ E,ễ e,Ệ E,ệ e,Ỉ I,ỉ i,Ị I,ị i,Ọ O,ọ o,Ỏ O,ỏ o,Ố O,ố o,Ồ O,ồ o,Ổ O,ổ o,Ỗ O,ỗ o,Ộ O,ộ o,Ớ O,ớ o,Ờ O,ờ o,Ở O,ở o,Ỡ O,ỡ o,Ợ O,ợ o,Ụ U,ụ u,Ủ U,ủ u,Ứ U,ứ u,Ừ U,ừ u,Ử U,ử u,Ữ U,ữ u,Ự U,ự u,Ỳ Y,ỳ y,Ỵ Y,ỵ y,Ỷ Y,ỷ y,Ỹ Y,ỹ y,‘ ',’ ',“ \",” \",† +,• *,… ...,₠ ecu,₢ cruzeiro,₣ french franc,₤ lira,₥ mill,₦ naira,₧ peseta,₨ rupee,₩ won,₪ new shequel,₫ dong,€ euro,₭ kip,₮ tugrik,₯ drachma,₰ penny,₱ peso,₲ guarani,₳ austral,₴ hryvnia,₵ cedi,₹ indian rupee,₽ russian ruble,₿ bitcoin,℠ sm,™ tm,∂ d,∆ delta,∑ sum,∞ infinity,♥ love,元 yuan,円 yen,﷼ rial".split(","),function(item){item=item.split(" "),defReplacement[item[0]]=item[1]}),defReplacement[" "]="-",module.exports=exports}),snakeCase=createCommonjsModule(function(module,exports){module.exports=function(str){return splitCase(str).join("_")}}),sortBy=createCommonjsModule(function(module,exports){module.exports=function(obj,iteratee,ctx){iteratee=safeCb(iteratee,ctx);var idx=0;return pluck(map(obj,function(val,key){return{val:val,idx:idx++,criteria:iteratee(val,key,obj)}}).sort(function(left,right){var a=left.criteria,b=right.criteria;if(a!==b){if(b<a||isUndef(a))return 1;if(a<b||isUndef(b))return-1}return left.idx-right.idx}),"val")}}),sortKeys=createCommonjsModule(function(module,exports){var defOpts={deep:!(exports=function(obj){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},deep=(defaults(options,defOpts),options.deep),comparator=options.comparator,visited=[],visitedResult=[];return function sort(obj){var result,idx=visited.indexOf(obj);if(-1<idx)return visitedResult[idx];if(isArr(obj)){result=[],visited.push(obj),visitedResult.push(result);for(var i=0,len=obj.length;i<len;i++){var value=obj[i];deep&&isObj(value)?result[i]=sort(value):result[i]=value}}else{result={},visited.push(obj),visitedResult.push(result);for(var _keys=keys(obj).sort(comparator),_i=0,_len=_keys.length;_i<_len;_i++){var key=_keys[_i],_value=obj[key];deep&&isObj(_value)?result[key]=sort(_value):result[key]=_value}}return result}(obj)}),comparator:isSorted.defComparator};module.exports=exports}),spaceCase=createCommonjsModule(function(module,exports){module.exports=function(str){return splitCase(str).join(" ")}}),splitPath=createCommonjsModule(function(module,exports){var regSplit=/^([\s\S]*?)((?:\.{1,2}|[^\\/]+?|)(\.[^./\\]*|))(?:[\\/]*)$/;module.exports=function(path){path=path.match(regSplit);return{dir:path[1],name:path[2],ext:path[3]}}}),stackTrace=createCommonjsModule(function(module,exports){module.exports=function(){var orig=Error.prepareStackTrace,stack=(Error.prepareStackTrace=function(_,stack){return stack},(new Error).stack.slice(1));return Error.prepareStackTrace=orig,stack}}),stringifyAll=createCommonjsModule(function(module,exports){function iterateObj(name,keys,obj,options){var parts=[];return each(keys,function(key){var val,descriptor=Object.getOwnPropertyDescriptor(obj,key),hasGetter=descriptor&&descriptor.get,hasSetter=descriptor&&descriptor.set;if(!options.accessGetter&&hasGetter)val="(...)";else try{if(val=obj[key],contain(options.ignore,val))return;isPromise(val)&&val.catch(function(){})}catch(e){val=e.message}parts.push("".concat(wrapKey(key),":").concat(exports(val,options))),hasGetter&&parts.push("".concat(wrapKey("get "+toStr(key)),":").concat(exports(descriptor.get,options))),hasSetter&&parts.push("".concat(wrapKey("set "+toStr(key)),":").concat(exports(descriptor.set,options)))}),'"'.concat(name,'":{')+parts.join(",")+"}"}function wrapKey(key){return'"'.concat(escapeJsonStr(key),'"')}function wrapStr(str){return'"'.concat(escapeJsonStr(toStr(str)),'"')}function escapeJsonStr(str){return escapeJsStr(str).replace(/\\'/g,"'").replace(/\t/g,"\\t")}exports=function(obj){var _ref=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},self=_ref.self,_ref$startTime=_ref.startTime,_ref$startTime=void 0===_ref$startTime?now():_ref$startTime,_ref$timeout=_ref.timeout,_ref$timeout=void 0===_ref$timeout?0:_ref$timeout,_ref$depth=_ref.depth,_ref$depth=void 0===_ref$depth?0:_ref$depth,_ref$curDepth=_ref.curDepth,_ref$curDepth=void 0===_ref$curDepth?1:_ref$curDepth,_ref$visitor=_ref.visitor,_ref$visitor=void 0===_ref$visitor?new Visitor:_ref$visitor,_ref$unenumerable=_ref.unenumerable,_ref$unenumerable=void 0!==_ref$unenumerable&&_ref$unenumerable,_ref$symbol=_ref.symbol,_ref$symbol=void 0!==_ref$symbol&&_ref$symbol,_ref$accessGetter=_ref.accessGetter,_ref=_ref.ignore,_ref=void 0===_ref?[]:_ref,json="",_ref$accessGetter={visitor:_ref$visitor,unenumerable:_ref$unenumerable,symbol:_ref$symbol,accessGetter:void 0!==_ref$accessGetter&&_ref$accessGetter,depth:_ref$depth,curDepth:_ref$curDepth+1,timeout:_ref$timeout,startTime:_ref$startTime,ignore:_ref},t=type(obj,!1);if("String"===t)json=wrapStr(obj);else if("Number"===t)json=toStr(obj),endWith(json,"Infinity")&&(json='{"value":"'.concat(json,'","type":"Number"}'));else if("NaN"===t)json='{"value":"NaN","type":"Number"}';else if("Boolean"===t)json=obj?"true":"false";else if("Null"===t)json="null";else if("Undefined"===t)json='{"type":"Undefined"}';else if("Symbol"===t){var val="Symbol";try{val=toStr(obj)}catch(e){}json='{"value":'.concat(wrapStr(val),',"type":"Symbol"}')}else{if(_ref$timeout&&now()-_ref$startTime>_ref$timeout)return wrapStr("Timeout");if(_ref$depth&&_ref$depth<_ref$curDepth)return wrapStr("{...}");var id,json="{",val=[],_ref$startTime=_ref$visitor.get(obj);_ref$startTime?(id=_ref$startTime.id,val.push('"reference":'.concat(id))):(id=_ref$visitor.set(obj),val.push('"id":'.concat(id))),val.push('"type":"'.concat(t,'"')),endWith(t,"Function")?val.push('"value":'.concat(wrapStr(toSrc(obj)))):"RegExp"===t&&val.push('"value":'.concat(wrapStr(obj))),_ref$startTime||((_ref$timeout=keys(obj)).length&&val.push(iterateObj("enumerable",_ref$timeout,self||obj,_ref$accessGetter)),!_ref$unenumerable||(_ref$depth=difference(allKeys(obj,{prototype:!1,unenumerable:!0}),_ref$timeout)).length&&val.push(iterateObj("unenumerable",_ref$depth,self||obj,_ref$accessGetter)),!_ref$symbol||(_ref$curDepth=filter(allKeys(obj,{prototype:!1,symbol:!0}),function(key){return"symbol"==typeof key})).length&&val.push(iterateObj("symbol",_ref$curDepth,self||obj,_ref$accessGetter)),(_ref$visitor=getProto(obj))&&!contain(_ref,_ref$visitor)&&(id='"proto":'.concat(exports(_ref$visitor,extend(_ref$accessGetter,{self:self||obj}))),val.push(id))),json+=val.join(",")+"}"}return json};var Visitor=Class({initialize:function(){this.id=1,this.visited=[]},set:function(val){var visited=this.visited,id=this.id;return visited.push({id:id,val:val}),this.id++,id},get:function(val){for(var visited=this.visited,i=0,len=visited.length;i<len;i++){var obj=visited[i];if(val===obj.val)return obj}return!1}});function retTimeout(){return"Timeout"}function strToRegExp(str){var lastSlash=str.lastIndexOf("/");return new RegExp(str.slice(1,lastSlash),str.slice(lastSlash+1))}exports.parse=function(str){var map={},str=function parse(obj,options){var map=options.map;if(!isObj(obj))return obj;var id=obj.id,type=obj.type,value=obj.value,proto=obj.proto,reference=obj.reference;var enumerable=obj.enumerable,unenumerable=obj.unenumerable;if(reference)return obj;{if("Number"===type)return"Infinity"===value?Number.POSITIVE_INFINITY:"-Infinity"===value?Number.NEGATIVE_INFINITY:NaN;if("Undefined"===type)return}var newObj;"Function"===type?((newObj=function(){}).toString=function(){return value},proto&&Object.setPrototypeOf(newObj,parse(proto,options))):newObj="RegExp"===type?strToRegExp(value):"Object"!==type?(reference=isMiniProgram?function(){}:new Function(type,""),proto&&(reference.prototype=parse(proto,options)),new reference):create(proto?parse(proto,options):null);var defineProps={};{var len;enumerable&&(isArrLike(enumerable)&&(len=enumerable.length,delete enumerable.length),enumerable=pick(enumerable,function(value,key){return!handleGetterSetter(enumerable,value,key)}),each(enumerable,function(value,key){var defineProp=defineProps[key]||{};defineProp.get||(newObj[key]=parse(value,options))}),len&&(newObj.length=len))}unenumerable&&(unenumerable=pick(unenumerable,function(value,key){return!handleGetterSetter(unenumerable,value,key)}),each(unenumerable,function(value,key){var _reference,defineProp=defineProps[key]||{};defineProp.get||(value=parse(value,options),isObj(value)&&value.reference?(_reference=value.reference,value=function(){return map[_reference]},defineProp.get=value):defineProp.value=value),defineProp.enumerable=!1,defineProps[key]=defineProp}));defineProp_1(newObj,defineProps);function handleGetterSetter(obj,val,key){key=toStr(key);var isGetterAndSetter=!1;return each(["get","set"],function(type){var realKey;startWith(key,type+" ")&&(realKey=key.replace(type+" ",""),obj[realKey]&&(val=parse(val,options),safeSet(defineProps,[realKey,type],val="Timeout"===val?retTimeout:val),isGetterAndSetter=!0))}),isGetterAndSetter}map[id]=newObj;return newObj}(JSON.parse(str),{map:map});return function(map){each(map,function(obj){for(var enumerableKeys=keys(obj),i=0,len=enumerableKeys.length;i<len;i++){var reference,key=enumerableKeys[i];!isObj(obj[key])||(reference=obj[key].reference)&&map[reference]&&(obj[key]=map[reference])}var proto=getProto(obj);proto&&proto.reference&&map[proto.reference]&&Object.setPrototypeOf(obj,map[proto.reference])})}(map),str},module.exports=exports}),stringifyAll_1=stringifyAll.parse,stripColor=createCommonjsModule(function(module,exports){var regColor=/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]/g;module.exports=function(str){return str.replace(regColor,"")}}),stripHtmlTag=createCommonjsModule(function(module,exports){var regHtmlTag=/<[^>]*>/g;module.exports=function(str){return str.replace(regHtmlTag,"")}}),stripIndent=createCommonjsModule(function(module,exports){var regStartSpaces=/^(\s+)\S+/;module.exports=function(literals){isStr(literals)&&(literals=toArr(literals));for(var str="",_len=arguments.length,placeholders=new Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)placeholders[_key-1]=arguments[_key];for(var i=0,len=literals.length;i<len;i++)str+=literals[i],placeholders[i]&&(str+=placeholders[i]);for(var lines=str.split("\n"),indentLens=[],_i=0,_len2=lines.length;_i<_len2;_i++){var _indent=lines[_i].match(regStartSpaces);_indent&&indentLens.push(_indent[1].length)}var indent=0<indentLens.length?min.apply(null,indentLens):0;return trim(map(lines,function(line){return" "===line[0]?line.slice(indent):line}).join("\n"))}}),stripNum=createCommonjsModule(function(module,exports){module.exports=function(num){return parseFloat(num.toPrecision(1<arguments.length&&void 0!==arguments[1]?arguments[1]:12))}}),sum=createCommonjsModule(function(module,exports){module.exports=function(){for(var arr=arguments,ret=0,i=0,len=arr.length;i<len;i++)ret+=arr[i];return ret}}),throttle=createCommonjsModule(function(module,exports){module.exports=function(fn,wait){return debounce(fn,wait,!0)}}),timeAgo=createCommonjsModule(function(module,exports){exports=function(date,now){isDate(date)||(date=new Date(date)),now=now||new Date;for(var i=0,now=0<(diff=((now=isDate(now)?now:new Date(now))-date)/1e3),diff=Math.abs(diff);diff>=secArr[i]&&i<secArrLen;)diff/=secArr[i],i++;return(0===(i*=2)?9:1)<(diff=toInt(diff))&&(i+=1),function(diff,i,ago){return exports.i18n[i][ago?0:1].replace("%s",diff)}(diff,i,now)};var secArr=[60,60,24,7,365/7/12,12],secArrLen=secArr.length;exports.i18n=[["just now","right now"],["%s seconds ago","in %s seconds"],["1 minute ago","in 1 minute"],["%s minutes ago","in %s minutes"],["1 hour ago","in 1 hour"],["%s hours ago","in %s hours"],["1 day ago","in 1 day"],["%s days ago","in %s days"],["1 week ago","in 1 week"],["%s weeks ago","in %s weeks"],["1 month ago","in 1 month"],["%s months ago","in %s months"],["1 year ago","in 1 year"],["%s years ago","in %s years"]],module.exports=exports}),timeAgo_1=timeAgo.i18n,timeTaken=createCommonjsModule(function(module,exports){module.exports=function(fn){var start=perfNow();return fn(),perfNow()-start}}),times=createCommonjsModule(function(module,exports){module.exports=function(n,fn,ctx){var ret=Array(Math.max(0,n));fn=optimizeCb(fn,ctx,1);for(var i=0;i<n;i++)ret[i]=fn(i);return ret}}),toAsync=createCommonjsModule(function(module,exports){module.exports=function(fn){if(!isGeneratorFn(fn))throw new TypeError("Expected a generator function");return function(){var _this=this,args=toArr(arguments);return new Promise(function(resolve,reject){var generator=fn.apply(_this,args);function onFulfilled(res){var ret;try{ret=generator.next(res)}catch(e){return reject(e)}next(ret)}function onRejected(err){var ret;try{ret=generator.throw(err)}catch(e){return reject(e)}next(ret)}function next(ret){return ret.done?resolve(ret.value):isPromise(ret.value)?ret.value.then(onFulfilled,onRejected):onRejected(new TypeError("You may only yield a promise, ".concat(toStr(ret.value)," is passed")))}onFulfilled()})}}}),topoSort=createCommonjsModule(function(module,exports){module.exports=function(edges){return function(nodes,edges){var cursor=nodes.length,sorted=new Array(cursor),visited={},i=cursor;for(;i--;)visited[i]||!function visit(node,i,predecessors){if(0<=predecessors.indexOf(node))throw new Error("Cyclic dependency: "+JSON.stringify(node));if(visited[i])return;visited[i]=!0;var outgoing=edges.filter(function(edge){return edge[0]===node});if(i=outgoing.length){var preds=predecessors.concat(node);do{var child=outgoing[--i][1];visit(child,nodes.indexOf(child),preds)}while(i)}sorted[--cursor]=node}(nodes[i],i,[]);return sorted}(function(arr){for(var ret=[],i=0,len=arr.length;i<len;i++){var edge=arr[i];ret.indexOf(edge[0])<0&&ret.push(edge[0]),ret.indexOf(edge[1])<0&&ret.push(edge[1])}return ret}(edges),edges)}}),truncate=createCommonjsModule(function(module,exports){var defOptions={ellipsis:"..."};module.exports=function(txt,width){var options=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},ellipsis=(defaults(options,defOptions),options.ellipsis),options=options.separator;if(txt.length<width)return txt;var end=width-ellipsis.length;if(end<1)return ellipsis;var ret=txt.slice(0,end);return isUndef(options)||txt.indexOf(options,end)===end||-1<(end=ret.lastIndexOf(options))&&(ret=ret.slice(0,end)),ret+ellipsis}}),tryIt=createCommonjsModule(function(module,exports){module.exports=function(fn,cb){cb=cb||noop;try{cb(null,fn())}catch(e){return void cb(e)}}}),types=createCommonjsModule(function(module,exports){module.exports={}}),uncaught=createCommonjsModule(function(module,exports){var isOn=!1;function callListeners(err){isOn&&exports.emit(err)}exports={start:function(){isOn=!0},stop:function(){isOn=!1}},SingleEmitter.mixin(exports),isBrowser?(window.addEventListener("error",function(event){callListeners(event.error)}),window.addEventListener("unhandledrejection",function(e){callListeners(e.reason)})):(process.on("uncaughtException",callListeners),process.on("unhandledRejection",callListeners)),module.exports=exports}),_unescape=createCommonjsModule(function(module,exports){exports=function(str){return regTest.test(str)?str.replace(regReplace,replaceFn):str};var map=invert(_escape.map),regSrc="(?:"+keys(map).join("|")+")",regTest=new RegExp(regSrc),regReplace=new RegExp(regSrc,"g");function replaceFn(match){return map[match]}module.exports=exports}),union=createCommonjsModule(function(module,exports){exports=restArgs(function(arrays){return unique(flatten(arrays))}),module.exports=exports}),universalify=createCommonjsModule(function(module,exports){module.exports=function(fn,type){var callbackFn,promiseFn;return"callback"===type?promiseFn=promisify(callbackFn=fn):callbackFn=callbackify(promiseFn=fn),function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];if(!isFn(last(args)))return promiseFn.apply(this,args);callbackFn.apply(this,args)}}}),unzip=createCommonjsModule(function(module,exports){module.exports=function(arr){for(var len=max.apply(null,map(arr,function(arr){return arr.length})),ret=Array(len),i=0;i<len;i++)ret[i]=pluck(arr,i);return ret}}),use=createCommonjsModule(function(module,exports){var modules=define_1._modules,requireMarks={};module.exports=function(requires,method){null==method&&(method=requires,requires=[]),requires=map(toArr(requires),function req(name){if(has(requireMarks,name))return modules[name];var requires=modules[name].requires;var body=modules[name].body;var len=requires.length;for(var i=0;i<len;i++)requires[i]=req(requires[i]);body=body.apply(null,requires);body&&(modules[name]=body);requireMarks[name]=!0;return modules[name]}),method.apply(null,requires)}}),uuid=createCommonjsModule(function(module,exports){exports=function(){var b=randomBytes(16);return b[6]=15&b[6]|64,b[8]=63&b[8]|128,hexBytes[b[0]]+hexBytes[b[1]]+hexBytes[b[2]]+hexBytes[b[3]]+"-"+hexBytes[b[4]]+hexBytes[b[5]]+"-"+hexBytes[b[6]]+hexBytes[b[7]]+"-"+hexBytes[b[8]]+hexBytes[b[9]]+"-"+hexBytes[b[10]]+hexBytes[b[11]]+hexBytes[b[12]]+hexBytes[b[13]]+hexBytes[b[14]]+hexBytes[b[15]]};for(var hexBytes=[],i=0;i<256;i++)hexBytes[i]=(i+256).toString(16).substr(1);module.exports=exports}),viewportScale=createCommonjsModule(function(module,exports){module.exports=function(){if(!(viewport=meta("viewport")))return 1;var viewport=map(viewport.split(","),function(val){return trim(val)}),minScale=.25,maxScale=5,initialScale=1,viewport=(each(viewport,function(val){var key=(val=val.split("="))[0];val=val[1],"initial-scale"===key&&(initialScale=+val),"maximum-scale"===key&&(maxScale=+val),"minimum-scale"===key&&(minScale=+val)}),clamp(initialScale,minScale,maxScale));return _isNaN(viewport)?1:viewport}}),vlq=createCommonjsModule(function(module,exports){exports={encode:function(arr){for(var ret="",i=0,len=(arr=toArr(arr)).length;i<len;i++)ret+=function(value){var ret="";value=function(value){return value<0?1+(-value<<1):value<<1}(value);do{var digit=value&VLQ_BASE_MASK}while(0<(value>>>=VLQ_BASE_SHIFT)&&(digit|=VLQ_CONTINUATION_BIT),ret+=intToChar[digit],0<value);return ret}(arr[i]);return ret},decode:function(str){for(var ret=[],i=0,len=str.length;i<len;){var value=0,shift=0;do{var digit=charToInt[str[i++]],continuation=0!=(digit&VLQ_CONTINUATION_BIT)}while(value+=(digit&=VLQ_BASE_MASK)<<shift,shift+=VLQ_BASE_SHIFT,continuation);ret.push(function(value){var negate=1==(1&value);return value>>=1,negate?-value:value}(value))}return ret}};for(var charToInt={},intToChar={},chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i=0,len=chars.length;i<len;i++)charToInt[chars[i]]=i,intToChar[i]=chars[i];var VLQ_BASE_SHIFT=5,VLQ_BASE=1<<VLQ_BASE_SHIFT,VLQ_BASE_MASK=VLQ_BASE-1,VLQ_CONTINUATION_BIT=VLQ_BASE;module.exports=exports}),waitUntil=createCommonjsModule(function(module,exports){module.exports=function(condition){var timeout=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,interval=2<arguments.length&&void 0!==arguments[2]?arguments[2]:250;return new Promise(function(resolve,reject){var startTime=now(),pollCondition=function(){new Promise(function(resolve,reject){try{resolve(condition())}catch(e){reject(e)}}).then(function(val){var elapsed=now()-startTime;val?resolve(val):timeout&&timeout<=elapsed?reject(Error("Wait timed out after ".concat(timeout," ms"))):setTimeout(pollCondition,interval)},reject)};pollCondition()})}}),waterfall=createCommonjsModule(function(module,exports){module.exports=function(tasks,cb){cb=cb||noop;var current=0,taskCb=restArgs(function(err,args){++current>=tasks.length||err?(args.unshift(err),nextTick(function(){cb.apply(null,args)})):(args.push(taskCb),tasks[current].apply(null,args))});tasks.length?tasks[0](taskCb):nextTick(function(){cb()})}}),wordWrap=createCommonjsModule(function(module,exports){var regWordBoundary=/(\S+\s+)/;module.exports=function(txt,width){txt=txt.split("\n");return map(txt,function(line){return function(txt,width){txt=reduce(txt.split(regWordBoundary),function(chunks,word){return""===trim(word)||(word.length>width?chunks=concat(chunks,word.match(new RegExp(".{1,".concat(width,"}"),"g"))):chunks.push(word)),chunks},[]);return reduce(txt,function(lines,chunk){var lastLine=last(lines);return lastLine.length+chunk.length>width?(""===trim(lastLine)&&lines.pop(),lines.push(chunk)):lines[lines.length-1]=lastLine+chunk,lines},[txt.shift()]).join("\n")}(line,width)}).join("\n")}}),workerize=createCommonjsModule(function(module,exports){function isPromise(val){return!!val&&("object"==typeof val||"function"==typeof val)&&"function"==typeof val.then&&"function"==typeof val.catch}module.exports=function(fn){var promises={},fn=[toSrc(isPromise),"onmessage=(",toSrc(function(fn){return function(e){var value,data=e.data,id=data[0],data=data[1];try{isPromise(value=fn.apply(fn,data))?value.then(function(value){postMessage([id,null,value])},function(err){postMessage([id,err.message])}):postMessage([id,null,value])}catch(e){postMessage([id,e.message])}}}),")("+toSrc(fn)+")"].join("\n"),worker=new Worker(createUrl(fn));return worker.onmessage=function(e){var e=e.data,id=e[0],err=e[1],e=e[2];isStr(err)&&(err=new Error(err)),promises[id](err,e),delete promises[id]},restArgs(function(args){var id=uniqId("workerize");return new root.Promise(function(resolve,reject){promises[id]=function(err,value){if(err)return reject(err);resolve(value)},worker.postMessage([id,args])})})}}),xpath=createCommonjsModule(function(module,exports){module.exports=function(xpath){for(var ret=[],nodesSnapshot=document.evaluate(xpath,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),i=0;i<nodesSnapshot.snapshotLength;i++)ret.push(nodesSnapshot.snapshotItem(i));return ret}}),zip=createCommonjsModule(function(module,exports){exports=restArgs(unzip),module.exports=exports}),$$1=$,$attr$1=$attr,$class$1=$class,$css$1=$css,$data$1=$data,$event$1=$event,$insert$1=$insert,$offset$1=$offset,$property$1=$property,$remove$1=$remove,$safeEls$1=$safeEls,$show$1=$show,Benchmark$1=Benchmark,Blob$2=Blob$1,BloomFilter$1=BloomFilter,Caseless$1=Caseless,Class$1=Class,Color$1=Color,Delegator$1=Delegator,Dispatcher$1=Dispatcher,Emitter$1=Emitter,Enum$1=Enum,HashTable$1=HashTable,Heap$1=Heap,HeapSnapshot$1=HeapSnapshot,I18n$1=I18n,JsonTransformer$1=JsonTransformer,LinkedList$1=LinkedList,LocalStore$1=LocalStore,Logger$1=Logger,Lru$1=Lru,MediaQuery$1=MediaQuery,MutationObserver$1=MutationObserver,PriorityQueue$1=PriorityQueue,Promise$1=_Promise,PseudoMap$1=PseudoMap,Queue$1=Queue,QuickLru$1=QuickLru,Readiness$1=Readiness,ReduceStore$1=ReduceStore,ResizeSensor$1=ResizeSensor,Select$1=Select,Semaphore$1=Semaphore,SessionStore$1=SessionStore,SingleEmitter$1=SingleEmitter,Socket$1=Socket,Stack$1=Stack,State$1=State,Store$1=Store,Trace$1=Trace,Tracing$1=Tracing,Trie$1=Trie,Tween$1=Tween,Url$1=Url,Validator$1=Validator,Wrr$1=Wrr,abbrev$1=abbrev,after$1=after,ajax$1=ajax,allKeys$1=allKeys,arrToMap$1=arrToMap,atob$1=atob,average$1=average,base64$1=base64,before$1=before,binarySearch$1=binarySearch,bind$1=bind,btoa$1=btoa,bubbleSort$1=bubbleSort,bytesToStr$1=bytesToStr,bytesToWords$1=bytesToWords,callbackify$1=callbackify,camelCase$1=camelCase,capitalize$1=capitalize,castPath$1=castPath,centerAlign$1=centerAlign,char_1$1=char_1,chunk$1=chunk,clamp$1=clamp,className$1=className,cliHelp$1=cliHelp,clone$1=clone,cloneDeep$1=cloneDeep,cmpVersion$1=cmpVersion,combine$1=combine,compact$1=compact,compose$1=compose,compressImg$1=compressImg,concat$1=concat,contain$1=contain,convertBase$1=convertBase,convertBin$1=convertBin,cookie$1=cookie,copy$1=copy,crc1$1=crc1,crc16$1=crc16,crc32$1=crc32,crc8$1=crc8,create$1=create,createAssigner$1=createAssigner,createUrl$1=createUrl,css$1=css,cssPriority$1=cssPriority,cssSupports$1=cssSupports,curry$1=curry,dateFormat$1=dateFormat,debounce$1=debounce,debug$1=debug,deburr$1=deburr,decodeUriComponent$1=decodeUriComponent,defaults$1=defaults,define=define_1,defineProp=defineProp_1,defined$1=defined,delay$1=delay,delegate$1=delegate,deprecate$1=deprecate,detectBrowser$1=detectBrowser,detectMocha$1=detectMocha,detectOs$1=detectOs,difference$1=difference,dotCase$1=dotCase,download$1=download,durationFormat$1=durationFormat,each$1=each,easing$1=easing,emulateTouch$1=emulateTouch,endWith$1=endWith,escape=_escape,escapeJsStr$1=escapeJsStr,escapeRegExp$1=escapeRegExp,evalCss$1=evalCss,evalJs$1=evalJs,every$1=every,extend$1=extend,extendDeep$1=extendDeep,extendOwn$1=extendOwn,extractBlockCmts$1=extractBlockCmts,extractUrls$1=extractUrls,fetch$1=fetch,fibonacci$1=fibonacci,fileSize$1=fileSize,fileType$1=fileType,fill$1=fill,filter$1=filter,find$1=find,findIdx$1=findIdx,findKey$1=findKey,findLastIdx$1=findLastIdx,flatten$1=flatten,fnArgs$1=fnArgs,fnParams$1=fnParams,fnv1a$1=fnv1a,format$1=format,fraction$1=fraction,freeze$1=freeze,freezeDeep$1=freezeDeep,fullscreen$1=fullscreen,fuzzySearch$1=fuzzySearch,gcd$1=gcd,getProto$1=getProto,getUrlParam$1=getUrlParam,golangify$1=golangify,h$1=h,has$1=has,heapSort$1=heapSort,hex$1=hex,highlight$1=highlight,hookFn$1=hookFn,hotkey$1=hotkey,hslToRgb$1=hslToRgb,html$1=html,identity$1=identity,idxOf$1=idxOf,indent$1=indent,inherits$1=inherits,ini$1=ini,insertionSort$1=insertionSort,intersect$1=intersect,intersectRange$1=intersectRange,invariant$1=invariant,invert$1=invert,isAbsoluteUrl$1=isAbsoluteUrl,isArgs$1=isArgs,isArr$1=isArr,isArrBuffer$1=isArrBuffer,isArrLike$1=isArrLike,isAsyncFn$1=isAsyncFn,isBlob$1=isBlob,isBool$1=isBool,isBrowser$1=isBrowser,isBuffer$1=isBuffer,isClose$1=isClose,isCyclic$1=isCyclic,isDarkMode$1=isDarkMode,isDataUrl$1=isDataUrl,isDate$1=isDate,isEl$1=isEl,isEmail$1=isEmail,isEmpty$1=isEmpty,isEqual$1=isEqual,isErr$1=isErr,isEven$1=isEven,isFile$1=isFile,isFinite=_isFinite,isFn$1=isFn,isFullWidth$1=isFullWidth,isGeneratorFn$1=isGeneratorFn,isHidden$1=isHidden,isInt$1=isInt,isIp$1=isIp,isJson$1=isJson,isLeapYear$1=isLeapYear,isMap$1=isMap,isMatch$1=isMatch,isMiniProgram$1=isMiniProgram,isMobile$1=isMobile,isNaN=_isNaN,isNative$1=isNative,isNil$1=isNil,isNode$1=isNode,isNull$1=isNull,isNum$1=isNum,isNumeric$1=isNumeric,isObj$1=isObj,isOdd$1=isOdd,isPlainObj$1=isPlainObj,isPrime$1=isPrime,isPrimitive$1=isPrimitive,isPromise$1=isPromise,isRegExp$1=isRegExp,isRelative$1=isRelative,isRetina$1=isRetina,isSet$1=isSet,isSorted$1=isSorted,isStr$1=isStr,isSymbol$1=isSymbol,isTypedArr$1=isTypedArr,isUndef$1=isUndef,isUrl$1=isUrl,isWeakMap$1=isWeakMap,isWeakSet$1=isWeakSet,jsonClone$1=jsonClone,jsonp$1=jsonp,kebabCase$1=kebabCase,keyCode$1=keyCode,keys$1=keys,last$1=last,levenshtein$1=levenshtein,linkify$1=linkify,loadCss$1=loadCss,loadImg$1=loadImg,loadJs$1=loadJs,longest$1=longest,lowerCase$1=lowerCase,lpad$1=lpad,ltrim$1=ltrim,map$1=map,mapObj$1=mapObj,matcher$1=matcher,max$1=max,md5$1=md5,memStorage$1=memStorage,memoize$1=memoize,mergeArr$1=mergeArr,mergeSort$1=mergeSort,meta$1=meta,methods$1=methods,mime$1=mime,min$1=min,moment$1=moment,morphDom$1=morphDom,morse$1=morse,ms$1=ms,naturalSort$1=naturalSort,negate$1=negate,nextTick$1=nextTick,noop$1=noop,normalizeHeader$1=normalizeHeader,normalizePath$1=normalizePath,normalizePhone$1=normalizePhone,notify$1=notify,now$1=now,objToStr$1=objToStr,omit$1=omit,once$1=once,openFile$1=openFile,optimizeCb$1=optimizeCb,ordinal$1=ordinal,orientation$1=orientation,pad$1=pad,pairs$1=pairs,parallel$1=parallel,parseArgs$1=parseArgs,parseHtml$1=parseHtml,partial$1=partial,pascalCase$1=pascalCase,perfNow$1=perfNow,pick$1=pick,pluck$1=pluck,precision$1=precision,prefetch$1=prefetch,prefix$1=prefix,promisify$1=promisify,property$1=property,query$1=query,quickSort=quickSort_1,raf=raf_1,random$1=random,randomBytes$1=randomBytes,randomColor$1=randomColor,randomId$1=randomId,randomItem$1=randomItem,range$1=range,rc4=rc4_1,ready$1=ready,reduce$1=reduce,reduceRight$1=reduceRight,reject$1=reject,remove$1=remove,repeat$1=repeat,replaceAll$1=replaceAll,restArgs$1=restArgs,reverse$1=reverse,rgbToHsl$1=rgbToHsl,ric$1=ric,rmCookie$1=rmCookie,root$1=root,rpad$1=rpad,rtrim$1=rtrim,safeCb$1=safeCb,safeDel$1=safeDel,safeGet$1=safeGet,safeSet$1=safeSet,safeStorage$1=safeStorage,sameOrigin$1=sameOrigin,sample$1=sample,scrollTo$1=scrollTo,seedRandom$1=seedRandom,selectionSort$1=selectionSort,selector$1=selector,shebang$1=shebang,shellSort$1=shellSort,shuffle$1=shuffle,size$1=size,sizeof=sizeof_1,sleep$1=sleep,slice$1=slice,slugify$1=slugify,snakeCase$1=snakeCase,some$1=some,sortBy$1=sortBy,sortKeys$1=sortKeys,spaceCase$1=spaceCase,splitCase$1=splitCase,splitPath$1=splitPath,stackTrace$1=stackTrace,startWith$1=startWith,strHash$1=strHash,strToBytes$1=strToBytes,strTpl$1=strTpl,strWidth$1=strWidth,stringify$1=stringify,stringifyAll$1=stringifyAll,stripAnsi$1=stripAnsi,stripCmt$1=stripCmt,stripColor$1=stripColor,stripHtmlTag$1=stripHtmlTag,stripIndent$1=stripIndent,stripNum$1=stripNum,sum$1=sum,swap$1=swap,table$1=table,template$1=template,throttle$1=throttle,timeAgo$1=timeAgo,timeTaken$1=timeTaken,times$1=times,toArr$1=toArr,toAsync$1=toAsync,toBool$1=toBool,toDate$1=toDate,toEl$1=toEl,toInt$1=toInt,toNum$1=toNum,toSrc$1=toSrc,toStr$1=toStr,topoSort$1=topoSort,trigger$1=trigger,trim$1=trim,truncate$1=truncate,tryIt$1=tryIt,type$1=type,types$1=types,ucs2$1=ucs2,uncaught$1=uncaught,unescape=_unescape,union$1=union,uniqId$1=uniqId,unique$1=unique,universalify$1=universalify,unzip$1=unzip,upperCase$1=upperCase,upperFirst$1=upperFirst,use$1=use,utf8$1=utf8,uuid$1=uuid,values$1=values,viewportScale$1=viewportScale,vlq$1=vlq,waitUntil$1=waitUntil,waterfall$1=waterfall,wordWrap$1=wordWrap,wordsToBytes$1=wordsToBytes,workerize$1=workerize,wrap$1=wrap,xpath$1=xpath,zip$1=zip,browser={$:$$1,$attr:$attr$1,$class:$class$1,$css:$css$1,$data:$data$1,$event:$event$1,$insert:$insert$1,$offset:$offset$1,$property:$property$1,$remove:$remove$1,$safeEls:$safeEls$1,$show:$show$1,Benchmark:Benchmark$1,Blob:Blob$2,BloomFilter:BloomFilter$1,Caseless:Caseless$1,Class:Class$1,Color:Color$1,Delegator:Delegator$1,Dispatcher:Dispatcher$1,Emitter:Emitter$1,Enum:Enum$1,HashTable:HashTable$1,Heap:Heap$1,HeapSnapshot:HeapSnapshot$1,I18n:I18n$1,JsonTransformer:JsonTransformer$1,LinkedList:LinkedList$1,LocalStore:LocalStore$1,Logger:Logger$1,Lru:Lru$1,MediaQuery:MediaQuery$1,MutationObserver:MutationObserver$1,PriorityQueue:PriorityQueue$1,Promise:Promise$1,PseudoMap:PseudoMap$1,Queue:Queue$1,QuickLru:QuickLru$1,Readiness:Readiness$1,ReduceStore:ReduceStore$1,ResizeSensor:ResizeSensor$1,Select:Select$1,Semaphore:Semaphore$1,SessionStore:SessionStore$1,SingleEmitter:SingleEmitter$1,Socket:Socket$1,Stack:Stack$1,State:State$1,Store:Store$1,Trace:Trace$1,Tracing:Tracing$1,Trie:Trie$1,Tween:Tween$1,Url:Url$1,Validator:Validator$1,Wrr:Wrr$1,abbrev:abbrev$1,after:after$1,ajax:ajax$1,allKeys:allKeys$1,arrToMap:arrToMap$1,atob:atob$1,average:average$1,base64:base64$1,before:before$1,binarySearch:binarySearch$1,bind:bind$1,btoa:btoa$1,bubbleSort:bubbleSort$1,bytesToStr:bytesToStr$1,bytesToWords:bytesToWords$1,callbackify:callbackify$1,camelCase:camelCase$1,capitalize:capitalize$1,castPath:castPath$1,centerAlign:centerAlign$1,char:char_1$1,chunk:chunk$1,clamp:clamp$1,className:className$1,cliHelp:cliHelp$1,clone:clone$1,cloneDeep:cloneDeep$1,cmpVersion:cmpVersion$1,combine:combine$1,compact:compact$1,compose:compose$1,compressImg:compressImg$1,concat:concat$1,contain:contain$1,convertBase:convertBase$1,convertBin:convertBin$1,cookie:cookie$1,copy:copy$1,crc1:crc1$1,crc16:crc16$1,crc32:crc32$1,crc8:crc8$1,create:create$1,createAssigner:createAssigner$1,createUrl:createUrl$1,css:css$1,cssPriority:cssPriority$1,cssSupports:cssSupports$1,curry:curry$1,dateFormat:dateFormat$1,debounce:debounce$1,debug:debug$1,deburr:deburr$1,decodeUriComponent:decodeUriComponent$1,defaults:defaults$1,define:define,defineProp:defineProp,defined:defined$1,delay:delay$1,delegate:delegate$1,deprecate:deprecate$1,detectBrowser:detectBrowser$1,detectMocha:detectMocha$1,detectOs:detectOs$1,difference:difference$1,dotCase:dotCase$1,download:download$1,durationFormat:durationFormat$1,each:each$1,easing:easing$1,emulateTouch:emulateTouch$1,endWith:endWith$1,escape:escape,escapeJsStr:escapeJsStr$1,escapeRegExp:escapeRegExp$1,evalCss:evalCss$1,evalJs:evalJs$1,every:every$1,extend:extend$1,extendDeep:extendDeep$1,extendOwn:extendOwn$1,extractBlockCmts:extractBlockCmts$1,extractUrls:extractUrls$1,fetch:fetch$1,fibonacci:fibonacci$1,fileSize:fileSize$1,fileType:fileType$1,fill:fill$1,filter:filter$1,find:find$1,findIdx:findIdx$1,findKey:findKey$1,findLastIdx:findLastIdx$1,flatten:flatten$1,fnArgs:fnArgs$1,fnParams:fnParams$1,fnv1a:fnv1a$1,format:format$1,fraction:fraction$1,freeze:freeze$1,freezeDeep:freezeDeep$1,fullscreen:fullscreen$1,fuzzySearch:fuzzySearch$1,gcd:gcd$1,getProto:getProto$1,getUrlParam:getUrlParam$1,golangify:golangify$1,h:h$1,has:has$1,heapSort:heapSort$1,hex:hex$1,highlight:highlight$1,hookFn:hookFn$1,hotkey:hotkey$1,hslToRgb:hslToRgb$1,html:html$1,identity:identity$1,idxOf:idxOf$1,indent:indent$1,inherits:inherits$1,ini:ini$1,insertionSort:insertionSort$1,intersect:intersect$1,intersectRange:intersectRange$1,invariant:invariant$1,invert:invert$1,isAbsoluteUrl:isAbsoluteUrl$1,isArgs:isArgs$1,isArr:isArr$1,isArrBuffer:isArrBuffer$1,isArrLike:isArrLike$1,isAsyncFn:isAsyncFn$1,isBlob:isBlob$1,isBool:isBool$1,isBrowser:isBrowser$1,isBuffer:isBuffer$1,isClose:isClose$1,isCyclic:isCyclic$1,isDarkMode:isDarkMode$1,isDataUrl:isDataUrl$1,isDate:isDate$1,isEl:isEl$1,isEmail:isEmail$1,isEmpty:isEmpty$1,isEqual:isEqual$1,isErr:isErr$1,isEven:isEven$1,isFile:isFile$1,isFinite:isFinite,isFn:isFn$1,isFullWidth:isFullWidth$1,isGeneratorFn:isGeneratorFn$1,isHidden:isHidden$1,isInt:isInt$1,isIp:isIp$1,isJson:isJson$1,isLeapYear:isLeapYear$1,isMap:isMap$1,isMatch:isMatch$1,isMiniProgram:isMiniProgram$1,isMobile:isMobile$1,isNaN:isNaN,isNative:isNative$1,isNil:isNil$1,isNode:isNode$1,isNull:isNull$1,isNum:isNum$1,isNumeric:isNumeric$1,isObj:isObj$1,isOdd:isOdd$1,isPlainObj:isPlainObj$1,isPrime:isPrime$1,isPrimitive:isPrimitive$1,isPromise:isPromise$1,isRegExp:isRegExp$1,isRelative:isRelative$1,isRetina:isRetina$1,isSet:isSet$1,isSorted:isSorted$1,isStr:isStr$1,isSymbol:isSymbol$1,isTypedArr:isTypedArr$1,isUndef:isUndef$1,isUrl:isUrl$1,isWeakMap:isWeakMap$1,isWeakSet:isWeakSet$1,jsonClone:jsonClone$1,jsonp:jsonp$1,kebabCase:kebabCase$1,keyCode:keyCode$1,keys:keys$1,last:last$1,levenshtein:levenshtein$1,linkify:linkify$1,loadCss:loadCss$1,loadImg:loadImg$1,loadJs:loadJs$1,longest:longest$1,lowerCase:lowerCase$1,lpad:lpad$1,ltrim:ltrim$1,map:map$1,mapObj:mapObj$1,matcher:matcher$1,max:max$1,md5:md5$1,memStorage:memStorage$1,memoize:memoize$1,mergeArr:mergeArr$1,mergeSort:mergeSort$1,meta:meta$1,methods:methods$1,mime:mime$1,min:min$1,moment:moment$1,morphDom:morphDom$1,morse:morse$1,ms:ms$1,naturalSort:naturalSort$1,negate:negate$1,nextTick:nextTick$1,noop:noop$1,normalizeHeader:normalizeHeader$1,normalizePath:normalizePath$1,normalizePhone:normalizePhone$1,notify:notify$1,now:now$1,objToStr:objToStr$1,omit:omit$1,once:once$1,openFile:openFile$1,optimizeCb:optimizeCb$1,ordinal:ordinal$1,orientation:orientation$1,pad:pad$1,pairs:pairs$1,parallel:parallel$1,parseArgs:parseArgs$1,parseHtml:parseHtml$1,partial:partial$1,pascalCase:pascalCase$1,perfNow:perfNow$1,pick:pick$1,pluck:pluck$1,precision:precision$1,prefetch:prefetch$1,prefix:prefix$1,promisify:promisify$1,property:property$1,query:query$1,quickSort:quickSort,raf:raf,random:random$1,randomBytes:randomBytes$1,randomColor:randomColor$1,randomId:randomId$1,randomItem:randomItem$1,range:range$1,rc4:rc4,ready:ready$1,reduce:reduce$1,reduceRight:reduceRight$1,reject:reject$1,remove:remove$1,repeat:repeat$1,replaceAll:replaceAll$1,restArgs:restArgs$1,reverse:reverse$1,rgbToHsl:rgbToHsl$1,ric:ric$1,rmCookie:rmCookie$1,root:root$1,rpad:rpad$1,rtrim:rtrim$1,safeCb:safeCb$1,safeDel:safeDel$1,safeGet:safeGet$1,safeSet:safeSet$1,safeStorage:safeStorage$1,sameOrigin:sameOrigin$1,sample:sample$1,scrollTo:scrollTo$1,seedRandom:seedRandom$1,selectionSort:selectionSort$1,selector:selector$1,shebang:shebang$1,shellSort:shellSort$1,shuffle:shuffle$1,size:size$1,sizeof:sizeof,sleep:sleep$1,slice:slice$1,slugify:slugify$1,snakeCase:snakeCase$1,some:some$1,sortBy:sortBy$1,sortKeys:sortKeys$1,spaceCase:spaceCase$1,splitCase:splitCase$1,splitPath:splitPath$1,stackTrace:stackTrace$1,startWith:startWith$1,strHash:strHash$1,strToBytes:strToBytes$1,strTpl:strTpl$1,strWidth:strWidth$1,stringify:stringify$1,stringifyAll:stringifyAll$1,stripAnsi:stripAnsi$1,stripCmt:stripCmt$1,stripColor:stripColor$1,stripHtmlTag:stripHtmlTag$1,stripIndent:stripIndent$1,stripNum:stripNum$1,sum:sum$1,swap:swap$1,table:table$1,template:template$1,throttle:throttle$1,timeAgo:timeAgo$1,timeTaken:timeTaken$1,times:times$1,toArr:toArr$1,toAsync:toAsync$1,toBool:toBool$1,toDate:toDate$1,toEl:toEl$1,toInt:toInt$1,toNum:toNum$1,toSrc:toSrc$1,toStr:toStr$1,topoSort:topoSort$1,trigger:trigger$1,trim:trim$1,truncate:truncate$1,tryIt:tryIt$1,type:type$1,types:types$1,ucs2:ucs2$1,uncaught:uncaught$1,unescape:unescape,union:union$1,uniqId:uniqId$1,unique:unique$1,universalify:universalify$1,unzip:unzip$1,upperCase:upperCase$1,upperFirst:upperFirst$1,use:use$1,utf8:utf8$1,uuid:uuid$1,values:values$1,viewportScale:viewportScale$1,vlq:vlq$1,waitUntil:waitUntil$1,waterfall:waterfall$1,wordWrap:wordWrap$1,wordsToBytes:wordsToBytes$1,workerize:workerize$1,wrap:wrap$1,xpath:xpath$1,zip:zip$1},$nux=Object.freeze({__proto__:null,default:browser,__moduleExports:browser,$:$$1,$attr:$attr$1,$class:$class$1,$css:$css$1,$data:$data$1,$event:$event$1,$insert:$insert$1,$offset:$offset$1,$property:$property$1,$remove:$remove$1,$safeEls:$safeEls$1,$show:$show$1,Benchmark:Benchmark$1,Blob:Blob$2,BloomFilter:BloomFilter$1,Caseless:Caseless$1,Class:Class$1,Color:Color$1,Delegator:Delegator$1,Dispatcher:Dispatcher$1,Emitter:Emitter$1,Enum:Enum$1,HashTable:HashTable$1,Heap:Heap$1,HeapSnapshot:HeapSnapshot$1,I18n:I18n$1,JsonTransformer:JsonTransformer$1,LinkedList:LinkedList$1,LocalStore:LocalStore$1,Logger:Logger$1,Lru:Lru$1,MediaQuery:MediaQuery$1,MutationObserver:MutationObserver$1,PriorityQueue:PriorityQueue$1,Promise:Promise$1,PseudoMap:PseudoMap$1,Queue:Queue$1,QuickLru:QuickLru$1,Readiness:Readiness$1,ReduceStore:ReduceStore$1,ResizeSensor:ResizeSensor$1,Select:Select$1,Semaphore:Semaphore$1,SessionStore:SessionStore$1,SingleEmitter:SingleEmitter$1,Socket:Socket$1,Stack:Stack$1,State:State$1,Store:Store$1,Trace:Trace$1,Tracing:Tracing$1,Trie:Trie$1,Tween:Tween$1,Url:Url$1,Validator:Validator$1,Wrr:Wrr$1,abbrev:abbrev$1,after:after$1,ajax:ajax$1,allKeys:allKeys$1,arrToMap:arrToMap$1,atob:atob$1,average:average$1,base64:base64$1,before:before$1,binarySearch:binarySearch$1,bind:bind$1,btoa:btoa$1,bubbleSort:bubbleSort$1,bytesToStr:bytesToStr$1,bytesToWords:bytesToWords$1,callbackify:callbackify$1,camelCase:camelCase$1,capitalize:capitalize$1,castPath:castPath$1,centerAlign:centerAlign$1,char:char_1$1,chunk:chunk$1,clamp:clamp$1,className:className$1,cliHelp:cliHelp$1,clone:clone$1,cloneDeep:cloneDeep$1,cmpVersion:cmpVersion$1,combine:combine$1,compact:compact$1,compose:compose$1,compressImg:compressImg$1,concat:concat$1,contain:contain$1,convertBase:convertBase$1,convertBin:convertBin$1,cookie:cookie$1,copy:copy$1,crc1:crc1$1,crc16:crc16$1,crc32:crc32$1,crc8:crc8$1,create:create$1,createAssigner:createAssigner$1,createUrl:createUrl$1,css:css$1,cssPriority:cssPriority$1,cssSupports:cssSupports$1,curry:curry$1,dateFormat:dateFormat$1,debounce:debounce$1,debug:debug$1,deburr:deburr$1,decodeUriComponent:decodeUriComponent$1,defaults:defaults$1,define:define,defineProp:defineProp,defined:defined$1,delay:delay$1,delegate:delegate$1,deprecate:deprecate$1,detectBrowser:detectBrowser$1,detectMocha:detectMocha$1,detectOs:detectOs$1,difference:difference$1,dotCase:dotCase$1,download:download$1,durationFormat:durationFormat$1,each:each$1,easing:easing$1,emulateTouch:emulateTouch$1,endWith:endWith$1,escape:escape,escapeJsStr:escapeJsStr$1,escapeRegExp:escapeRegExp$1,evalCss:evalCss$1,evalJs:evalJs$1,every:every$1,extend:extend$1,extendDeep:extendDeep$1,extendOwn:extendOwn$1,extractBlockCmts:extractBlockCmts$1,extractUrls:extractUrls$1,fetch:fetch$1,fibonacci:fibonacci$1,fileSize:fileSize$1,fileType:fileType$1,fill:fill$1,filter:filter$1,find:find$1,findIdx:findIdx$1,findKey:findKey$1,findLastIdx:findLastIdx$1,flatten:flatten$1,fnArgs:fnArgs$1,fnParams:fnParams$1,fnv1a:fnv1a$1,format:format$1,fraction:fraction$1,freeze:freeze$1,freezeDeep:freezeDeep$1,fullscreen:fullscreen$1,fuzzySearch:fuzzySearch$1,gcd:gcd$1,getProto:getProto$1,getUrlParam:getUrlParam$1,golangify:golangify$1,h:h$1,has:has$1,heapSort:heapSort$1,hex:hex$1,highlight:highlight$1,hookFn:hookFn$1,hotkey:hotkey$1,hslToRgb:hslToRgb$1,html:html$1,identity:identity$1,idxOf:idxOf$1,indent:indent$1,inherits:inherits$1,ini:ini$1,insertionSort:insertionSort$1,intersect:intersect$1,intersectRange:intersectRange$1,invariant:invariant$1,invert:invert$1,isAbsoluteUrl:isAbsoluteUrl$1,isArgs:isArgs$1,isArr:isArr$1,isArrBuffer:isArrBuffer$1,isArrLike:isArrLike$1,isAsyncFn:isAsyncFn$1,isBlob:isBlob$1,isBool:isBool$1,isBrowser:isBrowser$1,isBuffer:isBuffer$1,isClose:isClose$1,isCyclic:isCyclic$1,isDarkMode:isDarkMode$1,isDataUrl:isDataUrl$1,isDate:isDate$1,isEl:isEl$1,isEmail:isEmail$1,isEmpty:isEmpty$1,isEqual:isEqual$1,isErr:isErr$1,isEven:isEven$1,isFile:isFile$1,isFinite:isFinite,isFn:isFn$1,isFullWidth:isFullWidth$1,isGeneratorFn:isGeneratorFn$1,isHidden:isHidden$1,isInt:isInt$1,isIp:isIp$1,isJson:isJson$1,isLeapYear:isLeapYear$1,isMap:isMap$1,isMatch:isMatch$1,isMiniProgram:isMiniProgram$1,isMobile:isMobile$1,isNaN:isNaN,isNative:isNative$1,isNil:isNil$1,isNode:isNode$1,isNull:isNull$1,isNum:isNum$1,isNumeric:isNumeric$1,isObj:isObj$1,isOdd:isOdd$1,isPlainObj:isPlainObj$1,isPrime:isPrime$1,isPrimitive:isPrimitive$1,isPromise:isPromise$1,isRegExp:isRegExp$1,isRelative:isRelative$1,isRetina:isRetina$1,isSet:isSet$1,isSorted:isSorted$1,isStr:isStr$1,isSymbol:isSymbol$1,isTypedArr:isTypedArr$1,isUndef:isUndef$1,isUrl:isUrl$1,isWeakMap:isWeakMap$1,isWeakSet:isWeakSet$1,jsonClone:jsonClone$1,jsonp:jsonp$1,kebabCase:kebabCase$1,keyCode:keyCode$1,keys:keys$1,last:last$1,levenshtein:levenshtein$1,linkify:linkify$1,loadCss:loadCss$1,loadImg:loadImg$1,loadJs:loadJs$1,longest:longest$1,lowerCase:lowerCase$1,lpad:lpad$1,ltrim:ltrim$1,map:map$1,mapObj:mapObj$1,matcher:matcher$1,max:max$1,md5:md5$1,memStorage:memStorage$1,memoize:memoize$1,mergeArr:mergeArr$1,mergeSort:mergeSort$1,meta:meta$1,methods:methods$1,mime:mime$1,min:min$1,moment:moment$1,morphDom:morphDom$1,morse:morse$1,ms:ms$1,naturalSort:naturalSort$1,negate:negate$1,nextTick:nextTick$1,noop:noop$1,normalizeHeader:normalizeHeader$1,normalizePath:normalizePath$1,normalizePhone:normalizePhone$1,notify:notify$1,now:now$1,objToStr:objToStr$1,omit:omit$1,once:once$1,openFile:openFile$1,optimizeCb:optimizeCb$1,ordinal:ordinal$1,orientation:orientation$1,pad:pad$1,pairs:pairs$1,parallel:parallel$1,parseArgs:parseArgs$1,parseHtml:parseHtml$1,partial:partial$1,pascalCase:pascalCase$1,perfNow:perfNow$1,pick:pick$1,pluck:pluck$1,precision:precision$1,prefetch:prefetch$1,prefix:prefix$1,promisify:promisify$1,property:property$1,query:query$1,quickSort:quickSort,raf:raf,random:random$1,randomBytes:randomBytes$1,randomColor:randomColor$1,randomId:randomId$1,randomItem:randomItem$1,range:range$1,rc4:rc4,ready:ready$1,reduce:reduce$1,reduceRight:reduceRight$1,reject:reject$1,remove:remove$1,repeat:repeat$1,replaceAll:replaceAll$1,restArgs:restArgs$1,reverse:reverse$1,rgbToHsl:rgbToHsl$1,ric:ric$1,rmCookie:rmCookie$1,root:root$1,rpad:rpad$1,rtrim:rtrim$1,safeCb:safeCb$1,safeDel:safeDel$1,safeGet:safeGet$1,safeSet:safeSet$1,safeStorage:safeStorage$1,sameOrigin:sameOrigin$1,sample:sample$1,scrollTo:scrollTo$1,seedRandom:seedRandom$1,selectionSort:selectionSort$1,selector:selector$1,shebang:shebang$1,shellSort:shellSort$1,shuffle:shuffle$1,size:size$1,sizeof:sizeof,sleep:sleep$1,slice:slice$1,slugify:slugify$1,snakeCase:snakeCase$1,some:some$1,sortBy:sortBy$1,sortKeys:sortKeys$1,spaceCase:spaceCase$1,splitCase:splitCase$1,splitPath:splitPath$1,stackTrace:stackTrace$1,startWith:startWith$1,strHash:strHash$1,strToBytes:strToBytes$1,strTpl:strTpl$1,strWidth:strWidth$1,stringify:stringify$1,stringifyAll:stringifyAll$1,stripAnsi:stripAnsi$1,stripCmt:stripCmt$1,stripColor:stripColor$1,stripHtmlTag:stripHtmlTag$1,stripIndent:stripIndent$1,stripNum:stripNum$1,sum:sum$1,swap:swap$1,table:table$1,template:template$1,throttle:throttle$1,timeAgo:timeAgo$1,timeTaken:timeTaken$1,times:times$1,toArr:toArr$1,toAsync:toAsync$1,toBool:toBool$1,toDate:toDate$1,toEl:toEl$1,toInt:toInt$1,toNum:toNum$1,toSrc:toSrc$1,toStr:toStr$1,topoSort:topoSort$1,trigger:trigger$1,trim:trim$1,truncate:truncate$1,tryIt:tryIt$1,type:type$1,types:types$1,ucs2:ucs2$1,uncaught:uncaught$1,unescape:unescape,union:union$1,uniqId:uniqId$1,unique:unique$1,universalify:universalify$1,unzip:unzip$1,upperCase:upperCase$1,upperFirst:upperFirst$1,use:use$1,utf8:utf8$1,uuid:uuid$1,values:values$1,viewportScale:viewportScale$1,vlq:vlq$1,waitUntil:waitUntil$1,waterfall:waterfall$1,wordWrap:wordWrap$1,wordsToBytes:wordsToBytes$1,workerize:workerize$1,wrap:wrap$1,xpath:xpath$1,zip:zip$1});export default $nux;