2 lines
1.2 MiB
Vendored
2 lines
1.2 MiB
Vendored
/*! For license information please see file-manager.js.LICENSE.txt */
|
||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=105)}([function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return o})),n.d(t,"ReactiveEffect",(function(){return y})),n.d(t,"customRef",(function(){return We})),n.d(t,"effect",(function(){return w})),n.d(t,"effectScope",(function(){return a})),n.d(t,"getCurrentScope",(function(){return l})),n.d(t,"isProxy",(function(){return je})),n.d(t,"isReactive",(function(){return Se})),n.d(t,"isReadonly",(function(){return Oe})),n.d(t,"isRef",(function(){return ze})),n.d(t,"isShallow",(function(){return Ee})),n.d(t,"markRaw",(function(){return Me})),n.d(t,"onScopeDispose",(function(){return c})),n.d(t,"proxyRefs",(function(){return qe})),n.d(t,"reactive",(function(){return xe})),n.d(t,"readonly",(function(){return ke})),n.d(t,"ref",(function(){return Fe})),n.d(t,"shallowReactive",(function(){return we})),n.d(t,"shallowReadonly",(function(){return _e})),n.d(t,"shallowRef",(function(){return Pe})),n.d(t,"stop",(function(){return k})),n.d(t,"toRaw",(function(){return Te})),n.d(t,"toRef",(function(){return Ke})),n.d(t,"toRefs",(function(){return Ue})),n.d(t,"triggerRef",(function(){return Be})),n.d(t,"unref",(function(){return Ve})),n.d(t,"camelize",(function(){return r.e})),n.d(t,"capitalize",(function(){return r.f})),n.d(t,"normalizeClass",(function(){return r.J})),n.d(t,"normalizeProps",(function(){return r.K})),n.d(t,"normalizeStyle",(function(){return r.L})),n.d(t,"toDisplayString",(function(){return r.N})),n.d(t,"toHandlerKey",(function(){return r.O})),n.d(t,"BaseTransition",(function(){return gn})),n.d(t,"Comment",(function(){return ei})),n.d(t,"Fragment",(function(){return Qr})),n.d(t,"KeepAlive",(function(){return jn})),n.d(t,"Static",(function(){return ti})),n.d(t,"Suspense",(function(){return Xt})),n.d(t,"Teleport",(function(){return Zr})),n.d(t,"Text",(function(){return Jr})),n.d(t,"callWithAsyncErrorHandling",(function(){return et})),n.d(t,"callWithErrorHandling",(function(){return Je})),n.d(t,"cloneVNode",(function(){return ki})),n.d(t,"compatUtils",(function(){return xo})),n.d(t,"computed",(function(){return Ji})),n.d(t,"createBlock",(function(){return di})),n.d(t,"createCommentVNode",(function(){return Si})),n.d(t,"createElementBlock",(function(){return ui})),n.d(t,"createElementVNode",(function(){return vi})),n.d(t,"createHydrationRenderer",(function(){return qr})),n.d(t,"createPropsRestProxy",(function(){return lo})),n.d(t,"createRenderer",(function(){return $r})),n.d(t,"createSlots",(function(){return rr})),n.d(t,"createStaticVNode",(function(){return Ci})),n.d(t,"createTextVNode",(function(){return _i})),n.d(t,"createVNode",(function(){return yi})),n.d(t,"defineAsyncComponent",(function(){return Sn})),n.d(t,"defineComponent",(function(){return _n})),n.d(t,"defineEmits",(function(){return to})),n.d(t,"defineExpose",(function(){return no})),n.d(t,"defineProps",(function(){return eo})),n.d(t,"devtools",(function(){return Ct})),n.d(t,"getCurrentInstance",(function(){return zi})),n.d(t,"getTransitionRawChildren",(function(){return kn})),n.d(t,"guardReactiveProps",(function(){return wi})),n.d(t,"h",(function(){return uo})),n.d(t,"handleError",(function(){return tt})),n.d(t,"initCustomFormatter",(function(){return fo})),n.d(t,"inject",(function(){return rn})),n.d(t,"isMemoSame",(function(){return go})),n.d(t,"isRuntimeOnly",(function(){return Wi})),n.d(t,"isVNode",(function(){return pi})),n.d(t,"mergeDefaults",(function(){return so})),n.d(t,"mergeProps",(function(){return Ti})),n.d(t,"nextTick",(function(){return mt})),n.d(t,"onActivated",(function(){return Mn})),n.d(t,"onBeforeMount",(function(){return In})),n.d(t,"onBeforeUnmount",(function(){return $n})),n.d(t,"onBeforeUpdate",(function(){return Bn})),n.d(t,"onDeactivated",(function(){return Nn})),n.d(t,"onErrorCaptured",(function(){return Gn})),n.d(t,"onMounted",(function(){return Rn})),n.d(t,"onRenderTracked",(function(){return Un})),n.d(t,"onRenderTriggered",(function(){return Wn})),n.d(t,"onServerPrefetch",(function(){return Hn})),n.d(t,"onUnmounted",(function(){return qn})),n.d(t,"onUpdated",(function(){return Vn})),n.d(t,"openBlock",(function(){return ii})),n.d(t,"popScopeId",(function(){return Bt})),n.d(t,"provide",(function(){return nn})),n.d(t,"pushScopeId",(function(){return Rt})),n.d(t,"queuePostFlushCb",(function(){return yt})),n.d(t,"registerRuntimeCompiler",(function(){return Hi})),n.d(t,"renderList",(function(){return nr})),n.d(t,"renderSlot",(function(){return ir})),n.d(t,"resolveComponent",(function(){return Xn})),n.d(t,"resolveDirective",(function(){return Jn})),n.d(t,"resolveDynamicComponent",(function(){return Qn})),n.d(t,"resolveFilter",(function(){return yo})),n.d(t,"resolveTransitionHooks",(function(){return vn})),n.d(t,"setBlockTracking",(function(){return li})),n.d(t,"setDevtoolsHook",(function(){return jt})),n.d(t,"setTransitionHooks",(function(){return wn})),n.d(t,"ssrContextKey",(function(){return po})),n.d(t,"ssrUtils",(function(){return vo})),n.d(t,"toHandlers",(function(){return or})),n.d(t,"transformVNodeArgs",(function(){return fi})),n.d(t,"useAttrs",(function(){return oo})),n.d(t,"useSSRContext",(function(){return ho})),n.d(t,"useSlots",(function(){return io})),n.d(t,"useTransitionState",(function(){return fn})),n.d(t,"version",(function(){return bo})),n.d(t,"warn",(function(){return Ze})),n.d(t,"watch",(function(){return cn})),n.d(t,"watchEffect",(function(){return on})),n.d(t,"watchPostEffect",(function(){return an})),n.d(t,"watchSyncEffect",(function(){return sn})),n.d(t,"withAsyncContext",(function(){return co})),n.d(t,"withCtx",(function(){return $t})),n.d(t,"withDefaults",(function(){return ro})),n.d(t,"withDirectives",(function(){return Kn})),n.d(t,"withMemo",(function(){return mo})),n.d(t,"withScopeId",(function(){return Vt})),n.d(t,"Transition",(function(){return Wo})),n.d(t,"TransitionGroup",(function(){return ca})),n.d(t,"VueElement",(function(){return Vo})),n.d(t,"createApp",(function(){return Va})),n.d(t,"createSSRApp",(function(){return $a})),n.d(t,"defineCustomElement",(function(){return Io})),n.d(t,"defineSSRCustomElement",(function(){return Ro})),n.d(t,"hydrate",(function(){return Ba})),n.d(t,"initDirectivesForSSR",(function(){return Wa})),n.d(t,"render",(function(){return Ra})),n.d(t,"useCssModule",(function(){return $o})),n.d(t,"useCssVars",(function(){return qo})),n.d(t,"vModelCheckbox",(function(){return ba})),n.d(t,"vModelDynamic",(function(){return Ca})),n.d(t,"vModelRadio",(function(){return ya})),n.d(t,"vModelSelect",(function(){return xa})),n.d(t,"vModelText",(function(){return ga})),n.d(t,"vShow",(function(){return Aa})),n.d(t,"withKeys",(function(){return Na})),n.d(t,"withModifiers",(function(){return Ta})),n.d(t,"compile",(function(){return Ua}));var r=n(1);let i;class o{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&i&&(this.parent=i,this.index=(i.scopes||(i.scopes=[])).push(this)-1)}run(e){if(this.active){const t=i;try{return i=this,e()}finally{i=t}}else 0}on(){i=this}off(){i=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function a(e){return new o(e)}function s(e,t=i){t&&t.active&&t.effects.push(e)}function l(){return i}function c(e){i&&i.cleanups.push(e)}const u=e=>{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&m)>0,p=e=>(e.n&m)>0,h=new WeakMap;let f=0,m=1;let g;const b=Symbol(""),v=Symbol("");class y{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,s(this,n)}run(){if(!this.active)return this.fn();let e=g,t=_;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=g,g=this,_=!0,m=1<<++f,f<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=m})(this):x(this),this.fn()}finally{f<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];d(i)&&!p(i)?i.delete(e):t[n++]=i,i.w&=~m,i.n&=~m}t.length=n}})(this),m=1<<--f,g=this.parent,_=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){g===this?this.deferStop=!0:this.active&&(x(this),this.onStop&&this.onStop(),this.active=!1)}}function x(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function w(e,t){e.effect&&(e=e.effect.fn);const n=new y(e);t&&(Object(r.h)(n,t),t.scope&&s(n,t.scope)),t&&t.lazy||n.run();const i=n.run.bind(n);return i.effect=n,i}function k(e){e.effect.stop()}let _=!0;const C=[];function S(){C.push(_),_=!1}function O(){const e=C.pop();_=void 0===e||e}function E(e,t,n){if(_&&g){let t=h.get(e);t||h.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=u());j(r,void 0)}}function j(e,t){let n=!1;f<=30?p(e)||(e.n|=m,n=!d(e)):n=!e.has(g),n&&(e.add(g),g.deps.push(e))}function T(e,t,n,i,o,a){const s=h.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&Object(r.o)(e))s.forEach((e,t)=>{("length"===t||t>=i)&&l.push(e)});else switch(void 0!==n&&l.push(s.get(n)),t){case"add":Object(r.o)(e)?Object(r.t)(n)&&l.push(s.get("length")):(l.push(s.get(b)),Object(r.u)(e)&&l.push(s.get(v)));break;case"delete":Object(r.o)(e)||(l.push(s.get(b)),Object(r.u)(e)&&l.push(s.get(v)));break;case"set":Object(r.u)(e)&&l.push(s.get(b))}if(1===l.length)l[0]&&M(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);M(u(e))}}function M(e,t){const n=Object(r.o)(e)?e:[...e];for(const e of n)e.computed&&N(e,t);for(const e of n)e.computed||N(e,t)}function N(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const A=Object(r.I)("__proto__,__v_isRef,__isVue"),D=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.F)),L=B(),z=B(!1,!0),F=B(!0),P=B(!0,!0),I=R();function R(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Te(this);for(let e=0,t=this.length;e<t;e++)E(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Te)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){S();const n=Te(this)[t].apply(this,e);return O(),n}}),e}function B(e=!1,t=!1){return function(n,i,o){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_isShallow"===i)return t;if("__v_raw"===i&&o===(e?t?ye:ve:t?be:ge).get(n))return n;const a=Object(r.o)(n);if(!e&&a&&Object(r.k)(I,i))return Reflect.get(I,i,o);const s=Reflect.get(n,i,o);return(Object(r.F)(i)?D.has(i):A(i))?s:(e||E(n,0,i),t?s:ze(s)?a&&Object(r.t)(i)?s:s.value:Object(r.w)(s)?e?ke(s):xe(s):s)}}const V=q(),$=q(!0);function q(e=!1){return function(t,n,i,o){let a=t[n];if(Oe(a)&&ze(a)&&!ze(i))return!1;if(!e&&!Oe(i)&&(Ee(i)||(i=Te(i),a=Te(a)),!Object(r.o)(t)&&ze(a)&&!ze(i)))return a.value=i,!0;const s=Object(r.o)(t)&&Object(r.t)(n)?Number(n)<t.length:Object(r.k)(t,n),l=Reflect.set(t,n,i,o);return t===Te(o)&&(s?Object(r.j)(i,a)&&T(t,"set",n,i):T(t,"add",n,i)),l}}const H={get:L,set:V,deleteProperty:function(e,t){const n=Object(r.k)(e,t),i=(e[t],Reflect.deleteProperty(e,t));return i&&n&&T(e,"delete",t,void 0),i},has:function(e,t){const n=Reflect.has(e,t);return Object(r.F)(t)&&D.has(t)||E(e,0,t),n},ownKeys:function(e){return E(e,0,Object(r.o)(e)?"length":b),Reflect.ownKeys(e)}},W={get:F,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},U=Object(r.h)({},H,{get:z,set:$}),G=Object(r.h)({},W,{get:P}),K=e=>e,Y=e=>Reflect.getPrototypeOf(e);function X(e,t,n=!1,r=!1){const i=Te(e=e.__v_raw),o=Te(t);n||(t!==o&&E(i,0,t),E(i,0,o));const{has:a}=Y(i),s=r?K:n?Ae:Ne;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function Z(e,t=!1){const n=this.__v_raw,r=Te(n),i=Te(e);return t||(e!==i&&E(r,0,e),E(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function Q(e,t=!1){return e=e.__v_raw,!t&&E(Te(e),0,b),Reflect.get(e,"size",e)}function J(e){e=Te(e);const t=Te(this);return Y(t).has.call(t,e)||(t.add(e),T(t,"add",e,e)),this}function ee(e,t){t=Te(t);const n=Te(this),{has:i,get:o}=Y(n);let a=i.call(n,e);a||(e=Te(e),a=i.call(n,e));const s=o.call(n,e);return n.set(e,t),a?Object(r.j)(t,s)&&T(n,"set",e,t):T(n,"add",e,t),this}function te(e){const t=Te(this),{has:n,get:r}=Y(t);let i=n.call(t,e);i||(e=Te(e),i=n.call(t,e));r&&r.call(t,e);const o=t.delete(e);return i&&T(t,"delete",e,void 0),o}function ne(){const e=Te(this),t=0!==e.size,n=e.clear();return t&&T(e,"clear",void 0,void 0),n}function re(e,t){return function(n,r){const i=this,o=i.__v_raw,a=Te(o),s=t?K:e?Ae:Ne;return!e&&E(a,0,b),o.forEach((e,t)=>n.call(r,s(e),s(t),i))}}function ie(e,t,n){return function(...i){const o=this.__v_raw,a=Te(o),s=Object(r.u)(a),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=o[e](...i),d=n?K:t?Ae:Ne;return!t&&E(a,0,c?v:b),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&this}}function ae(){const e={get(e){return X(this,e)},get size(){return Q(this)},has:Z,add:J,set:ee,delete:te,clear:ne,forEach:re(!1,!1)},t={get(e){return X(this,e,!1,!0)},get size(){return Q(this)},has:Z,add:J,set:ee,delete:te,clear:ne,forEach:re(!1,!0)},n={get(e){return X(this,e,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:re(!0,!1)},r={get(e){return X(this,e,!0,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:re(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ie(i,!1,!1),n[i]=ie(i,!0,!1),t[i]=ie(i,!1,!0),r[i]=ie(i,!0,!0)}),[e,n,t,r]}const[se,le,ce,ue]=ae();function de(e,t){const n=t?e?ue:ce:e?le:se;return(t,i,o)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(Object(r.k)(n,i)&&i in t?n:t,i,o)}const pe={get:de(!1,!1)},he={get:de(!1,!0)},fe={get:de(!0,!1)},me={get:de(!0,!0)};const ge=new WeakMap,be=new WeakMap,ve=new WeakMap,ye=new WeakMap;function xe(e){return Oe(e)?e:Ce(e,!1,H,pe,ge)}function we(e){return Ce(e,!1,U,he,be)}function ke(e){return Ce(e,!0,W,fe,ve)}function _e(e){return Ce(e,!0,G,me,ye)}function Ce(e,t,n,i,o){if(!Object(r.w)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(r.Q)(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?i:n);return o.set(e,c),c}function Se(e){return Oe(e)?Se(e.__v_raw):!(!e||!e.__v_isReactive)}function Oe(e){return!(!e||!e.__v_isReadonly)}function Ee(e){return!(!e||!e.__v_isShallow)}function je(e){return Se(e)||Oe(e)}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Me(e){return Object(r.g)(e,"__v_skip",!0),e}const Ne=e=>Object(r.w)(e)?xe(e):e,Ae=e=>Object(r.w)(e)?ke(e):e;function De(e){_&&g&&j((e=Te(e)).dep||(e.dep=u()))}function Le(e,t){(e=Te(e)).dep&&M(e.dep)}function ze(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return Ie(e,!1)}function Pe(e){return Ie(e,!0)}function Ie(e,t){return ze(e)?e:new Re(e,t)}class Re{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Te(e),this._value=t?e:Ne(e)}get value(){return De(this),this._value}set value(e){e=this.__v_isShallow?e:Te(e),Object(r.j)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ne(e),Le(this))}}function Be(e){Le(e)}function Ve(e){return ze(e)?e.value:e}const $e={get:(e,t,n)=>Ve(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ze(i)&&!ze(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function qe(e){return Se(e)?e:new Proxy(e,$e)}class He{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>De(this),()=>Le(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function We(e){return new He(e)}function Ue(e){const t=Object(r.o)(e)?new Array(e.length):{};for(const n in e)t[n]=Ke(e,n);return t}class Ge{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Ke(e,t,n){const r=e[t];return ze(r)?r:new Ge(e,t,n)}class Ye{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new y(e,()=>{this._dirty||(this._dirty=!0,Le(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Te(this);return De(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}const Xe=[];function Ze(e,...t){S();const n=Xe.length?Xe[Xe.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=function(){let e=Xe[Xe.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)Je(r,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:e})=>`at <${Zi(n,e.type)}>`).join("\n"),i]);else{const n=["[Vue warn]: "+e,...t];i.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,i=" at <"+Zi(e.component,e.type,r),o=">"+n;return e.props?[i,...Qe(e.props),o]:[i+o]}(e))}),t}(i)),console.warn(...n)}O()}function Qe(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(r.E)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:ze(n)?(n=e(t,Te(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(r.q)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Te(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function Je(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){tt(e,t,n)}return i}function et(e,t,n,i){if(Object(r.q)(e)){const o=Je(e,t,n,i);return o&&Object(r.z)(o)&&o.catch(e=>{tt(e,t,n)}),o}const o=[];for(let r=0;r<e.length;r++)o.push(et(e[r],t,n,i));return o}function tt(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void Je(a,null,10,[e,i,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let nt=!1,rt=!1;const it=[];let ot=0;const at=[];let st=null,lt=0;const ct=[];let ut=null,dt=0;const pt=Promise.resolve();let ht=null,ft=null;function mt(e){const t=ht||pt;return e?t.then(this?e.bind(this):e):t}function gt(e){it.length&&it.includes(e,nt&&e.allowRecurse?ot+1:ot)||e===ft||(null==e.id?it.push(e):it.splice(function(e){let t=ot+1,n=it.length;for(;t<n;){const r=t+n>>>1;kt(it[r])<e?t=r+1:n=r}return t}(e.id),0,e),bt())}function bt(){nt||rt||(rt=!0,ht=pt.then(_t))}function vt(e,t,n,i){Object(r.o)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?i+1:i)||n.push(e),bt()}function yt(e){vt(e,ut,ct,dt)}function xt(e,t=null){if(at.length){for(ft=t,st=[...new Set(at)],at.length=0,lt=0;lt<st.length;lt++)st[lt]();st=null,lt=0,ft=null,xt(e,t)}}function wt(e){if(xt(),ct.length){const e=[...new Set(ct)];if(ct.length=0,ut)return void ut.push(...e);for(ut=e,ut.sort((e,t)=>kt(e)-kt(t)),dt=0;dt<ut.length;dt++)ut[dt]();ut=null,dt=0}}const kt=e=>null==e.id?1/0:e.id;function _t(e){rt=!1,nt=!0,xt(e),it.sort((e,t)=>kt(e)-kt(t));r.d;try{for(ot=0;ot<it.length;ot++){const e=it[ot];e&&!1!==e.active&&Je(e,null,14)}}finally{ot=0,it.length=0,wt(),nt=!1,ht=null,(it.length||at.length||ct.length)&&_t(e)}}new Set;new Map;let Ct,St=[],Ot=!1;function Et(e,...t){Ct?Ct.emit(e,...t):Ot||St.push({event:e,args:t})}function jt(e,t){var n,r;if(Ct=e,Ct)Ct.enabled=!0,St.forEach(({event:e,args:t})=>Ct.emit(e,...t)),St=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{jt(e,t)}),setTimeout(()=>{Ct||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ot=!0,St=[])},3e3)}else Ot=!0,St=[]}const Tt=At("component:added"),Mt=At("component:updated"),Nt=At("component:removed");function At(e){return t=>{Et(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Dt(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||r.b;let o=n;const a=t.startsWith("update:"),s=a&&t.slice(7);if(s&&s in i){const e=("modelValue"===s?"model":s)+"Modifiers",{number:t,trim:a}=i[e]||r.b;a&&(o=n.map(e=>e.trim())),t&&(o=n.map(r.P))}let l;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Et("component:emit",e.appContext.app,e,t,n)}(e,t,o);let c=i[l=Object(r.O)(t)]||i[l=Object(r.O)(Object(r.e)(t))];!c&&a&&(c=i[l=Object(r.O)(Object(r.l)(t))]),c&&et(c,e,6,o);const u=i[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,et(u,e,6,o)}}function Lt(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(void 0!==o)return o;const a=e.emits;let s={},l=!1;if(__VUE_OPTIONS_API__&&!Object(r.q)(e)){const i=e=>{const n=Lt(e,t,!0);n&&(l=!0,Object(r.h)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return a||l?(Object(r.o)(a)?a.forEach(e=>s[e]=null):Object(r.h)(s,a),i.set(e,s),s):(i.set(e,null),null)}function zt(e,t){return!(!e||!Object(r.x)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(r.k)(e,t[0].toLowerCase()+t.slice(1))||Object(r.k)(e,Object(r.l)(t))||Object(r.k)(e,t))}let Ft=null,Pt=null;function It(e){const t=Ft;return Ft=e,Pt=e&&e.type.__scopeId||null,t}function Rt(e){Pt=e}function Bt(){Pt=null}const Vt=e=>$t;function $t(e,t=Ft,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&li(-1);const i=It(t),o=e(...n);return It(i),r._d&&li(1),__VUE_PROD_DEVTOOLS__&&Mt(t),o};return r._n=!0,r._c=!0,r._d=!0,r}function qt(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:a,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e;let b,v;const y=It(e);try{if(4&n.shapeFlag){const e=o||i;b=Oi(d.call(e,e,p,a,f,h,m)),v=c}else{const e=t;0,b=Oi(e.length>1?e(a,{attrs:c,slots:l,emit:u}):e(a,null)),v=t.props?c:Wt(c)}}catch(t){ni.length=0,tt(t,e,1),b=yi(ei)}let x=b;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=x;e.length&&7&t&&(s&&e.some(r.v)&&(v=Ut(v,s)),x=ki(x,v))}return n.dirs&&(x=ki(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),b=x,It(y),b}function Ht(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!pi(r))return;if(r.type!==ei||"v-if"===r.children){if(t)return;t=r}}return t}const Wt=e=>{let t;for(const n in e)("class"===n||"style"===n||Object(r.x)(n))&&((t||(t={}))[n]=e[n]);return t},Ut=(e,t)=>{const n={};for(const i in e)Object(r.v)(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function Gt(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!zt(n,o))return!0}return!1}function Kt({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Yt=e=>e.__isSuspense,Xt={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,c){null==e?function(e,t,n,r,i,o,a,s,l){const{p:c,o:{createElement:u}}=l,d=u("div"),p=e.suspense=Qt(e,i,r,t,d,n,o,a,s,l);c(null,p.pendingBranch=e.ssContent,d,null,r,p,o,a),p.deps>0?(Zt(e,"onPending"),Zt(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,a),tn(p,e.ssFallback)):p.resolve()}(t,n,r,i,o,a,s,l,c):function(e,t,n,r,i,o,a,s,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:b}=d;if(m)d.pendingBranch=p,hi(p,m)?(l(m,p,d.hiddenContainer,null,i,d,o,a,s),d.deps<=0?d.resolve():g&&(l(f,h,n,r,i,null,o,a,s),tn(d,h))):(d.pendingId++,b?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,i,d,o,a,s),d.deps<=0?d.resolve():(l(f,h,n,r,i,null,o,a,s),tn(d,h))):f&&hi(p,f)?(l(f,p,n,r,i,d,o,a,s),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,i,d,o,a,s),d.deps<=0&&d.resolve()));else if(f&&hi(p,f))l(f,p,n,r,i,d,o,a,s),tn(d,p);else if(Zt(t,"onPending"),d.pendingBranch=p,d.pendingId++,l(null,p,d.hiddenContainer,null,i,d,o,a,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(h)},e):0===e&&d.fallback(h)}}(e,t,n,r,i,a,s,l,c)},hydrate:function(e,t,n,r,i,o,a,s,l){const c=t.suspense=Qt(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,a);0===c.deps&&c.resolve();return u},create:Qt,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Jt(r?n.default:n),e.ssFallback=r?Jt(n.fallback):yi(ei)}};function Zt(e,t){const n=e.props&&e.props[t];Object(r.q)(n)&&n()}function Qt(e,t,n,i,o,a,s,l,c,u,d=!1){const{p:p,m:h,um:f,n:m,o:{parentNode:g,remove:b}}=u,v=Object(r.P)(e.props&&e.props.timeout),y={vnode:e,parent:t,parentComponent:n,isSVG:s,container:i,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:i,effects:o,parentComponent:a,container:s}=y;if(y.isHydrating)y.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{i===y.pendingId&&h(r,s,t,0)});let{anchor:t}=y;n&&(t=m(n),f(n,a,y,!0)),e||h(r,s,t,0)}tn(y,r),y.pendingBranch=null,y.isInFallback=!1;let l=y.parent,c=!1;for(;l;){if(l.pendingBranch){l.effects.push(...o),c=!0;break}l=l.parent}c||yt(o),y.effects=[],Zt(t,"onResolve")},fallback(e){if(!y.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,isSVG:o}=y;Zt(t,"onFallback");const a=m(n),s=()=>{y.isInFallback&&(p(null,e,i,a,r,null,o,l,c),tn(y,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=s),y.isInFallback=!0,f(n,r,null,!0),u||s()},move(e,t,n){y.activeBranch&&h(y.activeBranch,e,t,n),y.container=e},next:()=>y.activeBranch&&m(y.activeBranch),registerDep(e,t){const n=!!y.pendingBranch;n&&y.deps++;const r=e.vnode.el;e.asyncDep.catch(t=>{tt(t,e,0)}).then(i=>{if(e.isUnmounted||y.isUnmounted||y.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:o}=e;qi(e,i,!1),r&&(o.el=r);const a=!r&&e.subTree.el;t(e,o,g(r||e.subTree.el),r?null:m(e.subTree),y,s,c),a&&b(a),Kt(e,o.el),n&&0==--y.deps&&y.resolve()})},unmount(e,t){y.isUnmounted=!0,y.activeBranch&&f(y.activeBranch,n,e,t),y.pendingBranch&&f(y.pendingBranch,n,e,t)}};return y}function Jt(e){let t;if(Object(r.q)(e)){const n=si&&e._c;n&&(e._d=!1,ii()),e=e(),n&&(e._d=!0,t=ri,oi())}if(Object(r.o)(e)){const t=Ht(e);0,e=t}return e=Oi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function en(e,t){t&&t.pendingBranch?Object(r.o)(e)?t.effects.push(...e):t.effects.push(e):yt(e)}function tn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Kt(r,i))}function nn(e,t){if(Li){let n=Li.provides;const r=Li.parent&&Li.parent.provides;r===n&&(n=Li.provides=Object.create(r)),n[e]=t}else 0}function rn(e,t,n=!1){const i=Li||Ft;if(i){const o=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Object(r.q)(t)?t.call(i.proxy):t}else 0}function on(e,t){return un(e,null,t)}function an(e,t){return un(e,null,{flush:"post"})}function sn(e,t){return un(e,null,{flush:"sync"})}const ln={};function cn(e,t,n){return un(e,t,n)}function un(e,t,{immediate:n,deep:i,flush:o,onTrack:a,onTrigger:s}=r.b){const l=Li;let c,u,d=!1,p=!1;if(ze(e)?(c=()=>e.value,d=Ee(e)):Se(e)?(c=()=>e,i=!0):Object(r.o)(e)?(p=!0,d=e.some(e=>Se(e)||Ee(e)),c=()=>e.map(e=>ze(e)?e.value:Se(e)?hn(e):Object(r.q)(e)?Je(e,l,2):void 0)):c=Object(r.q)(e)?t?()=>Je(e,l,2):()=>{if(!l||!l.isUnmounted)return u&&u(),et(e,l,3,[h])}:r.d,t&&i){const e=c;c=()=>hn(e())}let h=e=>{u=b.onStop=()=>{Je(e,l,4)}};if(Vi)return h=r.d,t?n&&et(t,l,3,[c(),p?[]:void 0,h]):c(),r.d;let f=p?[]:ln;const m=()=>{if(b.active)if(t){const e=b.run();(i||d||(p?e.some((e,t)=>Object(r.j)(e,f[t])):Object(r.j)(e,f)))&&(u&&u(),et(t,l,3,[e,f===ln?void 0:f,h]),f=e)}else b.run()};let g;m.allowRecurse=!!t,g="sync"===o?m:"post"===o?()=>Vr(m,l&&l.suspense):()=>function(e){vt(e,st,at,lt)}(m);const b=new y(c,g);return t?n?m():f=b.run():"post"===o?Vr(b.run.bind(b),l&&l.suspense):b.run(),()=>{b.stop(),l&&l.scope&&Object(r.M)(l.scope.effects,b)}}function dn(e,t,n){const i=this.proxy,o=Object(r.E)(e)?e.includes(".")?pn(i,e):()=>i[e]:e.bind(i,i);let a;Object(r.q)(t)?a=t:(a=t.handler,n=t);const s=Li;Fi(this);const l=un(o,a.bind(i),n);return s?Fi(s):Pi(),l}function pn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function hn(e,t){if(!Object(r.w)(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),ze(e))hn(e.value,t);else if(Object(r.o)(e))for(let n=0;n<e.length;n++)hn(e[n],t);else if(Object(r.C)(e)||Object(r.u)(e))e.forEach(e=>{hn(e,t)});else if(Object(r.y)(e))for(const n in e)hn(e[n],t);return e}function fn(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Rn(()=>{e.isMounted=!0}),$n(()=>{e.isUnmounting=!0}),e}const mn=[Function,Array],gn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mn,onEnter:mn,onAfterEnter:mn,onEnterCancelled:mn,onBeforeLeave:mn,onLeave:mn,onAfterLeave:mn,onLeaveCancelled:mn,onBeforeAppear:mn,onAppear:mn,onAfterAppear:mn,onAppearCancelled:mn},setup(e,{slots:t}){const n=zi(),r=fn();let i;return()=>{const o=t.default&&kn(t.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){let e=!1;for(const t of o)if(t.type!==ei){0,a=t,e=!0;break}}const s=Te(e),{mode:l}=s;if(r.isLeaving)return yn(a);const c=xn(a);if(!c)return yn(a);const u=vn(c,s,r,n);wn(c,u);const d=n.subTree,p=d&&xn(d);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(p&&p.type!==ei&&(!hi(c,p)||h)){const e=vn(p,s,r,n);if(wn(p,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},yn(a);"in-out"===l&&c.type!==ei&&(e.delayLeave=(e,t,n)=>{bn(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function bn(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function vn(e,t,n,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:v,onAppearCancelled:y}=t,x=String(e.key),w=bn(n,e),k=(e,t)=>{e&&et(e,i,9,t)},_=(e,t)=>{const n=t[1];k(e,t),Object(r.o)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},C={mode:a,persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(!o)return;r=g||l}t._leaveCb&&t._leaveCb(!0);const i=w[x];i&&hi(e,i)&&i.el._leaveCb&&i.el._leaveCb(),k(r,[t])},enter(e){let t=c,r=u,i=d;if(!n.isMounted){if(!o)return;t=b||c,r=v||u,i=y||d}let a=!1;const s=e._enterCb=t=>{a||(a=!0,k(t?i:r,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?_(t,[e,s]):s()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();k(p,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,r(),k(n?m:f,[t]),t._leaveCb=void 0,w[i]===e&&delete w[i])};w[i]=e,h?_(h,[t,a]):a()},clone:e=>vn(e,t,n,i)};return C}function yn(e){if(En(e))return(e=ki(e)).children=null,e}function xn(e){return En(e)?e.children?e.children[0]:void 0:e}function wn(e,t){6&e.shapeFlag&&e.component?wn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function kn(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===Qr?(128&a.patchFlag&&i++,r=r.concat(kn(a.children,t,s))):(t||a.type!==ei)&&r.push(null!=s?ki(a,{key:s}):a)}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function _n(e){return Object(r.q)(e)?{setup:e,name:e.name}:e}const Cn=e=>!!e.type.__asyncLoader;function Sn(e){Object(r.q)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:o=200,timeout:a,suspensible:s=!0,onError:l}=e;let c,u=null,d=0;const p=()=>{let e;return u||(e=u=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((d++,u=null,p())),()=>n(e),d+1)});throw e}).then(t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t)))};return _n({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return c},setup(){const e=Li;if(c)return()=>On(c,e);const t=t=>{u=null,tt(t,e,13,!i)};if(s&&e.suspense||Vi)return p().then(t=>()=>On(t,e)).catch(e=>(t(e),()=>i?yi(i,{error:e}):null));const r=Fe(!1),l=Fe(),d=Fe(!!o);return o&&setTimeout(()=>{d.value=!1},o),null!=a&&setTimeout(()=>{if(!r.value&&!l.value){const e=new Error(`Async component timed out after ${a}ms.`);t(e),l.value=e}},a),p().then(()=>{r.value=!0,e.parent&&En(e.parent.vnode)&>(e.parent.update)}).catch(e=>{t(e),l.value=e}),()=>r.value&&c?On(c,e):l.value&&i?yi(i,{error:l.value}):n&&!d.value?yi(n):void 0}})}function On(e,{vnode:{ref:t,props:n,children:r,shapeFlag:i},parent:o}){const a=yi(e,n,r);return a.ref=t,a}const En=e=>e.type.__isKeepAlive,jn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=zi(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,a=new Set;let s=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=o);const l=n.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:p}}}=i,h=p("div");function f(e){Ln(e),d(e,n,l,!0)}function m(e){o.forEach((t,n)=>{const r=Xi(t.type);!r||e&&e(r)||g(n)})}function g(e){const t=o.get(e);s&&t.type===s.type?s&&Ln(s):f(t),o.delete(e),a.delete(e)}i.activate=(e,t,n,i,o)=>{const a=e.component;u(e,t,n,0,l),c(a.vnode,e,t,n,a,l,i,e.slotScopeIds,o),Vr(()=>{a.isDeactivated=!1,a.a&&Object(r.n)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&Mi(t,a.parent,e)},l),__VUE_PROD_DEVTOOLS__&&Tt(a)},i.deactivate=e=>{const t=e.component;u(e,h,null,1,l),Vr(()=>{t.da&&Object(r.n)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Mi(n,t.parent,e),t.isDeactivated=!0},l),__VUE_PROD_DEVTOOLS__&&Tt(t)},cn(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Tn(e,t)),t&&m(e=>!Tn(t,e))},{flush:"post",deep:!0});let b=null;const v=()=>{null!=b&&o.set(b,zn(n.subTree))};return Rn(v),Vn(v),$n(()=>{o.forEach(e=>{const{subTree:t,suspense:r}=n,i=zn(t);if(e.type!==i.type)f(e);else{Ln(i);const e=i.component.da;e&&Vr(e,r)}})}),()=>{if(b=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!(pi(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;let i=zn(r);const l=i.type,c=Xi(Cn(i)?i.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!c||!Tn(u,c))||d&&c&&Tn(d,c))return s=i,r;const h=null==i.key?l:i.key,f=o.get(h);return i.el&&(i=ki(i),128&r.shapeFlag&&(r.ssContent=i)),b=h,f?(i.el=f.el,i.component=f.component,i.transition&&wn(i,i.transition),i.shapeFlag|=512,a.delete(h),a.add(h)):(a.add(h),p&&a.size>parseInt(p,10)&&g(a.values().next().value)),i.shapeFlag|=256,s=i,Yt(r.type)?r:i}}};function Tn(e,t){return Object(r.o)(e)?e.some(e=>Tn(e,t)):Object(r.E)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Mn(e,t){An(e,"a",t)}function Nn(e,t){An(e,"da",t)}function An(e,t,n=Li){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Fn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)En(e.parent.vnode)&&Dn(r,t,n,e),e=e.parent}}function Dn(e,t,n,i){const o=Fn(t,e,i,!0);qn(()=>{Object(r.M)(i[t],o)},n)}function Ln(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function zn(e){return 128&e.shapeFlag?e.ssContent:e}function Fn(e,t,n=Li,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;S(),Fi(n);const i=et(t,n,e,r);return Pi(),O(),i});return r?i.unshift(o):i.push(o),o}}const Pn=e=>(t,n=Li)=>(!Vi||"sp"===e)&&Fn(e,t,n),In=Pn("bm"),Rn=Pn("m"),Bn=Pn("bu"),Vn=Pn("u"),$n=Pn("bum"),qn=Pn("um"),Hn=Pn("sp"),Wn=Pn("rtg"),Un=Pn("rtc");function Gn(e,t=Li){Fn("ec",e,t)}function Kn(e,t){const n=Ft;if(null===n)return e;const i=Ki(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,a,s,l=r.b]=t[e];Object(r.q)(n)&&(n={mounted:n,updated:n}),n.deep&&hn(a),o.push({dir:n,instance:i,value:a,oldValue:void 0,arg:s,modifiers:l})}return e}function Yn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(S(),et(l,n,8,[e.el,s,e,t]),O())}}function Xn(e,t){return er("components",e,!0,t)||e}const Zn=Symbol();function Qn(e){return Object(r.E)(e)?er("components",e,!1)||e:e||Zn}function Jn(e){return er("directives",e)}function er(e,t,n=!0,i=!1){const o=Ft||Li;if(o){const n=o.type;if("components"===e){const e=Xi(n);if(e&&(e===t||e===Object(r.e)(t)||e===Object(r.f)(Object(r.e)(t))))return n}const a=tr(o[e]||n[e],t)||tr(o.appContext[e],t);return!a&&i?n:a}}function tr(e,t){return e&&(e[t]||e[Object(r.e)(t)]||e[Object(r.f)(Object(r.e)(t))])}function nr(e,t,n,i){let o;const a=n&&n[i];if(Object(r.o)(e)||Object(r.E)(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,a&&a[n])}else if("number"==typeof e){0,o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,a&&a[n])}else if(Object(r.w)(e))if(e[Symbol.iterator])o=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];o[r]=t(e[i],i,r,a&&a[r])}}else o=[];return n&&(n[i]=o),o}function rr(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(Object(r.o)(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.fn)}return e}function ir(e,t,n={},r,i){if(Ft.isCE||Ft.parent&&Cn(Ft.parent)&&Ft.parent.isCE)return yi("slot","default"===t?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),ii();const a=o&&function e(t){return t.some(t=>!pi(t)||t.type!==ei&&!(t.type===Qr&&!e(t.children)))?t:null}(o(n)),s=di(Qr,{key:n.key||"_"+t},a||(r?r():[]),a&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function or(e){const t={};for(const n in e)t[Object(r.O)(n)]=e[n];return t}const ar=e=>e?Ii(e)?Ki(e)||e.proxy:ar(e.parent):null,sr=Object(r.h)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ar(e.parent),$root:e=>ar(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?fr(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>gt(e.update)),$nextTick:e=>e.n||(e.n=mt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?dn.bind(e):r.d}),lr={get({_:e},t){const{ctx:n,setupState:i,data:o,props:a,accessCache:s,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return a[t]}else{if(i!==r.b&&Object(r.k)(i,t))return s[t]=1,i[t];if(o!==r.b&&Object(r.k)(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&Object(r.k)(u,t))return s[t]=3,a[t];if(n!==r.b&&Object(r.k)(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!ur||(s[t]=0)}}const d=sr[t];let p,h;return d?("$attrs"===t&&E(e,0,t),d(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==r.b&&Object(r.k)(n,t)?(s[t]=4,n[t]):(h=c.config.globalProperties,Object(r.k)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;return o!==r.b&&Object(r.k)(o,t)?(o[t]=n,!0):i!==r.b&&Object(r.k)(i,t)?(i[t]=n,!0):!Object(r.k)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:a}},s){let l;return!!n[s]||e!==r.b&&Object(r.k)(e,s)||t!==r.b&&Object(r.k)(t,s)||(l=a[0])&&Object(r.k)(l,s)||Object(r.k)(i,s)||Object(r.k)(sr,s)||Object(r.k)(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(r.k)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const cr=Object(r.h)({},lr,{get(e,t){if(t!==Symbol.unscopables)return lr.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(r.r)(t)});let ur=!0;function dr(e){const t=fr(e),n=e.proxy,i=e.ctx;ur=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:c,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:f,updated:m,activated:g,deactivated:b,beforeDestroy:v,beforeUnmount:y,destroyed:x,unmounted:w,render:k,renderTracked:_,renderTriggered:C,errorCaptured:S,serverPrefetch:O,expose:E,inheritAttrs:j,components:T,directives:M,filters:N}=t;if(u&&function(e,t,n=r.d,i=!1){Object(r.o)(e)&&(e=vr(e));for(const n in e){const o=e[n];let a;a=Object(r.w)(o)?"default"in o?rn(o.from||n,o.default,!0):rn(o.from||n):rn(o),ze(a)&&i?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[n]=a}}(u,i,null,e.appContext.config.unwrapInjectedRef),s)for(const e in s){const t=s[e];Object(r.q)(t)&&(i[e]=t.bind(n))}if(o){0;const t=o.call(n,n);0,Object(r.w)(t)&&(e.data=xe(t))}if(ur=!0,a)for(const e in a){const t=a[e],o=Object(r.q)(t)?t.bind(n,n):Object(r.q)(t.get)?t.get.bind(n,n):r.d;0;const s=!Object(r.q)(t)&&Object(r.q)(t.set)?t.set.bind(n):r.d,l=Ji({get:o,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(l)for(const e in l)hr(l[e],i,n,e);if(c){const e=Object(r.q)(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{nn(t,e[t])})}function A(e,t){Object(r.o)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&pr(d,e,"c"),A(In,p),A(Rn,h),A(Bn,f),A(Vn,m),A(Mn,g),A(Nn,b),A(Gn,S),A(Un,_),A(Wn,C),A($n,y),A(qn,w),A(Hn,O),Object(r.o)(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});k&&e.render===r.d&&(e.render=k),null!=j&&(e.inheritAttrs=j),T&&(e.components=T),M&&(e.directives=M)}function pr(e,t,n){et(Object(r.o)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function hr(e,t,n,i){const o=i.includes(".")?pn(n,i):()=>n[i];if(Object(r.E)(e)){const n=t[e];Object(r.q)(n)&&cn(o,n)}else if(Object(r.q)(e))cn(o,e.bind(n));else if(Object(r.w)(e))if(Object(r.o)(e))e.forEach(e=>hr(e,t,n,i));else{const i=Object(r.q)(e.handler)?e.handler.bind(n):t[e.handler];Object(r.q)(i)&&cn(o,i,e)}else 0}function fr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:i.length||n||r?(l={},i.length&&i.forEach(e=>mr(l,e,a,!0)),mr(l,t,a)):l=t,o.set(t,l),l}function mr(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&mr(e,o,n,!0),i&&i.forEach(t=>mr(e,t,n,!0));for(const i in t)if(r&&"expose"===i);else{const r=gr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const gr={data:br,props:xr,emits:xr,methods:xr,computed:xr,beforeCreate:yr,created:yr,beforeMount:yr,mounted:yr,beforeUpdate:yr,updated:yr,beforeDestroy:yr,beforeUnmount:yr,destroyed:yr,unmounted:yr,activated:yr,deactivated:yr,errorCaptured:yr,serverPrefetch:yr,components:xr,directives:xr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(r.h)(Object.create(null),e);for(const r in t)n[r]=yr(e[r],t[r]);return n},provide:br,inject:function(e,t){return xr(vr(e),vr(t))}};function br(e,t){return t?e?function(){return Object(r.h)(Object(r.q)(e)?e.call(this,this):e,Object(r.q)(t)?t.call(this,this):t)}:t:e}function vr(e){if(Object(r.o)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function yr(e,t){return e?[...new Set([].concat(e,t))]:t}function xr(e,t){return e?Object(r.h)(Object(r.h)(Object.create(null),e),t):t}function wr(e,t,n,i){const[o,a]=e.propsOptions;let s,l=!1;if(t)for(let c in t){if(Object(r.A)(c))continue;const u=t[c];let d;o&&Object(r.k)(o,d=Object(r.e)(c))?a&&a.includes(d)?(s||(s={}))[d]=u:n[d]=u:zt(e.emitsOptions,c)||c in i&&u===i[c]||(i[c]=u,l=!0)}if(a){const t=Te(n),i=s||r.b;for(let s=0;s<a.length;s++){const l=a[s];n[l]=kr(o,t,l,i[l],e,!Object(r.k)(i,l))}}return l}function kr(e,t,n,i,o,a){const s=e[n];if(null!=s){const e=Object(r.k)(s,"default");if(e&&void 0===i){const e=s.default;if(s.type!==Function&&Object(r.q)(e)){const{propsDefaults:r}=o;n in r?i=r[n]:(Fi(o),i=r[n]=e.call(null,t),Pi())}else i=e}s[0]&&(a&&!e?i=!1:!s[1]||""!==i&&i!==Object(r.l)(n)||(i=!0))}return i}function _r(e,t,n=!1){const i=t.propsCache,o=i.get(e);if(o)return o;const a=e.props,s={},l=[];let c=!1;if(__VUE_OPTIONS_API__&&!Object(r.q)(e)){const i=e=>{c=!0;const[n,i]=_r(e,t,!0);Object(r.h)(s,n),i&&l.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!a&&!c)return i.set(e,r.a),r.a;if(Object(r.o)(a))for(let e=0;e<a.length;e++){0;const t=Object(r.e)(a[e]);Cr(t)&&(s[t]=r.b)}else if(a){0;for(const e in a){const t=Object(r.e)(e);if(Cr(t)){const n=a[e],i=s[t]=Object(r.o)(n)||Object(r.q)(n)?{type:n}:n;if(i){const e=Er(Boolean,i.type),n=Er(String,i.type);i[0]=e>-1,i[1]=n<0||e<n,(e>-1||Object(r.k)(i,"default"))&&l.push(t)}}}}const u=[s,l];return i.set(e,u),u}function Cr(e){return"$"!==e[0]}function Sr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Or(e,t){return Sr(e)===Sr(t)}function Er(e,t){return Object(r.o)(t)?t.findIndex(t=>Or(t,e)):Object(r.q)(t)&&Or(t,e)?0:-1}const jr=e=>"_"===e[0]||"$stable"===e,Tr=e=>Object(r.o)(e)?e.map(Oi):[Oi(e)],Mr=(e,t,n)=>{if(t._n)return t;const r=$t((...e)=>Tr(t(...e)),n);return r._c=!1,r},Nr=(e,t,n)=>{const i=e._ctx;for(const n in e){if(jr(n))continue;const o=e[n];if(Object(r.q)(o))t[n]=Mr(0,o,i);else if(null!=o){0;const e=Tr(o);t[n]=()=>e}}},Ar=(e,t)=>{const n=Tr(t);e.slots.default=()=>n};function Dr(){return{app:null,config:{isNativeTag:r.c,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Lr=0;function zr(e,t){return function(n,i=null){Object(r.q)(n)||(n=Object.assign({},n)),null==i||Object(r.w)(i)||(i=null);const o=Dr(),a=new Set;let s=!1;const l=o.app={_uid:Lr++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:bo,get config(){return o.config},set config(e){0},use:(e,...t)=>(a.has(e)||(e&&Object(r.q)(e.install)?(a.add(e),e.install(l,...t)):Object(r.q)(e)&&(a.add(e),e(l,...t))),l),mixin:e=>(__VUE_OPTIONS_API__&&(o.mixins.includes(e)||o.mixins.push(e)),l),component:(e,t)=>t?(o.components[e]=t,l):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,l):o.directives[e],mount(r,a,c){if(!s){0;const u=yi(n,i);return u.appContext=o,a&&t?t(u,r):e(u,r,c),s=!0,l._container=r,r.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=u.component,function(e,t){Et("app:init",e,t,{Fragment:Qr,Text:Jr,Comment:ei,Static:ti})}(l,bo)),Ki(u.component)||u.component.proxy}},unmount(){s&&(e(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(e){Et("app:unmount",e)}(l)),delete l._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,l)};return l}}function Fr(e,t,n,i,o=!1){if(Object(r.o)(e))return void e.forEach((e,a)=>Fr(e,t&&(Object(r.o)(t)?t[a]:t),n,i,o));if(Cn(i)&&!o)return;const a=4&i.shapeFlag?Ki(i.component)||i.component.proxy:i.el,s=o?null:a,{i:l,r:c}=e;const u=t&&t.r,d=l.refs===r.b?l.refs={}:l.refs,p=l.setupState;if(null!=u&&u!==c&&(Object(r.E)(u)?(d[u]=null,Object(r.k)(p,u)&&(p[u]=null)):ze(u)&&(u.value=null)),Object(r.q)(c))Je(c,l,12,[s,d]);else{const t=Object(r.E)(c),i=ze(c);if(t||i){const i=()=>{if(e.f){const n=t?d[c]:c.value;o?Object(r.o)(n)&&Object(r.M)(n,a):Object(r.o)(n)?n.includes(a)||n.push(a):t?(d[c]=[a],Object(r.k)(p,c)&&(p[c]=d[c])):(c.value=[a],e.k&&(d[e.k]=c.value))}else t?(d[c]=s,Object(r.k)(p,c)&&(p[c]=s)):ze(c)&&(c.value=s,e.k&&(d[e.k]=s))};s?(i.id=-1,Vr(i,n)):i()}else 0}}let Pr=!1;const Ir=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Rr=e=>8===e.nodeType;function Br(e){const{mt:t,p:n,o:{patchProp:i,createText:o,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:u}}=e,d=(n,r,i,l,u,b=!1)=>{const v=Rr(n)&&"["===n.data,y=()=>m(n,r,i,l,u,v),{type:x,ref:w,shapeFlag:k,patchFlag:_}=r,C=n.nodeType;r.el=n,-2===_&&(b=!1,r.dynamicChildren=null);let S=null;switch(x){case Jr:3!==C?""===r.children?(c(r.el=o(""),s(n),n),S=n):S=y():(n.data!==r.children&&(Pr=!0,n.data=r.children),S=a(n));break;case ei:S=8!==C||v?y():a(n);break;case ti:if(1===C){S=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=S.outerHTML),t===r.staticCount-1&&(r.anchor=S),S=a(S);return S}S=y();break;case Qr:S=v?f(n,r,i,l,u,b):y();break;default:if(1&k)S=1!==C||r.type.toLowerCase()!==n.tagName.toLowerCase()?y():p(n,r,i,l,u,b);else if(6&k){r.slotScopeIds=u;const e=s(n);if(t(r,e,null,i,l,Ir(e),b),S=v?g(n):a(n),S&&Rr(S)&&"teleport end"===S.data&&(S=a(S)),Cn(r)){let t;v?(t=yi(Qr),t.anchor=S?S.previousSibling:e.lastChild):t=3===n.nodeType?_i(""):yi("div"),t.el=n,r.component.subTree=t}}else 64&k?S=8!==C?y():r.type.hydrate(n,r,i,l,u,b,e,h):128&k&&(S=r.type.hydrate(n,r,i,l,Ir(s(n)),u,b,e,d))}return null!=w&&Fr(w,null,l,r),S},p=(e,t,n,o,a,s)=>{s=s||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:p,dirs:f}=t,m="input"===c&&f||"option"===c;if(m||-1!==d){if(f&&Yn(t,null,n,"created"),u)if(m||!s||48&d)for(const t in u)(m&&t.endsWith("value")||Object(r.x)(t)&&!Object(r.A)(t))&&i(e,t,null,u[t],!1,void 0,n);else u.onClick&&i(e,"onClick",null,u.onClick,!1,void 0,n);let c;if((c=u&&u.onVnodeBeforeMount)&&Mi(c,n,t),f&&Yn(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||f)&&en(()=>{c&&Mi(c,n,t),f&&Yn(t,null,n,"mounted")},o),16&p&&(!u||!u.innerHTML&&!u.textContent)){let r=h(e.firstChild,t,e,n,o,a,s);for(;r;){Pr=!0;const e=r;r=r.nextSibling,l(e)}}else 8&p&&e.textContent!==t.children&&(Pr=!0,e.textContent=t.children)}return e.nextSibling},h=(e,t,r,i,o,a,s)=>{s=s||!!t.dynamicChildren;const l=t.children,c=l.length;for(let t=0;t<c;t++){const c=s?l[t]:l[t]=Oi(l[t]);if(e)e=d(e,c,i,o,a,s);else{if(c.type===Jr&&!c.children)continue;Pr=!0,n(null,c,r,null,i,o,Ir(r),a)}}return e},f=(e,t,n,r,i,o)=>{const{slotScopeIds:l}=t;l&&(i=i?i.concat(l):l);const d=s(e),p=h(a(e),t,d,n,r,i,o);return p&&Rr(p)&&"]"===p.data?a(t.anchor=p):(Pr=!0,c(t.anchor=u("]"),d,p),p)},m=(e,t,r,i,o,c)=>{if(Pr=!0,t.el=null,c){const t=g(e);for(;;){const n=a(e);if(!n||n===t)break;l(n)}}const u=a(e),d=s(e);return l(e),n(null,t,d,u,r,i,Ir(d),o),u},g=e=>{let t=0;for(;e;)if((e=a(e))&&Rr(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return a(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void wt();Pr=!1,d(t.firstChild,e,null,null,null),wt(),Pr&&console.error("Hydration completed but contains mismatches.")},d]}const Vr=en;function $r(e){return Hr(e)}function qr(e){return Hr(e,Br)}function Hr(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(r.i)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Object(r.i)().__VUE_PROD_DEVTOOLS__=!1);const n=Object(r.i)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&jt(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:o,patchProp:a,createElement:s,createText:l,createComment:c,setText:u,setElementText:d,parentNode:p,nextSibling:h,setScopeId:f=r.d,cloneNode:m,insertStaticContent:g}=e,b=(e,t,n,r=null,i=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!hi(e,t)&&(r=K(e),q(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Jr:v(e,t,n,r);break;case ei:x(e,t,n,r);break;case ti:null==e&&w(t,n,r,a);break;case Qr:D(e,t,n,r,i,o,a,s,l);break;default:1&d?_(e,t,n,r,i,o,a,s,l):6&d?L(e,t,n,r,i,o,a,s,l):(64&d||128&d)&&c.process(e,t,n,r,i,o,a,s,l,X)}null!=u&&i&&Fr(u,e&&e.ref,o,t||e,!t)},v=(e,t,n,r)=>{if(null==e)i(t.el=l(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},x=(e,t,n,r)=>{null==e?i(t.el=c(t.children||""),n,r):t.el=e.el},w=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),o(e),e=n;o(t)},_=(e,t,n,r,i,o,a,s,l)=>{a=a||"svg"===t.type,null==e?C(t,n,r,i,o,a,s,l):M(e,t,i,o,a,s,l)},C=(e,t,n,o,l,c,u,p)=>{let h,f;const{type:g,props:b,shapeFlag:v,transition:y,patchFlag:x,dirs:w}=e;if(e.el&&void 0!==m&&-1===x)h=e.el=m(e.el);else{if(h=e.el=s(e.type,c,b&&b.is,b),8&v?d(h,e.children):16&v&&j(e.children,h,null,o,l,c&&"foreignObject"!==g,u,p),w&&Yn(e,null,o,"created"),b){for(const t in b)"value"===t||Object(r.A)(t)||a(h,t,null,b[t],c,e.children,o,l,G);"value"in b&&a(h,"value",null,b.value),(f=b.onVnodeBeforeMount)&&Mi(f,o,e)}E(h,e,e.scopeId,u,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(h,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(h,"__vueParentComponent",{value:o,enumerable:!1})),w&&Yn(e,null,o,"beforeMount");const k=(!l||l&&!l.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(h),i(h,t,n),((f=b&&b.onVnodeMounted)||k||w)&&Vr(()=>{f&&Mi(f,o,e),k&&y.enter(h),w&&Yn(e,null,o,"mounted")},l)},E=(e,t,n,r,i)=>{if(n&&f(e,n),r)for(let t=0;t<r.length;t++)f(e,r[t]);if(i){if(t===i.subTree){const t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},j=(e,t,n,r,i,o,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?Ei(e[c]):Oi(e[c]);b(null,l,t,n,r,i,o,a,s)}},M=(e,t,n,i,o,s,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||r.b,m=t.props||r.b;let g;n&&Wr(n,!1),(g=m.onVnodeBeforeUpdate)&&Mi(g,n,t,e),h&&Yn(t,e,n,"beforeUpdate"),n&&Wr(n,!0);const b=o&&"foreignObject"!==t.type;if(p?N(e.dynamicChildren,p,c,n,i,b,s):l||R(e,t,c,null,n,i,b,s,!1),u>0){if(16&u)A(c,t,f,m,n,i,o);else if(2&u&&f.class!==m.class&&a(c,"class",null,m.class,o),4&u&&a(c,"style",f.style,m.style,o),8&u){const r=t.dynamicProps;for(let t=0;t<r.length;t++){const s=r[t],l=f[s],u=m[s];u===l&&"value"!==s||a(c,s,l,u,o,e.children,n,i,G)}}1&u&&e.children!==t.children&&d(c,t.children)}else l||null!=p||A(c,t,f,m,n,i,o);((g=m.onVnodeUpdated)||h)&&Vr(()=>{g&&Mi(g,n,t,e),h&&Yn(t,e,n,"updated")},i)},N=(e,t,n,r,i,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===Qr||!hi(l,c)||70&l.shapeFlag)?p(l.el):n;b(l,c,u,null,r,i,o,a,!0)}},A=(e,t,n,i,o,s,l)=>{if(n!==i){for(const c in i){if(Object(r.A)(c))continue;const u=i[c],d=n[c];u!==d&&"value"!==c&&a(e,c,d,u,l,t.children,o,s,G)}if(n!==r.b)for(const c in n)Object(r.A)(c)||c in i||a(e,c,n[c],null,l,t.children,o,s,G);"value"in i&&a(e,"value",n.value,i.value)}},D=(e,t,n,r,o,a,s,c,u)=>{const d=t.el=e?e.el:l(""),p=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(i(d,n,r),i(p,n,r),j(t.children,n,p,o,a,s,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(N(e.dynamicChildren,f,n,o,a,s,c),(null!=t.key||o&&t===o.subTree)&&Ur(e,t,!0)):R(e,t,n,p,o,a,s,c,u)},L=(e,t,n,r,i,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,l):z(t,n,r,i,o,a,l):F(e,t,l)},z=(e,t,n,r,i,o,a)=>{const s=e.component=Di(e,r,i);if(En(e)&&(s.ctx.renderer=X),$i(s),s.asyncDep){if(i&&i.registerDep(s,P),!e.el){const e=s.subTree=yi(ei);x(null,e,t,n)}}else P(s,e,t,n,i,o,a)},F=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||Gt(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?Gt(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!zt(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void I(r,t,n);r.next=t,function(e){const t=it.indexOf(e);t>ot&&it.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},P=(e,t,n,i,o,a,s)=>{const l=e.effect=new y(()=>{if(e.isMounted){let t,{next:n,bu:i,u:l,parent:c,vnode:u}=e,d=n;0,Wr(e,!1),n?(n.el=u.el,I(e,n,s)):n=u,i&&Object(r.n)(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Mi(t,c,n,u),Wr(e,!0);const h=qt(e);0;const f=e.subTree;e.subTree=h,b(f,h,p(f.el),K(f),e,o,a),n.el=h.el,null===d&&Kt(e,h.el),l&&Vr(l,o),(t=n.props&&n.props.onVnodeUpdated)&&Vr(()=>Mi(t,c,n,u),o),__VUE_PROD_DEVTOOLS__&&Mt(e)}else{let s;const{el:l,props:c}=t,{bm:u,m:d,parent:p}=e,h=Cn(t);if(Wr(e,!1),u&&Object(r.n)(u),!h&&(s=c&&c.onVnodeBeforeMount)&&Mi(s,p,t),Wr(e,!0),l&&Q){const n=()=>{e.subTree=qt(e),Q(l,e.subTree,e,o,null)};h?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=qt(e);0,b(null,r,n,i,e,o,a),t.el=r.el}if(d&&Vr(d,o),!h&&(s=c&&c.onVnodeMounted)){const e=t;Vr(()=>Mi(s,p,e),o)}(256&t.shapeFlag||p&&Cn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Vr(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Tt(e),t=n=i=null}},()=>gt(c),e.scope),c=e.update=()=>l.run();c.id=e.uid,Wr(e,!0),c()},I=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Te(o),[c]=e.propsOptions;let u=!1;if(!(i||s>0)||16&s){let i;wr(e,t,o,a)&&(u=!0);for(const a in l)t&&(Object(r.k)(t,a)||(i=Object(r.l)(a))!==a&&Object(r.k)(t,i))||(c?!n||void 0===n[a]&&void 0===n[i]||(o[a]=kr(c,l,a,void 0,e,!0)):delete o[a]);if(a!==l)for(const e in a)t&&Object(r.k)(t,e)||(delete a[e],u=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let s=n[i];if(zt(e.emitsOptions,s))continue;const d=t[s];if(c)if(Object(r.k)(a,s))d!==a[s]&&(a[s]=d,u=!0);else{const t=Object(r.e)(s);o[t]=kr(c,l,t,d,e,!1)}else d!==a[s]&&(a[s]=d,u=!0)}}u&&T(e,"set","$attrs")}(e,t.props,i,n),((e,t,n)=>{const{vnode:i,slots:o}=e;let a=!0,s=r.b;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:(Object(r.h)(o,t),n||1!==e||delete o._):(a=!t.$stable,Nr(t,o)),s=t}else t&&(Ar(e,t),s={default:1});if(a)for(const e in o)jr(e)||e in s||delete o[e]})(e,t.children,n),S(),xt(void 0,e.update),O()},R=(e,t,n,r,i,o,a,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void V(c,p,n,r,i,o,a,s,l);if(256&h)return void B(c,p,n,r,i,o,a,s,l)}8&f?(16&u&&G(c,i,o),p!==c&&d(n,p)):16&u?16&f?V(c,p,n,r,i,o,a,s,l):G(c,i,o,!0):(8&u&&d(n,""),16&f&&j(p,n,r,i,o,a,s,l))},B=(e,t,n,i,o,a,s,l,c)=>{e=e||r.a,t=t||r.a;const u=e.length,d=t.length,p=Math.min(u,d);let h;for(h=0;h<p;h++){const r=t[h]=c?Ei(t[h]):Oi(t[h]);b(e[h],r,n,null,o,a,s,l,c)}u>d?G(e,o,a,!0,!1,p):j(t,n,i,o,a,s,l,c,p)},V=(e,t,n,i,o,a,s,l,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const r=e[u],i=t[u]=c?Ei(t[u]):Oi(t[u]);if(!hi(r,i))break;b(r,i,n,null,o,a,s,l,c),u++}for(;u<=p&&u<=h;){const r=e[p],i=t[h]=c?Ei(t[h]):Oi(t[h]);if(!hi(r,i))break;b(r,i,n,null,o,a,s,l,c),p--,h--}if(u>p){if(u<=h){const e=h+1,r=e<d?t[e].el:i;for(;u<=h;)b(null,t[u]=c?Ei(t[u]):Oi(t[u]),n,r,o,a,s,l,c),u++}}else if(u>h)for(;u<=p;)q(e[u],o,a,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=c?Ei(t[u]):Oi(t[u]);null!=e.key&&g.set(e.key,u)}let v,y=0;const x=h-m+1;let w=!1,k=0;const _=new Array(x);for(u=0;u<x;u++)_[u]=0;for(u=f;u<=p;u++){const r=e[u];if(y>=x){q(r,o,a,!0);continue}let i;if(null!=r.key)i=g.get(r.key);else for(v=m;v<=h;v++)if(0===_[v-m]&&hi(r,t[v])){i=v;break}void 0===i?q(r,o,a,!0):(_[i-m]=u+1,i>=k?k=i:w=!0,b(r,t[i],n,null,o,a,s,l,c),y++)}const C=w?function(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(_):r.a;for(v=C.length-1,u=x-1;u>=0;u--){const e=m+u,r=t[e],p=e+1<d?t[e+1].el:i;0===_[u]?b(null,r,n,p,o,a,s,l,c):w&&(v<0||u!==C[v]?$(r,n,p,2):v--)}}},$=(e,t,n,r,o=null)=>{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void $(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void s.move(e,t,n,X);if(s===Qr){i(a,t,n);for(let e=0;e<c.length;e++)$(c[e],t,n,r);return void i(e.anchor,t,n)}if(s===ti)return void(({el:e,anchor:t},n,r)=>{let o;for(;e&&e!==t;)o=h(e),i(e,n,r),e=o;i(t,n,r)})(e,t,n);if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(a),i(a,t,n),Vr(()=>l.enter(a),o);else{const{leave:e,delayLeave:r,afterLeave:o}=l,s=()=>i(a,t,n),c=()=>{e(a,()=>{s(),o&&o()})};r?r(a,s,c):c()}else i(a,t,n)},q=(e,t,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&Fr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!Cn(e);let m;if(f&&(m=a&&a.onVnodeBeforeUnmount)&&Mi(m,t,e),6&u)U(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Yn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,X,r):c&&(o!==Qr||d>0&&64&d)?G(c,t,n,!1,!0):(o===Qr&&384&d||!i&&16&u)&&G(l,t,n),r&&H(e)}(f&&(m=a&&a.onVnodeUnmounted)||h)&&Vr(()=>{m&&Mi(m,t,e),h&&Yn(e,null,t,"unmounted")},n)},H=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Qr)return void W(n,r);if(t===ti)return void k(e);const a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},W=(e,t)=>{let n;for(;e!==t;)n=h(e),o(e),e=n;o(t)},U=(e,t,n)=>{const{bum:i,scope:o,update:a,subTree:s,um:l}=e;i&&Object(r.n)(i),o.stop(),a&&(a.active=!1,q(s,e,t,n)),l&&Vr(l,t),Vr(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Nt(e)},G=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a<e.length;a++)q(e[a],t,n,r,i)},K=e=>6&e.shapeFlag?K(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),wt(),t._vnode=e},X={p:b,um:q,m:$,r:H,mt:z,mc:j,pc:R,pbc:N,n:K,o:e};let Z,Q;return t&&([Z,Q]=t(X)),{render:Y,hydrate:Z,createApp:zr(Y,Z)}}function Wr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ur(e,t,n=!1){const i=e.children,o=t.children;if(Object(r.o)(i)&&Object(r.o)(o))for(let e=0;e<i.length;e++){const t=i[e];let r=o[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=o[e]=Ei(o[e]),r.el=t.el),n||Ur(t,r))}}const Gr=e=>e&&(e.disabled||""===e.disabled),Kr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Yr=(e,t)=>{const n=e&&e.to;if(Object(r.E)(n)){if(t){const e=t(n);return e}return null}return n};function Xr(e,t,n,{o:{insert:r},m:i},o=2){0===o&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===o;if(d&&r(a,t,n),(!d||Gr(u))&&16&l)for(let e=0;e<c.length;e++)i(c[e],t,n,2);d&&r(s,t,n)}const Zr={__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,c){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,b=Gr(t.props);let{shapeFlag:v,children:y,dynamicChildren:x}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");h(e,n,r),h(c,n,r);const d=t.target=Yr(t.props,f),p=t.targetAnchor=m("");d&&(h(p,d),a=a||Kr(d));const g=(e,t)=>{16&v&&u(y,e,t,i,o,a,s,l)};b?g(n,c):d&&g(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Gr(e.props),g=m?n:u,v=m?r:h;if(a=a||Kr(u),x?(p(e.dynamicChildren,x,g,i,o,a,s),Ur(e,t,!0)):l||d(e,t,g,v,i,o,a,s,!1),b)m||Xr(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Yr(t.props,f);e&&Xr(t,e,null,c,0)}else m&&Xr(t,u,h,c,1)}},remove(e,t,n,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&o(u),(a||!Gr(p))&&(o(c),16&s))for(let e=0;e<l.length;e++){const r=l[e];i(r,t,n,!0,!!r.dynamicChildren)}},move:Xr,hydrate:function(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l}},c){const u=t.target=Yr(t.props,l);if(u){const l=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Gr(t.props))t.anchor=c(a(e),t,s(e),n,r,i,o),t.targetAnchor=l;else{t.anchor=a(e);let s=l;for(;s;)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,u._lpa=t.targetAnchor&&a(t.targetAnchor);break}c(l,t,u,n,r,i,o)}}return t.anchor&&a(t.anchor)}},Qr=Symbol(void 0),Jr=Symbol(void 0),ei=Symbol(void 0),ti=Symbol(void 0),ni=[];let ri=null;function ii(e=!1){ni.push(ri=e?null:[])}function oi(){ni.pop(),ri=ni[ni.length-1]||null}let ai,si=1;function li(e){si+=e}function ci(e){return e.dynamicChildren=si>0?ri||r.a:null,oi(),si>0&&ri&&ri.push(e),e}function ui(e,t,n,r,i,o){return ci(vi(e,t,n,r,i,o,!0))}function di(e,t,n,r,i){return ci(yi(e,t,n,r,i,!0))}function pi(e){return!!e&&!0===e.__v_isVNode}function hi(e,t){return e.type===t.type&&e.key===t.key}function fi(e){ai=e}const mi="__vInternal",gi=({key:e})=>null!=e?e:null,bi=({ref:e,ref_key:t,ref_for:n})=>null!=e?Object(r.E)(e)||ze(e)||Object(r.q)(e)?{i:Ft,r:e,k:t,f:!!n}:e:null;function vi(e,t=null,n=null,i=0,o=null,a=(e===Qr?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gi(t),ref:t&&bi(t),scopeId:Pt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};return l?(ji(c,n),128&a&&e.normalize(c)):n&&(c.shapeFlag|=Object(r.E)(n)?8:16),si>0&&!s&&ri&&(c.patchFlag>0||6&a)&&32!==c.patchFlag&&ri.push(c),c}const yi=xi;function xi(e,t=null,n=null,i=0,o=null,a=!1){if(e&&e!==Zn||(e=ei),pi(e)){const r=ki(e,t,!0);return n&&ji(r,n),si>0&&!a&&ri&&(6&r.shapeFlag?ri[ri.indexOf(e)]=r:ri.push(r)),r.patchFlag|=-2,r}if(Qi(e)&&(e=e.__vccOpts),t){t=wi(t);let{class:e,style:n}=t;e&&!Object(r.E)(e)&&(t.class=Object(r.J)(e)),Object(r.w)(n)&&(je(n)&&!Object(r.o)(n)&&(n=Object(r.h)({},n)),t.style=Object(r.L)(n))}return vi(e,t,n,i,o,Object(r.E)(e)?1:Yt(e)?128:(e=>e.__isTeleport)(e)?64:Object(r.w)(e)?4:Object(r.q)(e)?2:0,a,!0)}function wi(e){return e?je(e)||mi in e?Object(r.h)({},e):e:null}function ki(e,t,n=!1){const{props:i,ref:o,patchFlag:a,children:s}=e,l=t?Ti(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&gi(l),ref:t&&t.ref?n&&o?Object(r.o)(o)?o.concat(bi(t)):[o,bi(t)]:bi(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qr?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ki(e.ssContent),ssFallback:e.ssFallback&&ki(e.ssFallback),el:e.el,anchor:e.anchor}}function _i(e=" ",t=0){return yi(Jr,null,e,t)}function Ci(e,t){const n=yi(ti,null,e);return n.staticCount=t,n}function Si(e="",t=!1){return t?(ii(),di(ei,null,e)):yi(ei,null,e)}function Oi(e){return null==e||"boolean"==typeof e?yi(ei):Object(r.o)(e)?yi(Qr,null,e.slice()):"object"==typeof e?Ei(e):yi(Jr,null,String(e))}function Ei(e){return null===e.el||e.memo?e:ki(e)}function ji(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(Object(r.o)(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),ji(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||mi in t?3===r&&Ft&&(1===Ft.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Ft}}else Object(r.q)(t)?(t={default:t,_ctx:Ft},n=32):(t=String(t),64&i?(n=16,t=[_i(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ti(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=Object(r.J)([t.class,i.class]));else if("style"===e)t.style=Object(r.L)([t.style,i.style]);else if(Object(r.x)(e)){const n=t[e],o=i[e];!o||n===o||Object(r.o)(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=i[e])}return t}function Mi(e,t,n,r=null){et(e,t,7,[n,r])}const Ni=Dr();let Ai=0;function Di(e,t,n){const i=e.type,a=(t?t.appContext:e.appContext)||Ni,s={uid:Ai++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new o(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_r(i,a),emitsOptions:Lt(i,a),emit:null,emitted:null,propsDefaults:r.b,inheritAttrs:i.inheritAttrs,ctx:r.b,data:r.b,props:r.b,attrs:r.b,slots:r.b,refs:r.b,setupState:r.b,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Dt.bind(null,s),e.ce&&e.ce(s),s}let Li=null;const zi=()=>Li||Ft,Fi=e=>{Li=e,e.scope.on()},Pi=()=>{Li&&Li.scope.off(),Li=null};function Ii(e){return 4&e.vnode.shapeFlag}let Ri,Bi,Vi=!1;function $i(e,t=!1){Vi=t;const{props:n,children:i}=e.vnode,o=Ii(e);!function(e,t,n,i=!1){const o={},a={};Object(r.g)(a,mi,1),e.propsDefaults=Object.create(null),wr(e,t,o,a);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=i?o:we(o):e.type.props?e.props=o:e.props=a,e.attrs=a}(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Te(t),Object(r.g)(t,"_",n)):Nr(t,e.slots={})}else e.slots={},t&&Ar(e,t);Object(r.g)(e.slots,mi,1)})(e,i);const a=o?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Me(new Proxy(e.ctx,lr)),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?Gi(e):null;Fi(e),S();const o=Je(i,e,0,[e.props,n]);if(O(),Pi(),Object(r.z)(o)){if(o.then(Pi,Pi),t)return o.then(n=>{qi(e,n,t)}).catch(t=>{tt(t,e,0)});e.asyncDep=o}else qi(e,o,t)}else Ui(e,t)}(e,t):void 0;return Vi=!1,a}function qi(e,t,n){Object(r.q)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(r.w)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=qe(t)),Ui(e,n)}function Hi(e){Ri=e,Bi=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,cr))}}const Wi=()=>!Ri;function Ui(e,t,n){const i=e.type;if(!e.render){if(!t&&Ri&&!i.render){const t=i.template;if(t){0;const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:s}=i,l=Object(r.h)(Object(r.h)({isCustomElement:n,delimiters:a},o),s);i.render=Ri(t,l)}}e.render=i.render||r.d,Bi&&Bi(e)}__VUE_OPTIONS_API__&&(Fi(e),S(),dr(e),O(),Pi())}function Gi(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(E(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function Ki(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(qe(Me(e.exposed)),{get:(t,n)=>n in t?t[n]:n in sr?sr[n](e):void 0}))}const Yi=/(?:^|[-_])(\w)/g;function Xi(e){return Object(r.q)(e)&&e.displayName||e.name}function Zi(e,t,n=!1){let r=Xi(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Yi,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function Qi(e){return Object(r.q)(e)&&"__vccOpts"in e}const Ji=(e,t)=>function(e,t,n=!1){let i,o;const a=Object(r.q)(e);return a?(i=e,o=r.d):(i=e.get,o=e.set),new Ye(i,o,a||!o,n)}(e,0,Vi);function eo(){return null}function to(){return null}function no(e){0}function ro(e,t){return null}function io(){return ao().slots}function oo(){return ao().attrs}function ao(){const e=zi();return e.setupContext||(e.setupContext=Gi(e))}function so(e,t){const n=Object(r.o)(e)?e.reduce((e,t)=>(e[t]={},e),{}):e;for(const e in t){const i=n[e];i?Object(r.o)(i)||Object(r.q)(i)?n[e]={type:i,default:t[e]}:i.default=t[e]:null===i&&(n[e]={default:t[e]})}return n}function lo(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function co(e){const t=zi();let n=e();return Pi(),Object(r.z)(n)&&(n=n.catch(e=>{throw Fi(t),e})),[n,()=>Fi(t)]}function uo(e,t,n){const i=arguments.length;return 2===i?Object(r.w)(t)&&!Object(r.o)(t)?pi(t)?yi(e,null,[t]):yi(e,t):yi(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&pi(n)&&(n=[n]),yi(e,t,n))}const po=Symbol(""),ho=()=>{{const e=rn(po);return e||Ze("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function fo(){return void 0}function mo(e,t,n,r){const i=n[r];if(i&&go(i,e))return i;const o=t();return o.memo=e.slice(),n[r]=o}function go(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(Object(r.j)(n[e],t[e]))return!1;return si>0&&ri&&ri.push(e),!0}const bo="3.2.36",vo={createComponentInstance:Di,setupComponent:$i,renderComponentRoot:qt,setCurrentRenderingInstance:It,isVNode:pi,normalizeVNode:Oi},yo=null,xo=null,wo="undefined"!=typeof document?document:null,ko=wo&&wo.createElement("template"),_o={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?wo.createElementNS("http://www.w3.org/2000/svg",e):wo.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{ko.innerHTML=r?`<svg>${e}</svg>`:e;const i=ko.content;if(r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Co=/\s*!important$/;function So(e,t,n){if(Object(r.o)(n))n.forEach(n=>So(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=function(e,t){const n=Eo[t];if(n)return n;let i=Object(r.e)(t);if("filter"!==i&&i in e)return Eo[t]=i;i=Object(r.f)(i);for(let n=0;n<Oo.length;n++){const r=Oo[n]+i;if(r in e)return Eo[t]=r}return t}(e,t);Co.test(n)?e.setProperty(Object(r.l)(i),n.replace(Co,""),"important"):e[i]=n}}const Oo=["Webkit","Moz","ms"],Eo={};const jo="http://www.w3.org/1999/xlink";const[To,Mo]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let No=0;const Ao=Promise.resolve(),Do=()=>{No=0};function Lo(e,t,n,r){e.addEventListener(t,n,r)}function zo(e,t,n,i,o=null){const a=e._vei||(e._vei={}),s=a[t];if(i&&s)s.value=i;else{const[n,l]=function(e){let t;if(Fo.test(e)){let n;for(t={};n=e.match(Fo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Object(r.l)(e.slice(2)),t]}(t);if(i){Lo(e,n,a[t]=function(e,t){const n=e=>{const i=e.timeStamp||To();(Mo||i>=n.attached-1)&&et(function(e,t){if(Object(r.o)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>No||(Ao.then(Do),No=To()))(),n}(i,o),l)}else s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,l),a[t]=void 0)}}const Fo=/(?:Once|Passive|Capture)$/;const Po=/^on[a-z]/;function Io(e,t){const n=_n(e);class r extends Vo{constructor(e){super(n,e,t)}}return r.def=n,r}const Ro=e=>Io(e,Ba),Bo="undefined"!=typeof HTMLElement?HTMLElement:class{};class Vo extends Bo{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,mt(()=>{this._connected||(Ra(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);new MutationObserver(e=>{for(const t of e)this._setAttr(t.attributeName)}).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,i=!Object(r.o)(t),o=t?i?Object.keys(t):t:[];let a;if(i)for(const e in this._props){const n=t[e];(n===Number||n&&n.type===Number)&&(this._props[e]=Object(r.P)(this._props[e]),(a||(a=Object.create(null)))[e]=!0)}this._numberProps=a;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e],!0,!1);for(const e of o.map(r.e))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=Object(r.P)(t)),this._setProp(Object(r.e)(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(Object(r.l)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(Object(r.l)(e),t+""):t||this.removeAttribute(Object(r.l)(e))))}_update(){Ra(this._createVNode(),this.shadowRoot)}_createVNode(){const e=yi(this._def,Object(r.h)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Vo){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach(e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)})}}function $o(e="$style"){{const t=zi();if(!t)return r.b;const n=t.type.__cssModules;if(!n)return r.b;const i=n[e];return i||r.b}}function qo(e){const t=zi();if(!t)return;const n=()=>function e(t,n){if(128&t.shapeFlag){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{e(r.activeBranch,n)})}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)Ho(t.el,n);else if(t.type===Qr)t.children.forEach(t=>e(t,n));else if(t.type===ti){let{el:e,anchor:r}=t;for(;e&&(Ho(e,n),e!==r);)e=e.nextSibling}}(t.subTree,e(t.proxy));an(n),Rn(()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),qn(()=>e.disconnect())})}function Ho(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty("--"+e,t[e])}}const Wo=(e,{slots:t})=>uo(gn,Xo(e),t);Wo.displayName="Transition";const Uo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Go=Wo.props=Object(r.h)({},gn.props,Uo),Ko=(e,t=[])=>{Object(r.o)(e)?e.forEach(e=>e(...t)):e&&e(...t)},Yo=e=>!!e&&(Object(r.o)(e)?e.some(e=>e.length>1):e.length>1);function Xo(e){const t={};for(const n in e)n in Uo||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:i,duration:o,enterFromClass:a=n+"-enter-from",enterActiveClass:s=n+"-enter-active",enterToClass:l=n+"-enter-to",appearFromClass:c=a,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=n+"-leave-from",leaveActiveClass:h=n+"-leave-active",leaveToClass:f=n+"-leave-to"}=e,m=function(e){if(null==e)return null;if(Object(r.w)(e))return[Zo(e.enter),Zo(e.leave)];{const t=Zo(e);return[t,t]}}(o),g=m&&m[0],b=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:x,onLeave:w,onLeaveCancelled:k,onBeforeAppear:_=v,onAppear:C=y,onAppearCancelled:S=x}=t,O=(e,t,n)=>{Jo(e,t?d:l),Jo(e,t?u:s),n&&n()},E=(e,t)=>{e._isLeaving=!1,Jo(e,p),Jo(e,f),Jo(e,h),t&&t()},j=e=>(t,n)=>{const r=e?C:y,o=()=>O(t,e,n);Ko(r,[t,o]),ea(()=>{Jo(t,e?c:a),Qo(t,e?d:l),Yo(r)||na(t,i,g,o)})};return Object(r.h)(t,{onBeforeEnter(e){Ko(v,[e]),Qo(e,a),Qo(e,s)},onBeforeAppear(e){Ko(_,[e]),Qo(e,c),Qo(e,u)},onEnter:j(!1),onAppear:j(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Qo(e,p),aa(),Qo(e,h),ea(()=>{e._isLeaving&&(Jo(e,p),Qo(e,f),Yo(w)||na(e,i,b,n))}),Ko(w,[e,n])},onEnterCancelled(e){O(e,!1),Ko(x,[e])},onAppearCancelled(e){O(e,!0),Ko(S,[e])},onLeaveCancelled(e){E(e),Ko(k,[e])}})}function Zo(e){return Object(r.P)(e)}function Qo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e._vtc||(e._vtc=new Set)).add(t)}function Jo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ea(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ta=0;function na(e,t,n,r){const i=e._endId=++ta,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=ra(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),o()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},s+1),e.addEventListener(c,p)}function ra(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r("transitionDelay"),o=r("transitionDuration"),a=ia(i,o),s=r("animationDelay"),l=r("animationDuration"),c=ia(s,l);let u=null,d=0,p=0;"transition"===t?a>0&&(u="transition",d=a,p=o.length):"animation"===t?c>0&&(u="animation",d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?"transition":"animation":null,p=u?"transition"===u?o.length:l.length:0);return{type:u,timeout:d,propCount:p,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function ia(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>oa(t)+oa(e[n])))}function oa(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function aa(){return document.body.offsetHeight}const sa=new WeakMap,la=new WeakMap,ca={name:"TransitionGroup",props:Object(r.h)({},Go,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=zi(),r=fn();let i,o;return Vn(()=>{if(!i.length)return;const t=e.moveClass||(e.name||"v")+"-move";if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))});n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=ra(r);return i.removeChild(r),o}(i[0].el,n.vnode.el,t))return;i.forEach(ua),i.forEach(da);const r=i.filter(pa);aa(),r.forEach(e=>{const n=e.el,r=n.style;Qo(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,Jo(n,t))};n.addEventListener("transitionend",i)})}),()=>{const a=Te(e),s=Xo(a);let l=a.tag||Qr;i=o,o=t.default?kn(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&wn(t,vn(t,s,r,n))}if(i)for(let e=0;e<i.length;e++){const t=i[e];wn(t,vn(t,s,r,n)),sa.set(t,t.el.getBoundingClientRect())}return yi(l,null,o)}}};function ua(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function da(e){la.set(e,e.el.getBoundingClientRect())}function pa(e){const t=sa.get(e),n=la.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration="0s",e}}const ha=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Object(r.o)(t)?e=>Object(r.n)(t,e):t};function fa(e){e.target.composing=!0}function ma(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ga={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e._assign=ha(o);const a=i||o.props&&"number"===o.props.type;Lo(e,t?"change":"input",t=>{if(t.target.composing)return;let i=e.value;n&&(i=i.trim()),a&&(i=Object(r.P)(i)),e._assign(i)}),n&&Lo(e,"change",()=>{e.value=e.value.trim()}),t||(Lo(e,"compositionstart",fa),Lo(e,"compositionend",ma),Lo(e,"change",ma))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:o}},a){if(e._assign=ha(a),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(i&&e.value.trim()===t)return;if((o||"number"===e.type)&&Object(r.P)(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},ba={deep:!0,created(e,t,n){e._assign=ha(n),Lo(e,"change",()=>{const t=e._modelValue,n=ka(e),i=e.checked,o=e._assign;if(Object(r.o)(t)){const e=Object(r.H)(t,n),a=-1!==e;if(i&&!a)o(t.concat(n));else if(!i&&a){const n=[...t];n.splice(e,1),o(n)}}else if(Object(r.C)(t)){const e=new Set(t);i?e.add(n):e.delete(n),o(e)}else o(_a(e,i))})},mounted:va,beforeUpdate(e,t,n){e._assign=ha(n),va(e,t,n)}};function va(e,{value:t,oldValue:n},i){e._modelValue=t,Object(r.o)(t)?e.checked=Object(r.H)(t,i.props.value)>-1:Object(r.C)(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Object(r.G)(t,_a(e,!0)))}const ya={created(e,{value:t},n){e.checked=Object(r.G)(t,n.props.value),e._assign=ha(n),Lo(e,"change",()=>{e._assign(ka(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e._assign=ha(i),t!==n&&(e.checked=Object(r.G)(t,i.props.value))}},xa={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const o=Object(r.C)(t);Lo(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Object(r.P)(ka(e)):ka(e));e._assign(e.multiple?o?new Set(t):t:t[0])}),e._assign=ha(i)},mounted(e,{value:t}){wa(e,t)},beforeUpdate(e,t,n){e._assign=ha(n)},updated(e,{value:t}){wa(e,t)}};function wa(e,t){const n=e.multiple;if(!n||Object(r.o)(t)||Object(r.C)(t)){for(let i=0,o=e.options.length;i<o;i++){const o=e.options[i],a=ka(o);if(n)Object(r.o)(t)?o.selected=Object(r.H)(t,a)>-1:o.selected=t.has(a);else if(Object(r.G)(ka(o),t))return void(e.selectedIndex!==i&&(e.selectedIndex=i))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ka(e){return"_value"in e?e._value:e.value}function _a(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ca={created(e,t,n){Oa(e,t,n,null,"created")},mounted(e,t,n){Oa(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Oa(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Oa(e,t,n,r,"updated")}};function Sa(e,t){switch(e){case"SELECT":return xa;case"TEXTAREA":return ga;default:switch(t){case"checkbox":return ba;case"radio":return ya;default:return ga}}}function Oa(e,t,n,r,i){const o=Sa(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Ea=["ctrl","shift","alt","meta"],ja={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ea.some(n=>e[n+"Key"]&&!t.includes(n))},Ta=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=ja[t[e]];if(r&&r(n,t))return}return e(n,...r)},Ma={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Na=(e,t)=>n=>{if(!("key"in n))return;const i=Object(r.l)(n.key);return t.some(e=>e===i||Ma[e]===i)?e(n):void 0},Aa={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Da(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Da(e,!0),r.enter(e)):r.leave(e,()=>{Da(e,!1)}):Da(e,t))},beforeUnmount(e,{value:t}){Da(e,t)}};function Da(e,t){e.style.display=t?e._vod:"none"}const La=Object(r.h)({patchProp:(e,t,n,i,o=!1,a,s,l,c)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,o):"style"===t?function(e,t,n){const i=e.style,o=Object(r.E)(n);if(n&&!o){for(const e in n)So(i,e,n[e]);if(t&&!Object(r.E)(t))for(const e in t)null==n[e]&&So(i,e,"")}else{const r=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}(e,n,i):Object(r.x)(t)?Object(r.v)(t)||zo(e,t,0,i,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,i){if(i)return"innerHTML"===t||"textContent"===t||!!(t in e&&Po.test(t)&&Object(r.q)(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Po.test(t)&&Object(r.E)(n))return!1;return t in e}(e,t,i,o))?function(e,t,n,i,o,a,s){if("innerHTML"===t||"textContent"===t)return i&&s(i,o,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const i=typeof e[t];"boolean"===i?n=Object(r.m)(n):null==n&&"string"===i?(n="",l=!0):"number"===i&&(n=0,l=!0)}try{e[t]=n}catch(e){0}l&&e.removeAttribute(t)}(e,t,i,a,s,l,c):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,n,i,o){if(i&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(jo,t.slice(6,t.length)):e.setAttributeNS(jo,t,n);else{const i=Object(r.D)(t);null==n||i&&!Object(r.m)(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}(e,t,i,o))}},_o);let za,Fa=!1;function Pa(){return za||(za=$r(La))}function Ia(){return za=Fa?za:qr(La),Fa=!0,za}const Ra=(...e)=>{Pa().render(...e)},Ba=(...e)=>{Ia().hydrate(...e)},Va=(...e)=>{const t=Pa().createApp(...e);const{mount:n}=t;return t.mount=e=>{const i=qa(e);if(!i)return;const o=t._component;Object(r.q)(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const a=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t},$a=(...e)=>{const t=Ia().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=qa(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function qa(e){if(Object(r.E)(e)){return document.querySelector(e)}return e}let Ha=!1;const Wa=()=>{Ha||(Ha=!0,ga.getSSRProps=({value:e})=>({value:e}),ya.getSSRProps=({value:e},t)=>{if(t.props&&Object(r.G)(t.props.value,e))return{checked:!0}},ba.getSSRProps=({value:e},t)=>{if(Object(r.o)(e)){if(t.props&&Object(r.H)(e,t.props.value)>-1)return{checked:!0}}else if(Object(r.C)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ca.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Sa(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Aa.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})};const Ua=()=>{0}},function(e,t,n){"use strict";(function(e){function r(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return Y})),n.d(t,"f",(function(){return Q})),n.d(t,"g",(function(){return ne})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return oe})),n.d(t,"j",(function(){return ee})),n.d(t,"k",(function(){return M})),n.d(t,"l",(function(){return Z})),n.d(t,"m",(function(){return s})),n.d(t,"n",(function(){return te})),n.d(t,"o",(function(){return N})),n.d(t,"p",(function(){return U})),n.d(t,"q",(function(){return z})),n.d(t,"r",(function(){return i})),n.d(t,"s",(function(){return f})),n.d(t,"t",(function(){return H})),n.d(t,"u",(function(){return A})),n.d(t,"v",(function(){return O})),n.d(t,"w",(function(){return I})),n.d(t,"x",(function(){return S})),n.d(t,"y",(function(){return q})),n.d(t,"z",(function(){return R})),n.d(t,"A",(function(){return W})),n.d(t,"B",(function(){return m})),n.d(t,"C",(function(){return D})),n.d(t,"D",(function(){return a})),n.d(t,"E",(function(){return F})),n.d(t,"F",(function(){return P})),n.d(t,"G",(function(){return g})),n.d(t,"H",(function(){return b})),n.d(t,"I",(function(){return r})),n.d(t,"J",(function(){return p})),n.d(t,"K",(function(){return h})),n.d(t,"L",(function(){return l})),n.d(t,"M",(function(){return j})),n.d(t,"N",(function(){return v})),n.d(t,"O",(function(){return J})),n.d(t,"P",(function(){return re})),n.d(t,"Q",(function(){return $}));const i=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");const o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=r(o);function s(e){return!!e||""===e}function l(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=F(r)?d(r):l(r);if(i)for(const e in i)t[e]=i[e]}return t}return F(e)||I(e)?e:void 0}const c=/;(?![^(]*\))/g,u=/:(.+)/;function d(e){const t={};return e.split(c).forEach(e=>{if(e){const n=e.split(u);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function p(e){let t="";if(F(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const r=p(e[n]);r&&(t+=r+" ")}else if(I(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function h(e){if(!e)return null;let{class:t,style:n}=e;return t&&!F(t)&&(e.class=p(t)),n&&(e.style=l(n)),e}const f=r("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),m=r("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view");function g(e,t){if(e===t)return!0;let n=L(e),r=L(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=P(e),r=P(t),n||r)return e===t;if(n=N(e),r=N(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=g(e[r],t[r]);return n}(e,t);if(n=I(e),r=I(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!g(e[n],t[n]))return!1}}return String(e)===String(t)}function b(e,t){return e.findIndex(e=>g(e,t))}const v=e=>F(e)?e:null==e?"":N(e)||I(e)&&(e.toString===B||!z(e.toString))?JSON.stringify(e,y,2):String(e),y=(e,t)=>t&&t.__v_isRef?y(e,t.value):A(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!I(t)||N(t)||q(t)?t:String(t),x={},w=[],k=()=>{},_=()=>!1,C=/^on[^a-z]/,S=e=>C.test(e),O=e=>e.startsWith("onUpdate:"),E=Object.assign,j=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},T=Object.prototype.hasOwnProperty,M=(e,t)=>T.call(e,t),N=Array.isArray,A=e=>"[object Map]"===V(e),D=e=>"[object Set]"===V(e),L=e=>"[object Date]"===V(e),z=e=>"function"==typeof e,F=e=>"string"==typeof e,P=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,R=e=>I(e)&&z(e.then)&&z(e.catch),B=Object.prototype.toString,V=e=>B.call(e),$=e=>V(e).slice(8,-1),q=e=>"[object Object]"===V(e),H=e=>F(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,W=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),G=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},K=/-(\w)/g,Y=G(e=>e.replace(K,(e,t)=>t?t.toUpperCase():"")),X=/\B([A-Z])/g,Z=G(e=>e.replace(X,"-$1").toLowerCase()),Q=G(e=>e.charAt(0).toUpperCase()+e.slice(1)),J=G(e=>e?"on"+Q(e):""),ee=(e,t)=>!Object.is(e,t),te=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ne=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},re=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ie;const oe=()=>ie||(ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{})}).call(this,n(13))},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},function(e,t,n){"use strict";t.a={computed:{lang(){return Object.prototype.hasOwnProperty.call(this.$store.state.fm.settings.translations,this.$store.state.fm.settings.lang)?this.$store.state.fm.settings.translations[this.$store.state.fm.settings.lang]:this.$store.state.fm.settings.translations.en}}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=s.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,u=0,d=[],p=n(46);function h(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(y(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(y(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:s}}}}function f(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function m(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=d[d.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=l(e.insertAt.before,n);n.insertBefore(t,i)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function b(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return v(t,e.attrs),m(e,t),t}function v(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var a=u++;n=c||(c=b(t)),r=k.bind(null,n,a,!1),i=k.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),m(e,t),t}(t),r=C.bind(null,n,t),i=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=b(t),r=_.bind(null,n),i=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return h(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i];(s=o[a.id]).refs--,r.push(s)}e&&h(f(e,t),t);for(i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}};var x,w=(x=[],function(e,t){return x[e]=t,x.filter(Boolean).join("\n")});function k(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function _(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function C(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=p(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},function(e,t,n){"use strict";var r=n(19),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";t.a={directives:{focus:{inserted(e){e.focus()}}},computed:{activeManager(){return this.$store.state.fm.activeManager}},methods:{hideModal(){this.$store.commit("fm/modal/setModalState",{modalName:null,show:!1})}}}},function(e,t,n){"use strict";var r=n(11),i=n.n(r);t.a=i.a.create()},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),f=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),b=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=m||/Mac/.test(t),y=/\bCrOS\b/.test(e),x=/win/i.test(t),w=d&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(d=!1,l=!0);var k=v&&(c||d&&(null==w||w<12.11)),_=n||a&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,O=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function j(e,t){return E(e).appendChild(t)}function T(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function M(e,t,n,r){var i=T(e,t,n,r);return i.setAttribute("role","presentation"),i}function N(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function A(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function D(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function L(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var z=function(e){e.select()};function F(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function P(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function I(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?z=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(z=function(e){try{e.select()}catch(e){}});var R=function(){this.id=null};function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}R.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var V={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},q={origin:"*mouse"},H={origin:"+move"};function W(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var U=[""];function G(e){for(;U.length<=e;)U.push(K(U)+" ");return U[e]}function K(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function X(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(X.prototype=e,n=new X),t&&P(t,n),n}var Q=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Q.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&J(e))||t.test(e):J(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function ae(e,t,r){var i=this;this.input=r,i.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=M("div",null,"CodeMirror-code"),i.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=T("div",null,"CodeMirror-cursors"),i.measure=T("div",null,"CodeMirror-measure"),i.lineMeasure=T("div",null,"CodeMirror-measure"),i.lineSpace=M("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=M("div",[i.lineSpace],"CodeMirror-lines");i.mover=T("div",[o],null,"position: relative"),i.sizer=T("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=T("div",null,null,"position: absolute; height: 30px; width: 1px;"),i.gutters=T("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=T("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=T("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),a&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&b||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}function se(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function le(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function ce(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function ue(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function de(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function pe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function he(e,t){return t>=e.first&&t<e.first+e.size}function fe(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function me(e,t,n){if(void 0===n&&(n=null),!(this instanceof me))return new me(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ge(e,t){return e.line-t.line||e.ch-t.ch}function be(e,t){return e.sticky==t.sticky&&0==ge(e,t)}function ve(e){return me(e.line,e.ch)}function ye(e,t){return ge(e,t)<0?t:e}function xe(e,t){return ge(e,t)<0?e:t}function we(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ke(e,t){if(t.line<e.first)return me(e.first,0);var n=e.first+e.size-1;return t.line>n?me(n,se(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?me(e.line,t):n<0?me(e.line,0):e}(t,se(e,t.line).text.length)}function _e(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ke(e,t[r]);return n}var Ce=!1,Se=!1;function Oe(e,t,n){this.marker=e,this.from=t,this.to=n}function Ee(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function je(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Te(e,t){if(t.full)return null;var n=he(e,t.from.line)&&se(e,t.from.line).markedSpans,r=he(e,t.to.line)&&se(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ge(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Oe(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Oe(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,u=K(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var p=s[d];if(null==p.to){var h=Ee(l,p.marker);h?c&&(p.to=null==h.to?null:h.to+u):p.to=i}}if(l)for(var f=0;f<l.length;++f){var m=l[f];null!=m.to&&(m.to+=u),null==m.from?Ee(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=Me(s)),l&&l!=s&&(l=Me(l));var g=[s];if(!c){var b,v=t.text.length-2;if(v>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(b||(b=[])).push(new Oe(s[y].marker,null,null));for(var x=0;x<v;++x)g.push(b);g.push(l)}return g}function Me(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ne(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ae(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function De(e){return e.inclusiveLeft?-1:0}function Le(e){return e.inclusiveRight?1:0}function ze(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ge(r.from,i.from)||De(e)-De(t);if(o)return-o;var a=ge(r.to,i.to)||Le(e)-Le(t);return a||t.id-e.id}function Fe(e,t){var n,r=Se&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||ze(n,i.marker)<0)&&(n=i.marker);return n}function Pe(e){return Fe(e,!0)}function Ie(e){return Fe(e,!1)}function Re(e,t){var n,r=Se&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||ze(n,o.marker)<0)&&(n=o.marker)}return n}function Be(e,t,n,r,i){var o=se(e,t),a=Se&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ge(c.from,n)||De(l.marker)-De(i),d=ge(c.to,r)||Le(l.marker)-Le(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ge(c.to,n)>=0:ge(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ge(c.from,r)<=0:ge(c.from,r)<0)))return!0}}}function Ve(e){for(var t;t=Pe(e);)e=t.find(-1,!0).line;return e}function $e(e,t){var n=se(e,t),r=Ve(n);return n==r?t:de(r)}function qe(e,t){if(t>e.lastLine())return t;var n,r=se(e,t);if(!He(e,r))return t;for(;n=Ie(r);)r=n.find(1,!0).line;return de(r)+1}function He(e,t){var n=Se&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&We(e,t,r))return!0}}function We(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return We(e,r.line,Ee(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&We(e,t,i))return!0}function Ue(e){for(var t=0,n=(e=Ve(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Ge(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Pe(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Ie(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Ke(e){var t=e.display,n=e.doc;t.maxLine=se(n,n.first),t.maxLineLength=Ge(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Ge(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Ye=null;function Xe(e,t,n){var r;Ye=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Ye=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Ye=i)}return null!=r?r:Ye}var Ze=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c,u=a.length,d=[],p=0;p<u;++p)d.push((c=a.charCodeAt(p))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":8204==c?"b":"L");for(var h=0,f=l;h<u;++h){var m=d[h];"m"==m?d[h]=f:f=m}for(var g=0,b=l;g<u;++g){var v=d[g];"1"==v&&"r"==b?d[g]="n":n.test(v)&&(b=v,"r"==v&&(d[g]="R"))}for(var y=1,x=d[0];y<u-1;++y){var w=d[y];"+"==w&&"1"==x&&"1"==d[y+1]?d[y]="1":","!=w||x!=d[y+1]||"1"!=x&&"n"!=x||(d[y]=x),x=w}for(var k=0;k<u;++k){var _=d[k];if(","==_)d[k]="N";else if("%"==_){var C=void 0;for(C=k+1;C<u&&"%"==d[C];++C);for(var S=k&&"!"==d[k-1]||C<u&&"1"==d[C]?"1":"N",O=k;O<C;++O)d[O]=S;k=C-1}}for(var E=0,j=l;E<u;++E){var T=d[E];"L"==j&&"1"==T?d[E]="L":n.test(T)&&(j=T)}for(var M=0;M<u;++M)if(t.test(d[M])){var N=void 0;for(N=M+1;N<u&&t.test(d[N]);++N);for(var A="L"==(M?d[M-1]:l),D=A==("L"==(N<u?d[N]:l))?A?"L":"R":l,L=M;L<N;++L)d[L]=D;M=N-1}for(var z,F=[],P=0;P<u;)if(r.test(d[P])){var I=P;for(++P;P<u&&r.test(d[P]);++P);F.push(new o(0,I,P))}else{var R=P,B=F.length;for(++P;P<u&&"L"!=d[P];++P);for(var V=R;V<P;)if(i.test(d[V])){R<V&&F.splice(B,0,new o(1,R,V));var $=V;for(++V;V<P&&i.test(d[V]);++V);F.splice(B,0,new o(2,$,V)),R=V}else++V;R<P&&F.splice(B,0,new o(1,R,P))}return"ltr"==s&&(1==F[0].level&&(z=a.match(/^\s+/))&&(F[0].from=z[0].length,F.unshift(new o(0,0,z[0].length))),1==K(F).level&&(z=a.match(/\s+$/))&&(K(F).to-=z[0].length,F.push(new o(0,u-z[0].length,u)))),"rtl"==s?F.reverse():F}}();function Qe(e,t){var n=e.order;return null==n&&(n=e.order=Ze(e.text,t)),n}var Je=[],et=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Je).concat(n)}};function tt(e,t){return e._handlers&&e._handlers[t]||Je}function nt(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=B(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function rt(e,t){var n=tt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function it(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),rt(e,n||t.type,e,t),ut(t)||t.codemirrorIgnore}function ot(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function at(e,t){return tt(e,t).length>0}function st(e){e.prototype.on=function(e,t){et(this,e,t)},e.prototype.off=function(e,t){nt(this,e,t)}}function lt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ct(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ut(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function dt(e){lt(e),ct(e)}function pt(e){return e.target||e.srcElement}function ht(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var ft,mt,gt=function(){if(a&&s<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}();function bt(e){if(null==ft){var t=T("span","");j(e,T("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(ft=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=ft?T("span",""):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function vt(e){if(null!=mt)return mt;var t=j(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return E(e),!(!n||n.left==n.right)&&(mt=r.right-n.right<3)}var yt,xt=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},wt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},kt="oncopy"in(yt=T("div"))||(yt.setAttribute("oncopy","return;"),"function"==typeof yt.oncopy),_t=null,Ct={},St={};function Ot(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ct[e]=t}function Et(e){if("string"==typeof e&&St.hasOwnProperty(e))e=St[e];else if(e&&"string"==typeof e.name&&St.hasOwnProperty(e.name)){var t=St[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Et("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Et("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function jt(e,t){t=Et(t);var n=Ct[t.name];if(!n)return jt(e,"text/plain");var r=n(e,t);if(Tt.hasOwnProperty(t.name)){var i=Tt[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Tt={};function Mt(e,t){P(t,Tt.hasOwnProperty(e)?Tt[e]:Tt[e]={})}function Nt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function At(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Dt(e,t,n){return!e.startState||e.startState(t,n)}var Lt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Lt.prototype.eol=function(){return this.pos>=this.string.length},Lt.prototype.sol=function(){return this.pos==this.lineStart},Lt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Lt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Lt.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Lt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Lt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Lt.prototype.skipToEnd=function(){this.pos=this.string.length},Lt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Lt.prototype.backUp=function(e){this.pos-=e},Lt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=I(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},Lt.prototype.indentation=function(){return I(this.string,null,this.tabSize)-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},Lt.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Lt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Lt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Lt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Lt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var zt=function(e,t){this.state=e,this.lookAhead=t},Ft=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Pt(e,t,n,r){var i=[e.state.modeGen],o={};Ut(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Ut(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function It(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Rt(e,de(t)),i=t.text.length>e.options.maxHighlightLength&&Nt(e.doc.mode,r.state),o=Pt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Ft(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=se(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof zt?c.lookAhead:0)<=o.modeFrontier))return s;var u=I(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&se(r,o-1).stateAfter,s=a?Ft.fromSaved(r,a,o):new Ft(r,Dt(r.mode),o);return r.iter(o,t,(function(n){Bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function Bt(e,t,n,r){var i=e.doc.mode,o=new Lt(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Vt(i,n.state);!o.eol();)$t(i,o,n.state),o.start=o.pos}function Vt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=At(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function $t(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=At(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ft.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ft.fromSaved=function(e,t,n){return t instanceof zt?new Ft(e,Nt(e.mode,t.state),n,t.lookAhead):new Ft(e,Nt(e.mode,t),n)},Ft.prototype.save=function(e){var t=!1!==e?Nt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zt(t,this.maxLookAhead):t};var qt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ht(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=se(a,(t=ke(a,t)).line),c=Rt(e,t.line,n),u=new Lt(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=$t(s,u,c.state),r&&o.push(new qt(u,i,Nt(a.mode,c.state)));return r?o:new qt(u,i,c.state)}function Wt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ut(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Lt(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&Wt(Vt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Bt(e,t,r,d.pos),d.pos=t.length,l=null):l=Wt($t(n,d,r.state,p),o),p){var h=p[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var f=Math.min(d.pos,c+5e3);i(f,u),c=f}}var Gt=function(e,t,n){this.text=e,Ae(this,t),this.height=n?n(this):1};function Kt(e){e.parent=null,Ne(e)}Gt.prototype.lineNo=function(){return de(this)},st(Gt);var Yt={},Xt={};function Zt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Xt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Qt(e,t){var n=M("span",null,null,l?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=en,vt(e.display.measure)&&(a=Qe(o,e.doc.direction))&&(r.addToken=tn(r.addToken,a)),r.map=[],rn(o,r,It(e,o,t!=e.display.externalMeasured&&de(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=L(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=L(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(bt(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return rt(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=L(r.pre.className,r.textClass||"")),r}function Jt(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function en(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){c=document.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var f=d.exec(t),m=f?f.index-h:t.length-h;if(m){var g=document.createTextNode(u.slice(h,h+m));a&&s<9?c.appendChild(T("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!f)break;h+=m+1;var b=void 0;if("\t"==f[0]){var v=e.cm.options.tabSize,y=v-e.col%v;(b=c.appendChild(T("span",G(y),"cm-tab"))).setAttribute("role","presentation"),b.setAttribute("cm-text","\t"),e.col+=y}else"\r"==f[0]||"\n"==f[0]?((b=c.appendChild(T("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((b=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&s<9?c.appendChild(T("span",[b])):c.appendChild(b),e.col+=1);e.map.push(e.pos,e.pos+1,b),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||p||o){var x=n||"";r&&(x+=r),i&&(x+=i);var w=T("span",[c],x,o);if(l)for(var k in l)l.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&w.setAttribute(k,l[k]);return e.content.appendChild(w)}e.content.appendChild(c)}}function tn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,p=0;p<t.length&&!((d=t[p]).to>c&&d.from<=c);p++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function nn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function rn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,p,h=i.length,f=0,m=1,g="",b=0;;){if(b==f){l=c=u=s="",p=null,d=null,b=1/0;for(var v=[],y=void 0,x=0;x<r.length;++x){var w=r[x],k=w.marker;if("bookmark"==k.type&&w.from==f&&k.widgetNode)v.push(k);else if(w.from<=f&&(null==w.to||w.to>f||k.collapsed&&w.to==f&&w.from==f)){if(null!=w.to&&w.to!=f&&b>w.to&&(b=w.to,c=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==f&&(u+=" "+k.startStyle),k.endStyle&&w.to==b&&(y||(y=[])).push(k.endStyle,w.to),k.title&&((p||(p={})).title=k.title),k.attributes)for(var _ in k.attributes)(p||(p={}))[_]=k.attributes[_];k.collapsed&&(!d||ze(d.marker,k)<0)&&(d=w)}else w.from>f&&b>w.from&&(b=w.from)}if(y)for(var C=0;C<y.length;C+=2)y[C+1]==b&&(c+=" "+y[C]);if(!d||d.from==f)for(var S=0;S<v.length;++S)nn(t,0,v[S]);if(d&&(d.from||0)==f){if(nn(t,(null==d.to?h+1:d.to)-f,d.marker,null==d.from),null==d.to)return;d.to==f&&(d=!1)}}if(f>=h)break;for(var O=Math.min(h,b);;){if(g){var E=f+g.length;if(!d){var j=E>O?g.slice(0,O-f):g;t.addToken(t,j,a?a+l:l,u,f+j.length==b?c:"",s,p)}if(E>=O){g=g.slice(O-f),f=O;break}f=E,u=""}g=i.slice(o,o=n[m++]),a=Zt(n[m++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,i.slice(o,o=n[T]),Zt(n[T+1],t.cm.options))}function on(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Ie(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?de(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=He(e,t)}function an(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new on(e.doc,se(e.doc,o),o);r=o+a.size,i.push(a)}return i}var sn=null,ln=null;function cn(e,t){var n=tt(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);sn?r=sn.delayedCallbacks:ln?r=ln:(r=ln=[],setTimeout(un,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function un(){var e=ln;ln=null;for(var t=0;t<e.length;++t)e[t]()}function dn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?fn(e,t):"gutter"==o?gn(e,t,n,r):"class"==o?mn(e,t):"widget"==o&&bn(e,t,r)}t.changes=null}function pn(e){return e.node==e.text&&(e.node=T("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function hn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Qt(e,t)}function fn(e,t){var n=t.text.className,r=hn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,mn(e,t)):n&&(t.text.className=n)}function mn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=pn(t);t.background=r.insertBefore(T("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?pn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function gn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=pn(t);t.gutterBackground=T("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=pn(t),s=t.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(T("div",fe(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.options.gutters.length;++l){var c=e.options.gutters[l],u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(T("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function bn(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);yn(e,t,n)}function vn(e,t,n,r){var i=hn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),mn(e,t),gn(e,t,n,r),yn(e,t,r),t.node}function yn(e,t,n){if(xn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)xn(e,t.rest[r],t,n,!1)}function xn(e,t,n,r,i){if(t.widgets)for(var o=pn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=T("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),wn(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),cn(l,"redraw")}}function wn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function kn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!N(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),j(t.display.measure,T("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function _n(e,t){for(var n=pt(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Cn(e){return e.lineSpace.offsetTop}function Sn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function On(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=j(e.measure,T("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function En(e){return 30-e.display.nativeBarWidth}function jn(e){return e.display.scroller.clientWidth-En(e)-e.display.barWidth}function Tn(e){return e.display.scroller.clientHeight-En(e)-e.display.barHeight}function Mn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(de(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Nn(e,t,n,r){return Ln(e,Dn(e,t),n,r)}function An(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[dr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Dn(e,t){var n=de(t),r=An(e,n);r&&!r.text?r=null:r&&r.changes&&(dn(e,r,n,ar(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=de(t=Ve(t)),r=e.display.externalMeasured=new on(e.doc,t,n);r.lineN=n;var i=r.built=Qt(e,r);return r.text=i.pre,j(e.display.lineMeasure,i.pre),r}(e,t));var i=Mn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Ln(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&jn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Pn(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&re(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&re(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():In(S(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=_t)return _t;var t=j(e,T("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return _t=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var h;c>0&&(d=r="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var f=l.parentNode.getClientRects()[0];i=f?{left:f.left,right:f.left+or(e.display),top:f.top,bottom:f.bottom}:Fn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,b=(m+g)/2,v=t.view.measure.heights,y=0;y<v.length-1&&!(b<v[y]);y++);var x=y?v[y-1]:0,w=v[y],k={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:x,bottom:w};return i.left||i.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=m,k.rbottom=g),k}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var zn,Fn={left:0,right:0,top:0,bottom:0};function Pn(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function In(e,t){var n=Fn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Rn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Bn(e){e.display.externalMeasure=null,E(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Rn(e.display.view[t])}function Vn(e){Bn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function $n(){return u&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function qn(){return u&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=kn(e.widgets[n]));return t}function Wn(e,t,n,r,i){if(!i){var o=Hn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Ue(t);if("local"==r?a+=Cn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:qn());var l=s.left+("window"==r?0:$n());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Un(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=$n(),i-=qn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Gn(e,t,n,r,i){return r||(r=se(e.doc,t.line)),Wn(e,r,Nn(e,r,t.ch,i),n)}function Kn(e,t,n,r,i,o){function a(t,a){var s=Ln(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Wn(e,r,s,n)}r=r||se(e.doc,t.line),i||(i=Dn(e,r));var s=Qe(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=Xe(s,l,c),p=Ye,h=u(l,d,"before"==c);return null!=p&&(h.other=u(l,p,"before"!=c)),h}function Yn(e,t){var n=0;t=ke(e.doc,t),e.options.lineWrapping||(n=or(e.display)*t.ch);var r=se(e.doc,t.line),i=Ue(r)+Cn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Xn(e,t,n,r,i){var o=me(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Zn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Xn(r.first,0,null,!0,-1);var i=pe(r,n),o=r.first+r.size-1;if(i>o)return Xn(r.first+r.size-1,se(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=se(r,i);;){var s=tr(e,a,i,t,n),l=Re(a,s.ch+(s.xRel>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=se(r,i=c.line)}}function Qn(e,t,n,r){r-=Hn(t);var i=t.text.length,o=oe((function(t){return Ln(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return Ln(e,n,t).top>r}),o,i)}}function Jn(e,t,n,r){return n||(n=Dn(e,t)),Qn(e,t,n,Wn(e,t,Ln(e,n,r),"line").top)}function er(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function tr(e,t,n,r,i){i-=Ue(t);var o=Dn(e,t),a=Hn(t),s=0,l=t.text.length,c=!0,u=Qe(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?rr:nr)(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var p,h,f=null,m=null,g=oe((function(t){var n=Ln(e,o,t);return n.top+=a,n.bottom+=a,!!er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(f=t,m=n),!0)}),s,l),b=!1;if(m){var v=r-m.left<m.right-r,y=v==c;g=f+(y?0:1),h=y?"after":"before",p=v?m.left:m.right}else{c||g!=l&&g!=s||g++,h=0==g?"after":g==t.text.length?"before":Ln(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var x=Kn(e,me(n,g,h),"line",t,o);p=x.left,b=i<x.top||i>=x.bottom}return Xn(n,g=ie(t.text,g,1),h,b,r-p)}function nr(e,t,n,r,i,o,a){var s=oe((function(s){var l=i[s],c=1!=l.level;return er(Kn(e,me(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Kn(e,me(n,c?l.from:l.to,c?"after":"before"),"line",t,r);er(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function rr(e,t,n,r,i,o,a){var s=Qn(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p<i.length;p++){var h=i[p];if(!(h.from>=c||h.to<=l)){var f=Ln(e,r,1!=h.level?Math.min(c,h.to)-1:Math.max(l,h.from)).right,m=f<o?o-f+1e9:f-o;(!u||d>m)&&(u=h,d=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function ir(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==zn){zn=T("pre");for(var t=0;t<49;++t)zn.appendChild(document.createTextNode("x")),zn.appendChild(T("br"));zn.appendChild(document.createTextNode("x"))}j(e.measure,zn);var n=zn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),E(e.measure),n||1}function or(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=T("span","xxxxxxxxxx"),n=T("pre",[t]);j(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ar(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:sr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function sr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lr(e){var t=ir(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/or(e.display)-3);return function(i){if(He(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function cr(e){var t=e.doc,n=lr(e);t.iter((function(e){var t=n(e);t!=e.height&&ue(e,t)}))}function ur(e,t,n,r){var i=e.display;if(!n&&"true"==pt(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,c=Zn(e,o,a);if(r&&1==c.xRel&&(l=se(e.doc,c.line).text).length==c.ch){var u=I(l,l.length,e.options.tabSize)-l.length;c=me(c.line,Math.max(0,Math.round((o-On(e.display).left)/or(e.display))-u))}return c}function dr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function pr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function hr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&fr(e,s.head,i),l||gr(e,s,o)}}return r}function fr(e,t,n){var r=Kn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(T("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(T("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function mr(e,t){return e.top-t.top||e.left-t.left}function gr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=On(e.display),s=a.left,l=Math.max(r.sizerWidth,jn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=se(i,t),p=d.text.length;function h(n,r){return Gn(e,me(t,n),"div",d,r)}function f(t,n,r){var i=Jn(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=Qe(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?p:r,(function(e,t,i,d){var g="ltr"==i,b=h(e,g?"left":"right"),v=h(t-1,g?"right":"left"),y=null==n&&0==e,x=null==r&&t==p,w=0==d,k=!m||d==m.length-1;if(v.top-b.top<=3){var _=(c?x:y)&&k,C=(c?y:x)&&w?s:(g?b:v).left,S=_?l:(g?v:b).right;u(C,b.top,S-C,b.bottom)}else{var O,E,j,T;g?(O=c&&y&&w?s:b.left,E=c?l:f(e,i,"before"),j=c?s:f(t,i,"after"),T=c&&x&&k?l:v.right):(O=c?f(e,i,"before"):s,E=!c&&y&&w?l:b.right,j=!c&&x&&k?s:v.left,T=c?f(t,i,"after"):l),u(O,b.top,E-O,b.bottom),b.bottom<v.top&&u(s,b.bottom,null,v.top),u(j,v.top,T-j,v.bottom)}(!o||mr(b,o)<0)&&(o=b),mr(v,o)<0&&(o=v),(!a||mr(b,a)<0)&&(a=b),mr(v,a)<0&&(a=v)})),{start:o,end:a}}var p=t.from(),h=t.to();if(p.line==h.line)d(p.line,p.ch,h.ch);else{var f=se(i,p.line),m=se(i,h.line),g=Ve(f)==Ve(m),b=d(p.line,p.ch,g?f.text.length+1:null).end,v=d(h.line,g?0:null,h.ch).start;g&&(b.top<v.top-2?(u(b.right,b.top,null,b.bottom),u(s,v.top,v.left,v.bottom)):u(b.right,b.top,v.left-b.right,b.bottom)),b.bottom<v.top&&u(s,b.bottom,null,v.top)}n.appendChild(o)}function br(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function vr(e){e.state.focused||(e.display.input.focus(),xr(e))}function yr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,wr(e))}),100)}function xr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(rt(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),br(e))}function wr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(rt(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function kr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,l=void 0,c=0;if(!i.hidden){if(a&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;l=u-n,n=u}else{var d=i.node.getBoundingClientRect();l=d.bottom-d.top,!o&&i.text.firstChild&&(c=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var p=i.line.height-l;if((p>.005||p<-.005)&&(ue(i.line,l),_r(i.line),i.rest))for(var h=0;h<i.rest.length;h++)_r(i.rest[h]);if(c>e.display.sizerWidth){var f=Math.ceil(c/or(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function _r(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Cr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Cn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=pe(t,r),a=pe(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=pe(t,Ue(se(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=pe(t,Ue(se(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Sr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=sr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Or(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=fe(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(T("div",[T("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",pi(e),!0}return!1}function Er(e,t){var n=e.display,r=ir(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Tn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Sn(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=jn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left-(h?0:10)):t.right>p+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function jr(e,t){null!=t&&(Nr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Tr(e){Nr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Mr(e,t,n){null==t&&null==n||Nr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Nr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Ar(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function Ar(e,t,n,r){var i=Er(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Mr(e,i.scrollLeft,i.scrollTop)}function Dr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||di(e,{top:t}),Lr(e,t,!0),n&&di(e),ai(e,100))}function Lr(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function zr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Sr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Sn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+En(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Pr=function(e,t,n){this.cm=n;var r=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),et(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),et(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Pr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Pr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Pr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Pr.prototype.zeroWidthHack=function(){var e=v&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Pr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Pr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ir=function(){};function Rr(e,t){t||(t=Fr(e));var n=e.display.barWidth,r=e.display.barHeight;Br(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&kr(e),Br(e,Fr(e)),n=e.display.barWidth,r=e.display.barHeight}function Br(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Ir.prototype.update=function(){return{bottom:0,right:0}},Ir.prototype.setScrollLeft=function(){},Ir.prototype.setScrollTop=function(){},Ir.prototype.clear=function(){};var Vr={native:Pr,null:Ir};function $r(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),et(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?zr(e,t):Dr(e,t)}),e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var qr=0;function Hr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qr},t=e.curOp,sn?sn.ops.push(t):t.ownsGroup=sn={ops:[t],delayedCallbacks:[]}}function Wr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{sn=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Ur(t[n]);for(var r=0;r<t.length;r++)Gr(t[r]);for(var i=0;i<t.length;i++)Kr(t[i]);for(var o=0;o<t.length;o++)Yr(t[o]);for(var a=0;a<t.length;a++)Xr(t[a])}(e)}))}function Ur(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=En(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=En(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ke(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new li(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Gr(e){e.updatedDisplay=e.mustUpdate&&ci(e.cm,e.update)}function Kr(e){var t=e.cm,n=t.display;e.updatedDisplay&&kr(t),e.barMeasure=Fr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Nn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+En(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-jn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Yr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&zr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==A();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Rr(t,e.barMeasure),e.updatedDisplay&&hi(t,e.barMeasure),e.selectionChanged&&br(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&vr(e.cm)}function Xr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&ui(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Lr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&zr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!it(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!f){var o=T("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Cn(e.display))+"px;\n height: "+(t.bottom-t.top+En(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?me(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?me(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Kn(e,t),l=n&&n!=t?Kn(e,n):s,c=Er(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Dr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(zr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,ke(r,e.scrollToPos.from),ke(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||rt(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&rt(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&rt(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Zr(e,t){if(e.curOp)return t();Hr(e);try{return t()}finally{Wr(e)}}function Qr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Hr(e);try{return t.apply(e,arguments)}finally{Wr(e)}}}function Jr(e){return function(){if(this.curOp)return e.apply(this,arguments);Hr(this);try{return e.apply(this,arguments)}finally{Wr(this)}}}function ei(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Hr(t);try{return e.apply(this,arguments)}finally{Wr(t)}}}function ti(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Se&&$e(e.doc,t)<i.viewTo&&ri(e);else if(n<=i.viewFrom)Se&&qe(e.doc,n+r)>i.viewFrom?ri(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)ri(e);else if(t<=i.viewFrom){var o=ii(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):ri(e)}else if(n>=i.viewTo){var a=ii(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):ri(e)}else{var s=ii(e,t,t,-1),l=ii(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(an(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):ri(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function ni(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[dr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==B(a,n)&&a.push(n)}}}function ri(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ii(e,t,n,r){var i,o=dr(e,t),a=e.display.view;if(!Se||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;$e(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function oi(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function ai(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,F(si,e))}function si(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Rt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Nt(t.mode,r.state):null,l=Pt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&p<a.length;++p)d=a[p]!=o.styles[p];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ai(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Zr(e,(function(){for(var t=0;t<i.length;t++)ni(e,i[t],"text")}))}}var li=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Cr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=jn(e),this.force=n,this.dims=ar(e),this.events=[]};function ci(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return ri(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==oi(e))return!1;Or(e)&&(ri(e),t.dims=ar(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Se&&(o=$e(e.doc,o),a=qe(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=an(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=an(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(dr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(an(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,dr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Ue(se(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=oi(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=A();if(!t||!N(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&N(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var p=c[d];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var h=i&&null!=t&&t<=u&&p.lineNumber;p.changes&&(B(p.changes,"gutter")>-1&&(h=!1),dn(e,p,u,n)),h&&(E(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(fe(e.options,u)))),a=p.node.nextSibling}else{var f=vn(e,p,u,n);o.insertBefore(f,a)}u+=p.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=A()&&(e.activeElt.focus(),e.anchorNode&&N(document.body,e.anchorNode)&&N(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ai(e,400)),n.updateLineNumbers=null,!0}function ui(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=jn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Sn(e.display)-Tn(e),n.top)}),t.visible=Cr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ci(e,t);r=!1){kr(e);var i=Fr(e);pr(e),Rr(e,i),hi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function di(e,t){var n=new li(e,t);if(ci(e,n)){kr(e),ui(e,n);var r=Fr(e);pr(e),Rr(e,r),hi(e,r),n.finish()}}function pi(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function hi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+En(e)+"px"}function fi(e){var t=e.display.gutters,n=e.options.gutters;E(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(T("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(e.display.lineGutter=o,o.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",pi(e)}function mi(e){var t=B(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}li.prototype.signal=function(e,t){at(e,t)&&this.events.push(arguments)},li.prototype.finish=function(){for(var e=0;e<this.events.length;e++)rt.apply(null,this.events[e])};var gi=0,bi=null;function vi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function yi(e){var t=vi(e);return t.x*=bi,t.y*=bi,t}function xi(e,t){var r=vi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&v&&l)e:for(var p=t.target,h=a.view;p!=s;p=p.parentNode)for(var f=0;f<h.length;f++)if(h[f].node==p){e.display.currentWheelTarget=p;break e}if(i&&!n&&!d&&null!=bi)return o&&u&&Dr(e,Math.max(0,s.scrollTop+o*bi)),zr(e,Math.max(0,s.scrollLeft+i*bi)),(!o||o&&u)&<(t),void(a.wheelStartX=null);if(o&&null!=bi){var m=o*bi,g=e.doc.scrollTop,b=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):b=Math.min(e.doc.height,b+m+50),di(e,{top:g,bottom:b})}gi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(bi=(bi*gi+n)/(gi+1),++gi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?bi=-.53:n?bi=15:u?bi=-.7:p&&(bi=-1/3);var wi=function(e,t){this.ranges=e,this.primIndex=t};wi.prototype.primary=function(){return this.ranges[this.primIndex]},wi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!be(n.anchor,r.anchor)||!be(n.head,r.head))return!1}return!0},wi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ki(ve(this.ranges[t].anchor),ve(this.ranges[t].head));return new wi(e,this.primIndex)},wi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},wi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ge(t,r.from())>=0&&ge(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function _i(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ge(e.from(),t.from())})),n=B(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ge(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=xe(s.from(),a.from()),u=ye(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(d?u:c,d?c:u))}}return new wi(t,n)}function Ci(e,t){return new wi([new ki(e,t||e)],0)}function Si(e){return e.text?me(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Oi(e,t){if(ge(e,t.from)<0)return e;if(ge(e,t.to)<=0)return Si(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Si(t).ch-t.to.ch),me(n,r)}function Ei(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ki(Oi(i.anchor,t),Oi(i.head,t)))}return _i(e.cm,n,e.sel.primIndex)}function ji(e,t,n){return e.line==t.line?me(n.line,e.ch-t.ch+n.ch):me(n.line+(e.line-t.line),e.ch)}function Ti(e){e.doc.mode=jt(e.options,e.doc.modeOption),Mi(e)}function Mi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ai(e,100),e.state.modeGen++,e.curOp&&ti(e)}function Ni(e,t){return 0==t.from.ch&&0==t.to.ch&&""==K(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ai(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ne(e),Ae(e,n);var i=r?r(e):1;i!=e.height&&ue(e,i)}(e,n,i,r),cn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Gt(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=se(e,s.line),d=se(e,l.line),p=K(c),h=i(c.length-1),f=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Ni(e,t)){var m=a(0,c.length-1);o(d,d.text,h),f&&e.remove(s.line,f),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+p+u.text.slice(l.ch),h);else{var g=a(1,c.length-1);g.push(new Gt(p+u.text.slice(l.ch),h,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,f);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,p+d.text.slice(l.ch),h);var b=a(1,c.length-1);f>1&&e.remove(s.line+1,f-1),e.insert(s.line+1,b)}cn(e,"change",e,t)}function Di(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Li(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,cr(e),Ti(e),zi(e),e.options.lineWrapping||Ke(e),e.options.mode=t.modeOption,ti(e)}function zi(e){("rtl"==e.doc.direction?D:O)(e.display.lineDiv,"CodeMirror-rtl")}function Fi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Pi(e,t){var n={from:ve(t.from),to:Si(t),text:le(e,t.from,t.to)};return $i(e,n,t.from.line,t.to.line+1),Di(e,(function(e){return $i(e,n,t.from.line,t.to.line+1)}),!0),n}function Ii(e){for(;e.length&&K(e).ranges;)e.pop()}function Ri(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ii(e.done),K(e.done)):e.done.length&&!K(e.done).ranges?K(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}(i,i.lastOp==r)))a=K(o.changes),0==ge(t.from,t.to)&&0==ge(t.from,a.to)?a.to=Si(t):o.changes.push(Pi(e,t));else{var l=K(i.done);for(l&&l.ranges||Vi(e.sel,i.done),o={changes:[Pi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||rt(e,"historyAdded")}function Bi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,K(i.done),t))?i.done[i.done.length-1]=t:Vi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ii(i.undone)}function Vi(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function $i(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function qi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Hi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(qi(n[i]));return r}(e,t),r=Te(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Wi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?wi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&B(t,Number(u[1]))>-1&&(K(s)[d]=c[d],delete c[d])}}}return r}function Ui(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ge(t,i)<0;o!=ge(n,i)<0?(i=t,t=n):o!=ge(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Gi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Qi(e,new wi([Ui(e.sel.primary(),t,n,i)],0),r)}function Ki(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Ui(e.sel.ranges[o],t[o],null,i);Qi(e,_i(e.cm,r,e.sel.primIndex),n)}function Yi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Qi(e,_i(e.cm,i,e.sel.primIndex),r)}function Xi(e,t,n,r){Qi(e,Ci(t,n),r)}function Zi(e,t,n){var r=e.history.done,i=K(r);i&&i.ranges?(r[r.length-1]=t,Ji(e,t,n)):Qi(e,t,n)}function Qi(e,t,n){Ji(e,t,n),Bi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ji(e,t,n){(at(e,"beforeSelectionChange")||e.cm&&at(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ki(ke(e,t[n].anchor),ke(e,t[n].head))},origin:n&&n.origin};return rt(e,"beforeSelectionChange",e,r),e.cm&&rt(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?_i(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(ge(t.primary().head,e.sel.primary().head)<0?-1:1);eo(e,no(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Tr(e.cm)}function eo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ot(e.cm)),cn(e,"cursorActivity",e))}function to(e){eo(e,no(e,e.sel,null,!1))}function no(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=io(e,a.anchor,s&&s.anchor,n,r),c=io(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ki(l,c))}return i?_i(e.cm,i,t.primIndex):t}function ro(e,t,n,r,i){var o=se(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker;if((null==s.from||(l.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(rt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var c=l.find(r<0?1:-1),u=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(c=oo(e,c,-r,c&&c.line==t.line?o:null)),c&&c.line==t.line&&(u=ge(c,n))&&(r<0?u<0:u>0))return ro(e,c,t,r,i)}var d=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(d=oo(e,d,r,d.line==t.line?o:null)),d?ro(e,d,t,r,i):null}}return t}function io(e,t,n,r,i){var o=r||1,a=ro(e,t,n,o,i)||!i&&ro(e,t,n,o,!0)||ro(e,t,n,-o,i)||!i&&ro(e,t,n,-o,!0);return a||(e.cantEdit=!0,me(e.first,0))}function oo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ke(e,me(t.line-1)):null:n>0&&t.ch==(r||se(e,t.line)).text.length?t.line<e.first+e.size-1?me(t.line+1,0):null:new me(t.line,t.ch+n)}function ao(e){e.setSelection(me(e.firstLine(),0),me(e.lastLine()),$)}function so(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ke(e,t)),n&&(r.to=ke(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),rt(e,"beforeChange",e,r),e.cm&&rt(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function lo(e,t,n){if(e.cm){if(!e.cm.curOp)return Qr(e.cm,lo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(at(e,"beforeChange")||e.cm&&at(e.cm,"beforeChange"))||(t=so(e,t,!0))){var r=Ce&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(ge(c.to,s.from)<0||ge(c.from,s.to)>0)){var u=[l,1],d=ge(c.from,s.from),p=ge(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)co(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else co(e,t)}}function co(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ge(t.from,t.to)){var n=Ei(e,t);Ri(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,Te(e,t));var r=[];Di(e,(function(e,n){n||-1!=B(r,e.history)||(bo(e.history,t),r.push(e.history)),ho(e,t,null,Te(e,t))}))}}function uo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Vi(i,l),n&&!i.equals(e.sel))return void Qi(e,i,{clearRedo:!1});a=i}var u=[];Vi(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=at(e,"beforeChange")||e.cm&&at(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,d&&!so(e,r,!1))return s.length=0,{};u.push(Pi(e,r));var o=n?Ei(e,r):K(s);ho(e,r,o,Hi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Si(r)});var a=[];Di(e,(function(e,t){t||-1!=B(a,e.history)||(bo(e.history,r),a.push(e.history)),ho(e,r,null,Hi(e,r))}))},h=i.changes.length-1;h>=0;--h){var f=p(h);if(f)return f.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new wi(Y(e.sel.ranges,(function(e){return new ki(me(e.anchor.line+t,e.anchor.ch),me(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){ti(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)ni(e.cm,r,"gutter")}}function ho(e,t,n,r){if(e.cm&&!e.cm.curOp)return Qr(e.cm,ho)(e,t,n,r);if(t.to.line<e.first)po(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);po(e,i),t={from:me(e.first,0),to:me(t.to.line+i,t.to.ch),text:[K(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:me(o,se(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=le(e,t.from,t.to),n||(n=Ei(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=de(Ve(se(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ot(e),Ai(r,t,n,lr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Ge(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=se(e,r).stateAfter;if(i&&(!(i instanceof zt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ai(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?ti(e):o.line!=a.line||1!=t.text.length||Ni(e.doc,t)?ti(e,o.line,a.line+1,c):ni(e,o.line,"text");var u=at(e,"changes"),d=at(e,"change");if(d||u){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&cn(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):Ai(e,t,r),Ji(e,n,$)}}function fo(e,t,n,r,i){var o;r||(r=n),ge(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),lo(e,{from:n,to:r,text:t,origin:i})}function mo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function go(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)mo(o.ranges[s].anchor,t,n,r),mo(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=me(c.from.line+r,c.from.ch),c.to=me(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function bo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;go(e.done,n,r,i),go(e.undone,n,r,i)}function vo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=se(e,we(e,t)):i=de(t),null==i?null:(r(o,i)&&e.cm&&ni(e.cm,i,n),o)}function yo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function xo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ki.prototype.from=function(){return xe(this.anchor,this.head)},ki.prototype.to=function(){return ye(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},yo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Kt(i),cn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},xo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof yo))){var s=[];this.collapse(s),this.children=[new yo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new yo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new xo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=B(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new xo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var wo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ko(e,t,n){Ue(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&jr(e,n)}wo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=de(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=kn(this);ue(n,Math.max(0,n.height-o)),e&&(Zr(e,(function(){ko(e,n,-o),ni(e,r,"widget")})),cn(e,"lineWidgetCleared",e,this,r))}},wo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=kn(this)-t;i&&(He(this.doc,r)||ue(r,r.height+i),n&&Zr(n,(function(){n.curOp.forceUpdate=!0,ko(n,r,i),cn(n,"lineWidgetChanged",n,e,de(r))})))},st(wo);var _o=0,Co=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++_o};function So(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=P(r)).shared=!1;var o=[So(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Di(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(So(e,ke(e,t),ke(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=K(o)})),new Oo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Qr(e.cm,So)(e,t,n,r,i);var o=new Co(e,i),a=ge(t,n);if(r&&P(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Be(e,t.line,t,n,o)||t.line!=n.line&&Be(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Se=!0}o.addToHistory&&Ri(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Ve(e)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&ue(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Oe(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){He(e,t)&&ue(t,0)})),o.clearOnEnter&&et(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ce=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++_o,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)ti(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)ni(c,u,"text");o.atomic&&to(c.doc),cn(c,"markerAdded",c,o)}return o}Co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Hr(e),at(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Ee(a.markedSpans,this);e&&!this.collapsed?ni(e,de(a),"text"):e&&(null!=s.to&&(i=de(a)),null!=s.from&&(r=de(a))),a.markedSpans=je(a.markedSpans,s),null==s.from&&this.collapsed&&!He(this.doc,a)&&e&&ue(a,ir(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Ve(this.lines[l]),u=Ge(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&ti(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&to(e.doc)),e&&cn(e,"markerCleared",e,this,r,i),t&&Wr(e),this.parent&&this.parent.clear()}},Co.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Ee(o.markedSpans,this);if(null!=a.from&&(n=me(t?o:de(o),a.from),-1==e))return n;if(null!=a.to&&(r=me(t?o:de(o),a.to),1==e))return r}return n&&{from:n,to:r}},Co.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Zr(r,(function(){var i=t.line,o=de(t.line),a=An(r,o);if(a&&(Rn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!He(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=kn(n)-s;l&&ue(i,i.height+l)}cn(r,"markerChanged",r,e)}))},Co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Co.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},st(Co);var Oo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Eo(e){return e.findMarks(me(e.first,0),e.clipPos(me(e.lastLine())),(function(e){return e.parent}))}function jo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Di(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();cn(this,"clear")}},Oo.prototype.find=function(e,t){return this.primary.find(e,t)},st(Oo);var To=0,Mo=function(e,t,n,r,i){if(!(this instanceof Mo))return new Mo(e,t,n,r,i);null==n&&(n=0),xo.call(this,[new yo([new Gt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=me(n,0);this.sel=Ci(o),this.history=new Fi(null),this.id=++To,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ai(this,{from:o,to:o,text:e}),Qi(this,Ci(o),$)};Mo.prototype=Z(xo.prototype,{constructor:Mo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ce(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ei((function(e){var t=me(this.first,0),n=this.first+this.size-1;lo(this,{from:t,to:me(n,se(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Mr(this.cm,0,0),Qi(this,Ci(t),$)})),replaceRange:function(e,t,n,r){fo(this,e,t=ke(this,t),n=n?ke(this,n):t,r)},getRange:function(e,t,n){var r=le(this,ke(this,e),ke(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(he(this,e))return se(this,e)},getLineNumber:function(e){return de(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=se(this,e)),Ve(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ke(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ei((function(e,t,n){Xi(this,ke(this,"number"==typeof e?me(e,t||0):e),null,n)})),setSelection:ei((function(e,t,n){Xi(this,ke(this,e),ke(this,t||e),n)})),extendSelection:ei((function(e,t,n){Gi(this,ke(this,e),t&&ke(this,t),n)})),extendSelections:ei((function(e,t){Ki(this,_e(this,e),t)})),extendSelectionsBy:ei((function(e,t){Ki(this,_e(this,Y(this.sel.ranges,e)),t)})),setSelections:ei((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ki(ke(this,e[i].anchor),ke(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Qi(this,_i(this.cm,r,t),n)}})),addSelection:ei((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ki(ke(this,e),ke(this,t||e))),Qi(this,_i(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=le(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=le(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ei((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=me(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=ji(s.from,i,o),c=ji(Si(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=ge(u.head,u.anchor)<0;r[a]=new ki(d?c:l,d?l:c)}else r[a]=new ki(l,l)}return new wi(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)lo(this,r[l]);s?Zi(this,s):this.cm&&Tr(this.cm)})),undo:ei((function(){uo(this,"undo")})),redo:ei((function(){uo(this,"redo")})),undoSelection:ei((function(){uo(this,"undo",!0)})),redoSelection:ei((function(){uo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new Fi(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Wi(this.history.done),undone:Wi(this.history.undone)}},setHistory:function(e){var t=this.history=new Fi(this.history.maxGeneration);t.done=Wi(e.done.slice(0),null,!0),t.undone=Wi(e.undone.slice(0),null,!0)},setGutterMarker:ei((function(e,t,n){return vo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ei((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&vo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!he(this,e))return null;if(t=e,!(e=se(this,e)))return null}else if(null==(t=de(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ei((function(e,t,n){return vo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ei((function(e,t,n){return vo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ei((function(e,t,n){return function(e,t,n,r){var i=new wo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),vo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!He(e,t)){var r=Ue(t)<e.scrollTop;ue(t,t.height+kn(i)),r&&jr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&cn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:de(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return So(this,ke(this,e),ke(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return So(this,e=ke(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=se(this,(e=ke(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ke(this,e),t=ke(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ke(this,me(n,t))},indexFromPos:function(e){var t=(e=ke(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Mo(ce(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Mo(ce(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ge(o,a)){var s=So(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Eo(this)),r},unlinkDoc:function(e){if(e instanceof Ea&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),jo(Eo(this));break}if(e.history==this.history){var n=[e.id];Di(e,(function(e){return n.push(e.id)}),!0),e.history=new Fi(null),e.history.done=Wi(this.history.done,n),e.history.undone=Wi(this.history.undone,n)}},iterLinkedDocs:function(e){Di(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):xt(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ei((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Zr(t=this.cm,(function(){zi(t),ti(t)})))}))}),Mo.prototype.eachLine=Mo.prototype.iter;var No=0;function Ao(e){var t=this;if(Do(t),!it(t,e)&&!_n(t.display,e)){lt(e),a&&(No=+new Date);var n=ur(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(e,r){if(!t.options.allowDropFileTypes||-1!=B(t.options.allowDropFileTypes,e.type)){var a=new FileReader;a.onload=Qr(t,(function(){var e=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++s==i){var l={from:n=ke(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};lo(t.doc,l),Zi(t.doc,Ci(n,Si(l)))}})),a.readAsText(e)}},c=0;c<i;++c)l(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Ji(t.doc,Ci(n,n)),d)for(var p=0;p<d.length;++p)fo(t.doc,"",d[p].anchor,d[p].head,"drag");t.replaceSelection(u,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Do(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Lo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var zo=!1;function Fo(){var e;zo||(et(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Lo(Po)}),100))})),et(window,"blur",(function(){return Lo(wr)})),zo=!0)}function Po(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Io={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ro=0;Ro<10;Ro++)Io[Ro+48]=Io[Ro+96]=String(Ro);for(var Bo=65;Bo<=90;Bo++)Io[Bo]=String.fromCharCode(Bo);for(var Vo=1;Vo<=12;Vo++)Io[Vo+111]=Io[Vo+63235]="F"+Vo;var $o={};function qo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ho(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Y(n.split(" "),qo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Wo(e,t,n,r){var i=(t=Yo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Wo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Wo(e,t.fallthrough[o],n,r);if(a)return a}}}function Uo(e){var t="string"==typeof e?e:Io[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Go(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(k?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(k?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ko(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Io[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Go(n,e,t))}function Yo(e){return"string"==typeof e?$o[e]:e}function Xo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ge(o.from,K(r).to)<=0;){var a=r.pop();if(ge(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Zr(e,(function(){for(var t=r.length-1;t>=0;t--)fo(e.doc,"",r[t].from,r[t].to,"+delete");Tr(e)}))}function Zo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qo(e,t,n){var r=Zo(e,t.ch,n);return null==r?null:new me(t.line,r,n<0?"after":"before")}function Jo(e,t,n,r,i){if(e){var o=Qe(n,t.doc.direction);if(o){var a,s=i<0?K(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Dn(t,n);a=i<0?n.text.length-1:0;var u=Ln(t,c,a).top;a=oe((function(e){return Ln(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Zo(n,a,1))}else a=i<0?s.to:s.from;return new me(r,a,l)}}return new me(r,i<0?n.text.length:0,i<0?"before":"after")}$o.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},$o.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},$o.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},$o.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},$o.default=v?$o.macDefault:$o.pcDefault;var ea={selectAll:ao,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return Xo(e,(function(t){if(t.empty()){var n=se(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:me(t.head.line+1,0)}:{from:t.head,to:me(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Xo(e,(function(t){return{from:me(t.from().line,0),to:ke(e.doc,me(t.to().line+1,0))}}))},delLineLeft:function(e){return Xo(e,(function(e){return{from:me(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Xo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Xo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(me(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(me(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return ta(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return na(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=se(e.doc,t),r=function(e){for(var t;t=Ie(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=de(r)),Jo(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),H)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),H)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?na(e,t.head):r}),H)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=I(e.getLine(o.line),o.ch,r);t.push(G(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=se(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new me(i.line,i.ch-1)),i.ch>0)i=new me(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),me(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=se(e.doc,i.line-1).text;a&&(i=new me(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),me(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Tr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ta(e,t){var n=se(e.doc,t),r=Ve(n);return r!=n&&(t=de(r)),Jo(!0,e,r,t,1)}function na(e,t){var n=ta(e,t.line),r=se(e.doc,n.line),i=Qe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return me(n.line,a?0:o,n.sticky)}return n}function ra(e,t,n){if("string"==typeof t&&!(t=ea[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=V}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var ia=new R;function oa(e,t,n,r){var i=e.state.keySeq;if(i){if(Uo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ia.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),aa(e,i+" "+t,n,r))return!0}return aa(e,t,n,r)}function aa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Wo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Wo(t,e.options.extraKeys,n,e)||Wo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&cn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(lt(n),br(e)),!!i}function sa(e,t){var n=Ko(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?oa(e,"Shift-"+n,t,(function(t){return ra(e,t,!0)}))||oa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ra(e,t)})):oa(e,n,t,(function(t){return ra(e,t)})))}var la=null;function ca(e){var t=this;if(t.curOp.focus=A(),!it(t,e)){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=sa(t,e);d&&(la=r?n:null,r||88!=n||kt||!(v?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(O(t,"CodeMirror-crosshair"),nt(document,"keyup",n),nt(document,"mouseover",n))}D(t,"CodeMirror-crosshair"),et(document,"keyup",n),et(document,"mouseover",n)}(t)}}function ua(e){16==e.keyCode&&(this.doc.sel.shift=!1),it(this,e)}function da(e){var t=this;if(!(_n(t.display,e)||it(t,e)||e.ctrlKey&&!e.altKey||v&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==la)return la=null,void lt(e);if(!d||e.which&&!(e.which<10)||!sa(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return oa(e,"'"+n+"'",t,(function(t){return ra(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var pa,ha,fa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ma(e){var t=this,n=t.display;if(!(it(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,_n(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!va(t,e)){var r=ur(t,e),i=ht(e),o=r?function(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(pa=ha=null,"triple"):pa&&pa.compare(n,e,t)?(ha=new fa(n,e,t),pa=null,"double"):(pa=new fa(n,e,t),ha=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),oa(e,Go(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ea[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=V}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(F(vr,e),0):e.curOp.focus=A();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=y?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=v?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(v?n.altKey:n.ctrlKey)),i}(e,n,r),c=e.doc.sel;e.options.dragDrop&>&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-1&&(ge((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(ge(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=Qr(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,nt(i.wrapper.ownerDocument,"mouseup",c),nt(i.wrapper.ownerDocument,"mousemove",u),nt(i.scroller,"dragstart",d),nt(i.scroller,"drop",c),o||(lt(t),r.addNew||Gi(e.doc,n,null,null,r.extend),l||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),et(i.wrapper.ownerDocument,"mouseup",c),et(i.wrapper.ownerDocument,"mousemove",u),et(i.scroller,"dragstart",d),et(i.scroller,"drop",c),yr(e),setTimeout((function(){return i.input.focus()}),20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;lt(t);var a,s,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new ki(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ki(n,n)),n=ur(e,t,!0,!0),s=-1;else{var u=ga(e,n,r.unit);a=r.extend?Ui(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,Qi(o,_i(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Qi(o,_i(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Yi(o,s,a,q):(s=0,Qi(o,new wi([a],0),q),l=o.sel);var d=n;function p(t){if(0!=ge(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,u=I(se(o,n.line).text,n.ch,c),p=I(se(o,t.line).text,t.ch,c),h=Math.min(u,p),f=Math.max(u,p),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var b=se(o,m).text,v=W(b,h,c);h==f?i.push(new ki(me(m,v),me(m,v))):b.length>v&&i.push(new ki(me(m,v),me(m,W(b,f,c))))}i.length||i.push(new ki(n,n)),Qi(o,_i(e,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,x=a,w=ga(e,t,r.unit),k=x.anchor;ge(w.anchor,k)>0?(y=w.head,k=xe(x.from(),w.anchor)):(y=w.anchor,k=ye(x.to(),w.head));var _=l.ranges.slice(0);_[s]=function(e,t){var n=t.anchor,r=t.head,i=se(e.doc,n.line);if(0==ge(n,r)&&n.sticky==r.sticky)return t;var o=Qe(i);if(!o)return t;var a=Xe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=Xe(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=o[c+(l?-1:0)],h=l==(1==p.level),f=h?p.from:p.to,m=h?"after":"before";return n.ch==f&&n.sticky==m?t:new ki(new me(n.line,f,m),r)}(e,new ki(ke(o,k),y)),Qi(o,_i(e,_,s),q)}}var h=i.wrapper.getBoundingClientRect(),f=0;function m(t){e.state.selectingText=!1,f=1/0,lt(t),i.input.focus(),nt(i.wrapper.ownerDocument,"mousemove",g),nt(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=Qr(e,(function(t){0!==t.buttons&&ht(t)?function t(n){var a=++f,s=ur(e,n,!0,"rectangle"==r.unit);if(s)if(0!=ge(s,d)){e.curOp.focus=A(),p(s);var l=Cr(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(Qr(e,(function(){f==a&&t(n)})),150)}else{var c=n.clientY<h.top?-20:n.clientY>h.bottom?20:0;c&&setTimeout(Qr(e,(function(){f==a&&(i.scroller.scrollTop+=c,t(n))})),50)}}(t):m(t)})),b=Qr(e,m);e.state.selectingText=b,et(i.wrapper.ownerDocument,"mousemove",g),et(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):pt(e)==n.scroller&<(e):2==i?(r&&Gi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(_?t.display.input.onContextMenu(e):yr(t)))}}function ga(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(me(t.line,0),ke(e.doc,me(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function ba(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&<(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!at(e,n))return ut(t);o-=s.top-a.viewOffset;for(var l=0;l<e.options.gutters.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return rt(e,n,e,pe(e.doc,o),e.options.gutters[l],t),ut(t)}}function va(e,t){return ba(e,t,"gutterClick",!0)}function ya(e,t){_n(e.display,t)||function(e,t){return!!at(e,"gutterContextMenu")&&ba(e,t,"gutterContextMenu",!1)}(e,t)||it(e,t,"contextmenu")||_||e.display.input.onContextMenu(t)}function xa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Vn(e)}fa.prototype.compare=function(e,t,n){return this.time+400>e&&0==ge(t,this.pos)&&n==this.button};var wa={toString:function(){return"CodeMirror.Init"}},ka={},_a={};function Ca(e){fi(e),ti(e),Sr(e)}function Sa(e,t,n){if(!t!=!(n&&n!=wa)){var r=e.display.dragFunctions,i=t?et:nt;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Oa(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),Ke(e)),cr(e),ti(e),Vn(e),setTimeout((function(){return Rr(e)}),100)}function Ea(e,t){var n=this;if(!(this instanceof Ea))return new Ea(e,t);this.options=t=t?P(t):{},P(ka,t,!1),mi(t);var r=t.value;"string"==typeof r?r=new Mo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ea.inputStyles[t.inputStyle](this),o=this.display=new ae(e,r,i);for(var c in o.wrapper.CodeMirror=this,fi(this),xa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),$r(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!b&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;et(t.scroller,"mousedown",Qr(e,ma)),et(t.scroller,"dblclick",a&&s<11?Qr(e,(function(t){if(!it(e,t)){var n=ur(e,t);if(n&&!va(e,t)&&!_n(e.display,t)){lt(t);var r=e.findWordAt(n);Gi(e.doc,r.anchor,r.head)}}})):function(t){return it(e,t)||lt(t)}),et(t.scroller,"contextmenu",(function(t){return ya(e,t)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}et(t.scroller,"touchstart",(function(i){if(!it(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!va(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),et(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),et(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!_n(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new ki(me(s.line,0),ke(e.doc,me(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),lt(n)}i()})),et(t.scroller,"touchcancel",i),et(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Dr(e,t.scroller.scrollTop),zr(e,t.scroller.scrollLeft,!0),rt(e,"scroll",e))})),et(t.scroller,"mousewheel",(function(t){return xi(e,t)})),et(t.scroller,"DOMMouseScroll",(function(t){return xi(e,t)})),et(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){it(e,t)||dt(t)},over:function(t){it(e,t)||(function(e,t){var n=ur(e,t);if(n){var r=document.createDocumentFragment();fr(e,n,r),e.display.dragCursor||(e.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),j(e.display.dragCursor,r)}}(e,t),dt(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-No<100))dt(t);else if(!it(e,t)&&!_n(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=T("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(e,t)},drop:Qr(e,Ao),leave:function(t){it(e,t)||Do(e)}};var l=t.input.getField();et(l,"keyup",(function(t){return ua.call(e,t)})),et(l,"keydown",Qr(e,ca)),et(l,"keypress",Qr(e,da)),et(l,"focus",(function(t){return xr(e,t)})),et(l,"blur",(function(t){return wr(e,t)}))}(this),Fo(),Hr(this),this.curOp.forceUpdate=!0,Li(this,r),t.autofocus&&!b||this.hasFocus()?setTimeout(F(xr,this),20):wr(this),_a)_a.hasOwnProperty(c)&&_a[c](this,t[c],wa);Or(this),t.finishInit&&t.finishInit(this);for(var u=0;u<ja.length;++u)ja[u](this);Wr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ea.defaults=ka,Ea.optionHandlers=_a;var ja=[];function Ta(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Rt(e,t).state:n="prev");var a=e.options.tabSize,s=se(o,t),l=I(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==V||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?I(se(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",p=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)p+=a,d+="\t";if(p<c&&(d+=G(c-p)),d!=u)return fo(o,d,me(t,0),me(t,u.length),"+input"),s.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var m=o.sel.ranges[f];if(m.head.line==t&&m.head.ch<u.length){var g=me(t,u.length);Yi(o,f,new ki(g,g));break}}}Ea.defineInitHook=function(e){return ja.push(e)};var Ma=null;function Na(e){Ma=e}function Aa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=xt(t),c=null;if(s&&r.ranges.length>1)if(Ma&&Ma.text.join("\n")==t){if(r.ranges.length%Ma.text.length==0){c=[];for(var u=0;u<Ma.text.length;u++)c.push(o.splitLines(Ma.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Y(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var h=r.ranges[p],f=h.from(),m=h.to();h.empty()&&(n&&n>0?f=me(f.line,f.ch-n):e.state.overwrite&&!s?m=me(m.line,Math.min(se(o,m.line).text.length,m.ch+K(l).length)):s&&Ma&&Ma.lineWise&&Ma.text.join("\n")==t&&(f=m=me(f.line,0)));var g={from:f,to:m,text:c?c[p%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};lo(e.doc,g),cn(e,"inputRead",e,g)}t&&!s&&La(e,t),Tr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Da(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zr(t,(function(){return Aa(t,n,0,null,"paste")})),!0}function La(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Ta(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(se(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ta(e,i.head.line,"smart"));a&&cn(e,"electricInput",e,i.head.line)}}}function za(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:me(i,0),head:me(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Fa(e,t,n,r){e.setAttribute("autocorrect",!!n),e.setAttribute("autocapitalize",!!r),e.setAttribute("spellcheck",!!t)}function Pa(){var e=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=T("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Fa(e),t}function Ia(e,t,n,r,i){var o=t,a=n,s=se(e,t.line);function l(r){var o,a;if(null==(o=i?function(e,t,n,r){var i=Qe(t,e.doc.direction);if(!i)return Qo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Xe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Qo(t,n,r);var s,l=function(e,n){return Zo(t,e instanceof me?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||Dn(e,t),Jn(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,p=l(n,d?1:-1);if(null!=p&&(d?p<=a.to&&p<=u.end:p>=a.from&&p>=u.begin)){var h=d?"before":"after";return new me(n.line,p,h)}}var f=function(e,t,r){for(var o=function(e,t){return t?new me(n.line,l(e,1),"before"):new me(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=f(o+r,r,u);if(m)return m;var g=r>0?u.end:l(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=f(r>0?0:i.length-1,r,c(g)))?null:m}(e.cm,s,t,n):Qo(s,t,n))){if(r||(a=t.line+n)<e.first||a>=e.first+e.size||(t=new me(a,t.ch,t.sticky),!(s=se(e,a))))return!1;t=Jo(i,e.cm,s,t.line,n)}else t=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var c=null,u="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||l(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",f=ee(h,d)?"w":u&&"\n"==h?"n":!u||/\s/.test(h)?null:"p";if(!u||p||f||(f="s"),c&&c!=f){n<0&&(n=1,l(),t.sticky="after");break}if(f&&(c=f),n>0&&!l(!p))break}var m=io(e,t,o,a,!0);return be(o,m)&&(m.hitSide=!0),m}function Ra(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*ir(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Zn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ba=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Va(e,t){var n=An(e,t.line);if(!n||n.hidden)return null;var r=se(e.doc,t.line),i=Mn(n,r,t.line),o=Qe(r,e.doc.direction),a="left";o&&(a=Xe(o,t.ch)%2?"right":"left");var s=Pn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function $a(e,t){return t&&(e.bad=!0),e}function qa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return $a(e.clipPos(me(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ha(o,t,n)}}function Ha(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!N(r,t))return $a(me(de(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?K(e.rest):e.line;return $a(me(de(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=de(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),me(u,d)}}}var d=u(a,s,n);if(d)return $a(d,i);for(var p=s.nextSibling,h=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(d=u(p,p.firstChild,0))return $a(me(d.line,d.ch-h),i);h+=p.textContent.length}for(var f=s.previousSibling,m=n;f;f=f.previousSibling){if(d=u(f,f.firstChild,-1))return $a(me(d.line,d.ch+m),i);m+=f.textContent.length}}Ba.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!it(r,e)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=za(r);Na({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,$),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=Ma.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Pa(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Ma.text.join("\n");var l=document.activeElement;z(s),setTimeout((function(){r.display.lineSpace.removeChild(a),l.focus(),l==i&&n.showPrimarySelection()}),50)}}Fa(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),et(i,"paste",(function(e){it(r,e)||Da(e,r)||s<=11&&setTimeout(Qr(r,(function(){return t.updateFromDOM()})),20)})),et(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),et(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),et(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),et(i,"touchstart",(function(){return n.forceCompositionEnd()})),et(i,"input",(function(){t.composing||t.readFromDOMSoon()})),et(i,"copy",o),et(i,"cut",o)},Ba.prototype.prepareSelection=function(){var e=hr(this.cm,!1);return e.focus=this.cm.state.focused,e},Ba.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ba.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ba.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=qa(t,e.anchorNode,e.anchorOffset),s=qa(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ge(xe(a,s),i)||0!=ge(ye(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&Va(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Va(t,o);if(!u){var d=l[l.length-1].measure,p=d.maps?d.maps[d.maps.length-1]:d.map;u={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(c&&u){var h,f=e.rangeCount&&e.getRangeAt(0);try{h=S(c.node,c.offset,u.offset,u.node)}catch(e){}h&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),f&&null==e.anchorNode?e.addRange(f):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ba.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ba.prototype.showMultipleSelections=function(e){j(this.cm.display.cursorDiv,e.cursors),j(this.cm.display.selectionDiv,e.selection)},Ba.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ba.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return N(this.div,t)},Ba.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ba.prototype.blur=function(){this.div.blur()},Ba.prototype.getField=function(){return this.div},Ba.prototype.supportsTouch=function(){return!0},Ba.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Zr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Ba.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ba.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&u&&this.cm.options.gutters.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=qa(t,e.anchorNode,e.anchorOffset),r=qa(t,e.focusNode,e.focusOffset);n&&r&&Zr(t,(function(){Qi(t.doc,Ci(n,r),$),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ba.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=me(a.line-1,se(r.doc,a.line-1).length)),s.ch==se(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=me(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=dr(r,a.line))?(t=de(i.view[0].line),n=i.view[0].node):(t=de(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=dr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=de(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(me(r,0),me(i+1,0),(g=+p,function(e){return e.id==g}));return void(h.length&&(o=h[0].find(0))&&u(le(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;f&&c();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),f&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,c,t,l)),p=le(r.doc,me(t,0),me(l,se(r.doc,l).text.length));d.length>1&&p.length>1;)if(K(d)==K(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var h=0,f=0,m=d[0],g=p[0],b=Math.min(m.length,g.length);h<b&&m.charCodeAt(h)==g.charCodeAt(h);)++h;for(var v=K(d),y=K(p),x=Math.min(v.length-(1==d.length?h:0),y.length-(1==p.length?h:0));f<x&&v.charCodeAt(v.length-f-1)==y.charCodeAt(y.length-f-1);)++f;if(1==d.length&&1==p.length&&t==a.line)for(;h&&h>a.ch&&v.charCodeAt(v.length-f-1)==y.charCodeAt(y.length-f-1);)h--,f++;d[d.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var w=me(t,h),k=me(l,p.length?K(p).length-f:0);return d.length>1||d[0]||ge(w,k)?(fo(r.doc,d,w,k,"+input"),!0):void 0},Ba.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ba.prototype.reset=function(){this.forceCompositionEnd()},Ba.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ba.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ba.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Zr(this.cm,(function(){return ti(e.cm)}))},Ba.prototype.setUneditable=function(e){e.contentEditable="false"},Ba.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Qr(this.cm,Aa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ba.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ba.prototype.onContextMenu=function(){},Ba.prototype.resetPosition=function(){},Ba.prototype.needsContentAttribute=!0;var Wa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};Wa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!it(r,e)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=za(r);Na({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),z(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),et(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),et(i,"paste",(function(e){it(r,e)||Da(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),et(i,"cut",o),et(i,"copy",o),et(e.scroller,"paste",(function(t){if(!_n(e,t)&&!it(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),et(e.lineSpace,"selectstart",(function(t){_n(e,t)||lt(t)})),et(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),et(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Wa.prototype.createField=function(e){this.wrapper=Pa(),this.textarea=this.wrapper.firstChild},Wa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=hr(e);if(e.options.moveInputWithCursor){var i=Kn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Wa.prototype.showSelection=function(e){var t=this.cm.display;j(t.cursorDiv,e.cursors),j(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wa.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&z(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Wa.prototype.getField=function(){return this.textarea},Wa.prototype.supportsTouch=function(){return!1},Wa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||A()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wa.prototype.blur=function(){this.textarea.blur()},Wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wa.prototype.receivedFocus=function(){this.slowPoll()},Wa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Wa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Wa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||wt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Zr(t,(function(){Aa(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Wa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ur(n,e),c=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Qr(n,Qi)(n.doc,Ci(o),$);var u,p=i.style.cssText,h=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),r.input.focus(),l&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=b,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),_){dt(e);var m=function(){nt(window,"mouseup",m),setTimeout(b,20)};et(window,"mouseup",m)}else setTimeout(b,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function b(){if(t.contextMenuPending==b&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Qr(n,ao)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Wa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Wa.prototype.setUneditable=function(){},Wa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=wa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=wa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Ti(e)}),!0),n("indentUnit",2,Ti,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Mi(e),Vn(e),ti(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(me(r,o))}r++}));for(var i=n.length-1;i>=0;i--)fo(e.doc,t,n[i],me(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=wa&&e.refresh()})),n("specialCharPlaceholder",Jt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){xa(e),Ca(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Yo(t),i=n!=wa&&Yo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Oa,!0),n("gutters",[],(function(e){mi(e.options),Ca(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?sr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Rr(e)}),!0),n("scrollbarStyle","native",(function(e){$r(e),Rr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e){mi(e.options),Ca(e)}),!0),n("firstLineNumber",1,Ca,!0),n("lineNumberFormatter",(function(e){return e}),Ca,!0),n("showCursorWhenSelecting",!1,pr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(wr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Sa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,pr,!0),n("singleCursorHeightPerLine",!0,pr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Mi,!0),n("addModeClass",!1,Mi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Mi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ea),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Qr(this,t[e])(this,n,i),rt(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Yo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Jr((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,ti(this)})),removeOverlay:Jr((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void ti(this)}})),indentLine:Jr((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),he(this.doc,e)&&Ta(this,e,t,n)})),indentSelection:Jr((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ta(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Tr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Ta(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Yi(this.doc,r,new ki(o,c[r].to()),$)}}})),getTokenAt:function(e,t){return Ht(this,e,t)},getLineTokens:function(e,t){return Ht(this,me(e),t,!0)},getTokenTypeAt:function(e){e=ke(this.doc,e);var t,n=It(this,se(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==B(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return Rt(this,(e=we(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Kn(this,null==e?n.head:"object"==typeof e?ke(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Gn(this,ke(this.doc,e),t||"page")},coordsChar:function(e,t){return Zn(this,(e=Un(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Un(this,{top:e,left:0},t||"page").top,pe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=se(this.doc,e)}else r=e;return Wn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Ue(r):0)},defaultTextHeight:function(){return ir(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,c=(e=Kn(this,ke(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var d=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(c=e.bottom),u+t.offsetWidth>p&&(u=p-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(u=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=Er(o,a)).scrollTop&&Dr(o,s.scrollTop),null!=s.scrollLeft&&zr(o,s.scrollLeft))},triggerOnKeyDown:Jr(ca),triggerOnKeyPress:Jr(da),triggerOnKeyUp:ua,triggerOnMouseDown:Jr(ma),execCommand:function(e){if(ea.hasOwnProperty(e))return ea[e].call(null,this)},triggerElectric:Jr((function(e){La(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ke(this.doc,e),a=0;a<t&&!(o=Ia(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Jr((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ia(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),H)})),deleteH:Jr((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Xo(this,(function(n){var i=Ia(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ke(this.doc,e),s=0;s<t;++s){var l=Kn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Ra(this,l,i,n)).hitSide)break}return a},moveV:Jr((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Kn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Ra(n,s,e,t);return"page"==t&&a==r.sel.primary()&&jr(n,Gn(n,l,"div").top-s.top),l}),H),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=se(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ki(me(e.line,n),me(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?D(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),rt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==A()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Jr((function(e,t){Mr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-En(this)-this.display.barHeight,width:e.scrollWidth-En(this)-this.display.barWidth,clientHeight:Tn(this),clientWidth:jn(this)}},scrollIntoView:Jr((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:me(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Nr(e),e.curOp.scrollToPos=t}(this,e):Ar(this,e.from,e.to,e.margin)})),setSize:Jr((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){ni(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,rt(this,"refresh",this)})),operation:function(e){return Zr(this,e)},startOperation:function(){return Hr(this)},endOperation:function(){return Wr(this)},refresh:Jr((function(){var e=this.display.cachedTextHeight;ti(this),this.curOp.forceUpdate=!0,Vn(this),Mr(this,this.doc.scrollLeft,this.doc.scrollTop),pi(this),(null==e||Math.abs(e-ir(this.display))>.5)&&cr(this),rt(this,"refresh",this)})),swapDoc:Jr((function(e){var t=this.doc;return t.cm=null,Li(this,e),Vn(this),this.display.input.reset(),Mr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},st(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ea);var Ua="iter insert remove copy getEditor constructor".split(" ");for(var Ga in Mo.prototype)Mo.prototype.hasOwnProperty(Ga)&&B(Ua,Ga)<0&&(Ea.prototype[Ga]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[Ga]));return st(Mo),Ea.inputStyles={textarea:Wa,contenteditable:Ba},Ea.defineMode=function(e){Ea.defaults.mode||"null"==e||(Ea.defaults.mode=e),Ot.apply(this,arguments)},Ea.defineMIME=function(e,t){St[e]=t},Ea.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ea.defineMIME("text/plain","null"),Ea.defineExtension=function(e,t){Ea.prototype[e]=t},Ea.defineDocExtension=function(e,t){Mo.prototype[e]=t},Ea.fromTextArea=function(e,t){if((t=t?P(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=A();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(et(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(nt(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Ea((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=nt,e.on=et,e.wheelEventPixels=yi,e.Doc=Mo,e.splitLines=xt,e.countColumn=I,e.findColumn=W,e.isWordChar=J,e.Pass=V,e.signal=rt,e.Line=Gt,e.changeEnd=Si,e.scrollbarModel=Vr,e.Pos=me,e.cmpPos=ge,e.modes=Ct,e.mimeModes=St,e.resolveMode=Et,e.getMode=jt,e.modeExtensions=Tt,e.extendMode=Mt,e.copyState=Nt,e.startState=Dt,e.innerMode=At,e.commands=ea,e.keyMap=$o,e.keyName=Ko,e.isModifierKey=Uo,e.lookupKey=Wo,e.normalizeKeyMap=Ho,e.StringStream=Lt,e.SharedTextMarker=Oo,e.TextMarker=Co,e.LineWidget=wo,e.e_preventDefault=lt,e.e_stopPropagation=ct,e.e_stop=dt,e.addClass=D,e.contains=N,e.rmClass=O,e.keyNames=Io}(Ea),Ea.version="5.43.1",Ea}()},function(e,t,n){e.exports=n(29)},function(e,t,n){"use strict";var r=n(9);t.a={initialize:()=>r.a.get("initialize"),tree:(e,t)=>r.a.get("tree",{params:{disk:e,path:t}}),selectDisk:e=>r.a.get("select-disk",{params:{disk:e}}),content:(e,t)=>r.a.get("content",{params:{disk:e,path:t}}),url:(e,t)=>r.a.get("url",{params:{disk:e,path:t}}),getFile:(e,t)=>r.a.get("download",{params:{disk:e,path:t}}),getFileArrayBuffer:(e,t)=>r.a.get("download",{responseType:"arraybuffer",params:{disk:e,path:t}}),thumbnail:(e,t)=>r.a.get("thumbnails",{responseType:"arraybuffer",params:{disk:e,path:t}}),preview:(e,t)=>r.a.get("preview",{responseType:"arraybuffer",params:{disk:e,path:t}}),download:(e,t)=>r.a.get("download",{responseType:"arraybuffer",params:{disk:e,path:t}})}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.a={methods:{bytesToHuman(e){const t=["Bytes","KB","MB","GB","TB"];if(0===e)return"0 Bytes";const n=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10);return 0===n?`${e} ${t[n]}`:`${(e/1024**n).toFixed(1)} ${t[n]}`},timestampToDate(e){if(null==e)return"-";return new Date(1e3*e).toLocaleString(this.$store.state.fm.settings.lang)},mimeToIcon(e){const t={"image/gif":"bi-file-earmark-image","image/png":"bi-file-earmark-image","image/jpeg":"bi-file-earmark-image","image/bmp":"bi-file-earmark-image","image/webp":"bi-file-earmark-image","image/tiff":"bi-file-earmark-image","image/svg+xml":"bi-file-earmark-image","text/plain":"bi-file-earmark-font","text/javascript":"bi-file-earmark-code","application/json":"bi-file-earmark-code","text/markdown":"bi-file-earmark-code","text/html":"bi-file-earmark-code","text/css":"bi-file-earmark-code","audio/midi":"bi-file-earmark-music","audio/mpeg":"bi-file-earmark-music","audio/webm":"bi-file-earmark-music","audio/ogg":"bi-file-earmark-music","audio/wav":"bi-file-earmark-music","audio/aac":"bi-file-earmark-music","audio/x-wav":"bi-file-earmark-music","audio/mp4":"bi-file-earmark-music","video/webm":"bi-file-earmark-play","video/ogg":"bi-file-earmark-play","video/mpeg":"bi-file-earmark-play","video/3gpp":"bi-file-earmark-play","video/x-flv":"bi-file-earmark-play","video/mp4":"bi-file-earmark-play","video/quicktime":"bi-file-earmark-play","video/x-msvideo":"bi-file-earmark-play","video/vnd.dlna.mpeg-tts":"bi-file-earmark-play","application/x-bzip":"bi-file-earmark-zip","application/x-bzip2":"bi-file-earmark-zip","application/x-tar":"bi-file-earmark-zip","application/gzip":"bi-file-earmark-zip","application/zip":"bi-file-earmark-zip","application/x-7z-compressed":"bi-file-earmark-zip","application/x-rar-compressed":"bi-file-earmark-zip","application/pdf":"bi-file-earmark-pdf","application/rtf":"bi-file-earmark-word","application/msword":"bi-file-earmark-word","application/vnd.ms-word":"bi-file-earmark-word","application/vnd.ms-excel":"bi-file-earmark-excel","application/vnd.ms-powerpoint":"bi-file-earmark-ppt","application/vnd.oasis.opendocument.text":"bi-file-earmark-word","application/vnd.oasis.opendocument.spreadsheet":"bi-file-earmark-excel","application/vnd.oasis.opendocument.presentation":"bi-file-earmark-ppt","application/vnd.openxmlformats-officedocument.wordprocessingml":"bi-file-earmark-word","application/vnd.openxmlformats-officedocument.spreadsheetml":"bi-file-earmark-excel","application/vnd.openxmlformats-officedocument.presentationml":"bi-file-earmark-ppt"};return void 0!==t[e]?t[e]:"bi-file-earmark"},extensionToIcon(e){const t={gif:"bi-file-earmark-image",png:"bi-file-earmark-image",jpeg:"bi-file-earmark-image",jpg:"bi-file-earmark-image",bmp:"bi-file-earmark-image",psd:"bi-file-earmark-image",svg:"bi-file-earmark-image",ico:"bi-file-earmark-image",ai:"bi-file-earmark-image",tif:"bi-file-earmark-image",tiff:"bi-file-earmark-image",webp:"bi-file-earmark-image",txt:"bi-file-earmark-font",json:"bi-file-earmark-font",log:"bi-file-earmark-font",ini:"bi-file-earmark-font",xml:"bi-file-earmark-font",md:"bi-file-earmark-font",env:"bi-file-earmark-font",js:"bi-file-earmark-code",php:"bi-file-earmark-code",css:"bi-file-earmark-code",cpp:"bi-file-earmark-code",class:"bi-file-earmark-code",h:"bi-file-earmark-code",java:"bi-file-earmark-code",sh:"bi-file-earmark-code",swift:"bi-file-earmark-code",aif:"bi-file-earmark-music",cda:"bi-file-earmark-music",mid:"bi-file-earmark-music",mp3:"bi-file-earmark-music",mpa:"bi-file-earmark-music",ogg:"bi-file-earmark-music",wav:"bi-file-earmark-music",wma:"bi-file-earmark-music",wmv:"bi-file-earmark-play",avi:"bi-file-earmark-play",mpeg:"bi-file-earmark-play",mpg:"bi-file-earmark-play",flv:"bi-file-earmark-play",mp4:"bi-file-earmark-play",mkv:"bi-file-earmark-play",mov:"bi-file-earmark-play",ts:"bi-file-earmark-play","3gpp":"bi-file-earmark-play",zip:"bi-file-earmark-zip",arj:"bi-file-earmark-zip",deb:"bi-file-earmark-zip",pkg:"bi-file-earmark-zip",rar:"bi-file-earmark-zip",rpm:"bi-file-earmark-zip","7z":"bi-file-earmark-zip","tar.gz":"bi-file-earmark-zip",pdf:"bi-file-earmark-pdf",rtf:"bi-file-earmark-word",doc:"bi-file-earmark-word",docx:"bi-file-earmark-word",odt:"bi-file-earmark-word",xlr:"bi-file-earmark-excel",xls:"bi-file-earmark-excel",xlsx:"bi-file-earmark-excel",ppt:"bi-file-earmark-ppt",pptx:"bi-file-earmark-ppt",pptm:"bi-file-earmark-ppt",xps:"bi-file-earmark-ppt",potx:"bi-file-earmark-ppt"};return e&&void 0!==t[e.toLowerCase()]?t[e.toLowerCase()]:"bi-file-earmark"}}}},function(e,t,n){"use strict";(function(e){let r,i;function o(){return void 0!==r||("undefined"!=typeof window&&window.performance?(r=!0,i=window.performance):void 0!==e&&(null===(t=e.perf_hooks)||void 0===t?void 0:t.performance)?(r=!0,i=e.perf_hooks.performance):r=!1),r?i.now():Date.now();var t}n.d(t,"a",(function(){return o}))}).call(this,n(13))},function(e,t,n){"use strict";(function(e){function r(){return i().__VUE_DEVTOOLS_GLOBAL_HOOK__}function i(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==e?e:{}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));const o="function"==typeof Proxy}).call(this,n(13))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(16);var i=n(15);class o{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const r="__vue-devtools-plugin-settings__"+e.id;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch(e){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}o=e},now:()=>Object(i.a)()},t&&t.on("plugin:settings:set",(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function a(e,t){const n=e,i=Object(r.b)(),a=Object(r.a)(),s=r.c&&n.enableEarlyProxy;if(!a||!i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&s){const e=s?new o(n,a):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else a.emit("devtools-plugin:setup",e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"c",(function(){return A}));var r=n(0),i=n(17);function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,r=(n=function(t){return t.original===e},t.filter(n)[0]);if(r)return r.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=o(e[n],t)})),i}function a(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(e){return null!==e&&"object"==typeof e}function l(e,t){if(!e)throw new Error("[vuex] "+t)}function c(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function u(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;p(e,n,[],e._modules.root,!0),d(e,n,t)}function d(e,t,n){var i=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={};a(o,(function(t,n){s[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return s[n]()},enumerable:!0})})),e._state=Object(r.reactive)({data:t}),e.strict&&function(e){Object(r.watch)((function(){return e._state.data}),(function(){l(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,flush:"sync"})}(e),i&&n&&e._withCommit((function(){i.data=null}))}function p(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[a]=r),!o&&!i){var s=f(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+n.join(".")+'"'),s[l]=r.state}))}var c=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,l=o.type;if(s&&s.root||(l=t+l,e._actions[l]))return e.dispatch(l,a);console.error("[vuex] unknown local action type: "+o.type+", global type: "+l)},commit:r?e.commit:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l,e._mutations[l])?e.commit(l,a,s):console.error("[vuex] unknown local mutation type: "+o.type+", global type: "+l)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return h(e,t)}},state:{get:function(){return f(e.state,n)}}}),i}(e,a,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,a+n,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,r,i,c)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void console.error("[vuex] duplicate getter key: "+t);e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,c)})),r.forEachChild((function(r,o){p(e,t,n.concat(o),r,i)}))}function h(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function f(e,t){return t.reduce((function(e,t){return e[t]}),e)}function m(e,t,n){return s(e)&&e.type&&(n=t,t=e,e=e.type),l("string"==typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var g=0;function b(e,t){Object(i.a)({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:"vuex:mutations",label:"Vuex Mutations",color:v}),n.addTimelineLayer({id:"vuex:actions",label:"Vuex Actions",color:v}),n.addInspector({id:"vuex",label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&"vuex"===n.inspectorId)if(n.filter){var r=[];!function e(t,n,r,i){i.includes(r)&&t.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:n.namespaced?[y]:[]});Object.keys(n._children).forEach((function(o){e(t,n._children[o],r,i+o+"/")}))}(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[w(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&"vuex"===n.inspectorId){var r=n.nodeId;h(t,r),n.state=function(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var o=function(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var i=t,o=r.pop();r.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[o]=k((function(){return e[n]}))}else t[n]=k((function(){return e[n]}))})),t}(t);i.getters=Object.keys(o).map((function(e){return{key:e.endsWith("/")?x(e):e,editable:!1,value:k((function(){return o[e]}))}}))}return i}((i=t._modules,(a=(o=r).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var r=e[t];if(!r)throw new Error('Missing module "'+t+'" for path "'+o+'".');return n===a.length-1?r:r._children}),"root"===o?i:i.root._children)),"root"===r?t.getters:t._makeLocalGettersCache,r)}var i,o,a})),n.on.editInspectorState((function(n){if(n.app===e&&"vuex"===n.inspectorId){var r=n.nodeId,i=n.path;"root"!==r&&(i=r.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree("vuex"),n.sendInspectorState("vuex"),n.addTimelineEvent({layerId:"vuex:mutations",event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=g++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:"vuex:actions",event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},i=Date.now()-e._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:"vuex:actions",event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var v=8702998,y={label:"namespaced",textColor:16777215,backgroundColor:6710886};function x(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function w(e,t){return{id:t||"root",label:x(t),tags:e.namespaced?[y]:[],children:Object.keys(e._children).map((function(n){return w(e._children[n],t+n+"/")}))}}function k(e){try{return e()}catch(e){return e}}var _=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},C={namespaced:{configurable:!0}};C.namespaced.get=function(){return!!this._rawModule.namespaced},_.prototype.addChild=function(e,t){this._children[e]=t},_.prototype.removeChild=function(e){delete this._children[e]},_.prototype.getChild=function(e){return this._children[e]},_.prototype.hasChild=function(e){return e in this._children},_.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},_.prototype.forEachChild=function(e){a(this._children,e)},_.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},_.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},_.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(_.prototype,C);var S=function(e){this.register([],e,!1)};S.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},S.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},S.prototype.update=function(e){!function e(t,n,r){if(j(t,r),n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void console.warn("[vuex] trying to add a new module '"+i+"' on hot reloading, manual reload is needed");e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},S.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0),j(e,t);var i=new _(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&a(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},S.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r?r.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},S.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var O={assert:function(e){return"function"==typeof e},expected:"function"},E={getters:O,mutations:O,actions:{assert:function(e){return"function"==typeof e||"object"==typeof e&&"function"==typeof e.handler},expected:'function or object with "handler" function'}};function j(e,t){Object.keys(E).forEach((function(n){if(t[n]){var r=E[n];a(t[n],(function(t,i){l(r.assert(t),function(e,t,n,r,i){var o=t+" should be "+i+' but "'+t+"."+n+'"';e.length>0&&(o+=' in module "'+e.join(".")+'"');return o+=" is "+JSON.stringify(r)+"."}(e,n,i,t,r.expected))}))}}))}function T(e){return new M(e)}var M=function e(t){var n=this;void 0===t&&(t={}),l("undefined"!=typeof Promise,"vuex requires a Promise polyfill in this browser."),l(this instanceof e,"store must be called with the new operator.");var r=t.plugins;void 0===r&&(r=[]);var i=t.strict;void 0===i&&(i=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new S(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=o;var a=this,s=this.dispatch,c=this.commit;this.dispatch=function(e,t){return s.call(a,e,t)},this.commit=function(e,t,n){return c.call(a,e,t,n)},this.strict=i;var u=this._modules.root.state;p(this,u,[],this._modules.root),d(this,u),r.forEach((function(e){return e(n)}))},N={state:{configurable:!0}};M.prototype.install=function(e,t){e.provide(t||"store",this),e.config.globalProperties.$store=this,(void 0===this._devtools||this._devtools)&&b(e,this)},N.state.get=function(){return this._state.data},N.state.set=function(e){l(!1,"use store.replaceState() to explicit replace store state.")},M.prototype.commit=function(e,t,n){var r=this,i=m(e,t,n),o=i.type,a=i.payload,s=i.options,l={type:o,payload:a},c=this._mutations[o];c?(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(l,r.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+o)},M.prototype.dispatch=function(e,t){var n=this,r=m(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(e){console.warn("[vuex] error in before action subscribers: "),console.error(e)}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(e){console.warn("[vuex] error in after action subscribers: "),console.error(e)}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(e){console.warn("[vuex] error in error action subscribers: "),console.error(e)}t(e)}))}))}console.error("[vuex] unknown action type: "+i)},M.prototype.subscribe=function(e,t){return c(e,this._subscribers,t)},M.prototype.subscribeAction=function(e,t){return c("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},M.prototype.watch=function(e,t,n){var i=this;return l("function"==typeof e,"store.watch only accepts a function."),Object(r.watch)((function(){return e(i.state,i.getters)}),t,Object.assign({},n))},M.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},M.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),l(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),p(this,this.state,e,this._modules.get(e),n.preserveState),d(this,this.state)},M.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){delete f(t.state,e.slice(0,-1))[e[e.length-1]]})),u(this)},M.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},M.prototype.hotUpdate=function(e){this._modules.update(e),u(this,!0)},M.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(M.prototype,N);var A=I((function(e,t){var n={};return P(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=R(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),D=I((function(e,t){var n={};return P(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=R(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),L=I((function(e,t){var n={};return P(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),F(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||R(this.$store,"mapGetters",e)){if(i in this.$store.getters)return this.$store.getters[i];console.error("[vuex] unknown getter: "+i)}},n[r].vuex=!0})),n})),z=I((function(e,t){var n={};return P(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=R(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function F(e){return P(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function P(e){return Array.isArray(e)||s(e)}function I(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function R(e,t,n){var r=e._modulesNamespaceMap[n];return r||console.error("[vuex] module namespace not found in "+t+"(): "+n),r}function B(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(n){e.log(t)}}function V(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function $(){var e=new Date;return" @ "+q(e.getHours(),2)+":"+q(e.getMinutes(),2)+":"+q(e.getSeconds(),2)+"."+q(e.getMilliseconds(),3)}function q(e,t){return n="0",r=t-e.toString().length,new Array(r+1).join(n)+e;var n,r}var H={version:"4.0.2",Store:M,storeKey:"store",createStore:T,useStore:function(e){return void 0===e&&(e=null),Object(r.inject)(null!==e?e:"store")},mapState:A,mapMutations:D,mapGetters:L,mapActions:z,createNamespacedHelpers:function(e){return{mapState:A.bind(null,e),mapGetters:L.bind(null,e),mapMutations:D.bind(null,e),mapActions:z.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=o(e.state);void 0!==u&&(l&&e.subscribe((function(e,a){var s=o(a);if(n(e,d,s)){var l=$(),c=i(e),p="mutation "+e.type+l;B(u,p,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),V(u)}d=s})),c&&e.subscribeAction((function(e,n){if(a(e,n)){var r=$(),i=s(e),o="action "+e.type+r;B(u,o,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),V(u)}})))}}};t.b=H},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(7);function i(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,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(7),i=n(35),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(23)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(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}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l}).call(this,n(34))},function(e,t,n){"use strict";var r=n(7),i=n(36),o=n(20),a=n(38),s=n(41),l=n(42),c=n(24);e.exports=function(e){return new Promise((function(t,u){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",m=e.auth.password||"";p.Authorization="Basic "+btoa(f+":"+m)}var g=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,r),h=null}},h.onabort=function(){h&&(u(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){u(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(c(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=n(43),v=(e.withCredentials||l(g))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),u(e),h=null)})),void 0===d&&(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(37);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),l=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(l,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},,,function(e,t,n){"use strict";var r=n(7),i=n(19),o=n(30),a=n(25);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=s(n(22));l.Axios=o,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n(26),l.CancelToken=n(44),l.isCancel=n(21),l.all=function(e){return Promise.all(e)},l.spread=n(45),e.exports=l,e.exports.default=l},function(e,t,n){"use strict";var r=n(7),i=n(20),o=n(31),a=n(32),s=n(25);function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,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},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=l},function(e,t,n){"use strict";var r=n(7);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(7),i=n(33),o=n(21),a=n(22);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(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(7);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(7);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(24);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(39),i=n(40);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(7),i=["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,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(7);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(7);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.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)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(26);function i(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 r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,o,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},c=n.mediaTypes||{},u=n.mediaFeatures||{},d=n.mediaValueKeywords||{},p=n.propertyKeywords||{},h=n.nonStandardPropertyKeywords||{},f=n.fontProperties||{},m=n.counterDescriptors||{},g=n.colorKeywords||{},b=n.valueKeywords||{},v=n.allowNested,y=n.lineComment,x=!0===n.supportsAtComponent;function w(e,t){return i=t,e}function k(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),w("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?w(null,"compare"):'"'==n||"'"==n?(t.tokenize=_(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),w("atom","hash")):"!"==n?(e.match(/^\s*\w*/),w("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),w("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?w(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?w("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?w(null,n):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=C),w("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),w("property","word")):w(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),w("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?w("variable-2","variable-definition"):w("variable-2","variable")):e.match(/^\w+-/)?w("meta","meta"):void 0}function _(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),w("string","string")}}function C(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=_(")"),w(null,"(")}function S(e,t,n){this.type=e,this.indent=t,this.prev=n}function O(e,t,n,r){return e.context=new S(n,t.indentation()+(!1===r?0:a),e.context),n}function E(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function j(e,t,n){return N[n.context.type](e,t,n)}function T(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return j(e,t,n)}function M(e){var t=e.current().toLowerCase();o=b.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var N={top:function(e,t,n){if("{"==e)return O(n,t,"block");if("}"==e&&n.context.prev)return E(n);if(x&&/@component/i.test(e))return O(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return O(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return O(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return O(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return O(n,t,"interpolation");if(":"==e)return"pseudo";if(v&&"("==e)return O(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return p.hasOwnProperty(r)?(o="property","maybeprop"):h.hasOwnProperty(r)?(o="string-2","maybeprop"):v?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":v||"hash"!=e&&"qualifier"!=e?N.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?O(n,t,"prop"):j(e,t,n)},prop:function(e,t,n){if(";"==e)return E(n);if("{"==e&&v)return O(n,t,"propBlock");if("}"==e||"{"==e)return T(e,t,n);if("("==e)return O(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)M(t);else if("interpolation"==e)return O(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?E(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?T(e,t,n):")"==e?E(n):"("==e?O(n,t,"parens"):"interpolation"==e?O(n,t,"interpolation"):("word"==e&&M(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):j(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):N.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return O(n,t,"atBlock_parens");if("}"==e||";"==e)return T(e,t,n);if("{"==e)return E(n)&&O(n,t,v?"block":"top");if("interpolation"==e)return O(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":p.hasOwnProperty(r)?"property":h.hasOwnProperty(r)?"string-2":b.hasOwnProperty(r)?"atom":g.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?T(e,t,n):"{"==e?E(n)&&O(n,t,v?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?E(n):"{"==e||"}"==e?T(e,t,n,2):N.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?O(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):j(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,E(n)):"word"==e?(o="@font-face"==n.stateArg&&!f.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?O(n,t,"top"):j(e,t,n)},at:function(e,t,n){return";"==e?E(n):"{"==e||"}"==e?T(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?E(n):"{"==e||";"==e?T(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new S(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||k)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(t.state=N[t.state](i,e,t)),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:y,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],c=t(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(u),p=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],h=t(p),f=t(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],b=t(g),v=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],y=t(v),x=n.concat(i).concat(a).concat(l).concat(u).concat(p).concat(g).concat(v);function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",x),e.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:f,counterDescriptors:m,colorKeywords:b,valueKeywords:y,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:b,valueKeywords:y,fontProperties:f,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:b,valueKeywords:y,fontProperties:f,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:f,counterDescriptors:m,colorKeywords:b,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css",helperType:"gss"})}(n(10))},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],p=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),b=/Android/.test(e),v=g||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),x=/\bCrOS\b/.test(e),w=/win/i.test(t),k=p&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(p=!1,l=!0);var _=y&&(c||p&&(null==k||k<12.11)),C=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var O,E=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function j(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return j(e).appendChild(t)}function M(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function N(e,t,n,r){var i=M(e,t,n,r);return i.setAttribute("role","presentation"),i}function A(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function L(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function z(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}O=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var F=function(e){e.select()};function P(e){return e.display.wrapper.ownerDocument}function I(e){return P(e).defaultView}function R(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function V(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(F=function(e){try{e.select()}catch(e){}});var $=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function q(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}$.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},$.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var H={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},U={origin:"*mouse"},G={origin:"+move"};function K(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Y=[""];function X(e){for(;Y.length<=e;)Y.push(Z(Y)+" ");return Y[e]}function Z(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function J(){}function ee(e,t){var n;return Object.create?n=Object.create(e):(J.prototype=e,n=new J),t&&B(t,n),n}var te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ne(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||te.test(e))}function re(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ne(e))||t.test(e):ne(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ae(e){return e.charCodeAt(0)>=768&&oe.test(e)}function se(e,t,n){for(;(n<0?t>0:t<e.length)&&ae(e.charAt(t));)t+=n;return t}function le(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ce=null;function ue(e,t,n){var r;ce=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}var de=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c,u=a.length,d=[],p=0;p<u;++p)d.push((c=a.charCodeAt(p))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":8204==c?"b":"L");for(var h=0,f=l;h<u;++h){var m=d[h];"m"==m?d[h]=f:f=m}for(var g=0,b=l;g<u;++g){var v=d[g];"1"==v&&"r"==b?d[g]="n":n.test(v)&&(b=v,"r"==v&&(d[g]="R"))}for(var y=1,x=d[0];y<u-1;++y){var w=d[y];"+"==w&&"1"==x&&"1"==d[y+1]?d[y]="1":","!=w||x!=d[y+1]||"1"!=x&&"n"!=x||(d[y]=x),x=w}for(var k=0;k<u;++k){var _=d[k];if(","==_)d[k]="N";else if("%"==_){var C=void 0;for(C=k+1;C<u&&"%"==d[C];++C);for(var S=k&&"!"==d[k-1]||C<u&&"1"==d[C]?"1":"N",O=k;O<C;++O)d[O]=S;k=C-1}}for(var E=0,j=l;E<u;++E){var T=d[E];"L"==j&&"1"==T?d[E]="L":n.test(T)&&(j=T)}for(var M=0;M<u;++M)if(t.test(d[M])){var N=void 0;for(N=M+1;N<u&&t.test(d[N]);++N);for(var A="L"==(M?d[M-1]:l),D=A==("L"==(N<u?d[N]:l))?A?"L":"R":l,L=M;L<N;++L)d[L]=D;M=N-1}for(var z,F=[],P=0;P<u;)if(r.test(d[P])){var I=P;for(++P;P<u&&r.test(d[P]);++P);F.push(new o(0,I,P))}else{var R=P,B=F.length,V="rtl"==s?1:0;for(++P;P<u&&"L"!=d[P];++P);for(var $=R;$<P;)if(i.test(d[$])){R<$&&(F.splice(B,0,new o(1,R,$)),B+=V);var q=$;for(++$;$<P&&i.test(d[$]);++$);F.splice(B,0,new o(2,q,$)),B+=V,R=$}else++$;R<P&&F.splice(B,0,new o(1,R,P))}return"ltr"==s&&(1==F[0].level&&(z=a.match(/^\s+/))&&(F[0].from=z[0].length,F.unshift(new o(0,0,z[0].length))),1==Z(F).level&&(z=a.match(/\s+$/))&&(Z(F).to-=z[0].length,F.push(new o(0,u-z[0].length,u)))),"rtl"==s?F.reverse():F}}();function pe(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}var he=[],fe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||he).concat(n)}};function me(e,t){return e._handlers&&e._handlers[t]||he}function ge(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=q(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ve(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,n||t.type,e,t),Ce(t)||t.codemirrorIgnore}function ye(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==q(n,t[r])&&n.push(t[r])}function xe(e,t){return me(e,t).length>0}function we(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){ke(e),_e(e)}function Oe(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var je,Te,Me=function(){if(a&&s<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Ne(e){if(null==je){var t=M("span","");T(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(je=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=je?M("span",""):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ae(e){if(null!=Te)return Te;var t=T(e,document.createTextNode("AخA")),n=O(t,0,1).getBoundingClientRect(),r=O(t,1,2).getBoundingClientRect();return j(e),!(!n||n.left==n.right)&&(Te=r.right-n.right<3)}var De,Le=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ze=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Fe="oncopy"in(De=M("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Pe=null,Ie={},Re={};function Be(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ie[e]=t}function Ve(e){if("string"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&"string"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[e.name];"string"==typeof t&&(t={name:t}),(e=ee(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function $e(e,t){t=Ve(t);var n=Ie[t.name];if(!n)return $e(e,"text/plain");var r=n(e,t);if(qe.hasOwnProperty(t.name)){var i=qe[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var qe={};function He(e,t){B(t,qe.hasOwnProperty(e)?qe[e]:qe[e]={})}function We(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ue(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ge(e,t,n){return!e.startState||e.startState(t,n)}var Ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ye(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Xe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ze(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Qe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Je(e){if(null==e.parent)return null;for(var t=e.parent,n=q(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function et(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function tt(e,t){return t>=e.first&&t<e.first+e.size}function nt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function rt(e,t,n){if(void 0===n&&(n=null),!(this instanceof rt))return new rt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function it(e,t){return e.line-t.line||e.ch-t.ch}function ot(e,t){return e.sticky==t.sticky&&0==it(e,t)}function at(e){return rt(e.line,e.ch)}function st(e,t){return it(e,t)<0?t:e}function lt(e,t){return it(e,t)<0?e:t}function ct(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ut(e,t){if(t.line<e.first)return rt(e.first,0);var n=e.first+e.size-1;return t.line>n?rt(n,Ye(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?rt(e.line,t):n<0?rt(e.line,0):e}(t,Ye(e,t.line).text.length)}function dt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ut(e,t[r]);return n}Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ke.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ke.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){var i=[e.state.modeGen],o={};_t(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,_t(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function mt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=gt(e,Je(t)),i=t.text.length>e.options.maxHighlightLength&&We(e.doc.mode,r.state),o=ft(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function gt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ht(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ye(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof pt?c.lookAhead:0)<=o.modeFrontier))return s;var u=V(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&Ye(r,o-1).stateAfter,s=a?ht.fromSaved(r,a,o):new ht(r,Ge(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function bt(e,t,n,r){var i=e.doc.mode,o=new Ke(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&vt(i,n.state);!o.eol();)yt(i,o,n.state),o.start=o.pos}function vt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ue(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function yt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ue(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ht.fromSaved=function(e,t,n){return t instanceof pt?new ht(e,We(e.mode,t.state),n,t.lookAhead):new ht(e,We(e.mode,t),n)},ht.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function wt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ye(a,(t=ut(a,t)).line),c=gt(e,t.line,n),u=new Ke(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=yt(s,u,c.state),r&&o.push(new xt(u,i,We(a.mode,c.state)));return r?o:new xt(u,i,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function _t(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Ke(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&kt(vt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(yt(n,d,r.state,p),o),p){var h=p[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var f=Math.min(d.pos,c+5e3);i(f,u),c=f}}var Ct=!1,St=!1;function Ot(e,t,n){this.marker=e,this.from=t,this.to=n}function Et(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function jt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Tt(e,t){if(t.full)return null;var n=tt(e,t.from.line)&&Ye(e,t.from.line).markedSpans,r=tt(e,t.to.line)&&Ye(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==it(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Ot(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Ot(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,u=Z(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var p=s[d];if(null==p.to){var h=Et(l,p.marker);h?c&&(p.to=null==h.to?null:h.to+u):p.to=i}}if(l)for(var f=0;f<l.length;++f){var m=l[f];null!=m.to&&(m.to+=u),null==m.from?Et(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=Mt(s)),l&&l!=s&&(l=Mt(l));var g=[s];if(!c){var b,v=t.text.length-2;if(v>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(b||(b=[])).push(new Ot(s[y].marker,null,null));for(var x=0;x<v;++x)g.push(b);g.push(l)}return g}function Mt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Nt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function At(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Dt(e){return e.inclusiveLeft?-1:0}function Lt(e){return e.inclusiveRight?1:0}function zt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=it(r.from,i.from)||Dt(e)-Dt(t);if(o)return-o;var a=it(r.to,i.to)||Lt(e)-Lt(t);return a||t.id-e.id}function Ft(e,t){var n,r=St&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||zt(n,i.marker)<0)&&(n=i.marker);return n}function Pt(e){return Ft(e,!0)}function It(e){return Ft(e,!1)}function Rt(e,t){var n,r=St&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||zt(n,o.marker)<0)&&(n=o.marker)}return n}function Bt(e,t,n,r,i){var o=Ye(e,t),a=St&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=it(c.from,n)||Dt(l.marker)-Dt(i),d=it(c.to,r)||Lt(l.marker)-Lt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?it(c.to,n)>=0:it(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?it(c.from,r)<=0:it(c.from,r)<0)))return!0}}}function Vt(e){for(var t;t=Pt(e);)e=t.find(-1,!0).line;return e}function $t(e,t){var n=Ye(e,t),r=Vt(n);return n==r?t:Je(r)}function qt(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!Ht(e,r))return t;for(;n=It(r);)r=n.find(1,!0).line;return Je(r)+1}function Ht(e,t){var n=St&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Wt(e,t,r))return!0}}function Wt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Wt(e,r.line,Et(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Wt(e,t,i))return!0}function Ut(e){for(var t=0,n=(e=Vt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Gt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Pt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=It(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Kt(e){var t=e.display,n=e.doc;t.maxLine=Ye(n,n.first),t.maxLineLength=Gt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Gt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Yt=function(e,t,n){this.text=e,At(this,t),this.height=n?n(this):1};function Xt(e){e.parent=null,Nt(e)}Yt.prototype.lineNo=function(){return Je(this)},we(Yt);var Zt={},Qt={};function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Qt:Zt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function en(e,t){var n=N("span",null,null,l?"padding-right: .1px":null),r={pre:N("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=nn,Ae(e.display.measure)&&(a=pe(o,e.doc.direction))&&(r.addToken=rn(r.addToken,a)),r.map=[],an(o,r,mt(e,o,t!=e.display.externalMeasured&&Je(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=z(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=z(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ne(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=z(r.pre.className,r.textClass||"")),r}function tn(e){var t=M("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function nn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){c=document.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var f=d.exec(t),m=f?f.index-h:t.length-h;if(m){var g=document.createTextNode(u.slice(h,h+m));a&&s<9?c.appendChild(M("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!f)break;h+=m+1;var b=void 0;if("\t"==f[0]){var v=e.cm.options.tabSize,y=v-e.col%v;(b=c.appendChild(M("span",X(y),"cm-tab"))).setAttribute("role","presentation"),b.setAttribute("cm-text","\t"),e.col+=y}else"\r"==f[0]||"\n"==f[0]?((b=c.appendChild(M("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((b=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&s<9?c.appendChild(M("span",[b])):c.appendChild(b),e.col+=1);e.map.push(e.pos,e.pos+1,b),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||p||o||l){var x=n||"";r&&(x+=r),i&&(x+=i);var w=M("span",[c],x,o);if(l)for(var k in l)l.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&w.setAttribute(k,l[k]);return e.content.appendChild(w)}e.content.appendChild(c)}}function rn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,p=0;p<t.length&&!((d=t[p]).to>c&&d.from<=c);p++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function on(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function an(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,p,h=i.length,f=0,m=1,g="",b=0;;){if(b==f){l=c=u=s="",p=null,d=null,b=1/0;for(var v=[],y=void 0,x=0;x<r.length;++x){var w=r[x],k=w.marker;if("bookmark"==k.type&&w.from==f&&k.widgetNode)v.push(k);else if(w.from<=f&&(null==w.to||w.to>f||k.collapsed&&w.to==f&&w.from==f)){if(null!=w.to&&w.to!=f&&b>w.to&&(b=w.to,c=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==f&&(u+=" "+k.startStyle),k.endStyle&&w.to==b&&(y||(y=[])).push(k.endStyle,w.to),k.title&&((p||(p={})).title=k.title),k.attributes)for(var _ in k.attributes)(p||(p={}))[_]=k.attributes[_];k.collapsed&&(!d||zt(d.marker,k)<0)&&(d=w)}else w.from>f&&b>w.from&&(b=w.from)}if(y)for(var C=0;C<y.length;C+=2)y[C+1]==b&&(c+=" "+y[C]);if(!d||d.from==f)for(var S=0;S<v.length;++S)on(t,0,v[S]);if(d&&(d.from||0)==f){if(on(t,(null==d.to?h+1:d.to)-f,d.marker,null==d.from),null==d.to)return;d.to==f&&(d=!1)}}if(f>=h)break;for(var O=Math.min(h,b);;){if(g){var E=f+g.length;if(!d){var j=E>O?g.slice(0,O-f):g;t.addToken(t,j,a?a+l:l,u,f+j.length==b?c:"",s,p)}if(E>=O){g=g.slice(O-f),f=O;break}f=E,u=""}g=i.slice(o,o=n[m++]),a=Jt(n[m++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,i.slice(o,o=n[T]),Jt(n[T+1],t.cm.options))}function sn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=It(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Je(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ht(e,t)}function ln(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new sn(e.doc,Ye(e.doc,o),o);r=o+a.size,i.push(a)}return i}var cn=null,un=null;function dn(e,t){var n=me(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);cn?r=cn.delayedCallbacks:un?r=un:(r=un=[],setTimeout(pn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function pn(){var e=un;un=null;for(var t=0;t<e.length;++t)e[t]()}function hn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?gn(e,t):"gutter"==o?vn(e,t,n,r):"class"==o?bn(e,t):"widget"==o&&yn(e,t,r)}t.changes=null}function fn(e){return e.node==e.text&&(e.node=M("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function mn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):en(e,t)}function gn(e,t){var n=t.text.className,r=mn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,bn(e,t)):n&&(t.text.className=n)}function bn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=fn(t);t.background=r.insertBefore(M("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function vn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=fn(t);t.gutterBackground=M("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=fn(t),s=t.gutter=M("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(M("div",nt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(M("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function yn(e,t,n){t.alignable&&(t.alignable=null);for(var r=S("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);wn(e,t,n)}function xn(e,t,n,r){var i=mn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),bn(e,t),vn(e,t,n,r),wn(e,t,r),t.node}function wn(e,t,n){if(kn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)kn(e,t.rest[r],t,n,!1)}function kn(e,t,n,r,i){if(t.widgets)for(var o=fn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=M("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),_n(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),dn(l,"redraw")}}function _n(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Cn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!A(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,M("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Sn(e,t){for(var n=Oe(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function On(e){return e.lineSpace.offsetTop}function En(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function jn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,M("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Tn(e){return 50-e.display.nativeBarWidth}function Mn(e){return e.display.scroller.clientWidth-Tn(e)-e.display.barWidth}function Nn(e){return e.display.scroller.clientHeight-Tn(e)-e.display.barHeight}function An(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Je(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Dn(e,t,n,r){return Fn(e,zn(e,t),n,r)}function Ln(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[hr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function zn(e,t){var n=Je(t),r=Ln(e,n);r&&!r.text?r=null:r&&r.changes&&(hn(e,r,n,lr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Je(t=Vt(t)),r=e.display.externalMeasured=new sn(e.doc,t,n);r.lineN=n;var i=r.built=en(e,r);return r.text=i.pre,T(e.display.lineMeasure,i.pre),r}(e,t));var i=An(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Fn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Mn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Rn(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&ae(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&ae(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Bn(O(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Pe)return Pe;var t=T(e,M("span","x")),n=t.getBoundingClientRect(),r=O(t,0,1).getBoundingClientRect();return Pe=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var h;c>0&&(d=r="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var f=l.parentNode.getClientRects()[0];i=f?{left:f.left,right:f.left+sr(e.display),top:f.top,bottom:f.bottom}:In}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,b=(m+g)/2,v=t.view.measure.heights,y=0;y<v.length-1&&!(b<v[y]);y++);var x=y?v[y-1]:0,w=v[y],k={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:x,bottom:w};return i.left||i.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=m,k.rbottom=g),k}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Pn,In={left:0,right:0,top:0,bottom:0};function Rn(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function Bn(e,t){var n=In;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Vn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function $n(e){e.display.externalMeasure=null,j(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Vn(e.display.view[t])}function qn(e){$n(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Hn(e){return u&&b?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Wn(e){return u&&b?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Un(e){var t=Vt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Cn(t[r]));return n}function Gn(e,t,n,r,i){if(!i){var o=Un(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Ut(t);if("local"==r?a+=On(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Wn(P(e)));var l=s.left+("window"==r?0:Hn(P(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Kn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Hn(P(e)),i-=Wn(P(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Yn(e,t,n,r,i){return r||(r=Ye(e.doc,t.line)),Gn(e,r,Dn(e,r,t.ch,i),n)}function Xn(e,t,n,r,i,o){function a(t,a){var s=Fn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Gn(e,r,s,n)}r=r||Ye(e.doc,t.line),i||(i=zn(e,r));var s=pe(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=ue(s,l,c),p=ce,h=u(l,d,"before"==c);return null!=p&&(h.other=u(l,p,"before"!=c)),h}function Zn(e,t){var n=0;t=ut(e.doc,t),e.options.lineWrapping||(n=sr(e.display)*t.ch);var r=Ye(e.doc,t.line),i=Ut(r)+On(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Qn(e,t,n,r,i){var o=rt(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Qn(r.first,0,null,-1,-1);var i=et(r,n),o=r.first+r.size-1;if(i>o)return Qn(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ye(r,i);;){var s=rr(e,a,i,t,n),l=Rt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Ye(r,i=c.line)}}function er(e,t,n,r){r-=Un(t);var i=t.text.length,o=le((function(t){return Fn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=le((function(t){return Fn(e,n,t).top>r}),o,i)}}function tr(e,t,n,r){return n||(n=zn(e,t)),er(e,t,n,Gn(e,t,Fn(e,n,r),"line").top)}function nr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function rr(e,t,n,r,i){i-=Ut(t);var o=zn(e,t),a=Un(t),s=0,l=t.text.length,c=!0,u=pe(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?or:ir)(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var p,h,f=null,m=null,g=le((function(t){var n=Fn(e,o,t);return n.top+=a,n.bottom+=a,!!nr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(f=t,m=n),!0)}),s,l),b=!1;if(m){var v=r-m.left<m.right-r,y=v==c;g=f+(y?0:1),h=y?"after":"before",p=v?m.left:m.right}else{c||g!=l&&g!=s||g++,h=0==g?"after":g==t.text.length?"before":Fn(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var x=Xn(e,rt(n,g,h),"line",t,o);p=x.left,b=i<x.top?-1:i>=x.bottom?1:0}return Qn(n,g=se(t.text,g,1),h,b,r-p)}function ir(e,t,n,r,i,o,a){var s=le((function(s){var l=i[s],c=1!=l.level;return nr(Xn(e,rt(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Xn(e,rt(n,c?l.from:l.to,c?"after":"before"),"line",t,r);nr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function or(e,t,n,r,i,o,a){var s=er(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p<i.length;p++){var h=i[p];if(!(h.from>=c||h.to<=l)){var f=Fn(e,r,1!=h.level?Math.min(c,h.to)-1:Math.max(l,h.from)).right,m=f<o?o-f+1e9:f-o;(!u||d>m)&&(u=h,d=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function ar(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Pn){Pn=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Pn.appendChild(document.createTextNode("x")),Pn.appendChild(M("br"));Pn.appendChild(document.createTextNode("x"))}T(e.measure,Pn);var n=Pn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),j(e.measure),n||1}function sr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");T(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function lr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:cr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function cr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ur(e){var t=ar(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/sr(e.display)-3);return function(i){if(Ht(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function dr(e){var t=e.doc,n=ur(e);t.iter((function(e){var t=n(e);t!=e.height&&Qe(e,t)}))}function pr(e,t,n,r){var i=e.display;if(!n&&"true"==Oe(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=Jn(e,o,a);if(r&&c.xRel>0&&(l=Ye(e.doc,c.line).text).length==c.ch){var u=V(l,l.length,e.options.tabSize)-l.length;c=rt(c.line,Math.max(0,Math.round((o-jn(e.display).left)/sr(e.display))-u))}return c}function hr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function fr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)St&&$t(e.doc,t)<i.viewTo&&gr(e);else if(n<=i.viewFrom)St&&qt(e.doc,n+r)>i.viewFrom?gr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)gr(e);else if(t<=i.viewFrom){var o=br(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):gr(e)}else if(n>=i.viewTo){var a=br(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):gr(e)}else{var s=br(e,t,t,-1),l=br(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(ln(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):gr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function mr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[hr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==q(a,n)&&a.push(n)}}}function gr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function br(e,t,n,r){var i,o=hr(e,t),a=e.display.view;if(!St||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;$t(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function yr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function xr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&wr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&wr(e,l.head,i);c||_r(e,l,o)}}return r}function wr(e,t,n){var r=Xn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(M("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Yn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function kr(e,t){return e.top-t.top||e.left-t.left}function _r(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=jn(e.display),s=a.left,l=Math.max(r.sizerWidth,Mn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Ye(i,t),p=d.text.length;function h(n,r){return Yn(e,rt(t,n),"div",d,r)}function f(t,n,r){var i=tr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=pe(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?p:r,(function(e,t,i,d){var g="ltr"==i,b=h(e,g?"left":"right"),v=h(t-1,g?"right":"left"),y=null==n&&0==e,x=null==r&&t==p,w=0==d,k=!m||d==m.length-1;if(v.top-b.top<=3){var _=(c?x:y)&&k,C=(c?y:x)&&w?s:(g?b:v).left,S=_?l:(g?v:b).right;u(C,b.top,S-C,b.bottom)}else{var O,E,j,T;g?(O=c&&y&&w?s:b.left,E=c?l:f(e,i,"before"),j=c?s:f(t,i,"after"),T=c&&x&&k?l:v.right):(O=c?f(e,i,"before"):s,E=!c&&y&&w?l:b.right,j=!c&&x&&k?s:v.left,T=c?f(t,i,"after"):l),u(O,b.top,E-O,b.bottom),b.bottom<v.top&&u(s,b.bottom,null,v.top),u(j,v.top,T-j,v.bottom)}(!o||kr(b,o)<0)&&(o=b),kr(v,o)<0&&(o=v),(!a||kr(b,a)<0)&&(a=b),kr(v,a)<0&&(a=v)})),{start:o,end:a}}var p=t.from(),h=t.to();if(p.line==h.line)d(p.line,p.ch,h.ch);else{var f=Ye(i,p.line),m=Ye(i,h.line),g=Vt(f)==Vt(m),b=d(p.line,p.ch,g?f.text.length+1:null).end,v=d(h.line,g?0:null,h.ch).start;g&&(b.top<v.top-2?(u(b.right,b.top,null,b.bottom),u(s,v.top,v.left,v.bottom)):u(b.right,b.top,v.left-b.right,b.bottom)),b.bottom<v.top&&u(s,b.bottom,null,v.top)}n.appendChild(o)}function Cr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||jr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Sr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Er(e))}function Or(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&jr(e))}),100)}function Er(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Cr(e))}function jr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,E(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Tr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,p=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var h=c.node.offsetTop+c.node.offsetHeight;d=h-n,n=h}else{var f=c.node.getBoundingClientRect();d=f.bottom-f.top,!u&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-f.left-1)}var m=c.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),Qe(c.line,d),Mr(c.line),c.rest))for(var g=0;g<c.rest.length;g++)Mr(c.rest[g]);if(p>e.display.sizerWidth){var b=Math.ceil(p/sr(e.display));b>e.display.maxLineLength&&(e.display.maxLineLength=b,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Mr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Nr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-On(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=et(t,r),a=et(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=et(t,Ut(Ye(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=et(t,Ut(Ye(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Ar(e,t){var n=e.display,r=ar(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Nn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+En(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,h=Mn(e)-n.gutters.offsetWidth,f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.left<p?a.scrollLeft=Math.max(0,t.left+d-(f?0:10)):t.right>h+p-3&&(a.scrollLeft=t.right+(f?0:10)-h),a}function Dr(e,t){null!=t&&(Fr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Lr(e){Fr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function zr(e,t,n){null==t&&null==n||Fr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Fr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Pr(e,Zn(e,t.from),Zn(e,t.to),t.margin))}function Pr(e,t,n,r){var i=Ar(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});zr(e,i.scrollLeft,i.scrollTop)}function Ir(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||pi(e,{top:t}),Rr(e,t,!0),n&&pi(e),ai(e,100))}function Rr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Br(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,mi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Vr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+En(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Tn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var $r=function(e,t,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),fe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),fe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$r.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},$r.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$r.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$r.prototype.zeroWidthHack=function(){var e=y&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new $,this.disableVert=new $},$r.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}))},$r.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var qr=function(){};function Hr(e,t){t||(t=Vr(e));var n=e.display.barWidth,r=e.display.barHeight;Wr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Tr(e),Wr(e,Vr(e)),n=e.display.barWidth,r=e.display.barHeight}function Wr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}qr.prototype.update=function(){return{bottom:0,right:0}},qr.prototype.setScrollLeft=function(){},qr.prototype.setScrollTop=function(){},qr.prototype.clear=function(){};var Ur={native:$r,null:qr};function Gr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ur[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Br(e,t):Ir(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var Kr=0;function Yr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Kr,markArrays:null},t=e.curOp,cn?cn.ops.push(t):t.ownsGroup=cn={ops:[t],delayedCallbacks:[]}}function Xr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{cn=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Zr(t[n]);for(var r=0;r<t.length;r++)Qr(t[r]);for(var i=0;i<t.length;i++)Jr(t[i]);for(var o=0;o<t.length;o++)ei(t[o]);for(var a=0;a<t.length;a++)ti(t[a])}(e)}))}function Zr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Tn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Tn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Kt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new li(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qr(e){e.updatedDisplay=e.mustUpdate&&ui(e.cm,e.update)}function Jr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Tr(t),e.barMeasure=Vr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Dn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Tn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Mn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ei(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Br(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D(P(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Hr(t,e.barMeasure),e.updatedDisplay&&fi(t,e.barMeasure),e.selectionChanged&&Cr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Sr(e.cm)}function ti(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&di(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Rr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Br(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=M("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-On(e.display))+"px;\n height: "+(t.bottom-t.top+Tn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?rt(t.line,t.ch+1,"before"):t,t=t.ch?rt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Xn(e,t),l=n&&n!=t?Xn(e,n):s,c=Ar(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Ir(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Br(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,ut(r,e.scrollToPos.from),ut(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||be(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&be(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ni(e,t){if(e.curOp)return t();Yr(e);try{return t()}finally{Xr(e)}}function ri(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Yr(e);try{return t.apply(e,arguments)}finally{Xr(e)}}}function ii(e){return function(){if(this.curOp)return e.apply(this,arguments);Yr(this);try{return e.apply(this,arguments)}finally{Xr(this)}}}function oi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Yr(t);try{return e.apply(this,arguments)}finally{Xr(t)}}}function ai(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,R(si,e))}function si(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=gt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,l=ft(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&p<a.length;++p)d=a[p]!=o.styles[p];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ai(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ni(e,(function(){for(var t=0;t<i.length;t++)mr(e,i[t],"text")}))}}var li=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Nr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Mn(e),this.force=n,this.dims=lr(e),this.events=[]};function ci(e){if(e.hasFocus())return null;var t=D(P(e));if(!t||!A(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=I(e).getSelection();r.anchorNode&&r.extend&&A(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function ui(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return gr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(e))return!1;gi(e)&&(gr(e),t.dims=lr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),St&&(o=$t(e.doc,o),a=qt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=ln(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=ln(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(hr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(ln(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,hr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Ut(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=vr(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=ci(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var p=c[d];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var h=i&&null!=t&&t<=u&&p.lineNumber;p.changes&&(q(p.changes,"gutter")>-1&&(h=!1),hn(e,p,u,n)),h&&(j(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(nt(e.options,u)))),a=p.node.nextSibling}else{var f=xn(e,p,u,n);o.insertBefore(f,a)}u+=p.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=D(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&A(document.body,e.anchorNode)&&A(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(u),j(n.cursorDiv),j(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ai(e,400)),n.updateLineNumbers=null,!0}function di(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Mn(e))r&&(t.visible=Nr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+En(e.display)-Nn(e),n.top)}),t.visible=Nr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ui(e,t))break;Tr(e);var i=Vr(e);yr(e),Hr(e,i),fi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function pi(e,t){var n=new li(e,t);if(ui(e,n)){Tr(e),di(e,n);var r=Vr(e);yr(e),Hr(e,r),fi(e,r),n.finish()}}function hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",dn(e,"gutterChanged",e)}function fi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Tn(e)+"px"}function mi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=cr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function gi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=nt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(M("div",[M("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",hi(e.display),!0}return!1}function bi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function vi(e){var t=e.gutters,n=e.gutterSpecs;j(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(M("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",hi(e)}function yi(e){vi(e.display),fr(e),mi(e)}function xi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=M("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=M("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=N("div",null,"CodeMirror-code"),o.selectionDiv=M("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=M("div",null,"CodeMirror-cursors"),o.measure=M("div",null,"CodeMirror-measure"),o.lineMeasure=M("div",null,"CodeMirror-measure"),o.lineSpace=N("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=N("div",[o.lineSpace],"CodeMirror-lines");o.mover=M("div",[c],null,"position: relative"),o.sizer=M("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=M("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=M("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=M("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=M("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=bi(i.gutters,i.lineNumbers),vi(o),r.init(o)}li.prototype.signal=function(e,t){xe(e,t)&&this.events.push(arguments)},li.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var wi=0,ki=null;function _i(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ci(e){var t=_i(e);return t.x*=ki,t.y*=ki,t}function Si(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=_i(t),i=r.x,o=r.y,a=ki;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,h=c.scrollWidth>c.clientWidth,f=c.scrollHeight>c.clientHeight;if(i&&h||o&&f){if(o&&y&&l)e:for(var m=t.target,g=s.view;m!=c;m=m.parentNode)for(var b=0;b<g.length;b++)if(g[b].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!p&&null!=a)return o&&f&&Ir(e,Math.max(0,c.scrollTop+o*a)),Br(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&f)&&ke(t),void(s.wheelStartX=null);if(o&&null!=a){var v=o*a,x=e.doc.scrollTop,w=x+s.wrapper.clientHeight;v<0?x=Math.max(0,x+v-50):w=Math.min(e.doc.height,w+v+50),pi(e,{top:x,bottom:w})}wi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ki=(ki*wi+n)/(wi+1),++wi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?ki=-.53:n?ki=15:u?ki=-.7:h&&(ki=-1/3);var Oi=function(e,t){this.ranges=e,this.primIndex=t};Oi.prototype.primary=function(){return this.ranges[this.primIndex]},Oi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ot(n.anchor,r.anchor)||!ot(n.head,r.head))return!1}return!0},Oi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ei(at(this.ranges[t].anchor),at(this.ranges[t].head));return new Oi(e,this.primIndex)},Oi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Oi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(it(t,r.from())>=0&&it(e,r.to())<=0)return n}return-1};var Ei=function(e,t){this.anchor=e,this.head=t};function ji(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return it(e.from(),t.from())})),n=q(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=it(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=lt(s.from(),a.from()),u=st(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ei(d?u:c,d?c:u))}}return new Oi(t,n)}function Ti(e,t){return new Oi([new Ei(e,t||e)],0)}function Mi(e){return e.text?rt(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ni(e,t){if(it(e,t.from)<0)return e;if(it(e,t.to)<=0)return Mi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Mi(t).ch-t.to.ch),rt(n,r)}function Ai(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ei(Ni(i.anchor,t),Ni(i.head,t)))}return ji(e.cm,n,e.sel.primIndex)}function Di(e,t,n){return e.line==t.line?rt(n.line,e.ch-t.ch+n.ch):rt(n.line+(e.line-t.line),e.ch)}function Li(e){e.doc.mode=$e(e.options,e.doc.modeOption),zi(e)}function zi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ai(e,100),e.state.modeGen++,e.curOp&&fr(e)}function Fi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Z(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Pi(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Nt(e),At(e,n);var i=r?r(e):1;i!=e.height&&Qe(e,i)}(e,n,i,r),dn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Yt(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=Ye(e,s.line),d=Ye(e,l.line),p=Z(c),h=i(c.length-1),f=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Fi(e,t)){var m=a(0,c.length-1);o(d,d.text,h),f&&e.remove(s.line,f),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+p+u.text.slice(l.ch),h);else{var g=a(1,c.length-1);g.push(new Yt(p+u.text.slice(l.ch),h,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,f);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,p+d.text.slice(l.ch),h);var b=a(1,c.length-1);f>1&&e.remove(s.line+1,f-1),e.insert(s.line+1,b)}dn(e,"change",e,t)}function Ii(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Ri(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,dr(e),Li(e),Bi(e),e.options.direction=t.direction,e.options.lineWrapping||Kt(e),e.options.mode=t.modeOption,fr(e)}function Bi(e){("rtl"==e.doc.direction?L:E)(e.display.lineDiv,"CodeMirror-rtl")}function Vi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function $i(e,t){var n={from:at(t.from),to:Mi(t),text:Xe(e,t.from,t.to)};return Gi(e,n,t.from.line,t.to.line+1),Ii(e,(function(e){return Gi(e,n,t.from.line,t.to.line+1)}),!0),n}function qi(e){for(;e.length&&Z(e).ranges;)e.pop()}function Hi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(qi(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}(i,i.lastOp==r)))a=Z(o.changes),0==it(t.from,t.to)&&0==it(t.from,a.to)?a.to=Mi(t):o.changes.push($i(e,t));else{var l=Z(i.done);for(l&&l.ranges||Ui(e.sel,i.done),o={changes:[$i(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Wi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Z(i.done),t))?i.done[i.done.length-1]=t:Ui(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&qi(i.undone)}function Ui(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Gi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ki(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Yi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Ki(n[i]));return r}(e,t),r=Tt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Xi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Oi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&q(t,Number(u[1]))>-1&&(Z(s)[d]=c[d],delete c[d])}}}return r}function Zi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=it(t,i)<0;o!=it(n,i)<0?(i=t,t=n):o!=it(t,n)<0&&(t=n)}return new Ei(i,t)}return new Ei(n||t,t)}function Qi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),ro(e,new Oi([Zi(e.sel.primary(),t,n,i)],0),r)}function Ji(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Zi(e.sel.ranges[o],t[o],null,i);ro(e,ji(e.cm,r,e.sel.primIndex),n)}function eo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,ro(e,ji(e.cm,i,e.sel.primIndex),r)}function to(e,t,n,r){ro(e,Ti(t,n),r)}function no(e,t,n){var r=e.history.done,i=Z(r);i&&i.ranges?(r[r.length-1]=t,io(e,t,n)):ro(e,t,n)}function ro(e,t,n){io(e,t,n),Wi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function io(e,t,n){(xe(e,"beforeSelectionChange")||e.cm&&xe(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new Ei(ut(e,t[n].anchor),ut(e,t[n].head))},origin:n&&n.origin};return be(e,"beforeSelectionChange",e,r),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ji(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(it(t.primary().head,e.sel.primary().head)<0?-1:1);oo(e,so(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Lr(e.cm)}function oo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ye(e.cm)),dn(e,"cursorActivity",e))}function ao(e){oo(e,so(e,e.sel,null,!1))}function so(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=co(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:co(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ei(l,c))}return i?ji(e.cm,i,t.primIndex):t}function lo(e,t,n,r,i){var o=Ye(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),p=void 0;if((r<0?u:c)&&(d=uo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(p=it(d,n))&&(r<0?p<0:p>0))return lo(e,d,t,r,i)}var h=l.find(r<0?-1:1);return(r<0?c:u)&&(h=uo(e,h,r,h.line==t.line?o:null)),h?lo(e,h,t,r,i):null}}return t}function co(e,t,n,r,i){var o=r||1,a=lo(e,t,n,o,i)||!i&&lo(e,t,n,o,!0)||lo(e,t,n,-o,i)||!i&&lo(e,t,n,-o,!0);return a||(e.cantEdit=!0,rt(e.first,0))}function uo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ut(e,rt(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line<e.first+e.size-1?rt(t.line+1,0):null:new rt(t.line,t.ch+n)}function po(e){e.setSelection(rt(e.firstLine(),0),rt(e.lastLine()),W)}function ho(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ut(e,t)),n&&(r.to=ut(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),be(e,"beforeChange",e,r),e.cm&&be(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function fo(e,t,n){if(e.cm){if(!e.cm.curOp)return ri(e.cm,fo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"))||(t=ho(e,t,!0))){var r=Ct&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=q(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(it(c.to,s.from)<0||it(c.from,s.to)>0)){var u=[l,1],d=it(c.from,s.from),p=it(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)mo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else mo(e,t)}}function mo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=it(t.from,t.to)){var n=Ai(e,t);Hi(e,t,n,e.cm?e.cm.curOp.id:NaN),vo(e,t,n,Tt(e,t));var r=[];Ii(e,(function(e,n){n||-1!=q(r,e.history)||(ko(e.history,t),r.push(e.history)),vo(e,t,null,Tt(e,t))}))}}function go(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Ui(i,l),n&&!i.equals(e.sel))return void ro(e,i,{clearRedo:!1});a=i}var u=[];Ui(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,d&&!ho(e,r,!1))return s.length=0,{};u.push($i(e,r));var o=n?Ai(e,r):Z(s);vo(e,r,o,Yi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Mi(r)});var a=[];Ii(e,(function(e,t){t||-1!=q(a,e.history)||(ko(e.history,r),a.push(e.history)),vo(e,r,null,Yi(e,r))}))},h=i.changes.length-1;h>=0;--h){var f=p(h);if(f)return f.v}}}}function bo(e,t){if(0!=t&&(e.first+=t,e.sel=new Oi(Q(e.sel.ranges,(function(e){return new Ei(rt(e.anchor.line+t,e.anchor.ch),rt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)mr(e.cm,r,"gutter")}}function vo(e,t,n,r){if(e.cm&&!e.cm.curOp)return ri(e.cm,vo)(e,t,n,r);if(t.to.line<e.first)bo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);bo(e,i),t={from:rt(e.first,0),to:rt(t.to.line+i,t.to.ch),text:[Z(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:rt(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=Ai(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Je(Vt(Ye(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ye(e),Pi(r,t,n,ur(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Gt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ai(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?fr(e):o.line!=a.line||1!=t.text.length||Fi(e.doc,t)?fr(e,o.line,a.line+1,c):mr(e,o.line,"text");var u=xe(e,"changes"),d=xe(e,"change");if(d||u){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&dn(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):Pi(e,t,r),io(e,n,W),e.cantEdit&&co(e,rt(e.firstLine(),0))&&(e.cantEdit=!1)}}function yo(e,t,n,r,i){var o;r||(r=n),it(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),fo(e,{from:n,to:r,text:t,origin:i})}function xo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function wo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)xo(o.ranges[s].anchor,t,n,r),xo(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=rt(c.from.line+r,c.from.ch),c.to=rt(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ko(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;wo(e.done,n,r,i),wo(e.undone,n,r,i)}function _o(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ye(e,ct(e,t)):i=Je(t),null==i?null:(r(o,i)&&e.cm&&mr(e.cm,i,n),o)}function Co(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function So(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Ei.prototype.from=function(){return lt(this.anchor,this.head)},Ei.prototype.to=function(){return st(this.anchor,this.head)},Ei.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Co.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Xt(i),dn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},So.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Co))){var s=[];this.collapse(s),this.children=[new Co(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new Co(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new So(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=q(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new So(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var Oo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function Eo(e,t,n){Ut(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Dr(e,n)}Oo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Je(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Cn(this);Qe(n,Math.max(0,n.height-o)),e&&(ni(e,(function(){Eo(e,n,-o),mr(e,r,"widget")})),dn(e,"lineWidgetCleared",e,this,r))}},Oo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Cn(this)-t;i&&(Ht(this.doc,r)||Qe(r,r.height+i),n&&ni(n,(function(){n.curOp.forceUpdate=!0,Eo(n,r,i),dn(n,"lineWidgetChanged",n,e,Je(r))})))},we(Oo);var jo=0,To=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++jo};function Mo(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=B(r)).shared=!1;var o=[Mo(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Ii(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Mo(e,ut(e,t),ut(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Z(o)})),new No(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ri(e.cm,Mo)(e,t,n,r,i);var o=new To(e,i),a=it(t,n);if(r&&B(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=N("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Bt(e,t.line,t,n,o)||t.line!=n.line&&Bt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");St=!0}o.addToHistory&&Hi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&Vt(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Qe(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new Ot(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ht(e,t)&&Qe(t,0)})),o.clearOnEnter&&fe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ct=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++jo,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)fr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)mr(c,u,"text");o.atomic&&ao(c.doc),dn(c,"markerAdded",c,o)}return o}To.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Yr(e),xe(this,"clear")){var n=this.find();n&&dn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Et(a.markedSpans,this);e&&!this.collapsed?mr(e,Je(a),"text"):e&&(null!=s.to&&(i=Je(a)),null!=s.from&&(r=Je(a))),a.markedSpans=jt(a.markedSpans,s),null==s.from&&this.collapsed&&!Ht(this.doc,a)&&e&&Qe(a,ar(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Vt(this.lines[l]),u=Gt(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ao(e.doc)),e&&dn(e,"markerCleared",e,this,r,i),t&&Xr(e),this.parent&&this.parent.clear()}},To.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Et(o.markedSpans,this);if(null!=a.from&&(n=rt(t?o:Je(o),a.from),-1==e))return n;if(null!=a.to&&(r=rt(t?o:Je(o),a.to),1==e))return r}return n&&{from:n,to:r}},To.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ni(r,(function(){var i=t.line,o=Je(t.line),a=Ln(r,o);if(a&&(Vn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ht(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Cn(n)-s;l&&Qe(i,i.height+l)}dn(r,"markerChanged",r,e)}))},To.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=q(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},To.prototype.detachLine=function(e){if(this.lines.splice(q(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(To);var No=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Ao(e){return e.findMarks(rt(e.first,0),e.clipPos(rt(e.lastLine())),(function(e){return e.parent}))}function Do(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ii(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==q(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}No.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();dn(this,"clear")}},No.prototype.find=function(e,t){return this.primary.find(e,t)},we(No);var Lo=0,zo=function(e,t,n,r,i){if(!(this instanceof zo))return new zo(e,t,n,r,i);null==n&&(n=0),So.call(this,[new Co([new Yt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=rt(n,0);this.sel=Ti(o),this.history=new Vi(null),this.id=++Lo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Pi(this,{from:o,to:o,text:e}),ro(this,Ti(o),W)};zo.prototype=ee(So.prototype,{constructor:zo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:oi((function(e){var t=rt(this.first,0),n=this.first+this.size-1;fo(this,{from:t,to:rt(n,Ye(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&zr(this.cm,0,0),ro(this,Ti(t),W)})),replaceRange:function(e,t,n,r){yo(this,e,t=ut(this,t),n=n?ut(this,n):t,r)},getRange:function(e,t,n){var r=Xe(this,ut(this,e),ut(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(tt(this,e))return Ye(this,e)},getLineNumber:function(e){return Je(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ye(this,e)),Vt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ut(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:oi((function(e,t,n){to(this,ut(this,"number"==typeof e?rt(e,t||0):e),null,n)})),setSelection:oi((function(e,t,n){to(this,ut(this,e),ut(this,t||e),n)})),extendSelection:oi((function(e,t,n){Qi(this,ut(this,e),t&&ut(this,t),n)})),extendSelections:oi((function(e,t){Ji(this,dt(this,e),t)})),extendSelectionsBy:oi((function(e,t){Ji(this,dt(this,Q(this.sel.ranges,e)),t)})),setSelections:oi((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Ei(ut(this,e[i].anchor),ut(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),ro(this,ji(this.cm,r,t),n)}})),addSelection:oi((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ei(ut(this,e),ut(this,t||e))),ro(this,ji(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:oi((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=rt(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Di(s.from,i,o),c=Di(Mi(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=it(u.head,u.anchor)<0;r[a]=new Ei(d?c:l,d?l:c)}else r[a]=new Ei(l,l)}return new Oi(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)fo(this,r[l]);s?no(this,s):this.cm&&Lr(this.cm)})),undo:oi((function(){go(this,"undo")})),redo:oi((function(){go(this,"redo")})),undoSelection:oi((function(){go(this,"undo",!0)})),redoSelection:oi((function(){go(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Vi(this.history),Ii(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Xi(this.history.done),undone:Xi(this.history.undone)}},setHistory:function(e){var t=this.history=new Vi(this.history);t.done=Xi(e.done.slice(0),null,!0),t.undone=Xi(e.undone.slice(0),null,!0)},setGutterMarker:oi((function(e,t,n){return _o(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ie(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:oi((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&_o(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ie(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!tt(this,e))return null;if(t=e,!(e=Ye(this,e)))return null}else if(null==(t=Je(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:oi((function(e,t,n){return _o(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:oi((function(e,t,n){return _o(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:oi((function(e,t,n){return function(e,t,n,r){var i=new Oo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),_o(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ht(e,t)){var r=Ut(t)<e.scrollTop;Qe(t,t.height+Cn(i)),r&&Dr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&dn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Je(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Mo(this,ut(this,e),ut(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Mo(this,e=ut(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ye(this,(e=ut(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ut(this,e),t=ut(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ut(this,rt(n,t))},indexFromPos:function(e){var t=(e=ut(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new zo(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new zo(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(it(o,a)){var s=Mo(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Ao(this)),r},unlinkDoc:function(e){if(e instanceof Na&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Do(Ao(this));break}if(e.history==this.history){var n=[e.id];Ii(e,(function(e){return n.push(e.id)}),!0),e.history=new Vi(null),e.history.done=Xi(this.history.done,n),e.history.undone=Xi(this.history.undone,n)}},iterLinkedDocs:function(e){Ii(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Le(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:oi((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&ni(t=this.cm,(function(){Bi(t),fr(t)})))}))}),zo.prototype.eachLine=zo.prototype.iter;var Fo=0;function Po(e){var t=this;if(Io(t),!ve(t,e)&&!Sn(t.display,e)){ke(e),a&&(Fo=+new Date);var n=pr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ri(t,(function(){var e={from:n=ut(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};fo(t.doc,e),no(t.doc,Ti(ut(t.doc,n),ut(t.doc,Mi(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==q(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),io(t.doc,Ti(n,n)),p)for(var h=0;h<p.length;++h)yo(t.doc,"",p[h].anchor,p[h].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Io(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ro(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Bo=!1;function Vo(){var e;Bo||(fe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ro($o)}),100))})),fe(window,"blur",(function(){return Ro(jr)})),Bo=!0)}function $o(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var qo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ho=0;Ho<10;Ho++)qo[Ho+48]=qo[Ho+96]=String(Ho);for(var Wo=65;Wo<=90;Wo++)qo[Wo]=String.fromCharCode(Wo);for(var Uo=1;Uo<=12;Uo++)qo[Uo+111]=qo[Uo+63235]="F"+Uo;var Go={};function Ko(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Yo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Q(n.split(" "),Ko),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Xo(e,t,n,r){var i=(t=ea(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Xo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Xo(e,t.fallthrough[o],n,r);if(a)return a}}}function Zo(e){var t="string"==typeof e?e:qo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Qo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(_?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(_?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Jo(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=qo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Qo(n,e,t))}function ea(e){return"string"==typeof e?Go[e]:e}function ta(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&it(o.from,Z(r).to)<=0;){var a=r.pop();if(it(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ni(e,(function(){for(var t=r.length-1;t>=0;t--)yo(e.doc,"",r[t].from,r[t].to,"+delete");Lr(e)}))}function na(e,t,n){var r=se(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ra(e,t,n){var r=na(e,t.ch,n);return null==r?null:new rt(t.line,r,n<0?"after":"before")}function ia(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=pe(n,t.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=zn(t,n);a=i<0?n.text.length-1:0;var u=Fn(t,c,a).top;a=le((function(e){return Fn(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=na(n,a,1))}else a=i<0?s.to:s.from;return new rt(r,a,l)}}return new rt(r,i<0?n.text.length:0,i<0?"before":"after")}Go.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Go.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Go.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Go.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Go.default=y?Go.macDefault:Go.pcDefault;var oa={selectAll:po,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return ta(e,(function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:rt(t.head.line+1,0)}:{from:t.head,to:rt(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return ta(e,(function(t){return{from:rt(t.from().line,0),to:ut(e.doc,rt(t.to().line+1,0))}}))},delLineLeft:function(e){return ta(e,(function(e){return{from:rt(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return ta(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return ta(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(rt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(rt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return aa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return sa(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Ye(e.doc,t),r=function(e){for(var t;t=It(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Je(r)),ia(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?sa(e,t.head):r}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=V(e.getLine(o.line),o.ch,r);t.push(X(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ni(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ye(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new rt(i.line,i.ch-1)),i.ch>0)i=new rt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),rt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ye(e.doc,i.line-1).text;a&&(i=new rt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),rt(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ei(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ni(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Lr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function aa(e,t){var n=Ye(e.doc,t),r=Vt(n);return r!=n&&(t=Je(r)),ia(!0,e,r,t,1)}function sa(e,t){var n=aa(e,t.line),r=Ye(e.doc,n.line),i=pe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return rt(n.line,a?0:o,n.sticky)}return n}function la(e,t,n){if("string"==typeof t&&!(t=oa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=H}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var ca=new $;function ua(e,t,n,r){var i=e.state.keySeq;if(i){if(Zo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ca.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),da(e,i+" "+t,n,r))return!0}return da(e,t,n,r)}function da(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Xo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Xo(t,e.options.extraKeys,n,e)||Xo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&dn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ke(n),Cr(e)),!!i}function pa(e,t){var n=Jo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ua(e,"Shift-"+n,t,(function(t){return la(e,t,!0)}))||ua(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return la(e,t)})):ua(e,n,t,(function(t){return la(e,t)})))}var ha=null;function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(P(t)),ve(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=pa(t,e);p&&(ha=i?r:null,i||88!=r||Fe||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(E(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n))}L(t,"CodeMirror-crosshair"),fe(document,"keyup",n),fe(document,"mouseover",n)}(t)}}function ma(e){16==e.keyCode&&(this.doc.sel.shift=!1),ve(this,e)}function ga(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Sn(t.display,e)||ve(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==ha)return ha=null,void ke(e);if(!p||e.which&&!(e.which<10)||!pa(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return ua(e,"'"+n+"'",t,(function(t){return la(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var ba,va,ya=function(e,t,n){this.time=e,this.pos=t,this.button=n};function xa(e){var t=this,n=t.display;if(!(ve(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Sn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!_a(t,e)){var r=pr(t,e),i=Ee(e),o=r?function(e,t){var n=+new Date;return va&&va.compare(n,e,t)?(ba=va=null,"triple"):ba&&ba.compare(n,e,t)?(va=new ya(n,e,t),ba=null,"double"):(ba=new ya(n,e,t),va=null,"single")}(r,i):"single";I(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ua(e,Qo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=oa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=H}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(R(Sr,e),0):e.curOp.focus=D(P(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=x?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(e,n,r),c=e.doc.sel;e.options.dragDrop&&Me&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-1&&(it((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(it(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=ri(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Or(e)),ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",u),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",c),o||(ke(t),r.addNew||Qi(e.doc,n,null,null,r.extend),l&&!h||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,fe(i.wrapper.ownerDocument,"mouseup",c),fe(i.wrapper.ownerDocument,"mousemove",u),fe(i.scroller,"dragstart",d),fe(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&Or(e);var i=e.display,o=e.doc;ke(t);var s,l,c=o.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new Ei(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ei(n,n)),n=pr(e,t,!0,!0),l=-1;else{var d=wa(e,n,r.unit);s=r.extend?Zi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,ro(o,ji(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(ro(o,ji(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):eo(o,l,s,U):(l=0,ro(o,new Oi([s],0),U),c=o.sel);var p=n;function h(t){if(0!=it(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=V(Ye(o,n.line).text,n.ch,a),d=V(Ye(o,t.line).text,t.ch,a),h=Math.min(u,d),f=Math.max(u,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var b=Ye(o,m).text,v=K(b,h,a);h==f?i.push(new Ei(rt(m,v),rt(m,v))):b.length>v&&i.push(new Ei(rt(m,v),rt(m,K(b,f,a))))}i.length||i.push(new Ei(n,n)),ro(o,ji(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,x=s,w=wa(e,t,r.unit),k=x.anchor;it(w.anchor,k)>0?(y=w.head,k=lt(x.from(),w.anchor)):(y=w.anchor,k=st(x.to(),w.head));var _=c.ranges.slice(0);_[l]=function(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==it(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var a=ue(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=o[c+(l?-1:0)],h=l==(1==p.level),f=h?p.from:p.to,m=h?"after":"before";return n.ch==f&&n.sticky==m?t:new Ei(new rt(n.line,f,m),r)}(e,new Ei(ut(o,k),y)),ro(o,ji(e,_,l),U)}}var f=i.wrapper.getBoundingClientRect(),m=0;function g(t){e.state.selectingText=!1,m=1/0,t&&(ke(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",b),ge(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var b=ri(e,(function(t){0!==t.buttons&&Ee(t)?function t(n){var a=++m,s=pr(e,n,!0,"rectangle"==r.unit);if(s)if(0!=it(s,p)){e.curOp.focus=D(P(e)),h(s);var l=Nr(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(ri(e,(function(){m==a&&t(n)})),150)}else{var c=n.clientY<f.top?-20:n.clientY>f.bottom?20:0;c&&setTimeout(ri(e,(function(){m==a&&(i.scroller.scrollTop+=c,t(n))})),50)}}(t):g(t)})),v=ri(e,g);e.state.selectingText=v,fe(i.wrapper.ownerDocument,"mousemove",b),fe(i.wrapper.ownerDocument,"mouseup",v)}(e,r,t,o)}(t,r,o,e):Oe(e)==n.scroller&&ke(e):2==i?(r&&Qi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?t.display.input.onContextMenu(e):Or(t)))}}function wa(e,t,n){if("char"==n)return new Ei(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ei(rt(t.line,0),ut(e.doc,rt(t.line+1,0)));var r=n(e,t);return new Ei(r.from,r.to)}function ka(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ke(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!xe(e,n))return Ce(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return be(e,n,e,et(e.doc,o),e.display.gutterSpecs[l].className,t),Ce(t)}}function _a(e,t){return ka(e,t,"gutterClick",!0)}function Ca(e,t){Sn(e.display,t)||function(e,t){return!!xe(e,"gutterContextMenu")&&ka(e,t,"gutterContextMenu",!1)}(e,t)||ve(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Sa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qn(e)}ya.prototype.compare=function(e,t,n){return this.time+400>e&&0==it(t,this.pos)&&n==this.button};var Oa={toString:function(){return"CodeMirror.Init"}},Ea={},ja={};function Ta(e,t,n){if(!t!=!(n&&n!=Oa)){var r=e.display.dragFunctions,i=t?fe:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ma(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(E(e.display.wrapper,"CodeMirror-wrap"),Kt(e)),dr(e),fr(e),qn(e),setTimeout((function(){return Hr(e)}),100)}function Na(e,t){var n=this;if(!(this instanceof Na))return new Na(e,t);this.options=t=t?B(t):{},B(Ea,t,!1);var r=t.value;"string"==typeof r?r=new zo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Na.inputStyles[t.inputStyle](this),o=this.display=new xi(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Sa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Gr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new $,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;fe(t.scroller,"mousedown",ri(e,xa)),fe(t.scroller,"dblclick",a&&s<11?ri(e,(function(t){if(!ve(e,t)){var n=pr(e,t);if(n&&!_a(e,t)&&!Sn(e.display,t)){ke(t);var r=e.findWordAt(n);Qi(e.doc,r.anchor,r.head)}}})):function(t){return ve(e,t)||ke(t)}),fe(t.scroller,"contextmenu",(function(t){return Ca(e,t)})),fe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ca(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}fe(t.scroller,"touchstart",(function(i){if(!ve(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!_a(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Sn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new Ei(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new Ei(rt(s.line,0),ut(e.doc,rt(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ke(n)}i()})),fe(t.scroller,"touchcancel",i),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Ir(e,t.scroller.scrollTop),Br(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return Si(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return Si(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ve(e,t)||Se(t)},over:function(t){ve(e,t)||(function(e,t){var n=pr(e,t);if(n){var r=document.createDocumentFragment();wr(e,n,r),e.display.dragCursor||(e.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}(e,t),Se(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Fo<100))Se(t);else if(!ve(e,t)&&!Sn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=M("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ri(e,Po),leave:function(t){ve(e,t)||Io(e)}};var l=t.input.getField();fe(l,"keyup",(function(t){return ma.call(e,t)})),fe(l,"keydown",ri(e,fa)),fe(l,"keypress",ri(e,ga)),fe(l,"focus",(function(t){return Er(e,t)})),fe(l,"blur",(function(t){return jr(e,t)}))}(this),Vo(),Yr(this),this.curOp.forceUpdate=!0,Ri(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Er(n)}),20):jr(this),ja)ja.hasOwnProperty(c)&&ja[c](this,t[c],Oa);gi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Aa.length;++u)Aa[u](this);Xr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Na.defaults=Ea,Na.optionHandlers=ja;var Aa=[];function Da(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=gt(e,t).state:n="prev");var a=e.options.tabSize,s=Ye(o,t),l=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==H||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?V(Ye(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",p=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)p+=a,d+="\t";if(p<c&&(d+=X(c-p)),d!=u)return yo(o,d,rt(t,0),rt(t,u.length),"+input"),s.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var m=o.sel.ranges[f];if(m.head.line==t&&m.head.ch<u.length){var g=rt(t,u.length);eo(o,f,new Ei(g,g));break}}}Na.defineInitHook=function(e){return Aa.push(e)};var La=null;function za(e){La=e}function Fa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Le(t),c=null;if(s&&r.ranges.length>1)if(La&&La.text.join("\n")==t){if(r.ranges.length%La.text.length==0){c=[];for(var u=0;u<La.text.length;u++)c.push(o.splitLines(La.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Q(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var h=r.ranges[p],f=h.from(),m=h.to();h.empty()&&(n&&n>0?f=rt(f.line,f.ch-n):e.state.overwrite&&!s?m=rt(m.line,Math.min(Ye(o,m.line).text.length,m.ch+Z(l).length)):s&&La&&La.lineWise&&La.text.join("\n")==l.join("\n")&&(f=m=rt(f.line,0)));var g={from:f,to:m,text:c?c[p%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};fo(e.doc,g),dn(e,"inputRead",e,g)}t&&!s&&Ia(e,t),Lr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Pa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ni(t,(function(){return Fa(t,n,0,null,"paste")})),!0}function Ia(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Da(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Da(e,i.head.line,"smart"));a&&dn(e,"electricInput",e,i.head.line)}}}function Ra(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:rt(i,0),head:rt(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ba(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Va(){var e=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=M("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Ba(e),t}function $a(e,t,n,r,i){var o=t,a=n,s=Ye(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(o){var a,c;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new rt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?function(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return ra(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ra(t,n,r);var s,l=function(e,n){return na(t,e instanceof rt?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||zn(e,t),tr(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,p=l(n,d?1:-1);if(null!=p&&(d?p<=a.to&&p<=u.end:p>=a.from&&p>=u.begin)){var h=d?"before":"after";return new rt(n.line,p,h)}}var f=function(e,t,r){for(var o=function(e,t){return t?new rt(n.line,l(e,1),"before"):new rt(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=f(o+r,r,u);if(m)return m;var g=r>0?u.end:l(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=f(r>0?0:i.length-1,r,c(g)))?null:m}(e.cm,s,t,n):ra(s,t,n);if(null==a){if(o||(c=t.line+l)<e.first||c>=e.first+e.size||(t=new rt(c,t.ch,t.sticky),!(s=Ye(e,c))))return!1;t=ia(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,d="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var f=s.text.charAt(t.ch)||"\n",m=re(f,p)?"w":d&&"\n"==f?"n":!d||/\s/.test(f)?null:"p";if(!d||h||m||(m="s"),u&&u!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(u=m),n>0&&!c(!h))break}var g=co(e,t,o,a,!0);return ot(o,g)&&(g.hitSide=!0),g}function qa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,I(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*ar(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ha=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Wa(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=An(n,r,t.line),o=pe(r,e.doc.direction),a="left";o&&(a=ue(o,t.ch)%2?"right":"left");var s=Rn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ua(e,t){return t&&(e.bad=!0),e}function Ga(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ua(e.clipPos(rt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ka(o,t,n)}}function Ka(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!A(r,t))return Ua(rt(Je(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Z(e.rest):e.line;return Ua(rt(Je(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=Je(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),rt(u,d)}}}var d=u(a,s,n);if(d)return Ua(d,i);for(var p=s.nextSibling,h=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(d=u(p,p.firstChild,0))return Ua(rt(d.line,d.ch-h),i);h+=p.textContent.length}for(var f=s.previousSibling,m=n;f;f=f.previousSibling){if(d=u(f,f.firstChild,-1))return Ua(rt(d.line,d.ch+m),i);m+=f.textContent.length}}Ha.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!ve(r,e)){if(r.somethingSelected())za({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ra(r);za({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,W),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=La.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Va(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=La.text.join("\n");var c=D(i.ownerDocument);F(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Ba(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),fe(i,"paste",(function(e){!o(e)||ve(r,e)||Pa(e,r)||s<=11&&setTimeout(ri(r,(function(){return t.updateFromDOM()})),20)})),fe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),fe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),fe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),fe(i,"touchstart",(function(){return n.forceCompositionEnd()})),fe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),fe(i,"copy",a),fe(i,"cut",a)},Ha.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ha.prototype.prepareSelection=function(){var e=xr(this.cm,!1);return e.focus=D(this.div.ownerDocument)==this.div,e},Ha.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ha.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ha.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ga(t,e.anchorNode,e.anchorOffset),s=Ga(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=it(lt(a,s),i)||0!=it(st(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&Wa(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Wa(t,o);if(!u){var d=l[l.length-1].measure,p=d.maps?d.maps[d.maps.length-1]:d.map;u={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(c&&u){var h,f=e.rangeCount&&e.getRangeAt(0);try{h=O(c.node,c.offset,u.offset,u.node)}catch(e){}h&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),f&&null==e.anchorNode?e.addRange(f):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ha.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ha.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},Ha.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ha.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return A(this.div,t)},Ha.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&D(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ha.prototype.blur=function(){this.div.blur()},Ha.prototype.getField=function(){return this.div},Ha.prototype.supportsTouch=function(){return!0},Ha.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):ni(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},Ha.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ha.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(b&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ga(t,e.anchorNode,e.anchorOffset),r=Ga(t,e.focusNode,e.focusOffset);n&&r&&ni(t,(function(){ro(t.doc,Ti(n,r),W),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ha.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=rt(a.line-1,Ye(r.doc,a.line-1).length)),s.ch==Ye(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=rt(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=hr(r,a.line))?(t=Je(i.view[0].line),n=i.view[0].node):(t=Je(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=hr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=Je(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(rt(r,0),rt(i+1,0),(g=+p,function(e){return e.id==g}));return void(h.length&&(o=h[0].find(0))&&u(Xe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;f&&c();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),f&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,c,t,l)),p=Xe(r.doc,rt(t,0),rt(l,Ye(r.doc,l).text.length));d.length>1&&p.length>1;)if(Z(d)==Z(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var h=0,f=0,m=d[0],g=p[0],b=Math.min(m.length,g.length);h<b&&m.charCodeAt(h)==g.charCodeAt(h);)++h;for(var v=Z(d),y=Z(p),x=Math.min(v.length-(1==d.length?h:0),y.length-(1==p.length?h:0));f<x&&v.charCodeAt(v.length-f-1)==y.charCodeAt(y.length-f-1);)++f;if(1==d.length&&1==p.length&&t==a.line)for(;h&&h>a.ch&&v.charCodeAt(v.length-f-1)==y.charCodeAt(y.length-f-1);)h--,f++;d[d.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var w=rt(t,h),k=rt(l,p.length?Z(p).length-f:0);return d.length>1||d[0]||it(w,k)?(yo(r.doc,d,w,k,"+input"),!0):void 0},Ha.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ha.prototype.reset=function(){this.forceCompositionEnd()},Ha.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ha.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ha.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ni(this.cm,(function(){return fr(e.cm)}))},Ha.prototype.setUneditable=function(e){e.contentEditable="false"},Ha.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ri(this.cm,Fa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ha.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ha.prototype.onContextMenu=function(){},Ha.prototype.resetPosition=function(){},Ha.prototype.needsContentAttribute=!0;var Ya=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new $,this.hasSelection=!1,this.composing=null};Ya.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(r,e)){if(r.somethingSelected())za({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ra(r);za({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,W):(n.prevInput="",i.value=t.text.join("\n"),F(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),fe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(i,"paste",(function(e){ve(r,e)||Pa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),fe(i,"cut",o),fe(i,"copy",o),fe(e.scroller,"paste",(function(t){if(!Sn(e,t)&&!ve(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),fe(e.lineSpace,"selectstart",(function(t){Sn(e,t)||ke(t)})),fe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ya.prototype.createField=function(e){this.wrapper=Va(),this.textarea=this.wrapper.firstChild},Ya.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ya.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=xr(e);if(e.options.moveInputWithCursor){var i=Xn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ya.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ya.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&F(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ya.prototype.getField=function(){return this.textarea},Ya.prototype.supportsTouch=function(){return!1},Ya.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||D(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},Ya.prototype.blur=function(){this.textarea.blur()},Ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ya.prototype.receivedFocus=function(){this.slowPoll()},Ya.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ya.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ya.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||ze(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return ni(t,(function(){Fa(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ya.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ya.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=pr(n,e),c=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ri(n,ro)(n.doc,Ti(o),W);var u,d=i.style.cssText,h=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=b,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),C){Se(e);var m=function(){ge(window,"mouseup",m),setTimeout(b,20)};fe(window,"mouseup",m)}else setTimeout(b,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function b(){if(t.contextMenuPending==b&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?ri(n,po)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ya.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ya.prototype.setUneditable=function(){},Ya.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Oa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Oa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Li(e)}),!0),n("indentUnit",2,Li,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){zi(e),qn(e),fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(rt(r,o))}r++}));for(var i=n.length-1;i>=0;i--)yo(e.doc,t,n[i],rt(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Oa&&e.refresh()})),n("specialCharPlaceholder",tn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Sa(e),yi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=ea(t),i=n!=Oa&&ea(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ma,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=bi(t,e.options.lineNumbers),yi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?cr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Hr(e)}),!0),n("scrollbarStyle","native",(function(e){Gr(e),Hr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=bi(e.options.gutters,t),yi(e)}),!0),n("firstLineNumber",1,yi,!0),n("lineNumberFormatter",(function(e){return e}),yi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(jr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ta),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,zi,!0),n("addModeClass",!1,zi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,zi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Na),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){I(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ri(this,t[e])(this,n,i),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](ea(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ii((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,fr(this)})),removeOverlay:ii((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void fr(this)}})),indentLine:ii((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),tt(this.doc,e)&&Da(this,e,t,n)})),indentSelection:ii((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Da(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Da(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&eo(this.doc,r,new Ei(o,c[r].to()),W)}}})),getTokenAt:function(e,t){return wt(this,e,t)},getLineTokens:function(e,t){return wt(this,rt(e),t,!0)},getTokenTypeAt:function(e){e=ut(this.doc,e);var t,n=mt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==q(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return gt(this,(e=ct(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Xn(this,null==e?n.head:"object"==typeof e?ut(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Yn(this,ut(this.doc,e),t||"page")},coordsChar:function(e,t){return Jn(this,(e=Kn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Kn(this,{top:e,left:0},t||"page").top,et(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return Gn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Ut(r):0)},defaultTextHeight:function(){return ar(this.display)},defaultCharWidth:function(){return sr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,c=(e=Xn(this,ut(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var d=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(c=e.bottom),u+t.offsetWidth>p&&(u=p-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(u=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=Ar(o,a)).scrollTop&&Ir(o,s.scrollTop),null!=s.scrollLeft&&Br(o,s.scrollLeft))},triggerOnKeyDown:ii(fa),triggerOnKeyPress:ii(ga),triggerOnKeyUp:ma,triggerOnMouseDown:ii(xa),execCommand:function(e){if(oa.hasOwnProperty(e))return oa[e].call(null,this)},triggerElectric:ii((function(e){Ia(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ut(this.doc,e),a=0;a<t&&!(o=$a(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ii((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?$a(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),G)})),deleteH:ii((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ta(this,(function(n){var i=$a(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ut(this.doc,e),s=0;s<t;++s){var l=Xn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=qa(this,l,i,n)).hitSide)break}return a},moveV:ii((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Xn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=qa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Dr(n,Yn(n,l,"div").top-s.top),l}),G),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Ye(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=re(o,i)?function(e){return re(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!re(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new Ei(rt(e.line,n),rt(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?L(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D(P(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ii((function(e,t){zr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Tn(this)-this.display.barHeight,width:e.scrollWidth-Tn(this)-this.display.barWidth,clientHeight:Nn(this),clientWidth:Mn(this)}},scrollIntoView:ii((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:rt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Fr(e),e.curOp.scrollToPos=t}(this,e):Pr(this,e.from,e.to,e.margin)})),setSize:ii((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&$n(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){mr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,be(this,"refresh",this)})),operation:function(e){return ni(this,e)},startOperation:function(){return Yr(this)},endOperation:function(){return Xr(this)},refresh:ii((function(){var e=this.display.cachedTextHeight;fr(this),this.curOp.forceUpdate=!0,qn(this),zr(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(null==e||Math.abs(e-ar(this.display))>.5||this.options.lineWrapping)&&dr(this),be(this,"refresh",this)})),swapDoc:ii((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ri(this,e),qn(this),this.display.input.reset(),zr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,dn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Na);var Xa="iter insert remove copy getEditor constructor".split(" ");for(var Za in zo.prototype)zo.prototype.hasOwnProperty(Za)&&q(Xa,Za)<0&&(Na.prototype[Za]=function(e){return function(){return e.apply(this.doc,arguments)}}(zo.prototype[Za]));return we(zo),Na.inputStyles={textarea:Ya,contenteditable:Ha},Na.defineMode=function(e){Na.defaults.mode||"null"==e||(Na.defaults.mode=e),Be.apply(this,arguments)},Na.defineMIME=function(e,t){Re[e]=t},Na.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Na.defineMIME("text/plain","null"),Na.defineExtension=function(e,t){Na.prototype[e]=t},Na.defineDocExtension=function(e,t){zo.prototype[e]=t},Na.fromTextArea=function(e,t){if((t=t?B(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(fe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Na((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=ge,e.on=fe,e.wheelEventPixels=Ci,e.Doc=zo,e.splitLines=Le,e.countColumn=V,e.findColumn=K,e.isWordChar=ne,e.Pass=H,e.signal=be,e.Line=Yt,e.changeEnd=Mi,e.scrollbarModel=Ur,e.Pos=rt,e.cmpPos=it,e.modes=Ie,e.mimeModes=Re,e.resolveMode=Ve,e.getMode=$e,e.modeExtensions=qe,e.extendMode=He,e.copyState=We,e.startState=Ge,e.innerMode=Ue,e.commands=oa,e.keyMap=Go,e.keyName=Jo,e.isModifierKey=Zo,e.lookupKey=Xo,e.normalizeKeyMap=Yo,e.StringStream=Ke,e.SharedTextMarker=No,e.TextMarker=To,e.LineWidget=Oo,e.e_preventDefault=ke,e.e_stopPropagation=_e,e.e_stop=Se,e.addClass=L,e.contains=A,e.rmClass=E,e.keyNames=qo}(Na),Na.version="5.65.7",Na}()},,,function(e,t,n){"use strict";(function(e){var r=n(12);t.a={name:"Thumbnail",data:()=>({src:""}),props:{disk:{type:String,required:!0},file:{type:Object,required:!0}},watch:{"file.timestamp":"loadImage"},mounted(){if(window.IntersectionObserver){new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(this.loadImage(),t.unobserve(this.$el))})},{root:null,threshold:"0.5"}).observe(this.$el)}else this.loadImage()},computed:{auth(){return this.$store.getters["fm/settings/authHeader"]}},methods:{loadImage(){this.auth?r.a.thumbnail(this.disk,this.file.path).then(t=>{const n=t.headers["content-type"].toLowerCase(),r=e.from(t.data,"binary").toString("base64");this.src=`data:${n};base64,${r}`}):this.src=`${this.$store.getters["fm/settings/baseUrl"]}thumbnails?disk=${this.disk}&path=${encodeURIComponent(this.file.path)}&v=${this.file.timestamp}`}}}}).call(this,n(64).Buffer)},function(e,t,n){"use strict";(function(e){var r=n(102),i=n(8),o=n(4),a=n(14),s=n(12);t.a={name:"PreviewModal",mixins:[i.a,o.a,a.a],components:{CropperModule:r.a},data:()=>({showCropperModule:!1,imgSrc:null}),mounted(){this.loadImage()},computed:{auth(){return this.$store.getters["fm/settings/authHeader"]},selectedDisk(){return this.$store.getters["fm/selectedDisk"]},selectedItem(){return this.$store.getters["fm/selectedItems"][0]},showFooter(){return this.canCrop(this.selectedItem.extension)&&!this.showCropperModule},maxHeight(){return this.$store.state.fm.modal.modalBlockHeight?this.$store.state.fm.modal.modalBlockHeight-170:300}},methods:{canCrop(e){return this.$store.state.fm.settings.cropExtensions.includes(e.toLowerCase())},closeCropper(){this.showCropperModule=!1,this.loadImage()},loadImage(){this.auth?s.a.preview(this.selectedDisk,this.selectedItem.path).then(t=>{const n=t.headers["content-type"].toLowerCase(),r=e.from(t.data,"binary").toString("base64");this.imgSrc=`data:${n};base64,${r}`}):this.imgSrc=`${this.$store.getters["fm/settings/baseUrl"]}preview?disk=${this.selectedDisk}&path=${encodeURIComponent(this.selectedItem.path)}&v=${this.selectedItem.timestamp}`}}}}).call(this,n(64).Buffer)},function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(h("atom","]]>")):null:e.match("--")?n(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(function e(t){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=e(t+1),r.tokenize(n,r);if(">"==i){if(1==t){r.tokenize=d;break}return r.tokenize=e(t-1),r.tokenize(n,r)}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=p,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function p(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=d,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=p;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function f(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function g(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),v):"closeTag"==e?y:b}function v(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",k):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,0,n)):(a="error",v)}function y(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",x):(a="tag error",w)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,0,n)):(a="error",w)}function x(e,t,n){return"endTag"!=e?(a="error",x):(m(n),b)}function w(e,t,n){return a="error",x(e,0,n)}function k(e,t,n){if("word"==e)return a="attribute",_;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?g(n,r):(g(n,r),n.context=new f(n,r,i==n.indented)),b}return a="error",k}function _(e,t,n){return"equals"==e?C:(l.allowMissing||(a="error"),k(e,0,n))}function C(e,t,n){return"string"==e?S:"word"==e&&l.allowUnquoted?(a="string",k):(a="error",k(e,0,n))}function S(e,t,n){return"string"==e?S:k(e,0,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=p&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[i.tagName];if(!a||!a.hasOwnProperty(o[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=k)}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function f(e,t,n){return r=e,i=n,t}function m(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=m,f("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=m),f("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return f("number","number");if("."==r&&e.match(".."))return f("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return f(r);if("="==r&&e.eat(">"))return f("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return f("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),f("number","number");if("/"==r)return e.eat("*")?(t.tokenize=g,g(e,t)):e.eat("/")?(e.skipToEnd(),f("comment","comment")):Ue(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f("regexp","string-2")):(e.eat("="),f("operator","operator",e.current()));if("`"==r)return t.tokenize=b,b(e,t);if("#"==r)return e.skipToEnd(),f("error","error");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),f("operator","operator",e.current());if(u.test(r)){e.eatWhile(u);var i=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(i)){var o=d[i];return f(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return f("async","keyword",i)}return f("variable","variable",i)}}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return f("comment","comment")}function b(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return f("quasi","string-2",e.current())}function v(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(u.test(s))o=!0;else{if(/["'\/]/.test(s))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var k={state:null,column:null,marked:null,cc:null};function _(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function C(){return _.apply(null,arguments),!0}function S(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function O(e){var t=k.state;if(k.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,n){if(n){if(n.block){var r=e(t,n.prev);return r?r==n.prev?n:new j(r,n.vars,!0):null}return S(t,n.vars)?n:new j(n.prev,new T(t,n.vars),!1)}return null}(e,t.context);if(null!=r)return void(t.context=r)}else if(!S(e,t.localVars))return void(t.localVars=new T(e,t.localVars));n.globalVars&&!S(e,t.globalVars)&&(t.globalVars=new T(e,t.globalVars))}function E(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function j(e,t,n){this.prev=e,this.vars=t,this.block=n}function T(e,t){this.name=e,this.next=t}var M=new T("this",new T("arguments",null));function N(){k.state.context=new j(k.state.context,k.state.localVars,!1),k.state.localVars=M}function A(){k.state.context=new j(k.state.context,k.state.localVars,!0),k.state.localVars=null}function D(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function L(e,t){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function z(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function F(e){return function t(n){return n==e?C():";"==e||"}"==n||")"==n||"]"==n?_():C(t)}}function P(e,t){return"var"==e?C(L("vardef",t),be,F(";"),z):"keyword a"==e?C(L("form"),V,P,z):"keyword b"==e?C(L("form"),P,z):"keyword d"==e?k.stream.match(/^\s*$/,!1)?C():C(L("stat"),q,F(";"),z):"debugger"==e?C(F(";")):"{"==e?C(L("}"),A,oe,z,D):";"==e?C():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==z&&k.state.cc.pop()(),C(L("form"),V,P,z,_e)):"function"==e?C(Ee):"for"==e?C(L("form"),Ce,P,z):"class"==e||c&&"interface"==t?(k.marked="keyword",C(L("form","class"==e?e:t),Ae,z)):"variable"==e?c&&"declare"==t?(k.marked="keyword",C(P)):c&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?C(He):"type"==t?C(Te,F("operator"),ce,F(";")):C(L("form"),ve,F("{"),L("}"),oe,z,z)):c&&"namespace"==t?(k.marked="keyword",C(L("form"),R,P,z)):c&&"abstract"==t?(k.marked="keyword",C(P)):C(L("stat"),Q):"switch"==e?C(L("form"),V,F("{"),L("}","switch"),A,oe,z,z,D):"case"==e?C(R,F(":")):"default"==e?C(F(":")):"catch"==e?C(L("form"),N,I,P,z,D):"export"==e?C(L("stat"),Fe,z):"import"==e?C(L("stat"),Ie,z):"async"==e?C(P):"@"==t?C(R,P):_(L("stat"),R,F(";"),z)}function I(e){if("("==e)return C(Me,F(")"))}function R(e,t){return $(e,t,!1)}function B(e,t){return $(e,t,!0)}function V(e){return"("!=e?_():C(L(")"),R,F(")"),z)}function $(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?Y:K;if("("==e)return C(N,L(")"),re(Me,")"),z,F("=>"),r,D);if("variable"==e)return _(N,ve,F("=>"),r,D)}var i=n?W:H;return y.hasOwnProperty(e)?C(i):"function"==e?C(Ee,i):"class"==e||c&&"interface"==t?(k.marked="keyword",C(L("form"),Ne,z)):"keyword c"==e||"async"==e?C(n?B:R):"("==e?C(L(")"),q,F(")"),z,i):"operator"==e||"spread"==e?C(n?B:R):"["==e?C(L("]"),qe,z,i):"{"==e?ie(ee,"}",null,i):"quasi"==e?_(U,i):"new"==e?C(function(e){return function(t){return"."==t?C(e?Z:X):"variable"==t&&c?C(fe,e?W:H):_(e?B:R)}}(n)):"import"==e?C(R):C()}function q(e){return e.match(/[;\}\)\],]/)?_():_(R)}function H(e,t){return","==e?C(R):W(e,t,!1)}function W(e,t,n){var r=0==n?H:W,i=0==n?R:B;return"=>"==e?C(N,n?Y:K,D):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?C(r):c&&"<"==t&&k.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?C(L(">"),re(ce,">"),z,r):"?"==t?C(R,F(":"),i):C(i):"quasi"==e?_(U,r):";"!=e?"("==e?ie(B,")","call",r):"."==e?C(J,r):"["==e?C(L("]"),q,F("]"),z,r):c&&"as"==t?(k.marked="keyword",C(ce,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),C(i)):void 0:void 0}function U(e,t){return"quasi"!=e?_():"${"!=t.slice(t.length-2)?C(U):C(R,G)}function G(e){if("}"==e)return k.marked="string-2",k.state.tokenize=b,C(U)}function K(e){return v(k.stream,k.state),_("{"==e?P:R)}function Y(e){return v(k.stream,k.state),_("{"==e?P:B)}function X(e,t){if("target"==t)return k.marked="keyword",C(H)}function Z(e,t){if("target"==t)return k.marked="keyword",C(W)}function Q(e){return":"==e?C(z,P):_(H,F(";"),z)}function J(e){if("variable"==e)return k.marked="property",C()}function ee(e,t){return"async"==e?(k.marked="property",C(ee)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?C(te):(c&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),C(ne))):"number"==e||"string"==e?(k.marked=s?"property":k.style+" property",C(ne)):"jsonld-keyword"==e?C(ne):c&&E(t)?(k.marked="keyword",C(ee)):"["==e?C(R,ae,F("]"),ne):"spread"==e?C(B,ne):"*"==t?(k.marked="keyword",C(ee)):":"==e?_(ne):void 0;var n}function te(e){return"variable"!=e?_(ne):(k.marked="property",C(Ee))}function ne(e){return":"==e?C(B):"("==e?_(Ee):void 0}function re(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),C((function(n,r){return n==t||r==t?_():_(e)}),r)}return i==t||o==t?C():n&&n.indexOf(";")>-1?_(e):C(F(t))}return function(n,i){return n==t||i==t?C():_(e,r)}}function ie(e,t,n){for(var r=3;r<arguments.length;r++)k.cc.push(arguments[r]);return C(L(t,n),re(e,t),z)}function oe(e){return"}"==e?C():_(P,oe)}function ae(e,t){if(c){if(":"==e||"in"==t)return C(ce);if("?"==t)return C(ae)}}function se(e){if(c&&":"==e)return k.stream.match(/^\s*\w+\s+is\b/,!1)?C(R,le,ce):C(ce)}function le(e,t){if("is"==t)return k.marked="keyword",C()}function ce(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(k.marked="keyword",C("typeof"==t?B:ce)):"variable"==e||"void"==t?(k.marked="type",C(he)):"|"==t||"&"==t?C(ce):"string"==e||"number"==e||"atom"==e?C(he):"["==e?C(L("]"),re(ce,"]",","),z,he):"{"==e?C(L("}"),re(de,"}",",;"),z,he):"("==e?C(re(pe,")"),ue,he):"<"==e?C(re(ce,">"),ce):void 0}function ue(e){if("=>"==e)return C(ce)}function de(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",C(de)):"?"==t||"number"==e||"string"==e?C(de):":"==e?C(ce):"["==e?C(F("variable"),ae,F("]"),de):"("==e?_(je,de):void 0}function pe(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?C(pe):":"==e?C(ce):"spread"==e?C(pe):_(ce)}function he(e,t){return"<"==t?C(L(">"),re(ce,">"),z,he):"|"==t||"."==e||"&"==t?C(ce):"["==e?C(ce,F("]"),he):"extends"==t||"implements"==t?(k.marked="keyword",C(ce)):"?"==t?C(ce,F(":"),ce):void 0}function fe(e,t){if("<"==t)return C(L(">"),re(ce,">"),z,he)}function me(){return _(ce,ge)}function ge(e,t){if("="==t)return C(ce)}function be(e,t){return"enum"==t?(k.marked="keyword",C(He)):_(ve,ae,we,ke)}function ve(e,t){return c&&E(t)?(k.marked="keyword",C(ve)):"variable"==e?(O(t),C()):"spread"==e?C(ve):"["==e?ie(xe,"]"):"{"==e?ie(ye,"}"):void 0}function ye(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?C(ve):"}"==e?_():"["==e?C(R,F("]"),F(":"),ye):C(F(":"),ve,we)):(O(t),C(we))}function xe(){return _(ve,we)}function we(e,t){if("="==t)return C(B)}function ke(e){if(","==e)return C(be)}function _e(e,t){if("keyword b"==e&&"else"==t)return C(L("form","else"),P,z)}function Ce(e,t){return"await"==t?C(Ce):"("==e?C(L(")"),Se,z):void 0}function Se(e){return"var"==e?C(be,Oe):"variable"==e?C(Oe):_(Oe)}function Oe(e,t){return")"==e?C():";"==e?C(Oe):"in"==t||"of"==t?(k.marked="keyword",C(R,Oe)):_(R,Oe)}function Ee(e,t){return"*"==t?(k.marked="keyword",C(Ee)):"variable"==e?(O(t),C(Ee)):"("==e?C(N,L(")"),re(Me,")"),z,se,P,D):c&&"<"==t?C(L(">"),re(me,">"),z,Ee):void 0}function je(e,t){return"*"==t?(k.marked="keyword",C(je)):"variable"==e?(O(t),C(je)):"("==e?C(N,L(")"),re(Me,")"),z,se,D):c&&"<"==t?C(L(">"),re(me,">"),z,je):void 0}function Te(e,t){return"keyword"==e||"variable"==e?(k.marked="type",C(Te)):"<"==t?C(L(">"),re(me,">"),z):void 0}function Me(e,t){return"@"==t&&C(R,Me),"spread"==e?C(Me):c&&E(t)?(k.marked="keyword",C(Me)):c&&"this"==e?C(ae,we):_(ve,ae,we)}function Ne(e,t){return"variable"==e?Ae(e,t):De(e,t)}function Ae(e,t){if("variable"==e)return O(t),C(De)}function De(e,t){return"<"==t?C(L(">"),re(me,">"),z,De):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(k.marked="keyword"),C(c?ce:R,De)):"{"==e?C(L("}"),Le,z):void 0}function Le(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&E(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",C(Le)):"variable"==e||"keyword"==k.style?(k.marked="property",C(c?ze:Ee,Le)):"number"==e||"string"==e?C(c?ze:Ee,Le):"["==e?C(R,ae,F("]"),c?ze:Ee,Le):"*"==t?(k.marked="keyword",C(Le)):c&&"("==e?_(je,Le):";"==e||","==e?C(Le):"}"==e?C():"@"==t?C(R,Le):void 0}function ze(e,t){if("?"==t)return C(ze);if(":"==e)return C(ce,we);if("="==t)return C(B);var n=k.state.lexical.prev;return _(n&&"interface"==n.info?je:Ee)}function Fe(e,t){return"*"==t?(k.marked="keyword",C($e,F(";"))):"default"==t?(k.marked="keyword",C(R,F(";"))):"{"==e?C(re(Pe,"}"),$e,F(";")):_(P)}function Pe(e,t){return"as"==t?(k.marked="keyword",C(F("variable"))):"variable"==e?_(B,Pe):void 0}function Ie(e){return"string"==e?C():"("==e?_(R):_(Re,Be,$e)}function Re(e,t){return"{"==e?ie(Re,"}"):("variable"==e&&O(t),"*"==t&&(k.marked="keyword"),C(Ve))}function Be(e){if(","==e)return C(Re,Be)}function Ve(e,t){if("as"==t)return k.marked="keyword",C(Re)}function $e(e,t){if("from"==t)return k.marked="keyword",C(R)}function qe(e){return"]"==e?C():_(re(B,"]"))}function He(){return _(L("form"),ve,F("{"),L("}"),re(We,"}"),z,z)}function We(){return _(ve,we)}function Ue(e,t,n){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return D.lex=!0,z.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new j(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),v(e,t)),t.tokenize!=g&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?R:P)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&w(e,r)?"variable-2":t}}(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==g)return e.Pass;if(t.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==z)l=l.prev;else if(u!=_e)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==H||i==W)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,h=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||h||0==n.doubleIndentSwitch?l.align?l.column+(h?0:1):l.indented+(h?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Ue,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=R&&t!=B||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(10))},function(e,t,n){(function(t){"object"==typeof navigator&&(e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var a={addCSS:!0,thumbWidth:15,watch:!0};function s(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var l=function(e){return null!=e?e.constructor:null},c=function(e,t){return!!(e&&t&&e instanceof t)},u=function(e){return l(e)===String},d=function(e){return Array.isArray(e)},p=function(e){return c(e,NodeList)},h=u,f=d,m=p,g=function(e){return c(e,Element)},b=function(e){return c(e,Event)},v=function(e){return function(e){return null==e}(e)||(u(e)||d(e)||p(e))&&!e.length||function(e){return l(e)===Object}(e)&&!Object.keys(e).length},y=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),g(t)?this.element=t:h(t)&&(this.element=document.querySelector(t)),g(this.element)&&v(this.element.rangeTouch)&&(this.config=o({},a,{},n),this.init())}return function(e,t,r){t&&n(e.prototype,t),r&&n(e,r)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!b(t))return null;var n,r=t.target,i=t.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,s=parseFloat(r.getAttribute("step"))||1,l=r.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(i.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),o+function(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}(n/100*(a-o),s)}},{key:"set",value:function(t){e.enabled&&b(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(v(t)||h(t)?r=Array.from(document.querySelectorAll(h(t)?t:'input[type="range"]')):g(t)?r=[t]:m(t)?r=Array.from(t):f(t)&&(r=t.filter(g)),v(r))return null;var i=o({},a,{},n);if(h(t)&&i.watch){var l=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){g(n)&&s(n,t)&&new e(n,i)}))}))}));l.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const x=e=>null!=e?e.constructor:null,w=(e,t)=>Boolean(e&&t&&e instanceof t),k=e=>null==e,_=e=>x(e)===Object,C=e=>x(e)===String,S=e=>x(e)===Function,O=e=>Array.isArray(e),E=e=>w(e,NodeList),j=e=>k(e)||(C(e)||O(e)||E(e))&&!e.length||_(e)&&!Object.keys(e).length;var T=k,M=_,N=e=>x(e)===Number&&!Number.isNaN(e),A=C,D=e=>x(e)===Boolean,L=S,z=O,F=E,P=e=>null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument,I=e=>w(e,Event),R=e=>w(e,KeyboardEvent),B=e=>w(e,TextTrack)||!k(e)&&C(e.kind),V=e=>{if(w(e,window.URL))return!0;if(!C(e))return!1;let t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://"+e);try{return!j(new URL(t).hostname)}catch(e){return!1}},$=j;const q=(()=>{const e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n=Object.keys(t).find(t=>void 0!==e.style[t]);return!!A(n)&&t[n]})();function H(e,t){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}},t)}const W={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function U(e,t){return t.split(".").reduce((e,t)=>e&&e[t],e)}function G(e={},...t){if(!t.length)return e;const n=t.shift();return M(n)?(Object.keys(n).forEach(t=>{M(n[t])?(Object.keys(e).includes(t)||Object.assign(e,{[t]:{}}),G(e[t],n[t])):Object.assign(e,{[t]:n[t]})}),G(e,...t)):e}function K(e,t){const n=e.length?e:[e];Array.from(n).reverse().forEach((e,n)=>{const r=n>0?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)})}function Y(e,t){P(e)&&!$(t)&&Object.entries(t).filter(([,e])=>!T(e)).forEach(([t,n])=>e.setAttribute(t,n))}function X(e,t,n){const r=document.createElement(e);return M(t)&&Y(r,t),A(n)&&(r.innerText=n),r}function Z(e,t,n,r){P(t)&&t.appendChild(X(e,n,r))}function Q(e){F(e)||z(e)?Array.from(e).forEach(Q):P(e)&&P(e.parentNode)&&e.parentNode.removeChild(e)}function J(e){if(!P(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),t-=1}function ee(e,t){return P(t)&&P(t.parentNode)&&P(e)?(t.parentNode.replaceChild(e,t),e):null}function te(e,t){if(!A(e)||$(e))return{};const n={},r=G({},t);return e.split(",").forEach(e=>{const t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),[a]=o,s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":A(r.class)?n.class=`${r.class} ${i}`:n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}}),G(r,n)}function ne(e,t){if(!P(e))return;let n=t;D(n)||(n=!e.hidden),e.hidden=n}function re(e,t,n){if(F(e))return Array.from(e).map(e=>re(e,t,n));if(P(e)){let r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function ie(e,t){return P(e)&&e.classList.contains(t)}function oe(e,t){const{prototype:n}=Element;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function ae(e){return this.elements.container.querySelectorAll(e)}function se(e){return this.elements.container.querySelector(e)}function le(e=null,t=!1){P(e)&&(e.focus({preventScroll:!0}),t&&re(e,this.config.classNames.tabFocus))}const ce={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ue={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t,n){const r=W.isIPhone&&n&&ue.playsinline,i=ue[e]||"html5"!==t;return{api:i,ui:i&&ue.rangeInput&&("video"!==e||!W.isIPhone||r)}},pip:!(W.isIPhone||!L(X("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||X("video").disablePictureInPicture)),airplay:L(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if($(e))return!1;const[t]=e.split("/");let n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(ce).includes(n)&&(n+=`; codecs="${ce[e]}"`);try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range","range"===e.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==q,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},de=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e})();function pe(e,t,n,r=!1,i=!0,o=!1){if(!e||!("addEventListener"in e)||$(t)||!L(n))return;const a=t.split(" ");let s=o;de&&(s={passive:i,capture:o}),a.forEach(t=>{this&&this.eventListeners&&r&&this.eventListeners.push({element:e,type:t,callback:n,options:s}),e[r?"addEventListener":"removeEventListener"](t,n,s)})}function he(e,t="",n,r=!0,i=!1){pe.call(this,e,t,n,!0,r,i)}function fe(e,t="",n,r=!0,i=!1){pe.call(this,e,t,n,!1,r,i)}function me(e,t="",n,r=!0,i=!1){const o=(...a)=>{fe(e,t,o,r,i),n.apply(this,a)};pe.call(this,e,t,o,!0,r,i)}function ge(e,t="",n=!1,r={}){if(!P(e)||$(t))return;const i=new CustomEvent(t,{bubbles:n,detail:{...r,plyr:this}});e.dispatchEvent(i)}function be(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:t,type:n,callback:r,options:i}=e;t.removeEventListener(n,r,i)}),this.eventListeners=[])}function ve(){return new Promise(e=>this.ready?setTimeout(e,0):he.call(this,this.elements.container,"ready",e)).then(()=>{})}function ye(e){(e=>w(e,Promise)&&S(e.then))(e)&&e.then(null,()=>{})}function xe(e){return z(e)?e.filter((t,n)=>e.indexOf(t)===n):e}function we(e,t){return z(e)&&e.length?e.reduce((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e):null}function ke(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const _e=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[t,n])=>({...e,[t/n]:[t,n]}),{});function Ce(e){return!!(z(e)||A(e)&&e.includes(":"))&&(z(e)?e:e.split(":")).map(Number).every(N)}function Se(e){if(!z(e)||!e.every(N))return null;const[t,n]=e,r=(e,t)=>0===t?e:r(t,e%t),i=r(t,n);return[t/i,n/i]}function Oe(e){const t=e=>Ce(e)?e.split(":").map(Number):null;let n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!$(this.embed)&&z(this.embed.ratio)&&({ratio:n}=this.embed),null===n&&this.isHTML5){const{videoWidth:e,videoHeight:t}=this.media;n=[e,t]}return Se(n)}function Ee(e){if(!this.isVideo)return{};const{wrapper:t}=this.elements,n=Oe.call(this,e);if(!z(n))return{};const[r,i]=Se(n),o=100/r*i;if(ke(`aspect-ratio: ${r}/${i}`)?t.style.aspectRatio=`${r}/${i}`:t.style.paddingBottom=o+"%",this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const e=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),n=(e-o)/(e/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${n}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:o,ratio:n}}function je(e,t,n=.05){const r=e/t,i=we(Object.keys(_e),r);return Math.abs(i-r)<=n?_e[i]:[e,t]}const Te={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const t=e.getAttribute("type");return!!$(t)||ue.mime.call(this,t)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:Te.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,$(this.config.ratio)||Ee.call(e),Object.defineProperty(e.media,"quality",{get(){const t=Te.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return t&&Number(t.getAttribute("size"))},set(t){if(e.quality!==t){if(e.config.quality.forced&&L(e.config.quality.onChange))e.config.quality.onChange(t);else{const n=Te.getSources.call(e).find(e=>Number(e.getAttribute("size"))===t);if(!n)return;const{currentTime:r,paused:i,preload:o,readyState:a,playbackRate:s}=e.media;e.media.src=n.getAttribute("src"),("none"!==o||a)&&(e.once("loadedmetadata",()=>{e.speed=s,e.currentTime=r,i||ye(e.play())}),e.media.load())}ge.call(e,e.media,"qualitychange",!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(Q(Te.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Me(e,...t){return $(e)?e:e.toString().replace(/{(\d+)}/g,(e,n)=>t[n].toString())}const Ne=(e="",t="",n="")=>e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString()),Ae=(e="")=>e.toString().replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase());function De(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const Le={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},ze={get(e="",t={}){if($(e)||$(t))return"";let n=U(t.i18n,e);if($(n))return Object.keys(Le).includes(e)?Le[e]:"";const r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach(([e,t])=>{n=Ne(n,e,t)}),n}};class Fe{constructor(t){e(this,"get",e=>{if(!Fe.supported||!this.enabled)return null;const t=window.localStorage.getItem(this.key);if($(t))return null;const n=JSON.parse(t);return A(e)&&e.length?n[e]:n}),e(this,"set",e=>{if(!Fe.supported||!this.enabled)return;if(!M(e))return;let t=this.get();$(t)&&(t={}),G(t,e);try{window.localStorage.setItem(this.key,JSON.stringify(t))}catch(e){}}),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}function Pe(e,t="text"){return new Promise((n,r)=>{try{const r=new XMLHttpRequest;if(!("withCredentials"in r))return;r.addEventListener("load",()=>{if("text"===t)try{n(JSON.parse(r.responseText))}catch(e){n(r.responseText)}else n(r.response)}),r.addEventListener("error",()=>{throw new Error(r.status)}),r.open("GET",e,!0),r.responseType=t,r.send()}catch(e){r(e)}})}function Ie(e,t){if(!A(e))return;const n=A(t);let r=!1;const i=()=>null!==document.getElementById(t),o=(e,t)=>{e.innerHTML=t,n&&i()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!i()){const i=Fe.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),n&&a.setAttribute("id",t),i){const e=window.localStorage.getItem("cache-"+t);if(r=null!==e,r){const t=JSON.parse(e);o(a,t.content)}}Pe(e).then(e=>{if(!$(e)){if(i)try{window.localStorage.setItem("cache-"+t,JSON.stringify({content:e}))}catch(e){}o(a,e)}}).catch(()=>{})}}const Re=e=>Math.trunc(e/60/60%60,10);function Be(e=0,t=!1,n=!1){if(!N(e))return Be(void 0,t,n);const r=e=>("0"+e).slice(-2);let i=Re(e);const o=(a=e,Math.trunc(a/60%60,10));var a;const s=(e=>Math.trunc(e%60,10))(e);return i=t||i>0?i+":":"",`${n&&e>0?"-":""}${i}${r(o)}:${r(s)}`}const Ve={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,n=e.host!==t||W.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements(){try{return this.elements.controls=se.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:ae.call(this,this.config.selectors.buttons.play),pause:se.call(this,this.config.selectors.buttons.pause),restart:se.call(this,this.config.selectors.buttons.restart),rewind:se.call(this,this.config.selectors.buttons.rewind),fastForward:se.call(this,this.config.selectors.buttons.fastForward),mute:se.call(this,this.config.selectors.buttons.mute),pip:se.call(this,this.config.selectors.buttons.pip),airplay:se.call(this,this.config.selectors.buttons.airplay),settings:se.call(this,this.config.selectors.buttons.settings),captions:se.call(this,this.config.selectors.buttons.captions),fullscreen:se.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=se.call(this,this.config.selectors.progress),this.elements.inputs={seek:se.call(this,this.config.selectors.inputs.seek),volume:se.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:se.call(this,this.config.selectors.display.buffer),currentTime:se.call(this,this.config.selectors.display.currentTime),duration:se.call(this,this.config.selectors.display.duration)},P(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector("."+this.config.classNames.tooltip)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,t){const n="http://www.w3.org/2000/svg",r=Ve.getIconUrl.call(this),i=`${r.cors?"":r.url}#${this.config.iconPrefix}`,o=document.createElementNS(n,"svg");Y(o,G(t,{"aria-hidden":"true",focusable:"false"}));const a=document.createElementNS(n,"use"),s=`${i}-${e}`;return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",s),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),o.appendChild(a),o},createLabel(e,t={}){const n=ze.get(e,this.config);return X("span",{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")},n)},createBadge(e){if($(e))return null;const t=X("span",{class:this.config.classNames.menu.value});return t.appendChild(X("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const n=G({},t);let r=function(e=""){let t=e.toString();return t=function(e=""){let t=e.toString();return t=Ne(t,"-"," "),t=Ne(t,"_"," "),t=Ae(t),Ne(t," ","")}(t),t.charAt(0).toLowerCase()+t.slice(1)}(e);const i={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(e=>{Object.keys(n).includes(e)&&(i[e]=n[e],delete n[e])}),"button"!==i.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some(e=>e===this.config.classNames.control)||G(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,e){case"play":i.toggle=!0,i.label="play",i.labelPressed="pause",i.icon="play",i.iconPressed="pause";break;case"mute":i.toggle=!0,i.label="mute",i.labelPressed="unmute",i.icon="volume",i.iconPressed="muted";break;case"captions":i.toggle=!0,i.label="enableCaptions",i.labelPressed="disableCaptions",i.icon="captions-off",i.iconPressed="captions-on";break;case"fullscreen":i.toggle=!0,i.label="enterFullscreen",i.labelPressed="exitFullscreen",i.icon="enter-fullscreen",i.iconPressed="exit-fullscreen";break;case"play-large":n.class+=` ${this.config.classNames.control}--overlaid`,r="play",i.label="play",i.icon="play";break;default:$(i.label)&&(i.label=r),$(i.icon)&&(i.icon=e)}const o=X(i.element);return i.toggle?(o.appendChild(Ve.createIcon.call(this,i.iconPressed,{class:"icon--pressed"})),o.appendChild(Ve.createIcon.call(this,i.icon,{class:"icon--not-pressed"})),o.appendChild(Ve.createLabel.call(this,i.labelPressed,{class:"label--pressed"})),o.appendChild(Ve.createLabel.call(this,i.label,{class:"label--not-pressed"}))):(o.appendChild(Ve.createIcon.call(this,i.icon)),o.appendChild(Ve.createLabel.call(this,i.label))),G(n,te(this.config.selectors.buttons[r],n)),Y(o,n),"play"===r?(z(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(o)):this.elements.buttons[r]=o,o},createRange(e,t){const n=X("input",G(te(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":ze.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,Ve.updateRangeFill.call(this,n),y.setup(n),n},createProgress(e,t){const n=X("progress",G(te(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(X("span",null,"0"));const t={played:"played",buffer:"buffered"}[e],r=t?ze.get(t,this.config):"";n.innerText="% "+r.toLowerCase()}return this.elements.display[e]=n,n},createTime(e,t){const n=te(this.config.selectors.display[e],t),r=X("div",G(n,{class:`${n.class?n.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":ze.get(e,this.config)}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts(e,t){he.call(this,e,"keydown keyup",n=>{if(!["Space","ArrowUp","ArrowDown","ArrowRight"].includes(n.key))return;if(n.preventDefault(),n.stopPropagation(),"keydown"===n.type)return;const r=oe(e,'[role="menuitemradio"]');if(!r&&["Space","ArrowRight"].includes(n.key))Ve.showMenuPanel.call(this,t,!0);else{let t;"Space"!==n.key&&("ArrowDown"===n.key||r&&"ArrowRight"===n.key?(t=e.nextElementSibling,P(t)||(t=e.parentNode.firstElementChild)):(t=e.previousElementSibling,P(t)||(t=e.parentNode.lastElementChild)),le.call(this,t,!0))}},!1),he.call(this,e,"keyup",e=>{"Return"===e.key&&Ve.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:t,type:n,title:r,badge:i=null,checked:o=!1}){const a=te(this.config.selectors.inputs[n]),s=X("button",G(a,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${a.class?a.class:""}`.trim(),"aria-checked":o,value:e})),l=X("span");l.innerHTML=r,P(i)&&l.appendChild(i),s.appendChild(l),Object.defineProperty(s,"checked",{enumerable:!0,get:()=>"true"===s.getAttribute("aria-checked"),set(e){e&&Array.from(s.parentNode.children).filter(e=>oe(e,'[role="menuitemradio"]')).forEach(e=>e.setAttribute("aria-checked","false")),s.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(s,"click keyup",t=>{if(!R(t)||"Space"===t.key){switch(t.preventDefault(),t.stopPropagation(),s.checked=!0,n){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}Ve.showMenuPanel.call(this,"home",R(t))}},n,!1),Ve.bindMenuItemShortcuts.call(this,s,n),t.appendChild(s)},formatTime(e=0,t=!1){return N(e)?Be(e,Re(this.duration)>0,t):e},updateTimeDisplay(e=null,t=0,n=!1){P(e)&&N(t)&&(e.innerText=Ve.formatTime(t,n))},updateVolume(){this.supported.ui&&(P(this.elements.inputs.volume)&&Ve.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),P(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,t=0){P(e)&&(e.value=t,Ve.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!I(e))return;let t=0;const n=(e,t)=>{const n=N(t)?t:0,r=P(e)?e:this.elements.display.buffer;if(P(r)){r.value=n;const e=r.getElementsByTagName("span")[0];P(e)&&(e.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":r=this.currentTime,i=this.duration,t=0===r||0===i||Number.isNaN(r)||Number.isNaN(i)?0:(r/i*100).toFixed(2),"timeupdate"===e.type&&Ve.setRange.call(this,this.elements.inputs.seek,t);break;case"playing":case"progress":n(this.elements.display.buffer,100*this.buffered)}var r,i},updateRangeFill(e){const t=I(e)?e.target:e;if(P(t)&&"range"===t.getAttribute("type")){if(oe(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const e=Ve.formatTime(this.currentTime),n=Ve.formatTime(this.duration),r=ze.get("seekLabel",this.config);t.setAttribute("aria-valuetext",r.replace("{currentTime}",e).replace("{duration}",n))}else if(oe(t,this.config.selectors.inputs.volume)){const e=100*t.value;t.setAttribute("aria-valuenow",e),t.setAttribute("aria-valuetext",e.toFixed(1)+"%")}else t.setAttribute("aria-valuenow",t.value);W.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip(e){var t,n;if(!this.config.tooltips.seek||!P(this.elements.inputs.seek)||!P(this.elements.display.seekTooltip)||0===this.duration)return;const r=this.elements.display.seekTooltip,i=this.config.classNames.tooltip+"--visible",o=e=>re(r,i,e);if(this.touch)return void o(!1);let a=0;const s=this.elements.progress.getBoundingClientRect();if(I(e))a=100/s.width*(e.pageX-s.left);else{if(!ie(r,i))return;a=parseFloat(r.style.left,10)}a<0?a=0:a>100&&(a=100);const l=this.duration/100*a;r.innerText=Ve.formatTime(l);const c=null===(t=this.config.markers)||void 0===t||null===(n=t.points)||void 0===n?void 0:n.find(({time:e})=>e===Math.round(l));c&&r.insertAdjacentHTML("afterbegin",c.label+"<br>"),r.style.left=a+"%",I(e)&&["mouseenter","mouseleave"].includes(e.type)&&o("mouseenter"===e.type)},timeUpdate(e){const t=!P(this.elements.display.duration)&&this.config.invertTime;Ve.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Ve.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return ne(this.elements.display.currentTime,!0),void ne(this.elements.progress,!0);P(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=P(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Ve.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Ve.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&Ve.setMarkers.call(this),Ve.updateSeekTooltip.call(this)},toggleMenuButton(e,t){ne(this.elements.settings.buttons[e],!t)},updateSetting(e,t,n){const r=this.elements.settings.panels[e];let i=null,o=t;if("captions"===e)i=this.currentTrack;else{if(i=$(n)?this[e]:n,$(i)&&(i=this.config[e].default),!$(this.options[e])&&!this.options[e].includes(i))return void this.debug.warn(`Unsupported value of '${i}' for ${e}`);if(!this.config[e].options.includes(i))return void this.debug.warn(`Disabled value of '${i}' for ${e}`)}if(P(o)||(o=r&&r.querySelector('[role="menu"]')),!P(o))return;this.elements.settings.buttons[e].querySelector("."+this.config.classNames.menu.value).innerHTML=Ve.getLabel.call(this,e,i);const a=o&&o.querySelector(`[value="${i}"]`);P(a)&&(a.checked=!0)},getLabel(e,t){switch(e){case"speed":return 1===t?ze.get("normal",this.config):t+"×";case"quality":if(N(t)){const e=ze.get("qualityLabel."+t,this.config);return e.length?e:t+"p"}return Ae(t);case"captions":return He.getLabel.call(this);default:return null}},setQualityMenu(e){if(!P(this.elements.settings.panels.quality))return;const t="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');z(e)&&(this.options.quality=xe(e).filter(e=>this.config.quality.options.includes(e)));const r=!$(this.options.quality)&&this.options.quality.length>1;if(Ve.toggleMenuButton.call(this,t,r),J(n),Ve.checkMenu.call(this),!r)return;const i=e=>{const t=ze.get("qualityBadge."+e,this.config);return t.length?Ve.createBadge.call(this,t):null};this.options.quality.sort((e,t)=>{const n=this.config.quality.options;return n.indexOf(e)>n.indexOf(t)?1:-1}).forEach(e=>{Ve.createMenuItem.call(this,{value:e,list:n,type:t,title:Ve.getLabel.call(this,"quality",e),badge:i(e)})}),Ve.updateSetting.call(this,t,n)},setCaptionsMenu(){if(!P(this.elements.settings.panels.captions))return;const e="captions",t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=He.getTracks.call(this),r=Boolean(n.length);if(Ve.toggleMenuButton.call(this,e,r),J(t),Ve.checkMenu.call(this),!r)return;const i=n.map((e,n)=>({value:n,checked:this.captions.toggled&&this.currentTrack===n,title:He.getLabel.call(this,e),badge:e.language&&Ve.createBadge.call(this,e.language.toUpperCase()),list:t,type:"language"}));i.unshift({value:-1,checked:!this.captions.toggled,title:ze.get("disabled",this.config),list:t,type:"language"}),i.forEach(Ve.createMenuItem.bind(this)),Ve.updateSetting.call(this,e,t)},setSpeedMenu(){if(!P(this.elements.settings.panels.speed))return;const e="speed",t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(e=>e>=this.minimumSpeed&&e<=this.maximumSpeed);const n=!$(this.options.speed)&&this.options.speed.length>1;Ve.toggleMenuButton.call(this,e,n),J(t),Ve.checkMenu.call(this),n&&(this.options.speed.forEach(n=>{Ve.createMenuItem.call(this,{value:n,list:t,type:e,title:Ve.getLabel.call(this,"speed",n)})}),Ve.updateSetting.call(this,e,t))},checkMenu(){const{buttons:e}=this.elements.settings,t=!$(e)&&Object.values(e).some(e=>!e.hidden);ne(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let n=e;P(n)||(n=Object.values(this.elements.settings.panels).find(e=>!e.hidden));const r=n.querySelector('[role^="menuitem"]');le.call(this,r,t)},toggleMenu(e){const{popup:t}=this.elements.settings,n=this.elements.buttons.settings;if(!P(t)||!P(n))return;const{hidden:r}=t;let i=r;if(D(e))i=e;else if(R(e)&&"Escape"===e.key)i=!1;else if(I(e)){const r=L(e.composedPath)?e.composedPath()[0]:e.target,o=t.contains(r);if(o||!o&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),ne(t,!i),re(this.elements.container,this.config.classNames.menu.open,i),i&&R(e)?Ve.focusFirstMenuItem.call(this,null,!0):i||r||le.call(this,n,R(e))},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);const n=t.scrollWidth,r=t.scrollHeight;return Q(t),{width:n,height:r}},showMenuPanel(e="",t=!1){const n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!P(n))return;const r=n.parentNode,i=Array.from(r.children).find(e=>!e.hidden);if(ue.transitions&&!ue.reducedMotion){r.style.width=i.scrollWidth+"px",r.style.height=i.scrollHeight+"px";const e=Ve.getMenuSize.call(this,n),t=e=>{e.target===r&&["width","height"].includes(e.propertyName)&&(r.style.width="",r.style.height="",fe.call(this,r,q,t))};he.call(this,r,q,t),r.style.width=e.width+"px",r.style.height=e.height+"px"}ne(i,!0),ne(n,!1),Ve.focusFirstMenuItem.call(this,n,t)},setDownloadUrl(){const e=this.elements.buttons.download;P(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:t,createButton:n,createProgress:r,createRange:i,createTime:o,setQualityMenu:a,setSpeedMenu:s,showMenuPanel:l}=Ve;this.elements.controls=null,z(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));const c=X("div",te(this.config.selectors.controls.wrapper));this.elements.controls=c;const u={class:"plyr__controls__item"};return xe(z(this.config.controls)?this.config.controls:[]).forEach(a=>{if("restart"===a&&c.appendChild(n.call(this,"restart",u)),"rewind"===a&&c.appendChild(n.call(this,"rewind",u)),"play"===a&&c.appendChild(n.call(this,"play",u)),"fast-forward"===a&&c.appendChild(n.call(this,"fast-forward",u)),"progress"===a){const t=X("div",{class:u.class+" plyr__progress__container"}),n=X("div",te(this.config.selectors.progress));if(n.appendChild(i.call(this,"seek",{id:"plyr-seek-"+e.id})),n.appendChild(r.call(this,"buffer")),this.config.tooltips.seek){const e=X("span",{class:this.config.classNames.tooltip},"00:00");n.appendChild(e),this.elements.display.seekTooltip=e}this.elements.progress=n,t.appendChild(this.elements.progress),c.appendChild(t)}if("current-time"===a&&c.appendChild(o.call(this,"currentTime",u)),"duration"===a&&c.appendChild(o.call(this,"duration",u)),"mute"===a||"volume"===a){let{volume:t}=this.elements;if(P(t)&&c.contains(t)||(t=X("div",G({},u,{class:(u.class+" plyr__volume").trim()})),this.elements.volume=t,c.appendChild(t)),"mute"===a&&t.appendChild(n.call(this,"mute")),"volume"===a&&!W.isIos){const n={max:1,step:.05,value:this.config.volume};t.appendChild(i.call(this,"volume",G(n,{id:"plyr-volume-"+e.id})))}}if("captions"===a&&c.appendChild(n.call(this,"captions",u)),"settings"===a&&!$(this.config.settings)){const r=X("div",G({},u,{class:(u.class+" plyr__menu").trim(),hidden:""}));r.appendChild(n.call(this,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-"+e.id,"aria-expanded":!1}));const i=X("div",{class:"plyr__menu__container",id:"plyr-settings-"+e.id,hidden:""}),o=X("div"),a=X("div",{id:`plyr-settings-${e.id}-home`}),s=X("div",{role:"menu"});a.appendChild(s),o.appendChild(a),this.elements.settings.panels.home=a,this.config.settings.forEach(n=>{const r=X("button",G(te(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));t.call(this,r,n),he.call(this,r,"click",()=>{l.call(this,n,!1)});const i=X("span",null,ze.get(n,this.config)),a=X("span",{class:this.config.classNames.menu.value});a.innerHTML=e[n],i.appendChild(a),r.appendChild(i),s.appendChild(r);const c=X("div",{id:`plyr-settings-${e.id}-${n}`,hidden:""}),u=X("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});u.appendChild(X("span",{"aria-hidden":!0},ze.get(n,this.config))),u.appendChild(X("span",{class:this.config.classNames.hidden},ze.get("menuBack",this.config))),he.call(this,c,"keydown",e=>{"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),l.call(this,"home",!0))},!1),he.call(this,u,"click",()=>{l.call(this,"home",!1)}),c.appendChild(u),c.appendChild(X("div",{role:"menu"})),o.appendChild(c),this.elements.settings.buttons[n]=r,this.elements.settings.panels[n]=c}),i.appendChild(o),r.appendChild(i),c.appendChild(r),this.elements.settings.popup=i,this.elements.settings.menu=r}if("pip"===a&&ue.pip&&c.appendChild(n.call(this,"pip",u)),"airplay"===a&&ue.airplay&&c.appendChild(n.call(this,"airplay",u)),"download"===a){const e=G({},u,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(e.download="");const{download:t}=this.config.urls;!V(t)&&this.isEmbed&&G(e,{icon:"logo-"+this.provider,label:this.provider}),c.appendChild(n.call(this,"download",e))}"fullscreen"===a&&c.appendChild(n.call(this,"fullscreen",u))}),this.isHTML5&&a.call(this,Te.getQualityOptions.call(this)),s.call(this),c},inject(){if(this.config.loadSprite){const e=Ve.getIconUrl.call(this);e.cors&&Ie(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const t={id:this.id,seektime:this.config.seekTime,title:this.config.title};let n,r=!0;if(L(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),P(this.config.controls)||A(this.config.controls)?e=this.config.controls:(e=Ve.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:He.getLabel.call(this)}),r=!1),r&&A(this.config.controls)&&(e=(e=>{let n=e;return Object.entries(t).forEach(([e,t])=>{n=Ne(n,`{${e}}`,t)}),n})(e)),A(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),P(n)||(n=this.elements.container),n[P(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),P(this.elements.controls)||Ve.findElements.call(this),!$(this.elements.buttons)){const e=e=>{const t=this.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:()=>ie(e,t),set(n=!1){re(e,t,n)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(t=>{z(t)||F(t)?Array.from(t).filter(Boolean).forEach(e):e(t)})}if(W.isEdge&&H(n),this.config.tooltips.controls){const{classNames:e,selectors:t}=this.config,n=`${t.controls.wrapper} ${t.labels} .${e.hidden}`,r=ae.call(this,n);Array.from(r).forEach(e=>{re(e,this.config.classNames.hidden,!1),re(e,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(e){}},setMarkers(){var e,t;if(!this.duration||this.elements.markers)return;const n=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter(({time:e})=>e>0&&e<this.duration);if(null==n||!n.length)return;const r=document.createDocumentFragment(),i=document.createDocumentFragment();let o=null;const a=this.config.classNames.tooltip+"--visible",s=e=>re(o,a,e);n.forEach(e=>{const t=X("span",{class:this.config.classNames.marker},""),n=e.time/this.duration*100+"%";o&&(t.addEventListener("mouseenter",()=>{e.label||(o.style.left=n,o.innerHTML=e.label,s(!0))}),t.addEventListener("mouseleave",()=>{s(!1)})),t.addEventListener("click",()=>{this.currentTime=e.time}),t.style.left=n,i.appendChild(t)}),r.appendChild(i),this.config.tooltips.seek||(o=X("span",{class:this.config.classNames.tooltip},""),r.appendChild(o)),this.elements.markers={points:i,tip:o},this.elements.progress.appendChild(r)}};function $e(e,t=!0){let n=e;if(t){const e=document.createElement("a");e.href=n,n=e.href}try{return new URL(n)}catch(e){return null}}function qe(e){const t=new URLSearchParams;return M(e)&&Object.entries(e).forEach(([e,n])=>{t.set(e,n)}),t}const He={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ue.textTracks)return void(z(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ve.setCaptionsMenu.call(this));var e,t;if(P(this.elements.captions)||(this.elements.captions=X("div",te(this.config.selectors.captions)),e=this.elements.captions,t=this.elements.wrapper,P(e)&&P(t)&&t.parentNode.insertBefore(e,t.nextSibling)),W.isIE&&window.URL){const e=this.media.querySelectorAll("track");Array.from(e).forEach(e=>{const t=e.getAttribute("src"),n=$e(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&Pe(t,"blob").then(t=>{e.setAttribute("src",window.URL.createObjectURL(t))}).catch(()=>{Q(e)})})}const n=xe((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(e=>e.split("-")[0]));let r=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===r&&([r]=n);let i=this.storage.get("captions");if(D(i)||({active:i}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:i,language:r,languages:n}),this.isHTML5){const e=this.config.captions.update?"addtrack removetrack":"removetrack";he.call(this,this.media.textTracks,e,He.update.bind(this))}setTimeout(He.update.bind(this),0)},update(){const e=He.getTracks.call(this,!0),{active:t,language:n,meta:r,currentTrackNode:i}=this.captions,o=Boolean(e.find(e=>e.language===n));this.isHTML5&&this.isVideo&&e.filter(e=>!r.get(e)).forEach(e=>{this.debug.log("Track added",e),r.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),he.call(this,e,"cuechange",()=>He.updateCues.call(this))}),(o&&this.language!==n||!e.includes(i))&&(He.setLanguage.call(this,n),He.toggle.call(this,t&&o)),this.elements&&re(this.elements.container,this.config.classNames.captions.enabled,!$(e)),z(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ve.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;const{toggled:n}=this.captions,r=this.config.classNames.captions.active,i=T(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){const e=He.getTracks.call(this),t=He.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=t.language,void He.set.call(this,e.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),re(this.elements.container,r,i),this.captions.toggled=i,Ve.updateSetting.call(this,"captions"),ge.call(this,this.media,i?"captionsenabled":"captionsdisabled")}setTimeout(()=>{i&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,t=!0){const n=He.getTracks.call(this);if(-1!==e)if(N(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const r=n[e],{language:i}=r||{};this.captions.currentTrackNode=r,Ve.updateSetting.call(this,"captions"),t||(this.captions.language=i,this.storage.set({language:i})),this.isVimeo&&this.embed.enableTextTrack(i),ge.call(this,this.media,"languagechange")}He.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&He.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else He.toggle.call(this,!1,t)},setLanguage(e,t=!0){if(!A(e))return void this.debug.warn("Invalid language argument",e);const n=e.toLowerCase();this.captions.language=n;const r=He.getTracks.call(this),i=He.findTrack.call(this,[n]);He.set.call(this,r.indexOf(i),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(t=>!this.isHTML5||e||this.captions.meta.has(t)).filter(e=>["captions","subtitles"].includes(e.kind))},findTrack(e,t=!1){const n=He.getTracks.call(this),r=e=>Number((this.captions.meta.get(e)||{}).default),i=Array.from(n).sort((e,t)=>r(t)-r(e));let o;return e.every(e=>(o=i.find(t=>t.language===e),!o)),o||(t?i[0]:void 0)},getCurrentTrack(){return He.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!B(t)&&ue.textTracks&&this.captions.toggled&&(t=He.getCurrentTrack.call(this)),B(t)?$(t.label)?$(t.language)?ze.get("enabled",this.config):e.language.toUpperCase():t.label:ze.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!P(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!T(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let t=e;if(!t){const e=He.getCurrentTrack.call(this);t=Array.from((e||{}).activeCues||[]).map(e=>e.getCueAsHTML()).map(De)}const n=t.map(e=>e.trim()).join("\n");if(n!==this.elements.captions.innerHTML){J(this.elements.captions);const e=X("span",te(this.config.selectors.caption));e.innerHTML=n,this.elements.captions.appendChild(e),ge.call(this,this.media,"cuechange")}}},We={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.2/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Ue="picture-in-picture",Ge={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ke=()=>{};class Ye{constructor(e=!1){this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Ke}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Ke}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Ke}}class Xe{constructor(t){e(this,"onChange",()=>{if(!this.enabled)return;const e=this.player.elements.buttons.fullscreen;P(e)&&(e.pressed=this.active);const t=this.target===this.player.media?this.target:this.player.elements.container;ge.call(this.player,t,this.active?"enterfullscreen":"exitfullscreen",!0)}),e(this,"toggleFallback",(e=!1)=>{if(e?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",re(this.target,this.player.config.classNames.fullscreen.fallback,e),W.isIos){let t=document.head.querySelector('meta[name="viewport"]');const n="viewport-fit=cover";t||(t=document.createElement("meta"),t.setAttribute("name","viewport"));const r=A(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!r,r||(t.content+=","+n)):this.cleanupViewport&&(t.content=t.content.split(",").filter(e=>e.trim()!==n).join(","))}this.onChange()}),e(this,"trapFocus",e=>{if(W.isIos||!this.active||"Tab"!==e.key)return;const t=document.activeElement,n=ae.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[r]=n,i=n[n.length-1];t!==i||e.shiftKey?t===r&&e.shiftKey&&(i.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}),e(this,"update",()=>{if(this.enabled){let e;e=this.forceFallback?"Fallback (forced)":Xe.native?"Native":"Fallback",this.player.debug.log(e+" fullscreen enabled")}else this.player.debug.log("Fullscreen not supported and fallback disabled");re(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}),e(this,"enter",()=>{this.enabled&&(W.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Xe.native||this.forceFallback?this.toggleFallback(!0):this.prefix?$(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),e(this,"exit",()=>{if(this.enabled)if(W.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),ye(this.player.play());else if(!Xe.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!$(this.prefix)){const e="moz"===this.prefix?"Cancel":"Exit";document[`${this.prefix}${e}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),e(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=t,this.prefix=Xe.prefix,this.property=Xe.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){const{prototype:n}=Element;return(n.closest||function(){let e=this;do{if(oe.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),he.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":this.prefix+"fullscreenchange",()=>{this.onChange()}),he.call(this.player,this.player.elements.container,"dblclick",e=>{P(this.player.elements.controls)&&this.player.elements.controls.contains(e.target)||this.player.listeners.proxy(e,this.toggle,"fullscreen")}),he.call(this,this.player.elements.container,"keydown",e=>this.trapFocus(e)),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return Xe.native&&!this.forceFallback}static get prefix(){if(L(document.exitFullscreen))return"";let e="";return["webkit","moz","ms"].some(t=>!(!L(document[t+"ExitFullscreen"])&&!L(document[t+"CancelFullScreen"])||(e=t,0))),e}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get enabled(){return(Xe.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!Xe.native||this.forceFallback)return ie(this.target,this.player.config.classNames.fullscreen.fallback);const e=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}get target(){return W.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function Ze(e,t=1){return new Promise((n,r)=>{const i=new Image,o=()=>{delete i.onload,delete i.onerror,(i.naturalWidth>=t?n:r)(i)};Object.assign(i,{onload:o,onerror:o,src:e})})}const Qe={addStyleHook(){re(this.elements.container,this.config.selectors.container.replace(".",""),!0),re(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void Qe.toggleNativeControls.call(this,!0);P(this.elements.controls)||(Ve.inject.call(this),this.listeners.controls()),Qe.toggleNativeControls.call(this),this.isHTML5&&He.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Ve.updateVolume.call(this),Ve.timeUpdate.call(this),Ve.durationUpdate.call(this),Qe.checkPlaying.call(this),re(this.elements.container,this.config.classNames.pip.supported,ue.pip&&this.isHTML5&&this.isVideo),re(this.elements.container,this.config.classNames.airplay.supported,ue.airplay&&this.isHTML5),re(this.elements.container,this.config.classNames.isIos,W.isIos),re(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{ge.call(this,this.media,"ready")},0),Qe.setTitle.call(this),this.poster&&Qe.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&Ve.durationUpdate.call(this),this.config.mediaMetadata&&Ve.setMediaMetadata.call(this)},setTitle(){let e=ze.get("play",this.config);if(A(this.config.title)&&!$(this.config.title)&&(e+=", "+this.config.title),Array.from(this.elements.buttons.play||[]).forEach(t=>{t.setAttribute("aria-label",e)}),this.isEmbed){const e=se.call(this,"iframe");if(!P(e))return;const t=$(this.config.title)?"video":this.config.title,n=ze.get("frameTitle",this.config);e.setAttribute("title",n.replace("{title}",t))}},togglePoster(e){re(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,t=!0){return t&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),ve.call(this).then(()=>Ze(e)).catch(t=>{throw e===this.poster&&Qe.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),Qe.togglePoster.call(this,!0),e)))},checkPlaying(e){re(this.elements.container,this.config.classNames.playing,this.playing),re(this.elements.container,this.config.classNames.paused,this.paused),re(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute("aria-label",ze.get(this.playing?"pause":"play",this.config))}),I(e)&&"timeupdate"===e.type||Qe.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{re(this.elements.container,this.config.classNames.loading,this.loading),Qe.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:t}=this.elements;if(t&&this.config.hideControls){const n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!$(e)&&A(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),$(this.media.style)&&this.media.removeAttribute("style")}};class Je{constructor(t){e(this,"firstTouch",()=>{const{player:e}=this,{elements:t}=e;e.touch=!0,re(t.container,e.config.classNames.isTouch,!0)}),e(this,"setTabFocus",e=>{const{player:t}=this,{elements:n}=t,{key:r,type:i,timeStamp:o}=e;if(clearTimeout(this.focusTimer),"keydown"===i&&"Tab"!==r)return;"keydown"===i&&(this.lastKeyDown=o);const a=o-this.lastKeyDown<=20;("focus"!==i||a)&&((()=>{const e=t.config.classNames.tabFocus;re(ae.call(t,"."+e),e,!1)})(),"focusout"!==i&&(this.focusTimer=setTimeout(()=>{const e=document.activeElement;n.container.contains(e)&&re(document.activeElement,t.config.classNames.tabFocus,!0)},10)))}),e(this,"global",(e=!0)=>{const{player:t}=this;t.config.keyboard.global&&pe.call(t,window,"keydown keyup",this.handleKey,e,!1),pe.call(t,document.body,"click",this.toggleMenu,e),me.call(t,document.body,"touchstart",this.firstTouch),pe.call(t,document.body,"keydown focus blur focusout",this.setTabFocus,e,!1,!0)}),e(this,"container",()=>{const{player:e}=this,{config:t,elements:n,timers:r}=e;!t.keyboard.global&&t.keyboard.focused&&he.call(e,n.container,"keydown keyup",this.handleKey,!1),he.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",t=>{const{controls:i}=n;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);let o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(Qe.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout(()=>Qe.toggleControls.call(e,!1),o)});const i=()=>{if(!e.isVimeo||e.config.vimeo.premium)return;const t=n.wrapper,{active:r}=e.fullscreen,[i,o]=Oe.call(e),a=ke(`aspect-ratio: ${i} / ${o}`);if(!r)return void(a?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null));const[s,l]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=s/l>i/o;a?(t.style.width=c?"auto":"100%",t.style.height=c?"100%":"auto"):(t.style.maxWidth=c?l/o*i+"px":null,t.style.margin=c?"0 auto":null)},o=()=>{clearTimeout(r.resized),r.resized=setTimeout(i,50)};he.call(e,n.container,"enterfullscreen exitfullscreen",t=>{const{target:r}=e.fullscreen;r===n.container&&(!e.isEmbed&&$(e.config.ratio)||(i(),("enterfullscreen"===t.type?he:fe).call(e,window,"resize",o)))})}),e(this,"media",()=>{const{player:e}=this,{elements:t}=e;if(he.call(e,e.media,"timeupdate seeking seeked",t=>Ve.timeUpdate.call(e,t)),he.call(e,e.media,"durationchange loadeddata loadedmetadata",t=>Ve.durationUpdate.call(e,t)),he.call(e,e.media,"ended",()=>{e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())}),he.call(e,e.media,"progress playing seeking seeked",t=>Ve.updateProgress.call(e,t)),he.call(e,e.media,"volumechange",t=>Ve.updateVolume.call(e,t)),he.call(e,e.media,"playing play pause ended emptied timeupdate",t=>Qe.checkPlaying.call(e,t)),he.call(e,e.media,"waiting canplay seeked playing",t=>Qe.checkLoading.call(e,t)),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){const n=se.call(e,"."+e.config.classNames.video);if(!P(n))return;he.call(e,t.container,"click",r=>{([t.container,n].includes(r.target)||n.contains(r.target))&&(e.touch&&e.config.hideControls||(e.ended?(this.proxy(r,e.restart,"restart"),this.proxy(r,()=>{ye(e.play())},"play")):this.proxy(r,()=>{ye(e.togglePlay())},"play")))})}e.supported.ui&&e.config.disableContextMenu&&he.call(e,t.wrapper,"contextmenu",e=>{e.preventDefault()},!1),he.call(e,e.media,"volumechange",()=>{e.storage.set({volume:e.volume,muted:e.muted})}),he.call(e,e.media,"ratechange",()=>{Ve.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})}),he.call(e,e.media,"qualitychange",t=>{Ve.updateSetting.call(e,"quality",null,t.detail.quality)}),he.call(e,e.media,"ready qualitychange",()=>{Ve.setDownloadUrl.call(e)});const n=e.config.events.concat(["keyup","keydown"]).join(" ");he.call(e,e.media,n,n=>{let{detail:r={}}=n;"error"===n.type&&(r=e.media.error),ge.call(e,t.container,n.type,!0,r)})}),e(this,"proxy",(e,t,n)=>{const{player:r}=this,i=r.config.listeners[n];let o=!0;L(i)&&(o=i.call(r,e)),!1!==o&&L(t)&&t.call(r,e)}),e(this,"bind",(e,t,n,r,i=!0)=>{const{player:o}=this,a=o.config.listeners[r],s=L(a);he.call(o,e,t,e=>this.proxy(e,n,r),i&&!s)}),e(this,"controls",()=>{const{player:e}=this,{elements:t}=e,n=W.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach(t=>{this.bind(t,"click",()=>{ye(e.togglePlay())},"play")}),this.bind(t.buttons.restart,"click",e.restart,"restart"),this.bind(t.buttons.rewind,"click",()=>{e.lastSeekTime=Date.now(),e.rewind()},"rewind"),this.bind(t.buttons.fastForward,"click",()=>{e.lastSeekTime=Date.now(),e.forward()},"fastForward"),this.bind(t.buttons.mute,"click",()=>{e.muted=!e.muted},"mute"),this.bind(t.buttons.captions,"click",()=>e.toggleCaptions()),this.bind(t.buttons.download,"click",()=>{ge.call(e,e.media,"download")},"download"),this.bind(t.buttons.fullscreen,"click",()=>{e.fullscreen.toggle()},"fullscreen"),this.bind(t.buttons.pip,"click",()=>{e.pip="toggle"},"pip"),this.bind(t.buttons.airplay,"click",e.airplay,"airplay"),this.bind(t.buttons.settings,"click",t=>{t.stopPropagation(),t.preventDefault(),Ve.toggleMenu.call(e,t)},null,!1),this.bind(t.buttons.settings,"keyup",t=>{["Space","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),Ve.toggleMenu.call(e,t)):Ve.focusFirstMenuItem.call(e,null,!0))},null,!1),this.bind(t.settings.menu,"keydown",t=>{"Escape"===t.key&&Ve.toggleMenu.call(e,t)}),this.bind(t.inputs.seek,"mousedown mousemove",e=>{const n=t.progress.getBoundingClientRect(),r=100/n.width*(e.pageX-n.left);e.currentTarget.setAttribute("seek-value",r)}),this.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",t=>{const n=t.currentTarget,r="play-on-seeked";if(R(t)&&!["ArrowLeft","ArrowRight"].includes(t.key))return;e.lastSeekTime=Date.now();const i=n.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(t.type);i&&o?(n.removeAttribute(r),ye(e.play())):!o&&e.playing&&(n.setAttribute(r,""),e.pause())}),W.isIos){const t=ae.call(e,'input[type="range"]');Array.from(t).forEach(e=>this.bind(e,n,e=>H(e.target)))}this.bind(t.inputs.seek,n,t=>{const n=t.currentTarget;let r=n.getAttribute("seek-value");$(r)&&(r=n.value),n.removeAttribute("seek-value"),e.currentTime=r/n.max*e.duration},"seek"),this.bind(t.progress,"mouseenter mouseleave mousemove",t=>Ve.updateSeekTooltip.call(e,t)),this.bind(t.progress,"mousemove touchmove",t=>{const{previewThumbnails:n}=e;n&&n.loaded&&n.startMove(t)}),this.bind(t.progress,"mouseleave touchend click",()=>{const{previewThumbnails:t}=e;t&&t.loaded&&t.endMove(!1,!0)}),this.bind(t.progress,"mousedown touchstart",t=>{const{previewThumbnails:n}=e;n&&n.loaded&&n.startScrubbing(t)}),this.bind(t.progress,"mouseup touchend",t=>{const{previewThumbnails:n}=e;n&&n.loaded&&n.endScrubbing(t)}),W.isWebkit&&Array.from(ae.call(e,'input[type="range"]')).forEach(t=>{this.bind(t,"input",t=>Ve.updateRangeFill.call(e,t.target))}),e.config.toggleInvert&&!P(t.display.duration)&&this.bind(t.display.currentTime,"click",()=>{0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,Ve.timeUpdate.call(e))}),this.bind(t.inputs.volume,n,t=>{e.volume=t.target.value},"volume"),this.bind(t.controls,"mouseenter mouseleave",n=>{t.controls.hover=!e.touch&&"mouseenter"===n.type}),t.fullscreen&&Array.from(t.fullscreen.children).filter(e=>!e.contains(t.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",n=>{t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===n.type)})}),this.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",e=>{t.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(t.controls,"focusin",()=>{const{config:n,timers:r}=e;re(t.controls,n.classNames.noTransition,!0),Qe.toggleControls.call(e,!0),setTimeout(()=>{re(t.controls,n.classNames.noTransition,!1)},0);const i=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>Qe.toggleControls.call(e,!1),i)}),this.bind(t.inputs.volume,"wheel",t=>{const n=t.webkitDirectionInvertedFromDevice,[r,i]=[t.deltaX,-t.deltaY].map(e=>n?-e:e),o=Math.sign(Math.abs(r)>Math.abs(i)?r:i);e.increaseVolume(o/50);const{volume:a}=e.media;(1===o&&a<1||-1===o&&a>0)&&t.preventDefault()},"volume",!1)}),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(e){const{player:t}=this,{elements:n}=t,{key:r,type:i,altKey:o,ctrlKey:a,metaKey:s,shiftKey:l}=e,c="keydown"===i,u=c&&r===this.lastKey;var d;if(!(o||a||s||l)&&r)if(c){const i=document.activeElement;if(P(i)){const{editable:r}=t.config.selectors,{seek:o}=n.inputs;if(i!==o&&oe(i,r))return;if("Space"===e.key&&oe(i,'button, [role^="menuitem"]'))return}switch(["Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":u||(d=parseInt(r,10),t.currentTime=t.duration/10*d);break;case"Space":case"k":u||ye(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":u||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":u||t.toggleCaptions();break;case"l":t.loop=!t.loop}"Escape"===r&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}toggleMenu(e){Ve.toggleMenu.call(this.player,e)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;var et=function(e,t){return function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,r,i){var o,s,l=document,c=r.async,u=(r.numRetries||0)+1,d=r.before||e,p=t.replace(/[\?|#].*$/,""),h=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(p)?((s=l.createElement("link")).rel="stylesheet",s.href=h,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(p)?(s=l.createElement("img")).src=h:((s=l.createElement("script")).src=t,s.async=void 0===c||c),s.onload=s.onerror=s.onbeforeload=function(e){var l=e.type[0];if(o)try{s.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((i+=1)<u)return a(t,n,r,i)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(t,l,e.defaultPrevented)},!1!==d(t,s)&&l.head.appendChild(s)}function s(e,t,n){var r,i,o=(e=e.push?e:[e]).length,s=o,l=[];for(r=function(e,n,r){if("e"==n&&l.push(e),"b"==n){if(!r)return;l.push(e)}--o||t(l)},i=0;i<s;i++)a(e[i],r,n)}function l(e,n,r){var a,l;if(n&&n.trim&&(a=n),l=(a?r:n)||{},a){if(a in t)throw"LoadJS";t[a]=!0}function c(t,n){s(e,(function(e){o(l,e),t&&o({success:t,error:n},e),i(a,e)}),l)}if(l.returnPromise)return new Promise(c);c()}return l.ready=function(e,t){return function(e,t){e=e.push?e:[e];var i,o,a,s=[],l=e.length,c=l;for(i=function(e,n){n.length&&s.push(e),--c||t(s)};l--;)o=e[l],(a=n[o])?i(o,a):(r[o]=r[o]||[]).push(i)}(e,(function(e){o(t,e)})),l},l.done=function(e){i(e,[])},l.reset=function(){t={},n={},r={}},l.isDefined=function(e){return e in t},l}()}(t={exports:{}}),t.exports}();function tt(e){return new Promise((t,n)=>{et(e,{success:t,error:n})})}function nt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,ge.call(this,this.media,e?"play":"pause"))}const rt={setup(){const e=this;re(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Ee.call(e),M(window.Vimeo)?rt.ready.call(e):tt(e.config.urls.vimeo.sdk).then(()=>{rt.ready.call(e)}).catch(t=>{e.debug.warn("Vimeo SDK (player.js) failed to load",t)})},ready(){const e=this,t=e.config.vimeo,{premium:n,referrerPolicy:r,...i}=t;let o=e.media.getAttribute("src"),a="";$(o)?(o=e.media.getAttribute(e.config.attributes.embed.id),a=e.media.getAttribute(e.config.attributes.embed.hash)):a=function(e){const t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}(o);const s=a?{h:a}:{};n&&Object.assign(i,{controls:!1,sidedock:!1});const l=qe({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative,...s,...i}),c=$(u=o)?null:N(Number(u))?u:u.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:u;var u;const d=X("iframe"),p=Me(e.config.urls.vimeo.iframe,c,l);if(d.setAttribute("src",p),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),$(r)||d.setAttribute("referrerPolicy",r),n||!t.customControls)d.setAttribute("data-poster",e.poster),e.media=ee(d,e.media);else{const t=X("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});t.appendChild(d),e.media=ee(t,e.media)}t.customControls||Pe(Me(e.config.urls.vimeo.api,p)).then(t=>{!$(t)&&t.thumbnail_url&&Qe.setPoster.call(e,t.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(d,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(nt.call(e,!0),e.embed.play()),e.media.pause=()=>(nt.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:h}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>h,set(t){const{embed:n,media:r,paused:i,volume:o}=e,a=i&&!n.hasPlayed;r.seeking=!0,ge.call(e,r,"seeking"),Promise.resolve(a&&n.setVolume(0)).then(()=>n.setCurrentTime(t)).then(()=>a&&n.pause()).then(()=>a&&n.setVolume(o)).catch(()=>{})}});let f=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>f,set(t){e.embed.setPlaybackRate(t).then(()=>{f=t,ge.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:m}=e.config;Object.defineProperty(e.media,"volume",{get:()=>m,set(t){e.embed.setVolume(t).then(()=>{m=t,ge.call(e,e.media,"volumechange")})}});let{muted:g}=e.config;Object.defineProperty(e.media,"muted",{get:()=>g,set(t){const n=!!D(t)&&t;e.embed.setVolume(n?0:e.config.volume).then(()=>{g=n,ge.call(e,e.media,"volumechange")})}});let b,{loop:v}=e.config;Object.defineProperty(e.media,"loop",{get:()=>v,set(t){const n=D(t)?t:e.config.loop.active;e.embed.setLoop(n).then(()=>{v=n})}}),e.embed.getVideoUrl().then(t=>{b=t,Ve.setDownloadUrl.call(e)}).catch(e=>{this.debug.warn(e)}),Object.defineProperty(e.media,"currentSrc",{get:()=>b}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(t=>{const[n,r]=t;e.embed.ratio=je(n,r),Ee.call(this)}),e.embed.setAutopause(e.config.autopause).then(t=>{e.config.autopause=t}),e.embed.getVideoTitle().then(t=>{e.config.title=t,Qe.setTitle.call(this)}),e.embed.getCurrentTime().then(t=>{h=t,ge.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(t=>{e.media.duration=t,ge.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(t=>{e.media.textTracks=t,He.setup.call(e)}),e.embed.on("cuechange",({cues:t=[]})=>{const n=t.map(e=>function(e){const t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text));He.updateCues.call(e,n)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(t=>{nt.call(e,!t),t||ge.call(e,e.media,"playing")}),P(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{ge.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{ge.call(e,e.media,"playing")}),e.embed.on("play",()=>{nt.call(e,!0),ge.call(e,e.media,"playing")}),e.embed.on("pause",()=>{nt.call(e,!1)}),e.embed.on("timeupdate",t=>{e.media.seeking=!1,h=t.seconds,ge.call(e,e.media,"timeupdate")}),e.embed.on("progress",t=>{e.media.buffered=t.percent,ge.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&ge.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(t=>{t!==e.media.duration&&(e.media.duration=t,ge.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,ge.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,ge.call(e,e.media,"ended")}),e.embed.on("error",t=>{e.media.error=t,ge.call(e,e.media,"error")}),t.customControls&&setTimeout(()=>Qe.build.call(e),0)}};function it(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,ge.call(this,this.media,e?"play":"pause"))}function ot(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const at={setup(){if(re(this.elements.wrapper,this.config.classNames.embed,!0),M(window.YT)&&L(window.YT.Player))at.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{L(e)&&e(),at.ready.call(this)},tt(this.config.urls.youtube.sdk).catch(e=>{this.debug.warn("YouTube API failed to load",e)})}},getTitle(e){Pe(Me(this.config.urls.youtube.api,e)).then(e=>{if(M(e)){const{title:t,height:n,width:r}=e;this.config.title=t,Qe.setTitle.call(this),this.embed.ratio=je(r,n)}Ee.call(this)}).catch(()=>{Ee.call(this)})},ready(){const e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(!$(n)&&n.startsWith("youtube-"))return;let r=e.media.getAttribute("src");$(r)&&(r=e.media.getAttribute(this.config.attributes.embed.id));const i=$(o=r)?null:o.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:o;var o;const a=X("div",{id:`${e.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":t.customControls?e.poster:void 0});if(e.media=ee(a,e.media),t.customControls){const t=e=>`https://i.ytimg.com/vi/${i}/${e}default.jpg`;Ze(t("maxres"),121).catch(()=>Ze(t("sd"),121)).catch(()=>Ze(t("hq"))).then(t=>Qe.setPoster.call(e,t.src)).then(t=>{t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:i,host:ot(t),playerVars:G({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError(t){if(!e.media.error){const n=t.data,r={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:r},ge.call(e,e.media,"error")}},onPlaybackRateChange(t){const n=t.target;e.media.playbackRate=n.getPlaybackRate(),ge.call(e,e.media,"ratechange")},onReady(n){if(L(e.media.play))return;const r=n.target;at.getTitle.call(e,i),e.media.play=()=>{it.call(e,!0),r.playVideo()},e.media.pause=()=>{it.call(e,!1),r.pauseVideo()},e.media.stop=()=>{r.stopVideo()},e.media.duration=r.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(r.getCurrentTime()),set(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,ge.call(e,e.media,"seeking"),r.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>r.getPlaybackRate(),set(e){r.setPlaybackRate(e)}});let{volume:o}=e.config;Object.defineProperty(e.media,"volume",{get:()=>o,set(t){o=t,r.setVolume(100*o),ge.call(e,e.media,"volumechange")}});let{muted:a}=e.config;Object.defineProperty(e.media,"muted",{get:()=>a,set(t){const n=D(t)?t:a;a=n,r[n?"mute":"unMute"](),r.setVolume(100*o),ge.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>r.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const s=r.getAvailablePlaybackRates();e.options.speed=s.filter(t=>e.config.speed.options.includes(t)),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),ge.call(e,e.media,"timeupdate"),ge.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=r.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&ge.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),ge.call(e,e.media,"canplaythrough"))},200),t.customControls&&setTimeout(()=>Qe.build.call(e),50)},onStateChange(n){const r=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,ge.call(e,e.media,"seeked")),n.data){case-1:ge.call(e,e.media,"timeupdate"),e.media.buffered=r.getVideoLoadedFraction(),ge.call(e,e.media,"progress");break;case 0:it.call(e,!1),e.media.loop?(r.stopVideo(),r.playVideo()):ge.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(it.call(e,!0),ge.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{ge.call(e,e.media,"timeupdate")},50),e.media.duration!==r.getDuration()&&(e.media.duration=r.getDuration(),ge.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),it.call(e,!1);break;case 3:ge.call(e,e.media,"waiting")}ge.call(e,e.elements.container,"statechange",!1,{code:n.data})}}})}},st={setup(){this.media?(re(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),re(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&re(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=X("div",{class:this.config.classNames.video}),K(this.media,this.elements.wrapper),this.elements.poster=X("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Te.setup.call(this):this.isYouTube?at.setup.call(this):this.isVimeo&&rt.setup.call(this)):this.debug.warn("No media element found!")}};class lt{constructor(t){e(this,"load",()=>{this.enabled&&(M(window.google)&&M(window.google.ima)?this.ready():tt(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),e(this,"ready",()=>{var e;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),e(this,"setupIMA",()=>{this.elements.container=X("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,e=>this.onAdsManagerLoaded(e),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e),!1),this.requestAds()}),e(this,"requestAds",()=>{const{container:e}=this.player.elements;try{const t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}}),e(this,"pollCountdown",(e=!1)=>{if(!e)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const e=Be(Math.max(this.manager.getRemainingTime(),0)),t=`${ze.get("advertisement",this.player.config)} - ${e}`;this.elements.container.setAttribute("data-badge-text",t)},100)}),e(this,"onAdsManagerLoaded",e=>{if(!this.enabled)return;const t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e)),Object.keys(google.ima.AdEvent.Type).forEach(e=>{this.manager.addEventListener(google.ima.AdEvent.Type[e],e=>this.onAdEvent(e))}),this.trigger("loaded")}),e(this,"addCuePoints",()=>{$(this.cuePoints)||this.cuePoints.forEach(e=>{if(0!==e&&-1!==e&&e<this.player.duration){const t=this.player.elements.progress;if(P(t)){const n=100/this.player.duration*e,r=X("span",{class:this.player.config.classNames.cues});r.style.left=n.toString()+"%",t.appendChild(r)}}})}),e(this,"onAdEvent",e=>{const{container:t}=this.player.elements,n=e.getAd(),r=e.getAdData();switch((e=>{ge.call(this.player,this.player.media,"ads"+e.replace(/_/g,"").toLowerCase())})(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),n.isLinear()||(n.width=t.offsetWidth,n.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&this.player.debug.warn("Non-fatal ad error: "+r.adError.getMessage())}}),e(this,"onAdError",e=>{this.cancel(),this.player.debug.warn("Ads error",e)}),e(this,"listeners",()=>{const{container:e}=this.player.elements;let t;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{t=this.player.currentTime}),this.player.on("seeked",()=>{const e=this.player.currentTime;$(this.cuePoints)||this.cuePoints.forEach((n,r)=>{t<n&&n<e&&(this.manager.discardAdBreak(),this.cuePoints.splice(r,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)})}),e(this,"play",()=>{const{container:e}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(e){this.onAdError(e)}}).catch(()=>{})}),e(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,ye(this.player.media.play())}),e(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),e(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),e(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(e=>{this.on("loaded",e),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),e(this,"trigger",(e,...t)=>{const n=this.events[e];z(n)&&n.forEach(e=>{L(e)&&e.apply(this,t)})}),e(this,"on",(e,t)=>(z(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this)),e(this,"startSafetyTimer",(e,t)=>{this.player.debug.log("Safety timer invoked from: "+t),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},e)}),e(this,"clearSafetyTimer",e=>{T(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: "+e),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((e,t)=>{this.on("loaded",e),this.on("error",t)}),this.load()}get enabled(){const{config:e}=this;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!$(e.publisherId)||V(e.tagUrl))}get tagUrl(){const{config:e}=this;return V(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?"+qe({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}}function ct(e=0,t=0,n=255){return Math.min(Math.max(e,t),n)}const ut=e=>{const t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(e=>{const n={};e.split(/\r\n|\n|\r/).forEach(e=>{if(N(n.startTime)){if(!$(e.trim())&&$(n.text)){const t=e.trim().split("#xywh=");[n.text]=t,t[1]&&([n.x,n.y,n.w,n.h]=t[1].split(","))}}else{const t=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);t&&(n.startTime=60*Number(t[1]||0)*60+60*Number(t[2])+Number(t[3])+Number("0."+t[4]),n.endTime=60*Number(t[6]||0)*60+60*Number(t[7])+Number(t[8])+Number("0."+t[9]))}}),n.text&&t.push(n)}),t},dt=(e,t)=>{const n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n};class pt{constructor(t){e(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.loaded=!0)})}),e(this,"getThumbnails",()=>new Promise(e=>{const{src:t}=this.player.config.previewThumbnails;if($(t))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort((e,t)=>e.height-t.height),this.player.debug.log("Preview thumbnails",this.thumbnails),e()};if(L(t))t(e=>{this.thumbnails=e,n()});else{const e=(A(t)?[t]:t).map(e=>this.getThumbnail(e));Promise.all(e).then(n)}})),e(this,"getThumbnail",e=>new Promise(t=>{Pe(e).then(n=>{const r={frames:ut(n),height:null,urlPrefix:""};r.frames[0].text.startsWith("/")||r.frames[0].text.startsWith("http://")||r.frames[0].text.startsWith("https://")||(r.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));const i=new Image;i.onload=()=>{r.height=i.naturalHeight,r.width=i.naturalWidth,this.thumbnails.push(r),t()},i.src=r.urlPrefix+r.frames[0].text})})),e(this,"startMove",e=>{if(this.loaded&&I(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t,n;const r=this.player.elements.progress.getBoundingClientRect(),i=100/r.width*(e.pageX-r.left);this.seekTime=this.player.media.duration*(i/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=Be(this.seekTime);const o=null===(t=this.player.config.markers)||void 0===t||null===(n=t.points)||void 0===n?void 0:n.find(({time:e})=>e===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",o.label+"<br>")}this.showImageAtCurrentTime()}}),e(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),e(this,"startScrubbing",e=>{(T(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),e(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):me.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),e(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),e(this,"render",()=>{this.elements.thumb.container=X("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=X("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const e=X("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=X("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(e),P(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=X("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),e(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),e(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const e=this.thumbnails[0].frames.findIndex(e=>this.seekTime>=e.startTime&&this.seekTime<=e.endTime),t=e>=0;let n=0;this.mouseDown||this.toggleThumbContainer(t),t&&(this.thumbnails.forEach((t,r)=>{this.loadedImages.includes(t.frames[e].text)&&(n=r)}),e!==this.showingThumb&&(this.showingThumb=e,this.loadImage(n)))}),e(this,"loadImage",(e=0)=>{const t=this.showingThumb,n=this.thumbnails[e],{urlPrefix:r}=n,i=n.frames[t],o=n.frames[t].text,a=r+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,i,e,t,o,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const n=new Image;n.src=a,n.dataset.index=t,n.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log("Loading image: "+a),n.onload=()=>this.showImage(n,i,e,t,o,!0),this.loadingImage=n,this.removeOldImages(n)}}),e(this,"showImage",(e,t,n,r,i,o=!0)=>{this.player.debug.log(`Showing thumb: ${i}. num: ${r}. qual: ${n}. newimg: ${o}`),this.setImageSizeAndOffset(e,t),o&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(i)||this.loadedImages.push(i)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(n,e,t,i))}),e(this,"removeOldImages",e=>{Array.from(this.currentImageContainer.children).forEach(t=>{if("img"!==t.tagName.toLowerCase())return;const n=this.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;const{currentImageContainer:e}=this;setTimeout(()=>{e.removeChild(t),this.player.debug.log("Removing thumb: "+t.dataset.filename)},n)}})}),e(this,"preloadNearby",(e,t=!0)=>new Promise(n=>{setTimeout(()=>{const r=this.thumbnails[0].frames[e].text;if(this.showingThumbFilename===r){let i;i=t?this.thumbnails[0].frames.slice(e):this.thumbnails[0].frames.slice(0,e).reverse();let o=!1;i.forEach(e=>{const t=e.text;if(t!==r&&!this.loadedImages.includes(t)){o=!0,this.player.debug.log("Preloading thumb filename: "+t);const{urlPrefix:e}=this.thumbnails[0],r=e+t,i=new Image;i.src=r,i.onload=()=>{this.player.debug.log("Preloaded thumb filename: "+t),this.loadedImages.includes(t)||this.loadedImages.push(t),n()}}}),o||n()}},300)})),e(this,"getHigherQuality",(e,t,n,r)=>{if(e<this.thumbnails.length-1){let i=t.naturalHeight;this.usingSprites&&(i=n.h),i<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===r&&(this.player.debug.log("Showing higher quality thumb for: "+r),this.loadImage(e+1))},300)}}),e(this,"toggleThumbContainer",(e=!1,t=!1)=>{const n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}),e(this,"toggleScrubbingContainer",(e=!1)=>{const t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}),e(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),e(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:e}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){const t=Math.floor(e.clientHeight*this.thumbAspectRatio);e.style.width=t+"px"}else if(e.clientHeight<20&&e.clientWidth>20){const t=Math.floor(e.clientWidth/this.thumbAspectRatio);e.style.height=t+"px"}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);e.style.height=this.thumbContainerHeight+"px",e.style.width=t+"px"}this.setThumbContainerPos()}),e(this,"setThumbContainerPos",()=>{const e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,r=t.left-e.left+10,i=t.right-e.left-n.clientWidth-10,o=this.mousePosX-e.left-n.clientWidth/2,a=ct(o,r,i);n.style.left=a+"px",n.style.setProperty("--preview-arrow-offset",o-a+"px")}),e(this,"setScrubbingContainerSize",()=>{const{width:e,height:t}=dt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=e+"px",this.elements.scrubbing.container.style.height=t+"px"}),e(this,"setImageSizeAndOffset",(e,t)=>{if(!this.usingSprites)return;const n=this.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*n+"px",e.style.width=e.naturalWidth*n+"px",e.style.left=`-${t.x*n}px`,e.style.top=`-${t.y*n}px`}),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:e}=dt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return e}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}const ht={insertElements(e,t){A(t)?Z(e,this.media,{src:t}):z(t)&&t.forEach(t=>{Z(e,this.media,t)})},change(e){U(e,"sources.length")?(Te.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],Q(this.media),this.media=null,P(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:t,type:n}=e,[{provider:r=Ge.html5,src:i}]=t,o="html5"===r?n:"div",a="html5"===r?{}:{src:i};Object.assign(this,{provider:r,type:n,supported:ue.check(n,r,this.config.playsinline),media:X(o,a)}),this.elements.container.appendChild(this.media),D(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),$(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),Qe.addStyleHook.call(this),this.isHTML5&&ht.insertElements.call(this,"source",t),this.config.title=e.title,st.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&ht.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Qe.build.call(this),this.isHTML5&&this.media.load(),$(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new pt(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class ft{constructor(t,n){if(e(this,"play",()=>L(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>ye(this.media.play())),this.media.play()):null),e(this,"pause",()=>this.playing&&L(this.media.pause)?this.media.pause():null),e(this,"togglePlay",e=>(D(e)?e:!this.playing)?this.play():this.pause()),e(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):L(this.media.stop)&&this.media.stop()}),e(this,"restart",()=>{this.currentTime=0}),e(this,"rewind",e=>{this.currentTime-=N(e)?e:this.config.seekTime}),e(this,"forward",e=>{this.currentTime+=N(e)?e:this.config.seekTime}),e(this,"increaseVolume",e=>{const t=this.media.muted?0:this.volume;this.volume=t+(N(e)?e:0)}),e(this,"decreaseVolume",e=>{this.increaseVolume(-e)}),e(this,"airplay",()=>{ue.airplay&&this.media.webkitShowPlaybackTargetPicker()}),e(this,"toggleControls",e=>{if(this.supported.ui&&!this.isAudio){const t=ie(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,r=re(this.elements.container,this.config.classNames.hideControls,n);if(r&&z(this.config.controls)&&this.config.controls.includes("settings")&&!$(this.config.settings)&&Ve.toggleMenu.call(this,!1),r!==t){const e=r?"controlshidden":"controlsshown";ge.call(this,this.media,e)}return!r}return!1}),e(this,"on",(e,t)=>{he.call(this,this.elements.container,e,t)}),e(this,"once",(e,t)=>{me.call(this,this.elements.container,e,t)}),e(this,"off",(e,t)=>{fe(this.elements.container,e,t)}),e(this,"destroy",(e,t=!1)=>{if(!this.ready)return;const n=()=>{document.body.style.overflow="",this.embed=null,t?(Object.keys(this.elements).length&&(Q(this.elements.buttons.play),Q(this.elements.captions),Q(this.elements.controls),Q(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),L(e)&&e()):(be.call(this),Te.cancelRequests.call(this),ee(this.elements.original,this.elements.container),ge.call(this,this.elements.original,"destroyed",!0),L(e)&&e.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Qe.toggleNativeControls.call(this,!0),n()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&L(this.embed.destroy)&&this.embed.destroy(),n()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(n),setTimeout(n,200))}),e(this,"supports",e=>ue.mime.call(this,e)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ue.touch,this.media=t,A(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||F(this.media)||z(this.media))&&(this.media=this.media[0]),this.config=G({},We,ft.defaults,n||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch(e){return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Ye(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ue),T(this.media)||!P(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!ue.check().api)return void this.debug.error("Setup failed: no support");const r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;const i=this.media.tagName.toLowerCase();let o=null,a=null;switch(i){case"div":if(o=this.media.querySelector("iframe"),P(o)){if(a=$e(o.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Ge.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Ge.vimeo:null}(a.toString()),this.elements.container=this.media,this.media=o,this.elements.container.className="",a.search.length){const e=["1","true"];e.includes(a.searchParams.get("autoplay"))&&(this.config.autoplay=!0),e.includes(a.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=e.includes(a.searchParams.get("playsinline")),this.config.youtube.hl=a.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if($(this.provider)||!Object.values(Ge).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=i,this.provider=Ge.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ue.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Je(this),this.storage=new Fe(this),this.media.plyr=this,P(this.elements.container)||(this.elements.container=X("div",{tabindex:0}),K(this.media,this.elements.container)),Qe.migrateStyles.call(this),Qe.addStyleHook.call(this),st.setup.call(this),this.config.debug&&he.call(this,this.elements.container,this.config.events.join(" "),e=>{this.debug.log("event: "+e.type)}),this.fullscreen=new Xe(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Qe.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new lt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>ye(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new pt(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Ge.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Ge.youtube}get isVimeo(){return this.provider===Ge.vimeo}get isVideo(){return"video"===this.type}get isAudio(){return"audio"===this.type}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(e){if(!this.duration)return;const t=N(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:e}=this.media;return N(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=N(t)&&t!==1/0?t:0;return e||n}set volume(e){let t=e;A(t)&&(t=Number(t)),N(t)||(t=this.storage.get("volume")),N(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!$(e)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;D(t)||(t=this.storage.get("muted")),D(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(e){let t=null;N(e)&&(t=e),N(t)||(t=this.storage.get("speed")),N(t)||(t=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:r}=this;t=ct(t,n,r),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(e){const t=this.config.quality,n=this.options.quality;if(!n.length)return;let r=[!$(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(N),i=!0;if(!n.includes(r)){const e=we(n,r);this.debug.warn(`Unsupported quality option: ${r}, using ${e} instead`),r=e,i=!1}t.selected=r,this.media.quality=r,i&&this.storage.set({quality:r})}get quality(){return this.media.quality}set loop(e){const t=D(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return Boolean(this.media.loop)}set source(e){ht.change.call(this,e)}get source(){return this.media.currentSrc}get download(){const{download:e}=this.config.urls;return V(e)?e:this.source}set download(e){V(e)&&(this.config.urls.download=e,Ve.setDownloadUrl.call(this))}set poster(e){this.isVideo?Qe.setPoster.call(this,e,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const e=Se(Oe.call(this));return z(e)?e.join(":"):e}set ratio(e){this.isVideo?A(e)&&Ce(e)?(this.config.ratio=Se(e),Ee.call(this)):this.debug.error(`Invalid aspect ratio specified (${e})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(e){this.config.autoplay=D(e)?e:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(e){He.toggle.call(this,e,!1)}set currentTrack(e){He.set.call(this,e,!1),He.setup.call(this)}get currentTrack(){const{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){He.setLanguage.call(this,e,!1)}get language(){return(He.getCurrentTrack.call(this)||{}).language}set pip(e){if(!ue.pip)return;const t=D(e)?e:!this.pip;L(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Ue:"inline"),L(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return ue.pip?$(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Ue:null}setPreviewThumbnails(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new pt(this))}static supported(e,t,n){return ue.check(e,t,n)}static loadSprite(e,t){return Ie(e,t)}static setup(e,t={}){let n=null;return A(e)?n=Array.from(document.querySelectorAll(e)):F(e)?n=Array.from(e):z(e)&&(n=e.filter(P)),$(n)?null:n.map(e=>new ft(e,t))}}var mt;return ft.defaults=(mt=We,JSON.parse(JSON.stringify(mt))),ft}())}).call(this,n(13))},function(e,t,n){!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},n={};function r(e,t){var r=e.match(function(e){var t=n[e];return t||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function o(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}e.defineMode("htmlmixed",(function(n,a){var s=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag}),l={},c=a&&a.tags,u=a&&a.scriptTypes;if(o(t,l),c&&o(c,l),u)for(var d=u.length-1;d>=0;d--)l.script.unshift(["type",u[d].matches,u[d].mode]);function p(t,o){var a,c=s.token(t,o.htmlState),u=/\btag\b/.test(c);if(u&&!/[<>\s\/]/.test(t.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&u&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var h=">"==t.current()&&function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(!i[0]||i[1].test(r(t,i[0])))return i[2]}}(l[d[1]],d[2]),f=e.getMode(n,h),m=i(d[1],!0),g=i(d[1],!1);o.token=function(e,t){return e.match(m,!1)?(t.token=p,t.localState=t.localMode=null,null):function(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}(e,g,t.localMode.token(e,t.localState))},o.localMode=f,o.localState=e.startState(f,s.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=t.current(),t.eol()&&(o.inTag+=" "));return c}return{startState:function(){return{token:p,inTag:null,localMode:null,localState:null,htmlState:e.startState(s)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(s,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?s.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||s}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n(10),n(53),n(54),n(47))},,function(e,t,n){var r=n(107);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(109);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(111);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(113);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(115);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(117);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";(function(e){var r=n(118),i=n(119),o=n(120);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,p=0;p<l;p++)if(c(e,o+p)!==c(t,p)){d=!1;break}if(d)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function x(e,t,n,r){return $(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return $(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return w(e,t,n,r)}function _(e,t,n,r){return $(V(t),e,n,r)}function C(e,t,n,r){return $(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=R(e[o]);return i}function M(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function z(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||z(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return o||z(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:B(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(13))},function(e,t,n){var r=n(122);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(124);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(126);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(128);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(130);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(132);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(134);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(136);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(138);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){!function(e){"use strict";e.defineMode("sass",(function(t){var n,r=e.mimeModes["text/css"],i=r.propertyKeywords||{},o=r.colorKeywords||{},a=r.valueKeywords||{},s=r.fontProperties||{},l=new RegExp("^"+["true","false","null","auto"].join("|")),c=new RegExp("^"+["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"].join("|")),u=/^::?[a-zA-Z_][\w\-]*/;function d(e){return!e.peek()||e.match(/\s+$/,!1)}function p(e,t){var n=e.peek();return")"===n?(e.next(),t.tokenizer=v,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=f(e.next()),"string"):(t.tokenizer=f(")",!1),"string")}function h(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=v,v(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=v):n.skipToEnd(),"comment")}}function f(e,t){return null==t&&(t=!0),function n(r,i){var o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2);return"\\"!==o&&a===e||o===e&&"\\"!==s?(o!==e&&t&&r.next(),d(r)&&(i.cursorHalf=0),i.tokenizer=v,"string"):"#"===o&&"{"===a?(i.tokenizer=m(n),r.next(),"operator"):"string"}}function m(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):v(t,n)}}function g(e){if(0==e.indentCount){e.indentCount++;var n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function b(e){1!=e.scopes.length&&e.scopes.shift()}function v(e,t){var r=e.peek();if(e.match("/*"))return t.tokenizer=h(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=h(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=m(v),"operator";if('"'===r||"'"===r)return e.next(),t.tokenizer=f(r),"string";if(t.cursorHalf){if("#"===r&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return d(e)&&(t.cursorHalf=0),"unit";if(e.match(l))return d(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=p,d(e)&&(t.cursorHalf=0),"atom";if("$"===r)return e.next(),e.eatWhile(/[\w-]/),d(e)&&(t.cursorHalf=0),"variable-2";if("!"===r)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(c))return d(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return d(e)&&(t.cursorHalf=0),n=e.current().toLowerCase(),a.hasOwnProperty(n)?"atom":o.hasOwnProperty(n)?"keyword":i.hasOwnProperty(n)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(d(e))return t.cursorHalf=0,null}else{if("-"===r&&e.match(/^-\w+-/))return"meta";if("."===r){if(e.next(),e.match(/^[\w-]+/))return g(t),"qualifier";if("#"===e.peek())return g(t),"tag"}if("#"===r){if(e.next(),e.match(/^[\w-]+/))return g(t),"builtin";if("#"===e.peek())return g(t),"tag"}if("$"===r)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(l))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=p,"atom";if("="===r&&e.match(/^=[\w-]+/))return g(t),"meta";if("+"===r&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===r&&e.match(/@extend/)&&(e.match(/\s*[\w]/)||b(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return g(t),"def";if("@"===r)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){n=e.current().toLowerCase();var y=t.prevProp+"-"+n;return i.hasOwnProperty(y)?"property":i.hasOwnProperty(n)?(t.prevProp=n,"property"):s.hasOwnProperty(n)?"property":"tag"}return e.match(/ *:/,!1)?(g(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||g(t),"tag")}if(":"===r)return e.match(u)?"variable-3":(e.next(),t.cursorHalf=1,"operator")}return e.match(c)?"operator":(e.next(),null)}return{startState:function(){return{tokenizer:v,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,n){var r=function(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if("@return"!==i&&"}"!==i||b(n),null!==r){for(var o=e.pos-i.length+t.indentUnit*n.indentCount,a=[],s=0;s<n.scopes.length;s++){var l=n.scopes[s];l.offset<=o&&a.push(l)}n.scopes=a}return r}(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e){return e.scopes[0].offset}}}),"css"),e.defineMIME("text/x-sass","sass")}(n(10),n(47))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function n(e,n,r,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",(function(a,l){var c,u,d=a.indentUnit,p=l.statementIndentUnit||d,h=l.dontAlignCalls,f=l.keywords||{},m=l.types||{},g=l.builtin||{},b=l.blockKeywords||{},v=l.defKeywords||{},y=l.atoms||{},x=l.hooks||{},w=l.multiLineStrings,k=!1!==l.indentStatements,_=!1!==l.indentSwitch,C=l.namespaceSeparator,S=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,O=l.numberStart||/[\d\.]/,E=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,j=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,T=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,M=l.isReservedIdentifier||!1;function N(e,t){var n,r=e.next();if(x[r]){var i=x[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!w)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(S.test(r))return c=r,null;if(O.test(r)){if(e.backUp(1),e.match(E))return"number";e.next()}if("/"==r){if(e.eat("*"))return t.tokenize=A,A(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(j.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(j););return"operator"}if(e.eatWhile(T),C)for(;e.match(C);)e.eatWhile(T);var o=e.current();return s(f,o)?(s(b,o)&&(c="newstatement"),s(v,o)&&(u=!0),"keyword"):s(m,o)?"type":s(g,o)||M&&M(o)?(s(b,o)&&(c="newstatement"),"builtin"):s(y,o)?"atom":"variable"}function A(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function D(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return D(e,t),null;c=u=null;var s=(t.tokenize||N)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==c||":"==c||","==c&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==c)n(t,e.column(),"}");else if("["==c)n(t,e.column(),"]");else if("("==c)n(t,e.column(),")");else if("}"==c){for(;"statement"==a.type;)a=r(t);for("}"==a.type&&(a=r(t));"statement"==a.type;)a=r(t)}else c==a.type?r(t):k&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),x.token){var d=x.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=u?"def":s||c,D(e,t),s},indent:function(t,n){if(t.tokenize!=N&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,i=n&&n.charAt(0),o=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(x.indent){var a=x.indent(t,r,n,d);if("number"==typeof a)return a}var s=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:p):!r.align||h&&")"==r.type?")"!=r.type||o?r.indented+(o?0:d)+(o||!s||/^(?:case|default)\b/.test(n)?0:d):r.indented+p:r.column+(o?0:1)},electricInput:_?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c=a("int long char short double float unsigned signed void bool"),u=a("SEL instancetype id Class Protocol BOOL");function d(e){return s(c,e)||/.+_t/.test(e)}var p="case do else for if switch while struct enum union";function h(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=h;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function f(e,t){return"type"==t.prevToken&&"type"}function m(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function g(e){return e.eatWhile(/[\w\.']/),"number"}function b(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=y,y(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function v(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function y(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function x(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function w(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}x(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:d,blockKeywords:a(p),defKeywords:a("struct enum union"),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:m,hooks:{"#":h,"*":f},modeProps:{fold:["brace","include"]}}),x(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+"alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq"),types:d,blockKeywords:a(p+" class try catch"),defKeywords:a("struct enum union class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:m,hooks:{"#":h,"*":f,u:b,U:b,L:b,R:b,0:g,1:g,2:g,3:g,4:g,5:g,6:g,7:g,8:g,9:g,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&(r=e.current(),(i=/(\w+)::~?(\w+)$/.exec(r))&&i[1]==i[2]))return"def";var r,i}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),x("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),x("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=v,v(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),x("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=w,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=function e(t){return function(n,r){for(var i;i=n.next();){if("*"==i&&n.eat("/")){if(1==t){r.tokenize=null;break}return r.tokenize=e(t-1),r.tokenize(n,r)}if("/"==i&&n.eat("*"))return r.tokenize=e(t+1),r.tokenize(n,r)}return"comment"}}(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),x("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),x(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":h},modeProps:{fold:["brace","include"]}}),x("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:d,blockKeywords:a(p),atoms:a("null true false"),hooks:{"#":h},modeProps:{fold:["brace","include"]}}),x("text/x-objectivec",{name:"clike",keywords:a(l+" bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"),types:function(e){return d(e)||s(u,e)},builtin:a("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINED NS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:a(p+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a("struct enum union @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:m,hooks:{"#":h,"*":f},modeProps:{fold:["brace","include"]}}),x("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:d,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":h},modeProps:{fold:["brace","include"]}});var k=null;x("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function e(t){return function(n,r){for(var i,o=!1,a=!1;!n.eol();){if(!o&&n.match('"')&&("single"==t||n.match('""'))){a=!0;break}if(!o&&n.match("``")){k=e(t),a=!0;break}i=n.next(),o="single"==t&&!o&&"\\"==i}return a&&(r.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!k||!e.match("`"))&&(t.tokenize=k,k=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(10))},function(e,t,n){var r=n(167);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(169);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(171);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(173);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(175);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(179);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(181);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},,,,,,,,,,,,,function(e,t,n){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l="undefined"!=typeof window&&void 0!==window.document,c=l?window:{},u=!(!l||!c.document.documentElement)&&"ontouchstart"in c.document.documentElement,d=!!l&&"PointerEvent"in c,p="".concat("cropper","-crop"),h="".concat("cropper","-disabled"),f="".concat("cropper","-hidden"),m="".concat("cropper","-hide"),g="".concat("cropper","-invisible"),b="".concat("cropper","-modal"),v="".concat("cropper","-move"),y="".concat("cropper","Action"),x="".concat("cropper","Preview"),w=u?"touchstart":"mousedown",k=u?"touchmove":"mousemove",_=u?"touchend touchcancel":"mouseup",C=d?"pointerdown":w,S=d?"pointermove":k,O=d?"pointerup pointercancel":_,E=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,j=/^data:/,T=/^data:image\/jpeg;base64,/,M=/^img|canvas$/i,N={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},A=Number.isNaN||c.isNaN;function D(e){return"number"==typeof e&&!A(e)}var L=function(e){return e>0&&e<1/0};function z(e){return void 0===e}function F(e){return"object"===n(e)&&null!==e}var P=Object.prototype.hasOwnProperty;function I(e){if(!F(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&P.call(n,"isPrototypeOf")}catch(e){return!1}}function R(e){return"function"==typeof e}var B=Array.prototype.slice;function V(e){return Array.from?Array.from(e):B.call(e)}function $(e,t){return e&&R(t)&&(Array.isArray(e)||D(e.length)?V(e).forEach((function(n,r){t.call(e,n,r,e)})):F(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}))),e}var q=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return F(e)&&n.length>0&&n.forEach((function(t){F(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},H=/\.\d*(?:0|9){12}\d*$/;function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return H.test(e)?Math.round(e*t)/t:e}var U=/^width|height|left|top|marginLeft|marginTop$/;function G(e,t){var n=e.style;$(t,(function(e,t){U.test(t)&&D(e)&&(e="".concat(e,"px")),n[t]=e}))}function K(e,t){if(t)if(D(e.length))$(e,(function(e){K(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Y(e,t){t&&(D(e.length)?$(e,(function(e){Y(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function X(e,t,n){t&&(D(e.length)?$(e,(function(e){X(e,t,n)})):n?K(e,t):Y(e,t))}var Z=/([a-z\d])([A-Z])/g;function Q(e){return e.replace(Z,"$1-$2").toLowerCase()}function J(e,t){return F(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Q(t)))}function ee(e,t,n){F(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Q(t)),n)}var te=/\s\s*/,ne=function(){var e=!1;if(l){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,r),c.removeEventListener("test",n,r)}return e}();function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(te).forEach((function(t){if(!ne){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)}))}function ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(te).forEach((function(t){if(r.once&&!ne){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)}))}function oe(e,t,n){var r;return R(Event)&&R(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function ae(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var se=c.location,le=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function ce(e){var t=e.match(le);return null!==t&&(t[1]!==se.protocol||t[2]!==se.hostname||t[3]!==se.port)}function ue(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function de(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];D(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),D(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),D(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),D(n)&&1!==n&&a.push("scaleX(".concat(n,")")),D(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function pe(e,n){var r=e.pageX,i=e.pageY,o={endX:r,endY:i};return n?o:t({startX:r,startY:i},o)}function he(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=L(r),a=L(n);if(o&&a){var s=n*t;"contain"===i&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}function fe(e,t,n,r){var i=t.aspectRatio,o=t.naturalWidth,s=t.naturalHeight,l=t.rotate,c=void 0===l?0:l,u=t.scaleX,d=void 0===u?1:u,p=t.scaleY,h=void 0===p?1:p,f=n.aspectRatio,m=n.naturalWidth,g=n.naturalHeight,b=r.fillColor,v=void 0===b?"transparent":b,y=r.imageSmoothingEnabled,x=void 0===y||y,w=r.imageSmoothingQuality,k=void 0===w?"low":w,_=r.maxWidth,C=void 0===_?1/0:_,S=r.maxHeight,O=void 0===S?1/0:S,E=r.minWidth,j=void 0===E?0:E,T=r.minHeight,M=void 0===T?0:T,N=document.createElement("canvas"),A=N.getContext("2d"),D=he({aspectRatio:f,width:C,height:O}),L=he({aspectRatio:f,width:j,height:M},"cover"),z=Math.min(D.width,Math.max(L.width,m)),F=Math.min(D.height,Math.max(L.height,g)),P=he({aspectRatio:i,width:C,height:O}),I=he({aspectRatio:i,width:j,height:M},"cover"),R=Math.min(P.width,Math.max(I.width,o)),B=Math.min(P.height,Math.max(I.height,s)),V=[-R/2,-B/2,R,B];return N.width=W(z),N.height=W(F),A.fillStyle=v,A.fillRect(0,0,z,F),A.save(),A.translate(z/2,F/2),A.rotate(c*Math.PI/180),A.scale(d,h),A.imageSmoothingEnabled=x,A.imageSmoothingQuality=k,A.drawImage.apply(A,[e].concat(a(V.map((function(e){return Math.floor(W(e))}))))),A.restore(),N}var me=String.fromCharCode,ge=/^data:.*,/;function be(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,s=2;s+1<a;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}if(i){var l=i+10;if("Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=me(e.getUint8(i));return r}(n,i+4,4)){var c=n.getUint16(l);if(((r=18761===c)||19789===c)&&42===n.getUint16(l+2,r)){var u=n.getUint32(l+4,r);u>=8&&(o=l+u)}}}if(o){var d,p,h=n.getUint16(o,r);for(p=0;p<h;p+=1)if(d=o+12*p+2,274===n.getUint16(d,r)){d+=8,t=n.getUint16(d,r),n.setUint16(d,1,r);break}}}catch(e){t=1}return t}var ve={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper,i=Number(t.minContainerWidth),o=Number(t.minContainerHeight);K(r,f),Y(e,f);var a={width:Math.max(n.offsetWidth,i>=0?i:200),height:Math.max(n.offsetHeight,o>=0?o:100)};this.containerData=a,G(r,{width:a.width,height:a.height}),K(e,f),Y(r,f)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,o=r?t.naturalWidth:t.naturalHeight,a=i/o,s=e.width,l=e.height;e.height*a>e.width?3===n?s=e.height*a:l=e.width/a:3===n?l=e.width/a:s=e.height*a;var c={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:l};this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(e.width-c.width)/2,c.top=(e.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=q({},c)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,l=this.cropped&&o;if(e){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;a>1?(c=Math.max(c,r.width),u=Math.max(u,r.height),3===a&&(u*s>c?c=u*s:u=c/s)):a>0&&(c?c=Math.max(c,l?o.width:0):u?u=Math.max(u,l?o.height:0):l&&(c=o.width,(u=o.height)*s>c?c=u*s:u=c/s));var d=he({aspectRatio:s,width:c,height:u});c=d.width,u=d.height,i.minWidth=c,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(a>(l?0:1)){var p=r.width-i.width,h=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,h),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,h),l&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,h),i.maxTop=Math.max(0,h))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=function(e){var t=e.width,n=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:t};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=t*a+n*o,l=t*o+n*a;return r>90?{width:l,height:s}:{width:s,height:l}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),l=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(l-n.height)/2,n.width=s,n.height=l,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,G(this.canvas,q({width:n.width,height:n.height},de({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);q(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),G(this.image,q({width:n.width,height:n.height},de(q({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=q({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(e){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,u=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,d=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),s&&(l&&c?c*s>l?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),d*s>u?d=u/s:u=d*s),o.minWidth=Math.min(l,u),o.minHeight=Math.min(c,d),o.maxWidth=u,o.maxHeight=d}t&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&ee(this.face,y,n.width>=t.width&&n.height>=t.height?"move":"all"),G(this.cropBox,q({width:n.width,height:n.height},de({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),oe(this.element,"crop",this.getData())}},ye={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"==typeof n?a=e.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,$(a,(function(e){var n=document.createElement("img");ee(e,x,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)}))}},resetPreview:function(){$(this.previews,(function(e){var t=J(e,x);G(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(F(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(Q(t)))}(e,x)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=e.width,a=e.height,s=n.left-t.left-e.left,l=n.top-t.top-e.top;this.cropped&&!this.disabled&&(G(this.viewBoxImage,q({width:o,height:a},de(q({translateX:-s,translateY:-l},e)))),$(this.previews,(function(t){var n=J(t,x),c=n.width,u=n.height,d=c,p=u,h=1;r&&(p=i*(h=c/r)),i&&p>u&&(d=r*(h=u/i),p=u),G(t,{width:d,height:p}),G(t.getElementsByTagName("img")[0],q({width:o*h,height:a*h},de(q({translateX:-s*h,translateY:-l*h},e))))})))}},xe={bind:function(){var e=this.element,t=this.options,n=this.cropper;R(t.cropstart)&&ie(e,"cropstart",t.cropstart),R(t.cropmove)&&ie(e,"cropmove",t.cropmove),R(t.cropend)&&ie(e,"cropend",t.cropend),R(t.crop)&&ie(e,"crop",t.crop),R(t.zoom)&&ie(e,"zoom",t.zoom),ie(n,C,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&ie(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ie(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),ie(e.ownerDocument,S,this.onCropMove=this.cropMove.bind(this)),ie(e.ownerDocument,O,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&ie(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;R(t.cropstart)&&re(e,"cropstart",t.cropstart),R(t.cropmove)&&re(e,"cropmove",t.cropmove),R(t.cropend)&&re(e,"cropend",t.cropend),R(t.crop)&&re(e,"crop",t.crop),R(t.zoom)&&re(e,"zoom",t.zoom),re(n,C,this.onCropStart),t.zoomable&&t.zoomOnWheel&&re(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&re(n,"dblclick",this.onDblclick),re(e.ownerDocument,S,this.onCropMove),re(e.ownerDocument,O,this.onCropEnd),t.responsive&&re(window,"resize",this.onResize)}},we={resize:function(){if(!this.disabled){var e,t,n=this.options,r=this.container,i=this.containerData,o=r.offsetWidth/i.width,a=r.offsetHeight/i.height,s=Math.abs(o-1)>Math.abs(a-1)?o:a;1!==s&&(n.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData($(e,(function(t,n){e[n]=t*s}))),this.setCropBoxData($(t,(function(e,n){t[n]=e*s})))))}},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=p,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(D(t)&&1!==t||D(n)&&0!==n||e.ctrlKey))){var r,i=this.options,o=this.pointers;e.changedTouches?$(e.changedTouches,(function(e){o[e.identifier]=pe(e)})):o[e.pointerId||0]=pe(e),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?"zoom":J(e.target,y),E.test(r)&&!1!==oe(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,K(this.dragBox,b)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==oe(this.element,"cropmove",{originalEvent:e,action:t})&&(e.changedTouches?$(e.changedTouches,(function(e){q(n[e.identifier]||{},pe(e,!0))})):q(n[e.pointerId||0]||{},pe(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?$(e.changedTouches,(function(e){delete n[e.identifier]})):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,X(this.dragBox,b,this.cropped&&this.options.modal)),oe(this.element,"cropend",{originalEvent:e,action:t}))}}},ke={change:function(e){var n,r=this.options,i=this.canvasData,o=this.containerData,a=this.cropBoxData,s=this.pointers,l=this.action,c=r.aspectRatio,u=a.left,d=a.top,p=a.width,h=a.height,m=u+p,g=d+h,b=0,v=0,y=o.width,x=o.height,w=!0;!c&&e.shiftKey&&(c=p&&h?p/h:1),this.limited&&(b=a.minLeft,v=a.minTop,y=b+Math.min(o.width,i.width,i.left+i.width),x=v+Math.min(o.height,i.height,i.top+i.height));var k=s[Object.keys(s)[0]],_={x:k.endX-k.startX,y:k.endY-k.startY},C=function(e){switch(e){case"e":m+_.x>y&&(_.x=y-m);break;case"w":u+_.x<b&&(_.x=b-u);break;case"n":d+_.y<v&&(_.y=v-d);break;case"s":g+_.y>x&&(_.y=x-g)}};switch(l){case"all":u+=_.x,d+=_.y;break;case"e":if(_.x>=0&&(m>=y||c&&(d<=v||g>=x))){w=!1;break}C("e"),(p+=_.x)<0&&(l="w",u-=p=-p),c&&(h=p/c,d+=(a.height-h)/2);break;case"n":if(_.y<=0&&(d<=v||c&&(u<=b||m>=y))){w=!1;break}C("n"),h-=_.y,d+=_.y,h<0&&(l="s",d-=h=-h),c&&(p=h*c,u+=(a.width-p)/2);break;case"w":if(_.x<=0&&(u<=b||c&&(d<=v||g>=x))){w=!1;break}C("w"),p-=_.x,u+=_.x,p<0&&(l="e",u-=p=-p),c&&(h=p/c,d+=(a.height-h)/2);break;case"s":if(_.y>=0&&(g>=x||c&&(u<=b||m>=y))){w=!1;break}C("s"),(h+=_.y)<0&&(l="n",d-=h=-h),c&&(p=h*c,u+=(a.width-p)/2);break;case"ne":if(c){if(_.y<=0&&(d<=v||m>=y)){w=!1;break}C("n"),h-=_.y,d+=_.y,p=h*c}else C("n"),C("e"),_.x>=0?m<y?p+=_.x:_.y<=0&&d<=v&&(w=!1):p+=_.x,_.y<=0?d>v&&(h-=_.y,d+=_.y):(h-=_.y,d+=_.y);p<0&&h<0?(l="sw",d-=h=-h,u-=p=-p):p<0?(l="nw",u-=p=-p):h<0&&(l="se",d-=h=-h);break;case"nw":if(c){if(_.y<=0&&(d<=v||u<=b)){w=!1;break}C("n"),h-=_.y,d+=_.y,p=h*c,u+=a.width-p}else C("n"),C("w"),_.x<=0?u>b?(p-=_.x,u+=_.x):_.y<=0&&d<=v&&(w=!1):(p-=_.x,u+=_.x),_.y<=0?d>v&&(h-=_.y,d+=_.y):(h-=_.y,d+=_.y);p<0&&h<0?(l="se",d-=h=-h,u-=p=-p):p<0?(l="ne",u-=p=-p):h<0&&(l="sw",d-=h=-h);break;case"sw":if(c){if(_.x<=0&&(u<=b||g>=x)){w=!1;break}C("w"),p-=_.x,u+=_.x,h=p/c}else C("s"),C("w"),_.x<=0?u>b?(p-=_.x,u+=_.x):_.y>=0&&g>=x&&(w=!1):(p-=_.x,u+=_.x),_.y>=0?g<x&&(h+=_.y):h+=_.y;p<0&&h<0?(l="ne",d-=h=-h,u-=p=-p):p<0?(l="se",u-=p=-p):h<0&&(l="nw",d-=h=-h);break;case"se":if(c){if(_.x>=0&&(m>=y||g>=x)){w=!1;break}C("e"),h=(p+=_.x)/c}else C("s"),C("e"),_.x>=0?m<y?p+=_.x:_.y>=0&&g>=x&&(w=!1):p+=_.x,_.y>=0?g<x&&(h+=_.y):h+=_.y;p<0&&h<0?(l="nw",d-=h=-h,u-=p=-p):p<0?(l="sw",u-=p=-p):h<0&&(l="ne",d-=h=-h);break;case"move":this.move(_.x,_.y),w=!1;break;case"zoom":this.zoom(function(e){var n=t({},e),r=0;return $(e,(function(e,t){delete n[t],$(n,(function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+i*i),l=(Math.sqrt(o*o+a*a)-s)/s;Math.abs(l)>Math.abs(r)&&(r=l)}))})),r}(s),e),w=!1;break;case"crop":if(!_.x||!_.y){w=!1;break}n=ae(this.cropper),u=k.startX-n.left,d=k.startY-n.top,p=a.minWidth,h=a.minHeight,_.x>0?l=_.y>0?"se":"ne":_.x<0&&(u-=p,l=_.y>0?"sw":"nw"),_.y<0&&(d-=h),this.cropped||(Y(this.cropBox,f),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}w&&(a.width=p,a.height=h,a.left=u,a.top=d,this.action=l,this.renderCropBox()),$(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},_e={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&K(this.dragBox,b),Y(this.cropBox,f),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=q({},this.initialImageData),this.canvasData=q({},this.initialCanvasData),this.cropBoxData=q({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(q(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Y(this.dragBox,b),K(this.cropBox,f)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,$(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Y(this.cropper,h)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,K(this.cropper,h)),this},destroy:function(){var e=this.element;return e.cropper?(e.cropper=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(z(e)?e:r+Number(e),z(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(D(e)&&(n.left=e,r=!0),D(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,l=i.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*e,u=l*e;if(!1===oe(this.element,"zoom",{ratio:e,oldRatio:o/s,originalEvent:n}))return this;if(n){var d=this.pointers,p=ae(this.cropper),h=d&&Object.keys(d).length?function(e){var t=0,n=0,r=0;return $(e,(function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1})),{pageX:t/=r,pageY:n/=r}}(d):{pageX:n.pageX,pageY:n.pageY};i.left-=(c-o)*((h.pageX-p.left-i.left)/o),i.top-=(u-a)*((h.pageY-p.top-i.top)/a)}else I(t)&&D(t.x)&&D(t.y)?(i.left-=(c-o)*((t.x-i.left)/o),i.top-=(u-a)*((t.y-i.top)/a)):(i.left-=(c-o)/2,i.top-=(u-a)/2);i.width=c,i.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return D(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,D(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(D(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(D(e)&&(n.scaleX=e,r=!0),D(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if($(e,(function(t,n){e[n]=t/a})),t){var s=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&I(e)){var o=!1;t.rotatable&&D(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(D(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),D(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;D(e.x)&&(i.left=e.x*a+r.left),D(e.y)&&(i.top=e.y*a+r.top),D(e.width)&&(i.width=e.width*a),D(e.height)&&(i.height=e.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?q({},this.containerData):{}},getImageData:function(){return this.sized?q({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&$(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){t[n]=e[n]})),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&I(e)&&(D(e.left)&&(t.left=e.left),D(e.top)&&(t.top=e.top),D(e.width)?(t.width=e.width,t.height=e.width/n):D(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&I(e)&&(D(e.left)&&(r.left=e.left),D(e.top)&&(r.top=e.top),D(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),D(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=fe(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),i=r.x,o=r.y,s=r.width,l=r.height,c=n.width/Math.floor(t.naturalWidth);1!==c&&(i*=c,o*=c,s*=c,l*=c);var u=s/l,d=he({aspectRatio:u,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=he({aspectRatio:u,width:e.minWidth||0,height:e.minHeight||0},"cover"),h=he({aspectRatio:u,width:e.width||(1!==c?n.width:s),height:e.height||(1!==c?n.height:l)}),f=h.width,m=h.height;f=Math.min(d.width,Math.max(p.width,f)),m=Math.min(d.height,Math.max(p.height,m));var g=document.createElement("canvas"),b=g.getContext("2d");g.width=W(f),g.height=W(m),b.fillStyle=e.fillColor||"transparent",b.fillRect(0,0,f,m);var v=e.imageSmoothingEnabled,y=void 0===v||v,x=e.imageSmoothingQuality;b.imageSmoothingEnabled=y,x&&(b.imageSmoothingQuality=x);var w,k,_,C,S,O,E=n.width,j=n.height,T=i,M=o;T<=-s||T>E?(T=0,w=0,_=0,S=0):T<=0?(_=-T,T=0,S=w=Math.min(E,s+T)):T<=E&&(_=0,S=w=Math.min(s,E-T)),w<=0||M<=-l||M>j?(M=0,k=0,C=0,O=0):M<=0?(C=-M,M=0,O=k=Math.min(j,l+M)):M<=j&&(C=0,O=k=Math.min(l,j-M));var N=[T,M,w,k];if(S>0&&O>0){var A=f/s;N.push(_*A,C*A,S*A,O*A)}return b.drawImage.apply(b,[n].concat(a(N.map((function(e){return Math.floor(W(e))}))))),g},setAspectRatio:function(e){var t=this.options;return this.disabled||z(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i="crop"===e,o=t.movable&&"move"===e;e=i||o?e:"none",t.dragMode=e,ee(n,y,e),X(n,p,i),X(n,v,o),t.cropBoxMovable||(ee(r,y,e),X(r,p,i),X(r,v,o))}return this}},Ce=c.Cropper,Se=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,e),!t||!M.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=q({},N,I(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var t,n,o;return t=e,o=[{key:"noConflict",value:function(){return window.Cropper=Ce,e}},{key:"setDefaults",value:function(e){q(N,I(e)&&e)}}],(n=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t.cropper){if(t.cropper=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(j.test(e))T.test(e)?this.read((i=e.replace(ge,""),o=atob(i),a=new ArrayBuffer(o.length),$(s=new Uint8Array(a),(function(e,t){s[t]=o.charCodeAt(t)})),a)):this.clone();else{var i,o,a,s,l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){"image/jpeg"!==l.getResponseHeader("content-type")&&l.abort()},l.onload=function(){t.read(l.response)},l.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&ce(e)&&n.crossOrigin&&(e=ue(e)),l.open("GET",e,!0),l.responseType="arraybuffer",l.withCredentials="use-credentials"===n.crossOrigin,l.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=be(e),i=0,o=1,a=1;if(r>1){this.url=function(e,t){for(var n=[],r=new Uint8Array(e);r.length>0;)n.push(me.apply(null,V(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,"image/jpeg");var s=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r);i=s.rotate,o=s.scaleX,a=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&ce(t)&&(n||(n="anonymous"),r=ue(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),K(i,m),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent),r=function(t,n){q(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.initialImageData=q({},e.imageData),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=t.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=i.querySelector(".".concat("cropper","-container")),a=o.querySelector(".".concat("cropper","-canvas")),s=o.querySelector(".".concat("cropper","-drag-box")),l=o.querySelector(".".concat("cropper","-crop-box")),c=l.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=l,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=c,a.appendChild(n),K(e,f),r.insertBefore(o,e.nextSibling),this.isImg||Y(n,m),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,K(l,f),t.guides||K(l.getElementsByClassName("".concat("cropper","-dashed")),f),t.center||K(l.getElementsByClassName("".concat("cropper","-center")),f),t.background&&K(o,"".concat("cropper","-bg")),t.highlight||K(c,g),t.cropBoxMovable&&(K(c,v),ee(c,y,"all")),t.cropBoxResizable||(K(l.getElementsByClassName("".concat("cropper","-line")),f),K(l.getElementsByClassName("".concat("cropper","-point")),f)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),R(t.ready)&&ie(e,"ready",t.ready,{once:!0}),oe(e,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Y(this.element,f))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&i(t.prototype,n),o&&i(t,o),e}();return q(Se.prototype,ve,ye,xe,we,ke,_e),Se}()},function(e,t){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=i;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new n.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,s=this.diff_commonPrefix(e,t),l=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var u=this.diff_compute_(e,t,a,o);return l&&u.unshift(new n.Diff(0,l)),c&&u.push(new n.Diff(0,c)),this.diff_cleanupMerge(u),u},n.prototype.diff_compute_=function(e,t,r,i){var o;if(!e)return[new n.Diff(1,t)];if(!t)return[new n.Diff(-1,e)];var a=e.length>t.length?e:t,s=e.length>t.length?t:e,l=a.indexOf(s);if(-1!=l)return o=[new n.Diff(1,a.substring(0,l)),new n.Diff(0,s),new n.Diff(1,a.substring(l+s.length))],e.length>t.length&&(o[0][0]=o[2][0]=-1),o;if(1==s.length)return[new n.Diff(-1,e),new n.Diff(1,t)];var c=this.diff_halfMatch_(e,t);if(c){var u=c[0],d=c[1],p=c[2],h=c[3],f=c[4],m=this.diff_main(u,p,r,i),g=this.diff_main(d,h,r,i);return m.concat([new n.Diff(0,f)],g)}return r&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,i):this.diff_bisect_(e,t,i)},n.prototype.diff_lineMode_=function(e,t,r){var i=this.diff_linesToChars_(e,t);e=i.chars1,t=i.chars2;var o=i.lineArray,a=this.diff_main(e,t,!1,r);this.diff_charsToLines_(a,o),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var s=0,l=0,c=0,u="",d="";s<a.length;){switch(a[s][0]){case 1:c++,d+=a[s][1];break;case-1:l++,u+=a[s][1];break;case 0:if(l>=1&&c>=1){a.splice(s-l-c,l+c),s=s-l-c;for(var p=this.diff_main(u,d,!1,r),h=p.length-1;h>=0;h--)a.splice(s,0,p[h]);s+=p.length}c=0,l=0,u="",d=""}s++}return a.pop(),a},n.prototype.diff_bisect_=function(e,t,r){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,l=2*a,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[s+1]=0,u[s+1]=0;for(var p=i-o,h=p%2!=0,f=0,m=0,g=0,b=0,v=0;v<a&&!((new Date).getTime()>r);v++){for(var y=-v+f;y<=v-m;y+=2){for(var x=s+y,w=(O=y==-v||y!=v&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-y;O<i&&w<o&&e.charAt(O)==t.charAt(w);)O++,w++;if(c[x]=O,O>i)m+=2;else if(w>o)f+=2;else if(h){if((C=s+p-y)>=0&&C<l&&-1!=u[C])if(O>=(_=i-u[C]))return this.diff_bisectSplit_(e,t,O,w,r)}}for(var k=-v+g;k<=v-b;k+=2){for(var _,C=s+k,S=(_=k==-v||k!=v&&u[C-1]<u[C+1]?u[C+1]:u[C-1]+1)-k;_<i&&S<o&&e.charAt(i-_-1)==t.charAt(o-S-1);)_++,S++;if(u[C]=_,_>i)b+=2;else if(S>o)g+=2;else if(!h){if((x=s+p-k)>=0&&x<l&&-1!=c[x]){var O;w=s+(O=c[x])-x;if(O>=(_=i-_))return this.diff_bisectSplit_(e,t,O,w,r)}}}}return[new n.Diff(-1,e),new n.Diff(1,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=this.diff_main(o,a,!1,i),u=this.diff_main(s,l,!1,i);return c.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){for(var t="",i=0,a=-1,s=n.length;a<e.length-1;){-1==(a=e.indexOf("\n",i))&&(a=e.length-1);var l=e.substring(i,a+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(s==o&&(l=e.substring(i),a=e.length),t+=String.fromCharCode(s),r[l]=s,n[s++]=l),i=a+1}return t}n[0]="";var o=4e4,a=i(e);return o=65535,{chars1:a,chars2:i(t),lineArray:n}},n.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],i=[],o=0;o<r.length;o++)i[o]=t[r.charCodeAt(o)];e[n][1]=i.join("")}},n.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},n.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},n.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var o=0,a=1;;){var s=e.substring(i-a),l=t.indexOf(s);if(-1==l)return o;a+=l,0!=l&&e.substring(i-a)!=t.substring(0,a)||(o=a,a++)}},n.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;var i=this;function o(e,t,n){for(var r,o,a,s,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,u="";-1!=(c=t.indexOf(l,c+1));){var d=i.diff_commonPrefix(e.substring(n),t.substring(c)),p=i.diff_commonSuffix(e.substring(0,n),t.substring(0,c));u.length<p+d&&(u=t.substring(c-p,c)+t.substring(c,c+d),r=e.substring(0,n-p),o=e.substring(n+d),a=t.substring(0,c-p),s=t.substring(c+d))}return 2*u.length>=e.length?[r,o,a,s,u]:null}var a,s,l,c,u,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));return d||p?(a=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(s=a[0],l=a[1],c=a[2],u=a[3]):(c=a[0],u=a[1],s=a[2],l=a[3]),[s,l,c,u,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,r=[],i=0,o=null,a=0,s=0,l=0,c=0,u=0;a<e.length;)0==e[a][0]?(r[i++]=a,s=c,l=u,c=0,u=0,o=e[a][1]):(1==e[a][0]?c+=e[a][1].length:u+=e[a][1].length,o&&o.length<=Math.max(s,l)&&o.length<=Math.max(c,u)&&(e.splice(r[i-1],0,new n.Diff(-1,o)),e[r[i-1]+1][0]=1,i--,a=--i>0?r[i-1]:-1,s=0,l=0,c=0,u=0,o=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(-1==e[a-1][0]&&1==e[a][0]){var d=e[a-1][1],p=e[a][1],h=this.diff_commonOverlap_(d,p),f=this.diff_commonOverlap_(p,d);h>=f?(h>=d.length/2||h>=p.length/2)&&(e.splice(a,0,new n.Diff(0,p.substring(0,h))),e[a-1][1]=d.substring(0,d.length-h),e[a+1][1]=p.substring(h),a++):(f>=d.length/2||f>=p.length/2)&&(e.splice(a,0,new n.Diff(0,d.substring(0,f))),e[a-1][0]=1,e[a-1][1]=p.substring(0,p.length-f),e[a+1][0]=-1,e[a+1][1]=d.substring(f),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),i=t.charAt(0),o=r.match(n.nonAlphaNumericRegex_),a=i.match(n.nonAlphaNumericRegex_),s=o&&r.match(n.whitespaceRegex_),l=a&&i.match(n.whitespaceRegex_),c=s&&r.match(n.linebreakRegex_),u=l&&i.match(n.linebreakRegex_),d=c&&e.match(n.blanklineEndRegex_),p=u&&t.match(n.blanklineStartRegex_);return d||p?5:c||u?4:o&&!s&&l?3:s||l?2:o||a?1:0}for(var r=1;r<e.length-1;){if(0==e[r-1][0]&&0==e[r+1][0]){var i=e[r-1][1],o=e[r][1],a=e[r+1][1],s=this.diff_commonSuffix(i,o);if(s){var l=o.substring(o.length-s);i=i.substring(0,i.length-s),o=l+o.substring(0,o.length-s),a=l+a}for(var c=i,u=o,d=a,p=t(i,o)+t(o,a);o.charAt(0)===a.charAt(0);){i+=o.charAt(0),o=o.substring(1)+a.charAt(0),a=a.substring(1);var h=t(i,o)+t(o,a);h>=p&&(p=h,c=i,u=o,d=a)}e[r-1][1]!=c&&(c?e[r-1][1]=c:(e.splice(r-1,1),r--),e[r][1]=u,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,r=[],i=0,o=null,a=0,s=!1,l=!1,c=!1,u=!1;a<e.length;)0==e[a][0]?(e[a][1].length<this.Diff_EditCost&&(c||u)?(r[i++]=a,s=c,l=u,o=e[a][1]):(i=0,o=null),c=u=!1):(-1==e[a][0]?u=!0:c=!0,o&&(s&&l&&c&&u||o.length<this.Diff_EditCost/2&&s+l+c+u==3)&&(e.splice(r[i-1],0,new n.Diff(-1,o)),e[r[i-1]+1][0]=1,i--,o=null,s&&l?(c=u=!0,i=0):(a=--i>0?r[i-1]:-1,c=u=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(0,""));for(var t,r=0,i=0,o=0,a="",s="";r<e.length;)switch(e[r][0]){case 1:o++,s+=e[r][1],r++;break;case-1:i++,a+=e[r][1],r++;break;case 0:i+o>1?(0!==i&&0!==o&&(0!==(t=this.diff_commonPrefix(s,a))&&(r-i-o>0&&0==e[r-i-o-1][0]?e[r-i-o-1][1]+=s.substring(0,t):(e.splice(0,0,new n.Diff(0,s.substring(0,t))),r++),s=s.substring(t),a=a.substring(t)),0!==(t=this.diff_commonSuffix(s,a))&&(e[r][1]=s.substring(s.length-t)+e[r][1],s=s.substring(0,s.length-t),a=a.substring(0,a.length-t))),r-=i+o,e.splice(r,i+o),a.length&&(e.splice(r,0,new n.Diff(-1,a)),r++),s.length&&(e.splice(r,0,new n.Diff(1,s)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,o=0,i=0,a="",s=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),l=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),l=!0)),r++;l&&this.diff_cleanupMerge(e)},n.prototype.diff_xIndex=function(e,t){var n,r=0,i=0,o=0,a=0;for(n=0;n<e.length&&(1!==e[n][0]&&(r+=e[n][1].length),-1!==e[n][0]&&(i+=e[n][1].length),!(r>t));n++)o=r,a=i;return e.length!=n&&-1===e[n][0]?a:a+(t-o)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=/</g,i=/>/g,o=/\n/g,a=0;a<e.length;a++){var s=e[a][0],l=e[a][1].replace(n,"&").replace(r,"<").replace(i,">").replace(o,"¶<br>");switch(s){case 1:t[a]='<ins style="background:#e6ffe6;">'+l+"</ins>";break;case-1:t[a]='<del style="background:#ffe6e6;">'+l+"</del>";break;case 0:t[a]="<span>"+l+"</span>"}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_levenshtein=function(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var o=e[i][0],a=e[i][1];switch(o){case 1:n+=a.length;break;case-1:r+=a.length;break;case 0:t+=Math.max(n,r),n=0,r=0}}return t+=Math.max(n,r)},n.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(e,t){for(var r=[],i=0,o=0,a=t.split(/\t/g),s=0;s<a.length;s++){var l=a[s].substring(1);switch(a[s].charAt(0)){case"+":try{r[i++]=new n.Diff(1,decodeURI(l))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+l)}break;case"-":case"=":var c=parseInt(l,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+l);var u=e.substring(o,o+=c);"="==a[s].charAt(0)?r[i++]=new n.Diff(0,u):r[i++]=new n.Diff(-1,u);break;default:if(a[s])throw new Error("Invalid diff operation in diff_fromDelta: "+a[s])}}if(o!=e.length)throw new Error("Delta length ("+o+") does not equal source text length ("+e.length+").");return r},n.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},n.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,a=Math.abs(n-r);return i.Match_Distance?o+a/i.Match_Distance:a?1:o}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(o(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(o(0,s),a)));var l,c,u=1<<t.length-1;s=-1;for(var d,p=t.length+e.length,h=0;h<t.length;h++){for(l=0,c=p;l<c;)o(h,n+c)<=a?l=c:p=c,c=Math.floor((p-l)/2+l);p=c;var f=Math.max(1,n-c+1),m=Math.min(n+c,e.length)+t.length,g=Array(m+2);g[m+1]=(1<<h)-1;for(var b=m;b>=f;b--){var v=r[e.charAt(b-1)];if(g[b]=0===h?(g[b+1]<<1|1)&v:(g[b+1]<<1|1)&v|(d[b+1]|d[b])<<1|1|d[b+1],g[b]&u){var y=o(h,b-1);if(y<=a){if(a=y,!((s=b-1)>n))break;f=Math.max(1,2*n-s)}}}if(o(h+1,n)>a)break;d=g}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},n.prototype.patch_addContext_=function(e,t){if(0!=t.length){if(null===e.start2)throw Error("patch not initialized");for(var r=t.substring(e.start2,e.start2+e.length1),i=0;t.indexOf(r)!=t.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,r=t.substring(e.start2-i,e.start2+e.length1+i);i+=this.Patch_Margin;var o=t.substring(e.start2-i,e.start2);o&&e.diffs.unshift(new n.Diff(0,o));var a=t.substring(e.start2+e.length1,e.start2+e.length1+i);a&&e.diffs.push(new n.Diff(0,a)),e.start1-=o.length,e.start2-=o.length,e.length1+=o.length+a.length,e.length2+=o.length+a.length}},n.prototype.patch_make=function(e,t,r){var i,o;if("string"==typeof e&&"string"==typeof t&&void 0===r)i=e,(o=this.diff_main(i,t,!0)).length>2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&void 0===t&&void 0===r)o=e,i=this.diff_text1(o);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===r)i=e,o=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");i=e,o=r}if(0===o.length)return[];for(var a=[],s=new n.patch_obj,l=0,c=0,u=0,d=i,p=i,h=0;h<o.length;h++){var f=o[h][0],m=o[h][1];switch(l||0===f||(s.start1=c,s.start2=u),f){case 1:s.diffs[l++]=o[h],s.length2+=m.length,p=p.substring(0,u)+m+p.substring(u);break;case-1:s.length1+=m.length,s.diffs[l++]=o[h],p=p.substring(0,u)+p.substring(u+m.length);break;case 0:m.length<=2*this.Patch_Margin&&l&&o.length!=h+1?(s.diffs[l++]=o[h],s.length1+=m.length,s.length2+=m.length):m.length>=2*this.Patch_Margin&&l&&(this.patch_addContext_(s,d),a.push(s),s=new n.patch_obj,l=0,d=p,c=u)}1!==f&&(c+=m.length),-1!==f&&(u+=m.length)}return l&&(this.patch_addContext_(s,d),a.push(s)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r],o=new n.patch_obj;o.diffs=[];for(var a=0;a<i.diffs.length;a++)o.diffs[a]=new n.Diff(i.diffs[a][0],i.diffs[a][1]);o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,t[r]=o}return t},n.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var r=0,i=[],o=0;o<e.length;o++){var a,s,l=e[o].start2+r,c=this.diff_text1(e[o].diffs),u=-1;if(c.length>this.Match_MaxBits?-1!=(a=this.match_main(t,c.substring(0,this.Match_MaxBits),l))&&(-1==(u=this.match_main(t,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||a>=u)&&(a=-1):a=this.match_main(t,c,l),-1==a)i[o]=!1,r-=e[o].length2-e[o].length1;else if(i[o]=!0,r=a-l,c==(s=-1==u?t.substring(a,a+c.length):t.substring(a,u+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[o].diffs)+t.substring(a+c.length);else{var d=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(d)/c.length>this.Patch_DeleteThreshold)i[o]=!1;else{this.diff_cleanupSemanticLossless(d);for(var p,h=0,f=0;f<e[o].diffs.length;f++){var m=e[o].diffs[f];0!==m[0]&&(p=this.diff_xIndex(d,h)),1===m[0]?t=t.substring(0,a+p)+m[1]+t.substring(a+p):-1===m[0]&&(t=t.substring(0,a+p)+t.substring(a+this.diff_xIndex(d,h+m[1].length))),-1!==m[0]&&(h+=m[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),i]},n.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,r="",i=1;i<=t;i++)r+=String.fromCharCode(i);for(i=0;i<e.length;i++)e[i].start1+=t,e[i].start2+=t;var o=e[0],a=o.diffs;if(0==a.length||0!=a[0][0])a.unshift(new n.Diff(0,r)),o.start1-=t,o.start2-=t,o.length1+=t,o.length2+=t;else if(t>a[0][1].length){var s=t-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],o.start1-=s,o.start2-=s,o.length1+=s,o.length2+=s}if(0==(a=(o=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new n.Diff(0,r)),o.length1+=t,o.length2+=t;else if(t>a[a.length-1][1].length){s=t-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,s),o.length1+=s,o.length2+=s}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r<e.length;r++)if(!(e[r].length1<=t)){var i=e[r];e.splice(r--,1);for(var o=i.start1,a=i.start2,s="";0!==i.diffs.length;){var l=new n.patch_obj,c=!0;for(l.start1=o-s.length,l.start2=a-s.length,""!==s&&(l.length1=l.length2=s.length,l.diffs.push(new n.Diff(0,s)));0!==i.diffs.length&&l.length1<t-this.Patch_Margin;){var u=i.diffs[0][0],d=i.diffs[0][1];1===u?(l.length2+=d.length,a+=d.length,l.diffs.push(i.diffs.shift()),c=!1):-1===u&&1==l.diffs.length&&0==l.diffs[0][0]&&d.length>2*t?(l.length1+=d.length,o+=d.length,c=!1,l.diffs.push(new n.Diff(u,d)),i.diffs.shift()):(d=d.substring(0,t-l.length1-this.Patch_Margin),l.length1+=d.length,o+=d.length,0===u?(l.length2+=d.length,a+=d.length):c=!1,l.diffs.push(new n.Diff(u,d)),d==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(d.length))}s=(s=this.diff_text2(l.diffs)).substring(s.length-this.Patch_Margin);var p=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==p&&(l.length1+=p.length,l.length2+=p.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=p:l.diffs.push(new n.Diff(0,p))),c||e.splice(++r,0,l)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},n.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var r=e.split("\n"),i=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<r.length;){var a=r[i].match(o);if(!a)throw new Error("Invalid patch string: "+r[i]);var s=new n.patch_obj;for(t.push(s),s.start1=parseInt(a[1],10),""===a[2]?(s.start1--,s.length1=1):"0"==a[2]?s.length1=0:(s.start1--,s.length1=parseInt(a[2],10)),s.start2=parseInt(a[3],10),""===a[4]?(s.start2--,s.length2=1):"0"==a[4]?s.length2=0:(s.start2--,s.length2=parseInt(a[4],10)),i++;i<r.length;){var l=r[i].charAt(0);try{var c=decodeURI(r[i].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==l)s.diffs.push(new n.Diff(-1,c));else if("+"==l)s.diffs.push(new n.Diff(1,c));else if(" "==l)s.diffs.push(new n.Diff(0,c));else{if("@"==l)break;if(""!==l)throw new Error('Invalid patch mode "'+l+'" in: '+c)}i++}}return t},(n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case-1:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=n,e.exports.diff_match_patch=n,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},,,,,function(e,t,n){"use strict";var r=n(0);const i={class:"fm-additions-cropper"},o={class:"col-sm-9 cropper-block"},a=["src","alt"],s={class:"col-sm-3 ps-0"},l=Object(r.createElementVNode)("div",{class:"cropper-preview"},null,-1),c={class:"cropper-data"},u={class:"input-group input-group-sm"},d=Object(r.createElementVNode)("label",{class:"input-group-text",for:"dataX"},"X",-1),p=Object(r.createElementVNode)("span",{class:"input-group-text"},"px",-1),h={class:"input-group input-group-sm"},f=Object(r.createElementVNode)("label",{class:"input-group-text",for:"dataY"},"Y",-1),m=Object(r.createElementVNode)("span",{class:"input-group-text"},"px",-1),g={class:"input-group input-group-sm"},b=Object(r.createElementVNode)("label",{class:"input-group-text",for:"dataWidth"},"Width",-1),v=Object(r.createElementVNode)("span",{class:"input-group-text"},"px",-1),y={class:"input-group input-group-sm"},x=Object(r.createElementVNode)("label",{class:"input-group-text",for:"dataHeight"},"Height",-1),w=Object(r.createElementVNode)("span",{class:"input-group-text"},"px",-1),k={class:"input-group input-group-sm"},_=Object(r.createElementVNode)("label",{class:"input-group-text",for:"dataRotate"},"Rotate",-1),C=Object(r.createElementVNode)("span",{class:"input-group-text"},"deg",-1),S={class:"input-group input-group-sm"},O=Object(r.createElementVNode)("label",{class:"input-group-text",for:"dataScaleX"},"ScaleX",-1),E={class:"input-group input-group-sm"},j=Object(r.createElementVNode)("label",{class:"input-group-text",for:"dataScaleY"},"ScaleY",-1),T={class:"d-grid gap-2"},M=["title"],N=[Object(r.createElementVNode)("i",{class:"bi bi-check-lg"},null,-1)],A={class:"d-flex justify-content-between"},D={class:"btn-group me-2",role:"group","aria-label":"Scale"},L=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-left"},null,-1)],z=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-right"},null,-1)],F=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-up"},null,-1)],P=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-down"},null,-1)],I={class:"btn-group me-2",role:"group","aria-label":"Scale"},R=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-left-right"},null,-1)],B=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-down-up"},null,-1)],V={class:"btn-group me-2",role:"group","aria-label":"Rotate"},$=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-counterclockwise"},null,-1)],q=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-clockwise"},null,-1)],H={class:"btn-group me-2",role:"group","aria-label":"Rotate"},W=[Object(r.createElementVNode)("i",{class:"bi bi-plus-circle"},null,-1)],U=[Object(r.createElementVNode)("i",{class:"bi bi-dash-circle"},null,-1)],G=["title"],K=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-repeat"},null,-1)],Y=["title"],X=[Object(r.createElementVNode)("i",{class:"bi bi-save"},null,-1)],Z={class:"d-block"};var Q=n(96),J=n.n(Q),ee={name:"CropperModule",mixins:[n(4).a],props:{imgSrc:{required:!0},maxHeight:{type:Number,required:!0}},data:()=>({cropper:{},height:0,width:0,x:0,y:0,rotate:0,scaleX:1,scaleY:1}),mounted(){this.cropper=new J.a(this.$refs.fmCropper,{preview:".cropper-preview",crop:e=>{this.x=Math.round(e.detail.x),this.y=Math.round(e.detail.y),this.height=Math.round(e.detail.height),this.width=Math.round(e.detail.width),this.rotate=void 0!==e.detail.rotate?e.detail.rotate:"",this.scaleX=void 0!==e.detail.scaleX?e.detail.scaleX:"",this.scaleY=void 0!==e.detail.scaleY?e.detail.scaleY:""}})},beforeDestroy(){this.cropper.destroy()},computed:{selectedItem(){return this.$store.getters["fm/selectedItems"][0]}},methods:{cropMove(e,t){this.cropper.move(e,t)},cropScaleY(){this.cropper.scale(1,1===this.cropper.getData().scaleY?-1:1)},cropScaleX(){this.cropper.scale(1===this.cropper.getData().scaleX?-1:1,1)},cropRotate(e){this.cropper.rotate(e)},cropZoom(e){this.cropper.zoom(e)},cropReset(){this.cropper.reset()},setData(){this.cropper.setData({x:this.x,y:this.y,width:this.width,height:this.height,rotate:this.rotate,scaleX:this.scaleX,scaleY:this.scaleY})},cropSave(){this.cropper.getCroppedCanvas().toBlob(e=>{const t=new FormData;t.append("disk",this.$store.getters["fm/selectedDisk"]),t.append("path",this.selectedItem.dirname),t.append("file",e,this.selectedItem.basename),this.$store.dispatch("fm/updateFile",t).then(e=>{"success"===e.data.result.status&&this.$emit("closeCropper")})},"jpg"!==this.selectedItem.extension?"image/"+this.selectedItem.extension:"image/jpeg")}}},te=(n(135),n(3));const ne=n.n(te)()(ee,[["render",function(e,t,n,Q,J,ee){return Object(r.openBlock)(),Object(r.createElementBlock)("div",i,[Object(r.createElementVNode)("div",{class:"row",style:Object(r.normalizeStyle)({"max-height":n.maxHeight+"px"})},[Object(r.createElementVNode)("div",o,[Object(r.createElementVNode)("img",{src:n.imgSrc,ref:"fmCropper",alt:ee.selectedItem.basename},null,8,a)]),Object(r.createElementVNode)("div",s,[l,Object(r.createElementVNode)("div",c,[Object(r.createElementVNode)("div",u,[d,Object(r.withDirectives)(Object(r.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>J.x=e),type:"text",class:"form-control",id:"dataX"},null,512),[[r.vModelText,J.x,void 0,{number:!0}]]),p]),Object(r.createElementVNode)("div",h,[f,Object(r.withDirectives)(Object(r.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=e=>J.y=e),type:"text",class:"form-control",id:"dataY"},null,512),[[r.vModelText,J.y,void 0,{number:!0}]]),m]),Object(r.createElementVNode)("div",g,[b,Object(r.withDirectives)(Object(r.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=e=>J.width=e),type:"text",class:"form-control",id:"dataWidth"},null,512),[[r.vModelText,J.width,void 0,{number:!0}]]),v]),Object(r.createElementVNode)("div",y,[x,Object(r.withDirectives)(Object(r.createElementVNode)("input",{"onUpdate:modelValue":t[3]||(t[3]=e=>J.height=e),type:"text",class:"form-control",id:"dataHeight"},null,512),[[r.vModelText,J.height,void 0,{number:!0}]]),w]),Object(r.createElementVNode)("div",k,[_,Object(r.withDirectives)(Object(r.createElementVNode)("input",{"onUpdate:modelValue":t[4]||(t[4]=e=>J.rotate=e),type:"text",class:"form-control",id:"dataRotate"},null,512),[[r.vModelText,J.rotate,void 0,{number:!0}]]),C]),Object(r.createElementVNode)("div",S,[O,Object(r.withDirectives)(Object(r.createElementVNode)("input",{"onUpdate:modelValue":t[5]||(t[5]=e=>J.scaleX=e),type:"text",class:"form-control",id:"dataScaleX"},null,512),[[r.vModelText,J.scaleX,void 0,{number:!0}]])]),Object(r.createElementVNode)("div",E,[j,Object(r.withDirectives)(Object(r.createElementVNode)("input",{"onUpdate:modelValue":t[6]||(t[6]=e=>J.scaleY=e),type:"text",class:"form-control",id:"dataScaleY"},null,512),[[r.vModelText,J.scaleY,void 0,{number:!0}]])]),Object(r.createElementVNode)("div",T,[Object(r.createElementVNode)("button",{onClick:t[7]||(t[7]=e=>ee.setData()),title:e.lang.modal.cropper.apply,type:"button",class:"btn btn-block btn-sm btn-info mb-2"},N,8,M)])])])],4),Object(r.createElementVNode)("div",A,[Object(r.createElementVNode)("div",null,[Object(r.createElementVNode)("div",D,[Object(r.createElementVNode)("button",{onClick:t[8]||(t[8]=e=>ee.cropMove(-10,0)),type:"button",class:"btn btn-info"},L),Object(r.createElementVNode)("button",{onClick:t[9]||(t[9]=e=>ee.cropMove(10,0)),type:"button",class:"btn btn-info"},z),Object(r.createElementVNode)("button",{onClick:t[10]||(t[10]=e=>ee.cropMove(0,-10)),type:"button",class:"btn btn-info"},F),Object(r.createElementVNode)("button",{onClick:t[11]||(t[11]=e=>ee.cropMove(0,10)),type:"button",class:"btn btn-info"},P)]),Object(r.createElementVNode)("div",I,[Object(r.createElementVNode)("button",{onClick:t[12]||(t[12]=e=>ee.cropScaleX()),type:"button",class:"btn btn-info"},R),Object(r.createElementVNode)("button",{onClick:t[13]||(t[13]=e=>ee.cropScaleY()),type:"button",class:"btn btn-info"},B)]),Object(r.createElementVNode)("div",V,[Object(r.createElementVNode)("button",{onClick:t[14]||(t[14]=e=>ee.cropRotate(-45)),type:"button",class:"btn btn-info"},$),Object(r.createElementVNode)("button",{onClick:t[15]||(t[15]=e=>ee.cropRotate(45)),type:"button",class:"btn btn-info"},q)]),Object(r.createElementVNode)("div",H,[Object(r.createElementVNode)("button",{onClick:t[16]||(t[16]=e=>ee.cropZoom(.1)),type:"button",class:"btn btn-info"},W),Object(r.createElementVNode)("button",{onClick:t[17]||(t[17]=e=>ee.cropZoom(-.1)),type:"button",class:"btn btn-info"},U)]),Object(r.createElementVNode)("button",{onClick:t[18]||(t[18]=e=>ee.cropReset()),title:e.lang.modal.cropper.reset,type:"button",class:"btn btn-info me-2"},K,8,G),Object(r.createElementVNode)("button",{onClick:t[19]||(t[19]=e=>ee.cropSave()),title:e.lang.modal.cropper.save,type:"button",class:"btn btn-danger me-2"},X,8,Y)]),Object(r.createElementVNode)("span",Z,[Object(r.createElementVNode)("button",{onClick:t[20]||(t[20]=t=>e.$emit("closeCropper")),type:"button",class:"btn btn-light"},Object(r.toDisplayString)(e.lang.btn.back),1)])])])}]]);t.a=ne},,,function(e,t,n){e.exports=n(218)},function(e,t,n){"use strict";n(58)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-navbar {\n flex: 0 0 auto;\n}\n.fm-navbar .col-auto > .btn-group:not(:last-child) {\n margin-right: 0.4rem;\n}",""])},function(e,t,n){"use strict";n(59)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-tree-branch {\n display: table;\n width: 100%;\n padding-left: 1rem;\n}\n.fm-tree-branch li > p {\n margin-bottom: 0;\n padding: 0.4rem 0.4rem;\n white-space: nowrap;\n cursor: pointer;\n}\n.fm-tree-branch li > p:hover, .fm-tree-branch li > p.selected {\n background-color: #f8f9fa;\n}\n.fm-tree-branch .bi.bi-dash,\n.fm-tree-branch .bi.bi-dash-square,\n.fm-tree-branch .bi.bi-plus-square {\n font-size: 0.9rem;\n padding-right: 0.4rem;\n}\n.fade-tree-enter-active,\n.fade-tree-leave-active {\n transition: all 0.3s ease;\n}\n.fade-tree-enter,\n.fade-tree-leave-to {\n transform: translateX(20px);\n opacity: 0;\n}",""])},function(e,t,n){"use strict";n(60)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-tree {\n overflow: auto;\n border-right: 1px solid #6c757d;\n}\n.fm-tree > .fm-tree-branch {\n padding-left: 0;\n}\n.fm-tree .fm-tree-disk {\n padding: 0.2rem 0.3rem;\n background-color: #cff4fc;\n}\n.fm-tree .fm-tree-disk > i {\n padding-right: 0.4rem;\n}",""])},function(e,t,n){"use strict";n(61)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-disk-list ul.list-inline {\n margin-bottom: 0.5rem;\n}\n.fm-disk-list .badge.bg-light {\n cursor: pointer;\n}",""])},function(e,t,n){"use strict";n(62)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-breadcrumb .breadcrumb {\n flex-wrap: nowrap;\n padding: 0.2rem 0.3rem;\n margin-bottom: 0.5rem;\n}\n.fm-breadcrumb .breadcrumb.active-manager {\n background-color: #cff4fc;\n}\n.fm-breadcrumb .breadcrumb .breadcrumb-item:not(.active):hover {\n cursor: pointer;\n font-weight: normal;\n color: #6c757d;\n}",""])},function(e,t,n){"use strict";n(63)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-table thead th {\n background: white;\n position: sticky;\n top: 0;\n z-index: 10;\n cursor: pointer;\n border-top: none;\n}\n.fm-table thead th:hover {\n background-color: #f8f9fa;\n}\n.fm-table thead th > i {\n padding-left: 0.5rem;\n}\n.fm-table td {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.fm-table tr:hover {\n background-color: #f8f9fa;\n}\n.fm-table .w-10 {\n width: 10%;\n}\n.fm-table .w-65 {\n width: 65%;\n}\n.fm-table .fm-content-item {\n cursor: pointer;\n max-width: 1px;\n}\n.fm-table .text-hidden {\n color: #cdcdcd;\n}",""])},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";n(65)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-thumbnail {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.fm-thumbnail .img-thumbnail {\n width: 88px;\n height: 88px;\n}\n.fm-thumbnail .fade-enter-active,\n.fm-thumbnail .fade-leave-active {\n transition: opacity 0.3s;\n}\n.fm-thumbnail .fade-enter,\n.fm-thumbnail .fade-leave-to {\n opacity: 0;\n}",""])},function(e,t,n){"use strict";n(66)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-grid {\n padding-top: 1rem;\n}\n.fm-grid .fm-grid-item {\n position: relative;\n width: 125px;\n padding: 0.4rem;\n margin-bottom: 1rem;\n margin-right: 1rem;\n border-radius: 5px;\n}\n.fm-grid .fm-grid-item.active {\n background-color: #cff4fc;\n box-shadow: 3px 2px 5px gray;\n}\n.fm-grid .fm-grid-item:not(.active):hover {\n background-color: #f8f9fa;\n box-shadow: 3px 2px 5px gray;\n}\n.fm-grid .fm-grid-item .fm-item-icon {\n font-size: 5rem;\n cursor: pointer;\n}\n.fm-grid .fm-grid-item .fm-item-icon > i,\n.fm-grid .fm-grid-item .fm-item-icon > figure > i {\n color: #6c757d;\n}\n.fm-grid .fm-grid-item .fm-item-info {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}",""])},function(e,t,n){"use strict";n(67)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-content {\n padding-left: 1rem;\n}\n.fm-content .fm-content-body {\n overflow: auto;\n}",""])},function(e,t,n){"use strict";n(68)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-modal-upload .fm-btn-wrapper {\n position: relative;\n overflow: hidden;\n padding-bottom: 6px;\n margin-bottom: 0.6rem;\n}\n.fm-modal-upload .fm-btn-wrapper input[type=file] {\n font-size: 100px;\n position: absolute;\n left: 0;\n top: 0;\n opacity: 0;\n cursor: pointer;\n}\n.fm-modal-upload .fm-upload-list .bi {\n padding-right: 0.5rem;\n}\n.fm-modal-upload .fm-upload-list .form-check-inline {\n margin-right: 0;\n}\n.fm-modal-upload .fm-upload-info > .progress {\n margin-bottom: 1rem;\n}",""])},function(e,t,n){"use strict";n(69)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-additions-file-list .bi {\n padding-right: 0.5rem;\n}",""])},function(e,t,n){"use strict";n(70)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-modal-clipboard .modal-body .far {\n padding-right: 0.5rem;\n}",""])},function(e,t,n){"use strict";n(71)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-modal-properties .modal-body .row {\n margin-bottom: 0.3rem;\n padding-top: 0.3rem;\n padding-bottom: 0.3rem;\n}\n.fm-modal-properties .modal-body .row .bi-files {\n display: none;\n cursor: pointer;\n}\n.fm-modal-properties .modal-body .row:hover {\n background-color: #f8f9fa;\n}\n.fm-modal-properties .modal-body .row:hover .bi-files {\n display: block;\n}\n.fm-modal-properties .modal-body .col-2 {\n font-weight: bold;\n}\n.fm-modal-properties .modal-body .col-9 {\n word-wrap: break-word;\n}",""])},function(e,t,n){"use strict";n(72)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-additions-cropper {\n overflow: hidden;\n}\n.fm-additions-cropper button > i {\n color: white;\n font-weight: bold;\n}\n.fm-additions-cropper > .row {\n flex-wrap: nowrap;\n}\n.fm-additions-cropper .cropper-block {\n overflow: hidden;\n}\n.fm-additions-cropper .cropper-block img {\n max-width: 100%;\n}\n.fm-additions-cropper .col-sm-3 {\n overflow: auto;\n}\n.fm-additions-cropper .col-sm-3::-webkit-scrollbar {\n display: none;\n}\n.fm-additions-cropper .cropper-preview {\n margin-bottom: 1rem;\n overflow: hidden;\n height: 200px;\n}\n.fm-additions-cropper .cropper-preview img {\n max-width: 100%;\n}\n.fm-additions-cropper .cropper-data {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.fm-additions-cropper .cropper-data > .input-group {\n margin-bottom: 0.5rem;\n}\n.fm-additions-cropper .cropper-data .input-group > .input-group-text:first-child {\n min-width: 4rem;\n}\n.fm-additions-cropper .cropper-data .input-group > .input-group-text:last-child {\n min-width: 3rem;\n}\n.fm-additions-cropper > .d-flex {\n padding: 1rem;\n border-top: 1px solid #e9ecef;\n}",""])},function(e,t,n){"use strict";n(73)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-modal-preview .modal-body {\n padding: 0;\n}\n.fm-modal-preview .modal-body img {\n max-width: 100%;\n}\n.fm-modal-preview > .d-flex {\n padding: 1rem;\n border-top: 1px solid #e9ecef;\n}",""])},function(e,t,n){var r=n(140);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""])},function(e,t,n){var r=n(142);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,'.CodeMirror-merge {\n position: relative;\n border: 1px solid #ddd;\n white-space: pre;\n}\n\n.CodeMirror-merge, .CodeMirror-merge .CodeMirror {\n height: 350px;\n}\n\n.CodeMirror-merge-2pane .CodeMirror-merge-pane { width: 47%; }\n.CodeMirror-merge-2pane .CodeMirror-merge-gap { width: 6%; }\n.CodeMirror-merge-3pane .CodeMirror-merge-pane { width: 31%; }\n.CodeMirror-merge-3pane .CodeMirror-merge-gap { width: 3.5%; }\n\n.CodeMirror-merge-pane {\n display: inline-block;\n white-space: normal;\n vertical-align: top;\n}\n.CodeMirror-merge-pane-rightmost {\n position: absolute;\n right: 0px;\n z-index: 1;\n}\n\n.CodeMirror-merge-gap {\n z-index: 2;\n display: inline-block;\n height: 100%;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n border-left: 1px solid #ddd;\n border-right: 1px solid #ddd;\n position: relative;\n background: #f8f8f8;\n}\n\n.CodeMirror-merge-scrolllock-wrap {\n position: absolute;\n bottom: 0; left: 50%;\n}\n.CodeMirror-merge-scrolllock {\n position: relative;\n left: -50%;\n cursor: pointer;\n color: #555;\n line-height: 1;\n}\n.CodeMirror-merge-scrolllock:after {\n content: "\\21DB\\A0\\A0\\21DA";\n}\n.CodeMirror-merge-scrolllock.CodeMirror-merge-scrolllock-enabled:after {\n content: "\\21DB\\21DA";\n}\n\n.CodeMirror-merge-copybuttons-left, .CodeMirror-merge-copybuttons-right {\n position: absolute;\n left: 0; top: 0;\n right: 0; bottom: 0;\n line-height: 1;\n}\n\n.CodeMirror-merge-copy {\n position: absolute;\n cursor: pointer;\n color: #44c;\n z-index: 3;\n}\n\n.CodeMirror-merge-copy-reverse {\n position: absolute;\n cursor: pointer;\n color: #44c;\n}\n\n.CodeMirror-merge-copybuttons-left .CodeMirror-merge-copy { left: 2px; }\n.CodeMirror-merge-copybuttons-right .CodeMirror-merge-copy { right: 2px; }\n\n.CodeMirror-merge-r-inserted, .CodeMirror-merge-l-inserted {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAGUlEQVQI12MwuCXy3+CWyH8GBgYGJgYkAABZbAQ9ELXurwAAAABJRU5ErkJggg==);\n background-position: bottom left;\n background-repeat: repeat-x;\n}\n\n.CodeMirror-merge-r-deleted, .CodeMirror-merge-l-deleted {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAGUlEQVQI12M4Kyb2/6yY2H8GBgYGJgYkAABURgPz6Ks7wQAAAABJRU5ErkJggg==);\n background-position: bottom left;\n background-repeat: repeat-x;\n}\n\n.CodeMirror-merge-r-chunk { background: #ffffe0; }\n.CodeMirror-merge-r-chunk-start { border-top: 1px solid #ee8; }\n.CodeMirror-merge-r-chunk-end { border-bottom: 1px solid #ee8; }\n.CodeMirror-merge-r-connect { fill: #ffffe0; stroke: #ee8; stroke-width: 1px; }\n\n.CodeMirror-merge-l-chunk { background: #eef; }\n.CodeMirror-merge-l-chunk-start { border-top: 1px solid #88e; }\n.CodeMirror-merge-l-chunk-end { border-bottom: 1px solid #88e; }\n.CodeMirror-merge-l-connect { fill: #eef; stroke: #88e; stroke-width: 1px; }\n\n.CodeMirror-merge-l-chunk.CodeMirror-merge-r-chunk { background: #dfd; }\n.CodeMirror-merge-l-chunk-start.CodeMirror-merge-r-chunk-start { border-top: 1px solid #4e4; }\n.CodeMirror-merge-l-chunk-end.CodeMirror-merge-r-chunk-end { border-bottom: 1px solid #4e4; }\n\n.CodeMirror-merge-collapsed-widget:before {\n content: "(...)";\n}\n.CodeMirror-merge-collapsed-widget {\n cursor: pointer;\n color: #88b;\n background: #eef;\n border: 1px solid #ddf;\n font-size: 90%;\n padding: 0 3px;\n border-radius: 4px;\n}\n.CodeMirror-merge-collapsed-line .CodeMirror-gutter-elt { display: none; }\n',""])},function(e,t,n){!function(e){"use strict";var t=e.Pos,n="http://www.w3.org/2000/svg";function r(e,t){this.mv=e,this.type=t,this.classes="left"==t?{chunk:"CodeMirror-merge-l-chunk",start:"CodeMirror-merge-l-chunk-start",end:"CodeMirror-merge-l-chunk-end",insert:"CodeMirror-merge-l-inserted",del:"CodeMirror-merge-l-deleted",connect:"CodeMirror-merge-l-connect"}:{chunk:"CodeMirror-merge-r-chunk",start:"CodeMirror-merge-r-chunk-start",end:"CodeMirror-merge-r-chunk-end",insert:"CodeMirror-merge-r-inserted",del:"CodeMirror-merge-r-deleted",connect:"CodeMirror-merge-r-connect"}}function i(t){t.diffOutOfDate&&(t.diff=E(t.orig.getValue(),t.edit.getValue(),t.mv.options.ignoreWhitespace),t.chunks=j(t.diff),t.diffOutOfDate=!1,e.signal(t.edit,"updateDiff",t.diff))}r.prototype={constructor:r,init:function(t,n,r){this.edit=this.mv.edit,(this.edit.state.diffViews||(this.edit.state.diffViews=[])).push(this),this.orig=e(t,P({value:n,readOnly:!this.mv.options.allowEditingOriginals},P(r))),"align"==this.mv.options.connect&&(this.edit.state.trackAlignable||(this.edit.state.trackAlignable=new R(this.edit)),this.orig.state.trackAlignable=new R(this.orig)),this.lockButton.title=this.edit.phrase("Toggle locked scrolling"),this.lockButton.setAttribute("aria-label",this.lockButton.title),this.orig.state.diffViews=[this];var i=r.chunkClassLocation||"background";"[object Array]"!=Object.prototype.toString.call(i)&&(i=[i]),this.classes.classLocation=i,this.diff=E(O(n),O(r.value),this.mv.options.ignoreWhitespace),this.chunks=j(this.diff),this.diffOutOfDate=this.dealigned=!1,this.needsScrollSync=null,this.showDifferences=!1!==r.showDifferences},registerEvents:function(t){this.forceUpdate=function(t){var n,r={from:0,to:0,marked:[]},s={from:0,to:0,marked:[]},l=!1;function c(e){o=!0,l=!1,"full"==e&&(t.svg&&z(t.svg),t.copyButtons&&z(t.copyButtons),u(t.edit,r.marked,t.classes),u(t.orig,s.marked,t.classes),r.from=r.to=s.from=s.to=0),i(t),t.showDifferences&&(d(t.edit,t.diff,r,DIFF_INSERT,t.classes),d(t.orig,t.diff,s,DIFF_DELETE,t.classes)),"align"==t.mv.options.connect&&v(t),f(t),null!=t.needsScrollSync&&a(t,t.needsScrollSync),o=!1}function p(e){o||(t.dealigned=!0,h(e))}function h(e){o||l||(clearTimeout(n),!0===e&&(l=!0),n=setTimeout(c,!0===e?20:250))}function m(e,n){t.diffOutOfDate||(t.diffOutOfDate=!0,r.from=r.to=s.from=s.to=0),p(n.text.length-1!=n.to.line-n.from.line)}function g(){t.diffOutOfDate=!0,t.dealigned=!0,c("full")}return t.edit.on("change",m),t.orig.on("change",m),t.edit.on("swapDoc",g),t.orig.on("swapDoc",g),"align"==t.mv.options.connect&&(e.on(t.edit.state.trackAlignable,"realign",p),e.on(t.orig.state.trackAlignable,"realign",p)),t.edit.on("viewportChange",(function(){h(!1)})),t.orig.on("viewportChange",(function(){h(!1)})),c(),c}(this),l(this,!0,!1),function(e,t){e.edit.on("scroll",(function(){a(e,!0)&&f(e)})),e.orig.on("scroll",(function(){a(e,!1)&&f(e),t&&a(t,!0)&&f(t)}))}(this,t)},setShowDifferences:function(e){(e=!1!==e)!=this.showDifferences&&(this.showDifferences=e,this.forceUpdate("full"))}};var o=!1;function a(e,t){if(e.diffOutOfDate)return e.lockScroll&&null==e.needsScrollSync&&(e.needsScrollSync=t),!1;if(e.needsScrollSync=null,!e.lockScroll)return!0;var n,r,i=+new Date;if(t?(n=e.edit,r=e.orig):(n=e.orig,r=e.edit),n.state.scrollSetBy==e&&(n.state.scrollSetAt||0)+250>i)return!1;var o=n.getScrollInfo();if("align"==e.mv.options.connect)g=o.top;else{var a,l,c=.5*o.clientHeight,u=o.top+c,d=n.lineAtHeight(u,"local"),p=function(e,t,n){for(var r,i,o,a,s=0;s<e.length;s++){var l=e[s],c=n?l.editFrom:l.origFrom,u=n?l.editTo:l.origTo;null==i&&(c>t?(i=l.editFrom,a=l.origFrom):u>t&&(i=l.editTo,a=l.origTo)),u<=t?(r=l.editTo,o=l.origTo):c<=t&&(r=l.editFrom,o=l.origFrom)}return{edit:{before:r,after:i},orig:{before:o,after:a}}}(e.chunks,d,t),h=s(n,t?p.edit:p.orig),f=s(r,t?p.orig:p.edit),m=(u-h.top)/(h.bot-h.top),g=f.top-c+m*(f.bot-f.top);if(g>o.top&&(l=o.top/c)<1)g=g*l+o.top*(1-l);else if((a=o.height-o.clientHeight-o.top)<c){var b=r.getScrollInfo();b.height-b.clientHeight-g>a&&(l=a/c)<1&&(g=g*l+(b.height-b.clientHeight-a)*(1-l))}}return r.scrollTo(o.left,g),r.state.scrollSetAt=i,r.state.scrollSetBy=e,!0}function s(e,t){var n=t.after;return null==n&&(n=e.lastLine()+1),{top:e.heightAtLine(t.before||0,"local"),bot:e.heightAtLine(n,"local")}}function l(t,n,r){t.lockScroll=n,n&&0!=r&&a(t,DIFF_INSERT)&&f(t),(n?e.addClass:e.rmClass)(t.lockButton,"CodeMirror-merge-scrolllock-enabled")}function c(e,t,n){for(var r=n.classLocation,i=0;i<r.length;i++)e.removeLineClass(t,r[i],n.chunk),e.removeLineClass(t,r[i],n.start),e.removeLineClass(t,r[i],n.end)}function u(t,n,r){for(var i=0;i<n.length;++i){var o=n[i];o instanceof e.TextMarker?o.clear():o.parent&&c(t,o,r)}n.length=0}function d(e,t,n,r,i){var o=e.getViewport();e.operation((function(){n.from==n.to||o.from-n.to>20||n.from-o.to>20?(u(e,n.marked,i),h(e,t,r,n.marked,o.from,o.to,i),n.from=o.from,n.to=o.to):(o.from<n.from&&(h(e,t,r,n.marked,o.from,n.from,i),n.from=o.from),o.to>n.to&&(h(e,t,r,n.marked,n.to,o.to,i),n.to=o.to))}))}function p(e,t,n,r,i,o){for(var a=n.classLocation,s=e.getLineHandle(t),l=0;l<a.length;l++)r&&e.addLineClass(s,a[l],n.chunk),i&&e.addLineClass(s,a[l],n.start),o&&e.addLineClass(s,a[l],n.end);return s}function h(e,n,r,i,o,a,s){var l=t(0,0),c=t(o,0),u=e.clipPos(t(a-1)),d=r==DIFF_DELETE?s.del:s.insert;function h(t,n){for(var r=Math.max(o,t),l=Math.min(a,n),c=r;c<l;++c)i.push(p(e,c,s,!0,c==t,c==n-1));t==n&&r==n&&l==n&&(r?i.push(p(e,r-1,s,!1,!1,!0)):i.push(p(e,r,s,!1,!0,!1)))}for(var f=0,m=!1,g=0;g<n.length;++g){var b=n[g],v=b[0],y=b[1];if(v==DIFF_EQUAL){var x=l.line+(M(n,g)?0:1);I(l,y);var w=l.line+(T(n,g)?1:0);w>x&&(m&&(h(f,x),m=!1),f=w)}else if(m=!0,v==r){var k=I(l,y,!0),_=V(c,l),C=B(u,k);$(_,C)||i.push(e.markText(_,C,{className:d})),l=k}}m&&h(f,l.line+1)}function f(e){if(e.showDifferences){if(e.svg){z(e.svg);var t=e.gap.offsetWidth;F(e.svg,"width",t,"height",e.gap.offsetHeight)}e.copyButtons&&z(e.copyButtons);for(var n=e.edit.getViewport(),r=e.orig.getViewport(),i=e.mv.wrap.getBoundingClientRect().top,o=i-e.edit.getScrollerElement().getBoundingClientRect().top+e.edit.getScrollInfo().top,a=i-e.orig.getScrollerElement().getBoundingClientRect().top+e.orig.getScrollInfo().top,s=0;s<e.chunks.length;s++){var l=e.chunks[s];l.editFrom<=n.to&&l.editTo>=n.from&&l.origFrom<=r.to&&l.origTo>=r.from&&w(e,l,a,o,t)}}}function m(e,t){for(var n=0,r=0,i=0;i<t.length;i++){var o=t[i];if(o.editTo>e&&o.editFrom<=e)return null;if(o.editFrom>e)break;n=o.editTo,r=o.origTo}return r+(e-n)}function g(e,t,n){for(var r=e.state.trackAlignable,i=e.firstLine(),o=0,a=[],s=0;;s++){for(var l=t[s],c=l?n?l.origFrom:l.editFrom:1e9;o<r.alignable.length;o+=2){var u=r.alignable[o]+1;if(!(u<=i)){if(!(u<=c))break;a.push(u)}}if(!l)break;a.push(i=n?l.origTo:l.editTo)}return a}function b(e,t,n,r){var i=0,o=0,a=0,s=0;e:for(;;i++){var l=e[i],c=t[o];if(!l&&null==c)break;for(var u=l?l[0]:1e9,d=null==c?1e9:c;a<n.length;){var p=n[a];if(p.origFrom<=d&&p.origTo>d){o++,i--;continue e}if(p.editTo>u){if(p.editFrom<=u)continue e;break}s+=p.origTo-p.origFrom-(p.editTo-p.editFrom),a++}if(u==d-s)l[r]=d,o++;else if(u<d-s)l[r]=u+s;else{var h=[d-s,null,null];h[r]=d,e.splice(i,0,h),o++}}}function v(e,t){if(e.dealigned||t){if(!e.orig.curOp)return e.orig.operation((function(){v(e,t)}));e.dealigned=!1;var n=e.mv.left==e?e.mv.right:e.mv.left;n&&(i(n),n.dealigned=!1);for(var r=function(e,t){var n=g(e.edit,e.chunks,!1),r=[];if(t)for(var i=0,o=0;i<t.chunks.length;i++){for(var a=t.chunks[i].editTo;o<n.length&&n[o]<a;)o++;o!=n.length&&n[o]==a||n.splice(o++,0,a)}for(i=0;i<n.length;i++)r.push([n[i],null,null]);return b(r,g(e.orig,e.chunks,!0),e.chunks,1),t&&b(r,g(t.orig,t.chunks,!0),t.chunks,2),r}(e,n),o=e.mv.aligners,a=0;a<o.length;a++)o[a].clear();o.length=0;var s=[e.edit,e.orig],l=[],c=[];for(n&&s.push(n.orig),a=0;a<s.length;a++)l.push(s[a].getScrollInfo().top),c.push(-s[a].getScrollerElement().getBoundingClientRect().top);(c[0]!=c[1]||3==s.length&&c[1]!=c[2])&&y(s,c,[0,0,0],o);for(var u=0;u<r.length;u++)y(s,c,r[u],o);for(a=0;a<s.length;a++)s[a].scrollTo(null,l[a])}}function y(e,t,n,r){for(var i=-1e8,o=[],a=0;a<e.length;a++)if(null!=n[a]){var s=e[a].heightAtLine(n[a],"local")-t[a];o[a]=s,i=Math.max(i,s)}for(a=0;a<e.length;a++)if(null!=n[a]){var l=i-o[a];l>1&&r.push(x(e[a],n[a],l))}}function x(e,t,n){var r=!0;t>e.lastLine()&&(t--,r=!1);var i=document.createElement("div");return i.className="CodeMirror-merge-spacer",i.style.height=n+"px",i.style.minWidth="1px",e.addLineWidget(t,i,{height:n,above:r,mergeSpacer:!0,handleMouseEvents:!0})}function w(e,t,r,i,o){var a="left"==e.type,s=e.orig.heightAtLine(t.origFrom,"local",!0)-r;if(e.svg){var l=s,c=e.edit.heightAtLine(t.editFrom,"local",!0)-i;if(a){var u=l;l=c,c=u}var d=e.orig.heightAtLine(t.origTo,"local",!0)-r,p=e.edit.heightAtLine(t.editTo,"local",!0)-i;a&&(u=d,d=p,p=u);var h=" C "+o/2+" "+c+" "+o/2+" "+l+" "+(o+2)+" "+l,f=" C "+o/2+" "+d+" "+o/2+" "+p+" -1 "+p;F(e.svg.appendChild(document.createElementNS(n,"path")),"d","M -1 "+c+h+" L "+(o+2)+" "+d+f+" z","class",e.classes.connect)}if(e.copyButtons){var m=e.copyButtons.appendChild(L("div","left"==e.type?"⇝":"⇜","CodeMirror-merge-copy")),g=e.mv.options.allowEditingOriginals;if(m.title=e.edit.phrase(g?"Push to left":"Revert chunk"),m.chunk=t,m.style.top=(t.origTo>t.origFrom?s:e.edit.heightAtLine(t.editFrom,"local")-i)+"px",m.setAttribute("role","button"),m.setAttribute("tabindex","0"),m.setAttribute("aria-label",m.title),g){var b=e.edit.heightAtLine(t.editFrom,"local")-i,v=e.copyButtons.appendChild(L("div","right"==e.type?"⇝":"⇜","CodeMirror-merge-copy-reverse"));v.title="Push to right",v.chunk={editFrom:t.origFrom,editTo:t.origTo,origFrom:t.editFrom,origTo:t.editTo},v.style.top=b+"px","right"==e.type?v.style.left="2px":v.style.right="2px",v.setAttribute("role","button"),v.setAttribute("tabindex","0"),v.setAttribute("aria-label",v.title)}}}function k(e,n,r,i){if(!e.diffOutOfDate){var o=i.origTo>r.lastLine()?t(i.origFrom-1):t(i.origFrom,0),a=t(i.origTo,0),s=i.editTo>n.lastLine()?t(i.editFrom-1):t(i.editFrom,0),l=t(i.editTo,0),c=e.mv.options.revertChunk;c?c(e.mv,r,o,a,n,s,l):n.replaceRange(r.getRange(o,a),s,l)}}var _,C=e.MergeView=function(t,n){if(!(this instanceof C))return new C(t,n);this.options=n;var i=n.origLeft,o=null==n.origRight?n.orig:n.origRight,a=null!=i,s=null!=o,l=1+(a?1:0)+(s?1:0),c=[],u=this.left=null,d=this.right=null,p=this;if(a){u=this.left=new r(this,"left");var h=L("div",null,"CodeMirror-merge-pane CodeMirror-merge-left");c.push(h),c.push(S(u))}var g=L("div",null,"CodeMirror-merge-pane CodeMirror-merge-editor");if(c.push(g),s){d=this.right=new r(this,"right"),c.push(S(d));var b=L("div",null,"CodeMirror-merge-pane CodeMirror-merge-right");c.push(b)}(s?b:g).className+=" CodeMirror-merge-pane-rightmost",c.push(L("div",null,null,"height: 0; clear: both;"));var y=this.wrap=t.appendChild(L("div",c,"CodeMirror-merge CodeMirror-merge-"+l+"pane"));this.edit=e(g,P(n)),u&&u.init(h,i,n),d&&d.init(b,o,n),n.collapseIdentical&&this.editor().operation((function(){!function(e,t){"number"!=typeof t&&(t=2);for(var n=[],r=e.editor(),i=r.firstLine(),o=i,a=r.lastLine();o<=a;o++)n.push(!0);e.left&&D(e.left,t,i,n),e.right&&D(e.right,t,i,n);for(var s=0;s<n.length;s++)if(n[s]){for(var l=s+i,c=1;s<n.length-1&&n[s+1];s++,c++);if(c>t){var u=[{line:l,cm:r}];e.left&&u.push({line:m(l,e.left.chunks),cm:e.left.orig}),e.right&&u.push({line:m(l,e.right.chunks),cm:e.right.orig});var d=A(c,u);e.options.onCollapse&&e.options.onCollapse(e,l,c,d)}}}(p,n.collapseIdentical)})),"align"==n.connect&&(this.aligners=[],v(this.left||this.right,!0)),u&&u.registerEvents(d),d&&d.registerEvents(u);var x=function(){u&&f(u),d&&f(d)};e.on(window,"resize",x);var w=setInterval((function(){for(var t=y.parentNode;t&&t!=document.body;t=t.parentNode);t||(clearInterval(w),e.off(window,"resize",x))}),5e3)};function S(t){var r=t.lockButton=L("div",null,"CodeMirror-merge-scrolllock");r.setAttribute("role","button"),r.setAttribute("tabindex","0");var i=L("div",[r],"CodeMirror-merge-scrolllock-wrap");e.on(r,"click",(function(){l(t,!t.lockScroll)})),e.on(r,"keyup",(function(e){"Enter"===e.key&&l(t,!t.lockScroll)}));var o=[i];if(!1!==t.mv.options.revertButtons){function a(e){var n=e.target||e.srcElement;n.chunk&&("CodeMirror-merge-copy-reverse"!=n.className?k(t,t.edit,t.orig,n.chunk):k(t,t.orig,t.edit,n.chunk))}t.copyButtons=L("div",null,"CodeMirror-merge-copybuttons-"+t.type),e.on(t.copyButtons,"click",a),e.on(t.copyButtons,"keyup",(function(e){"Enter"===e.key&&a(e)})),o.unshift(t.copyButtons)}if("align"!=t.mv.options.connect){var s=document.createElementNS&&document.createElementNS(n,"svg");s&&!s.createSVGRect&&(s=null),t.svg=s,s&&o.push(s)}return t.gap=L("div",o,"CodeMirror-merge-gap")}function O(e){return"string"==typeof e?e:e.getValue()}function E(e,t,n){_||(_=new diff_match_patch);for(var r=_.diff_main(e,t),i=0;i<r.length;++i){var o=r[i];(n?/[^ \t]/.test(o[1]):o[1])?i&&r[i-1][0]==o[0]&&(r.splice(i--,1),r[i][1]+=o[1]):r.splice(i--,1)}return r}function j(e){var n=[];if(!e.length)return n;for(var r=0,i=0,o=t(0,0),a=t(0,0),s=0;s<e.length;++s){var l=e[s],c=l[0];if(c==DIFF_EQUAL){var u=!M(e,s)||o.line<r||a.line<i?1:0,d=o.line+u,p=a.line+u;I(o,l[1],null,a);var h=T(e,s)?1:0,f=o.line+h,m=a.line+h;f>d&&(s&&n.push({origFrom:i,origTo:p,editFrom:r,editTo:d}),r=f,i=m)}else I(c==DIFF_INSERT?o:a,l[1])}return(r<=o.line||i<=a.line)&&n.push({origFrom:i,origTo:a.line+1,editFrom:r,editTo:o.line+1}),n}function T(e,t){if(t==e.length-1)return!0;var n=e[t+1][1];return!(1==n.length&&t<e.length-2||10!=n.charCodeAt(0))&&(t==e.length-2||((n=e[t+2][1]).length>1||t==e.length-3)&&10==n.charCodeAt(0))}function M(e,t){if(0==t)return!0;var n=e[t-1][1];return 10==n.charCodeAt(n.length-1)&&(1==t||10==(n=e[t-2][1]).charCodeAt(n.length-1))}function N(n,r,i){n.addLineClass(r,"wrap","CodeMirror-merge-collapsed-line");var o=document.createElement("span");o.className="CodeMirror-merge-collapsed-widget",o.title=n.phrase("Identical text collapsed. Click to expand.");var a=n.markText(t(r,0),t(i-1),{inclusiveLeft:!0,inclusiveRight:!0,replacedWith:o,clearOnEnter:!0});function s(){a.clear(),n.removeLineClass(r,"wrap","CodeMirror-merge-collapsed-line")}return a.explicitlyCleared&&s(),e.on(o,"click",s),a.on("clear",s),e.on(o,"click",s),{mark:a,clear:s}}function A(e,t){var n=[];function r(){for(var e=0;e<n.length;e++)n[e].clear()}for(var i=0;i<t.length;i++){var o=t[i],a=N(o.cm,o.line,o.line+e);n.push(a),a.mark.on("clear",r)}return n[0].mark}function D(e,t,n,r){for(var i=0;i<e.chunks.length;i++)for(var o=e.chunks[i],a=o.editFrom-t;a<o.editTo+t;a++){var s=a+n;s>=0&&s<r.length&&(r[s]=!1)}}function L(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function z(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild)}function F(e){for(var t=1;t<arguments.length;t+=2)e.setAttribute(arguments[t],arguments[t+1])}function P(e,t){for(var n in t||(t={}),e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function I(e,n,r,i){for(var o=r?t(e.line,e.ch):e,a=0;;){var s=n.indexOf("\n",a);if(-1==s)break;++o.line,i&&++i.line,a=s+1}return o.ch=(a?0:o.ch)+(n.length-a),i&&(i.ch=(a?0:i.ch)+(n.length-a)),o}function R(e){this.cm=e,this.alignable=[],this.height=e.doc.height;var t=this;e.on("markerAdded",(function(e,n){if(n.collapsed){var r=n.find(1);null!=r&&t.set(r.line,4)}})),e.on("markerCleared",(function(e,n,r,i){null!=i&&n.collapsed&&t.check(i,4,t.hasMarker)})),e.on("markerChanged",this.signal.bind(this)),e.on("lineWidgetAdded",(function(e,n,r){n.mergeSpacer||(n.above?t.set(r-1,2):t.set(r,1))})),e.on("lineWidgetCleared",(function(e,n,r){n.mergeSpacer||(n.above?t.check(r-1,2,t.hasWidgetBelow):t.check(r,1,t.hasWidget))})),e.on("lineWidgetChanged",this.signal.bind(this)),e.on("change",(function(e,n){var r=n.from.line,i=n.to.line-n.from.line,o=n.text.length-1,a=r+o;(i||o)&&t.map(r,i,o),t.check(a,4,t.hasMarker),(i||o)&&t.check(n.from.line,4,t.hasMarker)})),e.on("viewportChange",(function(){t.cm.doc.height!=t.height&&t.signal()}))}function B(e,t){return(e.line-t.line||e.ch-t.ch)<0?e:t}function V(e,t){return(e.line-t.line||e.ch-t.ch)>0?e:t}function $(e,t){return e.line==t.line&&e.ch==t.ch}function q(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r],o=(n?i.origTo:i.editTo)-1;if(o<t)return o}}function H(e,t,n){for(var r=0;r<e.length;r++){var i=e[r],o=n?i.origFrom:i.editFrom;if(o>t)return o}}function W(t,n){var r=null,o=t.state.diffViews,a=t.getCursor().line;if(o)for(var s=0;s<o.length;s++){var l=o[s],c=t==l.orig;i(l);var u=n<0?q(l.chunks,a,c):H(l.chunks,a,c);null==u||null!=r&&!(n<0?u>r:u<r)||(r=u)}if(null==r)return e.Pass;t.setCursor(r,0)}C.prototype={constructor:C,editor:function(){return this.edit},rightOriginal:function(){return this.right&&this.right.orig},leftOriginal:function(){return this.left&&this.left.orig},setShowDifferences:function(e){this.right&&this.right.setShowDifferences(e),this.left&&this.left.setShowDifferences(e)},rightChunks:function(){if(this.right)return i(this.right),this.right.chunks},leftChunks:function(){if(this.left)return i(this.left),this.left.chunks}},R.prototype={signal:function(){e.signal(this,"realign"),this.height=this.cm.doc.height},set:function(e,t){for(var n=-1;n<this.alignable.length;n+=2){var r=this.alignable[n]-e;if(0==r){if((this.alignable[n+1]&t)==t)return;return this.alignable[n+1]|=t,void this.signal()}if(r>0)break}this.signal(),this.alignable.splice(n,0,e,t)},find:function(e){for(var t=0;t<this.alignable.length;t+=2)if(this.alignable[t]==e)return t;return-1},check:function(e,t,n){var r=this.find(e);if(-1!=r&&this.alignable[r+1]&t&&!n.call(this,e)){this.signal();var i=this.alignable[r+1]&~t;i?this.alignable[r+1]=i:this.alignable.splice(r,2)}},hasMarker:function(e){var t=this.cm.getLineHandle(e);if(t.markedSpans)for(var n=0;n<t.markedSpans.length;n++)if(t.markedSpans[n].marker.collapsed&&null!=t.markedSpans[n].to)return!0;return!1},hasWidget:function(e){var t=this.cm.getLineHandle(e);if(t.widgets)for(var n=0;n<t.widgets.length;n++)if(!t.widgets[n].above&&!t.widgets[n].mergeSpacer)return!0;return!1},hasWidgetBelow:function(e){if(e==this.cm.lastLine())return!1;var t=this.cm.getLineHandle(e+1);if(t.widgets)for(var n=0;n<t.widgets.length;n++)if(t.widgets[n].above&&!t.widgets[n].mergeSpacer)return!0;return!1},map:function(e,t,n){for(var r=n-t,i=e+t,o=-1,a=-1,s=0;s<this.alignable.length;s+=2){var l=this.alignable[s];l==e&&2&this.alignable[s+1]&&(o=s),l==i&&2&this.alignable[s+1]&&(a=s),l<=e||(l<i?this.alignable.splice(s--,2):this.alignable[s]+=r)}if(o>-1){var c=this.alignable[o+1];2==c?this.alignable.splice(o,2):this.alignable[o+1]=-3&c}a>-1&&n&&this.set(e+n,2)}},e.commands.goNextDiff=function(e){return W(e,1)},e.commands.goPrevDiff=function(e){return W(e,-1)}}(n(48))},function(e,t,n){!function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e.unicode&&(n+="u"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e,r){(e.next||e.push)&&t(r,e.next||e.push),this.regex=n(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}(e.token),this.data=e}function i(e,t){return function(n,r){if(r.pending){var i=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=i.text.length,i.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var o=r.local.endToken||null;return r.local=r.localState=null,o}var s;return o=r.local.mode.token(n,r.localState),r.local.endScan&&(s=r.local.endScan.exec(n.current()))&&(n.pos=n.start+s.index),o}for(var l=e[r.state],c=0;c<l.length;c++){var u=l[c],d=(!u.data.sol||n.sol())&&n.match(u.regex);if(d){u.data.next?r.state=u.data.next:u.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=u.data.push):u.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),u.data.mode&&a(t,r,u.data.mode,u.token),u.data.indent&&r.indent.push(n.indentation()+t.indentUnit),u.data.dedent&&r.indent.pop();var p=u.token;if(p&&p.apply&&(p=p(d)),d.length>2&&u.token&&"string"!=typeof u.token){for(var h=2;h<d.length;h++)d[h]&&(r.pending||(r.pending=[])).push({text:d[h],token:u.token[h-1]});return n.backUp(d[0].length-(d[1]?d[1].length:0)),p[0]}return p&&p.join?p[0]:p}}return n.next(),null}}function o(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!o(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function a(t,r,i,a){var s;if(i.persistent)for(var l=r.persistentStates;l&&!s;l=l.next)(i.spec?o(i.spec,l.spec):i.mode==l.mode)&&(s=l);var c=s?s.mode:i.mode||e.getMode(t,i.spec),u=s?s.state:e.startState(c);i.persistent&&!s&&(r.persistentStates={mode:c,spec:i.spec,state:u,next:r.persistentStates}),r.localState=u,r.local={mode:c,end:i.end&&n(i.end),endScan:i.end&&!1!==i.forceEnd&&n(i.end,!1),endToken:a&&a.join?a[a.length-1]:a}}function s(t,n){return function(r,i,o){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,o);if(null==r.indent||r.local||n.dontIndentStates&&function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,s=t[r.state];e:for(;;){for(var l=0;l<s.length;l++){var c=s[l];if(c.data.dedent&&!1!==c.data.dedentIfLineStart){var u=c.regex.exec(i);if(u&&u[0]){a--,(c.next||c.push)&&(s=t[c.next||c.push]),i=i.slice(u[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,(function(t){return e.simpleMode(t,n)}))},e.simpleMode=function(n,o){t(o,"start");var a={},l=o.meta||{},c=!1;for(var u in o)if(u!=l&&o.hasOwnProperty(u))for(var d=a[u]=[],p=o[u],h=0;h<p.length;h++){var f=p[h];d.push(new r(f,o)),(f.indent||f.dedent)&&(c=!0)}var m={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:c?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:i(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:s(a,l)};if(l)for(var g in l)l.hasOwnProperty(g)&&(m[g]=l[g]);return m}}(n(48))},function(e,t,n){!function(e){"use strict";e.defineMode("shell",(function(){var t={};function n(e,n){for(var r=0;r<n.length;r++)t[n[r]]=e}var r=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function a(e,n){if(e.eatSpace())return null;var r=e.sol(),i=e.next();if("\\"===i)return e.next(),null;if("'"===i||'"'===i||"`"===i)return n.tokens.unshift(s(i,"`"===i?"quote":"string")),u(e,n);if("#"===i)return r&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===i)return n.tokens.unshift(c),u(e,n);if("+"===i||"="===i)return"operator";if("-"===i)return e.eat("-"),e.eatWhile(/\w/),"attribute";if(/\d/.test(i)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var o=e.current();return"="===e.peek()&&/\w+/.test(o)?"def":t.hasOwnProperty(o)?t[o]:null}function s(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){for(var o,a=!1;null!=(o=r.next());){if(o===n&&!a){i.tokens.shift();break}if("$"===o&&!a&&"'"!==e&&r.peek()!=n){a=!0,r.backUp(1),i.tokens.unshift(c);break}if(!a&&e!==n&&o===e)return i.tokens.unshift(s(e,t)),u(r,i);if(!a&&/['"]/.test(o)&&!/['"]/.test(e)){i.tokens.unshift(l(o,"string")),r.backUp(1);break}a=!a&&"\\"===o}return t}}function l(e,t){return function(n,r){return r.tokens[0]=s(e,t),n.next(),u(n,r)}}e.registerHelper("hintWords","shell",r.concat(i,o)),n("atom",r),n("keyword",i),n("builtin",o);var c=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),u(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function u(e,t){return(t.tokens[0]||a)(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return u(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-sh","shell"),e.defineMIME("application/x-sh","shell")}(n(10))},function(e,t,n){!function(e){"use strict";var t,r;t=n(10),n(147),n(53),n(54),n(148),n(47),n(74),n(149),n(150),n(151),r={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]},t.defineMode("vue-template",(function(e,n){return t.overlayMode(t.getMode(e,n.backdrop||"text/html"),{token:function(e){if(e.match(/^\{\{.*?\}\}/))return"meta mustache";for(;e.next()&&!e.match("{{",!1););return null}})})),t.defineMode("vue",(function(e){return t.getMode(e,{name:"htmlmixed",tags:r})}),"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),t.defineMIME("script/x-vue","vue"),t.defineMIME("text/x-vue","vue")}()},function(e,t,n){!function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("coffeescript",(function(e,t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var r=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,i=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,o=/^[_A-Za-z$][_A-Za-z$0-9]*/,a=/^@[_A-Za-z$][_A-Za-z$0-9]*/,s=n(["and","or","not","is","isnt","in","instanceof","typeof"]),l=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],c=n(l.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));l=n(l);var u=/^('{3}|\"{3}|['\"])/,d=/^(\/{3}|\/)/,p=n(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function h(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var n=t.scope.offset;if(e.eatSpace()){var l=e.indentation();return l>n&&"coffee"==t.scope.type?"indent":l<n?"dedent":null}n>0&&b(e,t)}if(e.eatSpace())return null;var h=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=m,t.tokenize(e,t);if("#"===h)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var g=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(g=!0),e.match(/^-?\d+\.\d*/)&&(g=!0),e.match(/^-?\.\d+/)&&(g=!0),g)return"."==e.peek()&&e.backUp(1),"number";var v=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(v=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(v=!0),e.match(/^-?0(?![\dx])/i)&&(v=!0),v)return"number"}if(e.match(u))return t.tokenize=f(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(d)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=f(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(r)||e.match(s)?"operator":e.match(i)?"punctuation":e.match(p)?"atom":e.match(a)||t.prop&&e.match(o)?"property":e.match(c)?"keyword":e.match(o)?"variable":(e.next(),"error")}function f(e,n,r){return function(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\/\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return o.tokenize=h,r;i.eat(/['"\/]/)}return n&&(t.singleLineStringErrors?r="error":o.tokenize=h),r}}function m(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=h;break}e.eatWhile("#")}return"comment"}function g(t,n,r){r=r||"coffee";for(var i=0,o=!1,a=null,s=n.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==r?(o=null,a=t.column()+t.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:o,alignOffset:a}}function b(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}return{startState:function(e){return{tokenize:h,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var r=function(e,t){var n=t.tokenize(e,t),r=e.current();"return"===r&&(t.dedent=!0),(("->"===r||"=>"===r)&&e.eol()||"indent"===n)&&g(e,t);var i="[({".indexOf(r);if(-1!==i&&g(e,t,"])}".slice(i,i+1)),l.exec(r)&&g(e,t),"then"==r&&b(e,t),"dedent"===n&&b(e,t))return"error";if(-1!==(i="])}".indexOf(r))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==r&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),n}(e,t);return r&&"comment"!=r&&(n&&(n.align=!0),t.prop="punctuation"==r&&"."==e.current()),r},indent:function(e,t){if(e.tokenize!=h)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:"#",fold:"indent"}})),e.defineMIME("application/vnd.coffeescript","coffeescript"),e.defineMIME("text/x-coffeescript","coffeescript"),e.defineMIME("text/coffeescript","coffeescript")}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("stylus",(function(e){for(var h,g,b,v,y=e.indentUnit,x="",w=m(t),k=/^(a|b|i|s|col|em)$/i,_=m(o),C=m(a),S=m(c),O=m(l),E=m(n),j=f(n),T=m(i),M=m(r),N=m(s),A=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,D=f(u),L=m(d),z=new RegExp(/^\-(moz|ms|o|webkit)-/i),F=m(p),P="",I={};x.length<y;)x+=" ";function R(e,t){if(P=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=P?P[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),h=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=B,B(e,t);if('"'==h||"'"==h)return e.next(),t.tokenize=V(h),t.tokenize(e,t);if("@"==h)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==h){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(z)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==h?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==h&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(j)?("("==e.peek()&&(t.tokenize=$),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variable-3","reference"]):e.match(/^&{1}\s*$/)?["variable-3","reference"]:e.match(D)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!G(e.current())?(e.match(/\./),["variable-2","variable-name"]):["variable-2","word"]:e.match(A)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(h)?(e.next(),[null,h]):(e.next(),[null,null])}function B(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function V(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function $(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=V(")"),[null,"("]}function q(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function H(e,t,n,r){return r=r>=0?r:y,e.context=new q(n,t.indentation()+r,e.context),n}function W(e,t){var n=e.context.indent-y;return t=t||!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function U(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return I[n.context.type](e,t,n)}(e,t,n)}function G(e){return e.toLowerCase()in w}function K(e){return(e=e.toLowerCase())in _||e in N}function Y(e){return e.toLowerCase()in L}function X(e){return e.toLowerCase().match(z)}function Z(e){var t=e.toLowerCase(),n="variable-2";return G(e)?n="tag":Y(e)?n="block-keyword":K(e)?n="property":t in S||t in F?n="atom":"return"==t||t in O?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function Q(e,t){return ne(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function J(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function ee(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function te(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function ne(e){return e.eol()||e.match(/^\s*$/,!1)}function re(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}return I.block=function(e,t,n){if("comment"==e&&te(t)||","==e&&ne(t)||"mixin"==e)return H(n,t,"block",0);if(J(e,t))return H(n,t,"interpolation");if(ne(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!G(re(t)))return H(n,t,"block",0);if(Q(e,t))return H(n,t,"block");if("}"==e&&ne(t))return H(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||Y(re(t))?H(n,t,"variableName"):H(n,t,"variableName",0);if("="==e)return ne(t)||Y(re(t))?H(n,t,"block"):H(n,t,"block",0);if("*"==e&&(ne(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return v="tag",H(n,t,"block");if(ee(e,t))return H(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return H(n,t,ne(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return H(n,t,"keyframes");if(/@extends?/.test(e))return H(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&K(t.current().slice(1))?(v="variable-2","block"):/(@import|@require|@charset)/.test(e)?H(n,t,"block",0):H(n,t,"block");if("reference"==e&&ne(t))return H(n,t,"block");if("("==e)return H(n,t,"parens");if("vendor-prefixes"==e)return H(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(v=Z(r)))return te(t)?H(n,t,"block",0):(v="atom","block");if("tag"==v){if(/embed|menu|pre|progress|sub|table/.test(r)&&K(re(t)))return v="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return v="atom","block";if(k.test(r)&&(te(t)&&t.string.match(/=/)||!te(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!G(re(t))))return v="variable-2",Y(re(t))?"block":H(n,t,"block",0);if(ne(t))return H(n,t,"block")}if("block-keyword"==v)return v="keyword",t.current(/(if|unless)/)&&!te(t)?"block":H(n,t,"block");if("return"==r)return H(n,t,"block",0);if("variable-2"==v&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return H(n,t,"block")}return n.context.type},I.parens=function(e,t,n){if("("==e)return H(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?W(n):t.string.match(/^[a-z][\w-]*\(/i)&&ne(t)||Y(re(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(re(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&G(re(t))?H(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?H(n,t,"block",0):ne(t)?H(n,t,"block"):H(n,t,"block",0);if(e&&"@"==e.charAt(0)&&K(t.current().slice(1))&&(v="variable-2"),"word"==e){var r=t.current();"tag"==(v=Z(r))&&k.test(r)&&(v="variable-2"),"property"!=v&&"to"!=r||(v="atom")}return"variable-name"==e?H(n,t,"variableName"):ee(e,t)?H(n,t,"pseudo"):n.context.type},I.vendorPrefixes=function(e,t,n){return"word"==e?(v="property",H(n,t,"block",0)):W(n)},I.pseudo=function(e,t,n){return K(re(t.string))?U(e,t,n):(t.match(/^[a-z-]+/),v="variable-3",ne(t)?H(n,t,"block"):W(n))},I.atBlock=function(e,t,n){if("("==e)return H(n,t,"atBlock_parens");if(Q(e,t))return H(n,t,"block");if(J(e,t))return H(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(v=/^(only|not|and|or)$/.test(r)?"keyword":E.hasOwnProperty(r)?"tag":M.hasOwnProperty(r)?"attribute":T.hasOwnProperty(r)?"property":C.hasOwnProperty(r)?"string-2":Z(t.current()))&&ne(t))return H(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(v="keyword"),n.context.type},I.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return ne(t)?H(n,t,"block"):H(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return v=Z(r),/^(max|min)/.test(r)&&(v="property"),"tag"==v&&(v=k.test(r)?"variable-2":"atom"),n.context.type}return I.atBlock(e,t,n)},I.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&te(t)||"]"==e||"hash"==e||"qualifier"==e||G(t.current()))?U(e,t,n):"{"==e?H(n,t,"keyframes"):"}"==e?te(t)?W(n,!0):H(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?H(n,t,"keyframes"):"word"==e&&"block-keyword"==(v=Z(t.current()))?(v="keyword",H(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?H(n,t,ne(t)?"block":"atBlock"):"mixin"==e?H(n,t,"block",0):n.context.type},I.interpolation=function(e,t,n){return"{"==e&&W(n)&&H(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&G(re(t))?H(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?H(n,t,"block",0):H(n,t,"block"):"variable-name"==e?H(n,t,"variableName",0):("word"==e&&"tag"==(v=Z(t.current()))&&(v="atom"),n.context.type)},I.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?W(n):"word"==e?(v=Z(t.current()),"extend"):W(n)},I.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(v="variable-2"),"variableName"):U(e,t,n)},{startState:function(e){return{tokenize:null,state:"block",context:new q("block",e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((g=(t.tokenize||R)(e,t))&&"object"==typeof g&&(b=g[1],g=g[0]),v=g,t.state=I[t.state](b,e,t),v)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=re(t),s=n.match(/^\s*/)[0].replace(/\t/g,x).length,l=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-y:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||Y(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||G(a)?o=/\,\s*$/.test(l)?c:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||G(l))?s<=c?c:c+y:s:/,\s*$/.test(n)||!X(a)&&!K(a)||(o=Y(l)?s<=c?c:c+y:/^\{/.test(l)?s<=c?s:c+y:X(l)||K(l)?s>=c?c:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||G(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?c+y:s)),o},electricChars:"}",lineComment:"//",fold:"indent"}}));var t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],n=["domain","regexp","url","url-prefix"],r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],c=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],u=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],d=["for","if","else","unless","from","to"],p=["null","true","false","href","title","type","not-allowed","readonly","disabled"],h=t.concat(n,r,i,o,a,l,c,s,u,d,p,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function f(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function m(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}e.registerHelper("hintWords","stylus",h),e.defineMIME("text/x-styl","stylus")}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("pug",(function(t){var n="keyword",r={"{":"}","(":")","[":"]"},i=e.getMode(t,"javascript");function o(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(i),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function a(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function s(n,r){var i;if(n.match(/^:([\w\-]+)/))return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||(i=n.current().substring(1)),"string"==typeof i&&(i=e.getMode(t,i)),l(n,r,i),"atom"}function l(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&"null"!==i.name?r.innerMode=i:r.indentToken="string"}function c(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||(n.innerState=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{}),t.hideFirstChars(n.indentOf+2,(function(){return n.innerMode.token(t,n.innerState)||!0}))):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}return o.prototype.copy=function(){var t=new o;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(i,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:function(){return new o},copyState:function(e){return e.copy()},token:function(t,o){var u=c(t,o)||function(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}(t,o)||function(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&t.interpolationNesting++;return i.token(e,t.jsState)||!0}}(t,o)||function(e,t){if(t.isIncludeFiltered){var n=s(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}(t,o)||function(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}(t,o)||function t(n,o){if(o.isAttrs){if(r[n.peek()]&&o.attrsNest.push(r[n.peek()]),o.attrsNest[o.attrsNest.length-1]===n.peek())o.attrsNest.pop();else if(n.eat(")"))return o.isAttrs=!1,"punctuation";if(o.inAttributeName&&n.match(/^[^=,\)!]+/))return"="!==n.peek()&&"!"!==n.peek()||(o.inAttributeName=!1,o.jsState=e.startState(i),"script"===o.lastTag&&"type"===n.current().trim().toLowerCase()?o.attributeIsType=!0:o.attributeIsType=!1),"attribute";var a=i.token(n,o.jsState);if(o.attributeIsType&&"string"===a&&(o.scriptType=n.current().toString()),0===o.attrsNest.length&&("string"===a||"variable"===a||"keyword"===a))try{return Function("","var x "+o.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),o.inAttributeName=!0,o.attrValue="",n.backUp(n.current().length),t(n,o)}catch(e){}return o.attrValue+=n.current(),a||!0}}(t,o)||function(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=i.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}(t,o)||function(e,t){if(t.javaScriptArguments)return 0===t.javaScriptArgumentsDepth&&"("!==e.peek()?void(t.javaScriptArguments=!1):("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth?void(t.javaScriptArguments=!1):i.token(e,t.jsState)||!0)}(t,o)||function(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}(t,o)||function(e){if(e.match(/^yield\b/))return"keyword"}(t)||function(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return"meta"}(t)||a(t,o)||function(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}(t,o)||function(e){if(e.match(/^default\b/))return n}(t)||function(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string",n}(t,o)||function(e,t){if(e.match(/^append\b/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^include\b/))return t.restOfLine="string",n}(t,o)||function(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,n}(t,o)||function(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match(/^\+#{/,!1)?(e.next(),t.mixinCallAfter=!0,a(e,t)):void 0}(t,o)||function(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}(t,o)||function(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"}(t,o)||s(t,o)||function(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}(t,o)||function(e){if(e.match(/^#([\w-]+)/))return"builtin"}(t)||function(e){if(e.match(/^\.([\w-]+)/))return"qualifier"}(t)||function(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}(t,o)||function(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}(t,o)||function(e){if(e.sol()&&e.eatSpace())return"indent"}(t)||function(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(l(e,t,"htmlmixed"),t.innerModeForLine=!0,c(e,t,!0)):void 0}(t,o)||function(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}(t,o)||function(e){if(e.match(/^: */))return"colon"}(t)||function(e,t){if(e.eat(".")){var n=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?n=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(n="css"),l(e,t,n),"dot"}}(t,o)||function(e){return e.next(),null}(t);return!0===u?null:u}}}),"javascript","css","htmlmixed"),e.defineMIME("text/x-pug","pug"),e.defineMIME("text/x-jade","pug")}(n(10),n(54),n(47),n(56))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",(function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:"}}",mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-handlebars-template","handlebars")}(n(10),n(152),n(153))},function(e,t,n){!function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e,r){(e.next||e.push)&&t(r,e.next||e.push),this.regex=n(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}(e.token),this.data=e}function i(e,t){return function(n,r){if(r.pending){var i=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=i.text.length,i.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var o=r.local.endToken||null;return r.local=r.localState=null,o}var s;return o=r.local.mode.token(n,r.localState),r.local.endScan&&(s=r.local.endScan.exec(n.current()))&&(n.pos=n.start+s.index),o}for(var l=e[r.state],c=0;c<l.length;c++){var u=l[c],d=(!u.data.sol||n.sol())&&n.match(u.regex);if(d){u.data.next?r.state=u.data.next:u.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=u.data.push):u.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),u.data.mode&&a(t,r,u.data.mode,u.token),u.data.indent&&r.indent.push(n.indentation()+t.indentUnit),u.data.dedent&&r.indent.pop();var p=u.token;if(p&&p.apply&&(p=p(d)),d.length>2&&u.token&&"string"!=typeof u.token){r.pending=[];for(var h=2;h<d.length;h++)d[h]&&r.pending.push({text:d[h],token:u.token[h-1]});return n.backUp(d[0].length-(d[1]?d[1].length:0)),p[0]}return p&&p.join?p[0]:p}}return n.next(),null}}function o(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!o(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function a(t,r,i,a){var s;if(i.persistent)for(var l=r.persistentStates;l&&!s;l=l.next)(i.spec?o(i.spec,l.spec):i.mode==l.mode)&&(s=l);var c=s?s.mode:i.mode||e.getMode(t,i.spec),u=s?s.state:e.startState(c);i.persistent&&!s&&(r.persistentStates={mode:c,spec:i.spec,state:u,next:r.persistentStates}),r.localState=u,r.local={mode:c,end:i.end&&n(i.end),endScan:i.end&&!1!==i.forceEnd&&n(i.end,!1),endToken:a&&a.join?a[a.length-1]:a}}function s(t,n){return function(r,i,o){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,o);if(null==r.indent||r.local||n.dontIndentStates&&function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,s=t[r.state];e:for(;;){for(var l=0;l<s.length;l++){var c=s[l];if(c.data.dedent&&!1!==c.data.dedentIfLineStart){var u=c.regex.exec(i);if(u&&u[0]){a--,(c.next||c.push)&&(s=t[c.next||c.push]),i=i.slice(u[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,(function(t){return e.simpleMode(t,n)}))},e.simpleMode=function(n,o){t(o,"start");var a={},l=o.meta||{},c=!1;for(var u in o)if(u!=l&&o.hasOwnProperty(u))for(var d=a[u]=[],p=o[u],h=0;h<p.length;h++){var f=p[h];d.push(new r(f,o)),(f.indent||f.dedent)&&(c=!0)}var m={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:c?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:i(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:s(a,l)};if(l)for(var g in l)l.hasOwnProperty(g)&&(m[g]=l[g]);return m}}(n(10))},function(e,t,n){!function(e){"use strict";e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(i,o){if(o.innerActive){var a=o.innerActive;if(c=i.string,!a.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((d=a.close?r(c,a.close,i.pos,a.parseDelimiters):-1)==i.pos&&!a.parseDelimiters)return i.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";d>-1&&(i.string=c.slice(0,d));var s=a.mode.token(i,o.inner);return d>-1&&(i.string=c),d==i.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var l=1/0,c=i.string,u=0;u<n.length;++u){var d,p=n[u];if((d=r(c,p.open,i.pos))==i.pos){p.parseDelimiters||i.match(p.open),o.innerActive=p;var h=0;if(t.indent){var f=t.indent(o.outer,"","");f!==e.Pass&&(h=f)}return o.inner=e.startState(p.mode,h),p.delimStyle&&p.delimStyle+" "+p.delimStyle+"-open"}-1!=d&&d<l&&(l=d)}l!=1/0&&(i.string=c.slice(0,l));var m=t.token(i,o.outer);return l!=1/0&&(i.string=c),m},indent:function(n,r,i){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(r){var i=r.innerActive?r.innerActive.mode:t;if(i.blankLine&&i.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var o=0;o<n.length;++o){var a=n[o];"\n"===a.open&&(r.innerActive=a,r.inner=e.startState(a.mode,i.indent?i.indent(r.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var a in o)o.hasOwnProperty(a)&&n.tokenTypeOverrides[a]&&(o[a]=n.tokenTypeOverrides[a]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,u=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ *(?:\={1,}|-{1,})\s*$/,p=/^[^#!\[\]*_\\<>` "'(~:]+/,h=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function g(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function v(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==x){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=C,t.block=y,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function y(r,i){var a,p=r.column()===i.indentation,m=!(a=i.prevLine.stream)||!/\S/.test(a.string),b=i.indentedCode,v=i.prevLine.hr,y=!1!==i.list,x=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var _=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,y)){for(i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,i.list=null;_<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=_-i.listStack[i.listStack.length-1])}var C=!(m||v||i.prevLine.header||y&&b||i.prevLine.fencedCodeEnd),S=(!1===i.list||v||m)&&i.indentation<=x&&r.match(s),O=null;if(i.indentationDiff>=4&&(b||i.prevLine.fencedCodeEnd||i.prevLine.header||m))return r.skipToEnd(),i.indentedCode=!0,o.code;if(r.eatSpace())return null;if(p&&i.indentation<=x&&(O=r.match(u))&&O[1].length<=6)return i.quote=0,i.header=O[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,k(i);if(i.indentation<=x&&r.eat(">"))return i.quote=p?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),k(i);if(!S&&!i.setext&&p&&i.indentation<=x&&(O=r.match(l))){var E=O[1]?"ol":"ul";return i.indentation=_+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),n.taskLists&&r.match(c,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+E]),k(i)}return p&&i.indentation<=x&&(O=r.match(h,!0))?(i.quote=0,i.fencedEndRE=new RegExp(O[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&function(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}(O[2]),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=w,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,k(i)):i.setext||!(C&&y||i.quote||!1!==i.list||i.code||S||f.test(r.string))&&(O=r.lookAhead(1))&&(O=O.match(d))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==O[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,k(i)):S?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,o.hr):"["===r.peek()?g(r,i,j):g(r,i,i.inline)}function x(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=C,n.block=y,n.htmlState=null)}return o}function w(e,t){var r,i=t.listStack[t.listStack.length-1]||0,a=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(a||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),a||(r=k(t)),t.localMode=t.localState=null,t.block=y,t.f=C,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,a?b(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),o.code)}function k(e){var t=[];if(e.formatting){t.push(o.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(o.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(o.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(o.linkHref,"url"):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,"link"),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+"-"+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+"-"+e.quote):t.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function _(e,t){if(e.match(p,!0))return k(t)}function C(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)return i.list=null,k(i);if(i.taskList)return" "===t.match(c,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,k(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),k(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var u="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(u),!0))return o.linkHref}if("`"===s){var d=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var p=t.current().length;if(0!=i.code||i.quote&&1!=p){if(p==i.code){var h=k(i);return i.code=0,h}return i.formatting=d,k(i)}return i.code=p,k(i)}if(i.code)return k(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var f=k(i),g=o.formatting+"-escape";return f?f+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),k(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),k(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var f=k(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=O,f}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),k(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var f=k(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?O:C,f}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(f=k(i))?f+=" ":f="",f+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(f=k(i))?f+=" ":f="",f+o.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=t.string.indexOf(">",t.pos);if(-1!=v){var y=t.string.substring(t.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,x)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var w=1,_=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(s);)w++;var E=t.peek()||" ",j=!/\s/.test(E)&&(!m.test(E)||/\s/.test(_)||m.test(_)),T=!/\s/.test(_)&&(!m.test(_)||/\s/.test(E)||m.test(E)),M=null,N=null;if(w%2&&(i.em||!j||"*"!==s&&T&&!m.test(_)?i.em!=s||!T||"*"!==s&&j&&!m.test(E)||(M=!1):M=!0),w>1&&(i.strong||!j||"*"!==s&&T&&!m.test(_)?i.strong!=s||!T||"*"!==s&&j&&!m.test(E)||(N=!1):N=!0),null!=N||null!=M)return n.highlightFormatting&&(i.formatting=null==M?"strong":null==N?"em":"strong em"),!0===M&&(i.em=s),!0===N&&(i.strong=s),h=k(i),!1===M&&(i.em=!1),!1===N&&(i.strong=!1),h}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return k(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),h=k(i),i.strikethrough=!1,h;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),k(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return k(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var A=k(i);return i.emoji=!1,A}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),k(i)}function S(e,t){if(">"===e.next()){t.f=t.inline=C,n.highlightFormatting&&(t.formatting="link");var r=k(t);return r?r+=" ":r="",r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function O(e,t){if(e.eatSpace())return null;var r,i=e.next();return"("===i||"["===i?(t.f=t.inline=(r="("===i?")":"]",function(e,t){if(e.next()===r){t.f=t.inline=C,n.highlightFormatting&&(t.formatting="link-string");var i=k(t);return t.linkHref=!1,i}return e.match(E[r]),t.linkHref=!0,k(t)}),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,k(t)):"error"}var E={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function j(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=T,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,k(t)):g(e,t,C)}function T(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=M,n.highlightFormatting&&(t.formatting="link");var r=k(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function M(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=C,o.linkHref+" url")}var N={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:C,text:_,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return v(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=x)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==x?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:N}},indent:function(t,n,i){return t.block==x&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:v,getType:k,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return N}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(10),n(53),n(155))},function(e,t,n){!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(n(10))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t,i){return 0==e.length?r(t):function(o,a){for(var s=e[0],l=0;l<s.length;l++)if(o.match(s[l][0]))return a.tokenize=n(e.slice(1),t),s[l][1];return a.tokenize=r(t,i),"string"}}function r(e,t){return function(r,i){return function(e,t,r,i){if(!1!==i&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==i&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,i)),e.match(/\-\>\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}(r,i,e,t)}}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[i,o,a].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:t(i),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(o),builtin:t(a),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/<<\s*/)){var i=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(n[0].length+(i?2:1));if(i&&e.eat(i),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=r(o,"'"!=i),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",(function(t,n){var r=e.getMode(t,n&&n.htmlMode||"text/html"),i=e.getMode(t,s);return{startState:function(){var t=e.startState(r),o=n.startOpen?e.startState(i):null;return{html:t,php:o,curMode:n.startOpen?i:r,curState:n.startOpen?o:t,pending:null}},copyState:function(t){var n,o=t.html,a=e.copyState(r,o),s=t.php,l=s&&e.copyState(i,s);return n=t.curMode==r?a:l,{html:a,php:l,curMode:t.curMode,curState:n,pending:t.pending}},token:function(t,n){var o=n.curMode==i;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&t.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=e.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var a="string"}else n.pending&&t.pos<n.pending.end?(t.pos=n.pending.end,a=n.pending.style):a=r.token(t,n.curState);n.pending&&(n.pending=null);var s,l=t.current(),c=l.search(/<\?/);return-1!=c&&("string"==a&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:t.pos,style:a},t.backUp(l.length-c)),a},indent:function(e,t,n){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?r.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}}),"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",s)}(n(10),n(56),n(75))},function(e,t,n){!function(e){"use strict";function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function r(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},s=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||o(a),c=n.keywords||o(i),u=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},p=n.hooks||{},h=n.dateSQL||{date:!0,time:!0,timestamp:!0},f=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function b(e,t){var n,i=e.next();if(p[i]){var o=p[i](e,t);if(!1!==o)return o}if(d.hexNumber&&("0"==i&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==i||"X"==i)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(d.binaryNumber&&(("b"==i||"B"==i)&&e.match(/^'[01]+'/)||"0"==i&&e.match(/^b[01]+/)))return"number";if(i.charCodeAt(0)>47&&i.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==i&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==i||'"'==i&&d.doubleQuote)return t.tokenize=(n=i,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=b;break}i=f&&!i&&"\\"==r}return"string"}),t.tokenize(e,t);if((d.nCharCast&&("n"==i||"N"==i)||d.charsetCast&&"_"==i&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(d.commentSlashSlash&&"/"==i&&e.eat("/"))return e.skipToEnd(),"comment";if(d.commentHash&&"#"==i||"-"==i&&e.eat("-")&&(!d.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==i&&e.eat("*"))return t.tokenize=function e(t){return function(n,r){var i=n.match(/^.*?(\/\*|\*\/)/);return i?"/*"==i[1]?r.tokenize=e(t+1):r.tokenize=t>1?e(t-1):b:n.skipToEnd(),"comment"}}(1),t.tokenize(e,t);if("."!=i){if(u.test(i))return e.eatWhile(u),"operator";if(m.test(i))return"bracket";if(g.test(i))return e.eatWhile(g),"punctuation";if("{"==i&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var a=e.current().toLowerCase();return h.hasOwnProperty(a)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":s.hasOwnProperty(a)?"atom":l.hasOwnProperty(a)?"builtin":c.hasOwnProperty(a)?"keyword":r.hasOwnProperty(a)?"string-2":null}return d.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:d.ODBCdotTable&&e.match(/^[\w\d_]+/)?"variable-2":void 0}function v(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}return{startState:function(){return{tokenize:b,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==b&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?v(e,t,")"):"["==r?v(e,t,"]"):t.context&&t.context.type==r&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}}));var i="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function o(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var a="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";e.defineMIME("text/x-sql",{name:"sql",keywords:o(i+"begin"),builtin:o(a),atoms:o("false true null unknown"),dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:o("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:o(i+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:o("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:o("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),e.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-sqlite",{name:"sql",client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:o(i+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null},"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(i+"a abort abs absent absolute access according action ada add admin after aggregate all allocate also always analyse analyze any are array array_agg array_max_cardinality asensitive assertion assignment asymmetric at atomic attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli binary bit_length blob blocked bom both breadth c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain characteristics characters character_length character_set_catalog character_set_name character_set_schema char_length check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column columns column_name command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constraint constraints constraint_catalog constraint_name constraint_schema constructor contains content continue control conversion convert copy corr corresponding cost covar_pop covar_samp cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datetime_interval_code datetime_interval_precision day db deallocate dec declare default defaults deferrable deferred defined definer degree delimiter delimiters dense_rank depth deref derived describe descriptor deterministic diagnostics dictionary disable discard disconnect dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain dynamic dynamic_function dynamic_function_code each element else empty enable encoding encrypted end end-exec end_frame end_partition enforced enum equals escape event every except exception exclude excluding exclusive exec execute exists exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreign fortran forward found frame_row free freeze fs full function functions fusion g general generated get gettoken global go goto grant granted greatest grouping groups handler header headline hex hierarchy hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import including increment indent index indexes indicator inherit inherits init initially inline inner inout input insensitive instance instantiable instead integrity intersect intersection invoker isnull isolation k key key_member key_type label lag language large last last_value lateral lc_collate lc_ctype lead leading leakproof least left length level lexize lextypes library like_regex link listen ln load local localtime localtimestamp location locator lock locked logged lower m map mapping match matched materialized max maxvalue max_cardinality member merge message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized nothing notify notnull nowait nth_value ntile null nullable nullif nulls number object occurrences_regex octets octet_length of off offset oids old only open operator option options ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password percent percentile_cont percentile_disc percent_rank period permission placing plans pli policy portion position position_regex power precedes preceding prepare prepared preserve primary prior privileges procedural procedure program public publication quote range rank read reads reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict restricted result return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns revoke right role rollback rollup routine routine_catalog routine_name routine_schema row rows row_count row_number rule savepoint scale schema schema_name scope scope_catalog scope_name scope_schema scroll search second section security selective self sensitive sequence sequences serializable server server_name session session_user setof sets share show similar simple size skip snapshot some source space specific specifictype specific_name sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t tables tablesample tablespace table_name temp template temporary then ties timezone_hour timezone_minute to token top_level_count trailing transaction transactions_committed transactions_rolled_back transaction_active transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted unique unknown unlink unlisten unlogged unnamed unnest until untyped upper uri usage user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of varbinary variadic var_pop var_samp verbose version versioning view views volatile when whenever whitespace width_bucket window within work wrapper write xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes loop repeat attach path depends detach zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")})}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("lua",(function(e,t){var n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(t.specials||[]),o=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),a=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),s=r(["function","if","repeat","do","\\(","{"]),l=r(["end","until","\\)","}"]),c=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function u(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function d(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=p(u(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=d),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=p(u(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function p(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=d;break}o=null}return t}}return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:d}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(a.test(r)?n="keyword":o.test(r)?n="builtin":i.test(r)&&(n="variable-2")),"comment"!=n&&"string"!=n&&(s.test(r)?++t.indentDepth:l.test(r)&&--t.indentDepth),n},indent:function(e,t){var r=c.test(t);return e.basecol+n*(e.indentDepth-(r?1:0))},lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}})),e.defineMIME("text/x-lua","lua")}(n(10))},function(e,t,n){!function(e){"use strict";function t(e,t){return e.string.charAt(e.pos+(t||0))}function n(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function r(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t<n?t:r)}function i(e,t){var n,r=e.pos+t;r<=0?e.pos=0:r>=(n=e.string.length-1)?e.pos=n:e.pos=r}e.defineMode("perl",(function(){var e={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},o="string-2",a=/[goseximacplud]/;function s(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=c,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function l(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=c),e.skipToEnd(),"string"},t.tokenize(e,t)}function c(c,u){if(c.eatSpace())return null;if(u.chain)return s(c,u,u.chain,u.style,u.tail);if(c.match(/^\-?[\d\.]/,!1)&&c.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(c.match(/^<<(?=\w)/))return c.eatWhile(/\w/),l(c,u,c.current().substr(2));if(c.sol()&&c.match(/^\=item(?!\w)/))return l(c,u,"=cut");var d=c.next();if('"'==d||"'"==d){if(n(c,3)=="<<"+d){var p=c.pos;c.eatWhile(/\w/);var h=c.current().substr(1);if(h&&c.eat(d))return l(c,u,h);c.pos=p}return s(c,u,[d],"string")}if(!("q"!=d||(f=t(c,-2))&&/\w/.test(f)))if("x"==(f=t(c,0))){if("("==(f=t(c,1)))return i(c,2),s(c,u,[")"],o,a);if("["==f)return i(c,2),s(c,u,["]"],o,a);if("{"==f)return i(c,2),s(c,u,["}"],o,a);if("<"==f)return i(c,2),s(c,u,[">"],o,a);if(/[\^'"!~\/]/.test(f))return i(c,1),s(c,u,[c.eat(f)],o,a)}else if("q"==f){if("("==(f=t(c,1)))return i(c,2),s(c,u,[")"],"string");if("["==f)return i(c,2),s(c,u,["]"],"string");if("{"==f)return i(c,2),s(c,u,["}"],"string");if("<"==f)return i(c,2),s(c,u,[">"],"string");if(/[\^'"!~\/]/.test(f))return i(c,1),s(c,u,[c.eat(f)],"string")}else if("w"==f){if("("==(f=t(c,1)))return i(c,2),s(c,u,[")"],"bracket");if("["==f)return i(c,2),s(c,u,["]"],"bracket");if("{"==f)return i(c,2),s(c,u,["}"],"bracket");if("<"==f)return i(c,2),s(c,u,[">"],"bracket");if(/[\^'"!~\/]/.test(f))return i(c,1),s(c,u,[c.eat(f)],"bracket")}else if("r"==f){if("("==(f=t(c,1)))return i(c,2),s(c,u,[")"],o,a);if("["==f)return i(c,2),s(c,u,["]"],o,a);if("{"==f)return i(c,2),s(c,u,["}"],o,a);if("<"==f)return i(c,2),s(c,u,[">"],o,a);if(/[\^'"!~\/]/.test(f))return i(c,1),s(c,u,[c.eat(f)],o,a)}else if(/[\^'"!~\/(\[{<]/.test(f)){if("("==f)return i(c,1),s(c,u,[")"],"string");if("["==f)return i(c,1),s(c,u,["]"],"string");if("{"==f)return i(c,1),s(c,u,["}"],"string");if("<"==f)return i(c,1),s(c,u,[">"],"string");if(/[\^'"!~\/]/.test(f))return s(c,u,[c.eat(f)],"string")}if("m"==d&&(!(f=t(c,-2))||!/\w/.test(f))&&(f=c.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(f))return s(c,u,[f],o,a);if("("==f)return s(c,u,[")"],o,a);if("["==f)return s(c,u,["]"],o,a);if("{"==f)return s(c,u,["}"],o,a);if("<"==f)return s(c,u,[">"],o,a)}if("s"==d&&!(f=/[\/>\]})\w]/.test(t(c,-2)))&&(f=c.eat(/[(\[{<\^'"!~\/]/)))return s(c,u,"["==f?["]","]"]:"{"==f?["}","}"]:"<"==f?[">",">"]:"("==f?[")",")"]:[f,f],o,a);if("y"==d&&!(f=/[\/>\]})\w]/.test(t(c,-2)))&&(f=c.eat(/[(\[{<\^'"!~\/]/)))return s(c,u,"["==f?["]","]"]:"{"==f?["}","}"]:"<"==f?[">",">"]:"("==f?[")",")"]:[f,f],o,a);if("t"==d&&!(f=/[\/>\]})\w]/.test(t(c,-2)))&&(f=c.eat("r"))&&(f=c.eat(/[(\[{<\^'"!~\/]/)))return s(c,u,"["==f?["]","]"]:"{"==f?["}","}"]:"<"==f?[">",">"]:"("==f?[")",")"]:[f,f],o,a);if("`"==d)return s(c,u,[d],"variable-2");if("/"==d)return/~\s*$/.test(n(c))?s(c,u,[d],o,a):"operator";if("$"==d){if(p=c.pos,c.eatWhile(/\d/)||c.eat("{")&&c.eatWhile(/\d/)&&c.eat("}"))return"variable-2";c.pos=p}if(/[$@%]/.test(d)){if(p=c.pos,c.eat("^")&&c.eat(/[A-Z]/)||!/[@$%&]/.test(t(c,-2))&&c.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var f=c.current();if(e[f])return"variable-2"}c.pos=p}if(/[$@%&]/.test(d)&&(c.eatWhile(/[\w$\[\]]/)||c.eat("{")&&c.eatWhile(/[\w$\[\]]/)&&c.eat("}")))return f=c.current(),e[f]?"variable-2":"variable";if("#"==d&&"$"!=t(c,-2))return c.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){if(p=c.pos,c.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),e[c.current()])return"operator";c.pos=p}if("_"==d&&1==c.pos){if("_END__"==r(c,6))return s(c,u,["\0"],"comment");if("_DATA__"==r(c,7))return s(c,u,["\0"],"variable-2");if("_C__"==r(c,7))return s(c,u,["\0"],"string")}if(/\w/.test(d)){if(p=c.pos,"{"==t(c,-2)&&("}"==t(c,0)||c.eatWhile(/\w/)&&"}"==t(c,0)))return"string";c.pos=p}if(/[A-Z]/.test(d)){var m=t(c,-2);if(p=c.pos,c.eatWhile(/[A-Z_]/),!/[\da-z]/.test(t(c,0)))return(f=e[c.current()])?(f[1]&&(f=f[0]),":"!=m?1==f?"keyword":2==f?"def":3==f?"atom":4==f?"operator":5==f?"variable-2":"meta":"meta"):"meta";c.pos=p}return/[a-zA-Z_]/.test(d)?(m=t(c,-2),c.eatWhile(/\w/),(f=e[c.current()])?(f[1]&&(f=f[0]),":"!=m?1==f?"keyword":2==f?"def":3==f?"atom":4==f?"operator":5==f?"variable-2":"meta":"meta"):"meta"):null}return{startState:function(){return{tokenize:c,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||c)(e,t)},lineComment:"#"}})),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}(n(10))},function(e,t,n){!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n,r=t(["and","or","not","is"]),i=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function a(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",i.concat(o)),e.defineMode("python",(function(n,s){for(var l=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,c=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@])/],u=0;u<c.length;u++)c[u]||c.splice(u--,1);var d=s.hangingIndent||n.indentUnit,p=i,h=o;null!=s.extra_keywords&&(p=p.concat(s.extra_keywords)),null!=s.extra_builtins&&(h=h.concat(s.extra_builtins));var f=!(s.version&&Number(s.version)<3);if(f){var m=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;p=p.concat(["nonlocal","False","True","None","async","await"]),h=h.concat(["ascii","bytes","exec","print"]);var g=new RegExp("^(([rbuf]|(br)|(fr))?('{3}|\"{3}|['\"]))","i")}else m=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/,p=p.concat(["exec","print"]),h=h.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]),g=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i");var b=t(p),v=t(h);function y(e,t){var n=e.sol()&&"\\"!=t.lastToken;if(n&&(t.indent=e.indentation()),n&&"py"==a(t).type){var r=a(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?w(t):i<r&&k(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var o=x(e,t);return r>0&&k(e,t)&&(o+=" error"),o}return x(e,t)}function x(e,t){if(e.eatSpace())return null;if(e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var n=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(n=!0),e.match(/^[\d_]+\.\d*/)&&(n=!0),e.match(/^\.\d+/)&&(n=!0),n)return e.eat(/J/i),"number";var i=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(i=!0),e.match(/^0b[01_]+/i)&&(i=!0),e.match(/^0o[0-7_]+/i)&&(i=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),i=!0),e.match(/^0(?![\dx])/i)&&(i=!0),i)return e.eat(/L/i),"number"}if(e.match(g))return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length;function r(e){return function(t,n){var o=x(t,n);return"punctuation"==o&&("{"==t.current()?n.tokenize=r(e+1):"}"==t.current()&&(n.tokenize=e>1?r(e-1):i)),o}}function i(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\{\}\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return"string"}else{if(i.match(e))return o.tokenize=t,"string";if(i.match("{{"))return"string";if(i.match("{",!1))return o.tokenize=r(0),i.current()?"string":o.tokenize(i,o);if(i.match("}}"))return"string";if(i.match("}"))return"error";i.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return"error";o.tokenize=t}return"string"}return i.isString=!0,i}(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length;function r(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\\]/),r.eat("\\")){if(r.next(),n&&r.eol())return"string"}else{if(r.match(e))return i.tokenize=t,"string";r.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return"error";i.tokenize=t}return"string"}return r.isString=!0,r}(e.current(),t.tokenize),t.tokenize(e,t));for(var o=0;o<c.length;o++)if(e.match(c[o]))return"operator";return e.match(l)?"punctuation":"."==t.lastToken&&e.match(m)?"property":e.match(b)||e.match(r)?"keyword":e.match(v)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(m)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),"error")}function w(e){for(;"py"!=a(e).type;)e.scopes.pop();e.scopes.push({offset:a(e).offset+n.indentUnit,type:"py",align:null})}function k(e,t){for(var n=e.indentation();t.scopes.length>1&&a(t).offset>n;){if("py"!=a(t).type)return!0;t.scopes.pop()}return a(t).offset!=n}function _(e,t){e.sol()&&(t.beginningOfLine=!0);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(m,!1)?"meta":f?"operator":"error";if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent+=1),"lambda"==r&&(t.lambda=!0),":"!=r||t.lambda||"py"!=a(t).type||w(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&function(e,t,n){var r=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+d,type:n,align:r})}(e,t,"])}".slice(i,i+1)),-1!=(i="])}".indexOf(r))){if(a(t).type!=r)return"error";t.indent=t.scopes.pop().offset-d}}return t.dedent>0&&e.eol()&&"py"==a(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}return{startState:function(e){return{tokenize:y,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=_(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" error":r},indent:function(t,n){if(t.tokenize!=y)return t.tokenize.isString?e.Pass:0;var r=a(t),i=r.type==n.charAt(0);return null!=r.align?r.align-(i?1:0):r.offset-(i?d:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-python","python"),e.defineMIME("text/x-cython",{name:"python",extra_keywords:(n="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",n.split(" "))})}(n(10))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var n=t(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),r=t(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),i=t(["true","false","nil","self","super","_"]),o=t(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),a=/^\-?0b[01][01_]*/,s=/^\-?0o[0-7][0-7_]*/,l=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,c=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,u=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,d=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,p=/^\#[A-Za-z]+/,h=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function f(e,t,f){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var b,v,y=e.peek();if("/"==y){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(g),g(e,t)}if(e.match(p))return"builtin";if(e.match(h))return"attribute";if(e.match(a))return"number";if(e.match(s))return"number";if(e.match(l))return"number";if(e.match(c))return"number";if(e.match(d))return"property";if("+-/*%=|&<>~^?!".indexOf(y)>-1)return e.next(),"operator";if(":;,.(){}[]".indexOf(y)>-1)return e.next(),e.match(".."),"punctuation";if(y=e.match(/("{3}|"|')/)){var x=(b=y[0],v=1==b.length,function(e,t){for(var n,r=!1;n=e.next();)if(r){if("("==n)return t.tokenize.push(m()),"string";r=!1}else{if(e.match(b))return t.tokenize.pop(),"string";r="\\"==n}return v&&t.tokenize.pop(),"string"});return t.tokenize.push(x),x(e,t)}if(e.match(u)){var w=e.current();return o.hasOwnProperty(w)?"variable-2":i.hasOwnProperty(w)?"atom":n.hasOwnProperty(w)?(r.hasOwnProperty(w)&&(t.prev="define"),"keyword"):"define"==f?"def":"variable"}return e.next(),null}function m(){var e=0;return function(t,n,r){var i=f(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function g(e,t){for(var n;e.match(/^[^/*]+/,!0),n=e.next();)"/"===n&&e.eat("*")?t.tokenize.push(g):"*"===n&&e.eat("/")&&t.tokenize.pop();return"comment"}function b(e,t,n){this.prev=e,this.align=t,this.indented=n}function v(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new b(e.context,n,e.indented)}function y(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}e.defineMode("swift",(function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||f)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?y:v)(t,e)}return r},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}})),e.defineMIME("text/x-swift","swift")}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("ruby",(function(t){function n(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var r,i=n(["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"]),o=n(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),a=n(["end","until"]),s={"[":"]","{":"}","(":")"};function l(e,t,n){return n.tokenize.push(e),e(t,n)}function c(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(h),"comment";if(e.eatSpace())return null;var n,i,o,a=e.next();if("`"==a||"'"==a||'"'==a)return l(p(a,"string",'"'==a||"`"==a),e,t);if("/"==a)return function(e){for(var t,n=e.pos,r=0,i=!1,o=!1;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?l(p(a,"string-2",!0),e,t):"operator";if("%"==a){var c="string",u=!0;e.eat("s")?c="atom":e.eat(/[WQ]/)?c="string":e.eat(/[r]/)?c="string-2":e.eat(/[wxq]/)&&(c="string",u=!1);var d=e.eat(/[^\w\s=]/);return d?(s.propertyIsEnumerable(d)&&(d=s[d]),l(p(d,c,u,!0),e,t)):"operator"}if("#"==a)return e.skipToEnd(),"comment";if("<"==a&&(n=e.match(/^<(-)?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l((i=n[2],o=n[1],function(e,t){return o&&e.eatSpace(),e.match(i)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==a)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(a))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==a){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==a)return e.eat("'")?l(p("'","atom",!1),e,t):e.eat('"')?l(p('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==a&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==a)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(a))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=a||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(a))return r=a,null;if("-"==a&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(a)){var f=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=a||f||(r="."),"operator"}return null}return r="|",null}function u(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=u(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=u(e+1));return c(t,n)}}function d(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,c(t,n))}}function p(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(u());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(d());break}}s=!s&&"\\"==a}return t}}function h(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[c],indented:0,context:{type:"top",indented:-t.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){r=null,e.sol()&&(t.indented=e.indentation());var n,s=t.tokenize[t.tokenize.length-1](e,t),l=r;if("ident"==s){var c=e.current();"keyword"==(s="."==t.lastTok?"property":i.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(c)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(l=c,o.propertyIsEnumerable(c)?n="indent":a.propertyIsEnumerable(c)?n="dedent":"if"!=c&&"unless"!=c||e.column()!=e.indentation()?"do"==c&&t.context.indented<t.indented&&(n="indent"):n="indent")}return(r||s&&"comment"!=s)&&(t.lastTok=l),"|"==r&&(t.varList=!t.varList),"indent"==n||/[\(\[\{]/.test(r)?t.context={prev:t.context,type:r||s,indented:t.indented}:("dedent"==n||/[\)\]\}]/.test(r))&&t.context.prev&&(t.context=t.context.prev),e.eol()&&(t.continuedLine="\\"==r||"operator"==s),s},indent:function(n,r){if(n.tokenize[n.tokenize.length-1]!=c)return e.Pass;var i=r&&r.charAt(0),o=n.context,a=o.type==s[i]||"keyword"==o.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(r);return o.indented+(a?0:t.indentUnit)+(n.continuedLine?t.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-ruby","ruby")}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("go",(function(t){var n,r=t.indentUnit,i={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},o={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var r,c=e.next();if('"'==c||"'"==c||"`"==c)return t.tokenize=(r=c,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"`"!=r&&"\\"==n}return(o||!i&&"`"!=r)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(c))return"."==c?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==c?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(c))return n=c,null;if("/"==c){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(c))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var u=e.current();return i.propertyIsEnumerable(u)?("case"!=u&&"default"!=u||(n="case"),"keyword"):o.propertyIsEnumerable(u)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function c(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function u(e,t,n){return e.context=new c(e.indented,t,n,null,e.context)}function d(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new c((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;n=null;var i=(t.tokenize||s)(e,t);return"comment"==i||(null==r.align&&(r.align=!0),"{"==n?u(t,e.column(),"}"):"["==n?u(t,e.column(),"]"):"("==n?u(t,e.column(),")"):"case"==n?r.type="case":("}"==n&&"}"==r.type||n==r.type)&&d(t),t.startOfLine=!1),i},indent:function(t,n){if(t.tokenize!=s&&null!=t.tokenize)return e.Pass;var i=t.context,o=n&&n.charAt(0);if("case"==i.type&&/^(?:case|default)\b/.test(n))return t.context.type="}",i.indented;var a=o==i.type;return i.align?i.column+(a?0:1):i.indented+(a?0:r)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-go","go")}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,n){var r=t.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&t.indentation()>n.keyCol)return t.skipToEnd(),"string";if(n.literal&&(n.literal=!1),t.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,t.match(/---/))return"def";if(t.match(/\.\.\./))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return t.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,t.next(),"meta";if(n.pairStart){if(t.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!n.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(n.pair=!0,n.keyCol=t.indentation(),"atom"):n.pair&&t.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}(n(10))},function(e,t,n){!function(e){"use strict";e.defineMode("properties",(function(){return{token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}})),e.defineMIME("text/x-properties","properties"),e.defineMIME("text/x-ini","properties")}(n(10))},function(e,t,n){"use strict";n(76)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-modal-text-edit .modal-body {\n padding: 0;\n}",""])},function(e,t,n){"use strict";n(77)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,'@charset "UTF-8";\n@keyframes plyr-progress {\nto {\n background-position: var(--plyr-progress-loading-size, 25px) 0;\n}\n}\n@keyframes plyr-popup {\n0% {\n opacity: 0.5;\n transform: translateY(10px);\n}\nto {\n opacity: 1;\n transform: translateY(0);\n}\n}\n@keyframes plyr-fade-in {\nfrom {\n opacity: 0;\n}\nto {\n opacity: 1;\n}\n}\n.plyr {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n align-items: center;\n direction: ltr;\n display: flex;\n flex-direction: column;\n font-family: var(--plyr-font-family, inherit);\n font-variant-numeric: tabular-nums;\n font-weight: var(--plyr-font-weight-regular, 400);\n line-height: var(--plyr-line-height, 1.7);\n max-width: 100%;\n min-width: 200px;\n position: relative;\n text-shadow: none;\n transition: box-shadow 0.3s ease;\n z-index: 0;\n}\n.plyr video,\n.plyr audio,\n.plyr iframe {\n display: block;\n height: 100%;\n width: 100%;\n}\n.plyr button {\n font: inherit;\n line-height: inherit;\n width: auto;\n}\n.plyr:focus {\n outline: 0;\n}\n.plyr--full-ui {\n box-sizing: border-box;\n}\n.plyr--full-ui *,\n.plyr--full-ui *::after,\n.plyr--full-ui *::before {\n box-sizing: inherit;\n}\n.plyr--full-ui a,\n.plyr--full-ui button,\n.plyr--full-ui input,\n.plyr--full-ui label {\n touch-action: manipulation;\n}\n.plyr__badge {\n background: var(--plyr-badge-background, #4a5464);\n border-radius: var(--plyr-badge-border-radius, 2px);\n color: var(--plyr-badge-text-color, #fff);\n font-size: var(--plyr-font-size-badge, 9px);\n line-height: 1;\n padding: 3px 4px;\n}\n.plyr--full-ui ::-webkit-media-text-track-container {\n display: none;\n}\n.plyr__captions {\n animation: plyr-fade-in 0.3s ease;\n bottom: 0;\n display: none;\n font-size: var(--plyr-font-size-small, 13px);\n left: 0;\n padding: var(--plyr-control-spacing, 10px);\n position: absolute;\n text-align: center;\n transition: transform 0.4s ease-in-out;\n width: 100%;\n}\n.plyr__captions span:empty {\n display: none;\n}\n@media (min-width: 480px) {\n.plyr__captions {\n font-size: var(--plyr-font-size-base, 15px);\n padding: calc(var(--plyr-control-spacing, 10px) * 2);\n}\n}\n@media (min-width: 768px) {\n.plyr__captions {\n font-size: var(--plyr-font-size-large, 18px);\n}\n}\n.plyr--captions-active .plyr__captions {\n display: block;\n}\n.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty) ~ .plyr__captions {\n transform: translateY(calc(var(--plyr-control-spacing, 10px) * -4));\n}\n.plyr__caption {\n background: var(--plyr-captions-background, rgba(0, 0, 0, 0.8));\n border-radius: 2px;\n box-decoration-break: clone;\n color: var(--plyr-captions-text-color, #fff);\n line-height: 185%;\n padding: 0.2em 0.5em;\n white-space: pre-wrap;\n}\n.plyr__caption div {\n display: inline;\n}\n.plyr__control {\n background: transparent;\n border: 0;\n border-radius: var(--plyr-control-radius, 3px);\n color: inherit;\n cursor: pointer;\n flex-shrink: 0;\n overflow: visible;\n padding: calc(var(--plyr-control-spacing, 10px) * 0.7);\n position: relative;\n transition: all 0.3s ease;\n}\n.plyr__control svg {\n display: block;\n fill: currentColor;\n height: var(--plyr-control-icon-size, 18px);\n pointer-events: none;\n width: var(--plyr-control-icon-size, 18px);\n}\n.plyr__control:focus {\n outline: 0;\n}\n.plyr__control.plyr__tab-focus {\n outline: var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff))) dotted 3px;\n outline-offset: 2px;\n}\na.plyr__control {\n text-decoration: none;\n}\na.plyr__control::after, a.plyr__control::before {\n display: none;\n}\n.plyr__control:not(.plyr__control--pressed) .icon--pressed,\n.plyr__control.plyr__control--pressed .icon--not-pressed,\n.plyr__control:not(.plyr__control--pressed) .label--pressed,\n.plyr__control.plyr__control--pressed .label--not-pressed {\n display: none;\n}\n.plyr--full-ui ::-webkit-media-controls {\n display: none;\n}\n.plyr__controls {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n text-align: center;\n}\n.plyr__controls .plyr__progress__container {\n flex: 1;\n min-width: 0;\n}\n.plyr__controls .plyr__controls__item {\n margin-left: calc(var(--plyr-control-spacing, 10px) / 4);\n}\n.plyr__controls .plyr__controls__item:first-child {\n margin-left: 0;\n margin-right: auto;\n}\n.plyr__controls .plyr__controls__item.plyr__progress__container {\n padding-left: calc(var(--plyr-control-spacing, 10px) / 4);\n}\n.plyr__controls .plyr__controls__item.plyr__time {\n padding: 0 calc(var(--plyr-control-spacing, 10px) / 2);\n}\n.plyr__controls .plyr__controls__item.plyr__progress__container:first-child, .plyr__controls .plyr__controls__item.plyr__time:first-child, .plyr__controls .plyr__controls__item.plyr__time + .plyr__time {\n padding-left: 0;\n}\n.plyr__controls:empty {\n display: none;\n}\n.plyr [data-plyr=captions],\n.plyr [data-plyr=pip],\n.plyr [data-plyr=airplay],\n.plyr [data-plyr=fullscreen] {\n display: none;\n}\n.plyr--captions-enabled [data-plyr=captions],\n.plyr--pip-supported [data-plyr=pip],\n.plyr--airplay-supported [data-plyr=airplay],\n.plyr--fullscreen-enabled [data-plyr=fullscreen] {\n display: inline-block;\n}\n.plyr__menu {\n display: flex;\n position: relative;\n}\n.plyr__menu .plyr__control svg {\n transition: transform 0.3s ease;\n}\n.plyr__menu .plyr__control[aria-expanded=true] svg {\n transform: rotate(90deg);\n}\n.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip {\n display: none;\n}\n.plyr__menu__container {\n animation: plyr-popup 0.2s ease;\n background: var(--plyr-menu-background, rgba(255, 255, 255, 0.9));\n border-radius: 4px;\n bottom: 100%;\n box-shadow: var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));\n color: var(--plyr-menu-color, #4a5464);\n font-size: var(--plyr-font-size-base, 15px);\n margin-bottom: 10px;\n position: absolute;\n right: -3px;\n text-align: left;\n white-space: nowrap;\n z-index: 3;\n}\n.plyr__menu__container > div {\n overflow: hidden;\n transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n}\n.plyr__menu__container::after {\n border: var(--plyr-menu-arrow-size, 4px) solid transparent;\n border-top-color: var(--plyr-menu-background, rgba(255, 255, 255, 0.9));\n content: "";\n height: 0;\n position: absolute;\n right: calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));\n top: 100%;\n width: 0;\n}\n.plyr__menu__container [role=menu] {\n padding: calc(var(--plyr-control-spacing, 10px) * 0.7);\n}\n.plyr__menu__container [role=menuitem],\n.plyr__menu__container [role=menuitemradio] {\n margin-top: 2px;\n}\n.plyr__menu__container [role=menuitem]:first-child,\n.plyr__menu__container [role=menuitemradio]:first-child {\n margin-top: 0;\n}\n.plyr__menu__container .plyr__control {\n align-items: center;\n color: var(--plyr-menu-color, #4a5464);\n display: flex;\n font-size: var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));\n padding: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5) calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);\n user-select: none;\n width: 100%;\n}\n.plyr__menu__container .plyr__control > span {\n align-items: inherit;\n display: flex;\n width: 100%;\n}\n.plyr__menu__container .plyr__control::after {\n border: var(--plyr-menu-item-arrow-size, 4px) solid transparent;\n content: "";\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n.plyr__menu__container .plyr__control--forward {\n padding-right: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);\n}\n.plyr__menu__container .plyr__control--forward::after {\n border-left-color: var(--plyr-menu-arrow-color, #728197);\n right: calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px));\n}\n.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after, .plyr__menu__container .plyr__control--forward:hover::after {\n border-left-color: currentColor;\n}\n.plyr__menu__container .plyr__control--back {\n font-weight: var(--plyr-font-weight-regular, 400);\n margin: calc(var(--plyr-control-spacing, 10px) * 0.7);\n margin-bottom: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);\n padding-left: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);\n position: relative;\n width: calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2));\n}\n.plyr__menu__container .plyr__control--back::after {\n border-right-color: var(--plyr-menu-arrow-color, #728197);\n left: calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px));\n}\n.plyr__menu__container .plyr__control--back::before {\n background: var(--plyr-menu-back-border-color, #dcdfe5);\n box-shadow: 0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);\n content: "";\n height: 1px;\n left: 0;\n margin-top: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 100%;\n}\n.plyr__menu__container .plyr__control--back.plyr__tab-focus::after, .plyr__menu__container .plyr__control--back:hover::after {\n border-right-color: currentColor;\n}\n.plyr__menu__container .plyr__control[role=menuitemradio] {\n padding-left: calc(var(--plyr-control-spacing, 10px) * 0.7);\n}\n.plyr__menu__container .plyr__control[role=menuitemradio]::before, .plyr__menu__container .plyr__control[role=menuitemradio]::after {\n border-radius: 100%;\n}\n.plyr__menu__container .plyr__control[role=menuitemradio]::before {\n background: rgba(0, 0, 0, 0.1);\n content: "";\n display: block;\n flex-shrink: 0;\n height: 16px;\n margin-right: var(--plyr-control-spacing, 10px);\n transition: all 0.3s ease;\n width: 16px;\n}\n.plyr__menu__container .plyr__control[role=menuitemradio]::after {\n background: #fff;\n border: 0;\n height: 6px;\n left: 12px;\n opacity: 0;\n top: 50%;\n transform: translateY(-50%) scale(0);\n transition: transform 0.3s ease, opacity 0.3s ease;\n width: 6px;\n}\n.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before {\n background: var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n}\n.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after {\n opacity: 1;\n transform: translateY(-50%) scale(1);\n}\n.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before, .plyr__menu__container .plyr__control[role=menuitemradio]:hover::before {\n background: rgba(35, 40, 47, 0.1);\n}\n.plyr__menu__container .plyr__menu__value {\n align-items: center;\n display: flex;\n margin-left: auto;\n margin-right: calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);\n overflow: hidden;\n padding-left: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);\n pointer-events: none;\n}\n.plyr--full-ui input[type=range] {\n appearance: none;\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-thumb-height, 13px) * 2);\n color: var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n display: block;\n height: calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));\n margin: 0;\n min-width: 0;\n padding: 0;\n transition: box-shadow 0.3s ease;\n width: 100%;\n}\n.plyr--full-ui input[type=range]::-webkit-slider-runnable-track {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n background-image: linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%));\n}\n.plyr--full-ui input[type=range]::-webkit-slider-thumb {\n background: var(--plyr-range-thumb-background, #fff);\n border: 0;\n border-radius: 100%;\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));\n height: var(--plyr-range-thumb-height, 13px);\n position: relative;\n transition: all 0.2s ease;\n width: var(--plyr-range-thumb-height, 13px);\n appearance: none;\n margin-top: calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2 * -1);\n}\n.plyr--full-ui input[type=range]::-moz-range-track {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n}\n.plyr--full-ui input[type=range]::-moz-range-thumb {\n background: var(--plyr-range-thumb-background, #fff);\n border: 0;\n border-radius: 100%;\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));\n height: var(--plyr-range-thumb-height, 13px);\n position: relative;\n transition: all 0.2s ease;\n width: var(--plyr-range-thumb-height, 13px);\n}\n.plyr--full-ui input[type=range]::-moz-range-progress {\n background: currentColor;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n}\n.plyr--full-ui input[type=range]::-ms-track {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n color: transparent;\n}\n.plyr--full-ui input[type=range]::-ms-fill-upper {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n}\n.plyr--full-ui input[type=range]::-ms-fill-lower {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n background: currentColor;\n}\n.plyr--full-ui input[type=range]::-ms-thumb {\n background: var(--plyr-range-thumb-background, #fff);\n border: 0;\n border-radius: 100%;\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));\n height: var(--plyr-range-thumb-height, 13px);\n position: relative;\n transition: all 0.2s ease;\n width: var(--plyr-range-thumb-height, 13px);\n margin-top: 0;\n}\n.plyr--full-ui input[type=range]::-ms-tooltip {\n display: none;\n}\n.plyr--full-ui input[type=range]::-moz-focus-outer {\n border: 0;\n}\n.plyr--full-ui input[type=range]:focus {\n outline: 0;\n}\n.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track {\n outline: var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff))) dotted 3px;\n outline-offset: 2px;\n}\n.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track {\n outline: var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff))) dotted 3px;\n outline-offset: 2px;\n}\n.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track {\n outline: var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff))) dotted 3px;\n outline-offset: 2px;\n}\n.plyr__poster {\n background-color: var(--plyr-video-background, var(--plyr-video-background, black));\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: contain;\n height: 100%;\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n transition: opacity 0.2s ease;\n width: 100%;\n z-index: 1;\n}\n.plyr--stopped.plyr__poster-enabled .plyr__poster {\n opacity: 1;\n}\n.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster {\n display: none;\n}\n.plyr__time {\n font-size: var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));\n}\n.plyr__time + .plyr__time::before {\n content: "\\2044";\n margin-right: var(--plyr-control-spacing, 10px);\n}\n@media (max-width: 767px) {\n.plyr__time + .plyr__time {\n display: none;\n}\n}\n\n/* stylelint-disable selector-max-compound-selectors */\n.plyr__tooltip {\n background: var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));\n border-radius: var(--plyr-tooltip-radius, 5px);\n bottom: 100%;\n box-shadow: var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));\n color: var(--plyr-tooltip-color, #4a5464);\n font-size: var(--plyr-font-size-small, 13px);\n font-weight: var(--plyr-font-weight-regular, 400);\n left: 50%;\n line-height: 1.3;\n margin-bottom: calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);\n opacity: 0;\n padding: calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);\n pointer-events: none;\n position: absolute;\n transform: translate(-50%, 10px) scale(0.8);\n transform-origin: 50% 100%;\n transition: transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;\n white-space: nowrap;\n z-index: 2;\n}\n.plyr__tooltip::before {\n border-left: var(--plyr-tooltip-arrow-size, 4px) solid transparent;\n border-right: var(--plyr-tooltip-arrow-size, 4px) solid transparent;\n border-top: var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));\n bottom: calc(var(--plyr-tooltip-arrow-size, 4px) * -1);\n content: "";\n height: 0;\n left: 50%;\n position: absolute;\n transform: translateX(-50%);\n width: 0;\n z-index: 2;\n}\n.plyr .plyr__control:hover .plyr__tooltip,\n.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,\n.plyr__tooltip--visible {\n opacity: 1;\n transform: translate(-50%, 0) scale(1);\n}\n.plyr .plyr__control:hover .plyr__tooltip {\n z-index: 3;\n}\n.plyr__controls > .plyr__control:first-child .plyr__tooltip,\n.plyr__controls > .plyr__control:first-child + .plyr__control .plyr__tooltip {\n left: 0;\n transform: translate(0, 10px) scale(0.8);\n transform-origin: 0 100%;\n}\n.plyr__controls > .plyr__control:first-child .plyr__tooltip::before,\n.plyr__controls > .plyr__control:first-child + .plyr__control .plyr__tooltip::before {\n left: calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));\n}\n.plyr__controls > .plyr__control:last-child .plyr__tooltip {\n left: auto;\n right: 0;\n transform: translate(0, 10px) scale(0.8);\n transform-origin: 100% 100%;\n}\n.plyr__controls > .plyr__control:last-child .plyr__tooltip::before {\n left: auto;\n right: calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));\n transform: translateX(50%);\n}\n.plyr__controls > .plyr__control:first-child:hover .plyr__tooltip, .plyr__controls > .plyr__control:first-child.plyr__tab-focus .plyr__tooltip,\n.plyr__controls > .plyr__control:first-child .plyr__tooltip--visible,\n.plyr__controls > .plyr__control:first-child + .plyr__control:hover .plyr__tooltip,\n.plyr__controls > .plyr__control:first-child + .plyr__control.plyr__tab-focus .plyr__tooltip,\n.plyr__controls > .plyr__control:first-child + .plyr__control .plyr__tooltip--visible,\n.plyr__controls > .plyr__control:last-child:hover .plyr__tooltip,\n.plyr__controls > .plyr__control:last-child.plyr__tab-focus .plyr__tooltip,\n.plyr__controls > .plyr__control:last-child .plyr__tooltip--visible {\n transform: translate(0, 0) scale(1);\n}\n.plyr__progress {\n left: calc(var(--plyr-range-thumb-height, 13px) * 0.5);\n margin-right: var(--plyr-range-thumb-height, 13px);\n position: relative;\n}\n.plyr__progress input[type=range], .plyr__progress__buffer {\n margin-left: calc(var(--plyr-range-thumb-height, 13px) * -0.5);\n margin-right: calc(var(--plyr-range-thumb-height, 13px) * -0.5);\n width: calc(100% + var(--plyr-range-thumb-height, 13px));\n}\n.plyr__progress input[type=range] {\n position: relative;\n z-index: 2;\n}\n.plyr__progress .plyr__tooltip {\n left: 0;\n max-width: 120px;\n overflow-wrap: break-word;\n white-space: normal;\n}\n.plyr__progress__buffer {\n -webkit-appearance: none;\n /* stylelint-disable-line */\n background: transparent;\n border: 0;\n border-radius: 100px;\n height: var(--plyr-range-track-height, 5px);\n left: 0;\n margin-top: calc((var(--plyr-range-track-height, 5px) / 2) * -1);\n padding: 0;\n position: absolute;\n top: 50%;\n}\n.plyr__progress__buffer::-webkit-progress-bar {\n background: transparent;\n}\n.plyr__progress__buffer::-webkit-progress-value {\n background: currentColor;\n border-radius: 100px;\n min-width: var(--plyr-range-track-height, 5px);\n transition: width 0.2s ease;\n}\n.plyr__progress__buffer::-moz-progress-bar {\n background: currentColor;\n border-radius: 100px;\n min-width: var(--plyr-range-track-height, 5px);\n transition: width 0.2s ease;\n}\n.plyr__progress__buffer::-ms-fill {\n border-radius: 100px;\n transition: width 0.2s ease;\n}\n.plyr--loading .plyr__progress__buffer {\n animation: plyr-progress 1s linear infinite;\n background-image: linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);\n background-repeat: repeat-x;\n background-size: var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);\n color: transparent;\n}\n.plyr--video.plyr--loading .plyr__progress__buffer {\n background-color: var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25));\n}\n.plyr--audio.plyr--loading .plyr__progress__buffer {\n background-color: var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6));\n}\n.plyr__progress__marker {\n background-color: var(--plyr-progress-marker-background, #fff);\n border-radius: 1px;\n height: var(--plyr-range-track-height, 5px);\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: var(--plyr-progress-marker-width, 3px);\n z-index: 3;\n}\n.plyr__volume {\n align-items: center;\n display: flex;\n max-width: 110px;\n min-width: 80px;\n position: relative;\n width: 20%;\n}\n.plyr__volume input[type=range] {\n margin-left: calc(var(--plyr-control-spacing, 10px) / 2);\n margin-right: calc(var(--plyr-control-spacing, 10px) / 2);\n position: relative;\n z-index: 2;\n}\n.plyr--is-ios .plyr__volume {\n min-width: 0;\n width: auto;\n}\n.plyr--audio {\n display: block;\n}\n.plyr--audio .plyr__controls {\n background: var(--plyr-audio-controls-background, #fff);\n border-radius: inherit;\n color: var(--plyr-audio-control-color, #4a5464);\n padding: var(--plyr-control-spacing, 10px);\n}\n.plyr--audio .plyr__control.plyr__tab-focus, .plyr--audio .plyr__control:hover, .plyr--audio .plyr__control[aria-expanded=true] {\n background: var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n color: var(--plyr-audio-control-color-hover, #fff);\n}\n.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track {\n background-color: var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)));\n}\n.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track {\n background-color: var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)));\n}\n.plyr--full-ui.plyr--audio input[type=range]::-ms-track {\n background-color: var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)));\n}\n.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1));\n}\n.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1));\n}\n.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1));\n}\n.plyr--audio .plyr__progress__buffer {\n color: var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6));\n}\n.plyr--video {\n background: var(--plyr-video-background, var(--plyr-video-background, black));\n overflow: hidden;\n}\n.plyr--video.plyr--menu-open {\n overflow: visible;\n}\n.plyr__video-wrapper {\n background: var(--plyr-video-background, var(--plyr-video-background, black));\n height: 100%;\n margin: auto;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n.plyr__video-embed,\n.plyr__video-wrapper--fixed-ratio {\n aspect-ratio: 16/9;\n}\n@supports not (aspect-ratio: 16/9) {\n.plyr__video-embed,\n.plyr__video-wrapper--fixed-ratio {\n height: 0;\n padding-bottom: 56.25%;\n position: relative;\n}\n}\n.plyr__video-embed iframe,\n.plyr__video-wrapper--fixed-ratio video {\n border: 0;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.plyr--full-ui .plyr__video-embed > .plyr__video-embed__container {\n padding-bottom: 240%;\n position: relative;\n transform: translateY(-38.28125%);\n}\n.plyr--video .plyr__controls {\n background: var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));\n border-bottom-left-radius: inherit;\n border-bottom-right-radius: inherit;\n bottom: 0;\n color: var(--plyr-video-control-color, #fff);\n left: 0;\n padding: calc(var(--plyr-control-spacing, 10px) / 2);\n padding-top: calc(var(--plyr-control-spacing, 10px) * 2);\n position: absolute;\n right: 0;\n transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;\n z-index: 3;\n}\n@media (min-width: 480px) {\n.plyr--video .plyr__controls {\n padding: var(--plyr-control-spacing, 10px);\n padding-top: calc(var(--plyr-control-spacing, 10px) * 3.5);\n}\n}\n.plyr--video.plyr--hide-controls .plyr__controls {\n opacity: 0;\n pointer-events: none;\n transform: translateY(100%);\n}\n.plyr--video .plyr__control.plyr__tab-focus, .plyr--video .plyr__control:hover, .plyr--video .plyr__control[aria-expanded=true] {\n background: var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n color: var(--plyr-video-control-color-hover, #fff);\n}\n.plyr__control--overlaid {\n background: var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n border: 0;\n border-radius: 100%;\n color: var(--plyr-video-control-color, #fff);\n display: none;\n left: 50%;\n opacity: 0.9;\n padding: calc(var(--plyr-control-spacing, 10px) * 1.5);\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n transition: 0.3s;\n z-index: 2;\n}\n.plyr__control--overlaid svg {\n left: 2px;\n position: relative;\n}\n.plyr__control--overlaid:hover, .plyr__control--overlaid:focus {\n opacity: 1;\n}\n.plyr--playing .plyr__control--overlaid {\n opacity: 0;\n visibility: hidden;\n}\n.plyr--full-ui.plyr--video .plyr__control--overlaid {\n display: block;\n}\n.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track {\n background-color: var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)));\n}\n.plyr--full-ui.plyr--video input[type=range]::-moz-range-track {\n background-color: var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)));\n}\n.plyr--full-ui.plyr--video input[type=range]::-ms-track {\n background-color: var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)));\n}\n.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5));\n}\n.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5));\n}\n.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5));\n}\n.plyr--video .plyr__progress__buffer {\n color: var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25));\n}\n.plyr:fullscreen {\n background: #000;\n border-radius: 0 !important;\n height: 100%;\n margin: 0;\n width: 100%;\n}\n.plyr:fullscreen video {\n height: 100%;\n}\n.plyr:fullscreen .plyr__control .icon--exit-fullscreen {\n display: block;\n}\n.plyr:fullscreen .plyr__control .icon--exit-fullscreen + svg {\n display: none;\n}\n.plyr:fullscreen.plyr--hide-controls {\n cursor: none;\n}\n@media (min-width: 1024px) {\n.plyr:fullscreen .plyr__captions {\n font-size: var(--plyr-font-size-xlarge, 21px);\n}\n}\n.plyr--fullscreen-fallback {\n background: #000;\n border-radius: 0 !important;\n height: 100%;\n margin: 0;\n width: 100%;\n bottom: 0;\n display: block;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 10000000;\n}\n.plyr--fullscreen-fallback video {\n height: 100%;\n}\n.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen {\n display: block;\n}\n.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen + svg {\n display: none;\n}\n.plyr--fullscreen-fallback.plyr--hide-controls {\n cursor: none;\n}\n@media (min-width: 1024px) {\n.plyr--fullscreen-fallback .plyr__captions {\n font-size: var(--plyr-font-size-xlarge, 21px);\n}\n}\n.plyr__ads {\n border-radius: inherit;\n bottom: 0;\n cursor: pointer;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -1;\n}\n.plyr__ads > div,\n.plyr__ads > div iframe {\n height: 100%;\n position: absolute;\n width: 100%;\n}\n.plyr__ads::after {\n background: #23282f;\n border-radius: 2px;\n bottom: var(--plyr-control-spacing, 10px);\n color: #fff;\n content: attr(data-badge-text);\n font-size: 11px;\n padding: 2px 6px;\n pointer-events: none;\n position: absolute;\n right: var(--plyr-control-spacing, 10px);\n z-index: 3;\n}\n.plyr__ads:empty::after {\n display: none;\n}\n.plyr__cues {\n background: currentColor;\n display: block;\n height: var(--plyr-range-track-height, 5px);\n left: 0;\n opacity: 0.8;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 3px;\n z-index: 3;\n}\n.plyr__preview-thumb {\n background-color: var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));\n border-radius: var(--plyr-tooltip-radius, 5px);\n bottom: 100%;\n box-shadow: var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));\n margin-bottom: calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);\n opacity: 0;\n padding: 3px;\n pointer-events: none;\n position: absolute;\n transform: translate(0, 10px) scale(0.8);\n transform-origin: 50% 100%;\n transition: transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;\n z-index: 2;\n}\n.plyr__preview-thumb--is-shown {\n opacity: 1;\n transform: translate(0, 0) scale(1);\n}\n.plyr__preview-thumb::before {\n border-left: var(--plyr-tooltip-arrow-size, 4px) solid transparent;\n border-right: var(--plyr-tooltip-arrow-size, 4px) solid transparent;\n border-top: var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));\n bottom: calc(var(--plyr-tooltip-arrow-size, 4px) * -1);\n content: "";\n height: 0;\n left: calc(50% + var(--preview-arrow-offset));\n position: absolute;\n transform: translateX(-50%);\n width: 0;\n z-index: 2;\n}\n.plyr__preview-thumb__image-container {\n background: #c1c8d1;\n border-radius: calc(var(--plyr-tooltip-radius, 5px) - 1px);\n overflow: hidden;\n position: relative;\n z-index: 0;\n}\n.plyr__preview-thumb__image-container img, .plyr__preview-thumb__image-container::after {\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.plyr__preview-thumb__image-container::after {\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);\n content: "";\n pointer-events: none;\n}\n.plyr__preview-thumb__image-container img {\n max-height: none;\n max-width: none;\n}\n.plyr__preview-thumb__time-container {\n background: var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));\n border-bottom-left-radius: calc(var(--plyr-tooltip-radius, 5px) - 1px);\n border-bottom-right-radius: calc(var(--plyr-tooltip-radius, 5px) - 1px);\n bottom: 0;\n left: 0;\n line-height: 1.1;\n padding: 20px 6px 6px;\n position: absolute;\n right: 0;\n z-index: 3;\n}\n.plyr__preview-thumb__time-container span {\n color: #fff;\n font-size: var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));\n}\n.plyr__preview-scrubbing {\n bottom: 0;\n filter: blur(1px);\n height: 100%;\n left: 0;\n margin: auto;\n opacity: 0;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.3s ease;\n width: 100%;\n z-index: 1;\n}\n.plyr__preview-scrubbing--is-shown {\n opacity: 1;\n}\n.plyr__preview-scrubbing img {\n height: 100%;\n left: 0;\n max-height: none;\n max-width: none;\n object-fit: contain;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.plyr--no-transition {\n transition: none !important;\n}\n.plyr__sr-only {\n clip: rect(1px, 1px, 1px, 1px);\n overflow: hidden;\n border: 0 !important;\n height: 1px !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n}\n.plyr [hidden] {\n display: none !important;\n}\n.fm-modal-audio-player .bi.bi-play-fill {\n color: gray;\n opacity: 0.1;\n cursor: pointer;\n}\n.fm-modal-audio-player .bi.bi-play-fill:hover {\n opacity: 0.5;\n}\n.fm-modal-audio-player .bi.bi-play-fill.active {\n opacity: 1;\n color: deepskyblue;\n}\n.fm-modal-audio-player .bi.bi-pause-fill {\n color: gray;\n opacity: 0.5;\n cursor: pointer;\n}',""])},function(e,t,n){"use strict";n(78)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,'@charset "UTF-8";\n@keyframes plyr-progress {\nto {\n background-position: var(--plyr-progress-loading-size, 25px) 0;\n}\n}\n@keyframes plyr-popup {\n0% {\n opacity: 0.5;\n transform: translateY(10px);\n}\nto {\n opacity: 1;\n transform: translateY(0);\n}\n}\n@keyframes plyr-fade-in {\nfrom {\n opacity: 0;\n}\nto {\n opacity: 1;\n}\n}\n.plyr {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n align-items: center;\n direction: ltr;\n display: flex;\n flex-direction: column;\n font-family: var(--plyr-font-family, inherit);\n font-variant-numeric: tabular-nums;\n font-weight: var(--plyr-font-weight-regular, 400);\n line-height: var(--plyr-line-height, 1.7);\n max-width: 100%;\n min-width: 200px;\n position: relative;\n text-shadow: none;\n transition: box-shadow 0.3s ease;\n z-index: 0;\n}\n.plyr video,\n.plyr audio,\n.plyr iframe {\n display: block;\n height: 100%;\n width: 100%;\n}\n.plyr button {\n font: inherit;\n line-height: inherit;\n width: auto;\n}\n.plyr:focus {\n outline: 0;\n}\n.plyr--full-ui {\n box-sizing: border-box;\n}\n.plyr--full-ui *,\n.plyr--full-ui *::after,\n.plyr--full-ui *::before {\n box-sizing: inherit;\n}\n.plyr--full-ui a,\n.plyr--full-ui button,\n.plyr--full-ui input,\n.plyr--full-ui label {\n touch-action: manipulation;\n}\n.plyr__badge {\n background: var(--plyr-badge-background, #4a5464);\n border-radius: var(--plyr-badge-border-radius, 2px);\n color: var(--plyr-badge-text-color, #fff);\n font-size: var(--plyr-font-size-badge, 9px);\n line-height: 1;\n padding: 3px 4px;\n}\n.plyr--full-ui ::-webkit-media-text-track-container {\n display: none;\n}\n.plyr__captions {\n animation: plyr-fade-in 0.3s ease;\n bottom: 0;\n display: none;\n font-size: var(--plyr-font-size-small, 13px);\n left: 0;\n padding: var(--plyr-control-spacing, 10px);\n position: absolute;\n text-align: center;\n transition: transform 0.4s ease-in-out;\n width: 100%;\n}\n.plyr__captions span:empty {\n display: none;\n}\n@media (min-width: 480px) {\n.plyr__captions {\n font-size: var(--plyr-font-size-base, 15px);\n padding: calc(var(--plyr-control-spacing, 10px) * 2);\n}\n}\n@media (min-width: 768px) {\n.plyr__captions {\n font-size: var(--plyr-font-size-large, 18px);\n}\n}\n.plyr--captions-active .plyr__captions {\n display: block;\n}\n.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty) ~ .plyr__captions {\n transform: translateY(calc(var(--plyr-control-spacing, 10px) * -4));\n}\n.plyr__caption {\n background: var(--plyr-captions-background, rgba(0, 0, 0, 0.8));\n border-radius: 2px;\n box-decoration-break: clone;\n color: var(--plyr-captions-text-color, #fff);\n line-height: 185%;\n padding: 0.2em 0.5em;\n white-space: pre-wrap;\n}\n.plyr__caption div {\n display: inline;\n}\n.plyr__control {\n background: transparent;\n border: 0;\n border-radius: var(--plyr-control-radius, 3px);\n color: inherit;\n cursor: pointer;\n flex-shrink: 0;\n overflow: visible;\n padding: calc(var(--plyr-control-spacing, 10px) * 0.7);\n position: relative;\n transition: all 0.3s ease;\n}\n.plyr__control svg {\n display: block;\n fill: currentColor;\n height: var(--plyr-control-icon-size, 18px);\n pointer-events: none;\n width: var(--plyr-control-icon-size, 18px);\n}\n.plyr__control:focus {\n outline: 0;\n}\n.plyr__control.plyr__tab-focus {\n outline: var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff))) dotted 3px;\n outline-offset: 2px;\n}\na.plyr__control {\n text-decoration: none;\n}\na.plyr__control::after, a.plyr__control::before {\n display: none;\n}\n.plyr__control:not(.plyr__control--pressed) .icon--pressed,\n.plyr__control.plyr__control--pressed .icon--not-pressed,\n.plyr__control:not(.plyr__control--pressed) .label--pressed,\n.plyr__control.plyr__control--pressed .label--not-pressed {\n display: none;\n}\n.plyr--full-ui ::-webkit-media-controls {\n display: none;\n}\n.plyr__controls {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n text-align: center;\n}\n.plyr__controls .plyr__progress__container {\n flex: 1;\n min-width: 0;\n}\n.plyr__controls .plyr__controls__item {\n margin-left: calc(var(--plyr-control-spacing, 10px) / 4);\n}\n.plyr__controls .plyr__controls__item:first-child {\n margin-left: 0;\n margin-right: auto;\n}\n.plyr__controls .plyr__controls__item.plyr__progress__container {\n padding-left: calc(var(--plyr-control-spacing, 10px) / 4);\n}\n.plyr__controls .plyr__controls__item.plyr__time {\n padding: 0 calc(var(--plyr-control-spacing, 10px) / 2);\n}\n.plyr__controls .plyr__controls__item.plyr__progress__container:first-child, .plyr__controls .plyr__controls__item.plyr__time:first-child, .plyr__controls .plyr__controls__item.plyr__time + .plyr__time {\n padding-left: 0;\n}\n.plyr__controls:empty {\n display: none;\n}\n.plyr [data-plyr=captions],\n.plyr [data-plyr=pip],\n.plyr [data-plyr=airplay],\n.plyr [data-plyr=fullscreen] {\n display: none;\n}\n.plyr--captions-enabled [data-plyr=captions],\n.plyr--pip-supported [data-plyr=pip],\n.plyr--airplay-supported [data-plyr=airplay],\n.plyr--fullscreen-enabled [data-plyr=fullscreen] {\n display: inline-block;\n}\n.plyr__menu {\n display: flex;\n position: relative;\n}\n.plyr__menu .plyr__control svg {\n transition: transform 0.3s ease;\n}\n.plyr__menu .plyr__control[aria-expanded=true] svg {\n transform: rotate(90deg);\n}\n.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip {\n display: none;\n}\n.plyr__menu__container {\n animation: plyr-popup 0.2s ease;\n background: var(--plyr-menu-background, rgba(255, 255, 255, 0.9));\n border-radius: 4px;\n bottom: 100%;\n box-shadow: var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));\n color: var(--plyr-menu-color, #4a5464);\n font-size: var(--plyr-font-size-base, 15px);\n margin-bottom: 10px;\n position: absolute;\n right: -3px;\n text-align: left;\n white-space: nowrap;\n z-index: 3;\n}\n.plyr__menu__container > div {\n overflow: hidden;\n transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n}\n.plyr__menu__container::after {\n border: var(--plyr-menu-arrow-size, 4px) solid transparent;\n border-top-color: var(--plyr-menu-background, rgba(255, 255, 255, 0.9));\n content: "";\n height: 0;\n position: absolute;\n right: calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));\n top: 100%;\n width: 0;\n}\n.plyr__menu__container [role=menu] {\n padding: calc(var(--plyr-control-spacing, 10px) * 0.7);\n}\n.plyr__menu__container [role=menuitem],\n.plyr__menu__container [role=menuitemradio] {\n margin-top: 2px;\n}\n.plyr__menu__container [role=menuitem]:first-child,\n.plyr__menu__container [role=menuitemradio]:first-child {\n margin-top: 0;\n}\n.plyr__menu__container .plyr__control {\n align-items: center;\n color: var(--plyr-menu-color, #4a5464);\n display: flex;\n font-size: var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));\n padding: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5) calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);\n user-select: none;\n width: 100%;\n}\n.plyr__menu__container .plyr__control > span {\n align-items: inherit;\n display: flex;\n width: 100%;\n}\n.plyr__menu__container .plyr__control::after {\n border: var(--plyr-menu-item-arrow-size, 4px) solid transparent;\n content: "";\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n.plyr__menu__container .plyr__control--forward {\n padding-right: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);\n}\n.plyr__menu__container .plyr__control--forward::after {\n border-left-color: var(--plyr-menu-arrow-color, #728197);\n right: calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px));\n}\n.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after, .plyr__menu__container .plyr__control--forward:hover::after {\n border-left-color: currentColor;\n}\n.plyr__menu__container .plyr__control--back {\n font-weight: var(--plyr-font-weight-regular, 400);\n margin: calc(var(--plyr-control-spacing, 10px) * 0.7);\n margin-bottom: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);\n padding-left: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);\n position: relative;\n width: calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2));\n}\n.plyr__menu__container .plyr__control--back::after {\n border-right-color: var(--plyr-menu-arrow-color, #728197);\n left: calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px));\n}\n.plyr__menu__container .plyr__control--back::before {\n background: var(--plyr-menu-back-border-color, #dcdfe5);\n box-shadow: 0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);\n content: "";\n height: 1px;\n left: 0;\n margin-top: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 100%;\n}\n.plyr__menu__container .plyr__control--back.plyr__tab-focus::after, .plyr__menu__container .plyr__control--back:hover::after {\n border-right-color: currentColor;\n}\n.plyr__menu__container .plyr__control[role=menuitemradio] {\n padding-left: calc(var(--plyr-control-spacing, 10px) * 0.7);\n}\n.plyr__menu__container .plyr__control[role=menuitemradio]::before, .plyr__menu__container .plyr__control[role=menuitemradio]::after {\n border-radius: 100%;\n}\n.plyr__menu__container .plyr__control[role=menuitemradio]::before {\n background: rgba(0, 0, 0, 0.1);\n content: "";\n display: block;\n flex-shrink: 0;\n height: 16px;\n margin-right: var(--plyr-control-spacing, 10px);\n transition: all 0.3s ease;\n width: 16px;\n}\n.plyr__menu__container .plyr__control[role=menuitemradio]::after {\n background: #fff;\n border: 0;\n height: 6px;\n left: 12px;\n opacity: 0;\n top: 50%;\n transform: translateY(-50%) scale(0);\n transition: transform 0.3s ease, opacity 0.3s ease;\n width: 6px;\n}\n.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before {\n background: var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n}\n.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after {\n opacity: 1;\n transform: translateY(-50%) scale(1);\n}\n.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before, .plyr__menu__container .plyr__control[role=menuitemradio]:hover::before {\n background: rgba(35, 40, 47, 0.1);\n}\n.plyr__menu__container .plyr__menu__value {\n align-items: center;\n display: flex;\n margin-left: auto;\n margin-right: calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);\n overflow: hidden;\n padding-left: calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);\n pointer-events: none;\n}\n.plyr--full-ui input[type=range] {\n appearance: none;\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-thumb-height, 13px) * 2);\n color: var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n display: block;\n height: calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));\n margin: 0;\n min-width: 0;\n padding: 0;\n transition: box-shadow 0.3s ease;\n width: 100%;\n}\n.plyr--full-ui input[type=range]::-webkit-slider-runnable-track {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n background-image: linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%));\n}\n.plyr--full-ui input[type=range]::-webkit-slider-thumb {\n background: var(--plyr-range-thumb-background, #fff);\n border: 0;\n border-radius: 100%;\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));\n height: var(--plyr-range-thumb-height, 13px);\n position: relative;\n transition: all 0.2s ease;\n width: var(--plyr-range-thumb-height, 13px);\n appearance: none;\n margin-top: calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2 * -1);\n}\n.plyr--full-ui input[type=range]::-moz-range-track {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n}\n.plyr--full-ui input[type=range]::-moz-range-thumb {\n background: var(--plyr-range-thumb-background, #fff);\n border: 0;\n border-radius: 100%;\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));\n height: var(--plyr-range-thumb-height, 13px);\n position: relative;\n transition: all 0.2s ease;\n width: var(--plyr-range-thumb-height, 13px);\n}\n.plyr--full-ui input[type=range]::-moz-range-progress {\n background: currentColor;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n}\n.plyr--full-ui input[type=range]::-ms-track {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n color: transparent;\n}\n.plyr--full-ui input[type=range]::-ms-fill-upper {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n}\n.plyr--full-ui input[type=range]::-ms-fill-lower {\n background: transparent;\n border: 0;\n border-radius: calc(var(--plyr-range-track-height, 5px) / 2);\n height: var(--plyr-range-track-height, 5px);\n transition: box-shadow 0.3s ease;\n user-select: none;\n background: currentColor;\n}\n.plyr--full-ui input[type=range]::-ms-thumb {\n background: var(--plyr-range-thumb-background, #fff);\n border: 0;\n border-radius: 100%;\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));\n height: var(--plyr-range-thumb-height, 13px);\n position: relative;\n transition: all 0.2s ease;\n width: var(--plyr-range-thumb-height, 13px);\n margin-top: 0;\n}\n.plyr--full-ui input[type=range]::-ms-tooltip {\n display: none;\n}\n.plyr--full-ui input[type=range]::-moz-focus-outer {\n border: 0;\n}\n.plyr--full-ui input[type=range]:focus {\n outline: 0;\n}\n.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track {\n outline: var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff))) dotted 3px;\n outline-offset: 2px;\n}\n.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track {\n outline: var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff))) dotted 3px;\n outline-offset: 2px;\n}\n.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track {\n outline: var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff))) dotted 3px;\n outline-offset: 2px;\n}\n.plyr__poster {\n background-color: var(--plyr-video-background, var(--plyr-video-background, black));\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: contain;\n height: 100%;\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n transition: opacity 0.2s ease;\n width: 100%;\n z-index: 1;\n}\n.plyr--stopped.plyr__poster-enabled .plyr__poster {\n opacity: 1;\n}\n.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster {\n display: none;\n}\n.plyr__time {\n font-size: var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));\n}\n.plyr__time + .plyr__time::before {\n content: "\\2044";\n margin-right: var(--plyr-control-spacing, 10px);\n}\n@media (max-width: 767px) {\n.plyr__time + .plyr__time {\n display: none;\n}\n}\n\n/* stylelint-disable selector-max-compound-selectors */\n.plyr__tooltip {\n background: var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));\n border-radius: var(--plyr-tooltip-radius, 5px);\n bottom: 100%;\n box-shadow: var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));\n color: var(--plyr-tooltip-color, #4a5464);\n font-size: var(--plyr-font-size-small, 13px);\n font-weight: var(--plyr-font-weight-regular, 400);\n left: 50%;\n line-height: 1.3;\n margin-bottom: calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);\n opacity: 0;\n padding: calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);\n pointer-events: none;\n position: absolute;\n transform: translate(-50%, 10px) scale(0.8);\n transform-origin: 50% 100%;\n transition: transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;\n white-space: nowrap;\n z-index: 2;\n}\n.plyr__tooltip::before {\n border-left: var(--plyr-tooltip-arrow-size, 4px) solid transparent;\n border-right: var(--plyr-tooltip-arrow-size, 4px) solid transparent;\n border-top: var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));\n bottom: calc(var(--plyr-tooltip-arrow-size, 4px) * -1);\n content: "";\n height: 0;\n left: 50%;\n position: absolute;\n transform: translateX(-50%);\n width: 0;\n z-index: 2;\n}\n.plyr .plyr__control:hover .plyr__tooltip,\n.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,\n.plyr__tooltip--visible {\n opacity: 1;\n transform: translate(-50%, 0) scale(1);\n}\n.plyr .plyr__control:hover .plyr__tooltip {\n z-index: 3;\n}\n.plyr__controls > .plyr__control:first-child .plyr__tooltip,\n.plyr__controls > .plyr__control:first-child + .plyr__control .plyr__tooltip {\n left: 0;\n transform: translate(0, 10px) scale(0.8);\n transform-origin: 0 100%;\n}\n.plyr__controls > .plyr__control:first-child .plyr__tooltip::before,\n.plyr__controls > .plyr__control:first-child + .plyr__control .plyr__tooltip::before {\n left: calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));\n}\n.plyr__controls > .plyr__control:last-child .plyr__tooltip {\n left: auto;\n right: 0;\n transform: translate(0, 10px) scale(0.8);\n transform-origin: 100% 100%;\n}\n.plyr__controls > .plyr__control:last-child .plyr__tooltip::before {\n left: auto;\n right: calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));\n transform: translateX(50%);\n}\n.plyr__controls > .plyr__control:first-child:hover .plyr__tooltip, .plyr__controls > .plyr__control:first-child.plyr__tab-focus .plyr__tooltip,\n.plyr__controls > .plyr__control:first-child .plyr__tooltip--visible,\n.plyr__controls > .plyr__control:first-child + .plyr__control:hover .plyr__tooltip,\n.plyr__controls > .plyr__control:first-child + .plyr__control.plyr__tab-focus .plyr__tooltip,\n.plyr__controls > .plyr__control:first-child + .plyr__control .plyr__tooltip--visible,\n.plyr__controls > .plyr__control:last-child:hover .plyr__tooltip,\n.plyr__controls > .plyr__control:last-child.plyr__tab-focus .plyr__tooltip,\n.plyr__controls > .plyr__control:last-child .plyr__tooltip--visible {\n transform: translate(0, 0) scale(1);\n}\n.plyr__progress {\n left: calc(var(--plyr-range-thumb-height, 13px) * 0.5);\n margin-right: var(--plyr-range-thumb-height, 13px);\n position: relative;\n}\n.plyr__progress input[type=range], .plyr__progress__buffer {\n margin-left: calc(var(--plyr-range-thumb-height, 13px) * -0.5);\n margin-right: calc(var(--plyr-range-thumb-height, 13px) * -0.5);\n width: calc(100% + var(--plyr-range-thumb-height, 13px));\n}\n.plyr__progress input[type=range] {\n position: relative;\n z-index: 2;\n}\n.plyr__progress .plyr__tooltip {\n left: 0;\n max-width: 120px;\n overflow-wrap: break-word;\n white-space: normal;\n}\n.plyr__progress__buffer {\n -webkit-appearance: none;\n /* stylelint-disable-line */\n background: transparent;\n border: 0;\n border-radius: 100px;\n height: var(--plyr-range-track-height, 5px);\n left: 0;\n margin-top: calc((var(--plyr-range-track-height, 5px) / 2) * -1);\n padding: 0;\n position: absolute;\n top: 50%;\n}\n.plyr__progress__buffer::-webkit-progress-bar {\n background: transparent;\n}\n.plyr__progress__buffer::-webkit-progress-value {\n background: currentColor;\n border-radius: 100px;\n min-width: var(--plyr-range-track-height, 5px);\n transition: width 0.2s ease;\n}\n.plyr__progress__buffer::-moz-progress-bar {\n background: currentColor;\n border-radius: 100px;\n min-width: var(--plyr-range-track-height, 5px);\n transition: width 0.2s ease;\n}\n.plyr__progress__buffer::-ms-fill {\n border-radius: 100px;\n transition: width 0.2s ease;\n}\n.plyr--loading .plyr__progress__buffer {\n animation: plyr-progress 1s linear infinite;\n background-image: linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);\n background-repeat: repeat-x;\n background-size: var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);\n color: transparent;\n}\n.plyr--video.plyr--loading .plyr__progress__buffer {\n background-color: var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25));\n}\n.plyr--audio.plyr--loading .plyr__progress__buffer {\n background-color: var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6));\n}\n.plyr__progress__marker {\n background-color: var(--plyr-progress-marker-background, #fff);\n border-radius: 1px;\n height: var(--plyr-range-track-height, 5px);\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: var(--plyr-progress-marker-width, 3px);\n z-index: 3;\n}\n.plyr__volume {\n align-items: center;\n display: flex;\n max-width: 110px;\n min-width: 80px;\n position: relative;\n width: 20%;\n}\n.plyr__volume input[type=range] {\n margin-left: calc(var(--plyr-control-spacing, 10px) / 2);\n margin-right: calc(var(--plyr-control-spacing, 10px) / 2);\n position: relative;\n z-index: 2;\n}\n.plyr--is-ios .plyr__volume {\n min-width: 0;\n width: auto;\n}\n.plyr--audio {\n display: block;\n}\n.plyr--audio .plyr__controls {\n background: var(--plyr-audio-controls-background, #fff);\n border-radius: inherit;\n color: var(--plyr-audio-control-color, #4a5464);\n padding: var(--plyr-control-spacing, 10px);\n}\n.plyr--audio .plyr__control.plyr__tab-focus, .plyr--audio .plyr__control:hover, .plyr--audio .plyr__control[aria-expanded=true] {\n background: var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n color: var(--plyr-audio-control-color-hover, #fff);\n}\n.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track {\n background-color: var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)));\n}\n.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track {\n background-color: var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)));\n}\n.plyr--full-ui.plyr--audio input[type=range]::-ms-track {\n background-color: var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)));\n}\n.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1));\n}\n.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1));\n}\n.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1));\n}\n.plyr--audio .plyr__progress__buffer {\n color: var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6));\n}\n.plyr--video {\n background: var(--plyr-video-background, var(--plyr-video-background, black));\n overflow: hidden;\n}\n.plyr--video.plyr--menu-open {\n overflow: visible;\n}\n.plyr__video-wrapper {\n background: var(--plyr-video-background, var(--plyr-video-background, black));\n height: 100%;\n margin: auto;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n.plyr__video-embed,\n.plyr__video-wrapper--fixed-ratio {\n aspect-ratio: 16/9;\n}\n@supports not (aspect-ratio: 16/9) {\n.plyr__video-embed,\n.plyr__video-wrapper--fixed-ratio {\n height: 0;\n padding-bottom: 56.25%;\n position: relative;\n}\n}\n.plyr__video-embed iframe,\n.plyr__video-wrapper--fixed-ratio video {\n border: 0;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.plyr--full-ui .plyr__video-embed > .plyr__video-embed__container {\n padding-bottom: 240%;\n position: relative;\n transform: translateY(-38.28125%);\n}\n.plyr--video .plyr__controls {\n background: var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));\n border-bottom-left-radius: inherit;\n border-bottom-right-radius: inherit;\n bottom: 0;\n color: var(--plyr-video-control-color, #fff);\n left: 0;\n padding: calc(var(--plyr-control-spacing, 10px) / 2);\n padding-top: calc(var(--plyr-control-spacing, 10px) * 2);\n position: absolute;\n right: 0;\n transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;\n z-index: 3;\n}\n@media (min-width: 480px) {\n.plyr--video .plyr__controls {\n padding: var(--plyr-control-spacing, 10px);\n padding-top: calc(var(--plyr-control-spacing, 10px) * 3.5);\n}\n}\n.plyr--video.plyr--hide-controls .plyr__controls {\n opacity: 0;\n pointer-events: none;\n transform: translateY(100%);\n}\n.plyr--video .plyr__control.plyr__tab-focus, .plyr--video .plyr__control:hover, .plyr--video .plyr__control[aria-expanded=true] {\n background: var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n color: var(--plyr-video-control-color-hover, #fff);\n}\n.plyr__control--overlaid {\n background: var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));\n border: 0;\n border-radius: 100%;\n color: var(--plyr-video-control-color, #fff);\n display: none;\n left: 50%;\n opacity: 0.9;\n padding: calc(var(--plyr-control-spacing, 10px) * 1.5);\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n transition: 0.3s;\n z-index: 2;\n}\n.plyr__control--overlaid svg {\n left: 2px;\n position: relative;\n}\n.plyr__control--overlaid:hover, .plyr__control--overlaid:focus {\n opacity: 1;\n}\n.plyr--playing .plyr__control--overlaid {\n opacity: 0;\n visibility: hidden;\n}\n.plyr--full-ui.plyr--video .plyr__control--overlaid {\n display: block;\n}\n.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track {\n background-color: var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)));\n}\n.plyr--full-ui.plyr--video input[type=range]::-moz-range-track {\n background-color: var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)));\n}\n.plyr--full-ui.plyr--video input[type=range]::-ms-track {\n background-color: var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)));\n}\n.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5));\n}\n.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5));\n}\n.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb {\n box-shadow: var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5));\n}\n.plyr--video .plyr__progress__buffer {\n color: var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25));\n}\n.plyr:fullscreen {\n background: #000;\n border-radius: 0 !important;\n height: 100%;\n margin: 0;\n width: 100%;\n}\n.plyr:fullscreen video {\n height: 100%;\n}\n.plyr:fullscreen .plyr__control .icon--exit-fullscreen {\n display: block;\n}\n.plyr:fullscreen .plyr__control .icon--exit-fullscreen + svg {\n display: none;\n}\n.plyr:fullscreen.plyr--hide-controls {\n cursor: none;\n}\n@media (min-width: 1024px) {\n.plyr:fullscreen .plyr__captions {\n font-size: var(--plyr-font-size-xlarge, 21px);\n}\n}\n.plyr--fullscreen-fallback {\n background: #000;\n border-radius: 0 !important;\n height: 100%;\n margin: 0;\n width: 100%;\n bottom: 0;\n display: block;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 10000000;\n}\n.plyr--fullscreen-fallback video {\n height: 100%;\n}\n.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen {\n display: block;\n}\n.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen + svg {\n display: none;\n}\n.plyr--fullscreen-fallback.plyr--hide-controls {\n cursor: none;\n}\n@media (min-width: 1024px) {\n.plyr--fullscreen-fallback .plyr__captions {\n font-size: var(--plyr-font-size-xlarge, 21px);\n}\n}\n.plyr__ads {\n border-radius: inherit;\n bottom: 0;\n cursor: pointer;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -1;\n}\n.plyr__ads > div,\n.plyr__ads > div iframe {\n height: 100%;\n position: absolute;\n width: 100%;\n}\n.plyr__ads::after {\n background: #23282f;\n border-radius: 2px;\n bottom: var(--plyr-control-spacing, 10px);\n color: #fff;\n content: attr(data-badge-text);\n font-size: 11px;\n padding: 2px 6px;\n pointer-events: none;\n position: absolute;\n right: var(--plyr-control-spacing, 10px);\n z-index: 3;\n}\n.plyr__ads:empty::after {\n display: none;\n}\n.plyr__cues {\n background: currentColor;\n display: block;\n height: var(--plyr-range-track-height, 5px);\n left: 0;\n opacity: 0.8;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 3px;\n z-index: 3;\n}\n.plyr__preview-thumb {\n background-color: var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));\n border-radius: var(--plyr-tooltip-radius, 5px);\n bottom: 100%;\n box-shadow: var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));\n margin-bottom: calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);\n opacity: 0;\n padding: 3px;\n pointer-events: none;\n position: absolute;\n transform: translate(0, 10px) scale(0.8);\n transform-origin: 50% 100%;\n transition: transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;\n z-index: 2;\n}\n.plyr__preview-thumb--is-shown {\n opacity: 1;\n transform: translate(0, 0) scale(1);\n}\n.plyr__preview-thumb::before {\n border-left: var(--plyr-tooltip-arrow-size, 4px) solid transparent;\n border-right: var(--plyr-tooltip-arrow-size, 4px) solid transparent;\n border-top: var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));\n bottom: calc(var(--plyr-tooltip-arrow-size, 4px) * -1);\n content: "";\n height: 0;\n left: calc(50% + var(--preview-arrow-offset));\n position: absolute;\n transform: translateX(-50%);\n width: 0;\n z-index: 2;\n}\n.plyr__preview-thumb__image-container {\n background: #c1c8d1;\n border-radius: calc(var(--plyr-tooltip-radius, 5px) - 1px);\n overflow: hidden;\n position: relative;\n z-index: 0;\n}\n.plyr__preview-thumb__image-container img, .plyr__preview-thumb__image-container::after {\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.plyr__preview-thumb__image-container::after {\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);\n content: "";\n pointer-events: none;\n}\n.plyr__preview-thumb__image-container img {\n max-height: none;\n max-width: none;\n}\n.plyr__preview-thumb__time-container {\n background: var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));\n border-bottom-left-radius: calc(var(--plyr-tooltip-radius, 5px) - 1px);\n border-bottom-right-radius: calc(var(--plyr-tooltip-radius, 5px) - 1px);\n bottom: 0;\n left: 0;\n line-height: 1.1;\n padding: 20px 6px 6px;\n position: absolute;\n right: 0;\n z-index: 3;\n}\n.plyr__preview-thumb__time-container span {\n color: #fff;\n font-size: var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));\n}\n.plyr__preview-scrubbing {\n bottom: 0;\n filter: blur(1px);\n height: 100%;\n left: 0;\n margin: auto;\n opacity: 0;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.3s ease;\n width: 100%;\n z-index: 1;\n}\n.plyr__preview-scrubbing--is-shown {\n opacity: 1;\n}\n.plyr__preview-scrubbing img {\n height: 100%;\n left: 0;\n max-height: none;\n max-width: none;\n object-fit: contain;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.plyr--no-transition {\n transition: none !important;\n}\n.plyr__sr-only {\n clip: rect(1px, 1px, 1px, 1px);\n overflow: hidden;\n border: 0 !important;\n height: 1px !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n}\n.plyr [hidden] {\n display: none !important;\n}',""])},function(e,t,n){"use strict";n(79)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-modal {\n position: absolute;\n z-index: 9998;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.35);\n display: block;\n transition: opacity 0.4s ease;\n overflow: auto;\n}\n.fm-modal .modal-xl {\n max-width: 96%;\n}\n.fm-modal-enter-active,\n.fm-modal-leave-active {\n transition: opacity 0.5s;\n}\n.fm-modal-enter,\n.fm-modal-leave-to {\n opacity: 0;\n}",""])},function(e,t,n){"use strict";n(80)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-info-block {\n flex: 0 0 auto;\n padding-top: 0.2rem;\n padding-bottom: 0.4rem;\n border-bottom: 1px solid #6c757d;\n}\n.fm-info-block .progress {\n margin-top: 0.3rem;\n}\n.fm-info-block .text-right > span {\n padding-left: 0.5rem;\n cursor: pointer;\n}",""])},function(e,t,n){"use strict";n(81)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-context-menu {\n position: absolute;\n z-index: 9999999;\n background-color: white;\n box-shadow: 3px 2px 5px gray;\n border-radius: 5px;\n}\n.fm-context-menu:focus {\n outline: none;\n}\n.fm-context-menu .list-unstyled {\n margin-bottom: 0;\n border-bottom: 1px solid rgba(0, 0, 0, 0.125);\n}\n.fm-context-menu ul > li {\n padding: 0.4rem 1rem;\n}\n.fm-context-menu ul > li:not(.disabled) {\n cursor: pointer;\n}\n.fm-context-menu ul > li:not(.disabled):hover {\n background-color: #f8f9fa;\n}\n.fm-context-menu ul > li:not(.disabled) i {\n padding-right: 1.5rem;\n}",""])},function(e,t,n){"use strict";n(82)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm-notification {\n position: absolute;\n right: 1rem;\n bottom: 0;\n z-index: 9999;\n width: 350px;\n display: block;\n transition: opacity 0.4s ease;\n overflow: auto;\n}\n.fm-notification .fm-notification-item {\n padding: 0.75rem 1.25rem;\n margin-bottom: 1rem;\n border: 1px solid;\n border-radius: 0.25rem;\n}\n.fm-notification .notify-enter-active {\n transition: all 0.3s ease;\n}\n.fm-notification .notify-leave-active {\n transition: all 0.8s ease;\n}\n.fm-notification .notify-enter,\n.fm-notification .notify-leave-to {\n opacity: 0;\n}",""])},function(e,t,n){"use strict";n(83)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".fm {\n position: relative;\n height: 100%;\n padding: 1rem;\n background-color: white;\n}\n.fm:-moz-full-screen {\n background-color: white;\n}\n.fm:-webkit-full-screen {\n background-color: white;\n}\n.fm:fullscreen {\n background-color: white;\n}\n.fm .fm-body {\n flex: 1 1 auto;\n position: relative;\n padding-top: 1rem;\n padding-bottom: 1rem;\n border-top: 1px solid #6c757d;\n border-bottom: 1px solid #6c757d;\n}\n.fm .unselectable {\n user-select: none;\n}\n.fm-error {\n color: white;\n background-color: #dc3545;\n border-color: #dc3545;\n}\n.fm-danger {\n color: #dc3545;\n background-color: white;\n border-color: #dc3545;\n}\n.fm-warning {\n color: #ffc107;\n background-color: white;\n border-color: #ffc107;\n}\n.fm-success {\n color: #198754;\n background-color: white;\n border-color: #198754;\n}\n.fm-info {\n color: #0dcaf0;\n background-color: white;\n border-color: #0dcaf0;\n}\n.fm.fm-full-screen {\n width: 100%;\n height: 100%;\n padding-bottom: 0;\n}",""])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(18);const o=Object(r.createElementVNode)("div",null,"Test",-1);var a={computed:{settings:()=>({})}},s=n(3),l=n.n(s);var c=l()(a,[["render",function(e,t,n,i,a,s){const l=Object(r.resolveComponent)("file-manager");return Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,null,[Object(r.createVNode)(l,{settings:s.settings},null,8,["settings"]),o],64)}]]),u={cleanTree(e){e.directories=[],e.counter=1},addDirectories(e,{directories:t,parentId:n}){t.forEach(t=>{t.id=e.counter,t.parentId=n,t.props.subdirectoriesLoaded=!1,t.props.showSubdirectories=!1,e.counter+=1,e.directories.push(t)})},replaceDirectories(e,t){e.directories=t},updateDirectoryProps(e,{index:t,props:n}){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e.directories[t].props[r]=n[r])},addToTempArray(e,t){e.tempIndexArray.push(t)},clearTempArray(e){e.tempIndexArray=[]}},d={findDirectoryIndex:e=>t=>e.directories.findIndex(e=>e.path===t),directories:(e,t,n)=>n.fm.settings.hiddenFiles?e.directories:e.directories.filter(e=>e.basename.match(/^([^.]).*/i))},p=n(12),h={namespaced:!0,state:()=>({directories:[],counter:1,tempIndexArray:[]}),mutations:u,getters:d,actions:{initTree:({state:e,commit:t},n)=>p.a.tree(n,null).then(n=>{"success"===n.data.result.status&&(e.directories&&t("cleanTree"),t("addDirectories",{parentId:0,directories:n.data.directories}))}),addToTree({state:e,commit:t,getters:n},{parentPath:r,newDirectory:i}){if(r){const o=n.findDirectoryIndex(r);-1!==o?(t("addDirectories",{directories:i,parentId:e.directories[o].id}),t("updateDirectoryProps",{index:o,props:{hasSubdirectories:!0,showSubdirectories:!0,subdirectoriesLoaded:!0}})):t("fm/messages/setError",{message:"Directory not found"},{root:!0})}else t("addDirectories",{directories:i,parentId:0})},deleteFromTree({state:e,commit:t,getters:n,dispatch:r},i){i.forEach(i=>{const o=n.findDirectoryIndex(i.path);-1!==o&&(t("addToTempArray",o),e.directories[o].props.hasSubdirectories&&r("subDirsFinder",e.directories[o].id))});const o=e.directories.filter((t,n)=>-1===e.tempIndexArray.indexOf(n)&&t);t("replaceDirectories",o),t("clearTempArray")},subDirsFinder({state:e,commit:t,dispatch:n},r){e.directories.forEach((e,i)=>{e.parentId===r&&(t("addToTempArray",i),e.props.hasSubdirectories&&n("subDirsFinder",e.id))})},getSubdirectories:({commit:e,rootGetters:t},{path:n,parentId:r,parentIndex:i})=>p.a.tree(t["fm/selectedDisk"],n).then(t=>{"success"===t.data.result.status&&(e("addDirectories",{parentId:r,directories:t.data.directories}),e("updateDirectoryProps",{index:i,props:{subdirectoriesLoaded:!0}}))}),showSubdirectories({state:e,commit:t,getters:n,dispatch:r},i){const o=Promise.resolve(),a=n.findDirectoryIndex(i);if(-1!==a){if(!e.directories[a].props.subdirectoriesLoaded)return r("getSubdirectories",{path:e.directories[a].path,parentId:e.directories[a].id,parentIndex:a}).then(()=>{t("updateDirectoryProps",{index:a,props:{showSubdirectories:!0}})});t("updateDirectoryProps",{index:a,props:{showSubdirectories:!0}})}else t("fm/messages/setError",{message:"Directory not found"},{root:!0});return o},hideSubdirectories({commit:e,getters:t},n){const r=t.findDirectoryIndex(n);-1!==r?e("updateDirectoryProps",{index:r,props:{showSubdirectories:!1}}):e("fm/messages/setError",{message:"Directory not found"},{root:!0})},reopenPath({dispatch:e},t){let n=Promise.resolve();if(t){const r=t.split("/");for(let t=0;r.length>t;t+=1)n=n.then(()=>e("showSubdirectories",r.slice(0,t+1).join("/")));return n}return n}}},f={namespaced:!0,state:()=>({showModal:!1,modalName:null,modalBlockHeight:0}),mutations:{setModalState(e,{show:t,modalName:n}){e.showModal=t,e.modalName=n},clearModal(e){e.showModal=!1,e.modalName=null},setModalBlockHeight(e,t){e.modalBlockHeight=t}}};var m={btn:{about:"О программе",back:"Назад",cancel:"Отменить",clear:"Очистить",copy:"Копировать",cut:"Вырезать",delete:"Удалить",edit:"Редактировать",forward:"Вперед",folder:"Новая папка",file:"Новый файл",fullScreen:"На весь экран",grid:"Сетка",paste:"Вставить",refresh:"Обновить",submit:"Отправить",table:"Таблица",upload:"Загрузить",uploadSelect:"Выбрать файлы",hidden:"Скрытые файлы"},clipboard:{actionType:"Тип операции",copy:"Копировать",cut:"Вырезать",none:"Ничего не выбрано",title:"Буфер обмена"},contextMenu:{copy:"Копировать",cut:"Вырезать",delete:"Удалить",download:"Скачать",info:"Выбрано:",open:"Открыть",paste:"Вставить",properties:"Свойства",rename:"Переименовать",select:"Выбрать",view:"Просмотр",zip:"Архивировать",unzip:"Разархивировать",edit:"Редактировать",audioPlay:"Воспроизвести",videoPlay:"Воспроизвести"},info:{directories:"Папок:",files:"Файлов:",selected:"Выбрано:",selectedSize:"Размер:",size:"Размер файлов:"},manager:{table:{date:"Дата",folder:"Папка",name:"Имя",size:"Размер",type:"Тип"}},modal:{about:{developer:"Разработчик",name:"Laravel File Manager",title:"О программе",version:"Версия"},delete:{noSelected:"Ничего не выбрано!",title:"Удалить"},newFile:{fieldName:"Имя файла",fieldFeedback:"Такой файл уже существует!",title:"Создать новый файл"},newFolder:{fieldName:"Имя папки",fieldFeedback:"Такакя папка уже существует!",title:"Создать новую папку"},preview:{title:"Предпросмотр"},properties:{disk:"Диск",modified:"Изменен",name:"Имя",path:"Путь",size:"Размер",title:"Свойства",type:"Тип",url:"URL",access:"Доступ",access_0:"Нет доступа",access_1:"Только чтение",access_2:"Чтение и Запись"},rename:{directoryExist:"Папка существует",fieldName:"Введите новое имя",fieldFeedback:"Некорректное имя",fileExist:"Файл существует",title:"Переименовать"},status:{noErrors:"Ошибок нет!",title:"Состояние"},upload:{ifExist:"Если файл существует:",noSelected:"Ни одного файла не выбрано!",overwrite:"Перезаписать!",selected:"Выбрано:",size:"Размер:",skip:"Пропустить",title:"Загрузить файлы"},editor:{title:"Редактор"},audioPlayer:{title:"Аудиоплеер"},videoPlayer:{title:"Видеоплеер"},zip:{title:"Создать архив",fieldName:"Имя архива",fieldFeedback:"Такой файл уже существует!"},unzip:{title:"Распаковать архив",fieldName:"Имя папки",fieldRadioName:"Извлечь в:",fieldRadio1:"В текущую папку",fieldRadio2:"В новую папку",fieldFeedback:"Папка существует!",warning:"Внимание! При совпадении имен файлы будут перезаписаны!"},cropper:{title:"Обрезка",apply:"Применить",reset:"Сбросить",save:"Сохранить"}},notifications:{cutToClipboard:"Вырезано!",copyToClipboard:"Скопировано!"},response:{noConfig:"Конфигурация не найдена!",notFound:"Не найдено!",diskNotFound:"Диск не найден!",pathNotFound:"Путь не существует!",diskSelected:"Диск выбран!",fileExist:"Файл существует!",fileCreated:"Файл создан!",fileUpdated:"Файл обновлен!",fileNotFound:"Файл не найден!",dirExist:"Директория существует!",dirCreated:"Директория создана!",dirNotFound:"Директория не найдена",uploaded:"Все файлы загружены!",notAllUploaded:"Не все файлы загружены!",delNotFound:"Не все элементы найдены!",deleted:"Удалено!",renamed:"Переименовано!",copied:"Скопировано!",zipError:"Ошибка создания архива!",aclError:"В доступе отказано!"}};var g={btn:{about:"About",back:"Back",cancel:"Cancel",clear:"Clear",copy:"Copy",cut:"Cut",delete:"Delete",edit:"Edit",forward:"Forward",folder:"New folder",file:"New file",fullScreen:"Full screen",grid:"Grid",paste:"Paste",refresh:"Refresh",submit:"Submit",table:"Table",upload:"Upload",uploadSelect:"Select files",hidden:" Hidden files"},clipboard:{actionType:"Type",copy:"Copy",cut:"Cut",none:"Nothing selected",title:"Clipboard"},contextMenu:{copy:"Copy",cut:"Cut",delete:"Delete",download:"Download",info:"Selected:",open:"Open",paste:"Paste",properties:"Properties",rename:"Rename",select:"Select",view:"View",zip:"Zip",unzip:"Unzip",edit:"Edit",audioPlay:"Play",videoPlay:"Play"},info:{directories:"Folders:",files:"Files:",selected:"Selected:",selectedSize:"Files size:",size:"Files size:"},manager:{table:{date:"Date",folder:"Folder",name:"Name",size:"Size",type:"Type"}},modal:{about:{developer:"Developer",name:"Laravel File Manager",title:"About",version:"Version"},delete:{noSelected:"Nothing selected!",title:"Delete"},newFile:{fieldName:"File name",fieldFeedback:"File exists!",title:"Create new file"},newFolder:{fieldName:"Folder name",fieldFeedback:"Folder exists!",title:"Create new folder"},preview:{title:"Preview"},properties:{disk:"Disk",modified:"Modified",name:"Name",path:"Path",size:"Size",title:"Properties",type:"Type",url:"URL",access:"Access",access_0:"Access denied",access_1:"Only Read",access_2:"Read and Write"},rename:{directoryExist:"Directory exists",fieldName:"Enter new name",fieldFeedback:"Invalid name",fileExist:"File exists",title:"Rename"},status:{noErrors:"No errors!",title:"Status"},upload:{ifExist:"If file exist:",noSelected:"No files selected!",overwrite:"Overwrite!",selected:"Selected:",size:"Size:",skip:"Skip",title:"Upload files"},editor:{title:"Editor"},audioPlayer:{title:"Audio player"},videoPlayer:{title:"Video player"},zip:{title:"Create archive",fieldName:"Archive name",fieldFeedback:"Archive exists!"},unzip:{title:"Unpack archive",fieldName:"Folder name",fieldRadioName:"Extract to:",fieldRadio1:"To current folder",fieldRadio2:"In a new folder",fieldFeedback:"Folder exists!",warning:"Attention! If the names match, the files will be overwritten!"},cropper:{title:"Cropping",apply:"Apply",reset:"Reset",save:"Save"}},notifications:{cutToClipboard:"Cut to clipboard!",copyToClipboard:"Copied to clipboard!"},response:{noConfig:"Config not found!",notFound:"Not found!",diskNotFound:"Disk not found!",pathNotFound:"Path not found!",diskSelected:"Disk selected!",fileExist:"File already exists!",fileCreated:"File created!",fileUpdated:"File updated!",fileNotFound:"File not found!",dirExist:"Directory already exists!",dirCreated:"Directory created!",dirNotFound:"Directory not found",uploaded:"All files uploaded!",notAllUploaded:"Some files weren't uploaded!",delNotFound:"Some items weren't founded!",deleted:"Deleted!",renamed:"Renamed!",copied:"Copied successfully!",zipError:"Error creating archive!",aclError:"Access denied!"}};var b={btn:{about:"حول",back:"رجوع",cancel:"الغاء",clear:"مسح",copy:"نسخ",cut:"قص",delete:"حذف",edit:"تعديل",forward:"الى الامام",folder:"مجلد جديد",file:"ملف جديد",fullScreen:"ملء الشاشة",grid:"شبكة",paste:"لصق",refresh:"تحديث",submit:"ارسال",table:"جدول",upload:"رفع",uploadSelect:"اختر الملفات",hidden:"الملفات المخفية"},clipboard:{actionType:"نوع",copy:"نسخ",cut:"قص",none:"لا شيء محدد",title:"ذاكرة النصوص"},contextMenu:{copy:"نسخ",cut:"قص",delete:"حذف",download:"تحميل",info:"اختير:",open:"فتح",paste:"لصق",properties:"الخصائص",rename:"اعادة تسمية",select:"اختيار",view:"عرض",zip:"ضغط",unzip:"أستخراج",edit:"تعديل",audioPlay:"تشغيل",videoPlay:"تشغيل"},info:{directories:"المجلدات:",files:"الملفات:",selected:"أختيرت:",selectedSize:"حجم الملفات:",size:"حجم الملفات:"},manager:{table:{date:"تأريخ",folder:"مجلد",name:"أسم",size:"حجم",type:"نوع"}},modal:{about:{developer:"مطور",name:"Laravel File Manager",title:"حول",version:"الإصدار"},delete:{noSelected:"لا شيء محدد!",title:"حذف"},newFile:{fieldName:"أسم الملف",fieldFeedback:"الملف موجود!",title:"أنشاء ملف جديد"},newFolder:{fieldName:"أسم المجلد",fieldFeedback:"المجلد موجود!",title:"انشاء مجلد جديد"},preview:{title:"عرض"},properties:{disk:"قرص",modified:"تم التعديل",name:"أسم",path:"مسار",size:"حجم",title:"خصائص",type:"نوع",url:"رابط",access:"التمكن من",access_0:"تم الرفض",access_1:"قراءة فقط",access_2:"اقرا و اكتب"},rename:{directoryExist:"المجلد موجود",fieldName:"ادخال اسم جديد",fieldFeedback:"اسم خاطئ",fileExist:"الملف موجود",title:"اعادة تسمية"},status:{noErrors:"لايوجد خطأ!",title:"الحالة"},upload:{ifExist:"اذا الملف موجود:",noSelected:"لا توجد ملفات مختارة!",overwrite:"اعادة الكتابة!",selected:"المختارة:",size:"الحجم:",skip:"تخطي",title:"رفع الملفات"},editor:{title:"محرر"},audioPlayer:{title:"مشغل الاصوات"},videoPlayer:{title:"مشغل الفيديو"},zip:{title:"أنشاء أرشيف",fieldName:"أسم الارشيف",fieldFeedback:"الارشيف موجود!"},unzip:{title:"فك الارشيف",fieldName:"أسم المجلد",fieldRadioName:"أستخراج الى:",fieldRadio1:"الى المجلد الحالي",fieldRadio2:"في مجلد جديد",fieldFeedback:"المجلد موجود!",warning:"تحذير! اذا تشابهت الاسماء, سيتم استبدال الملفات!"},cropper:{title:"قص",apply:"تطبيق",reset:"اعادة تعين",save:"حفظ"}},notifications:{cutToClipboard:"قص إلى الحافظة!",copyToClipboard:"نسخ إلى الحافظة!"},response:{noConfig:"الاعدادت غير متوفرة!",notFound:"غير متوفر!",diskNotFound:"القرص غير موجود!",pathNotFound:"مسار غير موجود!",diskSelected:"تم اختيار القرص!",fileExist:"الملف موجود بالفعل!",fileCreated:"تم إنشاء الملف!",fileUpdated:"تم تحديث الملف!",fileNotFound:"الملف غير موجود!",dirExist:"المجلد موجود بالفعل!",dirCreated:"تم أنشاء المجلد!",dirNotFound:"المجلد غير موجود",uploaded:"تم تحديث كل الملفات!",notAllUploaded:"بعض الملفات غير المحملة!",delNotFound:"بعض الملفات غير موجودة! تحديث!",deleted:"تم الحذف!",renamed:"أعيدت تسميتها!",copied:"تم النسخ بنجاح!",zipError:"خطأ في إنشاء الأرشيف!",aclError:"تم الرفض!"}};var v={btn:{about:"O Nama",back:"Nazad",cancel:"Otkaži",clear:"Očisti",copy:"Kopiraj",cut:"Iseci",delete:"Obriši",edit:"Izmeni",forward:"Napred",folder:"Novi direktorijum",file:"Nova datoteka",fullScreen:"Ceo ekran",grid:"Mrežasti prikaz",paste:"Nalepi",refresh:"Osveži",submit:"Potvrdi",table:"Tabela",upload:"Upload",uploadSelect:"Izaberi datoteke",hidden:" Skrivene datoteke"},clipboard:{actionType:"Tip operacije",copy:"Kopiraj",cut:"Iseci",none:"Ništa niste izabrali!",title:"Clipboard"},contextMenu:{copy:"Kopiraj",cut:"Iseci",delete:"Obriši",download:"Preuzimanje",info:"Izabrano:",open:"Otvori",paste:"Nalepi",properties:"Svojstva",rename:"Preimenuj",select:"Izaberi",view:"Pregledaj",zip:"Arhiviraj",unzip:"Izbaci iz arhive",edit:"Izmeni",audioPlay:"Reprodukuj",videoPlay:"Reprodukuj"},info:{directories:"Direktorijumi:",files:"Datoteke:",selected:"Izabrano:",selectedSize:"Veličina fajla:",size:"Veličina fajla:"},manager:{table:{date:"Datum",folder:"Datoteka",name:"Naziv",size:"Veličina",type:"Vrsta"}},modal:{about:{developer:"Razvio",name:"Laravel File Manager",title:"O Nama",version:"Verzija"},delete:{noSelected:"Ništa niste izabrali!",title:"Obriši"},newFile:{fieldName:"Naziv datoteke",fieldFeedback:"Datoteka već postoji!",title:"Kreiraj novu datoteku"},newFolder:{fieldName:"Naziv direktorijuma",fieldFeedback:"Direktorijum već postoji!",title:"Kreiraj novi direktorijum"},preview:{title:"Pregled"},properties:{disk:"Disk",modified:"Izmenjen",name:"Naziv",path:"Lokacija",size:"Veličina",title:"Svojstva",type:"Tip datoteke",url:"URL",access:"Pristup",access_0:"Pristup odbijen",access_1:"Samo za čitanje",access_2:"Pristup za čitanje i pisanje"},rename:{directoryExist:"Direktorijum postoji",fieldName:"Unesite novi naziv",fieldFeedback:"Neispravan naziv",fileExist:"Datoteka već postoji",title:"Preimenuj"},status:{noErrors:"Nema Grešaka!",title:"Status"},upload:{ifExist:"Ako datoteka postoji:",noSelected:"Nema izabranih fajlova!",overwrite:"Zameni!",selected:"Izabrano:",size:"Veličina:",skip:"Preskoči",title:"DOdaj fajlove"},editor:{title:"Editor"},audioPlayer:{title:"Audio plejer"},videoPlayer:{title:"Video plejer"},zip:{title:"Napravi arhivu",fieldName:"Naziv Arhive",fieldFeedback:"Arhiva Postoji!"},unzip:{title:"Otpakuj arhivu",fieldName:"Naziv direktorijuma",fieldRadioName:"Otpakuj u:",fieldRadio1:"U aktivni direktorijum",fieldRadio2:"U novi direktorijum",fieldFeedback:"Direktorijum Postoji!",warning:"Pažnja! Ako se nazivi poklapaju, datoteke će biti prepisane!"},cropper:{title:"Orezivanje",apply:"Primeni",reset:"Resetuj",save:"Sačuvaj"}},notifications:{cutToClipboard:"Isečeno u klipbord!",copyToClipboard:"Kopirano u klipbord!"},response:{noConfig:"Nema konfiguracije!",notFound:"Nije pronađeno!",diskNotFound:"Disk nije pronađen!",pathNotFound:"Putanja nije pronađena!",diskSelected:"Disk izabran!",fileExist:"Datoteka već postoji!",fileCreated:"Nova datoteka napravljena!",fileUpdated:"Datoteka izmenjena!",fileNotFound:"Datoteka nije pronadjena!",dirExist:"Direktorijum već postoji!",dirCreated:"Novi direktorijum napravljen!",dirNotFound:"Direktorijum nije pronađen",uploaded:"Sve datoteke poslate!",notAllUploaded:"Some files weren't uploaded!",delNotFound:"Nekoliko stavki nije pronađeno! Osvežite!",deleted:"Obrisano!",renamed:"Preimenovano!",copied:"Uspešno kopirano!",zipError:"Greška u pravljenju arhive!",aclError:"Pristup odbijen!"}};var y={btn:{about:"O aplikaci",back:"Zpět",cancel:"Zrušit",clear:"Vymazat",copy:"Kopírovat",cut:"Vyjmout",delete:"Smazat",edit:"Upravit",forward:"Vpřed",folder:"Nová složka",file:"Nový soubor",fullScreen:"Celá obrazovka",grid:"Mřížka",paste:"Vložit",refresh:"Obnovit",submit:"Odeslat",table:"Tabulka",upload:"Nahrát",uploadSelect:"Vybrat soubory",hidden:" Skryté soubory"},clipboard:{actionType:"Typ",copy:"Kopírovat",cut:"Vyjmout",none:"Nic nevybráno",title:"Schránka"},contextMenu:{copy:"Kopírovat",cut:"Vyjmout",delete:"Smazat",download:"Stáhnout",info:"Vybráno:",open:"Otevřit",paste:"Vložit",properties:"Vlastnosti",rename:"Přejmenovat",select:"Vybrat",view:"Zobrazit",zip:"Zabalit (Zip)",unzip:"Rozbalit (Zip)",edit:"Upravit",audioPlay:"Přehrát",videoPlay:"Přehrát"},info:{directories:"Složky:",files:"Soubory:",selected:"Vybráno:",selectedSize:"Velikost souborů:",size:"Velikost souborů:"},manager:{table:{date:"Změněno",folder:"Složka",name:"Název",size:"Velikost",type:"Typ"}},modal:{about:{developer:"Vývojář",name:"Laravel File Manager",title:"O aplikaci",version:"Verze"},delete:{noSelected:"Nic nevybráno!",title:"Smazat"},newFile:{fieldName:"Název souboru",fieldFeedback:"Soubor již existuje!",title:"Vytvořit nový soubor"},newFolder:{fieldName:"Název složky",fieldFeedback:"Složka již existuje!",title:"Vytvořit novou složku"},preview:{title:"Náhled"},properties:{disk:"Disk",modified:"Změněno",name:"Název",path:"Cesta",size:"Velikost",title:"Vlastnosti",type:"Typ",url:"URL",access:"Přístup",access_0:"Přístup odepřen",access_1:"Pouze ke čtení",access_2:"Čtení a zápis"},rename:{directoryExist:"Složka již existuje",fieldName:"Vložte nové jméno",fieldFeedback:"Neplatné jméno",fileExist:"Soubor již existuje",title:"Přejmenovat"},status:{noErrors:"Žádná chyba!",title:"Stav"},upload:{ifExist:"Pokud soubor již existuje:",noSelected:"Nevybrány žádné soubory!",overwrite:"Přepsat!",selected:"Vybráno:",size:"Velikost:",skip:"Přeskočit",title:"Nahrát soubory"},editor:{title:"Editor"},audioPlayer:{title:"Audio přehrávač"},videoPlayer:{title:"Video přehrávač"},zip:{title:"Vytvořit archiv",fieldName:"Název archivu",fieldFeedback:"Archiv již existuje!"},unzip:{title:"Rozbalit archiv",fieldName:"Název složky",fieldRadioName:"Rozbalit do:",fieldRadio1:"Do aktuální složky",fieldRadio2:"Do nové složky",fieldFeedback:"Složka již existuje!",warning:"Pozor! Pokud se jména shodují, budou soubory přepsány!"},cropper:{title:"Oříznutí",apply:"Aplikovat",reset:"Obnovit",save:"Uložit"}},notifications:{cutToClipboard:"Vyjmuto do schránky!",copyToClipboard:"Zkopírováno do schránky!"},response:{noConfig:"Konfigurace nebyla nalezena!",notFound:"Nenalezeno!",diskNotFound:"Disk nebyla nalezen!",pathNotFound:"Cesta nebyla nalezena!",diskSelected:"Disk byl vybrán!",fileExist:"Soubor již existuje!",fileCreated:"Soubor byl vytvořen!",fileUpdated:"Soubor byl aktualizován!",fileNotFound:"Soubor nebyl nalezen!",dirExist:"Složka již existuje!",dirCreated:"Složka byla vytvořena!",dirNotFound:"Složka nebyla nalezena",uploaded:"Všechny soubory byly nahrány!",notAllUploaded:"Některé soubory nebyly nahrány!",delNotFound:"Některé položky nebyly nalezeny!",deleted:"Smazáno!",renamed:"Přejmenováno!",copied:"Úspěšně zkopírováno!",zipError:"Chyba při vytváření archivu!",aclError:"Přístup odepřen!"}};var x={btn:{about:"Über",back:"Zurück",cancel:"Abbrechen",clear:"Leeren",copy:"Kopieren",cut:"Ausschneiden",delete:"Löschen",edit:"Bearbeiten",forward:"Weiter",folder:"Neuer Order",file:"Neue Datei",fullScreen:"Vollbildschirm",grid:"Raster",paste:"Einfügen",refresh:"Neu laden",submit:"Bestätigen",table:"Detailansicht",upload:"Hochladen",uploadSelect:"Auswählen",hidden:" Versteckte Dateien"},clipboard:{actionType:"Type",copy:"Kopieren",cut:"Ausschneiden",none:"Nichts ausgewählt",title:"Zwischenablage"},contextMenu:{copy:"Kopieren",cut:"Ausschneiden",delete:"Löschen",download:"Herunterladen",info:"Ausgewählt:",open:"Öffnen",paste:"Einfügen",properties:"Einstellungen",rename:"Umbenennen",select:"Wählen",view:"Vorschau",zip:"Zip",unzip:"Unzip",edit:"Bearbeiten",audioPlay:"Abspielen",videoPlay:"Abspielen"},info:{directories:"Ordner:",files:"Dateien:",selected:"Ausgewählt:",selectedSize:"Dateigröße:",size:"Dateigröße:"},manager:{table:{date:"Datum",folder:"Ordner",name:"Name",size:"Größe",type:"Type"}},modal:{about:{developer:"Entwickler",name:"Laravel File Manager",title:"Über",version:"Version"},delete:{noSelected:"Nichts ausgewählt!",title:"Löschen"},newFile:{fieldName:"Dateiname",fieldFeedback:"Datei existiert!",title:"Neue Datei erstellen"},newFolder:{fieldName:"Ordnername",fieldFeedback:"Ordner existiert!",title:"Neuen Ordner erstellen"},preview:{title:"Vorschau"},properties:{disk:"Festplatte",modified:"Geändert",name:"Name",path:"Pfad",size:"Größe",title:"Eigenschaften",type:"Type",url:"URL",access:"Zugang",access_0:"Zugriff verweigert",access_1:"Nur Lesezugriff",access_2:"Lesen- und Schreibenzugriff"},rename:{directoryExist:"Verzeichnis ist vorhanden",fieldName:"Neuen Namen eingeben",fieldFeedback:"Ungültiger Name",fileExist:"Datei ist vorhanden",title:"Umbenennen"},status:{noErrors:"Keine Fehler!",title:"Status"},upload:{ifExist:"Datei existiert:",noSelected:"Keine Dateien selektiert!",overwrite:"Überschreiben!",selected:"Ausgewählt:",size:"Größe:",skip:"Überspringen",title:"Hochladen von Dateien"},editor:{title:"Editor"},audioPlayer:{title:"Audio-Player"},videoPlayer:{title:"Video-Player"},zip:{title:"Archiv erzeugen",fieldName:"Archiv Name",fieldFeedback:"Archiv existiert!"},unzip:{title:"Archiv entpacken",fieldName:"Ordnername",fieldRadioName:"Extrahieren in:",fieldRadio1:"Zum aktuellen Verzeichnis",fieldRadio2:"In einem neuen Ordner",fieldFeedback:"Ordner ist vorhanden!",warning:"Achtung! Wenn die Namen übereinstimmen, werden die Dateien überschrieben!"},cropper:{title:"Beschneiden",apply:"Übernehmen",reset:"Zurücksetzen",save:"Speichern"}},notifications:{cutToClipboard:"Ausgeschnitten in die Zwischenablage!",copyToClipboard:"Kopiert in die Zwischenablage!"},response:{noConfig:"Konfiguration nicht gefunden!",notFound:"Nicht gefunden!",diskNotFound:"Festplatte nicht gefunden!",pathNotFound:"Pfad nicht gefunden!",diskSelected:"Festplatte ausgewählt!",fileExist:"Datei existiert bereits!",fileCreated:"Datei erstellt!",fileUpdated:"Datei wurde aktualisiert!",fileNotFound:"Datei nicht gefunden!",dirExist:"Ordner existiert bereits!",dirCreated:"Ordner angelegt!",dirNotFound:"Ordner nicht gefunden",uploaded:"Alle Dateien wurden hochgeladen!",notAllUploaded:"Einige Dateien wurden nicht hochgeladen!",delNotFound:"Einige Dateien wurden nicht gefunden!",deleted:"Gelöscht!",renamed:"Umbenannt!",copied:"Erfolgreich kopiert!",zipError:"Fehler bei der Erstellung des Archivs!",aclError:"Zugriff verweigert!"}};var w={btn:{about:"Acerca de",back:"Atras",cancel:"Cancelar",clear:"Limpiar",copy:"Copiar",cut:"Cortar",delete:"Eliminar",edit:"Editar",forward:"Siguiente",folder:"Nueva carpeta",file:"Crear archivo",fullScreen:"Pantalla completa",grid:"Cuadrícula",paste:"Pegar",refresh:"Actualizar",submit:"Guardar",table:"Tabla",upload:"Subir",uploadSelect:"Seleccionar archivos",hidden:" Archivos ocultos"},clipboard:{actionType:"Tipo",copy:"Copiar",cut:"Cortar",none:"Nada seleccionado",title:"Portapapeles"},contextMenu:{copy:"Copiar",cut:"Cortar",delete:"Eliminar",download:"Descargar",info:"Seleccionar:",open:"Abrir",paste:"Pegar",properties:"Propiedades",rename:"Renombrar",select:"Seleccionar",view:"Vista",zip:"Zip",unzip:"Unzip",edit:"Editar",audioPlay:"Play",videoPlay:"Play"},info:{directories:"Carpetas:",files:"Archivos:",selected:"Seleccionar:",selectedSize:"Tamaño archivos:",size:"Tamaño archivos:"},manager:{table:{date:"Fecha",folder:"Carpeta",name:"Nombre",size:"Tamaño",type:"Tipo"}},modal:{about:{developer:"Developer",name:"Laravel File Manager",title:"About",version:"Version"},delete:{noSelected:"Nada seleccionado",title:"Eliminar"},newFile:{fieldName:"Nombre del archivo",fieldFeedback:"El archivo ya existe",title:"Crear nuevo archivo"},newFolder:{fieldName:"Nombre de la carpeta",fieldFeedback:"La carpeta ya existe",title:"Crear nueva carpeta"},preview:{title:"Preview"},properties:{disk:"Disk",modified:"Modificado",name:"Nombre",path:"Path",size:"Tamaño",title:"Propiedades",type:"Tipo",url:"URL",access:"Acceso",access_0:"Access denied",access_1:"Only Read",access_2:"Read and Write"},rename:{directoryExist:"Ya existe el directorio",fieldName:"Nuevo nombre",fieldFeedback:"Nombre invalido",fileExist:"Ya existe el archivo",title:"Renombrar"},status:{noErrors:"No errors!",title:"Status"},upload:{ifExist:"Si el archivo ya existe:",noSelected:"No has seleccionado nada!",overwrite:"Sobreescribir",selected:"Seleccionar:",size:"Size:",skip:"Omitir",title:"Subir archivos"},editor:{title:"Editor"},audioPlayer:{title:"Audio player"},videoPlayer:{title:"Video player"},zip:{title:"Crear archivo",fieldName:"Nombre del archivo",fieldFeedback:"Ya existe!"},unzip:{title:"Descomprimir",fieldName:"Nombre del directorio",fieldRadioName:"Extraer en:",fieldRadio1:"Carpeta actual",fieldRadio2:"Nueva carpeta",fieldFeedback:"Carpeta existente!",warning:"Attention! If the names match, the files will be overwritten!"},cropper:{title:"Cropping",apply:"Aceptar",reset:"Reset",save:"Guardar"}},notifications:{cutToClipboard:"Copiado!",copyToClipboard:"Copiado!"},response:{noConfig:"Configuración no encontrada!",notFound:"Extraviado!",diskNotFound:"Disco no encontrado!",pathNotFound:"Camino no encontrado!",diskSelected:"Disco seleccionado!",fileExist:"El archivo ya existe!",fileCreated:"Archivo creado!",fileUpdated:"Archivo actualizado!",fileNotFound:"Archivo no encontrado!",dirExist:"El directorio ya existe!",dirCreated:"Directorio creado!",dirNotFound:"Directorio no encontrado",uploaded:"Todos los archivos cargados!",notAllUploaded:"Algunos archivos no fueron subidos!",delNotFound:"Algunos artículos no fueron encontrados!",deleted:"Eliminado!",renamed:"Renombrado!",copied:"Copiado exitosamente!",zipError:"Error al crear archivo!",aclError:"Acceso denegado!"}};var k={btn:{about:"Over",back:"Terug",cancel:"Annuleren",clear:"Legen",copy:"Kopiëren",cut:"Knippen",delete:"Verwijderen",edit:"Bewerken",forward:"Volgende",folder:"Nieuwe map",file:"Nieuw bestand",fullScreen:"Volledig scherm",grid:"Raster",paste:"Plakken",refresh:"Ververs",submit:"Indienen",table:"Tabel",upload:"Uploaden",uploadSelect:"Selecteer bestanden",hidden:" Verborgen bestanden"},clipboard:{actionType:"Type",copy:"Kopiëren",cut:"Knippen",none:"Niks geselecteerd",title:"Klembord"},contextMenu:{copy:"Kopiëren",cut:"Knippen",delete:"Verwijderen",download:"Download",info:"Geselecteerd:",open:"Open",paste:"Plak",properties:"Eigenschappen",rename:"Hernoem",select:"Selecteerd",view:"Bekijken",zip:"Inpakken",unzip:"Uitpakken",edit:"Bewerken",audioPlay:"Afspelen",videoPlay:"Afspelen"},info:{directories:"Mappen:",files:"Bestanden:",selected:"Geselecteerd:",selectedSize:"Bestand grootte:",size:"Bestand grootte:"},manager:{table:{date:"Datum",folder:"Map",name:"Naam",size:"Grootte",type:"Type"}},modal:{about:{developer:"Ontwikkelaar",name:"Laravel File Manager",title:"Over",version:"Versie"},delete:{noSelected:"Niks geselecteerd!",title:"Verwijderen"},newFile:{fieldName:"Bestandsnaam",fieldFeedback:"Bestand bestaat!",title:"Nieuw bestand maken"},newFolder:{fieldName:"Mapnaam",fieldFeedback:"Map bestaat!",title:"Nieuwe map maken"},preview:{title:"Voorbeeld"},properties:{disk:"Schijf",modified:"Bewerkt",name:"Naam",path:"Pad",size:"Grootte",title:"EigenSchappen",type:"Type",url:"URL",access:"Toegang",access_0:"Geen toegang",access_1:"Alleen Lezen",access_2:"Lezen en Schrijven"},rename:{directoryExist:"Bestand bestaat",fieldName:"Nieuwe naam invoeren",fieldFeedback:"Ongeldige naam",fileExist:"Bestand bestaat",title:"Hernoemen"},status:{noErrors:"Geen errors!",title:"Status"},upload:{ifExist:"Als het bestand bestaat:",noSelected:"Geen bestanden geselecteerd!",overwrite:"Overschrijven!",selected:"Geselecteerd:",size:"Grootte:",skip:"Overslaan",title:"Bestanden uploaden"},editor:{title:"Bewerker"},audioPlayer:{title:"Audiospeler"},videoPlayer:{title:"Videospeler"},zip:{title:"Archief maken",fieldName:"Archief naam",fieldFeedback:"Archief bestaat!"},unzip:{title:"Archief uitpakken",fieldName:"Mapnaam",fieldRadioName:"Uitpakken naar:",fieldRadio1:"Naar huidige map",fieldRadio2:"In een nieuwe map",fieldFeedback:"Map bestaat!",warning:"Attentie! Als bestandsnamen hetzelfde zijn worden de bestanden overschreven!"},cropper:{title:"Bijsnijden",apply:"Toepassen",reset:"Resetten",save:"Opslaan"}},notifications:{cutToClipboard:"Knippen naar klembord!",copyToClipboard:"Kopiëren naar klembord!"},response:{noConfig:"Configuratie niet gevonden!",notFound:"Niet gevonden!",diskNotFound:"Schijf niet gevonden!",pathNotFound:"Pad niet gevonden!",diskSelected:"Schijf geselecteerd!",fileExist:"Bestand bestaat al!",fileCreated:"Bestand aangemaakt!",fileUpdated:"Bestand bijgewerkt!",fileNotFound:"Bestand niet gevonden!",dirExist:"Map bestaat al!",dirCreated:"Map aangemaakt!",dirNotFound:"Map niet gevonden",uploaded:"Alle bestanden zijn geüpload!",notAllUploaded:"Sommige bestanden zijn niet geüpload!",delNotFound:"Sommige bestanden konden niet worden gevonden!",deleted:"Verwijderd!",renamed:"Hernoemd!",copied:"Succesvol gekopieerd!",zipError:"Fout bij het maken van archief!",aclError:"Toegang geweigerd!"}};var _={btn:{about:"关于",back:"返回",cancel:"取消",clear:"清除",copy:"复制",cut:"剪切",delete:"删除",edit:"编辑",forward:"前进",folder:"创建目录",file:"创建文件",fullScreen:"全屏",grid:"网格",paste:"粘贴",refresh:"刷新",submit:"提交",table:"表格",upload:"上传",uploadSelect:"选择文件",hidden:" 隐藏文件"},clipboard:{actionType:"类型",copy:"复制",cut:"剪切",none:"未选中文件",title:"剪切板"},contextMenu:{copy:"复制",cut:"剪切",delete:"删除",download:"下载",info:"选择:",open:"打开",paste:"粘贴",properties:"属性",rename:"重命名",select:"选择",view:"查看",zip:"压缩",unzip:"解压",edit:"编辑",audioPlay:"播放",videoPlay:"播放"},info:{directories:"目录:",files:"文件:",selected:"已选择:",selectedSize:"已选择文件大小:",size:"文件大小:"},manager:{table:{date:"日期",folder:"目录",name:"名称",size:"大小",type:"类型"}},modal:{about:{developer:"开发者信息",name:"文件管理页",title:"关于",version:"版本"},delete:{noSelected:"暂无选中!",title:"删除"},newFile:{fieldName:"文件名",fieldFeedback:"文件已存在!",title:"创建文件"},newFolder:{fieldName:"目录名",fieldFeedback:"目录已存在!",title:"创建目录"},preview:{title:"预览"},properties:{disk:"模块",modified:"时间",name:"名称",path:"路径",size:"大小",title:"属性",type:"类型",url:"网址",access:"授权",access_0:"禁止访问",access_1:"只读",access_2:"读写"},rename:{directoryExist:"目录存在",fieldName:"输入名称",fieldFeedback:"名称不可用",fileExist:"文件存在",title:"重命名"},status:{noErrors:"暂无错误!",title:"状态"},upload:{ifExist:"如果文件存在:",noSelected:"暂无选中!",overwrite:"覆盖",selected:"已选择:",size:"大小:",skip:"忽略",title:"上传文件"},editor:{title:"编辑"},audioPlayer:{title:"播放音频"},videoPlayer:{title:"播放视频"},zip:{title:"归档文件",fieldName:"归档名称",fieldFeedback:"文件存在!"},unzip:{title:"解压",fieldName:"目录名称",fieldRadioName:"解压到:",fieldRadio1:"当前目录",fieldRadio2:"输入目录",fieldFeedback:"目录存在!",warning:"注意!如果文件存在将会被覆盖!"},cropper:{title:"裁剪",apply:"应用",reset:"重置",save:"保存"}},notifications:{cutToClipboard:"剪切到粘贴板!",copyToClipboard:"复制到粘贴板!"},response:{noConfig:"Config not found!",notFound:"Not found!",diskNotFound:"Disk not found!",pathNotFound:"Path not found!",diskSelected:"Disk selected!",fileExist:"File already exists!",fileCreated:"File created!",fileUpdated:"File updated!",fileNotFound:"File not found!",dirExist:"Directory already exists!",dirCreated:"Directory created!",dirNotFound:"Directory not found",uploaded:"All files uploaded!",notAllUploaded:"Some files weren't uploaded!",delNotFound:"Some items weren't founded!",deleted:"Deleted!",renamed:"Renamed!",copied:"Copied successfully!",zipError:"Error creating archive!",aclError:"Access denied!"}};var C={btn:{about:"درباره",back:"عقب",cancel:"لغو",clear:"پاک کردن",copy:"رونوشت",cut:"برش",delete:"حذف",edit:"ویرایش",forward:"ارسال به دیگری",folder:"پوشه جدید",file:"فایل جدید",fullScreen:"تمام صفحه",grid:"شبکه",paste:"جانمایی/چسباندن/جاگذاری",refresh:"تازه کردن صفحه",submit:"تایید و ارسال",table:"جدول",upload:"بارگذاری",uploadSelect:"انتخاب فایل",hidden:" فایل های مخفی"},clipboard:{actionType:"نوع",copy:"رونوشت",cut:"برش",none:"چیزی انتخاب نشده است",title:"کلیپ بورد"},contextMenu:{copy:"رونوشت",cut:"برش",delete:"حذف",download:"دانلود",info:"انتخاب شده:",open:"باز کردن",paste:"جاگذاری",properties:"ویژگی ها",rename:"تغییر نام",select:"انتخاب",view:"مشاهده",zip:"فشرده کردن",unzip:"از حالت فشرده خارج کردن",edit:"ویرایش",audioPlay:"پخش",videoPlay:"نمایش"},info:{directories:"پوشه ها:",files:"فایل ها:",selected:"انتخاب شده ها:",selectedSize:"اندازه فایل ها:",size:"اندازه فایل ها:"},manager:{table:{date:"تاریخ",folder:"پوشه",name:"نام",size:"اندازه",type:"نوع"}},modal:{about:{developer:"توسعه دهنده",name:"مدیریت فایل",title:"درباره",version:"نسخه"},delete:{noSelected:"چیزی انتخاب نشده است",title:"حذف"},newFile:{fieldName:"نام فایل",fieldFeedback:"فایل وجود دارد!",title:"فایل جدید ایجاد کنید"},newFolder:{fieldName:"نام پوشه",fieldFeedback:"پوشه وجود دارد!",title:"پوشه جدید ایجاد کنید"},preview:{title:"پیش نمایش"},properties:{disk:"Disk",modified:"اصلاح شده",name:"نام",path:"مسیر",size:"اندازه",title:"ویژگی ها",type:"نوع",url:"آدرس اینترنتی",access:"دسترسی",access_0:"دسترسی امکان پذیر نیست",access_1:"فقط خواندن",access_2:"خواندن و نوشتن"},rename:{directoryExist:"فهرست وجود دارد",fieldName:"نام جدید را وارد نمایید",fieldFeedback:"نام نامعتبر است",fileExist:"فایل وجود دارد",title:"تغییر نام"},status:{noErrors:"خطایی وجود ندارد!",title:"وضعیت"},upload:{ifExist:"اگر فایل وجود دارد:",noSelected:"هیچ فایلی انتخاب نشده است!",overwrite:"بازنویسی!",selected:"انتخاب شده ها/انتخاب شده است:",size:"اندازه:",skip:"رد شدن",title:"بارگزاری فایل ها"},editor:{title:"ویرایشگر"},audioPlayer:{title:"پخش کننده فایل صوتی"},videoPlayer:{title:"نمایش دهنده ویدیو"},zip:{title:"ایجاد بایگانی",fieldName:"نام بایگانی",fieldFeedback:"بایگانی وجود دارد"},unzip:{title:"باز کردن بایگانی",fieldName:"نام پوشه",fieldRadioName:"استخراج شود به:",fieldRadio1:"به پوشه فعلی",fieldRadio2:"در یک پوشه جدید",fieldFeedback:"پوشه وجود دارد!",warning:"توجه! اگر نام ها تکراری باشند، فایل های قدیمی با فایل های جدید جایگزین خواهند شد"},cropper:{title:"کوچک کردن",apply:"اجرا",reset:"تنظیم مجدد",save:"ذخیره"}},notifications:{cutToClipboard:"برش یه کلیپ بورد!",copyToClipboard:"رونوشت به کلیپ بورد!"},response:{noConfig:"پیکربندی یافت نشد",notFound:"یافت نشد",diskNotFound:"دیسک یافت نشد !",pathNotFound:"مسیر یافت نشد!",diskSelected:"دیسک انتخاب شد !",fileExist:" در حال حاضر فایل مورد نظر وجود دارد!",fileCreated:"فایل ایجاد شد!",fileUpdated:"فایل بروزرسانی شد!",fileNotFound:"فایل یافت نشد!",dirExist:"در حال حاضر پیکربندی مورد نظر وجود دارد!",dirCreated:"پیکربندی ایجاد شد!",dirNotFound:"پیکربندی یافت نشد",uploaded:"همه فایل ها بارگذاری شده اند!",notAllUploaded:"برخی از فایل ها بارگذاری نشده اند!",delNotFound:"برخی از بخش ها یافت نشد!",deleted:"حذف شد!",renamed:"تغییر نام یافت!",copied:"رونوشت با موفقیت انجام شد!",zipError:"خطای ایجاد بایگانی! zip",aclError:"دسترسی امکان پذیر نیست!"}};var S={btn:{about:"Informazioni",back:"Indietro",cancel:"Annulla",clear:"Pulisci",copy:"Copia",cut:"Taglia",delete:"Elimina",edit:"Modifica",forward:"Inoltra",folder:"Nuova Cartella",file:"Nuovo File",fullScreen:"Visualizzazione a schermo intero",grid:"Griglia",paste:"Incolla",refresh:"Ricarica",submit:"Conferma",table:"Tabella",upload:"Upload",uploadSelect:"Seleziona files",hidden:" Files Nascosti"},clipboard:{actionType:"Tipo",copy:"Copia",cut:"Taglia",none:"Nessun elemento selezionato",title:"Appunti"},contextMenu:{copy:"Copia",cut:"Taglia",delete:"Elimina",download:"Scarica",info:"Selezionati:",open:"Apri",paste:"Incolla",properties:"Proprietà",rename:"Rinomina",select:"Seleziona",view:"Anteprima",zip:"Zip",unzip:"Estrai zip",edit:"Modifica",audioPlay:"Play",videoPlay:"Play"},info:{directories:"Cartelle:",files:"Files:",selected:"Selezionati:",selectedSize:"Dimensione files:",size:"Dimensione files:"},manager:{table:{date:"Data",folder:"Cartella",name:"Nome",size:"Dim.",type:"Tipo"}},modal:{about:{developer:"Developer",name:"Laravel File Manager",title:"Informazioni",version:"Versione"},delete:{noSelected:"Nessuna selezione!",title:"Elimina"},newFile:{fieldName:"Nome del file",fieldFeedback:"Il file esiste!",title:"Crea nuovo file"},newFolder:{fieldName:"Nome cartella",fieldFeedback:"La cartella esiste!",title:"Crea nuova cartella"},preview:{title:"Anteprima"},properties:{disk:"Disco",modified:"Mod.",name:"Nome",path:"Percorso",size:"Dim.",title:"Proprietà",type:"Tipo",url:"URL",access:"Accesso",access_0:"Accesso negato",access_1:"Sola lettura",access_2:"Lettura e Scrittura"},rename:{directoryExist:"La cartella esiste",fieldName:"Inserisci il nome",fieldFeedback:"Nome non valido",fileExist:"Il file esiste",title:"Rinomina"},status:{noErrors:"Nessun errore!",title:"Stato"},upload:{ifExist:"Il file esiste:",noSelected:"Nessun files selezionato!",overwrite:"Sovrascrivi!",selected:"Selezionato:",size:"Dim.:",skip:"Salta",title:"Carica files"},editor:{title:"Editor"},audioPlayer:{title:"Player Audio"},videoPlayer:{title:"Player Video"},zip:{title:"Crea Archivio",fieldName:"Nome Archivio",fieldFeedback:"Archivio esistente!"},unzip:{title:"Estrai archivio",fieldName:"Nom cartella",fieldRadioName:"Estrai in:",fieldRadio1:"Nella cartella corrente",fieldRadio2:"In una nuova cartella",fieldFeedback:"Cartella esistente!",warning:"Attenzione! se i nomi dei file coincidono i file presenti verranno sovrascritti!"},cropper:{title:"Ritaglia",apply:"Applica",reset:"Reset",save:"Salva"}},notifications:{cutToClipboard:"Tagliato e salvato negli appunti!",copyToClipboard:"Copiato negli appunti!"},response:{noConfig:"File di configuraizone non trovato!",notFound:"Non trovato!",diskNotFound:"Disco non trovato!",pathNotFound:"Cartella non trovata!",diskSelected:"Disco selezionato!",fileExist:"File già esistente!",fileCreated:"File creato!",fileUpdated:"File caricato!",fileNotFound:"File non trovato!",dirExist:"La cartella è già presente!",dirCreated:"Cartella creata!",dirNotFound:"Cartella non trovata",uploaded:"Tutti i file sono stati caricati!",notAllUploaded:"Alcuni file NON sono stati caricati!",delNotFound:"Alcuni elementi NON sono stati trovati!",deleted:"Eliminato!",renamed:"Rinominato!",copied:"Copiato con successo!",zipError:"Errore dirante la creazione dell'archivio!",aclError:"Accesso negato!"}};var O={btn:{about:"Hakkında",back:"Geri",cancel:"İptal",clear:"Temizle",copy:"Kopyala",cut:"Kes",delete:"Sil",edit:"Düzenle",forward:"İleri",folder:"Yeni klasör",file:"Yeni dosya",fullScreen:"Tam ekran",grid:"Izgara",paste:"Yapıştır",refresh:"Yenile",submit:"Gönder",table:"Tablo",upload:"Yükle",uploadSelect:"Dosyaları seç",hidden:" Gizli dosyalar"},clipboard:{actionType:"İşlem türü",copy:"Kopyala",cut:"Yapıştır",none:"Hiç bir şey seçilmedi",title:"Pano"},contextMenu:{copy:"Kopyala",cut:"Yapıştır",delete:"Sil",download:"İndir",info:"Seçilenler:",open:"Aç",paste:"Yapıştır",properties:"Özellikler",rename:"Yeniden adlandır",select:"Seç",view:"Gör",zip:"Zip",unzip:"Zip aç",edit:"Düzenle",audioPlay:"Oynat",videoPlay:"Oynat"},info:{directories:"Klasörler:",files:"Dosyalar:",selected:"Seçilenler:",selectedSize:"Dosyaların boyutu:",size:"Dosyaların boyutu:"},manager:{table:{date:"Tarih",folder:"Klasör",name:"İsim",size:"Boyut",type:"Tür"}},modal:{about:{developer:"Geliştirici",name:"Laravel File Manager",title:"Hakkında",version:"Sürüm"},delete:{noSelected:"Hiç bir şey seçilmedi!",title:"Sil"},newFile:{fieldName:"Dosya adı",fieldFeedback:"Aynı isimli dosya var!",title:"Yeni dosya yarat"},newFolder:{fieldName:"Klasör adı",fieldFeedback:"Aynı isimli klasör var!",title:"Yeni klasör yarat"},preview:{title:"Önizleme"},properties:{disk:"Disk",modified:"Değiştirilme",name:"İsim",path:"Yol",size:"Boyut",title:"Özellikler",type:"Tür",url:"URL",access:"Erişim",access_0:"Erişim engellendi",access_1:"Salt okunur",access_2:"Okuma ve yazma"},rename:{directoryExist:"Klasör mevcut",fieldName:"Yeni isim girin",fieldFeedback:"Geçersiz isim",fileExist:"Dosya mevcut",title:"Yeniden adlandır"},status:{noErrors:"Hata yok!",title:"Durum"},upload:{ifExist:"Eğer dosya mevcutsa:",noSelected:"Hiç bir dosya seçilmedi!",overwrite:"Üzerine yaz!",selected:"Seçilen:",size:"Boyut:",skip:"Atla",title:"Dosyaları yükle"},editor:{title:"Editör"},audioPlayer:{title:"Ses oynatıcı"},videoPlayer:{title:"Video oynatıcı"},zip:{title:"Arşiv yarat",fieldName:"Arşiv adı",fieldFeedback:"Arşiv mevcut!"},unzip:{title:"Arşivi aç",fieldName:"Klasör adı",fieldRadioName:"Hedef:",fieldRadio1:"Şu anki klasör",fieldRadio2:"Yeni klasör",fieldFeedback:"Klasör mevcut!",warning:"Dikkat! Eğer dosya isimleri aynı olursa, üzerine yazılacak!"},cropper:{title:"Kırpma",apply:"Uygula",reset:"Sıfırla",save:"Kaydet"}},notifications:{cutToClipboard:"Panoya kesildi!",copyToClipboard:"Panoya kopyalandı!"},response:{noConfig:"Ayarlar bulunamadı!",notFound:"Bulunamadı!",diskNotFound:"Disk bulunamadı!",pathNotFound:"Yol bulunamadı!",diskSelected:"Disk seçildi!",fileExist:"Dosya zaten var!",fileCreated:"Dosya yaratıldı!",fileUpdated:"Dosya güncellendi!",fileNotFound:"Dosya bulunamadı!",dirExist:"Klasör zaten var!",dirCreated:"Klasör yaratıldı!",dirNotFound:"Klasör bulunamadı",uploaded:"Tüm dosyalar yüklendi!",notAllUploaded:"Bazı dosyalar yüklenemedi!",delNotFound:"Bazı öğeler bulunamadı!",deleted:"Silindi!",renamed:"Yeniden adlandırıldı!",copied:"Başarıyla kopyalandı!",zipError:"Arşiv yaratılırken hata oluştu!",aclError:"Erişim engellendi!"}};var E={btn:{about:"À propos",back:"Retour",cancel:"Annuler",clear:"Effacer",copy:"Copier",cut:"Couper",delete:"Supprimer",edit:"Modifier",forward:"Suivant",folder:"Nouveau dossier",file:"Nouveau fichier",fullScreen:"Plein écran",grid:"Grille",paste:"Coller",refresh:"Rafraîchir",submit:"Envoyer",table:"Tableau",upload:"Télécharger",uploadSelect:"Sélectionner fichiers",hidden:" Masquer fichiers"},clipboard:{actionType:"Type",copy:"Copier",cut:"Coller",none:"Aucune sélection",title:"Clipboard"},contextMenu:{copy:"Copier",cut:"Coller",delete:"Supprimer",download:"Télécharger",info:"Sélectionné:",open:"Ouvrir",paste:"Coller",properties:"Propriétés",rename:"Renommer",select:"Sélectionner",view:"Voir",zip:"Zipper",unzip:"Dézipper",edit:"Modifier",audioPlay:"Lire",videoPlay:"Lire"},info:{directories:"Dossiers:",files:"Fichiers:",selected:"Sélectionné:",selectedSize:"Taille fichiers:",size:"Taille fichiers:"},manager:{table:{date:"Date",folder:"Dossier",name:"Nom",size:"Taille",type:"Type"}},modal:{about:{developer:"Développeur",name:"Laravel File Manager",title:"À propos",version:"Version"},delete:{noSelected:"Aucune sélection!",title:"Supprimer"},newFile:{fieldName:"Nom du fichier",fieldFeedback:"Ce fichier existe!",title:"Créer un fichier"},newFolder:{fieldName:"Nom du dossier",fieldFeedback:"Ce dossier existe!",title:"Créer un dossier"},preview:{title:"Prévisualisation"},properties:{disk:"Disque",modified:"Modifié",name:"Nom",path:"Chemin",size:"Taille",title:"Propriétés",type:"Type",url:"URL",access:"Accès",access_0:"Accès refusé",access_1:"Lecture seul",access_2:"Lecture/écriture"},rename:{directoryExist:"Dossier existant",fieldName:"Entrer un nom",fieldFeedback:"Nom invalide",fileExist:"Fichier existant",title:"Renommer"},status:{noErrors:"Aucune erreurs!",title:"Statut"},upload:{ifExist:"Si le fichier existe:",noSelected:"Aucun fichier sélectionné!",overwrite:"Écraser!",selected:"Sélectionné:",size:"Taille:",skip:"Passer",title:"Télécharger fichiers"},editor:{title:"Editeur"},audioPlayer:{title:"Lecteur audio"},videoPlayer:{title:"Lecteur video"},zip:{title:"Créer une archive",fieldName:"Nom archive",fieldFeedback:"Archive existante!"},unzip:{title:"Extraite l'archive",fieldName:"Nom du dossier",fieldRadioName:"Extraire vers:",fieldRadio1:"Dossier actuel",fieldRadio2:"Dans un nouveau dossier",fieldFeedback:"Dossier existant!",warning:"Attention! Si le nom correspond, les fichiers seront écrasés!"},cropper:{title:"Recadrer",apply:"Appliquer",reset:"Réinitialisé",save:"Sauvegarder"}},notifications:{cutToClipboard:"Coller dans le presse-papier!",copyToClipboard:"Copied dans le presse-papier!"},response:{noConfig:"Configuration introuvable!",notFound:"Introuvable!",diskNotFound:"Disque introuvable!",pathNotFound:"Chemin introuvable!",diskSelected:"Disque sélectionné!",fileExist:"Fichier existant!",fileCreated:"Fichier créé!",fileUpdated:"Fichier téléchargé!",fileNotFound:"Fichier introuvable!",dirExist:"Dossier existant!",dirCreated:"Dossier créé!",dirNotFound:"Dossier introuvable",uploaded:"Tous les fichiers ont été téléchargés!",notAllUploaded:"Certains fichiers n'ont pas été téléchargés!",delNotFound:"Certains éléments n'ont pas été trouvés!",deleted:"Supprimé!",renamed:"Renommé!",copied:"Copié!",zipError:"Erreur dans la création de l'archive!",aclError:"Accès refusé!"}};var j={btn:{about:"Sobre",back:"Voltar",cancel:"Cancelar",clear:"Limpar",copy:"Copiar",cut:"Recortar",delete:"Apagar",edit:"Editar",forward:"Avançar",folder:"Nova pasta",file:"Novo arquivo",fullScreen:"Tela cheia",grid:"Grade",paste:"Colar",refresh:"Atualizar",submit:"Criar",table:"Tabela",upload:"Upload",uploadSelect:"Selecionar arquivos",hidden:" Arquivos ocultos"},clipboard:{actionType:"Formato",copy:"Copiar",cut:"Recortar",none:"Nada selecionado",title:"Área de transferência"},contextMenu:{copy:"Copiar",cut:"Recortar",delete:"Apagar",download:"Download",info:"Selecionado:",open:"Abrir",paste:"Colar",properties:"Propriedades",rename:"Renomear",select:"Selecionar",view:"Visualizar",zip:"Compactar",unzip:"Descompactar",edit:"Editar",audioPlay:"Play",videoPlay:"Play"},info:{directories:"Pastas:",files:"Arquivos:",selected:"Selecionado:",selectedSize:"Tamanho dos arquivos:",size:"Tamanho dos arquivos:"},manager:{table:{date:"Data",folder:"Pasta",name:"Nome",size:"Tamanho",type:"Tipo"}},modal:{about:{developer:"Desenvolvedor",name:"Laravel File Manager",title:"Sobre",version:"Versão"},delete:{noSelected:"Nada selecionado!",title:"Apagar"},newFile:{fieldName:"Nome do arquivo",fieldFeedback:"Arquivo existente!",title:"Criar novo arquivo"},newFolder:{fieldName:"Nome da pasta",fieldFeedback:"Pasta existente!",title:"Criar nova pasta"},preview:{title:"Visualizar"},properties:{disk:"Disco",modified:"Modificado",name:"Nome",path:"Caminho",size:"Tamanho",title:"Propriedades",type:"Tipo",url:"URL",access:"Acesso",access_0:"Acesso negado",access_1:"Apenas leitura",access_2:"Leitura e escrita"},rename:{directoryExist:"Pasta existente",fieldName:"Digite o novo nome",fieldFeedback:"Nome inválido",fileExist:"Arquivo existente",title:"Renomear"},status:{noErrors:"Nenhum erro!",title:"Status"},upload:{ifExist:"Se arquivo já existir:",noSelected:"Nenhum arquivo selecionado!",overwrite:"Substituir!",selected:"Selecionado:",size:"Tamanho:",skip:"Pular",title:"Upload de arquivos"},editor:{title:"Editor"},audioPlayer:{title:"Áudio player"},videoPlayer:{title:"Video player"},zip:{title:"Compactar arquivo",fieldName:"Nome do arquivo",fieldFeedback:"Arquivo existente!"},unzip:{title:"Descompactar arquivo",fieldName:"Nome da pasta",fieldRadioName:"Extrair para:",fieldRadio1:"Pasta atual",fieldRadio2:"Nova pasta",fieldFeedback:"Pasta existente!",warning:"Atenção! Se os nomes forem idênticos, os arquivos serão substituídos!"},cropper:{title:"Cortar",apply:"Aplicar",reset:"Resetar",save:"Salvar"}},notifications:{cutToClipboard:"Recortado para área de transferência!",copyToClipboard:"Copiado para área de transferência!"},response:{noConfig:"Configuração não encontrada!",notFound:"Não encontrado!",diskNotFound:"Disco não encontrado!",pathNotFound:"Caminho não encontrado!",diskSelected:"Disco selecionado!",fileExist:"Arquivo já existe!",fileCreated:"Arquivo criado!",fileUpdated:"Arquivo atualizado!",fileNotFound:"Arquivo não encontrado!",dirExist:"Pasta já existe!",dirCreated:"Pasta criada!",dirNotFound:"Pasta não encontrada",uploaded:"Todos os arquivos realizaram o upload!",notAllUploaded:"Alguns arquivos não realizaram o upload!",delNotFound:"Alguns itens não foram encontrados!",deleted:"Deletado!",renamed:"Renomeado!",copied:"Copiado com sucesso!",zipError:"Erro ao compactar!",aclError:"Acesso negado!"}};var T={btn:{about:"關於",back:"返回",cancel:"取消",clear:"清除",copy:"複製",cut:"剪下",delete:"刪除",edit:"編輯",forward:"前進",folder:"新增目錄",file:"新增文件",fullScreen:"全螢幕",grid:"網格",paste:"貼上",refresh:"重新整理",submit:"送出",table:"表格",upload:"上傳",uploadSelect:"選擇文件",hidden:" 隱藏文件"},clipboard:{actionType:"類型",copy:"複製",cut:"剪下",none:"未選取",title:"剪貼簿"},contextMenu:{copy:"複製",cut:"剪下",delete:"刪除",download:"下載",info:"選擇:",open:"打開",paste:"貼上",properties:"屬性",rename:"重新命名",select:"選擇",view:"查看",zip:"壓縮",unzip:"解壓縮",edit:"編輯",audioPlay:"播放",videoPlay:"播放"},info:{directories:"目錄:",files:"文件:",selected:"已選擇:",selectedSize:"已選擇文件大小:",size:"文件大小:"},manager:{table:{date:"日期",folder:"目錄",name:"名稱",size:"大小",type:"類型"}},modal:{about:{developer:"開發者資訊",name:"文件管理頁",title:"關於",version:"版本"},delete:{noSelected:"暫無選中!",title:"刪除"},newFile:{fieldName:"文件名",fieldFeedback:"文件已存在!",title:"新增文件"},newFolder:{fieldName:"目錄名",fieldFeedback:"目錄已存在!",title:"新增目錄"},preview:{title:"預覽"},properties:{disk:"磁碟",modified:"時間",name:"名稱",path:"路徑",size:"大小",title:"屬性",type:"類型",url:"網址",access:"授權",access_0:"禁止訪問",access_1:"唯獨",access_2:"讀寫"},rename:{directoryExist:"目錄存在",fieldName:"輸入名稱",fieldFeedback:"名稱不可用",fileExist:"文件存在",title:"重命名"},status:{noErrors:"暫無錯誤!",title:"狀態"},upload:{ifExist:"如果文件存在:",noSelected:"暫無選中!",overwrite:"覆蓋",selected:"已選擇:",size:"大小:",skip:"忽略",title:"上傳文件"},editor:{title:"編輯"},audioPlayer:{title:"播放音樂"},videoPlayer:{title:"播放影片"},zip:{title:"壓縮文件",fieldName:"壓縮名稱",fieldFeedback:"文件存在!"},unzip:{title:"解壓縮",fieldName:"目錄名稱",fieldRadioName:"解壓到:",fieldRadio1:"當前目錄",fieldRadio2:"輸入目錄",fieldFeedback:"目錄存在!",warning:"注意!如果文件存在將會被覆蓋!"},cropper:{title:"裁剪",apply:"套用",reset:"重設",save:"儲存"}},notifications:{cutToClipboard:"剪下到剪貼簿!",copyToClipboard:"複製到剪貼簿!"},response:{noConfig:"找不到設定檔!",notFound:"找不到項目!",diskNotFound:"找不到磁碟!",pathNotFound:"找不到路徑!",diskSelected:"磁碟已選取!",fileExist:"文件已存在!",fileCreated:"文件已建立!",fileUpdated:"文件已更新!",fileNotFound:"找不到文件!",dirExist:"目錄已存在!",dirCreated:"目錄已存在!",dirNotFound:"找不到目錄",uploaded:"全部文件已上傳完畢!",notAllUploaded:"部分文件未上傳!",delNotFound:"部分項目未被找到!",deleted:"已刪除!",renamed:"已重新命名!",copied:"已複製完成!",zipError:"壓縮檔建立失敗!",aclError:"存取拒絕!"}};var M={btn:{about:"O Programie",back:"Wstecz",cancel:"Anuluj",clear:"Wyczyść",copy:"Kopiuj",cut:"Wytnij",delete:"Usuń",edit:"Edycja",forward:"Do przodu",folder:"Nowy folder",file:"Nowy plik",fullScreen:"Pełny ekran",grid:"Siatka",paste:"Wklej",refresh:"Odśwież",submit:"Zatwierdź",table:"Tabela",upload:"Wyślij plik",uploadSelect:"Wybierz pliki",hidden:"Ukryte pliki"},clipboard:{actionType:"Rodzaj",copy:"Kopiuj",cut:"Przytnij",none:"Nic nie zostało zaznaczone",title:"Schowek"},contextMenu:{copy:"Kopiuj",cut:"Przytnij",delete:"Usuń",download:"Pobierz",info:"Wybrano:",open:"Otwórz",paste:"Wklej",properties:"Właściwości",rename:"Zmień nazwę",select:"Wybierz",view:"Widok",zip:"Spakuj",unzip:"Rozpakuj",edit:"Edycja",audioPlay:"Odtwórz",videoPlay:"Odtwórz"},info:{directories:"Katalogi",files:"Pliki:",selected:"Wybrany:",selectedSize:"Rozmiar plików:",size:"Rozmiar plików:"},manager:{table:{date:"Data",folder:"Folder",name:"Nazwa",size:"Rozmiar",type:"Rodzaj"}},modal:{about:{developer:"Deweloper",name:"Menedżer plików",title:"O",version:"Wersja"},delete:{noSelected:"Nic nie zostało zaznaczone!",title:"Usuń"},newFile:{fieldName:"Nazwa pliku",fieldFeedback:"Plik istnieje!",title:"Utwórz nowy plik"},newFolder:{fieldName:"Nazwa folderu",fieldFeedback:"Katalog istnieje!",title:"Stwórz nowy folder"},preview:{title:"Podgląd"},properties:{disk:"Dysk",modified:"Zmodyfikowano",name:"Nazwa",path:"Ścieżka",size:"Rozmiar",title:"Właściwości",type:"Rodzaj",url:"URL",access:"Dostęp",access_0:"Brak dostępu",access_1:"Tylko do odczytu",access_2:"Odczyt i zapis"},rename:{directoryExist:"Katalog istnieje",fieldName:"Wpisz nową nazwę",fieldFeedback:"Błędna nazwa",fileExist:"Plik istnieje",title:"Zmień nazwę"},status:{noErrors:"Bez błędów!",title:"Status"},upload:{ifExist:"Jeśli plik istnieje:",noSelected:"Nie wybrano plików!",overwrite:"Nadpisz",selected:"Wybrano:",size:"Rozmiar:",skip:"Pomiń",title:"Prześlij pliki"},editor:{title:"Edytor"},audioPlayer:{title:"Odtwarzacz muzyki"},videoPlayer:{title:"Odtwarzacz wideo"},zip:{title:"Utwórz archiwum",fieldName:"Nazwa archiwum",fieldFeedback:"Archiwum istnieje!"},unzip:{title:"Rozpakuj archiwum",fieldName:"Nazwa folderu",fieldRadioName:"Wypakować do:",fieldRadio1:"Do bieżącego folderu",fieldRadio2:"W nowym folderze",fieldFeedback:"Katalog istnieje!",warning:"Uwaga! Przy identycznej nazwie, pliki zostaną nadpisane!"},cropper:{title:"Przycinanie",apply:"Zastosuj",reset:"Reset",save:"Zapisz"}},notifications:{cutToClipboard:"Wytnij do schowka!",copyToClipboard:"Skopiowane do schowka!"},response:{noConfig:"Nie znaleziono konfiguracji!",notFound:"Nie znaleziono!",diskNotFound:"Nie znaleziono dysku!",pathNotFound:"Ścieżka nie znaleziona!",diskSelected:"Dysk wybrany!",fileExist:"Plik już istnieje!",fileCreated:"Plik utworzony!",fileUpdated:"Plik zaktualizowany!",fileNotFound:"Nie znaleziono pliku!",dirExist:"Katalog już istnieje!",dirCreated:"Katalog utworzony!",dirNotFound:"Nie znaleziono katalogu",uploaded:"Przesłano wszystkie pliki!",notAllUploaded:"Niektóre pliki nie zostały przesłane!",delNotFound:"Niektóre pozycje nie zostały znalezione!",deleted:"Usunięto!",renamed:"Zmieniono nazwę!",copied:"Skopiowano pomyślnie!",zipError:"Błąd podczas tworzenia archiwum!",aclError:"Brak dostępu!"}};var N={btn:{about:"Rólunk",back:"Vissza",cancel:"Mégse",clear:"Törlés",copy:"Másolás",cut:"Kivágás",delete:"Törlés",edit:"Szerkesztés",forward:"Továbbítás",folder:"Új mappa",file:"Új fájl",fullScreen:"Teljes képernyő",grid:"Rács nézet",paste:"Beillesztés",refresh:"Frissítés",submit:"Mentés",table:"Táblázat nézet",upload:"Feltöltés",uploadSelect:"Fájlok kiválasztása",hidden:" Rejtett fájlok"},clipboard:{actionType:"Típus",copy:"Másolás",cut:"Kivágás",none:"Nincs kiválasztás",title:"Vágólap"},contextMenu:{copy:"Másolás",cut:"Kivágás",delete:"Törlés",download:"Letöltés",info:"Kiválasztva:",open:"Megnyitás",paste:"Beillesztés",properties:"Tulajdonságok",rename:"Átnevezés",select:"Kiválaszt",view:"Megnyitás",zip:"Becsomagolás",unzip:"Kicsomagolás",edit:"Szerkesztés",audioPlay:"Lejátszás",videoPlay:"Lejátszás"},info:{directories:"Mappák:",files:"Fájlok:",selected:"Kiválasztva:",selectedSize:"Fájlméret:",size:"Fájlok mérete:"},manager:{table:{date:"Dátum",folder:"Mappa",name:"Név",size:"Méret",type:"Típus"}},modal:{about:{developer:"Developer",name:"Laravel File Manager",title:"About",version:"Version"},delete:{noSelected:"Nincs kiválsztva semmi!",title:"Törlés"},newFile:{fieldName:"Fájlnév",fieldFeedback:"A fájl létezik!",title:"Új fájl létrehozása"},newFolder:{fieldName:"Mappa neve",fieldFeedback:"A mappa létezik!",title:"Új mappa létrehozása"},preview:{title:"Előlnézet"},properties:{disk:"Lemez",modified:"Módsítva",name:"Név",path:"Útvonal",size:"Méret",title:"Tulajdonságok",type:"Típus",url:"URL",access:"Hozzáférés",access_0:"Hozzáférés megtagadva",access_1:"Csak olvasás",access_2:"Olvasás és írás"},rename:{directoryExist:"A mappa létezik",fieldName:"Új név",fieldFeedback:"Érvénytelen név",fileExist:"Fájl létezik",title:"Átnevezés"},status:{noErrors:"Nincs hiba",title:"Státusz"},upload:{ifExist:"A fájl létezik:",noSelected:"Nincs fájl kiválasztva!",overwrite:"Felülírás!",selected:"Kiválasztva:",size:"Méret:",skip:"Kihagyás",title:"Fájlok feltöltése"},editor:{title:"Szerkesztő"},audioPlayer:{title:"Hagfájl lejátszó"},videoPlayer:{title:"Videófájl lejátszó"},zip:{title:"Becsomagolás",fieldName:"Archívum neve",fieldFeedback:"Archívum már létezik!"},unzip:{title:"Kicsomagolás",fieldName:"Mappa neve",fieldRadioName:"Kicsomagolás:",fieldRadio1:"Jelenlegi mappába",fieldRadio2:"Új mappába",fieldFeedback:"Mappa létezik!",warning:"Vigyázz! Amennyiben a nevek egyeznek akkor a fájlok felülírásra kerülnek!"},cropper:{title:"Kivágás",apply:"Apply",reset:"Visszaállítás",save:"Mentés"}},notifications:{cutToClipboard:"Kivágás a vágólapra!",copyToClipboard:"Másolás a vágólapra!"},response:{noConfig:"Konfiguráció nem található!",notFound:"Nem találáható!",diskNotFound:"Lemez nem található!",pathNotFound:"Útvonal nem található!",diskSelected:"Lemez kiválasztva!",fileExist:"Fájl már létezik!",fileCreated:"Fájl létrehozva!",fileUpdated:"Fájl frissítve!",fileNotFound:"Fájl nem található!",dirExist:"Mappa már létezik!",dirCreated:"Mappa létrehozva!",dirNotFound:"Mappa nem található",uploaded:"Minden fájl feltöltve!",notAllUploaded:"Néhány fájl nem került feltöltésre!",delNotFound:"Néhány fájl nem található!",deleted:"Törölve!",renamed:"Átnevezve!",copied:"Sikeres másolás!",zipError:"Hiba becsomagolás közben!",aclError:"Hozzáférés megtagadva!"}},A={namespaced:!0,state:()=>({acl:null,version:"3.0.3",headers:{},baseUrl:null,windowsConfig:null,lang:null,translations:{ru:Object.freeze(m),en:Object.freeze(g),ar:Object.freeze(b),sr:Object.freeze(v),cs:Object.freeze(y),de:Object.freeze(x),es:Object.freeze(w),nl:Object.freeze(k),"zh-CN":Object.freeze(_),fa:Object.freeze(C),it:Object.freeze(S),tr:Object.freeze(O),fr:Object.freeze(E),"pt-BR":Object.freeze(j),"zh-TW":Object.freeze(T),pl:Object.freeze(M),hu:Object.freeze(N)},hiddenFiles:!1,contextMenu:[[{name:"open",icon:"bi-folder2-open"},{name:"audioPlay",icon:"bi-play"},{name:"videoPlay",icon:"bi-play"},{name:"view",icon:"bi-eye"},{name:"edit",icon:"bi-pen"},{name:"select",icon:"bi-check2"},{name:"download",icon:"bi-download"}],[{name:"copy",icon:"bi-files"},{name:"cut",icon:"bi-scissors"},{name:"rename",icon:"bi-pencil-square"},{name:"paste",icon:"bi-clipboard"},{name:"zip",icon:"bi-file-zip"},{name:"unzip",icon:"bi-file-zip-fill"}],[{name:"delete",icon:"bi-trash text-danger"}],[{name:"properties",icon:"bi-card-list"}]],imageExtensions:["png","jpg","jpeg","gif","webp"],cropExtensions:["png","jpg","jpeg","webp"],audioExtensions:["ogg","mp3","aac","wav"],videoExtensions:["webm","mp4"],textExtensions:{sh:"text/x-sh",css:"text/css",less:"text/x-less",sass:"text/x-sass",scss:"text/x-scss",html:"text/html",js:"text/javascript",ts:"text/typescript",vue:"text/x-vue",htaccess:"text/plain",env:"text/plain",txt:"text/plain",log:"text/plain",ini:"text/x-ini",xml:"application/xml",md:"text/x-markdown",java:"text/x-java",c:"text/x-csrc",cpp:"text/x-c++src",cs:"text/x-csharp",scl:"text/x-scala",php:"application/x-httpd-php",sql:"text/x-sql",pl:"text/x-perl",py:"text/x-python",lua:"text/x-lua",swift:"text/x-swift",rb:"text/x-ruby",go:"text/x-go",yaml:"text/x-yaml",json:"application/json"}}),mutations:{manualSettings(e,t){Object.prototype.hasOwnProperty.call(t,"headers")&&(e.headers=t.headers),Object.prototype.hasOwnProperty.call(t,"baseUrl")&&(e.baseUrl=t.baseUrl),Object.prototype.hasOwnProperty.call(t,"windowsConfig")&&(e.windowsConfig=t.windowsConfig),Object.prototype.hasOwnProperty.call(t,"lang")&&(e.lang=t.lang),Object.prototype.hasOwnProperty.call(t,"translation")&&(e.translations[t.translation.name]=Object.freeze(t.translation.content))},initAxiosSettings(e){if(!e.baseUrl){let t=`${window.location.protocol}//${window.location.hostname}`;window.location.port.length?t+=`:${window.location.port}/file-manager/`:t+="/file-manager/",e.baseUrl=t}if(0===Object.keys(e.headers).length){const t=document.head.querySelector('meta[name="csrf-token"]');t?e.headers={"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":t.content}:(e.headers={"X-Requested-With":"XMLHttpRequest"},console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token"))}},initSettings(e,t){e.lang||(e.lang=t.lang),e.windowsConfig||(e.windowsConfig=t.windowsConfig),e.acl=t.acl,e.hiddenFiles=t.hiddenFiles},toggleHiddenFiles(e){e.hiddenFiles=!e.hiddenFiles}},getters:{baseUrl:e=>e.baseUrl,headers:e=>e.headers,authHeader:e=>Object.prototype.hasOwnProperty.call(e.headers,"Authorization")}},D={namespaced:!0,state:()=>({selectedDisk:null,selectedDirectory:null,directories:[],files:[],selected:{directories:[],files:[]},sort:{field:"name",direction:"up"},history:[null],historyPointer:0,viewType:"table"}),mutations:{setDisk(e,t){e.selectedDisk=t},setDirectoryContent(e,t){e.directories=t.directories,e.files=t.files},setSelectedDirectory(e,t){e.selectedDirectory=t},setSelected(e,{type:t,path:n}){e.selected[t].push(n)},removeSelected(e,{type:t,path:n}){const r=e.selected[t].indexOf(n);-1!==r&&e.selected[t].splice(r,1)},changeSelected(e,{type:t,path:n}){e.selected.directories=[],e.selected.files=[],e.selected[t].push(n)},resetSelected(e){e.selected.directories=[],e.selected.files=[]},addNewFile(e,t){e.files.push(t)},updateFile(e,t){const n=e.files.findIndex(e=>e.basename===t.basename);-1!==n&&(e.files[n]=t)},addNewDirectory(e,t){e.directories.push(t)},pointerBack(e){e.historyPointer-=1},pointerForward(e){e.historyPointer+=1},addToHistory(e,t){e.historyPointer<e.history.length-1&&e.history.splice(e.historyPointer+1,Number.MAX_VALUE),e.history.push(t),e.historyPointer+=1},resetHistory(e){e.history=[null],e.historyPointer=0},setView(e,t){e.viewType=t},setSortField(e,t){e.sort.field=t},setSortDirection(e,t){e.sort.direction=t},resetSortSettings(e){e.sort.field="name",e.sort.direction="up"},sortByName(e){"up"===e.sort.direction?(e.directories.sort((e,t)=>e.basename.localeCompare(t.basename)),e.files.sort((e,t)=>e.basename.localeCompare(t.basename))):(e.directories.sort((e,t)=>t.basename.localeCompare(e.basename)),e.files.sort((e,t)=>t.basename.localeCompare(e.basename)))},sortBySize(e){e.directories.sort((e,t)=>e.basename.localeCompare(t.basename)),"up"===e.sort.direction?e.files.sort((e,t)=>e.size-t.size):e.files.sort((e,t)=>t.size-e.size)},sortByType(e){e.directories.sort((e,t)=>e.basename.localeCompare(t.basename)),"up"===e.sort.direction?e.files.sort((e,t)=>e.extension.localeCompare(t.extension)):e.files.sort((e,t)=>t.extension.localeCompare(e.extension))},sortByDate(e){"up"===e.sort.direction?(e.directories.sort((e,t)=>e.timestamp-t.timestamp),e.files.sort((e,t)=>e.timestamp-t.timestamp)):(e.directories.sort((e,t)=>t.timestamp-e.timestamp),e.files.sort((e,t)=>t.timestamp-e.timestamp))}},getters:{files:(e,t,n)=>n.fm.settings.hiddenFiles?e.files:e.files.filter(e=>e.basename.match(/^([^.]).*/i)),directories:(e,t,n)=>n.fm.settings.hiddenFiles?e.directories:e.directories.filter(e=>e.basename.match(/^([^.]).*/i)),filesCount:(e,t)=>t.files.length,directoriesCount:(e,t)=>t.directories.length,filesSize:(e,t)=>t.files.length?t.files.reduce((e,t)=>e+Number(t.size),0):0,selectedCount:(e,t)=>t.selectedList.length,selectedFilesSize(e){const t=e.files.filter(t=>e.selected.files.includes(t.path));return t.length?t.reduce((e,t)=>e+Number(t.size),0):0},selectedList(e){const t=e.directories.filter(t=>e.selected.directories.includes(t.path)),n=e.files.filter(t=>e.selected.files.includes(t.path));return t.concat(n)},breadcrumb:e=>e.selectedDirectory?e.selectedDirectory.split("/"):null,directoryExist:e=>t=>e.directories.some(e=>e.basename===t),fileExist:e=>t=>e.files.some(e=>e.basename===t)},actions:{selectDirectory:({state:e,commit:t,dispatch:n,rootState:r},{path:i,history:o})=>(t("setDirectoryContent",{directories:[],files:[]}),p.a.content(e.selectedDisk,i).then(e=>{"success"===e.data.result.status&&(t("resetSelected"),t("resetSortSettings"),t("setDirectoryContent",e.data),t("setSelectedDirectory",i),o&&t("addToHistory",i),2===r.fm.settings.windowsConfig&&i&&e.data.directories.length&&n("fm/tree/showSubdirectories",i,{root:!0}))})),refreshDirectory({state:e,commit:t,dispatch:n}){p.a.content(e.selectedDisk,e.selectedDirectory).then(r=>{t("resetSelected"),t("resetSortSettings"),t("resetHistory"),e.selectedDirectory&&t("addToHistory",e.selectedDirectory),"success"===r.data.result.status?t("setDirectoryContent",r.data):"danger"===r.data.result.status&&(t("setSelectedDirectory",null),n("refreshDirectory"))})},historyBack({state:e,commit:t,dispatch:n}){n("selectDirectory",{path:e.history[e.historyPointer-1],history:!1}),t("pointerBack")},historyForward({state:e,commit:t,dispatch:n}){n("selectDirectory",{path:e.history[e.historyPointer+1],history:!1}),t("pointerForward")},sortBy({state:e,commit:t},{field:n,direction:r}){switch(e.sort.field!==n||r?r?(t("setSortDirection",r),t("setSortField",n)):(t("setSortDirection","up"),t("setSortField",n)):t("setSortDirection","up"===e.sort.direction?"down":"up"),n){case"name":t("sortByName");break;case"size":t("sortBySize");break;case"type":t("sortByType");break;case"date":t("sortByDate")}}}},L={namespaced:!0,state:()=>({actionResult:{status:null,message:null},actionProgress:0,loading:0,errors:[]}),mutations:{setActionResult(e,{status:t,message:n}){e.actionResult.status=t,e.actionResult.message=n},clearActionResult(e){e.actionResult.status=null,e.actionResult.message=null},setProgress(e,t){e.actionProgress=t},clearProgress(e){e.actionProgress=0},addLoading(e){e.loading+=1},subtractLoading(e){e.loading-=1},clearLoading(e){e.loading=0},setError(e,t){e.errors.push(t)},clearErrors(e){e.errors=[]}}},z={setDisks(e,t){e.disks=t},setClipboard(e,{type:t,disk:n,directories:r,files:i}){e.clipboard.type=t,e.clipboard.disk=n,e.clipboard.directories=r,e.clipboard.files=i},truncateClipboard(e,{type:t,path:n}){const r=e.clipboard[t].indexOf(n);-1!==r&&e.clipboard[t].splice(r,1),e.clipboard.directories.length||e.clipboard.files.length||(e.clipboard.type=null)},resetClipboard(e){e.clipboard.type=null,e.clipboard.disk=null,e.clipboard.directories=[],e.clipboard.files=[]},setActiveManager(e,t){e.activeManager=t},setFileCallBack(e,t){e.fileCallback=t},screenToggle(e){e.fullScreen=!e.fullScreen},resetState(e){e.activeManager="left",e.clipboard={type:null,disk:null,directories:[],files:[]},e.disks=[],e.fileCallback=null,e.fullScreen=!1}},F={diskList:e=>Object.keys(e.disks),selectedDisk:e=>e[e.activeManager].selectedDisk,selectedDirectory:e=>e[e.activeManager].selectedDirectory,selectedItems:(e,t)=>t[e.activeManager+"/selectedList"],inactiveManager:e=>"left"===e.activeManager?"right":"left"},P=n(9),I={createFile:(e,t,n)=>P.a.post("create-file",{disk:e,path:t,name:n}),updateFile:e=>P.a.post("update-file",e),createDirectory:e=>P.a.post("create-directory",e),upload:(e,t)=>P.a.post("upload",e,t),delete:e=>P.a.post("delete",e),rename:e=>P.a.post("rename",e),paste:e=>P.a.post("paste",e),zip:e=>P.a.post("zip",e),unzip:e=>P.a.post("unzip",e)},R={namespaced:!0,modules:{settings:A,left:D,right:D,tree:h,modal:f,messages:L},state:{activeManager:"left",clipboard:{type:null,disk:null,directories:[],files:[]},disks:[],fileCallback:null,fullScreen:!1},mutations:z,actions:{initializeApp({state:e,commit:t,getters:n,dispatch:r}){p.a.initialize().then(i=>{if("success"===i.data.result.status){t("settings/initSettings",i.data.config),t("setDisks",i.data.config.disks);let o=i.data.config.leftDisk?i.data.config.leftDisk:n.diskList[0],a=i.data.config.rightDisk?i.data.config.rightDisk:n.diskList[0],s=i.data.config.leftPath,l=i.data.config.rightPath;if(window.location.search){const e=new URLSearchParams(window.location.search);e.get("leftDisk")&&(o=e.get("leftDisk")),e.get("rightDisk")&&(a=e.get("rightDisk")),e.get("leftPath")&&(s=e.get("leftPath")),e.get("rightPath")&&(l=e.get("rightPath"))}t("left/setDisk",o),s&&(t("left/setSelectedDirectory",s),t("left/addToHistory",s)),r("getLoadContent",{manager:"left",disk:o,path:s}),3===e.settings.windowsConfig?(t("right/setDisk",a),l&&(t("right/setSelectedDirectory",l),t("right/addToHistory",l)),r("getLoadContent",{manager:"right",disk:a,path:l})):2===e.settings.windowsConfig&&r("tree/initTree",o).then(()=>{s&&r("tree/reopenPath",s)})}})},getLoadContent(e,{manager:t,disk:n,path:r}){p.a.content(n,r).then(n=>{"success"===n.data.result.status&&e.commit(t+"/setDirectoryContent",n.data)})},selectDisk({state:e,commit:t,dispatch:n},{disk:r,manager:i}){p.a.selectDisk(r).then(o=>{"success"===o.data.result.status&&(t(i+"/setDisk",r),t(i+"/resetHistory"),2===e.settings.windowsConfig&&n("tree/initTree",r),n(i+"/selectDirectory",{path:null,history:!1}))})},createFile({getters:e,dispatch:t},n){const r=e.selectedDirectory;return I.createFile(e.selectedDisk,r,n).then(e=>(t("updateContent",{response:e,oldDir:r,commitName:"addNewFile",type:"file"}),e))},getFile:(e,{disk:t,path:n})=>p.a.getFile(t,n),updateFile:({getters:e,dispatch:t},n)=>I.updateFile(n).then(n=>(t("updateContent",{response:n,oldDir:e.selectedDirectory,commitName:"updateFile",type:"file"}),n)),createDirectory({getters:e,dispatch:t},n){const r=e.selectedDirectory;return I.createDirectory({disk:e.selectedDisk,path:r,name:n}).then(e=>(t("updateContent",{response:e,oldDir:r,commitName:"addNewDirectory",type:"directory"}),e))},upload({getters:e,commit:t,dispatch:n},{files:r,overwrite:i}){const o=e.selectedDirectory,a=new FormData;a.append("disk",e.selectedDisk),a.append("path",o||""),a.append("overwrite",i);for(let e=0;e<r.length;e+=1)a.append("files[]",r[e]);const s={onUploadProgress(e){const n=Math.round(100*e.loaded/e.total);t("messages/setProgress",n)}};return I.upload(a,s).then(r=>(t("messages/clearProgress"),"success"===r.data.result.status&&o===e.selectedDirectory&&n("refreshManagers"),r)).catch(()=>{t("messages/clearProgress")})},delete:({state:e,getters:t,dispatch:n},r)=>I.delete({disk:t.selectedDisk,items:r}).then(t=>{if("success"===t.data.result.status&&(n("refreshManagers"),2===e.settings.windowsConfig)){const e=r.filter(e=>"dir"===e.type);n("tree/deleteFromTree",e)}return t}),paste({state:e,commit:t,getters:n,dispatch:r}){I.paste({disk:n.selectedDisk,path:n.selectedDirectory,clipboard:e.clipboard}).then(n=>{"success"===n.data.result.status&&(r("refreshAll"),"cut"===e.clipboard.type&&t("resetClipboard"))})},rename:({getters:e,dispatch:t},{type:n,newName:r,oldName:i})=>I.rename({disk:e.selectedDisk,newName:r,oldName:i,type:n}).then(e=>(t("dir"===n?"refreshAll":"refreshManagers"),e)),url:(e,{disk:t,path:n})=>p.a.url(t,n),zip({state:e,getters:t,dispatch:n},r){const i=t.selectedDirectory;return I.zip({disk:t.selectedDisk,path:i,name:r,elements:e[e.activeManager].selected}).then(e=>("success"===e.data.result.status&&i===t.selectedDirectory&&n("refreshManagers"),e))},unzip({getters:e,dispatch:t},n){const r=e.selectedDirectory;return I.unzip({disk:e.selectedDisk,path:e.selectedItems[0].path,folder:n}).then(n=>("success"===n.data.result.status&&r===e.selectedDirectory&&t("refreshAll"),n))},toClipboard({state:e,commit:t,getters:n},r){n[e.activeManager+"/selectedCount"]&&t("setClipboard",{type:r,disk:e[e.activeManager].selectedDisk,directories:e[e.activeManager].selected.directories.slice(0),files:e[e.activeManager].selected.files.slice(0)})},refreshManagers:({dispatch:e,state:t})=>3===t.settings.windowsConfig?Promise.all([e("left/refreshDirectory"),e("right/refreshDirectory")]):e("left/refreshDirectory"),refreshAll:({state:e,getters:t,dispatch:n})=>2===e.settings.windowsConfig?n("tree/initTree",e.left.selectedDisk).then(()=>Promise.all([n("tree/reopenPath",t.selectedDirectory),n("refreshManagers")])):n("refreshManagers"),repeatSort({state:e,dispatch:t},n){t(n+"/sortBy",{field:e[n].sort.field,direction:e[n].sort.direction})},updateContent({state:e,commit:t,getters:n,dispatch:r},{response:i,oldDir:o,commitName:a,type:s}){"success"===i.data.result.status&&o===n.selectedDirectory&&(t(`${e.activeManager}/${a}`,i.data[s]),r("repeatSort",e.activeManager),"directory"===s&&2===e.settings.windowsConfig?r("tree/addToTree",{parentPath:o,newDirectory:i.data.tree}):3===e.settings.windowsConfig&&e.left.selectedDirectory===e.right.selectedDirectory&&e.left.selectedDisk===e.right.selectedDisk&&(t(`${n.inactiveManager}/${a}`,i.data[s]),r("repeatSort",n.inactiveManager)))},resetState({state:e,commit:t}){t("left/setDisk",null),t("left/setSelectedDirectory",null),t("left/setDirectoryContent",{directories:[],files:[]}),t("left/resetSelected"),t("left/resetSortSettings"),t("left/resetHistory"),t("left/setView","table"),t("modal/clearModal"),t("messages/clearActionResult"),t("messages/clearProgress"),t("messages/clearLoading"),t("messages/clearErrors"),3===e.settings.windowsConfig?(t("right/setDisk",null),t("right/setSelectedDirectory",null),t("right/setDirectoryContent",{directories:[],files:[]}),t("right/resetSelected"),t("right/resetSortSettings"),t("right/resetHistory"),t("right/setView","table")):2===e.settings.windowsConfig&&(t("tree/cleanTree"),t("tree/clearTempArray")),t("resetState")},openPDF(e,{disk:t,path:n}){const r=window.open();p.a.getFileArrayBuffer(t,n).then(e=>{const t=new Blob([e.data],{type:"application/pdf"});r.document.write(`<iframe src="${URL.createObjectURL(t)}" allowfullscreen height="100%" width="100%"></iframe>`)})}},getters:F};const B={class:"fm-body d-flex"};var V,$={all:V=V||new Map,on:function(e,t){var n=V.get(e);n?n.push(t):V.set(e,[t])},off:function(e,t){var n=V.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):V.set(e,[]))},emit:function(e,t){var n=V.get(e);n&&n.slice().map((function(e){e(t)})),(n=V.get("*"))&&n.slice().map((function(n){n(e,t)}))}};const q={class:"fm-navbar mb-3"},H={class:"row justify-content-between"},W={class:"col-auto"},U={class:"btn-group",role:"group"},G=["disabled","title"],K=[Object(r.createElementVNode)("i",{class:"bi bi-skip-backward-fill"},null,-1)],Y=["disabled","title"],X=[Object(r.createElementVNode)("i",{class:"bi bi-skip-forward-fill"},null,-1)],Z=["title"],Q=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-repeat"},null,-1)],J={class:"btn-group",role:"group"},ee=["title"],te=[Object(r.createElementVNode)("i",{class:"bi bi-file-earmark"},null,-1)],ne=["title"],re=[Object(r.createElementVNode)("i",{class:"bi bi-folder"},null,-1)],ie=["title"],oe=[Object(r.createElementVNode)("i",{class:"bi bi-upload"},null,-1)],ae=["title"],se=[Object(r.createElementVNode)("i",{class:"bi bi-upload"},null,-1)],le=["disabled","title"],ce=[Object(r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)],ue={class:"btn-group",role:"group"},de=["disabled","title"],pe=[Object(r.createElementVNode)("i",{class:"bi bi-files"},null,-1)],he=["disabled","title"],fe=[Object(r.createElementVNode)("i",{class:"bi bi-scissors"},null,-1)],me=["disabled","title"],ge=[Object(r.createElementVNode)("i",{class:"bi bi-clipboard"},null,-1)],be={class:"btn-group",role:"group"},ve=["title"],ye={class:"col-auto text-right"},xe={class:"btn-group",role:"group"},we=["title"],ke=[Object(r.createElementVNode)("i",{class:"bi bi-view-list"},null,-1)],_e=["title"],Ce=[Object(r.createElementVNode)("i",{class:"bi bi-grid"},null,-1)],Se={class:"btn-group",role:"group"},Oe=["title"],Ee=[Object(r.createElementVNode)("i",{class:"bi bi-arrows-fullscreen"},null,-1)],je={class:"btn-group",role:"group"},Te=["title"],Me=[Object(r.createElementVNode)("i",{class:"bi bi-question-lg"},null,-1)];var Ne=n(4),Ae={name:"NavbarBlock",mixins:[Ne.a],computed:{activeManager(){return this.$store.state.fm.activeManager},backDisabled(){return!this.$store.state.fm[this.activeManager].historyPointer},forwardDisabled(){return this.$store.state.fm[this.activeManager].historyPointer===this.$store.state.fm[this.activeManager].history.length-1},isAnyItemSelected(){return this.$store.state.fm[this.activeManager].selected.files.length>0||this.$store.state.fm[this.activeManager].selected.directories.length>0},viewType(){return this.$store.state.fm[this.activeManager].viewType},uploading(){return this.$store.state.fm.messages.actionProgress>0},clipboardType(){return this.$store.state.fm.clipboard.type},fullScreen(){return this.$store.state.fm.fullScreen},hiddenFiles(){return this.$store.state.fm.settings.hiddenFiles}},methods:{refreshAll(){this.$store.dispatch("fm/refreshAll")},historyBack(){this.$store.dispatch(`fm/${this.activeManager}/historyBack`)},historyForward(){this.$store.dispatch(`fm/${this.activeManager}/historyForward`)},toClipboard(e){this.$store.dispatch("fm/toClipboard",e),"cut"===e?$.emit("addNotification",{status:"success",message:this.lang.notifications.cutToClipboard}):"copy"===e&&$.emit("addNotification",{status:"success",message:this.lang.notifications.copyToClipboard})},paste(){this.$store.dispatch("fm/paste")},toggleHidden(){this.$store.commit("fm/settings/toggleHiddenFiles")},showModal(e){this.$store.commit("fm/modal/setModalState",{modalName:e,show:!0})},selectView(e){this.viewType!==e&&this.$store.commit(`fm/${this.activeManager}/setView`,e)},screenToggle(){const e=document.getElementsByClassName("fm")[0];this.fullScreen?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen(),this.$store.commit("fm/screenToggle")}}};n(106);var De=l()(Ae,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",q,[Object(r.createElementVNode)("div",H,[Object(r.createElementVNode)("div",W,[Object(r.createElementVNode)("div",U,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",disabled:a.backDisabled,title:e.lang.btn.back,onClick:t[0]||(t[0]=e=>a.historyBack())},K,8,G),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",disabled:a.forwardDisabled,title:e.lang.btn.forward,onClick:t[1]||(t[1]=e=>a.historyForward())},X,8,Y),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=e=>a.refreshAll()),title:e.lang.btn.refresh},Q,8,Z)]),Object(r.createElementVNode)("div",J,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:t[3]||(t[3]=e=>a.showModal("NewFileModal")),title:e.lang.btn.file},te,8,ee),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",onClick:t[4]||(t[4]=e=>a.showModal("NewFolderModal")),title:e.lang.btn.folder},re,8,ne),a.uploading?(Object(r.openBlock)(),Object(r.createElementBlock)("button",{key:0,type:"button",class:"btn btn-secondary",disabled:"",title:e.lang.btn.upload},oe,8,ie)):(Object(r.openBlock)(),Object(r.createElementBlock)("button",{key:1,type:"button",class:"btn btn-secondary",onClick:t[5]||(t[5]=e=>a.showModal("UploadModal")),title:e.lang.btn.upload},se,8,ae)),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",disabled:!a.isAnyItemSelected,onClick:t[6]||(t[6]=e=>a.showModal("DeleteModal")),title:e.lang.btn.delete},ce,8,le)]),Object(r.createElementVNode)("div",ue,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",disabled:!a.isAnyItemSelected,title:e.lang.btn.copy,onClick:t[7]||(t[7]=e=>a.toClipboard("copy"))},pe,8,de),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",disabled:!a.isAnyItemSelected,title:e.lang.btn.cut,onClick:t[8]||(t[8]=e=>a.toClipboard("cut"))},fe,8,he),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",disabled:!a.clipboardType,title:e.lang.btn.paste,onClick:t[9]||(t[9]=(...e)=>a.paste&&a.paste(...e))},ge,8,me)]),Object(r.createElementVNode)("div",be,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",title:e.lang.btn.hidden,onClick:t[10]||(t[10]=(...e)=>a.toggleHidden&&a.toggleHidden(...e))},[Object(r.createElementVNode)("i",{class:Object(r.normalizeClass)(["bi",[a.hiddenFiles?"bi-eye-fill":"bi-eye-slash-fill"]])},null,2)],8,ve)])]),Object(r.createElementVNode)("div",ye,[Object(r.createElementVNode)("div",xe,[Object(r.createElementVNode)("button",{type:"button",class:Object(r.normalizeClass)(["btn btn-secondary",["table"===a.viewType?"active":""]]),onClick:t[11]||(t[11]=e=>a.selectView("table")),title:e.lang.btn.table},ke,10,we),Object(r.createElementVNode)("button",{type:"button",class:Object(r.normalizeClass)(["btn btn-secondary",["grid"===a.viewType?"active":""]]),onClick:t[12]||(t[12]=e=>a.selectView("grid")),title:e.lang.btn.grid},Ce,10,_e)]),Object(r.createElementVNode)("div",Se,[Object(r.createElementVNode)("button",{type:"button",class:Object(r.normalizeClass)(["btn btn-secondary",{active:a.fullScreen}]),title:e.lang.btn.fullScreen,onClick:t[13]||(t[13]=(...e)=>a.screenToggle&&a.screenToggle(...e))},Ee,10,Oe)]),Object(r.createElementVNode)("div",je,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-secondary",title:e.lang.btn.about,onClick:t[14]||(t[14]=e=>a.showModal("AboutModal"))},Me,8,Te)])])])])}]]);const Le={class:"fm-tree"},ze={class:"fm-tree-disk sticky-top"},Fe=Object(r.createElementVNode)("i",{class:"bi bi-hdd"},null,-1);const Pe={class:"list-unstyled fm-tree-branch"},Ie=["onClick"],Re=["onClick"],Be={key:1,class:"bi bi-dash"};var Ve={name:"TreeBranch",props:{parentId:{type:Number,required:!0}},computed:{subDirectories(){return this.$store.getters["fm/tree/directories"].filter(e=>e.parentId===this.parentId)}},methods:{isDirectorySelected(e){return this.$store.state.fm.left.selectedDirectory===e},arrowState(e){return this.subDirectories[e].props.showSubdirectories},showSubdirectories(e,t){t?this.$store.dispatch("fm/tree/hideSubdirectories",e):this.$store.dispatch("fm/tree/showSubdirectories",e)},selectDirectory(e){this.isDirectorySelected(e)||this.$store.dispatch("fm/left/selectDirectory",{path:e,history:!0})}}};n(108);var $e={name:"FolderTree",components:{branch:l()(Ve,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("tree-branch",!0);return Object(r.openBlock)(),Object(r.createElementBlock)("ul",Pe,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.subDirectories,(e,t)=>(Object(r.openBlock)(),Object(r.createElementBlock)("li",{key:t},[Object(r.createElementVNode)("p",{class:Object(r.normalizeClass)(["unselectable",{selected:a.isDirectorySelected(e.path)}]),onClick:t=>a.selectDirectory(e.path)},[e.props.hasSubdirectories?(Object(r.openBlock)(),Object(r.createElementBlock)("i",{key:0,class:Object(r.normalizeClass)(["bi",[a.arrowState(t)?"bi-dash-square":"bi-plus-square"]]),onClick:Object(r.withModifiers)(t=>a.showSubdirectories(e.path,e.props.showSubdirectories),["stop"])},null,10,Re)):(Object(r.openBlock)(),Object(r.createElementBlock)("i",Be)),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(e.basename),1)],10,Ie),Object(r.createVNode)(r.Transition,{name:"fade-tree"},{default:Object(r.withCtx)(()=>[e.props.hasSubdirectories?Object(r.withDirectives)((Object(r.openBlock)(),Object(r.createBlock)(s,{key:0,"parent-id":e.id},null,8,["parent-id"])),[[r.vShow,a.arrowState(t)]]):Object(r.createCommentVNode)("",!0)]),_:2},1024)]))),128))])}]])},computed:{selectedDisk(){return this.$store.getters["fm/selectedDisk"]}}};n(110);var qe=l()($e,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("branch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",Le,[Object(r.createElementVNode)("div",ze,[Fe,Object(r.createTextVNode)(" "+Object(r.toDisplayString)(a.selectedDisk),1)]),Object(r.createVNode)(s,{"parent-id":0})])}]]);const He={class:"fm-content d-flex flex-column"},We={class:"fm-content-body"};const Ue={class:"fm-disk-list"},Ge={class:"list-inline"},Ke=["onClick"],Ye=Object(r.createElementVNode)("i",{class:"bi bi-hdd"},null,-1);var Xe={name:"DiskList",props:{manager:{type:String,required:!0}},computed:{disks(){return this.$store.getters["fm/diskList"]},selectedDisk(){return this.$store.state.fm[this.manager].selectedDisk}},methods:{selectDisk(e){this.selectedDisk!==e&&this.$store.dispatch("fm/selectDisk",{disk:e,manager:this.manager})}}};n(112);var Ze=l()(Xe,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",Ue,[Object(r.createElementVNode)("ul",Ge,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.disks,(e,t)=>(Object(r.openBlock)(),Object(r.createElementBlock)("li",{class:"list-inline-item",key:t},[Object(r.createElementVNode)("span",{class:Object(r.normalizeClass)(["badge",[e===a.selectedDisk?"bg-secondary":"bg-light text-dark"]]),onClick:t=>a.selectDisk(e)},[Ye,Object(r.createTextVNode)(" "+Object(r.toDisplayString)(e),1)],10,Ke)]))),128))])])}]]);const Qe={class:"fm-breadcrumb"},Je={"aria-label":"breadcrumb"},et=[Object(r.createElementVNode)("span",{class:"badge bg-secondary"},[Object(r.createElementVNode)("i",{class:"bi bi-hdd"})],-1)],tt=["onClick"];var nt={name:"BreadCrumb",props:{manager:{type:String,required:!0}},computed:{activeManager(){return this.$store.state.fm.activeManager},selectedDisk(){return this.$store.state.fm[this.manager].selectedDisk},selectedDirectory(){return this.$store.state.fm[this.manager].selectedDirectory},breadcrumb(){return this.$store.getters[`fm/${this.manager}/breadcrumb`]}},methods:{selectDirectory(e){const t=this.breadcrumb.slice(0,e+1).join("/");t!==this.selectedDirectory&&this.$store.dispatch(`fm/${this.manager}/selectDirectory`,{path:t,history:!0})},selectMainDirectory(){this.selectedDirectory&&this.$store.dispatch(`fm/${this.manager}/selectDirectory`,{path:null,history:!0})}}};n(114);var rt=l()(nt,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",Qe,[Object(r.createElementVNode)("nav",Je,[Object(r.createElementVNode)("ol",{class:Object(r.normalizeClass)(["breadcrumb",[n.manager===a.activeManager?"active-manager":"bg-light"]])},[Object(r.createElementVNode)("li",{class:"breadcrumb-item",onClick:t[0]||(t[0]=(...e)=>a.selectMainDirectory&&a.selectMainDirectory(...e))},et),(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.breadcrumb,(e,t)=>(Object(r.openBlock)(),Object(r.createElementBlock)("li",{class:Object(r.normalizeClass)(["breadcrumb-item text-truncate",[a.breadcrumb.length===t+1?"active":""]]),key:t,onClick:e=>a.selectDirectory(t)},[Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(e),1)],10,tt))),128))],2)])])}]]);const it={class:"fm-table"},ot={class:"table table-sm"},at={class:"bi bi-sort-down"},st={class:"bi bi-sort-up"},lt={class:"bi bi-sort-down"},ct={class:"bi bi-sort-up"},ut={class:"bi bi-sort-down"},dt={class:"bi bi-sort-up"},pt={class:"bi bi-sort-down"},ht={class:"bi bi-sort-up"},ft={key:0},mt=[Object(r.createElementVNode)("i",{class:"bi bi-arrow-90deg-up"},null,-1)],gt=["onClick","onContextmenu"],bt=["onDblclick"],vt=Object(r.createElementVNode)("i",{class:"bi bi-folder"},null,-1),yt=Object(r.createElementVNode)("td",null,null,-1),xt=["onClick","onDblclick","onContextmenu"];var wt=n(14),kt={computed:{selectedDisk(){return this.$store.state.fm[this.manager].selectedDisk},selectedDirectory(){return this.$store.state.fm[this.manager].selectedDirectory},files(){return this.$store.getters[`fm/${this.manager}/files`]},directories(){return this.$store.getters[`fm/${this.manager}/directories`]},selected(){return this.$store.state.fm[this.manager].selected},acl(){return this.$store.state.fm.settings.acl},isRootPath(){return null===this.$store.state.fm[this.manager].selectedDirectory}},methods:{selectDirectory(e){this.$store.dispatch(`fm/${this.manager}/selectDirectory`,{path:e,history:!0})},levelUp(){if(this.selectedDirectory){const e=this.selectedDirectory.split("/").slice(0,-1).join("/");this.$store.dispatch(`fm/${this.manager}/selectDirectory`,{path:e||null,history:!0})}},checkSelect(e,t){return this.selected[e].includes(t)},selectItem(e,t,n){const r=this.selected[e].includes(t);(n.ctrlKey||n.metaKey)&&(r?this.$store.commit(`fm/${this.manager}/removeSelected`,{type:e,path:t}):this.$store.commit(`fm/${this.manager}/setSelected`,{type:e,path:t})),n.ctrlKey||r||n.metaKey||this.$store.commit(`fm/${this.manager}/changeSelected`,{type:e,path:t})},contextMenu(e,t){const n="dir"===e.type?"directories":"files";this.selected[n].includes(e.path)||this.$store.commit(`fm/${this.manager}/changeSelected`,{type:n,path:e.path}),$.emit("contextMenu",t)},selectAction(e,t){this.$store.state.fm.fileCallback?this.$store.dispatch("fm/url",{disk:this.selectedDisk,path:e}).then(e=>{"success"===e.data.result.status&&this.$store.state.fm.fileCallback(e.data.url)}):t&&(this.$store.state.fm.settings.imageExtensions.includes(t.toLowerCase())?this.$store.commit("fm/modal/setModalState",{modalName:"PreviewModal",show:!0}):Object.keys(this.$store.state.fm.settings.textExtensions).includes(t.toLowerCase())?this.$store.commit("fm/modal/setModalState",{modalName:"TextEditModal",show:!0}):this.$store.state.fm.settings.audioExtensions.includes(t.toLowerCase())?this.$store.commit("fm/modal/setModalState",{modalName:"AudioPlayerModal",show:!0}):this.$store.state.fm.settings.videoExtensions.includes(t.toLowerCase())?this.$store.commit("fm/modal/setModalState",{modalName:"VideoPlayerModal",show:!0}):"pdf"===t.toLowerCase()&&this.$store.dispatch("fm/openPDF",{disk:this.selectedDisk,path:e}))}}},_t={name:"table-view",mixins:[Ne.a,wt.a,kt],props:{manager:{type:String,required:!0}},computed:{sortSettings(){return this.$store.state.fm[this.manager].sort}},methods:{sortBy(e){this.$store.dispatch(`fm/${this.manager}/sortBy`,{field:e,direction:null})}}};n(116);var Ct=l()(_t,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",it,[Object(r.createElementVNode)("table",ot,[Object(r.createElementVNode)("thead",null,[Object(r.createElementVNode)("tr",null,[Object(r.createElementVNode)("th",{class:"w-65",onClick:t[0]||(t[0]=e=>a.sortBy("name"))},[Object(r.createTextVNode)(Object(r.toDisplayString)(e.lang.manager.table.name)+" ",1),"name"===a.sortSettings.field?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:0},[Object(r.withDirectives)(Object(r.createElementVNode)("i",at,null,512),[[r.vShow,"down"===a.sortSettings.direction]]),Object(r.withDirectives)(Object(r.createElementVNode)("i",st,null,512),[[r.vShow,"up"===a.sortSettings.direction]])],64)):Object(r.createCommentVNode)("",!0)]),Object(r.createElementVNode)("th",{class:"w-10",onClick:t[1]||(t[1]=e=>a.sortBy("size"))},[Object(r.createTextVNode)(Object(r.toDisplayString)(e.lang.manager.table.size)+" ",1),"size"===a.sortSettings.field?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:0},[Object(r.withDirectives)(Object(r.createElementVNode)("i",lt,null,512),[[r.vShow,"down"===a.sortSettings.direction]]),Object(r.withDirectives)(Object(r.createElementVNode)("i",ct,null,512),[[r.vShow,"up"===a.sortSettings.direction]])],64)):Object(r.createCommentVNode)("",!0)]),Object(r.createElementVNode)("th",{class:"w-10",onClick:t[2]||(t[2]=e=>a.sortBy("type"))},[Object(r.createTextVNode)(Object(r.toDisplayString)(e.lang.manager.table.type)+" ",1),"type"===a.sortSettings.field?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:0},[Object(r.withDirectives)(Object(r.createElementVNode)("i",ut,null,512),[[r.vShow,"down"===a.sortSettings.direction]]),Object(r.withDirectives)(Object(r.createElementVNode)("i",dt,null,512),[[r.vShow,"up"===a.sortSettings.direction]])],64)):Object(r.createCommentVNode)("",!0)]),Object(r.createElementVNode)("th",{class:"w-auto",onClick:t[3]||(t[3]=e=>a.sortBy("date"))},[Object(r.createTextVNode)(Object(r.toDisplayString)(e.lang.manager.table.date)+" ",1),"date"===a.sortSettings.field?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:0},[Object(r.withDirectives)(Object(r.createElementVNode)("i",pt,null,512),[[r.vShow,"down"===a.sortSettings.direction]]),Object(r.withDirectives)(Object(r.createElementVNode)("i",ht,null,512),[[r.vShow,"up"===a.sortSettings.direction]])],64)):Object(r.createCommentVNode)("",!0)])])]),Object(r.createElementVNode)("tbody",null,[e.isRootPath?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(),Object(r.createElementBlock)("tr",ft,[Object(r.createElementVNode)("td",{colspan:"4",class:"fm-content-item",onClick:t[4]||(t[4]=(...t)=>e.levelUp&&e.levelUp(...t))},mt)])),(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e.directories,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("tr",{key:"d-"+n,class:Object(r.normalizeClass)({"table-info":e.checkSelect("directories",t.path)}),onClick:n=>e.selectItem("directories",t.path,n),onContextmenu:Object(r.withModifiers)(n=>e.contextMenu(t,n),["prevent"])},[Object(r.createElementVNode)("td",{class:Object(r.normalizeClass)(["fm-content-item unselectable",e.acl&&0===t.acl?"text-hidden":""]),onDblclick:n=>e.selectDirectory(t.path)},[vt,Object(r.createTextVNode)(" "+Object(r.toDisplayString)(t.basename),1)],42,bt),yt,Object(r.createElementVNode)("td",null,Object(r.toDisplayString)(e.lang.manager.table.folder),1),Object(r.createElementVNode)("td",null,Object(r.toDisplayString)(e.timestampToDate(t.timestamp)),1)],42,gt))),128)),(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e.files,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("tr",{key:"f-"+n,class:Object(r.normalizeClass)({"table-info":e.checkSelect("files",t.path)}),onClick:n=>e.selectItem("files",t.path,n),onDblclick:n=>e.selectAction(t.path,t.extension),onContextmenu:Object(r.withModifiers)(n=>e.contextMenu(t,n),["prevent"])},[Object(r.createElementVNode)("td",{class:Object(r.normalizeClass)(["fm-content-item unselectable",e.acl&&0===t.acl?"text-hidden":""])},[Object(r.createElementVNode)("i",{class:Object(r.normalizeClass)(["bi",e.extensionToIcon(t.extension)])},null,2),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(t.filename?t.filename:t.basename),1)],2),Object(r.createElementVNode)("td",null,Object(r.toDisplayString)(e.bytesToHuman(t.size)),1),Object(r.createElementVNode)("td",null,Object(r.toDisplayString)(t.extension),1),Object(r.createElementVNode)("td",null,Object(r.toDisplayString)(e.timestampToDate(t.timestamp)),1)],42,xt))),128))])])])}]]);const St={class:"fm-grid"},Ot={class:"d-flex align-content-start flex-wrap"},Et=[Object(r.createElementVNode)("div",{class:"fm-item-icon"},[Object(r.createElementVNode)("i",{class:"bi bi-arrow-90deg-up pb-2"})],-1),Object(r.createElementVNode)("div",{class:"fm-item-info"},[Object(r.createElementVNode)("strong",null,"..")],-1)],jt=["title","onClick","onDblclick","onContextmenu"],Tt={class:"fm-item-icon"},Mt={class:"fm-item-info"},Nt=["title","onClick","onDblclick","onContextmenu"],At={class:"fm-item-icon"},Dt={key:0,class:"bi bi-file-earmark-lock pb-2"},Lt={class:"fm-item-info"},zt=Object(r.createElementVNode)("br",null,null,-1);const Ft={class:"fm-thumbnail"},Pt={key:0,class:"far fa-file-image fa-5x pb-2"},It=["src","alt"];var Rt=n(51);n(121);var Bt={name:"GridView",components:{Thumbnail:l()(Rt.a,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("figure",Ft,[Object(r.createVNode)(r.Transition,{name:"fade",mode:"out-in"},{default:Object(r.withCtx)(()=>[o.src?(Object(r.openBlock)(),Object(r.createElementBlock)("img",{key:1,src:o.src,alt:n.file.filename,class:"img-thumbnail"},null,8,It)):(Object(r.openBlock)(),Object(r.createElementBlock)("i",Pt))]),_:1})])}]])},mixins:[Ne.a,wt.a,kt],data:()=>({disk:""}),props:{manager:{type:String,required:!0}},mounted(){this.disk=this.selectedDisk},beforeUpdate(){this.disk!==this.selectedDisk&&(this.disk=this.selectedDisk)},computed:{imageExtensions(){return this.$store.state.fm.settings.imageExtensions}},methods:{thisImage(e){return!!e&&this.imageExtensions.includes(e.toLowerCase())}}};n(123);var Vt={name:"Manager",components:{DiskList:Ze,BreadCrumb:rt,TableView:Ct,GridView:l()(Bt,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("thumbnail");return Object(r.openBlock)(),Object(r.createElementBlock)("div",St,[Object(r.createElementVNode)("div",Ot,[e.isRootPath?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(),Object(r.createElementBlock)("div",{key:0,onClick:t[0]||(t[0]=(...t)=>e.levelUp&&e.levelUp(...t)),class:"fm-grid-item text-center"},Et)),(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e.directories,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["fm-grid-item text-center unselectable",{active:e.checkSelect("directories",t.path)}]),key:"d-"+n,title:t.basename,onClick:n=>e.selectItem("directories",t.path,n),onDblclick:Object(r.withModifiers)(n=>e.selectDirectory(t.path),["stop"]),onContextmenu:Object(r.withModifiers)(n=>e.contextMenu(t,n),["prevent"])},[Object(r.createElementVNode)("div",Tt,[Object(r.createElementVNode)("i",{class:Object(r.normalizeClass)(["bi pb-2",e.acl&&0===t.acl?"bi-lock":"bi-folder"])},null,2)]),Object(r.createElementVNode)("div",Mt,Object(r.toDisplayString)(t.basename),1)],42,jt))),128)),(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e.files,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["fm-grid-item text-center unselectable",{active:e.checkSelect("files",t.path)}]),key:"f-"+n,title:t.basename,onClick:n=>e.selectItem("files",t.path,n),onDblclick:n=>e.selectAction(t.path,t.extension),onContextmenu:Object(r.withModifiers)(n=>e.contextMenu(t,n),["prevent"])},[Object(r.createElementVNode)("div",At,[e.acl&&0===t.acl?(Object(r.openBlock)(),Object(r.createElementBlock)("i",Dt)):a.thisImage(t.extension)?(Object(r.openBlock)(),Object(r.createBlock)(s,{key:1,disk:o.disk,file:t},null,8,["disk","file"])):(Object(r.openBlock)(),Object(r.createElementBlock)("i",{key:2,class:Object(r.normalizeClass)(["bi pb-2",e.extensionToIcon(t.extension)])},null,2))]),Object(r.createElementVNode)("div",Lt,[Object(r.createTextVNode)(Object(r.toDisplayString)(`${t.filename}.${t.extension}`)+" ",1),zt,Object(r.createTextVNode)(" "+Object(r.toDisplayString)(e.bytesToHuman(t.size)),1)])],42,Nt))),128))])])}]])},props:{manager:{type:String,required:!0}},computed:{viewType(){return this.$store.state.fm[this.manager].viewType}}};n(125);var $t=l()(Vt,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("disk-list"),l=Object(r.resolveComponent)("bread-crumb"),c=Object(r.resolveComponent)("table-view"),u=Object(r.resolveComponent)("grid-view");return Object(r.openBlock)(),Object(r.createElementBlock)("div",He,[Object(r.createVNode)(s,{manager:n.manager},null,8,["manager"]),Object(r.createVNode)(l,{manager:n.manager},null,8,["manager"]),Object(r.createElementVNode)("div",We,["table"===a.viewType?(Object(r.openBlock)(),Object(r.createBlock)(c,{key:0,manager:n.manager},null,8,["manager"])):(Object(r.openBlock)(),Object(r.createBlock)(u,{key:1,manager:n.manager},null,8,["manager"]))])])}]]);const qt={class:"modal-content fm-modal-folder"},Ht={class:"modal-header"},Wt={class:"modal-title"},Ut={class:"modal-body"},Gt={class:"form-group"},Kt={for:"fm-file-name"},Yt={class:"modal-footer"},Xt=["disabled"];var Zt=n(8),Qt={name:"NewFileModal",mixins:[Zt.a,Ne.a],data:()=>({fileName:"",fileExist:!1}),computed:{submitActive(){return this.fileName&&!this.fileExist}},methods:{validateFileName(){this.fileName?this.fileExist=this.$store.getters[`fm/${this.activeManager}/fileExist`](this.fileName):this.fileExist=!1},addFile(){this.$store.dispatch("fm/createFile",this.fileName).then(e=>{"success"===e.data.result.status&&this.hideModal()})}}};var Jt=l()(Qt,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveDirective)("focus");return Object(r.openBlock)(),Object(r.createElementBlock)("div",qt,[Object(r.createElementVNode)("div",Ht,[Object(r.createElementVNode)("h5",Wt,Object(r.toDisplayString)(e.lang.modal.newFile.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",Ut,[Object(r.createElementVNode)("div",Gt,[Object(r.createElementVNode)("label",Kt,Object(r.toDisplayString)(e.lang.modal.newFile.fieldName),1),Object(r.withDirectives)(Object(r.createElementVNode)("input",{type:"text",class:Object(r.normalizeClass)(["form-control",{"is-invalid":o.fileExist}]),id:"fm-file-name","onUpdate:modelValue":t[1]||(t[1]=e=>o.fileName=e),onKeyup:t[2]||(t[2]=(...e)=>a.validateFileName&&a.validateFileName(...e))},null,34),[[s],[r.vModelText,o.fileName]]),Object(r.withDirectives)(Object(r.createElementVNode)("div",{class:"invalid-feedback"},Object(r.toDisplayString)(e.lang.modal.newFile.fieldFeedback),513),[[r.vShow,o.fileExist]])])]),Object(r.createElementVNode)("div",Yt,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-info",disabled:!a.submitActive,onClick:t[3]||(t[3]=(...e)=>a.addFile&&a.addFile(...e))},Object(r.toDisplayString)(e.lang.btn.submit),9,Xt),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[4]||(t[4]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const en={class:"modal-content fm-modal-folder"},tn={class:"modal-header"},nn={class:"modal-title"},rn={class:"modal-body"},on={class:"form-group"},an={for:"fm-folder-name"},sn={class:"modal-footer"},ln=["disabled"];var cn={name:"NewFolderModal",mixins:[Zt.a,Ne.a],data:()=>({directoryName:"",directoryExist:!1}),computed:{submitActive(){return this.directoryName&&!this.directoryExist}},methods:{validateDirName(){this.directoryName?this.directoryExist=this.$store.getters[`fm/${this.activeManager}/directoryExist`](this.directoryName):this.directoryExist=!1},addFolder(){this.$store.dispatch("fm/createDirectory",this.directoryName).then(e=>{"success"===e.data.result.status&&this.hideModal()})}}};var un=l()(cn,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveDirective)("focus");return Object(r.openBlock)(),Object(r.createElementBlock)("div",en,[Object(r.createElementVNode)("div",tn,[Object(r.createElementVNode)("h5",nn,Object(r.toDisplayString)(e.lang.modal.newFolder.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",rn,[Object(r.createElementVNode)("div",on,[Object(r.createElementVNode)("label",an,Object(r.toDisplayString)(e.lang.modal.newFolder.fieldName),1),Object(r.withDirectives)(Object(r.createElementVNode)("input",{type:"text",class:Object(r.normalizeClass)(["form-control",{"is-invalid":o.directoryExist}]),id:"fm-folder-name","onUpdate:modelValue":t[1]||(t[1]=e=>o.directoryName=e),onKeyup:t[2]||(t[2]=(...e)=>a.validateDirName&&a.validateDirName(...e))},null,34),[[s],[r.vModelText,o.directoryName]]),Object(r.withDirectives)(Object(r.createElementVNode)("div",{class:"invalid-feedback"},Object(r.toDisplayString)(e.lang.modal.newFolder.fieldFeedback),513),[[r.vShow,o.directoryExist]])])]),Object(r.createElementVNode)("div",sn,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-info",disabled:!a.submitActive,onClick:t[3]||(t[3]=(...e)=>a.addFolder&&a.addFolder(...e))},Object(r.toDisplayString)(e.lang.btn.submit),9,ln),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[4]||(t[4]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const dn={class:"modal-content fm-modal-upload"},pn={class:"modal-header"},hn={class:"modal-title"},fn={class:"modal-body"},mn={class:"fm-btn-wrapper"},gn={type:"button",class:"btn btn-secondary btn-block"},bn={key:0,class:"fm-upload-list"},vn={class:"w-75 text-truncate"},yn={class:"text-right"},xn=Object(r.createElementVNode)("hr",null,null,-1),wn={class:"d-flex justify-content-between"},kn={class:"text-right"},_n=Object(r.createElementVNode)("hr",null,null,-1),Cn={class:"d-flex justify-content-between"},Sn={class:"form-check form-check-inline"},On=["checked"],En={class:"form-check-label",for:"uploadRadio1"},jn={class:"form-check form-check-inline"},Tn=["checked"],Mn={class:"form-check-label",for:"uploadRadio2"},Nn=Object(r.createElementVNode)("hr",null,null,-1),An={key:1},Dn={class:"fm-upload-info"},Ln={class:"progress"},zn=["aria-valuenow"],Fn={class:"modal-footer"},Pn=["disabled"];var In={name:"UploadModal",mixins:[Zt.a,Ne.a,wt.a],data:()=>({newFiles:[],overwrite:0}),computed:{progressBar(){return this.$store.state.fm.messages.actionProgress},countFiles(){return this.newFiles.length},allFilesSize(){let e=0;for(let t=0;t<this.newFiles.length;t+=1)e+=this.newFiles[t].size;return this.bytesToHuman(e)}},methods:{selectFiles(e){0===e.target.files.length?this.newFiles=[]:this.newFiles=e.target.files},uploadFiles(){this.countFiles&&this.$store.dispatch("fm/upload",{files:this.newFiles,overwrite:this.overwrite}).then(e=>{"success"===e.data.result.status&&this.hideModal()})}}};n(127);var Rn=l()(In,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",dn,[Object(r.createElementVNode)("div",pn,[Object(r.createElementVNode)("h5",hn,Object(r.toDisplayString)(e.lang.modal.upload.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",fn,[Object(r.withDirectives)(Object(r.createElementVNode)("div",mn,[Object(r.createElementVNode)("button",gn,Object(r.toDisplayString)(e.lang.btn.uploadSelect),1),Object(r.createElementVNode)("input",{type:"file",multiple:"",name:"myfile",onChange:t[1]||(t[1]=e=>a.selectFiles(e))},null,32)],512),[[r.vShow,!a.progressBar]]),a.countFiles?(Object(r.openBlock)(),Object(r.createElementBlock)("div",bn,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(o.newFiles,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"d-flex justify-content-between",key:n},[Object(r.createElementVNode)("div",vn,[Object(r.createElementVNode)("i",{class:Object(r.normalizeClass)(["bi",e.mimeToIcon(t.type)])},null,2),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(t.name),1)]),Object(r.createElementVNode)("div",yn,Object(r.toDisplayString)(e.bytesToHuman(t.size)),1)]))),128)),xn,Object(r.createElementVNode)("div",wn,[Object(r.createElementVNode)("div",null,[Object(r.createElementVNode)("strong",null,Object(r.toDisplayString)(e.lang.modal.upload.selected),1),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(o.newFiles.length),1)]),Object(r.createElementVNode)("div",kn,[Object(r.createElementVNode)("strong",null,Object(r.toDisplayString)(e.lang.modal.upload.size),1),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(a.allFilesSize),1)])]),_n,Object(r.createElementVNode)("div",Cn,[Object(r.createElementVNode)("div",null,[Object(r.createElementVNode)("strong",null,Object(r.toDisplayString)(e.lang.modal.upload.ifExist),1)]),Object(r.createElementVNode)("div",Sn,[Object(r.createElementVNode)("input",{class:"form-check-input",id:"uploadRadio1",type:"radio",name:"uploadOptions",checked:!o.overwrite,onChange:t[2]||(t[2]=e=>o.overwrite=0)},null,40,On),Object(r.createElementVNode)("label",En,Object(r.toDisplayString)(e.lang.modal.upload.skip),1)]),Object(r.createElementVNode)("div",jn,[Object(r.createElementVNode)("input",{class:"form-check-input",id:"uploadRadio2",type:"radio",name:"uploadOptions",checked:o.overwrite,onChange:t[3]||(t[3]=e=>o.overwrite=1)},null,40,Tn),Object(r.createElementVNode)("label",Mn,Object(r.toDisplayString)(e.lang.modal.upload.overwrite),1)])]),Nn])):(Object(r.openBlock)(),Object(r.createElementBlock)("div",An,[Object(r.createElementVNode)("p",null,Object(r.toDisplayString)(e.lang.modal.upload.noSelected),1)])),Object(r.createElementVNode)("div",Dn,[Object(r.withDirectives)(Object(r.createElementVNode)("div",Ln,[Object(r.createElementVNode)("div",{class:"progress-bar progress-bar-striped bg-info",role:"progressbar","aria-valuenow":a.progressBar,"aria-valuemin":"0","aria-valuemax":"100",style:Object(r.normalizeStyle)({width:a.progressBar+"%"})},Object(r.toDisplayString)(a.progressBar)+"% ",13,zn)],512),[[r.vShow,a.countFiles]])])]),Object(r.createElementVNode)("div",Fn,[Object(r.createElementVNode)("button",{type:"button",class:Object(r.normalizeClass)(["btn",[a.countFiles?"btn-info":"btn-light"]]),disabled:!a.countFiles,onClick:t[4]||(t[4]=(...e)=>a.uploadFiles&&a.uploadFiles(...e))},Object(r.toDisplayString)(e.lang.btn.submit),11,Pn),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[5]||(t[5]=t=>e.hideModal())},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const Bn={class:"modal-content fm-modal-delete"},Vn={class:"modal-header"},$n={class:"modal-title"},qn={class:"modal-body"},Hn={key:0},Wn={key:1},Un={class:"text-danger"},Gn={class:"modal-footer"};const Kn={class:"fm-additions-file-list"},Yn={class:"w-75 text-truncate"},Xn={key:0},Zn=Object(r.createElementVNode)("i",{class:"bi bi-folder"},null,-1),Qn={key:1},Jn={key:0,class:"text-end"};var er={name:"SelectedFileList",mixins:[wt.a],computed:{selectedItems(){return this.$store.getters["fm/selectedItems"]}}};n(129);var tr=l()(er,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",Kn,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.selectedItems,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"d-flex justify-content-between",key:n},[Object(r.createElementVNode)("div",Yn,["dir"===t.type?(Object(r.openBlock)(),Object(r.createElementBlock)("span",Xn,[Zn,Object(r.createTextVNode)(Object(r.toDisplayString)(t.basename),1)])):(Object(r.openBlock)(),Object(r.createElementBlock)("span",Qn,[Object(r.createElementVNode)("i",{class:Object(r.normalizeClass)(["bi",e.extensionToIcon(t.extension)])},null,2),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(t.basename),1)]))]),"file"===t.type?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Jn,Object(r.toDisplayString)(e.bytesToHuman(t.size)),1)):Object(r.createCommentVNode)("",!0)]))),128))])}]]),nr={name:"DeleteModal",mixins:[Zt.a,Ne.a],components:{SelectedFileList:tr},computed:{selectedItems(){return this.$store.getters["fm/selectedItems"]}},methods:{deleteItems(){const e=this.selectedItems.map(e=>({path:e.path,type:e.type}));this.$store.dispatch("fm/delete",e).then(()=>{this.hideModal()})}}};var rr=l()(nr,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("selected-file-list");return Object(r.openBlock)(),Object(r.createElementBlock)("div",Bn,[Object(r.createElementVNode)("div",Vn,[Object(r.createElementVNode)("h5",$n,Object(r.toDisplayString)(e.lang.modal.delete.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",qn,[a.selectedItems.length?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Hn,[Object(r.createVNode)(s)])):(Object(r.openBlock)(),Object(r.createElementBlock)("div",Wn,[Object(r.createElementVNode)("span",Un,Object(r.toDisplayString)(e.lang.modal.delete.noSelected),1)]))]),Object(r.createElementVNode)("div",Gn,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-danger",onClick:t[1]||(t[1]=(...e)=>a.deleteItems&&a.deleteItems(...e))},Object(r.toDisplayString)(e.lang.modal.delete.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[2]||(t[2]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const ir={class:"modal-content fm-modal-clipboard"},or={class:"modal-header"},ar={class:"modal-title"},sr={class:"modal-body"},lr={class:"d-flex justify-content-between"},cr={class:"w-75 text-truncate"},ur={class:"badge bg-light text-dark"},dr=Object(r.createElementVNode)("i",{class:"bi bi-hdd pe-1"},null,-1),pr={class:"text-right text-muted"},hr=["title"],fr={key:0,class:"bi bi-files"},mr={key:1,class:"bi bi-scissors"},gr=Object(r.createElementVNode)("hr",null,null,-1),br={class:"w-75 text-truncate"},vr=Object(r.createElementVNode)("i",{class:"bi bi-folder"},null,-1),yr={class:"text-right"},xr=["title","onClick"],wr={class:"w-75 text-truncate"},kr={class:"text-right"},_r=["title","onClick"],Cr={key:1},Sr={class:"modal-footer"},Or=["disabled"];var Er={name:"ClipboardModal",mixins:[Zt.a,Ne.a,wt.a],computed:{clipboard(){return this.$store.state.fm.clipboard},directories(){return this.$store.state.fm.clipboard.directories.map(e=>({path:e,name:e.split("/").slice(-1)[0]}))},files(){return this.$store.state.fm.clipboard.files.map(e=>{const t=e.split("/").slice(-1)[0];return{path:e,name:t,icon:this.extensionToIcon(t.split(".").slice(-1)[0])}})}},methods:{deleteItem(e,t){this.$store.commit("fm/truncateClipboard",{type:e,path:t})},resetClipboard(){this.$store.commit("fm/resetClipboard")}}};n(131);var jr=l()(Er,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",ir,[Object(r.createElementVNode)("div",or,[Object(r.createElementVNode)("h5",ar,Object(r.toDisplayString)(e.lang.clipboard.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",sr,[a.clipboard.type?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:0},[Object(r.createElementVNode)("div",lr,[Object(r.createElementVNode)("div",cr,[Object(r.createElementVNode)("span",ur,[dr,Object(r.createTextVNode)(" "+Object(r.toDisplayString)(a.clipboard.disk),1)])]),Object(r.createElementVNode)("div",pr,[Object(r.createElementVNode)("span",{title:`${e.lang.clipboard.actionType} - ${e.lang.clipboard[a.clipboard.type]}`},["copy"===a.clipboard.type?(Object(r.openBlock)(),Object(r.createElementBlock)("i",fr)):(Object(r.openBlock)(),Object(r.createElementBlock)("i",mr))],8,hr)])]),gr,(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.directories,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"d-flex justify-content-between",key:"d-"+n},[Object(r.createElementVNode)("div",br,[Object(r.createElementVNode)("span",null,[vr,Object(r.createTextVNode)(" "+Object(r.toDisplayString)(t.name),1)])]),Object(r.createElementVNode)("div",yr,[Object(r.createElementVNode)("button",{type:"button",class:"btn-close",title:e.lang.btn.delete,onClick:e=>a.deleteItem("directories",t.path)},null,8,xr)])]))),128)),(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.files,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"d-flex justify-content-between",key:"f-"+n},[Object(r.createElementVNode)("div",wr,[Object(r.createElementVNode)("span",null,[Object(r.createElementVNode)("i",{class:Object(r.normalizeClass)(["bi",t.icon])},null,2),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(t.name),1)])]),Object(r.createElementVNode)("div",kr,[Object(r.createElementVNode)("button",{type:"button",class:"btn-close",title:e.lang.btn.delete,onClick:e=>a.deleteItem("files",t.path)},null,8,_r)])]))),128))],64)):(Object(r.openBlock)(),Object(r.createElementBlock)("span",Cr,Object(r.toDisplayString)(e.lang.clipboard.none),1))]),Object(r.createElementVNode)("div",Sr,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-danger",disabled:!a.clipboard.type,onClick:t[1]||(t[1]=(...e)=>a.resetClipboard&&a.resetClipboard(...e))},Object(r.toDisplayString)(e.lang.btn.clear),9,Or),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[2]||(t[2]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const Tr={class:"modal-content fm-modal-errors"},Mr={class:"modal-header"},Nr={class:"modal-title"},Ar={class:"modal-body"},Dr={key:0},Lr={class:"list-unstyled"},zr={key:1},Fr={class:"modal-footer"},Pr=["disabled"];var Ir={name:"StatusModal",mixins:[Zt.a,Ne.a],computed:{errors(){return this.$store.state.fm.messages.errors}},methods:{clearErrors(){this.$store.commit("fm/messages/clearErrors")}}};var Rr=l()(Ir,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",Tr,[Object(r.createElementVNode)("div",Mr,[Object(r.createElementVNode)("h5",Nr,Object(r.toDisplayString)(e.lang.modal.status.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",Ar,[a.errors.length?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Dr,[Object(r.createElementVNode)("ul",Lr,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.errors,(e,t)=>(Object(r.openBlock)(),Object(r.createElementBlock)("li",{key:t},Object(r.toDisplayString)(e.status)+" - "+Object(r.toDisplayString)(e.message),1))),128))])])):(Object(r.openBlock)(),Object(r.createElementBlock)("div",zr,[Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(e.lang.modal.status.noErrors),1)]))]),Object(r.createElementVNode)("div",Fr,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-danger",disabled:!a.errors.length,onClick:t[1]||(t[1]=(...e)=>a.clearErrors&&a.clearErrors(...e))},Object(r.toDisplayString)(e.lang.btn.clear),9,Pr),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[2]||(t[2]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const Br={class:"modal-content fm-modal-rename"},Vr={class:"modal-header"},$r={class:"modal-title"},qr={class:"modal-body"},Hr={class:"form-group"},Wr={for:"fm-input-rename"},Ur={class:"modal-footer"},Gr=["disabled"];var Kr={name:"RenameModal",mixins:[Zt.a,Ne.a],data:()=>({name:"",directoryExist:!1,fileExist:!1}),computed:{selectedItem(){return this.$store.getters[`fm/${this.activeManager}/selectedList`][0]},checkName(){return this.directoryExist||this.fileExist||!this.name},submitDisable(){return this.checkName||this.name===this.selectedItem.basename}},mounted(){this.name=this.selectedItem.basename},methods:{validateName(){this.name!==this.selectedItem.basename&&("dir"===this.selectedItem.type?this.directoryExist=this.$store.getters[`fm/${this.activeManager}/directoryExist`](this.name):this.fileExist=this.$store.getters[`fm/${this.activeManager}/fileExist`](this.name))},rename(){const e=this.selectedItem.dirname?`${this.selectedItem.dirname}/${this.name}`:this.name;this.$store.dispatch("fm/rename",{type:this.selectedItem.type,newName:e,oldName:this.selectedItem.path}).then(()=>{this.hideModal()})}}};var Yr=l()(Kr,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveDirective)("focus");return Object(r.openBlock)(),Object(r.createElementBlock)("div",Br,[Object(r.createElementVNode)("div",Vr,[Object(r.createElementVNode)("h5",$r,Object(r.toDisplayString)(e.lang.modal.rename.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",qr,[Object(r.createElementVNode)("div",Hr,[Object(r.createElementVNode)("label",Wr,Object(r.toDisplayString)(e.lang.modal.rename.fieldName),1),Object(r.withDirectives)(Object(r.createElementVNode)("input",{type:"text",class:Object(r.normalizeClass)(["form-control",{"is-invalid":a.checkName}]),id:"fm-input-rename","onUpdate:modelValue":t[1]||(t[1]=e=>o.name=e),onKeyup:t[2]||(t[2]=(...e)=>a.validateName&&a.validateName(...e))},null,34),[[s],[r.vModelText,o.name]]),Object(r.withDirectives)(Object(r.createElementVNode)("div",{class:"invalid-feedback"},Object(r.toDisplayString)(e.lang.modal.rename.fieldFeedback)+" "+Object(r.toDisplayString)(o.directoryExist?" - "+e.lang.modal.rename.directoryExist:"")+" "+Object(r.toDisplayString)(o.fileExist?" - "+e.lang.modal.rename.fileExist:""),513),[[r.vShow,a.checkName]])])]),Object(r.createElementVNode)("div",Ur,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-info",disabled:a.submitDisable,onClick:t[3]||(t[3]=(...e)=>a.rename&&a.rename(...e))},Object(r.toDisplayString)(e.lang.btn.submit),9,Gr),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[4]||(t[4]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const Xr={class:"modal-content fm-modal-properties"},Zr={class:"modal-header"},Qr={class:"modal-title"},Jr={class:"modal-body"},ei={class:"row"},ti={class:"col-2"},ni={class:"col-9"},ri={class:"col-1 text-right"},ii=["title"],oi={class:"row"},ai={class:"col-2"},si={class:"col-9"},li={class:"col-1 text-right"},ci=["title"],ui={class:"row"},di={class:"col-2"},pi={class:"col-9"},hi={class:"col-1 text-right"},fi=["title"],mi={class:"row"},gi={class:"col-2"},bi={class:"col-9"},vi={class:"col-1 text-right"},yi=["title"],xi={class:"row"},wi={class:"col-2"},ki={class:"col-9"},_i={key:0},Ci={key:1},Si=[Object(r.createElementVNode)("i",{class:"bi bi-link-45deg"},null,-1),Object(r.createTextVNode)(" Get URL ")],Oi={key:0,class:"col-1 text-right"},Ei=["title"],ji={key:1,class:"row"},Ti={class:"col-2"},Mi={class:"col-9"},Ni={class:"col-1 text-right"},Ai=["title"],Di={key:2,class:"row"},Li={class:"col-2"},zi={class:"col-9"};var Fi={name:"PropertiesModal",mixins:[Zt.a,Ne.a,wt.a],data:()=>({url:null}),computed:{selectedDisk(){return this.$store.getters["fm/selectedDisk"]},selectedItem(){return this.$store.getters["fm/selectedItems"][0]}},methods:{getUrl(){this.$store.dispatch("fm/url",{disk:this.selectedDisk,path:this.selectedItem.path}).then(e=>{"success"===e.data.result.status&&(this.url=e.data.url)})},copyToClipboard(e){const t=document.createElement("input");t.className="copyInputHelper",document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t),$.emit("addNotification",{status:"success",message:this.lang.notifications.copyToClipboard})}}};n(133);var Pi=l()(Fi,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",Xr,[Object(r.createElementVNode)("div",Zr,[Object(r.createElementVNode)("h5",Qr,Object(r.toDisplayString)(e.lang.modal.properties.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",Jr,[Object(r.createElementVNode)("div",ei,[Object(r.createElementVNode)("div",ti,Object(r.toDisplayString)(e.lang.modal.properties.disk)+":",1),Object(r.createElementVNode)("div",ni,Object(r.toDisplayString)(a.selectedDisk),1),Object(r.createElementVNode)("div",ri,[Object(r.createElementVNode)("i",{onClick:t[1]||(t[1]=e=>a.copyToClipboard(a.selectedDisk)),title:e.lang.clipboard.copy,class:"bi bi-files"},null,8,ii)])]),Object(r.createElementVNode)("div",oi,[Object(r.createElementVNode)("div",ai,Object(r.toDisplayString)(e.lang.modal.properties.name)+":",1),Object(r.createElementVNode)("div",si,Object(r.toDisplayString)(a.selectedItem.basename),1),Object(r.createElementVNode)("div",li,[Object(r.createElementVNode)("i",{onClick:t[2]||(t[2]=e=>a.copyToClipboard(a.selectedItem.basename)),title:e.lang.clipboard.copy,class:"bi bi-files"},null,8,ci)])]),Object(r.createElementVNode)("div",ui,[Object(r.createElementVNode)("div",di,Object(r.toDisplayString)(e.lang.modal.properties.path)+":",1),Object(r.createElementVNode)("div",pi,Object(r.toDisplayString)(a.selectedItem.path),1),Object(r.createElementVNode)("div",hi,[Object(r.createElementVNode)("i",{onClick:t[3]||(t[3]=e=>a.copyToClipboard(a.selectedItem.path)),title:e.lang.clipboard.copy,class:"bi bi-files"},null,8,fi)])]),"file"===a.selectedItem.type?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:0},[Object(r.createElementVNode)("div",mi,[Object(r.createElementVNode)("div",gi,Object(r.toDisplayString)(e.lang.modal.properties.size)+":",1),Object(r.createElementVNode)("div",bi,Object(r.toDisplayString)(e.bytesToHuman(a.selectedItem.size)),1),Object(r.createElementVNode)("div",vi,[Object(r.createElementVNode)("i",{onClick:t[4]||(t[4]=t=>a.copyToClipboard(e.bytesToHuman(a.selectedItem.size))),title:e.lang.clipboard.copy,class:"bi bi-files"},null,8,yi)])]),Object(r.createElementVNode)("div",xi,[Object(r.createElementVNode)("div",wi,Object(r.toDisplayString)(e.lang.modal.properties.url)+":",1),Object(r.createElementVNode)("div",ki,[o.url?(Object(r.openBlock)(),Object(r.createElementBlock)("span",_i,Object(r.toDisplayString)(o.url),1)):(Object(r.openBlock)(),Object(r.createElementBlock)("span",Ci,[Object(r.createElementVNode)("button",{onClick:t[5]||(t[5]=(...e)=>a.getUrl&&a.getUrl(...e)),type:"button",class:"btn btn-sm btn-light"},Si)]))]),o.url?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Oi,[Object(r.createElementVNode)("i",{onClick:t[6]||(t[6]=e=>a.copyToClipboard(o.url)),title:e.lang.clipboard.copy,class:"bi bi-files"},null,8,Ei)])):Object(r.createCommentVNode)("",!0)])],64)):Object(r.createCommentVNode)("",!0),a.selectedItem.hasOwnProperty("timestamp")?(Object(r.openBlock)(),Object(r.createElementBlock)("div",ji,[Object(r.createElementVNode)("div",Ti,Object(r.toDisplayString)(e.lang.modal.properties.modified)+":",1),Object(r.createElementVNode)("div",Mi,Object(r.toDisplayString)(e.timestampToDate(a.selectedItem.timestamp)),1),Object(r.createElementVNode)("div",Ni,[Object(r.createElementVNode)("i",{onClick:t[7]||(t[7]=t=>a.copyToClipboard(e.timestampToDate(a.selectedItem.timestamp))),title:e.lang.clipboard.copy,class:"bi bi-files"},null,8,Ai)])])):Object(r.createCommentVNode)("",!0),a.selectedItem.hasOwnProperty("acl")?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Di,[Object(r.createElementVNode)("div",Li,Object(r.toDisplayString)(e.lang.modal.properties.access)+":",1),Object(r.createElementVNode)("div",zi,Object(r.toDisplayString)(e.lang.modal.properties["access_"+a.selectedItem.acl]),1)])):Object(r.createCommentVNode)("",!0)])])}]]);const Ii={class:"modal-content fm-modal-preview"},Ri={class:"modal-header"},Bi={class:"modal-title w-75 text-truncate"},Vi={class:"text-muted pl-3"},$i={class:"modal-body text-center"},qi={key:0,class:"spinner-border spinner-border-lg text-muted my-2"},Hi=[Object(r.createElementVNode)("span",{class:"visually-hidden"},"Loading...",-1)],Wi=["src","alt"],Ui={key:0,class:"d-flex justify-content-between"},Gi={class:"d-block"},Ki=["title"],Yi=[Object(r.createElementVNode)("i",{class:"bi bi-crop"},null,-1)],Xi={class:"d-block"};var Zi=n(52);n(137);var Qi=l()(Zi.a,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("cropper-module");return Object(r.openBlock)(),Object(r.createElementBlock)("div",Ii,[Object(r.createElementVNode)("div",Ri,[Object(r.createElementVNode)("h5",Bi,[Object(r.createTextVNode)(Object(r.toDisplayString)(o.showCropperModule?e.lang.modal.cropper.title:e.lang.modal.preview.title)+" ",1),Object(r.createElementVNode)("small",Vi,Object(r.toDisplayString)(a.selectedItem.basename),1)]),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",$i,[o.showCropperModule?(Object(r.openBlock)(),Object(r.createBlock)(s,{key:0,imgSrc:o.imgSrc,maxHeight:a.maxHeight,onCloseCropper:a.closeCropper},null,8,["imgSrc","maxHeight","onCloseCropper"])):(Object(r.openBlock)(),Object(r.createBlock)(r.Transition,{key:1,name:"fade",mode:"out-in"},{default:Object(r.withCtx)(()=>[o.imgSrc?(Object(r.openBlock)(),Object(r.createElementBlock)("img",{key:1,src:o.imgSrc,alt:a.selectedItem.basename,style:Object(r.normalizeStyle)({"max-height":a.maxHeight+"px"})},null,12,Wi)):(Object(r.openBlock)(),Object(r.createElementBlock)("div",qi,Hi))]),_:1}))]),a.showFooter?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Ui,[Object(r.createElementVNode)("span",Gi,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-info",title:e.lang.modal.cropper.title,onClick:t[1]||(t[1]=e=>o.showCropperModule=!0)},Yi,8,Ki)]),Object(r.createElementVNode)("span",Xi,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[2]||(t[2]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])):Object(r.createCommentVNode)("",!0)])}]]);const Ji={class:"modal-content fm-modal-text-edit"},eo={class:"modal-header"},to={class:"modal-title w-75 text-truncate"},no={class:"text-muted pl-3"},ro={class:"modal-body"},io={class:"modal-footer"};n(139);var oo=n(48),ao=n.n(oo),so=(n(141),n(143),n(97)),lo=n.n(so),co=(n(144),Object.defineProperty),uo=Object.defineProperties,po=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertySymbols,fo=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable,go=(e,t,n)=>t in e?co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bo=(e,t)=>{for(var n in t||(t={}))fo.call(t,n)&&go(e,n,t[n]);if(ho)for(var n of ho(t))mo.call(t,n)&&go(e,n,t[n]);return e};!window.CodeMirror&&(window.CodeMirror=ao.a);const vo=window.CodeMirror||ao.a;var yo=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const xo=Object(r.defineComponent)({name:"DefaultMode",props:{name:{type:String,default:"cm-textarea-"+ +new Date},value:{type:String,default:""},content:{type:String,default:""},options:{type:Object,default:()=>({})},cminstance:{type:Object,default:()=>null},placeholder:{type:String,default:""}},emits:{ready:e=>e,"update:cminstance":e=>e},setup(e,{emit:t}){const n=Object(r.ref)(),i=Object(r.ref)(null),o=()=>{i.value=Object(r.markRaw)(vo.fromTextArea(n.value,e.options)),t("update:cminstance",i.value);const o=Object(r.watch)(()=>e.cminstance,n=>{var a;n&&(null==(a=e.cminstance)||a.setValue(e.value||e.content)),t("ready",Object(r.unref)(i)),null==o||o()},{deep:!0})};return Object(r.onMounted)(()=>{o()}),{textarea:n,initialize:o}}}),wo=["name","placeholder"];var ko=yo(xo,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("textarea",{ref:"textarea",name:e.$props.name,placeholder:e.$props.placeholder},null,8,wo)}]]);window.diff_match_patch=lo.a,window.DIFF_DELETE=-1,window.DIFF_INSERT=1,window.DIFF_EQUAL=0;const _o=Object(r.defineComponent)({name:"MergeMode",props:{options:{type:Object,default:()=>({})},cminstance:{type:Object,default:()=>({})}},emits:["update:cminstance","ready"],setup(e,{emit:t}){const n=Object(r.ref)(),i=Object(r.ref)(),o=()=>{n.value=Object(r.markRaw)(vo.MergeView(i.value,e.options)),t("update:cminstance",n.value),t("ready",n)};return Object(r.onMounted)(()=>{o()}),{mergeView:i,initialize:o}}}),Co={ref:"mergeView"};var So,Oo,Eo=yo(_o,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",Co,null,512)}]]);(Oo=So||(So={})).info="info",Oo.warning="warning",Oo.error="error";const jo=[{regex:/(\[.*?\])([ \t]*)(<error>[ \t])(.+)/,token:["tag","","error.strong","error.strong"],sol:!0},{regex:/(\[.*?\])([ \t]*)(<info>)(.+)(.?)/,token:["tag","","bracket","bracket","hr"],sol:!0},{regex:/(\[.*?\])([ \t]*)(<warning>)(.+)(.?)/,token:["tag","","comment","comment","hr"],sol:!0}];vo.defineSimpleMode("fclog",{start:[...jo,{regex:/.*/,token:"hr"}],error:[...jo,{regex:/.*/,token:"error.strong"}],info:[...jo,{regex:/.*/,token:"bracket"}],warning:[...jo,{regex:/.*\[/,token:"comment"}]}),vo.defineSimpleMode("log",{start:[{regex:/^[=]+[^=]*[=]+/,token:"strong"},{regex:/([^\w])([A-Z][\w]*)/,token:["","string"]},{regex:/(^[A-Z][\w]*)/,token:"string"}]});const To=Object(r.defineComponent)({name:"CodemirrorFclog",props:{value:{type:String,default:""},name:{type:String,default:"cm-textarea-"+ +new Date},options:{type:Object,default:()=>({})},cminstance:{type:Object,default:()=>({})},placeholder:{type:String,default:""}},emits:["update:cminstance","ready"],setup(e,{emit:t}){const n=Object(r.ref)(),i=Object(r.ref)(null),o=(t=e.cminstance)=>{t.getAllMarks().forEach(e=>e.clear());const n=t.getValue(),r=[].concat(function(e){const t=/#link#(.+)#link#/g,n=[];let r;for(r=t.exec(e);r;){const i=document.createElement("a"),o=JSON.parse(r[1]),a=Object.entries(o);for(const[e,t]of a)i.setAttribute(e,t);i.className="editor_custom_link",i.innerHTML="logDownload",n.push({start:r.index,end:r.index+r[0].length,node:i}),r=t.exec(e)}return n}(n)).concat(function(e){const t=[];return function(){const n=/#log<(\w*)>log#((.|\r\n|\n)*?)#log<(\w*)>log#/g;let r;for(r=n.exec(e);r;){const i=r[0].replace(/\r\n/g,"\n").split("\n"),o=r[2].replace(/\r\n/g,"\n").split("\n"),a=document.createElement("span"),s=r[1];a.className="c-editor--log__"+s;let l=0;for(let e=0;e<i.length;e++){const n=i[e],s=o[e],c=a.cloneNode(!1);c.innerText=s,t.push({start:r.index+l,end:r.index+l+n.length,node:c}),l=l+n.length+1}r=n.exec(e)}}(),t}(n));for(let e=0;e<r.length;e++){const n=r[e];t.markText(t.posFromIndex(n.start),t.posFromIndex(n.end),{replacedWith:n.node})}},a=()=>{var a;i.value=Object(r.markRaw)(vo.fromTextArea(n.value,e.options)),t("update:cminstance",Object(r.unref)(i)),null==(a=i.value)||a.on("change",o)};return Object(r.watch)(()=>e.cminstance,n=>{var r;n&&(o(e.cminstance),null==(r=e.cminstance)||r.setValue(e.value),t("ready",i))},{deep:!0,immediate:!0}),Object(r.onMounted)(()=>{a()}),{initialize:a,textarea:n}}}),Mo=["name","placeholder"];var No=yo(To,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("textarea",{ref:"textarea",name:e.$props.name,placeholder:e.$props.placeholder},null,8,Mo)}]]);const Ao={"update:value":e=>e,change:(e,t)=>({value:e,cm:t}),input:e=>e,ready:e=>e},Do=["changes","scroll","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"],Lo=bo(bo({},Ao),(()=>{const e={};return Do.forEach(t=>{e[t]=(...e)=>e}),e})()),zo={mode:"text",theme:"default",lineNumbers:!0,smartIndent:!0,indentUnit:2};const Fo=({props:e,cminstance:t,emit:n,internalInstance:i,content:o})=>{const a=Object(r.computed)(()=>{var n;return e.merge?null==(n=Object(r.unref)(t))?void 0:n.editor():Object(r.unref)(t)});return{listenerEvents:()=>{a.value.on("change",t=>{const r=t.getValue();r!==o.value&&(o.value=r,o.value&&n("update:value",o.value||""),o.value&&n("input",o.value||""),Promise.resolve().then(()=>{n("change",o.value,t)}),e.keepCursorInEnd&&function(e){Promise.resolve().then(()=>{const t=e.getScrollInfo();e.scrollTo(t.left,t.height)})}(t))});const t={};(()=>{const e=[];return Object.keys(null==i?void 0:i.vnode.props).forEach(t=>{if(t.startsWith("on")){const n=t.replace(t[2],t[2].toLowerCase()).slice(2);!Ao[n]&&e.push(n)}}),e})().filter(e=>!t[e]&&(t[e]=!0)).forEach(e=>{a.value.on(e,(...t)=>{n(e,...t)})})}}};const Po=Object(r.defineComponent)({props:{value:{type:String,default:""},options:{type:Object,default:()=>zo},globalOptions:{type:Object,default:()=>zo},placeholder:{type:String,default:""},border:{type:Boolean,default:!1},width:{type:[String,Number],default:null},height:{type:[String,Number],default:null},originalStyle:{type:Boolean,default:!1},keepCursorInEnd:{type:Boolean,default:!1},merge:{type:Boolean,default:!1},name:{type:String,default:""},marker:{type:Function,default:()=>null},unseenLines:{type:Array,default:()=>[]}},emits:Lo,setup(e,{expose:t,emit:n}){var i,o;const a=e;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n=Object(e);for(let e=1;e<arguments.length;e++){const t=arguments[e];if(null!=t)for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},writable:!0,configurable:!0});const s=Object(r.ref)(null),l=Object(r.ref)(""),c=Object(r.shallowRef)(ko),u=Object(r.ref)(bo(bo(bo({},zo),a.globalOptions),a.options)),d=Object(r.getCurrentInstance)(),p=a.name||(null==(o=null==(i=null==d?void 0:d.parent)?void 0:i.type)?void 0:o.name)||void 0,h=Object(r.ref)(null),f=Object(r.computed)(()=>{var e;return a.merge?null==(e=Object(r.unref)(s))?void 0:e.editor():Object(r.unref)(s)}),{refresh:m,resize:g,destroy:b,containerHeight:v,reviseStyle:y}=function({props:e,cminstance:t,presetRef:n}){const i=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.computed)(()=>{var n;return e.merge?null==(n=Object(r.unref)(t))?void 0:n.editor():Object(r.unref)(t)}),s=()=>{Object(r.nextTick)(()=>{var e;null==(e=a.value)||e.refresh()})},l=()=>{var e;const t=null==(e=a.value)?void 0:e.getWrapperElement();null==t||t.remove()},c=()=>{const e=document.querySelector(".CodeMirror-gutters");return"0"!==(null==e?void 0:e.style.left.replace("px",""))};return{reload:()=>{var e,t,r;const i=null==(e=a.value)?void 0:e.getDoc().getHistory();null==(t=n.value)||t.initialize(),l(),null==(r=a.value)||r.getDoc().setHistory(i)},refresh:s,resize:(t=e.width,n=e.height)=>{var r;i.value=String(t).replace("px",""),o.value=String(n).replace("px","");const s=o.value;null==(r=a.value)||r.setSize(i.value,s)},destroy:l,containerHeight:o,reviseStyle:()=>{if(s(),!c())return;const e=setInterval(()=>{c()?s():clearInterval(e)},60),t=setTimeout(()=>{clearInterval(e),clearTimeout(t)},400)}}}({props:a,cminstance:s,presetRef:h}),{listenerEvents:x}=Fo({props:a,cminstance:s,emit:n,internalInstance:d,content:l}),w=()=>{void 0!==a.unseenLines&&void 0!==a.marker&&a.unseenLines.forEach(e=>{var t,n;const r=null==(t=s.value)?void 0:t.lineInfo(e);null==(n=s.value)||n.setGutterMarker(e,"breakpoints",(null==r?void 0:r.gutterMarkers)?null:a.marker())})},k=()=>{x(),w(),g(a.width,a.height),n("ready",s.value),Object(r.watch)([()=>a.width,()=>a.height],([e,t])=>{g(e,t)},{deep:!0})};return Object(r.watch)(()=>a.options,e=>{var t;for(const n in a.options)null==(t=f.value)||t.setOption(n,Object(r.unref)(e[n]))},{deep:!0}),Object(r.watch)(()=>a.value,e=>{var t,n,r;(t=e)!==(null==(n=s.value)?void 0:n.getValue())&&(null==(r=s.value)||r.setValue(t),l.value=t,y()),w()}),Object(r.watch)(()=>a.placeholder,e=>{var t;null==(t=f.value)||t.setOption("placeholder",e)}),Object(r.watch)(()=>a.merge,e=>{"fclog"!==a.options.mode&&"log"!==a.options.mode?a.merge?c.value=Eo:c.value=ko:c.value=No},{immediate:!0}),Object(r.onBeforeUnmount)(()=>{b()}),t({cminstance:s,resize:g,refresh:m,destroy:b}),(e,t)=>{return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["codemirror-container",{merge:e.$props.merge,bordered:e.$props.border||e.$props.merge&&!a.originalStyle,"width-auto":!e.$props.width||"100%"==e.$props.width,"height-auto":!e.$props.height||"100%"==e.$props.height,"original-style":a.originalStyle}]),style:Object(r.normalizeStyle)({height:Object(r.unref)(v)+"px"})},[(Object(r.openBlock)(),Object(r.createBlock)(Object(r.resolveDynamicComponent)(Object(r.unref)(c)),Object(r.mergeProps)({ref_key:"presetRef",ref:h,cminstance:s.value,"onUpdate:cminstance":t[0]||(t[0]=e=>s.value=e),style:{height:"100%"}},(n=bo(bo({},e.$props),e.$attrs),i={options:u.value,name:Object(r.unref)(p),content:l.value},uo(n,po(i))),{onReady:k}),null,16,["cminstance"]))],6);var n,i}}});window.CodeMirror;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".codemirror-container {\n position: relative;\n display: inline-block;\n height: 100%;\n width: fit-content;\n font-size: 12px;\n overflow: hidden;\n}\n.codemirror-container.bordered {\n border-radius: 4px;\n border: 1px solid #dddddd;\n}\n.codemirror-container.width-auto {\n width: 100%;\n}\n.codemirror-container.height-auto {\n height: 100%;\n}\n.codemirror-container.height-auto .CodeMirror,\n.codemirror-container.height-auto .cm-s-default {\n height: 100% !important;\n}\n.codemirror-container .editor_custom_link {\n cursor: pointer;\n color: #1474f1;\n text-decoration: underline;\n}\n.codemirror-container .editor_custom_link:hover {\n color: #04b4fa;\n}\n.codemirror-container:not(.original-style) .CodeMirror-lines .CodeMirror-placeholder.CodeMirror-line-like {\n color: #666;\n}\n.codemirror-container:not(.original-style) .CodeMirror,\n.codemirror-container:not(.original-style) .CodeMirror-merge-pane {\n height: 100%;\n font-family: consolas !important;\n}\n.codemirror-container:not(.original-style) .CodeMirror-merge,\n.codemirror-container:not(.original-style) .CodeMirror-merge-right .CodeMirror {\n height: 100%;\n border: none !important;\n}\n.codemirror-container:not(.original-style) .c-editor--log__error {\n color: #bb0606;\n font-weight: bold;\n}\n.codemirror-container:not(.original-style) .c-editor--log__info {\n color: #333333;\n font-weight: bold;\n}\n.codemirror-container:not(.original-style) .c-editor--log__warning {\n color: #ee9900;\n}\n.codemirror-container:not(.original-style) .c-editor--log__success {\n color: #669600;\n}\n.codemirror-container:not(.original-style) .cm-header,\n.codemirror-container:not(.original-style) .cm-strong {\n font-weight: bold;\n}\n");n(145),n(47),n(74),n(56),n(54),n(146),n(154),n(53),n(75),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165);var Io={name:"TextEditModal",mixins:[Zt.a,Ne.a],components:{Codemirror:Po},data:()=>({code:"",editedCode:""}),mounted(){this.$store.dispatch("fm/getFile",{disk:this.selectedDisk,path:this.selectedItem.path}).then(e=>{"json"===this.selectedItem.extension?this.code=JSON.stringify(e.data,null,4):this.code=e.data})},computed:{selectedDisk(){return this.$store.getters["fm/selectedDisk"]},selectedItem(){return this.$store.getters["fm/selectedItems"][0]},cmOptions(){return{mode:this.$store.state.fm.settings.textExtensions[this.selectedItem.extension],theme:"blackboard",lineNumbers:!0,line:!0}},editorHeight(){return this.$store.state.fm.modal.modalBlockHeight?this.$store.state.fm.modal.modalBlockHeight-200:300}},methods:{updateFile(){const e=new FormData;e.append("disk",this.selectedDisk),e.append("path",this.selectedItem.dirname),e.append("file",new Blob([this.editedCode]),this.selectedItem.basename),this.$store.dispatch("fm/updateFile",e).then(e=>{"success"===e.data.result.status&&this.hideModal()})},onChange(e){this.editedCode=e}}};n(166);var Ro=l()(Io,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("codemirror");return Object(r.openBlock)(),Object(r.createElementBlock)("div",Ji,[Object(r.createElementVNode)("div",eo,[Object(r.createElementVNode)("h5",to,[Object(r.createTextVNode)(Object(r.toDisplayString)(e.lang.modal.editor.title)+" ",1),Object(r.createElementVNode)("small",no,Object(r.toDisplayString)(a.selectedItem.basename),1)]),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",ro,[Object(r.createVNode)(s,{ref:"fmCodeEditor",value:o.code,options:a.cmOptions,height:a.editorHeight,onChange:a.onChange},null,8,["value","options","height","onChange"])]),Object(r.createElementVNode)("div",io,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-info",onClick:t[1]||(t[1]=(...e)=>a.updateFile&&a.updateFile(...e))},Object(r.toDisplayString)(e.lang.btn.submit),1),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[2]||(t[2]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const Bo={class:"modal-content fm-modal-audio-player"},Vo={class:"modal-header"},$o={class:"modal-title"},qo={class:"modal-body"},Ho={ref:"fmAudio",controls:""},Wo=Object(r.createElementVNode)("hr",null,null,-1),Uo={class:"w-75 text-truncate"},Go={class:"text-muted pr-2"},Ko={key:0},Yo={key:1},Xo={key:1},Zo=["onClick"];var Qo=n(55),Jo=n.n(Qo),ea={name:"AudioPlayerModal",mixins:[Zt.a,Ne.a],data:()=>({player:{},playingIndex:0,status:"paused"}),mounted(){this.player=new Jo.a(this.$refs.fmAudio,{speed:{selected:1,options:[.5,1,1.5]}}),this.setSource(this.playingIndex),this.player.on("play",()=>{this.status="playing"}),this.player.on("pause",()=>{this.status="paused"}),this.player.on("ended",()=>{this.audioFiles.length>this.playingIndex+1&&this.selectTrack(this.playingIndex+1)})},beforeDestroy(){this.player.destroy()},computed:{selectedDisk(){return this.$store.getters["fm/selectedDisk"]},audioFiles(){return this.$store.getters["fm/selectedItems"]}},methods:{selectTrack(e){this.player.playing&&this.player.stop(),this.setSource(e),this.player.play(),this.playingIndex=e},setSource(e){this.player.source={type:"audio",title:this.audioFiles[e].filename,sources:[{src:`${this.$store.getters["fm/settings/baseUrl"]}stream-file?disk=${this.selectedDisk}&path=${encodeURIComponent(this.audioFiles[e].path)}`,type:"audio/"+this.audioFiles[e].extension}]}},togglePlay(){this.player.togglePlay()}}};n(168);var ta=l()(ea,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",Bo,[Object(r.createElementVNode)("div",Vo,[Object(r.createElementVNode)("h5",$o,Object(r.toDisplayString)(e.lang.modal.audioPlayer.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",qo,[Object(r.createElementVNode)("audio",Ho,null,512),Wo,(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.audioFiles,(e,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["d-flex justify-content-between py-2 px-2",o.playingIndex===n?"bg-light":""]),key:n},[Object(r.createElementVNode)("div",Uo,[Object(r.createElementVNode)("span",Go,Object(r.toDisplayString)(n)+".",1),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(e.basename),1)]),o.playingIndex===n?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:0},["playing"===o.status?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Ko,[Object(r.createElementVNode)("i",{onClick:t[1]||(t[1]=e=>a.togglePlay()),class:"bi bi-play-fill active"})])):(Object(r.openBlock)(),Object(r.createElementBlock)("div",Yo,[Object(r.createElementVNode)("i",{onClick:t[2]||(t[2]=e=>a.togglePlay()),class:"bi bi-pause-fill"})]))],64)):(Object(r.openBlock)(),Object(r.createElementBlock)("div",Xo,[Object(r.createElementVNode)("i",{onClick:e=>a.selectTrack(n),class:"bi bi-play-fill"},null,8,Zo)]))],2))),128))])])}]]);const na={class:"modal-content fm-modal-video-player"},ra={class:"modal-header"},ia={class:"modal-title w-75 text-truncate"},oa={class:"text-muted ps-3"},aa={class:"modal-body"},sa={ref:"fmVideo",controls:""};var la={name:"VideoPlayerModal",mixins:[Zt.a,Ne.a],data:()=>({player:{}}),mounted(){this.player=new Jo.a(this.$refs.fmVideo),this.player.source={type:"video",title:this.videoFile.filename,sources:[{src:`${this.$store.getters["fm/settings/baseUrl"]}stream-file?disk=${this.selectedDisk}&path=${encodeURIComponent(this.videoFile.path)}`,type:"audio/"+this.videoFile.extension}]}},beforeDestroy(){this.player.destroy()},computed:{selectedDisk(){return this.$store.getters["fm/selectedDisk"]},videoFile(){return this.$store.getters["fm/selectedItems"][0]}},methods:{}};n(170);var ca=l()(la,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",na,[Object(r.createElementVNode)("div",ra,[Object(r.createElementVNode)("h5",ia,[Object(r.createTextVNode)(Object(r.toDisplayString)(e.lang.modal.videoPlayer.title)+" ",1),Object(r.createElementVNode)("small",oa,Object(r.toDisplayString)(a.videoFile.basename),1)]),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",aa,[Object(r.createElementVNode)("video",sa,null,512)])])}]]);const ua={class:"modal-content fm-modal-zip"},da={class:"modal-header"},pa={class:"modal-title"},ha={class:"modal-body"},fa={for:"fm-zip-name"},ma={class:"input-group mb-3"},ga=Object(r.createElementVNode)("div",{class:"input-group-append"},[Object(r.createElementVNode)("span",{class:"input-group-text"},".zip")],-1),ba=Object(r.createElementVNode)("hr",null,null,-1),va={class:"modal-footer"},ya=["disabled"];var xa={name:"ZipModal",mixins:[Zt.a,Ne.a],components:{SelectedFileList:tr},data:()=>({archiveName:"",archiveExist:!1}),computed:{submitActive(){return this.archiveName&&!this.archiveExist}},methods:{validateArchiveName(){this.archiveName?this.archiveExist=this.$store.getters[`fm/${this.activeManager}/fileExist`](this.archiveName+".zip"):this.archiveExist=!1},createArchive(){this.$store.dispatch("fm/zip",this.archiveName+".zip").then(()=>{this.hideModal()})}}};var wa=l()(xa,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("selected-file-list"),l=Object(r.resolveDirective)("focus");return Object(r.openBlock)(),Object(r.createElementBlock)("div",ua,[Object(r.createElementVNode)("div",da,[Object(r.createElementVNode)("h5",pa,Object(r.toDisplayString)(e.lang.modal.zip.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",ha,[Object(r.createElementVNode)("label",fa,Object(r.toDisplayString)(e.lang.modal.zip.fieldName),1),Object(r.createElementVNode)("div",ma,[Object(r.withDirectives)(Object(r.createElementVNode)("input",{type:"text",class:Object(r.normalizeClass)(["form-control",{"is-invalid":o.archiveExist}]),id:"fm-zip-name","onUpdate:modelValue":t[1]||(t[1]=e=>o.archiveName=e),onKeyup:t[2]||(t[2]=(...e)=>a.validateArchiveName&&a.validateArchiveName(...e))},null,34),[[l],[r.vModelText,o.archiveName]]),ga,Object(r.withDirectives)(Object(r.createElementVNode)("div",{class:"invalid-feedback"},Object(r.toDisplayString)(e.lang.modal.zip.fieldFeedback),513),[[r.vShow,o.archiveExist]])]),ba,Object(r.createVNode)(s)]),Object(r.createElementVNode)("div",va,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-info",disabled:!a.submitActive,onClick:t[3]||(t[3]=(...e)=>a.createArchive&&a.createArchive(...e))},Object(r.toDisplayString)(e.lang.btn.submit),9,ya),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[4]||(t[4]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const ka={class:"modal-content fm-modal-unzip"},_a={class:"modal-header"},Ca={class:"modal-title"},Sa={class:"modal-body"},Oa={class:"d-flex justify-content-between"},Ea={class:"form-check form-check-inline"},ja=["checked"],Ta={class:"form-check-label",for:"unzipRadio1"},Ma={class:"form-check form-check-inline"},Na=["checked"],Aa={class:"form-check-label",for:"unzipRadio2"},Da=Object(r.createElementVNode)("hr",null,null,-1),La={key:0,class:"form-group"},za={for:"fm-folder-name"},Fa={key:1,class:"text-danger"},Pa={class:"modal-footer"},Ia=["disabled"];var Ra={name:"UnzipModal",mixins:[Zt.a,Ne.a],data:()=>({createFolder:!1,directoryName:"",directoryExist:!1}),computed:{submitActive(){return!this.createFolder||this.directoryName&&!this.directoryExist}},methods:{validateDirName(){this.directoryName?this.directoryExist=this.$store.getters[`fm/${this.activeManager}/directoryExist`](this.directoryName):this.directoryExist=!1},unpackArchive(){this.$store.dispatch("fm/unzip",this.createFolder?this.directoryName:null).then(()=>{this.hideModal()})}}};var Ba=l()(Ra,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveDirective)("focus");return Object(r.openBlock)(),Object(r.createElementBlock)("div",ka,[Object(r.createElementVNode)("div",_a,[Object(r.createElementVNode)("h5",Ca,Object(r.toDisplayString)(e.lang.modal.unzip.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",Sa,[Object(r.createElementVNode)("div",Oa,[Object(r.createElementVNode)("div",null,[Object(r.createElementVNode)("strong",null,Object(r.toDisplayString)(e.lang.modal.unzip.fieldRadioName),1)]),Object(r.createElementVNode)("div",Ea,[Object(r.createElementVNode)("input",{class:"form-check-input",id:"unzipRadio1",type:"radio",checked:!o.createFolder,onChange:t[1]||(t[1]=e=>o.createFolder=!1)},null,40,ja),Object(r.createElementVNode)("label",Ta,Object(r.toDisplayString)(e.lang.modal.unzip.fieldRadio1),1)]),Object(r.createElementVNode)("div",Ma,[Object(r.createElementVNode)("input",{class:"form-check-input",id:"unzipRadio2",type:"radio",checked:o.createFolder,onChange:t[2]||(t[2]=e=>o.createFolder=!0)},null,40,Na),Object(r.createElementVNode)("label",Aa,Object(r.toDisplayString)(e.lang.modal.unzip.fieldRadio2),1)])]),Da,o.createFolder?(Object(r.openBlock)(),Object(r.createElementBlock)("div",La,[Object(r.createElementVNode)("label",za,Object(r.toDisplayString)(e.lang.modal.unzip.fieldName),1),Object(r.withDirectives)(Object(r.createElementVNode)("input",{type:"text",class:Object(r.normalizeClass)(["form-control",{"is-invalid":o.directoryExist}]),id:"fm-folder-name","onUpdate:modelValue":t[3]||(t[3]=e=>o.directoryName=e),onKeyup:t[4]||(t[4]=(...e)=>a.validateDirName&&a.validateDirName(...e))},null,34),[[s],[r.vModelText,o.directoryName]]),Object(r.withDirectives)(Object(r.createElementVNode)("div",{class:"invalid-feedback"},Object(r.toDisplayString)(e.lang.modal.unzip.fieldFeedback),513),[[r.vShow,o.directoryExist]])])):(Object(r.openBlock)(),Object(r.createElementBlock)("span",Fa,Object(r.toDisplayString)(e.lang.modal.unzip.warning),1))]),Object(r.createElementVNode)("div",Pa,[Object(r.createElementVNode)("button",{type:"button",class:"btn btn-info",disabled:!a.submitActive,onClick:t[5]||(t[5]=(...e)=>a.unpackArchive&&a.unpackArchive(...e))},Object(r.toDisplayString)(e.lang.btn.submit),9,Ia),Object(r.createElementVNode)("button",{type:"button",class:"btn btn-light",onClick:t[6]||(t[6]=(...t)=>e.hideModal&&e.hideModal(...t))},Object(r.toDisplayString)(e.lang.btn.cancel),1)])])}]]);const Va={class:"modal-content fm-modal-about"},$a={class:"modal-header"},qa={class:"modal-title"},Ha={class:"modal-body"},Wa=Object(r.createElementVNode)("hr",null,null,-1),Ua={class:"row"},Ga={class:"col-3"},Ka={class:"col-9"},Ya={class:"col-3"},Xa=Object(r.createStaticVNode)('<dd class="col-9">Aleksandr Manekin (alexusmai@gmail.com)</dd><dt class="col-3">GitHub:</dt><dd class="col-9"><a href="https://github.com/alexusmai/laravel-file-manager" target="_blank"> alexusmai/laravel-file-manager </a><br><a href="https://github.com/alexusmai/vue-laravel-file-manager" target="_blank"> alexusmai/vue-laravel-file-manager </a></dd>',3);var Za={name:"AboutModal",mixins:[Zt.a,Ne.a],computed:{version(){return this.$store.state.fm.settings.version}}};var Qa={name:"ModalBlock",components:{NewFileModal:Jt,NewFolderModal:un,UploadModal:Rn,DeleteModal:rr,ClipboardModal:jr,StatusModal:Rr,RenameModal:Yr,PropertiesModal:Pi,PreviewModal:Qi,TextEditModal:Ro,AudioPlayerModal:ta,VideoPlayerModal:ca,ZipModal:wa,UnzipModal:Ba,AboutModal:l()(Za,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",Va,[Object(r.createElementVNode)("div",$a,[Object(r.createElementVNode)("h5",qa,Object(r.toDisplayString)(e.lang.modal.about.title),1),Object(r.createElementVNode)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(...t)=>e.hideModal&&e.hideModal(...t))})]),Object(r.createElementVNode)("div",Ha,[Object(r.createElementVNode)("strong",null,Object(r.toDisplayString)(e.lang.modal.about.name),1),Wa,Object(r.createElementVNode)("dl",Ua,[Object(r.createElementVNode)("dt",Ga,Object(r.toDisplayString)(e.lang.modal.about.version)+":",1),Object(r.createElementVNode)("dd",Ka,Object(r.toDisplayString)(a.version),1),Object(r.createElementVNode)("dt",Ya,Object(r.toDisplayString)(e.lang.modal.about.developer)+":",1),Xa])])])}]])},mounted(){this.$store.commit("fm/modal/setModalBlockHeight",this.$refs.fmModal.offsetHeight)},computed:{modalName(){return this.$store.state.fm.modal.modalName},modalSize(){return{"modal-xl":"PreviewModal"===this.modalName||"TextEditModal"===this.modalName,"modal-lg":"VideoPlayerModal"===this.modalName,"modal-sm":!1}}},methods:{hideModal(){this.$store.commit("fm/modal/clearModal")}}};n(172);var Ja=l()(Qa,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createBlock)(r.Transition,{name:"fm-modal"},{default:Object(r.withCtx)(()=>[Object(r.createElementVNode)("div",{class:"fm-modal",ref:"fmModal",onClick:t[1]||(t[1]=(...e)=>a.hideModal&&a.hideModal(...e))},[Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["modal-dialog",a.modalSize]),role:"document",onClick:t[0]||(t[0]=Object(r.withModifiers)(()=>{},["stop"]))},[(Object(r.openBlock)(),Object(r.createBlock)(Object(r.resolveDynamicComponent)(a.modalName)))],2)],512)]),_:1})}]]);const es={class:"fm-info-block d-flex justify-content-between"},ts={class:"col-auto"},ns={class:"col-4"},rs={class:"progress"},is=["aria-valuenow"],os={class:"col-auto text-right"},as={class:"spinner-border spinner-border-sm text-info",role:"status"},ss=[Object(r.createElementVNode)("span",{class:"visually-hidden"},"Loading...",-1)],ls=["title"],cs=[Object(r.createElementVNode)("i",{class:"bi bi-clipboard"},null,-1)],us=["title"],ds=[Object(r.createElementVNode)("i",{class:"bi bi-info-circle-fill"},null,-1)];var ps={name:"InfoBlock",mixins:[Ne.a,wt.a],computed:{activeManager(){return this.$store.state.fm.activeManager},progressBar(){return this.$store.state.fm.messages.actionProgress},hasErrors(){return!!this.$store.state.fm.messages.errors.length},filesCount(){return this.$store.getters[`fm/${this.activeManager}/filesCount`]},directoriesCount(){return this.$store.getters[`fm/${this.activeManager}/directoriesCount`]},filesSize(){return this.bytesToHuman(this.$store.getters[`fm/${this.activeManager}/filesSize`])},selectedCount(){return this.$store.getters[`fm/${this.activeManager}/selectedCount`]},selectedFilesSize(){return this.bytesToHuman(this.$store.getters[`fm/${this.activeManager}/selectedFilesSize`])},clipboardType(){return this.$store.state.fm.clipboard.type},loadingSpinner(){return this.$store.state.fm.messages.loading}},methods:{showModal(e){this.$store.commit("fm/modal/setModalState",{modalName:e,show:!0})}}};n(174);var hs=l()(ps,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",es,[Object(r.createElementVNode)("div",ts,[Object(r.withDirectives)(Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(`${e.lang.info.selected} ${a.selectedCount}`)+" "+Object(r.toDisplayString)(`${e.lang.info.selectedSize} ${a.selectedFilesSize}`),513),[[r.vShow,a.selectedCount]]),Object(r.withDirectives)(Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(`${e.lang.info.directories} ${a.directoriesCount}`)+" "+Object(r.toDisplayString)(`${e.lang.info.files} ${a.filesCount}`)+" "+Object(r.toDisplayString)(`${e.lang.info.size} ${a.filesSize}`),513),[[r.vShow,!a.selectedCount]])]),Object(r.createElementVNode)("div",ns,[Object(r.withDirectives)(Object(r.createElementVNode)("div",rs,[Object(r.createElementVNode)("div",{class:"progress-bar progress-bar-striped bg-info",role:"progressbar","aria-valuenow":a.progressBar,"aria-valuemin":"0","aria-valuemax":"100",style:Object(r.normalizeStyle)({width:a.progressBar+"%"})},Object(r.toDisplayString)(a.progressBar)+"% ",13,is)],512),[[r.vShow,a.progressBar]])]),Object(r.createElementVNode)("div",os,[Object(r.withDirectives)(Object(r.createElementVNode)("div",as,ss,512),[[r.vShow,a.loadingSpinner]]),Object(r.withDirectives)(Object(r.createElementVNode)("span",{onClick:t[0]||(t[0]=e=>a.showModal("ClipboardModal")),title:[e.lang.clipboard.title+" - "+e.lang.clipboard[a.clipboardType]]},cs,8,ls),[[r.vShow,a.clipboardType]]),Object(r.createElementVNode)("span",{onClick:t[1]||(t[1]=e=>a.showModal("StatusModal")),class:Object(r.normalizeClass)([a.hasErrors?"text-danger":"text-success"]),title:e.lang.modal.status.title},ds,10,us)])])}]]);const fs=["onClick"];var ms={computed:{selectedDisk(){return this.$store.getters["fm/selectedDisk"]},selectedItems(){return this.$store.getters["fm/selectedItems"]},selectedDiskDriver(){return this.$store.state.fm.disks[this.selectedDisk].driver},multiSelect(){return this.$store.getters["fm/selectedItems"].length>1},firstItemType(){return this.$store.getters["fm/selectedItems"][0].type}},methods:{canView(e){return!!e&&this.$store.state.fm.settings.imageExtensions.includes(e.toLowerCase())},canEdit(e){return!!e&&Object.keys(this.$store.state.fm.settings.textExtensions).includes(e.toLowerCase())},canAudioPlay(e){return!!e&&this.$store.state.fm.settings.audioExtensions.includes(e.toLowerCase())},canVideoPlay(e){return!!e&&this.$store.state.fm.settings.videoExtensions.includes(e.toLowerCase())},isZip:e=>!!e&&"zip"===e.toLowerCase()}},gs={methods:{openRule(){return!this.multiSelect&&"dir"===this.firstItemType},audioPlayRule(){return this.selectedItems.every(e=>"file"===e.type)&&this.selectedItems.every(e=>this.canAudioPlay(e.extension))},videoPlayRule(){return!this.multiSelect&&this.canVideoPlay(this.selectedItems[0].extension)},viewRule(){return!this.multiSelect&&"file"===this.firstItemType&&this.canView(this.selectedItems[0].extension)},editRule(){return!this.multiSelect&&"file"===this.firstItemType&&this.canEdit(this.selectedItems[0].extension)},selectRule(){return!this.multiSelect&&"file"===this.firstItemType&&this.$store.state.fm.fileCallback},downloadRule(){return!this.multiSelect&&"file"===this.firstItemType},copyRule:()=>!0,cutRule:()=>!0,renameRule(){return!this.multiSelect},pasteRule(){return!!this.$store.state.fm.clipboard.type},zipRule(){return"local"===this.selectedDiskDriver},unzipRule(){return"local"===this.selectedDiskDriver&&!this.multiSelect&&"file"===this.firstItemType&&this.isZip(this.selectedItems[0].extension)},deleteRule:()=>!0,propertiesRule(){return!this.multiSelect}}},bs={methods:{openAction(){this.$store.dispatch(`fm/${this.$store.state.fm.activeManager}/selectDirectory`,{path:this.selectedItems[0].path,history:!0})},audioPlayAction(){this.$store.commit("fm/modal/setModalState",{modalName:"AudioPlayerModal",show:!0})},videoPlayAction(){this.$store.commit("fm/modal/setModalState",{modalName:"VideoPlayerModal",show:!0})},viewAction(){this.$store.commit("fm/modal/setModalState",{modalName:"PreviewModal",show:!0})},editAction(){this.$store.commit("fm/modal/setModalState",{modalName:"TextEditModal",show:!0})},selectAction(){this.$store.dispatch("fm/url",{disk:this.selectedDisk,path:this.selectedItems[0].path}).then(e=>{"success"===e.data.result.status&&this.$store.state.fm.fileCallback(e.data.url)})},downloadAction(){const e=document.createElement("a");e.style.display="none",e.setAttribute("download",this.selectedItems[0].basename),this.$store.getters["fm/settings/authHeader"]?p.a.download(this.selectedDisk,this.selectedItems[0].path).then(t=>{e.href=window.URL.createObjectURL(new Blob([t.data])),document.body.appendChild(e),e.click(),document.body.removeChild(e)}):(e.href=`${this.$store.getters["fm/settings/baseUrl"]}download?disk=${this.selectedDisk}&path=${encodeURIComponent(this.selectedItems[0].path)}`,document.body.appendChild(e),e.click(),document.body.removeChild(e))},copyAction(){this.$store.dispatch("fm/toClipboard","copy")},cutAction(){this.$store.dispatch("fm/toClipboard","cut")},renameAction(){this.$store.commit("fm/modal/setModalState",{modalName:"RenameModal",show:!0})},pasteAction(){this.$store.dispatch("fm/paste")},zipAction(){this.$store.commit("fm/modal/setModalState",{modalName:"ZipModal",show:!0})},unzipAction(){this.$store.commit("fm/modal/setModalState",{modalName:"UnzipModal",show:!0})},deleteAction(){this.$store.commit("fm/modal/setModalState",{modalName:"DeleteModal",show:!0})},propertiesAction(){this.$store.commit("fm/modal/setModalState",{modalName:"PropertiesModal",show:!0})}}},vs={name:"ContextMenu",mixins:[Ne.a,ms,gs,bs],data:()=>({menuVisible:!1,menuStyle:{top:0,left:0}}),mounted(){$.on("contextMenu",e=>this.showMenu(e))},computed:{menu(){return this.$store.state.fm.settings.contextMenu}},methods:{showMenu(e){this.selectedItems&&(this.menuVisible=!0,this.$nextTick(()=>{this.$refs.contextMenu.focus(),this.setMenu(e.pageY,e.pageX)}))},setMenu(e,t){const n=this.$refs.contextMenu.parentNode,r=n.getBoundingClientRect(),i=window.scrollY+r.top,o=window.scrollX+r.left;let a=e-i,s=t-o;const l=i+(n.offsetHeight-this.$refs.contextMenu.offsetHeight-25),c=o+(n.offsetWidth-this.$refs.contextMenu.offsetWidth-25);e>l&&(a=l-i),t>c&&(s=c-o),this.menuStyle.top=a+"px",this.menuStyle.left=s+"px"},closeMenu(){this.menuVisible=!1},showMenuItem(e){return console.log(e),!!Object.prototype.hasOwnProperty.call(this,e+"Rule")&&(console.log(e+"Rule",this[e+"Rule"]()),this[e+"Rule"]())},menuAction(e){Object.prototype.hasOwnProperty.call(this,e+"Action")&&this[e+"Action"](),this.closeMenu()}}};n(176);var ys=l()(vs,[["render",function(e,t,n,i,o,a){return o.menuVisible?(Object(r.openBlock)(),Object(r.createElementBlock)("div",{key:0,ref:"contextMenu",style:Object(r.normalizeStyle)(o.menuStyle),onBlur:t[0]||(t[0]=(...e)=>a.closeMenu&&a.closeMenu(...e)),class:"fm-context-menu",tabindex:"-1"},[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(a.menu,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)("ul",{key:"g-"+n,class:"list-unstyled"},[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(t,(t,n)=>(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,null,[a.showMenuItem(t.name)?(Object(r.openBlock)(),Object(r.createElementBlock)("li",{onClick:e=>a.menuAction(t.name),key:"i-"+n},[Object(r.createElementVNode)("i",{class:Object(r.normalizeClass)(["bi",t.icon])},null,2),Object(r.createTextVNode)(" "+Object(r.toDisplayString)(e.lang.contextMenu[t.name]),1)],8,fs)):Object(r.createCommentVNode)("",!0)],64))),256))]))),128))],36)):Object(r.createCommentVNode)("",!0)}]]);const xs={class:"fm-notification"};var ws={name:"NotificationBlock",data:()=>({notifications:[]}),mounted(){$.on("addNotification",({status:e,message:t})=>this.addNotification(e,t))},methods:{addNotification(e,t){this.notifications.push({status:e,message:t}),setTimeout(()=>{this.notifications.shift()},3e3)}}};n(178);var ks=l()(ws,[["render",function(e,t,n,i,o,a){return Object(r.openBlock)(),Object(r.createElementBlock)("div",xs,[Object(r.createVNode)(r.TransitionGroup,{name:"notify"},{default:Object(r.withCtx)(()=>[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(o.notifications,(e,t)=>(Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["fm-notification-item","fm-"+e.status]),role:"alert",key:"notify-"+t},Object(r.toDisplayString)(e.message),3))),128))]),_:1})])}]]),_s={name:"FileManager",mixins:[Ne.a],components:{NavbarBlock:De,FolderTree:qe,LeftManager:$t,RightManager:$t,ModalBlock:Ja,InfoBlock:hs,ContextMenu:ys,NotificationBlock:ks},props:{settings:{type:Object,default:()=>({})}},data:()=>({interceptorIndex:{request:null,response:null}}),created(){this.$store.commit("fm/settings/manualSettings",this.settings),this.$store.commit("fm/settings/initAxiosSettings"),this.setAxiosConfig(),this.requestInterceptor(),this.responseInterceptor(),this.$store.dispatch("fm/initializeApp")},destroyed(){this.$store.dispatch("fm/resetState"),$.all.clear(),P.a.interceptors.request.eject(this.interceptorIndex.request),P.a.interceptors.response.eject(this.interceptorIndex.response)},computed:{...Object(i.c)("fm",{windowsConfig:e=>e.settings.windowsConfig,activeManager:e=>e.settings.activeManager,showModal:e=>e.modal.showModal,fullScreen:e=>e.settings.fullScreen})},methods:{setAxiosConfig(){P.a.defaults.baseURL=this.$store.getters["fm/settings/baseUrl"],P.a.defaults.headers=this.$store.getters["fm/settings/headers"]},requestInterceptor(){this.interceptorIndex.request=P.a.interceptors.request.use(e=>(this.$store.commit("fm/messages/addLoading"),e),e=>(this.$store.commit("fm/messages/subtractLoading"),Promise.reject(e)))},responseInterceptor(){this.interceptorIndex.response=P.a.interceptors.response.use(e=>{if(this.$store.commit("fm/messages/subtractLoading"),Object.prototype.hasOwnProperty.call(e.data,"result")&&e.data.result.message){const t={status:e.data.result.status,message:Object.prototype.hasOwnProperty.call(this.lang.response,e.data.result.message)?this.lang.response[e.data.result.message]:e.data.result.message};$.emit("addNotification",t),this.$store.commit("fm/messages/setActionResult",t)}return e},e=>{this.$store.commit("fm/messages/subtractLoading");const t={status:0,message:""},n={status:"error",message:""};if(e.response)if(t.status=e.response.status,e.response.data.message){const r=Object.prototype.hasOwnProperty.call(this.lang.response,e.response.data.message)?this.lang.response[e.response.data.message]:e.response.data.message;t.message=r,n.message=r}else t.message=e.response.statusText,n.message=e.response.statusText;else e.request?(t.status=e.request.status,t.message=e.request.statusText||"Network error",n.message=e.request.statusText||"Network error"):(t.message=e.message,n.message=e.message);return this.$store.commit("fm/messages/setError",t),$.emit("addNotification",n),Promise.reject(e)})},selectManager(e){this.activeManager!==e&&this.$store.commit("fm/setActiveManager",e)}}};n(180);var Cs=l()(_s,[["render",function(e,t,n,i,o,a){const s=Object(r.resolveComponent)("navbar-block"),l=Object(r.resolveComponent)("notification-block"),c=Object(r.resolveComponent)("context-menu"),u=Object(r.resolveComponent)("modal-block"),d=Object(r.resolveComponent)("left-manager"),p=Object(r.resolveComponent)("folder-tree"),h=Object(r.resolveComponent)("right-manager"),f=Object(r.resolveComponent)("info-block");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["fm d-flex flex-column",{"fm-full-screen":e.fullScreen}])},[Object(r.createVNode)(s),Object(r.createElementVNode)("div",B,[Object(r.createVNode)(l),Object(r.createVNode)(c),e.showModal?(Object(r.openBlock)(),Object(r.createBlock)(u,{key:0})):Object(r.createCommentVNode)("",!0),1===e.windowsConfig?(Object(r.openBlock)(),Object(r.createBlock)(d,{key:1,class:"col",manager:"left"})):2===e.windowsConfig?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:2},[Object(r.createVNode)(p,{class:"col-4 col-md-3"}),Object(r.createVNode)(d,{class:"col-8 col-md-9",manager:"left"})],64)):3===e.windowsConfig?(Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,{key:3},[Object(r.createVNode)(d,{class:"col-12 col-sm-6",manager:"left",onClick:t[0]||(t[0]=e=>a.selectManager("left")),onContextmenu:t[1]||(t[1]=e=>a.selectManager("left"))}),Object(r.createVNode)(h,{class:"col-12 col-sm-6",manager:"right",onClick:t[2]||(t[2]=e=>a.selectManager("right")),onContextmenu:t[3]||(t[3]=e=>a.selectManager("right"))})],64)):Object(r.createCommentVNode)("",!0)]),Object(r.createVNode)(f)],2)}]]),Ss={install:(e,t)=>{t.store||console.error("Please provide a vuex store!!"),e.component("file-manager",Cs),t.store.registerModule("fm",R)}};const Os=Object(i.a)();Object(r.createApp)(c).use(Os).use(Ss,{store:Os}).mount("#app")}]); |