/*! * Vue.js v2.6.10 * (c) 2014-2019 Evan You * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Vue=t()}(this,function(){"use strict";var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function r(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}var a=Object.prototype.toString;function s(e){return"[object Object]"===a.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function l(e){return null==e?"":Array.isArray(e)||s(e)&&e.toString===a?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function y(e,t){return m.call(e,t)}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,b=g(function(e){return e.replace(_,function(e,t){return t?t.toUpperCase():""})}),$=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),w=/\B([A-Z])/g,C=g(function(e){return e.replace(w,"-$1").toLowerCase()});var x=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function k(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n0,Z=J&&J.indexOf("edge/")>0,G=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),X=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),Y={}.watch,Q=!1;if(z)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===B&&(B=!z&&!V&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),B},ne=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,oe="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);ie="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ae=S,se=0,ce=function(){this.id=se++,this.subs=[]};ce.prototype.addSub=function(e){this.subs.push(e)},ce.prototype.removeSub=function(e){h(this.subs,e)},ce.prototype.depend=function(){ce.target&&ce.target.addDep(this)},ce.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!y(i,"default"))a=!1;else if(""===a||a===C(e)){var c=Pe(String,i.type);(c<0||s0&&(st((u=e(u,(a||"")+"_"+c))[0])&&st(f)&&(s[l]=he(f.text+u[0].text),u.shift()),s.push.apply(s,u)):i(u)?st(f)?s[l]=he(f.text+u):""!==u&&s.push(he(u)):st(u)&&st(f)?s[l]=he(f.text+u.text):(r(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(e):void 0}function st(e){return n(e)&&n(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var n=Object.create(null),r=oe?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=pt(n,c,t[c]))}else i={};for(var u in n)u in i||(i[u]=dt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=i),R(i,"$stable",a),R(i,"$key",s),R(i,"$hasNormal",o),i}function pt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:at(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function dt(e,t){return function(){return e[t]}}function vt(e,t){var r,i,a,s,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),i=0,a=e.length;idocument.createEvent("Event").timeStamp&&(sn=function(){return cn.now()})}function un(){var e,t;for(an=sn(),rn=!0,Qt.sort(function(e,t){return e.id-t.id}),on=0;onon&&Qt[n].id>e.id;)n--;Qt.splice(n+1,0,e)}else Qt.push(e);nn||(nn=!0,Ye(un))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Re(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:S,set:S};function dn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&$e(!1);var o=function(o){i.push(o);var a=Me(o,t,n,e);xe(r,o,a),o in e||dn(e,"_props",o)};for(var a in t)o(a);$e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?S:x(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;s(t=e._data="function"==typeof t?function(e,t){le();try{return e.call(t,t)}catch(e){return Re(e,t,"data()"),{}}finally{fe()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&y(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&dn(e,"_data",o))}var a;Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=te();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new fn(e,a||S,S,hn)),i in e||mn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===a.call(n)&&e.test(t));var n}function An(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=xn(a.componentOptions);s&&!t(s)&&On(n,o,r,i)}}}function On(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,h(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=bn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=De($n(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&qt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=ut(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return Pt(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Pt(t,e,n,r,i,!0)};var o=r&&r.data;xe(t,"$attrs",o&&o.attrs||e,null,!0),xe(t,"$listeners",n._parentListeners||e,null,!0)}(n),Yt(n,"beforeCreate"),function(e){var t=ct(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach(function(n){xe(e,n,t[n])}),$e(!0))}(n),vn(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),Yt(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(wn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ke,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){if(s(t))return _n(this,e,t,n);(n=n||{}).user=!0;var r=new fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Re(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(wn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?k(t):t;for(var n=k(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;iparseInt(this.max)&&On(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:ae,extend:A,mergeOptions:De,defineReactive:xe},e.set=ke,e.delete=Ae,e.nextTick=Ye,e.observable=function(e){return Ce(e),e},e.options=Object.create(null),M.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,A(e.options.components,Tn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),Cn(e),function(e){M.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:te}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:Tt}),wn.version="2.6.10";var En=p("style,class"),Nn=p("input,textarea,option,select,progress"),jn=function(e,t,n){return"value"===n&&Nn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Dn=p("contenteditable,draggable,spellcheck"),Ln=p("events,caret,typing,plaintext-only"),Mn=function(e,t){return Hn(t)||"false"===t?"false":"contenteditable"===e&&Ln(t)?t:"true"},In=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Fn="http://www.w3.org/1999/xlink",Pn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Rn=function(e){return Pn(e)?e.slice(6,e.length):""},Hn=function(e){return null==e||!1===e};function Bn(e){for(var t=e.data,r=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Un(i.data,t));for(;n(r=r.parent);)r&&r.data&&(t=Un(t,r.data));return function(e,t){if(n(e)||n(t))return zn(e,Vn(t));return""}(t.staticClass,t.class)}function Un(e,t){return{staticClass:zn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function zn(e,t){return e?t?e+" "+t:e:t||""}function Vn(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,o=e.length;i-1?hr(e,t,n):In(t)?Hn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Dn(t)?e.setAttribute(t,Mn(t,n)):Pn(t)?Hn(n)?e.removeAttributeNS(Fn,Rn(t)):e.setAttributeNS(Fn,t,n):hr(e,t,n)}function hr(e,t,n){if(Hn(n))e.removeAttribute(t);else{if(q&&!W&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var mr={create:dr,update:dr};function yr(e,r){var i=r.elm,o=r.data,a=e.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=Bn(r),c=i._transitionClasses;n(c)&&(s=zn(s,Vn(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var gr,_r,br,$r,wr,Cr,xr={create:yr,update:yr},kr=/[\w).+\-_$\]]/;function Ar(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&kr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,$r),key:'"'+e.slice($r+1)+'"'}:{exp:e,key:null};_r=e,$r=wr=Cr=0;for(;!zr();)Vr(br=Ur())?Jr(br):91===br&&Kr(br);return{exp:e.slice(0,wr),key:e.slice(wr+1,Cr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ur(){return _r.charCodeAt(++$r)}function zr(){return $r>=gr}function Vr(e){return 34===e||39===e}function Kr(e){var t=1;for(wr=$r;!zr();)if(Vr(e=Ur()))Jr(e);else if(91===e&&t++,93===e&&t--,0===t){Cr=$r;break}}function Jr(e){for(var t=e;!zr()&&(e=Ur())!==t;);}var qr,Wr="__r",Zr="__c";function Gr(e,t,n){var r=qr;return function i(){null!==t.apply(null,arguments)&&Qr(e,i,n,r)}}var Xr=Ve&&!(X&&Number(X[1])<=53);function Yr(e,t,n,r){if(Xr){var i=an,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qr.addEventListener(e,t,Q?{capture:n,passive:r}:n)}function Qr(e,t,n,r){(r||qr).removeEventListener(e,t._wrapper||t,n)}function ei(e,r){if(!t(e.data.on)||!t(r.data.on)){var i=r.data.on||{},o=e.data.on||{};qr=r.elm,function(e){if(n(e[Wr])){var t=q?"change":"input";e[t]=[].concat(e[Wr],e[t]||[]),delete e[Wr]}n(e[Zr])&&(e.change=[].concat(e[Zr],e.change||[]),delete e[Zr])}(i),rt(i,o,Yr,Qr,Gr,r.context),qr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,r){if(!t(e.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=e.data.domProps||{},c=r.data.domProps||{};for(i in n(c.__ob__)&&(c=r.data.domProps=A({},c)),s)i in c||(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var u=t(o)?"":String(o);ii(a,u)&&(a.value=u)}else if("innerHTML"===i&&qn(a.tagName)&&t(a.innerHTML)){(ti=ti||document.createElement("div")).innerHTML=""+o+"";for(var l=ti.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[i])try{a[i]=o}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var r=e.value,i=e._vModifiers;if(n(i)){if(i.number)return f(r)!==f(t);if(i.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var oi={create:ri,update:ri},ai=g(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function si(e){var t=ci(e.style);return e.staticStyle?A(e.staticStyle,t):t}function ci(e){return Array.isArray(e)?O(e):"string"==typeof e?ai(e):e}var ui,li=/^--/,fi=/\s*!important$/,pi=function(e,t,n){if(li.test(t))e.style.setProperty(t,n);else if(fi.test(n))e.style.setProperty(C(t),n.replace(fi,""),"important");else{var r=vi(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(yi).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function _i(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(yi).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&A(t,$i(e.name||"v")),A(t,e),t}return"string"==typeof e?$i(e):void 0}}var $i=g(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),wi=z&&!W,Ci="transition",xi="animation",ki="transition",Ai="transitionend",Oi="animation",Si="animationend";wi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ki="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oi="WebkitAnimation",Si="webkitAnimationEnd"));var Ti=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ei(e){Ti(function(){Ti(e)})}function Ni(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gi(e,t))}function ji(e,t){e._transitionClasses&&h(e._transitionClasses,t),_i(e,t)}function Di(e,t,n){var r=Mi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ci?Ai:Si,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=Ci,l=a,f=o.length):t===xi?u>0&&(n=xi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ci:xi:null)?n===Ci?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ci&&Li.test(r[ki+"Property"])}}function Ii(e,t){for(;e.length1}function Ui(e,t){!0!==t.data.show&&Pi(t)}var zi=function(e){var o,a,s={},c=e.modules,u=e.nodeOps;for(o=0;ov?_(e,t(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(0,r,p,v)}(p,h,y,o,l):n(y)?(n(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):n(h)?$(0,h,0,h.length-1):n(e.text)&&u.setTextContent(p,""):e.text!==i.text&&u.setTextContent(p,i.text),n(v)&&n(d=v.hook)&&n(d=d.postpatch)&&d(e,i)}}}function k(e,t,i){if(r(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o-1,a.selected!==o&&(a.selected=o);else if(N(Wi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function qi(e,t){return t.every(function(t){return!N(t,e)})}function Wi(e){return"_value"in e?e._value:e.value}function Zi(e){e.target.composing=!0}function Gi(e){e.target.composing&&(e.target.composing=!1,Xi(e.target,"input"))}function Xi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Yi(e){return!e.componentInstance||e.data&&e.data.transition?e:Yi(e.componentInstance._vnode)}var Qi={model:Vi,show:{bind:function(e,t,n){var r=t.value,i=(n=Yi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Pi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Yi(n)).data&&n.data.transition?(n.data.show=!0,r?Pi(n,function(){e.style.display=e.__vOriginalDisplay}):Ri(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},eo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function to(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?to(zt(t.children)):e}function no(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[b(o)]=i[o];return t}function ro(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var io=function(e){return e.tag||Ut(e)},oo=function(e){return"show"===e.name},ao={name:"transition",props:eo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(io)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=to(o);if(!a)return o;if(this._leaving)return ro(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=no(this),u=this._vnode,l=to(u);if(a.data.directives&&a.data.directives.some(oo)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!Ut(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=A({},c);if("out-in"===r)return this._leaving=!0,it(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ro(e,o);if("in-out"===r){if(Ut(a))return u;var p,d=function(){p()};it(c,"afterEnter",d),it(c,"enterCancelled",d),it(f,"delayLeave",function(e){p=e})}}return o}}},so=A({tag:String,moveClass:String},eo);function co(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function uo(e){e.data.newPos=e.elm.getBoundingClientRect()}function lo(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete so.mode;var fo={Transition:ao,TransitionGroup:{props:so,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Zt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=no(this),s=0;s-1?Gn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Gn[e]=/HTMLUnknownElement/.test(t.toString())},A(wn.options.directives,Qi),A(wn.options.components,fo),wn.prototype.__patch__=z?zi:S,wn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ve),Yt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new fn(e,r,S,{before:function(){e._isMounted&&!e._isDestroyed&&Yt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Yt(e,"mounted")),e}(this,e=e&&z?Yn(e):void 0,t)},z&&setTimeout(function(){F.devtools&&ne&&ne.emit("init",wn)},0);var po=/\{\{((?:.|\r?\n)+?)\}\}/g,vo=/[-.*+?^${}()|[\]\/\\]/g,ho=g(function(e){var t=e[0].replace(vo,"\\$&"),n=e[1].replace(vo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var mo={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Fr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ir(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var yo,go={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Fr(e,"style");n&&(e.staticStyle=JSON.stringify(ai(n)));var r=Ir(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},_o=function(e){return(yo=yo||document.createElement("div")).innerHTML=e,yo.textContent},bo=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),$o=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wo=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Co=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+P.source+"]*",Ao="((?:"+ko+"\\:)?"+ko+")",Oo=new RegExp("^<"+Ao),So=/^\s*(\/?)>/,To=new RegExp("^<\\/"+Ao+"[^>]*>"),Eo=/^]+>/i,No=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,Fo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Po=p("pre,textarea",!0),Ro=function(e,t){return e&&Po(e)&&"\n"===t[0]};function Ho(e,t){var n=t?Fo:Io;return e.replace(n,function(e){return Mo[e]})}var Bo,Uo,zo,Vo,Ko,Jo,qo,Wo,Zo=/^@|^v-on:/,Go=/^v-|^@|^:/,Xo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Qo=/^\(|\)$/g,ea=/^\[.*\]$/,ta=/:(.*)$/,na=/^:|^\.|^v-bind:/,ra=/\.[^.\]]+(?=[^\]]*$)/g,ia=/^v-slot(:|$)|^#/,oa=/[\r\n]/,aa=/\s+/g,sa=g(_o),ca="_empty_";function ua(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ma(t),rawAttrsMap:{},parent:n,children:[]}}function la(e,t){Bo=t.warn||Sr,Jo=t.isPreTag||T,qo=t.mustUseProp||T,Wo=t.getTagNamespace||T;t.isReservedTag;zo=Tr(t.modules,"transformNode"),Vo=Tr(t.modules,"preTransformNode"),Ko=Tr(t.modules,"postTransformNode"),Uo=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,c=!1;function u(e){if(l(e),s||e.processed||(e=fa(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&da(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(u=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&u.if&&da(u,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,u;e.children=e.children.filter(function(e){return!e.slotScope}),l(e),e.pre&&(s=!1),Jo(e.tag)&&(c=!1);for(var f=0;f]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,Do(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Ro(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(No.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(jo.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(Eo);if(m){C(m[0].length);continue}var y=e.match(To);if(y){var g=c;C(y[0].length),A(y[1],g,c);continue}var _=x();if(_){k(_),Ro(_.tagName,e)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(To.test($)||Oo.test($)||No.test($)||jo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&C(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function x(){var t=e.match(Oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(So))&&(r=e.match(xo)||e.match(Co));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&wo(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:Bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,l,f){var p=r&&r.ns||Wo(e);q&&"svg"===p&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Ar(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Mr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null";Er(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Mr(e,"change",Br(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Wr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Br(t,l);c&&(f="if($event.target.composing)return;"+f),Er(e,"value","("+t+")"),Mr(e,u,f,null,!0),(s||a)&&Mr(e,"blur","$forceUpdate()")}(e,r,i);else if(!F.isReservedTag(o))return Hr(e,r,i),!1;return!0},text:function(e,t){t.value&&Er(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Er(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:bo,mustUseProp:jn,canBeLeftOpenTag:$o,isReservedTag:Wn,getTagNamespace:Zn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ba)},xa=g(function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function ka(e,t){e&&($a=xa(t.staticKeys||""),wa=t.isReservedTag||T,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||d(e.tag)||!wa(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every($a)))}(t);if(1===t.type){if(!wa(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*(?:[\w$]+)?\s*\(/,Oa=/\([^)]*?\);*$/,Sa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ta={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ea={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Na=function(e){return"if("+e+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Na("$event.target !== $event.currentTarget"),ctrl:Na("!$event.ctrlKey"),shift:Na("!$event.shiftKey"),alt:Na("!$event.altKey"),meta:Na("!$event.metaKey"),left:Na("'button' in $event && $event.button !== 0"),middle:Na("'button' in $event && $event.button !== 1"),right:Na("'button' in $event && $event.button !== 2")};function Da(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=La(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function La(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return La(e)}).join(",")+"]";var t=Sa.test(e.value),n=Aa.test(e.value),r=Sa.test(e.value.replace(Oa,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ja[s])o+=ja[s],Ta[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Na(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ma).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ma(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Ta[e],r=Ea[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ia={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:S},Fa=function(e){this.options=e,this.warn=e.warn||Sr,this.transforms=Tr(e.modules,"transformCode"),this.dataGenFns=Tr(e.modules,"genData"),this.directives=A(A({},Ia),e.directives);var t=e.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pa(e,t){var n=new Fa(t);return{render:"with(this){return "+(e?Ra(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ra(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ha(e,t);if(e.once&&!e.onceProcessed)return Ba(e,t);if(e.for&&!e.forProcessed)return za(e,t);if(e.if&&!e.ifProcessed)return Ua(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=qa(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ga((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:b(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:qa(t,n,!0);return"_c("+e+","+Va(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Va(e,t));var i=e.inlineTemplate?null:qa(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ga(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ka(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ka))}function Ja(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ua(e,t,Ja,"null");if(e.for&&!e.forProcessed)return za(e,t,Ja);var r=e.slotScope===ca?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(qa(e,t)||"undefined")+":undefined":qa(e,t)||"undefined":Ra(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function qa(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Ra)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r':'
',ts.innerHTML.indexOf(" ")>0}var os=!!z&&is(!1),as=!!z&&is(!0),ss=g(function(e){var t=Yn(e);return t&&t.innerHTML}),cs=wn.prototype.$mount;return wn.prototype.$mount=function(e,t){if((e=e&&Yn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ss(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=rs(r,{outputSourceRange:!1,shouldDecodeNewlines:os,shouldDecodeNewlinesForHref:as,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return cs.call(this,e,t)},wn.compile=rs,wn}); /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Vuex=e()}(this,(function(){"use strict";var t=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function e(t,n){if(void 0===n&&(n=[]),null===t||"object"!=typeof t)return t;var o,r=(o=function(e){return e.original===t},n.filter(o)[0]);if(r)return r.copy;var i=Array.isArray(t)?[]:{};return n.push({original:t,copy:i}),Object.keys(t).forEach((function(o){i[o]=e(t[o],n)})),i}function n(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function o(t){return null!==t&&"object"==typeof t}var r=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},i={namespaced:{configurable:!0}};i.namespaced.get=function(){return!!this._rawModule.namespaced},r.prototype.addChild=function(t,e){this._children[t]=e},r.prototype.removeChild=function(t){delete this._children[t]},r.prototype.getChild=function(t){return this._children[t]},r.prototype.hasChild=function(t){return t in this._children},r.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},r.prototype.forEachChild=function(t){n(this._children,t)},r.prototype.forEachGetter=function(t){this._rawModule.getters&&n(this._rawModule.getters,t)},r.prototype.forEachAction=function(t){this._rawModule.actions&&n(this._rawModule.actions,t)},r.prototype.forEachMutation=function(t){this._rawModule.mutations&&n(this._rawModule.mutations,t)},Object.defineProperties(r.prototype,i);var c,a=function(t){this.register([],t,!1)};a.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},a.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},a.prototype.update=function(t){!function t(e,n,o){if(n.update(o),o.modules)for(var r in o.modules){if(!n.getChild(r))return;t(e.concat(r),n.getChild(r),o.modules[r])}}([],this.root,t)},a.prototype.register=function(t,e,o){var i=this;void 0===o&&(o=!0);var c=new r(e,o);0===t.length?this.root=c:this.get(t.slice(0,-1)).addChild(t[t.length-1],c);e.modules&&n(e.modules,(function(e,n){i.register(t.concat(n),e,o)}))},a.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],o=e.getChild(n);o&&o.runtime&&e.removeChild(n)},a.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var s=function(e){var n=this;void 0===e&&(e={}),!c&&"undefined"!=typeof window&&window.Vue&&v(window.Vue);var o=e.plugins;void 0===o&&(o=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new a(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var i=this,s=this.dispatch,u=this.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r;var f=this._modules.root.state;p(this,f,[],this._modules.root),h(this,f),o.forEach((function(t){return t(n)})),(void 0!==e.devtools?e.devtools:c.config.devtools)&&function(e){t&&(e._devtoolHook=t,t.emit("vuex:init",e),t.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,n){t.emit("vuex:mutation",e,n)}),{prepend:!0}),e.subscribeAction((function(e,n){t.emit("vuex:action",e,n)}),{prepend:!0}))}(this)},u={state:{configurable:!0}};function f(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function l(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;p(t,n,[],t._modules.root,!0),h(t,n,e)}function h(t,e,o){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};n(i,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:a}),c.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(t),r&&(o&&t._withCommit((function(){r._data.$$state=null})),c.nextTick((function(){return r.$destroy()})))}function p(t,e,n,o,r){var i=!n.length,a=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=o),!i&&!r){var s=d(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){c.set(s,u,o.state)}))}var f=o.context=function(t,e,n){var o=""===e,r={dispatch:o?t.dispatch:function(n,o,r){var i=m(n,o,r),c=i.payload,a=i.options,s=i.type;return a&&a.root||(s=e+s),t.dispatch(s,c)},commit:o?t.commit:function(n,o,r){var i=m(n,o,r),c=i.payload,a=i.options,s=i.type;a&&a.root||(s=e+s),t.commit(s,c,a)}};return Object.defineProperties(r,{getters:{get:o?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},o=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,o)===e){var i=r.slice(o);Object.defineProperty(n,i,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return d(t.state,n)}}}),r}(t,a,n);o.forEachMutation((function(e,n){!function(t,e,n,o){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,o.state,e)}))}(t,a+n,e,f)})),o.forEachAction((function(e,n){var o=e.root?n:a+n,r=e.handler||e;!function(t,e,n,o){(t._actions[e]||(t._actions[e]=[])).push((function(e){var r,i=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e);return(r=i)&&"function"==typeof r.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,o,r,f)})),o.forEachGetter((function(e,n){!function(t,e,n,o){if(t._wrappedGetters[e])return;t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)}}(t,a+n,e,f)})),o.forEachChild((function(o,i){p(t,e,n.concat(i),o,r)}))}function d(t,e){return e.reduce((function(t,e){return t[e]}),t)}function m(t,e,n){return o(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function v(t){c&&t===c||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c=t)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(t){},s.prototype.commit=function(t,e,n){var o=this,r=m(t,e,n),i=r.type,c=r.payload,a={type:i,payload:c},s=this._mutations[i];s&&(this._withCommit((function(){s.forEach((function(t){t(c)}))})),this._subscribers.slice().forEach((function(t){return t(a,o.state)})))},s.prototype.dispatch=function(t,e){var n=this,o=m(t,e),r=o.type,i=o.payload,c={type:r,payload:i},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(c,n.state)}))}catch(t){}var s=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){s.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(c,n.state)}))}catch(t){}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(c,n.state,t)}))}catch(t){}e(t)}))}))}},s.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},s.prototype.subscribeAction=function(t,e){return f("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},s.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch((function(){return t(o.state,o.getters)}),e,n)},s.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},s.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),p(this,this.state,t,this._modules.get(t),n.preserveState),h(this,this.state)},s.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=d(e.state,t.slice(0,-1));c.delete(n,t[t.length-1])})),l(this)},s.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},s.prototype.hotUpdate=function(t){this._modules.update(t),l(this,!0)},s.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(s.prototype,u);var g=M((function(t,e){var n={};return w(e).forEach((function(e){var o=e.key,r=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=$(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[o].vuex=!0})),n})),y=M((function(t,e){var n={};return w(e).forEach((function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.commit;if(t){var i=$(this.$store,"mapMutations",t);if(!i)return;o=i.context.commit}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}})),n})),_=M((function(t,e){var n={};return w(e).forEach((function(e){var o=e.key,r=e.val;r=t+r,n[o]=function(){if(!t||$(this.$store,"mapGetters",t))return this.$store.getters[r]},n[o].vuex=!0})),n})),b=M((function(t,e){var n={};return w(e).forEach((function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var i=$(this.$store,"mapActions",t);if(!i)return;o=i.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}})),n}));function w(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function M(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function $(t,e,n){return t._modulesNamespaceMap[n]}function C(t,e,n){var o=n?t.groupCollapsed:t.group;try{o.call(t,e)}catch(n){t.log(e)}}function E(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function O(){var t=new Date;return" @ "+j(t.getHours(),2)+":"+j(t.getMinutes(),2)+":"+j(t.getSeconds(),2)+"."+j(t.getMilliseconds(),3)}function j(t,e){return n="0",o=e-t.toString().length,new Array(o+1).join(n)+t;var n,o}return{Store:s,install:v,version:"3.6.2",mapState:g,mapMutations:y,mapGetters:_,mapActions:b,createNamespacedHelpers:function(t){return{mapState:g.bind(null,t),mapGetters:_.bind(null,t),mapMutations:y.bind(null,t),mapActions:b.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var n=t.collapsed;void 0===n&&(n=!0);var o=t.filter;void 0===o&&(o=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var c=t.actionFilter;void 0===c&&(c=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var u=t.logActions;void 0===u&&(u=!0);var f=t.logger;return void 0===f&&(f=console),function(t){var l=e(t.state);void 0!==f&&(s&&t.subscribe((function(t,c){var a=e(c);if(o(t,l,a)){var s=O(),u=i(t),h="mutation "+t.type+s;C(f,h,n),f.log("%c prev state","color: #9E9E9E; font-weight: bold",r(l)),f.log("%c mutation","color: #03A9F4; font-weight: bold",u),f.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),E(f)}l=a})),u&&t.subscribeAction((function(t,e){if(c(t,e)){var o=O(),r=a(t),i="action "+t.type+o;C(f,i,n),f.log("%c action","color: #03A9F4; font-weight: bold",r),E(f)}})))}}}})); /*! This file is auto-generated */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return v}});var e=n(279),e=n.n(e),o=n(370),i=n.n(o),o=n(817),c=n.n(o);function u(t){try{document.execCommand(t)}catch(t){return}}var a=function(t){t=c()(t);return u("cut"),t};var f=function(t){var e,n,o,r=1 * @license MIT */ e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var o=n(6),i=n(2),s=n(17),u=n(18);r.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[u,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(8):"undefined"!=typeof process&&(e=n(8)),e}var i=n(2),s=n(7),u={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:o(),transformRequest:[function(e,t){return s(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){a.headers[e]={}}),i.forEach(["post","put","patch"],function(e){a.headers[e]=i.merge(u)}),e.exports=a},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(2),o=n(9),i=n(12),s=n(13),u=n(14),a=n(10),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(15);e.exports=function(e){return new Promise(function(t,f){var p=e.data,d=e.headers;r.isFormData(p)&&delete d["Content-Type"];var l=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in l||u(e.url)||(l=new window.XDomainRequest,h="onload",m=!0,l.onprogress=function(){},l.ontimeout=function(){}),e.auth){var y=e.auth.username||"",w=e.auth.password||"";d.Authorization="Basic "+c(y+":"+w)}if(l.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,l[h]=function(){if(l&&(4===l.readyState||m)&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in l?s(l.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?l.response:l.responseText,i={data:r,status:1223===l.status?204:l.status,statusText:1223===l.status?"No Content":l.statusText,headers:n,config:e,request:l};o(t,f,i),l=null}},l.onerror=function(){f(a("Network Error",e,null,l)),l=null},l.ontimeout=function(){f(a("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",l)),l=null},r.isStandardBrowserEnv()){var g=n(16),v=(e.withCredentials||u(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in l&&r.forEach(d,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete d[t]:l.setRequestHeader(t,e)}),e.withCredentials&&(l.withCredentials=!0),e.responseType)try{l.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){l&&(l.abort(),f(e),l=null)}),void 0===p&&(p=null),l.send(p)})}},function(e,t,n){"use strict";var r=n(10);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(2);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))}))}),i=s.join("&")}return i&&(e+=(e.indexOf("?")===-1?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;"set-cookie"===t?s[t]=(s[t]?s[t]:[]).concat([n]):s[t]=s[t]?s[t]+", "+n:n}}),s):s}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t){"use strict";function n(){this.message="String contains an invalid character"}function r(e){for(var t,r,i=String(e),s="",u=0,a=o;i.charAt(0|u)||(a="=",u%1);s+=a.charAt(63&t>>8-u%1*8)){if(r=i.charCodeAt(u+=.75),r>255)throw new n;t=t<<8|r}return s}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,s){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(2),i=n(19),s=n(20),u=n(6),a=n(21),c=n(22);e.exports=function(e){r(e),e.baseURL&&!a(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||u.adapter;return t(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return s(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(23);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])}); !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Qs=e()}}(function(){return function e(r,t,o){function n(a,l){if(!t[a]){if(!r[a]){var c="function"==typeof require&&require;if(!l&&c)return c(a,!0);if(i)return i(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=t[a]={exports:{}};r[a][0].call(s.exports,function(e){var t=r[a][1][e];return n(t||e)},s,s.exports,e,r,t,o)}return t[a].exports}for(var i="function"==typeof require&&require,a=0;a=0&&t.parseArrays&&a<=t.arrayLimit?(o=[])[a]=l(e,r,t):o[i]=l(e,r,t)}return o},c=function(e,r,t){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(o),c=a?o.slice(0,a.index):o,f=[];if(c){if(!t.plainObjects&&n.call(Object.prototype,c)&&!t.allowPrototypes)return;f.push(c)}for(var s=0;null!==(a=i.exec(o))&&s0?P+D:""}},{"./formats":1,"./utils":5}],5:[function(e,r,t){"use strict";var o=Object.prototype.hasOwnProperty,n=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,r){for(var t=r&&r.plainObjects?Object.create(null):{},o=0;o=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?t+=r.charAt(o):i<128?t+=n[i]:i<2048?t+=n[192|i>>6]+n[128|63&i]:i<55296||i>=57344?t+=n[224|i>>12]+n[128|i>>6&63]+n[128|63&i]:(o+=1,i=65536+((1023&i)<<10|1023&r.charCodeAt(o)),t+=n[240|i>>18]+n[128|i>>12&63]+n[128|i>>6&63]+n[128|63&i])}return t},t.compact=function(e,r){if("object"!=typeof e||null===e)return e;var o=r||[],n=o.indexOf(e);if(-1!==n)return o[n];if(o.push(e),Array.isArray(e)){for(var i=[],a=0;a
'};NProgress.configure=function(options){var key,value;for(key in options){value=options[key];if(value!==undefined&&options.hasOwnProperty(key))Settings[key]=value;} return this;};NProgress.status=null;NProgress.set=function(n){var started=NProgress.isStarted();n=clamp(n,Settings.minimum,1);NProgress.status=(n===1?null:n);var progress=NProgress.render(!started),bar=progress.querySelector(Settings.barSelector),speed=Settings.speed,ease=Settings.easing;progress.offsetWidth;queue(function(next){if(Settings.positionUsing==='')Settings.positionUsing=NProgress.getPositioningCSS();css(bar,barPositionCSS(n,speed,ease));if(n===1){css(progress,{transition:'none',opacity:1});progress.offsetWidth;setTimeout(function(){css(progress,{transition:'all '+speed+'ms linear',opacity:0});setTimeout(function(){NProgress.remove();next();},speed);},speed);}else{setTimeout(next,speed);}});return this;};NProgress.isStarted=function(){return typeof NProgress.status==='number';};NProgress.start=function(){if(!NProgress.status)NProgress.set(0);var work=function(){setTimeout(function(){if(!NProgress.status)return;NProgress.trickle();work();},Settings.trickleSpeed);};if(Settings.trickle)work();return this;};NProgress.done=function(force){if(!force&&!NProgress.status)return this;return NProgress.inc(0.3+0.5*Math.random()).set(1);};NProgress.inc=function(amount){var n=NProgress.status;if(!n){return NProgress.start();}else{if(typeof amount!=='number'){amount=(1-n)*clamp(Math.random()*n,0.1,0.95);} n=clamp(n+amount,0,0.994);return NProgress.set(n);}};NProgress.trickle=function(){return NProgress.inc(Math.random()*Settings.trickleRate);};(function(){var initial=0,current=0;NProgress.promise=function($promise){if(!$promise||$promise.state()==="resolved"){return this;} if(current===0){NProgress.start();} initial++;current++;$promise.always(function(){current--;if(current===0){initial=0;NProgress.done();}else{NProgress.set((initial-current)/initial);}});return this;};})();NProgress.render=function(fromStart){if(NProgress.isRendered())return document.getElementById('nprogress');addClass(document.documentElement,'nprogress-busy');var progress=document.createElement('div');progress.id='nprogress';progress.innerHTML=Settings.template;var bar=progress.querySelector(Settings.barSelector),perc=fromStart?'-100':toBarPerc(NProgress.status||0),parent=document.querySelector(Settings.parent),spinner;css(bar,{transition:'all 0 linear',transform:'translate3d('+perc+'%,0,0)'});if(!Settings.showSpinner){spinner=progress.querySelector(Settings.spinnerSelector);spinner&&removeElement(spinner);} if(parent!=document.body){addClass(parent,'nprogress-custom-parent');} parent.appendChild(progress);return progress;};NProgress.remove=function(){removeClass(document.documentElement,'nprogress-busy');removeClass(document.querySelector(Settings.parent),'nprogress-custom-parent');var progress=document.getElementById('nprogress');progress&&removeElement(progress);};NProgress.isRendered=function(){return!!document.getElementById('nprogress');};NProgress.getPositioningCSS=function(){var bodyStyle=document.body.style;var vendorPrefix=('WebkitTransform'in bodyStyle)?'Webkit':('MozTransform'in bodyStyle)?'Moz':('msTransform'in bodyStyle)?'ms':('OTransform'in bodyStyle)?'O':'';if(vendorPrefix+'Perspective'in bodyStyle){return'translate3d';}else if(vendorPrefix+'Transform'in bodyStyle){return'translate';}else{return'margin';}};function clamp(n,min,max){if(nmax)return max;return n;} function toBarPerc(n){return(-1+n)*100;} function barPositionCSS(n,speed,ease){var barCSS;if(Settings.positionUsing==='translate3d'){barCSS={transform:'translate3d('+toBarPerc(n)+'%,0,0)'};}else if(Settings.positionUsing==='translate'){barCSS={transform:'translate('+toBarPerc(n)+'%,0)'};}else{barCSS={'margin-left':toBarPerc(n)+'%'};} barCSS.transition='all '+speed+'ms '+ease;return barCSS;} var queue=(function(){var pending=[];function next(){var fn=pending.shift();if(fn){fn(next);}} return function(fn){pending.push(fn);if(pending.length==1)next();};})();var css=(function(){var cssPrefixes=['Webkit','O','Moz','ms'],cssProps={};function camelCase(string){return string.replace(/^-ms-/,'ms-').replace(/-([\da-z])/gi,function(match,letter){return letter.toUpperCase();});} function getVendorProp(name){var style=document.body.style;if(name in style)return name;var i=cssPrefixes.length,capName=name.charAt(0).toUpperCase()+name.slice(1),vendorName;while(i--){vendorName=cssPrefixes[i]+capName;if(vendorName in style)return vendorName;} return name;} function getStyleProp(name){name=camelCase(name);return cssProps[name]||(cssProps[name]=getVendorProp(name));} function applyCss(element,prop,value){prop=getStyleProp(prop);element.style[prop]=value;} return function(element,properties){var args=arguments,prop,value;if(args.length==2){for(prop in properties){value=properties[prop];if(value!==undefined&&properties.hasOwnProperty(prop))applyCss(element,prop,value);}}else{applyCss(element,args[1],args[2]);}}})();function hasClass(element,name){var list=typeof element=='string'?element:classList(element);return list.indexOf(' '+name+' ')>=0;} function addClass(element,name){var oldList=classList(element),newList=oldList+name;if(hasClass(oldList,name))return;element.className=newList.substring(1);} function removeClass(element,name){var oldList=classList(element),newList;if(!hasClass(element,name))return;newList=oldList.replace(' '+name+' ',' ');element.className=newList.substring(1,newList.length-1);} function classList(element){return(' '+(element.className||'')+' ').replace(/\s+/gi,' ');} function removeElement(element){element&&element.parentNode&&element.parentNode.removeChild(element);} return NProgress;}); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Zooming=e()}(this,function(){"use strict";var t="auto",e="zoom-in",i="zoom-out",n="grab",s="move";function o(t,e,i){var n={passive:!1};!(arguments.length>3&&void 0!==arguments[3])||arguments[3]?t.addEventListener(e,i,n):t.removeEventListener(e,i,n)}function r(t,e){if(t){var i=new Image;i.onload=function(){e&&e(i)},i.src=t}}function a(t){return t.dataset.original?t.dataset.original:"A"===t.parentNode.tagName?t.parentNode.getAttribute("href"):null}function l(t,e,i){!function(t){var e=h.transitionProp,i=h.transformProp;if(t.transition){var n=t.transition;delete t.transition,t[e]=n}if(t.transform){var s=t.transform;delete t.transform,t[i]=s}}(e);var n=t.style,s={};for(var o in e)i&&(s[o]=n[o]||""),n[o]=e[o];return s}var h={transitionProp:"transition",transEndEvent:"transitionend",transformProp:"transform",transformCssProp:"transform"},c=h.transformCssProp,u=h.transEndEvent;var d=function(){},f={enableGrab:!0,preloadImage:!1,closeOnWindowResize:!0,transitionDuration:.4,transitionTimingFunction:"cubic-bezier(0.4, 0, 0, 1)",bgColor:"rgb(255, 255, 255)",bgOpacity:1,scaleBase:1,scaleExtra:.5,scrollThreshold:40,zIndex:998,customSize:null,onOpen:d,onClose:d,onGrab:d,onMove:d,onRelease:d,onBeforeOpen:d,onBeforeClose:d,onBeforeGrab:d,onBeforeRelease:d,onImageLoading:d,onImageLoaded:d},p={init:function(t){var e,i;e=this,i=t,Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(t){e[t]=e[t].bind(i)})},click:function(t){if(t.preventDefault(),m(t))return window.open(this.target.srcOriginal||t.currentTarget.src,"_blank");this.shown?this.released?this.close():this.release():this.open(t.currentTarget)},scroll:function(){var t=document.documentElement||document.body.parentNode||document.body,e=window.pageXOffset||t.scrollLeft,i=window.pageYOffset||t.scrollTop;null===this.lastScrollPosition&&(this.lastScrollPosition={x:e,y:i});var n=this.lastScrollPosition.x-e,s=this.lastScrollPosition.y-i,o=this.options.scrollThreshold;(Math.abs(s)>=o||Math.abs(n)>=o)&&(this.lastScrollPosition=null,this.close())},keydown:function(t){(function(t){return"Escape"===(t.key||t.code)||27===t.keyCode})(t)&&(this.released?this.close():this.release(this.close))},mousedown:function(t){if(y(t)&&!m(t)){t.preventDefault();var e=t.clientX,i=t.clientY;this.pressTimer=setTimeout(function(){this.grab(e,i)}.bind(this),200)}},mousemove:function(t){this.released||this.move(t.clientX,t.clientY)},mouseup:function(t){y(t)&&!m(t)&&(clearTimeout(this.pressTimer),this.released?this.close():this.release())},touchstart:function(t){t.preventDefault();var e=t.touches[0],i=e.clientX,n=e.clientY;this.pressTimer=setTimeout(function(){this.grab(i,n)}.bind(this),200)},touchmove:function(t){if(!this.released){var e=t.touches[0],i=e.clientX,n=e.clientY;this.move(i,n)}},touchend:function(t){(function(t){t.targetTouches.length})(t)||(clearTimeout(this.pressTimer),this.released?this.close():this.release())},clickOverlay:function(){this.close()},resizeWindow:function(){this.close()}};function y(t){return 0===t.button}function m(t){return t.metaKey||t.ctrlKey}var g={init:function(t){this.el=document.createElement("div"),this.instance=t,this.parent=document.body,l(this.el,{position:"fixed",top:0,left:0,right:0,bottom:0,opacity:0}),this.updateStyle(t.options),o(this.el,"click",t.handler.clickOverlay.bind(t))},updateStyle:function(t){l(this.el,{zIndex:t.zIndex,backgroundColor:t.bgColor,transition:"opacity\n "+t.transitionDuration+"s\n "+t.transitionTimingFunction})},insert:function(){this.parent.appendChild(this.el)},remove:function(){this.parent.removeChild(this.el)},fadeIn:function(){this.el.offsetWidth,this.el.style.opacity=this.instance.options.bgOpacity},fadeOut:function(){this.el.style.opacity=0}},v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},w=function(){function t(t,e){for(var i=0;iy||d>m)return{x:y,y:m}}return{x:d,y:d}}};function k(){var t=document.documentElement;return{x:Math.min(t.clientWidth,window.innerWidth)/2,y:Math.min(t.clientHeight,window.innerHeight)/2}}function S(t,e,i){["mousedown","mousemove","mouseup","touchstart","touchmove","touchend"].forEach(function(n){o(t,n,e[n],i)})}return function(){function i(t){b(this,i),this.target=Object.create(O),this.overlay=Object.create(g),this.handler=Object.create(p),this.body=document.body,this.shown=!1,this.lock=!1,this.released=!0,this.lastScrollPosition=null,this.pressTimer=null,this.options=x({},f,t),this.overlay.init(this),this.handler.init(this)}return w(i,[{key:"listen",value:function(t){if("string"==typeof t)for(var i=document.querySelectorAll(t),n=i.length;n--;)this.listen(i[n]);else"IMG"===t.tagName&&(t.style.cursor=e,o(t,"click",this.handler.click),this.options.preloadImage&&r(a(t)));return this}},{key:"config",value:function(t){return t?(x(this.options,t),this.overlay.updateStyle(this.options),this):this.options}},{key:"open",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.onOpen;if(!this.shown&&!this.lock){var n="string"==typeof t?document.querySelector(t):t;if("IMG"===n.tagName){if(this.options.onBeforeOpen(n),this.target.init(n,this),!this.options.preloadImage){var s=this.target.srcOriginal;null!=s&&(this.options.onImageLoading(n),r(s,this.options.onImageLoaded))}this.shown=!0,this.lock=!0,this.target.zoomIn(),this.overlay.insert(),this.overlay.fadeIn(),o(document,"scroll",this.handler.scroll),o(document,"keydown",this.handler.keydown),this.options.closeOnWindowResize&&o(window,"resize",this.handler.resizeWindow);return o(n,u,function t(){o(n,u,t,!1),e.lock=!1,e.target.upgradeSource(),e.options.enableGrab&&S(document,e.handler,!0),i(n)}),this}}}},{key:"close",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.onClose;if(this.shown&&!this.lock){var n=this.target.el;this.options.onBeforeClose(n),this.lock=!0,this.body.style.cursor=t,this.overlay.fadeOut(),this.target.zoomOut(),o(document,"scroll",this.handler.scroll,!1),o(document,"keydown",this.handler.keydown,!1),this.options.closeOnWindowResize&&o(window,"resize",this.handler.resizeWindow,!1);return o(n,u,function t(){o(n,u,t,!1),e.shown=!1,e.lock=!1,e.target.downgradeSource(),e.options.enableGrab&&S(document,e.handler,!1),e.target.restoreCloseStyle(),e.overlay.remove(),i(n)}),this}}},{key:"grab",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.scaleExtra,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.options.onGrab;if(this.shown&&!this.lock){var s=this.target.el;this.options.onBeforeGrab(s),this.released=!1,this.target.grab(t,e,i);return o(s,u,function t(){o(s,u,t,!1),n(s)}),this}}},{key:"move",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.scaleExtra,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.options.onMove;if(this.shown&&!this.lock){this.released=!1,this.body.style.cursor=s,this.target.move(t,e,i);var r=this.target.el;return o(r,u,function t(){o(r,u,t,!1),n(r)}),this}}},{key:"release",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.onRelease;if(this.shown&&!this.lock){var n=this.target.el;this.options.onBeforeRelease(n),this.lock=!0,this.body.style.cursor=t,this.target.restoreOpenStyle();return o(n,u,function t(){o(n,u,t,!1),e.lock=!1,e.released=!0,i(n)}),this}}}]),i}()}); /*! autosize 4.0.2 license: MIT http://www.jacklmoore.com/autosize */ !function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,o,p="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return-10.0){aB=currentT;}else{aA=currentT;}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2);}else if(initialSlope===0.0){return guessForT;}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2);}} return function BezierEasing(x){if(mX1===mY1&&mX2===mY2){return x;} if(x===0){return 0;} if(x===1){return 1;} return calcBezier(getTForX(x),mY1,mY2);};};var easings={ease:[0.25,0.1,0.25,1.0],linear:[0.00,0.0,1.00,1.0],"ease-in":[0.42,0.0,1.00,1.0],"ease-out":[0.00,0.0,0.58,1.0],"ease-in-out":[0.42,0.0,0.58,1.0]};var supportsPassive=false;try{var opts=Object.defineProperty({},'passive',{get:function get(){supportsPassive=true;}});window.addEventListener("test",null,opts);}catch(e){} var _={$:function $(selector){if(typeof selector!=="string"){return selector;} return document.querySelector(selector);},on:function on(element,events,handler){var opts=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{passive:false};if(!(events instanceof Array)){events=[events];} for(var i=0;i2&&arguments[2]!==undefined?arguments[2]:{};if((typeof _duration==="undefined"?"undefined":_typeof(_duration))==="object"){options=_duration;}else if(typeof _duration==="number"){options.duration=_duration;} element=_.$(target);if(!element){return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+target);} container=_.$(options.container||defaults$$1.container);duration=options.duration||defaults$$1.duration;easing=options.easing||defaults$$1.easing;offset=options.offset||defaults$$1.offset;cancelable=options.cancelable!==false;onDone=options.onDone||defaults$$1.onDone;onCancel=options.onCancel||defaults$$1.onCancel;x=options.x===undefined?defaults$$1.x:options.x;y=options.y===undefined?defaults$$1.y:options.y;var cumulativeOffset=_.cumulativeOffset(element);initialY=scrollTop(container);targetY=cumulativeOffset.top-container.offsetTop+offset;initialX=scrollLeft(container);targetX=cumulativeOffset.left-container.offsetLeft+offset;abort=false;diffY=targetY-initialY;diffX=targetX-initialX;if(typeof easing==="string"){easing=easings[easing]||easings["ease"];} easingFn=index.apply(index,easing);if(!diffY&&!diffX)return;_.on(container,abortEvents,abortFn,{passive:true});window.requestAnimationFrame(step);return function(){abortEv=null;abort=true;};} return scrollTo;};var _scroller=scroller();var bindings=[];function deleteBinding(el){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,s),this.options=s.extend(n,o),this.sidebar="string"==typeof e?document.querySelector(e):e,void 0===this.sidebar)throw new Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._breakpoint=!1,this._resizeListeners=[],this.dimensions={translateY:0,topSpacing:0,bottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHeight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach(function(t){i[t]=i[t].bind(i)}),this.initialize()}return e(s,[{key:"initialize",value:function(){var t=this;if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),null===this.sidebarInner&&(this.sidebarInner=!1)),!this.sidebarInner){var e=document.createElement("div");for(e.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(e);this.sidebar.firstChild!=e;)e.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky")}if(this.options.containerSelector){var i=document.querySelectorAll(this.options.containerSelector);if((i=Array.prototype.slice.call(i)).forEach(function(e,i){e.contains(t.sidebar)&&(t.container=e)}),!i.length)throw new Error("The container does not contains on the sidebar.")}"function"!=typeof this.options.topSpacing&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),"function"!=typeof this.options.bottomSpacing&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0}},{key:"bindEvents",value:function(){window.addEventListener("resize",this,{passive:!0}),window.addEventListener("scroll",this,{passive:!0}),this.sidebar.addEventListener("update"+i,this),this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(new ResizeSensor(this.sidebarInner,this.handleEvent),new ResizeSensor(this.container,this.handleEvent))}},{key:"handleEvent",value:function(t){this.updateSticky(t)}},{key:"calcDimensions",value:function(){if(!this._breakpoint){var t=this.dimensions;t.containerTop=s.offsetRelative(this.container).top,t.containerHeight=this.container.clientHeight,t.containerBottom=t.containerTop+t.containerHeight,t.sidebarHeight=this.sidebarInner.offsetHeight,t.sidebarWidth=this.sidebar.offsetWidth,t.viewportHeight=window.innerHeight,this._calcDimensionsWithScroll()}}},{key:"_calcDimensionsWithScroll",value:function(){var t=this.dimensions;t.sidebarLeft=s.offsetRelative(this.sidebar).left,t.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,t.viewportBottom=t.viewportTop+t.viewportHeight,t.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft,t.topSpacing=this.options.topSpacing,t.bottomSpacing=this.options.bottomSpacing,"function"==typeof t.topSpacing&&(t.topSpacing=parseInt(t.topSpacing(this.sidebar))||0),"function"==typeof t.bottomSpacing&&(t.bottomSpacing=parseInt(t.bottomSpacing(this.sidebar))||0)}},{key:"isSidebarFitsViewport",value:function(){return this.dimensions.sidebarHeight=t.containerBottom?(t.translateY=t.containerBottom-i,e="CONTAINER-BOTTOM"):n>=t.containerTop&&(t.translateY=n-t.containerTop,e="VIEWPORT-TOP"):t.containerBottom<=s?(t.translateY=t.containerBottom-i,e="CONTAINER-BOTTOM"):i+t.translateY<=s?(t.translateY=s-i,e="VIEWPORT-BOTTOM"):t.containerTop+t.translateY<=n&&(e="VIEWPORT-UNBOTTOM"),t.translateY=Math.max(0,t.translateY),t.translateY=Math.min(t.containerHeight,t.translateY),t.lastViewportTop=t.viewportTop,e}},{key:"_getStyle",value:function(t){if(void 0!==t){var e={inner:{},outer:{}},i=this.dimensions;switch(t){case"VIEWPORT-TOP":e.inner={position:"fixed",top:this.options.topSpacing,left:i.sidebarLeft-i.viewportLeft,width:i.sidebarWidth};break;case"VIEWPORT-BOTTOM":e.inner={position:"fixed",top:"auto",left:i.sidebarLeft,bottom:this.options.bottomSpacing,width:i.sidebarWidth};break;case"CONTAINER-BOTTOM":case"VIEWPORT-UNBOTTOM":var n=this._getTranslate(0,i.translateY+"px");e.inner=n?{transform:n}:{position:"absolute",top:i.translateY,width:i.sidebarWidth}}switch(t){case"VIEWPORT-TOP":case"VIEWPORT-BOTTOM":case"VIEWPORT-UNBOTTOM":case"CONTAINER-BOTTOM":e.outer={height:i.sidebarHeight,position:"relative"}}return e.outer=s.extend({height:"",position:""},e.outer),e.inner=s.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:this._getTranslate()},e.inner),e}}},{key:"stickyPosition",value:function(t){if(!this._breakpoint){t=t||!1;var e=this.getAffixType(),n=this._getStyle(e);if((this.affixedType!=e||t)&&e){var o="affix."+e.toLowerCase().replace("viewport-","")+i;s.eventTrigger(this.sidebar,o),"STATIC"===e?s.removeClass(this.sidebar,this.options.stickyClass):s.addClass(this.sidebar,this.options.stickyClass);for(var r in n.outer)this.sidebar.style[r]=n.outer[r];for(var a in n.inner){var c="number"==typeof n.inner[a]?"px":"";this.sidebarInner.style[a]=n.inner[a]+c}var p="affixed."+e.toLowerCase().replace("viewport","")+i;s.eventTrigger(this.sidebar,p)}else this._initialized&&(this.sidebarInner.style.left=n.inner.left);this.affixedType=e}}},{key:"_widthBreakpoint",value:function(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),s.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1}},{key:"updateSticky",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._running||(this._running=!0,function(e){requestAnimationFrame(function(){switch(e){case"scroll":t._calcDimensionsWithScroll(),t.observeScrollDir(),t.stickyPosition();break;case"resize":default:t._widthBreakpoint(),t.calcDimensions(),t.stickyPosition(!0)}t._running=!1})}(e.type))}},{key:"_setSupportFeatures",value:function(){var t=this.support;t.transform=s.supportTransform(),t.transform3d=s.supportTransform(!0)}},{key:"_getTranslate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.support.transform3d?"translate3d("+t+", "+e+", "+i+")":!!this.support.translate&&"translate("+t+", "+e+")"}},{key:"destroy",value:function(){window.removeEventListener("resize",this),window.removeEventListener("scroll",this),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+i,this);var t={inner:{},outer:{}};t.inner={position:"",top:"",left:"",bottom:"",width:"",transform:""},t.outer={height:"",position:""};for(var e in t.outer)this.sidebar.style[e]=t.outer[e];for(var n in t.inner)this.sidebarInner.style[n]=t.inner[n];this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent))}}],[{key:"supportTransform",value:function(t){var e=!1,i=t?"perspective":"transform",n=i.charAt(0).toUpperCase()+i.slice(1),s=["Webkit","Moz","O","ms"],o=document.createElement("support").style;return(i+" "+s.join(n+" ")+n).split(" ").forEach(function(t,i){if(void 0!==o[t])return e=t,!1}),e}},{key:"eventTrigger",value:function(t,e,i){try{var n=new CustomEvent(e,{detail:i})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i)}t.dispatchEvent(n)}},{key:"extend",value:function(t,e){var i={};for(var n in t)void 0!==e[n]?i[n]=e[n]:i[n]=t[n];return i}},{key:"offsetRelative",value:function(t){var e={left:0,top:0};do{var i=t.offsetTop,n=t.offsetLeft;isNaN(i)||(e.top+=i),isNaN(n)||(e.left+=n)}while(t=t.offsetParent);return e}},{key:"addClass",value:function(t,e){s.hasClass(t,e)||(t.classList?t.classList.add(e):t.className+=" "+e)}},{key:"removeClass",value:function(t,e){s.hasClass(t,e)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}}]),s}()}();return window.StickySidebar=i,i}); function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e-1&&(I(t,e),g(t,r.class_loading)),p(t,e),function(t){s(t,"was-processed","true")}(t),d(r.callback_reveal,t,e),d(r.callback_set,t,e))},z=function(t){return!!n&&(t._observer=new IntersectionObserver(function(e){e.forEach(function(e){return function(t){return t.isIntersecting||t.intersectionRatio>0}(e)?function(t,e,n){var r=n._settings;d(r.callback_enter,t,e,n),r.load_delay?x(t,n):L(t,n)}(e.target,e,t):function(t,e,n){var r=n._settings;d(r.callback_exit,t,e,n),r.load_delay&&O(t)}(e.target,e,t)})},{root:(e=t._settings).container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}),!0);var e},C=["IMG","IFRAME"],N=function(t,e){return function(t){return t.filter(function(t){return!c(t)})}((n=t||function(t){return t.container.querySelectorAll(t.elements_selector)}(e),Array.prototype.slice.call(n)));var n},M=function(t){var e=t._settings;_toConsumableArray(e.container.querySelectorAll("."+e.class_error)).forEach(function(t){y(t,e.class_error),function(t){s(t,"was-processed",null)}(t)}),t.update()},R=function(e,n){var r;this._settings=function(t){return _extends({},o,t)}(e),this._loadingCount=0,z(this),this.update(n),r=this,t&&window.addEventListener("online",function(t){M(r)})};return R.prototype={update:function(t){var n,r=this,o=this._settings;(this._elements=N(t,o),!e&&this._observer)?(function(t){return t.use_native&&"loading"in HTMLImageElement.prototype}(o)&&((n=this)._elements.forEach(function(t){-1!==C.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),S(t,n))}),this._elements=N(t,o)),this._elements.forEach(function(t){r._observer.observe(t)})):this.loadAll()},destroy:function(){var t=this;this._observer&&(this._elements.forEach(function(e){t._observer.unobserve(e)}),this._observer=null),this._elements=null,this._settings=null},load:function(t,e){S(t,this,e)},loadAll:function(){var t=this;this._elements.forEach(function(e){L(e,t)})}},t&&function(t,e){if(e)if(e.length)for(var n,r=0;n=e[r];r+=1)a(t,n);else a(t,e)}(R,window.lazyLoadOptions),R}); !function(){var e=null;window.PR_SHOULD_USE_CONTINUATION=!0,function(){function t(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var i=e.charAt(1);return(t=u[i])?t:i>="0"&&"7">=i?parseInt(e.substring(1),8):"u"===i||"x"===i?parseInt(e.substring(2),16):e.charCodeAt(1)}function i(e){return 32>e?(16>e?"\\x0":"\\x")+e.toString(16):(e=String.fromCharCode(e),"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e)}function n(e){var n=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),e=[],r="^"===n[0],s=["["];r&&s.push("^");for(var r=r?1:0,o=n.length;o>r;++r){var a=n[r];if(/\\[bdsw]/i.test(a))s.push(a);else{var l,a=t(a);o>r+2&&"-"===n[r+1]?(l=t(n[r+2]),r+=2):l=a,e.push([a,l]),65>l||a>122||(65>l||a>90||e.push([32|Math.max(65,a),32|Math.min(l,90)]),97>l||a>122||e.push([-33&Math.max(97,a),-33&Math.min(l,122)]))}}for(e.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),n=[],o=[],r=0;e.length>r;++r)a=e[r],a[0]<=o[1]+1?o[1]=Math.max(o[1],a[1]):n.push(o=a);for(r=0;n.length>r;++r)a=n[r],s.push(i(a[0])),a[1]>a[0]&&(a[1]+1>a[0]&&s.push("-"),s.push(i(a[1])));return s.push("]"),s.join("")}function r(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),r=t.length,a=[],l=0,h=0;r>l;++l){var c=t[l];"("===c?++h:"\\"===c.charAt(0)&&(c=+c.substring(1))&&(h>=c?a[c]=-1:t[l]=i(c))}for(l=1;a.length>l;++l)-1===a[l]&&(a[l]=++s);for(h=l=0;r>l;++l)c=t[l],"("===c?(++h,a[h]||(t[l]="(?:")):"\\"===c.charAt(0)&&(c=+c.substring(1))&&h>=c&&(t[l]="\\"+a[c]);for(l=0;r>l;++l)"^"===t[l]&&"^"!==t[l+1]&&(t[l]="");if(e.ignoreCase&&o)for(l=0;r>l;++l)c=t[l],e=c.charAt(0),c.length>=2&&"["===e?t[l]=n(c):"\\"!==e&&(t[l]=c.replace(/[A-Za-z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"}));return t.join("")}for(var s=0,o=!1,a=!1,l=0,h=e.length;h>l;++l){var c=e[l];if(c.ignoreCase)a=!0;else if(/[a-z]/i.test(c.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){o=!0,a=!1;break}}for(var u={b:8,t:9,n:10,v:11,f:12,r:13},d=[],l=0,h=e.length;h>l;++l){if(c=e[l],c.global||c.multiline)throw Error(""+c);d.push("(?:"+r(c)+")")}return RegExp(d.join("|"),a?"gi":"g")}function i(e,t){function i(e){var l=e.nodeType;if(1==l){if(!n.test(e.className)){for(l=e.firstChild;l;l=l.nextSibling)i(l);l=e.nodeName.toLowerCase(),("br"===l||"li"===l)&&(r[a]="\n",o[a<<1]=s++,o[1|a++<<1]=e)}}else(3==l||4==l)&&(l=e.nodeValue,l.length&&(l=t?l.replace(/\r\n?/g,"\n"):l.replace(/[\t\n\r ]+/g," "),r[a]=l,o[a<<1]=s,s+=l.length,o[1|a++<<1]=e))}var n=/(?:^|\s)nocode(?:\s|$)/,r=[],s=0,o=[],a=0;return i(e),{a:r.join("").replace(/\n$/,""),d:o}}function n(e,t,i,n){t&&(e={a:t,e:e},i(e),n.push.apply(n,e.g))}function r(e){for(var t=void 0,i=e.firstChild;i;i=i.nextSibling)var n=i.nodeType,t=1===n?t?e:i:3===n?x.test(i.nodeValue)?e:t:t;return t===e?void 0:t}function s(i,r){function s(e){for(var t=e.e,i=[t,"pln"],c=0,u=e.a.match(o)||[],d={},p=0,f=u.length;f>p;++p){var m,g=u[p],y=d[g],v=void 0;if("string"==typeof y)m=!1;else{var b=a[g.charAt(0)];if(b)v=g.match(b[1]),y=b[0];else{for(m=0;l>m;++m)if(b=r[m],v=g.match(b[1])){y=b[0];break}v||(y="pln")}!(m=y.length>=5&&"lang-"===y.substring(0,5))||v&&"string"==typeof v[1]||(m=!1,y="src"),m||(d[g]=y)}if(b=c,c+=g.length,m){m=v[1];var L=g.indexOf(m),x=L+m.length;v[2]&&(x=g.length-v[2].length,L=x-m.length),y=y.substring(5),n(t+b,g.substring(0,L),s,i),n(t+b+L,m,h(y,m),i),n(t+b+x,g.substring(x),s,i)}else i.push(t+b,y)}e.g=i}var o,a={};(function(){for(var n=i.concat(r),s=[],l={},h=0,c=n.length;c>h;++h){var u=n[h],d=u[3];if(d)for(var p=d.length;--p>=0;)a[d.charAt(p)]=u;u=u[1],d=""+u,l.hasOwnProperty(d)||(s.push(u),l[d]=e)}s.push(/[\S\s]/),o=t(s)})();var l=r.length;return s}function o(t){var i=[],n=[];t.tripleQuotedStrings?i.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,e,"'\""]):t.multiLineStrings?i.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,e,"'\"`"]):i.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,e,"\"'"]),t.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,e]);var r=t.hashComments;if(r&&(t.cStyleComments?(r>1?i.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,e,"#"]):i.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,e,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,e])):i.push(["com",/^#[^\n\r]*/,e,"#"])),t.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,e]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,e])),r=t.regexLiterals){var o=(r=r>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+("/(?=[^/*"+r+"])(?:[^/\\x5B\\x5C"+r+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+r+"]|\\x5C"+o+")*(?:\\x5D|$))+/")+")")])}return(r=t.types)&&n.push(["typ",r]),r=(""+t.keywords).replace(/^ | $/g,""),r.length&&n.push(["kwd",RegExp("^(?:"+r.replace(/[\s,]+/g,"|")+")\\b"),e]),i.push(["pln",/^\s+/,e," \r\n  "]),r="^.[^\\s\\w.$@'\"`/\\\\]*",t.regexLiterals&&(r+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,e],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,e],["pln",/^[$_a-z][\w$@]*/i,e],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,e,"0123456789"],["pln",/^\\[\S\s]?/,e],["pun",RegExp(r),e]),s(i,n)}function a(e,t,i){function n(e){var t=e.nodeType;if(1!=t||s.test(e.className)){if((3==t||4==t)&&i){var l=e.nodeValue,h=l.match(o);h&&(t=l.substring(0,h.index),e.nodeValue=t,(l=l.substring(h.index+h[0].length))&&e.parentNode.insertBefore(a.createTextNode(l),e.nextSibling),r(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)r(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)n(e)}function r(e){function t(e,i){var n=i?e.cloneNode(!1):e,r=e.parentNode;if(r){var r=t(r,1),s=e.nextSibling;r.appendChild(n);for(var o=s;o;o=s)s=o.nextSibling,r.appendChild(o)}return n}for(;!e.nextSibling;)if(e=e.parentNode,!e)return;for(var i,e=t(e.nextSibling,0);(i=e.parentNode)&&1===i.nodeType;)e=i;h.push(e)}for(var s=/(?:^|\s)nocode(?:\s|$)/,o=/\r\n?|\n/,a=e.ownerDocument,l=a.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var h=[l],c=0;h.length>c;++c)n(h[c]);t===(0|t)&&h[0].setAttribute("value",t);var u=a.createElement("ol");u.className="linenums";for(var t=Math.max(0,0|t-1)||0,c=0,d=h.length;d>c;++c)l=h[c],l.className="L"+(c+t)%10,l.firstChild||l.appendChild(a.createTextNode(" ")),u.appendChild(l);e.appendChild(u)}function l(e,t){for(var i=t.length;--i>=0;){var n=t[i];w.hasOwnProperty(n)?u.console&&console.warn("cannot override language handler %s",n):w[n]=e}}function h(e,t){return e&&w.hasOwnProperty(e)||(e=/^\s*=+s[1],t=/\n/g,o=e.a,a=o.length,n=0,l=e.d,c=l.length,r=0,d=e.g,p=d.length,f=0;d[p]=a;var m,g;for(g=m=0;p>g;)d[g]!==d[g+2]?(d[m++]=d[g++],d[m++]=d[g++]):g+=2;for(p=m,g=m=0;p>g;){for(var y=d[g],v=d[g+1],b=g+2;p>=b+2&&d[b+1]===v;)b+=2;d[m++]=y,d[m++]=v,g=b}d.length=m;var L,x=e.c;x&&(L=x.style.display,x.style.display="none");try{for(;c>r;){var C,w=l[r+2]||a,S=d[f+2]||a,b=Math.min(w,S),O=l[r+1];if(1!==O.nodeType&&(C=o.substring(n,b))){s&&(C=C.replace(t,"\r")),O.nodeValue=C;var _=O.ownerDocument,E=_.createElement("span");E.className=d[f+1];var k=O.parentNode;k.replaceChild(E,O),E.appendChild(O),w>n&&(l[r+1]=O=_.createTextNode(o.substring(b,w)),k.insertBefore(O,E.nextSibling))}n=b,n>=w&&(r+=2),n>=S&&(f+=2)}}finally{x&&(x.style.display=L)}}catch(T){u.console&&console.log(T&&T.stack||T)}}var u=window,d=["break,continue,do,else,for,if,return,while"],p=[[d,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],f=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],m=[p,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],g=[m,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],p=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],y=[d,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],v=[d,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],b=[d,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],d=[d,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],L=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,x=/\S/,C=o({keywords:[f,g,p,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",y,v,d],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),w={};l(C,["default-code"]),l(s([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),l(s([["pln",/^\s+/,e," \r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,e,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),l(s([],[["atv",/^[\S\s]+/]]),["uq.val"]),l(o({keywords:f,hashComments:!0,cStyleComments:!0,types:L}),["c","cc","cpp","cxx","cyc","m"]),l(o({keywords:"null,true,false"}),["json"]),l(o({keywords:g,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:L}),["cs"]),l(o({keywords:m,cStyleComments:!0}),["java"]),l(o({keywords:d,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),l(o({keywords:y,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),l(o({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),l(o({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),l(o({keywords:p,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),l(o({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),l(o({keywords:b,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),l(s([],[["str",/^[\S\s]+/]]),["regex"]);var S=u.PR={createSimpleLexer:s,registerLangHandler:l,sourceDecorator:o,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:u.prettyPrintOne=function(e,t,i){var n=document.createElement("div");return n.innerHTML="
"+e+"
",n=n.firstChild,i&&a(n,i,!0),c({h:t,j:i,c:n,i:1}),n.innerHTML},prettyPrint:u.prettyPrint=function(t,i){function n(){for(var i=u.PR_SHOULD_USE_CONTINUATION?f.now()+250:1/0;l.length>g&&i>f.now();g++){for(var s=l[g],h=w,d=s;d=d.previousSibling;){var p=d.nodeType,S=(7===p||8===p)&&d.nodeValue;if(S?!/^\??prettify\b/.test(S):3!==p||/\S/.test(d.nodeValue))break;if(S){h={},S.replace(/\b(\w+)=([\w%+\-.:]+)/g,function(e,t,i){h[t]=i});break}}if(d=s.className,(h!==w||v.test(d))&&!b.test(d)){for(p=!1,S=s.parentNode;S;S=S.parentNode)if(C.test(S.tagName)&&S.className&&v.test(S.className)){p=!0;break}if(!p){if(s.className+=" prettyprinted",p=h.lang,!p){var O,p=d.match(y);!p&&(O=r(s))&&x.test(O.tagName)&&(p=O.className.match(y)),p&&(p=p[1])}if(L.test(s.tagName))S=1;else var S=s.currentStyle,_=o.defaultView,S=(S=S?S.whiteSpace:_&&_.getComputedStyle?_.getComputedStyle(s,e).getPropertyValue("white-space"):0)&&"pre"===S.substring(0,3);_=h.linenums,(_="true"===_||+_)||(_=(_=d.match(/\blinenums\b(?::(\d+))?/))?_[1]&&_[1].length?+_[1]:!0:!1),_&&a(s,_,S),m={h:p,c:s,j:_,i:S},c(m)}}}l.length>g?setTimeout(n,250):"function"==typeof t&&t()}for(var s=i||document.body,o=s.ownerDocument||document,s=[s.getElementsByTagName("pre"),s.getElementsByTagName("code"),s.getElementsByTagName("xmp")],l=[],h=0;s.length>h;++h)for(var d=0,p=s[h].length;p>d;++d)l.push(s[h][d]);var s=e,f=Date;f.now||(f={now:function(){return+new Date}});var m,g=0,y=/\blang(?:uage)?-([\w.]+)(?!\S)/,v=/\bprettyprint\b/,b=/\bprettyprinted\b/,L=/pre|xmp/i,x=/^code$/i,C=/^(?:pre|code|xmp)$/i,w={};n()}};"function"==typeof define&&define.amd&&define("google-code-prettify",[],function(){return S})}()}(); !function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){var e,t=["scroll","wheel","touchstart","touchmove","touchenter","touchend","touchleave","mouseout","mouseleave","mouseup","mousedown","mousemove","mouseenter","mousewheel","mouseover"];if(function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}()){var n=EventTarget.prototype.addEventListener;e=n,EventTarget.prototype.addEventListener=function(n,o,r){var i,s="object"==typeof r&&null!==r,u=s?r.capture:r;(r=s?function(e){var t=Object.getOwnPropertyDescriptor(e,"passive");return t&&!0!==t.writable&&void 0===t.set?Object.assign({},e):e}(r):{}).passive=void 0!==(i=r.passive)?i:-1!==t.indexOf(n)&&!0,r.capture=void 0!==u&&u,e.call(this,n,o,r)},EventTarget.prototype.addEventListener._original=e}}); axios.defaults.timeout=300000;Vue.prototype.$http=axios Vue.prototype.$https=axios Vue.prototype.$b2JsonData=[] var b2_rest_url=b2_global.rest_url+'b2/v1/' var b2zoom=new Zooming({enableGrab:true,scrollThreshold:0,transitionDuration:0.2,scaleBase:0.96,scaleExtra:1,customSize:'100%'});var B2ClientWidth=document.body.clientWidth;var lazyLoadInstance=new LazyLoad({elements_selector:".lazy"});const b2token=b2getCookie('b2_token') if(b2token){Vue.prototype.$http.defaults.headers.common['Authorization']='Bearer '+b2token} Vue.prototype.$store=new Vuex.Store({state:{userData:'',userRole:'',announcement:'',oauthLink:'',openOauth:false,authorData:'',carts:{},_carts:{},canImg:false,xieyi:0},mutations:{setUserData(state,data){state.userData=data},setUserRole(state,data){state.userRole=data},setAnnouncement(state,data){state.announcement=data},setOauthLink(state,data){state.oauthLink=data},setOpenOauth(state,data){state.openOauth=data},setauthorData(state,data){state.authorData=data},setcartsData(state,data){state.carts=data},set_cartsData(state,data){state._carts=data},setcanImage(state,data){state.canImg=data}}}) var passiveSupported=false;try{var options=Object.defineProperty({},"passive",{get:function(){passiveSupported=true;}});window.addEventListener("test",null,options);}catch(err){} b2WidgetImageLoaded() function b2WidgetImageLoaded(){imagesLoaded(document.querySelectorAll('.widget-area'),function(instance){b2SidebarSticky()});} function b2isWeixin(){var ua=navigator.userAgent.toLowerCase();return ua.match(/MicroMessenger/i)=="micromessenger";};document.ready=function(callback){if(document.addEventListener){document.addEventListener('DOMContentLoaded',function(){document.removeEventListener('DOMContentLoaded',arguments.callee,false);callback();},passiveSupported?{passive:true}:false)} else if(document.attachEvent){document.attachEvent('onreadystatechange',function(){if(document.readyState=="complete"){document.detachEvent("onreadystatechange",arguments.callee);callback();}})} else if(document.lastChild==document.body){callback();}} var topsearch=new Vue({el:'.top-search',data:{type:'post',data:'',show:false,b2token:false},mounted(){if(!this.$refs.topsearch)return this.b2token=b2token const s=this.$refs.topsearch.getAttribute('data-search') this.data=JSON.parse(s) if(b2GetQueryVariable('type')&&b2GetQueryVariable('s')){this.type=b2GetQueryVariable('type')}else{this.type=Object.keys(this.data)[0]}}}) var mobileMenu=new Vue({el:'#mobile-menu-button',data:{show:false,b2token:false},mounted(){if(B2ClientWidth>=768)return this.b2token=b2token this.dorpMenu()},methods:{dorpMenu(){let drop=document.querySelectorAll('.has_children .b2-arrow-down-s-line') if(drop.length>0){for(let index=0;index{event.stopPropagation() event.preventDefault() if(event.target.parentNode.parentNode.className.indexOf(' show')==-1){this.hideAll() event.target.parentNode.parentNode.className+=' show'}else{this.hideAll()}}}}},hideAll(){let sub=document.querySelectorAll('.has_children .sub-menu') for(let i=0;i{body.className=body.className.replace(' m-open','')},300);this.show=false}},showAc(){this.show=!this.show this.showMenu(this.show)}}}) Vue.component('search-box',{props:['show','searchType'],template:b2_global.search_box,data(){return{showSearch:false,type:'post'}},mounted(){const search=document.querySelector('.top-search') if(search){const data=search.getAttribute('data-search');if(data){let json=JSON.parse(data) this.type=Object.keys(json)[0]}}},methods:{close(){this.$emit('close')}},watch:{searchType(val){this.type=val}}}) var b2SearchBox=new Vue({el:'#search-box',data:{searchType:'all',show:false},methods:{close(){this.show=!this.show}}}) var userTools=new Vue({el:'.top-user-info',data:{showDrop:false,role:{write:true,newsflashes:false,binding_login:false,create_circle:false,create_topic:false,distribution:false,user_data:''},b2token:false},computed:{userData(){return this.$store.state.userData;}},mounted(){this.b2token=b2token document.onclick=()=>{this.showDrop=false console.log(11) if(typeof b2Comment!=='undefined'){b2Comment.show.smile=false b2Comment.show.image=false} if(typeof b2infomation!=='undefined'){b2infomation.showFliter=false} if(typeof b2TaxTop!=='undefined'){b2TaxTop.showFliter.hot=false b2TaxTop.showFliter.cat=false} if(typeof topsearch!=='undefined'){topsearch.show=false} if(typeof writeHead!=='undefined'){Qmsg.closeAll()} if(typeof b2CirclePostBox!=='undefined'){b2CirclePostBox.ask.focus=false if(b2CirclePostBox.ask.userInput){b2CirclePostBox.ask.picked=true} b2CirclePostBox.role.show=false b2CirclePostBox.smileShow=false} if(typeof b2CircleList!=='undefined'){if(!b2CircleList.$refs.topicForm)return if(!b2CircleList.commentBox.content){if(b2CircleList.$refs.topicForm.value==''){b2CircleList.commentBox.focus=false} b2CircleList.smileShow=false} b2CircleList.circle.showBox='' b2CircleList.topicFliter.show=false b2CircleList.answer.showSmile=false} b2AsideBar.close()} let ref=b2GetQueryVariable('ref') if(!ref){ref=b2getCookie('ref')} if(b2token){let footer_text=document.querySelector('#footer-menu-user');if(footer_text){footer_text.innerText=b2_global.js_text.global.my;} this.$http.post(b2_rest_url+'getUserInfo','ref='+ref).then(res=>{this.role=res.data this.$store.commit('setUserRole',res.data) this.$store.commit('setUserData',res.data.user_data) this.$store.commit('setcanImage',res.data.can_img) b2AsideBar.count=res.data.carts b2bindLogin.type=res.data.binding_login payCredit.user.credit=res.data.user_data.credit this.$nextTick(()=>{b2tooltip('.user-tips')}) if(res.data.distribution){b2delCookie('ref')}}).catch(err=>{this.loginOut()})}else{this.$https.get(b2_rest_url+'getOauthLink').then(res=>{this.$store.commit('setOauthLink',res.data)}) if(ref){b2setCookie('ref',ref)}}},methods:{login(type){login.show=true login.loginType=type},showDropMenu(){this.showDrop=!this.showDrop},loginOut(){axios.get(b2_rest_url+'loginOut').then(res=>{b2delCookie('b2_token') location.reload()}).catch(err=>{b2delCookie('b2_token') location.reload()})},out(){this.loginOut()},goUserPage(type){if(type==='back'){window.location=b2getCookie('b2_back_url')}else if(type){if(!b2token){this.login(1) return} window.location=this.$store.state.userData.link+'/'+type}else{if(!b2token){this.login(1) return} window.location=this.$store.state.userData.link}}},}) var topMenuLeft=new Vue({el:'.change-theme',data:{theme:'light',count:0,login:false},mounted(){if(b2token){this.login=true}},methods:{changeTheme(type){this.theme=type},showBox(){postPoBox.show=true},go(type){if(type==='orders'){if(b2token){window.location.href=this.$store.state.userData.link+'/orders'}else{login.show=true login.loginType=1}} if(type==='requests'){if(b2token){window.location.href=b2_global.home_url+'/requests'}else{login.show=true login.loginType=1}}}}}) var headerTools=new Vue({el:'.header-tools',computed:{userData(){return this.$store.state.userData;}},methods:{showSearch(){b2SearchBox.close()},}}) Vue.component('login-box',{props:['show','allowRegister','checkType','loginType','loginText','invitation','invitationLink','invitationText','imgBoxCode'],template:b2_global.login,data(){return{data:{'nickname':'','username':'','password':'','code':'','img_code':'','invitation_code':'','token':'','smsToken':'','luoToken':'','confirmPassword':'','loginType':''},invitationPass:false,eye:false,codeImg:'',locked:false,showLuo:false,issetLuo:false,imgLocked:false,SMSLocked:false,count:60,repass:false,type:'',isWeixin:false,}},computed:{oauth(){return this.$store.state.oauthLink},openOauth(){return this.$store.state.openOauth}},created(){window.getResponse=(resp)=>{if(this.type=='edit'){b2AuthorEdit.sendCode(resp) recaptcha.close()}else{this.data.img_code=resp this.$nextTick(()=>{recaptcha.close() this.sendSMS()})}} this.isWeixin=b2isWeixin()},methods:{close(val){this.$emit('close-form',val)},loginAc(val){this.$emit('login-ac',val)},loginSubmit(e){e.preventDefault() if(this.locked==true)return this.locked=true if(this.invitation!=0&&(this.loginType==2&&!this.invitationPass)){this.invitationCheck()}else if(this.loginType==1){this.$https.post(b2_global.rest_url+'jwt-auth/v1/token',Qs.stringify(this.data)).then(res=>{if(res.status==200){this.$store.commit('setUserData',res.data) Vue.prototype.$http.defaults.headers.common['Authorization']='Bearer '+b2token} location.reload() return}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true,timeout:10000});this.locked=false})}else if(this.loginType==2){this.$https.post(b2_rest_url+'regeister',Qs.stringify(this.data)).then(res=>{location.reload();return}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}else if(this.loginType==3){this.$https.post(b2_rest_url+'forgotPass',Qs.stringify(this.data)).then(res=>{this.loginAc(4) this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}else if(this.loginType==4){this.$https.post(b2_rest_url+'resetPass',Qs.stringify(this.data)).then(res=>{this.repass=true this.data.password='' this.loginAc(1) this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}},b2IsPhoneAvailable(val){if(b2IsPhoneAvailable(val))return true return false},invitationCheck(){this.$https.post(b2_rest_url+'invitationCheck','code='+this.data.invitation_code).then(res=>{this.invitationPass=true this.locked=false this.showLuo=true}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},sendCode(){recaptcha.show=true this.close(false)},getCode(){if(this.imgLocked)return this.codeImg='' this.imgLocked=true this.$https.post(b2_rest_url+'getRecaptcha','number=4&width=186&height=50').then(res=>{if(res.data){this.codeImg=res.data.base this.data.token=res.data.token} this.imgLocked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.imgLocked=false})},changeCode(){this.getCode()},isEmail(email){var pattern=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;return pattern.test(email);},checkTips(){let text='' if(this.checkType=='tel'){text=b2_global.js_text.global.check_type.tel} if(this.checkType=='email'){text=b2_global.js_text.global.check_type.mail} if(this.checkType=='telandemail'){if(this.isEmail(this.data.username)){text=b2_global.js_text.global.check_type.mail}else{text=b2_global.js_text.global.check_type.tel}} if(text){Qmsg.info(b2_global.js_text.global.check_message.replace('#',text),{showClose:true,autoClose:false})}},sendSMS(){if(this.SMSLocked)return this.SMSLocked=true this.data.loginType=this.loginType this.$https.post(b2_rest_url+'sendCode',Qs.stringify(this.data)).then(res=>{if(res.data.token){this.data.smsToken=res.data.token} this.SMSLocked=false this.countdown() this.checkTips()}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.SMSLocked=false})},markHistory(mp,e){if(!this.$store.state.xieyi&&this.loginType==2){e.preventDefault();Qmsg['warning'](b2_global.js_text.global.xieyi,{html:true});return} if(mp){this.close() mpCode.show=true mpCode.type=this.loginType} b2setCookie('b2_back_url',window.location.href)},countdown(){if(this.count<=1){this.count=60 return} this.count-- setTimeout(()=>{this.countdown()},1000)},resetPssNext(){this.loginAc(4)}},watch:{oauth(val){if(val){Object.keys(val).forEach((key)=>{if(val[key].open){this.$store.commit('setOpenOauth',true)}});if(b2isWeixin()&&b2_global.wx_mp_in_login==1){if(!b2token&&document.querySelector('#open-page')===null){b2setCookie('b2_back_url',window.location.href) window.location.href=this.oauth.weixin.url}}}},loginType(val){if((this.invitation==0||this.invitationPass)&&val==2){this.showLuo=true}else{this.showLuo=false} if(this.issetLuo){LUOCAPTCHA&&LUOCAPTCHA.reset()}},invitationPass(val){if(this.issetLuo&&val){setTimeout(()=>{LUOCAPTCHA&&LUOCAPTCHA.reset()},100)}},show(val){if(val&&this.checkType=='text'){this.getCode() this.type=''}},imgBoxCode(val){this.data.img_code=val.value this.data.token=val.token},showLuo(val){if(this.show&&this.checkType=='luo'&&val&&!this.issetLuo){let s=document.createElement('script') s.id='luosimao' s.type='text/javascript' s.src='//captcha.luosimao.com/static/dist/api.js' document.getElementsByTagName("head")[0].appendChild(s) this.issetLuo=true}}}}) Vue.component('mp-box',{props:['show','invitation','invitationLink','invitationText'],template:b2_global.mp_box,data(){return{code:'',locked:false,token:false,invitationCode:'',locked:false,qrcode:'',t:false,count:100}},computed:{oauthLink(){return this.$store.state.oauthLink}},methods:{close(){this.$emit('close') this.t=null},submit(){if(this.locked==true)return this.locked=true if(this.count<=1||this.t===null){this.t=null this.count=100 return} this.$http.post(b2_rest_url+'mpLogin','code='+this.code).then(res=>{if(res.data==='waiting'){this.locked=false this.t=setTimeout(()=>{this.submit()},1000) return} if(res.data.type==='invitation'){this.token=res.data.token}else{if(res.data===true){location.reload()}else{this.$store.commit('setUserData',res.data) Vue.prototype.$http.defaults.headers.common['Authorization']='Bearer '+b2token location.reload()}} this.t=null this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},checkInv(){if(this.locked==true)return this.locked=true this.$https.post(b2_rest_url+'mpLoginInv','token='+this.token+'&inv='+this.invitationCode).then(res=>{if(res.data.token){location.reload()} this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},getQrcode(){this.$https.post(b2_rest_url+'getLoginQrcode').then(res=>{this.code=res.data.sence_id this.qrcode=res.data.qrcode this.submit()}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});})}},watch:{show(val){if(val){if(this.oauthLink.weixin.pc_open){b2loadScript('https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js','',()=>{new WxLogin({self_redirect:false,id:"mp-login-box",appid:b2_global.wx_appid,scope:"snsapi_login",redirect_uri:b2_global.home_url+'/open?type=weixin',state:"",style:"black",href:"data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7DQogICAgd2lkdGg6IDEwMCU7DQogICAgbWFyZ2luLXRvcDogMDsNCiAgICBib3JkZXI6IDA7DQp9DQouaW1wb3dlckJveCAuaW5mbyB7DQogICAgZGlzcGxheTogbm9uZTsNCn0NCi5pbXBvd2VyQm94IC50aXRsZXsNCmRpc3BsYXk6bm9uZQ0KfQ=="});})}else{this.locked=false this.t=false this.count=100 this.getQrcode()}}}}}) var mpCode=new Vue({el:'#mp-box',data:{show:false,qrcode:'',type:'1',},methods:{close(){this.show=!this.show if(!b2token){login.show=true login.loginType=this.type}}}}) var login=new Vue({el:'#login-box',data:{show:false,loginType:1,checkCodeSendSuccess:false,isAdmin:false,imgCode:''},methods:{close(val){this.show=val},loginAc(val){this.loginType=val},imgCodeAc(val){this.imgCode=val}}}) Vue.component('recaptcha-box',{props:['show','type'],template:b2_global.check_code,data(){return{recaptcha:'',token:'',recaptchaUrl:'',disabled:true,issetLuo:false,locked:false,loginType:2,checkType:b2_global.check_type,}},methods:{close(){this.$emit('close-form')},change(){if(this.locked)return this.recaptchaUrl='' this.locked=true this.$https.post(b2_rest_url+'getRecaptcha','number=4&width=186&height=50').then(res=>{if(res.data){this.recaptchaUrl=res.data.base this.token=res.data.token} this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},checkCode(){if(this.disabled)return this.disabled=true this.$https.post(b2_rest_url+'imgCodeCheck','img_code='+this.recaptcha+'&token='+this.token+'&loginType='+login.loginType).then(res=>{if(this.type=='edit'){b2AuthorEdit.imgCodeAc({value:this.recaptcha,token:this.token})}else if(this.type=='bind'){b2bindLogin.imgCodeAc({value:this.recaptcha,token:this.token})}else{login.imgCodeAc({value:this.recaptcha,token:this.token}) setTimeout(()=>{login.$refs.loginBox.sendSMS()},50)} this.disabled=false this.close()}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.disabled=false})}},watch:{show(val){if(val&&b2_global.check_type=='normal'){this.change()} if(val&&!this.issetLuo&&login.loginType!=3){let s=document.createElement('script') s.id='luosimao' s.type='text/javascript' s.src='//captcha.luosimao.com/static/dist/api.js?time='+((new Date()).getTime()) document.getElementsByTagName("head")[0].appendChild(s) this.issetLuo=true}else if(val&&this.issetLuo&&login.loginType!=3){LUOCAPTCHA&&LUOCAPTCHA.reset()} if(this.type!='edit'){this.loginType=login.loginType}},recaptcha(val){if(val.length==4){this.disabled=false}else{this.disabled=true}}}}) var recaptcha=new Vue({el:'#recaptcha-form',data:{show:false,type:''},methods:{close(){this.show=false if(this.type!='edit'&&this.type!='bind'){login.show=true} if(this.type==='bind'){b2bindLogin.show=true}},}}) function indexPostModules(){let m=document.querySelectorAll('.post-list');if(m.length>0){for(let i=0;i{if(res.data.count>0){this.pages=res.data.pages if(this.type=='cat'){if(this.pages==1){this.box.innerHTML=res.data.data}else{this.box.innerHTML=res.data.data} if(postType=='post-2'){b2PackeryLoad()} this.showButton=true}else if(this.type=='more'){this.box.insertAdjacentHTML('beforeend',res.data.data) if(postType=='post-2'){b2PackeryLoad()} this.showButton=true} if(this.paged>=this.pages){this.finish=true}}else{if(postType=='post-6'){this.box.innerHTML=''+b2_global.empty_page+''}else{this.box.innerHTML=b2_global.empty_page} this.showButton=false} this.locked=false b2SidebarSticky()})}}})}}}} indexPostModules() function listFadein(dom,time){return var i=0 dom.forEach(e=>{if(e.className.indexOf('is-visible')===-1){i++ if(i==1){e.className+=' is-visible'}else{setTimeout(function(){e.className+=' is-visible'},i*time)}}})} listFadein(document.querySelectorAll('.post-list ul.b2_gap > li'),10) function b2PackeryLoad(e){var grid=document.querySelectorAll('.grid') if(grid.length>0){for(let index=0;index{b2SidebarSticky()});}}} b2PackeryLoad() Vue.component('pagenav-new',{props:['type','paged','pages','opt','api','rote'],template:b2_global.page_nav,data:function(){return{locked:false,next:false,per:false,cpage:0,cpaged:1,cpages:[],mobile:false,showGo:false}},created(){window.addEventListener('scroll',_debounce(this.autoLoadMore),passiveSupported?{passive:true}:false) this.cpaged=parseInt(this.paged) this.cpages=this.pagesInit() window.addEventListener("popstate",()=>{let state=history.state;if(state&&state.page&&this.type=='p'){this.go(state.page)}},passiveSupported?{passive:true}:false);this.mobile=B2ClientWidth>768?false:true},methods:{disabled(page){return page==this.cpaged&&this.locked==true},pagesInit(){let pagearr=[] if(this.pages<=6){for(let i=1;i<=this.pages;i++){pagearr.push(i)}}else{if(!this.cpaged)this.cpaged=this.paged if(this.cpaged<4){for(let i=1;i<=this.pages;i++){if(i>=5)break pagearr.push(i)} pagearr.push(0,this.pages)}else if(this.cpaged>=4&&this.pages-2>this.cpaged){pagearr.push(1,0) for(let i=this.cpaged-1;i<=this.cpaged+1;i++){pagearr.push(i)} pagearr.push(0,this.pages)}else if(this.pages-2<=this.cpaged){pagearr.push(1,0) for(let i=this.cpaged-2;i<=this.pages;i++){pagearr.push(i)}}} return pagearr},focus(){this.showGo=true},blur(){setTimeout(()=>{this.showGo=false},100);},autoLoadMore(){if(this.type=='p')return let scrollTop=document.documentElement.scrollTop;if(scrollTop+window.innerHeight>=document.body.clientHeight-550){this.go(this.cpaged+1)}},go(page,type,action){page=parseInt(page) if(this.opt.length>0)return if(this.cpaged==page&&!action)return if(this.locked==true)return this.locked=true if(this.type==='m'&&this.pages<=this.cpaged&&page!=1)return if(type=='next'){this.next=true this.per=false}else if(type=='per'){this.per=true this.next=false} this.cpaged=page this.opt['post_paged']=page this.opt['paged']=page this.$http.post(b2_rest_url+this.api,Qs.stringify(this.opt)).then(res=>{this.locked=false this.cpages=this.pagesInit() this.$emit('return',res.data) if(this.rote){let currentURL=window.location.href,url=currentURL.split('?')[0],newURL if(this.cpaged==1){newURL=url.replace(/\/page\/\d/,'');}else{if(currentURL.indexOf('/page/')==-1){newURL=url+'/page/'+this.cpaged}else{newURL=url.replace(/\/page\/[0-9]*$/,'/page/'+page);}} url=currentURL.replace(url,newURL) window.history.pushState({page:page},null,url)} b2SidebarSticky() if(typeof b2CommentList!=='undefined'&&b2CommentList.$refs.commentPageNav){b2CommentList.lazyLoadInstance.update()} lazyLoadInstance.update()}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});})},getData(fn,data){this.cpaged=this.cpage this.cpages=this.pagesInit()},jump:function(event){var val=event.target.value||event.target.previousElementSibling.value||this.$refs.pagenavnumber.value if(val>this.pages)return this.go(parseInt(val))}},watch:{pages:function(val){this.cpages=this.pagesInit()},paged:function(){this.cpaged=parseInt(this.paged) this.cpages=this.pagesInit()}}}) Vue.component('page-nav',{props:['paged','navtype','pages','type','box','opt','api','url','title'],template:b2_global.page_nav,data:function(){return{locked:false,next:false,per:false,cpage:0,cpaged:1,cpages:[],mobile:false,showGo:false}},created(){window.addEventListener('scroll',_debounce(this.autoLoadMore),passiveSupported?{passive:true}:false) this.cpaged=parseInt(this.paged) this.cpages=this.pagesInit() window.addEventListener("popstate",()=>{let state=history.state;if(state&&state.page&&this.type=='p'){this.go(state.page)}},passiveSupported?{passive:true}:false);this.mobile=B2ClientWidth>768?false:true},methods:{disabled(page){return page==this.cpaged&&this.locked==true},pagesInit(){let pagearr=[] if(this.pages<=7){for(let i=1;i<=this.pages;i++){pagearr.push(i)}}else{if(!this.cpaged)this.cpaged=this.paged if(this.cpaged<5){for(let i=1;i<=this.pages;i++){if(i>=6)break pagearr.push(i)} pagearr.push(0,this.pages)}else if(this.cpaged>=5&&this.pages-3>this.cpaged){pagearr.push(1,0) for(let i=this.cpaged-2;i<=this.cpaged+2;i++){pagearr.push(i)} pagearr.push(0,this.pages)}else if(this.pages-3<=this.cpaged){pagearr.push(1,0) for(let i=this.cpaged-3;i<=this.pages;i++){pagearr.push(i)}}} return pagearr},autoLoadMore(){setTimeout(()=>{if(this.type=='p')return let scrollTop=document.documentElement.scrollTop;if(scrollTop+window.innerHeight>=document.body.clientHeight-550){this.go(this.cpaged+1)}},300);},focus(){this.showGo=true},blur(){setTimeout(()=>{this.showGo=false},100);},go(page,type,action){page=parseInt(page) if(this.opt.length>0)return if(this.cpaged==page&&!action)return if(this.locked==true)return if(this.type==='m'&&this.pages<=this.cpaged&&page!=1)return this.locked=true if(type=='next'){this.next=true this.per=false}else if(type=='per'){this.per=true this.next=false} this.cpaged=page console.log(this.cpaged) this.opt['post_paged']=page this.opt['paged']=page this.$http.post(b2_rest_url+this.api,Qs.stringify(this.opt)).then(res=>{this.locked=false this.cpages=this.pagesInit() let dom=document.querySelector(this.box) if(this.navtype==='json'){this.$emit('return',res.data)}else{if(this.type==='p'){dom.innerHTML=res.data.data}else{dom.insertAdjacentHTML('beforeend',res.data.data)}} if(page!=1){this.url=b2removeURLParameter(this.url,'action')} if(!!(window.history&&history.pushState)){if(page!=1){if(this.navtype==='comment'){if(b2_global.structure){window.history.pushState({page:page},null,this.url+'/comment-page-'+page+'#comment')}else{window.history.pushState({page:page},null,this.url+'&cpage='+page+'#comment')}}else{if(this.navtype!='authorComments'&&this.title){document.title=this.title+' '+b2_global.site_separator+' '+(b2_global.page_title.replace('{#}',page))+' '+b2_global.site_separator+' '+b2_global.site_name} let currentURL=window.location.href,url=currentURL.split('?')[0],newURL if(this.cpaged==1){newURL=url.replace(/\/page\/\d/,'');}else{if(currentURL.indexOf('/page/')==-1){newURL=url+'/page/'+this.cpaged}else{newURL=url.replace(/\/page\/[0-9]*$/,'/page/'+page);}} url=currentURL.replace(url,newURL) window.history.pushState({page:page},null,url)}}else{if(this.navtype==='comment'){window.history.pushState({page:page},null,this.url+'#comment')}else{if(this.navtype!='authorComments'&&this.title){document.title=this.title+' '+b2_global.site_separator+' '+b2_global.site_name} window.history.pushState({page:page},null,this.url)}}} if(this.navtype==='comment'||this.navtype==='authorComments'){let img=document.querySelectorAll('.comment-img-box img');if(img.length>0){for(let index=0;index{listFadein(document.querySelectorAll(this.box+' > li'),20)},500)} b2SidebarSticky() if(typeof b2CommentList!=='undefined'&&b2CommentList.$refs.commentPageNav){b2CommentList.lazyLoadInstance.update()} lazyLoadInstance.update()}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});})},getData(fn,data){this.cpaged=this.cpage this.cpages=this.pagesInit()},jump:function(event){var val=event.target.value||event.target.previousElementSibling.value||this.$refs.pagenavnumber.value if(val>this.pages)return this.go(parseInt(val))}},watch:{pages:function(val){this.cpages=this.pagesInit()},paged:function(){this.cpaged=parseInt(this.paged) this.cpages=this.pagesInit()}}}) let pageNavBox=new Vue({el:'.post-nav',data:{selecter:'#post-list .b2_gap',opt:'',api:'getPostList',options:[],value:1,showGoN:false},mounted(){if(typeof b2_cat!=='undefined'){this.opt=b2_cat.opt}},methods:{jumpAc:function(event){var val=event.target.value||event.target.previousElementSibling.value||this.$refs.pagenavnumber.value if(val>this.opt.pages)return let currentURL=window.location.href,url=currentURL.split('?')[0],newURL if(val==1){newURL=url.replace(/\/page\/\d/,'');}else{if(currentURL.indexOf('/page/')==-1){newURL=url+'/page/'+val}else{newURL=url.replace(/\/page\/[0-9]*$/,'/page/'+val);}} url=currentURL.replace(url,newURL) window.location.href=url;},focus(){this.showGoN=true},blur(){setTimeout(()=>{this.showGoN=false},100);},}}) let b2Audio=new Vue({el:'.b2-audio-content',data:{url:'',textList:[],playStatus:false,api:'http://tsn.baidu.com/text2audio?lan=zh&ie=UTF-8&text=',index:0,currentTime:'00:00',startTime:'00:00',step:0,duration:0,ds:'',width:'0%'},methods:{play(){if(!this.url){this.getPlayList()}else{this.playList()}},getPlayList(){this.$https.post(b2_rest_url+'getPostAudio','post_id='+this.$refs.audio.getAttribute('data-id')).then((res)=>{if(res.data.length>0){this.textList=res.data this.playList() this.watchPlay()}})},playList(){this.url=this.api+this.textList[this.index];setTimeout(()=>{this.button()})},watchPlay(){this.$refs.audio.addEventListener('ended',()=>{if(this.index>=this.textList.length-1){this.playStatus=false this.index=0 this.step=0 return;} this.step=0 this.index=this.index+1 this.playList()},passiveSupported?{passive:true}:false)},button(){if(this.$refs.audio!==null){if(this.$refs.audio.paused){this.$refs.audio.play() this.playStatus=true this.timeSetp()}else{this.$refs.audio.pause() this.playStatus=false} this.$refs.audio.addEventListener("loadedmetadata",()=>{this.duration=Math.round(this.$refs.audio.duration) this.currentTime=this.secondToDate(this.duration)},passiveSupported?{passive:true}:false);}},timeSetp(){if(this.playStatus==true){this.startTime=this.secondToDate(this.step++) if(this.ds){clearTimeout(this.ds)} this.ds=setTimeout(()=>{this.timeSetp() this.width=this.step/this.duration*100+'%'},1000)}},secondToDate(s){var t;if(s>-1){var hour=Math.floor(s/3600) var min=Math.floor(s/60)%60 var sec=s%60 if(hour>1){if(hour<10){t='0'+hour+":"}else{t=hour+":";}}else{t='';} if(min<10){t+="0"} t+=min+":";if(sec<10){t+="0"} t+=sec.toFixed(0);} return t;}}}) var socialBox=new Vue({el:'#social-box',data:{locked:false,type:'',data:{'token':'','invitation':'','subType':''},error:'',oauth:'',name:''},mounted(){if(this.$refs.socialBox){let code=b2GetQueryVariable('code');this.type=b2GetQueryVariable('type') if(code){this.locked=true this.$http.post(b2_rest_url+'socialLogin','code='+code+'&type='+this.type).then(res=>{this.locked=false if(res.data===true){this.back()}else if(res.data.type=='invitation'){this.type='invitation',this.data.token=res.data.token}else{this.back()}}).catch(err=>{if(err.response.data.message.msg){this.oauth=err.response.data.message.oauth this.error=err.response.data.message.msg this.name=err.response.data.message.name}else{this.error=err.response.data.message} this.locked=false})}}},methods:{back(){let url=b2getCookie('b2_back_url') if(url){window.location.href=url}else{window.location.href=b2_global.home_url}},invRegeister(type){if(this.locked=='pass'||this.locked=='sub')return this.locked=type this.data.subType=type this.$http.post(b2_rest_url+'invRegeister',Qs.stringify(this.data)).then(res=>{this.back()}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},loginOut(url){b2delCookie('b2_token') console.log(url) window.location.href=url},rebuild(ev){this.$http.post(b2_rest_url+'unBuild','type='+this.type+'&user_id='+b2_author.author_id).then(res=>{}).catch(err=>{ev.preventDefault();Qmsg['warning'](err.response.data.message,{html:true});})}}}) Vue.component('gg-box',{props:['show'],template:b2_global.gg_box,computed:{ggdata(){return this.$store.state.announcement[0]}},methods:{close(){this.$emit('close')},}}) var b2GG=new Vue({el:'#gg-box',data:{show:false},mounted(){this.$http.post(b2_rest_url+'getLatestAnnouncement','count=3').then(res=>{if(res.data.length>0){this.$store.commit('setAnnouncement',res.data) this.show=res.data[0].show}else{this.$store.commit('setAnnouncement','none')}})},methods:{close(){this.show=false let timestamp=new Date().getTime() timestamp=parseInt(timestamp/1000) b2setCookie('gg_info',timestamp)}}}) Vue.component('dmsg-box',{props:['show','userid','type'],template:b2_global.dmsg_box,data(){return{user:[],content:'',locked:false,nickname:'',UserList:[],search:false}},methods:{close(){this.$emit('close') setTimeout(()=>{this.user=[] this.content='' this.nickname='' this.UserList=[]},100)},getUserData(id=0){id=!id?this.userid:id this.$http.post(b2_rest_url+'getUserPublicData','user_id='+id).then(res=>{this.user=res.data b2Dmsg.userid=id b2Dmsg.select='' this.UserList=[]}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});})},edit(){b2Dmsg.select='select'},send(){if(this.locked==true)return this.locked=true this.$http.post(b2_rest_url+'sendDirectmessage','user_id='+this.userid+'&content='+this.content).then(res=>{if(res.data==true){this.close()} if(b2DmsgPage.$refs.dmsgPage){b2DmsgPage.getList()} this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},searchUser(val){if(this.locked==true)return this.locked=true this.search=true this.$http.post(b2_rest_url+'searchUsers','nickname='+val).then(res=>{if(res.data.length>0){this.UserList=res.data}else{this.UserList=[]} this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false this.UserList=[]})}},watch:{show(val){if(val&&this.type!=='select'){this.getUserData()}},nickname(val){if(val){this.searchUser(val);}}}}) var b2Dmsg=new Vue({el:'#dmsg-box',data:{userid:0,show:false,select:''},methods:{close(){this.show=!this.show}}}) var b2DmsgPage=new Vue({el:'.dmsg-page',data:{list:false,locked:false,count:0,pages:0,selecter:'.dmsg-header',opt:{paged:1},api:'getUserDirectmessageList'},mounted(){if(this.$refs.dmsgPage){this.opt.paged=this.$refs.dmsgPage.getAttribute('data-paged') this.getList()}},methods:{getList(){this.$http.post(b2_rest_url+'getUserDirectmessageList',Qs.stringify(this.opt)).then(res=>{this.list=res.data.data this.pages=res.data.count this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},showDmsgBox(){b2Dmsg.select='select' b2Dmsg.show=true},get(data){this.list=data.data this.pages=data.count},jump(id){window.location.href=this.$refs.dmsgPage.getAttribute('data-url')+'/to/'+id;},deleteDmsg(id){}}}) var b2dmsgPageTo=new Vue({el:'.dmsg-page-to',data:{list:false,locked:false,opt:{paged:1,userid:0},count:0,pages:0,selecter:'.dmsg-header',api:'getMyDirectmessageList',content:'',sendLocked:false},mounted(){if(this.$refs.mydmsg){this.opt.userid=this.$refs.mydmsg.getAttribute('data-id') this.opt.paged=this.$refs.mydmsg.getAttribute('data-paged') this.getList();}},methods:{getList(){this.$http.post(b2_rest_url+'getMyDirectmessageList',Qs.stringify(this.opt)).then(res=>{this.list=res.data.data this.locked=false this.count=res.data.count this.pages=res.data.pages}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},get(val){this.list=val.data this.count=val.count this.pages=val.pages},send(){if(this.sendLocked==true)return this.sendLocked=true this.$http.post(b2_rest_url+'sendDirectmessage','user_id='+this.opt.userid+'&content='+this.content).then(res=>{this.getList() this.content='' this.sendLocked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.sendLocked=false})}}}) var b2DownloadPage=new Vue({el:'#download-page',data:{data:'',postId:0,index:0,i:0},mounted(){if(this.$refs.downloadPage){this.postId=b2GetQueryVariable('post_id');this.index=b2GetQueryVariable('index');this.i=b2GetQueryVariable('i');this.getData() var clipboard=new ClipboardJS('.fuzhi');clipboard.on('success',e=>{Qmsg['success'](b2_global.js_text.global.copy_success,{html:true});});clipboard.on('error',e=>{Qmsg['warning'](b2_global.js_text.global.copy_select,{html:true});});}},methods:{getData(){let guest=b2getCookie('b2_guest_buy_'+this.postId+'_x') if(guest){guest=JSON.parse(guest)} let data={'post_id':this.postId,'index':this.index,'i':this.i,'guest':guest} this.$http.post(b2_rest_url+'getDownloadPageData',Qs.stringify(data)).then(res=>{this.data=res.data}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});})},login(){login.show=true}}}) Vue.component('check-box',{props:['show','title','type','payt'],template:b2_global.pay_check,data(){return{success:false,timeOut:300,timesec:'',sTime:'',check:false,checkTime:''}},methods:{close(){this.$emit('close') this.sTime='' this.checkTime=''},checkAc(){if((this.sTime===null&&this.success=='fail')||this.checkTime===null||this.success===true){this.checkTime=null return} let value=b2getCookie('order_id') this.$http.post(b2_rest_url+'payCheck','order_id='+value).then(res=>{if(res.data.status==='success'){if(!b2token){let list=b2getCookie('b2_guest_buy_'+res.data.id+'_'+res.data.type) if(!list){list=new Object()}else{list=JSON.parse(list)} Reflect.set(list,res.data.index,{'id':res.data.id,'order_id':value,'type':res.data.type,'index':res.data.index}) list=JSON.stringify(list) b2setCookie('b2_guest_buy_'+res.data.id+'_'+res.data.type,list)} if(typeof(B2VerifyPage)!=="undefined"){B2VerifyPage.data.money=true this.close()}else if(typeof(carts)!=="undefined"){carts.step=3 this.close()}else if(this.payt==='ask'){b2CircleList.afterCommentGetData(b2CircleList.answer.listParent,b2CircleList.data[b2CircleList.answer.listParent].topic_id,'ask') this.close()}else if(this.payt==='hidden'){b2CircleList.afterCommentGetData(b2CircleList.hiddenIndex,b2CircleList.data[b2CircleList.hiddenIndex].topic_id,'hidden') this.close()} this.success=true;this.checkTime=null;this.sTime=null}else{this.checkTime=setTimeout(()=>{this.checkAc()},1000)}})},time(){this.currTime=parseInt(Date.parse(new Date())/1000);this.endTime=parseInt(this.currTime+this.timeOut);this.setTime()},setTime(){if(this.show==false||this.success===true){this.sTime=null this.checkTime=null;return} let diff_time=parseInt(this.endTime-this.currTime);let m=Math.floor((diff_time/60%60));let s=Math.floor((diff_time%60));this.timesec=(m>0?m+''+b2_global.js_text.global.min+'':'')+s+''+b2_global.js_text.global.sec+'';if(diff_time>0){this.sTime=setTimeout(()=>{this.endTime=this.endTime-1;this.setTime()},1000)}else{this.sTime=null this.success='fail'}},refresh(){if(typeof(B2VerifyPage)!=="undefined"){B2VerifyPage.data.money=true this.close()}else if(typeof(carts)!=="undefined"){carts.step=3 this.close()}else if(this.payt==='ask'){b2CircleList.afterCommentGetData(b2CircleList.answer.listParent,b2CircleList.data[b2CircleList.answer.listParent].topic_id,'ask') this.close()}else if(this.payt==='hidden'){b2CircleList.afterCommentGetData(b2CircleList.hiddenIndex,b2CircleList.data[b2CircleList.hiddenIndex].topic_id,'hidden') this.close()}else if(typeof(b2poinfomation)!=="undefined"&&b2poinfomation.$refs.poinfomation){b2poinfomation.getPoinfomationOpts() this.close()}else{var url=new URL(window.location.href);url.searchParams.delete('b2paystatus');window.location.href=url.href location.reload();}}},watch:{show(val){if(this.type=='card')return if(val){this.sTime='' this.checkTime='' this.time() this.checkAc()}else{this.sTime=null this.success=false this.checkTime=null}}}}) var b2PayCheck=new Vue({el:'#pay-check',data:{show:false,title:'',type:'',payType:''},mounted(){if(b2GetQueryVariable('b2paystatus')=='check'){this.show=true}},methods:{close(){this.show=!this.show if(!this.show){this.payType=''}}}}) var b2Pay=new Vue({el:'#pay-page',data:{data:[],token:'',error:'',locked:false,payUrl:''},mounted(){if(this.$refs.payPage){this.token=this.$refs.payPage.getAttribute('data-token');if(!this.token){this.data=JSON.parse(this.$refs.payPage.getAttribute('data-pay'));this.pay()}}},methods:{pay(){if(this.locked==true)return this.locked=true this.$http.post(b2_rest_url+'buildOrder',Qs.stringify(this.data)).then(res=>{this.token=res.data this.payUrl=window.location.href.split('?')[0]+'?token='+this.token this.locked=false}).catch(err=>{this.error=err.response.data.message this.locked=false})}}}) function b2MakeForm(url,token){var form1=document.createElement("form");form1.id="form1";form1.name="form1";document.body.appendChild(form1);var input=document.createElement("input");input.name="token";input.value=token;form1.appendChild(input);form1.method="POST";form1.action=url;form1.submit();document.body.removeChild(form1);} Vue.component('scan-box',{props:['show','data'],template:b2_global.scan_box,data(){return{locked:false,qrcode:'',timeOut:300,timesec:'',sTime:'',success:'',checkTime:'',backData:[]}},methods:{close(){this.$emit('close') this.backData=[] this.checkTime=null},buildOrder(){if(this.locked==true)return this.locked=true this.currTime=parseInt(Date.parse(new Date())/1000);this.endTime=parseInt(this.currTime+this.timeOut);this.setTime() this.$http.post(b2_rest_url+'buildOrder',Qs.stringify(this.data)).then(res=>{this.backData=res.data if(res.data.type!=='mapay'&&res.data.type!=='pay020'){var qr=new QRious({value:this.backData.qrcode,size:200,level:'L'});this.backData.qrcode=qr.toDataURL('image/jpeg')} this.writeOrder(res.data.order_id) this.locked=false this.checkAc()}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},writeOrder(id){b2setCookie('order_id',id)},checkAc(){if((this.sTime===null&&this.success=='fail')||this.checkTime===null||this.show==false){this.checkTime=null return} let value=b2getCookie('order_id') this.$http.post(b2_rest_url+'payCheck','order_id='+value).then(res=>{if(res.data.status==='success'){if(!b2token){let list=b2getCookie('b2_guest_buy_'+res.data.id+'_'+res.data.type) if(!list){list=new Object()}else{list=JSON.parse(list)} Reflect.set(list,res.data.index,{'id':res.data.id,'order_id':value,'type':res.data.type,'index':res.data.index}) list=JSON.stringify(list) b2setCookie('b2_guest_buy_'+res.data.id+'_'+res.data.type,list)} this.success=true;this.checkTime=null;if(typeof(B2VerifyPage)!=="undefined"){B2VerifyPage.data.money=true this.close()} if(typeof(carts)!=="undefined"){carts.step=3 this.close()} if(this.data.order_type==='circle_read_answer_pay'){b2CircleList.afterCommentGetData(b2CircleList.answer.listParent,b2CircleList.data[b2CircleList.answer.listParent].topic_id,'ask') this.close()} if(this.data.order_type==='circle_hidden_content_pay'){b2CircleList.afterCommentGetData(b2CircleList.hiddenIndex,b2CircleList.data[b2CircleList.hiddenIndex].topic_id,'hidden') this.close()}}else{this.checkTime=setTimeout(()=>{this.checkAc()},1000)}})},setTime(){if(this.show==false)return let diff_time=parseInt(this.endTime-this.currTime);let m=Math.floor((diff_time/60%60));let s=Math.floor((diff_time%60));this.timesec=(m>0?m+''+b2_global.js_text.global.min+'':'')+s+''+b2_global.js_text.global.sec+'';if(diff_time>0){this.sTime=setTimeout(()=>{this.endTime=this.endTime-1;this.setTime()},1000)}else{this.sTime=null this.success='fail'}},refresh(){if(this.data.order_type==='circle_read_answer_pay'){b2CircleList.afterCommentGetData(b2CircleList.answer.listParent,b2CircleList.data[b2CircleList.answer.listParent].topic_id,'ask') this.close()}else if(this.data.order_type==='circle_hidden_content_pay'){b2CircleList.afterCommentGetData(b2CircleList.hiddenIndex,b2CircleList.data[b2CircleList.hiddenIndex].topic_id,'hidden') this.close()}else{location.reload();}}},watch:{show(val){if(val){this.sTime='' this.success=false this.checkTime=''}else{this.sTime=null this.success=false this.checkTime=null}},data:{deep:true,handler(newName,oldName){this.buildOrder()},}}}) var b2ScanPay=new Vue({el:'#scan-box',data:{data:[],show:false},methods:{close(){this.show=!this.show}}}) Vue.component('ds-box',{props:['show','money','msg','user','author','data','showtype'],template:b2_global.ds_box,data(){return{value:0,custom:0,content:'',payType:'',payMoney:'',locked:false,jump:'',href:'',isWeixin:'',isMobile:'',allow:[],card:[],cg:[],newWin:null,login:false,redirect:'',payData:''}},created(){this.isWeixin=b2isWeixin() if(b2token){this.login=true} this.redirect=b2getCookie('b2_back_url');},methods:{close(){this.$emit('close') this.locked=false},clean(){this.$emit('clean')},picked(m,val){this.value=val this.payMoney=m},post(url,params){var temp=document.createElement("form");temp.action=url;temp.method="post";temp.target="_blank";temp.style.display="none";if(Object.keys(params).length>0){Object.keys(params).forEach((key)=>{var opt=document.createElement("input");opt.name=key;opt.value=params[key];temp.appendChild(opt);})} document.body.appendChild(temp);temp.submit();return temp;},restData(data=[]){if(this.showtype=='ds'){data=Object.assign(data,{'title':this.$refs.dstitle.innerText,'order_price':this.payMoney,'order_type':'ds','post_id':b2_global.post_id,'pay_type':this.payType,'order_content':this.content})}else if(this.showtype=='cz'){data={'title':b2_global.js_text.global.pay_money,'order_price':this.payMoney,'order_type':'cz','post_id':0,'pay_type':this.payType}}else if(this.showtype=='cg'){data={'title':b2_global.js_text.global.pay_credit,'order_price':this.payMoney,'order_type':'cg','post_id':0,'pay_type':this.payType}}else{data=Object.assign(this.data,data)} data['pay_type']=this.payType var url=new URL(window.location.href);url.searchParams.set('b2paystatus','check');data['redirect_url']=url.href return data},disabled(){if(this.data.pay_type!=='card'){if(this.jump=='')return true if((this.jump=='jump'||this.jump=='mweb'||this.jump=='jsapi')&&this.href==''&&this.payData=='')return true if(this.locked==true)return true if(this.payType=='')return true if(this.payMoney==='')return true}else{if(!this.card.number||!this.card.password)return true} return false},chosePayType(val){if(this.locked==true)return;this.locked=true this.payType=val this.href='' this.payData='' this.jump='' this.$http.post(b2_rest_url+'checkPayType','pay_type='+val).then(res=>{if(res.data.pay_type=='card'){this.$emit('change','card') this.card.text=res.data.card_text this.jump=res.data.pay_type this.locked=false}else{if(this.showtype=='card'){this.$emit('change','cz')} this.jump=res.data.pay_type this.isMobile=res.data.is_mobile if(this.jump=='jump'||this.jump==='mweb'||this.jump==='jsapi'){let data=Qs.stringify(this.restData());this.$http.post(b2_rest_url+'buildOrder',data).then(res=>{this.writeOrder(res.data.id) if(typeof res.data.url=='string'){this.href=res.data.url}else{this.payData=res.data.url} this.locked=false}).catch(err=>{if(err.response.data.message.msg==='bind_weixin'){b2setCookie('b2_back_url',window.location.href) if(typeof err.response.data.message.oauth=='string'){b2weixinBind.msg=err.response.data.message.oauth b2weixinBind.show=true}else{b2weixinBind.show=true b2weixinBind.url=err.response.data.message.oauth.weixin.url}}else{Qmsg['warning'](err.response.data.message,{html:true});} this.locked=false})}else{this.locked=false}} b2setCookie('b2_back_url',window.location.href)}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},writeOrder(id){b2setCookie('order_id',id)},balancePay(order_id){let data=this.restData();this.$http.post(b2_rest_url+'balancePay','order_id='+order_id).then(res=>{this.close() b2PayCheck.show=true b2PayCheck.title=data['title'] this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})},pay(){if(this.disabled())return;if(this.jump==='card'){if(this.locked==true)return this.locked=true this.$http.post(b2_rest_url+'cardPay',Qs.stringify(this.card)).then(res=>{if(res.data==='success'){b2PayCheck.show=true b2PayCheck.title=b2_global.js_text.global.pay_money_success b2PayCheck.type='card' this.close()} this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}else if(this.jump==='jump'||this.jump==='mweb'){b2PayCheck.show=true b2PayCheck.title=this.$refs.dstitle.innerHTML this.close() if(this.payData){this.post(this.payData.url,this.payData.data)}}else if(this.jump==='balance'){if(this.locked==true)return this.locked=true let data=Qs.stringify(this.restData());this.$http.post(b2_rest_url+'buildOrder',data).then(res=>{this.writeOrder(res.data) this.balancePay(res.data)}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}else if(this.jump==='scan'){if(this.isMobile){b2ScanPay.data=this.restData({'is_weixin':this.isWeixin,'is_mobile':this.isMobile})}else{b2ScanPay.data=this.restData()} b2ScanPay.show=true;this.close()}else if(this.jump==='jsapi'){let data=this.restData();jsApiCall(this.payData) this.close() b2PayCheck.show=true b2PayCheck.title=data['title']}},allowPayType(){this.$http.post(b2_rest_url+'allowPayType','show_type='+this.showtype).then(res=>{this.allow=res.data this.user.money=res.data.money if(res.data.dh){this.cg.min=res.data.min this.cg.dh=res.data.dh this.payMoney=this.cg.min}})},creditAdd(){return parseInt(this.payMoney*this.cg.dh)}},watch:{money(val){if(this.payMoney==0){this.payMoney=val[0]}},show(val){if(val){b2setCookie('b2_back_url',window.location.href) this.allowPayType()} if(val&&this.money.length>0){this.payMoney=this.money[0]}else if(val&&this.data.length!=0){this.payMoney=this.data.order_price}else if(val==false){setTimeout(()=>{this.value=0 this.payMoney=0 this.payType='' this.clean()},300);}},payType(val){this.data.pay_type=val},showtype(val){}}}) var b2DsBox=new Vue({el:'#ds-box',data:{money:[],show:false,msg:'',user:[],author:[],data:[],showtype:''},methods:{close(){this.show=!this.show},clean(){this.data=[] this.money=[]},change(type){this.showtype=type}},}) var b2Ds=new Vue({el:'#content-ds',data:{data:''},methods:{show(){b2DsBox.money=this.data.moneys b2DsBox.show=true b2DsBox.showtype='ds' b2DsBox.msg=this.data.single_post_ds_text},}}) function b2pay(event){let data=JSON.parse(event.getAttribute('data-pay'));b2DsBox.data=data b2DsBox.show=true b2DsBox.showtype='normal'} function b2creditpay(event){if(!b2token){login.show=true}else{let data=JSON.parse(event.getAttribute('data-pay'));payCredit.data=data payCredit.show=true}} function uuid(len,radix){var chars='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');var uuid=[],i;radix=radix||chars.length;if(len){for(i=0;i]+>|&[^>]+;/g,"").trim();return str;} var b2cache=[];function b2addJs(path,callback){var flag=0;for(var i=b2cache.length;i--;){b2cache[i]==path?flag=1:flag=0;} if(flag){return;} var head=document.getElementsByTagName('head')[0];var script=document.createElement('script');script.src=path;script.type='text/javascript';head.appendChild(script);script.onload=script.onreadystatechange=function(){if(!this.readyState||this.readyState==="loaded"||this.readyState==="complete"){script.onload=script.onreadystatechange=null;callback();}};b2cache.push(path);} function jsApiCall(data){WeixinJSBridge.invoke('getBrandWCPayRequest',data,function(res){});} function callpay(){if(typeof WeixinJSBridge=="undefined"){if(document.addEventListener){document.addEventListener('WeixinJSBridgeReady',jsApiCall,passiveSupported?{passive:true}:false);}else if(document.attachEvent){document.attachEvent('WeixinJSBridgeReady',jsApiCall);document.attachEvent('onWeixinJSBridgeReady',jsApiCall);}}else{jsApiCall();}} function b2SidebarSticky(){if(B2ClientWidth<=768)return if(document.querySelector('.post-style-5'))return if(typeof window.b2Stick!=='undefined'){for(let i=0;i768){var b2Stick=[] for(let i=0;i{this.creditPay(res.data)}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}}}) var payCredit=new Vue({el:'#credit-box',data:{show:false,data:[],user:{credit:0},author:[]},methods:{close(){this.show=!this.show}}}) var B2UserWidget=new Vue({el:'.b2-widget-user',data:{show:false,b2token:false},mounted(){this.b2token=b2token},computed:{userData(){return this.$store.state.userData},oauth(){return this.$store.state.oauthLink},announcement(){return this.$store.state.announcement},openOauth(){return this.$store.state.openOauth}},watch:{announcement(val){if(val&&!this.show){this.resize()}}},methods:{resize(){this.$nextTick(()=>{if(!this.$refs.userWidget)return if(this.$refs.gujia){this.$refs.gujia.style.display='none'} setTimeout(()=>{b2tooltip('.user-w-tips')},300);this.show=true})},markHistory(type){if(this.oauth.weixin.mp&&type==='weixin'){mpCode.show=true} b2setCookie('b2_back_url',window.location.href)}}}) var b2Mission=new Vue({el:'.b2-widget-mission',data:{data:'',locked:false,type:'today',paged:1,pages:{today:1,always:1}},mounted(){if(this.$refs.missionWidget){this.getData()}},methods:{getData(count,paged){if(this.$refs.missionWidget){count=this.$refs.missionWidget.getAttribute('data-count')} if(paged){this.paged=paged} this.$http.post(b2_rest_url+'getUserMission','count='+count+'&paged='+this.paged).then(res=>{this.data=res.data this.pages.today=res.data.mission_today_list.pages this.pages.always=res.data.mission_always_list.pages if(this.$refs.missiongujia){this.$refs.missiongujia.style.display='none'}})},mission(){if(!b2token){login.show=true}else{if(this.data.mission.credit){Qmsg['warning'](b2_global.js_text.global.has_mission,{html:true});return} if(this.locked==true)return this.locked=true this.$http.post(b2_rest_url+'userMission').then(res=>{this.$nextTick(()=>{this.data.mission=res.data.mission this.locked=false})}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}}}}) var b2NewComment=new Vue({el:'.b2-widget-comment',data:{data:'',paged:1,pages:1,count:5,hidden:1,next:false,prev:false,locked:false},mounted(){if(this.$refs.commentWidget){this.count=this.$refs.commentWidget.getAttribute('data-count');this.hidden=this.$refs.commentWidget.getAttribute('data-hidden');this.getList() if(this.paged==1){this.prev=true}}},methods:{getList(){if(this.locked==true)return this.locked=true this.$https.post(b2_rest_url+'getNewComments','paged='+this.paged+'&count='+this.count+'&hidden='+this.hidden).then(res=>{this.data=res.data.data this.pages=res.data.pages if(this.$refs.gujia){this.$refs.gujia.style.display='none'} this.$nextTick(()=>{b2SidebarSticky()}) this.locked=false})},nexAc(){if(this.next||this.locked)return this.paged++ this.getList()},prevAc(){if(this.prev||this.locked)return this.paged-- this.getList()}},watch:{paged(val){if(val<=1){this.prev=true}else{this.prev=false} if(val>=this.pages){this.next=true}else{this.next=false}}}}) var b2mobileFooterMenu=new Vue({el:'#mobile-footer-menu',data:{msg:0,show:true}}) var postPoBox=new Vue({el:'#post-po-box',data:{show:false,login:false,allow:''},mounted(){if(b2token){this.login=true}},methods:{close(){this.showPost=!this.showPost},go(val,type){if(!this.login){login.show=true login.type=0 return} if(type!='request'){if(!userTools.role[type]){Qmsg['warning'](b2_global.js_text.global.not_allow,{html:true});return}} setTimeout(()=>{window.location.href=val;},250);}}}) var b2AsideBar=new Vue({el:'.aside-container',data:{dmsg:{count:0},msg:{count:0},showBox:false,showType:{'user':false,'msg':false,'dmsg':false,'mission':false,'coupon':false},locked:false,mission:[],bool:false,coupon:{count:0,data:''},showCouponInfo:[],qrcode:'',ref:'',dlocked:false,count:0,cartLocked:false,b2token:false},computed:{userData(){return this.$store.state.userData},carts(){if(this.count&&!this.cartLocked){return{count:this.count,data:''}}else{let carts=this.$store.state.carts return{count:carts!==null&&carts!==undefined?Object.keys(carts).length:0,data:carts}}}},mounted(){this.b2token=b2token},methods:{getQrcode(url){var url=new URL(url) url.searchParams.set('ref',this.ref) var qr=new QRious({value:url.href,size:120,level:'L'});return qr.toDataURL('image/jpeg');},goMyPage(){if(!b2token){login.show=true login.type=0 return} window.location.href=this.userData.link},chat(){if(b2_global.chat.type=='crisp'){$crisp.push(['do','chat:open'])} if(b2_global.chat.type=='qq'){window.open("http://wpa.qq.com/msgrd?v=3&uin="+b2_global.chat.qq+"&site=qq&menu=yes","_blank");} if(b2_global.chat.type=='dmsg'){if(!b2token){login.show=true}else{b2Dmsg.userid=b2_global.chat.dmsg b2Dmsg.show=true}} if(b2_global.chat.type=='requests'){if(!b2token){login.show=true}else{window.open(b2_global.home_url+'/requests',"_blank");}}},show(type,value){this.closeBox() if(type==='user'){if(!b2token){login.show=true login.type=0 return}} if(type==='dmsg'&&this.dmsg.count==0){if(!b2token){login.show=true login.type=0 return} this.jumpTo(value) return;} if(type==='msg'){if(!b2token){login.show=true login.type=0 return} this.jumpTo(value) return;} if(type=='mission'){this.mission=b2Mission if(this.mission.data.length==0){this.mission.getData(10)}} if(type==='coupon'){this.getMyCoupons()} if(type==='cart'){if(!b2token){login.show=true login.type=0 return} this.getMycarts()} this.showType[type]=true this.showBox=true},getMycarts(){if(this.cartLocked==true)return this.cartLocked=true this.$http.get(b2_rest_url+'getMyCarts').then((res)=>{if(Object.keys(res.data).length>0){this.$store.commit('setcartsData',res.data)}})},showAc(val){if(!b2token){login.show=true return} if(val){this.show('user')}else{this.close()}},closeBox(){Object.keys(this.showType).forEach(key=>{this.showType[key]=false});this.showBox=false},getNewDmsg(){if(b2token){if(this.locked)return this.locked=true this.$http.post(b2_rest_url+'getNewDmsg').then(res=>{this.dmsg=res.data.dmsg topMenuLeft.count=res.data.msg this.locked=false})}},close(){if(this.$refs.asideContainer&&this.$refs.asideContainer.className.indexOf('aside-show')&&B2ClientWidth<768){this.$refs.asideContainer.className=this.$refs.asideContainer.className.replace(' aside-show','') this.showBox=false}else{this.closeBox()}},goTop(){this.$scrollTo('.site',300,{offset:0})},login(){if(!b2token){login.show=true return}else if(!this.$refs.asideContent){self.location=this.$store.state.userData.link}else{this.show('user') this.$refs.asideContainer.className+=' aside-show';}},showSearch(){b2SearchBox.close()},jumpTo(url){window.location.href=url;},updateCarts(){let data=b2getCookie('carts') if(data){this.carts.data=JSON.parse(data)}else{this.carts.data=''} if(this.carts.data){if(this.carts.count>Object.keys(this.carts.data).length){b2mobileFooterMenu.msg=b2mobileFooterMenu.msg-(this.carts.count-Object.keys(this.carts.data).length)}else{b2mobileFooterMenu.msg=b2mobileFooterMenu.msg+(Object.keys(this.carts.data).length-this.carts.count)} this.carts.count=Object.keys(this.carts.data).length}},deleteCarts(id){this.$https.post(b2_rest_url+'deleteMyCarts','id='+id).then(res=>{if(res.data.length==0){this.$store.commit('setcartsData',{})}else{this.$store.commit('setcartsData',res.data)}})},getMyCoupons(){if(!b2token){login.show=true return} this.showType.coupon=true this.$https.get(b2_rest_url+'getMyCoupons').then(res=>{this.coupon=res.data})},couponClass(item){if(item.expiration_date.expired)return'stamp04' if(item.products.length>0)return'stamp01' if(item.cats.length>0)return'stamp02' return'stamp03'},couponMoreInfo(id){this.$set(this.showCouponInfo,id,!this.showCouponInfo[id])},deleteCoupon(id){var r=confirm(b2_global.js_text.global.delete_coupon) if(r){this.$https.post(b2_rest_url+'deleteMyCoupon','id='+id).then(res=>{this.$delete(this.coupon.data,id) this.$set(this.coupon,'count',this.coupon.count-1)})} return}},watch:{userData(val){if(val&&this.$refs.asideContent){if(b2token){this.ref=val.user_code this.getNewDmsg()} this.updateCarts()}},dmsg:{handler(newVal,old){if(newVal.count>0){b2mobileFooterMenu.msg+=parseInt(newVal.count)}},immediate:true,deep:true},msg:{handler(newVal,old){if(newVal.count>0){b2mobileFooterMenu.msg+=parseInt(newVal.count)}},immediate:true,deep:true},showBox(val){if(val&&B2ClientWidth<768){this.$refs.asideContainer.className+=' aside-show'}}}}) function b2HiddenFilterBox(event){event.parentNode.parentNode.className=event.parentNode.parentNode.className.replace('b2-show','');} function b2flickity(){if(B2ClientWidth<768)return var f=document.querySelectorAll('.home-collection-silder');if(f){var collection=[] for(let i=0;i=footer.childNodes.length){document.querySelector('.site-footer').className+=' mobile-hidden';}} b2HiddenFooter() var b2SearchUser=new Vue({el:'#user-list',data:{follow:[],ids:[]},mounted(){if(this.$refs.searchUser){this.ids=b2_search_data.users this.checkFollowByids()}},methods:{checkFollowByids(){let data={'ids':this.ids} this.$http.post(b2_rest_url+'checkFollowByids',Qs.stringify(data)).then(res=>{this.follow=res.data})},followAc(id){if(!b2token){login.show=true}else{this.$http.post(b2_rest_url+'AuthorFollow','user_id='+id).then(res=>{this.follow[id]=res.data}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});})}},dmsg(id){if(!b2token){login.show=true}else{b2Dmsg.userid=id b2Dmsg.show=true}}}});(function(){var calc={Add:function(arg1,arg2){arg1=arg1.toString(),arg2=arg2.toString();var arg1Arr=arg1.split("."),arg2Arr=arg2.split("."),d1=arg1Arr.length==2?arg1Arr[1]:"",d2=arg2Arr.length==2?arg2Arr[1]:"";var maxLen=Math.max(d1.length,d2.length);var m=Math.pow(10,maxLen);var result=Number(((arg1*m+arg2*m)/m).toFixed(maxLen));var d=arguments[2];return typeof d==="number"?Number((result).toFixed(d)):result;},Sub:function(arg1,arg2){return Calc.Add(arg1,-Number(arg2),arguments[2]);},Mul:function(arg1,arg2){var r1=arg1.toString(),r2=arg2.toString(),m,resultVal,d=arguments[2];m=(r1.split(".")[1]?r1.split(".")[1].length:0)+(r2.split(".")[1]?r2.split(".")[1].length:0);resultVal=Number(r1.replace(".",""))*Number(r2.replace(".",""))/Math.pow(10,m);return typeof d!=="number"?Number(resultVal):Number(resultVal.toFixed(parseInt(d)));},Div:function(arg1,arg2){var r1=arg1.toString(),r2=arg2.toString(),m,resultVal,d=arguments[2];m=(r2.split(".")[1]?r2.split(".")[1].length:0)-(r1.split(".")[1]?r1.split(".")[1].length:0);resultVal=Number(r1.replace(".",""))/Number(r2.replace(".",""))*Math.pow(10,m);return typeof d!=="number"?Number(resultVal):Number(resultVal.toFixed(parseInt(d)));}};window.Calc=calc;}());function b2stmap(){let stmaps=document.querySelectorAll('.stamp');if(stmaps.length>0){let h_axios=axios if(b2token){h_axios.defaults.headers.common['Authorization']='Bearer '+b2token} for(let i=0;i{if(!b2token){login.show=true return} h_axios.post(b2_rest_url+'ShopCouponReceive','&id='+event.target.getAttribute('data-id')).then((res)=>{if(res.data){Qmsg['success'](b2_global.js_text.global.get_success,{html:true});}}).catch(err=>{Qmsg['success'](err.response.data.message,{html:true});})} stmaps[i].querySelector('.more-coupon-info').onclick=(event)=>{event.target.nextElementSibling.style.display='block'} stmaps[i].querySelector('.close-coupon-info').onclick=(event)=>{event.target.parentNode.parentNode.style.display='none'}}}} b2stmap() function b2IsPhoneAvailable(phonevalue){var phoneReg=/^1[0-9]{10}/;var emailReg=/[a-zA-Z0-9]{1,10}@[a-zA-Z0-9]{1,5}\.[a-zA-Z0-9]{1,5}/;if(phoneReg.test(phonevalue)||emailReg.test(phonevalue)){return true;}else{return false;}} var b2TaxTop=new Vue({el:'.tax-header',data:{showFliter:{hot:false,cat:false}},methods:{show(type){if(type==='hot'){this.showFliter.hot=!this.showFliter.hot this.showFliter.cat=false} if(type==='cat'){this.showFliter.cat=!this.showFliter.cat this.showFliter.hot=false}}}}) function b2scroll(fn){var beforeScrollTop=document.documentElement.scrollTop,fn=fn||function(){};window.bodyScrool=function(){var afterScrollTop=document.documentElement.scrollTop||document.body.scrollTop,delta=afterScrollTop-beforeScrollTop;if(delta===0)return false;fn(delta>0?"down":"up",afterScrollTop);beforeScrollTop=afterScrollTop;} window.addEventListener("scroll",window.bodyScrool,passiveSupported?{passive:true}:false);} function b2HeaderTop(){const banner=document.querySelector('.header-banner-left');const header=document.querySelector('.site');const aside=document.querySelector('.bar-user-info');const socialTop=document.querySelector('.social-top');const nosub=document.querySelector('.social-no-sub');const footer=document.querySelector('.mobile-footer-menu');if(!banner)return let h=96 if(B2ClientWidth<768){h=77} if(socialTop){h=113} if(nosub){h=58} b2scroll(function(direction,top){if(top>h){if(direction==='down'){if(banner.className.indexOf(' hidden')===-1){banner.className+=' hidden'} if(header.className.indexOf(' up')===-1){header.className+=' up'} if(B2ClientWidth>768&&aside){aside.style='padding-top:'+(h-28)+'px'} if(footer&&B2ClientWidth<768&&footer.className.indexOf(' footer-down')===-1){footer.className+=' footer-down'}}else{banner.className=banner.className.replace(' hidden','') header.className=header.className.replace(' up','') if(B2ClientWidth>768&&aside){aside.style='padding-top:'+(h+10)+'px'} if(footer&&B2ClientWidth<768){footer.className=footer.className.replace(' footer-down','')}} if(header.className.indexOf(' action')===-1){header.className+=' action'}}else{header.className=header.className.replace(' action','') banner.className=banner.className.replace(' hidden','') header.className=header.className.replace(' up','') if(aside){aside.style='padding-top:'+(h+10)+'px'}}});} b2HeaderTop() var b2NewsfalshesWidget=new Vue({el:'.widget-newsflashes-box',data:{options:[],list:''},mounted(){if(this.$refs.newsWidget){this.options=JSON.parse(this.$refs.newsWidget.getAttribute('data-json')) this.getList()}},methods:{getList(){this.$https.post(b2_rest_url+'getWidgetNewsflashes',Qs.stringify(this.options)).then(res=>{this.list=res.data this.$refs.gujia.style.display='none'})}}}) Vue.component('weixin-bind',{props:['show','url','msg'],template:b2_global.weixin_bind,methods:{close(){this.$emit('close')}}}) var b2weixinBind=new Vue({el:'#weixin-bind',data:{show:false,url:'',msg:''},methods:{close(){this.show=!this.show}}}) function b2GetQueryVariable(variable) {var query=window.location.search.substring(1);var vars=query.split("&");for(var i=0;i=2){var prefix=encodeURIComponent(parameter)+'=';var pars=urlparts[1].split(/[&;]/g);for(var i=pars.length;i-->0;){if(pars[i].lastIndexOf(prefix,0)!==-1){pars.splice(i,1);}} return urlparts[0]+(pars.length>0?'?'+pars.join('&'):'');} return url;} function updateURLParameter(uri,key,value){if(!value){return uri;} var re=new RegExp("([?&])"+key+"=.*?(&|$)","i");var separator=uri.indexOf('?')!==-1?"&":"?";if(uri.match(re)){return uri.replace(re,'$1'+key+"="+value+'$2');} else{return uri+separator+key+"="+value;}} function validate(evt){var theEvent=evt||window.event;if(theEvent.type==='paste'){key=event.clipboardData.getData('text/plain');}else{var key=theEvent.keyCode||theEvent.which;key=String.fromCharCode(key);} var regex=/[0-9]|\./;if(!regex.test(key)){theEvent.returnValue=false;if(theEvent.preventDefault)theEvent.preventDefault();}} Vue.component('bind-login',{props:['show','type'],template:b2_global.bind_login,data(){return{locked:false,count:60,SMSLocked:false,data:{img_code:'',token:'',username:'',password:'',confirmPassword:'',code:''},eye:false,success:''}},computed:{userData(){return this.$store.state.userData;}},methods:{close(){this.$emit('close')},showCheck(){if(this.type!=='text'&&this.type!=='luo'&&this.data.username&&this.show){return true} return false},sendCode(){recaptcha.show=true recaptcha.type='bind' this.close()},sendSMS(){if(this.SMSLocked==true)return this.SMSLocked=true this.$http.post(b2_rest_url+'sendCode',Qs.stringify(this.data)).then(res=>{if(res.data.token){this.countdown() this.data.smsToken=res.data.token} this.SMSLocked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.SMSLocked=false})},countdown(){if(this.count<=1){this.count=60 return} this.count--;setTimeout(()=>{this.countdown()},1000)},setToken(val){this.data.img_code=val.value this.data.token=val.token this.sendSMS()},submit(){if(this.locked)return this.locked=true this.$http.post(b2_rest_url+'bindUserLogin',Qs.stringify(this.data)).then(res=>{this.success=res.data this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}}}) var b2bindLogin=new Vue({el:'#binding-login',data:{show:false,type:false},methods:{close(){this.show=!this.show},imgCodeAc(val){this.$refs.bindBox.setToken(val)}},watch:{type(val){if(val){this.show=true}}}}) var b2CreditTop=new Vue({el:'.credit-top',data:{settings:[],data:''},mounted(){if(this.$refs.creditTop){this.settings=JSON.parse(this.$refs.creditTop.getAttribute('data-settings'));this.getList()}},methods:{getList(){this.$http.post(b2_rest_url+'getGoldTop',Qs.stringify(this.settings)).then(res=>{this.data=res.data this.$nextTick(()=>{this.$refs.creditTopGujia.style.display='none'})})}}}) function grin(tag,myField){if(document.selection){myField.focus();sel=document.selection.createRange();sel.text=tag;myField.focus();} else if(myField.selectionStart||myField.selectionStart=='0'){var startPos=myField.selectionStart;var endPos=myField.selectionEnd;var cursorPos=startPos;myField.value=myField.value.substring(0,startPos) +tag +myField.value.substring(endPos,myField.value.length);cursorPos+=tag.length;myField.focus();myField.selectionStart=cursorPos;myField.selectionEnd=cursorPos;}else{myField.value+=tag;myField.focus();}} var b2HotCircle=new Vue({el:'.b2-widget-hot-circle',data:{data:'',count:6,type:'hot',paged:{hot:1,join:1,create:1},locked:false},mounted(){if(!this.$refs.hotCircle)return this.count=this.$refs.hotCircle.getAttribute('data-count');this.getCirclesList('hot')},methods:{go(link){window.location.href=link},getCirclesList(type){if(!b2token&&type!=='hot'){login.show=true login.type=1 return} if(this.locked===true)return this.locked=true let data={count:this.count,type:type,paged:this.paged[type]} this.$refs.gujia.style.display='block' this.data='' this.$http.post(b2_rest_url+'getCirclesList',Qs.stringify(data)).then(res=>{this.data=res.data this.$nextTick(()=>{this.$refs.gujia.style.display='none' b2SidebarSticky()}) this.type=type this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}}}) if(!window.scrollTo){window.scrollTo=function(x,y){window.pageXOffset=x;window.pageYOffset=y;};} if(!window.scrollBy){window.scrollBy=function(x,y){window.pageXOffset+=x;window.pageYOffset+=y;};} if(!document.body.scrollTo){Element.prototype.scrollTo=function(x,y){this.scrollLeft=x;this.scrollTop=y;};} if(!document.body.scrollBy){Element.prototype.scrollBy=function(x,y){this.scrollLeft+=x;this.scrollTop+=y;};} var payReturn=new Vue({el:'#pay-return',data:{login:false},mounted(){if(b2token){this.login=true}}}) const searchBox=document.querySelectorAll('.search-module') if(searchBox){for(let index=0;index{this.show=false}},methods:{picked(id,category,link){this.link=link this.category=category this.show=false},pickedKey(key){}}})}} var b2recommendedCircle=new Vue({el:'.b2-widget-recommended-circle',data:{data:'',current:0},mounted(){if(!this.$refs.recommendedGujia)return this.getCircles()},methods:{create(){if(!b2token){login.show=true login.loginType=1}else{window.open(b2_global.home_url+'/create-circle','_blank');}},getCircles(){let ids=JSON.parse(this.$refs.recommendedGujia.getAttribute('data-ids')) if(ids.length==0)return let data={ids:ids} this.$http.post(b2_rest_url+'getCircleDataByCircleIds',Qs.stringify(data)).then(res=>{this.data=res.data this.$nextTick(()=>{this.$refs.recommendedGujia.style.display='none' if(typeof b2CirclePostBox!='undefined'){this.current=parseInt(b2CirclePostBox.$refs.textareaTopic.getAttribute('data-circle'))} b2SidebarSticky()})})},go(even,index){if(typeof b2CirclePostBox!='undefined'){even.stopPropagation() even.preventDefault() let id=this.data[index].id b2CirclePostBox.circle.picked=id this.current=id b2CircleList.pickedCircle('widget',id) b2CirclePostBox.getCurrentUserCircleData() window.history.pushState(id,this.data[index].name,this.data[index].link) document.title=this.data[index].name+' '+b2_global.site_separator+' '+b2_global.site_name b2AsideBar.goTop() return false}}}}) function b2getCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i"+this.getAttribute('data-title')+"";document.body.insertAdjacentHTML('beforeend',tooltip);window.b2thistip[i]=document.querySelector('#b2tooltip'+i) window.b2thistip[i].style.top=(e.pageY+y)+"px" window.b2thistip[i].style.left=(e.pageX+x)+"px" window.b2thistip[i].style.display='block'},passiveSupported?{passive:true}:false);d[i].addEventListener("mouseout",function(e){if(typeof window.b2thistip[i]!='undefined') window.b2thistip[i].remove()},passiveSupported?{passive:true}:false) d[i].addEventListener("mousemove",function(e){window.b2thistip[i].style.top=(e.pageY+y)+"px" window.b2thistip[i].style.left=(e.pageX+x)+"px"},passiveSupported?{passive:true}:false)}} b2tooltip('.b2tooltipbox') function b2cpay(){const paybox=document.querySelectorAll('.custom-pay-box') if(paybox.length>0){for(let i=0;icount){let msg=b2_global.js_text.global.cpay_file_count msg=msg.replace('${count}',count);Qmsg['warning'](msg,{html:true});return;} if(event.target.files.length<=0)return if(!this.files.hasOwnProperty(key)){this.$set(this.files,key,[]) this.$set(this.progress,key,[]) this.$set(this.locked,key,[]) this.$set(this.count,key,0)} if(event.target.files.length>count-this.count[key]){let msg=b2_global.js_text.global.cpay_file_count_less msg=msg.replace('${count}',count-this.count[key]);Qmsg['warning'](msg,{html:true});return;} if(this.locked[key]==true)return let index=parseInt(this.files[key].length) Object.keys(event.target.files).forEach((k)=>{console.log(k) this.$set(this.count,key,this.count[key]+1) this.locked[key]=true k=parseInt(k) const ext=this.fileExists(event.target.files[k].name) this.$set(this.files[key],k+index,{size:this.readablizeBytes(event.target.files[k].size),name:event.target.files[k].name,ext:ext,type:this.fileType(ext)}) this.$set(this.progress[key],k+index,{status:'doing',number:0,msg:''}) let formData=new FormData() formData.append('file',event.target.files[k],event.target.files[k].name) formData.append("post_id",id) formData.append("type",'cpay') let config={onUploadProgress:progressEvent=>{this.$set(this.progress[key][k+index],'number',(progressEvent.loaded/progressEvent.total*100|0))}} this.$http.post(b2_rest_url+'fileUpload',formData,config).then(res=>{console.log(res) if(res.data.status==401){Qmsg['warning'](res.data.message,{html:true});this.$set(this.progress[key][k+index],'status','fail') this.$set(this.progress[key][k+index],'msg',res.data.message)}else{this.$set(this.files[key][k+index],'url',res.data.url) this.$set(this.files[key][k+index],'id',res.data.id) this.$set(this.progress[key][k+index],'status','success')} console.log(this.files) if(this.count[key]>=count){this.locked[key]=true;}else{this.locked[key]=false;} event.target.value=''}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked[key]=false this.$set(this.progress[key][k+index],'status','fail') this.$set(this.progress[key][k+index],'msg',err.response.data.message) event.target.value=''})})}}})}}} b2cpay() function b2fingerprint(){var canvas=document.createElement('canvas');var ctx=canvas.getContext('2d');var txt='i9asdm..$#po((^@KbXrww!~cz';ctx.textBaseline="top";ctx.font="16px 'Arial'";ctx.textBaseline="alphabetic";ctx.rotate(.05);ctx.fillStyle="#f60";ctx.fillRect(125,1,62,20);ctx.fillStyle="#069";ctx.fillText(txt,2,15);ctx.fillStyle="rgba(102, 200, 0, 0.7)";ctx.fillText(txt,4,17);ctx.shadowBlur=10;ctx.shadowColor="blue";ctx.fillRect(-20,10,234,5);var strng=canvas.toDataURL();var hash=0;if(strng.length==0)return;for(i=0;i{b2SidebarSticky()})})},vote(type,id,index){if(!b2token){login.show=true}else{if(this.locked==true)return this.locked=true this.$http.post(b2_rest_url+'postVote','type='+type+'&post_id='+id).then(res=>{this.$set(this.data[index].data.data,'up',parseInt(this.data[index].data.data.up)+parseInt(res.data.up)) this.$set(this.data[index].data.data,'down',parseInt(this.data[index].data.data.down)+parseInt(res.data.down)) if(res.data.up>0){this.$set(this.data[index].data.data,'up_isset',1)}else{this.$set(this.data[index].data.data,'up_isset',0)} if(res.data.down>0){this.$set(this.data[index].data.data,'down_isset',1)}else{this.$set(this.data[index].data.data,'down_isset',0)} this.locked=false}).catch(err=>{Qmsg['warning'](err.response.data.message,{html:true});this.locked=false})}}}}) function b2loadScript(url,id,callback){var script=document.createElement("script") script.type="text/javascript";script.id=id;if(script.readyState){script.onreadystatechange=function(){if(script.readyState=="loaded"||script.readyState=="complete"){script.onreadystatechange=null;callback();}};}else{script.onload=function(){callback();};} script.src=url;document.getElementsByTagName("head")[0].appendChild(script);} function _debounce(fn,delay){var delay=delay||200;var timer;return function(){var th=this;var args=arguments;if(timer){clearTimeout(timer);} timer=setTimeout(function(){timer=null;fn.apply(th,args);},delay);};} function _throttle(fn,interval){var last;var timer;var interval=interval||200;return function(){var th=this;var args=arguments;var now=+new Date();if(last&&now-last3){str=str.slice(0,-1) str+=' '} if(users[i]instanceof Object){str+=''+users[i].name+','}else{str+=users[i]+','}} if(leng>3){return str.slice(0,-1)+' 等人 ';}else{return str.slice(0,-1)+' ';}},getAvatar(users){let avatar=this.avatar;for(let i=0;i