'use strict';(function(){"function"!==typeof Object.keys&&(Object.keys=function(f){let h=[];for(let l in f)h.push(l);return h});"function"!==typeof Object.assign&&(Object.assign=function(){return $.extend.apply(this,arguments)});"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});"Blob"in window&&"function"===typeof window.atob&&HTMLCanvasElement&&HTMLCanvasElement.prototype&&!HTMLCanvasElement.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype, "toBlob",{value:function(f,h,l){let n=this;setTimeout(function(){let p=atob(n.toDataURL(h,l).split(",")[1]),r=p.length,u=new Uint8Array(r);for(let t=0;tl||(delete this._seq[f].rslv[h],this._seq[f].order.splice(l,1))}};this.replaceSeq=function(f,h,l){if("undefined"===typeof this._seq||"undefined"===typeof this._seq[f])throw new TypeError("can't replace uid '"+h+"' in unexist seq '"+ f+"'");if(0>this.idxOfSeq(f,h))throw new TypeError("can't replace unexist uid '"+h+"' in seq '"+f+"'");this._seq[f].rslv[h]=l};this.exeSeq=function(f,h){h=Promise.resolve(h);if(!this._seq||!this._seq[f])return h;for(let l=0;l=d.length)break;m=d.indexOf(g,k)}b=[];d=-1;e=0;for(g=0;g=c[m][0]&&gc[m][1]&&c.splice(m,1)}-1===d&&k?(-1!== e&&ec.length)return b;a=c[0].split("-");if(3>a.length)return b;c=c[1].split(":");if(3>c.length)return b;b=new Date(a[0],a[1]-1,a[2],c[0],c[1],c[2])}return b},sec2timeStr:function(){if(0===arguments.length)return"";let a=Number(arguments[0]);if(isNaN(a))return"";const b=0=arguments[2]?arguments[2]:3,c=0=c&&arguments[1]<=b?arguments[1]:null,e=[];for(;;){var g=e.length+1;if(g>=b)break;if(d?g>=d:g>=c&&60>a)break;g=a%60;a=(a-g)/60;e.unshift(10>g?"0"+String(g):String(g))}e.unshift(a);return e.join(":")},timeStr2sec:function(){if(0===arguments.length)return Number.NaN;const a=String(arguments[0]).split(":");if(3a&&(a+= b);return a},doTouch:function(a,b,c,d){let e=!1;for(let g=0;ga.cnt)a.cnt=0;if(isNaN(a.per)||1>a.per)a.per=1;a.page_cnt=Math.ceil(a.cnt/a.per);a.cur=D(a.cur,1,a.page_cnt);if(isNaN(a.radius)||0>a.radius)a.radius=0;a.start=(a.cur-1)*a.per;a.end=Math.min(a.start+a.per,a.cnt);a.pager_start=Math.max(Math.min(a.cur+a.radius,a.page_cnt)-2*a.radius,1);a.pager_end=Math.min(a.pager_start+ 2*a.radius,a.page_cnt);a.pager=[];for(b=a.pager_start;b<=a.pager_end;++b)a.pager.push(b);return a},ajaxWindow:function(a,b,c,d){a={url:a,method:b,data:c,xhr:function(){const g=$.ajaxSettings.xhr(),k=g.setRequestHeader;g.setRequestHeader=function(m,x){"X-Requested-With"!==m&&k.call(this,m,x)};return g}};c instanceof FormData&&(a.cache=!1,a.contentType=!1,a.processData=!1);d=p(d)?d:[];const e=window.open.apply(window,d);$.ajax(a).done(function(g){e.document.open();e.document.write(g)})},getYtbId:function(a){let b= f("v=","[A-Za-z0-9_-]{11}",a);if(b.length)return b;b=f("/embed/","[A-Za-z0-9_-]{11}",a);if(b.length)return b;b=f("youtu.be/","[A-Za-z0-9_-]{11}",a);return b.length?b:(b=/^[A-Za-z0-9_-]{11}$/.exec(l(a)))&&b.length?b[0]:null},asString:function(a){return"string"===typeof a?a:"number"!==typeof a||isNaN(a)?"":String(a)},els:function(a){return a instanceof Node?[a]:"string"===typeof a?Array.from(document.querySelectorAll(a)):a&&"function"===typeof a[Symbol.iterator]?Array.from(a):[]},el:function(a){if(a instanceof Node)return a;if("string"===typeof a)return document.querySelector(a);if(a&&"function"===typeof a[Symbol.iterator])for(let b of a)return b;return null},getMostTop:function(){let a=null;document.querySelectorAll("body *").forEach(b=>{var c=window.getComputedStyle(b);"none"!==c.display&&"hidden"!==c.visibility&&(c=parseFloat(c.zIndex),!isNaN(c)&&2147483647!==c&&(null===a||a.zIndex").addClass(a);c?a.html(h):a.text(h);return a.append(l)},create_close:function(){return $("").addClass("close").text("\u00d7")}};for(let a in b)"undefined"!==typeof k[a]&&(b[a]=k[a]);let e=$(b.container_selector).hide(),d=[];this.add=function(a,h,l){for(;0=b.max_length;)$(d.shift()).trigger("msg_close");var c=b.create_close();a=b.create_msg(a,h,c,l);a.bind("msg_close",function(){let f=$(this).data("timeout");f&&clearTimeout(f);$(this).slideUp(b.slide_duration,function(){$(this).remove();const m=d.indexOf(this);-1=b||da[e])e=h;if(!f)break;null!==e&&(c[e]=a[e],delete a[e])}return c},getPair:function(a){let b={};a=g.get(a);if(null!==a){a=a.split("/");for(let c=0;cwindow.pageYOffset&&e+f>window.pageXOffset)return c=!0,!1}});return c},onViewportChg:function(b){$(window).on("DOMContentLoaded load resize scroll",b)}}})(); 'use strict';(function(){let h=window.ReciCommonUtils,l={setDefaultIpt:function(a,b,d,c){if("undefined"!==typeof c&&null!==c){var e=l,f=h.constobj;for(let g in d){let k=d[g],m=null!==b&&0c)&&$("html, body").animate({scrollTop:d},b)}},setDataList:function(a,b){a.empty();for(let d in b)$("