1 line
93 KiB
JavaScript
1 line
93 KiB
JavaScript
module.exports=function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(o,'a',o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=55)}([function(e){var t=e.exports={version:'2.6.12'};'number'==typeof __e&&(__e=t)},function(e){e.exports=require('path')},function(e){var t=e.exports='undefined'!=typeof window&&window.Math==Math?window:'undefined'!=typeof self&&self.Math==Math?self:Function('return this')();'number'==typeof __g&&(__g=t)},function(e,t,o){var n=o(41)('wks'),r=o(29),s=o(2).Symbol,a='function'==typeof s,i=e.exports=function(e){return n[e]||(n[e]=a&&s[e]||(a?s:r)('Symbol.'+e))};i.store=n},function(e,t,o){var n=o(2),r=o(0),s=o(11),a=o(12),i=o(13),l='prototype',d=function(e,t,o){var c,p,u,h=e&d.F,f=e&d.G,m=e&d.S,g=e&d.P,y=e&d.B,b=e&d.W,_=f?r:r[t]||(r[t]={}),x=_[l],E=f?n:m?n[t]:(n[t]||{})[l];for(c in f&&(o=t),o)p=!h&&E&&void 0!==E[c],p&&i(_,c)||(u=p?E[c]:o[c],_[c]=f&&'function'!=typeof E[c]?o[c]:y&&p?s(u,n):b&&E[c]==u?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o);}return new e(t,o,n)}return e.apply(this,arguments)};return t[l]=e[l],t}(u):g&&'function'==typeof u?s(Function.call,u):u,g&&((_.virtual||(_.virtual={}))[c]=u,e&d.R&&x&&!x[c]&&a(x,c,u)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d},function(e){e.exports=function(e){return'object'==typeof e?null!==e:'function'==typeof e}},function(e){e.exports=require('fs')},function(e,t,o){var n=o(8),r=o(60),s=o(37),a=Object.defineProperty;t.f=o(9)?Object.defineProperty:function(e,t,o){if(n(e),t=s(t,!0),n(o),r)try{return a(e,t,o)}catch(t){}if('get'in o||'set'in o)throw TypeError('Accessors not supported!');return'value'in o&&(e[t]=o.value),e}},function(e,t,o){var n=o(5);e.exports=function(e){if(!n(e))throw TypeError(e+' is not an object!');return e}},function(e,t,o){e.exports=!o(15)(function(){return 7!=Object.defineProperty({},'a',{get:function(){return 7}}).a})},function(e){e.exports=require('os')},function(e,t,o){var n=o(20);e.exports=function(e,t,o){return(n(e),void 0===t)?e:1===o?function(o){return e.call(t,o)}:2===o?function(o,n){return e.call(t,o,n)}:3===o?function(o,n,r){return e.call(t,o,n,r)}:function(){return e.apply(t,arguments)}}},function(e,t,o){var n=o(7),r=o(27);e.exports=o(9)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},function(e){var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},function(e){e.exports=require('child_process')},function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e){e.exports={}},function(e,t,o){var n=o(63),r=o(34);e.exports=function(e){return n(r(e))}},function(e,t,o){'use strict';var n=o(95)(!0);o(35)(String,'String',function(e){this._t=e+'',this._i=0},function(){var e,t=this._t,o=this._i;return o>=t.length?{value:void 0,done:!0}:(e=n(t,o),this._i+=e.length,{value:e,done:!1})})},function(e){e.exports=!0},function(e){e.exports=function(e){if('function'!=typeof e)throw TypeError(e+' is not a function!');return e}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t,o){var n=o(7).f,r=o(13),s=o(3)('toStringTag');e.exports=function(e,t,o){e&&!r(e=o?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t,o){o(100);for(var n=o(2),r=o(12),s=o(16),a=o(3)('toStringTag'),l='CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split(','),d=0;d<l.length;d++){var i=l[d],c=n[i],p=c&&c.prototype;p&&!p[a]&&r(p,a,i),s[i]=s.Array}},function(e,t,o){var n=o(11),r=o(113),s=o(114),a=o(8),i=o(39),l=o(71),d={},c={},t=e.exports=function(e,t,o,p,u){var h,m,g,y,b=u?function(){return e}:l(e),_=n(o,p,t?2:1),f=0;if('function'!=typeof b)throw TypeError(e+' is not iterable!');if(s(b)){for(h=i(e.length);h>f;f++)if(y=t?_(a(m=e[f])[0],m[1]):_(e[f]),y===d||y===c)return y;}else for(g=b.call(e);!(m=g.next()).done;)if(y=r(g,_,m.value,t),y===d||y===c)return y};t.BREAK=d,t.RETURN=c},function(e){e.exports=require('electron')},function(e,t,o){'use strict';function n(){var e=process.cwd();console.log('process.env.NODE_ENV','production');var t=process.execPath.replaceAll('\\','/').split('/');return t.pop(),e=t.join('/'),e}o.d(t,'a',function(){return n})},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,o){var n=o(8),r=o(97),s=o(42),a=o(40)('IE_PROTO'),i=function(){},l='prototype',d=function(){var e,t=o(36)('iframe'),n=s.length,r='<',a='>';for(t.style.display='none',o(64).appendChild(t),t.src='javascript:',e=t.contentWindow.document,e.open(),e.write(r+'script'+a+'document.F=Object'+r+'/script'+a),e.close(),d=e.F;n--;)delete d[l][s[n]];return d()};e.exports=Object.create||function(e,t){var o;return null===e?o=d():(i[l]=n(e),o=new i,i[l]=null,o[a]=e),void 0===t?o:r(o,t)}},function(e){var t=0,o=Math.random();e.exports=function(e){return'Symbol('.concat(e===void 0?'':e,')_',(++t+o).toString(36))}},function(e,t,o){var n=o(34);e.exports=function(e){return Object(n(e))}},function(e,t,o){var n=o(21),r=o(3)('toStringTag'),s='Arguments'==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(t){}};e.exports=function(e){var t,o,i;return e===void 0?'Undefined':null===e?'Null':'string'==typeof(o=a(t=Object(e),r))?o:s?n(t):'Object'==(i=n(t))&&'function'==typeof t.callee?'Arguments':i}},function(e,t,o){'use strict';function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=o(93),s=n(r),a=o(102),i=n(a),l='function'==typeof i.default&&'symbol'==typeof s.default?function(e){return typeof e}:function(e){return e&&'function'==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?'symbol':typeof e};t.default='function'==typeof i.default&&'symbol'===l(s.default)?function(e){return'undefined'==typeof e?'undefined':l(e)}:function(e){return e&&'function'==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?'symbol':'undefined'==typeof e?'undefined':l(e)}},function(e){var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?o:t)(e)}},function(e){e.exports=function(e){if(e==void 0)throw TypeError('Can\'t call method on '+e);return e}},function(e,t,o){'use strict';var n=o(19),r=o(4),s=o(61),a=o(12),i=o(16),l=o(96),d=o(22),c=o(65),p=o(3)('iterator'),u=!([].keys&&'next'in[].keys()),h='keys',f='values',m=function(){return this};e.exports=function(e,t,o,g,y,b,_){l(o,t,g);var x,E,S,O=function(e){return!u&&e in T?T[e]:e===h?function(){return new o(this,e)}:e===f?function(){return new o(this,e)}:function(){return new o(this,e)}},k=t+' Iterator',v=y==f,w=!1,T=e.prototype,P=T[p]||T['@@iterator']||y&&T[y],M=P||O(y),j=y?v?O('entries'):M:void 0,A='Array'==t?T.entries||P:P;if(A&&(S=c(A.call(new e)),S!==Object.prototype&&S.next&&(d(S,k,!0),!n&&'function'!=typeof S[p]&&a(S,p,m))),v&&P&&P.name!==f&&(w=!0,M=function(){return P.call(this)}),(!n||_)&&(u||w||!T[p])&&a(T,p,M),i[t]=M,i[k]=m,y)if(x={values:v?M:O(f),keys:b?M:O(h),entries:j},_)for(E in x)E in T||s(T,E,x[E]);else r(r.P+r.F*(u||w),t,x);return x}},function(e,t,o){var n=o(5),r=o(2).document,s=n(r)&&n(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},function(e,t,o){var n=o(5);e.exports=function(e,t){if(!n(e))return e;var o,r;if(t&&'function'==typeof(o=e.toString)&&!n(r=o.call(e)))return r;if('function'==typeof(o=e.valueOf)&&!n(r=o.call(e)))return r;if(!t&&'function'==typeof(o=e.toString)&&!n(r=o.call(e)))return r;throw TypeError('Can\'t convert object to primitive value')}},function(e,t,o){var n=o(62),r=o(42);e.exports=Object.keys||function(e){return n(e,r)}},function(e,t,o){var n=o(33),r=Math.min;e.exports=function(e){return 0<e?r(n(e),9007199254740991):0}},function(e,t,o){var n=o(41)('keys'),r=o(29);e.exports=function(e){return n[e]||(n[e]=r(e))}},function(e,t,o){var n=o(0),r=o(2),s='__core-js_shared__',a=r[s]||(r[s]={});(e.exports=function(e,t){return a[e]||(a[e]=t===void 0?{}:t)})('versions',[]).push({version:n.version,mode:o(19)?'pure':'global',copyright:'\xA9 2020 Denis Pushkarev (zloirock.ru)'})},function(e){e.exports=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf']},function(e,t,o){t.f=o(3)},function(e,t,o){var n=o(29)('meta'),r=o(5),s=o(13),a=o(7).f,i=0,l=Object.isExtensible||function(){return!0},d=!o(15)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:'O'+ ++i,w:{}}})},p=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!r(e))return'symbol'==typeof e?e:('string'==typeof e?'S':'P')+e;if(!s(e,n)){if(!l(e))return'F';if(!t)return'E';c(e)}return e[n].i},getWeak:function(e,t){if(!s(e,n)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return d&&p.NEED&&l(e)&&!s(e,n)&&c(e),e}}},function(e,t,o){var n=o(2),r=o(0),s=o(19),a=o(43),i=o(7).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=s?{}:n.Symbol||{});'_'==e.charAt(0)||e in t||i(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(){},function(e,t,o){var n=o(12);e.exports=function(e,t,o){for(var r in t)o&&e[r]?e[r]=t[r]:n(e,r,t[r]);return e}},function(e){e.exports=function(e,t,o,n){if(!(e instanceof t)||n!==void 0&&n in e)throw TypeError(o+': incorrect invocation!');return e}},function(e,t,o){'use strict';function n(e){var t,o;this.promise=new e(function(e,n){if(t!=void 0||o!=void 0)throw TypeError('Bad Promise constructor');t=e,o=n}),this.resolve=r(t),this.reject=r(o)}var r=o(20);e.exports.f=function(e){return new n(e)}},function(e){e.exports=require('assert')},function(e,t,o){function n(e,o){o=o||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(o).forEach(function(e){n[e]=o[e]}),n}function r(e,t,o){return y(t),o||(o={}),(o.nocomment||'#'!==t.charAt(0))&&new s(t,o).match(e)}function s(e,t){return this instanceof s?void(y(e),!t&&(t={}),e=e.trim(),!t.allowWindowsEscape&&'/'!==d.sep&&(e=e.split(d.sep).join('/')),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()):new s(e,t)}function a(e,t){return t||(this instanceof s?t=this.options:t={}),e='undefined'==typeof e?this.pattern:e,y(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:p(e)}function l(e){return e.replace(/\\(.)/g,'$1')}function i(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&')}e.exports=r,r.Minimatch=s;var d=function(){try{return o(1)}catch(t){}}()||{sep:'/'};r.sep=d.sep;var c=r.GLOBSTAR=s.GLOBSTAR={},p=o(144),u={"!":{open:'(?:(?!(?:',close:'))[^/]*?)'},"?":{open:'(?:',close:')?'},"+":{open:'(?:',close:')+'},"*":{open:'(?:',close:')*'},"@":{open:'(?:',close:')'}},h='[^/]',f=h+'*?',m=function(e){return e.split('').reduce(function(e,t){return e[t]=!0,e},{})}('().*{}+?[]^$\\!'),g=/\/+/;r.filter=function(e,t){return t=t||{},function(o){return r(o,e,t)}},r.defaults=function(e){if(!e||'object'!=typeof e||!Object.keys(e).length)return r;var t=r,o=function(o,r,s){return t(o,r,n(e,s))};return o.Minimatch=function(o,r){return new t.Minimatch(o,n(e,r))},o.Minimatch.defaults=function(o){return t.defaults(n(e,o)).Minimatch},o.filter=function(o,r){return t.filter(o,n(e,r))},o.defaults=function(o){return t.defaults(n(e,o))},o.makeRe=function(o,r){return t.makeRe(o,n(e,r))},o.braceExpand=function(o,r){return t.braceExpand(o,n(e,r))},o.match=function(o,r,s){return t.match(o,r,n(e,s))},o},s.defaults=function(e){return r.defaults(e).Minimatch},s.prototype.debug=function(){},s.prototype.make=function(){var e=this.pattern,t=this.options;if(!t.nocomment&&'#'===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var o=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,o),o=this.globParts=o.map(function(e){return e.split(g)}),this.debug(this.pattern,o),o=o.map(function(e){return e.map(this.parse,this)},this),this.debug(this.pattern,o),o=o.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,o),this.set=o},s.prototype.parseNegate=function(){var e=this.pattern,t=!1,o=this.options,n=0;if(!o.nonegate){for(var r=0,s=e.length;r<s&&'!'===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}},r.braceExpand=function(e,t){return a(e,t)},s.prototype.braceExpand=a;var y=function(e){if('string'!=typeof e)throw new TypeError('invalid pattern');if(e.length>65536)throw new TypeError('pattern is too long')};s.prototype.parse=function(e,o){function r(){a&&('*'===a?(p+=f,g=!0):'?'===a?(p+=h,g=!0):p+='\\'+a,w.debug('clearStateChar %j %j',a,p),a=!1)}y(e);var s=this.options;if('**'===e){if(!s.noglobstar)return c;e='*'}if(''===e)return'';for(var a,d,p='',g=!!s.nocase,_=!1,x=[],E=[],S=!1,O=-1,k=-1,v='.'===e.charAt(0)?'':s.dot?'(?!(?:^|\\/)\\.{1,2}(?:$|\\/))':'(?!\\.)',w=this,T=0,i=e.length;T<i&&(d=e.charAt(T));T++){if(this.debug('%s\t%s %s %j',e,T,p,d),_&&m[d]){p+='\\'+d,_=!1;continue}switch(d){case'/':return!1;case'\\':r(),_=!0;continue;case'?':case'*':case'+':case'@':case'!':if(this.debug('%s\t%s %s %j <-- stateChar',e,T,p,d),S){this.debug(' in class'),'!'===d&&T===k+1&&(d='^'),p+=d;continue}w.debug('call clearStateChar %j',a),r(),a=d,s.noext&&r();continue;case'(':if(S){p+='(';continue}if(!a){p+='\\(';continue}x.push({type:a,start:T-1,reStart:p.length,open:u[a].open,close:u[a].close}),p+='!'===a?'(?:(?!(?:':'(?:',this.debug('plType %j %j',a,p),a=!1;continue;case')':if(S||!x.length){p+='\\)';continue}r(),g=!0;var P=x.pop();p+=P.close,'!'===P.type&&E.push(P),P.reEnd=p.length;continue;case'|':if(S||!x.length||_){p+='\\|',_=!1;continue}r(),p+='|';continue;case'[':if(r(),S){p+='\\'+d;continue}S=!0,k=T,O=p.length,p+=d;continue;case']':if(T===k+1||!S){p+='\\'+d,_=!1;continue}var M=e.substring(k+1,T);try{RegExp('['+M+']')}catch(e){var j=this.parse(M,b);p=p.substr(0,O)+'\\['+j[0]+'\\]',g=g||j[1],S=!1;continue}g=!0,S=!1,p+=d;continue;default:r(),_?_=!1:m[d]&&!('^'===d&&S)&&(p+='\\'),p+=d;}}for(S&&(M=e.substr(k+1),j=this.parse(M,b),p=p.substr(0,O)+'\\['+j[0],g=g||j[1]),P=x.pop();P;P=x.pop()){var A=p.slice(P.reStart+P.open.length);this.debug('setting tail',p,P),A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,o){return o||(o='\\'),t+t+o+'|'}),this.debug('tail=%j\n %s',A,A,P,p);var I='*'===P.type?f:'?'===P.type?h:'\\'+P.type;g=!0,p=p.slice(0,P.reStart)+I+'\\('+A}r(),_&&(p+='\\\\');var t=!1;switch(p.charAt(0)){case'[':case'.':case'(':t=!0;}for(var R=E.length-1;-1<R;R--){var n=E[R],D=p.slice(0,n.reStart),N=p.slice(n.reStart,n.reEnd-8),C=p.slice(n.reEnd-8,n.reEnd),L=p.slice(n.reEnd);C+=L;var $=D.split('(').length-1,F=L;for(T=0;T<$;T++)F=F.replace(/\)[+*?]?/,'');L=F;var G='';''===L&&o!==b&&(G='$');var Y=D+N+L+G+C;p=Y}if(''!==p&&g&&(p='(?=.)'+p),t&&(p=v+p),o===b)return[p,g];if(!g)return l(e);var W=s.nocase?'i':'';try{var H=new RegExp('^'+p+'$',W)}catch(e){return /$./}return H._glob=e,H._src=p,H};var b={};r.makeRe=function(e,t){return new s(e,t||{}).makeRe()},s.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,o=t.noglobstar?f:t.dot?'(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?':'(?:(?!(?:\\/|^)\\.).)*?',n=t.nocase?'i':'',r=e.map(function(e){return e.map(function(e){return e===c?o:'string'==typeof e?i(e):e._src}).join('\\/')}).join('|');r='^(?:'+r+')$',this.negate&&(r='^(?!'+r+').*$');try{this.regexp=new RegExp(r,n)}catch(e){this.regexp=!1}return this.regexp},r.match=function(e,t,o){o=o||{};var n=new s(t,o);return e=e.filter(function(e){return n.match(e)}),n.options.nonull&&!e.length&&e.push(t),e},s.prototype.match=function(e,t){if('undefined'==typeof t&&(t=this.partial),this.debug('match',e,this.pattern),this.comment)return!1;if(this.empty)return''===e;if('/'===e&&t)return!0;var o=this.options;'/'!==d.sep&&(e=e.split(d.sep).join('/')),e=e.split(g),this.debug(this.pattern,'split',e);var n=this.set;this.debug(this.pattern,'set',n);var r,s;for(s=e.length-1;0<=s&&(r=e[s],!r);s--);for(s=0;s<n.length;s++){var a=n[s],i=e;o.matchBase&&1===a.length&&(i=[r]);var l=this.matchOne(i,a,t);if(l)return!!o.flipNegate||!this.negate}return!o.flipNegate&&this.negate},s.prototype.matchOne=function(e,t,o){var n=this.options;this.debug('matchOne',{this:this,file:e,pattern:t}),this.debug('matchOne',e.length,t.length);for(var r=0,s=0,a=e.length,i=t.length;r<a&&s<i;r++,s++){this.debug('matchOne loop');var l=t[s],d=e[r];if(this.debug(t,l,d),!1===l)return!1;if(l===c){this.debug('GLOBSTAR',[t,l,d]);var u=r,h=s+1;if(h===i){for(this.debug('** at the end');r<a;r++)if('.'===e[r]||'..'===e[r]||!n.dot&&'.'===e[r].charAt(0))return!1;return!0}for(;u<a;){var f=e[u];if(this.debug('\nglobstar while',e,u,t,h,f),this.matchOne(e.slice(u),t.slice(h),o))return this.debug('globstar found match!',u,a,f),!0;if('.'===f||'..'===f||!n.dot&&'.'===f.charAt(0)){this.debug('dot detected!',e,u,t,h);break}this.debug('globstar swallow a segment, and continue'),u++}return o&&(this.debug('\n>>> no match, partial?',e,u,t,h),u===a)}var m;if('string'==typeof l?(m=d===l,this.debug('string match',l,d,m)):(m=d.match(l),this.debug('pattern match',l,d,m)),!m)return!1}if(r===a&&s===i)return!0;if(r===a)return o;if(s===i)return r===a-1&&''===e[r];throw new Error('wtf?')}},function(e){e.exports=require('util')},function(e){'use strict';function t(e){return'/'===e.charAt(0)}function o(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,o=t.exec(e),n=o[1]||'',r=!!(n&&':'!==n.charAt(1));return!!(o[2]||r)}e.exports='win32'===process.platform?o:t,e.exports.posix=t,e.exports.win32=o},function(e,t,o){'use strict';function n(){var e=O.platform(),t=o(6),n='';'win32'===e&&(n='yjearth4.exe'),'linux'===e&&(n='yjearth4');var r='';'win32'===e&&(r='yjearth4'+h.execPath+'.exe'),'linux'===e&&(r='yjearth4'+h.execPath);var s=b.join(Object(S.a)()+'/yjearth4_0/',n),a=b.join(Object(S.a)()+'/yjearth4_0/',r);console.log('oldPath',a),t.access(s,t.constants.F_OK,function(e){return e?void console.error(s+' does not exist.'):void t.rename(s,a,function(e){return e?void console.error('Error renaming '+s+' to '+a+': '+e):void console.log('File renamed from '+s+' to '+a)})})}function r(){Object(u.b)(),Object(x.a)();var e=h.execPath;console.log('process.env.NODE_ENV +++','production'),n(),Object(E.a)(e),setTimeout(function(){Object(c.runProcess)(e,h.db_path),k=new a.BrowserWindow({minWidth:1500,minHeight:860,useContentSize:!0,simpleFullscreen:!0,resizable:!0,frame:d.a.IsUseSysTitle,icon:P,show:!0,webPreferences:{nodeIntegration:!0,contextIsolation:!1,enableRemoteModule:!0,webSecurity:!1,devTools:!0,scrollBounce:'darwin'===process.platform}}),k.loadURL(w),k.center(),k.maximize(),m.a.Mainfunc(k),k.webContents.on('did-finish-load',function(){k.show(),k.focus(),k.webContents.executeJavaScript('\n const { ipcRenderer } = require(\'electron\'); \n window.addEventListener(\'dragover\', (event) => {\n event.preventDefault();\n event.dataTransfer.dropEffect = \'copy\'; // \u663E\u793A\u590D\u5236\u6548\u679C\n });\n window.addEventListener(\'drop\', (event) => {\n event.preventDefault();\n const files = event.dataTransfer.files;\n if (files.length > 0) {\n ipcRenderer.send(\'files-dropped\', Array.from(files).map(file => file.path));\n }\n });\n ')}),k.webContents.on('did-fail-load',function(){}),k.on('closed',function(){k=null}),k.on('close',function(t){t.preventDefault(),a.dialog.showMessageBox(k,{type:'warning',title:'\u63D0\u793A',message:'\u662F\u5426\u786E\u8BA4\u9000\u51FA\u7CFB\u7EDF?',buttons:['cancel','ok']}).then(function(e){e.response&&(k=null,Object(c.closeChild)(),a.app.exit())})}),a.Menu.setApplicationMenu(null),!1,a.globalShortcut.register('CommandOrControl+f5',function(){k.reload(),k.webContents.once('did-finish-load',function(){setTimeout(function(){k&&!k.isDestroyed()&&(console.log('\u53D1\u9001\u64AD\u653E\u89C6\u9891\u6D88\u606F'),k.webContents.send('start-login-video'))},500)})}),console.log(k.WebPreferences);var t=!0;a.globalShortcut.register('CommandOrControl+f12',function(){k.openDevTools(t),t=!t})},1e3)}function s(){return k}Object.defineProperty(t,'__esModule',{value:!0}),o.d(t,'getmainWindow',function(){return s});var a=o(25),i=o.n(a),l=o(86),d=o.n(l),c=o(56),p=o.n(c),u=o(57),h=o(91),f=o.n(h),m=o(92),g=o(183),y=o.n(g),b=o(1),_=o.n(b),x=o(84),E=o(184),S=o(26),O=o(10);process.env.ELECTRON_DISABLE_SECURITY_WARNINGS=!0,global.__static=o(1).join(__dirname,'/static').replace(/\\/g,'\\\\');var k=void 0,v=void 0,w='file://'+__dirname+'/index.html',T=!a.app.isPackaged,P=b.join(Object(S.a)(),'resources/app.asar/dist/electron/static/logo_ico/81.png'),M=a.app.requestSingleInstanceLock();M?(a.app.on('ready',r),a.app.isReady(),a.app.on('window-all-closed',function(){'darwin'!==process.platform&&a.app.quit()}),a.app.on('activate',function(){null===k&&r()}),a.app.on('second-instance',function(){k&&(k.isMinimized()&&k.restore(),k.focus())}),a.app.on('before-quit',function(){Object(c.closeChild)()}),global.sharedObject={hasService:!1}):a.app.quit()},function(e,t,o){function n(){var e=process.cwd(),t=process.execPath.replaceAll('\\','/').split('/');return t.pop(),e=t.join('/'),e}var r=o(14),s=r.exec,a=r.spawn,i=o(10),l=o(1),d=o(6),c=null;e.exports={runProcess:function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:'C:\\Users\\Administrator\\Desktop\\go',o=i.platform(),r='';'win32'===o&&(r='yjearth4'+e+'.exe'),'linux'===o&&(r='yjearth4'+e),d.existsSync(t)||d.mkdirSync(t);var s=l.join(n(),'/yjearth4_0/');console.log(s);var p=l.join(s,r);console.log('cmd_path0',p),c=a(p,[t],{cwd:s,stdio:'ignore'}).on('exit',function(e){console.log('out'),console.log(e),global.sharedObject.hasService=!1}).on('stdio',function(e,t){console.log(e),console.log(t)}),global.sharedObject.hasService=!0},closeChild:function(){c&&(c.kill(),c=null)}}},function(e,t,o){'use strict';function n(e,t){e=+e;var o=d.createServer().listen(e);o.on('listening',function(){o.close(),console.log('\u7AEF\u53E3\u3010'+e+'\u3011 \u53EF\u7528'),p=e,t(e)}),o.on('error',function(o){'EADDRINUSE'===o.code&&(console.log('\u7AEF\u53E3\u3010'+e+'\u3011 \u88AB\u5360\u7528'),n(++e,t))})}function r(){h=c(),h.all('*',function(e,t,o){t.header('Access-Control-Allow-Origin','*'),t.header('Access-Control-Allow-Headers','content-type'),t.header('Access-Control-Allow-Methods','POST,GET'),'/api/v1/file/upload'===e.url&&(e.setTimeout(1200000),t.setTimeout(1200000)),'options'===e.method.toLowerCase()?t.sendStatus(200):o()});var e='resources/app.asar/dist/electron/',t=Object(l.a)();['./','static'].forEach(function(o){h.use(c.static(u.join(u.join(t,e),o)))})}function s(){r(),n(p,function(e){h.listen(e),global.sharedObject.avilablePort=e})}o.d(t,'a',function(){return h}),o.d(t,'b',function(){return s});var a=o(25),i=o.n(a),l=o(26),d=o(90),c=o(58),u=o(1),p=55110,h=void 0},function(e){e.exports=require('express')},function(e){e.exports=require('electron-store')},function(e,t,o){e.exports=!o(9)&&!o(15)(function(){return 7!=Object.defineProperty(o(36)('div'),'a',{get:function(){return 7}}).a})},function(e,t,o){e.exports=o(12)},function(e,t,o){var n=o(13),r=o(17),s=o(98)(!1),a=o(40)('IE_PROTO');e.exports=function(e,t){var o,l=r(e),d=0,i=[];for(o in l)o!=a&&n(l,o)&&i.push(o);for(;t.length>d;)n(l,o=t[d++])&&(~s(i,o)||i.push(o));return i}},function(e,t,o){var n=o(21);e.exports=Object('z').propertyIsEnumerable(0)?Object:function(e){return'String'==n(e)?e.split(''):Object(e)}},function(e,t,o){var n=o(2).document;e.exports=n&&n.documentElement},function(e,t,o){var n=o(13),r=o(30),s=o(40)('IE_PROTO'),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),n(e,s)?e[s]:'function'==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,o){var n=o(21);e.exports=Array.isArray||function(e){return'Array'==n(e)}},function(e,t,o){var n=o(62),r=o(42).concat('length','prototype');t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},function(e,t,o){var n=o(46),r=o(27),s=o(17),a=o(37),i=o(13),l=o(60),d=Object.getOwnPropertyDescriptor;t.f=o(9)?d:function(e,t){if(e=s(e),t=a(t,!0),l)try{return d(e,t)}catch(t){}return i(e,t)?r(!n.f.call(e,t),e[t]):void 0}},function(e,t,o){var n=o(31),r=o(3)('iterator'),s=o(16);e.exports=o(0).getIteratorMethod=function(e){if(e!=void 0)return e[r]||e['@@iterator']||s[n(e)]}},function(e,t,o){'use strict';var n=o(2),r=o(0),s=o(7),a=o(9),i=o(3)('species');e.exports=function(e){var t='function'==typeof r[e]?r[e]:n[e];a&&t&&!t[i]&&s.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t,o){var n=o(5);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError('Incompatible receiver, '+t+' required!');return e}},function(e,t,o){var n=o(8),r=o(20),s=o(3)('species');e.exports=function(e,t){var o,a=n(e).constructor;return a===void 0||(o=n(a)[s])==void 0?t:r(o)}},function(e,t,o){var n,r,s,a=o(11),i=o(136),l=o(64),d=o(36),c=o(2),p=c.process,u=c.setImmediate,h=c.clearImmediate,f=c.MessageChannel,m=c.Dispatch,g=0,y={},b='onreadystatechange',_=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},x=function(e){_.call(e.data)};u&&h||(u=function(e){for(var t=[],o=1;arguments.length>o;)t.push(arguments[o++]);return y[++g]=function(){i('function'==typeof e?e:Function(e),t)},n(g),g},h=function(e){delete y[e]},'process'==o(21)(p)?n=function(e){p.nextTick(a(_,e,1))}:m&&m.now?n=function(e){m.now(a(_,e,1))}:f?(r=new f,s=r.port2,r.port1.onmessage=x,n=a(s.postMessage,s,1)):c.addEventListener&&'function'==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+'','*')},c.addEventListener('message',x,!1)):b in d('script')?n=function(e){l.appendChild(d('script'))[b]=function(){l.removeChild(this),_.call(e)}}:n=function(e){setTimeout(a(_,e,1),0)}),e.exports={set:u,clear:h}},function(e){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,o){var n=o(8),r=o(5),s=o(50);e.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var o=s.f(e),a=o.resolve;return a(t),o.promise}},function(e,t,o){function n(e,t,o){if('function'==typeof t&&(o=t,t={}),t||(t={}),t.sync){if(o)throw new TypeError('callback provided to sync glob');return m(e,t)}return new s(e,t,o)}function r(e,t){if(null===t||'object'!=typeof t)return e;for(var o=Object.keys(t),n=o.length;n--;)e[o[n]]=t[o[n]];return e}function s(e,t,o){function r(){--n._processing,0>=n._processing&&(l?process.nextTick(function(){n._finish()}):n._finish())}if('function'==typeof t&&(o=t,t=null),t&&t.sync){if(o)throw new TypeError('callback provided to sync glob');return new k(e,t)}if(!(this instanceof s))return new s(e,t,o);y(this,e,t),this._didRealPath=!1;var a=this.minimatch.set.length;this.matches=Array(a),'function'==typeof o&&(o=O(o),this.on('error',o),this.on('end',function(e){o(null,e)}));var n=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===a)return r();for(var l=!0,d=0;d<a;d++)this._process(this.minimatch.set[d],d,!1,r);l=!1}function a(e,t,o){return function(n,r){n?e._readdirError(t,n,o):e._readdirEntries(t,r,o)}}e.exports=n;var i=o(79),l=o(52),d=l.Minimatch,c=o(147),p=o(80).EventEmitter,u=o(1),h=o(51),f=o(54),m=o(149),g=o(81),y=g.setopts,b=g.ownProp,_=o(150),x=o(53),E=g.childrenIgnored,S=g.isIgnored,O=o(83);n.sync=m;var k=n.GlobSync=m.GlobSync;n.glob=n,n.hasMagic=function(e,t){var o=r({},t);o.noprocess=!0;var n=new s(e,o),a=n.minimatch.set;if(!e)return!1;if(1<a.length)return!0;for(var i=0;i<a[0].length;i++)if('string'!=typeof a[0][i])return!0;return!1},n.Glob=s,c(s,p),s.prototype._finish=function(){return h(this instanceof s),this.aborted?void 0:this.realpath&&!this._didRealpath?this._realpath():void(g.finish(this),this.emit('end',this.found))},s.prototype._realpath=function(){function e(){0==--t&&o._finish()}if(!this._didRealpath){this._didRealpath=!0;var t=this.matches.length;if(0===t)return this._finish();for(var o=this,n=0;n<this.matches.length;n++)this._realpathSet(n,e)}},s.prototype._realpathSet=function(e,t){var o=this.matches[e];if(!o)return t();var r=Object.keys(o),s=this,a=r.length;if(0===a)return t();var n=this.matches[e]=Object.create(null);r.forEach(function(o){o=s._makeAbs(o),i.realpath(o,s.realpathCache,function(r,i){r?'stat'===r.syscall?n[o]=!0:s.emit('error',r):n[i]=!0,0==--a&&(s.matches[e]=n,t())})})},s.prototype._mark=function(e){return g.mark(this,e)},s.prototype._makeAbs=function(e){return g.makeAbs(this,e)},s.prototype.abort=function(){this.aborted=!0,this.emit('abort')},s.prototype.pause=function(){this.paused||(this.paused=!0,this.emit('pause'))},s.prototype.resume=function(){if(this.paused){if(this.emit('resume'),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var o,e=0;e<t.length;e++)o=t[e],this._emitMatch(o[0],o[1])}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var r,e=0;e<n.length;e++)r=n[e],this._processing--,this._process(r[0],r[1],r[2],r[3])}}},s.prototype._process=function(e,t,o,r){if(h(this instanceof s),h('function'==typeof r),!this.aborted){if(this._processing++,this.paused)return void this._processQueue.push([e,t,o,r]);for(var a=0;'string'==typeof e[a];)a++;var n;switch(a){case e.length:return void this._processSimple(e.join('/'),t,r);case 0:n=null;break;default:n=e.slice(0,a).join('/');}var i,d=e.slice(a);null===n?i='.':f(n)||f(e.map(function(e){return'string'==typeof e?e:'[*]'}).join('/'))?((!n||!f(n))&&(n='/'+n),i=n):i=n;var c=this._makeAbs(i);if(E(this,i))return r();var p=d[0]===l.GLOBSTAR;p?this._processGlobStar(n,i,c,d,t,o,r):this._processReaddir(n,i,c,d,t,o,r)}},s.prototype._processReaddir=function(e,t,o,n,r,s,a){var i=this;this._readdir(o,s,function(l,d){return i._processReaddir2(e,t,o,n,r,s,d,a)})},s.prototype._processReaddir2=function(t,o,n,r,s,a,l,d){if(!l)return d();for(var c,e=r[0],p=!!this.minimatch.negate,h=e._glob,f=this.dot||'.'===h.charAt(0),g=[],y=0;y<l.length;y++)if(c=l[y],'.'!==c.charAt(0)||f){var i;i=p&&!t?!c.match(e):c.match(e),i&&g.push(c)}var m=g.length;if(0===m)return d();if(1===r.length&&!this.mark&&!this.stat){this.matches[s]||(this.matches[s]=Object.create(null));for(var c,y=0;y<m;y++)c=g[y],t&&('/'===t?c=t+c:c=t+'/'+c),'/'!==c.charAt(0)||this.nomount||(c=u.join(this.root,c)),this._emitMatch(s,c);return d()}r.shift();for(var y=0;y<m;y++){var c=g[y];t&&('/'===t?c=t+c:c=t+'/'+c),this._process([c].concat(r),s,a,d)}d()},s.prototype._emitMatch=function(t,o){if(!this.aborted&&!S(this,o)){if(this.paused)return void this._emitQueue.push([t,o]);var e=f(o)?o:this._makeAbs(o);if(this.mark&&(o=this._mark(o)),this.absolute&&(o=e),!this.matches[t][o]){if(this.nodir){var n=this.cache[e];if('DIR'===n||Array.isArray(n))return}this.matches[t][o]=!0;var r=this.statCache[e];r&&this.emit('stat',o,r),this.emit('match',o)}}},s.prototype._readdirInGlobStar=function(e,t){function o(o,r){if(o&&'ENOENT'===o.code)return t();var s=r&&r.isSymbolicLink();n.symlinks[e]=s,s||!r||r.isDirectory()?n._readdir(e,!1,t):(n.cache[e]='FILE',t())}if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var n=this,r=_('lstat\0'+e,o);r&&n.fs.lstat(e,r)}},s.prototype._readdir=function(e,t,o){if(!this.aborted&&(o=_('readdir\0'+e+'\0'+t,o),!!o)){if(t&&!b(this.symlinks,e))return this._readdirInGlobStar(e,o);if(b(this.cache,e)){var n=this.cache[e];if(!n||'FILE'===n)return o();if(Array.isArray(n))return o(null,n)}var r=this;r.fs.readdir(e,a(this,e,o))}},s.prototype._readdirEntries=function(t,o,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var r,e=0;e<o.length;e++)r=o[e],r='/'===t?t+r:t+'/'+r,this.cache[r]=!0;return this.cache[t]=o,n(null,o)}},s.prototype._readdirError=function(e,t,o){if(!this.aborted){switch(t.code){case'ENOTSUP':case'ENOTDIR':var n=this._makeAbs(e);if(this.cache[n]='FILE',n===this.cwdAbs){var r=new Error(t.code+' invalid cwd '+this.cwd);r.path=this.cwd,r.code=t.code,this.emit('error',r),this.abort()}break;case'ENOENT':case'ELOOP':case'ENAMETOOLONG':case'UNKNOWN':this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit('error',t),this.abort()),this.silent||console.error('glob error',t);}return o()}},s.prototype._processGlobStar=function(e,t,o,n,r,s,a){var i=this;this._readdir(o,s,function(l,d){i._processGlobStar2(e,t,o,n,r,s,d,a)})},s.prototype._processGlobStar2=function(t,o,n,r,s,a,l,d){if(!l)return d();var c=r.slice(1),p=t?[t]:[],u=p.concat(c);this._process(u,s,!1,d);var h=this.symlinks[n],f=l.length;if(h&&a)return d();for(var m,e=0;e<f;e++)if(m=l[e],'.'!==m.charAt(0)||this.dot){var i=p.concat(l[e],c);this._process(i,s,!0,d);var g=p.concat(l[e],r);this._process(g,s,!0,d)}d()},s.prototype._processSimple=function(e,t,o){var n=this;this._stat(e,function(r,s){n._processSimple2(e,t,r,s,o)})},s.prototype._processSimple2=function(e,t,o,n,r){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return r();if(e&&f(e)&&!this.nomount){var s=/[\/\\]$/.test(e);'/'===e.charAt(0)?e=u.join(this.root,e):(e=u.resolve(this.root,e),s&&(e+='/'))}'win32'===process.platform&&(e=e.replace(/\\/g,'/')),this._emitMatch(t,e),r()},s.prototype._stat=function(e,t){var o=this._makeAbs(e),n='/'===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&b(this.cache,o)){var r=this.cache[o];if(Array.isArray(r)&&(r='DIR'),!n||'DIR'===r)return t(null,r);if(n&&'FILE'===r)return t()}var s=this.statCache[o];if(s!==void 0){if(!1===s)return t(null,s);var a=s.isDirectory()?'DIR':'FILE';return n&&'FILE'==a?t():t(null,a,s)}var i=this,l=_('stat\0'+o,function(n,r){return r&&r.isSymbolicLink()?i.fs.stat(o,function(n,s){n?i._stat2(e,o,null,r,t):i._stat2(e,o,n,s,t)}):void i._stat2(e,o,n,r,t)});l&&i.fs.lstat(o,l)},s.prototype._stat2=function(e,t,o,n,r){if(o&&('ENOENT'===o.code||'ENOTDIR'===o.code))return this.statCache[t]=!1,r();var s='/'===e.slice(-1);if(this.statCache[t]=n,'/'===t.slice(-1)&&n&&!n.isDirectory())return r(null,!1,n);var a=!0;return n&&(a=n.isDirectory()?'DIR':'FILE'),this.cache[t]=this.cache[t]||a,s&&'FILE'===a?r():r(null,a,n)}},function(e,t,o){function n(e){return e&&'realpath'===e.syscall&&('ELOOP'===e.code||'ENOMEM'===e.code||'ENAMETOOLONG'===e.code)}function r(e,t,o){return c?i(e,t,o):void('function'==typeof t&&(o=t,t=null),i(e,t,function(r,s){n(r)?u.realpath(e,t,o):o(r,s)}))}function s(e,t){if(c)return l(e,t);try{return l(e,t)}catch(o){if(n(o))return u.realpathSync(e,t);throw o}}e.exports=r,r.realpath=r,r.sync=s,r.realpathSync=s,r.monkeypatch=function(){a.realpath=r,a.realpathSync=s},r.unmonkeypatch=function(){a.realpath=i,a.realpathSync=l};var a=o(6),i=a.realpath,l=a.realpathSync,d=process.version,c=/^v[0-5]\./.test(d),u=o(143)},function(e){e.exports=require('events')},function(e,t,o){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e,t){return e.localeCompare(t,'en')}function s(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(a))}function a(e){var t=null;if('/**'===e.slice(-3)){var o=e.replace(/(\/\*\*)+$/,'');t=new h(o,{dot:!0})}return{matcher:new h(e,{dot:!0}),gmatcher:t}}function i(e,t){var o=t;return o='/'===t.charAt(0)?c.join(e.root,t):u(t)||''===t?t:e.changedCwd?c.resolve(e.cwd,t):c.resolve(t),'win32'===process.platform&&(o=o.replace(/\\/g,'/')),o}function l(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))})}t.setopts=function(e,t,o){if(o||(o={}),o.matchBase&&-1===t.indexOf('/')){if(o.noglobstar)throw new Error('base matching requires globstar');t='**/'+t}e.silent=!!o.silent,e.pattern=t,e.strict=!1!==o.strict,e.realpath=!!o.realpath,e.realpathCache=o.realpathCache||Object.create(null),e.follow=!!o.follow,e.dot=!!o.dot,e.mark=!!o.mark,e.nodir=!!o.nodir,e.nodir&&(e.mark=!0),e.sync=!!o.sync,e.nounique=!!o.nounique,e.nonull=!!o.nonull,e.nosort=!!o.nosort,e.nocase=!!o.nocase,e.stat=!!o.stat,e.noprocess=!!o.noprocess,e.absolute=!!o.absolute,e.fs=o.fs||d,e.maxLength=o.maxLength||Infinity,e.cache=o.cache||Object.create(null),e.statCache=o.statCache||Object.create(null),e.symlinks=o.symlinks||Object.create(null),s(e,o),e.changedCwd=!1;var r=process.cwd();n(o,'cwd')?(e.cwd=c.resolve(o.cwd),e.changedCwd=e.cwd!==r):e.cwd=r,e.root=o.root||c.resolve(e.cwd,'/'),e.root=c.resolve(e.root),'win32'===process.platform&&(e.root=e.root.replace(/\\/g,'/')),e.cwdAbs=u(e.cwd)?e.cwd:i(e,e.cwd),'win32'===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,'/')),e.nomount=!!o.nomount,o.nonegate=!0,o.nocomment=!0,o.allowWindowsEscape=!1,e.minimatch=new h(t,o),e.options=e.minimatch.options},t.ownProp=n,t.makeAbs=i,t.finish=function(t){for(var e,o=t.nounique,n=o?[]:Object.create(null),s=0,a=t.matches.length;s<a;s++)if(e=t.matches[s],e&&0!==Object.keys(e).length){var d=Object.keys(e);o?n.push.apply(n,d):d.forEach(function(e){n[e]=!0})}else if(t.nonull){var c=t.minimatch.globSet[s];o?n.push(c):n[c]=!0}if(o||(n=Object.keys(n)),t.nosort||(n=n.sort(r)),t.mark){for(var s=0;s<n.length;s++)n[s]=t._mark(n[s]);t.nodir&&(n=n.filter(function(o){var e=!/\/$/.test(o),n=t.cache[o]||t.cache[i(t,o)];return e&&n&&(e='DIR'!==n&&!Array.isArray(n)),e}))}t.ignore.length&&(n=n.filter(function(e){return!l(t,e)})),t.found=n},t.mark=function(e,t){var o=i(e,t),n=e.cache[o],r=t;if(n){var s='DIR'===n||Array.isArray(n),a='/'===t.slice(-1);if(s&&!a?r+='/':!s&&a&&(r=r.slice(0,-1)),r!==t){var l=i(e,r);e.statCache[l]=e.statCache[o],e.cache[l]=e.cache[o]}}return r},t.isIgnored=l,t.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))})};var d=o(6),c=o(1),p=o(52),u=o(54),h=p.Minimatch},function(e){function t(e,o){function n(){for(var t=Array(arguments.length),o=0;o<t.length;o++)t[o]=arguments[o];var n=e.apply(this,t),r=t[t.length-1];return'function'==typeof n&&n!==r&&Object.keys(r).forEach(function(e){n[e]=r[e]}),n}if(e&&o)return t(e)(o);if('function'!=typeof e)throw new TypeError('need wrapper function');return Object.keys(e).forEach(function(t){n[t]=e[t]}),n}e.exports=t},function(e,t,o){function n(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function r(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},o=e.name||'Function wrapped with `once`';return t.onceError=o+' shouldn\'t be called more than once',t.called=!1,t}var s=o(82);e.exports=s(n),e.exports.strict=s(r),n.proto=n(function(){Object.defineProperty(Function.prototype,'once',{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,'onceStrict',{value:function(){return r(this)},configurable:!0})})},function(e,t,o){'use strict';function n(){h&&(h.close(),h=null);var e=a().port;h=u.createSocket('udp4'),h.on('listening',function(){var e=h.address();console.log('server running '+e.address+':'+e.port)}),h.on('message',function(e,t){console.log('udp server got '+e+' from '+t.address+':'+t.port);try{var o=JSON.parse(e.toString()),n=[],r=45;if('string'==typeof o&&(o=JSON.parse(o)),console.log(o),o.Placemark.hasOwnProperty('Point')){var a=o.Placemark.Point.coordinates.split(','),i={lng:+a[0],lat:+a[1],alt:+a[2]||0};2<a.length&&(i.alt=a[2]),3<a.length&&(r=a[3]),n.push(i)}else{var l=o.Placemark.Polygon.outerBoundaryIs.LinearRing.coordinates,p=function(e){return e.split(' ').map(function(e){var t=e.split(',').map(Number),o=d()(t,2),n=o[0],r=o[1];return{lng:n,lat:r}})};n=p(l)}Object(c.getmainWindow)().webContents.send(g,n,r)}catch(e){console.log(e)}}),h.on('error',function(e){console.log('server error',e)}),h.bind(e)}function r(e){var t=void 0,o=m.get('sandTable_udp_client_port'),n=m.get('sandTable_udp_client_host'),r=e.toString().split(''),s=+r.pop();if(1==s||0==s){var a=r.join('');if('FF'==a){var i=Buffer.from([255,+s]);h.send(i,o,n),t='\u53D1\u9001\u6210\u529F'}else{var l=/^[+-]?\d*(\.\d*)?(e[+-]?\d+)?$/;if(l.test(a)){var d=a.toString(16),c=s.toString(16),p=Buffer.from([d,c],'hex');h.send(p,o,n),t='\u53D1\u9001\u6210\u529F'}else t='\u63A5\u53D7\u5931\u8D25'}}return t}function s(e){m.set(g,e),n()}function a(){var e=6e3,t=m.get(g);t?e=t:m.set(g,e);var o=i();return{port:e,host:o}}function i(){var e=o(10),t=e.networkInterfaces(),n='';for(var r in console.log(t),t)if(-1<r.indexOf('\u4EE5\u592A\u7F51')){for(var s=t[r],a=0;a<s.length;a++){var i=s[a],l=i.address,d=i.family,c=i.internal;if('IPv4'===d&&!c){n=l;break}}if(n)break}return n}o.d(t,'b',function(){return s}),o.d(t,'a',function(){return n}),o.d(t,'c',function(){return r});var l=o(172),d=o.n(l),c=o(55),p=o(179),u=o(178),h=void 0,f=o(59),m=new f,g='sandTable_udp_server_port'},function(e,t,o){e.exports={default:o(176),__esModule:!0}},function(e,t,o){e.exports={build:{env:o(87)},dev:{removeElectronJunk:!0,env:o(88)},IsUseSysTitle:!0,AppConfig:o(89)}},function(e){e.exports={NODE_ENV:'"production"',BASE_API:'"http://127.0.0.1:8890/yjearth4.0"',HOST:'"http://127.0.0.1:8890"',DOCKAIR:'"http://192.168.110.24:9136"',DOCKSOCKETURL:'"ws://192.168.110.24:9136/websocket"',REMOTEAIR:'"http://121.37.119.107:6789"',REMOTESOCKETURL:'"ws://121.37.119.107:6789/api/v1/ws"',AI_URL:'"http://121.37.119.107:8000"'}},function(e){e.exports={NODE_ENV:'"development"',BASE_API:'"http://127.0.0.1:8890/yjearth4.0"',HOST:'"http://127.0.0.1:8890"',DOCKAIR:'"http://192.168.110.24:9136"',DOCKSOCKETURL:'"ws://192.168.110.24:9136/websocket"',REMOTEAIR:'"http://192.168.110.26:6789"',REMOTEAIR2:'"http://192.168.110.47:8000"',REMOTESOCKETURL:'"ws://192.168.110.26:6789/api/v1/ws"',AI_URL:'"http://121.37.119.107:8000"'}},function(e){var t='dzsp_yingjizhihui_offline_Y_save',o='\u4FBF\u643A\u5F0F\u5E94\u6025\u6307\u6325\u7535\u5B50\u6C99\u76D8\u7CFB\u7EDF';e.exports={baseApi:'',PORT:8099,head:'henan_head',name:t,version:'v4.0.0',productName:o,productName_tw:'\u53EF\u64D5\u5F0F\u61C9\u6025\u6307\u63EE\u96FB\u5B50\u6C99\u76E4\u7CFB\u7D71',productName_en:'Portable emergency command electronic sand table system',build_productName:o,build_win_icon:'build/icons/81.ico',build_extraFiles:[{from:'./collada2gltf/',to:'./collada2gltf'},{from:'./convert/',to:'./convert'},{from:'./yjearth4_0/',to:'./yjearth4_0'},{from:'./ffplay/',to:'./ffplay'},{from:'./build/icons/',to:'./icons'}],installUrl:'D:\\ProgramFiles\\'+t,build_appId:'org.'+t,APPSECRET:'',appVersion:'earth',build_linux_desktop_Icon:'/opt/'+o+'/icons/81.png'}},function(e){e.exports=require('net')},function(e,t,o){var n=o(10),r=o(59),s=new r().path,a=[];'win32'==n.platform()&&(a=s.split('\\')),'linux'==n.platform()&&(a=s.split('/')),a[a.length-1]='';var i=a.join('/'),l=process.execPath.replaceAll('\\','/'),d=l.split('/');d[d.length-2],e.exports={db_path:i,execPath:d[d.length-2]}},function(e,t,o){'use strict';var n=o(32),r=o.n(n),s=o(109),a=o.n(s),i=o(25),l=o.n(i),d=o(126),c=o(127),p=o(132),u=o(57),h=o(151),f=o(10),m=o.n(f),g=o(14),y=o.n(g),b=o(171),_=o.n(b),x=o(84),E=o(56),S=o.n(E),O=o(26),k=o(6),v=o(181),w=o(1),T=o(58),P=w.join(Object(O.a)(),'/ffplay/'),M=o(182),j='',A=new a.a;t.a={Mainfunc:function(t){i.ipcMain.on('setStaticFile',function(e,t){if(k.existsSync(t)){var o=t.replaceAll('\\','/').split('/');o.pop(),u.a.use(T.static(o.join('/')))}}),i.ipcMain.on('restart',function(){Object(E.closeChild)(),i.app.relaunch(),i.app.exit()}),i.ipcMain.on('getHead',function(e){e.sender.send('headRes',process.env.Head)}),i.ipcMain.on('open-directory-dialog',function(e,t){i.dialog.showOpenDialog(i.BrowserWindow.getFocusedWindow(),{properties:t.properties,filters:t.filters}).then(function(t){var o=[];t.canceled||t.filePaths.forEach(function(e){o.push(e.replace(/\\/g,'/'))}),e.sender.send('selectedItem',o)})}),i.ipcMain.on('openFFPlay',function(t,e){var o='',n=m.a.platform();o='win32'===n?'ffplay.exe':'ffplay';var r=e.name;console.log('obj',e),console.log(w.join(Object(O.a)(),'/ffplay/'+o));var s=Object(g.spawn)(w.join(Object(O.a)(),'/ffplay/'+o),['-window_title',r,'-x','1300','-y','730','-rtsp_transport','tcp',e.url],{cwd:P,stdio:'ignore'}).on('exit',function(e){console.log('out'),console.log(e),t.sender.send('openFFPlayOut',e)});console.log('child',s.pid),s.unref()}),i.ipcMain.on('saveFile',function(e,t){var o=t.title,n=t.filename,r=t.filters;i.dialog.showSaveDialog({title:o,defaultPath:n,filters:r}).then(function(t){var o='';t.canceled||(o=t.filePath.replace(/\\/g,'/')),e.sender.send('selectedFileItem',o)})}),i.ipcMain.on('startRecoder',function(){j=new h.a,j.start()}),i.ipcMain.on('endRecoder',function(){return j?void j.end(function(){var e=i.dialog.showSaveDialogSync({title:'\u4FDD\u5B58\u89C6\u9891\u6587\u4EF6',defaultPath:_()().format('YYYYMMDDHHmmss')+'\u89C6\u9891\u5F55\u5236.mp4',filters:[{name:'\u6587\u4EF6\u7C7B\u578B',extensions:['mp4']}]});e==void 0?j=null:j.move(e,function(){j=null})}):void console.log('recorder\u4E0D\u5B58\u5728')}),i.ipcMain.on('saveNetFile',function(e,t){var o=t.title,n=t.filename,r=t.filters,s=t.url;i.dialog.showSaveDialog({title:o,defaultPath:n,filters:r}).then(function(t){var o='';if(!t.canceled){var n=function(t){console.log('\u4E0B\u8F7D\u5B8C\u6210'),e.sender.send('saveNetFileRes',t)},r=function(e,t){M.get(e,function(e){var o=parseInt(e.headers['content-length']);e.pipe(k.createWriteStream(t)),e.on('end',function(){n('success')})}).on('error',function(){console.log('\u5B8C\u6210'),n('error')})};o=t.filePath.replace(/\\/g,'/'),r(s,o)}})}),i.ipcMain.on('requireGEMarkerName',function(e,t){var o={};for(var n in t){var r=k.readdirSync(w.join(global.__static?global.__static:Object(O.a)()+'/static',t[n]));console.log(r);for(var s=0;s<r.length;s++)r[s]=t[n]+'/'+r[s];o[t[n]]=r}e.sender.send('dirFiles',o)}),i.ipcMain.on('transformModel',function(e,t){var o=function(t){e.sender.send('transformModelRes','\u6A21\u578B\u8F6C\u6362\u7ED3\u675F',t)},n=t.fun,r=t.input,s=t.output;'osgbToglb'===n?Object(d.c)(r,s,o):'shapeToglb'===n?Object(d.d)(r,s,o):'b3dmToglb'===n?Object(d.a)(r,s,o):'objToglb'===n?new c.a().obj2glb(r,s,o):'daeTogltf'===n?Object(d.b)(r,s,o):'Fbx2glb'===n?new p.a().fbx2glb(r,s,o):void 0}),i.ipcMain.on('newDir',function(e,t){var o='';t.paths.forEach(function(e){o=w.join(o,e)}),k.existsSync(o)||k.mkdirSync(o);var n=w.join(o,t.name+'.png');k.writeFile(n,t.buffer,function(t){var o=n;t&&(o='\u5931\u8D25'),e.sender.send('newDirRes',o)})}),i.ipcMain.on('getIniConfig',function(e,t){console.log('1111111111111111111111111111111111111111111111111111111111111');var o=w.join(Object(O.a)(),'/yjearth4_0/static/config/config.ini');console.log('iniPath',o);var n=v.parse(k.readFileSync(o,'utf-8'));for(var s in t){var a=t[s];if('object'==('undefined'==typeof a?'undefined':r()(a)))for(var i in a)n[s][i]=a[i]}k.writeFileSync(o,v.stringify(n)),e.sender.send('IniConfig',n)}),i.ipcMain.on('submitPort',function(e,t){Object(x.b)(t),e.sender.send('submitPortRes',t)}),i.ipcMain.on('setNodes',function(e,t){var o=Object(x.c)(t);e.sender.send('replayRenderer',o)}),i.ipcMain.on('files-dropped',function(e,t){e.sender.send('DroppedFiles',t)}),i.ipcMain.handle('get-shared-object',function(){return global.sharedObject}),i.ipcMain.handle('set-shared-object',function(e,t,o){return global.sharedObject[t]=o,{success:!0}}),i.ipcMain.on('changeField',function(o,e){t.webContents.send('changeFields',e)})}}},function(e,t,o){e.exports={default:o(94),__esModule:!0}},function(e,t,o){o(18),o(23),e.exports=o(43).f('iterator')},function(e,t,o){var n=o(33),r=o(34);e.exports=function(e){return function(t,o){var d,a,c=r(t)+'',s=n(o),i=c.length;return 0>s||s>=i?e?'':void 0:(d=c.charCodeAt(s),55296>d||56319<d||s+1===i||56320>(a=c.charCodeAt(s+1))||57343<a?e?c.charAt(s):d:e?c.slice(s,s+2):(d-55296<<10)+(a-56320)+65536)}}},function(e,t,o){'use strict';var n=o(28),r=o(27),s=o(22),a={};o(12)(a,o(3)('iterator'),function(){return this}),e.exports=function(e,t,o){e.prototype=n(a,{next:r(1,o)}),s(e,t+' Iterator')}},function(e,t,o){var n=o(7),r=o(8),s=o(38);e.exports=o(9)?Object.defineProperties:function(e,t){r(e);for(var o,a=s(t),l=a.length,d=0;l>d;)n.f(e,o=a[d++],t[o]);return e}},function(e,t,o){var n=o(17),r=o(39),s=o(99);e.exports=function(e){return function(t,o,a){var i,l=n(t),d=r(l.length),c=s(a,d);if(e&&o!=o){for(;d>c;)if(i=l[c++],i!=i)return!0;}else for(;d>c;c++)if((e||c in l)&&l[c]===o)return e||c||0;return!e&&-1}}},function(e,t,o){var n=o(33),r=Math.max,s=Math.min;e.exports=function(e,t){return e=n(e),0>e?r(e+t,0):s(e,t)}},function(e,t,o){'use strict';var n=o(101),r=o(66),s=o(16),a=o(17);e.exports=o(35)(Array,'Array',function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,r(1)):'keys'==t?r(0,o):'values'==t?r(0,e[o]):r(0,[o,e[o]])},'values'),s.Arguments=s.Array,n('keys'),n('values'),n('entries')},function(e){e.exports=function(){}},function(e,t,o){e.exports={default:o(103),__esModule:!0}},function(e,t,o){o(104),o(47),o(107),o(108),e.exports=o(0).Symbol},function(e,t,o){'use strict';var n=o(2),r=o(13),s=o(9),a=o(4),i=o(61),l=o(44).KEY,d=o(15),c=o(41),p=o(22),u=o(29),h=o(3),f=o(43),m=o(45),g=o(105),y=o(68),b=o(8),_=o(5),x=o(30),E=o(17),S=o(37),O=o(27),v=o(28),w=o(106),T=o(70),P=o(67),M=o(7),A=o(38),I=T.f,R=M.f,D=w.f,N=n.Symbol,C=n.JSON,L=C&&C.stringify,$='prototype',F=h('_hidden'),G=h('toPrimitive'),Y={}.propertyIsEnumerable,W=c('symbol-registry'),H=c('symbols'),U=c('op-symbols'),B=Object[$],K='function'==typeof N&&!!P.f,q=n.QObject,z=!q||!q[$]||!q[$].findChild,V=s&&d(function(){return 7!=v(R({},'a',{get:function(){return R(this,'a',{value:7}).a}})).a})?function(e,t,o){var n=I(B,t);n&&delete B[t],R(e,t,o),n&&e!==B&&R(B,t,n)}:R,J=function(e){var t=H[e]=v(N[$]);return t._k=e,t},Q=K&&'symbol'==typeof N.iterator?function(e){return'symbol'==typeof e}:function(e){return e instanceof N},Z=function(e,t,o){return e===B&&Z(U,t,o),b(e),t=S(t,!0),b(o),r(H,t)?(o.enumerable?(r(e,F)&&e[F][t]&&(e[F][t]=!1),o=v(o,{enumerable:O(0,!1)})):(!r(e,F)&&R(e,F,O(1,{})),e[F][t]=!0),V(e,t,o)):R(e,t,o)},X=function(e,t){b(e);for(var o,n=g(t=E(t)),r=0,s=n.length;s>r;)Z(e,o=n[r++],t[o]);return e},ee=function(e){var t=Y.call(this,e=S(e,!0));return this===B&&r(H,e)&&!r(U,e)?!1:t||!r(this,e)||!r(H,e)||r(this,F)&&this[F][e]?t:!0},te=function(e,t){if(e=E(e),t=S(t,!0),e!==B||!r(H,t)||r(U,t)){var o=I(e,t);return o&&r(H,t)&&!(r(e,F)&&e[F][t])&&(o.enumerable=!0),o}},oe=function(e){for(var t,o=D(E(e)),n=[],s=0;o.length>s;)r(H,t=o[s++])||t==F||t==l||n.push(t);return n},ne=function(e){for(var t,o=e===B,n=D(o?U:E(e)),s=[],a=0;n.length>a;)r(H,t=n[a++])&&(!o||r(B,t))&&s.push(H[t]);return s};K||(N=function(){if(this instanceof N)throw TypeError('Symbol is not a constructor!');var e=u(0<arguments.length?arguments[0]:void 0),t=function(o){this===B&&t.call(U,o),r(this,F)&&r(this[F],e)&&(this[F][e]=!1),V(this,e,O(1,o))};return s&&z&&V(B,e,{configurable:!0,set:t}),J(e)},i(N[$],'toString',function(){return this._k}),T.f=te,M.f=Z,o(69).f=w.f=oe,o(46).f=ee,P.f=ne,s&&!o(19)&&i(B,'propertyIsEnumerable',ee,!0),f.f=function(e){return J(h(e))}),a(a.G+a.W+a.F*!K,{Symbol:N});for(var re=['hasInstance','isConcatSpreadable','iterator','match','replace','search','species','split','toPrimitive','toStringTag','unscopables'],se=0;re.length>se;)h(re[se++]);for(var j=A(h.store),ae=0;j.length>ae;)m(j[ae++]);a(a.S+a.F*!K,'Symbol',{for:function(e){return r(W,e+='')?W[e]:W[e]=N(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+' is not a symbol!');for(var t in W)if(W[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!K,'Object',{create:function(e,t){return t===void 0?v(e):X(v(e),t)},defineProperty:Z,defineProperties:X,getOwnPropertyDescriptor:te,getOwnPropertyNames:oe,getOwnPropertySymbols:ne});var k=d(function(){P.f(1)});a(a.S+a.F*k,'Object',{getOwnPropertySymbols:function(e){return P.f(x(e))}}),C&&a(a.S+a.F*(!K||d(function(){var e=N();return'[null]'!=L([e])||'{}'!=L({a:e})||'{}'!=L(Object(e))})),'JSON',{stringify:function(e){for(var t,o,n=[e],r=1;arguments.length>r;)n.push(arguments[r++]);if(o=t=n[1],(_(t)||void 0!==e)&&!Q(e))return y(t)||(t=function(e,t){if('function'==typeof o&&(t=o.call(this,e,t)),!Q(t))return t}),n[1]=t,L.apply(C,n)}}),N[$][G]||o(12)(N[$],G,N[$].valueOf),p(N,'Symbol'),p(Math,'Math',!0),p(n.JSON,'JSON',!0)},function(e,t,o){var n=o(38),r=o(67),s=o(46);e.exports=function(e){var t=n(e),o=r.f;if(o)for(var a,l=o(e),d=s.f,c=0;l.length>c;)d.call(e,a=l[c++])&&t.push(a);return t}},function(e,t,o){var n=o(17),r=o(69).f,s={}.toString,a='object'==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&'[object Window]'==s.call(e)?i(e):r(n(e))}},function(e,t,o){o(45)('asyncIterator')},function(e,t,o){o(45)('observable')},function(e,t,o){e.exports={default:o(110),__esModule:!0}},function(e,t,o){o(47),o(18),o(23),o(111),o(119),o(122),o(124),e.exports=o(0).Map},function(e,t,o){'use strict';var n=o(112),r=o(73),s='Map';e.exports=o(115)(s,function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(r(this,s),e);return t&&t.v},set:function(e,t){return n.def(r(this,s),0===e?0:e,t)}},n,!0)},function(e,t,o){'use strict';var n=o(7).f,r=o(28),s=o(48),a=o(11),i=o(49),l=o(24),d=o(35),c=o(66),p=o(72),u=o(9),h=o(44).fastKey,m=o(73),f=u?'_s':'size',g=function(e,t){var o,n=h(t);if('F'!==n)return e._i[n];for(o=e._f;o;o=o.n)if(o.k==t)return o};e.exports={getConstructor:function(e,t,o,d){var c=e(function(e,n){i(e,c,t,'_i'),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[f]=0,void 0!=n&&l(n,o,e[d],e)});return s(c.prototype,{clear:function(){for(var e=m(this,t),o=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete o[n.i];e._f=e._l=void 0,e[f]=0},delete:function(e){var o=m(this,t),n=g(o,e);if(n){var r=n.n,s=n.p;delete o._i[n.i],n.r=!0,s&&(s.n=r),r&&(r.p=s),o._f==n&&(o._f=r),o._l==n&&(o._l=s),o[f]--}return!!n},forEach:function(e){m(this,t);for(var o,n=a(e,1<arguments.length?arguments[1]:void 0,3);o=o?o.n:this._f;)for(n(o.v,o.k,this);o&&o.r;)o=o.p},has:function(e){return!!g(m(this,t),e)}}),u&&n(c.prototype,'size',{get:function(){return m(this,t)[f]}}),c},def:function(e,t,o){var n,r,s=g(e,t);return s?s.v=o:(e._l=s={i:r=h(t,!0),k:t,v:o,p:n=e._l,n:void 0,r:!1},!e._f&&(e._f=s),n&&(n.n=s),e[f]++,'F'!==r&&(e._i[r]=s)),e},getEntry:g,setStrong:function(e,t,o){d(e,t,function(e,o){this._t=m(e,t),this._k=o,this._l=void 0},function(){for(var e=this,t=e._k,o=e._l;o&&o.r;)o=o.p;return e._t&&(e._l=o=o?o.n:e._t._f)?'keys'==t?c(0,o.k):'values'==t?c(0,o.v):c(0,[o.k,o.v]):(e._t=void 0,c(1))},o?'entries':'values',!o,!0),p(t)}}},function(e,t,o){var n=o(8);e.exports=function(t,e,o,r){try{return r?e(n(o)[0],o[1]):e(o)}catch(o){var s=t['return'];throw void 0!==s&&n(s.call(t)),o}}},function(e,t,o){var n=o(16),r=o(3)('iterator'),s=Array.prototype;e.exports=function(e){return e!==void 0&&(n.Array===e||s[r]===e)}},function(e,t,o){'use strict';var n=o(2),r=o(4),s=o(44),a=o(15),i=o(12),l=o(48),d=o(24),c=o(49),p=o(5),u=o(22),h=o(7).f,f=o(116)(0),m=o(9);e.exports=function(e,t,o,g,y,_){var b=n[e],x=b,E=y?'set':'add',S=x&&x.prototype,k={};return m&&'function'==typeof x&&(_||S.forEach&&!a(function(){new x().entries().next()}))?(x=t(function(t,o){c(t,x,e,'_c'),t._c=new b,void 0!=o&&d(o,y,t[E],t)}),f(['add','clear','delete','forEach','get','has','set','keys','values','entries','toJSON'],function(e){var t='add'==e||'set'==e;e in S&&!(_&&'clear'==e)&&i(x.prototype,e,function(o,n){if(c(this,x,e),t||!_||p(o)){var r=this._c[e](0===o?0:o,n);return t?this:r}})}),_||h(x.prototype,'size',{get:function(){return this._c.size}})):(x=g.getConstructor(t,e,y,E),l(x.prototype,o),s.NEED=!0),u(x,e),k[e]=x,r(r.G+r.W+r.F,k),_||g.setStrong(x,e,y),x}},function(e,t,o){var n=o(11),r=o(63),s=o(30),a=o(39),i=o(117);e.exports=function(e,t){var o=1==e,l=4==e,d=6==e,c=t||i;return function(t,i,p){for(var u,h,m=s(t),g=r(m),y=n(i,p,3),f=a(g.length),b=0,_=o?c(t,f):2==e?c(t,0):void 0;f>b;b++)if((5==e||d||b in g)&&(u=g[b],h=y(u,b,m),e))if(o)_[b]=h;else if(h)switch(e){case 3:return!0;case 5:return u;case 6:return b;case 2:_.push(u);}else if(l)return!1;return d?-1:3==e||l?l:_}}},function(e,t,o){var n=o(118);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,o){var n=o(5),r=o(68),s=o(3)('species');e.exports=function(e){var t;return r(e)&&(t=e.constructor,'function'==typeof t&&(t===Array||r(t.prototype))&&(t=void 0),n(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,o){var n=o(4);n(n.P+n.R,'Map',{toJSON:o(120)('Map')})},function(e,t,o){var n=o(31),r=o(121);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+'#toJSON isn\'t generic');return r(this)}}},function(e,t,o){var n=o(24);e.exports=function(e,t){var o=[];return n(e,!1,o.push,o,t),o}},function(e,t,o){o(123)('Map')},function(e,t,o){'use strict';var n=o(4);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,o){o(125)('Map')},function(e,t,o){'use strict';var n=o(4),r=o(20),s=o(11),a=o(24);e.exports=function(e){n(n.S,e,{from:function(e){var t,o,i,n,l=arguments[1];return(r(this),t=void 0!==l,t&&r(l),void 0==e)?new this:(o=[],t?(i=0,n=s(l,arguments[2],2),a(e,!1,function(e){o.push(n(e,i++))})):a(e,!1,o.push,o),new this(o))}})}},function(e,t,o){'use strict';function n(e,t){console.log(e);try{var o=s.exec(e,{cwd:r.join(process.cwd(),'convert')});o.stdout.on('data',function(){}),o.stderr.on('data',function(){console.log('stderr_________________________')}),o.on('close',function(e){console.log('out code_______________________\uFF1A'+e),t()})}catch(t){console.log(t)}}t.c=function(e,t,o){n('start '+a+' -f osgb -i '+e+' -o '+t,o)},t.d=function(e,t,o){n('start '+a+' -f shape -i '+e+' -o '+t+' --height height',o)},t.a=function(e,t,o){n('start '+a+' -f b3dm -i '+e+' -o '+t,o)},t.b=function(e,t,o){try{var n=s.exec('start '+l+' -i '+e+' -o '+t,{cwd:r.join(process.cwd(),'collada2gltf')});n.on('close',function(){o()})}catch(t){console.log(t)}};var r=o(1),s=o(14),a=r.join(process.cwd(),'/convert/_3dtile.exe'),l=r.join(process.cwd(),'/collada2gltf/COLLADA2GLTF-bin.exe')},function(e,t,o){'use strict';t.a=function(){this.obj2gltf=function(e){s(e+'.obj').then(function(t){var o=Buffer.from(r()(t));a.writeFileSync(e+'.gltf',o)})},this.obj2glb=function(e,t,o){s(e,{binary:!0}).then(function(e){a.writeFileSync(t,e),o()})}};var n=o(128),r=o.n(n),s=o(130),a=o(6),i=o(131),l=i.processGltf},function(e,t,o){e.exports={default:o(129),__esModule:!0}},function(e,t,o){var n=o(0),r=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(){return r.stringify.apply(r,arguments)}},function(e){e.exports=require('obj2gltf')},function(e){e.exports=require('gltf-pipeline')},function(e,t,o){'use strict';t.a=function(){function e(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:[];return new r.a(function(n,r){try{var c='Windows_NT'===i.type()?'.exe':'',p=l.join(process.cwd(),'convert/FBX2glTF.exe');if(!a.existsSync(p))throw new Error('Unsupported OS: '+i.type());var u;if(t.endsWith('.glb'))u='.glb',o.includes('--binary')||o.push('--binary');else if(t.endsWith('.gltf'))u='.gltf';else throw new Error('Unsupported file extension: '+t);var h=a.realpathSync(e),f=a.realpathSync(l.dirname(t)),m=l.join(f,l.basename(t,u)),g=o.slice(0);g.push('--input',h,'--output',m);var y=s.spawn(p,g),b='';y.stdout.on('data',function(e){return b+=e}),y.stderr.on('data',function(e){return b+=e}),y.on('error',r),y.on('close',function(e){var t=h.replace(/.fbx$/i,'.fbm'),o=function(e){return e&&console.warn('Failed to delete '+t+': '+e)};try{a.existsSync(t)&&d(t,{},o)}catch(e){o(e)}0==e?n(m+u):r(new Error('Converter output:\n'+(b.length?b:'<none>')))})}catch(e){r(e)}})}this.fbx2glb=function(t,o,n){e(t,o,['--khr-materials-unlit']).then(function(e){n(e)},function(e){n(e)})}};var n=o(133),r=o.n(n),s=o(14),a=o(6),i=o(10),l=o(1),d=o(142);console.log(l.join(process.cwd(),'convert/FBX2glTF.exe'))},function(e,t,o){e.exports={default:o(134),__esModule:!0}},function(e,t,o){o(47),o(18),o(23),o(135),o(140),o(141),e.exports=o(0).Promise},function(e,t,o){'use strict';var n,r,s,a,i=o(19),l=o(2),d=o(11),c=o(31),p=o(4),u=o(5),h=o(20),f=o(49),m=o(24),g=o(74),y=o(75).set,b=o(137)(),_=o(50),x=o(76),E=o(138),S=o(77),O='Promise',k=l.TypeError,v=l.process,w=v&&v.versions,T=w&&w.v8||'',P=l[O],M='process'==c(v),j=function(){},A=r=_.f,I=!!function(){try{var e=P.resolve(1),t=(e.constructor={})[o(3)('species')]=function(e){e(j,j)};return(M||'function'==typeof PromiseRejectionEvent)&&e.then(j)instanceof t&&0!==T.indexOf('6.6')&&-1===E.indexOf('Chrome/66')}catch(t){}}(),R=function(e){var t;return u(e)&&'function'==typeof(t=e.then)&&t},D=function(e,t){if(!e._n){e._n=!0;var o=e._c;b(function(){for(var n=e._v,r=1==e._s,s=0,a=function(t){var o,s,a,i=r?t.ok:t.fail,l=t.resolve,d=t.reject,c=t.domain;try{i?(!r&&(2==e._h&&L(e),e._h=1),!0===i?o=n:(c&&c.enter(),o=i(n),c&&(c.exit(),a=!0)),o===t.promise?d(k('Promise-chain cycle')):(s=R(o))?s.call(o,l,d):l(o)):d(n)}catch(t){c&&!a&&c.exit(),d(t)}};o.length>s;)a(o[s++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){y.call(l,function(){var t,o,n,r=e._v,s=C(e);if(s&&(t=x(function(){M?v.emit('unhandledRejection',r,e):(o=l.onunhandledrejection)?o({promise:e,reason:r}):(n=l.console)&&n.error&&n.error('Unhandled promise rejection',r)}),e._h=M||C(e)?2:1),e._a=void 0,s&&t.e)throw t.v})},C=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){y.call(l,function(){var t;M?v.emit('rejectionHandled',e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},$=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,!t._a&&(t._a=t._c.slice()),D(t,!0))},F=function(e){var t,o=this;if(!o._d){o._d=!0,o=o._w||o;try{if(o===e)throw k('Promise can\'t be resolved itself');(t=R(e))?b(function(){var n={_w:o,_d:!1};try{t.call(e,d(F,n,1),d($,n,1))}catch(t){$.call(n,t)}}):(o._v=e,o._s=1,D(o,!1))}catch(t){$.call({_w:o,_d:!1},t)}}};I||(P=function(e){f(this,P,O,'_h'),h(e),n.call(this);try{e(d(F,this,1),d($,this,1))}catch(e){$.call(this,e)}},n=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=o(48)(P.prototype,{then:function(e,t){var o=A(g(this,P));return o.ok='function'!=typeof e||e,o.fail='function'==typeof t&&t,o.domain=M?v.domain:void 0,this._c.push(o),this._a&&this._a.push(o),this._s&&D(this,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),s=function(){var e=new n;this.promise=e,this.resolve=d(F,e,1),this.reject=d($,e,1)},_.f=A=function(e){return e===P||e===a?new s(e):r(e)}),p(p.G+p.W+p.F*!I,{Promise:P}),o(22)(P,O),o(72)(O),a=o(0)[O],p(p.S+p.F*!I,O,{reject:function(e){var t=A(this),o=t.reject;return o(e),t.promise}}),p(p.S+p.F*(i||!I),O,{resolve:function(e){return S(i&&this===a?P:this,e)}}),p(p.S+p.F*!(I&&o(139)(function(e){P.all(e)['catch'](j)})),O,{all:function(e){var t=this,o=A(t),n=o.resolve,r=o.reject,s=x(function(){var o=[],s=0,a=1;m(e,!1,function(e){var i=s++,l=!1;o.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,o[i]=e,--a||n(o))},r)}),--a||n(o)});return s.e&&r(s.v),o.promise},race:function(e){var t=this,o=A(t),n=o.reject,r=x(function(){m(e,!1,function(e){t.resolve(e).then(o.resolve,n)})});return r.e&&n(r.v),o.promise}})},function(e){e.exports=function(e,t,o){var n=o===void 0;switch(t.length){case 0:return n?e():e.call(o);case 1:return n?e(t[0]):e.call(o,t[0]);case 2:return n?e(t[0],t[1]):e.call(o,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(o,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(o,t[0],t[1],t[2],t[3]);}return e.apply(o,t)}},function(e,t,o){var n=o(2),r=o(75).set,s=n.MutationObserver||n.WebKitMutationObserver,a=n.process,i=n.Promise,l='process'==o(21)(a);e.exports=function(){var t,o,d,e=function(){var e,n;for(l&&(e=a.domain)&&e.exit();t;){n=t.fn,t=t.next;try{n()}catch(n){throw t?d():o=void 0,n}}o=void 0,e&&e.enter()};if(l)d=function(){a.nextTick(e)};else if(s&&!(n.navigator&&n.navigator.standalone)){var c=!0,p=document.createTextNode('');new s(e).observe(p,{characterData:!0}),d=function(){p.data=c=!c}}else if(i&&i.resolve){var u=i.resolve(void 0);d=function(){u.then(e)}}else d=function(){r.call(n,e)};return function(e){var n={fn:e,next:void 0};o&&(o.next=n),t||(t=n,d()),o=n}}},function(e,t,o){var n=o(2),r=n.navigator;e.exports=r&&r.userAgent||''},function(e,t,o){var n=o(3)('iterator'),r=!1;try{var s=[7][n]();s['return']=function(){r=!0},Array.from(s,function(){throw 2})}catch(t){}e.exports=function(e,t){if(!t&&!r)return!1;var o=!1;try{var s=[7],a=s[n]();a.next=function(){return{done:o=!0}},s[n]=function(){return a},e(s)}catch(t){}return o}},function(e,t,o){'use strict';var n=o(4),r=o(0),s=o(2),a=o(74),i=o(77);n(n.P+n.R,'Promise',{finally:function(t){var o=a(this,r.Promise||s.Promise),e='function'==typeof t;return this.then(e?function(e){return i(o,t()).then(function(){return e})}:t,e?function(n){return i(o,t()).then(function(){throw n})}:t)}})},function(e,t,o){'use strict';var n=o(4),r=o(50),s=o(76);n(n.S,'Promise',{try:function(e){var t=r.f(this),o=s(e);return(o.e?t.reject:t.resolve)(o.v),t.promise}})},function(e,t,o){function r(e){if(['unlink','chmod','stat','lstat','rmdir','readdir'].forEach(function(t){e[t]=e[t]||p[t],t+='Sync',e[t]=e[t]||p[t]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),!0!==e.disableGlob&&void 0===g)throw Error('glob dependency not found, set `options.disableGlob = true` if intentional');e.disableGlob=e.disableGlob||!1,e.glob=e.glob||b}function s(e,t,o){function s(e){l=l||e,0==--d&&o(l)}function a(e,r){return e?o(e):(d=r.length,0===d?o():void r.forEach(function(e){n(e,t,function o(r){if(r){if(('EBUSY'===r.code||'ENOTEMPTY'===r.code||'EPERM'===r.code)&&i<t.maxBusyTries){i++;var a=100*i;return setTimeout(function(){n(e,t,o)},a)}if('EMFILE'===r.code&&_<t.emfileWait)return setTimeout(function(){n(e,t,o)},_++);'ENOENT'===r.code&&(r=null)}_=0,s(r)})}))}'function'==typeof t&&(o=t,t={}),f(e,'rimraf: missing path'),f.equal(typeof e,'string','rimraf: path should be a string'),f.equal(typeof o,'function','rimraf: callback function required'),f(t,'rimraf: invalid options argument provided'),f.equal(typeof t,'object','rimraf: options should be object'),r(t);var i=0,l=null,d=0;return t.disableGlob||!g.hasMagic(e)?a(null,[e]):void t.lstat(e,function(o){return o?void g(e,t.glob,a):a(null,[e])})}function n(e,t,o){f(e),f(t),f('function'==typeof o),t.lstat(e,function(n,r){return n&&'ENOENT'===n.code?o(null):(n&&'EPERM'===n.code&&x&&a(e,t,n,o),r&&r.isDirectory()?l(e,t,n,o):void t.unlink(e,function(n){if(n){if('ENOENT'===n.code)return o(null);if('EPERM'===n.code)return x?a(e,t,n,o):l(e,t,n,o);if('EISDIR'===n.code)return l(e,t,n,o)}return o(n)}))})}function a(e,t,o,n){f(e),f(t),f('function'==typeof n),o&&f(o instanceof Error),t.chmod(e,y,function(r){r?n('ENOENT'===r.code?null:o):t.stat(e,function(r,s){r?n('ENOENT'===r.code?null:o):s.isDirectory()?l(e,t,o,n):t.unlink(e,n)})})}function i(e,t,o){f(e),f(t),o&&f(o instanceof Error);try{t.chmodSync(e,y)}catch(e){if('ENOENT'===e.code)return;throw o}try{var n=t.statSync(e)}catch(e){if('ENOENT'===e.code)return;throw o}n.isDirectory()?u(e,t,o):t.unlinkSync(e)}function l(e,t,o,n){f(e),f(t),o&&f(o instanceof Error),f('function'==typeof n),t.rmdir(e,function(r){r&&('ENOTEMPTY'===r.code||'EEXIST'===r.code||'EPERM'===r.code)?d(e,t,n):r&&'ENOTDIR'===r.code?n(o):n(r)})}function d(e,t,o){f(e),f(t),f('function'==typeof o),t.readdir(e,function(r,a){if(r)return o(r);var i=a.length;if(0===i)return t.rmdir(e,o);var n;a.forEach(function(r){s(m.join(e,r),t,function(r){return n?void 0:r?o(n=r):void(0==--i&&t.rmdir(e,o))})})})}function c(e,t){t=t||{},r(t),f(e,'rimraf: missing path'),f.equal(typeof e,'string','rimraf: path should be a string'),f(t,'rimraf: missing options'),f.equal(typeof t,'object','rimraf: options should be object');var o;if(t.disableGlob||!g.hasMagic(e))o=[e];else try{t.lstatSync(e),o=[e]}catch(n){o=g.sync(e,t.glob)}if(o.length)for(var e,n=0;n<o.length;n++){e=o[n];try{var s=t.lstatSync(e)}catch(o){if('ENOENT'===o.code)return;'EPERM'===o.code&&x&&i(e,t,o)}try{s&&s.isDirectory()?u(e,t,null):t.unlinkSync(e)}catch(o){if('ENOENT'===o.code)return;if('EPERM'===o.code)return x?i(e,t,o):u(e,t,o);if('EISDIR'!==o.code)throw o;u(e,t,o)}}}function u(e,t,o){f(e),f(t),o&&f(o instanceof Error);try{t.rmdirSync(e)}catch(n){if('ENOENT'===n.code)return;if('ENOTDIR'===n.code)throw o;('ENOTEMPTY'===n.code||'EEXIST'===n.code||'EPERM'===n.code)&&h(e,t)}}function h(e,t){f(e),f(t),t.readdirSync(e).forEach(function(o){c(m.join(e,o),t)});var o=x?100:1,n=0;do{var r=!0;try{var s=t.rmdirSync(e,t);return r=!1,s}finally{if(++n<o&&r)continue}}while(!0)}e.exports=s,s.sync=c;var f=o(51),m=o(1),p=o(6),g=void 0;try{g=o(78)}catch(e){}var y=parseInt('666',8),b={nosort:!0,silent:!0},_=0,x='win32'===process.platform},function(e,t,o){function n(){function e(e){e&&(n.message=e.message,e=n,t(e))}function t(e){if(e)if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t='fs: missing callback '+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}var o;if(l){var n=new Error;o=e}else o=t;return o}function r(e){return'function'==typeof e?e:n()}var s=o(1),a='win32'===process.platform,i=o(6),l=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG),d=s.normalize;if(a)var c=/(.*?)(?:[\/\\]+|$)/g;else var c=/(.*?)(?:[\/]+|$)/g;if(a)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var u=/^[\/]*/;t.realpathSync=function(e,t){function o(){var t=u.exec(e);n=t[0].length,r=t[0],l=t[0],d='',a&&!f[l]&&(i.lstatSync(l),f[l]=!0)}if(e=s.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var n,r,l,d,p=e,h={},f={};for(o();n<e.length;){c.lastIndex=n;var m=c.exec(e);if(d=r,r+=m[0],l=d+m[1],n=c.lastIndex,!(f[l]||t&&t[l]===l)){var g;if(t&&Object.prototype.hasOwnProperty.call(t,l))g=t[l];else{var y=i.lstatSync(l);if(!y.isSymbolicLink()){f[l]=!0,t&&(t[l]=l);continue}var b=null;if(!a){var _=y.dev.toString(32)+':'+y.ino.toString(32);h.hasOwnProperty(_)&&(b=h[_])}null===b&&(i.statSync(l),b=i.readlinkSync(l)),g=s.resolve(d,b),t&&(t[l]=g),a||(h[_]=b)}e=s.resolve(g,e.slice(n)),o()}}return t&&(t[p]=e),e},t.realpath=function(e,t,o){function n(){var t=u.exec(e);f=t[0].length,g=t[0],y=t[0],b='',a&&!x[y]?i.lstat(y,function(e){return e?o(e):void(x[y]=!0,l())}):process.nextTick(l)}function l(){if(f>=e.length)return t&&(t[m]=e),o(null,e);c.lastIndex=f;var n=c.exec(e);return b=g,g+=n[0],y=b+n[1],f=c.lastIndex,x[y]||t&&t[y]===y?process.nextTick(l):t&&Object.prototype.hasOwnProperty.call(t,y)?h(t[y]):i.lstat(y,d)}function d(e,n){if(e)return o(e);if(!n.isSymbolicLink())return x[y]=!0,t&&(t[y]=y),process.nextTick(l);if(!a){var r=n.dev.toString(32)+':'+n.ino.toString(32);if(_.hasOwnProperty(r))return p(null,_[r],y)}i.stat(y,function(e){return e?o(e):void i.readlink(y,function(e,t){a||(_[r]=t),p(e,t)})})}function p(e,n,r){if(e)return o(e);var a=s.resolve(b,n);t&&(t[r]=a),h(a)}function h(t){e=s.resolve(t,e.slice(f)),n()}if('function'!=typeof o&&(o=r(t),t=null),e=s.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(o.bind(null,null,t[e]));var f,g,y,b,m=e,_={},x={};n()}},function(e,t,o){function r(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function n(e){return e.split('\\\\').join(i).split('\\{').join(c).split('\\}').join(b).split('\\,').join(m).split('\\.').join(y)}function s(e){return e.split(i).join('\\').split(c).join('{').split(b).join('}').split(m).join(',').split(y).join('.')}function a(e){if(!e)return[''];var t=[],o=g('{','}',e);if(!o)return e.split(',');var n=o.pre,r=o.body,s=o.post,i=n.split(',');i[i.length-1]+='{'+r+'}';var l=a(s);return s.length&&(i[i.length-1]+=l.shift(),i.push.apply(i,l)),t.push.apply(t,i),t}function l(e){return'{'+e+'}'}function d(e){return /^-?0\d/.test(e)}function p(e,t){return e<=t}function u(e,t){return e>=t}function h(e,t){var o=[],s=g('{','}',e);if(!s||/\$$/.test(s.pre))return[e];var _=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),E=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),S=_||E,O=0<=s.body.indexOf(',');if(!S&&!O)return s.post.match(/,.*\}/)?(e=s.pre+'{'+s.body+b+s.post,h(e)):[e];var v;if(S)v=s.body.split(/\.\./);else if(v=a(s.body),1===v.length&&(v=h(v[0],!1).map(l),1===v.length)){var n=s.post.length?h(s.post,!1):[''];return n.map(function(e){return s.pre+v[0]+e})}var w,T=s.pre,n=s.post.length?h(s.post,!1):[''];if(S){var P=r(v[0]),x=r(v[1]),y=Math.max(v[0].length,v[1].length),M=3==v.length?Math.abs(r(v[2])):1,A=p;x<P&&(M*=-1,A=u);var I=v.some(d);w=[];for(var R=P;A(R,x);R+=M){var i;if(E)i=String.fromCharCode(R),'\\'===i&&(i='');else if(i=R+'',I){var c=y-i.length;if(0<c){var D=Array(c+1).join('0');i=0>R?'-'+D+i.slice(1):D+i}}w.push(i)}}else w=f(v,function(e){return h(e,!1)});for(var N=0;N<w.length;N++)for(var j,C=0;C<n.length;C++)j=T+w[N]+n[C],(!t||S||j)&&o.push(j);return o}var f=o(145),g=o(146);e.exports=function(e){return e?('{}'===e.substr(0,2)&&(e='\\{\\}'+e.substr(2)),h(n(e),!0).map(s)):[]};var i='\0SLASH'+Math.random()+'\0',c='\0OPEN'+Math.random()+'\0',b='\0CLOSE'+Math.random()+'\0',m='\0COMMA'+Math.random()+'\0',y='\0PERIOD'+Math.random()+'\0'},function(e){e.exports=function(e,o){for(var n,r=[],s=0;s<e.length;s++)n=o(e[s],s),t(n)?r.push.apply(r,n):r.push(n);return r};var t=Array.isArray||function(e){return'[object Array]'===Object.prototype.toString.call(e)}},function(e){'use strict';function t(e,t,s){e instanceof RegExp&&(e=o(e,s)),t instanceof RegExp&&(t=o(t,s));var a=n(e,t,s);return a&&{start:a[0],end:a[1],pre:s.slice(0,a[0]),body:s.slice(a[0]+e.length,a[1]),post:s.slice(a[1]+t.length)}}function o(e,t){var o=t.match(e);return o?o[0]:null}function n(e,t,o){var n,r,s,a,l,d=o.indexOf(e),c=o.indexOf(t,d+1),p=d;if(0<=d&&0<c){if(e===t)return[d,c];for(n=[],s=o.length;0<=p&&!l;)p==d?(n.push(p),d=o.indexOf(e,p+1)):1==n.length?l=[n.pop(),c]:(r=n.pop(),r<s&&(s=r,a=c),c=o.indexOf(t,p+1)),p=d<c&&0<=d?d:c;n.length&&(l=[s,a])}return l}e.exports=t,t.range=n},function(e,t,o){try{var n=o(53);if('function'!=typeof n.inherits)throw'';e.exports=n.inherits}catch(t){e.exports=o(148)}},function(e){e.exports='function'==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var o=function(){};o.prototype=t.prototype,e.prototype=new o,e.prototype.constructor=e}}},function(e,t,o){function n(e,t){if('function'==typeof t||3===arguments.length)throw new TypeError('callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167');return new r(e,t).found}function r(e,t){if(!e)throw new Error('must provide pattern');if('function'==typeof t||3===arguments.length)throw new TypeError('callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167');if(!(this instanceof r))return new r(e,t);if(f(this,e,t),this.noprocess)return this;var o=this.minimatch.set.length;this.matches=Array(o);for(var n=0;n<o;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}e.exports=n,n.GlobSync=r;var s=o(79),a=o(52),i=a.Minimatch,l=o(78).Glob,d=o(53),c=o(1),p=o(51),u=o(54),h=o(81),f=h.setopts,m=h.ownProp,g=h.childrenIgnored,y=h.isIgnored;r.prototype._finish=function(){if(p.ok(this instanceof r),this.realpath){var e=this;this.matches.forEach(function(t,o){var n=e.matches[o]=Object.create(null);for(var r in t)try{r=e._makeAbs(r);var a=s.realpathSync(r,e.realpathCache);n[a]=!0}catch(t){if('stat'===t.syscall)n[e._makeAbs(r)]=!0;else throw t}})}h.finish(this)},r.prototype._process=function(e,t,o){p.ok(this instanceof r);for(var s=0;'string'==typeof e[s];)s++;var n;switch(s){case e.length:return void this._processSimple(e.join('/'),t);case 0:n=null;break;default:n=e.slice(0,s).join('/');}var i,l=e.slice(s);null===n?i='.':u(n)||u(e.map(function(e){return'string'==typeof e?e:'[*]'}).join('/'))?((!n||!u(n))&&(n='/'+n),i=n):i=n;var d=this._makeAbs(i);if(!g(this,i)){var c=l[0]===a.GLOBSTAR;c?this._processGlobStar(n,i,d,l,t,o):this._processReaddir(n,i,d,l,t,o)}},r.prototype._processReaddir=function(t,o,n,r,s,a){var l=this._readdir(n,a);if(l){for(var d,e=r[0],p=!!this.minimatch.negate,u=e._glob,h=this.dot||'.'===u.charAt(0),f=[],g=0;g<l.length;g++)if(d=l[g],'.'!==d.charAt(0)||h){var i;i=p&&!t?!d.match(e):d.match(e),i&&f.push(d)}var m=f.length;if(0!==m){if(1===r.length&&!this.mark&&!this.stat){this.matches[s]||(this.matches[s]=Object.create(null));for(var d,g=0;g<m;g++)d=f[g],t&&('/'===t.slice(-1)?d=t+d:d=t+'/'+d),'/'!==d.charAt(0)||this.nomount||(d=c.join(this.root,d)),this._emitMatch(s,d);return}r.shift();for(var g=0;g<m;g++){var y,d=f[g];y=t?[t,d]:[d],this._process(y.concat(r),s,a)}}}},r.prototype._emitMatch=function(t,o){if(!y(this,o)){var e=this._makeAbs(o);if(this.mark&&(o=this._mark(o)),this.absolute&&(o=e),!this.matches[t][o]){if(this.nodir){var n=this.cache[e];if('DIR'===n||Array.isArray(n))return}this.matches[t][o]=!0,this.stat&&this._stat(o)}}},r.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,o;try{o=this.fs.lstatSync(e)}catch(e){if('ENOENT'===e.code)return null}var n=o&&o.isSymbolicLink();return this.symlinks[e]=n,n||!o||o.isDirectory()?t=this._readdir(e,!1):this.cache[e]='FILE',t},r.prototype._readdir=function(e,t){if(t&&!m(this.symlinks,e))return this._readdirInGlobStar(e);if(m(this.cache,e)){var o=this.cache[e];if(!o||'FILE'===o)return null;if(Array.isArray(o))return o}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},r.prototype._readdirEntries=function(t,o){if(!this.mark&&!this.stat)for(var n,e=0;e<o.length;e++)n=o[e],n='/'===t?t+n:t+'/'+n,this.cache[n]=!0;return this.cache[t]=o,o},r.prototype._readdirError=function(e,t){switch(t.code){case'ENOTSUP':case'ENOTDIR':var o=this._makeAbs(e);if(this.cache[o]='FILE',o===this.cwdAbs){var n=new Error(t.code+' invalid cwd '+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case'ENOENT':case'ELOOP':case'ENAMETOOLONG':case'UNKNOWN':this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error('glob error',t);}},r.prototype._processGlobStar=function(t,o,n,r,s,a){var l=this._readdir(n,a);if(l){var d=r.slice(1),c=t?[t]:[],p=c.concat(d);this._process(p,s,!1);var u=l.length,h=this.symlinks[n];if(!(h&&a))for(var f,e=0;e<u;e++)if(f=l[e],'.'!==f.charAt(0)||this.dot){var i=c.concat(l[e],d);this._process(i,s,!0);var m=c.concat(l[e],r);this._process(m,s,!0)}}},r.prototype._processSimple=function(e,t){var o=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!o){if(e&&u(e)&&!this.nomount){var n=/[\/\\]$/.test(e);'/'===e.charAt(0)?e=c.join(this.root,e):(e=c.resolve(this.root,e),n&&(e+='/'))}'win32'===process.platform&&(e=e.replace(/\\/g,'/')),this._emitMatch(t,e)}},r.prototype._stat=function(e){var t=this._makeAbs(e),o='/'===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&m(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n='DIR'),!o||'DIR'===n)return n;if(o&&'FILE'===n)return!1}var r=this.statCache[t];if(!r){var s;try{s=this.fs.lstatSync(t)}catch(e){if(e&&('ENOENT'===e.code||'ENOTDIR'===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{r=this.fs.statSync(t)}catch(e){r=s}else r=s}this.statCache[t]=r;var n=!0;return r&&(n=r.isDirectory()?'DIR':'FILE'),this.cache[t]=this.cache[t]||n,o&&'FILE'===n?!1:n},r.prototype._mark=function(e){return h.mark(this,e)},r.prototype._makeAbs=function(e){return h.makeAbs(this,e)}},function(e,t,o){function n(e){return i(function t(){var o=a[e],n=o.length,s=r(arguments);try{for(var l=0;l<n;l++)o[l].apply(null,s)}finally{o.length>n?(o.splice(0,n),process.nextTick(function(){t.apply(null,s)})):delete a[e]}})}function r(e){for(var t=e.length,o=[],n=0;n<t;n++)o[n]=e[n];return o}var s=o(82),a=Object.create(null),i=o(83);e.exports=s(function(e,t){return a[e]?(a[e].push(t),null):(a[e]=[t],n(e))})},function(e,t,o){'use strict';o.d(t,'a',function(){return P});var n=o(152),r=o.n(n),s=o(156),a=o.n(s),i=o(160),l=o.n(i),d=o(161),c=o.n(d),p=o(162),u=o.n(p),h=o(1),f=o.n(h),m=o(6),g=o.n(m),y=o(26),b=o(10),_=b.platform(),x=b.arch(),E=o(170),S=o(14),O=S.spawn,k=o(80),v=f.a.join(Object(y.a)(),'ffplay'),w=function(e){function t(){return l()(this,t),c()(this,(t.__proto__||a()(t)).apply(this,arguments))}return u()(t,e),t}(k),T=new w,P=function(){function e(){0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l()(this,e),this.shell=void 0,this.filename=E(parseInt(new Date().getTime())).format('YYYYMMDDHHmmss')+'.mp4',this.exe='ffmpeg.exe','win32'===_&&(this.exe='ffmpeg.exe',this.params='-f gdigrab -r 30 -y -i desktop -pix_fmt yuv420p'),'linux'===_&&('x64'===x?this.exe='ffmpeg_x86':'arm'===x?this.exe='ffmpeg_arm':void 0,this.params='-v verbose -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 -c:v libx264 -preset ultrafast -crf 18'),this.commands=f.a.join(Object(y.a)(),'/ffplay/'+this.exe)}return r()(e,[{key:'get_path',value:function(){return f.a.join(v,this.filename)}},{key:'start',value:function(){this.exec(this.commands,this.params)}},{key:'exec',value:function(e,t){var o=t.split(' ');o.push(this.get_path()),console.log('commands, arr',e,o),this.shell=O(e,o,{ffmpegExePath:v}).on('exit',function(e){console.log('exit',e),T.emit('process-exit')}).on('data',function(){}).on('data',function(){}),this.shell.unref()}},{key:'end',value:function(e){this.shell.killed?e():(console.log(this.shell),this.shell.stdin.write('q'),T.once('process-exit',function(){e()}))}},{key:'move',value:function(e,t){var o=this,n=g.a.createReadStream(this.get_path()),r=g.a.createWriteStream(e);n.pipe(r),n.on('end',function(){g.a.unlinkSync(o.get_path()),t()})}}]),e}()},function(e,t,o){'use strict';t.__esModule=!0;var n=o(153),r=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),(0,r.default)(e,o.key,o)}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}()},function(e,t,o){e.exports={default:o(154),__esModule:!0}},function(e,t,o){o(155);var n=o(0).Object;e.exports=function(e,t,o){return n.defineProperty(e,t,o)}},function(e,t,o){var n=o(4);n(n.S+n.F*!o(9),'Object',{defineProperty:o(7).f})},function(e,t,o){e.exports={default:o(157),__esModule:!0}},function(e,t,o){o(158),e.exports=o(0).Object.getPrototypeOf},function(e,t,o){var n=o(30),r=o(65);o(159)('getPrototypeOf',function(){return function(e){return r(n(e))}})},function(e,t,o){var n=o(4),r=o(0),s=o(15);e.exports=function(e,t){var o=(r.Object||{})[e]||Object[e],a={};a[e]=t(o),n(n.S+n.F*s(function(){o(1)}),'Object',a)}},function(e,t){'use strict';t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}},function(e,t,o){'use strict';t.__esModule=!0;var n=o(32),r=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=function(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'===('undefined'==typeof t?'undefined':(0,r.default)(t))||'function'==typeof t)?t:e}},function(e,t,o){'use strict';function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=o(163),s=n(r),a=o(167),i=n(a),l=o(32),d=n(l);t.default=function(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+('undefined'==typeof t?'undefined':(0,d.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(s.default?(0,s.default)(e,t):e.__proto__=t)}},function(e,t,o){e.exports={default:o(164),__esModule:!0}},function(e,t,o){o(165),e.exports=o(0).Object.setPrototypeOf},function(e,t,o){var n=o(4);n(n.S,'Object',{setPrototypeOf:o(166).set})},function(e,t,o){var n=o(5),r=o(8),s=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+': can\'t set as prototype!')};e.exports={set:Object.setPrototypeOf||('__proto__'in{}?function(e,t,n){try{n=o(11)(Function.call,o(70).f(Object.prototype,'__proto__').set,2),n(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,o){return s(e,o),t?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:s}},function(e,t,o){e.exports={default:o(168),__esModule:!0}},function(e,t,o){o(169);var n=o(0).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,o){var n=o(4);n(n.S,'Object',{create:o(28)})},function(e){e.exports=require('moment')},function(o){var s=Math.floor;!function(n,t){o.exports=t()}(this,function(){'use strict';var x=1e3,t=6e4,e=36e5,E='millisecond',T='second',P='minute',j='hour',A='day',n='week',I='month',R='quarter',N='year',C='date',v='Invalid Date',l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y=function(o,t,e){var n=o+'';return!n||n.length>=t?o:''+Array(t+1-n.length).join(e)+o},L='en',g={};g[L]={name:'en',weekdays:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],months:['January','February','March','April','May','June','July','August','September','October','November','December'],ordinal:function(o){var t=['th','st','nd','rd'],e=o%100;return'['+o+(t[(e-20)%10]||t[e]||t[0])+']'}};var D='$isDayjsObject',p=function(e){return e instanceof b||e&&e[D]},S=function o(t,l,n){var d;if(!t)return L;if('string'==typeof t){var c=t.toLowerCase();g[c]&&(d=c),l&&(g[c]=l,d=c);var s=t.split('-');if(!d&&1<s.length)return o(s[0])}else{var p=t.name;g[p]=t,d=p}return!n&&d&&(L=d),d||!n&&L},w=function(o,t){if(p(o))return o.clone();var r='object'==typeof t?t:{};return r.date=o,r.args=arguments,new b(r)},O={s:y,z:function(o){var t=-o.utcOffset(),e=Math.abs(t),n=s(e/60);return(0>=t?'+':'-')+y(n,2,'0')+':'+y(e%60,2,'0')},m:function o(t,e){if(t.date()<e.date())return-o(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,I),a=0>e-r,s=t.clone().add(n+(a?-1:1),I);return+(-(n+(e-r)/(a?r-s:s-r))||0)},a:function(e){return 0>e?Math.ceil(e)||0:s(e)},p:function(e){return{M:I,y:N,w:n,d:A,D:C,h:j,m:P,s:T,ms:E,Q:R}[e]||((e||'')+'').toLowerCase().replace(/s$/,'')},u:function(e){return void 0===e}};O.l=S,O.i=p,O.w=function(o,t){return w(o,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var b=function(){function o(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[D]=!0}var a=Math.round,r=o.prototype;return r.parse=function(e){this.$d=function(o){var t=o.date,a=o.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if('string'==typeof t&&!/Z$/i.test(t)){var n=t.match(l);if(n){var r=n[2]-1||0,i=(n[7]||'0').substring(0,3);return a?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},r.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},r.$utils=function(){return O},r.isValid=function(){return this.$d.toString()!==v},r.isSame=function(o,t){var e=w(o);return this.startOf(t)<=e&&e<=this.endOf(t)},r.isAfter=function(o,t){return w(o)<this.startOf(t)},r.isBefore=function(o,t){return this.endOf(t)<w(o)},r.$g=function(o,t,e){return O.u(o)?this[t]:this.set(e,o)},r.unix=function(){return s(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(o,t){var s=this,a=!!O.u(t)||t,e=O.p(o),r=function(o,t){var e=O.w(s.$u?Date.UTC(s.$y,t,o):new Date(s.$y,t,o),s);return a?e:e.endOf(A)},i=function(o,t){return O.w(s.toDate()[o].apply(s.toDate('s'),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),s)},l=this.$W,d=this.$M,c=this.$D,p='set'+(this.$u?'UTC':'');switch(e){case N:return a?r(1,0):r(31,11);case I:return a?r(1,d):r(0,d+1);case n:var u=this.$locale().weekStart||0,h=(l<u?l+7:l)-u;return r(a?c-h:c+(6-h),d);case A:case C:return i(p+'Hours',0);case j:return i(p+'Minutes',1);case P:return i(p+'Seconds',2);case T:return i(p+'Milliseconds',3);default:return this.clone();}},r.endOf=function(e){return this.startOf(e,!1)},r.$set=function(r,t){var e,n=O.p(r),o='set'+(this.$u?'UTC':''),s=(e={},e[A]=o+'Date',e[C]=o+'Date',e[I]=o+'Month',e[N]=o+'FullYear',e[j]=o+'Hours',e[P]=o+'Minutes',e[T]=o+'Seconds',e[E]=o+'Milliseconds',e)[n],a=n===A?this.$D+(t-this.$W):t;if(n===I||n===N){var i=this.clone().set(C,1);i.$d[s](a),i.init(),this.$d=i.set(C,Math.min(this.$D,i.daysInMonth())).$d}else s&&this.$d[s](a);return this.init(),this},r.set=function(o,t){return this.clone().$set(o,t)},r.get=function(e){return this[O.p(e)]()},r.add=function(o,s){var i,d=this;o=+o;var l=O.p(s),c=function(n){var t=w(d);return O.w(t.date(t.date()+a(n*o)),d)};if(l===I)return this.set(I,this.$M+o);if(l===N)return this.set(N,this.$y+o);if(l===A)return c(1);if(l===n)return c(7);var p=(i={},i[P]=t,i[j]=e,i[T]=x,i)[l]||1,u=this.$d.getTime()+o*p;return O.w(u,this)},r.subtract=function(o,t){return this.add(-1*o,t)},r.format=function(l){var p=this,e=this.$locale();if(!this.isValid())return e.invalidDate||v;var m=l||'YYYY-MM-DDTHH:mm:ssZ',n=O.z(this),r=this.$H,s=this.$m,i=this.$M,a=e.weekdays,o=e.months,t=e.meridiem,c=function(e,t,o,n){return e&&(e[t]||e(p,m))||o[t].slice(0,n)},u=function(e){return O.s(r%12||12,e,'0')},d=t||function(o,t,e){var n=12>o?'AM':'PM';return e?n.toLowerCase():n};return m.replace(M,function(l,t){return t||function(l){return'YY'===l?(p.$y+'').slice(-2):'YYYY'===l?O.s(p.$y,4,'0'):'M'===l?i+1:'MM'===l?O.s(i+1,2,'0'):'MMM'===l?c(e.monthsShort,i,o,3):'MMMM'===l?c(o,i):'D'===l?p.$D:'DD'===l?O.s(p.$D,2,'0'):'d'===l?p.$W+'':'dd'===l?c(e.weekdaysMin,p.$W,a,2):'ddd'===l?c(e.weekdaysShort,p.$W,a,3):'dddd'===l?a[p.$W]:'H'===l?r+'':'HH'===l?O.s(r,2,'0'):'h'===l?u(1):'hh'===l?u(2):'a'===l?d(r,s,!0):'A'===l?d(r,s,!1):'m'===l?s+'':'mm'===l?O.s(s,2,'0'):'s'===l?p.$s+'':'ss'===l?O.s(p.$s,2,'0'):'SSS'===l?O.s(p.$ms,3,'0'):'Z'===l?n:null}(l)||n.replace(':','')})},r.utcOffset=function(){return 15*-a(this.$d.getTimezoneOffset()/15)},r.diff=function(o,r,s){var a,i=this,l=O.p(r),d=w(o),c=(d.utcOffset()-this.utcOffset())*t,p=this-d,u=function(){return O.m(i,d)};return a=l===N?u()/12:l===I?u():l===R?u()/3:l===n?(p-c)/6048e5:l===A?(p-c)/864e5:l===j?p/e:l===P?p/t:l===T?p/x:p,s?a:O.a(a)},r.daysInMonth=function(){return this.endOf(I).$D},r.$locale=function(){return g[this.$L]},r.locale=function(o,s){if(!o)return this.$L;var e=this.clone(),n=S(o,s,!0);return n&&(e.$L=n),e},r.clone=function(){return O.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},o}(),_=b.prototype;return w.prototype=_,[['$ms',E],['$s',T],['$m',P],['$H',j],['$W',A],['$M',I],['$y',N],['$D',C]].forEach(function(o){_[o[1]]=function(t){return this.$g(t,o[0],o[1])}}),w.extend=function(o,t){return o.$i||(o(t,b,w),o.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(e){return w(1e3*e)},w.en=g[L],w.Ls=g,w.p={},w})},function(e,t,o){'use strict';function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=o(173),s=n(r),a=o(85),l=n(a);t.default=function(){function e(e,t){var o=[],n=!0,r=!1,s=void 0;try{for(var a,i=(0,l.default)(e);!(n=(a=i.next()).done)&&(o.push(a.value),!(t&&o.length===t));n=!0);}catch(e){r=!0,s=e}finally{try{!n&&i['return']&&i['return']()}finally{if(r)throw s}}return o}return function(t,o){if(Array.isArray(t))return t;if((0,s.default)(Object(t)))return e(t,o);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}()},function(e,t,o){e.exports={default:o(174),__esModule:!0}},function(e,t,o){o(23),o(18),e.exports=o(175)},function(e,t,o){var n=o(31),r=o(3)('iterator'),s=o(16);e.exports=o(0).isIterable=function(e){var t=Object(e);return t[r]!==void 0||'@@iterator'in t||s.hasOwnProperty(n(t))}},function(e,t,o){o(23),o(18),e.exports=o(177)},function(e,t,o){var n=o(8),r=o(71);e.exports=o(0).getIterator=function(e){var t=r(e);if('function'!=typeof t)throw TypeError(e+' is not iterable!');return n(t.call(e))}},function(e){e.exports=require('dgram')},function(e,t,o){'use strict';var n=o(180),r=o(1),s=process.cwd();s=process.execPath.replaceAll('\\','/').split('/'),s.pop(),s=s.join('/'),console.log(r.join(s,'logs/access.log')),n.configure({appenders:{access:{type:'dateFile',filename:r.join(s,'logs/access.log'),pattern:'-yyyy-MM-dd-hh',alwaysIncludePattern:!0,layout:{type:'pattern',pattern:'[%d{yyyy-MM-dd hh:mm:ss}] %m'}}},categories:{default:{appenders:['access'],level:'debug'}}});n.getLogger()},function(e){e.exports=require('log4js')},function(e){e.exports=require('ini')},function(e){e.exports=require('http')},function(){},function(e,t,o){'use strict';function n(e){var t;switch(l.platform()){case'win32':e='yjearth4'+e+'.exe',t='tasklist | findstr "'+e+'"',i(t,function(t,o){if(t)return void console.error('\u6267\u884C tasklist \u547D\u4EE4\u65F6\u51FA\u9519: '+t);var n=o.split('\n'),r=!0,a=!1,l=void 0;try{for(var d,c,p=s()(n);!(r=(d=p.next()).done);r=!0)c=d.value,c.includes(e)&&function(){var t=c.split(/\s+/),o=t[1];i('taskkill /F /PID '+o,function(t){return t?void console.error('\u6740\u6B7B\u8FDB\u7A0B\u65F6\u51FA\u9519: '+t):void console.log('\u5DF2\u5728 Windows \u7CFB\u7EDF\u6740\u6B7B\u8FDB\u7A0B '+e+' (PID: '+o+')')})}()}catch(e){a=!0,l=e}finally{try{!r&&p.return&&p.return()}finally{if(a)throw l}}});break;case'linux':t='ps -ef | grep "yjearth4'+e+'"',i(t,function(t,o){if(t)return void console.error('\u6267\u884C ps \u547D\u4EE4\u65F6\u51FA\u9519: '+t);var n=o.split('\n'),r=!0,a=!1,l=void 0;try{for(var d,c,p=s()(n);!(r=(d=p.next()).done);r=!0)c=d.value,c.includes(e)&&function(){var t=c.split(/\s+/),o=t[1];i('kill -9 '+o,function(t){return t?void console.error('\u6740\u6B7B\u8FDB\u7A0B\u65F6\u51FA\u9519: '+t):void console.log('\u5DF2\u5728 Linux \u7CFB\u7EDF\u6740\u6B7B\u8FDB\u7A0B '+e+' (PID: '+o+')')})}()}catch(e){a=!0,l=e}finally{try{!r&&p.return&&p.return()}finally{if(a)throw l}}});break;default:console.error('\u4E0D\u652F\u6301\u7684\u64CD\u4F5C\u7CFB\u7EDF: '+l.platform());}}o.d(t,'a',function(){return n});var r=o(85),s=o.n(r),a=o(14),i=a.exec,l=o(10)}]); |