All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.40f569ded183c3f2843af478d001fbe5.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
(()=>{var X=(S,b)=>()=>(b||S((b={exports:{}}).exports,b),b.exports);var J=X((K,U)=>{ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(S,b,Y){"use strict";var V=S("./lib/dom"),z=S("./lib/oop"),B=S("./lib/event_emitter").EventEmitter,O=S("./lib/lang"),$=S("./range").Range,T=S("./range_list").RangeList,k=S("./keyboard/hash_handler").HashHandler,I=S("./tokenizer").Tokenizer,N=S("./clipboard"),w={CURRENT_WORD:function(r){return r.session.getTextRange(r.session.getWordRange())},SELECTION:function(r,e,t){var a=r.session.getTextRange();return t?a.replace(/\n\r?([ \t]*\S)/g,`
`+t+"$1"):a},CURRENT_LINE:function(r){return r.session.getLine(r.getCursorPosition().row)},PREV_LINE:function(r){return r.session.getLine(r.getCursorPosition().row-1)},LINE_INDEX:function(r){return r.getCursorPosition().row},LINE_NUMBER:function(r){return r.getCursorPosition().row+1},SOFT_TABS:function(r){return r.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(r){return r.session.getTabSize()},CLIPBOARD:function(r){return N.getText&&N.getText()},FILENAME:function(r){return/[^/\\]*$/.exec(this.FILEPATH(r))[0]},FILENAME_BASE:function(r){return/[^/\\]*$/.exec(this.FILEPATH(r))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(r){return this.FILEPATH(r).replace(/[^/\\]*$/,"")},FILEPATH:function(r){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(r){var e=r.session.$mode||{};return e.blockComment&&e.blockComment.start||""},BLOCK_COMMENT_END:function(r){var e=r.session.$mode||{};return e.blockComment&&e.blockComment.end||""},LINE_COMMENT:function(r){var e=r.session.$mode||{};return e.lineCommentStart||""},CURRENT_YEAR:E.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:E.bind(null,{year:"2-digit"}),CURRENT_MONTH:E.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:E.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:E.bind(null,{month:"short"}),CURRENT_DATE:E.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:E.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:E.bind(null,{weekday:"short"}),CURRENT_HOUR:E.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:E.bind(null,{minute:"2-digit"}),CURRENT_SECOND:E.bind(null,{second:"2-digit"})};w.SELECTED_TEXT=w.SELECTION;function E(r){var e=new Date().toLocaleString("en-us",r);return e.length==1?"0"+e:e}var A=function(){function r(){this.snippetMap={},this.snippetNameMap={},this.variables=w}return r.prototype.getTokenizer=function(){return r.$tokenizer||this.createTokenizer()},r.prototype.createTokenizer=function(){function e(i){return i=i.substr(1),/^\d+$/.test(i)?[{tabstopId:parseInt(i,10)}]:[{text:i}]}function t(i){return"(?:[^\\\\"+i+"]|\\\\.)"}var a={regex:"/("+t("/")+"+)/",onMatch:function(i,s,c){var n=c[0];return n.fmtString=!0,n.guard=i.slice(1,-1),n.flag="",""},next:"formatString"};return r.$tokenizer=new I({start:[{regex:/\\./,onMatch:function(i,s,c){var n=i[1];return(n=="}"&&c.length||"`$\\".indexOf(n)!=-1)&&(i=n),[i]}},{regex:/}/,onMatch:function(i,s,c){return[c.length?c.shift():i]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(i,s,c){var n=e(i.substr(1));return c.unshift(n[0]),n},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(i,s,c){var n=i.slice(1,-1).replace(/\\[,|\\]|,/g,function(u){return u.length==2?u[1]:"\0"}).split("\0").map(function(u){return{value:u}});return c[0].choices=n,[n[0]]},next:"start"},a,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(i,s,c){return c.length&&c[0].expectElse?(c[0].expectElse=!1,c[0].ifEnd={elseEnd:c[0]},[c[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(i,s,c){var n=i[1];return n=="}"&&c.length||"`$\\".indexOf(n)!=-1?i=n:n=="n"?i=`
`:n=="t"?i="	":"ulULE".indexOf(n)!=-1&&(i={changeCase:n,local:n>"a"}),[i]}},{regex:"/\\w*}",onMatch:function(i,s,c){var n=c.shift();return n&&(n.flag=i.slice(1,-1)),this.next=n&&n.tabstopId?"start":"",[n||i]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(i,s,c){return[{text:i.slice(1)}]}},{regex:/\${\w+/,onMatch:function(i,s,c){var n={text:i.slice(2)};return c.unshift(n),[n]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(i,s,c){var n=c.shift();return this.next=n&&n.tabstopId?"start":"",[n||i]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(i,s,c){var n=c[0];return n.formatFunction=i.slice(2,-1),[c.shift()]},next:"formatString"},a,{regex:/:[\?\-+]?/,onMatch:function(i,s,c){i[1]=="+"&&(c[0].ifEnd=c[0]),i[1]=="?"&&(c[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),r.$tokenizer},r.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(a){return a.value||a})},r.prototype.getVariableValue=function(e,t,a){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return typeof i=="function"&&(i=this.variables[t](e,t,a)),i==null?"":i},r.prototype.tmStrFormat=function(e,t,a){if(!t.fmt)return e;var i=t.flag||"",s=t.guard;s=new RegExp(s,i.replace(/[^gim]/g,""));var c=typeof t.fmt=="string"?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,n=this,u=e.replace(s,function(){var o=n.variables.__;n.variables.__=[].slice.call(arguments);for(var d=n.resolveVariables(c,a),l="E",m=0;m=0&&u.splice(o,1)}}e.content?s(e):Array.isArray(e)&&e.forEach(s)},r.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t=[],a={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,s;s=i.exec(e);){if(s[1])try{a=JSON.parse(s[1]),t.push(a)}catch{}if(s[4])a.content=s[4].replace(/^\t/gm,""),t.push(a),a={};else{var c=s[2],n=s[3];if(c=="regex"){var u=/\/((?:[^\/\\]|\\.)*)|$/g;a.guard=u.exec(n)[1],a.trigger=u.exec(n)[1],a.endTrigger=u.exec(n)[1],a.endGuard=u.exec(n)[1]}else c=="snippet"?(a.tabTrigger=n.match(/^\S*/)[0],a.name||(a.name=n)):c&&(a[c]=n)}}return t},r.prototype.getSnippetByName=function(e,t){var a=this.snippetNameMap,i;return this.getActiveScopes(t).some(function(s){var c=a[s];return c&&(i=c[e]),!!i},this),i},r}();z.implement(A.prototype,B);var p=function(r,e,t){t===void 0&&(t={});var a=r.getCursorPosition(),i=r.session.getLine(a.row),s=r.session.getTabString(),c=i.match(/^\s*/)[0];a.column1?(P=C[C.length-1].length,j+=C.length-1):P+=v.length,D+=v}else v&&(v.start?v.end={row:j,column:P}:v.start={row:j,column:P})}),{text:D,tabstops:u,tokens:n}},f=function(){function r(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=O.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return r.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},r.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},r.prototype.onChange=function(e){for(var t=e.action[0]=="r",a=this.selectedTabstop||{},i=a.parents||{},s=this.tabstops.slice(),c=0;c2&&(this.tabstops.length&&n.push(n.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,n))},r.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach(function(a){a.markerId||(a.markerId=t.addMarker(a,"ace_snippet-marker","text"))})},r.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach(function(a){t.removeMarker(a.markerId),a.markerId=null})},r.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);t!=-1&&e.tabstop.splice(t,1),t=this.ranges.indexOf(e),t!=-1&&this.ranges.splice(t,1),t=e.tabstop.rangeList.ranges.indexOf(e),t!=-1&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),t!=-1&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},r}();f.prototype.keyboardHandler=new k,f.prototype.keyboardHandler.bindKeys({Tab:function(r){b.snippetManager&&b.snippetManager.expandWithTab(r)||(r.tabstopManager.tabNext(1),r.renderer.scrollCursorIntoView())},"Shift-Tab":function(r){r.tabstopManager.tabNext(-1),r.renderer.scrollCursorIntoView()},Esc:function(r){r.tabstopManager.detach()}});var h=function(r,e){r.row==0&&(r.column+=e.column),r.row+=e.row},g=function(r,e){r.row==e.row&&(r.column-=e.column),r.row-=e.row};V.importCssString(`
.ace_snippet-marker {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: rgba(194, 193, 208, 0.09);
    border: 1px dotted rgba(211, 208, 235, 0.62);
    position: absolute;
}`,"snippets.css",!1),b.snippetManager=new A;var M=S("./editor").Editor;(function(){this.insertSnippet=function(r,e){return b.snippetManager.insertSnippet(this,r,e)},this.expandSnippet=function(r){return b.snippetManager.expandWithTab(this,r)}}).call(M.prototype)});ace.define("ace/ext/emmet",["require","exports","module","ace/keyboard/hash_handler","ace/editor","ace/snippets","ace/range","ace/config","resources","resources","tabStops","resources","utils","actions"],function(S,b,Y){"use strict";var V=S("../keyboard/hash_handler").HashHandler,z=S("../editor").Editor,B=S("../snippets").snippetManager,O=S("../range").Range,$=S("../config"),T,k,I=function(){function p(){}return p.prototype.setupContext=function(f){this.ace=f,this.indentation=f.session.getTabString(),T||(T=window.emmet);var h=T.resources||T.require("resources");h.setVariable("indentation",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},p.prototype.getSelectionRange=function(){var f=this.ace.getSelectionRange(),h=this.ace.session.doc;return{start:h.positionToIndex(f.start),end:h.positionToIndex(f.end)}},p.prototype.createSelection=function(f,h){var g=this.ace.session.doc;this.ace.selection.setRange({start:g.indexToPosition(f),end:g.indexToPosition(h)})},p.prototype.getCurrentLineRange=function(){var f=this.ace,h=f.getCursorPosition().row,g=f.session.getLine(h).length,M=f.session.doc.positionToIndex({row:h,column:0});return{start:M,end:M+g}},p.prototype.getCaretPos=function(){var f=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(f)},p.prototype.setCaretPos=function(f){var h=this.ace.session.doc.indexToPosition(f);this.ace.selection.moveToPosition(h)},p.prototype.getCurrentLine=function(){var f=this.ace.getCursorPosition().row;return this.ace.session.getLine(f)},p.prototype.replaceContent=function(f,h,g,M){g==null&&(g=h==null?this.getContent().length:h),h==null&&(h=0);var r=this.ace,e=r.session.doc,t=O.fromPoints(e.indexToPosition(h),e.indexToPosition(g));r.session.remove(t),t.end=t.start,f=this.$updateTabstops(f),B.insertSnippet(r,f)},p.prototype.getContent=function(){return this.ace.getValue()},p.prototype.getSyntax=function(){if(this.$syntax)return this.$syntax;var f=this.ace.session.$modeId.split("/").pop();if(f=="html"||f=="php"){var h=this.ace.getCursorPosition(),g=this.ace.session.getState(h.row);typeof g!="string"&&(g=g[0]),g&&(g=g.split("-"),g.length>1?f=g[0]:f=="php"&&(f="html"))}return f},p.prototype.getProfileName=function(){var f=T.resources||T.require("resources");switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var h=f.getVariable("profile");return h||(h=this.ace.session.getLines(0,2).join("").search(/]+XHTML/i)!=-1?"xhtml":"html"),h;default:var g=this.ace.session.$mode;return g.emmetConfig&&g.emmetConfig.profile||"xhtml"}},p.prototype.prompt=function(f){return prompt(f)},p.prototype.getSelection=function(){return this.ace.session.getTextRange()},p.prototype.getFilePath=function(){return""},p.prototype.$updateTabstops=function(f){var h=1e3,g=0,M=null,r=T.tabStops||T.require("tabStops"),e=T.resources||T.require("resources"),t=e.getVocabulary("user"),a={tabstop:function(s){var c=parseInt(s.group,10),n=c===0;n?c=++g:c+=h;var u=s.placeholder;u&&(u=r.processText(u,a));var o="${"+c+(u?":"+u:"")+"}";return n&&(M=[s.start,o]),o},escape:function(s){return s=="$"?"\\$":s=="\\"?"\\\\":s}};if(f=r.processText(f,a),t.variables.insert_final_tabstop&&!/\$\{0\}$/.test(f))f+="${0}";else if(M){var i=T.utils?T.utils.common:T.require("utils");f=i.replaceSubstring(f,"${0}",M[0],M[1])}return f},p}(),N={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab",wrap_with_abbreviation:{mac:"shift+ctrl+a",win:"shift+ctrl+a"}},w=new I;b.commands=new V,b.runEmmetCommand=function p(f){if(this.action=="expand_abbreviation_with_tab"){if(!f.selection.isEmpty())return!1;var h=f.selection.lead,g=f.session.getTokenAt(h.row,h.column);if(g&&/\btag\b/.test(g.type))return!1}try{w.setupContext(f);var M=T.actions||T.require("actions");if(this.action=="wrap_with_abbreviation")return setTimeout(function(){M.run("wrap_with_abbreviation",w)},0);var r=M.run(this.action,w)}catch(t){if(!T){var e=b.load(p.bind(this,f));return this.action=="expand_abbreviation_with_tab"?!1:e}f._signal("changeStatus",typeof t=="string"?t:t.message),$.warn(t),r=!1}return r};for(var E in N)b.commands.addCommand({name:"emmet:"+E,action:E,bindKey:N[E],exec:b.runEmmetCommand,multiSelectAction:"forEach"});b.updateCommands=function(p,f){f?p.keyBinding.addKeyboardHandler(b.commands):p.keyBinding.removeKeyboardHandler(b.commands)},b.isSupportedMode=function(p){if(!p)return!1;if(p.emmetConfig)return!0;var f=p.$id||p;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(f)},b.isAvailable=function(p,f){if(/(evaluate_math_expression|expand_abbreviation)$/.test(f))return!0;var h=p.session.$mode,g=b.isSupportedMode(h);if(g&&h.$modes)try{w.setupContext(p),/js|php/.test(w.getSyntax())&&(g=!1)}catch{}return g};var A=function(p,f){var h=f;if(h){var g=b.isSupportedMode(h.session.$mode);p.enableEmmet===!1&&(g=!1),g&&b.load(),b.updateCommands(h,g)}};b.load=function(p){return typeof k!="string"?($.warn("script for emmet-core is not loaded"),!1):($.loadModule(k,function(){k=null,p&&p()}),!0)},b.AceEmmetEditor=I,$.defineOptions(z.prototype,"editor",{enableEmmet:{set:function(p){this[p?"on":"removeListener"]("changeMode",A),A({enableEmmet:!!p},this)},value:!0}}),b.setCore=function(p){typeof p=="string"?k=p:T=p}});(function(){ace.require(["ace/ext/emmet"],function(S){typeof U=="object"&&typeof K=="object"&&U&&(U.exports=S)})})()});J();})();

//# sourceMappingURL=40f569ded183c3f2843af478d001fbe5.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy