!functione(t,n,r){functioni(a,s){if(!n[a]){if(!t[a]){varl="function"==typeofrequire&&require;if(!s&&l)returnl(a,!0);if(o)returno(a,!0);varc=newError("Cannot find module '"+a+"'");throwc.code="MODULE_NOT_FOUND",c}varu=n[a]={exports:{}};t[a][0].call(u.exports,function(e){varn=t[a][1][e];returni(n||e)},u,u.exports,e,t,n,r)}returnn[a].exports}for(varo="function"==typeofrequire&&require,a=0;a<r.length;a++)i(r[a]);returni}({1:[function(e,t,n){!function(e,t){"use strict";functionn(e,t,n){if(!e)throwle("areq","Argument '{0}' is {1}",t||"?",n||"required");returne}functionr(e,t){returne||t?e?t?(V(e)&&(e=e.join(" ")),V(t)&&(t=t.join(" ")),e+" "+t):e:t:""}functioni(e){vart={};returne&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}functiono(e,t,n){varr="";returne=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}functiona(e,t){varn=e.indexOf(t);t>=0&&e.splice(n,1)}functions(e){if(einstanceofQ)switch(e.length){case0:returne;case1:if(e[0].nodeType===N)returne;break;default:returnQ(l(e))}if(e.nodeType===N)returnQ(e)}functionl(e){if(!e[0])returne;for(vart=0;t<e.length;t++){varn=e[t];if(n.nodeType===N)returnn}}functionc(e,t,n){W(t,function(t){e.addClass(t,n)})}functionu(e,t,n){W(t,function(t){e.removeClass(t,n)})}functionf(e){returnfunction(t,n){n.addClass&&(c(e,t,n.addClass),n.addClass=null),n.removeClass&&(u(e,t,n.removeClass),n.removeClass=null)}}functiond(e){if(e=e||{},!e.$$prepared){vart=e.domOperation||ee;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=ee},e.$$prepared=!0}returne}functionp(e,t){h(e,t),m(e,t)}functionh(e,t){t.from&&(e.css(t.from),t.from=null)}functionm(e,t){t.to&&(e.css(t.to),t.to=null)}functiong(e,t,n){varr=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),deletei.preparationClasses);varl=r.domOperation!==ee?r.domOperation:null;returnH(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}functionv(e,t,n){functionr(e){J(e)&&(e=e.split(" "));vart={};returnW(e,function(e){e.length&&(t[e]=!0)}),t}vari={};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});varo={addClass:"",removeClass:""};returnW(i,function(t,n){varr,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}functiony(e){returneinstanceofQ?e[0]:e}function_(e,t,n){varr="";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))}functionb(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}functionx(e,t){varn=t?"-"+t+"s":"";returnk(e,[ae,n]),[ae,n]}functionw(e,t){varn=t?"paused":"",r=F+re;returnk(e,[r,n]),[r,n]}functionk(e,t){varn=t[0],r=t[1];e.style[n]=r}function$(e,t){returne?t?e+" "+t:e:t}functionC(e){return[oe,e+"s"]}functionS(e,t){return[t?ie:ae,e+"s"]}functionE(e,t,n){varr=Object.create(null),i=e.getComputedStyle(t)||{};returnW(n,function(e,t){varn=i[e];if(n){varo=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=T(n)),0===n&&(n=null),r[t]=n}}),r}functionT(e){vart=0,n=e.split(/\s*,\s*/);returnW(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}functionA(e){return0===e||null!=e}functionM(e,t){varn=O,r=e+"s";returnt?n+=te:r+=" linear all",[n,r]}functionD(){vare=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){varn=e[t];returnn?n.total:0},get:function(t){varn=e[t];returnn&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}functionL(e,t,n){W(n,function(n){e[n]=Y(e[n])?e[
returne.replace(/&/g,"&").replace(_,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(b,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}functionm(e,t){varn=!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){varo=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))}}}functiong(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(varn=t.attributes,r=0,i=n.length;r<i;r++){varo=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}vars=t.firstChild;s&&g(s),t=t.nextSibling}}varv=!1;this.$get=["$$sanitizeUri",function(e){returnv&&o(A,E),function(t){varn=[];returnu(t,f(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){returns(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;vary,_=/[\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){vart;if(!e.document||!e.document.implementation)throwd("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");varn=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)y=r[0];else{vari=t.createElement("html");y=t.createElement("body"),i.appendChild(y),t.appendChild(i)}}(e)}functionr(e){vart=[];returnf(t,c).chars(e),t.join("")}vari,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)}varl=t.document;returne&&r.$watch(function(){returnn.hash()},function(e,t){e===t&&""===e||Ve(function(){r.$evalAsync(s)})}),s}]}functionlt(e,t){returne||t?e?t?(oi(e)&&(e=e.join(" ")),oi(t)&&(t=t.join(" ")),e+" "+t):e:t:""}functionct(e){for(vart=0;t<e.length;t++){varn=e[t];if(n.nodeType===Vi)returnn}}functionut(e){x(e)&&(e=e.split(" "));vart=he();returnr(e,function(e){e.length&&(t[e]=!0)}),t}functionft(e){return_(e)?e:{}}functiondt(e,t,n,i){functiono(e){try{e.apply(null,B(arguments,1))}finally{if(0===--y)for(;_.length;)try{_.pop()()}catch(e){n.error(e)}}}functiona(e){vart=e.indexOf("#");return-1===t?"":e.substr(t)}functions(){$=null,l(),c()}functionl(){b=C(),b=v(b)?null:b,R(b,T)&&(b=T),T=b}functionc(){w===u.url()&&x===b||(w=u.url(),x=b,r(S,function(e){e(u.url(),b)}))}varu=this,f=e.location,d=e.history,h=e.setTimeout,m=e.clearTimeout,g={};u.isMock=!1;vary=0,_=[];u.$$completeOutstandingRequest=o,u.$$incOutstandingRequestCount=function(){y++},u.notifyWhenNoOutstandingRequests=function(e){0===y?e():_.push(e)};varb,x,w=f.href,k=t.find("base"),$=null,C=i.history?function(){try{returnd.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){varo=x===r;if(w===t&&(!i.history||o))returnu;vars=w&&Yt(w)===Yt(t);returnw=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(){returnb};varS=[],E=!1,T=null;u.onUrlChange=function(t){returnE||(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(){vare=k.attr("href");returne?e.replace(/^(https?:)?\/\/[^\/]*/,""):""},u.defer=function(e,t){varn;returny++,n=h(function(){deleteg[n],o(e)},t||0),g[n]=!0,n},u.defer.cancel=function(e){return!!g[e]&&(deleteg[e],m(e),o(p),!0)}}functionpt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){returnnewdt(e,r,t,n)}]}functionht(){this.$get=function(){functione(e,r){functioni(e){e!==d&&(p?p===e&&(p=e.n):p=e,o(e.n,e.p),o(e,d),d=e,d.n=null)}functiono(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(einn)throwt("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);vara=0,s=c({},r,{id:e}),l=he(),u=r&&r.capacity||Number.MAX_VALUE,f=he(),d=null,p=null;returnn[e]={put:function(e,t){if(!v(t)){if(u<Number.MAX_VALUE){i(f[e]||(f[e]={key:e}))}returneinl||a++,l[e]=t,a>u&&this.remove(p.key),t}},get:function(e){if(u<Number.MAX_VALUE){vart=f[e];if(!t)return;i(t)}returnl[e]},remove:function(e){if(u<Number.MAX_VALUE){vart=f[e];if(!t)return;t===d&&(d=t.p),t===p&&(p=t.n),o(t.n,t.p),deletef[e]}einl&&(deletel[e],a--)},removeAll:function(){l=he(),a=0,f=he(),d=p=null},destroy:function(){l=null,s=null,f=null,deleten[e]},info:function(){returnc({},s,{size:a})}}}varn={};returne.info=function(){vare={};returnr(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){returnn[e]},e}}functionmt(){this.$get=["$cacheFactory",function(e){returne("templates")}]}functiongt(){}functionvt(t,n){functioni(e,t,n){vari=he();returnr(e,function(e,r){if(einT)returnvoid(i[r]=T[e]);varo=e.match(/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/);if(!o)throwQi("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}functiona(e,t){varn={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)throwQi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);r
},isIdentifierStart:function(e){returnthis.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){returnthis.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){returnthis.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){vare=this.text.charAt(this.index),t=this.peek();if(!t)returne;varn=e.charCodeAt(0),r=t.charCodeAt(0);returnn>=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;varr=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throwbo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(vare="",t=this.index;this.index<this.text.length;){varn=Ur(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{varr=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;elseif(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(){vare=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){vart=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){vart=this.index;this.index++;for(varn="",r=e,i=!1;this.index<this.text.length;){varo=this.text.charAt(this.index);if(r+=o,i){if("u"===o){vara=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}elseif("\\"===o)i=!0;else{if(o===e)returnthis.index++,voidthis.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};varCo=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);vart=this.program();return0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(vare=[];;)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(vare=this.expression();this.expect("|");)e=this.filter(e);returne},expression:function(){returnthis.assignment()},assignment:function(){vare=this.ternary();if(this.expect("=")){if(!fn(e))throwbo("lval","Trying to assign a value to a non l-value");e={type:Co.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}returne},ternary:function(){vare,t,n=this.logicalOR();returnthis.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Co.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function()
}elseif(!this.$$parsedNgModel.assign)throwEa("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,J(this.$$element))},$render:p,$isEmpty:function(e){returnv(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)){vare=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:void0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){functioni(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}functiono(e){a===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;vara=this.$$currentValidationRunId,s=this;returnfunction(){vare=s.$$parserName||"parse";returnv(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(){varn=!0;returnr(s.$validators,function(r,o){vara=Boolean(r(e,t));n=n&&a,i(o,a)}),!!n||(r(s.$asyncValidators,function(e,t){i(t,null)}),!1)}()?voidfunction(){varn=[],a=!0;r(s.$asyncValidators,function(r,o){vars=r(e,t);if(!L(s))throwEa("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);i(o,void0),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)}():voido(!1)},$commitViewValue:function(){vare=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(){functione(){r.$modelValue!==o&&r.$$writeModelToScope()}vart=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!v(n)||void0,this.$$parserValid)for(vari=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));varo=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:void0,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){vart=this.$options.getOption("debounce");w(t[e])?t=t[e]:w(t.default)&&(t=t.default),this.$$timeout.cancel(this.$$pendingDebounce);varn=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){deletee[t]}});varTa,Aa=["$rootS
returne&&e.__esModule?e:{default:e}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functions(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);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)}functionl(e,t){varn="data-clipboard-"+e;if(t.hasAttribute(n))returnt.getAttribute(n)}varc=i(t),u=i(n),f=i(r),d="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},p=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){functiont(e,n){o(this,t);varr=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));returnr.resolveOptions(n),r.listenClick(e),r}returns(t,e),p(t,[{key:"resolveOptions",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};this.action="function"==typeofe.action?e.action:this.defaultAction,this.target="function"==typeofe.target?e.target:this.defaultTarget,this.text="function"==typeofe.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){vart=this;this.listener=(0,f.default)(e,"click",function(e){returnt.onClick(e)})}},{key:"onClick",value:function(e){vart=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=newc.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){returnl("action",e)}},{key:"defaultTarget",value:function(e){vart=l("target",e);if(t)returndocument.querySelector(t)}},{key:"defaultText",value:function(e){returnl("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeofe?[e]:e,n=!!document.queryCommandSupported;returnt.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"==typeofn&&void0!==t?t.exports=r():"function"==typeofdefine&&define.amd?define(r):e.CodeMirror=r()}(this,function(){"use strict";functione(e){returnnewRegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}functiont(e){for(vart=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);returne}functionn(e,n){returnt(e).appendChild(n)}functionr(e,t,n,r){vari=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeoft)i.appendChild(document.createTextNode(t));elseif(t)for(varo=0;o<t.length;++o)i.appendChild(t[o]);returni}functioni(e,t,n,i){varo=r(e,t,n,i);returno.setAttribute("role","presentation"),o}functiono(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)returne.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}functiona(){vare;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;returne}functions(t,n){varr=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}functionl(t,n){for(varr=t.split(" "),i=0;i<r.length;i++)r[i]&&!e(r[i]).test(n)&&(n+=" "+r[i]);returnn}functionc(e){vart=Array.prototype.slice.call(arguments,1);returnfunction(){returne.apply(null,t)}}functi
;-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))}functionjr(e){vart=e.wheelDeltaX,n=e.wheelDeltaY;returnnull==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}}functionFr(e){vart=jr(e);returnt.x*=cs,t.y*=cs,t}functionPr(e,t){varn=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(varc=t.target,u=o.view;c!=a;c=c.parentNode)for(varf=0;f<u.length;f++)if(u[f].node==c){e.display.currentWheelTarget=c;breake}if(r&&!Qo&&!la&&null!=cs)returni&&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){vard=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){vare=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))}}functionNr(e,t){varn=e[t];e.sort(function(e,t){returnP(e.from(),t.from())}),t=d(e,n);for(varr=1;r<e.length;r++){vari=e[r],o=e[r-1];if(P(o.to(),i.from())>=0){vara=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,newfs(l?s:a,l?a:s))}}returnnewus(e,t)}functionIr(e,t){returnnewus([newfs(e,t||e)],0)}functionqr(e){returne.text?F(e.from.line+e.text.length-1,m(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}functionzr(e,t){if(P(e,t.from)<0)returne;if(P(e,t.to)<=0)returnqr(t);varn=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;returne.line==t.to.line&&(r+=qr(t).ch-t.to.ch),F(n,r)}functionRr(e,t){for(varn=[],r=0;r<e.sel.ranges.length;r++){vari=e.sel.ranges[r];n.push(newfs(zr(i.anchor,t),zr(i.head,t)))}returnNr(n,e.sel.primIndex)}functionUr(e,t,n){returne.line==t.line?F(n.line,e.ch-t.ch+n.ch):F(n.line+(e.line-t.line),e.ch)}functionBr(e,t,n){for(varr=[],i=F(e.first,0),o=i,a=0;a<t.length;a++){vars=t[a],l=Ur(s.from,i,o),c=Ur(qr(s),i,o);if(i=s.to,o=c,"around"==n){varu=e.sel.ranges[a],f=P(u.head,u.anchor)<0;r[a]=newfs(f?c:l,f?l:c)}elser[a]=newfs(l,l)}returnnewus(r,e.sel.primIndex)}functionHr(e){e.doc.mode=Ye(e.options,e.doc.modeOption),Wr(e)}functionWr(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)}functionVr(e,t){return0==t.from.ch&&0==t.to.ch&&""==m(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}functionYr(e,t,n,r){functioni(e){returnn?n[e]:null}functiono(e,n,i){lt(e,n,i,r),kt(e,"change",e,t)}functiona(e,t){for(varn=[],o=e;o<t;++o)n.push(newKa(c[o],i(o),r));returnn}vars=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);elseif(Vr(e,t)){varg=a(0,c.length-1);o(f,f.text,p),h&&e.remove(s.line,h),g.length&&e.insert(s.line,g)}elseif(u==f)if(1==c.length)o(u,u.text.slice(0,s.ch)+d+u.text.slice(l.ch),p);else{varv=a(1,c.length-1);v.push(newKa(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)}elseif(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);vary=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)}functionGr(e,t,n){functionr(e,i,o){if(e.linked)for(vara=0;a<e.linked.length;++a){vars=e.linked[a];if(s.doc!=i){varl=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}functionZr(e,t){if(t.cm)thrownewError("This document is already in use.");e.doc=t,t.cm=e,kn(
varm="error",g=s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.]/,v=s.doubleOperators||/^([!<>]==|<>|<<|>>|\/\/|\*\*)/,y=s.doubleDelimiters||/^(\+=|\-=|\*=|%=|\/=|&=|\|=|\^=)/,_=s.tripleDelimiters||/^(\/\/=|>>=|<<=|\*\*=)/,b=s.hangingIndent||a.indentUnit,x=i,w=o;void0!=s.extra_keywords&&(x=x.concat(s.extra_keywords)),void0!=s.extra_builtins&&(w=w.concat(s.extra_builtins));vark=!(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"]);varS=newRegExp("^(([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"]);varS=newRegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}varE=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){varn=t.errorToken;n&&(t.errorToken=!1);varr=h(e,t);returnr&&"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)returnt.tokenize.isString?e.Pass:0;vari=n(t),o=i.type==r.charAt(0);returnnull!=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){returne.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"==typeofn&&"object"==typeoft?r(e("../../lib/codemirror")):"function"==typeofdefine&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)}(function(e){"use strict";e.defineMode("ruby",function(e){functiont(e){for(vart={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;returnt}functionn(e,t,n){returnn.tokenize.push(e),e(t,n)}functionr(e,t){if(e.sol()&&e.match("=begin")&&e.eol())returnt.tokenize.push(c),"comment";if(e.eatSpace())returnnull;varr,o=e.next();if("`"==o||"'"==o||'"'==o)returnn(s(o,"string",'"'==o||"`"==o),e,t);if("/"==o)returni(e)?n(s(o,"string-2",!0),e,t):"operator";if("%"==o){vara="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);vard=e.eat(/[^\w\s=]/);returnd?(h.propertyIsEnumerable(d)&&(d=h[d]),n(s(d,a,f,!0),e,t)):"operator"}if("#"==o)returne.skipToEnd(),"comment";if("<"==o&&(r=e.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))returnn(l(r[1]),e,t);if("0"==o)returne.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(o))returne.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==o){for(;e.match(/^\\[CM]-/););returne.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==o)returne.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]/))returne.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==o)returne.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))returne.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=o||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(o))returnu=o,null;if("-"==o&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(o)){varp=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."
t.prototype._getFilesWithXhr=function(e){vart;returnfunction(){varn,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);returno}.call(this)},t.prototype.cancelUpload=function(e){varn,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)returnthis.processQueue()},i=function(){vare,t;returnt=arguments[0],e=2<=arguments.length?c.call(arguments,1):[],"function"==typeoft?t.apply(this,e):t},t.prototype.uploadFile=function(e){returnthis.uploadFiles([e])},t.prototype.uploadFiles=function(e){varn,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=newXMLHttpRequest,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){returnfunction(){varr,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));returno}}(this),_=function(t){returnfunction(r){vari,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));returnd}}(this),w.onload=function(n){returnfunction(r){vari;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){returnfunction(){if(e[0].status!==t.CANCELED)returna()}}(),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(sinc)(l=c[s])&&w.setRequestHeader(s,l);if(o=newFormData,this.options.params){O=this.options.params;for(hinO)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));returnthis.submitRequest(w,o,e)},t.prototype.submitRequest=function(e,t,n){returne.send(t)},t.prototype._finished=function(e,n,r){vari,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)returnthis.processQueue()},t.prototype._errorProcessing=function(e,n,r){vari,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)returnthis.processQueue()},t}(n),e.version="4.3.0",e.options={},e.optionsForElement=function(t){returnt.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){returnvoid0!==e&&einstanceofHTMLElement&&1===e.nodeType},n.nodeList=function(e){vart=Object.prototype.toString.call(e);returnvoid0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"ine&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeofe||einstanceofString},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},{}],358:[function(e,t,n){functionr(e,t,n){if(!e&&!t&&!n)thrownewError("Missing required arguments");if(!s.string(t))thrownewTypeError("Second argument must be a String");if(!s.fn(n))thrownewTypeError("Third argument must be a Function");if(s.node(e))returni(e,t,n);if(s.nodeList(e))returno(e,t,n);if(s.string(e))returna(e,t,n);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}functioni(e,t,n){returne.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}functiono(e,t,n){returnArray.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}functiona(e,t,n){returnl(document.body,e,t,n)}vars=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){varo,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)returna?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){vara,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";functionr(e){returnArray.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}functioni(e){returnObject.prototype.toString.call(e)}functiono(e){return"[object String]"===i(e)}functiona(e){return"[object Object]"===i(e)}functions(e){return"[object RegExp]"===i(e)}functionl(e){return"[object Function]"===i(e)}functionc(e){returne.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}functionu(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]);varn=[];returne.forEach(function(e){varr=this.__find__(e);if(r<0){if(t)return;thrownewError("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},r.prototype.getRules=function(e){returnnull===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},t.exports=r},{}],381:[function(e,t,n){"use strict";varr=e("../common/utils").isSpace;t.exports=function(e,t,n,i){varo,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];returne.blkIndent=v,!0}},{"../common/utils":367}],382:[function(e,t,n){"use strict";t.exports=function(e,t,n){varr,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}returne.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){vari,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}returno=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";varr=e("../common/utils").isSpace;t.exports=function(e,t,n,i){varo,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
months:0}}functionWt(e,t){returnfunction(n,r){vari,o;returnnull===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"==typeofn?+n:n,i=Rt(n,r),Vt(this,i,e),this}}functionVt(e,t,r,i){varo=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))}functionYt(e,t){varn=e.diff(t,"days",!0);returnn<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}functionGt(e,t){varr=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]);returnthis.format(a||this.localeData().calendar(o,this,_t(r)))}functionZt(){returnnewy(this)}functionKt(e,t){varn=_(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())}functionJt(e,t){varn=_(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())}functionXt(e,t,n,r){returnr=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}functionQt(e,t){varn,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()))}functionen(e,t){returnthis.isSame(e,t)||this.isAfter(e,t)}functiontn(e,t){returnthis.isSame(e,t)||this.isBefore(e,t)}functionnn(e,t,n){varr,i,o,a;returnthis.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}functionrn(e,t){varn,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");returnt-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}functionon(){returnthis.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}functionan(){vare=this.clone().utc();return0<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]")}functionsn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";vare="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");varn="["+e+'("]',r=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';returnthis.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}functionln(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);vart=K(this,e);returnthis.localeData().postformat(t)}functioncn(e,t){returnthis.isValid()&&(_(e)&&e.isValid()||_t(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}functionun(e){returnthis.from(_t(),e)}functionfn(e,t){returnthis.isValid()&&(_(e)&&e.isValid()||_t(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}functiondn(e){returnthis.to(_t(),e)}functionpn(e){vart;returnvoid0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}functionhn(){returnthis._locale}functionmn(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}functiongn(e){returnvoid0===(e=N(e))||"millisecond"===e?this:("date
;vare=this.tryEntries[0],t=e.completion;if("throw"===t.type)throwt.arg;returnthis.rval},dispatchException:function(e){functiont(t,r){returno.type="throw",o.arg=e,n.next=t,!!r}if(this.done)throwe;for(varn=this,r=this.tryEntries.length-1;r>=0;--r){vari=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)returnt("end");if(i.tryLoc<=this.prev){vara=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)returnt(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnt(i.finallyLoc)}elseif(a){if(this.prev<i.catchLoc)returnt(i.catchLoc,!0)}else{if(!s)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnt(i.finallyLoc)}}}},abrupt:function(e,t){for(varn=this.tryEntries.length-1;n>=0;--n){varr=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){vari=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);varo=i?i.completion:{};returno.type=e,o.arg=t,i?this.next=i.finallyLoc:this.complete(o),T},complete:function(e,t){if("throw"===e.type)throwe.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(vart=this.tryEntries.length-1;t>=0;--t){varn=this.tryEntries[t];if(n.finallyLoc===e)returnthis.complete(n.completion,n.afterLoc),d(n),T}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varn=this.tryEntries[t];if(n.tryLoc===e){varr=n.completion;if("throw"===r.type){vari=r.arg;d(n)}returni}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,n){returnthis.delegate={iterator:h(e),resultName:t,nextLoc:n},T}}}("object"==typeofn?n:"object"==typeofwindow?window:"object"==typeofself?self:this)}).call(this,e("_process"),"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{_process:422}],425:[function(e,t,n){functionr(e){vart;if("SELECT"===e.nodeName)e.focus(),t=e.value;elseif("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){varn=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();varr=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}returnt}t.exports=r},{}],426:[function(e,t,n){!function(e){"use strict";"function"==typeofdefine&&define.amd?define(e):void0!==t&&void0!==t.exports?t.exports=e():window.Sortable=e()}(function(){"use strict";functione(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;varn={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(varrinn)!(rint)&&(t[r]=n[r]);ae(t);for(variinthis)"_"===i.charAt(0)&&"function"==typeofthis[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))}functiont(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)}functionn(e,t,n){if(e){n=n||Y;do{if(">*"===t&&e.parentNode===n||v(e,t))returne}while(e=r(e))}returnnull}functionr(e){vart=e.host;returnt&&t.node
returno(e,[{key:"setupListeners",value:function(){vare=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){vart=this.value&&0!==this.value;if(i(this.resetButton,t),i(this.buttonSep,t),i(this.defaultDisplay,!t),i(this.display,t),t){varn=this.getAssetIdFromVal();this.display.textContent="#"+n+", "+e,this.display.href=window.baseUrl("/link/"+n)}}},{key:"getAssetIdFromVal",value:function(){returnNumber(this.value)}}]),e}();t.exports=a},{}],448:[function(e,t,n){"use strict";functionr(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}vari=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){functione(t){r(this,e),this.elem=t,this.toggleElem=t.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}returni(e,[{key:"toggle",value:function(){!(arguments.length>0&&void0!==arguments[0])||arguments[0];this.elem.classList.toggle("open")}}]),e}();t.exports=o},{}],449:[function(e,t,n){"use strict";varr=e("moment");e("moment/locale/en-gb");vari=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){functionc(){v.title=$("#name").val(),v.html=e.editContent,g=a(function(){if(!(Date.now()-y<1e3*h/2)){vart=$("#name").val(),n=e.editContent;t===v.title&&n===v.html||(v.html=n,v.title=t,u())}},1e3*h)}functionu(){if(e.draftsEnabled){vari={name:$("#name").val(),html:m?l.getTrustedHtml(e.displayContent):e.editContent};m&&(i.markdown=e.editContent);varo=window.baseUrl("/ajax/page/"+d+"/save-draft");n.put(o,i).then(function(t){_=!1;varn=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)})}}functionf(){e.draftUpdated=!0,s(function(){e.draftUpdated=!1},2e3)}e.editorOptions=i(),e.editContent="",e.draftText="";vard=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");varg=!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(){});vary=0,_=!1;e.forceDraftSave=function(){u()},e.$on("save-draft",u),e.discardDraft=function(){varr=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";varr=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){functioni(n){n.on("ExecCommand change input NodeChange ObjectResized",function(r){vari=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