All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.smart-ui.plugins.eruda.eruda.js Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
/*! eruda v2.1.0 https://eruda.liriliri.io/ */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eruda=e():t.eruda=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/assets/",e(e.s=35)}([function(t,e,n){"use strict";(function(t,i,r){n.d(e,"_6",function(){return u}),n.d(e,"_3",function(){return l}),n.d(e,"Y",function(){return c}),n.d(e,"_13",function(){return f}),n.d(e,"_4",function(){return b}),n.d(e,"k",function(){return y}),n.d(e,"_30",function(){return $}),n.d(e,"_5",function(){return C}),n.d(e,"v",function(){return R}),n.d(e,"y",function(){return N}),n.d(e,"z",function(){return M}),n.d(e,"A",function(){return z}),n.d(e,"B",function(){return I}),n.d(e,"D",function(){return B}),n.d(e,"F",function(){return H}),n.d(e,"_36",function(){return U}),n.d(e,"H",function(){return W}),n.d(e,"K",function(){return K}),n.d(e,"_20",function(){return X}),n.d(e,"R",function(){return Z}),n.d(e,"I",function(){return tt}),n.d(e,"X",function(){return nt}),n.d(e,"x",function(){return rt}),n.d(e,"_2",function(){return ut}),n.d(e,"o",function(){return lt}),n.d(e,"O",function(){return ct}),n.d(e,"L",function(){return _t}),n.d(e,"_23",function(){return ht}),n.d(e,"M",function(){return pt}),n.d(e,"N",function(){return dt}),n.d(e,"P",function(){return ft}),n.d(e,"Q",function(){return gt}),n.d(e,"S",function(){return mt}),n.d(e,"T",function(){return yt}),n.d(e,"U",function(){return xt}),n.d(e,"_29",function(){return Ot}),n.d(e,"V",function(){return $t}),n.d(e,"W",function(){return Et}),n.d(e,"Z",function(){return jt}),n.d(e,"_0",function(){return At}),n.d(e,"_1",function(){return Tt}),n.d(e,"_8",function(){return Ct}),n.d(e,"_9",function(){return Pt}),n.d(e,"q",function(){return Lt}),n.d(e,"E",function(){return zt}),n.d(e,"w",function(){return It}),n.d(e,"_35",function(){return Bt}),n.d(e,"j",function(){return Ht}),n.d(e,"t",function(){return Ut}),n.d(e,"J",function(){return Wt}),n.d(e,"C",function(){return Gt}),n.d(e,"l",function(){return qt}),n.d(e,"p",function(){return Vt}),n.d(e,"_10",function(){return Kt}),n.d(e,"r",function(){return Yt}),n.d(e,"_26",function(){return Jt}),n.d(e,"b",function(){return Qt}),n.d(e,"f",function(){return te}),n.d(e,"g",function(){return _e}),n.d(e,"n",function(){return de}),n.d(e,"m",function(){return ge}),n.d(e,"a",function(){return be}),n.d(e,"_21",function(){return we}),n.d(e,"_28",function(){return ke}),n.d(e,"_11",function(){return Oe}),n.d(e,"_27",function(){return $e}),n.d(e,"u",function(){return Ee}),n.d(e,"_12",function(){return je}),n.d(e,"_14",function(){return Ae}),n.d(e,"c",function(){return Ce}),n.d(e,"e",function(){return Pe}),n.d(e,"_15",function(){return De}),n.d(e,"_16",function(){return Le}),n.d(e,"_17",function(){return Ne}),n.d(e,"_18",function(){return Me}),n.d(e,"_19",function(){return Fe}),n.d(e,"_31",function(){return Ie}),n.d(e,"_7",function(){return He}),n.d(e,"h",function(){return We}),n.d(e,"G",function(){return Ge}),n.d(e,"i",function(){return qe}),n.d(e,"_22",function(){return Ve}),n.d(e,"_32",function(){return Ke}),n.d(e,"d",function(){return Xe}),n.d(e,"_24",function(){return Je}),n.d(e,"_25",function(){return Qe}),n.d(e,"_33",function(){return Ze}),n.d(e,"_34",function(){return tn}),n.d(e,"_37",function(){return en}),n.d(e,"_38",function(){return nn}),n.d(e,"_39",function(){return rn});var a=n(16),o=n.n(a),s={},u=s.last=function(t){return function(t){var e=t?t.length:0;if(e)return t[e-1]}}(),l=s.isUndef=function(t){return function(t){return void 0===t}}(),c=s.isObj=function(t){return function(t){var e=o()(t);return!!t&&("function"===e||"object"===e)}}(),_=s.has=function(t){var e=Object.prototype.hasOwnProperty;return function(t,n){return e.call(t,n)}}(),h=s.slice=function(t){return function(t,e,n){var i=t.length;e=null==e?0:e<0?Math.max(i+e,0):Math.min(e,i),n=null==n?i:n<0?Math.max(i+n,0):Math.min(n,i);for(var r=[];e0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}}(),m=s.splitCase=function(t){var e=/([A-Z])/g,n=/[_.\- ]+/g,i=/(^-)|(-$)/g;return function(t){return t=t.replace(e,"-$1").toLowerCase().replace(n,"-").replace(i,""),t.split("-")}}(),v=s.camelCase=function(t){function e(t,e){this[e]=t.replace(/\w/,function(t){return t.toUpperCase()})}return function(t){var n=m(t),i=n[0];return n.shift(),n.forEach(e,n),i+=n.join("")}}(),b=s.kebabCase=function(t){return function(t){return m(t).join("-")}}(),y=s.chunk=function(t){return function(t,e){var n=[];e=e||1;for(var i=0,r=Math.ceil(t.length/e);in?n:t}}(),x=s.idxOf=function(t){return function(t,e,n){return Array.prototype.indexOf.call(t,e,n)}}(),k=s.create=function(t){t=function(t){function n(){}return c(t)?e?e(t):(n.prototype=t,new n):{}};var e=Object.create;return t}({}),O=s.inherits=function(t){return function(t,e){t.prototype=k(e.prototype)}}(),$=s.toStr=function(t){return function(t){return null==t?"":t.toString()}}(),E=s.debounce=function(t){return function(t,e,n){var i;return function(){var r=this,a=arguments,o=function(){i=null,t.apply(r,a)};n||clearTimeout(i),n&&i||(i=setTimeout(o,e))}}}(),j=s.ucs2=function(t){return{encode:function(t){return String.fromCodePoint.apply(String,t)},decode:function(t){for(var e=[],n=0,i=t.length;n=55296&&r<=56319&&n>6*e)+n);e>0;){i+=h(128|63&t>>6*(e-1)),e--}return i}function n(t){for(;;){if(a>=o&&l){if(t)return i();throw new Error("Invalid byte index")}if(a===o)return!1;var e=r[a];if(a++,l){if(e_){if(t)return a--,i();throw new Error("Invalid continuation byte")}if(c=128,_=191,s=s<<6|63&e,++u===l){var n=s;return s=0,l=0,u=0,n}}else{if(0==(128&e))return e;if(192==(224&e))l=1,s=31&e;else if(224==(240&e))224===e&&(c=160),237===e&&(_=159),l=2,s=15&e;else{if(240!=(248&e)){if(t)return i();throw new Error("Invalid UTF-8 detected")}240===e&&(c=144),244===e&&(_=143),l=3,s=7&e}}}}function i(){var t=a-u-1;return a=t+1,s=0,l=0,u=0,c=128,_=191,r[t]}t={encode:function(t){for(var n=j.decode(t),i="",r=0,a=n.length;r-1}return t=t||(d?navigator.userAgent:""),t=t.toLowerCase(),e("windows phone")?"windows phone":e("win")?"windows":e("android")?"android":e("ipad")||e("iphone")||e("ipod")?"ios":e("mac")?"os x":e("linux")?"linux":"unknown"}}(),D=s.restArgs=function(t){return function(t,e){return e=null==e?t.length-1:+e,function(){var n,i=Math.max(arguments.length-e,0),r=new Array(i);for(n=0;n=0&&t.indexOf(e,n)===n}}()),M=s.escape=function(t){function e(t){return n[t]}t=function(t){return r.test(t)?t.replace(a,e):t};var n=t.map={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},i="(?:"+C(n).join("|")+")",r=new RegExp(i),a=new RegExp(i,"g");return t}({}),F=s.escapeJsStr=function(t){t=function(t){return $(t).replace(e,function(t){switch(t){case'"':case"'":case"\\":return"\\"+t;case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})};var e=/["'\\\n\r\u2028\u2029]/g;return t}({}),z=s.escapeJsonStr=function(t){return function(t){return F(t).replace(/\\'/g,"'").replace(/\t/g,"\\t")}}(),I=s.escapeRegExp=function(t){return function(t){return t.replace(/\W/g,"\\$&")}}(),B=s.fileSize=function(t){t=function(t){if(t<=0)return"0";var n=Math.floor(Math.log(t)/Math.log(1024));return+(t/Math.pow(2,10*n)).toFixed(2)+e[n]};var e=["","K","M","G","T"];return t}({}),H=s.fullUrl=function(t){var e=document.createElement("a");return function(t){return e.href=t,e.protocol+"//"+e.host+e.pathname+e.search+e.hash}}(),U=s.upperFirst=function(t){return function(t){return t.length<1?t:t[0].toUpperCase()+t.slice(1)}}(),W=s.getObjType=function(t){return function(t){return t.constructor&&t.constructor.name?t.constructor.name:U({}.toString.call(t).replace(/(\[object )|]/g,""))}}(),G=s.identity=function(t){return function(t){return t}}(),q=s.objToStr=function(t){var e=Object.prototype.toString;return function(t){return e.call(t)}}(),V=s.isArgs=function(t){return function(t){return"[object Arguments]"===q(t)}}(),K=s.isArr=function(t){return Array.isArray||function(t){return"[object Array]"===q(t)}}(),Y=s.castPath=function(t){t=function(t,i){if(K(t))return t;if(i&&_(i,t))return[t];var r=[];return t.replace(e,function(t,e,i,a){r.push(i?a.replace(n,"$1"):e||t)}),r};var e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g;return t}({}),X=s.safeGet=function(t){return function(t,e){e=Y(e,t);var n;for(n=e.shift();!l(n);){if(null==(t=t[n]))return;n=e.shift()}return t}}(),J=s.flatten=function(t){function e(t,n){for(var i,r=t.length,a=-1;r--;)i=t[++a],K(i)?e(i,n):n.push(i);return n}return function(t){return e(t,[])}}(),Q=s.isDate=function(t){return function(t){return"[object Date]"===q(t)}}(),Z=s.isFn=function(t){return function(t){var e=q(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e}}(),tt=s.getProto=function(t){var e=Object.getPrototypeOf,n={}.constructor;return function(t){if(!c(t))return null;if(e)return e(t);var i=t.__proto__;return i||null===i?i:Z(t.constructor)?t.constructor.prototype:t instanceof n?n.prototype:null}}(),et=s.isMiniProgram=function(t){return"undefined"!=typeof wx&&Z(wx.openLocation)}(),nt=s.isNum=function(t){return function(t){return"[object Number]"===q(t)}}(),it=s.isArrLike=function(t){var e=Math.pow(2,53)-1;return function(t){if(!t)return!1;var n=t.length;return nt(n)&&n>=0&&n<=e&&!Z(t)}}(),rt=s.each=function(t){return function(t,e,n){e=L(e,n);var i,r;if(it(t))for(i=0,r=t.length;i-1:(it(t)||(t=st(t)),x(t,e)>=0)}}(),ct=s.isEmpty=function(t){return function(t){return null==t||(it(t)&&(K(t)||ut(t)||V(t))?0===t.length:0===C(t).length)}}(),_t=s.isBool=function(t){return function(t){return!0===t||!1===t}}(),ht=s.startWith=function(t){return function(t,e){return 0===t.indexOf(e)}}(),pt=s.isCrossOrig=function(t){var e=window.location.origin;return function(t){return!ht(t,e)}}(),dt=s.isEl=function(t){return function(t){return!(!t||1!==t.nodeType)}}(),ft=s.isErr=function(t){return function(t){return"[object Error]"===q(t)}}(),gt=s.isErudaEl=function(t){return function(t){var e=t.parentNode;if(!e)return!1;for(;e;)if((e=e.parentNode)&&"eruda"===e.id)return!0;return!1}}(),mt=s.isHidden=function(t){function e(t,e){return t.righte.right||t.bottome.bottom}var n=T.getComputedStyle,i=T.document;return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.display,o=void 0===a||a,s=r.visibility,u=void 0!==s&&s,l=r.opacity,c=void 0!==l&&l,_=r.size,h=void 0!==_&&_,p=r.viewport,d=void 0!==p&&p,f=r.overflow,g=void 0!==f&&f;if(o)return null===t.offsetParent;var m=n(t);if(u&&"hidden"===m.visibility)return!0;if(c){if("0"===m.opacity)return!0;for(var v=t;v=v.parentElement;){if("0"===n(v).opacity)return!0}}var b=t.getBoundingClientRect();if(h&&(0===b.width||0===b.height))return!0;if(d){return e(b,{top:0,left:0,right:i.documentElement.clientWidth,bottom:i.documentElement.clientHeight})}if(g)for(var y=t;y=y.parentElement;){var w=n(y),x=w.overflow;if("scroll"===x||"hidden"===x){var k=y.getBoundingClientRect();if(e(b,k))return!0}}return!1}}(),vt=s.isMatch=function(t){return function(t,e){var n=C(e),i=n.length;if(null==t)return!i;t=Object(t);for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:t.defComparator,i=0,r=e.length;i0)return!1;return!0},t.defComparator=function(t,e){return te?1:0},t}({}),Ct=s.loadJs=function(t){return function(t,e){var n=document.createElement("script");n.src=t,n.onload=function(){var t=n.readyState&&"complete"!=n.readyState&&"loaded"!=n.readyState;e&&e(!t)},document.body.appendChild(n)}}(),Pt=s.lowerCase=function(t){return function(t){return $(t).toLocaleLowerCase()}}(),Rt=s.repeat=function(t){return function(t,e){var n="";if(e<1)return"";for(;e>0;)1&e&&(n+=t),e>>=1,t+=t;return n}}(),Dt=s.lpad=function(t){return function(t,e,n){t=$(t);var i=t.length;return n=n||" ",i0?"-":"+")+e(100*Math.floor(Math.abs(y)/60)+Math.abs(y)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10]};return s.replace(n,function(t){return t in w?w[t]:t.slice(1,t.length-1)})};var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Dt($(t),e,"0")},n=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/\d/,a=/[^-+\dA-Z]/g;return t.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},t.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},t}({}),Nt=s.ltrim=function(t){var e=/^\s+/;return function(t,n){if(null==n)return t.replace(e,"");for(var i,r,a=0,o=t.length,s=n.length,u=!0;u&&a=o?"":t.substr(a,o)}}(),Mt=s.matcher=function(t){return function(t){return t=ot({},t),function(e){return vt(e,t)}}}(),Ft=s.safeCb=function(t){return function(t,e,n){return null==t?G:Z(t)?L(t,e,n):c(t)?Mt(t):function(t){return function(e){return null==e?void 0:e[t]}}}}(),zt=s.filter=function(t){return function(t,e,n){var i=[];return e=Ft(e,n),rt(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i}}(),It=s.difference=function(t){return D(function(t,e){return e=J(e),zt(t,function(t){return!lt(e,t)})})}(),Bt=s.unique=function(t){function e(t,e){return t===e}return function(t,n){return n=n||e,zt(t,function(t,e,i){for(var r=i.length;++e1&&void 0!==arguments[1]?arguments[1]:{},r=i.prototype,a=void 0===r||r,o=i.unenumerable,s=void 0!==o&&o,u=i.symbol,l=void 0!==u&&u,c=[];if((s||l)&&e){var _=C;s&&e&&(_=e);do{c=c.concat(_(t)),l&&n&&(c=c.concat(n(t)))}while(a&&(t=tt(t))&&t!==Object.prototype);c=Bt(c)}else if(a)for(var h in t)c.push(h);else c=C(t);return c}}(),Ut=s.defaults=function(t){return at(Ht,!0)}(),Wt=s.highlight=function(t){t=function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"js",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ut(a,e),i=i.replace(//g,">"),r=n[r];var o=0,s=[];rt(r,function(e){e.language&&(i=i.replace(e.re,function(n,i){return s[o++]=t(i,e.language,a),n.replace(i,"___subtmpl"+(o-1)+"___")}))}),rt(r,function(t,e){n[t.language]||(i=i.replace(t.re,"___"+e+"___$1___end"+e+"___"))});var u=[];return i=i.replace(/___(?!subtmpl)\w+?___/g,function(t){var e="end"===t.substr(3,3),n=(e?t.substr(6):t.substr(3)).replace(/_/g,""),i=u.length>0?u[u.length-1]:null;return!e&&(null==i||n==i||null!=i&&r[i]&&void 0!=r[i].embed&&r[i].embed.indexOf(n)>-1)?(u.push(n),t):e&&n==i?(u.pop(),t):""}),rt(r,function(t,e){i=i.replace(new RegExp("___end"+e+"___","g"),"").replace(new RegExp("___"+e+"___","g"),'')}),rt(r,function(t){t.language&&(i=i.replace(/___subtmpl\d+___/g,function(t){var e=parseInt(t.replace(/___subtmpl(\d+)___/,"$1"),10);return s[e]}))}),i};var e={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},n={};return n.js={comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|<|>|\||\?|\.)/g,style:"operator"}},n.html={comment:{re:/(<!--([\s\S]*?)-->)/g,style:"comment"},tag:{re:/(<\/?\w(.|\n)*?\/?>)/g,style:"keyword",embed:["string"]},string:n.js.string,css:{re:/(?:<style.*?>)([\s\S]*)?(?:<\/style>)/gi,language:"css"},script:{re:/(?:<script.*?>)([\s\S]*?)(?:<\/script>)/gi,language:"js"}},n.css={comment:n.js.comment,string:n.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},t}({}),Gt=s.extend=function(t){return at(Ht)}(),qt=s.clone=function(t){return function(t){return c(t)?K(t)?t.slice():Gt({},t):t}}(),Vt=s.copy=function(t){return function(t,e){e=e||f;var n=document.createElement("textarea"),i=document.body;Gt(n.style,{fontSize:"12pt",border:"0",padding:"0",margin:"0",position:"absolute",left:"-9999px"}),n.value=t,i.appendChild(n),n.setAttribute("readonly",""),n.select(),n.setSelectionRange(0,t.length);try{document.execCommand("copy"),e()}catch(t){e(t)}finally{i.removeChild(n)}}}(),Kt=s.map=function(t){return function(t,e,n){e=Ft(e,n);for(var i=!it(t)&&C(t),r=(i||t).length,a=Array(r),o=0;o1?e:this;for(var n=this._items,i=this.size-1,r=0;i>=0;i--,r++)t.call(e,n[i],r,this)},toArr:function(){return p(this._items)}})}(),he=s.delegate=function(t){function e(){return!0}function n(){return!1}function i(e){var n,i=this.events[e.type],a=r.call(this,e,i);e=new t.Event(e);for(var o,s,u=0;(s=a[u++])&&!e.isPropagationStopped();)for(e.curTarget=s.el,o=0;(n=s.handlers[o++])&&!e.isImmediatePropagationStopped();)!1===n.handler.apply(s.el,[e])&&(e.preventDefault(),e.stopPropagation())}function r(t,e){var n,i,r,a,o=t.target,s=[],u=e.delegateCount;if(o.nodeType)for(;o!==this;o=o.parentNode||this){for(i=[],a=0;a=0&&t=e[n[s]]){o=n[s];break}return+(a/e[o]).toFixed(2)+o};var e={ms:1,s:1e3};e.m=60*e.s,e.h=60*e.m,e.d=24*e.h,e.y=365.25*e.d;var n=["y","d","h","m","s"],i=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;return t}({}),$e=s.toInt=function(t){return function(t){return t?(t=ke(t))-t%1:0===t?t:0}}(),Ee=s.detectBrowser=function(t){function e(t,e){var n=t.indexOf(e);if(n>-1)return $e(t.substring(n+e.length,t.indexOf(".",n)))}t=function(t){t=t||(d?navigator.userAgent:""),t=t.toLowerCase();var a=e(t,"msie ");if(a)return{version:a,name:"ie"};if(i.test(t))return{version:11,name:"ie"};for(var o=0,s=r.length;owindow.innerHeight?"landscape":"portrait"}},Ce.mixin(t),window.addEventListener("orientationchange",function(){setTimeout(function(){t.emit("change",t.get())},200)},!1),t}({}),Le=s.perfNow=function(t){var e,n=T.performance,i=T.process;if(n&&n.now)t=function(){return n.now()};else if(i&&i.hrtime){var r=function(){var t=i.hrtime();return 1e9*t[0]+t[1]};e=r()-1e9*i.uptime(),t=function(){return(r()-e)/1e6}}else e=Ae(),t=function(){return Ae()-e};return t}({}),Ne=s.pxToNum=function(t){return function(t){return ke(t.replace("px",""))}}(),Me=s.raf=function(t){var e,n,i=0;if(d){e=window.requestAnimationFrame,n=window.cancelAnimationFrame;for(var r=["ms","moz","webkit","o"],a=0,o=r.length;a=0;c--){var _=o[c];if(""!==_){if(u=""===u?_:_+"."+u,n="/",e({domain:u,path:n})||e({domain:u}))return;for(var h=0;h=0;)for(s=!1,i=-1,r=t.charAt(a);++i=0?t.substring(0,a+1):""}}(),Ie=s.trim=function(t){var e=/^\s+|\s+$/g;return function(t,n){return null==n?t.replace(e,""):Nt(ze(t,n),n)}}(),Be=s.extractUrls=function(t){t=function(t){var n=Jt(t.match(e));return Bt(Kt(n,function(t){return Ie(t)}))};var e=/((https?)|(ftp)):\/\/[\w.]+[^ \f\n\r\t\v"\\<>[\]\u2100-\uFFFF(),]*/gi;return t}({}),He=s.linkify=function(t){function e(t){return''+t+""}return function(t,n){n=n||e;var i=Be(t);return rt(i,function(e){t=t.replace(new RegExp(I(e),"g"),n)}),t}}(),Ue=s.query=function(t){t={parse:function(t){var n={};return t=Ie(t).replace(e,""),rt(t.split("&"),function(t){var e=t.split("="),i=e.shift(),r=e.length>0?e.join("="):null;i=decodeURIComponent(i),r=decodeURIComponent(r),l(n[i])?n[i]=r:K(n[i])?n[i].push(r):n[i]=[n[i],r]}),n},stringify:function(e,n){return zt(Kt(e,function(e,i){return c(e)&&ct(e)?"":K(e)?t.stringify(e,i):(n?encodeURIComponent(n):encodeURIComponent(i))+"="+encodeURIComponent(e)}),function(t){return t.length>0}).join("&")}};var e=/^(\?|#|&)/g;return t}({}),We=s.Url=function(t){t=Qt({className:"Url",initialize:function(e){!e&&d&&(e=window.location.href),Gt(this,t.parse(e||""))},setQuery:function(t,e){var n=this.query;return c(t)?rt(t,function(t,e){n[e]=t}):n[t]=e,this},rmQuery:function(t){var e=this.query;return K(t)||(t=Jt(t)),rt(t,function(t){delete e[t]}),this},toString:function(){return t.stringify(this)}},{parse:function(t){var r={protocol:"",auth:"",hostname:"",hash:"",query:{},port:"",pathname:"",slashes:!1},a=Ie(t),o=!1,s=a.match(e);if(s&&(s=s[0],r.protocol=s.toLowerCase(),a=a.substr(s.length)),s&&(o="//"===a.substr(0,2))&&(a=a.slice(2),r.slashes=!0),o){for(var u=a,l=-1,c=0,_=i.length;c<_;c++){var h=a.indexOf(i[c]);-1!==h&&(-1===l||h-1&&(u=a.slice(0,l),a=a.slice(l));var p=u.lastIndexOf("@");-1!==p&&(r.auth=decodeURIComponent(u.slice(0,p)),u=u.slice(p+1)),r.hostname=u;var d=u.match(n);d&&(d=d[0],":"!==d&&(r.port=d.substr(1)),r.hostname=u.substr(0,u.length-d.length))}var f=a.indexOf("#");-1!==f&&(r.hash=a.substr(f),a=a.slice(0,f));var g=a.indexOf("?");return-1!==g&&(r.query=Ue.parse(a.substr(g+1)),a=a.slice(0,g)),r.pathname=a||"/",r},stringify:function(t){var e=t.protocol+(t.slashes?"//":"")+(t.auth?encodeURIComponent(t.auth)+"@":"")+t.hostname+(t.port?":"+t.port:"")+t.pathname;return ct(t.query)||(e+="?"+Ue.stringify(t.query)),t.hash&&(e+=t.hash),e}});var e=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=["/","?","#"];return t}({}),Ge=s.getFileName=function(t){return function(t){var e=u(t.split("/"));return e.indexOf("?")>-1&&(e=Ie(e.split("?")[0])),""===e&&(t=new We(t),e=t.hostname),e}}(),qe=s.ajax=function(t){function e(t,e,n,i){return Z(e)&&(i=n,n=e,e={}),{url:t,data:e,success:n,dataType:i}}return t=function(e){Ut(e,t.setting);var n,i=e.type,r=e.url,a=e.data,o=e.dataType,s=e.success,u=e.error,l=e.timeout,_=e.complete,h=e.xhr();return h.onreadystatechange=function(){if(4===h.readyState){clearTimeout(n);var t,e=h.status;if(e>=200&&e<300||304===e){t=h.responseText,"xml"===o&&(t=h.responseXML);try{"json"===o&&(t=JSON.parse(t))}catch(t){}s(t,h)}else u(h);_(h)}},"GET"===i?(a=Ue.stringify(a),r+=r.indexOf("?")>-1?"&"+a:"?"+a):"application/x-www-form-urlencoded"===e.contentType?c(a)&&(a=Ue.stringify(a)):"application/json"===e.contentType&&c(a)&&(a=JSON.stringify(a)),h.open(i,r,!0),h.setRequestHeader("Content-Type",e.contentType),l>0&&(n=setTimeout(function(){h.onreadystatechange=f,h.abort(),u(h,"timeout"),_(h)},l)),h.send("GET"===i?null:a),h},t.setting={type:"GET",success:f,error:f,complete:f,dataType:"json",contentType:"application/x-www-form-urlencoded",data:{},xhr:function(){return new XMLHttpRequest},timeout:0},t.get=function(){return t(e.apply(null,arguments))},t.post=function(){var n=e.apply(null,arguments);return n.type="POST",t(n)},t}({}),Ve=s.sortKeys=function(t){t=function(t){function n(t){var e=o.indexOf(t);if(e>-1)return s[e];var i;if(K(t)){i=[],o.push(t),s.push(i);for(var u=0,l=t.length;u1&&void 0!==arguments[1]?arguments[1]:{};Ut(i,e);var r=i.deep,a=i.comparator,o=[],s=[];return n(t)};var e={deep:!1,comparator:St.defComparator};return t}({}),Ke=s.type=function(t){t=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(null===t)return n?"null":"Null";if(void 0===t)return n?"undefined":"Undefined";if(xt(t))return n?"nan":"NaN";var i=q(t).match(e);return i?n?i[1].toLowerCase():i[1]:""};var e=/^\[object\s+(.*?)]$/;return t}({}),Ye=s.stringify=function(t){function e(){var t=[],e=[];return function(n,i){if(t.length>0){var r=t.indexOf(this);r>-1?(t.splice(r+1),e.splice(r,1/0,n)):(t.push(this),e.push(n));var a=t.indexOf(i);a>-1&&(i=t[0]===i?"[Circular ~]":"[Circular ~."+e.slice(0,a).join(".")+"]")}else t.push(i);return Tt(i)||Z(i)?i="["+U(Ke(i))+" "+$(i)+"]":l(i)&&(i=null),i}}return function(t,n){return JSON.stringify(t,e(),n)}}(),Xe=s.LocalStore=function(t){var e=we("local");return Re.extend({initialize:function(t,n){this._name=t,n=n||{};var i=e.getItem(t);try{i=JSON.parse(i)}catch(t){i={}}c(i)||(i={}),n=Ut(i,n),this.callSuper(Re,"initialize",[n])},save:function(t){if(ct(t))return e.removeItem(this._name);e.setItem(this._name,Ye(t))}})}(),Je=s.stringifyAll=function(t){function e(e,i,r,a){var o=[];return rt(i,function(e){var i,s=Object.getOwnPropertyDescriptor(r,e),u=s&&s.get,l=s&&s.set;if(!a.accessGetter&&u)i="(...)";else try{if(i=r[e],lt(a.ignore,i))return;At(i)&&i.catch(function(){})}catch(t){i=t.message}o.push("".concat(n(e),":").concat(t(i,a))),u&&o.push("".concat(n("get "+$(e)),":").concat(t(s.get,a))),l&&o.push("".concat(n("set "+$(e)),":").concat(t(s.set,a)))}),'"'.concat(e,'":{')+o.join(",")+"}"}function n(t){return'"'.concat(r(t),'"')}function i(t){return'"'.concat(r($(t)),'"')}function r(t){return F(t).replace(/\\'/g,"'").replace(/\t/g,"\\t")}t=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=r.self,u=r.startTime,l=void 0===u?Ae():u,c=r.timeout,_=void 0===c?0:c,h=r.depth,p=void 0===h?0:h,d=r.curDepth,f=void 0===d?1:d,g=r.visitor,m=void 0===g?new a:g,v=r.unenumerable,b=void 0!==v&&v,y=r.symbol,w=void 0!==y&&y,x=r.accessGetter,k=void 0!==x&&x,O=r.ignore,E=void 0===O?[]:O,j="",A={visitor:m,unenumerable:b,symbol:w,accessGetter:k,depth:p,curDepth:f+1,timeout:_,startTime:l,ignore:E},T=Ke(n,!1);if("String"===T)j=i(n);else if("Number"===T)j=$(n),N(j,"Infinity")&&(j='{"value":"'.concat(j,'","type":"Number"}'));else if("NaN"===T)j='{"value":"NaN","type":"Number"}';else if("Boolean"===T)j=n?"true":"false";else if("Null"===T)j="null";else if("Undefined"===T)j='{"type":"Undefined"}';else if("Symbol"===T){var S="Symbol";try{S=$(n)}catch(t){}j='{"value":'.concat(i(S),',"type":"Symbol"}')}else{if(_&&Ae()-l>_)return i("Timeout");if(p&&f>p)return i("{...}");j="{";var P,R=[],D=m.get(n);if(D?(P=D.id,R.push('"reference":'.concat(P))):(P=m.set(n),R.push('"id":'.concat(P))),R.push('"type":"'.concat(T,'"')),N(T,"Function")?R.push('"value":'.concat(i(Ot(n)))):"RegExp"===T&&R.push('"value":'.concat(i(n))),!D){var L=C(n);if(L.length&&R.push(e("enumerable",L,s||n,A)),b){var M=It(Ht(n,{prototype:!1,unenumerable:!0}),L);M.length&&R.push(e("unenumerable",M,s||n,A))}if(w){var F=zt(Ht(n,{prototype:!1,symbol:!0}),function(t){return"symbol"===o()(t)});F.length&&R.push(e("symbol",F,s||n,A))}var z=tt(n);if(z&&!lt(E,z)){var I='"proto":'.concat(t(z,Gt(A,{self:s||n})));R.push(I)}}j+=R.join(",")+"}"}return j};var a=Qt({initialize:function(){this.id=0,this.visited=[]},set:function(t){var e=this.visited,n=this.id,i={id:n,val:t};return e.push(i),this.id++,n},get:function(t){for(var e=this.visited,n=0,i=e.length;n-1&&n.splice(e,1)},rmAllListeners:function(){n=[]}},d?(window.addEventListener("error",function(t){e(t.error)}),window.addEventListener("unhandledrejection",function(t){e(t.reason)})):(i.on("uncaughtException",e),i.on("unhandledRejection",e)),t}({}),tn=s.uniqId=function(t){var e=0;return function(t){var n=++e+"";return t?t+n:n}}(),en=s.viewportScale=function(t){return function(){var t=xe("viewport");if(!t)return 1;t=Kt(t.split(","),function(t){return Ie(t)});var e=.25,n=5,i=1;rt(t,function(t){t=t.split("=");var r=t[0];t=t[1],"initial-scale"===r&&(i=+t),"maximum-scale"===r&&(n=+t),"minimum-scale"===r&&(e=+t)});var r=w(i,e,n);return xt(r)?1:r}}(),nn=s.wrap=function(t){return function(t,e){return Te(e,t)}}(),rn=s.xpath=function(t){return function(t){for(var e=[],n=document.evaluate(t,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),i=0;i0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;if(t<1)return e.inverse(this);var n=1*t+0,i=0,r="";do{var a={index:i,count:t,start:0,step:1,first:0===i,last:i>=n-1},o=[i,a];r+=e.fn(this,{data:a,blockParams:o}),i+=a.step}while(i":">",'"':""","'":"'","`":"`","=":"="},h=/[&<>"'`=]/g,p=/[&<>"'`=]/,d=Object.prototype.toString;e.toString=d;var f=function(t){return"function"==typeof t};f(/x/)&&(e.isFunction=f=function(t){return"function"==typeof t&&"[object Function]"===d.call(t)}),e.isFunction=f;var g=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===d.call(t)};e.isArray=g},function(t,e,n){"use strict";n.d(e,"a",function(){return v});var i=n(2),r=n.n(i),a=n(3),o=n.n(a),s=n(7),u=n.n(s),l=n(5),c=n.n(l),_=n(12),h=n.n(_),p=n(8),d=n.n(p),f=n(9),g=n(0),m=n(4),v=function(t){function e(){var t;return r()(this,e),t=u()(this,c()(e).call(this)),t._style=Object(m.a)(n(48)),t.name="settings",t._switchTpl=n(49),t._selectTpl=n(65),t._rangeTpl=n(66),t._colorTpl=n(67),t._settings=[],t}return d()(e,t),o()(e,[{key:"init",value:function(t){h()(c()(e.prototype),"init",this).call(this,t),this._bindEvent()}},{key:"remove",value:function(t,e){var n=this;return Object(g._2)(t)?this._$el.find(".eruda-text").each(function(){var e=Object(g.a)(this);e.text()===t&&e.remove()}):this._settings=Object(g.E)(this._settings,function(i){return i.config!==t||i.key!==e||(n._$el.find("#"+i.id).remove(),!1)}),this._cleanSeparator(),this}},{key:"destroy",value:function(){h()(c()(e.prototype),"destroy",this).call(this),m.a.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._$el.html("")}},{key:"switch",value:function(t,e,n){var i=this._genId("settings");return this._settings.push({config:t,key:e,id:i}),this._$el.append(this._switchTpl({desc:n,key:e,id:i,val:t.get(e)})),this}},{key:"color",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:["#2196f3","#707d8b","#f44336","#009688","#ffc107"],r=this._genId("settings");return this._settings.push({config:t,key:e,id:r}),this._$el.append(this._colorTpl({desc:n,colors:i,id:r,val:t.get(e)})),this}},{key:"select",value:function(t,e,n,i){var r=this._genId("settings");return this._settings.push({config:t,key:e,id:r}),this._$el.append(this._selectTpl({desc:n,selections:i,id:r,val:t.get(e)})),this}},{key:"range",value:function(t,e,n,i){var r=i.min,a=void 0===r?0:r,o=i.max,s=void 0===o?1:o,u=i.step,l=void 0===u?.1:u,c=this._genId("settings");this._settings.push({config:t,key:e,min:a,max:s,step:l,id:c});var _=t.get(e);return this._$el.append(this._rangeTpl({desc:n,min:a,max:s,step:l,val:_,progress:b(_,a,s),id:c})),this}},{key:"separator",value:function(){return this._$el.append('
'),this}},{key:"text",value:function(t){return this._$el.append('
'.concat(t,"
")),this}},{key:"_cleanSeparator",value:function(){function t(t){return"eruda-separator"===t.getAttribute("class")}for(var e=Object(g.l)(this._$el.get(0).children),n=0,i=e.length;nn&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new f(w.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},p.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new d(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(E.BlockStatement);var n=new v(t,this._options);return this._tokens=n.tokenize(),t},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&g.lineBreak.test(t||"")&&(e=t.match(g.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(e)},p.prototype.handle_token=function(t,e){t.type===w.START_EXPR?this.handle_start_expr(t):t.type===w.END_EXPR?this.handle_end_expr(t):t.type===w.START_BLOCK?this.handle_start_block(t):t.type===w.END_BLOCK?this.handle_end_block(t):t.type===w.WORD?this.handle_word(t):t.type===w.RESERVED?this.handle_word(t):t.type===w.SEMICOLON?this.handle_semicolon(t):t.type===w.STRING?this.handle_string(t):t.type===w.EQUALS?this.handle_equals(t):t.type===w.OPERATOR?this.handle_operator(t):t.type===w.COMMA?this.handle_comma(t):t.type===w.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===w.COMMENT?this.handle_comment(t,e):t.type===w.DOT?this.handle_dot(t):t.type===w.EOF?this.handle_eof(t):(t.type,w.UNKNOWN,this.handle_unknown(t,e))},p.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,i=this._options.keep_array_indentation&&l(this._flags.mode);if(t.comments_before)for(var r=t.comments_before.next();r;)this.handle_whitespace_and_comments(r,e),this.handle_token(r,e),r=t.comments_before.next();if(i)for(var a=0;a0,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,e);for(var o=1;o0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},p.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},p.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===E.Statement&&s(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},p.prototype.start_of_object_property=function(){return this._flags.parent.mode===E.ObjectLiteral&&this._flags.mode===E.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||o(this._flags.last_token,["get","set"]))},p.prototype.start_of_statement=function(t){var e=!1;return e=e||o(this._flags.last_token,["var","let","const"])&&t.type===w.WORD,e=e||a(this._flags.last_token,"do"),e=e||!(this._flags.parent.mode===E.ObjectLiteral&&this._flags.mode===E.Statement)&&o(this._flags.last_token,j)&&!t.newlines,e=e||a(this._flags.last_token,"else")&&!(a(t,"if")&&!t.comments_before),e=e||this._flags.last_token.type===w.END_EXPR&&(this._previous_flags.mode===E.ForInitializer||this._previous_flags.mode===E.Conditional),e=e||this._flags.last_token.type===w.WORD&&this._flags.mode===E.BlockStatement&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==w.WORD&&t.type!==w.RESERVED,!!(e=e||this._flags.mode===E.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||o(this._flags.last_token,["get","set"])))&&(this.set_mode(E.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,o(t,["do","for","if","while"])),!0)},p.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=E.Expression;if("["===t.text){if(this._flags.last_token.type===w.WORD||")"===this._flags.last_token.text)return o(this._flags.last_token,b)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=E.ArrayLiteral,l(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),i(this._flags.last_token.type,[w.START_EXPR,w.END_EXPR,w.WORD,w.OPERATOR])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===w.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=E.ForInitializer):i(this._flags.last_token.text,["if","while"])?(this._output.space_before_token=this._options.space_before_conditional,e=E.Conditional):i(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(i(this._flags.last_token.text,b)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===w.EQUALS||this._flags.last_token.type===w.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===w.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);o(n,["async","function"])||"*"===n.text&&o(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===E.ObjectLiteral&&("{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==r.text&&","!==r.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===w.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(i(this._last_last_text,["function","yield"])||this._flags.mode===E.ObjectLiteral&&i(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===w.START_BLOCK?this.print_newline():this._flags.last_token.type!==w.END_EXPR&&this._flags.last_token.type!==w.START_EXPR&&this._flags.last_token.type!==w.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==w.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},p.prototype.handle_end_expr=function(t){for(;this._flags.mode===E.Statement;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&l(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==w.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),s(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===E.Conditional&&(this._previous_flags.mode=E.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},p.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===w.END_EXPR?(this.set_mode(E.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(E.BlockStatement):n&&(i(n.text,[":",","])&&i(e.type,[w.STRING,w.WORD,w.RESERVED])||i(e.text,["get","set","..."])&&i(n.type,[w.WORD,w.RESERVED]))?i(this._last_last_text,["class","interface"])?this.set_mode(E.BlockStatement):this.set_mode(E.ObjectLiteral):this._flags.last_token.type===w.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(E.BlockStatement):i(this._flags.last_token.type,[w.EQUALS,w.START_EXPR,w.COMMA,w.OPERATOR])||o(this._flags.last_token,["return","throw","import","default"])?this.set_mode(E.ObjectLiteral):this.set_mode(E.BlockStatement);var r=!e.comments_before&&"}"===e.text,a=r&&"function"===this._flags.last_word&&this._flags.last_token.type===w.END_EXPR;if(this._options.brace_preserve_inline){var s=0,u=null;this._flags.inline_frame=!0;do{if(s+=1,u=this._tokens.peek(s-1),u.newlines){this._flags.inline_frame=!1;break}}while(u.type!==w.EOF&&(u.type!==w.END_BLOCK||u.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==w.OPERATOR&&(a||this._flags.last_token.type===w.EQUALS||o(this._flags.last_token,x)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!l(this._previous_flags.mode)||this._flags.last_token.type!==w.START_EXPR&&this._flags.last_token.type!==w.COMMA||((this._flags.last_token.type===w.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===w.COMMA||this._flags.last_token.type===w.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==w.OPERATOR&&this._flags.last_token.type!==w.START_EXPR&&(this._flags.last_token.type!==w.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},p.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===E.Statement;)this.restore_mode();var e=this._flags.last_token.type===w.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(l(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},p.prototype.handle_word=function(t){if(t.type===w.RESERVED)if(i(t.text,["set","get"])&&this._flags.mode!==E.ObjectLiteral)t.type=w.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=w.WORD;else if(i(t.text,["as","from"])&&!this._flags.import_block)t.type=w.WORD;else if(this._flags.mode===E.ObjectLiteral){var e=this._tokens.peek();":"===e.text&&(t.type=w.WORD)}if(this.start_of_statement(t)?o(this._flags.last_token,["var","let","const"])&&t.type===w.WORD&&(this._flags.declaration_statement=!0):!t.newlines||c(this._flags.mode)||this._flags.last_token.type===w.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===w.EQUALS||!this._options.preserve_newlines&&o(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(a(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&a(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===E.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&o(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==w.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==w.COMMA&&this._flags.last_token.type!==w.START_EXPR&&this._flags.last_token.type!==w.EQUALS&&this._flags.last_token.type!==w.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),a(t,"function"))return(i(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!i(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==w.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===w.RESERVED||this._flags.last_token.type===w.WORD?o(this._flags.last_token,["get","set","new","export"])||o(this._flags.last_token,j)?this._output.space_before_token=!0:a(this._flags.last_token,"default")&&"export"===this._last_last_text?this._output.space_before_token=!0:"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===w.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!c(this._flags.mode)&&!l(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var n="NONE";if(this._flags.last_token.type===w.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":o(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===w.SEMICOLON&&this._flags.mode===E.BlockStatement?n="NEWLINE":this._flags.last_token.type===w.SEMICOLON&&c(this._flags.mode)?n="SPACE":this._flags.last_token.type===w.STRING?n="NEWLINE":this._flags.last_token.type===w.RESERVED||this._flags.last_token.type===w.WORD||"*"===this._flags.last_token.text&&(i(this._last_last_text,["function","yield"])||this._flags.mode===E.ObjectLiteral&&i(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===w.START_BLOCK?n=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===w.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),o(t,b)&&")"!==this._flags.last_token.text&&(n=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),o(t,["else","catch","finally"]))if((this._flags.last_token.type!==w.END_BLOCK||this._previous_flags.mode!==E.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var r=this._output.current_line;"}"!==r.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===n?o(this._flags.last_token,x)?this._output.space_before_token=!0:"declare"===this._flags.last_token.text&&o(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==w.END_EXPR?this._flags.last_token.type===w.START_EXPR&&o(t,["var","let","const"])||":"===this._flags.last_token.text||(a(t,"if")&&a(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):o(t,b)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&l(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===n&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==w.WORD&&t.previous.type!==w.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===w.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&a(t,"from")&&(this._flags.import_block=!1))},p.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==E.Statement||this._flags.if_block&&a(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},p.prototype.handle_string=function(t){this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===w.RESERVED||this._flags.last_token.type===w.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===w.COMMA||this._flags.last_token.type===w.START_EXPR||this._flags.last_token.type===w.EQUALS||this._flags.last_token.type===w.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this.print_newline()),this.print_token(t)},p.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},p.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(c(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===E.ObjectLiteral||this._flags.mode===E.Statement&&this._flags.parent.mode===E.ObjectLiteral?(this._flags.mode===E.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},p.prototype.handle_operator=function(t){var e="*"===t.text&&(o(this._flags.last_token,["function","yield"])||i(this._flags.last_token.type,[w.START_BLOCK,w.COMMA,w.END_BLOCK,w.SEMICOLON])),n=i(t.text,["-","+"])&&(i(this._flags.last_token.type,[w.START_BLOCK,w.START_EXPR,w.EQUALS,w.OPERATOR])||i(this._flags.last_token.text,b)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var r=!e;this.handle_whitespace_and_comments(t,r)}if(o(this._flags.last_token,x))return this._output.space_before_token=!0,void this.print_token(t);if("*"===t.text&&this._flags.last_token.type===w.DOT)return void this.print_token(t);if("::"===t.text)return void this.print_token(t);if(this._flags.last_token.type===w.OPERATOR&&i(this._options.operator_position,$)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==w.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var a=!0,s=!0,u=!1;if(":"===t.text?0===this._flags.ternary_depth?a=!1:(this._flags.ternary_depth-=1,u=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&i(t.text,y)){var l=":"===t.text,_=l&&u,h=l&&!u;switch(this._options.operator_position){case O.before_newline:return this._output.space_before_token=!h,this.print_token(t),l&&!_||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case O.after_newline:return this._output.space_before_token=!0,!l||_?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case O.preserve_newline:return h||this.allow_wrap_or_preserved_newline(t),a=!(this._output.just_added_newline()||h),this._output.space_before_token=a,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),a=!1;var p=this._tokens.peek();s=p&&i(p.type,[w.WORD,w.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),a=this._flags.last_token.type===w.START_BLOCK,s=!1):(i(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==w.COMMA&&this._flags.last_token.type!==w.START_EXPR||this.allow_wrap_or_preserved_newline(t),a=!1,s=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&c(this._flags.mode)&&(a=!0),this._flags.last_token.type===w.RESERVED?a=!0:this._flags.last_token.type===w.END_EXPR?a=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===w.OPERATOR&&(a=i(t.text,["--","-","++","+"])&&i(this._flags.last_token.text,["--","-","++","+"]),i(t.text,["+","-"])&&i(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==E.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==E.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||a,this.print_token(t),this._output.space_before_token=s},p.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):g.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},p.prototype.print_block_commment=function(t,e){var n,i=u(t.text),a=!1,o=!1,s=t.whitespace_before,l=s.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(i[0]),this.print_newline(!1,e),i.length>1){for(i=i.slice(1),a=_(i,"*"),o=h(i,s),a&&(this._flags.alignment=1),n=0;n0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function a(t,e){this.__indent_cache=new r(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},r.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},r.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},r.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},a.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(t,e){for(var n=this.__lines.length-2;n>=0;){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=a},function(t,e,n){"use strict";function i(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=i},function(t,e,n){"use strict";var i="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",a="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+i+"])";e.identifier=new RegExp(a+"(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f])*","g"),e.identifierStart=new RegExp(a),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a"+i+r+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){"use strict";function i(t){r.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var i=0;i126&&n<=255&&0===r[0].indexOf("x"))return t;if(n>=0&&n<32){e+="\\"+r[0];continue}e+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}var a=n(8).InputScanner,o=n(9).Tokenizer,s=n(9).TOKEN,u=n(13).Directives,l=n(4),c=n(12).Pattern,_=n(14).TemplatablePattern,h={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},p=new u(/\/\*/,/\*\//),d=/0[xX][0123456789abcdefABCDEF]*|0[oO][01234567]*|0[bB][01]*|\d+n|(?:\.\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?/,f=/[0-9]/,g=/[^\d\.]/,m=">>> === !== << && >= ** != == <= >> || < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= = ! ? > < : / ^ - + * & % ~ |";v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),v=v.replace(/ /g,"|");var b,y=new RegExp(v),w="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=w.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),k=new RegExp("^(?:"+x.join("|")+")$"),O=function(t,e){o.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new c(this._input),i=new _(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(l.identifier).matching(l.identifierMatch),number:n.matching(d),punct:n.matching(y),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(l.lineBreak),shebang:n.starting_with(/#!/).until_after(l.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};O.prototype=new o,O.prototype._is_comment=function(t){return t.type===h.COMMENT||t.type===h.BLOCK_COMMENT||t.type===h.UNKNOWN},O.prototype._is_opening=function(t){return t.type===h.START_BLOCK||t.type===h.START_EXPR},O.prototype._is_closing=function(t,e){return(t.type===h.END_BLOCK||t.type===h.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},O.prototype._reset=function(){b=!1},O.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(h.EOF,""):(n=n||this._read_non_javascript(i),n=n||this._read_string(i),n=n||this._read_word(t),n=n||this._read_singles(i),n=n||this._read_comment(i),n=n||this._read_regexp(i,t),n=n||this._read_xml(i,t),n=n||this._read_punctuation(),n=n||this._create_token(h.UNKNOWN,this._input.next()))},O.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(l.allLineBreaks,"\n"),t.type!==h.DOT&&(t.type!==h.RESERVED||"set"!==t.text&&"get"!==t.text)&&k.test(e)?"in"===e||"of"===e?this._create_token(h.OPERATOR,e):this._create_token(h.RESERVED,e):this._create_token(h.WORD,e)):(e=this.__patterns.number.read(),""!==e?this._create_token(h.WORD,e):void 0)},O.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(h.START_EXPR,t):")"===t||"]"===t?e=this._create_token(h.END_EXPR,t):"{"===t?e=this._create_token(h.START_BLOCK,t):"}"===t?e=this._create_token(h.END_BLOCK,t):";"===t?e=this._create_token(h.SEMICOLON,t):"."===t&&g.test(this._input.peek(1))?e=this._create_token(h.DOT,t):","===t&&(e=this._create_token(h.COMMA,t)),e&&this._input.next(),e},O.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(h.EQUALS,t):this._create_token(h.OPERATOR,t)},O.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(h.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(h.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(f)){do{t=this._input.next(),n+=t}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(l.newline);)e+=this._input.next();return b=!0,this._create_token(h.COMMENT,e)}}else if(b&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return b=!1,this._create_token(h.COMMENT,e);return null},O.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=p.get_directives(n);i&&"start"===i.ignore&&(n+=p.readIgnored(this._input)),n=n.replace(l.allLineBreaks,"\n"),e=this._create_token(h.BLOCK_COMMENT,n),e.directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(h.COMMENT,n))}return e},O.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=r(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(l.allLineBreaks,"\n"),this._create_token(h.STRING,e)}return null},O.prototype._allow_regexp_or_xml=function(t){return t.type===h.RESERVED&&i(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===h.END_EXPR&&")"===t.text&&t.opened.previous.type===h.RESERVED&&i(t.opened.previous.text,["if","while","for"])||i(t.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},O.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),i=!1,r=!1;this._input.hasNext()&&(i||r||this._input.peek()!==t)&&!this._input.testChar(l.newline);)n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?r=!0:"]"===this._input.peek()&&(r=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(l.identifier)),this._create_token(h.STRING,n)}return null},O.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",i=this.__patterns.xml.read_match();if(i){for(var r=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),a=0===r.indexOf("{"),o=0;i;){var s=!!i[1],u=i[2];if(!(!!i[i.length-1]||"![CDATA["===u.slice(0,8))&&(u===r||a&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(s?--o:++o),n+=i[0],o<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(l.allLineBreaks,"\n"),this._create_token(h.STRING,n)}}return null},O.prototype._read_string_recursive=function(t,e,n){var i,r;"'"===t?r=this.__patterns.single_quote:'"'===t?r=this.__patterns.double_quote:"`"===t?r=this.__patterns.template_text:"}"===t&&(r=this.__patterns.template_expression);for(var a=r.read(),o="";this._input.hasNext();){if((o=this._input.next())===t||!e&&l.newline.test(o)){this._input.back();break}"\\"===o&&this._input.hasNext()?(i=this._input.peek(),"x"===i||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),o+=this._input.next()):n&&("${"===n&&"$"===o&&"{"===this._input.peek()&&(o+=this._input.next()),n===o&&(o+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(o+=this._input.next()))),o+=r.read(),a+=o}return a},t.exports.Tokenizer=O,t.exports.TOKEN=h,t.exports.positionable_operators=m.slice(),t.exports.line_starters=w.slice()},function(t,e,n){"use strict";function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}var r=RegExp.prototype.hasOwnProperty("sticky");i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},function(t,e,n){"use strict";var i=n(8).InputScanner,r=n(3).Token,a=n(10).TokenStream,o=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},u=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};u.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var t,e=new r(s.START,""),n=null,i=[],o=new a;e.type!==s.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)o.add(t),t=this._get_next_token(e,n);o.isEmpty()||(t.comments_before=o,o=new a),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},u.prototype._is_first_token=function(){return this.__tokens.isEmpty()},u.prototype._reset=function(){},u.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},u.prototype._is_comment=function(t){return!1},u.prototype._is_opening=function(t){return!1},u.prototype._is_closing=function(t,e){return!1},u.prototype._create_token=function(t,e){return new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},u.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=u,t.exports.TOKEN=s},function(t,e,n){"use strict";function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}var r=n(12).Pattern,a={django:!1,erb:!1,handlebars:!1,php:!1};i.prototype=new r,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},i.prototype.read_options=function(t){var e=this._create();for(var n in a)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},i.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},i.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},i.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},i.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=i}]),a=n;i=[],void 0!==(r=function(){return{js_beautify:a}}.apply(e,i))&&(t.exports=r)}()},function(t,e,n){var i,r;!function(){var n=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(i,r,function(e){return t[e]}.bind(null,r));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=15)}([,,function(t,e,n){"use strict";function i(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function r(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function a(t,e){this.__indent_cache=new r(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},r.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},r.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},r.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},a.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(t,e){for(var n=this.__lines.length-2;n>=0;){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=a},,,,function(t,e,n){"use strict";function i(t,e){this.raw_options=r(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function r(t,e){var n={};t=a(t);var i;for(i in t)i!==e&&(n[i]=t[i]);if(e&&t[e])for(i in t[e])n[i]=t[e][i];return n}function a(t){var e,n={};for(e in t){n[e.replace(/-/g,"_")]=t[e]}return n}i.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},i.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},i.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},i.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},i.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some(function(t){return-1===e.indexOf(t)})},t.exports.Options=i,t.exports.normalizeOpts=a,t.exports.mergeOpts=r},,function(t,e,n){"use strict";function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}var r=RegExp.prototype.hasOwnProperty("sticky");i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},,,,,function(t,e,n){"use strict";function i(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}i.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},i.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=i},,function(t,e,n){"use strict";function i(t,e){return new r(t,e).beautify()}var r=n(16).Beautifier,a=n(17).Options;t.exports=i,t.exports.defaultOptions=function(){return new a}},function(t,e,n){"use strict";function i(t,e){this._source_text=t||"",this._options=new r(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}var r=n(17).Options,a=n(2).Output,o=n(8).InputScanner,s=n(13).Directives,u=new s(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,_=/\s/,h=/(?:\s|\n)+/g,p=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;i.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},i.prototype.eatWhitespace=function(t){for(var e=_.test(this._input.peek()),n=!0;_.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(this._options.preserve_newlines||n)&&(n=!1,this._output.add_new_line(!0));return e},i.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,n=this._input.peek(e);n;){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;t-=1}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},i.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},i.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},i.prototype.indent=function(){this._indentLevel++},i.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},i.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&l.test(t||"")&&(e=t.match(l)[0])),t=t.replace(c,"\n");var n=t.match(/^[\t ]*/)[0];this._output=new a(this._options,n),this._input=new o(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,r,s,f=0,g=!1,m=!1,v=!1,b=!1,y=!1,w=this._ch;;){if(i=this._input.read(h),r=""!==i,s=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var x=this._input.read(p),k=u.get_directives(x);k&&"start"===k.ignore&&(x+=u.readIgnored(this._input)),this.print_string(x),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(d)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(r),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var O=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);O.match(/[ :]$/)&&(O=this.eatString(": ").replace(/\s$/,""),this.print_string(O),this._output.space_before_token=!0),O=O.replace(/\s$/,""),"extend"===O?b=!0:"import"===O&&(y=!0),O in this.NESTED_AT_RULE?(this._nestedLevel+=1,O in this.CONDITIONAL_GROUP_RULE&&(v=!0)):g||0!==f||-1===O.indexOf(":")||(m=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(m&&(m=!1,this.outdent()),this.indent(),this._output.space_before_token=!0,this.print_string(this._ch),v?(v=!1,g=this._indentLevel>this._nestedLevel):g=this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===s&&this._output.trim(!0),y=!1,b=!1,m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!g&&!v||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),m||(m=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===f?(m&&(this.outdent(),m=!1),b=!1,y=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f&&(f--,this.outdent()))):(this.preserveSingleSpace(r),this.print_string(this._ch),this.eatWhitespace(),f++,this.indent()):")"===this._ch?(f&&(f--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||m||0!==f||y?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||0!==f?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),_.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(r),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&_.test(this._ch)&&(this._ch=""))}return this._output.get_code(e)},t.exports.Beautifier=i},function(t,e,n){"use strict";function i(t){r.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e}var r=n(6).Options;i.prototype=new r,t.exports.Options=i}]),a=n;i=[],void 0!==(r=function(){return{css_beautify:a}}.apply(e,i))&&(t.exports=r)}()},function(t,e){function n(e,i){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,i)}t.exports=n},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function a(t){if(_===clearTimeout)return clearTimeout(t);if((_===i||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(t);try{return _(t)}catch(e){try{return _.call(null,t)}catch(e){return _.call(this,t)}}}function o(){f&&p&&(f=!1,p.length?d=p.concat(d):g=-1,d.length&&s())}function s(){if(!f){var t=r(o);f=!0;for(var e=d.length;e;){for(p=d,d=[];++g1)for(var n=1;n= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};e.REVISION_CHANGES=p;r.prototype={constructor:r,logger:_.default,log:_.default.log,registerHelper:function(t,e){if("[object Object]"===a.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple helpers");a.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===a.toString.call(t))a.extend(this.partials,t);else{if(void 0===e)throw new s.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===a.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple decorators");a.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){h.resetLoggedProperties()}};var d=_.default.log;e.log=d,e.createFrame=a.createFrame,e.logger=_.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){s.default(t),l.default(t),_.default(t),p.default(t),f.default(t),m.default(t),b.default(t)}function a(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])}e.__esModule=!0,e.registerDefaultHelpers=r,e.moveHelperToHooks=a;var o=n(51),s=i(o),u=n(52),l=i(u),c=n(53),_=i(c),h=n(54),p=i(h),d=n(55),f=i(d),g=n(56),m=i(g),v=n(57),b=i(v)},function(t,e,n){"use strict";e.__esModule=!0;var i=n(10),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=i.indexOf(r.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=r.lookupLevel(t),"undefined"!=typeof console&&r.lookupLevel(r.level)<=t){var e=r.methodMap[t];console[e]||(e="log");for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a100&&(e=r(o))}t[n]=e;var s=[];Object(O.x)(["enumerable","unenumerable","symbol"],function(t){if(e[t])for(var n in e[t])s.push(e[t][n])}),e.proto&&s.push(e.proto);for(var u=0,l=s.length;u0?" \u2026 "+a:"")+"]",i.id=Object(O._34)("json"),i.jsonSplitArr=!0,n[e]=i});var i={};return i.enumerable=n,i.id=t.id,i.type=t.type,t.unenumerable&&(i.unenumerable=t.unenumerable),t.symbol&&(i.symbol=t.symbol),t.proto&&(i.proto=t.proto),i}function a(t,e,n){var i=[],r={};return Object(O.x)(t.enumerable,function(t,e){var n=Object(O._28)(e);Object(O.U)(n)?r[e]=t:i[n]=t}),i.enumerable=r,i.type=n,i.id=e,t.unenumerable&&(i.unenumerable=t.unenumerable),t.symbol&&(i.symbol=t.symbol),t.proto&&(i.proto=t.proto),i}function o(t,e){t=Object(O._30)(t),e=Object(O._30)(e);var n=Object(O._28)(t),i=Object(O._28)(e);if(!Object(O.U)(n)&&!Object(O.U)(i))return n>i?1:na?a:r,u=0;ua?1:re?1:t500&&(t=t.slice(0,500)+"..."),"\u0192 "+Object(O._31)(c(t).replace("function",""))}n.d(e,"a",function(){return j}),n.d(e,"b",function(){return A}),e.d=o,e.c=_;var h=n(16),p=n.n(h),d=n(2),f=n.n(d),g=n(3),m=n.n(g),v=n(7),b=n.n(v),y=n(5),w=n.n(y),x=n(8),k=n.n(x),O=n(0),$=n(4),E=!1,j=function(t){function e(t,r){var a;return f()(this,e),a=b()(this,w()(e).call(this)),E||(Object($.a)(n(31)),E=!0),a._data={id:Object(O._34)("json"),enumerable:{0:t}},a._$el=r,a._map={},i(a._map,a._data),a._appendTpl(),a._bindEvent(),a}return k()(e,t),m()(e,[{key:"_jsonToHtml",value:function(t,e){var n=this,i="";return Object(O.x)(["enumerable","unenumerable","symbol"],function(r){if(t[r]){var a=Object(O._5)(t[r]);a.sort(o);for(var s=0,u=a.length;s').concat(A(t),"
: ")}var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=p()(e);if(null===e)return"
  • ".concat(i(t),'null
  • ');if(Object(O.X)(e)||Object(O.L)(e))return"
  • ".concat(i(t),'').concat(A(e),"
  • ");if("RegExp"===e.type&&(a="regexp"),"Number"===e.type&&(a="number"),"Number"===e.type||"RegExp"===e.type)return"
  • ".concat(i(t),'').concat(A(e.value),"
  • ");if("Undefined"===e.type||"Symbol"===e.type)return"
  • ".concat(i(t),'').concat(Object(O._9)(e.type),"
  • ");if("(...)"===e)return"
  • ".concat(i(t),'').concat(e,"
  • ");if(Object(O.Y)(e)){var o=e.id,s=e.reference,u=l(e)||Object(O._36)(a),c="
  • ').concat(i(t),'').concat(r?"":u,'
      ");return r&&(c+=this._jsonToHtml(this._map[o])),c+'
  • '}return"
  • ".concat(i(t),'"').concat(A(e),'"
  • ')}},{key:"_appendTpl",value:function(){var t=this._map[this._data.id];this._$el.html(this._jsonToHtml(t,!0))}},{key:"_bindEvent",value:function(){var t=this._map,e=this;this._$el.on("click","li",function(n){var i=Object(O.a)(this),r=i.data("object-id"),a=Object(O.a)(this).find("span").eq(0);if(!i.data("first-level")&&(r&&(i.find("ul").html(e._jsonToHtml(t[r],!1)),i.rmAttr("data-object-id")),n.stopImmediatePropagation(),a.hasClass("eruda-expanded"))){var o=i.find("ul").eq(0);a.hasClass("eruda-collapsed")?(a.rmClass("eruda-collapsed"),o.show()):(a.addClass("eruda-collapsed"),o.hide()),e.emit("change")}})}}]),e}(O.c),A=function(t){return Object(O.z)(Object(O._30)(t)).replace(/\n/g,"\u21b5").replace(/\f|\r|\t/g,"")},T=/function(.*?)\((.*?)\)/},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"._container ._json{$ox:auto;$wos:touch;$cu:default;$fs:12px;$lh:1.2;$mh:100%;$c:var(--primary)}._container ._json,._container ._json ul{list-style:none!important}._container ._json ul{$p:0!important;$pl:15px!important;$m:0!important}._container ._json li{$po:relative;$ws:nowrap;$lh:16px;$mh:16px}._container ._json>li>._key{$d:none}._container ._json>li{$p:10px 0}._container ._json ._array ._object ._key{$d:inline}._container ._json ._null{$c:var(--operator-color)}._container ._json ._regexp,._container ._json ._string{$c:var(--string-color)}._container ._json ._number{$c:var(--number-color)}._container ._json ._boolean{$c:var(--keyword-color)}._container ._json ._special{$c:var(--operator-color)}._container ._json ._key,._container ._json ._key-lighter{$c:var(--var-color)}._container ._json ._key-lighter{opacity:.6}._container ._json ._expanded:before{$co:'';$w:0;$h:0;$bo:4px solid transparent;$po:absolute;$btc:var(--foreground);$l:-12px;$t:6px}._container ._json ._collapsed:before{$co:'';$blc:var(--foreground);$btc:transparent;$l:-10px;$t:4px}._container ._json li ._collapsed~._close:before{$c:#999}._container ._json ._hidden~ul{$d:none}._container ._json span{$po:static!important}",""])},function(t,e,n){"use strict";function i(t,e){if(e)return"Function"===e?Object(m.c)(Object(g._29)(t)):"Array"===e?"Array(".concat(t.length,")"):e}n.d(e,"a",function(){return y});var r=n(16),a=n.n(r),o=n(2),s=n.n(o),u=n(3),l=n.n(u),c=n(7),_=n.n(c),h=n(5),p=n.n(h),d=n(8),f=n.n(d),g=n(0),m=n(30),v=n(4),b=!1,y=function(t){function e(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=a.showUnenumerable,u=void 0!==o&&o,l=a.showGetterVal,c=void 0!==l&&l;return s()(this,e),r=_()(this,p()(e).call(this)),b||(Object(v.a)(n(31)),b=!0),r._data=[t],r._$el=i,r._visitor=new w,r._map={},r._showUnenumerable=u,r._showGetterVal=c,r._appendTpl(),r._bindEvent(),r}return f()(e,t),l()(e,[{key:"_objToHtml",value:function(t,e){var n=this,i=this._visitor,r=t,o=!1,s=i.get(t);s&&s.self&&(r=s.self);var u="",l=["enumerable"],c=Object(g._5)(t),_=[],h=[],p=[],d={};if(this._showUnenumerable&&!e&&(l.push("unenumerable"),l.push("symbol"),_=Object(g.w)(Object(g.j)(t,{prototype:!1,unenumerable:!0}),c),h=Object(g.E)(Object(g.j)(t,{prototype:!1,symbol:!0}),function(t){return"symbol"===a()(t)})),Object(g.K)(t)&&t.length>100){l.unshift("virtual"),o=!0;var f=0,v={};Object(g.x)(Object(g.k)(t,100),function(t){var e=Object.create(null),n=f,i="["+n;Object(g.x)(t,function(t){e[f]=t,v[f]=!0,f++});var r=f-1;i+=(r-n>0?" \u2026 "+r:"")+"]",d[i]=e}),p=Object(g._5)(d),c=Object(g.E)(g._5,function(t){return!v[t]})}Object(g.x)(l,function(i){var a=[];a="symbol"===i?h:"unenumerable"===i?_:"virtual"===i?p:c,o||a.sort(m.d);for(var s=0,l=a.length;s').concat(Object(m.b)(t),": ")}var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=this._visitor,l=a()(n),c=Object(g._32)(n,!1);if("virtual"===r&&(c=t),null===n)return"
  • ".concat(o(t),'null
  • ');if(Object(g.X)(n)||Object(g.L)(n))return"
  • ".concat(o(t),'').concat(Object(m.b)(n),"
  • ");if("RegExp"===c&&(l="regexp"),"Number"===c&&(l="number"),"Number"===c||"RegExp"===c)return"
  • ".concat(o(t),'').concat(Object(m.b)(n.value),"
  • ");if("Undefined"===c||"Symbol"===c)return"
  • ".concat(o(t),'').concat(Object(g._9)(c),"
  • ");if("(...)"===n)return"
  • ".concat(o(t),'').concat(n,"
  • ");if(Object(g.Y)(n)){var _,h=u.get(n);if(h)_=h.id;else{var p={};"proto"===r&&(p.self=e),_=u.set(n,p),this._map[_]=n}var d=i(n,c)||Object(g._36)(l),f="
  • ').concat(o(t),'').concat(s?"":d,'
      ");return s&&(f+=this._objToHtml(n)),f+'
  • '}return"
  • ".concat(o(t),'"').concat(Object(m.b)(n),'"
  • ')}},{key:"_appendTpl",value:function(){this._$el.html(this._objToHtml(this._data,!0))}},{key:"_bindEvent",value:function(){var t=this._map,e=this;this._$el.on("click","li",function(n){var i=Object(g.a)(this),r=i.data("object-id"),a=Object(g.a)(this).find("span").eq(0);if(!i.data("first-level")&&(r&&(i.find("ul").html(e._objToHtml(t[r],!1)),i.rmAttr("data-object-id")),n.stopImmediatePropagation(),a.hasClass("eruda-expanded"))){var o=i.find("ul").eq(0);a.hasClass("eruda-collapsed")?(a.rmClass("eruda-collapsed"),o.show()):(a.addClass("eruda-collapsed"),o.hide()),e.emit("change")}})}}]),e}(g.c),w=function(){function t(){s()(this,t),this.id=0,this.visited=[]}return l()(t,[{key:"set",value:function(t,e){var n=this.visited,i=this.id,r={id:i,val:t};return Object(g.C)(r,e),n.push(r),this.id++,i}},{key:"get",value:function(t){for(var e=this.visited,n=0,i=e.length;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.container,n=t.tool,i=t.autoScale,r=void 0===i||i,a=t.useShadowDom,o=void 0===a||a;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(e,o),this._initStyle(),this._initDevTools(),this._initEntryBtn(),this._initSettings(),this._initTools(n),this._registerListener(),r&&this._autoScale())},_isInit:!1,version:"2.1.0",util:m.s,Tool:a.a,Console:o.a,Elements:u.a,Network:s.a,Sources:h.a,Resources:c.a,Info:_.a,Snippets:l.a,Settings:p.a,get:function(t){if(this._checkInit()){if("entryBtn"===t)return this._entryBtn;var e=this._devTools;return t?e.get(t):e}},add:function(t){if(this._checkInit())return Object(m.R)(t)&&(t=t(this)),this._devTools.add(t),this},remove:function(t){return this._devTools.remove(t),this},show:function(t){if(this._checkInit()){var e=this._devTools;return t?e.showTool(t):e.show(),this}},hide:function(){if(this._checkInit())return this._devTools.hide(),this},destroy:function(){this._devTools.destroy(),delete this._devTools,this._entryBtn.destroy(),delete this._entryBtn,this._unregisterListener(),this._$el.remove(),v.a.clear(),this._isInit=!1},scale:function(t){return Object(m.X)(t)?(this._scale=t,d.a.emit(d.a.SCALE,t),this):this._scale},position:function(t){var e=this._entryBtn;return Object(m.Y)(t)?(e.setPos(t),this):e.getPos()},_autoScale:function(){Object(m.T)()&&this.scale(1/Object(m._37)())},_registerListener:function(){var t=this;this._addListener=function(){return t.add.apply(t,arguments)},this._showListener=function(){return t.show.apply(t,arguments)},d.a.on(d.a.ADD,this._addListener),d.a.on(d.a.SHOW,this._showListener),d.a.on(d.a.SCALE,v.a.setScale)},_unregisterListener:function(){d.a.off(d.a.ADD,this._addListener),d.a.off(d.a.SHOW,this._showListener),d.a.off(d.a.SCALE,v.a.setScale)},_checkInit:function(){return this._isInit||f.a.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(t,e){t||(t=document.createElement("div"),document.documentElement.appendChild(t),t.style.all="initial");var i;e&&(t.attachShadow?i=t.attachShadow({mode:"open"}):t.createShadowRoot&&(i=t.createShadowRoot()),i&&(v.a.container=document.head,Object(v.a)(n(34)),t=document.createElement("div"),i.appendChild(t),this._shadowRoot=i)),Object.assign(t,{id:"eruda",className:"eruda-container",contentEditable:!1}),"ios"===Object(m.u)().name&&t.setAttribute("ontouchstart",""),this._$el=Object(m.a)(t)},_initDevTools:function(){this._devTools=new r.a(this._$el)},_initStyle:function(){var t=this._$el;this._shadowRoot?(v.a.container=this._shadowRoot,Object(v.a)(":host { all: initial }")):(t.append('
    ')),v.a.container=t.find(".".concat("eruda-style-container")).get(0)),Object(v.a)(n(125)+n(126)+n(34))},_initEntryBtn:function(){var t=this;this._entryBtn=new i.a(this._$el),this._entryBtn.on("click",function(){return t._devTools.toggle()})},_initSettings:function(){var t=this._devTools,e=new p.a;t.add(e),this._entryBtn.initCfg(e),t.initCfg(e)},_initTools:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["console","elements","network","resources","sources","info","snippets"];e=Object(m._26)(e);var n=this._devTools;e.forEach(function(e){var i=t[Object(m._36)(e)];try{i&&n.add(new i)}catch(t){Object(m._12)(function(){f.a.error("Something wrong when initializing tool ".concat(e,":"),t.message)})}}),n.showTool(e[0]||"settings")}},Object(g.a)(m.s)},function(t,e,n){"use strict";n.d(e,"a",function(){return b});var i=n(2),r=n.n(i),a=n(3),o=n.n(a),s=n(7),u=n.n(s),l=n(5),c=n.n(l),_=n(8),h=n.n(_),p=n(38),d=n.n(p),f=n(17),g=n(11),m=n(0),v=n(4),b=function(t){function e(t){var i;return r()(this,e),i=u()(this,c()(e).call(this)),i._style=Object(v.a)(n(68)),i._$container=t,i._appendTpl(),i._makeDraggable(),i._bindEvent(),i._registerListener(),i}return h()(e,t),o()(e,[{key:"hide",value:function(){this._$el.hide()}},{key:"show",value:function(){this._$el.show()}},{key:"setPos",value:function(t){this._isOutOfRange(t)&&(t=this._getDefPos()),this._$el.css({left:t.x,top:t.y}),this.config.set("pos",t)}},{key:"getPos",value:function(){return this.config.get("pos")}},{key:"destroy",value:function(){v.a.remove(this._style),this._unregisterListener(),this._$el.remove()}},{key:"_isOutOfRange",value:function(t){t=t||this.config.get("pos");var e=this._getDefPos();return t.x>e.x+10||t.x<0||t.y<0||t.y>e.y+10}},{key:"_registerListener",value:function(){var t=this;this._scaleListener=function(){return Object(m._12)(function(){t._isOutOfRange()&&t._resetPos()})},f.a.on(f.a.SCALE,this._scaleListener)}},{key:"_unregisterListener",value:function(){f.a.off(f.a.SCALE,this._scaleListener)}},{key:"_appendTpl",value:function(){var t=this._$container;t.append(n(69)()),this._$el=t.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(t){var e=this.config,n=e.get("pos"),i=this._getDefPos();e.get("rememberPos")&&!t||(n=i),this.setPos(n)}},{key:"_bindEvent",value:function(){var t=this,e=this._draggabilly,n=this._$el;e.on("staticClick",function(){return t.emit("click")}).on("dragStart",function(){return n.addClass("eruda-active")}),e.on("dragEnd",function(){var e=t.config;e.get("rememberPos")&&e.set("pos",{x:Object(m._17)(t._$el.css("left")),y:Object(m._17)(t._$el.css("top"))}),n.rmClass("eruda-active")}),m._15.on("change",function(){return t._resetPos(!0)}),window.addEventListener("resize",function(){return t._resetPos()})}},{key:"_makeDraggable",value:function(){this._draggabilly=new d.a(this._$el.get(0),{containment:!0})}},{key:"initCfg",value:function(t){var e=this.config=g.a.createCfg("entry-button",{rememberPos:!0,pos:this._getDefPos()});t.separator().switch(e,"rememberPos","Remember Entry Button Position"),this._resetPos()}},{key:"_getDefPos",value:function(){var t=this._$el.get(0).offsetWidth+10;return{x:window.innerWidth-t,y:window.innerHeight-t}}}]),e}(m.c)},function(t,e,n){var i,r;!function(a,o){i=[n(39),n(40)],void 0!==(r=function(t,e){return o(a,t,e)}.apply(e,i))&&(t.exports=r)}(window,function(t,e,n){"use strict";function i(t,e){for(var n in e)t[n]=e[n];return t}function r(){}function a(t,e){this.element="string"==typeof t?document.querySelector(t):t,s&&(this.$element=s(this.element)),this.options=i({},this.constructor.defaults),this.option(e),this._create()}function o(t,e,n){return n=n||"round",e?Math[n](t/e)*e:t}var s=t.jQuery,u=a.prototype=Object.create(n.prototype);a.defaults={},u.option=function(t){i(this.options,t)};var l={relative:!0,absolute:!0,fixed:!0};return u._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=i({},this.position);var t=getComputedStyle(this.element);l[t.position]||(this.element.style.position="relative"),this.on("pointerDown",this.onPointerDown),this.on("pointerMove",this.onPointerMove),this.on("pointerUp",this.onPointerUp),this.enable(),this.setHandles()},u.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},u.dispatchEvent=function(t,e,n){var i=[e].concat(n);this.emitEvent(t,i),this.dispatchJQueryEvent(t,e,n)},u.dispatchJQueryEvent=function(e,n,i){var r=t.jQuery;if(r&&this.$element){var a=r.Event(n);a.type=e,this.$element.trigger(a,i)}},u._getPosition=function(){var t=getComputedStyle(this.element),e=this._getPositionCoord(t.left,"width"),n=this._getPositionCoord(t.top,"height");this.position.x=isNaN(e)?0:e,this.position.y=isNaN(n)?0:n,this._addTransformPosition(t)},u._getPositionCoord=function(t,n){if(-1!=t.indexOf("%")){var i=e(this.element.parentNode);return i?parseFloat(t)/100*i[n]:0}return parseInt(t,10)},u._addTransformPosition=function(t){var e=t.transform;if(0===e.indexOf("matrix")){var n=e.split(","),i=0===e.indexOf("matrix3d")?12:4,r=parseInt(n[i],10),a=parseInt(n[i+1],10);this.position.x+=r,this.position.y+=a}},u.onPointerDown=function(t,e){this.element.classList.add("is-pointer-down"),this.dispatchJQueryEvent("pointerDown",t,[e])},u.dragStart=function(t,e){this.isEnabled&&(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.dispatchEvent("dragStart",t,[e]),this.animate())},u.measureContainment=function(){var t=this.getContainer();if(t){var n=e(this.element),i=e(t),r=this.element.getBoundingClientRect(),a=t.getBoundingClientRect(),o=i.borderLeftWidth+i.borderRightWidth,s=i.borderTopWidth+i.borderBottomWidth,u=this.relativeStartPosition={x:r.left-(a.left+i.borderLeftWidth),y:r.top-(a.top+i.borderTopWidth)};this.containSize={width:i.width-o-u.x-n.width,height:i.height-s-u.y-n.height}}},u.getContainer=function(){var t=this.options.containment;if(t){return t instanceof HTMLElement?t:"string"==typeof t?document.querySelector(t):this.element.parentNode}},u.onPointerMove=function(t,e,n){this.dispatchJQueryEvent("pointerMove",t,[e,n])},u.dragMove=function(t,e,n){if(this.isEnabled){var i=n.x,r=n.y,a=this.options.grid,s=a&&a[0],u=a&&a[1];i=o(i,s),r=o(r,u),i=this.containDrag("x",i,s),r=this.containDrag("y",r,u),i="y"==this.options.axis?0:i,r="x"==this.options.axis?0:r,this.position.x=this.startPosition.x+i,this.position.y=this.startPosition.y+r,this.dragPoint.x=i,this.dragPoint.y=r,this.dispatchEvent("dragMove",t,[e,n])}},u.containDrag=function(t,e,n){if(!this.options.containment)return e;var i="x"==t?"width":"height",r=this.relativeStartPosition[t],a=o(-r,n,"ceil"),s=this.containSize[i];return s=o(s,n,"floor"),Math.max(a,Math.min(s,e))},u.onPointerUp=function(t,e){this.element.classList.remove("is-pointer-down"),this.dispatchJQueryEvent("pointerUp",t,[e])},u.dragEnd=function(t,e){this.isEnabled&&(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",t,[e]))},u.animate=function(){if(this.isDragging){this.positionDrag();var t=this;requestAnimationFrame(function(){t.animate()})}},u.setLeftTop=function(){this.element.style.left=this.position.x+"px",this.element.style.top=this.position.y+"px"},u.positionDrag=function(){this.element.style.transform="translate3d( "+this.dragPoint.x+"px, "+this.dragPoint.y+"px, 0)"},u.staticClick=function(t,e){this.dispatchEvent("staticClick",t,[e])},u.setPosition=function(t,e){this.position.x=t,this.position.y=e,this.setLeftTop()},u.enable=function(){this.isEnabled=!0},u.disable=function(){this.isEnabled=!1,this.isDragging&&this.dragEnd()},u.destroy=function(){this.disable(),this.element.style.transform="",this.element.style.left="",this.element.style.top="",this.element.style.position="",this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},u._init=r,s&&s.bridget&&s.bridget("draggabilly",a),a})},function(t,e,n){var i,r;!function(a,o){i=o,void 0!==(r="function"==typeof i?i.call(e,n,e,t):i)&&(t.exports=r)}(window,function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e
    '}function u(t){var e=Object(M.z)(t[0]),n=!1,i="";t.shift();for(var r=0,a=e.length;r"),n=!0,i+='');break;default:r--,t.unshift(s),i+=o}}else i+=o}return n&&(i+=""),t.unshift(i),t}function l(t){t=Object(M._9)(t);var e=t.split(";"),n={};Object(M.x)(e,function(t){if(Object(M.o)(t,":")){var e=t.split(":"),i=m()(e,2),r=i[0],a=i[1];n[Object(M._31)(r)]=Object(M._31)(a)}}),n.display="inline-block",n["max-width"]="100%",n.contain="paint",delete n.width,delete n.height;var i="";return Object(M.x)(n,function(t,e){i+="".concat(e,":").concat(t,";")}),i}function c(t){var e=Object(M.H)(t);return"Array"===e&&t.length>1&&(e="(".concat(t.length,")")),"".concat(e," ").concat(I(t))}function _(t){return'
    '.concat(o(t.toString()),"
    ")}function h(t){return'
    '.concat(Object(M.J)(D.a.html(t.outerHTML,{unformatted:[],indent_size:2}),"html"),"
    ")}function p(){for(var t=new Error,e="",n=t.stack?t.stack.split("\n"):"",i=0,r=n.length;i-1&&i1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;Object(M.t)(e,{accessGetter:z.showGetterVal,unenumerable:z.showUnenumerable,symbol:z.showUnenumerable,timeout:1e3}),f(t,e,function(t){return n(JSON.parse(t))})}function f(t,e,n){var i=Object(M._24)(t,e);Object(M._12)(function(){return n(i)})}n.d(e,"a",function(){return z});var g=n(19),m=n.n(g),v=n(2),b=n.n(v),y=n(3),w=n.n(y),x=n(7),k=n.n(x),O=n(5),$=n.n(O),E=n(14),j=n.n(E),A=n(8),T=n.n(A),S=n(29),C=n.n(S),P=n(81),R=n(20),D=n.n(R),L=n(30),N=n(32),M=n(0),F=n(4),z=function(t){function e(t){var n,i=t.type,r=void 0===i?"log":i,a=t.args,o=void 0===a?[]:a,s=t.id,u=t.group,l=void 0===u?{}:u,c=t.targetGroup,_=void 0===c?{}:c,h=t.displayHeader,d=void 0!==h&&h,f=t.ignoreFilter,g=void 0!==f&&f;return b()(this,e),n=k()(this,$()(e).call(this)),n.type=r,n.group=l,n.targetGroup=_,n.args=o,n.count=1,n.id=s,n.displayHeader=d,n.ignoreFilter=g,n.collapsed=!1,n.el=document.createElement("li"),n.el.log=j()(n),n.height=0,n.width=0,n._$el=Object(M.a)(n.el),d&&(n.time=G(),n.from=p()),n._formatMsg(),n.group&&n.checkGroup(),n}return T()(e,t),w()(e,[{key:"checkGroup",value:function(){for(var t=this.group,e=!1;t;){if(t.collapsed){e=!0;break}t=t.parent}return e!==this.collapsed&&(this.collapsed=e,!0)}},{key:"updateIcon",value:function(t){return this._$el.find(".eruda-icon").rmAttr("class").addClass(["eruda-icon","eruda-icon-".concat(t)]),this}},{key:"addCount",value:function(){this.count++;var t=this.count,e=this._$el,n=e.find(".eruda-count-container"),i=e.find(".eruda-icon-container"),r=n.find(".eruda-count");return 2===t&&n.rmClass("eruda-hidden"),r.text(t),i.addClass("eruda-hidden"),this}},{key:"groupEnd",value:function(){return this._$el.find(".eruda-nesting-level:not(.eruda-group-closed)").last().addClass("eruda-group-closed"),this}},{key:"updateTime",value:function(t){var e=this._$el,n=e.find(".eruda-time-container");return this.time&&(n.find("span").eq(0).text(t),this.time=t),this}},{key:"isAttached",value:function(){return!!this.el.parentNode}},{key:"updateSize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.el.offsetHeight;this.height!==e&&(this.height=this.el.offsetHeight,this.width=this.el.offsetWidth,t||this.emit("updateSize"))}},{key:"html",value:function(){return this.el.outerHTML}},{key:"text",value:function(){return this._content.textContent}},{key:"_needSrc",value:function(){var t=this.type,e=this.args;if("html"===t)return!1;for(var n=0,i=e.length;n0&&void 0!==arguments[0]?arguments[0]:M._13,n=this.args,i=this.type,r=function(n){t.src=n,e()};"table"===i?d(n[0],{},r):d(1===n.length&&Object(M.Y)(n[0])?n[0]:n,{},r)}},{key:"click",value:function(t){var n=this,i=this.type,r=this.src,a=this.args,o=this._$el;switch(i){case"log":case"warn":case"info":case"debug":case"output":case"table":case"dir":case"group":case"groupCollapsed":if(r||a){var s=o.find(".eruda-json");if(s.hasClass("eruda-hidden")){if("true"!==s.data("init")){if(r){new L.a(r,s).on("change",function(){return n.updateSize(!1)})}else{"table"!==i&&1!==a.length||Object(M.Y)(a[0])&&(a=a[0]);new N.a(a,s,{showUnenumerable:e.showUnenumerable,showGetterVal:e.showGetterVal}).on("change",function(){return n.updateSize(!1)})}s.data("init","true")}s.rmClass("eruda-hidden")}else s.addClass("eruda-hidden")}else"group"!==i&&"groupCollapsed"!==i||t.toggleGroup(this);break;case"error":o.find(".eruda-stack").toggleClass("eruda-hidden")}this.updateSize(!1)}},{key:"_formatMsg",value:function(){var t=this.args,n=this.type,r=this.id,l=this.displayHeader,c=this.time,_=this.from,h=this.group;t=Object(M.l)(t),this._needSrc()&&!e.lazyEvaluation&&this.extractObj();var p,d,f="";switch("group"!==n&&"groupCollapsed"!==n||0===t.length&&(t=["console.group"]),n){case"log":case"debug":f=s(t);break;case"dir":f=W(t);break;case"info":f=s(t);break;case"warn":p="warn",f=s(t);break;case"error":Object(M._2)(t[0])&&1!==t.length&&(t=u(t)),d=t[0],p="error",d=Object(M.P)(d)?d:new Error(s(t)),this.src=d,f=a(d);break;case"table":f=i(t);break;case"html":f=t[0];break;case"input":f=o(t[0]),p="arrow-right";break;case"output":f=s(t),p="arrow-left";break;case"groupCollapsed":f=s(t),p="caret-right";break;case"group":f=s(t),p="caret-down"}this._needSrc()&&e.lazyEvaluation||delete this.args,"error"===n||this.args||(f=Object(M._7)(f,function(t){return'').concat(t,"")})),f=V({msg:f,type:n,icon:p,id:r,displayHeader:l,time:c,from:_,group:h}),this._$el.addClass("eruda-log-container").html(f),this._$content=this._$el.find(".eruda-log-content"),this._content=this._$content.get(0)}}]),e}(M.c);C()(z,"showGetterVal",!1),C()(z,"showUnenumerable",!0),C()(z,"lazyEvaluation",!0);var I=Object(M._38)(P.a,function(t,e){return''+t(e,{getterVal:z.showGetterVal,unenumerable:!1})+""}),B="__ErudaValue",H=/https?:\/\/([0-9.\-A-Za-z]+)(?::(\d+))?\/[A-Z.a-z0-9\/]*\.js/g,U=/eruda(\.min)?\.js/,W=function(t){return s(t,{htmlForEl:!1})},G=function(){return Object(M.q)("HH:MM:ss")},q=n(84),V=function(t){return q(t)}},function(t,e,n){"use strict";function i(t){function e(t){return t=Object(a._30)(t),Object(a.o)(u,t)||Object(a._23)(t,"Array[")?A+T(t)+S:j+T('"'.concat(t,'"'))+S}function l(n){if(v>w)return void(O=", \u2026");var r=C(Object(a.A)(n));if(!f){if(Object.getOwnPropertyDescriptor(t,n).get)return x.push("".concat(r,": ").concat(e("(...)"))),void v++}x.push("".concat(r,": ").concat(i(_[n],$))),v++}var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_=c.topObj,h=c.level,p=void 0===h?0:h,d=c.getterVal,f=void 0!==d&&d,g=c.unenumerable,m=void 0===g||g;s||(Object(o.a)(n(82)),s=!0);var v,b="",y="",w=5,x=[],k=[],O="";_=_||t;var $={getterVal:f,unenumerable:m,level:p+1},E=0===p,j='',A='',T=function(t){return Object(a.z)(t).replace(/\\n/g,"\u21b5").replace(/\\f|\\r|\\t/g,"").replace(/\\/g,"")},S="",C=function(t){return''+T(t)+S};try{y={}.toString.call(t)}catch(t){y="[object Object]"}var P="[object String]"==y,R="[object Array]"==y,D="[object Object]"==y,L="[object Number]"==y,N="[object RegExp]"==y,M="[object Symbol]"==y,F="[object Function]"==y,z="[object Boolean]"==y;if(P)b=e(Object(a.A)(t));else if(N)b=function(t){return j+t+S}(Object(a.A)(t.toString()));else if(F)b=e("\u0192");else if(R)if(E){b="[";var I=t.length,B="";I>100&&(I=100,B=", \u2026");for(var H=0;H'+t+S}(b);else if(z)b=function(t){return''+t+S}(t?"true":"false");else if(null===t)b=function(t){return''+t+S}("null");else if(M)b=e("Symbol");else if(void 0===t)b=e("undefined");else try{r(t)&&(t=Object.getPrototypeOf(t)),E?(v=1,b="{ ",k=m?Object.getOwnPropertyNames(t):Object.keys(t),Object(a.x)(k,l),b+=x.join(", ")+O+" }"):"Object"===(b=Object(a.H)(t))&&(b="{\u2026}")}catch(n){b=e(t)}return b}function r(t){var e=Object(a.O)(Object.getOwnPropertyNames(t)),n=Object.getPrototypeOf(t);return e&&n&&n!==Object.prototype}e.a=i;var a=n(0),o=n(4),s=!1,u=["(...)","undefined","Symbol","Object","\u0192"]},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"._container ._abstract ._key{$c:var(--var-color)}._container ._abstract ._number{$c:var(--number-color)}._container ._abstract ._null{$c:var(--operator-color)}._container ._abstract ._string{$c:var(--string-color)}._container ._abstract ._boolean{$c:var(--keyword-color)}._container ._abstract ._special{$c:var(--operator-color)}",""])},function(t,e,n){var i,r;!function(){var a=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(i,r,function(e){return t[e]}.bind(null,r));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=18)}([,,function(t,e,n){"use strict";function i(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function r(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function a(t,e){this.__indent_cache=new r(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},r.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},r.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},r.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},a.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(t,e){for(var n=this.__lines.length-2;n>=0;){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=a},function(t,e,n){"use strict";function i(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=i},,,function(t,e,n){"use strict";function i(t,e){this.raw_options=r(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function r(t,e){var n={};t=a(t);var i;for(i in t)i!==e&&(n[i]=t[i]);if(e&&t[e])for(i in t[e])n[i]=t[e][i];return n}function a(t){var e,n={};for(e in t){n[e.replace(/-/g,"_")]=t[e]}return n}i.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},i.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},i.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},i.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},i.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some(function(t){return-1===e.indexOf(t)})},t.exports.Options=i,t.exports.normalizeOpts=a,t.exports.mergeOpts=r},,function(t,e,n){"use strict";function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}var r=RegExp.prototype.hasOwnProperty("sticky");i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},function(t,e,n){"use strict";var i=n(8).InputScanner,r=n(3).Token,a=n(10).TokenStream,o=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},u=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};u.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var t,e=new r(s.START,""),n=null,i=[],o=new a;e.type!==s.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)o.add(t),t=this._get_next_token(e,n);o.isEmpty()||(t.comments_before=o,o=new a),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},u.prototype._is_first_token=function(){return this.__tokens.isEmpty()},u.prototype._reset=function(){},u.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},u.prototype._is_comment=function(t){return!1},u.prototype._is_opening=function(t){return!1},u.prototype._is_closing=function(t,e){return!1},u.prototype._create_token=function(t,e){return new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},u.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=u,t.exports.TOKEN=s},function(t,e,n){"use strict";function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}var r=n(12).Pattern,a={django:!1,erb:!1,handlebars:!1,php:!1};i.prototype=new r,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},i.prototype.read_options=function(t){var e=this._create();for(var n in a)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},i.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},i.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},i.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},i.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=i},,,,function(t,e,n){"use strict";function i(t,e,n,i){return new r(t,e,n,i).beautify()}var r=n(19).Beautifier,a=n(20).Options;t.exports=i,t.exports.defaultOptions=function(){return new a}},function(t,e,n){"use strict";function i(t,e){return-1!==e.indexOf(t)}function r(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function a(t){this._printer=t,this._current_frame=null}function o(t,e,n,i){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=i,this._tag_stack=null;var r=new s(e,"html");this._options=r,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}var s=n(20).Options,u=n(2).Output,l=n(21).Tokenizer,c=n(21).TOKEN,_=/\r\n|[\r\n]/,h=/\r\n|[\r\n]/g,p=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new u(t,e)};p.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},p.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},p.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},p.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},p.prototype.print_preserved_newlines=function(t){var e=0;t.type!==c.TEXT&&t.previous.type!==c.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines0);return 0!==e},p.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},p.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},p.prototype.print_newline=function(t){this._output.add_new_line(t)},p.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},p.prototype.indent=function(){this.indent_level++},p.prototype.get_full_indent=function(t){return t=this.indent_level+(t||0),t<1?"":this._output.get_indent_string(t)};var d=function(t){for(var e=null,n=t.next;n.type!==c.EOF&&t.closed!==n;){if(n.type===c.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===c.EQUALS&&n.next.next&&n.next.next.type===c.VALUE&&(e=n.next.next.text);break}n=n.next}return e},f=function(t,e){var n=null,i=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),n=d(e)||n,n.search("text/css")>-1?i="css":n.search(/(text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect)/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};a.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},a.prototype.record_tag=function(t){var e=new r(this._current_frame,t,this._printer.indent_level);this._current_frame=e},a.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},a.prototype._get_frame=function(t,e){for(var n=this._current_frame;n&&-1===t.indexOf(n.tag);){if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},a.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},a.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},o.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&_.test(t)&&(e=t.match(_)[0])),t=t.replace(h,"\n");var n=t.match(/^[\t ]*/)[0],i={text:"",type:""},r=new g,o=new p(this._options,n),s=new l(t,this._options).tokenize();this._tag_stack=new a(o);for(var u=null,d=s.next();d.type!==c.EOF;)d.type===c.TAG_OPEN||d.type===c.COMMENT?(u=this._handle_tag_open(o,d,r,i),r=u):d.type===c.ATTRIBUTE||d.type===c.EQUALS||d.type===c.VALUE||d.type===c.TEXT&&!r.tag_complete?u=this._handle_inside_tag(o,d,r,s):d.type===c.TAG_CLOSE?u=this._handle_tag_close(o,d,r):d.type===c.TEXT?u=this._handle_text(o,d,r):o.add_raw_token(d),i=u,d=s.next();return o._output.get_code(e)},o.prototype._handle_tag_close=function(t,e,n){var i={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),i},o.prototype._handle_inside_tag=function(t,e,n,i){var r=n.has_wrapped_attrs,a={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted)t.add_raw_token(e);else if("{"===n.tag_start_char&&e.type===c.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===c.ATTRIBUTE?(t.set_space_before_token(!0),n.attr_count+=1):e.type===c.EQUALS?t.set_space_before_token(!1):e.type===c.VALUE&&e.previous.type===c.EQUALS&&t.set_space_before_token(!1),e.type===c.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),r=r||0!==e.newlines),this._is_wrap_attributes_force)){var o=n.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var s,u=!0,l=0;do{if(s=i.peek(l),s.type===c.ATTRIBUTE){u=!1;break}l+=1}while(l<4&&s.type!==c.EOF&&s.type!==c.TAG_CLOSE);o=!u}o&&(t.print_newline(!1),r=!0)}t.print_token(e),r=r||t.previous_token_wrapped(),n.has_wrapped_attrs=r}return a},o.prototype._handle_text=function(t,e,n){var i={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),i},o.prototype._print_custom_beatifier_text=function(t,e,n){var i=this;if(""!==e.text){var r,a=e.text,s=1,u="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(t,e){return new o(t,e,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?s=0:"separate"===this._options.indent_scripts&&(s=-t.indent_level);var c=t.get_full_indent(s);if(a=a.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===a[0]&&a.match(/^(|]]>)$/.exec(a);if(!_)return void t.add_raw_token(e);u=c+_[1]+"\n",a=_[4],_[5]&&(l=c+_[5]),a=a.replace(/\n[ \t]*$/,""),(_[2]||-1!==_[3].indexOf("\n"))&&(_=_[3].match(/[ \t]+$/))&&(e.whitespace_before=_[0])}if(a)if(r){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options;var p=new h;a=r(c+a,p)}else{var d=e.whitespace_before;d&&(a=a.replace(new RegExp("\n("+d+")?","g"),"\n")),a=c+a.replace(/\n/g,"\n"+c)}u&&(a=a?u+a+"\n"+l:u+l),t.print_newline(!1),a&&(e.text=a,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},o.prototype._handle_tag_open=function(t,e,n,i){var r=this._get_tag_open_token(e);return(n.is_unformatted||n.is_content_unformatted)&&e.type===c.TAG_OPEN&&0===e.text.indexOf("]*)/),this.tag_check=n?n[1]:""):(n=e.text.match(/^{{[#\^]?([^\s}]+)/),this.tag_check=n?n[1]:""),this.tag_check=this.tag_check.toLowerCase(),e.type===c.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))}else this.tag_complete=!0};o.prototype._get_tag_open_token=function(t){var e=new g(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||i(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&i(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&i(e.tag_check,this._options.content_unformatted),e.is_inline_element=i(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},o.prototype._set_tag_position=function(t,e,n,r,a){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||(n.parent&&(n.parent.multiline_content=!0),t.print_newline(!1))),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=f(n.tag_check,e)))),i(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;t.current_line_has_match(/{{#if/)||t.print_newline(!1)}"!--"===n.tag_name&&a.type===c.TAG_CLOSE&&r.is_end_tag&&-1===n.text.indexOf("\n")||n.is_inline_element||n.is_unformatted||t.print_newline(!1)}else n.is_unformatted||n.is_content_unformatted?n.is_inline_element||n.is_unformatted||t.print_newline(!1):n.is_end_tag?(n.start_tag_token&&n.start_tag_token.multiline_content||!(n.is_inline_element||r.is_inline_element||a.type===c.TAG_CLOSE&&n.start_tag_token===r||"TK_CONTENT"===a.type))&&t.print_newline(!1):(n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||"TK_CONTENT"===a.type||(n.parent&&(n.parent.multiline_content=!0),t.print_newline(!1)))},o.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent)return"body"===t.tag_name?e=e||this._tag_stack.try_pop("head"):"li"===t.tag_name?e=e||this._tag_stack.try_pop("li",["ol","ul"]):"dd"===t.tag_name||"dt"===t.tag_name?(e=e||this._tag_stack.try_pop("dt",["dl"]),e=e||this._tag_stack.try_pop("dd",["dl"])):"rp"===t.tag_name||"rt"===t.tag_name?(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]),e=e||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===t.tag_name||"tfoot"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("thead",["table"]),e=e||this._tag_stack.try_pop("tbody",["table"])):"tr"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==t.tag_name&&"td"!==t.tag_name||(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),e=e||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"])),t.parent=this._tag_stack.get_parser_token(),e},t.exports.Beautifier=o},function(t,e,n){"use strict";function i(t){r.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}var r=n(6).Options;i.prototype=new r,t.exports.Options=i},function(t,e,n){"use strict";var i=n(9).Tokenizer,r=n(9).TOKEN,a=n(13).Directives,o=n(14).TemplatablePattern,s=n(12).Pattern,u={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},l=new a(/<\!--/,/-->/),c=function(t,e){i.call(this,t,e),this._current_tag_name="";var n=new o(this._input).read_options(this._options),r=new s(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(//),cdata:r.starting_with(//),conditional_comment:r.starting_with(//),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var a=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(a).until_after(a)}};c.prototype=new i,c.prototype._is_comment=function(t){return!1},c.prototype._is_opening=function(t){return t.type===u.TAG_OPEN},c.prototype._is_closing=function(t,e){return t.type===u.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(u.EOF,""):(n=n||this._read_open_handlebars(i,e),n=n||this._read_attribute(i,t,e),n=n||this._read_raw_content(i,t,e),n=n||this._read_close(i,e),n=n||this._read_content_word(i),n=n||this._read_comment_or_cdata(i),n=n||this._read_processing(i),n=n||this._read_open(i,e),n=n||this._create_token(u.UNKNOWN,this._input.next()))},c.prototype._read_comment_or_cdata=function(t){var e=null,n=null,i=null;if("<"===t){"!"===this._input.peek(1)&&(n=this.__patterns.comment.read(),n?(i=l.get_directives(n))&&"start"===i.ignore&&(n+=l.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&(e=this._create_token(u.COMMENT,n),e.directives=i)}return e},c.prototype._read_processing=function(t){var e=null,n=null;if("<"===t){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(e=this._create_token(u.COMMENT,n),e.directives=null)}return e},c.prototype._read_open=function(t,e){var n=null,i=null;return e||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(u.TAG_OPEN,n)),i},c.prototype._read_open_handlebars=function(t,e){var n=null,i=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),i=this._create_token(u.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(u.TAG_OPEN,n))),i},c.prototype._read_close=function(t,e){var n=null,i=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),i=this._create_token(u.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(u.TAG_CLOSE,"}}"))),i},c.prototype._read_attribute=function(t,e,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===t)i=this._create_token(u.EQUALS,this._input.next());else if('"'===t||"'"===t){var a=this._input.next();a+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(u.VALUE,a)}else(r=this.__patterns.attribute.read())&&(i=e.type===u.EQUALS?this._create_token(u.VALUE,r):this._create_token(u.ATTRIBUTE,r));return i},c.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},c.prototype._read_raw_content=function(t,e,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(e.type===u.TAG_CLOSE&&"<"===e.opened.text[0]){var r=e.opened.text.substr(1).toLowerCase();if("script"===r||"style"===r){var a=this._read_comment_or_cdata(t);if(a)return a.type=u.TEXT,a;i=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(u.TEXT,i):null},c.prototype._read_content_word=function(t){var e="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(u.TEXT,e)},t.exports.Tokenizer=c,t.exports.TOKEN=u}]),o=a;i=[n,n(21),n(22)],void 0!==(r=function(t){var e=n(21),i=n(22);return{html_beautify:function(t,n){return o(t,n,e.js_beautify,i.css_beautify)}}}.apply(e,i))&&(t.exports=r)}()},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({1:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
    "+(null!=(a=l(n,"repeat").call(o,null!=(a=null!=e?l(e,"group"):e)?l(a,"indentLevel"):a,{name:"repeat",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?a:"")+"
    "+u(s(null!=e?l(e,"time"):e,e))+""+u(s(null!=e?l(e,"from"):e,e))+"
    "},2:function(t,e,n,i,r){var a;return"
    "},4:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
    "},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(a=s(n,"if").call(o,null!=e?s(e,"displayHeader"):e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?a:"")+"
    "+(null!=(a=s(n,"repeat").call(o,null!=(a=null!=e?s(e,"group"):e)?s(a,"indentLevel"):a,{name:"repeat",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?a:"")+" "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"icon"):e,{name:"if",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?a:"")+"
    "+(null!=(a=t.lambda(null!=e?s(e,"msg"):e,e))?a:"")+"
    "},useData:!0})},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"._console-container ._logs-container{$oy:auto;$wos:touch;$h:100%;$po:relative;$wc:scroll-position}._console-container ._fake-logs{$po:absolute;$l:0;$t:0;$pe:none;$v:hidden;$w:100%}._console-container ._fake-logs *{$o:hidden;$c:#000;$po:static}._console-container ._logs{$fs:14px;$pt:1px}._console-container ._log-container{$bsi:content-box}._console-container ._header{$ws:nowrap;$d:-webkit-box;$d:flex;$fs:12px;$c:var(--link-color);$bt:1px solid transparent;$bb:1px solid var(--border)}._console-container ._header ._time-container{$ox:auto;$wos:touch;$p:3px 10px}._console-container ._nesting-level{$w:14px;$fsh:0;$mt:-1px;$mb:-1px;$po:relative;$br:1px solid var(--border)}._console-container ._nesting-level._group-closed::before{$co:''}._console-container ._nesting-level::before{$bb:1px solid var(--border);$po:absolute;$t:0;$l:0;$ml:100%;$w:5px;$h:100%;$bsi:border-box}._console-container ._log-item{$po:relative;$d:-webkit-box;$d:flex;$bt:1px solid transparent;$bb:1px solid var(--border);$mt:-1px;$mh:24px;$c:var(--foreground)}._console-container ._log-item:after{$co:'';$d:block;$cl:both}._console-container ._log-item a{$c:var(--link-color)!important}._console-container ._log-item ._icon-container{$pt:2px;$m:0 -6px 0 10px}._console-container ._log-item ._icon-container ._icon{$lh:20px;$fs:12px;$c:var(--foreground);$po:relative}._console-container ._log-item ._icon-container ._icon-caret-down,._console-container ._log-item ._icon-container ._icon-caret-right{$l:-2px}._console-container ._log-item ._icon-container ._icon-error{$c:#ef3842}._console-container ._log-item ._icon-container ._icon-warn{$t:-1px;$c:#e8a400}._console-container ._log-item ._count{$b:var(--text-color);$p:2px 4px;$c:#000;$bra:10px;$fs:12px;$f:left;$m:2px -6px 0 10px}._console-container ._log-item ._log-content-wrapper{-webkit-box-flex:1;$fl:1;$o:hidden}._console-container ._log-item ._log-content{$p:3px 0;$m:0 10px;$ox:auto;$wos:touch;$ws:pre-wrap;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text}._console-container ._log-item ._log-content *{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text}._console-container ._log-item._html table,._console-container ._log-item._table table{$w:100%;$bc:collapse;$o:hidden;$c:var(--foreground)}._console-container ._log-item._html table th,._console-container ._log-item._table table th{$b:var(--darker-background)}._console-container ._log-item._html table td,._console-container ._log-item._html table th,._console-container ._log-item._table table td,._console-container ._log-item._table table th{$bo:1px solid var(--border);$p:3px 10px}._console-container ._log-item._html table tr:nth-child(even),._console-container ._log-item._table table tr:nth-child(even){$b:var(--contrast)}._console-container ._log-item._error{$z:50;$b:var(--console-error-background);$c:var(--console-error-foreground);$bt:1px solid var(--console-error-border);$bb:1px solid var(--console-error-border)}._console-container ._log-item._error ._stack{$pl:1.2em;$ws:nowrap}._console-container ._log-item._error ._count{$b:var(--console-error-foreground)}._console-container ._log-item._debug{$z:20}._console-container ._log-item._input{border-bottom-color:transparent}._console-container ._log-item._warn{$z:40;$c:var(--console-warn-foreground);$b:var(--console-warn-background);$bt:1px solid var(--console-warn-border);$bb:1px solid var(--console-warn-border)}._console-container ._log-item._warn ._count{$b:#e8a400}._console-container ._log-item._info{$z:30}._console-container ._log-item._group,._console-container ._log-item._groupCollapsed{$fw:700}",""])},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"._container ._console-container{$pt:40px;$pb:24px}._console-container{$w:100%;$h:100%}._console-container._js-input-hidden{$pb:0}._console-container ._control{$po:absolute;$w:100%;$h:40px;$l:0;$t:0;$cu:default;$fs:0;$p:10px 10px 10px 35px;$b:var(--darker-background);$c:var(--primary);$lh:20px;$bb:1px solid var(--border)}._console-container ._control ._icon-clear,._console-container ._control ._icon-search{$d:inline-block;$p:10px;$fs:16px;$po:absolute;$t:1px;$cu:pointer;-webkit-transition:color .3s;$tr:color .3s}._console-container ._control ._icon-clear:active,._console-container ._control ._icon-search:active{$c:var(--accent)}._console-container ._control ._icon-clear{padding-right:0;$l:0}._console-container ._control ._icon-search{right:0}._console-container ._control ._filter{$cu:pointer;$fs:12px;$h:20px;$d:inline-block;$m:0 2px;$p:0 4px;$lh:20px;-webkit-transition:background .3s,color .3s;$tr:background .3s,color .3s}._console-container ._control ._filter._active{$b:var(--highlight);$c:var(--select-foreground)}._console-container ._control ._search-keyword{$po:absolute;$lh:20px;max-width:80px;$o:hidden;right:40px;$fs:14px;text-overflow:ellipsis}._console-container ._js-input{$pe:none;$po:absolute;$z:100;$l:0;bottom:0;$w:100%;$bt:1px solid var(--border);$h:24px}._console-container ._js-input ._icon-arrow-right{$lh:23px;$c:var(--accent);$po:absolute;$l:10px;$t:0;$z:10}._console-container ._js-input._active{$h:100%;$pt:40px;$pb:40px;$bt:none}._console-container ._js-input._active ._icon-arrow-right{$d:none}._console-container ._js-input ._buttons{$d:none;$po:absolute;$l:0;bottom:0;$w:100%;$h:40px;$c:var(--primary);$b:var(--darker-background);$fs:12px;$bt:1px solid var(--border)}._console-container ._js-input ._buttons ._button{$pe:all;$cu:pointer;$w:50%;$d:inline-block;$ta:center;$br:1px solid var(--border);$h:40px;$lh:40px;-webkit-transition:background .3s,color .3s;$tr:background .3s,color .3s}._console-container ._js-input ._buttons ._button:last-child{$br:none}._console-container ._js-input ._buttons ._button:active{$c:var(--select-foreground);$b:var(--highlight)}._console-container ._js-input textarea{$pe:all;$p:3px 10px;$ou:0;$bo:none;$fs:14px;$w:100%;$h:100%;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text;resize:none;$c:var(--primary);$b:var(--background)}",""])},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
    All Error Warning Info
        Cancel
        Execute
        "},useData:!0})},function(t,e,n){"use strict";n.d(e,"a",function(){return k});var i=n(89),r=n.n(i),a=n(2),o=n.n(a),s=n(3),u=n.n(s),l=n(7),c=n.n(l),_=n(5),h=n.n(_),p=n(12),d=n.n(p),f=n(8),g=n.n(f),m=n(9),v=n(90),b=n(91),y=n(11),w=n(0),x=n(4),k=function(t){function e(){var t;return o()(this,e),t=c()(this,h()(e).call(this)),t._style=Object(x.a)(n(92)),t.name="network",t._requests={},t._tpl=n(93),t._detailTpl=n(94),t._requestsTpl=n(95),t._datailData={},t._isFetchSupported=!1,window.fetch&&(t._isFetchSupported=Object(w.V)(window.fetch)),t}return g()(e,t),u()(e,[{key:"init",value:function(t,n){d()(h()(e.prototype),"init",this).call(this,t),this._container=n,this._bindEvent(),this._initCfg(),this.overrideXhr(),this._appendTpl()}},{key:"show",value:function(){d()(h()(e.prototype),"show",this).call(this),this._render()}},{key:"clear",value:function(){this._requests={},this._render()}},{key:"overrideXhr",value:function(){var t=window.XMLHttpRequest.prototype,e=this._origSend=t.send,n=this._origOpen=t.open,i=this._origSetRequestHeader=t.setRequestHeader,r=this;t.open=function(t,e){var i=this,a=i.erudaRequest=new v.a(i,t,e);a.on("send",function(t,e){return r._addReq(t,e)}),a.on("update",function(t,e){return r._updateReq(t,e)}),i.addEventListener("readystatechange",function(){switch(i.readyState){case 2:return a.handleHeadersReceived();case 4:return a.handleDone()}}),n.apply(this,arguments)},t.send=function(t){var n=this.erudaRequest;n&&n.handleSend(t),e.apply(this,arguments)},t.setRequestHeader=function(t,e){var n=this.erudaRequest;n&&n.handleReqHeadersSet(t,e),i.apply(this,arguments)}}},{key:"restoreXhr",value:function(){var t=window.XMLHttpRequest.prototype;this._origOpen&&(t.open=this._origOpen),this._origSend&&(t.send=this._origSend),this._origSetRequestHeader&&(t.setRequestHeader=this._origSetRequestHeader)}},{key:"overrideFetch",value:function(){if(this._isFetchSupported){var t=this._origFetch=window.fetch,e=this;window.fetch=function(){for(var n=arguments.length,i=new Array(n),a=0;a=300)&&(n.hasErr=!0),this._render())}},{key:"_bindEvent",value:function(){function t(t,e){var n=i.get("sources");n&&(n.set(t,e),i.showTool("sources"))}var e=this,n=this._$el,i=this._container,r=this;n.on("click",".eruda-request",function(){var t=Object(w.a)(this).data("id"),e=r._requests[t];e.done&&r._showDetail(e)}).on("click",".eruda-clear-request",function(){return e.clear()}).on("click",".eruda-back",function(){return e._hideDetail()}).on("click",".eruda-http .eruda-response",function(){var n=e._detailData,i=n.resTxt;switch(n.subType){case"css":return t("css",i);case"html":return t("html",i);case"javascript":return t("js",i);case"json":return t("object",i)}switch(n.type){case"image":return t("img",n.url)}})}},{key:"destroy",value:function(){d()(h()(e.prototype),"destroy",this).call(this),x.a.remove(this._style),this.restoreXhr(),this.restoreFetch(),this._rmCfg()}},{key:"_showDetail",value:function(t){t.resTxt&&""===Object(w._31)(t.resTxt)&&delete t.resTxt,Object(w.O)(t.resHeaders)&&delete t.resHeaders,this._$detail.html(this._detailTpl(t)).show(),this._detailData=t}},{key:"_hideDetail",value:function(){this._$detail.hide()}},{key:"_rmCfg",value:function(){var t=this.config,e=this._container.get("settings");e&&e.remove(t,"overrideFetch").remove("Network")}},{key:"_appendTpl",value:function(){var t=this._$el;t.html(this._tpl()),this._$detail=t.find(".eruda-detail"),this._$requests=t.find(".eruda-requests")}},{key:"_initCfg",value:function(){var t=this,e=this.config=y.a.createCfg("network",{overrideFetch:!0});e.get("overrideFetch")&&this.overrideFetch(),e.on("change",function(e,n){switch(e){case"overrideFetch":return n?t.overrideFetch():t.restoreFetch()}}),this._container.get("settings").text("Network").switch(e,"overrideFetch","Catch Fetch Requests").separator()}},{key:"_render",value:function(){if(this.active){var t={};Object(w.O)(this._requests)||(t.requests=this._requests),this._renderHtml(this._requestsTpl(t))}}},{key:"_renderHtml",value:function(t){t!==this._lastHtml&&(this._lastHtml=t,this._$requests.html(t))}}]),e}(m.a)},function(t,e,n){function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function r(e,n,o){return i()?t.exports=r=Reflect.construct:t.exports=r=function(t,e,n){var i=[null];i.push.apply(i,e);var r=Function.bind.apply(t,i),o=new r;return n&&a(o,n.prototype),o},r.apply(null,arguments)}var a=n(23);t.exports=r},function(t,e,n){"use strict";function i(t){var e=t.getAllResponseHeaders(),n=e.split("\n"),i={};return Object(v.x)(n,function(t){if(""!==(t=Object(v._31)(t))){var e=t.split(":",2),n=o()(e,2),r=n[0],a=n[1];i[r]=Object(v._31)(a)}}),i}function r(t,e,n){function i(){if(!e){var n=t.responseType,i="";""!==n&&"text"!==n||(i=t.responseText),i&&(r=Object(m.b)(i))}}var r=0;if(Object(v.M)(n))i();else try{r=Object(v._28)(t.getResponseHeader("Content-Length"))}catch(t){i()}return 0===r&&i(),"".concat(Object(v.D)(r),"B")}n.d(e,"a",function(){return b});var a=n(19),o=n.n(a),s=n(2),u=n.n(s),l=n(3),c=n.n(l),_=n(7),h=n.n(_),p=n(5),d=n.n(p),f=n(8),g=n.n(f),m=n(33),v=n(0),b=function(t){function e(t,n,i){var r;return u()(this,e),r=h()(this,d()(e).call(this)),r._xhr=t,r._reqHeaders={},r._method=n,r._url=Object(v.F)(i),r._id=Object(v._34)("request"),r}return g()(e,t),c()(e,[{key:"handleSend",value:function(t){Object(v._2)(t)||(t=""),t={name:Object(v.G)(this._url),url:this._url,data:t,method:this._method},Object(v.O)(this._reqHeaders)||(t.reqHeaders=this._reqHeaders),this.emit("send",this._id,t)}},{key:"handleReqHeadersSet",value:function(t,e){t&&e&&(this._reqHeaders[t]=e)}},{key:"handleHeadersReceived",value:function(){var t=this._xhr,e=Object(m.a)(t.getResponseHeader("Content-Type"));this.emit("update",this._id,{type:e.type,subType:e.subType,size:r(t,!0,this._url),time:Object(v._14)(),resHeaders:i(t)})}},{key:"handleDone",value:function(){var t=this,e=this._xhr,n=e.responseType,i="",a=function(){t.emit("update",t._id,{status:e.status,done:!0,size:r(e,!1,t._url),time:Object(v._14)(),resTxt:i})},o=Object(m.a)(e.getResponseHeader("Content-Type"));"blob"!==n||"text"!==o.type&&"javascript"!==o.subType&&"json"!==o.subType?(""!==n&&"text"!==n||(i=e.responseText),"json"===n&&(i=JSON.stringify(e.response)),a()):Object(m.c)(e.response,function(t,e){e&&(i=e),a()})}}]),e}(v.c)},function(t,e,n){"use strict";function i(t,e){var n=0,i=t.headers.get("Content-length");return n=i?Object(g._28)(i):Object(f.b)(e),"".concat(Object(g.D)(n),"B")}function r(t){var e={};return t.headers.forEach(function(t,n){return e[n]=t}),e}n.d(e,"a",function(){return m});var a=n(2),o=n.n(a),s=n(3),u=n.n(s),l=n(7),c=n.n(l),_=n(5),h=n.n(_),p=n(8),d=n.n(p),f=n(33),g=n(0),m=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o()(this,e),n=c()(this,h()(e).call(this)),t instanceof window.Request&&(t=t.url),n._url=Object(g.F)(t),n._id=Object(g._34)("request"),n._options=i,n._reqHeaders=i.headers||{},n._method=i.method||"GET",n}return d()(e,t),u()(e,[{key:"send",value:function(t){var e=this,n=this._options,a=Object(g._2)(n.body)?n.body:"";this._fetch=t,this.emit("send",this._id,{name:Object(g.G)(this._url),url:this._url,data:a,method:this._method}),t.then(function(t){t=t.clone();var n=Object(f.a)(t.headers.get("Content-Type"));return t.text().then(function(a){var o={type:n.type,subType:n.subType,time:Object(g._14)(),size:i(t,a),resTxt:a,resHeaders:r(t),status:t.status,done:!0};Object(g.O)(e._reqHeaders)||(o.reqHeaders=e._reqHeaders),e.emit("update",e._id,o)}),t})}}]),e}(g.c)},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"#_network{$pt:36px}#_network ._title{$po:absolute;$w:100%;$h:36px;$l:0;$t:0;$b:var(--darker-background);$p:10px;$c:var(--primary);$h:36px;$bb:1px solid var(--border)}#_network ._title ._btn{$d:-webkit-box;$d:flex;$ml:5px;$f:right;$c:var(--primary);$w:18px;$h:18px;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;$fs:16px;$cu:pointer;-webkit-transition:color .3s;$tr:color .3s}#_network ._title ._btn:active{$c:var(--accent)}#_network ._requests{$oy:auto;$wos:touch;$h:100%;$bb:1px solid var(--border);$mb:10px}#_network ._requests li{$d:-webkit-box;$d:flex;$w:100%;$cu:pointer;$bb:1px solid var(--border);$h:41px;$c:var(--foreground);$ws:nowrap}#_network ._requests li._error span{$c:var(--console-error-foreground)}#_network ._requests li span{$d:block;$lh:40px;$h:40px;$p:0 5px;$fs:12px;vertical-align:top;text-overflow:ellipsis;$o:hidden}#_network ._requests li ._name{-webkit-box-flex:1;$fl:1;$pl:10px}#_network ._requests li ._status{$w:40px}#_network ._requests li ._method,#_network ._requests li ._type{$w:50px}#_network ._requests li ._size{$w:70px}#_network ._requests li ._time{$w:60px;padding-right:10px}#_network ._requests li:nth-child(even){$b:var(--contrast)}#_network ._detail{$po:absolute;$w:100%;$h:100%;$l:0;$t:0;$z:10;$d:none;$pb:40px;$b:var(--background)}#_network ._detail ._http{$oy:auto;$wos:touch;$h:100%}#_network ._detail ._http ._breadcrumb{$b:var(--darker-background);$c:var(--primary);-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text;$mb:10px;word-break:break-all;$p:10px;$fs:16px;$mh:40px;$bb:1px solid var(--border)}#_network ._detail ._http ._section{$bt:1px solid var(--border);$bb:1px solid var(--border);$mb:10px}#_network ._detail ._http ._section h2{$b:var(--darker-background);$c:var(--primary);$p:10px;$fs:14px}#_network ._detail ._http ._section table{$c:var(--foreground)}#_network ._detail ._http ._section table *{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text}#_network ._detail ._http ._section table td{$fs:12px;$p:5px 10px;word-break:break-all}#_network ._detail ._http ._section table ._key{$ws:nowrap;$fw:700;$c:var(--accent)}#_network ._detail ._http ._data,#_network ._detail ._http ._response{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text;$ox:auto;$wos:touch;$p:10px;$fs:12px;$mb:10px;$ws:pre-wrap;$bt:1px solid var(--border);$c:var(--foreground);$bb:1px solid var(--border)}#_network ._detail ._back{$po:absolute;$l:0;bottom:0;$c:var(--foreground);$w:100%;$bt:1px solid var(--border);$b:var(--darker-background);$d:block;$h:40px;$lh:40px;text-decoration:none;$ta:center;$mt:10px;-webkit-transition:background .3s;$tr:background .3s;$cu:pointer}#_network ._detail ._back:active{$c:var(--select-foreground)}",""])},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
        Request
          "},useData:!0})},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({1:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+t.escapeExpression(t.lambda(null!=e?o(e,"data"):e,e))+"
          "},3:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"reqHeaders"):e,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?a:"")+" "},4:function(t,e,n,i,r){var a,o=t.lambda,s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+s(o(r&&u(r,"key"),e))+""+s(o(e,e))+" "},6:function(t,e,n,i,r){return" Empty "},8:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"resHeaders"):e,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?a:"")+" "},10:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+t.escapeExpression(t.lambda(null!=e?o(e,"resTxt"):e,e))+"
          "},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+t.escapeExpression(t.lambda(null!=e?s(e,"url"):e,e))+"
          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"data"):e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?a:"")+"

          Request Headers

          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"reqHeaders"):e,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.program(6,r,0),data:r}))?a:"")+"

          Response Headers

          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"resHeaders"):e,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.program(6,r,0),data:r}))?a:"")+"
          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"resTxt"):e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.noop,data:r}))?a:"")+"
          Back to the List
          "},useData:!0})},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({1:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"requests"):e,{name:"each",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?a:"")+" "},2:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
        • "+u(s(null!=e?l(e,"name"):e,e))+""+u(s(null!=e?l(e,"status"):e,e))+""+u(s(null!=e?l(e,"method"):e,e))+""+u(s(null!=e?l(e,"subType"):e,e))+""+u(s(null!=e?l(e,"size"):e,e))+""+u(s(null!=e?l(e,"displayTime"):e,e))+"
        • "},3:function(t,e,n,i,r){return"eruda-error"},5:function(t,e,n,i,r){var a;return"
        • Empty
        • "},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(a=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"requests"):e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(5,r,0),data:r}))?a:""},useData:!0})},function(t,e,n){"use strict";function i(t){Object(P.x)(t,function(e,n){return t[n]=r(e)})}function r(t){return t=Object(P._30)(t),t.replace(L,'$&').replace(N,function(t,e){return'url("'.concat(H(e),'")')})}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.noAttr,i=void 0!==n&&n,r=t.id,a=t.className,o=t.attributes,s=''.concat(t.tagName.toLowerCase(),"");if(""!==r&&(s+='#'.concat(r,"")),Object(P._2)(a)){var u="";Object(P.x)(a.split(/\s+/g),function(t){""!==t.trim()&&(u+=".".concat(t))}),s+=''.concat(u,"")}return i||Object(P.x)(o,function(t){var e=t.name;"id"!==e&&"class"!==e&&"style"!==e&&(s+=' '.concat(e,'="').concat(t.value,'"'))}),s}function o(t){for(var e=[],n=0,i=t.length;n3&&void 0!==arguments[3]&&arguments[3];if(Object(P.N)(t)&&Object(P.R)(n)&&Object(P.L)(i)){var r=t.erudaEvents=t.erudaEvents||{};r[e]=r[e]||[],r[e].push({listener:n,listenerStr:n.toString(),useCapture:i})}}function _(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Object(P.N)(t)&&Object(P.R)(n)&&Object(P.L)(i)){var r=t.erudaEvents;if(r&&r[e]){for(var a=r[e],o=0,s=a.length;o
          '),this._$showArea=t.find(".eruda-show-area"),t.append(n(104)()),this._htmlEl=document.documentElement,this._highlight=new T.a(this._container.$container),this._select=new S.a,this._bindEvent(),this._initObserver(),this._initCfg(),Object(P._12)(function(){return r._updateHistory()})}},{key:"show",value:function(){O()(x()(e.prototype),"show",this).call(this),this._observeElement&&this._enableObserver(),this._curEl||this._setEl(this._htmlEl),this._render()}},{key:"hide",value:function(){return this._disableObserver(),O()(x()(e.prototype),"hide",this).call(this)}},{key:"set",value:function(t){if(t!==this._curEl)return this._setEl(t),this.scrollToTop(),this._render(),this._updateHistory(),this.emit("change",t),this}},{key:"overrideEventTarget",value:function(){var t=B(),e=this._origAddEvent=t.addEventListener,n=this._origRmEvent=t.removeEventListener;t.addEventListener=function(t,n,i){c(this,t,n,i),e.apply(this,arguments)},t.removeEventListener=function(t,e,i){_(this,t,e,i),n.apply(this,arguments)}}},{key:"scrollToTop",value:function(){this._$showArea.get(0).scrollTop=0}},{key:"restoreEventTarget",value:function(){var t=B();this._origAddEvent&&(t.addEventListener=this._origAddEvent),this._origRmEvent&&(t.removeEventListener=this._origRmEvent)}},{key:"destroy",value:function(){O()(x()(e.prototype),"destroy",this).call(this),R.a.remove(this._style),this._select.disable(),this._highlight.destroy(),this._disableObserver(),this.restoreEventTarget(),this._rmCfg()}},{key:"_back",value:function(){if(this._curEl!==this._htmlEl){for(var t=this._curParentQueue,e=t.shift();!M(e);)e=t.shift();this.set(e)}}},{key:"_bindEvent",value:function(){var t=this,e=this,n=this._container,i=this._select;this._$el.on("click",".eruda-child",function(){var t=Object(P.a)(this).data("idx"),i=e._curEl,r=i.childNodes[t];if(r&&3===r.nodeType){var a,o=i.tagName;switch(o){case"SCRIPT":a="js";break;case"STYLE":a="css";break;default:return}var s=n.get("sources");return void(s&&(s.set(a,r.nodeValue),n.showTool("sources")))}M(r)?e.set(r):e._render()}).on("click",".eruda-listener-content",function(){var t=Object(P.a)(this).text(),e=n.get("sources");e&&(e.set("js",t),n.showTool("sources"))}).on("click",".eruda-breadcrumb",function(){var e=n.get("sources");e&&(e.set("object",t._curEl),n.showTool("sources"))}).on("click",".eruda-parent",function(){for(var t=Object(P.a)(this).data("idx"),n=e._curEl,i=n.parentNode;t--&&i.parentNode;)i=i.parentNode;M(i)?e.set(i):e._render()}).on("click",".eruda-toggle-all-computed-style",function(){return t._toggleAllComputedStyle()}),this._$el.find(".eruda-bottom-bar").on("click",".eruda-refresh",function(){return t._render()}).on("click",".eruda-highlight",function(){return t._toggleHighlight()}).on("click",".eruda-select",function(){return t._toggleSelect()}).on("click",".eruda-reset",function(){return t.set(t._htmlEl)}),i.on("select",function(e){return t.set(e)})}},{key:"_toggleAllComputedStyle",value:function(){this._rmDefComputedStyle=!this._rmDefComputedStyle,this._render()}},{key:"_enableObserver",value:function(){this._observer.observe(this._htmlEl,{attributes:!0,childList:!0,subtree:!0})}},{key:"_disableObserver",value:function(){this._observer.disconnect()}},{key:"_toggleHighlight",value:function(){this._selectElement||(this._$el.find(".eruda-highlight").toggleClass("eruda-active"),this._highlightElement=!this._highlightElement,this._render())}},{key:"_toggleSelect",value:function(){var t=this._select;this._$el.find(".eruda-select").toggleClass("eruda-active"),this._selectElement||this._highlightElement||this._toggleHighlight(),this._selectElement=!this._selectElement,this._selectElement?(t.enable(),this._container.hide()):t.disable()}},{key:"_setEl",value:function(t){this._curEl=t,this._curCssStore=new A.a(t),this._highlight.setEl(t),this._rmDefComputedStyle=!0;for(var e=[],n=t.parentNode;n;)e.push(n),n=n.parentNode;this._curParentQueue=e}},{key:"_getData",value:function(){function t(t){var e=["top","left","right","bottom"];return"position"!==t&&(e=Object(P._10)(e,function(e){return"".concat(t,"-").concat(e)})),"border"===t&&(e=Object(P._10)(e,function(t){return"".concat(t,"-width")})),{top:h(g[e[0]],t),left:h(g[e[1]],t),right:h(g[e[2]],t),bottom:h(g[e[3]],t)}}var e={},n=this._curEl,r=this._curCssStore,c=n.className,_=n.id,p=n.attributes,d=n.tagName;e.parents=s(n),e.children=o(n.childNodes),e.attributes=F(p),e.name=a({tagName:d,id:_,className:c,attributes:p});var f=n.erudaEvents;if(f&&0!==Object(P._5)(f).length&&(e.listeners=f),I(d))return e;var g=r.getComputedStyle(),m={margin:t("margin"),border:t("border"),padding:t("padding"),content:{width:h(g.width),height:h(g.height)}};"static"!==g.position&&(m.position=t("position")),e.boxModel=m;var v=r.getMatchedCSSRules();return v.unshift(u(n.style)),v.forEach(function(t){return i(t.style)}),e.styles=v,this._rmDefComputedStyle&&(g=l(g,v)),e.rmDefComputedStyle=this._rmDefComputedStyle,i(g),e.computedStyle=g,e}},{key:"_render",value:function(){if(!M(this._curEl))return this._back();this._highlight[this._highlightElement?"show":"hide"](),this._renderHtml(this._tpl(this._getData()))}},{key:"_renderHtml",value:function(t){t!==this._lastHtml&&(this._lastHtml=t,this._$showArea.html(t))}},{key:"_updateHistory",value:function(){var t=this._container.get("console");if(t){var e=this._history;e.unshift(this._curEl),e.length>5&&e.pop();for(var n=0;n<5;n++)t.setGlobal("$".concat(n),e[n])}}},{key:"_initObserver",value:function(){var t=this;this._observer=new P.f(function(e){Object(P.x)(e,function(e){return t._handleMutation(e)})})}},{key:"_handleMutation",value:function(t){var e,n,i;if(!Object(P.Q)(t.target))if("attributes"===t.type){if(t.target!==this._curEl)return;this._render()}else if("childList"===t.type){if(t.target===this._curEl)return this._render();var r=t.addedNodes;for(e=0,n=r.length;e-1},B=function(){return Object(P._20)(window,"EventTarget.prototype")||window.Node.prototype},H=function(t){return'').concat(t,"")}},function(t,e,n){"use strict";function i(t){for(var e={},n=0,i=t.length;ni?i:n,o=0;oi?1:ne?1:t'.concat(t.tagName.toLowerCase(),"");""!==e&&(i+='#'.concat(e,""));var r="";return Object(u._2)(n)&&Object(u.x)(n.split(/\s+/g),function(t){""!==Object(u._31)(t)&&(r+=".".concat(t))}),i+=''.concat(r,"")}n.d(e,"a",function(){return c});var r=n(2),a=n.n(r),o=n(3),s=n.n(o),u=n(0),l=n(4),c=function(){function t(e){a()(this,t),this._style=Object(l.a)(n(99)),this._isShow=!1,this._appendTpl(e),this._bindEvent()}return s()(t,[{key:"setEl",value:function(t){this._$target=Object(u.a)(t),this._target=t}},{key:"show",value:function(){this._isShow=!0,this.render(),this._$el.show()}},{key:"destroy",value:function(){l.a.remove(this._style)}},{key:"hide",value:function(){this._isShow=!1,this._$el.hide()}},{key:"render",value:function(){var t=this._$target.offset(),e=t.left,n=t.width,r=t.top,a=t.height;this._$el.css({left:e,top:r-window.scrollY,width:n,height:a});var o=getComputedStyle(this._target,"");if("none"===o.display)return this._$el.css("visibility","hidden");this._$el.css("visibility","visible");var s=function(t){return Object(u._17)(o.getPropertyValue(t))},l=s("margin-left"),c=s("margin-right"),_=s("margin-top"),h=s("margin-bottom");this._$margin.css({left:-l,top:-_,width:n+l+c,height:a+_+h});var p=s("border-left-width"),d=s("border-right-width"),f=s("border-top-width"),g=s("border-bottom-width"),m=n-p-d,v=a-f-g;this._$padding.css({left:p,top:f,width:m,height:v});var b=s("padding-left"),y=s("padding-right"),w=s("padding-top"),x=s("padding-bottom");this._$content.css({left:p+b,top:p+w,width:m-b-y,height:v-w-x}),this._$size.css({top:-_-(r-_<25?0:25),left:-l}).html("".concat(i(this._target)," | ").concat(n," \xd7 ").concat(a))}},{key:"_bindEvent",value:function(){var t=this;window.addEventListener("scroll",function(){t._isShow&&t.render()},!1)}},{key:"_appendTpl",value:function(t){t.append(n(100)());var e=this._$el=t.find(".eruda-elements-highlight");this._$margin=e.find(".eruda-margin"),this._$padding=e.find(".eruda-padding"),this._$content=e.find(".eruda-content"),this._$size=e.find(".eruda-size")}}]),t}()},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"._elements-highlight{$d:none;$po:absolute;$l:0;right:0;$z:-100;$pe:none!important}._elements-highlight *{$pe:none!important}._elements-highlight ._indicator{opacity:.5;$po:absolute;$l:0;right:0;$w:100%;$h:100%}._elements-highlight ._margin{$po:absolute;$b:#e8925b;$z:100}._elements-highlight ._border{$po:absolute;$l:0;right:0;$w:100%;$h:100%;$b:#ffcd7c;$z:200}._elements-highlight ._padding{$po:absolute;$b:#86af76;$z:300}._elements-highlight ._content{$po:absolute;$b:#5e88c1;$z:400}._elements-highlight ._size{$po:absolute;$t:0;$l:0;$b:#fff;$c:#222;$fs:12px;$h:25px;$lh:25px;$ta:center;$p:0 5px;$ws:nowrap;$ox:hidden;$bs:0 2px 2px 0 rgba(0,0,0,.05),0 1px 4px 0 rgba(0,0,0,.08),0 3px 1px -2px rgba(0,0,0,.2)}",""])},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "},useData:!0})},function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n(2),r=n.n(i),a=n(3),o=n.n(a),s=n(7),u=n.n(s),l=n(5),c=n.n(l),_=n(14),h=n.n(_),p=n(8),d=n.n(p),f=n(0),g=function(t){function e(){var t;r()(this,e),t=u()(this,c()(e).call(this));var n=h()(t);return t._startListener=function(t){if(!Object(f.Q)(t.target))return n._timer=setTimeout(function(){n.emit("select",t.target)},200),!1},t._moveListener=function(){clearTimeout(n._timer)},t._clickListener=function(t){Object(f.Q)(t.target)||(t.preventDefault(),t.stopImmediatePropagation())},t}return d()(e,t),o()(e,[{key:"enable",value:function(){function t(t,e){document.body.addEventListener(t,e,!0)}return this.disable(),Object(f.T)()?(t("touchstart",this._startListener),t("touchmove",this._moveListener)):(t("mousedown",this._startListener),t("mousemove",this._moveListener)),t("click",this._clickListener),this}},{key:"disable",value:function(){function t(t,e){document.body.removeEventListener(t,e,!0)}return Object(f.T)()?(t("touchstart",this._startListener),t("touchmove",this._moveListener)):(t("mousedown",this._startListener),t("mousemove",this._moveListener)),t("click",this._clickListener),this}}]),e}(f.c)},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"#_elements{$pb:40px;$fs:14px}#_elements ._show-area{$oy:auto;$wos:touch;$h:100%}#_elements ._parents{$ox:auto;$wos:touch;$b:var(--darker-background);$c:var(--primary);$p:10px;$ws:nowrap;$bb:1px solid var(--border);$cu:pointer;$fs:12px}#_elements ._parents li{$d:inline-block}#_elements ._parents li ._parent{$d:inline-block}#_elements ._parents li:last-child{margin-right:0}#_elements ._parents ._icon-arrow-right{$fs:8px;$po:relative;$t:-1px}#_elements ._breadcrumb{$b:var(--darker-background);$c:var(--primary);-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text;$mb:10px;word-break:break-all;$p:10px;$fs:16px;$mh:40px;$bb:1px solid var(--border);$cu:pointer;-webkit-transition:background .3s,color .3s;$tr:background .3s,color .3s}#_elements ._breadcrumb:active{$b:var(--highlight);$c:var(--select-foreground)}#_elements ._breadcrumb:active span{$c:var(--select-foreground)}#_elements ._section{$bb:1px solid var(--border);$c:var(--foreground);$mb:10px}#_elements ._section h2{$c:var(--primary);$b:var(--darker-background);$bt:1px solid var(--border);$p:10px;$fs:14px;-webkit-transition:background .3s;$tr:background .3s}#_elements ._section h2 ._btn{$ml:10px;$f:right;$ta:center;$w:18px;$h:18px;$lh:18px;$fs:12px}#_elements ._section h2._active-effect{$cu:pointer}#_elements ._section h2._active-effect:active{$b:var(--highlight);$c:var(--select-foreground)}#_elements ._children{$b:var(--darker-background);$c:var(--foreground);$mb:10px!important;$bb:1px solid var(--border)}#_elements ._children li{$ox:auto;$wos:touch;$cu:default;$p:10px;$bt:1px solid var(--border);$ws:nowrap;-webkit-transition:background .3s,color .3s;$tr:background .3s,color .3s}#_elements ._children li span{-webkit-transition:color .3s;$tr:color .3s}#_elements ._children li._active-effect{$cu:pointer}#_elements ._children li._active-effect:active{$b:var(--highlight);$c:var(--select-foreground)}#_elements ._children li._active-effect:active span{$c:var(--select-foreground)}#_elements ._attributes{$fs:12px}#_elements ._attributes a{$c:var(--link-color)}#_elements ._attributes ._table-wrapper{$ox:auto;$wos:touch}#_elements ._attributes table td{$p:5px 10px}#_elements ._text-content{$b:#fff}#_elements ._text-content ._content{$ox:auto;$wos:touch;$p:10px}#_elements ._style-color{$po:relative;$t:1px;$w:10px;$h:10px;$bra:50%;margin-right:2px;$bo:1px solid var(--border);$d:inline-block}#_elements ._box-model{$ox:auto;$wos:touch;$c:#222;$fs:12px;$p:10px;$ta:center;$ws:nowrap;$bb:1px solid var(--color)}#_elements ._box-model ._label{$po:absolute;$ml:3px;$p:0 2px}#_elements ._box-model ._bottom,#_elements ._box-model ._left,#_elements ._box-model ._right,#_elements ._box-model ._top{$d:inline-block}#_elements ._box-model ._left,#_elements ._box-model ._right{vertical-align:middle}#_elements ._box-model ._border,#_elements ._box-model ._content,#_elements ._box-model ._margin,#_elements ._box-model ._padding,#_elements ._box-model ._position{$po:relative;$b:#fff;$d:inline-block;$ta:center;vertical-align:middle;$p:3px;$m:3px}#_elements ._box-model ._position{$bo:1px grey dotted}#_elements ._box-model ._margin{$bo:1px dashed;$b:rgba(246,178,107,.66)}#_elements ._box-model ._border{$bo:1px #000 solid;$b:rgba(255,229,153,.66)}#_elements ._box-model ._padding{$bo:1px grey dashed;$b:rgba(147,196,125,.55)}#_elements ._box-model ._content{$bo:1px grey solid;min-width:100px;$b:rgba(111,168,220,.66)}#_elements ._computed-style{$fs:12px}#_elements ._computed-style a{$c:var(--link-color)}#_elements ._computed-style ._table-wrapper{$oy:auto;$wos:touch;max-height:200px;$bt:1px solid var(--border)}#_elements ._computed-style table td{$p:5px 10px}#_elements ._computed-style table td._key{$ws:nowrap;$c:var(--var-color)}#_elements ._styles{$fs:12px}#_elements ._styles ._style-wrapper{$p:10px}#_elements ._styles ._style-wrapper ._style-rules{$bo:1px solid var(--border);$p:10px;$mb:10px}#_elements ._styles ._style-wrapper ._style-rules ._rule{$pl:2em;word-break:break-all}#_elements ._styles ._style-wrapper ._style-rules ._rule a{$c:var(--link-color)}#_elements ._styles ._style-wrapper ._style-rules ._rule span{$c:var(--var-color)}#_elements ._styles ._style-wrapper ._style-rules:last-child{$mb:0}#_elements ._listeners{$fs:12px}#_elements ._listeners ._listener-wrapper{$p:10px}#_elements ._listeners ._listener-wrapper ._listener{$mb:10px;$o:hidden;$bo:1px solid var(--border)}#_elements ._listeners ._listener-wrapper ._listener ._listener-type{$p:10px;$b:var(--darker-background);$c:var(--primary)}#_elements ._listeners ._listener-wrapper ._listener ._listener-content li{$ox:auto;$wos:touch;$p:10px;$bt:none}#_elements ._bottom-bar{$h:40px;$b:var(--darker-background);$po:absolute;$l:0;bottom:0;$w:100%;$fs:0;$bt:1px solid var(--border)}#_elements ._bottom-bar ._btn{$cu:pointer;$ta:center;$c:var(--primary);$fs:14px;$lh:40px;$w:25%;$d:inline-block;-webkit-transition:background .3s,color .3s;$tr:background .3s,color .3s}#_elements ._bottom-bar ._btn:active{$b:var(--highlight);$c:var(--select-foreground)}#_elements ._bottom-bar ._btn._active{$c:var(--accent)}",""])},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({1:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
            "+(null!=(a=s(n,"each").call(o,null!=e?s(e,"parents"):e,{name:"each",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?a:"")+"
          "},2:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
        • '+(null!=(a=s(null!=e?u(e,"text"):e,e))?a:"")+"
        • "},4:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
            "+(null!=(a=s(n,"each").call(o,null!=e?s(e,"children"):e,{name:"each",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?a:"")+"
          "},5:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
        • '+(null!=(a=s(null!=e?u(e,"text"):e,e))?a:"")+"
        • "},6:function(t,e,n,i,r){return"eruda-green"},8:function(t,e,n,i,r){return"eruda-active-effect"},10:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"attributes"):e,{name:"each",hash:{},fn:t.program(11,r,0),inverse:t.noop,data:r}))?a:"")+" "},11:function(t,e,n,i,r){var a,o=t.lambda,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' '+t.escapeExpression(o(null!=e?s(e,"name"):e,e))+''+(null!=(a=o(null!=e?s(e,"value"):e,e))?a:"")+" "},13:function(t,e,n,i,r){return" Empty "},15:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

          Styles

          "+(null!=(a=s(n,"each").call(o,null!=e?s(e,"styles"):e,{name:"each",hash:{},fn:t.program(16,r,0),inverse:t.noop,data:r}))?a:"")+"
          "},16:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+t.escapeExpression(t.lambda(null!=e?s(e,"selectorText"):e,e))+" {
          "+(null!=(a=s(n,"each").call(o,null!=e?s(e,"style"):e,{name:"each",hash:{},fn:t.program(17,r,0),inverse:t.noop,data:r}))?a:"")+"
          }
          "},17:function(t,e,n,i,r){var a,o=t.lambda,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+t.escapeExpression(o(r&&s(r,"key"),e))+": "+(null!=(a=o(e,e))?a:"")+";
          "},19:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

          Computed Style
          "+(null!=(a=l(n,"if").call(o,null!=e?l(e,"rmDefComputedStyle"):e,{name:"if",hash:{},fn:t.program(20,r,0),inverse:t.program(22,r,0),data:r}))?a:"")+"

          "+(null!=(a=l(n,"if").call(o,null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"position"):a,{name:"if",hash:{},fn:t.program(24,r,0),inverse:t.noop,data:r}))?a:"")+"
          margin
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"margin"):a)?l(a,"top"):a,e))+"

          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"margin"):a)?l(a,"left"):a,e))+"
          border
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"border"):a)?l(a,"top"):a,e))+"

          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"border"):a)?l(a,"left"):a,e))+"
          padding
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"padding"):a)?l(a,"top"):a,e))+"

          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"padding"):a)?l(a,"left"):a,e))+"
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"content"):a)?l(a,"width"):a,e))+"\xd7 "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"content"):a)?l(a,"height"):a,e))+"
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"padding"):a)?l(a,"right"):a,e))+"

          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"padding"):a)?l(a,"bottom"):a,e))+"
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"border"):a)?l(a,"right"):a,e))+"

          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"border"):a)?l(a,"bottom"):a,e))+"
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"margin"):a)?l(a,"right"):a,e))+"

          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"margin"):a)?l(a,"bottom"):a,e))+"
          "+(null!=(a=l(n,"if").call(o,null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"position"):a,{name:"if",hash:{},fn:t.program(26,r,0),inverse:t.noop,data:r}))?a:"")+"
          "+(null!=(a=l(n,"each").call(o,null!=e?l(e,"computedStyle"):e,{name:"each",hash:{},fn:t.program(28,r,0),inverse:t.noop,data:r}))?a:"")+"
          "},20:function(t,e,n,i,r){var a;return" "},22:function(t,e,n,i,r){var a;return" "},24:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          position
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"position"):a)?l(a,"top"):a,e))+"

          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"position"):a)?l(a,"left"):a,e))+"
          "},26:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"position"):a)?l(a,"right"):a,e))+"

          "+u(s(null!=(a=null!=(a=null!=e?l(e,"boxModel"):e)?l(a,"position"):a)?l(a,"bottom"):a,e))+"
          "},28:function(t,e,n,i,r){var a,o=t.lambda,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+t.escapeExpression(o(r&&s(r,"key"),e))+""+(null!=(a=o(e,e))?a:"")+" "},30:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

          Event Listeners

          "+(null!=(a=s(n,"each").call(o,null!=e?s(e,"listeners"):e,{name:"each",hash:{},fn:t.program(31,r,0),inverse:t.noop,data:r}))?a:"")+"
          "},31:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+t.escapeExpression(t.lambda(r&&s(r,"key"),e))+"
            "+(null!=(a=s(n,"each").call(o,e,{name:"each",hash:{},fn:t.program(32,r,0),inverse:t.noop,data:r}))?a:"")+"
          "},32:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
        • "+t.escapeExpression(t.lambda(null!=e?o(e,"listenerStr"):e,e))+"
        • "},33:function(t,e,n,i,r){var a;return null!=(a=(t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]})(n,"class").call(null!=e?e:t.nullContext||{},"capture",{name:"class",hash:{},data:r}))?a:""},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(a=s(n,"if").call(o,null!=e?s(e,"parents"):e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?a:"")+"
          "+(null!=(a=t.lambda(null!=e?s(e,"name"):e,e))?a:"")+"
          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"children"):e,{name:"if",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?a:"")+"

          Attributes

          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"attributes"):e,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.program(13,r,0),data:r}))?a:"")+"
          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"styles"):e,{name:"if",hash:{},fn:t.program(15,r,0),inverse:t.noop,data:r}))?a:"")+" "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"computedStyle"):e,{name:"if",hash:{},fn:t.program(19,r,0),inverse:t.noop,data:r}))?a:"")+" "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"listeners"):e,{name:"if",hash:{},fn:t.program(30,r,0),inverse:t.noop,data:r}))?a:"")},useData:!0})},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "},useData:!0})},function(t,e,n){"use strict";n.d(e,"a",function(){return b});var i=n(2),r=n.n(i),a=n(3),o=n.n(a),s=n(7),u=n.n(s),l=n(5),c=n.n(l),_=n(12),h=n.n(_),p=n(8),d=n.n(p),f=n(9),g=n(106),m=n(0),v=n(4),b=function(t){function e(){var t;return r()(this,e),t=u()(this,c()(e).call(this)),t._style=Object(v.a)(n(108)),t.name="snippets",t._snippets=[],t._tpl=n(109),t}return d()(e,t),o()(e,[{key:"init",value:function(t){h()(c()(e.prototype),"init",this).call(this,t),this._bindEvent(),this._addDefSnippets()}},{key:"destroy",value:function(){h()(c()(e.prototype),"destroy",this).call(this),v.a.remove(this._style)}},{key:"add",value:function(t,e,n){return this._snippets.push({name:t,fn:e,desc:n}),this._render(),this}},{key:"remove",value:function(t){for(var e=this._snippets,n=0,i=e.length;n'.concat(t,"")}))!==t.nodeValue){var i=Object(u.a)(document.createElement("div"));return i.html(e),i.addClass("eruda-search-highlight-block"),i.get(0)}}})}function r(t,e){var n=t.childNodes;if(!Object(u.Q)(t)){for(var i=0,a=n.length;i

          '+o(a(null!=e?s(e,"name"):e,e))+'

          '+o(a(null!=e?s(e,"desc"):e,e))+"
          "},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"snippets"):e,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?a:""},useData:!0})},function(t,e,n){"use strict";function i(t,e){if(0===e)return"";var n=0,i=0;switch(t){case"cookie":n=30,i=60;break;case"script":n=5,i=10;break;case"stylesheet":n=4,i=8;break;case"image":n=50,i=100}return e>=i?"danger":e>=n?"warn":"ok"}function r(t){return t.tagName?t.tagName.toLowerCase():""}n.d(e,"a",function(){return w});var a=n(2),o=n.n(a),s=n(3),u=n.n(s),l=n(7),c=n.n(l),_=n(5),h=n.n(_),p=n(12),d=n.n(p),f=n(8),g=n.n(f),m=n(9),v=n(11),b=n(0),y=n(4),w=function(t){function e(){var t;return o()(this,e),t=c()(this,h()(e).call(this)),t._style=Object(y.a)(n(111)),t.name="resources",t._localStoreData=[],t._hideErudaSetting=!1,t._sessionStoreData=[],t._cookieData=[],t._scriptData=[],t._stylesheetData=[],t._iframeData=[],t._imageData=[],t._observeElement=!0,t._tpl=n(112),t}return g()(e,t),u()(e,[{key:"init",value:function(t,n){d()(h()(e.prototype),"init",this).call(this,t),this._container=n,this.refresh(),this._bindEvent(),this._initObserver(),this._initCfg()}},{key:"refresh",value:function(){return this.refreshLocalStorage().refreshSessionStorage().refreshCookie().refreshScript().refreshStylesheet().refreshIframe().refreshImage()._render()}},{key:"destroy",value:function(){d()(h()(e.prototype),"destroy",this).call(this),this._disableObserver(),y.a.remove(this._style),this._rmCfg()}},{key:"refreshScript",value:function(){var t=[];return Object(b.a)("script").each(function(){var e=this.src;""!==e&&t.push(e)}),t=Object(b._35)(t),this._scriptData=t,this}},{key:"refreshStylesheet",value:function(){var t=[];return Object(b.a)("link").each(function(){"stylesheet"===this.rel&&t.push(this.href)}),t=Object(b._35)(t),this._stylesheetData=t,this}},{key:"refreshIframe",value:function(){var t=[];return Object(b.a)("iframe").each(function(){var e=Object(b.a)(this),n=e.attr("src");n&&t.push(n)}),t=Object(b._35)(t),this._iframeData=t,this}},{key:"refreshLocalStorage",value:function(){return this._refreshStorage("local"),this}},{key:"refreshSessionStorage",value:function(){return this._refreshStorage("session"),this}},{key:"_refreshStorage",value:function(t){var e=this,n=Object(b._21)(t,!1);if(n){var i=[];n=JSON.parse(JSON.stringify(n)),Object(b.x)(n,function(t,n){Object(b._2)(t)&&(e._hideErudaSetting&&(Object(b._23)(n,"eruda")||"active-eruda"===n)||i.push({key:n,val:x(t,200)}))}),this["_"+t+"StoreData"]=i}}},{key:"refreshCookie",value:function(){var t=[],e=document.cookie;return""!==Object(b._31)(e)&&Object(b.x)(document.cookie.split(";"),function(e){e=e.split("=");var n=Object(b._31)(e.shift());e=Object(b.r)(e.join("=")),t.push({key:n,val:e})}),this._cookieData=t,this}},{key:"refreshImage",value:function(){var t=[],e=this._performance=window.webkitPerformance||window.performance;if(e&&e.getEntries){this._performance.getEntries().forEach(function(e){("img"===e.initiatorType||O(e.name))&&t.push(e.name)})}else Object(b.a)("img").each(function(){var e=Object(b.a)(this),n=e.attr("src");"true"!==e.data("exclude")&&t.push(n)});return t=Object(b._35)(t),t.sort(),this._imageData=t,this}},{key:"show",value:function(){return d()(h()(e.prototype),"show",this).call(this),this._observeElement&&this._enableObserver(),this.refresh()}},{key:"hide",value:function(){return this._disableObserver(),d()(h()(e.prototype),"hide",this).call(this)}},{key:"_bindEvent",value:function(){function t(t,e){var n=a.get("sources");if(n)return n.set(t,e),a.showTool("sources"),!0}function e(e){return function(n){if(a.get("sources")){n.preventDefault();var i=Object(b.a)(this).attr("href");"iframe"===e||Object(b.M)(i)?t("iframe",i):Object(b.i)({url:i,success:function(n){t(e,n)},dataType:"raw"})}}}var n=this,i=this,r=this._$el,a=this._container;r.on("click",".eruda-refresh-local-storage",function(){return n.refreshLocalStorage()._render()}).on("click",".eruda-refresh-session-storage",function(){return n.refreshSessionStorage()._render()}).on("click",".eruda-refresh-cookie",function(){return n.refreshCookie()._render()}).on("click",".eruda-refresh-script",function(){return n.refreshScript()._render()}).on("click",".eruda-refresh-stylesheet",function(){return n.refreshStylesheet()._render()}).on("click",".eruda-refresh-iframe",function(){return n.refreshIframe()._render()}).on("click",".eruda-refresh-image",function(){return n.refreshImage()._render()}).on("click",".eruda-delete-storage",function(){var t=Object(b.a)(this),e=t.data("key");"local"===t.data("type")?(localStorage.removeItem(e),i.refreshLocalStorage()._render()):(sessionStorage.removeItem(e),i.refreshSessionStorage()._render())}).on("click",".eruda-delete-cookie",function(){var t=Object(b.a)(this).data("key");Object(b._19)(t),i.refreshCookie()._render()}).on("click",".eruda-clear-storage",function(){"local"===Object(b.a)(this).data("type")?(Object(b.x)(i._localStoreData,function(t){return localStorage.removeItem(t.key)}),i.refreshLocalStorage()._render()):(Object(b.x)(i._sessionStoreData,function(t){return sessionStorage.removeItem(t.key)}),i.refreshSessionStorage()._render())}).on("click",".eruda-clear-cookie",function(){Object(b.x)(n._cookieData,function(t){return Object(b._19)(t.key)}),n.refreshCookie()._render()}).on("click",".eruda-storage-val",function(){var e=Object(b.a)(this),n=e.data("key"),i=e.data("type"),r="local"===i?localStorage.getItem(n):sessionStorage.getItem(n);try{t("object",JSON.parse(r))}catch(e){t("raw",r)}}).on("click",".eruda-img-link",function(){t("img",Object(b.a)(this).attr("src"))}).on("click",".eruda-css-link",e("css")).on("click",".eruda-js-link",e("js")).on("click",".eruda-iframe-link",e("iframe")),b._15.on("change",function(){return n._render()})}},{key:"_rmCfg",value:function(){var t=this.config,e=this._container.get("settings");e&&e.remove(t,"hideErudaSetting").remove(t,"observeElement").remove("Resources")}},{key:"_initCfg",value:function(){var t=this,e=this.config=v.a.createCfg("resources",{hideErudaSetting:!0,observeElement:!0});e.get("hideErudaSetting")&&(this._hideErudaSetting=!0),e.get("observeElement")||(this._observeElement=!1),e.on("change",function(e,n){switch(e){case"hideErudaSetting":return void(t._hideErudaSetting=n);case"observeElement":return t._observeElement=n,n?t._enableObserver():t._disableObserver()}}),this._container.get("settings").text("Resources").switch(e,"hideErudaSetting","Hide Eruda Setting").switch(e,"observeElement","Auto Refresh Elements").separator()}},{key:"_render",value:function(){var t=this._cookieData,e=this._scriptData,n=this._stylesheetData,r=this._imageData;this._renderHtml(this._tpl({localStoreData:this._localStoreData,sessionStoreData:this._sessionStoreData,cookieData:t,cookieState:i("cookie",t.length),scriptData:e,scriptState:i("script",e.length),stylesheetData:n,stylesheetState:i("stylesheet",n.length),iframeData:this._iframeData,imageData:r,imageState:i("image",r.length)}))}},{key:"_renderHtml",value:function(t){t!==this._lastHtml&&(this._lastHtml=t,this._$el.html(t))}},{key:"_initObserver",value:function(){var t=this;this._observer=new b.f(function(e){var n=!1;Object(b.x)(e,function(e){t._handleMutation(e)&&(n=!0)}),n&&t._render()})}},{key:"_handleMutation",value:function(t){var e=this;if(!Object(b.Q)(t.target)){var n=function(t){switch(r(t)){case"script":return e.refreshScript(),!0;case"img":return e.refreshImage(),!0;case"link":return e.refreshStylesheet(),!0}return!1};if("attributes"===t.type){if(n(t.target))return!0}else if("childList"===t.type){if(n(t.target))return!0;var i=Object(b._26)(t.addedNodes);i=Object(b.n)(i,Object(b._26)(t.removedNodes));var a=!0,o=!1,s=void 0;try{for(var u,l=i[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;if(n(c))return!0}}catch(t){o=!0,s=t}finally{try{a||null==l.return||l.return()}finally{if(o)throw s}}}return!1}}},{key:"_enableObserver",value:function(){this._observer.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})}},{key:"_disableObserver",value:function(){this._observer.disconnect()}}]),e}(m.a),x=function(t,e){return t.length"+u(s(null!=e?l(e,"key"):e,e))+"'+u(s(null!=e?l(e,"val"):e,e))+" '},4:function(t,e,n,i,r){return" Empty "},6:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"sessionStoreData"):e,{name:"each",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?a:"")+" "},7:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+u(s(null!=e?l(e,"key"):e,e))+"'+u(s(null!=e?l(e,"val"):e,e))+" '},9:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"cookieData"):e,{name:"each",hash:{},fn:t.program(10,r,0),inverse:t.noop,data:r}))?a:"")+" "},10:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+u(s(null!=e?l(e,"key"):e,e))+""+u(s(null!=e?l(e,"val"):e,e))+" '},12:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"scriptData"):e,{name:"each",hash:{},fn:t.program(13,r,0),inverse:t.noop,data:r}))?a:"")+" "},13:function(t,e,n,i,r){var a,o=t.lambda,s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
        • "+s(o(e,e))+"
        • "},15:function(t,e,n,i,r){return"
        • Empty
        • "},17:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"stylesheetData"):e,{name:"each",hash:{},fn:t.program(18,r,0),inverse:t.noop,data:r}))?a:"")+" "},18:function(t,e,n,i,r){var a,o=t.lambda,s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
        • "+s(o(e,e))+"
        • "},20:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"iframeData"):e,{name:"each",hash:{},fn:t.program(21,r,0),inverse:t.noop,data:r}))?a:"")+" "},21:function(t,e,n,i,r){var a,o=t.lambda,s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
        • "+s(o(e,e))+"
        • "},23:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"imageData"):e,{name:"each",hash:{},fn:t.program(24,r,0),inverse:t.noop,data:r}))?a:"")+" "},24:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
        • "},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

          Local Storage

          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"localStoreData"):e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(4,r,0),data:r}))?a:"")+"

          Session Storage

          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"sessionStoreData"):e,{name:"if",hash:{},fn:t.program(6,r,0),inverse:t.program(4,r,0),data:r}))?a:"")+"

          Cookie

          "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"cookieData"):e,{name:"if",hash:{},fn:t.program(9,r,0),inverse:t.program(4,r,0),data:r}))?a:"")+"

          Script

            "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"scriptData"):e,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.program(15,r,0),data:r}))?a:"")+"

          Stylesheet

            "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"stylesheetData"):e,{name:"if",hash:{},fn:t.program(17,r,0),inverse:t.program(15,r,0),data:r}))?a:"")+"

          Iframe

            "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"iframeData"):e,{name:"if",hash:{},fn:t.program(20,r,0),inverse:t.program(15,r,0),data:r}))?a:"")+"

          Image

            "+(null!=(a=s(n,"if").call(o,null!=e?s(e,"imageData"):e,{name:"if",hash:{},fn:t.program(23,r,0),inverse:t.program(15,r,0),data:r}))?a:"")+"
          "},useData:!0})},function(t,e,n){"use strict";n.d(e,"a",function(){return b});var i=n(2),r=n.n(i),a=n(3),o=n.n(a),s=n(7),u=n.n(s),l=n(5),c=n.n(l),_=n(12),h=n.n(_),p=n(8),d=n.n(p),f=n(9),g=n(114),m=n(0),v=n(4),b=function(t){function e(){var t;return r()(this,e),t=u()(this,c()(e).call(this)),t._style=Object(v.a)(n(115)),t.name="info",t._tpl=n(116),t._infos=[],t}return d()(e,t),o()(e,[{key:"init",value:function(t){h()(c()(e.prototype),"init",this).call(this,t),this._addDefInfo()}},{key:"destroy",value:function(){h()(c()(e.prototype),"destroy",this).call(this),v.a.remove(this._style)}},{key:"add",value:function(t,e){var n=this._infos,i=!1;return Object(m.x)(n,function(n){t===n.name&&(n.val=e,i=!0)}),i||n.push({name:t,val:e}),this._render(),this}},{key:"get",value:function(t){var e=this._infos;if(Object(m._3)(t))return Object(m.m)(e);var n;return Object(m.x)(e,function(e){t===e.name&&(n=e.val)}),n}},{key:"remove",value:function(t){for(var e=this._infos,n=e.length-1;n>=0;n--)e[n].name===t&&e.splice(n,1);return this._render(),this}},{key:"clear",value:function(){return this._infos=[],this._render(),this}},{key:"_addDefInfo",value:function(){var t=this;Object(m.x)(g.a,function(e){return t.add(e.name,e.val)})}},{key:"_render",value:function(){var t=[];Object(m.x)(this._infos,function(e){var n=e.name,i=e.val;Object(m.R)(i)&&(i=i()),t.push({name:n,val:i})}),this._renderHtml(this._tpl({infos:t}))}},{key:"_renderHtml",value:function(t){t!==this._lastHtml&&(this._lastHtml=t,this._$el.html(t))}}]),e}(f.a)},function(t,e,n){"use strict";var i=n(0),r=Object(i.u)();e.a=[{name:"Location",val:function(){return Object(i.z)(location.href)}},{name:"User Agent",val:navigator.userAgent},{name:"Device",val:["",'"),""),""),"
          screen'.concat(screen.width," * ").concat(screen.height,"
          viewport".concat(window.innerWidth," * ").concat(window.innerHeight,"
          pixel ratio".concat(window.devicePixelRatio,"
          "].join("")},{name:"System",val:["",'"),""),"
          os'.concat(Object(i.v)(),"
          browser".concat(r.name+" "+r.version,"
          "].join("")},{name:"About",val:'Eruda v2.1.0'}]},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"#_info{$oy:auto;$wos:touch}#_info li{$m:10px;$bo:1px solid var(--border)}#_info li ._content,#_info li ._title{$p:10px}#_info li ._title{$pb:0;$fs:16px;$c:var(--accent)}#_info li ._content{$m:0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text;$c:var(--foreground);word-break:break-all}#_info li ._content table{$w:100%;$bc:collapse}#_info li ._content table td,#_info li ._content table th{$bo:1px solid var(--border);$p:10px}#_info li ._content *{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text}#_info li ._content a{$c:var(--link-color)}#_info li ._device-key,#_info li ._system-key{$w:100px}",""])},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({1:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
        • "+t.escapeExpression(s(null!=e?u(e,"name"):e,e))+"

          "+(null!=(a=s(null!=e?u(e,"val"):e,e))?a:"")+"
        • "},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
            "+(null!=(a=o(n,"each").call(null!=e?e:t.nullContext||{},null!=e?o(e,"infos"):e,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?a:"")+"
          "},useData:!0})},function(t,e,n){"use strict";n.d(e,"a",function(){return x});var i=n(2),r=n.n(i),a=n(3),o=n.n(a),s=n(7),u=n.n(s),l=n(5),c=n.n(l),_=n(12),h=n.n(_),p=n(8),d=n.n(p),f=n(9),g=n(20),m=n.n(g),v=n(32),b=n(11),y=n(0),w=n(4),x=function(t){function e(){var t;return r()(this,e),t=u()(this,c()(e).call(this)),t._style=Object(w.a)(n(118)),t.name="sources",t._showLineNum=!0,t._formatCode=!0,t._indentSize=4,t._loadTpl(),t}return d()(e,t),o()(e,[{key:"init",value:function(t,n){h()(c()(e.prototype),"init",this).call(this,t),this._container=n,this._bindEvent(),this._initCfg()}},{key:"destroy",value:function(){h()(c()(e.prototype),"destroy",this).call(this),w.a.remove(this._style),this._rmCfg()}},{key:"set",value:function(t,e){if("img"===t){this._isFetchingData=!0;var n=new Image,i=this;return n.onload=function(){i._isFetchingData=!1,i._data={type:"img",val:{width:this.width,height:this.height,src:e}},i._render()},n.onerror=function(){i._isFetchingData=!1},void(n.src=e)}return this._data={type:t,val:e},this._render(),this}},{key:"show",value:function(){return h()(c()(e.prototype),"show",this).call(this),this._data||this._isFetchingData||this._renderDef(),this}},{key:"_renderDef",value:function(){var t=this;if(this._html)return this._data={type:"html",val:this._html},this._render();this._isGettingHtml||(this._isGettingHtml=!0,Object(y.i)({url:location.href,success:function(e){return t._html=e},error:function(){return t._html="Sorry, unable to fetch source code:("},complete:function(){t._isGettingHtml=!1,t._renderDef()},dataType:"raw"}))}},{key:"_bindEvent",value:function(){var t=this;this._container.on("showTool",function(e,n){e!==t.name&&n.name===t.name&&delete t._data})}},{key:"_loadTpl",value:function(){this._codeTpl=n(119),this._imgTpl=n(120),this._objTpl=n(121),this._rawTpl=n(122),this._iframeTpl=n(123)}},{key:"_rmCfg",value:function(){var t=this.config,e=this._container.get("settings");e&&e.remove(t,"showLineNum").remove(t,"formatCode").remove(t,"indentSize").remove("Sources")}},{key:"_initCfg",value:function(){var t=this,e=this.config=b.a.createCfg("sources",{showLineNum:!0,formatCode:!0,indentSize:4});e.get("showLineNum")||(this._showLineNum=!1),e.get("formatCode")||(this._formatCode=!1),this._indentSize=e.get("indentSize"),e.on("change",function(e,n){switch(e){case"showLineNum":return void(t._showLineNum=n);case"formatCode":return void(t._formatCode=n);case"indentSize":return void(t._indentSize=+n)}}),this._container.get("settings").text("Sources").switch(e,"showLineNum","Show Line Numbers").switch(e,"formatCode","Beautify Code").select(e,"indentSize","Indent Size",["2","4"]).separator()}},{key:"_render",value:function(){switch(this._isInit=!0,this._data.type){case"html":case"js":case"css":return this._renderCode();case"img":return this._renderImg();case"object":return this._renderObj();case"raw":return this._renderRaw();case"iframe":return this._renderIframe()}}},{key:"_renderImg",value:function(){this._renderHtml(this._imgTpl(this._data.val))}},{key:"_renderCode",value:function(){var t=this._data,e=this._indentSize,n=t.val,i=t.val.length;if(i1&&void 0!==arguments[1])||arguments[1])&&t===this._lastHtml||(this._lastHtml=t,this._$el.html(t),setTimeout(function(){return e._$el.get(0).scrollTop=0},0))}}]),e}(f.a),k=1e5,O=4e5},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"#_sources{$oy:auto;$wos:touch;$c:var(--foreground)}#_sources ._code-wrapper,#_sources ._raw-wrapper{$ox:auto;$wos:touch;$w:100%;$mh:100%}#_sources ._raw{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text;$p:10px}#_sources ._code{$fs:12px}#_sources ._code ._content *{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text}#_sources pre._code{$p:10px}#_sources table._code{$bc:collapse}#_sources table._code ._gutter{$b:var(--background);$c:var(--primary)}#_sources table._code ._line-num{$br:1px solid var(--border);$p:0 3px 0 5px;$ta:right}#_sources table._code ._code-line{$p:0 4px;$ws:pre}#_sources ._image ._breadcrumb{$b:var(--darker-background);$c:var(--primary);-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text;$mb:10px;word-break:break-all;$p:10px;$fs:16px;$mh:40px;$bb:1px solid var(--border)}#_sources ._image ._img-container{$ta:center}#_sources ._image ._img-container img{max-width:100%}#_sources ._image ._img-info{$ta:center;$m:20px 0;$c:var(--foreground)}#_sources ._json{$p:0 10px}#_sources ._json *{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;$us:text}#_sources iframe{$w:100%;$h:100%}",""])},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({1:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+(null!=(a=s(n,"each").call(o,null!=e?s(e,"code"):e,{name:"each",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?a:"")+" "+(null!=(a=s(n,"each").call(o,null!=e?s(e,"code"):e,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r}))?a:"")+"
          "},2:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+t.escapeExpression(t.lambda(null!=e?o(e,"idx"):e,e))+"
          "},4:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+(null!=(a=t.lambda(null!=e?o(e,"val"):e,e))?a:"")+"
          "},6:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+(null!=(a=t.lambda(null!=e?s(e,"code"):e,e))?a:"")+"
          "},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(a=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"showLineNum"):e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(6,r,0),data:r}))?a:""},useData:!0})},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lambda,u=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
          "+u(s(null!=e?l(e,"src"):e,e))+"
          "+u(s(null!=e?l(e,"width"):e,e))+" \xd7 "+u(s(null!=e?l(e,"height"):e,e))+"
          "},useData:!0})},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a;return"
            "},useData:!0})},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
            "+t.escapeExpression(t.lambda(null!=e?s(e,"val"):e,e))+"
            "},useData:!0})},function(t,e,n){var i=n(1);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var a,o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return''},useData:!0})},function(t,e,n){"use strict";var i=n(20),r=n.n(i),a=n(4);e.a=function(t){Object.assign(t,{beautify:r.a,evalCss:a.a})}},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,'._container{$pe:none;$po:fixed;$l:0;$t:0;$w:100%;$h:100%;$z:100000;$c:var(--foreground);$ff:".SFNSDisplay-Regular","Helvetica Neue","Lucida Grande","Segoe UI",Tahoma,sans-seri;$fs:14px;direction:ltr}._container *{$bsi:border-box;$pe:all;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;$us:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none}._container ul{list-style:none;$p:0;$m:0}._container h1,._container h2,._container h3,._container h4{$m:0}._hidden{$d:none}._tag-name-color{$c:var(--tag-name-color)}._function-color{$c:var(--function-color)}._attribute-name-color{$c:var(--attribute-name-color)}._operator-color{$c:var(--operator-color)}._string-color{$c:var(--string-color)}',""])},function(t,e,n){e=t.exports=n(6)(!1),e.push([t.i,"._container a,._container abbr,._container acronym,._container address,._container applet,._container article,._container aside,._container audio,._container b,._container big,._container blockquote,._container body,._container canvas,._container caption,._container center,._container cite,._container code,._container dd,._container del,._container details,._container dfn,._container div,._container dl,._container dt,._container em,._container embed,._container fieldset,._container figcaption,._container figure,._container footer,._container form,._container h1,._container h2,._container h3,._container h4,._container h5,._container h6,._container header,._container hgroup,._container html,._container i,._container iframe,._container img,._container ins,._container kbd,._container label,._container legend,._container li,._container mark,._container menu,._container nav,._container object,._container ol,._container output,._container p,._container pre,._container q,._container ruby,._container s,._container samp,._container section,._container small,._container span,._container strike,._container strong,._container sub,._container summary,._container sup,._container table,._container tbody,._container td,._container tfoot,._container th,._container thead,._container time,._container tr,._container tt,._container u,._container ul,._container var,._container video{$m:0;$p:0;$bo:0;$fs:100%;font:inherit;vertical-align:baseline}._container article,._container aside,._container details,._container figcaption,._container figure,._container footer,._container header,._container hgroup,._container menu,._container nav,._container section{$d:block}._container body{$lh:1}._container ol,._container ul{list-style:none}._container blockquote,._container q{quotes:none}._container blockquote:after,._container blockquote:before,._container q:after,._container q:before{$co:'';$co:none}._container table{$bc:collapse;border-spacing:0}",""])}])}); //# sourceMappingURL=eruda.js.map




            © 2015 - 2025 Weber Informatics LLC | Privacy Policy