bookstack/public/js/common.js

34 lines
1.0 MiB
JavaScript
Raw Normal View History

2017-09-11 00:07:57 +08:00
!function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){!function(e,t){"use strict";function n(e,t,n){if(!e)throw le("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(V(e)&&(e=e.join(" ")),V(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=V(e)?e:e&&J(e)&&e.length?e.split(/\s+/):[],W(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof Q)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===N)return e;break;default:return Q(l(e))}if(e.nodeType===N)return Q(e)}function l(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===N)return n}}function c(e,t,n){W(t,function(t){e.addClass(t,n)})}function u(e,t,n){W(t,function(t){e.removeClass(t,n)})}function f(e){return function(t,n){n.addClass&&(c(e,t,n.addClass),n.addClass=null),n.removeClass&&(u(e,t,n.removeClass),n.removeClass=null)}}function d(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||ee;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=ee},e.$$prepared=!0}return e}function p(e,t){h(e,t),m(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function m(e,t){t.to&&(e.css(t.to),t.to=null)}function g(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=v(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=$(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var l=r.domOperation!==ee?r.domOperation:null;return H(r,i),l&&(r.domOperation=l),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function v(e,t,n){function r(e){J(e)&&(e=e.split(" "));var t={};return W(e,function(e){e.length&&(t[e]=!0)}),t}var i={};e=r(e),t=r(t),W(t,function(e,t){i[t]=1}),n=r(n),W(n,function(e,t){i[t]=1===i[t]?null:-1});var o={addClass:"",removeClass:""};return W(i,function(t,n){var r,i;1===t?(r="addClass",i=!e[n]||e[n+q]):-1===t&&(r="removeClass",i=e[n]||e[n+I]),i&&(o[r].length&&(o[r]+=" "),o[r]+=n)}),o}function y(e){return e instanceof Q?e[0]:e}function _(e,t,n){var r="";t&&(r=o(t,z,!0)),n.addClass&&(r=$(r,o(n.addClass,I))),n.removeClass&&(r=$(r,o(n.removeClass,q))),r.length&&(n.preparationClasses=r,e.addClass(r))}function b(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function x(e,t){var n=t?"-"+t+"s":"";return k(e,[ae,n]),[ae,n]}function w(e,t){var n=t?"paused":"",r=F+re;return k(e,[r,n]),[r,n]}function k(e,t){var n=t[0],r=t[1];e.style[n]=r}function $(e,t){return e?t?e+" "+t:e:t}function C(e){return[oe,e+"s"]}function S(e,t){return[t?ie:ae,e+"s"]}function E(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return W(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=T(n)),0===n&&(n=null),r[t]=n}}),r}function T(e){var t=0,n=e.split(/\s*,\s*/);return W(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function A(e){return 0===e||null!=e}function M(e,t){var n=O,r=e+"s";return t?n+=te:r+=" linear all",[n,r]}function D(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function L(e,t,n){W(n,function(n){e[n]=Y(e[n])?e[
return e.replace(/&/g,"&amp;").replace(_,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(b,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=l(e),!n&&T[e]&&(n=e),n||!0!==A[e]||(r("<"),r(e),a(i,function(n,i){var o=l(i),a="img"===e&&"src"===o||"background"===o;!0!==O[o]||!0===M[o]&&!t(n,a)||(r(" "),r(i),r('="'),r(h(n)),r('"'))}),r(">"))},end:function(e){e=l(e),n||!0!==A[e]||!0===x[e]||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r(h(e))}}}function g(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&g(s),t=t.nextSibling}}var v=!1;this.$get=["$$sanitizeUri",function(e){return v&&o(A,E),function(t){var n=[];return u(t,f(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return s(e)?(v=e,this):v},i=t.bind,o=t.extend,a=t.forEach,s=t.isDefined,l=t.lowercase,c=t.noop,u=r,f=m;var y,_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/([^#-~ |!])/g,x=n("area,br,col,hr,img,wbr"),w=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),k=n("rp,rt"),$=o({},k,w),C=o({},w,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),S=o({},k,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),E=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),T=n("script,style"),A=o({},x,C,S,$),M=n("background,cite,href,longdesc,src,xlink:href"),D=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),L=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),O=o({},M,L,D);!function(e){var t;if(!e.document||!e.document.implementation)throw d("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)y=r[0];else{var i=t.createElement("html");y=t.createElement("body"),i.appendChild(y),t.appendChild(i)}}(e)}function r(e){var t=[];return f(t,c).chars(e),t.join("")}var i,o,a,s,l,c,u,f,d=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$s
;e?(t=l.getElementById(e))?a(t):(t=i(l.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var l=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ve(function(){r.$evalAsync(s)})}),s}]}function lt(e,t){return e||t?e?t?(oi(e)&&(e=e.join(" ")),oi(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function ct(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Vi)return n}}function ut(e){x(e)&&(e=e.split(" "));var t=he();return r(e,function(e){e.length&&(t[e]=!0)}),t}function ft(e){return _(e)?e:{}}function dt(e,t,n,i){function o(e){try{e.apply(null,B(arguments,1))}finally{if(0===--y)for(;_.length;)try{_.pop()()}catch(e){n.error(e)}}}function a(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function s(){$=null,l(),c()}function l(){b=C(),b=v(b)?null:b,R(b,T)&&(b=T),T=b}function c(){w===u.url()&&x===b||(w=u.url(),x=b,r(S,function(e){e(u.url(),b)}))}var u=this,f=e.location,d=e.history,h=e.setTimeout,m=e.clearTimeout,g={};u.isMock=!1;var y=0,_=[];u.$$completeOutstandingRequest=o,u.$$incOutstandingRequestCount=function(){y++},u.notifyWhenNoOutstandingRequests=function(e){0===y?e():_.push(e)};var b,x,w=f.href,k=t.find("base"),$=null,C=i.history?function(){try{return d.state}catch(e){}}:p;l(),x=b,u.url=function(t,n,r){if(v(r)&&(r=null),f!==e.location&&(f=e.location),d!==e.history&&(d=e.history),t){var o=x===r;if(w===t&&(!i.history||o))return u;var s=w&&Yt(w)===Yt(t);return w=t,x=r,!i.history||s&&o?(s||($=t),n?f.replace(t):s?f.hash=a(t):f.href=t,f.href!==t&&($=t)):(d[n?"replaceState":"pushState"](r,"",t),l(),x=b),$&&($=t),u}return $||f.href.replace(/%27/g,"'")},u.state=function(){return b};var S=[],E=!1,T=null;u.onUrlChange=function(t){return E||(i.history&&Yr(e).on("popstate",s),Yr(e).on("hashchange",s),E=!0),S.push(t),t},u.$$applicationDestroyed=function(){Yr(e).off("hashchange popstate",s)},u.$$checkUrlChange=c,u.baseHref=function(){var e=k.attr("href");return e?e.replace(/^(https?:)?\/\/[^\/]*/,""):""},u.defer=function(e,t){var n;return y++,n=h(function(){delete g[n],o(e)},t||0),g[n]=!0,n},u.defer.cancel=function(e){return!!g[e]&&(delete g[e],m(e),o(p),!0)}}function pt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new dt(e,r,t,n)}]}function ht(){this.$get=function(){function e(e,r){function i(e){e!==d&&(p?p===e&&(p=e.n):p=e,o(e.n,e.p),o(e,d),d=e,d.n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=c({},r,{id:e}),l=he(),u=r&&r.capacity||Number.MAX_VALUE,f=he(),d=null,p=null;return n[e]={put:function(e,t){if(!v(t)){if(u<Number.MAX_VALUE){i(f[e]||(f[e]={key:e}))}return e in l||a++,l[e]=t,a>u&&this.remove(p.key),t}},get:function(e){if(u<Number.MAX_VALUE){var t=f[e];if(!t)return;i(t)}return l[e]},remove:function(e){if(u<Number.MAX_VALUE){var t=f[e];if(!t)return;t===d&&(d=t.p),t===p&&(p=t.n),o(t.n,t.p),delete f[e]}e in l&&(delete l[e],a--)},removeAll:function(){l=he(),a=0,f=he(),d=p=null},destroy:function(){l=null,s=null,f=null,delete n[e]},info:function(){return c({},s,{size:a})}}}var n={};return e.info=function(){var e={};return r(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function mt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function gt(){}function vt(t,n){function i(e,t,n){var i=he();return r(e,function(e,r){if(e in T)return void(i[r]=T[e]);var o=e.match(/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/);if(!o)throw Qi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e,n?"controller bindings definition":"isolate scope definition");i[r]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||r},o[4]&&(T[e]=i[r])}),i}function a(e,t){var n={isolateScope:null,bindToController:null};if(_(e.scope)&&(!0===e.bindToController?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),_(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw Qi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);r
r.removeEventListener("error",a),o.body.removeChild(r),r=null;var s=-1,l="unknown";e&&("load"!==e.type||i.wasCalled(t)||(e={type:"error"}),l=e.type,s="error"===e.type?404:200),n&&n(s,l)},r.addEventListener("load",a),r.addEventListener("error",a),o.body.appendChild(r),a}return function(o,s,l,c,u,f,d,p,h,m){function g(){x&&x(),w&&w.abort()}function _(e,t,r,i,o){y($)&&n.cancel($),x=w=null,e(t,r,i,o)}if(s=s||e.url(),"jsonp"===Ur(o))var b=i.createCallback(s),x=a(s,b,function(e,t){var n=200===e&&i.getResponse(b);_(c,e,n,"",t),i.removeCallback(b)});else{var w=t(o,s);w.open(o,s,!0),r(u,function(e,t){y(e)&&w.setRequestHeader(t,e)}),w.onload=function(){var e=w.statusText||"",t="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=t?200:"file"===jn(s).protocol?404:0),_(c,n,t,w.getAllResponseHeaders(),e)};var k=function(){_(c,-1,null,null,"")};if(w.onerror=k,w.onabort=k,w.ontimeout=k,r(h,function(e,t){w.addEventListener(t,e)}),r(m,function(e,t){w.upload.addEventListener(t,e)}),d&&(w.withCredentials=!0),p)try{w.responseType=p}catch(e){if("json"!==p)throw e}w.send(v(l)?null:l)}if(f>0)var $=n(g,f);else L(f)&&f.then(g)}}function zt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(d,e).replace(p,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function l(o,l,d,p){function h(e){try{return e=M(e),p&&!y(e)?e:me(e)}catch(e){r(po.interr(o,e))}}if(!o.length||-1===o.indexOf(e)){var g;if(!l){g=m(a(o)),g.exp=o,g.expressions=[],g.$$watchDelegate=s}return g}p=!!p;for(var _,b,x,w=0,k=[],C=[],S=o.length,E=[],T=[];w<S;){if(-1===(_=o.indexOf(e,w))||-1===(b=o.indexOf(t,_+u))){w!==S&&E.push(a(o.substring(w)));break}w!==_&&E.push(a(o.substring(w,_))),x=o.substring(_+u,b),k.push(x),C.push(n(x,h)),w=b+f,T.push(E.length),E.push("")}if(d&&E.length>1&&po.throwNoconcat(o),!l||k.length){var A=function(e){for(var t=0,n=k.length;t<n;t++){if(p&&v(e[t]))return;E[T[t]]=e[t]}return E.join("")},M=function(e){return d?i.getTrusted(d,e):i.valueOf(e)};return c(function(e){var t=0,n=k.length,i=new Array(n);try{for(;t<n;t++)i[t]=C[t](e);return A(i)}catch(e){r(po.interr(o,e))}},{exp:o,expressions:k,$$watchDelegate:function(e,t){var n;return e.$watchGroup(C,function(r,i){var o=A(r);$(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var u=e.length,f=t.length,d=new RegExp(e.replace(/./g,o),"g"),p=new RegExp(t.replace(/./g,o),"g");return l.startSymbol=function(){return e},l.endSymbol=function(){return t},l}]}function Rt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,l,c){function u(){f?o.apply(null,d):o(m)}var f=arguments.length>4,d=f?B(arguments,4):[],p=t.setInterval,h=t.clearInterval,m=0,g=y(c)&&!c,v=(g?r:n).defer(),_=v.promise;return l=y(l)?l:0,_.$$intervalId=p(function(){g?i.defer(u):e.$evalAsync(u),v.notify(m++),l>0&&m>=l&&(v.resolve(m),h(_.$$intervalId),delete a[_.$$intervalId]),g||e.$apply()},s),a[_.$$intervalId]=v,_}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].promise.catch(p),a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Ut(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=te(t[n]);return t.join("/")}function Bt(e,t){var n=jn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||go[n.protocol]||null}function Ht(e,t){if(yo.test(e))throw vo("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var r=jn(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=Q(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Wt(e,t){return e.slice(0,t.length)===t}function Vt(e,t){if(Wt(t,e))return t.substr(e.length)}function Yt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Gt(e){return e.replace(/(#.+)|#$/,"$1")}function Zt(e){retu
;case"function":return!1;default:return n(e,t)}}function Bn(e){return null===e?"null":typeof e}function Hn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return v(n)&&(n=t.CURRENCY_SYM),v(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Gn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Wn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Gn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Vn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(jo))>-1&&(e=e.replace(jo,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===Fo;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Fo;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>Oo&&(t=t.splice(0,Oo-1),a=n-1,n=1),{d:t,e:a,i:n}}function Yn(e,t,n,r){var i=e.d,o=i.length-e.i;t=v(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var l=a;l<i.length;l++)i[l]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var c=1;c<a;c++)i[c]=0}if(s>=5)if(a-1<0){for(var u=0;u>a;u--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)}function Gn(e,t,n,r,i){if(!x(e)&&!w(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,l=Math.abs(e)+"",c="";if(a)c="∞";else{o=Vn(l),Yn(o,i,t.minFrac,t.maxFrac);var u=o.d,f=o.i,d=o.e,p=[];for(s=u.reduce(function(e,t){return e&&!t},!0);f<0;)u.unshift(0),f++;f>0?p=u.splice(f,u.length):(p=u,u=[0]);var h=[];for(u.length>=t.lgSize&&h.unshift(u.splice(-t.lgSize,u.length).join(""));u.length>t.gSize;)h.unshift(u.splice(-t.gSize,u.length).join(""));u.length&&h.unshift(u.join("")),c=h.join(n),p.length&&(c+=r+p.join("")),d&&(c+="e+"+d)}return e<0&&!s?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function Zn(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=Fo+e;return n&&(e=e.substr(e.length-t)),i+e}function Kn(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),Zn(a,t,r,i)}}function Jn(e,t,n){return function(r,i){var o=r["get"+e]();return i[Br((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function Xn(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Zn(Math[r>0?"floor":"ceil"](r/60),2)+Zn(Math.abs(r%60),2)}function Qn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function er(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function tr(e){return function(t){var n=Qn(t.getFullYear()),r=er(t),i=+r-+n;return Zn(1+Math.round(i/6048e5),e)}}function nr(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function rr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function ir(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function or(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),a.call(r,f(t[1]),f(t[2])-1,f(t[3]));var l=f(t[4]||0)-i,c=f(t[5]||0)-o,u=f(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,l,c,u,d),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,s,l="",c=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,x(n)&&(n=Io.test(n)?f(n):t(n)),w(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;i;)s=No.exec(i),s?(c=U(c,s,1),i=c.pop()):(c.push(i),i=null);var u=n.getTimezoneOffset();return o&&(u=G(o,u),n=K(n,o,!0)),r(c,function(t){a=Po[t],l+=a?a(n,e.DATETIME_FORMATS,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function ar(){return function(e,t){return v(t)&&(t=2),V(e,t)}}function sr(){return function(e,t,r){return t=Math.abs(Number(t))===1/0?Number(t):f(t),ii(t)?e:(w(e)&&(e=e.toString()),n(e)?(r=!r||isNaN(r)?0:f(r),r=r<0?Math.max(0,e.length+r):r,t>=0?lr(e,r,r+t):0===r?lr(e,t,e.length):lr(e,Math.max(0,r+t),r)):e)}}function lr(e,t,n){return x(e)?e.slice(t,n):Kr.call(e,t,n)}functio
},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw bo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Ur(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=ko[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var Co=function(e,t){this.lexer=e,this.options=t};Co.Program="Program",Co.ExpressionStatement="ExpressionStatement",Co.AssignmentExpression="AssignmentExpression",Co.ConditionalExpression="ConditionalExpression",Co.LogicalExpression="LogicalExpression",Co.BinaryExpression="BinaryExpression",Co.UnaryExpression="UnaryExpression",Co.CallExpression="CallExpression",Co.MemberExpression="MemberExpression",Co.Identifier="Identifier",Co.Literal="Literal",Co.ArrayExpression="ArrayExpression",Co.Property="Property",Co.ObjectExpression="ObjectExpression",Co.ThisExpression="ThisExpression",Co.LocalsExpression="LocalsExpression",Co.NGValueParameter="NGValueParameter",Co.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Co.Program,body:e}},expressionStatement:function(){return{type:Co.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!fn(e))throw bo("lval","Trying to assign a value to a non l-value");e={type:Co.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Co.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function()
}else if(!this.$$parsedNgModel.assign)throw Ea("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,J(this.$$element))},$render:p,$isEmpty:function(e){return v(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Sa),this.$$animate.addClass(this.$$element,Ca)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Ca),this.$$animate.addClass(this.$$element,Sa),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!ii(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function i(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}function o(e){a===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;return function(){var e=s.$$parserName||"parse";return v(s.$$parserValid)?(i(e,null),!0):(s.$$parserValid||(r(s.$validators,function(e,t){i(t,null)}),r(s.$asyncValidators,function(e,t){i(t,null)})),i(e,s.$$parserValid),s.$$parserValid)}()&&function(){var n=!0;return r(s.$validators,function(r,o){var a=Boolean(r(e,t));n=n&&a,i(o,a)}),!!n||(r(s.$asyncValidators,function(e,t){i(t,null)}),!1)}()?void function(){var n=[],a=!0;r(s.$asyncValidators,function(r,o){var s=r(e,t);if(!L(s))throw Ea("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);i(o,void 0),n.push(s.then(function(){i(o,!0)},function(){a=!1,i(o,!1)}))}),n.length?s.$$q.all(n).then(function(){o(a)},p):o(!0)}():void o(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){r.$modelValue!==o&&r.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!v(n)||void 0,this.$$parserValid)for(var i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),v(n)){this.$$parserValid=!1;break}ii(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var o=this.$modelValue,a=this.$options.getOption("allowInvalid");this.$$rawModelValue=n,a&&(this.$modelValue=n,e()),this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){a||(r.$modelValue=t?n:void 0,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),r(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");w(t[e])?t=t[e]:w(t.default)&&(t=t.default),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})}},hr({clazz:Pr,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Ta,Aa=["$rootS
(function(n){"use strict";function r(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i=e("./utils"),o=e("./helpers/normalizeHeaderName"),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=e("./adapters/xhr"):void 0!==n&&(t=e("./adapters/http")),t}(),transformRequest:[function(e,t){return o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){s.headers[e]={}}),i.forEach(["post","put","patch"],function(e){s.headers[e]=i.merge(a)}),t.exports=s}).call(this,e("_process"))},{"./adapters/http":11,"./adapters/xhr":11,"./helpers/normalizeHeaderName":31,"./utils":34,_process:422}],24:[function(e,t,n){"use strict";t.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)}}},{}],25:[function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function i(e){for(var t,n,i=String(e),a="",s=0,l=o;i.charAt(0|s)||(l="=",s%1);a+=l.charAt(63&t>>8-s%1*8)){if((n=i.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",t.exports=i},{}],26:[function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=e("./../utils");t.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,function(e,t){null!==e&&void 0!==e&&(i.isArray(e)&&(t+="[]"),i.isArray(e)||(e=[e]),i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},{"./../utils":34}],27:[function(e,t,n){"use strict";t.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},{}],28:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=r.isStandardBrowserEnv()?function(){return{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)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},{"./../utils":34}],29:[function(e,t,n){"use strict";t.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},{}],30:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(i.setAttribute("href",t),t=i.href),i.setAttribute("href",t),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return t=e(window.location.href),function(n){var i=r.isString(n)?e(n):n;return i.protocol===t.protocol&&i.host===
return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var c=i(t),u=i(n),f=i(r),d="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},p=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,f.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return l("action",e)}},{key:"defaultTarget",value:function(e){var t=l("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return l("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(u.default);e.exports=h})},{"./clipboard-action":38,"good-listener":358,"tiny-emitter":427}],40:[function(e,t,n){!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.CodeMirror=r()}(this,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(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 i(e,t,n,i){var o=r(e,t,n,i);return o.setAttribute("role","presentation"),o}function o(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 s(t,n){var r=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}function l(t,n){for(var r=t.split(" "),i=0;i<r.length;i++)r[i]&&!e(r[i]).test(n)&&(n+=" "+r[i]);return n}function c(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}functi
e.display.input.setUneditable(u),o&&c.above?a.insertBefore(u,n.gutter||n.text):a.appendChild(u),kt(c,"redraw")}}function Pt(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 Nt(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),n(t.display.measure,r("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function It(e,t){for(var n=qe(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 qt(e){return e.lineSpace.offsetTop}function zt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Rt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=n(e.measure,r("pre","x")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function Ut(e){return Ea-e.display.nativeBarWidth}function Bt(e){return e.display.scroller.clientWidth-Ut(e)-e.display.barWidth}function Ht(e){return e.display.scroller.clientHeight-Ut(e)-e.display.barHeight}function Wt(e,t,n){var r=e.options.lineWrapping,i=r&&Bt(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)}}function Vt(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(D(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Yt(e,t){t=fe(t);var r=D(t),i=e.display.externalMeasured=new yt(e.doc,t,r);i.lineN=r;var o=i.built=ft(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}function Gt(e,t,n,r){return Jt(e,Kt(e,t),n,r)}function Zt(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Cn(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Kt(e,t){var n=D(t),r=Zt(e,n);r&&!r.text?r=null:r&&r.changes&&(Ct(e,r,n,bn(e)),e.curOp.forceUpdate=!0),r||(r=Yt(e,t));var i=Vt(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Jt(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Wt(e,t.view,t.rect),t.hasHeights=!0),o=en(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}function Xt(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?(i=t-s,o=i+1):(c==e.length-3||t==l&&e[c+3]>t)&&(o=l-s,i=o-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 Qt(e,t){var n=ns;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 en(e,t,n,r){var i,o=Xt(t.map,n,r),a=o.node,s=o.start,l=o.end,c=o.collapse;if(3==a.nodeType){for(var u=0;u<4;u++){for(;s&&k(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+l<o.coverEnd&&k(t.line.text.charAt(o.coverStart+l));)++l;if(i=ra
;-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))}function jr(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 Fr(e){var t=jr(e);return t.x*=cs,t.y*=cs,t}function Pr(e,t){var n=jr(t),r=n.x,i=n.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,l=a.scrollHeight>a.clientHeight;if(r&&s||i&&l){if(i&&ma&&oa)e:for(var c=t.target,u=o.view;c!=a;c=c.parentNode)for(var f=0;f<u.length;f++)if(u[f].node==c){e.display.currentWheelTarget=c;break e}if(r&&!Qo&&!la&&null!=cs)return i&&l&&Kn(e,Math.max(0,a.scrollTop+i*cs)),Xn(e,Math.max(0,a.scrollLeft+r*cs)),(!i||i&&l)&&Fe(t),void(o.wheelStartX=null);if(i&&null!=cs){var d=i*cs,p=e.doc.scrollTop,h=p+o.wrapper.clientHeight;d<0?p=Math.max(0,p+d-50):h=Math.min(e.doc.height,h+d+50),Tr(e,{top:p,bottom:h})}ls<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(cs=(cs*ls+n)/(ls+1),++ls)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}}function Nr(e,t){var n=e[t];e.sort(function(e,t){return P(e.from(),t.from())}),t=d(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(P(o.to(),i.from())>=0){var a=z(o.from(),i.from()),s=q(o.to(),i.to()),l=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new fs(l?s:a,l?a:s))}}return new us(e,t)}function Ir(e,t){return new us([new fs(e,t||e)],0)}function qr(e){return e.text?F(e.from.line+e.text.length-1,m(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function zr(e,t){if(P(e,t.from)<0)return e;if(P(e,t.to)<=0)return qr(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+=qr(t).ch-t.to.ch),F(n,r)}function Rr(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new fs(zr(i.anchor,t),zr(i.head,t)))}return Nr(n,e.sel.primIndex)}function Ur(e,t,n){return e.line==t.line?F(n.line,e.ch-t.ch+n.ch):F(n.line+(e.line-t.line),e.ch)}function Br(e,t,n){for(var r=[],i=F(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ur(s.from,i,o),c=Ur(qr(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],f=P(u.head,u.anchor)<0;r[a]=new fs(f?c:l,f?l:c)}else r[a]=new fs(l,l)}return new us(r,e.sel.primIndex)}function Hr(e){e.doc.mode=Ye(e.options,e.doc.modeOption),Wr(e)}function Wr(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,xr(e,100),e.state.modeGen++,e.curOp&&mr(e)}function Vr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==m(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Yr(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){lt(e,n,i,r),kt(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Ka(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=E(e,s.line),f=E(e,l.line),d=m(c),p=i(c.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Vr(e,t)){var g=a(0,c.length-1);o(f,f.text,p),h&&e.remove(s.line,h),g.length&&e.insert(s.line,g)}else if(u==f)if(1==c.length)o(u,u.text.slice(0,s.ch)+d+u.text.slice(l.ch),p);else{var v=a(1,c.length-1);v.push(new Ka(d+u.text.slice(l.ch),p,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,v)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+f.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(f,d+f.text.slice(l.ch),p);var y=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}kt(e,"change",e,t)}function Gr(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function Zr(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,kn(
i.dragFunctions={enter:function(t){De(e,t)||Ie(t)},over:function(t){De(e,t)||(Gi(e,t),Ie(t))},start:function(t){return Yi(e,t)},drop:dr(e,Vi),leave:function(t){De(e,t)||Zi(e)}};var s=i.input.getField();za(s,"keyup",function(t){return yo.call(e,t)}),za(s,"keydown",dr(e,go)),za(s,"keypress",dr(e,_o)),za(s,"focus",function(t){return On(e,t)}),za(s,"blur",function(t){return jn(e,t)})}function jo(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=et(e,t):n="prev");var a=e.options.tabSize,s=E(o,t),l=f(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))==Ta||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?f(E(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 m=Math.floor(c/a);m;--m)p+=a,d+="\t";if(p<c&&(d+=h(c-p)),d!=u)return ji(o,d,F(t,0),F(t,u.length),"+input"),s.stateAfter=null,!0;for(var g=0;g<o.sel.ranges.length;g++){var v=o.sel.ranges[g];if(v.head.line==t&&v.head.ch<u.length){var y=F(t,u.length);hi(o,g,new fs(y,y));break}}}function Fo(e){Ps=e}function Po(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=e.state.pasteIncoming||"paste"==i,s=Ua(t),l=null;if(a&&r.ranges.length>1)if(Ps&&Ps.text.join("\n")==t){if(r.ranges.length%Ps.text.length==0){l=[];for(var c=0;c<Ps.text.length;c++)l.push(o.splitLines(Ps.text[c]))}}else s.length==r.ranges.length&&(l=g(s,function(e){return[e]}));for(var u,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],p=d.from(),h=d.to();d.empty()&&(n&&n>0?p=F(p.line,p.ch-n):e.state.overwrite&&!a?h=F(h.line,Math.min(E(o,h.line).text.length,h.ch+m(s).length)):Ps&&Ps.lineWise&&Ps.text.join("\n")==t&&(p=h=F(p.line,0))),u=e.curOp.updateInput;var v={from:p,to:h,text:l?l[f%l.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};Ti(e.doc,v),kt(e,"inputRead",e,v)}t&&!a&&Io(e,t),Wn(e),e.curOp.updateInput=u,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function No(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||fr(t,function(){return Po(t,n,0,null,"paste")}),!0}function Io(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=jo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(E(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=jo(e,i.head.line,"smart"));a&&kt(e,"electricInput",e,i.head.line)}}}function qo(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:F(i,0),head:F(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function zo(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Ro(){var e=r("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=r("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return oa?e.style.width="1000px":e.setAttribute("wrap","off"),da&&(e.style.border="1px solid black"),zo(e),t}function Uo(e,t,n,r,i){function o(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new F(r,t.ch,t.sticky),c=E(e,r))}function a(r){var a;if(null==(a=i?Ee(e.cm,c,t,n):Ce(c,t,n))){if(r||!o())return!1;t=Se(i,e.cm,c,t.line,n)}else t=a;return!0}var s=t,l=n,c=E(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||a(!p);p=!1){var h=c.text.charAt(t.ch)||"\n",m=x(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||m||(m="s"),u&&u!=m){n<0&&(n=1,a(),t.sticky="after");
var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==r)t[i]=null;else{var a=o.match(e(r));if(!a)return!1;var s=a.index+a[0].length;t[i]=o.slice(0,a.index)+(a.index&&s!=o.length?" ":"")+o.slice(s)||null}return!0})}),addLineWidget:hr(function(e,t,n){return zi(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ri(this,U(this,e),U(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 e=U(this,e),Ri(this,e,e,n,"bookmark")},findMarksAt:function(e){e=U(this,e);var t=[],n=E(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=U(this,e),t=U(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}),U(this,F(n,t))},indexFromPos:function(e){e=U(this,e);var t=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 _s(A(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 _s(A(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}],Hi(r,Bi(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Lo&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=t.linked[n];if(r.doc==e){t.linked.splice(n,1),e.unlinkDoc(t),Wi(Bi(t));break}}if(e.history==this.history){var i=[e.id];Gr(e,function(e){return i.push(e.id)},!0),e.history=new Xr(null),e.history.done=ui(this.history.done,i),e.history.undone=ui(this.history.undone,i)}},iterLinkedDocs:function(e){Gr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ua(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:hr(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Jr(this.cm))})}),_s.prototype.eachLine=_s.prototype.iter;for(var bs=0,xs=!1,ws={3:"Enter",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",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"},ks=0;ks<10;ks++)ws[ks+48]=ws[ks+96]=String(ks);for(var $s=65;$s<=90;$s++)ws[$s]=String.fromCharCode($s);for(var Cs=1;Cs<=12;Cs++)ws[Cs+111]=ws[Cs+63235]="F"+Cs;var Ss={};Ss.basic={Left:"goCharLeft",Right:"g
t.style.left=s+"px"),n&&Un(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:pr(go),triggerOnKeyPress:pr(_o),triggerOnKeyUp:yo,execCommand:function(e){if(As.hasOwnProperty(e))return As[e].call(null,this)},triggerElectric:pr(function(e){Io(this,e)}),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var a=U(this.doc,e),s=0;s<t&&(a=Uo(i.doc,a,o,n,r),!a.hitSide);++s);return a},moveH:pr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Uo(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},Da)}),deleteH:pr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ao(this,function(n){var i=Uo(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=this,o=1,a=r;t<0&&(o=-1,t=-t);for(var s=U(this.doc,e),l=0;l<t;++l){var c=fn(i,s,"div");if(null==a?a=c.left:c.left=a,s=Bo(i,c,o,n),s.hitSide)break}return s},moveV:pr(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=fn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Bo(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Hn(n,un(n,l,"div").top-s.top),l},Da),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=this.doc,n=E(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;for(var a=n.charAt(r),s=x(a,o)?function(e){return x(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!x(e)};r>0&&s(n.charAt(r-1));)--r;for(;i<n.length&&s(n.charAt(i));)++i}return new fs(F(e.line,r),F(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?s(this.display.cursorDiv,"CodeMirror-overwrite"):wa(this.display.cursorDiv,"CodeMirror-overwrite"),Me(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==a()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:pr(function(e,t){Vn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Ut(this)-this.display.barHeight,width:e.scrollWidth-Ut(this)-this.display.barWidth,clientHeight:Ht(this),clientWidth:Bt(this)}},scrollIntoView:pr(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:F(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?Yn(this,e):Zn(this,e.from,e.to,e.margin)}),setSize:pr(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&&rn(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){gr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,Me(this,"refresh",this)}),operation:function(e){return fr(this,e)},refresh:pr(function(){var e=this.display.cachedTextHeight;mr(this),this.curOp.forceUpdate=!0,on(this),Vn(this,this.doc.scrollLeft,this.doc.scrollTop),Mr(this),(null==e||Math.abs(e-yn(this.display))>.5)&&kn(this),Me(this,"refresh",this)}),swapDoc:pr(function(e){var t=this.doc;return t.cm=null,Zr(this,e),on(this),this.display.input.reset(),Vn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,kt(this,"swapDoc",this,t),t}),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}},je(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n
;var r=["domain","regexp","url","url-prefix"],i=t(r),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(o),s=["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"],l=t(s),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],u=t(c),f=["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-cou
function Y(e){return"variable"==e?(Ie.marked="variable-3",m(J)):"string"==e||"number"==e||"atom"==e?m(J):"{"==e?m(_("}"),B(Z,"}",",;"),b,J):"("==e?m(B(K,")"),G):void 0}function G(e){if("=>"==e)return m(Y)}function Z(e,t){return"variable"==e||"keyword"==Ie.style?(Ie.marked="property",m(Z)):"?"==t?m(Z):":"==e?m(Y):"["==e?m(k,V,x("]"),Z):void 0}function K(e){return"variable"==e?m(K):":"==e?m(Y):void 0}function J(e,t){return"<"==t?m(_(">"),B(Y,">"),b,J):"|"==t||"."==e?m(Y):"["==e?m(x("]"),J):"extends"==t?m(Y):void 0}function X(){return h(Q,V,te,ne)}function Q(e,t){return"modifier"==e?m(Q):"variable"==e?(g(t),m()):"spread"==e?m(Q):"["==e?H(Q,"]"):"{"==e?H(ee,"}"):void 0}function ee(e,t){return"variable"!=e||Ie.stream.match(/^\s*:/,!1)?("variable"==e&&(Ie.marked="property"),"spread"==e?m(Q):"}"==e?h():m(x(":"),Q,te)):(g(t),m(te))}function te(e,t){if("="==t)return m($)}function ne(e){if(","==e)return m(X)}function re(e,t){if("keyword b"==e&&"else"==t)return m(_("form","else"),w,b)}function ie(e){if("("==e)return m(_(")"),oe,x(")"),b)}function oe(e){return"var"==e?m(X,x(";"),se):";"==e?m(se):"variable"==e?m(ae):h(k,x(";"),se)}function ae(e,t){return"in"==t||"of"==t?(Ie.marked="keyword",m(k)):m(A,se)}function se(e,t){return";"==e?m(le):"in"==t||"of"==t?(Ie.marked="keyword",m(k)):h(k,x(";"),le)}function le(e){")"!=e&&m(k)}function ce(e,t){return"*"==t?(Ie.marked="keyword",m(ce)):"variable"==e?(g(t),m(ce)):"("==e?m(v,_(")"),B(ue,")"),b,V,w,y):De&&"<"==t?m(_(">"),B(Y,">"),b,ce):void 0}function ue(e){return"spread"==e?m(ue):h(Q,V,te)}function fe(e,t){return"variable"==e?de(e,t):pe(e,t)}function de(e,t){if("variable"==e)return g(t),m(pe)}function pe(e,t){return"<"==t?m(_(">"),B(Y,">"),b,pe):"extends"==t||"implements"==t||De&&","==e?m(De?Y:k,pe):"{"==e?m(_("}"),he,b):void 0}function he(e,t){return"variable"==e||"keyword"==Ie.style?("async"==t||"static"==t||"get"==t||"set"==t||De&&("public"==t||"private"==t||"protected"==t||"readonly"==t||"abstract"==t))&&Ie.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ie.marked="keyword",m(he)):(Ie.marked="property",m(De?me:ce,he)):"["==e?m(k,x("]"),De?me:ce,he):"*"==t?(Ie.marked="keyword",m(he)):";"==e?m(he):"}"==e?m():"@"==t?m(k,he):void 0}function me(e,t){return"?"==t?m(me):":"==e?m(Y,te):"="==t?m($):h(ce)}function ge(e,t){return"*"==t?(Ie.marked="keyword",m(we,x(";"))):"default"==t?(Ie.marked="keyword",m(k,x(";"))):"{"==e?m(B(ve,"}"),we,x(";")):h(w)}function ve(e,t){return"as"==t?(Ie.marked="keyword",m(x("variable"))):"variable"==e?h($,ve):void 0}function ye(e){return"string"==e?m():h(_e,be,we)}function _e(e,t){return"{"==e?H(_e,"}"):("variable"==e&&g(t),"*"==t&&(Ie.marked="keyword"),m(xe))}function be(e){if(","==e)return m(_e,be)}function xe(e,t){if("as"==t)return Ie.marked="keyword",m(_e)}function we(e,t){if("from"==t)return Ie.marked="keyword",m(k)}function ke(e){return"]"==e?m():h(B($,"]"))}function $e(e,t){return"operator"==e.lastType||","==e.lastType||je.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}var Ce,Se,Ee=n.indentUnit,Te=r.statementIndent,Ae=r.jsonld,Me=r.json||Ae,De=r.typescript,Le=r.wordCharacters||/[\w$\xa1-\uffff]/,Oe=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:r,throw:r,debugger:r,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:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r,async:e("async")};if(De){var s={type:"variable",style:"variable-3"},l={interface:e("class"),implements:r,namespace:r,module:e("module"),enum:e("module"),public:e("modifier"),private:e("modifier"),protected:e("modifier"),abstract:e("modifier"),as:i,string:s,number:s,boolean:s,any:s};for(var c in l)a[c]=l[c]}return a}(),je=/[+\-*&%=<>!?|~^@]/,Fe=/^@(context|id|value
var s,l=t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_fro
var m="error",g=s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.]/,v=s.doubleOperators||/^([!<>]==|<>|<<|>>|\/\/|\*\*)/,y=s.doubleDelimiters||/^(\+=|\-=|\*=|%=|\/=|&=|\|=|\^=)/,_=s.tripleDelimiters||/^(\/\/=|>>=|<<=|\*\*=)/,b=s.hangingIndent||a.indentUnit,x=i,w=o;void 0!=s.extra_keywords&&(x=x.concat(s.extra_keywords)),void 0!=s.extra_builtins&&(w=w.concat(s.extra_builtins));var k=!(s.version&&Number(s.version)<3);if(k){var $=s.singleOperators||/^[\+\-\*\/%&|\^~<>!@]/,C=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;x=x.concat(["nonlocal","False","True","None","async","await"]),w=w.concat(["ascii","bytes","exec","print"]);var S=new RegExp("^(([rbuf]|(br))?('{3}|\"{3}|['\"]))","i")}else{var $=s.singleOperators||/^[\+\-\*\/%&|\^~<>!]/,C=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;x=x.concat(["exec","print"]),w=w.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var S=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var E=t(x),T=t(w);return{startState:function(e){return{tokenize:l,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=h(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+" "+m:r},indent:function(t,r){if(t.tokenize!=l)return t.tokenize.isString?e.Pass:0;var i=n(t),o=i.type==r.charAt(0);return null!=i.align?i.align-(o?1:0):i.offset-(o?b:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-python","python");e.defineMIME("text/x-cython",{name:"python",extra_keywords:function(e){return e.split(" ")}("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})},{"../../lib/codemirror":40}],53:[function(e,t,n){!function(r){"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)}(function(e){"use strict";e.defineMode("ruby",function(e){function t(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}function n(e,t,n){return n.tokenize.push(e),e(t,n)}function r(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(c),"comment";if(e.eatSpace())return null;var r,o=e.next();if("`"==o||"'"==o||'"'==o)return n(s(o,"string",'"'==o||"`"==o),e,t);if("/"==o)return i(e)?n(s(o,"string-2",!0),e,t):"operator";if("%"==o){var a="string",f=!0;e.eat("s")?a="atom":e.eat(/[WQ]/)?a="string":e.eat(/[r]/)?a="string-2":e.eat(/[wxq]/)&&(a="string",f=!1);var d=e.eat(/[^\w\s=]/);return d?(h.propertyIsEnumerable(d)&&(d=h[d]),n(s(d,a,f,!0),e,t)):"operator"}if("#"==o)return e.skipToEnd(),"comment";if("<"==o&&(r=e.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return n(l(r[1]),e,t);if("0"==o)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(o))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==o){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==o)return e.eat("'")?n(s("'","atom",!1),e,t):e.eat('"')?n(s('"',"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("@"==o&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==o)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(o))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=o||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(o))return u=o,null;if("-"==o&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(o)){var p=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."
keywords:o(a+"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 global go goto grant granted greatest grouping groups handler header hex hierarchy hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import including increment indent index indexes indicator inherit inherits 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 lead leading leakproof least left length level 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 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 quote range rank read reads reassign recheck recovery recursiv
;var r=e("./_object-create"),i=e("./_property-desc"),o=e("./_set-to-string-tag"),a={};e("./_hide")(a,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},{"./_hide":97,"./_object-create":123,"./_property-desc":142,"./_set-to-string-tag":149,"./_wks":174}],110:[function(e,t,n){"use strict";var r=e("./_library"),i=e("./_export"),o=e("./_redefine"),a=e("./_hide"),s=e("./_has"),l=e("./_iterators"),c=e("./_iter-create"),u=e("./_set-to-string-tag"),f=e("./_object-gpo"),d=e("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(e,t,n,m,g,v,y){c(n,t,m);var _,b,x,w=function(e){if(!p&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",$="values"==g,C=!1,S=e.prototype,E=S[d]||S["@@iterator"]||g&&S[g],T=E||w(g),A=g?$?w("entries"):T:void 0,M="Array"==t?S.entries||E:E;if(M&&(x=f(M.call(new e)))!==Object.prototype&&(u(x,k,!0),r||s(x,d)||a(x,d,h)),$&&E&&"values"!==E.name&&(C=!0,T=function(){return E.call(this)}),r&&!y||!p&&!C&&S[d]||a(S,d,T),l[t]=T,l[k]=h,g)if(_={values:$?T:w("values"),keys:v?T:w("keys"),entries:A},y)for(b in _)b in S||o(S,b,_[b]);else i(i.P+i.F*(p||C),t,_);return _}},{"./_export":89,"./_has":96,"./_hide":97,"./_iter-create":109,"./_iterators":113,"./_library":115,"./_object-gpo":131,"./_redefine":144,"./_set-to-string-tag":149,"./_wks":174}],111:[function(e,t,n){var r=e("./_wks")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},{"./_wks":174}],112:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],113:[function(e,t,n){t.exports={}},{}],114:[function(e,t,n){var r=e("./_object-keys"),i=e("./_to-iobject");t.exports=function(e,t){for(var n,o=i(e),a=r(o),s=a.length,l=0;s>l;)if(o[n=a[l++]]===t)return n}},{"./_object-keys":133,"./_to-iobject":164}],115:[function(e,t,n){t.exports=!1},{}],116:[function(e,t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},{}],117:[function(e,t,n){t.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},{}],118:[function(e,t,n){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],119:[function(e,t,n){var r=e("./_uid")("meta"),i=e("./_is-object"),o=e("./_has"),a=e("./_object-dp").f,s=0,l=Object.isExtensible||function(){return!0},c=!e("./_fails")(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},p=function(e){return c&&h.NEED&&l(e)&&!o(e,r)&&u(e),e},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},{"./_fails":91,"./_has":96,"./_is-object":106,"./_object-dp":124,"./_uid":171}],120:[function(e,t,n){var r=e("./es6.map"),i=e("./_export"),o=e("./_shared")("metadata"),a=o.store||(o.store=new(e("./es6.weak-map"))),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o},l=function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},c=function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},u=function(e,t,n,r){s(n,r,!0).set(e,t)},f=function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},d=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},p=function(e){i(i.S,"Reflect",e)};t.exports={store:a,map:s,has:l,get:c,set:u,keys:f,key:d,exp:p}},{"./_export":89,"./_shared":151,"./es6.map":206,"./es6.weak-map":312}],121:[function(e,t,n){var r=e("./_global"),i=e("./_task").set,o=r.Mutat
}],180:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_array-methods")(2);r(r.P+r.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":69,"./_export":89,"./_strict-method":153}],181:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_array-methods")(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")(o)},{"./_add-to-unscopables":62,"./_array-methods":69,"./_export":89}],182:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_array-methods")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")("find")},{"./_add-to-unscopables":62,"./_array-methods":69,"./_export":89}],183:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_array-methods")(0),o=e("./_strict-method")([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":69,"./_export":89,"./_strict-method":153}],184:[function(e,t,n){"use strict";var r=e("./_ctx"),i=e("./_export"),o=e("./_to-object"),a=e("./_iter-call"),s=e("./_is-array-iter"),l=e("./_to-length"),c=e("./_create-property"),u=e("./core.get-iterator-method");i(i.S+i.F*!e("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,f,d=o(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(d);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(t=l(d.length),n=new p(t);t>v;v++)c(n,v,g?m(d[v],v):d[v]);else for(f=y.call(d),n=new p;!(i=f.next()).done;v++)c(n,v,g?a(f,m,[i.value,v],!0):i.value);return n.length=v,n}})},{"./_create-property":81,"./_ctx":82,"./_export":89,"./_is-array-iter":103,"./_iter-call":108,"./_iter-detect":111,"./_to-length":165,"./_to-object":166,"./core.get-iterator-method":175}],185:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_array-includes")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!e("./_strict-method")(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},{"./_array-includes":68,"./_export":89,"./_strict-method":153}],186:[function(e,t,n){var r=e("./_export");r(r.S,"Array",{isArray:e("./_is-array")})},{"./_export":89,"./_is-array":104}],187:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),i=e("./_iter-step"),o=e("./_iterators"),a=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":62,"./_iter-define":110,"./_iter-step":112,"./_iterators":113,"./_to-iobject":164}],188:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_to-iobject"),o=[].join;r(r.P+r.F*(e("./_iobject")!=Object||!e("./_strict-method")(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},{"./_export":89,"./_iobject":102,"./_strict-method":153,"./_to-iobject":164}],189:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_to-iobject"),o=e("./_to-integer"),a=e("./_to-length"),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!e("./_strict-method")(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},{"./_export":89,"./_strict-method":153,"./_to-integer":163,"./_to-iobject":164,"./_to-length":165}],190:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_array-methods")(1);r(r.P+r.F*!e("./_strict-method")([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":69,"./_export":89,"./_strict-me
p[s]>g?p.slice(0,g):p}}else"0".split(void 0,0)[s]&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(e,i){var o=t(this),a=void 0==e?void 0:e[n];return void 0!==a?a.call(e,o,i):r.call(String(o),e,i)},r]})},{"./_fix-re-wks":92,"./_is-regexp":107}],276:[function(e,t,n){"use strict";e("./es6.regexp.flags");var r=e("./_an-object"),i=e("./_flags"),o=e("./_descriptors"),a=/./.toString,s=function(t){e("./_redefine")(RegExp.prototype,"toString",t,!0)};e("./_fails")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},{"./_an-object":64,"./_descriptors":85,"./_fails":91,"./_flags":93,"./_redefine":144,"./es6.regexp.flags":271}],277:[function(e,t,n){"use strict";var r=e("./_collection-strong");t.exports=e("./_collection")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e=0===e?0:e,e)}},r)},{"./_collection":79,"./_collection-strong":76}],278:[function(e,t,n){"use strict";e("./_string-html")("anchor",function(e){return function(t){return e(this,"a","name",t)}})},{"./_string-html":156}],279:[function(e,t,n){"use strict";e("./_string-html")("big",function(e){return function(){return e(this,"big","","")}})},{"./_string-html":156}],280:[function(e,t,n){"use strict";e("./_string-html")("blink",function(e){return function(){return e(this,"blink","","")}})},{"./_string-html":156}],281:[function(e,t,n){"use strict";e("./_string-html")("bold",function(e){return function(){return e(this,"b","","")}})},{"./_string-html":156}],282:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_string-at")(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},{"./_export":89,"./_string-at":154}],283:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_to-length"),o=e("./_string-context"),a="".endsWith;r(r.P+r.F*e("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),s=void 0===n?r:Math.min(i(n),r),l=String(e);return a?a.call(t,l,s):t.slice(s-l.length,s)===l}})},{"./_export":89,"./_fails-is-regexp":90,"./_string-context":155,"./_to-length":165}],284:[function(e,t,n){"use strict";e("./_string-html")("fixed",function(e){return function(){return e(this,"tt","","")}})},{"./_string-html":156}],285:[function(e,t,n){"use strict";e("./_string-html")("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},{"./_string-html":156}],286:[function(e,t,n){"use strict";e("./_string-html")("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},{"./_string-html":156}],287:[function(e,t,n){var r=e("./_export"),i=e("./_to-index"),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},{"./_export":89,"./_to-index":162}],288:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_string-context");r(r.P+r.F*e("./_fails-is-regexp")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},{"./_export":89,"./_fails-is-regexp":90,"./_string-context":155}],289:[function(e,t,n){"use strict";e("./_string-html")("italics",function(e){return function(){return e(this,"i","","")}})},{"./_string-html":156}],290:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":110,"./_string-at":154}],291:[function(e,t,n){"use strict";e("./_string-html")("link",function(e){return function(t){return e(th
"./modules/es6.array.from":184,"./modules/es6.array.index-of":185,"./modules/es6.array.is-array":186,"./modules/es6.array.iterator":187,"./modules/es6.array.join":188,"./modules/es6.array.last-index-of":189,"./modules/es6.array.map":190,"./modules/es6.array.of":191,"./modules/es6.array.reduce":193,"./modules/es6.array.reduce-right":192,"./modules/es6.array.slice":194,"./modules/es6.array.some":195,"./modules/es6.array.sort":196,"./modules/es6.array.species":197,"./modules/es6.date.now":198,"./modules/es6.date.to-iso-string":199,"./modules/es6.date.to-json":200,"./modules/es6.date.to-primitive":201,"./modules/es6.date.to-string":202,"./modules/es6.function.bind":203,"./modules/es6.function.has-instance":204,"./modules/es6.function.name":205,"./modules/es6.map":206,"./modules/es6.math.acosh":207,"./modules/es6.math.asinh":208,"./modules/es6.math.atanh":209,"./modules/es6.math.cbrt":210,"./modules/es6.math.clz32":211,"./modules/es6.math.cosh":212,"./modules/es6.math.expm1":213,"./modules/es6.math.fround":214,"./modules/es6.math.hypot":215,"./modules/es6.math.imul":216,"./modules/es6.math.log10":217,"./modules/es6.math.log1p":218,"./modules/es6.math.log2":219,"./modules/es6.math.sign":220,"./modules/es6.math.sinh":221,"./modules/es6.math.tanh":222,"./modules/es6.math.trunc":223,"./modules/es6.number.constructor":224,"./modules/es6.number.epsilon":225,"./modules/es6.number.is-finite":226,"./modules/es6.number.is-integer":227,"./modules/es6.number.is-nan":228,"./modules/es6.number.is-safe-integer":229,"./modules/es6.number.max-safe-integer":230,"./modules/es6.number.min-safe-integer":231,"./modules/es6.number.parse-float":232,"./modules/es6.number.parse-int":233,"./modules/es6.number.to-fixed":234,"./modules/es6.number.to-precision":235,"./modules/es6.object.assign":236,"./modules/es6.object.create":237,"./modules/es6.object.define-properties":238,"./modules/es6.object.define-property":239,"./modules/es6.object.freeze":240,"./modules/es6.object.get-own-property-descriptor":241,"./modules/es6.object.get-own-property-names":242,"./modules/es6.object.get-prototype-of":243,"./modules/es6.object.is":247,"./modules/es6.object.is-extensible":244,"./modules/es6.object.is-frozen":245,"./modules/es6.object.is-sealed":246,"./modules/es6.object.keys":248,"./modules/es6.object.prevent-extensions":249,"./modules/es6.object.seal":250,"./modules/es6.object.set-prototype-of":251,"./modules/es6.object.to-string":252,"./modules/es6.parse-float":253,"./modules/es6.parse-int":254,"./modules/es6.promise":255,"./modules/es6.reflect.apply":256,"./modules/es6.reflect.construct":257,"./modules/es6.reflect.define-property":258,"./modules/es6.reflect.delete-property":259,"./modules/es6.reflect.enumerate":260,"./modules/es6.reflect.get":263,"./modules/es6.reflect.get-own-property-descriptor":261,"./modules/es6.reflect.get-prototype-of":262,"./modules/es6.reflect.has":264,"./modules/es6.reflect.is-extensible":265,"./modules/es6.reflect.own-keys":266,"./modules/es6.reflect.prevent-extensions":267,"./modules/es6.reflect.set":269,"./modules/es6.reflect.set-prototype-of":268,"./modules/es6.regexp.constructor":270,"./modules/es6.regexp.flags":271,"./modules/es6.regexp.match":272,"./modules/es6.regexp.replace":273,"./modules/es6.regexp.search":274,"./modules/es6.regexp.split":275,"./modules/es6.regexp.to-string":276,"./modules/es6.set":277,"./modules/es6.string.anchor":278,"./modules/es6.string.big":279,"./modules/es6.string.blink":280,"./modules/es6.string.bold":281,"./modules/es6.string.code-point-at":282,"./modules/es6.string.ends-with":283,"./modules/es6.string.fixed":284,"./modules/es6.string.fontcolor":285,"./modules/es6.string.fontsize":286,"./modules/es6.string.from-code-point":287,"./modules/es6.string.includes":288,"./modules/es6.string.italics":289,"./modules/es6.string.iterator":290,"./modules/es6.string.link":291,"./modules/es6.string.raw":292,"./modules/es6.string.repeat":293,"./modules/es6.string.small":294,"./modules/es6.string.starts-with":295,"./modules/es6.string.strike":296,"./modules/es6.string.sub":297,"./modules/es6.string.sup":298,"./mod
t.prototype._getFilesWithXhr=function(e){var t;return function(){var n,r,i,o;for(i=this.files,o=[],n=0,r=i.length;n<r;n++)t=i[n],t.xhr===e&&o.push(t);return o}.call(this)},t.prototype.cancelUpload=function(e){var n,r,i,o,a,s,l;if(e.status===t.UPLOADING){for(r=this._getFilesWithXhr(e.xhr),i=0,a=r.length;i<a;i++)n=r[i],n.status=t.CANCELED;for(e.xhr.abort(),o=0,s=r.length;o<s;o++)n=r[o],this.emit("canceled",n);this.options.uploadMultiple&&this.emit("canceledmultiple",r)}else(l=e.status)!==t.ADDED&&l!==t.QUEUED||(e.status=t.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()},i=function(){var e,t;return t=arguments[0],e=2<=arguments.length?c.call(arguments,1):[],"function"==typeof t?t.apply(this,e):t},t.prototype.uploadFile=function(e){return this.uploadFiles([e])},t.prototype.uploadFiles=function(e){var n,o,a,s,l,c,u,f,d,p,h,m,g,v,y,_,b,x,w,k,$,C,S,E,T,A,M,D,L,O,j,F,P,N;for(w=new XMLHttpRequest,k=0,E=e.length;k<E;k++)n=e[k],n.xhr=w;m=i(this.options.method,e),b=i(this.options.url,e),w.open(m,b,!0),w.withCredentials=!!this.options.withCredentials,y=null,a=function(t){return function(){var r,i,o;for(o=[],r=0,i=e.length;r<i;r++)n=e[r],o.push(t._errorProcessing(e,y||t.options.dictResponseError.replace("{{statusCode}}",w.status),w));return o}}(this),_=function(t){return function(r){var i,o,a,s,l,c,u,f,d;if(null!=r)for(o=100*r.loaded/r.total,a=0,c=e.length;a<c;a++)n=e[a],n.upload={progress:o,total:r.total,bytesSent:r.loaded};else{for(i=!0,o=100,s=0,u=e.length;s<u;s++)n=e[s],100===n.upload.progress&&n.upload.bytesSent===n.upload.total||(i=!1),n.upload.progress=o,n.upload.bytesSent=n.upload.total;if(i)return}for(d=[],l=0,f=e.length;l<f;l++)n=e[l],d.push(t.emit("uploadprogress",n,o,n.upload.bytesSent));return d}}(this),w.onload=function(n){return function(r){var i;if(e[0].status!==t.CANCELED&&4===w.readyState){if(y=w.responseText,w.getResponseHeader("content-type")&&~w.getResponseHeader("content-type").indexOf("application/json"))try{y=JSON.parse(y)}catch(e){r=e,y="Invalid JSON response from server."}return _(),200<=(i=w.status)&&i<300?n._finished(e,y,r):a()}}}(this),w.onerror=function(n){return function(){if(e[0].status!==t.CANCELED)return a()}}(),v=null!=(L=w.upload)?L:w,v.onprogress=_,c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"},this.options.headers&&r(c,this.options.headers);for(s in c)(l=c[s])&&w.setRequestHeader(s,l);if(o=new FormData,this.options.params){O=this.options.params;for(h in O)x=O[h],o.append(h,x)}for($=0,T=e.length;$<T;$++)n=e[$],this.emit("sending",n,w,o);if(this.options.uploadMultiple&&this.emit("sendingmultiple",e,w,o),"FORM"===this.element.tagName)for(j=this.element.querySelectorAll("input, textarea, select, button"),C=0,A=j.length;C<A;C++)if(f=j[C],d=f.getAttribute("name"),p=f.getAttribute("type"),"SELECT"===f.tagName&&f.hasAttribute("multiple"))for(F=f.options,S=0,M=F.length;S<M;S++)g=F[S],g.selected&&o.append(d,g.value);else(!p||"checkbox"!==(P=p.toLowerCase())&&"radio"!==P||f.checked)&&o.append(d,f.value);for(u=D=0,N=e.length-1;0<=N?D<=N:D>=N;u=0<=N?++D:--D)o.append(this._getParamName(u),e[u],this._renameFilename(e[u].name));return this.submitRequest(w,o,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var i,o,a;for(o=0,a=e.length;o<a;o++)i=e[o],i.status=t.SUCCESS,this.emit("success",i,n,r),this.emit("complete",i);if(this.options.uploadMultiple&&(this.emit("successmultiple",e,n,r),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()},t.prototype._errorProcessing=function(e,n,r){var i,o,a;for(o=0,a=e.length;o<a;o++)i=e[o],i.status=t.ERROR,this.emit("error",i,n,r),this.emit("complete",i);if(this.options.uploadMultiple&&(this.emit("errormultiple",e,n,r),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()},t}(n),e.version="4.3.0",e.options={},e.optionsForElement=function(t){return t.getAttribute("id")?e.options[r(t.getAttribute("id"))]
Vdashl:"⫦",veebar:"⊻",vee:"",Vee:"",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:"",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},{}],357:[function(e,t,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},{}],358:[function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return i(e,t,n);if(s.nodeList(e))return o(e,t,n);if(s.string(e))return a(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function o(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function a(e,t,n){return l(document.body,e,t,n)}var s=e("./is"),l=e("delegate");t.exports=r},{"./is":357,delegate:354}],359:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,f=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=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+f>=1?d/l:d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},{}],360:[function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object String]"===i(e)}function a(e){return"[object Object]"===i(e)}function s(e){return"[object RegExp]"===i(e)}function l(e){return"[object Function]"===i(e)}function c(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function u(e){r
r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},t.exports=r},{}],381:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,a,s,l,c,u,f,d,p,h,m,g,v,y,_,b,x,w,k,$,C=e.lineMax,S=e.bMarks[t]+e.tShift[t],E=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(i)return!0;for(l=h=e.sCount[t]+S-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(S)?(S++,l++,h++,o=!1,x=!0):9===e.src.charCodeAt(S)?(x=!0,(e.bsCount[t]+h)%4==3?(S++,l++,h++,o=!1):o=!0):x=!1,m=[e.bMarks[t]],e.bMarks[t]=S;S<E&&(a=e.src.charCodeAt(S),r(a));)9===a?h+=4-(h+e.bsCount[t]+(o?1:0))%4:h++,S++;for(g=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(x?1:0),f=S>=E,_=[e.sCount[t]],e.sCount[t]=h-l,b=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",p=t+1;p<n&&(c=e.sCount[p]<e.blkIndent,S=e.bMarks[p]+e.tShift[p],E=e.eMarks[p],!(S>=E));p++)if(62!==e.src.charCodeAt(S++)||c){if(f)break;for(w=!1,s=0,u=k.length;s<u;s++)if(k[s](e,p,n,!0)){w=!0;break}if(w){e.lineMax=p,0!==e.blkIndent&&(m.push(e.bMarks[p]),g.push(e.bsCount[p]),b.push(e.tShift[p]),_.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}if(c)break;m.push(e.bMarks[p]),g.push(e.bsCount[p]),b.push(e.tShift[p]),_.push(e.sCount[p]),e.sCount[p]=-1}else{for(l=h=e.sCount[p]+S-(e.bMarks[p]+e.tShift[p]),32===e.src.charCodeAt(S)?(S++,l++,h++,o=!1,x=!0):9===e.src.charCodeAt(S)?(x=!0,(e.bsCount[p]+h)%4==3?(S++,l++,h++,o=!1):o=!0):x=!1,m.push(e.bMarks[p]),e.bMarks[p]=S;S<E&&(a=e.src.charCodeAt(S),r(a));)9===a?h+=4-(h+e.bsCount[p]+(o?1:0))%4:h++,S++;f=S>=E,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(x?1:0),_.push(e.sCount[p]),e.sCount[p]=h-l,b.push(e.tShift[p]),e.tShift[p]=S-e.bMarks[p]}for(v=e.blkIndent,e.blkIndent=0,$=e.push("blockquote_open","blockquote",1),$.markup=">",$.map=d=[t,0],e.md.block.tokenize(e,t,p),$=e.push("blockquote_close","blockquote",-1),$.markup=">",e.lineMax=C,e.parentType=y,d[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=m[s],e.tShift[s+t]=b[s],e.sCount[s+t]=_[s],e.bsCount[s+t]=g[s];return e.blkIndent=v,!0}},{"../common/utils":367}],382:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,i=r}return e.line=i,o=e.push("code_block","code",0),o.content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}},{}],383:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i,o,a,s,l,c,u,f=!1,d=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>p)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,d=e.skipChars(d,i),(o=d-l)<3)return!1;if(u=e.src.slice(l,d),a=e.src.slice(d,p),a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&(d=l=e.bMarks[s]+e.tShift[s],p=e.eMarks[s],!(d<p&&e.sCount[s]<e.blkIndent));)if(e.src.charCodeAt(d)===i&&!(e.sCount[s]-e.blkIndent>=4||(d=e.skipChars(d,i))-l<o||(d=e.skipSpaces(d))<p)){f=!0;break}return o=e.sCount[t],e.line=s+(f?1:0),c=e.push("fence","code",0),c.info=a,c.content=e.getLines(t+1,s,o,!0),c.markup=u,c.map=[t,e.line],!0}},{}],384:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c<u&&a<=6;)a++,o=e.src.charCodeAt(++c);return!(a>6||c<u&&!r(o))&&(!!i||(u=e.skipSpacesBack(u,c),s=e.skipCharsBack(u,35,c),s>c&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,l=e.push("headi
r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},t.exports=r},{}],415:[function(e,t,n){"use strict";function r(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)n=e.charCodeAt(t),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function i(e,t){var n;return"string"!=typeof t&&(t=i.defaultChars),n=r(t),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,r,i,o,a,s,l,c="";for(t=0,r=e.length;t<r;t+=3)i=parseInt(e.slice(t+1,t+3),16),i<128?c+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l=i<<6&1984|63&o,c+=l<128?"<22><>":String.fromCharCode(l),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l=i<<12&61440|o<<6&4032|63&a,c+=l<2048||l>=55296&&l<=57343?"<22><><EFBFBD>":String.fromCharCode(l),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?(l=i<<18&1835008|o<<12&258048|a<<6&4032|63&s,l<65536||l>1114111?c+="<22><><EFBFBD><EFBFBD>":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="<22>";return c})}var o={};i.defaultChars=";/?:@&=+$,#",i.componentChars="",t.exports=i},{}],416:[function(e,t,n){"use strict";function r(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function i(e,t,n){var o,a,s,l,c,u="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),c=r(t),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))u+=e.slice(o,o+3),o+=2;else if(s<128)u+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}var o={};i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",t.exports=i},{}],417:[function(e,t,n){"use strict";t.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},{}],418:[function(e,t,n){"use strict";t.exports.encode=e("./encode"),t.exports.decode=e("./decode"),t.exports.format=e("./format"),t.exports.parse=e("./parse")},{"./decode":415,"./encode":416,"./format":417,"./parse":419}],419:[function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}function i(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),u=["'"].concat(c),f=["%","/","?",";","#"].concat(u),d=["/","?","#"],p={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,i,a,l,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var u=s.exec(c);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}var m=o.exec(c);if(m&&(m=m[0],i=m.toLowerCase(),this.protocol=m,c=c.substr(m.length)),(t||m||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(l="//"===c.substr(0,2))||m&&p[m]||(c=c.substr(2),this.slashes=!0)),!p[m]&&(l||m&&!h[m])){var g=-1;for(n=0;n<d.length;n++)-1!==(a=c.indexOf(d[n]))&&(-1===g||a<g)&&(g=a);var v,y;for(y=-1===g?c.lastIndexOf("@"):c.lastIndexOf("@",g),-1!==y&&(v=c.slice(0,y),c=c.slice(y+1),this.auth=v),g=-1,n=0;n<f.length;n++)-1!==(a=c.indexOf(f[n]))&&(-1===g||a<g)&&(g=a);-1===g&&(g=c.length),":"===c[g-1]&&g--;var _=c.slice(0,g);c=c.slice(g),this.parseHost(_),this.hostname=this.hostname||"";v
months:0}}function Wt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Rt(n,r),Vt(this,i,e),this}}function Vt(e,t,r,i){var o=t._milliseconds,a=Ct(t._days),s=Ct(t._months);e.isValid()&&(i=null==i||i,o&&e._d.setTime(e._d.valueOf()+o*r),a&&B(e,"Date",U(e,"Date")+a*r),s&&ue(e,U(e,"Month")+s*r),i&&n.updateOffset(e,a||s))}function Yt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gt(e,t){var r=e||_t(),i=Tt(r,this).startOf("day"),o=n.calendarFormat(this,i)||"sameElse",a=t&&(S(t[o])?t[o].call(this,r):t[o]);return this.format(a||this.localeData().calendar(o,this,_t(r)))}function Zt(){return new y(this)}function Kt(e,t){var n=_(e)?e:_t(e);return!(!this.isValid()||!n.isValid())&&(t=N(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Jt(e,t){var n=_(e)?e:_t(e);return!(!this.isValid()||!n.isValid())&&(t=N(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Xt(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Qt(e,t){var n,r=_(e)?e:_t(e);return!(!this.isValid()||!r.isValid())&&(t=N(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function en(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function tn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function nn(e,t,n){var r,i,o,a;return this.isValid()?(r=Tt(e,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),t=N(t),"year"===t||"month"===t||"quarter"===t?(a=rn(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-r,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?a:b(a)):NaN):NaN}function rn(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function on(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function an(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?S(Date.prototype.toISOString)?this.toDate().toISOString():K(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):K(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function sn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function ln(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=K(this,e);return this.localeData().postformat(t)}function cn(e,t){return this.isValid()&&(_(e)&&e.isValid()||_t(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function un(e){return this.from(_t(),e)}function fn(e,t){return this.isValid()&&(_(e)&&e.isValid()||_t(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dn(e){return this.to(_t(),e)}function pn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function hn(){return this._locale}function mn(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function gn(e){return void 0===(e=N(e))||"millisecond"===e?this:("date
;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return o.type="throw",o.arg=e,n.next=t,!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?this.next=i.finallyLoc:this.complete(o),T},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),T}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;d(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},T}}}("object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:422}],425:[function(e,t,n){function r(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}t.exports=r},{}],426:[function(e,t,n){!function(e){"use strict";"function"==typeof define&&define.amd?define(e):void 0!==t&&void 0!==t.exports?t.exports=e():window.Sortable=e()}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=_({},t),e[W]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0}};for(var r in n)!(r in t)&&(t[r]=n[r]);ae(t);for(var i in this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&X,o(e,"mousedown",this._onTapStart),o(e,"touchstart",this._onTapStart),o(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(o(e,"dragover",this),o(e,"dragenter",this)),ie.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e,t){"clone"!==e.lastPullMode&&(t=!0),C&&C.state!==t&&(l(C,"display",t?"none":""),t||C.state&&(e.options.group.revertClone?(S.insertBefore(C,E),e._animate(w,C)):S.insertBefore(C,w)),C.state=t)}function n(e,t,n){if(e){n=n||Y;do{if(">*"===t&&e.parentNode===n||v(e,t))return e}while(e=r(e))}return null}function r(e){var t=e.host;return t&&t.node
;if(d(e)&&(e=o.extend(e)),"function"==typeof e){if(!e.cid)if(e.resolved)e=e.resolved;else if(!(e=Oe(e,o,function(){n.$forceUpdate()})))return;tt(e),t=t||{},t.model&&Ie(e.options,t);var a=je(t,e,i);if(e.options.functional)return De(e,a,t,n,r);var s=t.on;t.on=t.nativeOn,e.options.abstract&&(t={}),Pe(t);var l=e.options.name||i;return new io("vue-component-"+e.cid+(l?"-"+l:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:a,listeners:s,tag:i,children:r})}}}function De(e,t,n,r,i){var o={},a=e.options.props;if(a)for(var s in a)o[s]=q(s,a,t);var l=Object.create(r),c=function(e,t,n,r){return qe(l,e,t,n,r,!0)},u=e.options.render.call(null,c,{props:o,data:n,parent:r,children:i,slots:function(){return ie(i,r)}});return u instanceof io&&(u.functionalContext=r,n.slot&&((u.data||(u.data={})).slot=n.slot)),u}function Le(e,t,n,r){var i=e.componentOptions,o={_isComponent:!0,parent:t,propsData:i.propsData,_componentTag:i.tag,_parentVnode:e,_parentListeners:i.listeners,_renderChildren:i.children,_parentElm:n||null,_refElm:r||null},a=e.data.inlineTemplate;return a&&(o.render=a.render,o.staticRenderFns=a.staticRenderFns),new i.Ctor(o)}function Oe(e,t,n){if(!e.requested){e.requested=!0;var r=e.pendingCallbacks=[n],i=!0,o=function(n){if(d(n)&&(n=t.extend(n)),e.resolved=n,!i)for(var o=0,a=r.length;o<a;o++)r[o](n)},a=function(e){},s=e(o,a);return s&&"function"==typeof s.then&&!e.resolved&&s.then(o,a),i=!1,e.resolved}e.pendingCallbacks.push(n)}function je(e,t,n){var r=t.options.props;if(r){var i={},o=e.attrs,a=e.props,s=e.domProps;if(o||a||s)for(var l in r){var c=Si(l);Fe(i,a,l,c,!0)||Fe(i,o,l,c)||Fe(i,s,l,c)}return i}}function Fe(e,t,n,r,i){if(t){if(a(t,n))return e[n]=t[n],i||delete t[n],!0;if(a(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Pe(e){e.hook||(e.hook={});for(var t=0;t<wo.length;t++){var n=wo[t],r=e.hook[n],i=xo[n];e.hook[n]=r?Ne(i,r):i}}function Ne(e,t){return function(n,r,i,o){e(n,r,i,o),t(n,r,i,o)}}function Ie(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});i[r]?i[r]=[t.model.callback].concat(i[r]):i[r]=t.model.callback}function qe(e,t,n,r,i,o){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o&&(i=$o),ze(e,t,n,r,i)}function ze(e,t,n,r,i){if(n&&n.__ob__)return so();if(!t)return so();Array.isArray(r)&&"function"==typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===$o?r=J(r):i===ko&&(r=K(r));var o,a;if("string"==typeof t){var s;a=Di.getTagNamespace(t),o=Di.isReservedTag(t)?new io(Di.parsePlatformTagName(t),n,r,void 0,void 0,e):(s=I(e.$options,"components",t))?Me(s,n,e,r,t):new io(t,n,r,void 0,void 0,e)}else o=Me(t,n,e,r);return o?(a&&Re(o,a),o):so()}function Re(e,t){if(e.ns=t,"foreignObject"!==e.tag&&e.children)for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];i.tag&&!i.ns&&Re(i,t)}}function Ue(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(d(e))for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return n}function Be(e,t,n,r){var i=this.$scopedSlots[e];if(i)return n=n||{},r&&f(n,r),i(n)||t;var o=this.$slots[e];return o||t}function He(e){return I(this.$options,"filters",e,!0)||Mi}function We(e,t,n){var r=Di.keyCodes[t]||n;return Array.isArray(r)?-1===r.indexOf(e):r!==e}function Ve(e,t,n,r){if(n)if(d(n)){Array.isArray(n)&&(n=h(n));var i;for(var o in n){if("class"===o||"style"===o)i=e;else{var a=e.attrs&&e.attrs.type;i=r||Di.mustUseProp(t,a,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}o in i||(i[o]=n[o])}}else;return e}function Ye(e,t){var n=this._staticTrees[e];return n&&!t?Array.isArray(n)?V(n):W(n):(n=this._staticTrees[e]=this.$options.staticRenderFns[e].call(this._renderProxy),Ze(n,"__static__"+e,!1),n)}function Ge(e,t,n){return Ze(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ze(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Ke(e[r],t+"_"+r,n);else Ke(e,t,n)}function Ke(e,t,
function Wr(e){return e.staticProcessed=!0,vs.push("with(this){return "+Hr(e)+"}"),"_m("+(vs.length-1)+(e.staticInFor?",true":"")+")"}function Vr(e){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Yr(e);if(e.staticInFor){for(var t="",n=e.parent;n;){if(n.for){t=n.key;break}n=n.parent}return t?"_o("+Hr(e)+","+ys+++(t?","+t:"")+")":Hr(e)}return Wr(e)}function Yr(e){return e.ifProcessed=!0,Gr(e.ifConditions.slice())}function Gr(e){function t(e){return e.once?Vr(e):Hr(e)}if(!e.length)return"_e()";var n=e.shift();return n.exp?"("+n.exp+")?"+t(n.block)+":"+Gr(e):""+t(n.block)}function Zr(e){var t=e.for,n=e.alias,r=e.iterator1?","+e.iterator1:"",i=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+t+"),function("+n+r+i+"){return "+Hr(e)+"})"}function Kr(e){var t="{",n=Jr(e);n&&(t+=n+","),e.key&&(t+="key:"+e.key+","),e.ref&&(t+="ref:"+e.ref+","),e.refInFor&&(t+="refInFor:true,"),e.pre&&(t+="pre:true,"),e.component&&(t+='tag:"'+e.tag+'",');for(var r=0;r<hs.length;r++)t+=hs[r](e);if(e.attrs&&(t+="attrs:{"+ci(e.attrs)+"},"),e.props&&(t+="domProps:{"+ci(e.props)+"},"),e.events&&(t+=Ir(e.events)+","),e.nativeEvents&&(t+=Ir(e.nativeEvents,!0)+","),e.slotTarget&&(t+="slot:"+e.slotTarget+","),e.scopedSlots&&(t+=Qr(e.scopedSlots)+","),e.model&&(t+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var i=Xr(e);i&&(t+=i+",")}return t=t.replace(/,$/,"")+"}",e.wrapData&&(t=e.wrapData(t)),t}function Jr(e){var t=e.directives;if(t){var n,r,i,o,a="directives:[",s=!1;for(n=0,r=t.length;n<r;n++){i=t[n],o=!0;var l=ms[i.name]||Bs[i.name];l&&(o=!!l(e,i,ds)),o&&(s=!0,a+='{name:"'+i.name+'",rawName:"'+i.rawName+'"'+(i.value?",value:("+i.value+"),expression:"+JSON.stringify(i.value):"")+(i.arg?',arg:"'+i.arg+'"':"")+(i.modifiers?",modifiers:"+JSON.stringify(i.modifiers):"")+"},")}return s?a.slice(0,-1)+"]":void 0}}function Xr(e){var t=e.children[0];if(1===t.type){var n=Br(t,_s);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function Qr(e){return"scopedSlots:_u(["+Object.keys(e).map(function(t){return ei(t,e[t])}).join(",")+"])"}function ei(e,t){return"["+e+",function("+String(t.attrsMap.scope)+"){return "+("template"===t.tag?ti(t)||"void 0":Hr(t))+"}]"}function ti(e,t){var n=e.children;if(n.length){var r=n[0];if(1===n.length&&r.for&&"template"!==r.tag&&"slot"!==r.tag)return Hr(r);var i=t?ni(n):0;return"["+n.map(oi).join(",")+"]"+(i?","+i:"")}}function ni(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(1===r.type){if(ri(r)||r.ifConditions&&r.ifConditions.some(function(e){return ri(e.block)})){t=2;break}(ii(r)||r.ifConditions&&r.ifConditions.some(function(e){return ii(e.block)}))&&(t=1)}}return t}function ri(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ii(e){return!gs(e.tag)}function oi(e){return 1===e.type?Hr(e):ai(e)}function ai(e){return"_v("+(2===e.type?e.expression:ui(JSON.stringify(e.text)))+")"}function si(e){var t=e.slotName||'"default"',n=ti(e),r="_t("+t+(n?","+n:""),i=e.attrs&&"{"+e.attrs.map(function(e){return $i(e.name)+":"+e.value}).join(",")+"}",o=e.attrsMap["v-bind"];return!i&&!o||n||(r+=",null"),i&&(r+=","+i),o&&(r+=(i?"":",null")+","+o),r+")"}function li(e,t){var n=t.inlineTemplate?null:ti(t,!0);return"_c("+e+","+Kr(t)+(n?","+n:"")+")"}function ci(e){for(var t="",n=0;n<e.length;n++){var r=e[n];t+='"'+r.name+'":'+ui(r.value)+","}return t.slice(0,-1)}function ui(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function fi(e,t){var n=dr(e.trim(),t);Dr(n,t);var r=Br(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}function di(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),m}}function pi(e,t){var n=(t.warn,an(e,"class"));n&&(e.staticClass=JSON.stringify(n));var r=on(e,"class",!1);r&&(e.classBinding=r)}function hi(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}function mi(e,t){var n=(t.warn,an(e,"s
},Hs=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),{staticKeys:["staticClass"],transformNode:pi,genData:hi}),Ws={staticKeys:["staticStyle"],transformNode:mi,genData:gi},Vs=[Hs,Ws],Ys={model:mn,text:vi,html:yi},Gs={expectHTML:!0,modules:Vs,directives:Ys,isPreTag:Zo,isUnaryTag:Ba,mustUseProp:qo,canBeLeftOpenTag:Ha,isReservedTag:Ko,getTagNamespace:bt,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Vs)},Zs=function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(r.warn=function(e,t){(t?o:i).push(e)},n){n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=f(Object.create(e.directives),n.directives));for(var a in n)"modules"!==a&&"directives"!==a&&(r[a]=n[a])}var s=fi(t,r);return s.errors=i,s.tips=o,s}function n(e,n,i){n=n||{};var o=n.delimiters?String(n.delimiters)+e:e;if(r[o])return r[o];var a=t(e,n),s={},l=[];s.render=di(a.render,l);var c=a.staticRenderFns.length;s.staticRenderFns=new Array(c);for(var u=0;u<c;u++)s.staticRenderFns[u]=di(a.staticRenderFns[u],l);return r[o]=s}var r=Object.create(null);return{compile:t,compileToFunctions:n}}(Gs),Ks=Zs.compileToFunctions,Js=l(function(e){var t=wt(e);return t&&t.innerHTML}),Xs=it.prototype.$mount;it.prototype.$mount=function(e,t){if((e=e&&wt(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Js(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=_i(e));if(r){var i=Ks(r,{shouldDecodeNewlines:Ua,delimiters:n.delimiters},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Xs.call(this,e,t)},it.compile=Ks,t.exports=it}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],435:[function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};!function(){function o(e){function t(e){e.parentElement.removeChild(e)}function n(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function o(e,t){return e.map(function(e){return e.elm}).indexOf(t)}function a(e,t,n){if(!e)return[];var i=e.map(function(e){return e.elm}),o=[].concat(r(t)).map(function(e){return i.indexOf(e)});return n?o.filter(function(e){return-1!==e}):o}function s(e,t){var n=this;this.$nextTick(function(){return n.$emit(e.toLowerCase(),t)})}function l(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),s.call(t,e,n)}}var c=["Start","Add","Remove","Update","End"],u=["Choose","Sort","Filter","Clone"],f=["Move"].concat(c,u).map(function(e){return"on"+e}),d=null;return{name:"draggable",props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},move:{type:Function,default:null}},data:function(){return{transitionMode:!1,componentMode:!1}},render:function(e){var t=this.$slots.default;if(t&&1===t.length){var n=t[0];n.componentOptions&&"transition-group"===n.componentOptions.tag&&(this.transitionMode=!0)}var i=t,o=this.$slots.footer;return o&&(i=t?[].concat(r(t),r(o)):[].concat(r(o))),e(this.element,null,i)},mounted:function(){var t=this;if(this.componentMode=this.element.toLowerCase()!==this.$el.nodeName.toLowerCase(),this.componentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter element value or remove transition-
return o(e,[{key:"setupListeners",value:function(){var e=this;this.selectButton.addEventListener("click",function(t){window.EntitySelectorPopup.show(function(t){e.setValue(t.id,t.name)})}),this.resetButton.addEventListener("click",function(t){e.setValue("","")})}},{key:"setValue",value:function(e,t){this.value=e,this.input.value=e,this.controlView(t)}},{key:"controlView",value:function(e){var t=this.value&&0!==this.value;if(i(this.resetButton,t),i(this.buttonSep,t),i(this.defaultDisplay,!t),i(this.display,t),t){var n=this.getAssetIdFromVal();this.display.textContent="#"+n+", "+e,this.display.href=window.baseUrl("/link/"+n)}}},{key:"getAssetIdFromVal",value:function(){return Number(this.value)}}]),e}();t.exports=a},{}],448:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.elem=t,this.toggleElem=t.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}return i(e,[{key:"toggle",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.elem.classList.toggle("open")}}]),e}();t.exports=o},{}],449:[function(e,t,n){"use strict";var r=e("moment");e("moment/locale/en-gb");var i=e("./pages/page-form");r.locale("en-gb"),t.exports=function(e,t){e.controller("PageEditController",["$scope","$http","$attrs","$interval","$timeout","$sce",function(e,n,o,a,s,l){function c(){v.title=$("#name").val(),v.html=e.editContent,g=a(function(){if(!(Date.now()-y<1e3*h/2)){var t=$("#name").val(),n=e.editContent;t===v.title&&n===v.html||(v.html=n,v.title=t,u())}},1e3*h)}function u(){if(e.draftsEnabled){var i={name:$("#name").val(),html:m?l.getTrustedHtml(e.displayContent):e.editContent};m&&(i.markdown=e.editContent);var o=window.baseUrl("/ajax/page/"+d+"/save-draft");n.put(o,i).then(function(t){_=!1;var n=r.utc(r.unix(t.data.timestamp)).toDate();e.draftText=t.data.message+r(n).format("HH:mm"),e.isNewPageDraft||(e.isUpdateDraft=!0),f(),y=Date.now()},function(e){_||(t.emit("error",trans("errors.page_draft_autosave_fail")),_=!0)})}}function f(){e.draftUpdated=!0,s(function(){e.draftUpdated=!1},2e3)}e.editorOptions=i(),e.editContent="",e.draftText="";var d=Number(o.pageId),p=0!==d,h=30,m="markdown"===o.editorType;e.draftsEnabled="true"===o.draftsEnabled,e.isUpdateDraft=1===Number(o.pageUpdateDraft),e.isNewPageDraft=1===Number(o.pageNewDraft),e.isUpdateDraft||e.isNewPageDraft?e.draftText=trans("entities.pages_editing_draft"):e.draftText=trans("entities.pages_editing_page");var g=!1,v={title:!1,html:!1};p&&e.draftsEnabled&&setTimeout(function(){c()},1e3),m&&(e.displayContent="",e.editorChange=function(t){e.displayContent=l.trustAsHtml(t)}),m||(e.editorChange=function(){});var y=0,_=!1;e.forceDraftSave=function(){u()},e.$on("save-draft",u),e.discardDraft=function(){var r=window.baseUrl("/ajax/page/"+d);n.get(r).then(function(n){g&&a.cancel(g),e.draftText=trans("entities.pages_editing_page"),e.isUpdateDraft=!1,e.$broadcast("html-update",n.data.html),e.$broadcast("markdown-update",n.data.markdown||n.data.html),$("#name").val(n.data.name),s(function(){c()},1e3),t.emit("success",trans("entities.pages_draft_discarded"))})}}])}},{"./pages/page-form":453,moment:421,"moment/locale/en-gb":420}],450:[function(e,t,n){"use strict";var r=e("markdown-it"),i=e("markdown-it-task-lists"),o=e("./code");t.exports=function(e,t){e.directive("tinymce",["$timeout",function(e){return{restrict:"A",scope:{tinymce:"=",mceModel:"=",mceChange:"="},link:function(t,n,r){function i(n){n.on("ExecCommand change input NodeChange ObjectResized",function(r){var i=n.getContent();e(function(){t.mceModel=i}),t.mceChange(i)}),n.on("keydown",function(e){83===e.keyCode&&(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&(e.preventDefault(),t.$emit("save-draft",e))}),n.on("i
dropzone:355}],460:[function(e,t,n){"use strict";function r(){this.id=Number(this.$el.getAttribute("entity-id")),this.type=this.$el.getAttribute("entity-type")}var i={id:null,type:"",searching:!1,searchTerm:"",searchResults:""},o={},a={searchBook:function(){var e=this;if(0!==this.searchTerm.trim().length){this.searching=!0,this.searchResults="";var t=window.baseUrl("/search/"+this.type+"/"+this.id);t+="?term="+encodeURIComponent(this.searchTerm),this.$http.get(t).then(function(t){e.searchResults=t.data})}},checkSearchForm:function(){this.searching=this.searchTerm>0},clearSearch:function(){this.searching=!1,this.searchTerm=""}};t.exports={data:i,computed:o,methods:a,mounted:r}},{}],461:[function(e,t,n){"use strict";function r(){window.ImageManager=this,this.imageType=this.$el.getAttribute("image-type"),this.uploadedTo=this.$el.getAttribute("uploaded-to"),u=window.baseUrl("/images/"+this.imageType+"/all/")}var i=e("./components/dropzone"),o=0,a=0,s=0,l=!1,c=!1,u="",f=[],d=!1,p={images:[],imageType:!1,uploadedTo:!1,selectedImage:!1,dependantPages:!1,showing:!1,view:"all",hasMore:!1,searching:!1,searchTerm:"",imageUpdateSuccess:!1,imageDeleteSuccess:!1},h={show:function(e){c=e,this.showing=!0,this.$el.children[0].components.overlay.show(),l||(this.fetchData(),l=!0)},hide:function(){this.showing=!1,this.$el.children[0].components.overlay.hide()},fetchData:function(){var e=this,t=u+o,n={};!1!==this.uploadedTo&&(n.page_id=this.uploadedTo),this.searching&&(n.term=this.searchTerm),this.$http.get(t,{params:n}).then(function(t){e.images=e.images.concat(t.data.images),e.hasMore=t.data.hasMore,o++})},setView:function(e){this.cancelSearch(),this.images=[],this.hasMore=!1,o=0,this.view=e,u=window.baseUrl("/images/"+this.imageType+"/"+e+"/"),this.fetchData()},searchImages:function(){if(""===this.searchTerm)return this.cancelSearch();this.searching||(f=this.images,d=this.hasMore),this.searching=!0,this.images=[],this.hasMore=!1,o=0,u=window.baseUrl("/images/"+this.imageType+"/search/"),this.fetchData()},cancelSearch:function(){this.searching=!1,this.searchTerm="",this.images=f,this.hasMore=d},imageSelect:function(e){var t=Date.now();t-a<300&&e.id===s?this.callbackAndHide(e):(this.selectedImage=e,this.dependantPages=!1),a=t,s=e.id},callbackAndHide:function(e){c&&c(e),this.hide()},saveImageDetails:function(){var e=this,t=window.baseUrl("/images/update/"+this.selectedImage.id);this.$http.put(t,this.selectedImage).then(function(t){e.$events.emit("success",trans("components.image_update_success"))}).catch(function(t){if(422===t.response.status){var n=t.response.data,r="";Object.keys(n).forEach(function(e){r+=n[e].join("\n")}),e.$events.emit("error",r)}})},deleteImage:function(){var e=this,t=!1!==this.dependantPages,n=window.baseUrl("/images/"+this.selectedImage.id);t&&(n+="?force=true"),this.$http.delete(n).then(function(t){e.images.splice(e.images.indexOf(e.selectedImage),1),e.selectedImage=!1,e.$events.emit("success",trans("components.image_delete_success"))}).catch(function(t){400===t.response.status&&(e.dependantPages=t.response.data)})},getDate:function(e){return new Date(e)},uploadSuccess:function(e){this.images.unshift(e.data),this.$events.emit("success",trans("components.image_upload_success"))}},m={uploadUrl:function(){return window.baseUrl("/images/"+this.imageType+"/upload")}};t.exports={mounted:r,methods:h,data:p,computed:m,components:{dropzone:i}}},{"./components/dropzone":459}],462:[function(e,t,n){"use strict";function r(){this.termString=document.querySelector("[name=searchTerm]").value,this.typeParse(this.termString),this.exactParse(this.termString),this.tagParse(this.termString),this.optionParse(this.termString),this.dateParse(this.termString)}var i=e("moment"),o={terms:"",termString:"",search:{type:{page:!0,chapter:!0,book:!0},exactTerms:[],tagTerms:[],option:{},dates:{updated_after:!1,updated_before:!1,created_after:!1,created_before:!1}}},a={},s={appendTerm:function(e){this.termString+=" "+e,this.termString=this.termString.replace(/\s{2,}/g," "),this.termString=this.termString.replace(/^\s+/,""),this.termString=this.term