text: !function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="/demo/",e(0)}([function(t,e,r){t.exports=r(14)},function(t,e,r){var n=r(2),o={toogleSearchMenu:function(){(this._attrs.displayState||0!=this._attrs.recommendItemsCount)&&(o.toogleSearchMenuDisplayState.call(this),this._options.onSearchMenuDisplayStateChange.call(this))},toogleSearchMenuDisplayState:function(){this._attrs.displayState=!this._attrs.displayState},selectSearchItem:function(t){o.setSearchItemIndex.call(this,t),this._options.onSelect.call(this)},resetSearchItemIndex:function(t){var e;e="38"==t?this._attrs.recommendItemsCount:-1,this._attrs.searchItemIndex=e},setSearchItemIndex:function(t){var e,r,n;"38"==t?(e=-1,r=this._attrs.recommendItemsCount-1,n=-1):(e=this._attrs.recommendItemsCount,r=0,n=1),this._attrs.searchItemIndex==e?this._attrs.searchItemIndex=r:this._attrs.searchItemIndex=this._attrs.searchItemIndex+1*n},setSearchMenuData:function(t){this._options.formatRecommendKeywordData.call(this,t,this._attrs.recommendKeyword),this._attrs.recommendKeywordDataList.length=0,$.extend(!0,this._attrs.recommendKeywordDataList,t),this._attrs.recommendItemsCount=this._attrs.recommendKeywordDataList.length,this._attrs.searchMenuData.recommendKeywordDataList=this._attrs.recommendKeywordDataList,!this._attrs.searchMenuData.id&&this._attrs.recommendKeywordDataList.length>0&&(this._attrs.searchMenuData.id=n.generateId()),this._options.onSetSearchMenuData.call(this)},getWrapHistorySearchedKeywordCacheList:function(t){var e,r=this,n=[];return $.each(t,function(t,o){return e={},e[r._options.suggestKeyword]=o,n.push(e),t==r._options.displayHistorySearchedKeywordCacheListCount-1?!1:void 0}),n},setHistoryRecommendKeywordCache:function(t,e){e in this._attrs.historyRecommendKeywordCache||(this._attrs.historyRecommendKeywordCacheList.length==this._options.maximumHistoryKeywordCacheList&&o.shiftHistoryRecommendKeywordCache.call(this),this._attrs.historyRecommendKeywordCacheList.push(e),this._attrs.historyRecommendKeywordCache[e]=JSON.stringify(t))},shiftHistoryRecommendKeywordCache:function(){var t=this._attrs.historyRecommendKeywordCacheList.shift();delete this._attrs.historyRecommendKeywordCache[t]},abortXhr:function(t){t.abort(),o.destoryXhr()},destoryXhr:function(t){t=null},destoryDefered:function(t){clearTimeout(t),t=null},setHistorySearchedKeywordCacheList:function(){""!=this._attrs.recommendKeyword&&(this._attrs.historySearchedKeywordCacheList.length==this._options.maximumHistorySearchedKeywordCacheList&&o.popHistorySearchedKeywordCacheList.call(this),$.inArray(this._attrs.recommendKeyword,this._attrs.historySearchedKeywordCacheList)||this._attrs.historySearchedKeywordCacheList.unshift(this._attrs.recommendKeyword))},popHistorySearchedKeywordCacheList:function(){this._attrs.historySearchedKeywordCacheList.pop()},generateTemplate:function(){var t=this._options.template({searchMenuData:this._attrs.searchMenuData});this._options.onTemplate.call(this,t)},processResponse:function(t){o.setHistoryRecommendKeywordCache.call(this,t,this._attrs.recommendKeyword),t.length>0?(o.setSearchMenuData.call(this,t),o.generateTemplate.call(this),this._attrs.displayState||o.toogleSearchMenu.call(this)):this._attrs.displayState&&o.toogleSearchMenu.call(this)},processSearchHistory:function(){var t;this._attrs.historySearchedKeywordCacheList.length>0?(t=o.getWrapHistorySearchedKeywordCacheList.call(this,this._attrs.historySearchedKeywordCacheList),o.setSearchMenuData.call(this,t),o.generateTemplate.call(this),this._attrs.displayState||o.toogleSearchMenu.call(this)):this._attrs.displayState&&o.toogleSearchMenu.call(this)},formatRecommendKeywordData:function(t,e){var r=this._options.suggestKeywordHtml,o=this._options.suggestKeyword;$.each(t,function(t,a){var i;""!=e?(i="^("+n.escapeRegExChars(e)+")(.*)$",a[r]=a[o].replace(new RegExp(i,"gi"),"$1<b>$2</b>")):a[r]='<span class="search-menu-history-key">'+a[o]+'</span><a class="search-menu-history-delete">删除</a>'})},onSearchMenuDisplayStateChange:function(){var t;null!=this._attrs.$searchMenu&&(t=this._attrs.displayState?"visible":"hidden",this._attrs.$searchMenu.css("visibility",t))},onSetSearchMenuData:function(){this._attrs.searchMenuData.isShowHeader=!this._attrs.recommendKeyword,this._attrs.searchMenuData.isShowFooter=!0},onSelect:function(t){var e=this._options.searchItemSelectedSelector.replace(".","");this._attrs.$searchMenu.find(this._options.searchItemSelector+this._options.searchItemSelectedSelector).removeClass(e),this._attrs.watchValueChange=!1,this._attrs.searchItemIndex==this._attrs.recommendItemsCount||-1==this._attrs.searchItemIndex?this._options.$searchInput.val(this._attrs.tempRecommendKeyword):t?"mouseenter"==t&&this._attrs.$searchMenu.find(this._options.searchItemSelector+":eq("+this._attrs.searchItemIndex+")").addClass(e):(this._attrs.recommendKeyword=this._attrs.recommendKeywordDataList[this._attrs.searchItemIndex].keyword,this._options.$searchInput.val(this._attrs.recommendKeyword),this._attrs.$searchMenu.find(this._options.searchItemSelector+":eq("+this._attrs.searchItemIndex+")").addClass(e)),this._attrs.watchValueChange=!0},onTemplate:function(t){var e,r,n=this;null==n._attrs.$searchMenu?(e=$(document.body),e.append(t),n._attrs.$searchMenu=$("#"+n._attrs.searchMenuData.id)):n._attrs.$searchMenu.html(t),r=n._options.$searchInput.offset(),n._attrs.$searchMenu.css({left:r.left,top:r.top+n._options.$searchInput.outerHeight()}),n._attrs.searchMenuData.isReady||($.each(n._attrs.events.searchMenu,function(t,e){e.call(n)}),n._attrs.searchMenuData.isReady=!0)}};t.exports=o},function(t,e){var r="c-autocomplete-",n=1,o={generateId:function(){return r+n++},debug:function(t){console&&console.debug(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}};t.exports=o},function(t,e,r){e=t.exports=r(4)(),e.push([t.id,".search-menu{font-family:tahoma,arial,Hiragino Sans GB,\\\\5B8B\\4F53,sans-serif;background:#fff;border:1px solid #bebebe;cursor:default;margin:0;outline:0;position:absolute;z-index:99999;width:586px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.search-menu .search-item,.search-menu .search-menu-header{line-height:26px;height:26px;padding:0 6px}.search-menu .search-item{cursor:pointer}.search-menu .search-item.selected{background-color:#ededed}.search-menu .search-item .search-menu-history-key{color:#1071a6}.search-menu .search-item .search-menu-history-delete{float:right;text-decoration:none;color:#3c3c3c}.search-menu .search-item .search-menu-history-delete:hover{color:#1071a6}.search-menu .search-menu-footer .search-menu-close{line-height:26px;height:26px;padding:0 6px;text-align:right;cursor:pointer;display:block;text-decoration:none;color:#3c3c3c}.search-menu .search-menu-footer .search-menu-close:hover{color:#1071a6}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e];r[2]?t.push("@media "+r[2]+"{"+r[1]+"}"):t.push(r[1])}return t.join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(n[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),t.push(i))}},t}},function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";Array.prototype.join;with(obj)__p+="\n",searchMenuData.isReady||(__p+='\n<div id="'+(null==(__t=searchMenuData.id)?"":__t)+'" class="search-menu" style="visibility: hidden;">\n'),__p+="\n\n    ",searchMenuData.isShowHeader&&(__p+='\n        <div class="search-menu-header">\n            最近搜索\n        </div>\n    '),__p+='\n\n    <div class="search-menu-content">\n        ',searchMenuData.recommendKeywordDataList.forEach(function(t){__p+='\n            <div class="search-item">\n                '+(null==(__t=t.keywordHtml)?"":__t)+"\n            </div>\n        "}),__p+="\n    </div>\n\n    ",searchMenuData.isShowFooter&&(__p+='\n        <div class="search-menu-footer">\n            <a class="search-menu-close">关闭</a>\n        </div>\n    '),__p+="\n\n",searchMenuData.isReady||(__p+="\n</div>\n");return __p}},function(t,e,r){function n(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=d[n.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](n.parts[a]);for(;a<n.parts.length;a++)o.parts.push(h(n.parts[a],e))}else{for(var i=[],a=0;a<n.parts.length;a++)i.push(h(n.parts[a],e));d[n.id]={id:n.id,refs:1,parts:i}}}}function o(t){for(var e=[],r={},n=0;n<t.length;n++){var o=t[n],a=o[0],i=o[1],s=o[2],c=o[3],h={css:i,media:s,sourceMap:c};r[a]?r[a].parts.push(h):e.push(r[a]={id:a,parts:[h]})}return e}function a(t,e){var r=m(),n=w[w.length-1];if("top"===t.insertAt)n?n.nextSibling?r.insertBefore(e,n.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),w.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(e)}}function i(t){t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",a(t,e),e}function c(t){var e=document.createElement("link");return e.rel="stylesheet",a(t,e),e}function h(t,e){var r,n,o;if(e.singleton){var a=v++;r=g||(g=s(e)),n=l.bind(null,r,a,!1),o=l.bind(null,r,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=c(e),n=p.bind(null,r),o=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(e),n=u.bind(null,r),o=function(){i(r)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}function l(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var a=document.createTextNode(o),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(a,i[e]):t.appendChild(a)}}function u(t,e){var r=e.css,n=e.media;e.sourceMap;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}function p(t,e){var r=e.css,n=(e.media,e.sourceMap);n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var d={},f=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},y=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=f(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,w=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=y()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var r=o(t);return n(r,e),function(t){for(var a=[],i=0;i<r.length;i++){var s=r[i],c=d[s.id];c.refs--,a.push(c)}if(t){var h=o(t);n(h,e)}for(var i=0;i<a.length;i++){var c=a[i];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete d[c.id]}}}};var _=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e,r){var n=r(3);"string"==typeof n&&(n=[[t.id,n,""]]);r(6)(n,{});n.locals&&(t.exports=n.locals)},function(t,e){var r={watchValueChange:!0,searchMenuData:{isReady:!1,recommendKeywordDataList:[]},recommendKeywordDataList:[],historySearchedKeywordCacheList:[],historyRecommendKeywordCacheList:[],historyRecommendKeywordCache:{},searchInputValue:void 0,recommendKeyword:void 0,tempRecommendKeyword:void 0,xhr:null,defered:null,allowFocusOut:!0,focusState:!1,displayState:!1,recommendItemsCount:0,searchItemIndex:-1,$searchMenu:null};t.exports=r},function(t,e,r){var n=r(10),o={searchInput:{onInput:function(){var t=this._options.$searchInput;"oninput"in t[0]?t.on("input",$.proxy(n.searchInput.onInputHandler,this)):t.on("propertychange",$.proxy(n.searchInput.onPropertyChangeHandler,this))},onClick:function(){var t=this._options.$searchInput;t.on("click",$.proxy(n.searchInput.onClickHandler,this))},onFoucsIn:function(){var t=this._options.$searchInput;t.on("focusin",$.proxy(n.searchInput.onFoucsInHandler,this))},onFocusOut:function(){var t=this._options.$searchInput;t.on("focusout",$.proxy(n.searchInput.onFocusOutHandler,this))},onKeyDown:function(){var t=this._options.$searchInput;t.on("keydown",$.proxy(n.searchInput.onKeyDownHandler,this))}},searchMenu:{onMouseEnter:function(){var t=this._attrs.$searchMenu;t.on("mouseenter",this._options.searchItemSelector,$.proxy(n.searchMenu.onMouseEnterHandler,this))},onMouseLeave:function(){var t=this._attrs.$searchMenu;t.on("mouseleave",this._options.searchMenuContentSelector,$.proxy(n.searchMenu.onMouseLeaveHandler,this))},onClick:function(){var t=this._attrs.$searchMenu;t.on("click",this._options.searchItemSelector,$.proxy(n.searchMenu.onClickHandler,this)).on("click",this._options.searchMenuCloseSelector,$.proxy(n.searchMenu.onMenuCloseClickHandler,this)).on("click",this._options.searchMenuHistoryDeleteSelector,$.proxy(n.searchMenu.onMenuHistoryDeleteClickHandler,this))}}};t.exports=o},function(t,e,r){function n(){var t,e,r;if(this._attrs.recommendKeyword=this._options.$searchInput.val().trim(),this._attrs.tempRecommendKeyword=this._attrs.recommendKeyword,this._options.remote)null!=this._attrs.defered&&a.destoryDefered(this._attrs.defered),null!=this._attrs.xhr&&a.abortXhr(this._attrs.xhr),""==this._attrs.recommendKeyword?a.processSearchHistory.call(this):this._attrs.recommendKeyword in this._attrs.historyRecommendKeywordCache?(r=JSON.parse(this._attrs.historyRecommendKeywordCache[this._attrs.recommendKeyword]),r.length>0&&(a.setSearchMenuData.call(this,r),a.generateTemplate.call(this),this._attrs.displayState||a.toogleSearchMenu.call(this))):(t=this,e={},e[t._options.queryName]=t._attrs.recommendKeyword,$.isPlainObject(this._options.additionalQueryParams)&&$.extend(!0,e,this._options.additionalQueryParams),t._attrs.defered=setTimeout(function(){t.xhr=$.ajax({url:t._options.url,type:"get",data:e,dataType:t._options.dataType,timeout:t._options.timeout,success:function(e){var r=e[t._options.resultListKey];a.processResponse.call(t,r)},error:function(e,r,n){o.debug(e);var i=[];a.processResponse.call(t,i)},complete:function(){a.destoryXhr(t.xhr)}})},this._options.recommendFetchInterval));else if(""==this._attrs.recommendKeyword)this._attrs.displayState&&a.toogleSearchMenu.call(this);else if(this._attrs.recommendKeyword in this._options.localData){if(!$.isArray(this._options.localData[this._attrs.recommendKeyword]))throw new Error("localData每一项应是一个json格式的数组");a.setSearchMenuData.call(this,this._options.localData[this._attrs.recommendKeyword]),a.generateTemplate.call(this),this._attrs.displayState||a.toogleSearchMenu.call(this)}else this._attrs.displayState&&a.toogleSearchMenu.call(this)}var o=r(2),a=r(1),i={searchInput:{onInputHandler:function(){n.call(this)},onPropertyChangeHandler:function(t){"value"==t.originalEvent.propertyName&&this._attrs.watchValueChange&&n.call(this)},onClickHandler:function(){var t,e;this._attrs.recommendKeyword?this._attrs.recommendKeyword in this._attrs.historyRecommendKeywordCache?(t=JSON.parse(this._attrs.historyRecommendKeywordCache[this._attrs.recommendKeyword]),a.setSearchMenuData.call(this,t)):(t=[],a.setSearchMenuData.call(this,t),n.call(this)):(e=a.getWrapHistorySearchedKeywordCacheList.call(this,this._attrs.historySearchedKeywordCacheList),a.setSearchMenuData.call(this,e)),this._attrs.recommendItemsCount>0&&(a.generateTemplate.call(this),this._attrs.displayState||a.toogleSearchMenu.call(this))},onFoucsInHandler:function(){this._attrs.focusState=!0,this._attrs.searchItemIndex=-1},onFocusOutHandler:function(){this._attrs.allowFocusOut&&(this._attrs.focusState=!1,this._attrs.displayState&&a.toogleSearchMenu.call(this))},onKeyDownHandler:function(t){var e=t.keyCode;switch(e){case 27:this._attrs.displayState&&a.toogleSearchMenu.call(this);break;case 13:this._attrs.displayState&&a.toogleSearchMenu.call(this),this._options.remote&&a.setHistorySearchedKeywordCacheList.call(this),this._options.onSearch.call(this,this._attrs.recommendKeywordDataList[this._attrs.searchItemIndex],this._attrs.recommendKeyword);break;case 38:case 40:this._attrs.focusState&&(this._attrs.displayState?a.selectSearchItem.call(this,e):(a.toogleSearchMenu.call(this),a.resetSearchItemIndex.call(this,e)))}}},searchMenu:{onMouseEnterHandler:function(t){var e=$(t.currentTarget);this._attrs.searchItemIndex=e.index(),this._options.onSelect.call(this,"mouseenter"),this._attrs.allowFocusOut=!1},onMouseLeaveHandler:function(){this._options.onSelect.call(this,"mouseleave"),this._attrs.allowFocusOut=!0},onClickHandler:function(t){var e=$(t.currentTarget);this._attrs.searchItemIndex=e.index(),this._options.onSelect.call(this),this._attrs.displayState&&a.toogleSearchMenu.call(this),this._options.remote&&a.setHistorySearchedKeywordCacheList.call(this),this._options.onSearch.call(this,this._attrs.recommendKeywordDataList[this._attrs.searchItemIndex],this._attrs.recommendKeyword)},onMenuCloseClickHandler:function(){a.toogleSearchMenu.call(this)},onMenuHistoryDeleteClickHandler:function(t){var e=$(t.currentTarget),r=e.parents(this._options.searchItemSelector).index();t.stopPropagation(),this._attrs.historySearchedKeywordCacheList.splice(r,1),a.processSearchHistory.call(this),this._options.$searchInput.focus()}}};t.exports=i},function(t,e,r){"use strict";function n(t){var e=this;e._options=$.extend(!0,{},i,t),e._attrs=$.extend(!0,{},a),$.each(s.searchInput,function(t,r){r.call(e)}),e._attrs.events=s,e._options.$searchInput.attr("autocomplete","off"),e._options.formatRecommendKeywordData=e._options.formatRecommendKeywordData?e._options.formatRecommendKeywordData:c.formatRecommendKeywordData,e._options.onSearchMenuDisplayStateChange=e._options.onSearchMenuDisplayStateChange?e._options.onSearchMenuDisplayStateChange:c.onSearchMenuDisplayStateChange,e._options.onSetSearchMenuData=e._options.onSetSearchMenuData?e._options.onSetSearchMenuData:c.onSetSearchMenuData,e._options.onSelect=e._options.onSelect?e._options.onSelect:c.onSelect,e._options.onTemplate=e._options.onTemplate?e._options.onTemplate:c.onTemplate,e._options.template=e._options.template?e._options.template:o}r(7);var o=r(5),a=r(8),i=r(12),s=r(9),c=r(1);t.exports=n},function(t,e){var r={remote:!1,url:void 0,timeout:3e3,dataType:"json",resultListKey:"list",suggestKeyword:"keyword",suggestKeywordHtml:"keywordHtml",queryName:"searchKey",additionalQueryParams:null,localData:null,recommendFetchInterval:100,isShowHeader:!1,isShowFooter:!0,maximumHistorySearchedKeywordCacheList:100,displayHistorySearchedKeywordCacheListCount:10,maximumHistoryKeywordCacheList:100,formatRecommendKeywordData:null,onSearchMenuDisplayStateChange:null,onSetSearchMenuData:null,onSearch:$.noop,onSelect:null,$searchInput:null,template:null,onTemplate:null,searchItemSelector:".search-item",searchMenuContentSelector:".search-menu-content",searchMenuCloseSelector:".search-menu-close",searchMenuHistoryDeleteSelector:".search-menu-history-delete",searchItemSelectedSelector:".selected"};t.exports=r},,function(t,e,r){r(19),r(18),$.mockjaxSettings.contentType="application/json",$.mockjax({url:"/sug?searchKey=%E6%B7%98",data:{},responseText:{list:[{keyword:"淘"+Math.random()},{keyword:"淘"+Math.random()},{keyword:"淘"+ +Math.random()}]}}),$.mockjax({url:"/sug?searchKey=%E6%B7%98%E5%AE%9D",data:{},responseText:{list:[{keyword:"淘宝"+Math.random()},{keyword:"淘宝"+Math.random()},{keyword:"淘宝"+Math.random()}]}}),$.mockjax({url:"/sug?searchKey=%E6%B7%98%E5%AE%9D%E5%AE%9D",data:{},responseText:{list:[{keyword:"淘宝宝"+Math.random()},{keyword:"淘宝宝"+Math.random()},{keyword:"淘宝宝"+Math.random()}]}}),$.mockjax({url:"/sug",data:{},responseText:{list:[]}});var n=r(11);new n({remote:!0,url:"/sug",$searchInput:$("#s2"),onSearch:function(t,e){alert("您已提交了搜索词: "+e)}})},,,,function(t,e,r){var n,o;!function(a,i){"use strict";n=i,o="function"==typeof n?n.call(e,r,e,t):n,!(void 0!==o&&(t.exports=o))}(this,function(){var t,e,r,n,o=Function.call,a=Object.prototype,i=o.bind(a.hasOwnProperty),s=o.bind(a.propertyIsEnumerable),c=o.bind(a.toString),h=i(a,"__defineGetter__");h&&(t=o.bind(a.__defineGetter__),e=o.bind(a.__defineSetter__),r=o.bind(a.__lookupGetter__),n=o.bind(a.__lookupSetter__)),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){var e=t.__proto__;return e||null===e?e:"[object Function]"===c(t.constructor)?t.constructor.prototype:t instanceof Object?a:null});var l=function(t){try{return t.sentinel=0,0===Object.getOwnPropertyDescriptor(t,"sentinel").value}catch(e){return!1}};if(Object.defineProperty){var u=l({}),p="undefined"==typeof document||l(document.createElement("div"));if(!p||!u)var d=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||d){var f="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(t,e){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError(f+t);if(d)try{return d.call(Object,t,e)}catch(o){}var c;if(!i(t,e))return c;if(c={enumerable:s(t,e),configurable:!0},h){var l=t.__proto__,u=t!==a;u&&(t.__proto__=a);var p=r(t,e),y=n(t,e);if(u&&(t.__proto__=l),p||y)return p&&(c.get=p),y&&(c.set=y),c}return c.value=t[e],c.writable=!0,c}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)}),!Object.create){var y,m=!({__proto__:null}instanceof Object),g=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(t){return!1}},v=function(){var t,e;return e=new ActiveXObject("htmlfile"),e.write("<script></script>"),e.close(),t=e.parentWindow.Object.prototype,e=null,t},w=function(){var t,e=document.createElement("iframe"),r=document.body||document.documentElement;return e.style.display="none",r.appendChild(e),e.src="javascript:",t=e.contentWindow.Object.prototype,r.removeChild(e),e=null,t};y=m||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var t=g()?v():w();delete t.constructor,delete t.hasOwnProperty,delete t.propertyIsEnumerable,delete t.isPrototypeOf,delete t.toLocaleString,delete t.toString,delete t.valueOf;var e=function(){};return e.prototype=t,y=function(){return new e},new e},Object.create=function(t,e){var r,n=function(){};if(null===t)r=y();else{if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object prototype may only be an Object or null");n.prototype=t,r=new n,r.__proto__=t}return void 0!==e&&Object.defineProperties(r,e),r}}var _=function(t){try{return Object.defineProperty(t,"sentinel",{}),"sentinel"in t}catch(e){return!1}};if(Object.defineProperty){var b=_({}),S="undefined"==typeof document||_(document.createElement("div"));if(!b||!S)var x=Object.defineProperty,D=Object.defineProperties}if(!Object.defineProperty||x){var O="Property description must be an object: ",j="Object.defineProperty called on non-object: ",M="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(o,i,s){if("object"!=typeof o&&"function"!=typeof o||null===o)throw new TypeError(j+o);if("object"!=typeof s&&"function"!=typeof s||null===s)throw new TypeError(O+s);if(x)try{return x.call(Object,o,i,s)}catch(c){}if("value"in s)if(h&&(r(o,i)||n(o,i))){var l=o.__proto__;o.__proto__=a,delete o[i],o[i]=s.value,o.__proto__=l}else o[i]=s.value;else{if(!h&&("get"in s||"set"in s))throw new TypeError(M);"get"in s&&t(o,i,s.get),"set"in s&&e(o,i,s.set)}return o}}Object.defineProperties&&!D||(Object.defineProperties=function(t,e){if(D)try{return D.call(Object,t,e)}catch(r){}return Object.keys(e).forEach(function(r){"__proto__"!==r&&Object.defineProperty(t,r,e[r])}),t}),Object.seal||(Object.seal=function(t){if(Object(t)!==t)throw new TypeError("Object.seal can only be called on Objects.");return t}),Object.freeze||(Object.freeze=function(t){if(Object(t)!==t)throw new TypeError("Object.freeze can only be called on Objects.");return t});try{Object.freeze(function(){})}catch(T){Object.freeze=function(t){return function(e){return"function"==typeof e?e:t(e)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){if(Object(t)!==t)throw new TypeError("Object.preventExtensions can only be called on Objects.");return t}),Object.isSealed||(Object.isSealed=function(t){if(Object(t)!==t)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function(t){if(Object(t)!==t)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)!==t)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var e="";i(t,e);)e+="?";t[e]=!0;var r=i(t,e);return delete t[e],r})})},function(t,e,r){var n,o;!function(a,i){"use strict";n=i,o="function"==typeof n?n.call(e,r,e,t):n,!(void 0!==o&&(t.exports=o))}(this,function(){var t,e,r=Array,n=r.prototype,o=Object,a=o.prototype,i=Function,s=i.prototype,c=String,h=c.prototype,l=Number,u=l.prototype,p=n.slice,d=n.splice,f=n.push,y=n.unshift,m=n.concat,g=n.join,v=s.call,w=s.apply,_=Math.max,b=Math.min,S=a.toString,x="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,D=Function.prototype.toString,O=/^\s*class /,j=function(t){try{var e=D.call(t),r=e.replace(/\/\/.*\n/g,""),n=r.replace(/\/\*[.\s\S]*\*\//g,""),o=n.replace(/\n/gm," ").replace(/ {2}/g," ");return O.test(o)}catch(a){return!1}},M=function(t){try{return j(t)?!1:(D.call(t),!0)}catch(e){return!1}},T="[object Function]",I="[object GeneratorFunction]",t=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(x)return M(t);if(j(t))return!1;var e=S.call(t);return e===T||e===I},C=RegExp.prototype.exec,E=function(t){try{return C.call(t),!0}catch(e){return!1}},K="[object RegExp]";e=function(t){return"object"!=typeof t?!1:x?E(t):S.call(t)===K};var $,k=String.prototype.valueOf,R=function(t){try{return k.call(t),!0}catch(e){return!1}},L="[object String]";$=function(t){return"string"==typeof t?!0:"object"!=typeof t?!1:x?R(t):S.call(t)===L};var H=o.defineProperty&&function(){try{var t={};o.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(r){return!1}}(),F=function(t){var e;return e=H?function(t,e,r,n){!n&&e in t||o.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:r})}:function(t,e,r,n){!n&&e in t||(t[e]=r)},function(r,n,o){for(var a in n)t.call(n,a)&&e(r,a,n[a],o)}}(a.hasOwnProperty),P=function(t){var e=typeof t;return null===t||"object"!==e&&"function"!==e},U=l.isNaN||function(t){return t!==t},N={ToInteger:function(t){var e=+t;return U(e)?e=0:0!==e&&e!==1/0&&e!==-(1/0)&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e},ToPrimitive:function(e){var r,n,o;if(P(e))return e;if(n=e.valueOf,t(n)&&(r=n.call(e),P(r)))return r;if(o=e.toString,t(o)&&(r=o.call(e),P(r)))return r;throw new TypeError},ToObject:function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return o(t)},ToUint32:function(t){return t>>>0}},A=function(){};F(s,{bind:function(e){var r=this;if(!t(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var n,a=p.call(arguments,1),s=function(){if(this instanceof n){var t=w.call(r,this,m.call(a,p.call(arguments)));return o(t)===t?t:this}return w.call(r,e,m.call(a,p.call(arguments)))},c=_(0,r.length-a.length),h=[],l=0;c>l;l++)f.call(h,"$"+l);return n=i("binder","return function ("+g.call(h,",")+"){ return binder.apply(this, arguments); }")(s),r.prototype&&(A.prototype=r.prototype,n.prototype=new A,A.prototype=null),n}});var z=v.bind(a.hasOwnProperty),B=v.bind(a.toString),J=v.bind(p),G=w.bind(p),X=v.bind(h.slice),Z=v.bind(h.split),W=v.bind(h.indexOf),Y=v.bind(f),V=v.bind(a.propertyIsEnumerable),q=v.bind(n.sort),Q=r.isArray||function(t){return"[object Array]"===B(t)},tt=1!==[].unshift(0);F(n,{unshift:function(){return y.apply(this,arguments),this.length}},tt),F(r,{isArray:Q});var et=o("a"),rt="a"!==et[0]||!(0 in et),nt=function(t){var e=!0,r=!0,n=!1;if(t)try{t.call("foo",function(t,r,n){"object"!=typeof n&&(e=!1)}),t.call([1],function(){"use strict";r="string"==typeof this},"x")}catch(o){n=!0}return!!t&&!n&&e&&r};F(n,{forEach:function(e){var r,n=N.ToObject(this),o=rt&&$(this)?Z(this,""):n,a=-1,i=N.ToUint32(o.length);if(arguments.length>1&&(r=arguments[1]),!t(e))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++a<i;)a in o&&("undefined"==typeof r?e(o[a],a,n):e.call(r,o[a],a,n))}},!nt(n.forEach)),F(n,{map:function(e){var n,o=N.ToObject(this),a=rt&&$(this)?Z(this,""):o,i=N.ToUint32(a.length),s=r(i);if(arguments.length>1&&(n=arguments[1]),!t(e))throw new TypeError("Array.prototype.map callback must be a function");for(var c=0;i>c;c++)c in a&&("undefined"==typeof n?s[c]=e(a[c],c,o):s[c]=e.call(n,a[c],c,o));return s}},!nt(n.map)),F(n,{filter:function(e){var r,n,o=N.ToObject(this),a=rt&&$(this)?Z(this,""):o,i=N.ToUint32(a.length),s=[];if(arguments.length>1&&(n=arguments[1]),!t(e))throw new TypeError("Array.prototype.filter callback must be a function");for(var c=0;i>c;c++)c in a&&(r=a[c],("undefined"==typeof n?e(r,c,o):e.call(n,r,c,o))&&Y(s,r));return s}},!nt(n.filter)),F(n,{every:function(e){var r,n=N.ToObject(this),o=rt&&$(this)?Z(this,""):n,a=N.ToUint32(o.length);if(arguments.length>1&&(r=arguments[1]),!t(e))throw new TypeError("Array.prototype.every callback must be a function");for(var i=0;a>i;i++)if(i in o&&!("undefined"==typeof r?e(o[i],i,n):e.call(r,o[i],i,n)))return!1;return!0}},!nt(n.every)),F(n,{some:function(e){var r,n=N.ToObject(this),o=rt&&$(this)?Z(this,""):n,a=N.ToUint32(o.length);if(arguments.length>1&&(r=arguments[1]),!t(e))throw new TypeError("Array.prototype.some callback must be a function");for(var i=0;a>i;i++)if(i in o&&("undefined"==typeof r?e(o[i],i,n):e.call(r,o[i],i,n)))return!0;return!1}},!nt(n.some));var ot=!1;n.reduce&&(ot="object"==typeof n.reduce.call("es5",function(t,e,r,n){return n})),F(n,{reduce:function(e){var r=N.ToObject(this),n=rt&&$(this)?Z(this,""):r,o=N.ToUint32(n.length);if(!t(e))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var a,i=0;if(arguments.length>=2)a=arguments[1];else for(;;){if(i in n){a=n[i++];break}if(++i>=o)throw new TypeError("reduce of empty array with no initial value")}for(;o>i;i++)i in n&&(a=e(a,n[i],i,r));return a}},!ot);var at=!1;n.reduceRight&&(at="object"==typeof n.reduceRight.call("es5",function(t,e,r,n){return n})),F(n,{reduceRight:function(e){var r=N.ToObject(this),n=rt&&$(this)?Z(this,""):r,o=N.ToUint32(n.length);if(!t(e))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var a,i=o-1;if(arguments.length>=2)a=arguments[1];else for(;;){if(i in n){a=n[i--];break}if(--i<0)throw new TypeError("reduceRight of empty array with no initial value")}if(0>i)return a;do i in n&&(a=e(a,n[i],i,r));while(i--);return a}},!at);var it=n.indexOf&&-1!==[0,1].indexOf(1,2);F(n,{indexOf:function(t){var e=rt&&$(this)?Z(this,""):N.ToObject(this),r=N.ToUint32(e.length);if(0===r)return-1;var n=0;for(arguments.length>1&&(n=N.ToInteger(arguments[1])),n=n>=0?n:_(0,r+n);r>n;n++)if(n in e&&e[n]===t)return n;return-1}},it);var st=n.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);F(n,{lastIndexOf:function(t){var e=rt&&$(this)?Z(this,""):N.ToObject(this),r=N.ToUint32(e.length);if(0===r)return-1;var n=r-1;for(arguments.length>1&&(n=b(n,N.ToInteger(arguments[1]))),n=n>=0?n:r-Math.abs(n);n>=0;n--)if(n in e&&t===e[n])return n;return-1}},st);var ct=function(){var t=[1,2],e=t.splice();return 2===t.length&&Q(e)&&0===e.length}();F(n,{
  splice:function(t,e){return 0===arguments.length?[]:d.apply(this,arguments)}},!ct);var ht=function(){var t={};return n.splice.call(t,0,0,1),1===t.length}();F(n,{splice:function(t,e){if(0===arguments.length)return[];var r=arguments;return this.length=_(N.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof e&&(r=J(arguments),r.length<2?Y(r,this.length-t):r[1]=N.ToInteger(e)),d.apply(this,r)}},!ht);var lt=function(){var t=new r(1e5);return t[8]="x",t.splice(1,1),7===t.indexOf("x")}(),ut=function(){var t=256,e=[];return e[t]="a",e.splice(t+1,0,"b"),"a"===e[t]}();F(n,{splice:function(t,e){for(var r,n=N.ToObject(this),o=[],a=N.ToUint32(n.length),i=N.ToInteger(t),s=0>i?_(a+i,0):b(i,a),h=b(_(N.ToInteger(e),0),a-s),l=0;h>l;)r=c(s+l),z(n,r)&&(o[l]=n[r]),l+=1;var u,p=J(arguments,2),d=p.length;if(h>d){l=s;for(var f=a-h;f>l;)r=c(l+h),u=c(l+d),z(n,r)?n[u]=n[r]:delete n[u],l+=1;l=a;for(var y=a-h+d;l>y;)delete n[l-1],l-=1}else if(d>h)for(l=a-h;l>s;)r=c(l+h-1),u=c(l+d-1),z(n,r)?n[u]=n[r]:delete n[u],l-=1;l=s;for(var m=0;m<p.length;++m)n[l]=p[m],l+=1;return n.length=a-h+d,o}},!lt||!ut);var pt,dt=n.join;try{pt="1,2,3"!==Array.prototype.join.call("123",",")}catch(ft){pt=!0}pt&&F(n,{join:function(t){var e="undefined"==typeof t?",":t;return dt.call($(this)?Z(this,""):this,e)}},pt);var yt="1,2"!==[1,2].join(void 0);yt&&F(n,{join:function(t){var e="undefined"==typeof t?",":t;return dt.call(this,e)}},yt);var mt=function(t){for(var e=N.ToObject(this),r=N.ToUint32(e.length),n=0;n<arguments.length;)e[r+n]=arguments[n],n+=1;return e.length=r+n,r+n},gt=function(){var t={},e=Array.prototype.push.call(t,void 0);return 1!==e||1!==t.length||"undefined"!=typeof t[0]||!z(t,0)}();F(n,{push:function(t){return Q(this)?f.apply(this,arguments):mt.apply(this,arguments)}},gt);var vt=function(){var t=[],e=t.push(void 0);return 1!==e||1!==t.length||"undefined"!=typeof t[0]||!z(t,0)}();F(n,{push:mt},vt),F(n,{slice:function(t,e){var r=$(this)?Z(this,""):this;return G(r,arguments)}},rt);var wt=function(){try{return[1,2].sort(null),[1,2].sort({}),!0}catch(t){}return!1}(),_t=function(){try{return[1,2].sort(/a/),!1}catch(t){}return!0}(),bt=function(){try{return[1,2].sort(void 0),!0}catch(t){}return!1}();F(n,{sort:function(e){if("undefined"==typeof e)return q(this);if(!t(e))throw new TypeError("Array.prototype.sort callback must be a function");return q(this,e)}},wt||!bt||!_t);var St=!{toString:null}.propertyIsEnumerable("toString"),xt=function(){}.propertyIsEnumerable("prototype"),Dt=!z("x","0"),Ot=function(t){var e=t.constructor;return e&&e.prototype===t},jt={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0},Mt=function(){if("undefined"==typeof window)return!1;for(var t in window)try{!jt["$"+t]&&z(window,t)&&null!==window[t]&&"object"==typeof window[t]&&Ot(window[t])}catch(e){return!0}return!1}(),Tt=function(t){if("undefined"==typeof window||!Mt)return Ot(t);try{return Ot(t)}catch(e){return!1}},It=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ct=It.length,Et=function(t){return"[object Arguments]"===B(t)},Kt=function(e){return null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&!Q(e)&&t(e.callee)},$t=Et(arguments)?Et:Kt;F(o,{keys:function(e){var r=t(e),n=$t(e),o=null!==e&&"object"==typeof e,a=o&&$(e);if(!o&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var i=[],s=xt&&r;if(a&&Dt||n)for(var h=0;h<e.length;++h)Y(i,c(h));if(!n)for(var l in e)s&&"prototype"===l||!z(e,l)||Y(i,c(l));if(St)for(var u=Tt(e),p=0;Ct>p;p++){var d=It[p];u&&"constructor"===d||!z(e,d)||Y(i,d)}return i}});var kt=o.keys&&function(){return 2===o.keys(arguments).length}(1,2),Rt=o.keys&&function(){var t=o.keys(arguments);return 1!==arguments.length||1!==t.length||1!==t[0]}(1),Lt=o.keys;F(o,{keys:function(t){return Lt($t(t)?J(t):t)}},!kt||Rt);var Ht,Ft,Pt=0!==new Date(-0xc782b5b342b24).getUTCMonth(),Ut=new Date(-0x55d318d56a724),Nt=new Date(14496624e5),At="Mon, 01 Jan -45875 11:59:59 GMT"!==Ut.toUTCString(),zt=Ut.getTimezoneOffset();-720>zt?(Ht="Tue Jan 02 -45875"!==Ut.toDateString(),Ft=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Nt.toString())):(Ht="Mon Jan 01 -45875"!==Ut.toDateString(),Ft=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Nt.toString()));var Bt=v.bind(Date.prototype.getFullYear),Jt=v.bind(Date.prototype.getMonth),Gt=v.bind(Date.prototype.getDate),Xt=v.bind(Date.prototype.getUTCFullYear),Zt=v.bind(Date.prototype.getUTCMonth),Wt=v.bind(Date.prototype.getUTCDate),Yt=v.bind(Date.prototype.getUTCDay),Vt=v.bind(Date.prototype.getUTCHours),qt=v.bind(Date.prototype.getUTCMinutes),Qt=v.bind(Date.prototype.getUTCSeconds),te=v.bind(Date.prototype.getUTCMilliseconds),ee=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ne=function(t,e){return Gt(new Date(e,t,0))};F(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Bt(this);return 0>t&&Jt(this)>11?t+1:t},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Bt(this),e=Jt(this);return 0>t&&e>11?0:e},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Bt(this),e=Jt(this),r=Gt(this);if(0>t&&e>11){if(12===e)return r;var n=ne(0,t+1);return n-r+1}return r},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Xt(this);return 0>t&&Zt(this)>11?t+1:t},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Xt(this),e=Zt(this);return 0>t&&e>11?0:e},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Xt(this),e=Zt(this),r=Wt(this);if(0>t&&e>11){if(12===e)return r;var n=ne(0,t+1);return n-r+1}return r}},Pt),F(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Yt(this),e=Wt(this),r=Zt(this),n=Xt(this),o=Vt(this),a=qt(this),i=Qt(this);return ee[t]+", "+(10>e?"0"+e:e)+" "+re[r]+" "+n+" "+(10>o?"0"+o:o)+":"+(10>a?"0"+a:a)+":"+(10>i?"0"+i:i)+" GMT"}},Pt||At),F(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),e=this.getDate(),r=this.getMonth(),n=this.getFullYear();return ee[t]+" "+re[r]+" "+(10>e?"0"+e:e)+" "+n}},Pt||Ht),(Pt||Ft)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),e=this.getDate(),r=this.getMonth(),n=this.getFullYear(),o=this.getHours(),a=this.getMinutes(),i=this.getSeconds(),s=this.getTimezoneOffset(),c=Math.floor(Math.abs(s)/60),h=Math.floor(Math.abs(s)%60);return ee[t]+" "+re[r]+" "+(10>e?"0"+e:e)+" "+n+" "+(10>o?"0"+o:o)+":"+(10>a?"0"+a:a)+":"+(10>i?"0"+i:i)+" GMT"+(s>0?"-":"+")+(10>c?"0"+c:c)+(10>h?"0"+h:h)},H&&o.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var oe=-621987552e5,ae="-000001",ie=Date.prototype.toISOString&&-1===new Date(oe).toISOString().indexOf(ae),se=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),ce=v.bind(Date.prototype.getTime);F(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(ce(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var t=Xt(this),e=Zt(this);t+=Math.floor(e/12),e=(e%12+12)%12;var r=[e+1,Wt(this),Vt(this),qt(this),Qt(this)];t=(0>t?"-":t>9999?"+":"")+X("00000"+Math.abs(t),t>=0&&9999>=t?-4:-6);for(var n=0;n<r.length;++n)r[n]=X("00"+r[n],-2);return t+"-"+J(r,0,2).join("-")+"T"+J(r,2).join(":")+"."+X("000"+te(this),-3)+"Z"}},ie||se);var he=function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(oe).toJSON().indexOf(ae)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(t){return!1}}();he||(Date.prototype.toJSON=function(e){var r=o(this),n=N.ToPrimitive(r);if("number"==typeof n&&!isFinite(n))return null;var a=r.toISOString;if(!t(a))throw new TypeError("toISOString property is not callable");return a.call(r)});var le=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),ue=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),pe=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(pe||ue||!le){var de=Math.pow(2,31)-1,fe=U(new Date(1970,0,1,0,0,0,de+1).getTime());Date=function(t){var e=function(r,n,o,a,i,s,h){var l,u=arguments.length;if(this instanceof t){var p=s,d=h;if(fe&&u>=7&&h>de){var f=Math.floor(h/de)*de,y=Math.floor(f/1e3);p+=y,d-=1e3*y}l=1===u&&c(r)===r?new t(e.parse(r)):u>=7?new t(r,n,o,a,i,p,d):u>=6?new t(r,n,o,a,i,p):u>=5?new t(r,n,o,a,i):u>=4?new t(r,n,o,a):u>=3?new t(r,n,o):u>=2?new t(r,n):u>=1?new t(r instanceof t?+r:r):new t}else l=t.apply(this,arguments);return P(l)||F(l,{constructor:e},!0),l},r=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),n=[0,31,59,90,120,151,181,212,243,273,304,334,365],o=function(t,e){var r=e>1?1:0;return n[e]+Math.floor((t-1969+r)/4)-Math.floor((t-1901+r)/100)+Math.floor((t-1601+r)/400)+365*(t-1970)},a=function(e){var r=0,n=e;if(fe&&n>de){var o=Math.floor(n/de)*de,a=Math.floor(o/1e3);r+=a,n-=1e3*a}return l(new t(1970,0,1,0,0,r,n))};for(var i in t)z(t,i)&&(e[i]=t[i]);F(e,{now:t.now,UTC:t.UTC},!0),e.prototype=t.prototype,F(e.prototype,{constructor:e},!0);var s=function(e){var n=r.exec(e);if(n){var i,s=l(n[1]),c=l(n[2]||1)-1,h=l(n[3]||1)-1,u=l(n[4]||0),p=l(n[5]||0),d=l(n[6]||0),f=Math.floor(1e3*l(n[7]||0)),y=Boolean(n[4]&&!n[8]),m="-"===n[9]?1:-1,g=l(n[10]||0),v=l(n[11]||0),w=p>0||d>0||f>0;return(w?24:25)>u&&60>p&&60>d&&1e3>f&&c>-1&&12>c&&24>g&&60>v&&h>-1&&h<o(s,c+1)-o(s,c)&&(i=60*(24*(o(s,c)+h)+u+g*m),i=1e3*(60*(i+p+v*m)+d)+f,y&&(i=a(i)),i>=-864e13&&864e13>=i)?i:NaN}return t.parse.apply(this,arguments)};return F(e,{parse:s}),e}(Date)}Date.now||(Date.now=function(){return(new Date).getTime()});var ye=u.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0)),me={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(t,e){for(var r=-1,n=e;++r<me.size;)n+=t*me.data[r],me.data[r]=n%me.base,n=Math.floor(n/me.base)},divide:function(t){for(var e=me.size,r=0;--e>=0;)r+=me.data[e],me.data[e]=Math.floor(r/t),r=r%t*me.base},numToString:function(){for(var t=me.size,e="";--t>=0;)if(""!==e||0===t||0!==me.data[t]){var r=c(me.data[t]);""===e?e=r:e+=X("0000000",0,7-r.length)+r}return e},pow:function Le(t,e,r){return 0===e?r:e%2===1?Le(t,e-1,r*t):Le(t*t,e/2,r)},log:function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}},ge=function(t){var e,r,n,o,a,i,s,h;if(e=l(t),e=U(e)?0:Math.floor(e),0>e||e>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(r=l(this),U(r))return"NaN";if(-1e21>=r||r>=1e21)return c(r);if(n="",0>r&&(n="-",r=-r),o="0",r>1e-21)if(a=me.log(r*me.pow(2,69,1))-69,i=0>a?r*me.pow(2,-a,1):r/me.pow(2,a,1),i*=4503599627370496,a=52-a,a>0){for(me.multiply(0,i),s=e;s>=7;)me.multiply(1e7,0),s-=7;for(me.multiply(me.pow(10,s,1),0),s=a-1;s>=23;)me.divide(1<<23),s-=23;me.divide(1<<s),me.multiply(1,1),me.divide(2),o=me.numToString()}else me.multiply(0,i),me.multiply(1<<-a,0),o=me.numToString()+X("0.00000000000000000000",2,2+e);return e>0?(h=o.length,o=e>=h?n+X("0.0000000000000000000",0,e-h+2)+o:n+X(o,0,h-e)+"."+X(o,h-e)):o=n+o,o};F(u,{toFixed:ge},ye);var ve=function(){try{return"1"===1..toPrecision(void 0)}catch(t){return!0}}(),we=u.toPrecision;F(u,{toPrecision:function(t){return"undefined"==typeof t?we.call(this):we.call(this,t)}},ve),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var t="undefined"==typeof/()??/.exec("")[1],r=Math.pow(2,32)-1;h.split=function(n,o){var a=String(this);if("undefined"==typeof n&&0===o)return[];if(!e(n))return Z(this,n,o);var i,s,c,h,l=[],u=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),p=0,d=new RegExp(n.source,u+"g");t||(i=new RegExp("^"+d.source+"$(?!\\s)",u));var y="undefined"==typeof o?r:N.ToUint32(o);for(s=d.exec(a);s&&(c=s.index+s[0].length,!(c>p&&(Y(l,X(a,p,s.index)),!t&&s.length>1&&s[0].replace(i,function(){for(var t=1;t<arguments.length-2;t++)"undefined"==typeof arguments[t]&&(s[t]=void 0)}),s.length>1&&s.index<a.length&&f.apply(l,J(s,1)),h=s[0].length,p=c,l.length>=y)));)d.lastIndex===s.index&&d.lastIndex++,s=d.exec(a);return p===a.length?!h&&d.test("")||Y(l,""):Y(l,X(a,p)),l.length>y?J(l,0,y):l}}():"0".split(void 0,0).length&&(h.split=function(t,e){return"undefined"==typeof t&&0===e?[]:Z(this,t,e)});var _e=h.replace,be=function(){var t=[];return"x".replace(/x(.)?/g,function(e,r){Y(t,r)}),1===t.length&&"undefined"==typeof t[0]}();be||(h.replace=function(r,n){var o=t(n),a=e(r)&&/\)[*?]/.test(r.source);if(o&&a){var i=function(t){var e=arguments.length,o=r.lastIndex;r.lastIndex=0;var a=r.exec(t)||[];return r.lastIndex=o,Y(a,arguments[e-2],arguments[e-1]),n.apply(this,a)};return _e.call(this,r,i)}return _e.call(this,r,n)});var Se=h.substr,xe="".substr&&"b"!=="0b".substr(-1);F(h,{substr:function(t,e){var r=t;return 0>t&&(r=_(this.length+t,0)),Se.call(this,r,e)}},xe);var De="	\n\x0B\f\r   ᠎             　\u2028\u2029\ufeff",Oe="​",je="["+De+"]",Me=new RegExp("^"+je+je+"*"),Te=new RegExp(je+je+"*$"),Ie=h.trim&&(De.trim()||!Oe.trim());F(h,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return c(this).replace(Me,"").replace(Te,"")}},Ie);var Ce=v.bind(String.prototype.trim),Ee=h.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);F(h,{lastIndexOf:function(t){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");for(var e=c(this),r=c(t),n=arguments.length>1?l(arguments[1]):NaN,o=U(n)?1/0:N.ToInteger(n),a=b(_(o,0),e.length),i=r.length,s=a+i;s>0;){s=_(0,s-i);var h=W(X(e,s,a+i),r);if(-1!==h)return s+h}return-1}},Ee);var Ke=h.lastIndexOf;if(F(h,{lastIndexOf:function(t){return Ke.apply(this,arguments)}},1!==h.lastIndexOf.length),8===parseInt(De+"08")&&22===parseInt(De+"0x16")||(parseInt=function(t){var e=/^[\-+]?0[xX]/;return function(r,n){var o=Ce(r),a=l(n)||(e.test(o)?16:10);return t(o,a)}}(parseInt)),1/parseFloat("-0")!==-(1/0)&&(parseFloat=function(t){return function(e){var r=Ce(e),n=t(r);return 0===n&&"-"===X(r,0,1)?-0:n}}(parseFloat)),"RangeError: test"!==String(new RangeError("test"))){var $e=function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");var t=this.name;"undefined"==typeof t?t="Error":"string"!=typeof t&&(t=c(t));var e=this.message;return"undefined"==typeof e?e="":"string"!=typeof e&&(e=c(e)),t?e?t+": "+e:t:e};Error.prototype.toString=$e}if(H){var ke=function(t,e){if(V(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);r.enumerable=!1,Object.defineProperty(t,e,r)}};ke(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),ke(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){var Re=function(){var t="/"+this.source+"/";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),t};RegExp.prototype.toString=Re}})}]);