vendor: 9,146 bytes, lines 1-23
1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1; 2$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); 3$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]}; 4$jscomp.polyfill=function(a,b,c,f){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,f):$jscomp.polyfillUnisolated(a,b,c,f))};$jscomp.polyfillUnisolated=function(a,b,c,f){c=$jscomp.global;a=a.split(".");for(f=0;f<a.length-1;f++){var e=a[f];if(!(e in c))return;c=c[e]}a=a[a.length-1];f=c[a];b=b(f);b!=f&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}; 5$jscomp.polyfillIsolated=function(a,b,c,f){var e=a.split(".");a=1===e.length;f=e[0];f=!a&&f in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var k=0;k<e.length-1;k++){var d=e[k];if(!(d in f))return;f=f[d]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?f[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE? 6$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+"$"+e),$jscomp.defineProperty(f,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1}; 7$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}}; 8$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}; 9$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1}; 10$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_}; 11$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.value,b)}; 12$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0}; 13$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0}; 14$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)}; 15$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a}; 16$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()}; 17$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(c){return{value:c,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()}; 18$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()}; 19$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var f=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(f);if(!f.done)return this.context_.stop_(),f;var e=f.value}catch(k){return this.context_.yieldAllIterator_=null,this.context_.throw_(k),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,e);return this.nextStep_()}; 20$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}}; 21$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b}; 22$jscomp.asyncExecutePromiseGenerator=function(a){function b(f){return a.next(f)}function c(f){return a.throw(f)}return new Promise(function(f,e){function k(d){d.done?f(d.value):Promise.resolve(d.value).then(b,c).then(k,e)}k(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))}; 23$jscomp.initSymbol=function(){};
23$jscomp.polyfill("Symbol",function(a){if(a)return a;var b=function(k,d){this.$jscomp$symbol$id_=k;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:d})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",f=0,e=function(k){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(k||"")+"_"+f++,k)};return e},"es6","es3"); 24$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var f=$jscomp.global[b[c]];"function"===typeof f&&"function"!=typeof f.prototype[a]&&$jscomp.defineProperty(f.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6", 25"es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}; 26$jscomp.polyfill("Promise",function(a){function b(){this.batch_=null}function c(d){return d instanceof e?d:new e(function(g,h){g(d)})}if(a&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return a;b.prototype.asyncExecute=function(d){if(null==this.batch_){this.batch_=[];var g=this;this.asyncExecuteFunction(function(){g.executeBatch_()})}this.batch_.push(d)}; 27var f=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(d){f(d,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var d=this.batch_;this.batch_=[];for(var g=0;g<d.length;++g){var h=d[g];d[g]=null;try{h()}catch(l){this.asyncThrow_(l)}}}this.batch_=null};b.prototype.asyncThrow_=function(d){this.asyncExecuteFunction(function(){throw d;})};var e=function(d){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var g=this.createResolveAndReject_(); 28try{d(g.resolve,g.reject)}catch(h){g.reject(h)}};e.prototype.createResolveAndReject_=function(){function d(l){return function(m){h||(h=!0,l.call(g,m))}}var g=this,h=!1;return{resolve:d(this.resolveTo_),reject:d(this.reject_)}};e.prototype.resolveTo_=function(d){if(d===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(d instanceof e)this.settleSameAsPromise_(d);else{a:switch(typeof d){case "object":var g=null!=d;break a;case "function":g=!0;break a;default:g=!1}g?this.resolveToNonPromiseObj_(d): 29this.fulfill_(d)}};e.prototype.resolveToNonPromiseObj_=function(d){var g=void 0;try{g=d.then}catch(h){this.reject_(h);return}"function"==typeof g?this.settleSameAsThenable_(g,d):this.fulfill_(d)};e.prototype.reject_=function(d){this.settle_(2,d)};e.prototype.fulfill_=function(d){this.settle_(1,d)};e.prototype.settle_=function(d,g){if(0!=this.state_)throw Error("Cannot settle("+d+", "+g+"): Promise already settled in state"+this.state_);this.state_=d;this.result_=g;2===this.state_&&this.scheduleUnhandledRejectionCheck_(); 30this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var d=this;f(function(){if(d.notifyUnhandledRejection_()){var g=$jscomp.global.console;"undefined"!==typeof g&&g.error(d.result_)}},1)};e.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var d=$jscomp.global.CustomEvent,g=$jscomp.global.Event,h=$jscomp.global.dispatchEvent;if("undefined"===typeof h)return!0;"function"===typeof d?d=new d("unhandledrejection",{cancelable:!0}): 31"function"===typeof g?d=new g("unhandledrejection",{cancelable:!0}):(d=$jscomp.global.document.createEvent("CustomEvent"),d.initCustomEvent("unhandledrejection",!1,!0,d));d.promise=this;d.reason=this.result_;return h(d)};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var d=0;d<this.onSettledCallbacks_.length;++d)k.asyncExecute(this.onSettledCallbacks_[d]);this.onSettledCallbacks_=null}};var k=new b;e.prototype.settleSameAsPromise_=function(d){var g=this.createResolveAndReject_(); 32d.callWhenSettled_(g.resolve,g.reject)};e.prototype.settleSameAsThenable_=function(d,g){var h=this.createResolveAndReject_();try{d.call(g,h.resolve,h.reject)}catch(l){h.reject(l)}};e.prototype.then=function(d,g){function h(n,p){return"function"==typeof n?function(q){try{l(n(q))}catch(r){m(r)}}:p}var l,m,t=new e(function(n,p){l=n;m=p});this.callWhenSettled_(h(d,l),h(g,m));return t};e.prototype.catch=function(d){return this.then(void 0,d)};e.prototype.callWhenSettled_=function(d,g){function h(){switch(l.state_){case 1:d(l.result_); 33break;case 2:g(l.result_);break;default:throw Error("Unexpected state: "+l.state_);}}var l=this;null==this.onSettledCallbacks_?k.asyncExecute(h):this.onSettledCallbacks_.push(h);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(d){return new e(function(g,h){h(d)})};e.race=function(d){return new e(function(g,h){for(var l=$jscomp.makeIterator(d),m=l.next();!m.done;m=l.next())c(m.value).callWhenSettled_(g,h)})};e.all=function(d){var g=$jscomp.makeIterator(d),h=g.next();return h.done?c([]):new e(function(l, 34m){function t(q){return function(r){n[q]=r;p--;0==p&&l(n)}}var n=[],p=0;do n.push(void 0),p++,c(h.value).callWhenSettled_(t(n.length-1),m),h=g.next();while(!h.done)})};return e},"es6","es3");var logger=logdown("ProtoPedia");logger.state.isEnabled=!0; 35var Common={_className:"Common",_startPos:0,_winScrollTop:0,THUMBNAIL_WIDTH:1500,THUMBNAIL_HEIGHT:1500,WINDOW_WIDTH:640,CAMPAIGN_LINK:"https://we-are-ma.github.io/protopedia-terms/campaign-link.csv",_markdownConfigured:!1,_mermaidInitialized:!1,commomInit:function(){var a,b,c,f,e,k;return $jscomp.asyncExecutePromiseGeneratorProgram(function(d){switch(d.nextAddress){case 1:return $(".placeholder").on("keyup change",function(){var g=$(this).next(".placeholder-text");0!==$(this).val().length?g.addClass("none"): 36g.removeClass("none")}),$(".placeholder").trigger("change"),$("#search-trigger").click(function(){$(".header-search-box").stop().slideToggle()}
36),$("#notify-panel-trigger").click(function(){$("#notify-panel-target").stop().fadeToggle();$("#user-panel-target").stop().fadeOut();Common.notifyClear()}),$("#user-panel-trigger").click(function(){$("#notify-panel-target").stop().fadeOut();$("#user-panel-target").stop().fadeToggle()}),$("form").submit(function(){Common.doubleSubmit()}),$("input").keypress(function(g){if(13=== 37g.which)return!1}),$(".modal").click(function(g){"modal"==g.target.className&&Common.hideModal()}),$("#reminderModal").click(function(){Common.hideModal()}),$("#keywordSearch").complete(function(g){Common.keywordSearch()}),$("#keywordBtn").click(function(g){Common.keywordSearch()}),$("#prototype").click(function(){location.href="/prototype"}),$("#event").click(function(){location.href="/event"}),$("#material").click(function(){location.href="/material"}),$("#helpcenter").click(function(){window.open("https://protopedia.gitbook.io/helpcenter/", 38"_blank")}),d.yield(AdCtrl.getAdById("AD_001"),2);case 2:a=d.yieldResult;try{b=a.setting.split(","),4==b.length&&($("#campaignLink").css("background-color",b[0]),$("#campaignLinkMessage").css("color",b[1]),$("#campaignLinkMessage").text(b[2]),$("#campaignLinkMessage").attr("href",b[3]),$("#campaignLink").show())}catch(g){}return d.yield(AdCtrl.getAdById("AD_003"),3);case 3:c=d.yieldResult;try{$("#affiriateFree1").prepend(c.setting),f=$("#affiriateFree1").children().first().data(),null!=f&&f.show? 39$("#affiriateFree1").show():($("#affiriateFree1").hide(),$("#affiriateFree1").css("margin-bottom","35px"))}catch(g){}return d.yield(AdCtrl.getAdById("AD_004"),4);case 4:e=d.yieldResult;try{$("#affiriateFree2").prepend(e.setting),f=$("#affiriateFree2").children().first().data(),null!=f&&f.show?$("#affiriateFree2").show():($("#affiriateFree2").hide(),$("#affiriateFree2").css("margin-bottom","35px"))}catch(g){}k=function(){Common._winScrollTop=$(window).scrollTop();if(Common._winScrollTop>=Common._startPos)200<= 40Common._winScrollTop&&$(".share-booster").hide();else{var g=$(document).height();Common._winScrollTop<=g-1E3&&$(".share-booster").show()}Common._startPos=Common._winScrollTop};k();$(window).on("scroll",k);$("ins.adsbygoogle").each(function(){try{(adsbygoogle=window.adsbygoogle||[]).push({})}catch(g){}});$(window).resize(function(){Common.resize()});Common.resize();Common.setNotification();d.jumpToEnd()}})},escapeHtml:function(a){return String(a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g, 41">").replace(/"/g,""").replace(/'/g,"'")},configureMarkdown:function(){if(!Common._markdownConfigured){var a=new marked.Renderer,b=a.code;a.code=function(c,f,e){var k=c,d=f;c&&"object"===typeof c&&(k=c.text||"",d=c.lang||c.language||"",e=c.escaped);d=(d||"").toLowerCase();return"mermaid"===d?'<div class="mermaid">'+Common.escapeHtml(k)+"</div>":b.call(this,c,f,e)};marked.use({renderer:a});Common._markdownConfigured=!0}},getMarkdownHtml:function(a){Common.configureMarkdown();return DOMPurify.sanitize(marked.parse(a|| 42""))},renderMermaid:function(a){if(window.mermaid){Common._mermaidInitialized||(mermaid.initialize({startOnLoad:!1}),Common._mermaidInitialized=!0);var b=a;a&&a.jquery&&(b=a[0]);b&&(a=b.querySelectorAll(".mermaid"),0<a.length&&mermaid.run({nodes:a}))}},renderMarkdown:function(a,b){a=Common.getMarkdownHtml(a);var c=b;"string"===typeof b&&(c=$(b));c.html(a);Common.renderMermaid(c)},resize:function(){var a=$(window).width();Common.WINDOW_WIDTH>a?($(".pc-size").hide(),$(".sp-size").show()):($(".pc-size").show(), 43$(".sp-size").hide())},doubleSubmit:function(){$(":submit","form").prop("disabled",!0);setTimeout(function(){$(":submit","form").prop("disabled",!1)},2E3);$(":button","form").prop("disabled",!0);setTimeout(function(){$(":button","form").prop("disabled",!1)},2E3)},showModal:function(a){null==a?$("#mainModal").show():$("#"+a).show()},hideModal:function(){$(".modal").hide()},showLoading:function(){try{Common.startWriteLog(Common._className,"UN_showLoading"),document.getElementById("loading").classList.remove("is-hide")}catch(a){logger.error(a)}finally{Common.endWriteLog(Common._className, 44"UN_showLoading")}},hideLoading:function(){try{Common.startWriteLog(Common._className,"UN_hideLoading"),document.getElementById("loading").classList.add("is-hide")}catch(a){logger.error(a)}finally{Common.endWriteLog(Common._className,"UN_hideLoading")}},shareFacebook:function(){var a="https://www.facebook.com/sharer.php?u="+encodeURIComponent(location.href);window.open(a,"sharewindow","width=800, height=600, personalbar=0, toolbar=0, scrollbars=1, resizable=!")},shareTwitter:function(){var a=$('[name="twitter:title"]').attr("content"); 45$('[name="twitter:description"]').attr("content");var b="";null!=a&&(b+=a+"\n");b=b+"#ProtoPedia\n"+(location.href+"\n");a="https://twitter.com/intent/tweet?text="+encodeURIComponent(b);window.open(a,"sharewindow","width=600, height=400, personalbar=0, toolbar=0, scrollbars=1, resizable=!")},link:function(a){var b=$(a).attr("href");a=$(a).attr("target");null==a?location.href=b:open(b,a)},copyUrl:function(){navigator.clipboard&&(navigator.clipboard.writeText(location.href),alert("ã°ãªãããã¼ãã«ã³ãã¼ãã¾ããã"))}, 46keywordSearch:function(){var a="";try{Common.startWriteLog(Common._className,"UN_keywordSearch"),a=$("#keywordSearch").val(),a=$.trim(a),0<a.length&&(window.location.href="/keyword?word="+a)}catch(b){logger.error(b)}finally{Common.endWriteLog(Common._className,"UN_keywordSearch")}},notifyClear:function(){try{Common.startWriteLog(Common._className,"UN_notifyClear"),$.ajax({url:"/api/notifyClear",type:"POST"}).done(function(a,b,c){logger.info(a);1==a.status?$("#notify-panel-badge").css("visibility", 47"hidden"):alert(a.messages[0])}).fail(function(a,b,c){logger.error(c);alert("ã¨ã©ã¼ãçºçãã¾ããã")}).always(function(){})}catch(a){logger.error(a)}finally{Common.endWriteLog(Common._className,"UN_notifyClear")}},savePage:function(a,b,c){var f,e,k;return $jscomp.asyncExecutePromiseGeneratorProgram(function(d){switch(d.nextAddress){case 1:return f="UN_savePage",e={},d.setCatchFinallyBlocks(2,3),Common.startWriteLog(Common._className,f),d.yield(PageState.loadState(),5);case 5:e=d.yieldResult,null==e?e={topPrototypeId:a, 48list:b,skip:c}:(e.topPrototypeId=a,e.list=e.list.concat(b),e.skip=c),PageState.saveState(e);case 3:d.enterFinallyBlock();Common.endWriteLog(Common._className,f);d.leaveFinallyBlock(0);break;case 2:k=d.enterCatchBlock(),logger.error(k),d.jumpTo(3)}})},loadPage:function(a){var b,c,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){switch(e.nextAddress){case 1:return b="UN_loadPage",c={},e.setCatchFinallyBlocks(2,3),Common.startWriteLog(Common._className,b),e.yield(PageState.loadState(), 495);case 5:c=e.yieldResult;if(null==c||c.topPrototypeId==a){e.jumpTo(6);break}return e.yield(PageState.deleteState(),7);case 7:return e.return(null);case 6:return e.return(c);case 3:e.enterFinallyBlock();Common.endWriteLog(Common._className,b);e.leaveFinallyBlock(0);break;case 2:f=e.enterCatchBlock(),logger.error(f),e.jumpTo(3)}})},startWriteLog:function(a,b){var c=formatDate(new Date)+" ";logger.info(c+("["+a+"] "+b+" - Start"))},endWriteLog:function(a,b){var c=formatDate(new Date)+" ";logger.info(c+ 50("["+a+"] "+b+" - End"))},getColor:function(a){return"#1abc9c #f1c40f #2ecc71 #e67e22 #3498db #e74c3c #9b59b6 #16a085 #f39c12 #27ae60 #d35400 #2980b9 #c0392b #8e44ad".split(" ")[a%14]},invalidKey:function(a){return 13==a.keyCode||32==a.keyCode?!0:!1},sleep:function(a){for(var b=new Date;new Date-b<a;);},uuid:function(){var a="",b;for(b=0;32>b;b++){var c=16*Math.random()|0;if(8==b||12==b||16==b||20==b)a+="-";a+=(12==b?4:16==b?c&3|8:c).toString(16)}return a},setNotification:function(){var a=new Toastme({timeout:5E3, 51positionY:"top",positionX:"center",distanceY:100,distanceX:0,zIndex:1E3,theme:"default"}),b=$("#notificationType").val(),c=$("#notificationMsg").val();0<c.length&&("success"==b?a.success(c):"error"==b?a.error(c):"warning"==b?a.warning(c):"info"==b?a.info(c):a.default(c))},getUrl:function(){return location.href.replace(location.pathname,"")+"/"},doTest:function(){alert("ããããï¼")}}; 52function formatDate(a,b){b||(b="YYYY-MM-DD hh:mm:ss.SSS");b=b.replace(/YYYY/g,a.getFullYear());b=b.replace(/MM/g,("0"+(a.getMonth()+1)).slice(-2));b=b.replace(/DD/g,("0"+a.getDate()).slice(-2));b=b.replace(/hh/g,("0"+a.getHours()).slice(-2));b=b.replace(/mm/g,("0"+a.getMinutes()).slice(-2));b=b.replace(/ss/g,("0"+a.getSeconds()).slice(-2));if(b.match(/S/g)){a=("00"+a.getMilliseconds()).slice(-3);for(var c=b.match(/S/g).length,f=0;f<c;f++)b=b.replace(/S/,a.substring(f,f+1))}return b} 53String.prototype.trim=function(){return this.replace(/^[\sã]+|[\sã]+$/g,"")};String.prototype.ltrim=function(){return this.replace(/^[\sã]+/,"")};String.prototype.rtrim=function(){return this.replace(/[\sã]+$/,"")};String.prototype.replaceAll=function(a,b){return this.replace(new RegExp(a,"g"),b)};function base64ToArrayBuffer(a){a=window.atob(a);for(var b=a.length,c=new Uint8Array(b),f=0;f<b;
53f++)c[f]=a.charCodeAt(f);return c.buffer}function parseStrToBoolean(a){return"true"==a?!0:!1} 54function printProperties(a){var b="",c;for(c in a)b+=c+"="+a[c]+"\n";logger.log(b)}function getUrlVars(){var a=[];var b=window.location.search.slice(1).split("&");var c=b.length;for(var f=0;f<c;f++){var e=b[f].split("=");a.push(e[0]);a[e[0]]=e[1]}return a}function max(a){return $(window).width()<=a?!0:!1}function isValidURL(a){try{return new URL(a),!0}catch(b){return!1}} 55document.addEventListener("DOMContentLoaded",function(){document.getElementById("button");document.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend","\n <style>\n #loading{\n position: fixed;\n top: 0;\n left: 0;\n z-index: 999;\n width: 100%;\n height:100%;\n background: rgba(0,0,0,0.6);\n }\n #loading .cv-spinner {\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n #loading .spinner {\n width: 80px;\n height: 80px;\n border: 4px #ddd solid;\n border-top: 4px #999 solid;\n border-radius: 50%;\n animation: sp-anime 0.8s infinite linear;\n }\n @keyframes sp-anime {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(359deg); }\n }\n #loading.is-hide{\n display:none;\n }\n </style>\n "); 56document.getElementsByTagName("body")[0].insertAdjacentHTML("afterbegin",'\n \x3c!-- loading --\x3e\n <div id="loading" class="is-hide">\n <div class="cv-spinner">\n <span class="spinner"></span>\n </div>\n </div>\n \x3c!-- loading --\x3e\n ')});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.