functionsimpleUpload(e,l,n){functiont(){if("object"==typeofn&&null!==n){if("boolean"==typeofn.forceIframe&&(U=n.forceIframe),"function"==typeofn.init&&(I=n.init),"function"==typeofn.start&&(L=n.start),"function"==typeofn.progress&&(q=n.progress),"function"==typeofn.success&&(W=n.success),"function"==typeofn.error&&(_=n.error),"function"==typeofn.cancel&&(M=n.cancel),"function"==typeofn.complete&&(D=n.complete),"function"==typeofn.finish&&(N=n.finish),"string"==typeofn.hashWorker&&""!=n.hashWorker&&(S=n.hashWorker),"function"==typeofn.hashComplete&&(z=n.hashComplete),"object"==typeofn.data&&null!==n.data)for(vareinn.data)F[e]=n.data[e];if("number"==typeofn.limit&&y(n.limit)&&n.limit>0&&(w=n.limit),"number"==typeofn.maxFileSize&&y(n.maxFileSize)&&n.maxFileSize>0&&(x=n.maxFileSize),"object"==typeofn.allowedExts&&null!==n.allowedExts)for(vareinn.allowedExts)j.push(n.allowedExts[e]);if("object"==typeofn.allowedTypes&&null!==n.allowedTypes)for(vareinn.allowedTypes)k.push(n.allowedTypes[e]);if("string"==typeofn.expect&&""!=n.expect){vart=n.expect.toLowerCase(),o=["auto","json","xml","html","script","text"];for(vareino)if(o[e]==t){E=t;break}}if("object"==typeofn.xhrFields&&null!==n.xhrFields)for(vareinn.xhrFields)T[e]=n.xhrFields[e]}if("object"==typeofl&&null!==l&&linstanceofjQuery){if(!(l.length>0))return!1;l=l.get(0)}if(!U&&window.File&&window.FileReader&&window.FileList&&window.Blob&&("object"==typeofn&&null!==n&&"object"==typeofn.files&&null!==n.files?b=n.files:"object"==typeofl&&null!==l&&"object"==typeofl.files&&null!==l.files&&(b=l.files)),("object"!=typeofl||null===l)&&null==b)return!1;"object"==typeofn&&null!==n&&"string"==typeofn.name&&""!=n.name?C=n.name.replace(/\[\s*\]/g,"[0]"):"object"==typeofl&&null!==l&&"string"==typeofl.name&&""!=l.name&&(C=l.name.replace(/\[\s*\]/g,"[0]"));varr=0;if(null!=b?b.length>0&&(r=b.length>1&&window.FormData&&$.ajaxSettings.xhr().upload?w>0&&b.length>w?w:b.length:1):""!=l.value&&(r=1),r>0){if("object"==typeofl&&null!==l){vari=$(l);J=$("<form>").hide().attr("enctype","multipart/form-data").attr("method","post").appendTo("body"),i.after(i.clone(!0).val("")).removeAttr("onchange").off().removeAttr("id").attr("name",C).appendTo(J)}for(vars=0;r>s;s++)!function(e){R[e]={state:0,hashWorker:null,xhr:null,iframe:null},A[e]={upload:{index:e,state:"init",file:null!=b?b[e]:{name:l.value.split(/(\\|\/)/g).pop()},cancel:function(){if(0==u(e))d(e,4);else{if(1!=u(e))return!1;d(e,4),null!=R[e].hashWorker&&(R[e].hashWorker.terminate(),R[e].hashWorker=null),null!=R[e].xhr&&(R[e].xhr.abort(),R[e].xhr=null),null!=R[e].iframe&&($("iframe[name=simpleUpload_iframe_"+R[e].iframe+"]").attr("src","javascript:false;"),simpleUpload.dequeueIframe(R[e].iframe),R[e].iframe=null),P(e)}return!0}}}}(s);varp=H(r);if(p!==!1){varf=r;if("number"==typeofp&&y(p)&&p>=0&&r>p){f=p;for(varm=f;r>m;m++)d(m,4)}for(varc=[],v=0;f>v;v++)X(v,A[v].upload.file)!==!1&&(c[c.length]=v);c.length>0?(B=c.length,simpleUpload.queueUpload(c,function(e){a(e)}),simpleUpload.uploadNext()):Z()}else{for(varminA)d(m,4);Z()}}}functiona(e){if(1==u(e)){varn=null;if(null!=b){if(void0==b[e]||null==b[e])returnvoidK(e,{name:"InternalError",message:"There was an error uploading the file"});n=b[e]}elseif(""==l.value)returnvoidK(e,{name:"InternalError",message:"There was an error uploading the file"});returnj.length>0&&!c(j,n)?voidK(e,{name:"InvalidFileExtensionError",message:"That file format is not allowed"}):k.length>0&&!v(k,n)?voidK(e,{name:"InvalidFileTypeError",message:"That file format is not allowed"}):x>0&&!h(x,n)?voidK(e,{name:"MaxFileSizeError",message:"That file is too big"}):void(null!=S&&null!=z?o(e):i(e))}}functiono(e){if(null!=b&&void0!=b[e]&&null!=b[e]&&window.Worker){varl=b[e];if(void0!=l.size&&null!=l.size&&""!=l.size&&y(l.size)&&(l.slice||l.webkitSlice||l.mozSlice))try{varn=newWorker(S);n.addEventListener("error",function(){n.terminate(),R[e].hashWorker=null,i(e)},!1),n.addEventListener("message",function(l){if(l.data.result){vart=l.data.result;n.terminate(),R[e].h
p.attachments=Number(buf)}if("/"==str.charAt(i+1))for(p.nsp="";++i;){varc=str.charAt(i);if(","==c)break;if(p.nsp+=c,i==str.length)break}elsep.nsp="/";varnext=str.charAt(i+1);if(""!==next&&Number(next)==next){for(p.id="";++i;){varc=str.charAt(i);if(null==c||Number(c)!=c){--i;break}if(p.id+=str.charAt(i),i==str.length)break}p.id=Number(p.id)}if(str.charAt(++i))try{p.data=json.parse(str.substr(i))}catch(e){returnerror()}returndebug("decoded %s as %j",str,p),p}functionBinaryReconstructor(packet){this.reconPack=packet,this.buffers=[]}functionerror(data){return{type:exports.ERROR,data:"parser error"}}vardebug=_dereq_("debug")("socket.io-parser"),json=_dereq_("json3"),Emitter=(_dereq_("isarray"),_dereq_("component-emitter")),binary=_dereq_("./binary"),isBuf=_dereq_("./is-buffer");exports.protocol=4,exports.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],exports.CONNECT=0,exports.DISCONNECT=1,exports.EVENT=2,exports.ACK=3,exports.ERROR=4,exports.BINARY_EVENT=5,exports.BINARY_ACK=6,exports.Encoder=Encoder,exports.Decoder=Decoder,Encoder.prototype.encode=function(obj,callback){if(debug("encoding packet %j",obj),exports.BINARY_EVENT==obj.type||exports.BINARY_ACK==obj.type)encodeAsBinary(obj,callback);else{varencoding=encodeAsString(obj);callback([encoding])}},Emitter(Decoder.prototype),Decoder.prototype.add=function(obj){varpacket;if("string"==typeofobj)packet=decodeString(obj),exports.BINARY_EVENT==packet.type||exports.BINARY_ACK==packet.type?(this.reconstructor=newBinaryReconstructor(packet),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",packet)):this.emit("decoded",packet);else{if(!isBuf(obj)&&!obj.base64)thrownewError("Unknown type: "+obj);if(!this.reconstructor)thrownewError("got binary data when not reconstructing a packet");packet=this.reconstructor.takeBinaryData(obj),packet&&(this.reconstructor=null,this.emit("decoded",packet))}},Decoder.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},BinaryReconstructor.prototype.takeBinaryData=function(binData){if(this.buffers.push(binData),this.buffers.length==this.reconPack.attachments){varpacket=binary.reconstructPacket(this.reconPack,this.buffers);returnthis.finishedReconstruction(),packet}returnnull},BinaryReconstructor.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},{"./binary":39,"./is-buffer":41,"component-emitter":42,debug:14,isarray:33,json3:34}],41:[function(_dereq_,module,exports){(function(global){functionisBuf(obj){returnglobal.Buffer&&global.Buffer.isBuffer(obj)||global.ArrayBuffer&&objinstanceofArrayBuffer}module.exports=isBuf}).call(this,"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{})},{}],42:[function(_dereq_,module,exports){arguments[4][26][0].apply(exports,arguments)},{dup:26}],43:[function(_dereq_,module,exports){functiontoArray(list,index){vararray=[];index=index||0;for(vari=index||0;i<list.length;i++)array[i-index]=list[i];returnarray}module.exports=toArray},{}],44:[function(_dereq_,module,exports){(function(global){!function(root){functionucs2decode(string){for(varvalue,extra,output=[],counter=0,length=string.length;counter<length;)value=string.charCodeAt(counter++),value>=55296&&value<=56319&&counter<length?(extra=string.charCodeAt(counter++),56320==(64512&extra)?output.push(((1023&value)<<10)+(1023&extra)+65536):(output.push(value),counter--)):output.push(value);returnoutput}functionucs2encode(array){for(varvalue,length=array.length,index=-1,output="";++index<length;)value=array[index],value>65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value);returnoutput}functioncheckScalarValue(codePoint){if(codePoint>=55296&&codePoint<=57343)throwError("Lone surrogate U+"+codePoint.toString(16).toUpperCase()+" is not a scalar value")}functioncreateByte(codePoint,shift){returnstringFromCharCode(codePoint>>shift&63|128)}functionencodeCodePoint(codePoint){if(0==(4294967168&codePoin
t.$trigger=s,t.events.show.call(s,t)===!1)returnvoid(o=null);if(h.update.call(s,t),t.position.call(s,t,n,a),t.zIndex){varc=t.zIndex;"function"==typeoft.zIndex&&(c=t.zIndex.call(s,t)),i.zIndex=p(s)+c}h.layer.call(t.$menu,t,i.zIndex),t.$menu.find("ul").css("zIndex",i.zIndex+1),t.$menu.css(i)[t.animation.show](t.animation.duration,function(){s.trigger("contextmenu:visible")}),s.data("contextMenu",t).addClass("context-menu-active"),e(document).off("keydown.contextMenu").on("keydown.contextMenu",f.key),t.autoHide&&e(document).on("mousemove.contextMenuAutoHide",function(e){varn=s.offset();n.right=n.left+s.outerWidth(),n.bottom=n.top+s.outerHeight(),!t.$layer||t.hovering||e.pageX>=n.left&&e.pageX<=n.right&&e.pageY>=n.top&&e.pageY<=n.bottom||setTimeout(function(){t.hovering||null==t.$menu||t.$menu.trigger("contextmenu:hide")},50)})},hide:function(t,n){vara=e(this);if(t||(t=a.data("contextMenu")||{}),n||!t.events||t.events.hide.call(a,t)!==!1){if(a.removeData("contextMenu").removeClass("context-menu-active"),t.$layer){setTimeout(function(e){returnfunction(){e.remove()}}(t.$layer),10);try{deletet.$layer}catch(s){t.$layer=null}}o=null,t.$menu.find("."+t.classNames.hover).trigger("contextmenu:blur"),t.$selected=null,t.$menu.find("."+t.classNames.visible).removeClass(t.classNames.visible),e(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),t.$menu&&t.$menu[t.animation.hide](t.animation.duration,function(){t.build&&(t.$menu.remove(),e.each(t,function(e){switch(e){case"ns":case"selector":case"build":case"trigger":return!0;default:t[e]=void0;try{deletet[e]}catch(n){}return!0}})),setTimeout(function(){a.trigger("contextmenu:hidden")},10)})}},create:function(n,a){functiono(t){varn=e("<span></span>");if(t._accesskey)t._beforeAccesskey&&n.append(document.createTextNode(t._beforeAccesskey)),e("<span></span>").addClass("context-menu-accesskey").text(t._accesskey).appendTo(n),t._afterAccesskey&&n.append(document.createTextNode(t._afterAccesskey));elseif(t.isHtmlName){if("undefined"!=typeoft.accesskey)thrownewError("accesskeys are not compatible with HTML names and cannot be used together in the same item");n.html(t.name)}elsen.text(t.name);returnn}void0===a&&(a=n),n.$menu=e('<ul class="context-menu-list"></ul>').addClass(n.className||"").data({contextMenu:n,contextMenuRoot:a}),e.each(["callbacks","commands","inputs"],function(e,t){n[t]={},a[t]||(a[t]={})}),a.accesskeys||(a.accesskeys={}),e.each(n.items,function(s,i){varc=e('<li class="context-menu-item"></li>').addClass(i.className||""),r=null,l=null;if(c.on("click",e.noop),"string"!=typeofi&&"cm_separator"!==i.type||(i={type:"cm_seperator"}),i.$node=c.data({contextMenu:n,contextMenuRoot:a,contextMenuKey:s}),"undefined"!=typeofi.accesskey)for(vard,m=t(i.accesskey),p=0;d=m[p];p++)if(!a.accesskeys[d]){a.accesskeys[d]=i;varx=i.name.match(newRegExp("^(.*?)("+d+")(.*)$","i"));x&&(i._beforeAccesskey=x[1],i._accesskey=x[2],i._afterAccesskey=x[3]);break}if(i.type&&u[i.type])u[i.type].call(c,i,n,a),e.each([n,a],function(t,a){a.commands[s]=i,!e.isFunction(i.callback)||void0!==a.callbacks[s]&&void0!==n.type||(a.callbacks[s]=i.callback)});else{switch("cm_seperator"===i.type?c.addClass("context-menu-separator "+a.classNames.notSelectable):"html"===i.type?c.addClass("context-menu-html "+a.classNames.notSelectable):i.type?(r=e("<label></label>").appendTo(c),o(i).appendTo(r),c.addClass("context-menu-input"),n.hasTypes=!0,e.each([n,a],function(e,t){t.commands[s]=i,t.inputs[s]=i})):i.items&&(i.type="sub"),i.type){case"cm_seperator":break;case"text":l=e('<input type="text" value="1" name="" value="">').attr("name","context-menu-input-"+s).val(i.value||"").appendTo(r);break;case"textarea":l=e('<textarea name=""></textarea>').attr("name","context-menu-input-"+s).val(i.value||"").appendTo(r),i.height&&l.height(i.height);break;case"checkbox":l=e('<input type="checkbox" value="1" name="" value="">').attr("name","context-menu-input-"+s).val(i.value||"").prop("checked",!!i.selected).prependTo(r);break;case"radio":l=e('<input type="radio" value="1" name="" value="">').attr("name
e.remove(l.line+1,p);else{o(u,u.text.slice(0,l.ch)+c[0],i(0)),o(f,h+f.text.slice(s.ch),d);varm=a(1,c.length-1);p>1&&e.remove(l.line+1,p-1),e.insert(l.line+1,m)}Ci(e,"change",e,t)}function$r(e){this.lines=e,this.parent=null;for(vart=0,n=0;t<e.length;++t)e[t].parent=this,n+=e[t].height;this.height=n}functionVr(e){this.children=e;for(vart=0,n=0,r=0;r<e.length;++r){vari=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}functionKr(e,t,n){functionr(e,i,o){if(e.linked)for(vara=0;a<e.linked.length;++a){varl=e.linked[a];if(l.doc!=i){vars=o&&l.sharedHist;n&&!s||(t(l.doc,s),r(l.doc,e,s))}}}r(e,null,!0)}functionXr(e,t){if(t.cm)thrownewError("This document is already in use.");e.doc=t,t.cm=e,a(e),n(e),e.options.lineWrapping||h(e),e.options.mode=t.modeOption,Dt(e)}functionZr(e,t){if(t-=e.first,0>t||t>=e.size)thrownewError("There is no line "+(t+e.first)+" in the document.");for(varn=e;!n.lines;)for(varr=0;;++r){vari=n.children[r],o=i.chunkSize();if(o>t){n=i;break}t-=o}returnn.lines[t]}functionJr(e,t,n){varr=[],i=t.line;returne.iter(t.line,n.line+1,function(e){varo=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}functionQr(e,t,n){varr=[];returne.iter(t,n,function(e){r.push(e.text)}),r}functionei(e,t){varn=t-e.height;if(n)for(varr=e;r;r=r.parent)r.height+=n}functionti(e){if(null==e.parent)returnnull;for(vart=e.parent,n=Pi(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(vari=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();returnn+t.first}functionni(e,t){varn=e.first;e:do{for(varr=0;r<e.children.length;++r){vari=e.children[r],o=i.height;if(o>t){e=i;continuee}t-=o,n+=i.chunkSize()}returnn}while(!e.lines);for(varr=0;r<e.lines.length;++r){vara=e.lines[r],l=a.height;if(l>t)break;t-=l}returnn+r}functionri(e){e=yr(e);for(vart=0,n=e.parent,r=0;r<n.lines.length;++r){vari=n.lines[r];if(i==e)break;t+=i.height}for(varo=n.parent;o;n=o,o=n.parent)for(varr=0;r<o.children.length;++r){vara=o.children[r];if(a==n)break;t+=a.height}returnt}functionii(e){vart=e.order;returnnull==t&&(t=e.order=ll(e.text)),t}functionoi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}functionai(e,t){varn={from:$(t.from),to:Qo(t),text:Jr(e,t.from,t.to)};returndi(e,n,t.from.line,t.to.line+1),Kr(e,function(e){di(e,n,t.from.line,t.to.line+1)},!0),n}functionli(e){for(;e.length;){vart=Ii(e);if(!t.ranges)break;e.pop()}}functionsi(e,t){returnt?(li(e.done),Ii(e.done)):e.done.length&&!Ii(e.done).ranges?Ii(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Ii(e.done)):void0}functionci(e,t,n,r){vari=e.history;i.undone.length=0;varo,a=+newDate;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>a-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=si(i,i.lastOp==r))){varl=Ii(o.changes);0==_o(t.from,t.to)&&0==_o(t.from,l.to)?l.to=Qo(t):o.changes.push(ai(e,t))}else{vars=Ii(i.done);for(s&&s.ranges||hi(e.sel,i.done),o={changes:[ai(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||Pa(e,"historyAdded")}functionui(e,t,n,r){vari=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&newDate-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}functionfi(e,t,n,r){vari=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ui(e,o,Ii(i.done),t))?i.done[i.done.length-1]=t:hi(t,i.done),i.lastSelTime=+newDate,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&li(i.undone)}functionhi(e,t){varn=Ii(t);n&&n.ranges&&n.equals(e)||t.push(e)}functiondi(e,t,n,r){vari=t["spans_"+e.id],o=0;e.iter(Math.max(
if(-1!==e.indexOf(l[0])){vars=e.replace(l[0],l[1]);if(this.check(s))return[s]}}varc=this;returnc.alphabet="abcdefghijklmnopqrstuvwxyz",i(e)}},"undefined"!=typeoft&&(t.exports=i)}).call(this,e("buffer").Buffer,"/node_modules/typo-js")},{buffer:3,fs:2}],19:[function(e,t,n){varr=e("codemirror");r.commands.tabAndIndentMarkdownList=function(e){vart=e.listSelections(),n=t[0].head,r=e.getStateAfter(n.line),i=r.list!==!1;if(i)returnvoide.execCommand("indentMore");if(e.options.indentWithTabs)e.execCommand("insertTab");else{varo=Array(e.options.tabSize+1).join(" ");e.replaceSelection(o)}},r.commands.shiftTabAndUnindentMarkdownList=function(e){vart=e.listSelections(),n=t[0].head,r=e.getStateAfter(n.line),i=r.list!==!1;if(i)returnvoide.execCommand("indentLess");if(e.options.indentWithTabs)e.execCommand("insertTab");else{varo=Array(e.options.tabSize+1).join(" ");e.replaceSelection(o)}}},{codemirror:10}],20:[function(e,t,n){"use strict";functionr(e){returne=U?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl")}functioni(e,t,n){e=e||{};varr=document.createElement("a");returnt=void0==t||t,e.title&&t&&(r.title=a(e.title,e.action,n),U&&(r.title=r.title.replace("Ctrl","⌘"),r.title=r.title.replace("Alt","⌥"))),r.tabIndex=-1,r.className=e.className,r}functiono(){vare=document.createElement("i");returne.className="separator",e.innerHTML="|",e}functiona(e,t,n){vari,o=e;returnt&&(i=Y(t),n[i]&&(o+=" ("+r(n[i])+")")),o}functionl(e,t){t=t||e.getCursor("start");varn=e.getTokenAt(t);if(!n.type)return{};for(varr,i,o=n.type.split(" "),a={},l=0;l<o.length;l++)r=o[l],"strong"===r?a.bold=!0:"variable-2"===r?(i=e.getLine(t.line),/^\s*\d+\.\s/.test(i)?a["ordered-list"]=!0:a["unordered-list"]=!0):"atom"===r?a.quote=!0:"em"===r?a.italic=!0:"quote"===r?a.quote=!0:"strikethrough"===r?a.strikethrough=!0:"comment"===r?a.code=!0:"link"===r?a.link=!0:"tag"===r?a.image=!0:r.match(/^header(\-[1-6])?$/)&&(a[r.replace("header","heading")]=!0);returna}functions(e){vart=e.codemirror;t.setOption("fullScreen",!t.getOption("fullScreen")),t.getOption("fullScreen")?(V=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=V;varn=t.getWrapperElement();/fullscreen/.test(n.previousSibling.className)?n.previousSibling.className=n.previousSibling.className.replace(/\s*fullscreen\b/,""):n.previousSibling.className+=" fullscreen";varr=e.toolbarElements.fullscreen;/active/.test(r.className)?r.className=r.className.replace(/\s*active\s*/g,""):r.className+=" active";vari=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(i.className)&&N(e)}functionc(e){P(e,"bold",e.options.blockStyles.bold)}functionu(e){P(e,"italic",e.options.blockStyles.italic)}functionf(e){P(e,"strikethrough","~~")}functionh(e){functiont(e){if("object"!=typeofe)throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeofe+": "+e;returne.styles&&e.styles[2]&&-1!==e.styles[2].indexOf("formatting-code-block")}functionn(e){returne.state.base.base||e.state.base}functionr(e,r,i,o,a){i=i||e.getLineHandle(r),o=o||e.getTokenAt({line:r,ch:1}),a=a||!!i.text&&e.getTokenAt({line:r,ch:i.text.length-1});varl=o.type?o.type.split(" "):[];returna&&n(a).indentedCode?"indented":-1!==l.indexOf("comment")&&(n(o).fencedChars||n(a).fencedChars||t(i)?"fenced":"single")}functioni(e,t,n,r){vari=t.line+1,o=n.line+1,a=t.line!==n.line,l=r+"\n",s="\n"+r;a&&o++,a&&0===n.ch&&(s=r+"\n",o--),E(e,!1,[l,s]),e.setSelection({line:i,ch:0},{line:o,ch:0})}varo,a,l,s=e.options.blockStyles.code,c=e.codemirror,u=c.getCursor("start"),f=c.getCursor("end"),h=c.getTokenAt({line:u.line,ch:u.ch||1}),d=c.getLineHandle(u.line),p=r(c,u.line,d,h);if("single"===p){varm=d.text.slice(0,u.ch).replace("`",""),g=d.text.slice(u.ch).replace("`","");c.replaceRange(m+g,{line:u.line,ch:0},{line:u.line,ch:99999999999999}),u.ch--,u!==f&&f.ch--,c.setSelection(u,f),c.focus()}elseif("fenced"===p)if(u.line!==f.line||u.ch!==f.ch){for(o=u.line;o>=0&&(d=c.getLineHandle(o),!t(d));o--);varv,y,x,b,w=c.getTokenAt({line:o,ch:1}),k=n(w).fencedChars;t(c.
functionr(){}functionw(e){try{returnObject.defineProperty(e,"sentinel",{}),"sentinel"ine}catch(t){}}functionH(e){returne=+e,e!==e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}Function.prototype.bind||(Function.prototype.bind=function(t){varn=this;if("function"!=typeofn)thrownewTypeError("Function.prototype.bind called on incompatible "+n);vari=u.call(arguments,1),s=function(){if(thisinstanceofs){vare=n.apply(this,i.concat(u.call(arguments)));returnObject(e)===e?e:this}returnn.apply(t,i.concat(u.call(arguments)))};returnn.prototype&&(r.prototype=n.prototype,s.prototype=newr,r.prototype=null),s});varl,c,h,p,d,i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty);if((d=f(o,"__defineGetter__"))&&(l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){functione(e){vart=newArray(e+2);returnt[0]=t[1]=0,t}varn,t=[];if(t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,"XXX"),n+1==t.length,n+1==t.length)return!0}()){varv=Array.prototype.splice;Array.prototype.splice=function(e,t){returnarguments.length?v.apply(this,[void0===e?0:e,void0===t?this.length-e:t].concat(u.call(arguments,2))):[]}}elseArray.prototype.splice=function(e,t){varn=this.length;e>0?e>n&&(e=n):void0==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);varr=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{varo=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(varh=0;h<l;++h)this[f+h]=this[a+h];elseif(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);elsefor(this.length=c+s,h=0;h<s;++h)this[e+h]=i[h]}returnr};Array.isArray||(Array.isArray=function(t){return"[object Array]"==a(t)});varm=Object("a"),g="a"!=m[0]||!(0inm);if(Array.prototype.forEach||(Array.prototype.forEach=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=arguments[1],s=-1,o=r.length>>>0;if("[object Function]"!=a(t))thrownewTypeError;for(;++s<o;)sinr&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0,s=Array(i),o=arguments[1];if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");for(varu=0;u<i;u++)uinr&&(s[u]=t.call(o,r[u],u,n));returns}),Array.prototype.filter||(Array.prototype.filter=function(t){varo,n=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0,s=[],u=arguments[1];if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");for(varf=0;f<i;f++)finr&&(o=r[f],t.call(u,o,f,n)&&s.push(o));returns}),Array.prototype.every||(Array.prototype.every=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0,s=arguments[1];if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");for(varo=0;o<i;o++)if(oinr&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0,s=arguments[1];if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");for(varo=0;o<i;o++)if(oinr&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0;if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");if(!i&&1==arguments.length)thrownewTypeError("reduce of empty array with no initial value");varo,s=0;if(arguments.length>=2)o=arguments[1];elsefor(;;){if(sinr){o=r[s++];break}if(++s>=i)thrownewTypeError("reduce of empty array with no initial value")}for(;s<i;s++)sinr&&(o=t.call(void0,o,r[s],s,n));returno}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0;if("[object Function]"!=a(t))thrownew
for(varn=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length),o=t||0;o<s;++o)i+=n[o].length+r;returni+e.column}}).call(a.prototype),t.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){"use strict";varr=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,s=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;varn=this;this.$worker=function(){if(n.running){for(vare=newDate,t=n.currentLine,r=-1,i=n.doc,s=t;n.lines[t];)t++;varo=i.getLength(),u=0;for(n.running=!1;t<o;){n.$tokenizeRow(t),r=t;dot++;while(n.lines[t]);if(u++,u%5===0&&newDate-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,s<=r&&n.fireUpdateEvent(s,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){varn={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){vart=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;elseif("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{varr=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){returnthis.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){returnthis.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){vart=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);returnthis.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(s.prototype),t.BackgroundTokenizer=s}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";varr=e("./lib/lang"),s=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,i){if(this.regExp)for(varo=i.firstRow,u=i.lastRow,a=o;a<=u;a++){varf=this.cache[a];null==f&&(f=r.getMatchOffsets(n.getLine(a),this.regExp),f.length>this.MAX_RANGES&&(f=f.slice(0,this.MAX_RANGES)),f=f.map(function(e){returnnews(a,e.offset,a,e.offset+e.length)}),this.cache[a]=f.length?f:"");for(varl=f.length;l--;)t.drawSingleLineMarker(e,f[l].toScreenRange(n),this.clazz,i)}}}).call(o.prototype),t.SearchHighlight=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,n){"use strict";functioni(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];varn=t[t.length-1];this.range=newr(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}varr=e("../range").Range;(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)thrownewError("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column
},this.onReloadTokenizer=function(e){vart=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeofe){if(e.getTokenizer)returnthis.$onChangeMode(e);varn=e,r=n.path}elser=e||"ace/mode/text";returnthis.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=newa),this.$modes[r]&&!n?(this.$onChangeMode(this.$modes[r]),void(t&&t())):(this.$modeId=r,s.loadModule(["mode",r],function(e){returnthis.$modeId!==r?t&&t():(this.$modes[r]&&!n?this.$onChangeMode(this.$modes[r]):e&&e.Mode&&(e=newe.Mode(n),n||(this.$modes[r]=e,e.$id=r),this.$onChangeMode(e)),void(t&&t()))}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0),void0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();varn=e.getTokenizer();if(void0!==n.addEventListener){varr=this.onReloadTokenizer.bind(this);n.addEventListener("update",r)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=newc(n);vari=this;this.bgTokenizer.addEventListener("update",function(e){i._signal("tokenizerUpdate",e)})}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){returnthis.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){returnthis.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){returnthis.$scrollLeft},this.getScreenWidth=function(){returnthis.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)returnthis.lineWidgetsWidth;vare=0;returnthis.lineWidgets.forEach(function(t){t&&t.screenWidth>e&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)returnthis.screenWidth=this.$wrapLimit;for(vart=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,s=this.$foldData[i],o=s?s.start.row:1/0,u=t.length,a=0;a<u;a++){if(a>o){if(a=s.end.row+1,a>=u)break;s=this.$foldData[i++],o=s?s.start.row:1/0}null==n[a]&&(n[a]=this.$getStringScreenWidth(t[a])[0]),n[a]>r&&(r=n[a])}this.screenWidth=r}},this.getLine=function(e){returnthis.doc.getLine(e)},this.getLines=function(e,t){returnthis.doc.getLines(e,t)},this.getLength=function(){returnthis.doc.getLength()},this.getTextRange=function(e){returnthis.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){returnthis.doc.insert(e,t)},this.remove=function(e){returnthis.doc.remove(e)},this.removeFullLines=function(e,t){returnthis.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(varn=null,r=e.length-1;r!=-1;r--){vari=e[r];"doc"==i.group?(this.doc.revertDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!0,n)):i.deltas.forEach(function(e){this.addFolds(e.folds)},this)}returnthis.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(varn=null,r=0;r<e.length;r++){vari=e[r];"doc"==i.group&&(this.doc.applyDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!1,n))}returnthis.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$ge
vare=this.createKeywordMapper({"support.function":u,"support.constant":a,"support.type":o,"support.constant.color":f,"support.constant.fonts":l},"text",!0);this.$rules={start:[{token:"comment",regex:"\\/\\*",push:"comment"},{token:"paren.lparen",regex:"\\{",push:"ruleset"},{token:"string",regex:"@.*?{",push:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{token:"comment",regex:"\\/\\*",push:"comment"},{token:"paren.lparen",regex:"\\{",push:"ruleset"},{token:"string",regex:"\\}",next:"pop"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],comment:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}],ruleset:[{token:"paren.rparen",regex:"\\}",next:"pop"},{token:"comment",regex:"\\/\\*",push:"comment"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:["constant.numeric","keyword"],regex:"("+c+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:h},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:p},{token:["support.function","string","support.function"],regex:"(url\\()(.*)(\\))"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}]},this.normalizeRules()};r.inherits(d,s),t.CssHighlightRules=d}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,t,n){"use strict";varr={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"
vari={iec:"_Ki_Mi_Gi_Ti_Pi_Ei_Zi_Yi",si:"_K_M_G_T_P_E_Z_Y"};returnfunction(e,_,o){e=Math.abs(e),_||0===_||(_=1);vart="si"==o?1e3:1024,n=0;for(i[o]||(o="si");e>=t;)e/=t,++n;returne.toFixed(_)+" "+i[o].split("_")[n]+"b"}}),function(){functiont(t,n){returnt.set(n[0],n[1]),t}functionn(t,n){returnt.add(n),t}functionr(t,n,r){switch(r.length){case0:returnt.call(n);case1:returnt.call(n,r[0]);case2:returnt.call(n,r[0],r[1]);case3:returnt.call(n,r[0],r[1],r[2])}returnt.apply(n,r)}functione(t,n,r,e){for(varu=-1,i=t?t.length:0;++u<i;){varo=t[u];n(e,o,r(o),t)}returne}functionu(t,n){for(varr=-1,e=t?t.length:0;++r<e&&!1!==n(t[r],r,t););returnt}functioni(t,n){for(varr=t?t.length:0;r--&&!1!==n(t[r],r,t););returnt}functiono(t,n){for(varr=-1,e=t?t.length:0;++r<e;)if(!n(t[r],r,t))return!1;return!0}functionf(t,n){for(varr=-1,e=t?t.length:0,u=0,i=[];++r<e;){varo=t[r];n(o,r,t)&&(i[u++]=o)}returni}functionc(t,n){return!(!t||!t.length)&&-1<d(t,n,0)}functiona(t,n,r){for(vare=-1,u=t?t.length:0;++e<u;)if(r(n,t[e]))return!0;return!1}functionl(t,n){for(varr=-1,e=t?t.length:0,u=Array(e);++r<e;)u[r]=n(t[r],r,t);returnu}functions(t,n){for(varr=-1,e=n.length,u=t.length;++r<e;)t[u+r]=n[r];returnt}functionh(t,n,r,e){varu=-1,i=t?t.length:0;for(e&&i&&(r=t[++u]);++u<i;)r=n(r,t[u],u,t);returnr}functionp(t,n,r,e){varu=t?t.length:0;for(e&&u&&(r=t[--u]);u--;)r=n(r,t[u],u,t);returnr}function_(t,n){for(varr=-1,e=t?t.length:0;++r<e;)if(n(t[r],r,t))return!0;return!1}functionv(t,n,r){vare;returnr(t,function(t,r,u){if(n(t,r,u))returne=r,!1}),e}functiong(t,n,r,e){varu=t.length;for(r+=e?1:-1;e?r--:++r<u;)if(n(t[r],r,t))returnr;return-1}functiond(t,n,r){if(n===n)t:{--r;for(vare=t.length;++r<e;)if(t[r]===n){t=r;breakt}t=-1}elset=g(t,b,r);returnt}functiony(t,n,r,e){--r;for(varu=t.length;++r<u;)if(e(t[r],n))returnr;return-1}functionb(t){returnt!==t}functionx(t,n){varr=t?t.length:0;returnr?k(t,n)/r:P}functionj(t){returnfunction(n){returnnull==n?F:n[t]}}functionw(t){returnfunction(n){returnnull==t?F:t[n]}}functionm(t,n,r,e,u){returnu(t,function(t,u,i){r=e?(e=!1,t):n(r,t,u,i)}),r}functionA(t,n){varr=t.length;for(t.sort(n);r--;)t[r]=t[r].c;returnt}functionk(t,n){for(varr,e=-1,u=t.length;++e<u;){vari=n(t[e]);i!==F&&(r=r===F?i:r+i)}returnr}functionE(t,n){for(varr=-1,e=Array(t);++r<t;)e[r]=n(r);returne}functionO(t,n){returnl(n,function(n){return[n,t[n]]})}functionS(t){returnfunction(n){returnt(n)}}functionI(t,n){returnl(n,function(n){returnt[n]})}functionR(t,n){returnt.has(n)}functionz(t,n){for(varr=-1,e=t.length;++r<e&&-1<d(n,t[r],0););returnr}functionW(t,n){for(varr=t.length;r--&&-1<d(n,t[r],0););returnr}functionB(t){return"\\"+Dt[t]}functionL(t){varn=-1,r=Array(t.size);returnt.forEach(function(t,e){r[++n]=[e,t]}),r}functionU(t,n){returnfunction(r){returnt(n(r))}}functionC(t,n){for(varr=-1,e=t.length,u=0,i=[];++r<e;){varo=t[r];o!==n&&"__lodash_placeholder__"!==o||(t[r]="__lodash_placeholder__",i[u++]=r)}returni}functionM(t){varn=-1,r=Array(t.size);returnt.forEach(function(t){r[++n]=t}),r}functionD(t){varn=-1,r=Array(t.size);returnt.forEach(function(t){r[++n]=[t,t]}),r}functionT(t){if(Wt.test(t)){for(varn=Rt.lastIndex=0;Rt.test(t);)++n;t=n}elset=tn(t);returnt}function$(t){returnWt.test(t)?t.match(Rt)||[]:t.split("")}varF,N=1/0,P=NaN,Z=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],q=/\b__p\+='';/g,V=/\b(__p\+=)''\+/g,K=/(__e\(.*?\)|\b__t\))\+'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Y=RegExp(G.source),H=RegExp(J.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rt=/^\w*$/,et=/^\./,ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),ft=/^\s+|\s+$/g,ct=/^\s+/,at=/\s+$/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,ht=/,? & /,pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\
return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!yu(t))||rt.test(t)||!nt.test(t)||null!=n&&tinGu(n)}functionAe(t){varn=le(t),r=Ot[n];return"function"==typeofr&&ninDt.prototype&&(t===r||(n=co(r),!!n&&t===n[0]))}functionke(t){varn=t&&t.constructor;returnt===("function"==typeofn&&n.prototype||Xu)}functionEe(t,n){returnfunction(r){returnnull!=r&&r[t]===n&&(n!==F||tinGu(r))}}functionOe(t,n,r,e,u,i){returnpu(t)&&pu(n)&&(i.set(n,t),tr(t,n,F,Oe,i),i.delete(n)),t}functionSe(t,n,e){returnn=Ri(n===F?t.length-1:n,0),function(){for(varu=arguments,i=-1,o=Ri(u.length-n,0),f=Pu(o);++i<o;)f[i]=u[n+i];for(i=-1,o=Pu(n+1);++i<n;)o[i]=u[i];returno[n]=e(f),r(t,this,o)}}functionIe(t,n){return1==n.length?t:Rn(t,vr(n,0,-1))}functionRe(t,n,r){vare=n+"";n=_o;varu,i=Ue;returnu=(u=e.match(st))?u[1].split(ht):[],r=i(u,r),(i=r.length)&&(u=i-1,r[u]=(1<i?"& ":"")+r[u],r=r.join(2<i?", ":" "),e=e.replace(lt,"{\n/* [wrapped with "+r+"] */\n")),n(t,e)}functionze(t){varn=0,r=0;returnfunction(){vare=Wi(),u=16-(e-r);if(r=e,0<u){if(500<=++n)returnarguments[0]}elsen=0;returnt.apply(F,arguments)}}functionWe(t,n){varr=-1,e=t.length,u=e-1;for(n=n===F?e:dn(n,0,e);++r<n;){vare=cr(r,u),i=t[e];t[e]=t[r],t[r]=i}returnt.length=n,t}functionBe(t){if("string"==typeoft||yu(t))returnt;varn=t+"";return"0"==n&&1/t==-N?"-0":n}functionLe(t){if(null!=t){try{returnri.call(t)}catch(t){}returnt+""}return""}functionUe(t,n){returnu(Z,function(r){vare="_."+r[0];n&r[1]&&!c(t,e)&&t.push(e)}),t.sort()}functionCe(t){if(tinstanceofDt)returnt.clone();varn=newMt(t.__wrapped__,t.__chain__);returnn.__actions__=Ur(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}functionMe(t,n,r){vare=t?t.length:0;returne?(r=null==r?0:ju(r),0>r&&(r=Ri(e+r,0)),g(t,he(n,3),r)):-1}functionDe(t,n,r){vare=t?t.length:0;if(!e)return-1;varu=e-1;returnr!==F&&(u=ju(r),u=0>r?Ri(e+u,0):zi(u,e-1)),g(t,he(n,3),u,!0)}functionTe(t){returnt&&t.length?En(t,1):[]}function$e(t){returnt&&t.length?t[0]:F}functionFe(t){varn=t?t.length:0;returnn?t[n-1]:F}functionNe(t,n){returnt&&t.length&&n&&n.length?or(t,n):t}functionPe(t){returnt?Ui.call(t):t}functionZe(t){if(!t||!t.length)return[];varn=0;returnt=f(t,function(t){if(cu(t))returnn=Ri(t.length,n),!0}),E(n,function(n){returnl(t,j(n))})}functionqe(t,n){if(!t||!t.length)return[];vare=Ze(t);returnnull==n?e:l(e,function(t){returnr(n,F,t)})}functionVe(t){returnt=Ot(t),t.__chain__=!0,t}functionKe(t,n){returnn(t)}functionGe(){returnthis}functionJe(t,n){return(tf(t)?u:to)(t,he(n,3))}functionYe(t,n){return(tf(t)?i:no)(t,he(n,3))}functionHe(t,n){return(tf(t)?l:Hn)(t,he(n,3))}functionQe(t,n,r){returnn=r?F:n,n=t&&null==n?t.length:n,oe(t,128,F,F,F,F,n)}functionXe(t,n){varr;if("function"!=typeofn)thrownewHu("Expected a function");returnt=ju(t),function(){return0<--t&&(r=n.apply(this,arguments)),1>=t&&(n=F),r}}functiontu(t,n,r){returnn=r?F:n,t=oe(t,8,F,F,F,F,F,n),t.placeholder=tu.placeholder,t}functionnu(t,n,r){returnn=r?F:n,t=oe(t,16,F,F,F,F,F,n),t.placeholder=nu.placeholder,t}functionru(t,n,r){functione(n){varr=c,e=a;returnc=a=F,_=n,s=t.apply(e,r)}functionu(t){varr=t-p;returnt-=_,p===F||r>=n||0>r||g&&t>=l}functioni(){vart=Po();if(u(t))returno(t);varr,e=po;r=t-_,t=n-(t-p),r=g?zi(t,l-r):t,h=e(i,r)}functiono(t){returnh=F,d&&c?e(t):(c=a=F,s)}functionf(){vart=Po(),r=u(t);if(c=arguments,a=this,p=t,r){if(h===F)return_=t=p,h=po(i,n),v?e(t):s;if(g)returnh=po(i,n),e(p)}returnh===F&&(h=po(i,n)),s}varc,a,l,s,h,p,_=0,v=!1,g=!1,d=!0;if("function"!=typeoft)thrownewHu("Expected a function");returnn=mu(n)||0,pu(r)&&(v=!!r.leading,l=(g="maxWait"inr)?Ri(mu(r.maxWait)||0,n):l,d="trailing"inr?!!r.trailing:d),f.cancel=function(){h!==F&&oo(h),_=0,c=p=a=h=F},f.flush=function(){returnh===F?s:o(Po())},f}functioneu(t,n){functionr(){vare=arguments,u=n?n.apply(this,e):e[0],i=r.cache;returni.has(u)?i.get(u):(e=t.apply(this,e),r.cache=i.set(u,e)||i,e)}if("function"!=typeoft||n&&"function"!=typeofn)thrownewHu("Expected a function");returnr.cache=new(eu.Cache||Zt),r}fu