filesbox/web/dist/16874.b8bacefd.async.js

11 lines
46 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[16874],{16874:function(){(function(m){if(typeof m.window!="undefined"&&m.document||m.require&&m.define)return;m.console||(m.console=function(){var g=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:g})},m.console.error=m.console.warn=m.console.log=m.console.trace=m.console),m.window=m,m.ace=m,m.onerror=function(g,a,n,r,u){postMessage({type:"error",data:{message:g,data:u&&u.data,file:a,line:n,col:r,stack:u&&u.stack}})},m.normalizeModule=function(g,a){if(a.indexOf("!")!==-1){var n=a.split("!");return m.normalizeModule(g,n[0])+"!"+m.normalizeModule(g,n[1])}if(a.charAt(0)=="."){var r=g.split("/").slice(0,-1).join("/");for(a=(r?r+"/":"")+a;a.indexOf(".")!==-1&&u!=a;){var u=a;a=a.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},m.require=function(a,n){if(n||(n=a,a=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=m.normalizeModule(a,n);var r=m.require.modules[n];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!m.require.tlns)return console.log("unable to load "+n);var u=b(n,m.require.tlns);return u.slice(-3)!=".js"&&(u+=".js"),m.require.id=n,m.require.modules[n]={},importScripts(u),m.require(a,n)};function b(g,a){for(var n=g,r="";n;){var u=a[n];if(typeof u=="string")return u+r;if(u)return u.location.replace(/\/*$/,"/")+(r||u.main||u.name);if(u===!1)return"";var o=n.lastIndexOf("/");if(o===-1)break;r=n.substr(o)+r,n=n.slice(0,o)}return g}m.require.modules={},m.require.tlns={},m.define=function(g,a,n){if(arguments.length==2?(n=a,typeof g!="string"&&(a=g,g=m.require.id)):arguments.length==1&&(n=g,a=[],g=m.require.id),typeof n!="function"){m.require.modules[g]={exports:n,initialized:!0};return}a.length||(a=["require","exports","module"]);var r=function(u){return m.require(g,u)};m.require.modules[g]={exports:{},factory:function(){var u=this,o=n.apply(this,a.slice(0,n.length).map(function(i){switch(i){case"require":return r;case"exports":return u.exports;case"module":return u;default:return r(i)}}));return o&&(u.exports=o),u}}},m.define.amd={},m.require.tlns={},m.initBaseUrls=function(a){for(var n in a)this.require.tlns[n]=a[n]},m.initSender=function(){var a=m.require("ace/lib/event_emitter").EventEmitter,n=m.require("ace/lib/oop"),r=function(){};return function(){n.implement(this,a),this.callback=function(u,o){postMessage({type:"call",id:o,data:u})},this.emit=function(u,o){postMessage({type:"event",name:u,data:o})}}.call(r.prototype),new r};var H=m.main=null,E=m.sender=null;m.onmessage=function(g){var a=g.data;if(a.event&&E)E._signal(a.event,a.data);else if(a.command)if(H[a.command])H[a.command].apply(H,a.args);else if(m[a.command])m[a.command].apply(m,a.args);else throw new Error("Unknown command:"+a.command);else if(a.init){m.initBaseUrls(a.tlns),E=m.sender=m.initSender();var n=this.require(a.module)[a.classname];H=m.main=new n(E)}}})(this),ace.define("ace/lib/oop",[],function(m,b,H){"use strict";b.inherits=function(E,g){E.super_=g,E.prototype=Object.create(g.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})},b.mixin=function(E,g){for(var a in g)E[a]=g[a];return E},b.implement=function(E,g){b.mixin(E,g)}}),ace.define("ace/lib/lang",[],function(m,b,H){"use strict";b.last=function(a){return a[a.length-1]},b.stringReverse=function(a){return a.split("").reverse().join("")},b.stringRepeat=function(a,n){for(var r="";n>0;)n&1&&(r+=a),(n>>=1)&&(a+=a);return r};var E=/^\s\s*/,g=/\s\s*$/;b.stringTrimLeft=function(a){return a.replace(E,"")},b.stringTrimRight=function(a){return a.replace(g,"")},b.copyObject=function(a){var n={};for(var r in a)n[r]=a[r];return n},b.copyArray=function(a){for(var n=[],r=0,u=a.length;r<u;r++)a[r]&&typeof a[r]=="object"?n[r]=this.copyObject(a[r]):n[r]=a[r];return n},b.deepCopy=function a(n){if(typeof n!="object"||!n)return n;var r;if(Array.isArray(n)){r=[];for(var u=0;u<n.length;u++)r[u]=a(n[u]);return r}if(Object.prototype.toString.call(n)!=="[object Object]")return n;r
`,this._signal("changeNewLineMode")},o.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},o.prototype.setNewLineMode=function(i){this.$newLineMode!==i&&(this.$newLineMode=i,this._signal("changeNewLineMode"))},o.prototype.getNewLineMode=function(){return this.$newLineMode},o.prototype.isNewLine=function(i){return i==`\r
`||i=="\r"||i==`
`},o.prototype.getLine=function(i){return this.$lines[i]||""},o.prototype.getLines=function(i,c){return this.$lines.slice(i,c+1)},o.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},o.prototype.getLength=function(){return this.$lines.length},o.prototype.getTextRange=function(i){return this.getLinesForRange(i).join(this.getNewLineCharacter())},o.prototype.getLinesForRange=function(i){var c;if(i.start.row===i.end.row)c=[this.getLine(i.start.row).substring(i.start.column,i.end.column)];else{c=this.getLines(i.start.row,i.end.row),c[0]=(c[0]||"").substring(i.start.column);var l=c.length-1;i.end.row-i.start.row==l&&(c[l]=c[l].substring(0,i.end.column))}return c},o.prototype.insertLines=function(i,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(i,c)},o.prototype.removeLines=function(i,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(i,c)},o.prototype.insertNewLine=function(i){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(i,["",""])},o.prototype.insert=function(i,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(i,this.$split(c))},o.prototype.insertInLine=function(i,c){var l=this.clippedPos(i.row,i.column),p=this.pos(i.row,i.column+c.length);return this.applyDelta({start:l,end:p,action:"insert",lines:[c]},!0),this.clonePos(p)},o.prototype.clippedPos=function(i,c){var l=this.getLength();i===void 0?i=l:i<0?i=0:i>=l&&(i=l-1,c=void 0);var p=this.getLine(i);return c==null&&(c=p.length),c=Math.min(Math.max(c,0),p.length),{row:i,column:c}},o.prototype.clonePos=function(i){return{row:i.row,column:i.column}},o.prototype.pos=function(i,c){return{row:i,column:c}},o.prototype.$clipPosition=function(i){var c=this.getLength();return i.row>=c?(i.row=Math.max(0,c-1),i.column=this.getLine(c-1).length):(i.row=Math.max(0,i.row),i.column=Math.min(Math.max(i.column,0),this.getLine(i.row).length)),i},o.prototype.insertFullLines=function(i,c){i=Math.min(Math.max(i,0),this.getLength());var l=0;i<this.getLength()?(c=c.concat([""]),l=0):(c=[""].concat(c),i--,l=this.$lines[i].length),this.insertMergedLines({row:i,column:l},c)},o.prototype.insertMergedLines=function(i,c){var l=this.clippedPos(i.row,i.column),p={row:l.row+c.length-1,column:(c.length==1?l.column:0)+c[c.length-1].length};return this.applyDelta({start:l,end:p,action:"insert",lines:c}),this.clonePos(p)},o.prototype.remove=function(i){var c=this.clippedPos(i.start.row,i.start.column),l=this.clippedPos(i.end.row,i.end.column);return this.applyDelta({start:c,end:l,action:"remove",lines:this.getLinesForRange({start:c,end:l})}),this.clonePos(c)},o.prototype.removeInLine=function(i,c,l){var p=this.clippedPos(i,c),d=this.clippedPos(i,l);return this.applyDelta({start:p,end:d,action:"remove",lines:this.getLinesForRange({start:p,end:d})},!0),this.clonePos(p)},o.prototype.removeFullLines=function(i,c){i=Math.min(Math.max(0,i),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var l=c==this.getLength()-1&&i>0,p=c<this.getLength()-1,d=l?i-1:i,_=l?this.getLine(d).length:0,O=p?c+1:c,L=p?0:this.getLine(O).length,$=new n(d,_,O,L),I=this.$lines.slice(i,c+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),I},o.prototype.removeNewLine=function(i){i<this.getLength()-1&&i>=0&&this.applyDelta({start:this.pos(i,this.getLine(i).length),end:this.pos(i+1,0),action:"remove",lines:["",""]})},o.prototype.replace=function(i,c){if(i instanceof n||(i=n.fromPoints(i.start,i.end)),c.length===0&&i.isEmpty())return i.start;if(c==this.getTextRange(i))return i.end;this.remove(i);var l;return c?l=this.insert(i.start,c):l=i.start,l},o.prototype.applyDeltas=function(i){for(var c=0;c<i.length;c++)this.applyDelta(i[c])},o.prototype.revertDeltas=function(i){for(var c=i.length-1;c>=0;c--)this.revertDelta(i[c])},o.prototype.applyDelta=function(i,c){var l=i.action=="insert"
`).split(`
`)}:function(o){return o.split(/\r\n|\r|\n/)},u.prototype.$autoNewLine="",u.prototype.$newLineMode="auto",E.implement(u.prototype,a),b.Document=u}),ace.define("ace/worker/mirror",[],function(m,b,H){"use strict";var E=m("../document").Document,g=m("../lib/lang"),a=b.Mirror=function(n){this.sender=n;var r=this.doc=new E(""),u=this.deferredUpdate=g.delayedCall(this.onUpdate.bind(this)),o=this;n.on("change",function(i){var c=i.data;if(c[0].start)r.applyDeltas(c);else for(var l=0;l<c.length;l+=2){var p,d;if(Array.isArray(c[l+1])?p={action:"insert",start:c[l],lines:c[l+1]}:p={action:"remove",start:c[l],end:c[l+1]},(p.action=="insert"?p.start:p.end).row>=r.$lines.length)throw d=new Error("Invalid delta"),d.data={path:o.$path,linesLength:r.$lines.length,start:p.start,end:p.end},d;r.applyDelta(p,!0)}if(o.$timeout)return u.schedule(o.$timeout);o.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(n){this.$timeout=n},this.setValue=function(n){this.doc.setValue(n),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(n){this.sender.callback(this.doc.getValue(),n)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(a.prototype)}),ace.define("ace/mode/xml/sax",[],function(m,b,H){var E=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=new RegExp("[\\-\\.0-9"+E.source.slice(1,-1)+"\xB7\u0300-\u036F\\ux203F-\u2040]"),a=new RegExp("^"+E.source+g.source+"*(?::"+E.source+g.source+"*)?$"),n=0,r=1,u=2,o=3,i=4,c=5,l=6,p=7;function d(){}d.prototype={parse:function(h,v,N){var D=this.domBuilder;D.startDocument(),B(v,v={}),_(h,v,N,D,this.errorHandler),D.endDocument()}};function _(h,v,N,D,T){function R(M){if(M>65535){M-=65536;var j=55296+(M>>10),tt=56320+(M&1023);return String.fromCharCode(j,tt)}else return String.fromCharCode(M)}function w(M){var j=M.slice(1,-1);return j in N?N[j]:j.charAt(0)==="#"?R(parseInt(j.substr(1).replace("x","0x"))):(T.error("entity not found:"+M),M)}function S(M){var j=h.substring(G,M).replace(/&#?\w+;/g,w);U&&A(G),D.characters(j,0,M-G),G=M}function A(M,j){for(;M>=x&&(j=q.exec(h));)P=j.index,x=P+j[0].length,U.lineNumber++;U.columnNumber=M-P+1}for(var P=0,x=0,q=/.+(?:\r\n?|\n)|.*$/g,U=D.locator,z=[{currentNSMap:v}],K={},G=0;;){var F=h.indexOf("<",G);if(F<0){if(!h.substr(G).match(/^\s*$/)){var rt=D.document,V=rt.createTextNode(h.substr(G));rt.appendChild(V),D.currentElement=V}return}switch(F>G&&S(F),h.charAt(F+1)){case"/":var Y=h.indexOf(">",F+3),Z=h.substring(F+2,Y),X;if(z.length>1)X=z.pop();else{T.fatalError("end tag name not found for: "+Z);break}var st=X.localNSMap;if(X.tagName!=Z&&T.fatalError("end tag name: "+Z+" does not match the current start tagName: "+X.tagName),D.endElement(X.uri,X.localName,Z),st)for(var at in st)D.endPrefixMapping(at);Y++;break;case"?":U&&A(F),Y=wt(h,F,D);break;case"!":U&&A(F),Y=_t(h,F,D,T);break;default:try{U&&A(F);var W=new pt,Y=L(h,F,W,w,T),it=W.length;if(it&&U){for(var ut=O(U,{}),F=0;F<it;F++){var ct=W[F];A(ct.offset),ct.offset=O(U,{})}O(ut,U)}!W.closed&&C(h,Y,W.tagName,K)&&(W.closed=!0,N.nbsp||T.warning("unclosed xml attribute")),$(W,D,z),W.uri==="http://www.w3.org/1999/xhtml"&&!W.closed?Y=I(h,Y,W.tagName,w,D):Y++}catch(M){T.error("element parse error: "+M),Y=-1}}Y<0?S(F+1):G=Y}}function O(h,v){return v.lineNumber=h.lineNumber,v.columnNumber=h.columnNumber,v}function L(h,v,N,D,T){for(var R,w,S=++v,A=n;;){var P=h.charAt(S);switch(P){case"=":if(A===r)R=h.slice(v,S),A=o;else if(A===u)A=o;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(A===o)if(v=S+1,S=h.indexOf(P,v),S>0)w=h.slice(v,S).replace(/&#?\w+;/g,D),N.add(R,w,v-1),A=c;else throw new Error("attribute value no end '"+P+"' match");else if(A==i)w=h.slice(v,S).replace(/&#?\w+;/g,D),N.add(R,w,v),T.warning('attribute "'+R+'" missed start quot('+P+")!!"),v=S+1,A=c;else throw new Error('attribute value must after "="');break;case"/":switch(A){case n:N.setTagName(h.slice(v,S));case c:case l:case p:A=p,N.closed=!0;case i:case r:case
@`+(l.systemId||"")+"#[line:"+l.lineNumber+",col:"+l.columnNumber+"]"}function i(l,p,d){return typeof l=="string"?l.substr(p,d):l.length>=p+d||p?new java.lang.String(l,p,d)+"":l}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(l){r.prototype[l]=function(){return null}});function c(l,p){l.currentElement?l.currentElement.appendChild(p):l.document.appendChild(p)}return{DOMParser:a}}),ace.define("ace/mode/xml_worker",[],function(m,b,H){"use strict";var E=m("../lib/oop"),g=m("../lib/lang"),a=m("../worker/mirror").Mirror,n=m("./xml/dom-parser").DOMParser,r=b.Worker=function(u){a.call(this,u),this.setTimeout(400),this.context=null};E.inherits(r,a),function(){this.setOptions=function(u){this.context=u.context},this.onUpdate=function(){var u=this.doc.getValue();if(!!u){var o=new n,i=[];o.options.errorHandler={fatalError:function(c,l,p){i.push({row:p.lineNumber,column:p.columnNumber,text:l,type:"error"})},error:function(c,l,p){i.push({row:p.lineNumber,column:p.columnNumber,text:l,type:"error"})},warning:function(c,l,p){i.push({row:p.lineNumber,column:p.columnNumber,text:l,type:"warning"})}},o.parseFromString(u),this.sender.emit("error",i)}}}.call(r.prototype)})}}]);