diff --git a/dist/vconsole.min.js b/dist/vconsole.min.js index 48176d1a..097c4dd5 100644 --- a/dist/vconsole.min.js +++ b/dist/vconsole.min.js @@ -7,4 +7,4 @@ * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("VConsole",[],t):"object"==typeof exports?exports.VConsole=t():e.VConsole=t()}(window,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)o.d(n,l,function(t){return e[t]}.bind(null,l));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=6)}([function(e,t,o){var n,l,i;l=[t],void 0===(i="function"==typeof(n=function(e){"use strict";function t(e){return"[object Number]"==Object.prototype.toString.call(e)}function o(e){return"[object String]"==Object.prototype.toString.call(e)}function n(e){return"[object Array]"==Object.prototype.toString.call(e)}function l(e){return"[object Boolean]"==Object.prototype.toString.call(e)}function i(e){return void 0===e}function r(e){return null===e}function a(e){return"[object Symbol]"==Object.prototype.toString.call(e)}function s(e){return!("[object Object]"!=Object.prototype.toString.call(e)&&(t(e)||o(e)||l(e)||n(e)||r(e)||c(e)||i(e)||a(e)))}function c(e){return"[object Function]"==Object.prototype.toString.call(e)}function d(e){var t=Object.prototype.toString.call(e);return"[object global]"==t||"[object Window]"==t||"[object DOMWindow]"==t}function u(e){if(!s(e)&&!n(e))return[];if(n(e)){const t=[];return e.forEach((e,o)=>{t.push(o)}),t}return Object.getOwnPropertyNames(e).sort()}Object.defineProperty(e,"__esModule",{value:!0}),e.getDate=function(e){let t=e>0?new Date(e):new Date,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=t.getMonth()<9?"0"+(t.getMonth()+1):t.getMonth()+1,l=t.getFullYear(),i=t.getHours()<10?"0"+t.getHours():t.getHours(),r=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),a=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),s=t.getMilliseconds()<10?"0"+t.getMilliseconds():t.getMilliseconds();return s<100&&(s="0"+s),{time:+t,year:l,month:n,day:o,hour:i,minute:r,second:a,millisecond:s}},e.isNumber=t,e.isString=o,e.isArray=n,e.isBoolean=l,e.isUndefined=i,e.isNull=r,e.isSymbol=a,e.isObject=s,e.isFunction=c,e.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isWindow=d,e.isPlainObject=function(e){let t,o=Object.prototype.hasOwnProperty;if(!e||"object"!=typeof e||e.nodeType||d(e))return!1;try{if(e.constructor&&!o.call(e,"constructor")&&!o.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||o.call(e,t)},e.htmlEncode=function(e){return document.createElement("a").appendChild(document.createTextNode(e)).parentNode.innerHTML},e.JSONStringify=function(e){if(!s(e)&&!n(e))return JSON.stringify(e);let t="{",o="}";n(e)&&(t="[",o="]");let l=t;const i=u(e);for(let t=0;t0&&(n=Array.prototype.slice.call(o)),n},addClass:function(e,t){if(e){(0,n.isArray)(e)||(e=[e]);for(let o=0;o-1||(l.push(t),e[o].className=l.join(" "))}}},removeClass:function(e,t){if(e){(0,n.isArray)(e)||(e=[e]);for(let o=0;o=0&&d.splice(t,1)}function h(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=function(){0;return o.nc}();n&&(e.attrs.nonce=n)}return g(t,e.attrs),p(e,t),t}function g(e,t){Object.keys(t).forEach(function(o){e.setAttribute(o,t[o])})}function b(e,t){var o,n,l,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var r=c++;o=s||(s=h(t)),n=w.bind(null,o,r,!1),l=w.bind(null,o,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),p(e,t),t}(t),n=function(e,t,o){var n=o.css,l=o.sourceMap,i=void 0===t.convertToAbsoluteUrls&&l;(t.convertToAbsoluteUrls||i)&&(n=u(n));l&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */");var r=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(r),a&&URL.revokeObjectURL(a)}.bind(null,o,t),l=function(){m(o),o.href&&URL.revokeObjectURL(o.href)}):(o=h(t),n=function(e,t){var o=t.css,n=t.media;n&&e.setAttribute("media",n);if(e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,o),l=function(){m(o)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else l()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=r()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var o=f(e,t);return v(o,t),function(e){for(var n=[],l=0;l=o.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)});for(let t=0;tthis.maxLogNumber;){let e=l.default.one(".vc-item",this.$tabbox);if(!e)break;e.parentNode.removeChild(e),this.logNumber--}}showLogType(e){let t=l.default.one(".vc-log",this.$tabbox);l.default.removeClass(t,"vc-log-partly-log"),l.default.removeClass(t,"vc-log-partly-info"),l.default.removeClass(t,"vc-log-partly-warn"),l.default.removeClass(t,"vc-log-partly-error"),"all"==e?l.default.removeClass(t,"vc-log-partly"):(l.default.addClass(t,"vc-log-partly"),l.default.addClass(t,"vc-log-partly-"+e))}autoScrollToBottom(){this.vConsole.option.disableLogScrolling||this.scrollToBottom()}scrollToBottom(){let e=l.default.one(".vc-content");e&&(e.scrollTop=e.scrollHeight-e.offsetHeight)}mockConsole(){const e=this,t=["log","info","warn","debug","error"];window.console?(t.map(function(t){e.console[t]=window.console[t]}),e.console.time=window.console.time,e.console.timeEnd=window.console.timeEnd,e.console.clear=window.console.clear):window.console={},t.map(e=>{window.console[e]=((...t)=>{this.printLog({logType:e,logs:t})})});const o={};window.console.time=function(e){o[e]=Date.now()},window.console.timeEnd=function(e){var t=o[e];t?(console.log(e+":",Date.now()-t+"ms"),delete o[e]):console.log(e+": 0ms")},window.console.clear=((...t)=>{e.clearLog(),e.console.clear.apply(window.console,t)})}clearLog(){l.default.one(".vc-log",this.$tabbox).innerHTML="",this.logNumber=0}printOriginLog(e){"function"==typeof this.console[e.logType]&&this.console[e.logType].apply(window.console,e.logs)}printLog(e){let t=e.logs||[];if(!t.length&&!e.content)return;t=[].slice.call(t||[]);let o=!0,i=/^\[(\w+)\]$/i,a="";if(n.isString(t[0])){let e=t[0].match(i);null!==e&&e.length>0&&(a=e[1].toLowerCase())}if(a?o=a==this.id:0==this.allowUnformattedLog&&(o=!1),!o)return void(e.noOrigin||this.printOriginLog(e));if(e.date||(e.date=+new Date),!this.isReady)return void this.logList.push(e);if(n.isString(t[0])&&(t[0]=t[0].replace(i,""),""===t[0]&&t.shift()),!e.meta){let t=n.getDate(e.date);e.meta=t.hour+":"+t.minute+":"+t.second}let s=l.default.render(r.default,{logType:e.logType,noMeta:!!e.noMeta,meta:e.meta,style:e.style||""}),c=l.default.one(".vc-item-content",s);for(let e=0;e "+t[e].toString()+"":n.isObject(t[e])||n.isArray(t[e])?this.getFoldedLine(t[e]):" "+n.htmlEncode(t[e]).replace(/\n/g,"
")+"
"}catch(n){o=" ["+typeof t[e]+"]"}o&&("string"==typeof o?c.insertAdjacentHTML("beforeend",o):c.insertAdjacentElement("beforeend",o))}n.isObject(e.content)&&c.insertAdjacentElement("beforeend",e.content),l.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",s),this.logNumber++,this.limitMaxLogs(),this.isInBottom&&this.autoScrollToBottom(),e.noOrigin||this.printOriginLog(e)}getFoldedLine(e,t){let o=this;if(!t){let o=n.JSONStringify(e),l=o.substr(0,36);t=n.getObjName(e),o.length>36&&(l+="..."),t+=" "+l}let i=l.default.render(a.default,{outer:t,lineType:"obj"});return l.default.bind(l.default.one(".vc-fold-outer",i),"click",function(t){t.preventDefault(),t.stopPropagation(),l.default.hasClass(i,"vc-toggle")?(l.default.removeClass(i,"vc-toggle"),l.default.removeClass(l.default.one(".vc-fold-inner",i),"vc-toggle"),l.default.removeClass(l.default.one(".vc-fold-outer",i),"vc-toggle")):(l.default.addClass(i,"vc-toggle"),l.default.addClass(l.default.one(".vc-fold-inner",i),"vc-toggle"),l.default.addClass(l.default.one(".vc-fold-outer",i),"vc-toggle"));let r=l.default.one(".vc-fold-inner",i);return setTimeout(function(){if(0==r.children.length&&e){let t=n.getObjAllKeys(e);for(let i=0;i({done:e.length===t,value:e.length===t?void 0:e[t++]})}}}})?n.apply(t,l):n)||(e.exports=i)},function(e,t,o){var n,l,i;l=[t,o(9),o(0),o(1),o(11),o(14),o(15),o(16),o(17),o(18),o(19),o(25),o(27),o(31),o(38)],void 0===(i="function"==typeof(n=function(o,n,l,i,r,a,s,c,d,u,v,f,p,m,h){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=g(n),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(l),i=g(i),a=g(a),s=g(s),c=g(c),d=g(d),u=g(u),v=g(v),f=g(f),p=g(p),m=g(m),h=g(h);const b="#__vconsole";var _=class{constructor(e){if(i.default.one(b))return void console.debug("vConsole is already exists.");let t=this;if(this.version=n.default.version,this.$dom=null,this.isInited=!1,this.option={defaultPlugins:["system","network","element","storage"]},this.activedTab="",this.tabList=[],this.pluginList={},this.switchPos={x:10,y:10,startX:0,startY:0,endX:0,endY:0},this.tool=l,this.$=i.default,l.isObject(e))for(let t in e)this.option[t]=e[t];this._addBuiltInPlugins();let o=function(){t.isInited||(t._render(),t._mockTap(),t._bindEvent(),t._autoRun())};if(void 0!==document)"complete"==document.readyState?o():i.default.bind(window,"load",o);else{let e,t=function(){document&&"complete"==document.readyState?(e&&clearTimeout(e),o()):e=setTimeout(t,1)};e=setTimeout(t,1)}}_addBuiltInPlugins(){this.addPlugin(new v.default("default","Log"));const e=this.option.defaultPlugins,t={system:{proto:f.default,name:"System"},network:{proto:p.default,name:"Network"},element:{proto:m.default,name:"Element"},storage:{proto:h.default,name:"Storage"}};if(e&&l.isArray(e))for(let o=0;odocument.documentElement.offsetWidth&&(t=document.documentElement.offsetWidth-e.offsetWidth),o+e.offsetHeight>document.documentElement.offsetHeight&&(o=document.documentElement.offsetHeight-e.offsetHeight),t<0&&(t=0),o<0&&(o=0),this.switchPos.x=t,this.switchPos.y=o,i.default.one(".vc-switch").style.right=t+"px",i.default.one(".vc-switch").style.bottom=o+"px");let n=window.devicePixelRatio||1,r=document.querySelector('[name="viewport"]');if(r&&r.content){let e=r.content.match(/initial\-scale\=\d+(\.\d+)?/),t=e?parseFloat(e[0].split("=")[1]):1;t<1&&(this.$dom.style.fontSize=13*n+"px")}i.default.one(".vc-mask",this.$dom).style.display="none"}_mockTap(){let e,t,o,n=!1,l=null;this.$dom.addEventListener("touchstart",function(n){if(void 0===e){let i=n.targetTouches[0];t=i.pageX,o=i.pageY,e=n.timeStamp,l=n.target.nodeType===Node.TEXT_NODE?n.target.parentNode:n.target}},!1),this.$dom.addEventListener("touchmove",function(e){let l=e.changedTouches[0];(Math.abs(l.pageX-t)>10||Math.abs(l.pageY-o)>10)&&(n=!0)}),this.$dom.addEventListener("touchend",function(t){if(!1===n&&t.timeStamp-e<700&&null!=l){let e=l.tagName.toLowerCase(),o=!1;switch(e){case"textarea":o=!0;break;case"input":switch(l.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":o=!1;break;default:o=!l.disabled&&!l.readOnly}}o?l.focus():t.preventDefault();let n=t.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,i.initEvent("click",!0,!0),l.dispatchEvent(i)}e=void 0,n=!1,l=null},!1)}_bindEvent(){let e=this,t=i.default.one(".vc-switch",e.$dom);i.default.bind(t,"touchstart",function(t){e.switchPos.startX=t.touches[0].pageX,e.switchPos.startY=t.touches[0].pageY}),i.default.bind(t,"touchend",function(t){e.switchPos.x=e.switchPos.endX,e.switchPos.y=e.switchPos.endY,e.switchPos.startX=0,e.switchPos.startY=0,e.switchPos.endX=0,e.switchPos.endY=0,l.setStorage("switch_x",e.switchPos.x),l.setStorage("switch_y",e.switchPos.y)}),i.default.bind(t,"touchmove",function(o){if(o.touches.length>0){let n=o.touches[0].pageX-e.switchPos.startX,l=o.touches[0].pageY-e.switchPos.startY,i=e.switchPos.x-n,r=e.switchPos.y-l;i+t.offsetWidth>document.documentElement.offsetWidth&&(i=document.documentElement.offsetWidth-t.offsetWidth),r+t.offsetHeight>document.documentElement.offsetHeight&&(r=document.documentElement.offsetHeight-t.offsetHeight),i<0&&(i=0),r<0&&(r=0),t.style.right=i+"px",t.style.bottom=r+"px",e.switchPos.endX=i,e.switchPos.endY=r,o.preventDefault()}}),i.default.bind(i.default.one(".vc-switch",e.$dom),"click",function(){e.show()}),i.default.bind(i.default.one(".vc-hide",e.$dom),"click",function(){e.hide()}),i.default.bind(i.default.one(".vc-mask",e.$dom),"click",function(t){if(t.target!=i.default.one(".vc-mask"))return!1;e.hide()}),i.default.delegate(i.default.one(".vc-tabbar",e.$dom),"click",".vc-tab",function(t){let o=this.dataset.tab;o!=e.activedTab&&e.showTab(o)}),i.default.bind(i.default.one(".vc-panel",e.$dom),"transitionend webkitTransitionEnd oTransitionEnd otransitionend",function(t){if(t.target!=i.default.one(".vc-panel"))return!1;i.default.hasClass(e.$dom,"vc-toggle")||(t.target.style.display="none")});let o=i.default.one(".vc-content",e.$dom),n=!1;i.default.bind(o,"touchstart",function(e){let t=o.scrollTop,l=o.scrollHeight,r=t+o.offsetHeight;0===t?(o.scrollTop=1,0===o.scrollTop&&(i.default.hasClass(e.target,"vc-cmd-input")||(n=!0))):r===l&&(o.scrollTop=t-1,o.scrollTop===t&&(i.default.hasClass(e.target,"vc-cmd-input")||(n=!0)))}),i.default.bind(o,"touchmove",function(e){n&&e.preventDefault()}),i.default.bind(o,"touchend",function(e){n=!1})}_autoRun(){this.isInited=!0;for(let e in this.pluginList)this._initPlugin(this.pluginList[e]);this.tabList.length>0&&this.showTab(this.tabList[0]),this.triggerEvent("ready")}triggerEvent(e,t){e="on"+e.charAt(0).toUpperCase()+e.slice(1),l.isFunction(this.option[e])&&this.option[e].apply(this,t)}_initPlugin(e){let t=this;e.vConsole=this,e.trigger("init"),e.trigger("renderTab",function(o){t.tabList.push(e.id);let n=i.default.render(s.default,{id:e.id,name:e.name});i.default.one(".vc-tabbar",t.$dom).insertAdjacentElement("beforeend",n);let r=i.default.render(c.default,{id:e.id});o&&(l.isString(o)?r.innerHTML+=o:l.isFunction(o.appendTo)?o.appendTo(r):l.isElement(o)&&r.insertAdjacentElement("beforeend",o)),i.default.one(".vc-content",t.$dom).insertAdjacentElement("beforeend",r)}),e.trigger("addTopBar",function(o){if(!o)return;let n=i.default.one(".vc-topbar",t.$dom);for(let t=0;t-1&&this.tabList.splice(o,1);try{delete this.pluginList[e]}catch(t){this.pluginList[e]=void 0}return this.activedTab==e&&this.tabList.length>0&&this.showTab(this.tabList[0]),!0}show(){if(!this.isInited)return;let e=this,t=i.default.one(".vc-panel",this.$dom);t.style.display="block",setTimeout(function(){i.default.addClass(e.$dom,"vc-toggle"),e._triggerPluginsEvent("showConsole");let t=i.default.one(".vc-mask",e.$dom);t.style.display="block"},10)}hide(){if(!this.isInited)return;i.default.removeClass(this.$dom,"vc-toggle"),this._triggerPluginsEvent("hideConsole");let e=i.default.one(".vc-mask",this.$dom),t=i.default.one(".vc-panel",this.$dom);i.default.bind(e,"transitionend",function(o){e.style.display="none",t.style.display="none"})}showSwitch(){if(!this.isInited)return;let e=i.default.one(".vc-switch",this.$dom);e.style.display="block"}hideSwitch(){if(!this.isInited)return;let e=i.default.one(".vc-switch",this.$dom);e.style.display="none"}showTab(e){if(!this.isInited)return;let t=i.default.one("#__vc_log_"+e);i.default.removeClass(i.default.all(".vc-tab",this.$dom),"vc-actived"),i.default.addClass(i.default.one("#__vc_tab_"+e),"vc-actived"),i.default.removeClass(i.default.all(".vc-logbox",this.$dom),"vc-actived"),i.default.addClass(t,"vc-actived");let o=i.default.all(".vc-topbar-"+e,this.$dom);i.default.removeClass(i.default.all(".vc-toptab",this.$dom),"vc-toggle"),i.default.addClass(o,"vc-toggle"),o.length>0?i.default.addClass(i.default.one(".vc-content",this.$dom),"vc-has-topbar"):i.default.removeClass(i.default.one(".vc-content",this.$dom),"vc-has-topbar"),i.default.removeClass(i.default.all(".vc-tool",this.$dom),"vc-toggle"),i.default.addClass(i.default.all(".vc-tool-"+e,this.$dom),"vc-toggle"),this.activedTab&&this._triggerPluginEvent(this.activedTab,"hide"),this.activedTab=e,this._triggerPluginEvent(this.activedTab,"show")}setOption(e,t){if(l.isString(e))this.option[e]=t,this._triggerPluginsEvent("updateOption");else if(l.isObject(e)){for(let t in e)this.option[t]=e[t];this._triggerPluginsEvent("updateOption")}else console.debug("The first parameter of vConsole.setOption() must be a string or an object.")}destroy(){if(!this.isInited)return;let e=Object.keys(this.pluginList);for(let t=e.length-1;t>=0;t--)this.removePlugin(e[t]);this.$dom.parentNode.removeChild(this.$dom)}};o.default=_,e.exports=t.default})?n.apply(t,l):n)||(e.exports=i)},function(e){e.exports={name:"vconsole",version:"3.2.1",description:"A lightweight, extendable front-end developer tool for mobile web page.",homepage:"https://github.com/Tencent/vConsole",main:"dist/vconsole.min.js",scripts:{test:"mocha",dist:"webpack"},keywords:["console","debug","mobile"],repository:{type:"git",url:"git+https://github.com/Tencent/vConsole.git"},dependencies:{},devDependencies:{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","@babel/plugin-proposal-class-properties":"^7.2.3","@babel/plugin-proposal-export-namespace-from":"^7.2.0","@babel/plugin-proposal-object-rest-spread":"^7.2.0","babel-loader":"^8.0.4","babel-plugin-add-module-exports":"^1.0.0",chai:"^4.2.0","css-loader":"^2.1.0","html-loader":"^0.5.5",jsdom:"^13.1.0","json-loader":"^0.5.7",less:"^3.9.0","less-loader":"^4.1.0",mocha:"^5.2.0","style-loader":"^0.23.1",webpack:"^4.28.4","webpack-cli":"^3.2.1"},author:"Tencent",license:"MIT"}},function(e,t,o){var n,l,i;l=[t],void 0===(i="function"==typeof(n=function(o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(e,t,o){let n=/\{\{([^\}]+)\}\}/g,l="",i="",r=0,a=[],s=function(e,t){""!==e&&(t?e.match(/^ ?else/g)?l+="} "+e+" {\n":e.match(/\/(if|for|switch)/g)?l+="}\n":e.match(/^ ?if|for|switch/g)?l+=e+" {\n":e.match(/^ ?(break|continue) ?$/g)?l+=e+";\n":e.match(/^ ?(case|default)/g)?l+=e+":\n":l+="arr.push("+e+");\n":l+='arr.push("'+e.replace(/"/g,'\\"')+'");\n')};for(window.__mito_data=t,window.__mito_code="",window.__mito_result="",e=(e=e.replace(/(\{\{ ?switch(.+?)\}\})[\r\n\t ]+\{\{/g,"$1{{")).replace(/^[\r\n]/,"").replace(/\n/g,"\\\n").replace(/\r/g,"\\\r"),i="(function(){\n",l="var arr = [];\n";a=n.exec(e);)s(e.slice(r,a.index),!1),s(a[1],!0),r=a.index+a[0].length;s(e.substr(r,e.length-r),!1),i+=l="with (__mito_data) {\n"+(l+='__mito_result = arr.join("");')+"\n}",i+="})();";let c=document.getElementsByTagName("script"),d="";c.length>0&&(d=c[0].getAttribute("nonce")||"");let u=document.createElement("SCRIPT");u.innerHTML=i,u.setAttribute("nonce",d),document.documentElement.appendChild(u);let v=__mito_result;if(document.documentElement.removeChild(u),!o){let e=document.createElement("DIV");e.innerHTML=v,v=e.children[0]}return v},e.exports=t.default})?n.apply(t,l):n)||(e.exports=i)},function(e,t,o){var n=o(12);"string"==typeof n&&(n=[[e.i,n,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};o(4)(n,l);n.locals&&(e.exports=n.locals)},function(e,t,o){(e.exports=o(3)(!1)).push([e.i,'#__vconsole {\n color: #000;\n font-size: 13px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n /* global */\n /* compoment */\n}\n#__vconsole .vc-max-height {\n max-height: 19.23076923em;\n}\n#__vconsole .vc-max-height-line {\n max-height: 3.38461538em;\n}\n#__vconsole .vc-min-height {\n min-height: 3.07692308em;\n}\n#__vconsole dd,\n#__vconsole dl,\n#__vconsole pre {\n margin: 0;\n}\n#__vconsole .vc-switch {\n display: block;\n position: fixed;\n right: 0.76923077em;\n bottom: 0.76923077em;\n color: #FFF;\n background-color: #04BE02;\n line-height: 1;\n font-size: 1.07692308em;\n padding: 0.61538462em 1.23076923em;\n z-index: 10000;\n border-radius: 0.30769231em;\n box-shadow: 0 0 0.61538462em rgba(0, 0, 0, 0.4);\n}\n#__vconsole .vc-mask {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0);\n z-index: 10001;\n transition: background 0.3s;\n -webkit-tap-highlight-color: transparent;\n overflow-y: scroll;\n}\n#__vconsole .vc-panel {\n display: none;\n position: fixed;\n min-height: 85%;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 10002;\n background-color: #EFEFF4;\n -webkit-transition: -webkit-transform 0.3s;\n transition: -webkit-transform 0.3s;\n transition: transform 0.3s;\n transition: transform 0.3s, -webkit-transform 0.3s;\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n#__vconsole .vc-tabbar {\n border-bottom: 1px solid #D9D9D9;\n overflow-x: auto;\n height: 3em;\n width: auto;\n white-space: nowrap;\n}\n#__vconsole .vc-tabbar .vc-tab {\n display: inline-block;\n line-height: 3em;\n padding: 0 1.15384615em;\n border-right: 1px solid #D9D9D9;\n text-decoration: none;\n color: #000;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-tabbar .vc-tab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-tabbar .vc-tab.vc-actived {\n background-color: #FFF;\n}\n#__vconsole .vc-content {\n background-color: #FFF;\n overflow-x: hidden;\n overflow-y: auto;\n position: absolute;\n top: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 3.07692308em;\n -webkit-overflow-scrolling: touch;\n margin-bottom: constant(safe-area-inset-bottom);\n margin-bottom: env(safe-area-inset-bottom);\n}\n#__vconsole .vc-content.vc-has-topbar {\n top: 5.46153846em;\n}\n#__vconsole .vc-topbar {\n background-color: #FBF9FE;\n display: flex;\n display: -webkit-box;\n flex-direction: row;\n flex-wrap: wrap;\n -webkit-box-direction: row;\n -webkit-flex-wrap: wrap;\n width: 100%;\n}\n#__vconsole .vc-topbar .vc-toptab {\n display: none;\n flex: 1;\n -webkit-box-flex: 1;\n line-height: 2.30769231em;\n padding: 0 1.15384615em;\n border-bottom: 1px solid #D9D9D9;\n text-decoration: none;\n text-align: center;\n color: #000;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-topbar .vc-toptab.vc-toggle {\n display: block;\n}\n#__vconsole .vc-topbar .vc-toptab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-topbar .vc-toptab.vc-actived {\n border-bottom: 1px solid #3e82f7;\n}\n#__vconsole .vc-logbox {\n display: none;\n position: relative;\n min-height: 100%;\n}\n#__vconsole .vc-logbox i {\n font-style: normal;\n}\n#__vconsole .vc-logbox .vc-log {\n padding-bottom: 3em;\n -webkit-tap-highlight-color: transparent;\n}\n#__vconsole .vc-logbox .vc-log:empty:before {\n content: "Empty";\n color: #999;\n position: absolute;\n top: 45%;\n left: 0;\n right: 0;\n bottom: 0;\n font-size: 1.15384615em;\n text-align: center;\n}\n#__vconsole .vc-logbox .vc-item {\n margin: 0;\n padding: 0.46153846em 0.61538462em;\n overflow: hidden;\n line-height: 1.3;\n border-bottom: 1px solid #EEE;\n word-break: break-word;\n}\n#__vconsole .vc-logbox .vc-item-info {\n color: #6A5ACD;\n}\n#__vconsole .vc-logbox .vc-item-debug {\n color: #DAA520;\n}\n#__vconsole .vc-logbox .vc-item-warn {\n color: #FFA500;\n border-color: #FFB930;\n background-color: #FFFACD;\n}\n#__vconsole .vc-logbox .vc-item-error {\n color: #DC143C;\n border-color: #F4A0AB;\n background-color: #FFE4E1;\n}\n#__vconsole .vc-logbox .vc-log.vc-log-partly .vc-item {\n display: none;\n}\n#__vconsole .vc-logbox .vc-log.vc-log-partly-log .vc-item-log,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-info .vc-item-info,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-warn .vc-item-warn,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-error .vc-item-error {\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-content {\n margin-right: 4.61538462em;\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-meta {\n color: #888;\n float: right;\n width: 4.61538462em;\n text-align: right;\n}\n#__vconsole .vc-logbox .vc-item.vc-item-nometa .vc-item-content {\n margin-right: 0;\n}\n#__vconsole .vc-logbox .vc-item.vc-item-nometa .vc-item-meta {\n display: none;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code {\n display: block;\n white-space: pre-wrap;\n overflow: auto;\n position: relative;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-input,\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output {\n padding-left: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-input:before,\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output:before {\n content: "›";\n position: absolute;\n top: -0.23076923em;\n left: 0;\n font-size: 1.23076923em;\n color: #6A5ACD;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output:before {\n content: "‹";\n}\n#__vconsole .vc-logbox .vc-item .vc-fold {\n display: block;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer {\n display: block;\n font-style: italic;\n padding-left: 0.76923077em;\n position: relative;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer:active {\n background-color: #E6E6E6;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer:before {\n content: "";\n position: absolute;\n top: 0.30769231em;\n left: 0.15384615em;\n width: 0;\n height: 0;\n border: transparent solid 0.30769231em;\n border-left-color: #000;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer.vc-toggle:before {\n top: 0.46153846em;\n left: 0;\n border-top-color: #000;\n border-left-color: transparent;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner {\n display: none;\n margin-left: 0.76923077em;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner.vc-toggle {\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner .vc-code-key {\n margin-left: 0.76923077em;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer .vc-code-key {\n margin-left: 0;\n}\n#__vconsole .vc-logbox .vc-code-key {\n color: #905;\n}\n#__vconsole .vc-logbox .vc-code-private-key {\n color: #D391B5;\n}\n#__vconsole .vc-logbox .vc-code-function {\n color: #905;\n font-style: italic;\n}\n#__vconsole .vc-logbox .vc-code-number,\n#__vconsole .vc-logbox .vc-code-boolean {\n color: #0086B3;\n}\n#__vconsole .vc-logbox .vc-code-string {\n color: #183691;\n}\n#__vconsole .vc-logbox .vc-code-null,\n#__vconsole .vc-logbox .vc-code-undefined {\n color: #666;\n}\n#__vconsole .vc-logbox .vc-cmd {\n position: absolute;\n height: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 0;\n border-top: 1px solid #D9D9D9;\n display: block!important;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input-wrap {\n display: block;\n height: 2.15384615em;\n margin-right: 3.07692308em;\n padding: 0.46153846em 0.61538462em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input {\n width: 100%;\n border: none;\n resize: none;\n outline: none;\n padding: 0;\n font-size: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input::-webkit-input-placeholder {\n line-height: 2.15384615em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-btn {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 3.07692308em;\n border: none;\n background-color: #EFEFF4;\n outline: none;\n -webkit-touch-callout: none;\n font-size: 1em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-btn:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-prompted {\n position: fixed;\n width: 100%;\n background-color: #FBF9FE;\n border: 1px solid #D9D9D9;\n overflow-x: scroll;\n display: none;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-prompted li {\n list-style: none;\n line-height: 30px;\n padding: 0 0.46153846em;\n border-bottom: 1px solid #D9D9D9;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-preview {\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-preview:active {\n background-color: #E6E6E6;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-detail {\n display: none;\n padding: 0 0 0.76923077em 1.53846154em;\n border-bottom: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-group-detail {\n display: block;\n background-color: #FBF9FE;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-table-row {\n background-color: #FFF;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-group-preview {\n background-color: #FBF9FE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row {\n display: flex;\n display: -webkit-flex;\n flex-direction: row;\n flex-wrap: wrap;\n -webkit-box-direction: row;\n -webkit-flex-wrap: wrap;\n overflow: hidden;\n border-bottom: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row.vc-left-border {\n border-left: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col {\n flex: 1;\n -webkit-box-flex: 1;\n padding: 0.23076923em 0.30769231em;\n border-left: 1px solid #EEE;\n overflow: auto;\n white-space: pre-wrap;\n word-break: break-word;\n /*white-space: nowrap;\n text-overflow: ellipsis;*/\n -webkit-overflow-scrolling: touch;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col:first-child {\n border: none;\n}\n#__vconsole .vc-logbox .vc-table .vc-small .vc-table-col {\n padding: 0 0.30769231em;\n font-size: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-2 {\n flex: 2;\n -webkit-box-flex: 2;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-3 {\n flex: 3;\n -webkit-box-flex: 3;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-4 {\n flex: 4;\n -webkit-box-flex: 4;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-5 {\n flex: 5;\n -webkit-box-flex: 5;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-6 {\n flex: 6;\n -webkit-box-flex: 6;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row-error {\n border-color: #F4A0AB;\n background-color: #FFE4E1;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row-error .vc-table-col {\n color: #DC143C;\n border-color: #F4A0AB;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-title {\n font-weight: bold;\n}\n#__vconsole .vc-logbox.vc-actived {\n display: block;\n}\n#__vconsole .vc-toolbar {\n border-top: 1px solid #D9D9D9;\n line-height: 3em;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n display: -webkit-box;\n flex-direction: row;\n -webkit-box-direction: row;\n}\n#__vconsole .vc-toolbar .vc-tool {\n display: none;\n text-decoration: none;\n color: #000;\n width: 50%;\n flex: 1;\n -webkit-box-flex: 1;\n text-align: center;\n position: relative;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-toolbar .vc-tool.vc-toggle,\n#__vconsole .vc-toolbar .vc-tool.vc-global-tool {\n display: block;\n}\n#__vconsole .vc-toolbar .vc-tool:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-toolbar .vc-tool:after {\n content: " ";\n position: absolute;\n top: 0.53846154em;\n bottom: 0.53846154em;\n right: 0;\n border-left: 1px solid #D9D9D9;\n}\n#__vconsole .vc-toolbar .vc-tool-last:after {\n border: none;\n}\n@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {\n #__vconsole .vc-toolbar {\n bottom: constant(safe-area-inset-bottom);\n bottom: env(safe-area-inset-bottom);\n }\n}\n#__vconsole.vc-toggle .vc-switch {\n display: none;\n}\n#__vconsole.vc-toggle .vc-mask {\n background: rgba(0, 0, 0, 0.6);\n display: block;\n}\n#__vconsole.vc-toggle .vc-panel {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var o=t.protocol+"//"+t.host,n=o+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var l,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(l=0===i.indexOf("//")?i:0===i.indexOf("/")?o+i:n+i.replace(/^\.\//,""),"url("+JSON.stringify(l)+")")})}},function(e,t){e.exports='
\n
vConsole
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n Hide\n
\n
\n
'},function(e,t){e.exports='{{name}}'},function(e,t){e.exports='
\n \n
'},function(e,t){e.exports='{{name}}'},function(e,t){e.exports='{{name}}'},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function(_exports,_query,tool,_log,_tabbox_default,_item_code){"use strict";function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,_query=_interopRequireDefault(_query),tool=_interopRequireWildcard(tool),_log=_interopRequireDefault(_log),_tabbox_default=_interopRequireDefault(_tabbox_default),_item_code=_interopRequireDefault(_item_code);class VConsoleDefaultTab extends _log.default{constructor(...e){super(...e),this.tplTabbox=_tabbox_default.default}onReady(){const that=this;super.onReady(),window.winKeys=Object.getOwnPropertyNames(window).sort(),window.keyTypes={};for(let e=0;e{o=o||ID_REGEX;const n=[];for(let l=t-1;l>=0&&o.test(e[l]);l--)n.push(e[l]);if(0==n.length){o=/\./;for(let l=t-1;l>=0&&o.test(e[l]);l--)n.push(e[l])}if(0===n.length){const t=e.match(/[\(\)\[\]\{\}]/gi)||[];return t[t.length-1]}return n.reverse().join("")};_query.default.bind(_query.default.one(".vc-cmd-input"),"keyup",function(e){const isDeleteKeyCode=8===e.keyCode||46===e.keyCode,$prompted=_query.default.one(".vc-cmd-prompted");$prompted.style.display="none",$prompted.innerHTML="";const tempValue=this.value,value=retrievePrecedingIdentifier(this.value,this.value.length);if(value&&value.length>0){if(/\(/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+=")");if(/\[/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+="]");if(/\{/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+="}");if("."===value){const key=retrievePrecedingIdentifier(tempValue,tempValue.length-1);if(!cacheObj[key])try{cacheObj[key]=Object.getOwnPropertyNames(eval("("+key+")")).sort()}catch(e){}try{for(let e=0;e=0){const t=document.createElement("li");t.innerHTML=winKeys[e],t.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=this.innerHTML,"function"==keyTypes[this.innerHTML]&&(_query.default.one(".vc-cmd-input").value+="()"),$prompted.style.display="none"},$prompted.appendChild(t)}}else{const e=value.split(".");if(cacheObj[e[0]]){cacheObj[e[0]].sort();for(let t=0;t=0&&(o.innerHTML=n,o.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=tempValue+this.innerHTML,$prompted.style.display="none"},$prompted.appendChild(o))}}}if($prompted.children.length>0){const e=Math.min(200,31*$prompted.children.length);$prompted.style.display="block",$prompted.style.height=e+"px",$prompted.style.marginTop=-e+"px"}}else $prompted.style.display="none"}),_query.default.bind(_query.default.one(".vc-cmd",this.$tabbox),"submit",function(e){e.preventDefault();let t=_query.default.one(".vc-cmd-input",e.target),o=t.value;t.value="",""!==o&&that.evalCommand(o);const n=_query.default.one(".vc-cmd-prompted");n&&(n.style.display="none")});let code="";code+="if (!!window) {",code+="window.__vConsole_cmd_result = undefined;",code+="window.__vConsole_cmd_error = false;",code+="}";let scriptList=document.getElementsByTagName("script"),nonce="";scriptList.length>0&&(nonce=scriptList[0].getAttribute("nonce")||"");let script=document.createElement("SCRIPT");script.innerHTML=code,script.setAttribute("nonce",nonce),document.documentElement.appendChild(script),document.documentElement.removeChild(script)}mockConsole(){super.mockConsole();let e=this;tool.isFunction(window.onerror)&&(this.windowOnError=window.onerror),window.onerror=function(t,o,n,l,i){let r=t;o&&(r+="\n"+o.replace(location.origin,"")),(n||l)&&(r+=":"+n+":"+l);let a=!!i&&!!i.stack&&i.stack.toString()||"";e.printLog({logType:"error",logs:[r,a],noOrigin:!0}),tool.isFunction(e.windowOnError)&&e.windowOnError.call(window,t,o,n,l,i)}}evalCommand(e){this.printLog({logType:"log",content:_query.default.render(_item_code.default,{content:e,type:"input"}),noMeta:!0,style:""});let t,o=void 0;try{o=eval.call(window,"("+e+")")}catch(t){try{o=eval.call(window,e)}catch(e){}}tool.isArray(o)||tool.isObject(o)?t=this.getFoldedLine(o):(tool.isNull(o)?o="null":tool.isUndefined(o)?o="undefined":tool.isFunction(o)?o="function()":tool.isString(o)&&(o='"'+o+'"'),t=_query.default.render(_item_code.default,{content:o,type:"output"})),this.printLog({logType:"log",content:t,noMeta:!0,style:""}),window.winKeys=Object.getOwnPropertyNames(window).sort()}}var _default=VConsoleDefaultTab;_exports.default=_default,module.exports=exports.default},__WEBPACK_AMD_DEFINE_ARRAY__=[exports,__webpack_require__(1),__webpack_require__(0),__webpack_require__(5),__webpack_require__(23),__webpack_require__(24)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,t){e.exports='
\n\t{{if (!noMeta)}}{{meta}}{{/if}}\n\t
\n
'},function(e,t){e.exports='
\n {{if (lineType == \'obj\')}}\n {{outer}}\n
\n {{else if (lineType == \'value\')}}\n {{value}}\n {{else if (lineType == \'kv\')}}\n {{key}}: {{value}}\n {{/if}}\n
'},function(e,t){e.exports='\n {{key}}: {{value}}\n'},function(e,t){e.exports='
\n
\n
\n \n
    \n
    \n \n
    \n
    \n
    '},function(e,t){e.exports='
    {{content}}
    '},function(e,t,o){var n,l,i;l=[t,o(0),o(5),o(26)],void 0===(i="function"==typeof(n=function(o,n,l,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(n),l=r(l),i=r(i);var a=class extends l.default{constructor(...e){super(...e),this.tplTabbox=i.default,this.allowUnformattedLog=!1}onInit(){super.onInit(),this.printSystemInfo()}printSystemInfo(){let e=navigator.userAgent,t="",o=e.match(/(ipod).*\s([\d_]+)/i),n=e.match(/(ipad).*\s([\d_]+)/i),l=e.match(/(iphone)\sos\s([\d_]+)/i),i=e.match(/(android)\s([\d\.]+)/i);t="Unknown",i?t="Android "+i[2]:l?t="iPhone, iOS "+l[2].replace(/_/g,"."):n?t="iPad, iOS "+n[2].replace(/_/g,"."):o&&(t="iPod, iOS "+o[2].replace(/_/g,"."));let r=t,a=e.match(/MicroMessenger\/([\d\.]+)/i);t="Unknown",a&&a[1]?(t=a[1],r+=", WeChat "+t,console.info("[system]","System:",r)):console.info("[system]","System:",r),t="Unknown",t="https:"==location.protocol?"HTTPS":"http:"==location.protocol?"HTTP":location.protocol.replace(":",""),r=t;let s=e.toLowerCase().match(/ nettype\/([^ ]+)/g);t="Unknown",s&&s[0]?(s=s[0].split("/"),t=s[1],r+=", "+t,console.info("[system]","Network:",r)):console.info("[system]","Protocol:",r),console.info("[system]","UA:",e),setTimeout(function(){let e=window.performance||window.msPerformance||window.webkitPerformance;if(e&&e.timing){let t=e.timing;t.navigationStart&&console.info("[system]","navigationStart:",t.navigationStart),t.navigationStart&&t.domainLookupStart&&console.info("[system]","navigation:",t.domainLookupStart-t.navigationStart+"ms"),t.domainLookupEnd&&t.domainLookupStart&&console.info("[system]","dns:",t.domainLookupEnd-t.domainLookupStart+"ms"),t.connectEnd&&t.connectStart&&(t.connectEnd&&t.secureConnectionStart?console.info("[system]","tcp (ssl):",t.connectEnd-t.connectStart+"ms ("+(t.connectEnd-t.secureConnectionStart)+"ms)"):console.info("[system]","tcp:",t.connectEnd-t.connectStart+"ms")),t.responseStart&&t.requestStart&&console.info("[system]","request:",t.responseStart-t.requestStart+"ms"),t.responseEnd&&t.responseStart&&console.info("[system]","response:",t.responseEnd-t.responseStart+"ms"),t.domComplete&&t.domLoading&&(t.domContentLoadedEventStart&&t.domLoading?console.info("[system]","domComplete (domLoaded):",t.domComplete-t.domLoading+"ms ("+(t.domContentLoadedEventStart-t.domLoading)+"ms)"):console.info("[system]","domComplete:",t.domComplete-t.domLoading+"ms")),t.loadEventEnd&&t.loadEventStart&&console.info("[system]","loadEvent:",t.loadEventEnd-t.loadEventStart+"ms"),t.navigationStart&&t.loadEventEnd&&console.info("[system]","total (DOM):",t.loadEventEnd-t.navigationStart+"ms ("+(t.domComplete-t.navigationStart)+"ms)")}},0)}};o.default=a,e.exports=t.default})?n.apply(t,l):n)||(e.exports=i)},function(e,t){e.exports='
    \n
    \n
    '},function(e,t,o){var n,l,i;l=[t,o(1),o(0),o(2),o(28),o(29),o(30)],void 0===(i="function"==typeof(n=function(o,n,l,i,r,a,s){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=c(n),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(l),i=c(i),r=c(r),a=c(a),s=c(s);var d=class extends i.default{constructor(...e){super(...e),this.$tabbox=n.default.render(r.default,{}),this.$header=null,this.reqList={},this.domList={},this.isReady=!1,this.isShow=!1,this.isInBottom=!0,this._open=void 0,this._send=void 0,this.mockAjax()}onRenderTab(e){e(this.$tabbox)}onAddTool(e){let t=this,o=[{name:"Clear",global:!1,onClick:function(e){t.clearLog()}}];e(o)}onReady(){var e=this;e.isReady=!0,this.renderHeader(),n.default.delegate(n.default.one(".vc-log",this.$tabbox),"click",".vc-group-preview",function(t){let o=this.dataset.reqid,l=this.parentNode;n.default.hasClass(l,"vc-actived")?(n.default.removeClass(l,"vc-actived"),e.updateRequest(o,{actived:!1})):(n.default.addClass(l,"vc-actived"),e.updateRequest(o,{actived:!0})),t.preventDefault()});let t=n.default.one(".vc-content");n.default.bind(t,"scroll",function(o){e.isShow&&(t.scrollTop+t.offsetHeight>=t.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)});for(let t in e.reqList)e.updateRequest(t,{})}onRemove(){window.XMLHttpRequest&&(window.XMLHttpRequest.prototype.open=this._open,window.XMLHttpRequest.prototype.send=this._send,this._open=void 0,this._send=void 0)}onShow(){this.isShow=!0,1==this.isInBottom&&this.scrollToBottom()}onHide(){this.isShow=!1}onShowConsole(){1==this.isInBottom&&this.scrollToBottom()}scrollToBottom(){let e=n.default.one(".vc-content");e.scrollTop=e.scrollHeight-e.offsetHeight}clearLog(){this.reqList={};for(let e in this.domList)this.domList[e].remove(),this.domList[e]=void 0;this.domList={},this.renderHeader()}renderHeader(){let e=Object.keys(this.reqList).length,t=n.default.render(a.default,{count:e}),o=n.default.one(".vc-log",this.$tabbox);this.$header?this.$header.parentNode.replaceChild(t,this.$header):o.parentNode.insertBefore(t,o),this.$header=t}updateRequest(e,t){let o=Object.keys(this.reqList).length,i=this.reqList[e]||{};for(let e in t)i[e]=t[e];if(this.reqList[e]=i,!this.isReady)return;let r={id:e,url:i.url,status:i.status,method:i.method||"-",costTime:i.costTime>0?i.costTime+"ms":"-",header:i.header||null,getData:i.getData||null,postData:i.postData||null,response:null,actived:!!i.actived};switch(i.responseType){case"":case"text":if(l.isString(i.response))try{r.response=JSON.parse(i.response),r.response=JSON.stringify(r.response,null,1),r.response=l.htmlEncode(r.response)}catch(e){r.response=l.htmlEncode(i.response)}else void 0!==i.response&&(r.response=Object.prototype.toString.call(i.response));break;case"json":void 0!==i.response&&(r.response=JSON.stringify(i.response,null,1),r.response=l.htmlEncode(r.response));break;case"blob":case"document":case"arraybuffer":default:void 0!==i.response&&(r.response=Object.prototype.toString.call(i.response))}0==i.readyState||1==i.readyState?r.status="Pending":2==i.readyState||3==i.readyState?r.status="Loading":4==i.readyState||(r.status="Unknown");let a=n.default.render(s.default,r),c=this.domList[e];i.status>=400&&n.default.addClass(n.default.one(".vc-group-preview",a),"vc-table-row-error"),c?c.parentNode.replaceChild(a,c):n.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",a),this.domList[e]=a;let d=Object.keys(this.reqList).length;d!=o&&this.renderHeader(),this.isInBottom&&this.scrollToBottom()}mockAjax(){let e=window.XMLHttpRequest;if(!e)return;let t=this,o=window.XMLHttpRequest.prototype.open,n=window.XMLHttpRequest.prototype.send;t._open=o,t._send=n,window.XMLHttpRequest.prototype.open=function(){let e=this,n=[].slice.call(arguments),l=n[0],i=n[1],r=t.getUniqueID(),a=null;e._requestID=r,e._method=l,e._url=i;let s=e.onreadystatechange||function(){},c=function(){let o=t.reqList[r]||{};if(o.readyState=e.readyState,o.status=0,e.readyState>1&&(o.status=e.status),o.responseType=e.responseType,0==e.readyState)o.startTime||(o.startTime=+new Date);else if(1==e.readyState)o.startTime||(o.startTime=+new Date);else if(2==e.readyState){o.header={};let t=e.getAllResponseHeaders()||"",n=t.split("\n");for(let e=0;e0){r.getData={},a=(a=a.join("?")).split("&");for(let e of a)e=e.split("="),r.getData[e[0]]=e[1]}if("POST"==r.method)if(l.isString(i)){let e=i.split("&");r.postData={};for(let t of e)t=t.split("="),r.postData[t[0]]=t[1]}else l.isPlainObject(i)&&(r.postData=i);return e._noVConsole||t.updateRequest(e._requestID,r),n.apply(e,o)}}getUniqueID(){let e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0,o="x"==e?t:3&t|8;return o.toString(16)});return e}};o.default=d,e.exports=t.default})?n.apply(t,l):n)||(e.exports=i)},function(e,t){e.exports='
    \n
    \n
    '},function(e,t){e.exports='
    \n
    Name {{if (count > 0)}}({{count}}){{/if}}
    \n
    Method
    \n
    Status
    \n
    Time
    \n
    '},function(e,t){e.exports='
    \n
    \n
    {{url}}
    \n
    {{method}}
    \n
    {{status}}
    \n
    {{costTime}}
    \n
    \n
    \n {{if (header !== null)}}\n
    \n
    \n
    Headers
    \n
    \n {{for (var key in header)}}\n
    \n
    {{key}}
    \n
    {{header[key]}}
    \n
    \n {{/for}}\n
    \n {{/if}}\n {{if (getData !== null)}}\n
    \n
    \n
    Query String Parameters
    \n
    \n {{for (var key in getData)}}\n
    \n
    {{key}}
    \n
    {{getData[key]}}
    \n
    \n {{/for}}\n
    \n {{/if}}\n {{if (postData !== null)}}\n
    \n
    \n
    Form Data
    \n
    \n {{for (var key in postData)}}\n
    \n
    {{key}}
    \n
    {{postData[key]}}
    \n
    \n {{/for}}\n
    \n {{/if}}\n
    \n
    \n
    Response
    \n
    \n
    \n
    {{response || \'\'}}
    \n
    \n
    \n
    \n
    '},function(e,t,o){var n,l,i;l=[t,o(32),o(2),o(34),o(35),o(0),o(1)],void 0===(i="function"==typeof(n=function(o,n,l,i,r,a,s){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,l=c(l),i=c(i),r=c(r),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(a),s=c(s);var d=class extends l.default{constructor(...e){super(...e);let t=this;t.isInited=!1,t.node={},t.$tabbox=s.default.render(i.default,{}),t.nodes=[],t.activedElem={};let o=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;t.observer=new o(function(e){for(let o=0;o0&&this.onChildRemove(e),e.addedNodes.length>0&&this.onChildAdd(e);break;case"attributes":this.onAttributesChange(e);break;case"characterData":this.onCharacterDataChange(e)}}onChildRemove(e){let t=e.target,o=t.__vconsole_node;if(o){for(let t=0;t0||(e.childNodes[l]?n.renderView(e.childNodes[l],i,"replace"):i.style.display="none"))}}),o){case"replace":t.parentNode.replaceChild(l,t);break;case"insertBefore":t.parentNode.insertBefore(l,t);break;default:t.appendChild(l)}return l}getNode(e){if(this._isIgnoredElement(e))return;let t=e.__vconsole_node||{};if(t.nodeType=e.nodeType,t.nodeName=e.nodeName,t.tagName=e.tagName||"",t.textContent="",t.nodeType!=e.TEXT_NODE&&t.nodeType!=e.DOCUMENT_TYPE_NODE||(t.textContent=e.textContent),t.id=e.id||"",t.className=e.className||"",t.attributes=[],e.hasAttributes&&e.hasAttributes())for(let o=0;o0)for(let o=0;o .vcelm-node {\n display: block;\n}\n.vcelm-l .vcelm-node:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vcelm-l.vcelm-noc .vcelm-node:active {\n background-color: transparent;\n}\n.vcelm-t {\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n/* level */\n.vcelm-l .vcelm-l {\n display: none;\n}\n.vcelm-l.vc-toggle > .vcelm-l {\n margin-left: 4px;\n display: block;\n}\n/* arrow */\n.vcelm-l:before {\n content: "";\n display: block;\n position: absolute;\n top: 6px;\n left: 3px;\n width: 0;\n height: 0;\n border: transparent solid 3px;\n border-left-color: #000;\n}\n.vcelm-l.vc-toggle:before {\n display: block;\n top: 6px;\n left: 0;\n border-top-color: #000;\n border-left-color: transparent;\n}\n.vcelm-l.vcelm-noc:before {\n display: none;\n}\n',""])},function(e,t){e.exports='
    \n
    \n
    '},function(e,t,o){var n,l,i;l=[t,o(36),o(37),o(0),o(1)],void 0===(i="function"==typeof(n=function(o,n,l,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=a(n),l=a(l),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(i),r=a(r);var s=class{constructor(e){this.node=e,this.view=this._create(this.node)}get(){return this.view}_create(e,t){let o=document.createElement("DIV");switch(r.default.addClass(o,"vcelm-l"),e.nodeType){case o.ELEMENT_NODE:this._createElementNode(e,o);break;case o.TEXT_NODE:this._createTextNode(e,o);break;case o.COMMENT_NODE:case o.DOCUMENT_NODE:case o.DOCUMENT_TYPE_NODE:case o.DOCUMENT_FRAGMENT_NODE:}return o}_createTextNode(e,t){r.default.addClass(t,"vcelm-t vcelm-noc"),e.textContent&&t.appendChild(function(e){return document.createTextNode(e)}(e.textContent.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")))}_createElementNode(e,t){let o=(a=(a=e.tagName)?a.toLowerCase():"",["br","hr","img","input","link","meta"].indexOf(a)>-1),i=o;var a;0==e.childNodes.length&&(i=!0);let s=r.default.render(n.default,{node:e}),c=r.default.render(l.default,{node:e});if(i)r.default.addClass(t,"vcelm-noc"),t.appendChild(s),o||t.appendChild(c);else{t.appendChild(s);for(let o=0;o<{{node.tagName.toLowerCase()}}{{if (node.className || node.attributes.length)}}\n \n {{for (var i = 0; i < node.attributes.length; i++)}}\n {{if (node.attributes[i].value !== \'\')}}\n {{node.attributes[i].name}}="{{node.attributes[i].value}}"{{else}}\n {{node.attributes[i].name}}{{/if}}{{/for}}{{/if}}>'},function(e,t){e.exports='</{{node.tagName.toLowerCase()}}>'},function(e,t,o){var n,l,i;l=[t,o(2),o(39),o(40),o(0),o(1)],void 0===(i="function"==typeof(n=function(o,n,l,i,r,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=s(n),l=s(l),i=s(i),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(r),a=s(a);var c=class extends n.default{constructor(...e){super(...e),this.$tabbox=a.default.render(l.default,{}),this.currentType="",this.typeNameMap={cookies:"Cookies",localstorage:"LocalStorage"}}onRenderTab(e){e(this.$tabbox)}onAddTopBar(e){let t=this,o=["Cookies","LocalStorage"],n=[];for(let e=0;e\n
    \n'},function(e,t){e.exports='
    \n
    \n
    Name
    \n
    Value
    \n
    \n {{for (var i = 0; i < list.length; i++)}}\n
    \n
    {{list[i].name}}
    \n
    {{list[i].value}}
    \n
    \n {{/for}}\n
    '}])}); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("VConsole",[],t):"object"==typeof exports?exports.VConsole=t():e.VConsole=t()}(window,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)o.d(n,l,function(t){return e[t]}.bind(null,l));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=6)}([function(e,t,o){var n,l,i;l=[t],void 0===(i="function"==typeof(n=function(e){"use strict";function t(e){return"[object Number]"==Object.prototype.toString.call(e)}function o(e){return"[object String]"==Object.prototype.toString.call(e)}function n(e){return"[object Array]"==Object.prototype.toString.call(e)}function l(e){return"[object Boolean]"==Object.prototype.toString.call(e)}function i(e){return void 0===e}function r(e){return null===e}function a(e){return"[object Symbol]"==Object.prototype.toString.call(e)}function s(e){return!("[object Object]"!=Object.prototype.toString.call(e)&&(t(e)||o(e)||l(e)||n(e)||r(e)||c(e)||i(e)||a(e)))}function c(e){return"[object Function]"==Object.prototype.toString.call(e)}function d(e){var t=Object.prototype.toString.call(e);return"[object global]"==t||"[object Window]"==t||"[object DOMWindow]"==t}function u(e){if(!s(e)&&!n(e))return[];if(n(e)){const t=[];return e.forEach((e,o)=>{t.push(o)}),t}return Object.getOwnPropertyNames(e).sort()}Object.defineProperty(e,"__esModule",{value:!0}),e.getDate=function(e){let t=e>0?new Date(e):new Date,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=t.getMonth()<9?"0"+(t.getMonth()+1):t.getMonth()+1,l=t.getFullYear(),i=t.getHours()<10?"0"+t.getHours():t.getHours(),r=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),a=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),s=t.getMilliseconds()<10?"0"+t.getMilliseconds():t.getMilliseconds();return s<100&&(s="0"+s),{time:+t,year:l,month:n,day:o,hour:i,minute:r,second:a,millisecond:s}},e.isNumber=t,e.isString=o,e.isArray=n,e.isBoolean=l,e.isUndefined=i,e.isNull=r,e.isSymbol=a,e.isObject=s,e.isFunction=c,e.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isWindow=d,e.isPlainObject=function(e){let t,o=Object.prototype.hasOwnProperty;if(!e||"object"!=typeof e||e.nodeType||d(e))return!1;try{if(e.constructor&&!o.call(e,"constructor")&&!o.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||o.call(e,t)},e.htmlEncode=function(e){return document.createElement("a").appendChild(document.createTextNode(e)).parentNode.innerHTML},e.JSONStringify=function(e){if(!s(e)&&!n(e))return JSON.stringify(e);let t="{",o="}";n(e)&&(t="[",o="]");let l=t;const i=u(e);for(let t=0;t0&&(n=Array.prototype.slice.call(o)),n},addClass:function(e,t){if(e){(0,n.isArray)(e)||(e=[e]);for(let o=0;o-1||(l.push(t),e[o].className=l.join(" "))}}},removeClass:function(e,t){if(e){(0,n.isArray)(e)||(e=[e]);for(let o=0;o=0&&d.splice(t,1)}function h(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=function(){0;return o.nc}();n&&(e.attrs.nonce=n)}return g(t,e.attrs),p(e,t),t}function g(e,t){Object.keys(t).forEach(function(o){e.setAttribute(o,t[o])})}function b(e,t){var o,n,l,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var r=c++;o=s||(s=h(t)),n=w.bind(null,o,r,!1),l=w.bind(null,o,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),p(e,t),t}(t),n=function(e,t,o){var n=o.css,l=o.sourceMap,i=void 0===t.convertToAbsoluteUrls&&l;(t.convertToAbsoluteUrls||i)&&(n=u(n));l&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */");var r=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(r),a&&URL.revokeObjectURL(a)}.bind(null,o,t),l=function(){m(o),o.href&&URL.revokeObjectURL(o.href)}):(o=h(t),n=function(e,t){var o=t.css,n=t.media;n&&e.setAttribute("media",n);if(e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,o),l=function(){m(o)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else l()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=r()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var o=f(e,t);return v(o,t),function(e){for(var n=[],l=0;l=o.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)});for(let t=0;tthis.maxLogNumber;){let e=l.default.one(".vc-item",this.$tabbox);if(!e)break;e.parentNode.removeChild(e),this.logNumber--}}showLogType(e){let t=l.default.one(".vc-log",this.$tabbox);l.default.removeClass(t,"vc-log-partly-log"),l.default.removeClass(t,"vc-log-partly-info"),l.default.removeClass(t,"vc-log-partly-warn"),l.default.removeClass(t,"vc-log-partly-error"),"all"==e?l.default.removeClass(t,"vc-log-partly"):(l.default.addClass(t,"vc-log-partly"),l.default.addClass(t,"vc-log-partly-"+e))}autoScrollToBottom(){this.vConsole.option.disableLogScrolling||this.scrollToBottom()}scrollToBottom(){let e=l.default.one(".vc-content");e&&(e.scrollTop=e.scrollHeight-e.offsetHeight)}mockConsole(){const e=this,t=["log","info","warn","debug","error"];window.console?(t.map(function(t){e.console[t]=window.console[t]}),e.console.time=window.console.time,e.console.timeEnd=window.console.timeEnd,e.console.clear=window.console.clear):window.console={},t.map(e=>{window.console[e]=((...t)=>{this.printLog({logType:e,logs:t})})});const o={};window.console.time=function(e){o[e]=Date.now()},window.console.timeEnd=function(e){var t=o[e];t?(console.log(e+":",Date.now()-t+"ms"),delete o[e]):console.log(e+": 0ms")},window.console.clear=((...t)=>{e.clearLog(),e.console.clear.apply(window.console,t)})}clearLog(){l.default.one(".vc-log",this.$tabbox).innerHTML="",this.logNumber=0}printOriginLog(e){"function"==typeof this.console[e.logType]&&this.console[e.logType].apply(window.console,e.logs)}printLog(e){let t=e.logs||[];if(!t.length&&!e.content)return;t=[].slice.call(t||[]);let o=!0,i=/^\[(\w+)\]$/i,a="";if(n.isString(t[0])){let e=t[0].match(i);null!==e&&e.length>0&&(a=e[1].toLowerCase())}if(a?o=a==this.id:0==this.allowUnformattedLog&&(o=!1),!o)return void(e.noOrigin||this.printOriginLog(e));if(e.date||(e.date=+new Date),!this.isReady)return void this.logList.push(e);if(n.isString(t[0])&&(t[0]=t[0].replace(i,""),""===t[0]&&t.shift()),!e.meta){let t=n.getDate(e.date);e.meta=t.hour+":"+t.minute+":"+t.second}let s=l.default.render(r.default,{logType:e.logType,noMeta:!!e.noMeta,meta:e.meta,style:e.style||""}),c=l.default.one(".vc-item-content",s);for(let e=0;e "+t[e].toString()+"":n.isObject(t[e])||n.isArray(t[e])?this.getFoldedLine(t[e]):" "+n.htmlEncode(t[e]).replace(/\n/g,"
    ")+"
    "}catch(n){o=" ["+typeof t[e]+"]"}o&&("string"==typeof o?c.insertAdjacentHTML("beforeend",o):c.insertAdjacentElement("beforeend",o))}n.isObject(e.content)&&c.insertAdjacentElement("beforeend",e.content),l.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",s),this.logNumber++,this.limitMaxLogs(),this.isInBottom&&this.autoScrollToBottom(),e.noOrigin||this.printOriginLog(e)}getFoldedLine(e,t){let o=this;if(!t){let o=n.JSONStringify(e),l=o.substr(0,36);t=n.getObjName(e),o.length>36&&(l+="..."),t+=" "+l}let i=l.default.render(a.default,{outer:t,lineType:"obj"});return l.default.bind(l.default.one(".vc-fold-outer",i),"click",function(t){t.preventDefault(),t.stopPropagation(),l.default.hasClass(i,"vc-toggle")?(l.default.removeClass(i,"vc-toggle"),l.default.removeClass(l.default.one(".vc-fold-inner",i),"vc-toggle"),l.default.removeClass(l.default.one(".vc-fold-outer",i),"vc-toggle")):(l.default.addClass(i,"vc-toggle"),l.default.addClass(l.default.one(".vc-fold-inner",i),"vc-toggle"),l.default.addClass(l.default.one(".vc-fold-outer",i),"vc-toggle"));let r=l.default.one(".vc-fold-inner",i);return setTimeout(function(){if(0==r.children.length&&e){let t=n.getObjAllKeys(e);for(let i=0;i({done:e.length===t,value:e.length===t?void 0:e[t++]})}}}})?n.apply(t,l):n)||(e.exports=i)},function(e,t,o){var n,l,i;l=[t,o(9),o(0),o(1),o(11),o(14),o(15),o(16),o(17),o(18),o(19),o(25),o(27),o(31),o(38)],void 0===(i="function"==typeof(n=function(o,n,l,i,r,a,s,c,d,u,v,f,p,m,h){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=g(n),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(l),i=g(i),a=g(a),s=g(s),c=g(c),d=g(d),u=g(u),v=g(v),f=g(f),p=g(p),m=g(m),h=g(h);const b="#__vconsole";var _=class{constructor(e){if(i.default.one(b))return void console.debug("vConsole is already exists.");let t=this;if(this.version=n.default.version,this.$dom=null,this.isInited=!1,this.option={defaultPlugins:["system","network","element","storage"]},this.activedTab="",this.tabList=[],this.pluginList={},this.switchPos={x:10,y:10,startX:0,startY:0,endX:0,endY:0},this.tool=l,this.$=i.default,l.isObject(e))for(let t in e)this.option[t]=e[t];this._addBuiltInPlugins();let o=function(){t.isInited||(t._render(),t._mockTap(),t._bindEvent(),t._autoRun())};if(void 0!==document)"complete"==document.readyState?o():i.default.bind(window,"load",o);else{let e,t=function(){document&&"complete"==document.readyState?(e&&clearTimeout(e),o()):e=setTimeout(t,1)};e=setTimeout(t,1)}}_addBuiltInPlugins(){this.addPlugin(new v.default("default","Log"));const e=this.option.defaultPlugins,t={system:{proto:f.default,name:"System"},network:{proto:p.default,name:"Network"},element:{proto:m.default,name:"Element"},storage:{proto:h.default,name:"Storage"}};if(e&&l.isArray(e))for(let o=0;odocument.documentElement.offsetWidth&&(t=document.documentElement.offsetWidth-e.offsetWidth),o+e.offsetHeight>document.documentElement.offsetHeight&&(o=document.documentElement.offsetHeight-e.offsetHeight),t<0&&(t=0),o<0&&(o=0),this.switchPos.x=t,this.switchPos.y=o,i.default.one(".vc-switch").style.right=t+"px",i.default.one(".vc-switch").style.bottom=o+"px");let n=window.devicePixelRatio||1,r=document.querySelector('[name="viewport"]');if(r&&r.content){let e=r.content.match(/initial\-scale\=\d+(\.\d+)?/),t=e?parseFloat(e[0].split("=")[1]):1;t<1&&(this.$dom.style.fontSize=13*n+"px")}i.default.one(".vc-mask",this.$dom).style.display="none"}_mockTap(){let e,t,o,n=!1,l=null;this.$dom.addEventListener("touchstart",function(n){if(void 0===e){let i=n.targetTouches[0];t=i.pageX,o=i.pageY,e=n.timeStamp,l=n.target.nodeType===Node.TEXT_NODE?n.target.parentNode:n.target}},!1),this.$dom.addEventListener("touchmove",function(e){let l=e.changedTouches[0];(Math.abs(l.pageX-t)>10||Math.abs(l.pageY-o)>10)&&(n=!0)}),this.$dom.addEventListener("touchend",function(t){if(!1===n&&t.timeStamp-e<700&&null!=l){let e=l.tagName.toLowerCase(),o=!1;switch(e){case"textarea":o=!0;break;case"input":switch(l.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":o=!1;break;default:o=!l.disabled&&!l.readOnly}}o?l.focus():t.preventDefault();let n=t.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,i.initEvent("click",!0,!0),l.dispatchEvent(i)}e=void 0,n=!1,l=null},!1)}_bindEvent(){let e=this,t=i.default.one(".vc-switch",e.$dom);i.default.bind(t,"touchstart",function(t){e.switchPos.startX=t.touches[0].pageX,e.switchPos.startY=t.touches[0].pageY}),i.default.bind(t,"touchend",function(t){e.switchPos.x=e.switchPos.endX,e.switchPos.y=e.switchPos.endY,e.switchPos.startX=0,e.switchPos.startY=0,e.switchPos.endX=0,e.switchPos.endY=0,l.setStorage("switch_x",e.switchPos.x),l.setStorage("switch_y",e.switchPos.y)}),i.default.bind(t,"touchmove",function(o){if(o.touches.length>0){let n=o.touches[0].pageX-e.switchPos.startX,l=o.touches[0].pageY-e.switchPos.startY,i=e.switchPos.x-n,r=e.switchPos.y-l;i+t.offsetWidth>document.documentElement.offsetWidth&&(i=document.documentElement.offsetWidth-t.offsetWidth),r+t.offsetHeight>document.documentElement.offsetHeight&&(r=document.documentElement.offsetHeight-t.offsetHeight),i<0&&(i=0),r<0&&(r=0),t.style.right=i+"px",t.style.bottom=r+"px",e.switchPos.endX=i,e.switchPos.endY=r,o.preventDefault()}}),i.default.bind(i.default.one(".vc-switch",e.$dom),"click",function(){e.show()}),i.default.bind(i.default.one(".vc-hide",e.$dom),"click",function(){e.hide()}),i.default.bind(i.default.one(".vc-mask",e.$dom),"click",function(t){if(t.target!=i.default.one(".vc-mask"))return!1;e.hide()}),i.default.delegate(i.default.one(".vc-tabbar",e.$dom),"click",".vc-tab",function(t){let o=this.dataset.tab;o!=e.activedTab&&e.showTab(o)}),i.default.bind(i.default.one(".vc-panel",e.$dom),"transitionend webkitTransitionEnd oTransitionEnd otransitionend",function(t){if(t.target!=i.default.one(".vc-panel"))return!1;i.default.hasClass(e.$dom,"vc-toggle")||(t.target.style.display="none")});let o=i.default.one(".vc-content",e.$dom),n=!1;i.default.bind(o,"touchstart",function(e){let t=o.scrollTop,l=o.scrollHeight,r=t+o.offsetHeight;0===t?(o.scrollTop=1,0===o.scrollTop&&(i.default.hasClass(e.target,"vc-cmd-input")||(n=!0))):r===l&&(o.scrollTop=t-1,o.scrollTop===t&&(i.default.hasClass(e.target,"vc-cmd-input")||(n=!0)))}),i.default.bind(o,"touchmove",function(e){n&&e.preventDefault()}),i.default.bind(o,"touchend",function(e){n=!1})}_autoRun(){this.isInited=!0;for(let e in this.pluginList)this._initPlugin(this.pluginList[e]);this.tabList.length>0&&this.showTab(this.tabList[0]),this.triggerEvent("ready")}triggerEvent(e,t){e="on"+e.charAt(0).toUpperCase()+e.slice(1),l.isFunction(this.option[e])&&this.option[e].apply(this,t)}_initPlugin(e){let t=this;e.vConsole=this,e.trigger("init"),e.trigger("renderTab",function(o){t.tabList.push(e.id);let n=i.default.render(s.default,{id:e.id,name:e.name});i.default.one(".vc-tabbar",t.$dom).insertAdjacentElement("beforeend",n);let r=i.default.render(c.default,{id:e.id});o&&(l.isString(o)?r.innerHTML+=o:l.isFunction(o.appendTo)?o.appendTo(r):l.isElement(o)&&r.insertAdjacentElement("beforeend",o)),i.default.one(".vc-content",t.$dom).insertAdjacentElement("beforeend",r)}),e.trigger("addTopBar",function(o){if(!o)return;let n=i.default.one(".vc-topbar",t.$dom);for(let t=0;t-1&&this.tabList.splice(o,1);try{delete this.pluginList[e]}catch(t){this.pluginList[e]=void 0}return this.activedTab==e&&this.tabList.length>0&&this.showTab(this.tabList[0]),!0}show(){if(!this.isInited)return;let e=this,t=i.default.one(".vc-panel",this.$dom);t.style.display="block",setTimeout(function(){i.default.addClass(e.$dom,"vc-toggle"),e._triggerPluginsEvent("showConsole");let t=i.default.one(".vc-mask",e.$dom);t.style.display="block"},10)}hide(){if(!this.isInited)return;i.default.removeClass(this.$dom,"vc-toggle"),this._triggerPluginsEvent("hideConsole");let e=i.default.one(".vc-mask",this.$dom),t=i.default.one(".vc-panel",this.$dom);i.default.bind(e,"transitionend",function(o){e.style.display="none",t.style.display="none"})}showSwitch(){if(!this.isInited)return;let e=i.default.one(".vc-switch",this.$dom);e.style.display="block"}hideSwitch(){if(!this.isInited)return;let e=i.default.one(".vc-switch",this.$dom);e.style.display="none"}showTab(e){if(!this.isInited)return;let t=i.default.one("#__vc_log_"+e);i.default.removeClass(i.default.all(".vc-tab",this.$dom),"vc-actived"),i.default.addClass(i.default.one("#__vc_tab_"+e),"vc-actived"),i.default.removeClass(i.default.all(".vc-logbox",this.$dom),"vc-actived"),i.default.addClass(t,"vc-actived");let o=i.default.all(".vc-topbar-"+e,this.$dom);i.default.removeClass(i.default.all(".vc-toptab",this.$dom),"vc-toggle"),i.default.addClass(o,"vc-toggle"),o.length>0?i.default.addClass(i.default.one(".vc-content",this.$dom),"vc-has-topbar"):i.default.removeClass(i.default.one(".vc-content",this.$dom),"vc-has-topbar"),i.default.removeClass(i.default.all(".vc-tool",this.$dom),"vc-toggle"),i.default.addClass(i.default.all(".vc-tool-"+e,this.$dom),"vc-toggle"),this.activedTab&&this._triggerPluginEvent(this.activedTab,"hide"),this.activedTab=e,this._triggerPluginEvent(this.activedTab,"show")}setOption(e,t){if(l.isString(e))this.option[e]=t,this._triggerPluginsEvent("updateOption");else if(l.isObject(e)){for(let t in e)this.option[t]=e[t];this._triggerPluginsEvent("updateOption")}else console.debug("The first parameter of vConsole.setOption() must be a string or an object.")}destroy(){if(!this.isInited)return;let e=Object.keys(this.pluginList);for(let t=e.length-1;t>=0;t--)this.removePlugin(e[t]);this.$dom.parentNode.removeChild(this.$dom)}};o.default=_,e.exports=t.default})?n.apply(t,l):n)||(e.exports=i)},function(e){e.exports={name:"vconsole",version:"3.2.1",description:"A lightweight, extendable front-end developer tool for mobile web page.",homepage:"https://github.com/Tencent/vConsole",main:"dist/vconsole.min.js",scripts:{test:"mocha",dist:"webpack"},keywords:["console","debug","mobile"],repository:{type:"git",url:"git+https://github.com/Tencent/vConsole.git"},dependencies:{},devDependencies:{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","@babel/plugin-proposal-class-properties":"^7.2.3","@babel/plugin-proposal-export-namespace-from":"^7.2.0","@babel/plugin-proposal-object-rest-spread":"^7.2.0","babel-loader":"^8.0.4","babel-plugin-add-module-exports":"^1.0.0",chai:"^4.2.0","css-loader":"^2.1.0","html-loader":"^0.5.5",jsdom:"^13.1.0","json-loader":"^0.5.7",less:"^3.9.0","less-loader":"^4.1.0",mocha:"^5.2.0","style-loader":"^0.23.1",webpack:"^4.28.4","webpack-cli":"^3.2.1"},author:"Tencent",license:"MIT"}},function(e,t,o){var n,l,i;l=[t],void 0===(i="function"==typeof(n=function(o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(e,t,o){let n=/\{\{([^\}]+)\}\}/g,l="",i="",r=0,a=[],s=function(e,t){""!==e&&(t?e.match(/^ ?else/g)?l+="} "+e+" {\n":e.match(/\/(if|for|switch)/g)?l+="}\n":e.match(/^ ?if|for|switch/g)?l+=e+" {\n":e.match(/^ ?(break|continue) ?$/g)?l+=e+";\n":e.match(/^ ?(case|default)/g)?l+=e+":\n":l+="arr.push("+e+");\n":l+='arr.push("'+e.replace(/"/g,'\\"')+'");\n')};for(window.__mito_data=t,window.__mito_code="",window.__mito_result="",e=(e=e.replace(/(\{\{ ?switch(.+?)\}\})[\r\n\t ]+\{\{/g,"$1{{")).replace(/^[\r\n]/,"").replace(/\n/g,"\\\n").replace(/\r/g,"\\\r"),i="(function(){\n",l="var arr = [];\n";a=n.exec(e);)s(e.slice(r,a.index),!1),s(a[1],!0),r=a.index+a[0].length;s(e.substr(r,e.length-r),!1),i+=l="with (__mito_data) {\n"+(l+='__mito_result = arr.join("");')+"\n}",i+="})();";let c=document.getElementsByTagName("script"),d="";c.length>0&&(d=c[0].getAttribute("nonce")||"");let u=document.createElement("SCRIPT");u.innerHTML=i,u.setAttribute("nonce",d),document.documentElement.appendChild(u);let v=__mito_result;if(document.documentElement.removeChild(u),!o){let e=document.createElement("DIV");e.innerHTML=v,v=e.children[0]}return v},e.exports=t.default})?n.apply(t,l):n)||(e.exports=i)},function(e,t,o){var n=o(12);"string"==typeof n&&(n=[[e.i,n,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};o(4)(n,l);n.locals&&(e.exports=n.locals)},function(e,t,o){(e.exports=o(3)(!1)).push([e.i,'#__vconsole {\n color: #000;\n font-size: 13px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n /* global */\n /* compoment */\n}\n#__vconsole .vc-max-height {\n max-height: 19.23076923em;\n}\n#__vconsole .vc-max-height-line {\n max-height: 3.38461538em;\n}\n#__vconsole .vc-min-height {\n min-height: 3.07692308em;\n}\n#__vconsole dd,\n#__vconsole dl,\n#__vconsole pre {\n margin: 0;\n}\n#__vconsole .vc-switch {\n display: block;\n position: fixed;\n right: 0.76923077em;\n bottom: 0.76923077em;\n color: #FFF;\n background-color: #04BE02;\n line-height: 1;\n font-size: 1.07692308em;\n padding: 0.61538462em 1.23076923em;\n z-index: 10000;\n border-radius: 0.30769231em;\n box-shadow: 0 0 0.61538462em rgba(0, 0, 0, 0.4);\n}\n#__vconsole .vc-mask {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0);\n z-index: 10001;\n transition: background 0.3s;\n -webkit-tap-highlight-color: transparent;\n overflow-y: scroll;\n}\n#__vconsole .vc-panel {\n display: none;\n position: fixed;\n min-height: 85%;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 10002;\n background-color: #EFEFF4;\n -webkit-transition: -webkit-transform 0.3s;\n transition: -webkit-transform 0.3s;\n transition: transform 0.3s;\n transition: transform 0.3s, -webkit-transform 0.3s;\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n#__vconsole .vc-tabbar {\n border-bottom: 1px solid #D9D9D9;\n overflow-x: auto;\n height: 3em;\n width: auto;\n white-space: nowrap;\n}\n#__vconsole .vc-tabbar .vc-tab {\n display: inline-block;\n line-height: 3em;\n padding: 0 1.15384615em;\n border-right: 1px solid #D9D9D9;\n text-decoration: none;\n color: #000;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-tabbar .vc-tab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-tabbar .vc-tab.vc-actived {\n background-color: #FFF;\n}\n#__vconsole .vc-content {\n background-color: #FFF;\n overflow-x: hidden;\n overflow-y: auto;\n position: absolute;\n top: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 3.07692308em;\n -webkit-overflow-scrolling: touch;\n margin-bottom: constant(safe-area-inset-bottom);\n margin-bottom: env(safe-area-inset-bottom);\n}\n#__vconsole .vc-content.vc-has-topbar {\n top: 5.46153846em;\n}\n#__vconsole .vc-topbar {\n background-color: #FBF9FE;\n display: flex;\n display: -webkit-box;\n flex-direction: row;\n flex-wrap: wrap;\n -webkit-box-direction: row;\n -webkit-flex-wrap: wrap;\n width: 100%;\n}\n#__vconsole .vc-topbar .vc-toptab {\n display: none;\n flex: 1;\n -webkit-box-flex: 1;\n line-height: 2.30769231em;\n padding: 0 1.15384615em;\n border-bottom: 1px solid #D9D9D9;\n text-decoration: none;\n text-align: center;\n color: #000;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-topbar .vc-toptab.vc-toggle {\n display: block;\n}\n#__vconsole .vc-topbar .vc-toptab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-topbar .vc-toptab.vc-actived {\n border-bottom: 1px solid #3e82f7;\n}\n#__vconsole .vc-logbox {\n display: none;\n position: relative;\n min-height: 100%;\n}\n#__vconsole .vc-logbox i {\n font-style: normal;\n}\n#__vconsole .vc-logbox .vc-log {\n padding-bottom: 3em;\n -webkit-tap-highlight-color: transparent;\n}\n#__vconsole .vc-logbox .vc-log:empty:before {\n content: "Empty";\n color: #999;\n position: absolute;\n top: 45%;\n left: 0;\n right: 0;\n bottom: 0;\n font-size: 1.15384615em;\n text-align: center;\n}\n#__vconsole .vc-logbox .vc-item {\n margin: 0;\n padding: 0.46153846em 0.61538462em;\n overflow: hidden;\n line-height: 1.3;\n border-bottom: 1px solid #EEE;\n word-break: break-word;\n}\n#__vconsole .vc-logbox .vc-item-info {\n color: #6A5ACD;\n}\n#__vconsole .vc-logbox .vc-item-debug {\n color: #DAA520;\n}\n#__vconsole .vc-logbox .vc-item-warn {\n color: #FFA500;\n border-color: #FFB930;\n background-color: #FFFACD;\n}\n#__vconsole .vc-logbox .vc-item-error {\n color: #DC143C;\n border-color: #F4A0AB;\n background-color: #FFE4E1;\n}\n#__vconsole .vc-logbox .vc-log.vc-log-partly .vc-item {\n display: none;\n}\n#__vconsole .vc-logbox .vc-log.vc-log-partly-log .vc-item-log,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-info .vc-item-info,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-warn .vc-item-warn,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-error .vc-item-error {\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-content {\n margin-right: 4.61538462em;\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-meta {\n color: #888;\n float: right;\n width: 4.61538462em;\n text-align: right;\n}\n#__vconsole .vc-logbox .vc-item.vc-item-nometa .vc-item-content {\n margin-right: 0;\n}\n#__vconsole .vc-logbox .vc-item.vc-item-nometa .vc-item-meta {\n display: none;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code {\n display: block;\n white-space: pre-wrap;\n overflow: auto;\n position: relative;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-input,\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output {\n padding-left: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-input:before,\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output:before {\n content: "›";\n position: absolute;\n top: -0.23076923em;\n left: 0;\n font-size: 1.23076923em;\n color: #6A5ACD;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output:before {\n content: "‹";\n}\n#__vconsole .vc-logbox .vc-item .vc-fold {\n display: block;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer {\n display: block;\n font-style: italic;\n padding-left: 0.76923077em;\n position: relative;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer:active {\n background-color: #E6E6E6;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer:before {\n content: "";\n position: absolute;\n top: 0.30769231em;\n left: 0.15384615em;\n width: 0;\n height: 0;\n border: transparent solid 0.30769231em;\n border-left-color: #000;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer.vc-toggle:before {\n top: 0.46153846em;\n left: 0;\n border-top-color: #000;\n border-left-color: transparent;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner {\n display: none;\n margin-left: 0.76923077em;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner.vc-toggle {\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner .vc-code-key {\n margin-left: 0.76923077em;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer .vc-code-key {\n margin-left: 0;\n}\n#__vconsole .vc-logbox .vc-code-key {\n color: #905;\n}\n#__vconsole .vc-logbox .vc-code-private-key {\n color: #D391B5;\n}\n#__vconsole .vc-logbox .vc-code-function {\n color: #905;\n font-style: italic;\n}\n#__vconsole .vc-logbox .vc-code-number,\n#__vconsole .vc-logbox .vc-code-boolean {\n color: #0086B3;\n}\n#__vconsole .vc-logbox .vc-code-string {\n color: #183691;\n}\n#__vconsole .vc-logbox .vc-code-null,\n#__vconsole .vc-logbox .vc-code-undefined {\n color: #666;\n}\n#__vconsole .vc-logbox .vc-cmd {\n position: absolute;\n height: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 0;\n border-top: 1px solid #D9D9D9;\n display: block!important;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input-wrap {\n display: block;\n height: 2.15384615em;\n margin-right: 3.07692308em;\n padding: 0.46153846em 0.61538462em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input {\n width: 100%;\n border: none;\n resize: none;\n outline: none;\n padding: 0;\n font-size: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input::-webkit-input-placeholder {\n line-height: 2.15384615em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-btn {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 3.07692308em;\n border: none;\n background-color: #EFEFF4;\n outline: none;\n -webkit-touch-callout: none;\n font-size: 1em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-btn:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-prompted {\n position: fixed;\n width: 100%;\n background-color: #FBF9FE;\n border: 1px solid #D9D9D9;\n overflow-x: scroll;\n display: none;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-prompted li {\n list-style: none;\n line-height: 30px;\n padding: 0 0.46153846em;\n border-bottom: 1px solid #D9D9D9;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-preview {\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-preview:active {\n background-color: #E6E6E6;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-detail {\n display: none;\n padding: 0 0 0.76923077em 1.53846154em;\n border-bottom: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-group-detail {\n display: block;\n background-color: #FBF9FE;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-table-row {\n background-color: #FFF;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-group-preview {\n background-color: #FBF9FE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row {\n display: flex;\n display: -webkit-flex;\n flex-direction: row;\n flex-wrap: wrap;\n -webkit-box-direction: row;\n -webkit-flex-wrap: wrap;\n overflow: hidden;\n border-bottom: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row.vc-left-border {\n border-left: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col {\n flex: 1;\n -webkit-box-flex: 1;\n padding: 0.23076923em 0.30769231em;\n border-left: 1px solid #EEE;\n overflow: auto;\n white-space: pre-wrap;\n word-break: break-word;\n /*white-space: nowrap;\n text-overflow: ellipsis;*/\n -webkit-overflow-scrolling: touch;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col:first-child {\n border: none;\n}\n#__vconsole .vc-logbox .vc-table .vc-small .vc-table-col {\n padding: 0 0.30769231em;\n font-size: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-2 {\n flex: 2;\n -webkit-box-flex: 2;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-3 {\n flex: 3;\n -webkit-box-flex: 3;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-4 {\n flex: 4;\n -webkit-box-flex: 4;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-5 {\n flex: 5;\n -webkit-box-flex: 5;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-6 {\n flex: 6;\n -webkit-box-flex: 6;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row-error {\n border-color: #F4A0AB;\n background-color: #FFE4E1;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row-error .vc-table-col {\n color: #DC143C;\n border-color: #F4A0AB;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-title {\n font-weight: bold;\n}\n#__vconsole .vc-logbox.vc-actived {\n display: block;\n}\n#__vconsole .vc-toolbar {\n border-top: 1px solid #D9D9D9;\n line-height: 3em;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n display: -webkit-box;\n flex-direction: row;\n -webkit-box-direction: row;\n}\n#__vconsole .vc-toolbar .vc-tool {\n display: none;\n text-decoration: none;\n color: #000;\n width: 50%;\n flex: 1;\n -webkit-box-flex: 1;\n text-align: center;\n position: relative;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-toolbar .vc-tool.vc-toggle,\n#__vconsole .vc-toolbar .vc-tool.vc-global-tool {\n display: block;\n}\n#__vconsole .vc-toolbar .vc-tool:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-toolbar .vc-tool:after {\n content: " ";\n position: absolute;\n top: 0.53846154em;\n bottom: 0.53846154em;\n right: 0;\n border-left: 1px solid #D9D9D9;\n}\n#__vconsole .vc-toolbar .vc-tool-last:after {\n border: none;\n}\n@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {\n #__vconsole .vc-toolbar,\n #__vconsole .vc-switch {\n bottom: constant(safe-area-inset-bottom);\n bottom: env(safe-area-inset-bottom);\n }\n}\n#__vconsole.vc-toggle .vc-switch {\n display: none;\n}\n#__vconsole.vc-toggle .vc-mask {\n background: rgba(0, 0, 0, 0.6);\n display: block;\n}\n#__vconsole.vc-toggle .vc-panel {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var o=t.protocol+"//"+t.host,n=o+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var l,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(l=0===i.indexOf("//")?i:0===i.indexOf("/")?o+i:n+i.replace(/^\.\//,""),"url("+JSON.stringify(l)+")")})}},function(e,t){e.exports='
    \n
    vConsole
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n Hide\n
    \n
    \n
    '},function(e,t){e.exports='{{name}}'},function(e,t){e.exports='
    \n \n
    '},function(e,t){e.exports='{{name}}'},function(e,t){e.exports='{{name}}'},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function(_exports,_query,tool,_log,_tabbox_default,_item_code){"use strict";function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,_query=_interopRequireDefault(_query),tool=_interopRequireWildcard(tool),_log=_interopRequireDefault(_log),_tabbox_default=_interopRequireDefault(_tabbox_default),_item_code=_interopRequireDefault(_item_code);class VConsoleDefaultTab extends _log.default{constructor(...e){super(...e),this.tplTabbox=_tabbox_default.default}onReady(){const that=this;super.onReady(),window.winKeys=Object.getOwnPropertyNames(window).sort(),window.keyTypes={};for(let e=0;e{o=o||ID_REGEX;const n=[];for(let l=t-1;l>=0&&o.test(e[l]);l--)n.push(e[l]);if(0==n.length){o=/\./;for(let l=t-1;l>=0&&o.test(e[l]);l--)n.push(e[l])}if(0===n.length){const t=e.match(/[\(\)\[\]\{\}]/gi)||[];return t[t.length-1]}return n.reverse().join("")};_query.default.bind(_query.default.one(".vc-cmd-input"),"keyup",function(e){const isDeleteKeyCode=8===e.keyCode||46===e.keyCode,$prompted=_query.default.one(".vc-cmd-prompted");$prompted.style.display="none",$prompted.innerHTML="";const tempValue=this.value,value=retrievePrecedingIdentifier(this.value,this.value.length);if(value&&value.length>0){if(/\(/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+=")");if(/\[/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+="]");if(/\{/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+="}");if("."===value){const key=retrievePrecedingIdentifier(tempValue,tempValue.length-1);if(!cacheObj[key])try{cacheObj[key]=Object.getOwnPropertyNames(eval("("+key+")")).sort()}catch(e){}try{for(let e=0;e=0){const t=document.createElement("li");t.innerHTML=winKeys[e],t.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=this.innerHTML,"function"==keyTypes[this.innerHTML]&&(_query.default.one(".vc-cmd-input").value+="()"),$prompted.style.display="none"},$prompted.appendChild(t)}}else{const e=value.split(".");if(cacheObj[e[0]]){cacheObj[e[0]].sort();for(let t=0;t=0&&(o.innerHTML=n,o.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=tempValue+this.innerHTML,$prompted.style.display="none"},$prompted.appendChild(o))}}}if($prompted.children.length>0){const e=Math.min(200,31*$prompted.children.length);$prompted.style.display="block",$prompted.style.height=e+"px",$prompted.style.marginTop=-e+"px"}}else $prompted.style.display="none"}),_query.default.bind(_query.default.one(".vc-cmd",this.$tabbox),"submit",function(e){e.preventDefault();let t=_query.default.one(".vc-cmd-input",e.target),o=t.value;t.value="",""!==o&&that.evalCommand(o);const n=_query.default.one(".vc-cmd-prompted");n&&(n.style.display="none")});let code="";code+="if (!!window) {",code+="window.__vConsole_cmd_result = undefined;",code+="window.__vConsole_cmd_error = false;",code+="}";let scriptList=document.getElementsByTagName("script"),nonce="";scriptList.length>0&&(nonce=scriptList[0].getAttribute("nonce")||"");let script=document.createElement("SCRIPT");script.innerHTML=code,script.setAttribute("nonce",nonce),document.documentElement.appendChild(script),document.documentElement.removeChild(script)}mockConsole(){super.mockConsole();let e=this;tool.isFunction(window.onerror)&&(this.windowOnError=window.onerror),window.onerror=function(t,o,n,l,i){let r=t;o&&(r+="\n"+o.replace(location.origin,"")),(n||l)&&(r+=":"+n+":"+l);let a=!!i&&!!i.stack&&i.stack.toString()||"";e.printLog({logType:"error",logs:[r,a],noOrigin:!0}),tool.isFunction(e.windowOnError)&&e.windowOnError.call(window,t,o,n,l,i)}}evalCommand(e){this.printLog({logType:"log",content:_query.default.render(_item_code.default,{content:e,type:"input"}),noMeta:!0,style:""});let t,o=void 0;try{o=eval.call(window,"("+e+")")}catch(t){try{o=eval.call(window,e)}catch(e){}}tool.isArray(o)||tool.isObject(o)?t=this.getFoldedLine(o):(tool.isNull(o)?o="null":tool.isUndefined(o)?o="undefined":tool.isFunction(o)?o="function()":tool.isString(o)&&(o='"'+o+'"'),t=_query.default.render(_item_code.default,{content:o,type:"output"})),this.printLog({logType:"log",content:t,noMeta:!0,style:""}),window.winKeys=Object.getOwnPropertyNames(window).sort()}}var _default=VConsoleDefaultTab;_exports.default=_default,module.exports=exports.default},__WEBPACK_AMD_DEFINE_ARRAY__=[exports,__webpack_require__(1),__webpack_require__(0),__webpack_require__(5),__webpack_require__(23),__webpack_require__(24)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,t){e.exports='
    \n\t{{if (!noMeta)}}{{meta}}{{/if}}\n\t
    \n
    '},function(e,t){e.exports='
    \n {{if (lineType == \'obj\')}}\n {{outer}}\n
    \n {{else if (lineType == \'value\')}}\n {{value}}\n {{else if (lineType == \'kv\')}}\n {{key}}: {{value}}\n {{/if}}\n
    '},function(e,t){e.exports='\n {{key}}: {{value}}\n'},function(e,t){e.exports='
    \n
    \n
    \n \n
      \n
      \n \n
      \n
      \n
      '},function(e,t){e.exports='
      {{content}}
      '},function(e,t,o){var n,l,i;l=[t,o(0),o(5),o(26)],void 0===(i="function"==typeof(n=function(o,n,l,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(n),l=r(l),i=r(i);var a=class extends l.default{constructor(...e){super(...e),this.tplTabbox=i.default,this.allowUnformattedLog=!1}onInit(){super.onInit(),this.printSystemInfo()}printSystemInfo(){let e=navigator.userAgent,t="",o=e.match(/(ipod).*\s([\d_]+)/i),n=e.match(/(ipad).*\s([\d_]+)/i),l=e.match(/(iphone)\sos\s([\d_]+)/i),i=e.match(/(android)\s([\d\.]+)/i);t="Unknown",i?t="Android "+i[2]:l?t="iPhone, iOS "+l[2].replace(/_/g,"."):n?t="iPad, iOS "+n[2].replace(/_/g,"."):o&&(t="iPod, iOS "+o[2].replace(/_/g,"."));let r=t,a=e.match(/MicroMessenger\/([\d\.]+)/i);t="Unknown",a&&a[1]?(t=a[1],r+=", WeChat "+t,console.info("[system]","System:",r)):console.info("[system]","System:",r),t="Unknown",t="https:"==location.protocol?"HTTPS":"http:"==location.protocol?"HTTP":location.protocol.replace(":",""),r=t;let s=e.toLowerCase().match(/ nettype\/([^ ]+)/g);t="Unknown",s&&s[0]?(s=s[0].split("/"),t=s[1],r+=", "+t,console.info("[system]","Network:",r)):console.info("[system]","Protocol:",r),console.info("[system]","UA:",e),setTimeout(function(){let e=window.performance||window.msPerformance||window.webkitPerformance;if(e&&e.timing){let t=e.timing;t.navigationStart&&console.info("[system]","navigationStart:",t.navigationStart),t.navigationStart&&t.domainLookupStart&&console.info("[system]","navigation:",t.domainLookupStart-t.navigationStart+"ms"),t.domainLookupEnd&&t.domainLookupStart&&console.info("[system]","dns:",t.domainLookupEnd-t.domainLookupStart+"ms"),t.connectEnd&&t.connectStart&&(t.connectEnd&&t.secureConnectionStart?console.info("[system]","tcp (ssl):",t.connectEnd-t.connectStart+"ms ("+(t.connectEnd-t.secureConnectionStart)+"ms)"):console.info("[system]","tcp:",t.connectEnd-t.connectStart+"ms")),t.responseStart&&t.requestStart&&console.info("[system]","request:",t.responseStart-t.requestStart+"ms"),t.responseEnd&&t.responseStart&&console.info("[system]","response:",t.responseEnd-t.responseStart+"ms"),t.domComplete&&t.domLoading&&(t.domContentLoadedEventStart&&t.domLoading?console.info("[system]","domComplete (domLoaded):",t.domComplete-t.domLoading+"ms ("+(t.domContentLoadedEventStart-t.domLoading)+"ms)"):console.info("[system]","domComplete:",t.domComplete-t.domLoading+"ms")),t.loadEventEnd&&t.loadEventStart&&console.info("[system]","loadEvent:",t.loadEventEnd-t.loadEventStart+"ms"),t.navigationStart&&t.loadEventEnd&&console.info("[system]","total (DOM):",t.loadEventEnd-t.navigationStart+"ms ("+(t.domComplete-t.navigationStart)+"ms)")}},0)}};o.default=a,e.exports=t.default})?n.apply(t,l):n)||(e.exports=i)},function(e,t){e.exports='
      \n
      \n
      '},function(e,t,o){var n,l,i;l=[t,o(1),o(0),o(2),o(28),o(29),o(30)],void 0===(i="function"==typeof(n=function(o,n,l,i,r,a,s){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=c(n),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(l),i=c(i),r=c(r),a=c(a),s=c(s);var d=class extends i.default{constructor(...e){super(...e),this.$tabbox=n.default.render(r.default,{}),this.$header=null,this.reqList={},this.domList={},this.isReady=!1,this.isShow=!1,this.isInBottom=!0,this._open=void 0,this._send=void 0,this.mockAjax()}onRenderTab(e){e(this.$tabbox)}onAddTool(e){let t=this,o=[{name:"Clear",global:!1,onClick:function(e){t.clearLog()}}];e(o)}onReady(){var e=this;e.isReady=!0,this.renderHeader(),n.default.delegate(n.default.one(".vc-log",this.$tabbox),"click",".vc-group-preview",function(t){let o=this.dataset.reqid,l=this.parentNode;n.default.hasClass(l,"vc-actived")?(n.default.removeClass(l,"vc-actived"),e.updateRequest(o,{actived:!1})):(n.default.addClass(l,"vc-actived"),e.updateRequest(o,{actived:!0})),t.preventDefault()});let t=n.default.one(".vc-content");n.default.bind(t,"scroll",function(o){e.isShow&&(t.scrollTop+t.offsetHeight>=t.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)});for(let t in e.reqList)e.updateRequest(t,{})}onRemove(){window.XMLHttpRequest&&(window.XMLHttpRequest.prototype.open=this._open,window.XMLHttpRequest.prototype.send=this._send,this._open=void 0,this._send=void 0)}onShow(){this.isShow=!0,1==this.isInBottom&&this.scrollToBottom()}onHide(){this.isShow=!1}onShowConsole(){1==this.isInBottom&&this.scrollToBottom()}scrollToBottom(){let e=n.default.one(".vc-content");e.scrollTop=e.scrollHeight-e.offsetHeight}clearLog(){this.reqList={};for(let e in this.domList)this.domList[e].remove(),this.domList[e]=void 0;this.domList={},this.renderHeader()}renderHeader(){let e=Object.keys(this.reqList).length,t=n.default.render(a.default,{count:e}),o=n.default.one(".vc-log",this.$tabbox);this.$header?this.$header.parentNode.replaceChild(t,this.$header):o.parentNode.insertBefore(t,o),this.$header=t}updateRequest(e,t){let o=Object.keys(this.reqList).length,i=this.reqList[e]||{};for(let e in t)i[e]=t[e];if(this.reqList[e]=i,!this.isReady)return;let r={id:e,url:i.url,status:i.status,method:i.method||"-",costTime:i.costTime>0?i.costTime+"ms":"-",header:i.header||null,getData:i.getData||null,postData:i.postData||null,response:null,actived:!!i.actived};switch(i.responseType){case"":case"text":if(l.isString(i.response))try{r.response=JSON.parse(i.response),r.response=JSON.stringify(r.response,null,1),r.response=l.htmlEncode(r.response)}catch(e){r.response=l.htmlEncode(i.response)}else void 0!==i.response&&(r.response=Object.prototype.toString.call(i.response));break;case"json":void 0!==i.response&&(r.response=JSON.stringify(i.response,null,1),r.response=l.htmlEncode(r.response));break;case"blob":case"document":case"arraybuffer":default:void 0!==i.response&&(r.response=Object.prototype.toString.call(i.response))}0==i.readyState||1==i.readyState?r.status="Pending":2==i.readyState||3==i.readyState?r.status="Loading":4==i.readyState||(r.status="Unknown");let a=n.default.render(s.default,r),c=this.domList[e];i.status>=400&&n.default.addClass(n.default.one(".vc-group-preview",a),"vc-table-row-error"),c?c.parentNode.replaceChild(a,c):n.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",a),this.domList[e]=a;let d=Object.keys(this.reqList).length;d!=o&&this.renderHeader(),this.isInBottom&&this.scrollToBottom()}mockAjax(){let e=window.XMLHttpRequest;if(!e)return;let t=this,o=window.XMLHttpRequest.prototype.open,n=window.XMLHttpRequest.prototype.send;t._open=o,t._send=n,window.XMLHttpRequest.prototype.open=function(){let e=this,n=[].slice.call(arguments),l=n[0],i=n[1],r=t.getUniqueID(),a=null;e._requestID=r,e._method=l,e._url=i;let s=e.onreadystatechange||function(){},c=function(){let o=t.reqList[r]||{};if(o.readyState=e.readyState,o.status=0,e.readyState>1&&(o.status=e.status),o.responseType=e.responseType,0==e.readyState)o.startTime||(o.startTime=+new Date);else if(1==e.readyState)o.startTime||(o.startTime=+new Date);else if(2==e.readyState){o.header={};let t=e.getAllResponseHeaders()||"",n=t.split("\n");for(let e=0;e0){r.getData={},a=(a=a.join("?")).split("&");for(let e of a)e=e.split("="),r.getData[e[0]]=e[1]}if("POST"==r.method)if(l.isString(i)){let e=i.split("&");r.postData={};for(let t of e)t=t.split("="),r.postData[t[0]]=t[1]}else l.isPlainObject(i)&&(r.postData=i);return e._noVConsole||t.updateRequest(e._requestID,r),n.apply(e,o)}}getUniqueID(){let e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0,o="x"==e?t:3&t|8;return o.toString(16)});return e}};o.default=d,e.exports=t.default})?n.apply(t,l):n)||(e.exports=i)},function(e,t){e.exports='
      \n
      \n
      '},function(e,t){e.exports='
      \n
      Name {{if (count > 0)}}({{count}}){{/if}}
      \n
      Method
      \n
      Status
      \n
      Time
      \n
      '},function(e,t){e.exports='
      \n
      \n
      {{url}}
      \n
      {{method}}
      \n
      {{status}}
      \n
      {{costTime}}
      \n
      \n
      \n {{if (header !== null)}}\n
      \n
      \n
      Headers
      \n
      \n {{for (var key in header)}}\n
      \n
      {{key}}
      \n
      {{header[key]}}
      \n
      \n {{/for}}\n
      \n {{/if}}\n {{if (getData !== null)}}\n
      \n
      \n
      Query String Parameters
      \n
      \n {{for (var key in getData)}}\n
      \n
      {{key}}
      \n
      {{getData[key]}}
      \n
      \n {{/for}}\n
      \n {{/if}}\n {{if (postData !== null)}}\n
      \n
      \n
      Form Data
      \n
      \n {{for (var key in postData)}}\n
      \n
      {{key}}
      \n
      {{postData[key]}}
      \n
      \n {{/for}}\n
      \n {{/if}}\n
      \n
      \n
      Response
      \n
      \n
      \n
      {{response || \'\'}}
      \n
      \n
      \n
      \n
      '},function(e,t,o){var n,l,i;l=[t,o(32),o(2),o(34),o(35),o(0),o(1)],void 0===(i="function"==typeof(n=function(o,n,l,i,r,a,s){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,l=c(l),i=c(i),r=c(r),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(a),s=c(s);var d=class extends l.default{constructor(...e){super(...e);let t=this;t.isInited=!1,t.node={},t.$tabbox=s.default.render(i.default,{}),t.nodes=[],t.activedElem={};let o=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;t.observer=new o(function(e){for(let o=0;o0&&this.onChildRemove(e),e.addedNodes.length>0&&this.onChildAdd(e);break;case"attributes":this.onAttributesChange(e);break;case"characterData":this.onCharacterDataChange(e)}}onChildRemove(e){let t=e.target,o=t.__vconsole_node;if(o){for(let t=0;t0||(e.childNodes[l]?n.renderView(e.childNodes[l],i,"replace"):i.style.display="none"))}}),o){case"replace":t.parentNode.replaceChild(l,t);break;case"insertBefore":t.parentNode.insertBefore(l,t);break;default:t.appendChild(l)}return l}getNode(e){if(this._isIgnoredElement(e))return;let t=e.__vconsole_node||{};if(t.nodeType=e.nodeType,t.nodeName=e.nodeName,t.tagName=e.tagName||"",t.textContent="",t.nodeType!=e.TEXT_NODE&&t.nodeType!=e.DOCUMENT_TYPE_NODE||(t.textContent=e.textContent),t.id=e.id||"",t.className=e.className||"",t.attributes=[],e.hasAttributes&&e.hasAttributes())for(let o=0;o0)for(let o=0;o .vcelm-node {\n display: block;\n}\n.vcelm-l .vcelm-node:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vcelm-l.vcelm-noc .vcelm-node:active {\n background-color: transparent;\n}\n.vcelm-t {\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n/* level */\n.vcelm-l .vcelm-l {\n display: none;\n}\n.vcelm-l.vc-toggle > .vcelm-l {\n margin-left: 4px;\n display: block;\n}\n/* arrow */\n.vcelm-l:before {\n content: "";\n display: block;\n position: absolute;\n top: 6px;\n left: 3px;\n width: 0;\n height: 0;\n border: transparent solid 3px;\n border-left-color: #000;\n}\n.vcelm-l.vc-toggle:before {\n display: block;\n top: 6px;\n left: 0;\n border-top-color: #000;\n border-left-color: transparent;\n}\n.vcelm-l.vcelm-noc:before {\n display: none;\n}\n',""])},function(e,t){e.exports='
      \n
      \n
      '},function(e,t,o){var n,l,i;l=[t,o(36),o(37),o(0),o(1)],void 0===(i="function"==typeof(n=function(o,n,l,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=a(n),l=a(l),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(i),r=a(r);var s=class{constructor(e){this.node=e,this.view=this._create(this.node)}get(){return this.view}_create(e,t){let o=document.createElement("DIV");switch(r.default.addClass(o,"vcelm-l"),e.nodeType){case o.ELEMENT_NODE:this._createElementNode(e,o);break;case o.TEXT_NODE:this._createTextNode(e,o);break;case o.COMMENT_NODE:case o.DOCUMENT_NODE:case o.DOCUMENT_TYPE_NODE:case o.DOCUMENT_FRAGMENT_NODE:}return o}_createTextNode(e,t){r.default.addClass(t,"vcelm-t vcelm-noc"),e.textContent&&t.appendChild(function(e){return document.createTextNode(e)}(e.textContent.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")))}_createElementNode(e,t){let o=(a=(a=e.tagName)?a.toLowerCase():"",["br","hr","img","input","link","meta"].indexOf(a)>-1),i=o;var a;0==e.childNodes.length&&(i=!0);let s=r.default.render(n.default,{node:e}),c=r.default.render(l.default,{node:e});if(i)r.default.addClass(t,"vcelm-noc"),t.appendChild(s),o||t.appendChild(c);else{t.appendChild(s);for(let o=0;o<{{node.tagName.toLowerCase()}}{{if (node.className || node.attributes.length)}}\n \n {{for (var i = 0; i < node.attributes.length; i++)}}\n {{if (node.attributes[i].value !== \'\')}}\n {{node.attributes[i].name}}="{{node.attributes[i].value}}"{{else}}\n {{node.attributes[i].name}}{{/if}}{{/for}}{{/if}}>'},function(e,t){e.exports='</{{node.tagName.toLowerCase()}}>'},function(e,t,o){var n,l,i;l=[t,o(2),o(39),o(40),o(0),o(1)],void 0===(i="function"==typeof(n=function(o,n,l,i,r,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,n=s(n),l=s(l),i=s(i),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(r),a=s(a);var c=class extends n.default{constructor(...e){super(...e),this.$tabbox=a.default.render(l.default,{}),this.currentType="",this.typeNameMap={cookies:"Cookies",localstorage:"LocalStorage"}}onRenderTab(e){e(this.$tabbox)}onAddTopBar(e){let t=this,o=["Cookies","LocalStorage"],n=[];for(let e=0;e\n
      \n'},function(e,t){e.exports='
      \n
      \n
      Name
      \n
      Value
      \n
      \n {{for (var i = 0; i < list.length; i++)}}\n
      \n
      {{list[i].name}}
      \n
      {{list[i].value}}
      \n
      \n {{/for}}\n
      '}])}); \ No newline at end of file diff --git a/src/core/core.less b/src/core/core.less index 7440132a..f8dfc653 100644 --- a/src/core/core.less +++ b/src/core/core.less @@ -532,7 +532,8 @@ } } @supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) { - .vc-toolbar { + .vc-toolbar, + .vc-switch { bottom: constant(safe-area-inset-bottom); bottom: env(safe-area-inset-bottom); }