!function(){"use strict";var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function j(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function L(n){if(n.__esModule)return n;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(n).forEach(function(t){var e=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(r,t,e.get?e:{enumerable:!0,get:function(){return n[t]}})}),r}function U(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function M(t){return t&&t.Math==Math&&t}function F(t){try{return!!t()}catch(t){return!0}}function V(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function G(t){return Ht.call(t).slice(8,-1)}function J(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function H(t){return Wt(Zt(t))}function K(t){return"object"==typeof t?null!==t:"function"==typeof t}function Y(t){return"function"==typeof t?t:void 0}function W(t,e){return arguments.length<2?Y(qt[t])||Y(Xt[t]):qt[t]&&qt[t][e]||Xt[t]&&Xt[t][e]}function Z(t){return Object(ae(t))}function q(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ce+le).toString(36)}function X(t){return he(de,t)&&(pe||"string"==typeof de[t])||(pe&&he(ge,t)?de[t]=ge[t]:de[t]=Ae("Symbol."+t)),de[t]}function $(t){return t=Ie(t,"string"),be(t)?t:String(t)}function z(t){return Ee?_e.createElement(t):{}}function tt(t,e){return(t=Pe[Qe(t)])==Le||t!=je&&("function"==typeof e?Ne(e):!!e)}function et(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}function nt(r,i,t){if(Ue(r),void 0===i)return r;switch(t){case 0:return function(){return r.call(i)};case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}}function rt(t){if(Me(t))return t;throw TypeError(String(t)+" is not an object")}function it(r){function t(t,e,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return r.apply(this,arguments)}return t.prototype=r.prototype,t}function ot(t,e){var n,r,i,o,a,s=t.target,u=t.global,c=t.stat,l=t.proto,f=u?Ye:c?Ye[s]:(Ye[s]||{}).prototype,h=u?qe:qe[s]||$e(qe,s,{})[s],p=h.prototype;for(n in e)o=!Ze(u?n:s+(c?".":"#")+n,t.forced)&&f&&ze(f,n),i=h[n],o&&(a=t.noTargetGet?(a=We(f,n))&&a.value:f[n]),r=o&&a?a:e[n],o&&typeof i==typeof r||(o=t.bind&&o?Xe(r,Ye):t.wrap&&o?it(r):l&&"function"==typeof r?Xe(Function.call,r):r,(t.sham||r&&r.sham||i&&i.sham)&&$e(o,"sham",!0),$e(h,n,o),l&&(ze(qe,i=s+"Prototype")||$e(qe,i,{}),$e(qe[i],n,r),t.real&&p&&!p[n]&&$e(p,n,r)))}function at(t){return en[t]||(en[t]=tn(t))}function st(t){return isNaN(t=+t)?0:(0i;)!bn(r,n=e[i++])||~En(o,n)||o.push(n);return o}function ht(){}function pt(t){t.write(Vn("")),t.close();var e=t.parentWindow.Object;return t=null,e}function dt(t){return void 0!==t&&(Hn.Array===t||Yn[Kn]===t)}function gt(t){if(null!=t)return t[tr]||t["@@iterator"]||zn[$n(t)]}function At(t,e){if("function"!=typeof(e=arguments.length<2?nr(t):e))throw TypeError(String(t)+" is not iterable");return er(e.call(t))}function yt(t,e,n){var r,i;rr(t);try{if(void 0===(r=t.return)){if("throw"===e)throw n;return n}r=r.call(t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return rr(r),n}function vt(t,e){this.stopped=t,this.result=e}function mt(t,e,n){function r(t){return o&&lr(o,"normal",t),new vt(!0,t)}function i(t){return h?(ir(t),d?g(t[0],t[1],r):g(t[0],t[1])):d?g(t,r):g(t)}var o,a,s,u,c,l,f=n&&n.that,h=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),g=sr(e,f,1+h+d);if(p)o=t;else{if("function"!=typeof(n=cr(t)))throw TypeError("Target is not iterable");if(or(n)){for(a=0,s=ar(t.length);a"+t+""},Gn=function(){try{Tt=new ActiveXObject("htmlfile")}catch(t){}Gn="undefined"==typeof document||document.domain&&Tt?pt(Tt):(t=Ln("iframe"),e="java"+Mn+":",t.style.display="none",jn.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(Vn("document.F=Object")),e.close(),e.F);for(var t,e,n=Qn.length;n--;)delete Gn[Un][Qn[n]];return Gn()},Pn=(Pn[Fn]=!0,Object.create||function(t,e){var n;return null!==t?(ht[Un]=Nn(t),n=new ht,ht[Un]=null,n[Fn]=t):n=Gn(),void 0===e?n:Rn(n,e)}),Jn={},Hn=Jn,Kn=X("iterator"),Yn=Array.prototype,h={},h=(h[X("toStringTag")]="z","[object z]"===String(h)),Wn=h,Zn=G,qn=X("toStringTag"),Xn="Arguments"==Zn(function(){return arguments}()),Wn=Wn?Zn:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=Object(t),qn))?e:Xn?Zn(t):"Object"==(e=Zn(t))&&"function"==typeof t.callee?"Arguments":e},$n=Wn,zn=Jn,tr=X("iterator"),er=rt,nr=gt,rr=rt,ir=rt,or=dt,ar=ut,sr=nt,ur=At,cr=gt,lr=yt,fr=ne,p=ot,hr=on,pr=u,d=Pn,dr=fe,gr=V,Ar=mt,yr=wt,d=(It.prototype=d(Error.prototype,{constructor:gr(5,It),message:gr(5,""),name:gr(5,"AggregateError")}),p({global:!0},{AggregateError:It}),i),vr=Function.toString,gr=("function"!=typeof d.inspectSource&&(d.inspectSource=function(t){return vr.call(t)}),d.inspectSource),p=gr,d=t.WeakMap,p="function"==typeof d&&/native code/.test(p(d)),mr=K,wr=fe,Ir=o,d=i,i=at,g=c,br="Object already initialized",_r=t.WeakMap,p=(Qt=p||d.state?(Bt=d.state||(d.state=new _r),xt=Bt.get,Ot=Bt.has,Dt=Bt.set,Nt=function(t,e){if(Ot.call(Bt,t))throw new TypeError(br);return e.facade=t,Dt.call(Bt,t,e),e},Rt=function(t){return xt.call(Bt,t)||{}},function(t){return Ot.call(Bt,t)}):(g[Pt=i("state")]=!0,Nt=function(t,e){if(Ir(t,Pt))throw new TypeError(br);return e.facade=t,wr(t,Pt,e),e},Rt=function(t){return Ir(t,Pt)?t[Pt]:{}},function(t){return Ir(t,Pt)}),{set:Nt,get:Rt,has:Qt,enforce:function(t){return Qt(t)?Rt(t):Nt(t,{})},getterFor:function(e){return function(t){if(mr(t)&&(t=Rt(t)).type===e)return t;throw TypeError("Incompatible receiver, "+e+" required")}}}),d=F,_r=on,g=fe,i=o,Er=X("iterator"),A=!1,Cr=([].keys&&("next"in(Cr=[].keys())?(_r=_r(_r(Cr)))!==Object.prototype&&(jt=_r):A=!0),null==jt||d(function(){var t={};return jt[Er].call(t)!==t})),_r=(Cr&&(jt={}),Cr&&!i(jt,Er)&&g(jt,Er,function(){return this}),{IteratorPrototype:jt,BUGGY_SAFARI_ITERATORS:A}),kr=Wn,Sr=h,Tr=s.f,Br=fe,xr=o,Or=h?{}.toString:function(){return"[object "+kr(this)+"]"},Dr=X("toStringTag"),Nr=_r.IteratorPrototype,Rr=Pn,Qr=V,Pr=bt,jr=Jn,Lr=fe,Ur=ot,Mr=Et,Fr=on,Vr=bt,Gr=fe,Jr=Ct,d=X,Hr=Jn,Kr=_r.IteratorPrototype,Yr=_r.BUGGY_SAFARI_ITERATORS,Wr=d("iterator"),Zr="values",qr="entries",Xr=H,Cr=Jn,i=p,g=St,$r="Array Iterator",zr=i.set,ti=i.getterFor($r);g(Array,"Array",function(t,e){zr(this,{type:$r,target:Xr(t),index:0,kind:e})},function(){var t=ti(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Cr.Arguments=Cr.Array;function ei(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:ii(t,r,e[r],n);return t}function ni(t){var t=oi(t),e=ai.f;si&&t&&!t[ui]&&e(t,ui,{configurable:!0,get:function(){return this}})}function ri(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}var A=t.Promise,ii=Ct,oi=W,ai=s,si=Mt,ui=X("species"),ci=X("iterator"),li=!1;try{var fi=0,hi={next:function(){return{done:!!fi++}},return:function(){li=!0}};hi[ci]=function(){return this},Array.from(hi,function(){throw 2})}catch(t){}function pi(t,e){if(!e&&!li)return!1;var n=!1;try{var r={};r[ci]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}function di(t,e){return void 0===(t=yi(t).constructor)||null==(t=yi(t)[mi])?e:vi(t)}var gi,Ai,yi=rt,vi=et,mi=X("species"),h=/(?:ipad|iphone|ipod).*applewebkit/i.test($t),_r="process"==G(t.process),wi=t,d=F,i=nt,Ii=f,bi=z,g=h,Cr=_r,hi=wi.setImmediate,f=wi.clearImmediate,_i=wi.process,Ei=wi.MessageChannel,Ci=wi.Dispatch,ki=0,Si={},Ti="onreadystatechange";try{gi=wi.location}catch(t){}function Bi(t){return function(){Ki(t)}}function xi(t){Ki(t.data)}function Oi(t){wi.postMessage(String(t),gi.protocol+"//"+gi.host)}function Di(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=Xi(n),this.reject=Xi(r)}function Ni(t,e){return $i(t),zi(e)&&e.constructor===t?e:((0,(t=to.f(t)).resolve)(e),t.promise)}function Ri(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}var Qi,Pi,ji,Li,Ui,Mi,Fi,Vi,Gi,Ji,Hi,Ki=function(t){var e;Si.hasOwnProperty(t)&&(e=Si[t],delete Si[t],e())},Ei=(hi&&f||(hi=function(t){for(var e=[],n=arguments.length,r=1;rn;){var i,o,a,s=d[n++],u=e?s.ok:s.fail,c=s.resolve,l=s.reject,f=s.domain;try{u?(e||(h.rejection===Uo&&function(e){fo.call(no,function(){var t=e.facade;if(vo)Bo.emit("rejectionHandled",t);else Vo(Qo,t,e.value)})}(h),h.rejection=Lo),!0===u?i=t:(f&&f.enter(),i=u(t),f&&(f.exit(),a=!0)),i===s.promise?l(So("Promise-chain cycle")):(o=Mo(i))?o.call(i,c,l):c(i)):l(t)}catch(t){f&&!a&&f.exit(),l(t)}}h.reactions=[],h.notified=!1,p&&!h.rejection&&(r=h,fo.call(no,function(){var t=r.facade,e=r.value,n=Go(r);if(n&&(n=Ao(function(){vo?Bo.emit("unhandledRejection",e,t):Vo(Ro,t,e)}),r.rejection=vo||Go(r)?Uo:Lo,n.error))throw n.value}))}))},Vo=function(t,e,n){var r;Do?((r=To.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),no.dispatchEvent(r)):r={promise:e,reason:n},!No&&(e=no["on"+t])?e(r):t===Ro&&go("Unhandled promise rejection",n)},Go=function(t){return t.rejection!==Lo&&!t.parent},Jo=function(e,n,r){return function(t){e(n,t,r)}},Ho=function(t,e,n){t.done||(t.done=!0,(t=n?n:t).value=e,t.state=jo,Fo(t,!0))},Ko=function(n,t,e){if(!n.done){n.done=!0,e&&(n=e);try{if(n.facade===t)throw So("Promise can't be resolved itself");var r=Mo(t);r?ho(function(){var e={done:!1};try{r.call(t,Jo(Ko,e,n),Jo(Ho,e,n))}catch(t){Ho(e,t,n)}}):(n.value=t,n.state=Po,Fo(n,!1))}catch(t){Ho({done:!1},t,n)}}};hi&&(ko=(Co=function(t){so(this,Co,Io),ao(t),Gi.call(this);var e=bo(this);try{t(Jo(Ko,e),Jo(Ho,e))}catch(t){Ho(e,t)}}).prototype,(Gi=function(t){_o(this,{type:Io,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(ko,{then:function(t,e){var n=Eo(this),r=xo(lo(this,Co));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=vo?Bo.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Fo(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Ji=function(){var t=new Gi,e=bo(t);this.promise=t,this.resolve=Jo(Ko,e),this.reject=Jo(Ho,e)},Ei.f=xo=function(t){return t===Co||t===Hi?new Ji:Oo(t)}),g({global:!0,wrap:!0,forced:hi},{Promise:Co}),ro(Co,Io,!1,!0),io(Io),Hi=i(Io),g({target:Io,stat:!0,forced:hi},{reject:function(t){var e=xo(this);return e.reject.call(void 0,t),e.promise}}),g({target:Io,stat:!0,forced:!0},{resolve:function(t){return po(this===Hi?Co:this,t)}}),g({target:Io,stat:!0,forced:h},{all:function(t){var s=this,e=xo(s),u=e.resolve,c=e.reject,n=Ao(function(){var r=ao(s.resolve),i=[],o=0,a=1;co(t,function(t){var e=o++,n=!1;i.push(void 0),a++,r.call(s,t).then(function(t){n||(n=!0,i[e]=t,--a||u(i))},c)}),--a||u(i)});return n.error&&c(n.value),e.promise},race:function(t){var n=this,r=xo(n),i=r.reject,e=Ao(function(){var e=ao(n.resolve);co(t,function(t){e.call(n,t).then(r.resolve,i)})});return e.error&&i(e.value),r.promise}});var Yo=et,Wo=Cr,Zo=Ri,qo=mt;ot({target:"Promise",stat:!0},{allSettled:function(t){var s=this,e=Wo.f(s),u=e.resolve,n=e.reject,r=Zo(function(){var r=Yo(s.resolve),i=[],o=0,a=1;qo(t,function(t){var e=o++,n=!1;i.push(void 0),a++,r.call(s,t).then(function(t){n||(n=!0,i[e]={status:"fulfilled",value:t},--a||u(i))},function(t){n||(n=!0,i[e]={status:"rejected",reason:t},--a||u(i))})}),--a||u(i)});return r.error&&n(r.value),e.promise}});var Xo=et,$o=W,zo=Cr,ta=Ri,ea=mt,na="No one promise resolved";ot({target:"Promise",stat:!0},{any:function(t){var u=this,e=zo.f(u),c=e.resolve,l=e.reject,n=ta(function(){var r=Xo(u.resolve),i=[],o=0,a=1,s=!1;ea(t,function(t){var e=o++,n=!1;i.push(void 0),a++,r.call(u,t).then(function(t){n||s||(s=!0,c(t))},function(t){n||s||(n=!0,i[e]=t,--a||l(new($o("AggregateError"))(i,na)))})}),--a||l(new($o("AggregateError"))(i,na))});return n.error&&l(n.value),e.promise}});function ra(i){return function(t,e){var n,t=ca(la(t)),e=ua(e),r=t.length;return e<0||r<=e?i?"":void 0:(n=t.charCodeAt(e))<55296||56319=e.length?{value:void 0,done:!0}:(e=fa(e,n),t.index+=e.length,{value:e,done:!1})});var Aa,d=Jt.Promise,Ei={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ya=t,va=Wn,ma=fe,wa=Jn,Ia=X("toStringTag");for(Aa in Ei){var ba=ya[Aa],ba=ba&&ba.prototype;ba&&va(ba)!==Ia&&ma(ba,Ia,Aa),wa[Aa]=wa.Array}var _a,ro=d,Ea=Cr,Ca=Ri;function ka(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):_a.resolve(u).then(r,i)}ot({target:"Promise",stat:!0},{try:function(t){var e=Ea.f(this),t=Ca(t);return(t.error?e.reject:e.resolve)(t.value),e.promise}}),_a=ro,(io=Lt).exports=function(s){return function(){var t=this,a=arguments;return new _a(function(e,n){var r=s.apply(t,a);function i(t){ka(r,e,n,i,o,"next",t)}function o(t){ka(r,e,n,i,o,"throw",t)}i(void 0)})}},io.exports.default=io.exports,io.exports.__esModule=!0;var Sa=j(Lt.exports),i={exports:{}},Ta=((hi=i).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},hi.exports.default=hi.exports,hi.exports.__esModule=!0,j(i.exports)),g={exports:{}},h={exports:{}};ot({target:"Object",stat:!0,forced:!Mt,sham:!Mt},{defineProperty:s.f});var Ba=Jt.Object,A=h.exports=function(t,e,n){return Ba.defineProperty(t,e,n)};Ba.defineProperty.sham&&(A.sham=!0);var xa,te=h.exports;function Oa(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function Dl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);na)return r(k.TIMEOUT);var t=i();"boolean"==typeof t?t?n():qc(e,o):t instanceof Wc&&t.then(function(t){return t?n():qc(e,o)}).catch(function(){return qc(e,o)})}()})},createXmlHttp:function(){var t=null;try{t=new XMLHttpRequest}catch(t){return null}return t},createXDomainRequest:function(){var t=null;try{t=new window.XDomainRequest}catch(t){return null}return t},ajax:function(t,o,a,s,u){return new Wc(function(n,r){var e=x.createXDomainRequest();if(e)try{e.open(t,o,!0),e.send(a),e.onload=function(){var t="";try{t=e.responseText||""}catch(t){}n(s?{response:t,headers:{}}:t)}}catch(t){r(vc.xdr_failed_to_send_request)}else{var i=x.createXmlHttp();if(!i)return console.error("The version of browser is too old to support raphael"),void r(k.CONNECTION_FAILED+": "+vc.xhr_not_supported);try{i.open(t,o,!0)}catch(t){return void r(k.CONNECTION_FAILED+": "+vc.xhr_failed_to_open_url)}i.setRequestHeader&&"function"==typeof i.setRequestHeader&&(i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Accept","application/json"),u&&tl(u).forEach(function(t){var e=u[t];i.setRequestHeader(t,e)})),i.send(a),i.onreadystatechange=function(){var e,t;4==i.readyState&&(200!=i.status?r(Nl+S({status:i.status,headers:"function"==typeof i.getAllResponseHeaders?i.getAllResponseHeaders():k.NOT_SUPPORT,body:i.response})):s?(e={},(t=i.getAllResponseHeaders())&&t.split("\r\n").forEach(function(t){Al(t).call(t,": ")&&(t=t.split(": "),e[t[0]]=t[1])}),n({response:i.response,headers:e})):n(i.response))}}})},on:function(e,t,n,r){r=!!r,e.addEventListener?e.addEventListener(t,n,r):e.attachEvent("on"+t,function(t){return n.call(e,t)},r)},getRndInteger:function(t,e){return Math.floor(Math.random()*(e-t))+t},getRndString:function(t,e){e=e||"abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var n="",r=0;r>>32-o,e)}function n(t,e,n,r,i,o,a){return t=s(t,s(s(e&r|n&~r,i),a)),s(t<>>32-o,e)}function r(t,e,n,r,i,o,a){return t=s(t,s(s(e^n^r,i),a)),s(t<>>32-o,e)}function i(t,e,n,r,i,o,a){return t=s(t,s(s(n^(e|~r),i),a)),s(t<>>32-o,e)}function o(t){for(var e="",n="",r=0;r<=3;r++)e+=(n="0"+(n=t>>>8*r&255).toString(16)).substr(n.length-2,2);return e}var a,u,c,l,f=function(t){for(var e,n=t.length,r=n+8,i=16*((r-r%64)/64+1),o=Array(i-1),a=0;a>>29,o}(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n>6|192):e=(e+=String.fromCharCode(r>>12|224))+String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}(t)),h=1732584193,p=4023233417,d=2562383102,g=271733878;for(t=0;t>10,56320|1023&u)))):a+=String.fromCharCode(c)}return a}return""}function h(t,e,n){var r=t,i=l,o=e,t=n;if(!(0>6,i[o++]=128|63&u}else if(u<=65535){if(a<=o+2)break;i[o++]=224|u>>12,i[o++]=128|u>>6&63,i[o++]=128|63&u}else{if(a<=o+3)break;i[o++]=240|u>>18,i[o++]=128|u>>12&63,i[o++]=128|u>>6&63,i[o++]=128|63&u}}return i[o]=0,o-e}function p(t){for(var e=0,n=0;n>2]=e/1e3|0,s[t+4>>2]=e%1e3*1e3|0,0}};r.UTF8ToString=c,r.stringToUTF8=h,r.lengthBytesUTF8=p;var g,A,y,v,m,w,d={a:d};try{WebAssembly.instantiate(r.wasm,d).then(function(t){try{var e=t.instance.exports;g=e.g,A=e.h,y=e.i,v=e.j,m=e.k,w=e.l,e.m,u=e.e,n=u.buffer,s=new Int32Array(n),l=new Uint8Array(n),r._decrypt=g,r._encrypt=y,r._malloc=A,r._free=m,r._edge_get_client_token=v,r.HEAPU8=l,e.f(),o()}catch(t){i(t)}var n}).catch(function(t){i(t)})}catch(t){i(t)}return t.ready}var af=function(){function t(){var e=this;Ta(this,t),this.cryptoIndex=1,sf()?(this.status=k.RUNNING,this.waitingForExcute=[],qc(function(){e.status===k.RUNNING&&(e.status=k.TIMEOUT,e.waitingForExcute.forEach(function(t){return t()}))},T.WASM_INITIAL_TIMEOUT),of().then(function(t){e.status=k.SUCCESS,e.module=t,e.waitingForExcute.forEach(function(t){return t()})}).catch(function(){e.status===k.RUNNING&&(e.status=k.NOT_SUPPORT,e.waitingForExcute.forEach(function(t){return t()}))})):this.status=k.NOT_SUPPORT}return Da(t,[{key:"waitUntilInitEnd",value:function(){var n=this;return new Wc(function(t,e){switch(n.status){case k.RUNNING:n.waitingForExcute.push(function(){return(n.status==k.SUCCESS?t:e)()});break;case k.SUCCESS:t();break;case k.NOT_SUPPORT:case k.TIMEOUT:default:e()}})}},{key:"generateCjByWasm",value:function(t){if(!this.module)throw 15;var e=0,n=0,r=0;try{var i=this.module.lengthBytesUTF8(t),e=this.module._malloc(i+1);if(0==(r=this.module._malloc(1)))throw 16;if(0==e)throw 17;if(this.module.HEAPU8[r]=1,this.module.stringToUTF8(t,e,i+1),0==(n=this.module._edge_get_client_token(e,r)))throw 18;var o=this.module.UTF8ToString(n),a=this.module.HEAPU8[r];if(1!=a)throw a;return o}catch(t){throw t}finally{e&&this.module._free(e),n&&this.module._free(n),r&&this.module._free(r)}}},{key:"encryptOrDecrypt",value:function(u){var c=this,l=1=e.length?(T.strTokenReturned="",k.EMPTY):(T.strTokenReturned=e[T.tempDVPreTokensIndex],x.setLocalStorage(B.DVPreTokensIndex,"".concat(T.tempDVPreTokensIndex+1)),e[T.tempDVPreTokensIndex++])}catch(t){return console.error("Error getting inner DVToken:",t),k.EMPTY}}function lf(e){try{var t=cf();t===k.EMPTY?e.safeSlowCb("",k.EMPTY):(Nf(t),e.safeSlowCb(t,""))}catch(t){console.error("Error in getInnerTokenHandler:",t),e.safeSlowCb("","An error occurred while getting the token")}}function ff(){try{return T.strTokenReturned?T.strTokenReturned:cf()}catch(t){return console.error("Error getting DVToken:",t),k.EMPTY}}function hf(){try{var t=Array.isArray(T.tempDVPreTokens)?T.tempDVPreTokens:x.getFromLocalStorage(B.DVPreTokens).split(",");return Array.isArray(t)&&0Bf&&nf(Tf).call(Tf,0,Tf.length-Bf),x.waituntil(function(){return xf},100,rf).then(function(){xl.iframe&&xl.iframe.set("previousPageReturnedToken",S(Tf))})}function Rf(){if(!Tf||!Array.isArray(Tf)||Tf.length<=0)return"";for(var t=Tf.length-1;0<=t;t--){var e=Tf[t];if(!Df(e))return e.token||""}return""}function Qf(t,e){var n=[][t];return!!n&&Pf(function(){n.call(null,e||function(){throw 1},1)})}var Pf=F,Fs=ot,jf=In.indexOf,Ks=Qf,Lf=[].indexOf,Uf=!!Lf&&1/[1].indexOf(1,-0)<0,_=Ks("indexOf");Fs({target:"Array",proto:!0,forced:Uf||!_},{indexOf:function(t){return Uf?Lf.apply(this,arguments)||0:jf(this,t,1Yf(e)?1:-1}))).length,a=0;a=a.length){try{h.removeChild(d),h.removeChild(p)}catch(t){}return s([c,x.now()-u])}for(var e,n,r=0;rn?r.safeSlowCb("",t):(Nf(e),r.safeSlowCb(e,""))}))}},{key:"handleFastCb",value:function(e){var n=this;if(!e)return this.fastCbStatus=Np.NOT_PASSED_IN,void this.dataCollection.addInfo("v11",10);var t=ff();return t!==k.EMPTY?(this.fastCbStatus=Np.RETURNED_JT,this.dataCollection.addInfo("v11",11),void e(t,"")):T.tempDVCJ?(this.fastCbStatus=Np.RETURNED_CJ,this.dataCollection.addInfo("v11",12),void e(T.tempDVCJ)):void xl.wasm.waitUntilInitEnd().then(function(){var t=If();if(t===k.EMPTY)return n.fastCbStatus=Np.RETURNED_ERR,n.dataCollection.addInfo("v11",14),void e("",k.EXCEPTION);try{T.tempDVCJ=xl.wasm.generateCjByWasm(t),n.fastCbStatus=Np.RETURNED_CJ,n.dataCollection.addInfo("v11",1),e(T.tempDVCJ,"")}catch(t){n.fastCbStatus=Np.RETURNED_ERR,n.dataCollection.addInfo("v11",t),e("",k.EXCEPTION)}}).catch(function(){n.fastCbStatus=Np.RETURNED_ERR,n.dataCollection.addInfo("v11",13),e("",k.NOT_SUPPORT)})}},{key:"initDeviceToken",value:function(t){var n,r=this,e=1s;)void 0!==(n=i(r,e=o[s++]))&&L1(a,e,n);return a}});var U1=Jt.Object.getOwnPropertyDescriptors,M1=et,F1=K,V1=[].slice,G1={},g=Function.bind||function(a){var s=M1(this),u=V1.call(arguments,1),c=function(){var t=u.concat(V1.call(arguments));if(this instanceof c){var e=s,n=t.length,r=t;if(!(n in G1)){for(var i=[],o=0;o"+n:n}},{key:"listenPageVisibilityChange",value:function(){x.on(document,"visibilitychange",function(){"visible"==document.visibilityState?D.eventCenter.addAutoEvent(new yd(id.ZDEN_GoFront,Xp(),$p(),x.now())):D.eventCenter.addAutoEvent(new yd(id.ZDEN_GoBack,Xp(),$p(),x.now()))})}},{key:"listenAutofill",value:function(){function a(t,e){var n=r.getUsefulElementInfo(t,Cd,5);D.eventCenter.addAutoEvent(new Ad(id.ZDEN_Autofill,r.getTargetDescription(t),(t.value||"").length,e,x.now(),n,window.location.href))}var r=this,s=new Rp;x.on(window,"paste",function(t){var e;t&&t.target&&(t={value:(e=t.target).value||"",pasting:!0},s.has(e)&&(t.value=s.get(e).value),s.set(e,t),qc(function(){s.has(e)&&s.set(e,{value:s.get(e).value,pasting:!1})},20))},!0),x.on(window,"beforeinput",function(t){var e;t&&t.target&&(t=t.target,e={value:s.has(t)?s.get(t).value:t.value||"",pasting:!!s.has(t)&&s.get(t).pasting},s.set(t,e))}),x.on(window,"input",function(t){try{if("input"!=t.type.toLowerCase()||!Al(r=["text","password"]).call(r,t.target.type))return}catch(t){return void Bc("autofill detection error -> native params error",t)}var e,n,r=t.target,i=r.value||"";try{if(!s.has(r))return void(!t.inputType&&1 32M",Bc("protocol 7 with over size",t),D.network.postEvent(t)}},{key:"setIntervalCollection",value:(i=Sa(y.mark(function t(e,n,r,i){var o,a,s,u;return y.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=[],a=0;case 2:if(athis.lastConnectTime&&x.now()-this.lastConnectTimeqp.TO_BE_SEND_QUEUE_MAX_VALUE;)this.sendQueue.shift()}},{key:"sendData",value:function(e){var t=this,n=(e.seq=this.sendSeq++,Al(n=this.sendQueue).call(n,e)&&nf(n=this.sendQueue).call(n,O(n=this.sendQueue).call(n,e),1),null);try{n=Kd(e)}catch(t){if(e.postDataType==nd.calCmdUp)throw t;return}this.ackQueue.push(e),e.disconnectTimer=qc(function(){Sc(e.timestamp,nd[e.postDataType],"time is out for waiting ack, disconnect ws"),t.closeConnect()},qp.DISCONNECT_TIMER),this.resetHeartbeatTimer(),kc("send","seq: ",e.seq,", timestamp:",e.timestamp,", data type:",nd[e.postDataType]),this.ws.send(n)}},{key:"sendDataSimply",value:function(t){if(this.sendAble)try{this.resetHeartbeatTimer(),this.ws.send(Kd(t))}catch(t){}}},{key:"entryBackend",value:function(){this.heartbeat_interval_ratio=1,this.reconnectAble=!1}},{key:"entryFrontend",value:function(){this.heartbeat_interval_ratio=0,this.reconnectAble=!0,this.status==jd.disconnected&&this.startConnect()}}]),n}();function Gd(){return(Gd=Sa(y.mark(function t(n){return y.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.arrayBuffer)return t.abrupt("return",n.arrayBuffer());t.next=4;break;case 4:return t.abrupt("return",new Wc(function(t){var e=new FileReader;e.readAsArrayBuffer(n),e.onload=function(){return t(e.result)}}));case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)}(Ss=jd=jd||{})[Ss.notConnectYet=0]="notConnectYet",Ss[Ss.connecting=1]="connecting",Ss[Ss.generatingDvid=2]="generatingDvid",Ss[Ss.waitingBasicInfoAck=3]="waitingBasicInfoAck",Ss[Ss.running=4]="running",Ss[Ss.disconnected=5]="disconnected";var Jd=[],Hd=-1;function Kd(t){var e=t.getPostData(),n=new ArrayBuffer(9+e.length+1),r=new Uint8Array(n),t=(r[0]=t.postDataType,e1(t.seq,4)),t=(r[1]=t[0],r[2]=t[1],r[3]=t[2],r[4]=t[3],e1(n.byteLength-9,4));if(33554432'.concat(Date.now()-6e5," order by event_time desc limit 1"));case 23:if(0<(s=t.sent).length&&"string"==typeof s[0].ud)try{"string"==typeof(a=JSON.parse(s[0].ud).entered_username_hashed)&&(this.lastUserIdForBooking=a)}catch(t){}t.next=29;break;case 27:t.prev=27,t.t1=t.catch(20);case 29:if(t.t2=T.strTokenReturned,t.t2){t.next=34;break}return t.next=33,yf(jp.getInstance().getDataCollection);case 33:t.t2=t.sent;case 34:this.preTokenOrLongToken=t.t2;case 35:if("ZDEN_Typing"!=r.event_name&&"ZDEN_Autofill"!=r.event_name&&"ZDEN_Paste"!=r.event_name||(s=x.getURLWithoutQueryString(),Al(s).call(s,this.bookingSignInURL)&&this.eventsCacheForBookingSignInPage.push(r)),n)return D.network.postEvent(e),void 0!==r.getPtt()&&D.db.saveEvent(r),t.abrupt("return");t.next=40;break;case 40:return t.next=42,D.worker.onEvent(r);case 42:if(u=t.sent,(c=r.getScriptStatus()||"")&&e.updateScriptStatus&&e.updateScriptStatus(c),u.need_to_upload&&c)try{delete(l=JSON.parse(c)).dvzd_all_features,e.scriptStatus=S(l)}catch(t){}!u.need_to_upload||e instanceof _d||D.network.postEvent(e),u.need_to_save&&D.db.saveEvent(r),e instanceof cd&&"buttonClick_next_signInUserName"==e.eventName&&l&&(this.lastBookingNextScriptStatusFromMemory=l);case 49:case"end":return t.stop()}},t,this,[[9,16],[20,27]])})),function(t,e){return i.apply(this,arguments)})},{key:"handleFlushEvents",value:(r=Sa(y.mark(function t(e,n){var r,i,o,a,s,u,c;return y.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=x.getURLWithoutQueryString(),i=e.scriptStatus,i=void 0===i?"":i,"string"==typeof qp.FLUSH_CONFIG)try{o=JSON.parse(qp.FLUSH_CONFIG)}catch(t){console.error("Failed to parse FLUSH_CONFIG:",t),o={}}else o=qp.FLUSH_CONFIG;if(i){t.next=5;break}return t.abrupt("return");case 5:t.prev=5,a=JSON.parse(i),t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(5),console.error("Failed to parse scriptStatus:",t.t0),t.abrupt("return");case 13:if(s=a.dvzd_all_features){t.next=16;break}return t.abrupt("return");case 16:if(!Array.isArray(s)||s.length<3)return t.abrupt("return");t.next=18;break;case 18:if(r&&o&&o[r]){t.next=20;break}return t.abrupt("return");case 20:if(o[r]!==s[1])return t.abrupt("return");t.next=24;break;case 24:if(t.t1=T.strTokenReturned,t.t1){t.next=29;break}return t.next=28,yf(jp.getInstance().getDataCollection);case 28:t.t1=t.sent;case 29:u=t.t1,c=x.toSafeBase64(S(s)),n.push(u+"ROSIVATAD"+c);case 32:case"end":return t.stop()}},t,null,[[5,9]])})),function(t,e){return r.apply(this,arguments)})},{key:"resetConfig",value:function(t){if("ht"in t&&"object"==E(t.ht)&&("conn"in t.ht&&"number"==typeof t.ht.conn&&(qp.DISCONNECT_TIMER=t.ht.conn),"send"in t.ht&&"number"==typeof t.ht.send&&(qp.HEART_BEAT_INTERVAL=t.ht.send)),"sw"in t&&"object"==E(t.sw)){for(var e in t.sw)lg[e]=t.sw[e];Tc("update switch",lg)}"manblk"in t&&Array.isArray(t.manblk)&&(this.manblk=t.manblk||[]),"flush_config"in t&&"object"==E(t.flush_config)&&(qp.FLUSH_CONFIG=t.flush_config)}},{key:"flush",value:function(){var t=this.resultFlushForBooking;return this.resultFlushForBooking="",t}}]),n}(),lg=(0,{man:1,ZDEN_Onload:1,ZDEN_BeforeUnload:1,ZDEN_PageJumpManual:1,ZDEN_PageJumpH5:1,ZDEN_Click:1,ZDEN_TouchMove:1,ZDEN_Typing:1,ZDEN_Paste:1,ZDEN_Resize:1,ZDEN_NetworkRequest:0,ZDEN_BatteryChange:1,ZDEN_GoBack:1,ZDEN_GoFront:1,ZDEN_Autofill:1,ZDEN_Inner:1,ZDEN_Focus:1,ZDEN_Blur:1}),In=F,fg=X("iterator"),A=!In(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),n=t.searchParams,r="";return t.pathname="c%20d",n.forEach(function(t,e){n.delete("b"),r+=e+t}),!t.toJSON||!n.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[fg]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}),hg=Mt,Fs=F,pg=Bn,dg=v,gg=Ft,Ag=Z,yg=Vt,vg=Object.assign,mg=Object.defineProperty,Ks=!vg||Fs(function(){if(hg&&1!==vg({b:1},vg(mg({},"a",{enumerable:!0,get:function(){mg(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=vg({},t)[n]||pg(vg({},e)).join("")!=r})?function(t,e){for(var n=Ag(t),r=arguments.length,i=1,o=dg.f,a=gg.f;i>1,t+=Og(t/e);xg*_g>>1t.key){r.splice(e,0,t);break}e===o&&r.push(t)}n.updateURL()},forEach:function(t){for(var e,n=zg(this).entries,r=Lg(t,1Og((wg-o)/f))throw RangeError(Bg);for(o+=(c-i)*f,i=c,l=0;lwg)throw RangeError(Bg);if(e==i){for(var h=o,p=Ig;;p+=Ig){var d=p<=a?bg:a+_g<=p?_g:p-a;if(h?@[\\\]^|]/,RA=/[\0\t\n\r #/:<>?@[\\\]^|]/,QA=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,PA=/[\t\n\r]/g,jA=function(t,e){var n,r,i;if("["==e.charAt(0))return"]"==e.charAt(e.length-1)&&(n=function(t){var e=[0,0,0,0,0,0,0,0],n=0,r=null,i=0,o,a,s,u,c,l,f,h=function(){return t.charAt(i)};if(h()==":"){if(t.charAt(1)!=":")return;i+=2;n++;r=n}while(h()){if(n==8)return;if(h()==":"){if(r!==null)return;i++;n++;r=n;continue}o=a=0;while(a<4&&DA.test(h())){o=o*16+parseInt(h(),16);i++;a++}if(h()=="."){if(a==0)return;i-=a;if(n>6)return;s=0;while(h()){u=null;if(s>0)if(h()=="."&&s<4)i++;else return;if(!TA.test(h()))return;while(TA.test(h())){c=parseInt(h(),10);if(u===null)u=c;else if(u==0)return;else u=u*10+c;if(u>255)return;i++}e[n]=e[n]*256+u;s++;if(s==2||s==4)n++}if(s!=4)return;break}else if(h()==":"){i++;if(!h())return}else if(h())return;e[n++]=o}if(r!==null){l=n-r;n=7;while(n!=0&&l>0){f=e[n];e[n--]=e[r+l-1];e[r+--l]=f}}else if(n!=8)return;return e}(e.slice(1,-1)))?void(t.host=n):EA;if(HA(t))return e=pA(e),NA.test(e)||null===(n=function(t){var e=t.split("."),n,r,i,o,a,s,u;if(e.length&&e[e.length-1]=="")e.pop();if((n=e.length)>4)return t;for(r=[],i=0;i1&&o.charAt(0)=="0"){a=BA.test(o)?16:8;o=o.slice(a==8?1:2)}if(o==="")s=0;else{if(!(a==10?OA:a==8?xA:DA).test(o))return t;s=parseInt(o,a)}r.push(s)}for(i=0;i=IA(256,5-n))return null}else if(s>255)return null}for(u=r.pop(),i=0;i":1,"`":1}),FA=fe({},MA,{"#":1,"?":1,"{":1,"}":1}),VA=fe({},FA,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),GA=function(t,e){var n=hA(t,0);return 32i&&!o.warned&&(o.warned=!0,(r=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",r.emitter=t,r.type=e,r.count=o.length,n=r,console&&console.warn&&console.warn(n))),t}function ey(t,e,n){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=n,t.wrapFn=e}function ny(t,e,n){t=t._events;if(void 0===t)return[];t=t[e];{if(void 0===t)return[];if("function"==typeof t)return n?[t.listener||t]:[t];if(n){for(var r=t,i=new Array(r.length),o=0;o"}},b2=/[\n\r\u2028\u2029]/g,e={exports:{}};function _2(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}e.exports=_2,e.exports.default=_2;function E2(t){var e,a,i,s,u,n,r,o,c,l,f,h,p=rw(arguments[1]);return p.normalizer||0!==(e=p.length=iw(p.length,t.length,p.async))&&(p.primitive?!1===e?p.normalizer=Xv:1=r)throw new TypeError}for(;nr.stackCounter)&&(w(t,"__minimumStackCounter__",{value:r.stackCounter,configurable:!0}),n.unshift(r.stack));n.unshift(t.stack);e=function(t){for(var e=t.split("\n"),n=[],r=0;r>16),s((65280&n)>>8),s(255&n);return 2==r?s(255&(n=c(t.charAt(e))<<2|c(t.charAt(e+1))>>4)):1==r&&(s((n=c(t.charAt(e))<<10|c(t.charAt(e+1))<<4|c(t.charAt(e+2))>>2)>>8&255),s(255&n)),i},l.fromByteArray=function(t){var e,n,r,i,o=t.length%3,a="";function s(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,r=t.length-o;e>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a=(a+=s((n=t[t.length-1])>>2))+s(n<<4&63)+"==";break;case 2:a=(a=(a+=s((n=(t[t.length-2]<<8)+t[t.length-1])>>10))+s(n>>4&63))+s(n<<2&63)+"="}return a}}.call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(L,t,U){!function(t,e,h,n,r,i,Q,P,j){var u=L("base64-js"),o=L("ieee754");function h(t,e,n){if(!(this instanceof h))return new h(t,e,n);var r,i,o,a,s=typeof t;if("base64"===e&&"string"==s)for(t=(a=t).trim?a.trim():a.replace(/^\s+|\s+$/g,"");t.length%4!=0;)t+="=";if("number"==s)r=E(t);else if("string"==s)r=h.byteLength(t,e);else{if("object"!=s)throw new Error("First argument needs to be a number, array or string.");r=E(t.length)}if(h._useTypedArrays?i=h._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),h._useTypedArrays&&"number"==typeof t.byteLength)i._set(t);else if(C(a=t)||h.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(o=0;o>>0)):(e+1>>0),i}function l(t,e,n,r){if(r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+1>>8*(r?o:1-o)}function y(t,e,n,r,i){i||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+3>>8*(r?o:3-o)&255}function v(t,e,n,r,i){i||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+1>8,r.push(e%256),r.push(n);return r}(t),i,o,a);break;default:throw new Error("Unknown encoding")}return r},h.prototype.toString=function(t,e,n){var r,i,o,a,s=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(n=void 0!==n?Number(n):this.length)===e)return"";switch(t){case"hex":r=function(t,e,n){var r=t.length;(!n||n<0||rthis.length&&(r=this.length);var i=(r=t.length-e=this.length))return this[t]},h.prototype.readUInt16LE=function(t,e){return a(this,t,!0,e)},h.prototype.readUInt16BE=function(t,e){return a(this,t,!1,e)},h.prototype.readUInt32LE=function(t,e){return s(this,t,!0,e)},h.prototype.readUInt32BE=function(t,e){return s(this,t,!1,e)},h.prototype.readInt8=function(t,e){if(e||(R(null!=t,"missing offset"),R(t=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){return l(this,t,!0,e)},h.prototype.readInt16BE=function(t,e){return l(this,t,!1,e)},h.prototype.readInt32LE=function(t,e){return f(this,t,!0,e)},h.prototype.readInt32BE=function(t,e){return f(this,t,!1,e)},h.prototype.readFloatLE=function(t,e){return d(this,t,!0,e)},h.prototype.readFloatBE=function(t,e){return d(this,t,!1,e)},h.prototype.readDoubleLE=function(t,e){return g(this,t,!0,e)},h.prototype.readDoubleBE=function(t,e){return g(this,t,!1,e)},h.prototype.writeUInt8=function(t,e,n){n||(R(null!=t,"missing value"),R(null!=e,"missing offset"),R(e=this.length||(this[e]=t)},h.prototype.writeUInt16LE=function(t,e,n){A(this,t,e,!0,n)},h.prototype.writeUInt16BE=function(t,e,n){A(this,t,e,!1,n)},h.prototype.writeUInt32LE=function(t,e,n){y(this,t,e,!0,n)},h.prototype.writeUInt32BE=function(t,e,n){y(this,t,e,!1,n)},h.prototype.writeInt8=function(t,e,n){n||(R(null!=t,"missing value"),R(null!=e,"missing offset"),R(e=this.length||(0<=t?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},h.prototype.writeInt16LE=function(t,e,n){v(this,t,e,!0,n)},h.prototype.writeInt16BE=function(t,e,n){v(this,t,e,!1,n)},h.prototype.writeInt32LE=function(t,e,n){m(this,t,e,!0,n)},h.prototype.writeInt32BE=function(t,e,n){m(this,t,e,!1,n)},h.prototype.writeFloatLE=function(t,e,n){w(this,t,e,!0,n)},h.prototype.writeFloatBE=function(t,e,n){w(this,t,e,!1,n)},h.prototype.writeDoubleLE=function(t,e,n){I(this,t,e,!0,n)},h.prototype.writeDoubleBE=function(t,e,n){I(this,t,e,!1,n)},h.prototype.fill=function(t,e,n){if(e=e||0,n=n||this.length,R("number"==typeof(t="string"==typeof(t=t||0)?t.charCodeAt(0):t)&&!isNaN(t),"value is not a number"),R(e<=n,"end < start"),n!==e&&0!==this.length){R(0<=e&&e"},h.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(h._useTypedArrays)return new h(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e=e.length||i>=t.length);i++)e[i+n]=t[i];return i}function x(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function O(t,e){R("number"==typeof t,"cannot write a non-number as a number"),R(0<=t,"specified a negative value for writing an unsigned value"),R(t<=e,"value is larger than maximum value for type"),R(Math.floor(t)===t,"value has a fractional component")}function D(t,e,n){R("number"==typeof t,"cannot write a non-number as a number"),R(t<=e,"value larger than maximum allowed value"),R(n<=t,"value smaller than minimum allowed value"),R(Math.floor(t)===t,"value has a fractional component")}function N(t,e,n){R("number"==typeof t,"cannot write a non-number as a number"),R(t<=e,"value larger than maximum allowed value"),R(n<=t,"value smaller than minimum allowed value")}function R(t,e){if(!t)throw new Error(e||"Failed assertion")}h._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=b.get,t.set=b.set,t.write=b.write,t.toString=b.toString,t.toLocaleString=b.toString,t.toJSON=b.toJSON,t.copy=b.copy,t.slice=b.slice,t.readUInt8=b.readUInt8,t.readUInt16LE=b.readUInt16LE,t.readUInt16BE=b.readUInt16BE,t.readUInt32LE=b.readUInt32LE,t.readUInt32BE=b.readUInt32BE,t.readInt8=b.readInt8,t.readInt16LE=b.readInt16LE,t.readInt16BE=b.readInt16BE,t.readInt32LE=b.readInt32LE,t.readInt32BE=b.readInt32BE,t.readFloatLE=b.readFloatLE,t.readFloatBE=b.readFloatBE,t.readDoubleLE=b.readDoubleLE,t.readDoubleBE=b.readDoubleBE,t.writeUInt8=b.writeUInt8,t.writeUInt16LE=b.writeUInt16LE,t.writeUInt16BE=b.writeUInt16BE,t.writeUInt32LE=b.writeUInt32LE,t.writeUInt32BE=b.writeUInt32BE,t.writeInt8=b.writeInt8,t.writeInt16LE=b.writeInt16LE,t.writeInt16BE=b.writeInt16BE,t.writeInt32LE=b.writeInt32LE,t.writeInt32BE=b.writeInt32BE,t.writeFloatLE=b.writeFloatLE,t.writeFloatBE=b.writeFloatBE,t.writeDoubleLE=b.writeDoubleLE,t.writeDoubleBE=b.writeDoubleBE,t.fill=b.fill,t.inspect=b.inspect,t.toArrayBuffer=b.toArrayBuffer,t}}.call(this,L("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},L("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(l,f,t){!function(t,e,u,n,r,i,o,a,s){u=l("buffer").Buffer;var c=new u(4);c.fill(0),f.exports={hash:function(t,e,n,r){for(var i=e(function(t,e){var n;t.length%4!=0&&(n=t.length+(4-t.length%4),t=u.concat([t,c],n));for(var r=[],i=e?t.readInt32BE:t.readInt32LE,o=0;o>5]|=128<>>9<<4)]=e;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a>>32-i,n)}function h(t,e,n,r,i,o,a){return f(e&n|~e&r,t,e,i,o,a)}function p(t,e,n,r,i,o,a){return f(e&r|n&~r,t,e,i,o,a)}function d(t,e,n,r,i,o,a){return f(e^n^r,t,e,i,o,a)}function g(t,e,n,r,i,o,a){return f(n^(e|~r),t,e,i,o,a)}function A(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}v.exports=function(t){return c.hash(t,l,16)}}.call(this,y("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},y("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(t,c,e){!function(t,e,n,r,i,o,a,s,u){c.exports=function(t){for(var e,n=new Array(t),r=0;r>>((3&r)<<3)&255;return n}}.call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(f,h,t){!function(t,e,n,r,i,o,a,s,u){var c=f("./helpers");function l(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n,r,i,o=Array(80),a=1732584193,s=-271733879,u=-1732584194,c=271733878,l=-1009589776,f=0;f>16)+(e>>16)+(n>>16)<<16|65535&n}function w(t,e){return t<>>32-e}h.exports=function(t){return c.hash(t,l,20,!0)}}.call(this,f("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},f("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(f,h,t){!function(t,e,n,r,i,o,a,s,u){function v(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function m(t,e){return t>>>e|t<<32-e}function c(t,e){var n,r,i,o=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),a=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),s=new Array(64);t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var u=0;u>>10,s[y-7]),m(i=s[y-15],7)^m(i,18)^i>>>3),s[y-16]),n=v(v(v(v(A,m(i=p,6)^m(i,11)^m(i,25)),p&d^~p&g),o[y]),s[y]),r=v(m(r=c,2)^m(r,13)^m(r,22),c&l^c&f^l&f),A=g,g=d,d=p,p=v(h,n),h=f,f=l,l=c,c=v(n,r);a[0]=v(c,a[0]),a[1]=v(l,a[1]),a[2]=v(f,a[2]),a[3]=v(h,a[3]),a[4]=v(p,a[4]),a[5]=v(d,a[5]),a[6]=v(g,a[6]),a[7]=v(A,a[7])}return a}var l=f("./helpers");h.exports=function(t){return l.hash(t,c,32,!0)}}.call(this,f("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},f("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(t,p,e){!function(t,e,n,r,i,o,a,s,u){function c(){}var l,f,h;(t=p.exports={}).nextTick=(f="undefined"!=typeof window&&window.setImmediate,h="undefined"!=typeof window&&window.postMessage&&window.addEventListener,f?function(t){return window.setImmediate(t)}:h?(l=[],window.addEventListener("message",function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),0>1,l=-7,f=n?i-1:0,h=n?-1:1,i=t[e+f];for(f+=h,o=i&(1<<-l)-1,i>>=-l,l+=s;0>=-l,l+=r;0>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(e+=1<=a+l?f/r:f*Math.pow(2,1-l))*r&&(a++,r/=2),c<=a+l?(s=0,a=c):1<=a+l?(s=(e*r-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<i?r(null,e):n(r):r(t)})}}function b_(e,n){var r=0;return function(t){r++>":93,"/":94,DIV:95,MOD:96,"%":97,"^":98,not_opt:99,NOT:100,escape_opt:101,ESCAPE:102,predicate:103,IN:104,BETWEEN:105,AND:106,SOUNDS:107,LIKE:108,REGEXP:109,comparison_operator:110,">=":111,">":112,"<=":113,"<":114,"<>":115,"!=":116,sub_query_data_set_opt:117,ANY:118,boolean_primary:119,IS:120,boolean_extra:121,UNKNOWN:122,"&&":123,"||":124,OR:125,XOR:126,where_opt:127,WHERE:128,group_by_opt:129,group_by:130,roll_up_opt:131,WITH:132,ROLLUP:133,GROUP_BY:134,group_by_order_by_item_list:135,order_by:136,ORDER_BY:137,group_by_order_by_item:138,sort_opt:139,ASC:140,DESC:141,having_opt:142,HAVING:143,limit:144,LIMIT:145,OFFSET:146,procedure_opt:147,procedure:148,PROCEDURE:149,for_update_lock_in_share_mode_opt:150,FOR:151,UPDATE:152,LOCK:153,SHARE:154,MODE:155,FROM:156,table_references:157,partitionOpt:158,escaped_table_reference:159,table_reference:160,OJ:161,join_inner_cross:162,INNER:163,CROSS:164,left_right:165,LEFT:166,RIGHT:167,out_opt:168,OUTER:169,left_right_out_opt:170,join_table:171,JOIN:172,table_factor:173,join_condition:174,on_join_condition:175,NATURAL:176,join_condition_opt:177,ON:178,USING:179,partition_names:180,PARTITION:181,aliasOpt:182,index_or_key:183,INDEX:184,KEY:185,for_opt:186,identifier_list_opt:187,index_hint_list_opt:188,index_hint_list:189,index_hint:190,USE:191,IGNORE:192,FORCE:193,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",8:";",14:"UNION",16:"(",17:")",18:"SELECT",29:"ALL",30:"DISTINCT",31:"DISTINCTROW",32:"HIGH_PRIORITY",33:"MAX_STATEMENT_TIME",34:"=",35:"NUMERIC",36:"STRAIGHT_JOIN",37:"SQL_SMALL_RESULT",38:"SQL_BIG_RESULT",39:"SQL_BUFFER_RESULT",40:"SQL_CACHE",41:"SQL_NO_CACHE",42:"SQL_CALC_FOUND_ROWS",43:",",45:"*",46:"SELECT_EXPR_STAR",49:"AS",50:"IDENTIFIER",51:"STRING",54:"EXPONENT_NUMERIC",55:"HEX_NUMERIC",57:"TRUE",58:"FALSE",60:"NULL",66:"DOT",70:"WHEN",71:"THEN",73:"ELSE",75:"CASE",76:"END",78:"+",80:"-",81:"~",82:"!",83:"BINARY",85:"ROW",86:"EXISTS",87:"{",88:"}",90:"|",91:"&",92:"<<",93:">>",94:"/",95:"DIV",96:"MOD",97:"%",98:"^",100:"NOT",102:"ESCAPE",104:"IN",105:"BETWEEN",106:"AND",107:"SOUNDS",108:"LIKE",109:"REGEXP",111:">=",112:">",113:"<=",114:"<",115:"<>",116:"!=",118:"ANY",120:"IS",122:"UNKNOWN",123:"&&",124:"||",125:"OR",126:"XOR",128:"WHERE",132:"WITH",133:"ROLLUP",134:"GROUP_BY",137:"ORDER_BY",140:"ASC",141:"DESC",143:"HAVING",145:"LIMIT",146:"OFFSET",149:"PROCEDURE",151:"FOR",152:"UPDATE",153:"LOCK",154:"SHARE",155:"MODE",156:"FROM",161:"OJ",163:"INNER",164:"CROSS",166:"LEFT",167:"RIGHT",169:"OUTER",172:"JOIN",176:"NATURAL",178:"ON",179:"USING",181:"PARTITION",184:"INDEX",185:"KEY",191:"USE",192:"IGNORE",193:"FORCE"},productions_:[0,[3,3],[3,3],[5,1],[5,0],[7,1],[7,3],[10,4],[10,4],[13,3],[9,4],[9,4],[4,12],[15,1],[15,1],[15,1],[15,0],[19,1],[19,0],[20,3],[20,0],[21,1],[21,0],[22,1],[22,0],[23,1],[23,0],[24,1],[24,0],[25,0],[25,1],[25,1],[26,1],[26,0],[27,3],[27,1],[44,1],[44,1],[44,2],[48,0],[48,2],[48,1],[48,2],[48,1],[52,1],[53,1],[53,1],[53,1],[56,1],[56,1],[59,1],[61,1],[61,1],[61,1],[61,1],[62,4],[63,3],[63,1],[64,0],[64,1],[64,1],[64,2],[64,1],[65,1],[65,3],[67,1],[67,3],[68,0],[68,1],[69,4],[69,5],[72,0],[72,2],[74,5],[77,2],[77,2],[77,2],[77,2],[77,2],[79,1],[79,1],[79,1],[79,1],[79,3],[79,4],[79,3],[79,4],[79,4],[79,1],[89,1],[89,3],[89,3],[89,3],[89,3],[89,3],[89,3],[89,3],[89,3],[89,3],[89,3],[89,3],[89,3],[99,0],[99,1],[101,0],[101,2],[103,1],[103,6],[103,6],[103,6],[103,4],[103,5],[103,4],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[117,1],[117,1],[119,1],[119,4],[119,3],[119,6],[121,1],[121,1],[47,1],[47,4],[47,2],[47,3],[47,3],[47,3],[47,3],[47,3],[84,1],[84,3],[127,0],[127,2],[129,0],[129,1],[131,0],[131,2],[130,3],[11,0],[11,1],[136,3],[135,1],[135,3],[138,2],[139,0],[139,1],[139,1],[142,0],[142,2],[144,2],[144,4],[144,4],[12,0],[12,1],[147,0],[147,1],[148,2],[150,0],[150,2],[150,4],[28,0],[28,10],[157,1],[157,3],[159,1],[159,4],[162,0],[162,1],[162,1],[165,1],[165,1],[168,0],[168,1],[170,0],[170,2],[171,4],[171,5],[171,4],[171,6],[171,5],[177,0],[177,1],[175,2],[174,1],[174,4],[160,1],[160,1],[180,1],[180,3],[158,0],[158,4],[182,0],[182,2],[182,1],[183,1],[183,1],[186,0],[186,2],[186,2],[186,2],[187,0],[187,1],[188,0],[188,1],[189,1],[189,3],[190,6],[190,6],[190,6],[173,4],[173,4],[173,3]],performAction:function(t,e,n,r,i,o,a){var s=o.length-1;switch(i){case 1:case 2:return{nodeType:"Main",value:o[s-2],hasSemicolon:o[s-1]};case 3:case 143:this.$=!0;break;case 4:this.$=!1;break;case 5:case 13:case 14:case 15:case 17:case 19:case 21:case 23:case 25:case 27:case 30:case 31:case 32:case 51:case 52:case 53:case 54:case 59:case 60:case 62:case 68:case 72:case 79:case 80:case 81:case 82:case 88:case 89:case 103:case 105:case 106:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 126:case 128:case 139:case 141:case 146:case 152:case 153:case 155:case 160:case 162:case 163:case 174:case 175:case 176:case 177:case 179:case 188:case 190:case 192:case 193:case 201:case 202:case 208:case 210:this.$=o[s];break;case 6:this.$=o[s-2],this.$.orderBy=o[s-1],this.$.limit=o[s];break;case 7:case 8:this.$={type:"Union",left:o[s-3],distinctOpt:o[s-1],right:o[s]};break;case 9:this.$={type:"SelectParenthesized",value:o[s-1]};break;case 10:case 11:this.$={type:"Union",left:o[s-3],distinctOpt:o[s-1],right:o[s]};break;case 12:this.$={type:"Select",distinctOpt:o[s-10],highPriorityOpt:o[s-9],maxStateMentTimeOpt:o[s-8],straightJoinOpt:o[s-7],sqlSmallResultOpt:o[s-6],sqlBigResultOpt:o[s-5],sqlBufferResultOpt:o[s-4],sqlCacheOpt:o[s-3],sqlCalcFoundRowsOpt:o[s-2],selectItems:o[s-1],from:o[s].from,partition:o[s].partition,where:o[s].where,groupBy:o[s].groupBy,having:o[s].having,orderBy:o[s].orderBy,limit:o[s].limit,procedure:o[s].procedure,updateLockMode:o[s].updateLockMode};break;case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 29:case 33:case 58:case 67:case 71:case 102:case 104:case 138:case 140:case 142:case 145:case 151:case 154:case 159:case 161:case 164:case 173:case 178:case 187:case 196:case 203:case 207:case 209:this.$=null;break;case 34:o[s-2].value.push(o[s]);break;case 35:this.$={type:"SelectExpr",value:[o[s]]};break;case 36:case 37:case 63:this.$={type:"Identifier",value:o[s]};break;case 38:this.$=o[s-1],this.$.alias=o[s].alias,this.$.hasAs=o[s].hasAs;break;case 39:case 198:this.$={alias:null,hasAs:null};break;case 40:case 42:this.$={alias:o[s],hasAs:!0};break;case 41:this.$={alias:o[s],hasAs:!1};break;case 43:this.$={alias:o[$01],hasAs:!1};break;case 44:this.$={type:"String",value:o[s]};break;case 45:case 46:case 47:this.$={type:"Number",value:o[s]};break;case 48:this.$={type:"Boolean",value:"TRUE"};break;case 49:this.$={type:"Boolean",value:"FALSE"};break;case 50:this.$={type:"Null",value:"null"};break;case 55:this.$={type:"FunctionCall",name:o[s-3],params:o[s-1]};break;case 56:o[s-2].push(o[s]),this.$=o[s-2];break;case 57:this.$=[o[s]];break;case 61:this.$={type:"FunctionCallParam",distinctOpt:o[s-1],value:o[s]};break;case 64:this.$=o[s-2],o[s-2].value+="."+o[s];break;case 65:this.$={type:"IdentifierList",value:[o[s]]};break;case 66:case 170:this.$=o[s-2],o[s-2].value.push(o[s]);break;case 69:this.$={type:"WhenThenList",value:[{when:o[s-2],then:o[s]}]};break;case 70:this.$=o[s-4],this.$.value.push({when:o[s-2],then:o[s]});break;case 73:this.$={type:"CaseWhen",caseExprOpt:o[s-3],whenThenList:o[s-2],else:o[s-1]};break;case 74:case 75:case 76:case 77:case 78:this.$={type:"Prefix",prefix:o[s-1],value:o[s]};break;case 83:this.$={type:"SimpleExprParentheses",value:o[s-1]};break;case 84:this.$={type:"SimpleExprParentheses",value:o[s-2],hasRow:!0};break;case 85:this.$={type:"SubQuery",value:o[s-1]};break;case 86:this.$={type:"SubQuery",value:o[s-1],hasExists:!0};break;case 87:this.$={type:"IdentifierExpr",identifier:o[s-2],value:o[s-1]};break;case 90:this.$={type:"BitExpression",operator:"|",left:o[s-2],right:o[s]};break;case 91:this.$={type:"BitExpression",operator:"&",left:o[s-2],right:o[s]};break;case 92:this.$={type:"BitExpression",operator:"<<",left:o[s-2],right:o[s]};break;case 93:this.$={type:"BitExpression",operator:">>",left:o[s-2],right:o[s]};break;case 94:this.$={type:"BitExpression",operator:"+",left:o[s-2],right:o[s]};break;case 95:this.$={type:"BitExpression",operator:"-",left:o[s-2],right:o[s]};break;case 96:this.$={type:"BitExpression",operator:"*",left:o[s-2],right:o[s]};break;case 97:this.$={type:"BitExpression",operator:"/",left:o[s-2],right:o[s]};break;case 98:this.$={type:"BitExpression",operator:"DIV",left:o[s-2],right:o[s]};break;case 99:this.$={type:"BitExpression",operator:"MOD",left:o[s-2],right:o[s]};break;case 100:this.$={type:"BitExpression",operator:"%",left:o[s-2],right:o[s]};break;case 101:this.$={type:"BitExpression",operator:"^",left:o[s-2],right:o[s]};break;case 107:this.$={type:"InSubQueryPredicate",hasNot:o[s-4],left:o[s-5],right:o[s-1]};break;case 108:this.$={type:"InExpressionListPredicate",hasNot:o[s-4],left:o[s-5],right:o[s-1]};break;case 109:this.$={type:"BetweenPredicate",hasNot:o[s-4],left:o[s-5],right:{left:o[s-2],right:o[s]}};break;case 110:this.$={type:"SoundsLikePredicate",hasNot:!1,left:o[s-3],right:o[s]};break;case 111:this.$={type:"LikePredicate",hasNot:o[s-3],left:o[s-4],right:o[s-1],escape:o[s]};break;case 112:this.$={type:"RegexpPredicate",hasNot:o[s-2],left:o[s-3],right:o[s]};break;case 123:this.$={type:"IsNullBooleanPrimary",hasNot:o[s-1],value:o[s-3]};break;case 124:this.$={type:"ComparisonBooleanPrimary",left:o[s-2],operator:o[s-1],right:o[s]};break;case 125:this.$={type:"ComparisonSubQueryBooleanPrimary",operator:o[s-4],subQueryOpt:o[s-3],left:o[s-5],right:o[s-1]};break;case 127:this.$={type:"BooleanExtra",value:o[s]};break;case 129:this.$={type:"IsExpression",hasNot:o[s-1],left:o[s-3],right:o[s]};break;case 130:this.$={type:"NotExpression",value:o[s]};break;case 131:case 134:this.$={type:"AndExpression",operator:o[s-1],left:o[s-2],right:o[s]};break;case 132:case 133:this.$={type:"OrExpression",operator:o[s-1],left:o[s-2],right:o[s]};break;case 135:this.$={type:"XORExpression",left:o[s-2],right:o[s]};break;case 136:this.$={type:"ExpressionList",value:[o[s]]};break;case 137:case 212:this.$=o[s-2],this.$.value.push(o[s]);break;case 144:this.$={type:"GroupBy",value:o[s-1],rollUp:o[s]};break;case 147:this.$={type:"OrderBy",value:o[s-1],rollUp:o[s]};break;case 148:case 194:this.$=[o[s]];break;case 149:this.$=o[s-2],o[s-2].push(o[s]);break;case 150:this.$={type:"GroupByOrderByItem",value:o[s-1],sortOpt:o[s]};break;case 156:this.$={type:"Limit",value:[o[s]]};break;case 157:this.$={type:"Limit",value:[o[s-2],o[s]]};break;case 158:this.$={type:"Limit",value:[o[s],o[s-2]],offsetMode:!0};break;case 165:this.$=o[s-1]+" "+o[s];break;case 166:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break;case 167:this.$={};break;case 168:this.$={from:o[s-8],partition:o[s-7],where:o[s-6],groupBy:o[s-5],having:o[s-4],orderBy:o[s-3],limit:o[s-2],procedure:o[s-1],updateLockMode:o[s]};break;case 169:this.$={type:"TableReferences",value:[o[s]]};break;case 171:this.$={type:"TableReference",value:o[s]};break;case 172:this.$={type:"TableReference",hasOj:!0,value:o[s-1]};break;case 180:this.$={leftRight:null,outOpt:null};break;case 181:this.$={leftRight:o[s-1],outOpt:o[s]};break;case 182:this.$={type:"InnerCrossJoinTable",innerCrossOpt:o[s-2],left:o[s-3],right:o[s],condition:null};break;case 183:this.$={type:"InnerCrossJoinTable",innerCrossOpt:o[s-3],left:o[s-4],right:o[s-1],condition:o[s]};break;case 184:this.$={type:"StraightJoinTable",left:o[s-3],right:o[s-1],condition:o[s]};break;case 185:this.$={type:"LeftRightJoinTable",leftRight:o[s-4],outOpt:o[s-3],left:o[s-5],right:o[s-1],condition:o[s]};break;case 186:this.$={type:"NaturalJoinTable",leftRight:o[s-2].leftRight,outOpt:o[s-2].outOpt,left:o[s-4],right:o[s]};break;case 189:this.$={type:"OnJoinCondition",value:o[s]};break;case 191:this.$={type:"UsingJoinCondition",value:o[s-1]};break;case 195:this.$=o[s-2],o[s-2].push(o[s]);break;case 197:this.$={type:"Partitions",value:o[s-1]};break;case 199:this.$={hasAs:!0,alias:o[s]};break;case 200:this.$={hasAs:!1,alias:o[s]};break;case 204:case 205:case 206:this.$={type:"ForOptIndexHint",value:o[s]};break;case 211:this.$={type:"IndexHintList",value:[o[s]]};break;case 213:this.$={type:"UseIndexHint",value:o[s-1],forOpt:o[s-3],indexOrKey:o[s-4]};break;case 214:this.$={type:"IgnoreIndexHint",value:o[s-1],forOpt:o[s-3],indexOrKey:o[s-4]};break;case 215:this.$={type:"ForceIndexHint",value:o[s-1],forOpt:o[s-3],indexOrKey:o[s-4]};break;case 216:this.$={type:"TableFactor",value:o[s-3],partition:o[s-2],alias:o[s-1].alias,hasAs:o[s-1].hasAs,indexHintOpt:o[s]};break;case 217:this.$={type:"TableFactor",value:{type:"SubQuery",value:o[s-2]},alias:o[s].alias,hasAs:o[s].hasAs};break;case 218:this.$=o[s-1],this.$.hasParentheses=!0}},table:[{3:1,4:2,7:3,9:5,10:6,13:7,16:a3=[1,8],18:s3=[1,4]},{1:[3]},{5:9,6:u3=[2,4],8:IE=[1,11],14:c3=[1,10]},{5:12,6:u3,8:IE},R([16,32,33,35,36,37,38,39,40,41,42,45,46,50,51,54,55,57,58,60,75,78,80,81,82,83,85,86,87,100],IE=[2,16],{15:13,29:xE=[1,14],30:DE=[1,15],31:FE=[1,16]}),R(d,[2,5]),R([6,8,145],qs,{11:17,136:18,137:fs}),{14:Ei},{4:21,18:s3},{6:[1,22]},{15:23,18:IE,29:xE,30:DE,31:FE},{6:[2,3]},{6:[1,24]},R(on,[2,18],{19:25,32:[1,26]}),R(is,[2,13]),R(is,[2,14]),R(is,[2,15]),R(d,Js,{12:27,144:28,145:Gs}),R(ks,[2,146]),{16:w,35:r,47:32,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33,135:30,138:31},{15:65,16:IE,29:xE,30:DE,31:FE},{17:[1,66]},{1:[2,1]},{4:67,9:68,18:s3},{1:[2,2]},R(hs,[2,20],{20:69,33:[1,70]}),R(on,[2,17]),R(d,[2,6]),R(Hs,[2,160]),{35:[1,71]},R(ks,Mt,{131:72,43:Bn,132:io}),R(Ft,[2,148]),R(Ft,[2,151],{139:75,106:Wn,123:Jn,124:Ks,125:Jt,126:$t,140:[1,81],141:[1,82]}),R(Fs,[2,128],{110:84,34:[1,85],111:[1,86],112:[1,87],113:[1,88],114:[1,89],115:[1,90],116:[1,91],120:[1,83]}),{16:w,35:r,47:92,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(_r,[2,122]),R(_r,[2,106],{99:93,45:kn,78:g,80:Pn,90:ro,91:Vt,92:gr,93:Ss,94:Lt,95:Ut,96:rs,97:fe,98:b,100:In,104:l3,105:l3,108:l3,109:l3,107:[1,94]}),R(f3,[2,89]),R(h3,[2,79]),R(h3,[2,80],{66:p3}),R(h3,[2,81]),R(h3,[2,82]),{4:110,16:w,18:s3,35:r,47:111,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,84:109,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{16:[1,112]},{16:[1,113]},{50:d3,65:114},R(h3,[2,88]),R(h3,[2,51]),R(h3,[2,52]),R(h3,[2,53]),R(h3,[2,54]),R([6,8,14,17,34,36,43,45,49,50,51,66,70,71,73,76,78,80,88,90,91,92,93,94,95,96,97,98,100,102,104,105,106,107,108,109,111,112,113,114,115,116,120,123,124,125,126,128,132,134,137,140,141,143,145,149,151,153,156,163,164,166,167,172,176,178,179,181],g3,{16:A3}),{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:117,80:h,81:s,82:l,83:p,85:e,86:n,87:c},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:118,80:h,81:s,82:l,83:p,85:e,86:n,87:c},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:119,80:h,81:s,82:l,83:p,85:e,86:n,87:c},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:120,80:h,81:s,82:l,83:p,85:e,86:n,87:c},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:121,80:h,81:s,82:l,83:p,85:e,86:n,87:c},{16:w,35:r,47:123,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,68:122,70:[2,67],74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(h3,[2,44]),R(h3,[2,45]),R(h3,[2,46]),R(h3,[2,47]),R(h3,[2,48]),R(h3,[2,49]),R(h3,[2,50]),{10:125,13:124,16:a3},R([6,8,14,137,145],[2,9]),R(d,[2,10],{14:c3}),R(d,[2,11]),R(y3,[2,22],{21:126,36:[1,127]}),{34:[1,128]},R(Hs,[2,156],{43:[1,129],146:[1,130]}),R(ks,[2,147]),{16:w,35:r,47:32,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33,138:131},{133:[1,132]},R(Ft,[2,150]),{16:w,35:r,47:133,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{16:w,35:r,47:134,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{16:w,35:r,47:135,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{16:w,35:r,47:136,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{16:w,35:r,47:137,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(Ft,[2,152]),R(Ft,[2,153]),R([57,58,60,122],l3,{99:138,100:In}),{16:w,29:[1,141],35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,103:139,117:140,118:[1,142]},R(v3,[2,113]),R(v3,[2,114]),R(v3,[2,115]),R(v3,[2,116]),R(v3,[2,117]),R(v3,[2,118]),R(v3,[2,119]),R(Fs,[2,130]),{104:[1,143],105:[1,144],108:[1,145],109:[1,146]},{108:[1,147]},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:148},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:149},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:150},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:151},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:152},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:153},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:154},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:155},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:156},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:157},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:158},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:159},R([57,58,60,104,105,108,109,122],[2,103]),{50:[1,160]},{17:[1,161],43:m3},{17:[1,163]},R(w3,[2,136],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),{16:w,35:r,47:111,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,84:164,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{4:165,18:s3},{16:w,35:r,47:166,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,66:p3,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R([6,8,14,16,17,35,36,43,49,50,51,54,55,57,58,60,66,75,78,80,81,82,83,85,86,87,88,100,128,134,137,143,145,149,151,153,163,164,166,167,172,176,178,179,181,191,192,193],g3),R(w3,I3,{119:33,103:35,89:36,79:37,61:38,65:39,62:40,77:41,74:46,52:47,53:48,56:49,59:50,63:167,64:168,47:172,16:w,30:b3,35:r,45:_3,46:E3,50:_,51:i,54:a,55:u,57:A,58:I,60:v,75:o,78:f,80:h,81:s,82:l,83:p,85:e,86:n,87:c,100:t}),R(h3,[2,74]),R(h3,[2,75]),R(h3,[2,76]),R(h3,[2,77]),R(h3,[2,78]),{69:173,70:[1,174]},{70:[2,68],106:Wn,123:Jn,124:Ks,125:Jt,126:$t},R(C3,[2,7],{14:Ei}),R(C3,[2,8]),R(k3,[2,24],{22:175,37:[1,176]}),R(y3,[2,21]),{35:[1,177]},{35:[1,178]},{35:[1,179]},R(Ft,[2,149]),R(S3,[2,143]),R(Fs,[2,131]),R(T3,[2,132],{106:Wn,123:Jn}),R(T3,[2,133],{106:Wn,123:Jn}),R(Fs,[2,134]),R(T3,[2,135],{106:Wn,123:Jn}),{56:182,57:A,58:I,60:[1,181],121:180,122:[1,183]},R(_r,[2,124]),{16:[1,184]},{16:[2,120]},{16:[2,121]},{16:[1,185]},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:186},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:187,80:h,81:s,82:l,83:p,85:e,86:n,87:c},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:188},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:189},R([6,8,14,17,34,36,43,49,50,51,70,71,73,76,88,90,100,104,105,106,107,108,109,111,112,113,114,115,116,120,123,124,125,126,128,132,134,137,140,141,143,145,149,151,153,156,163,164,166,167,172,176,178,179,181],[2,90],{45:kn,78:g,80:Pn,91:Vt,92:gr,93:Ss,94:Lt,95:Ut,96:rs,97:fe,98:b}),R([6,8,14,17,34,36,43,49,50,51,70,71,73,76,88,90,91,98,100,104,105,106,107,108,109,111,112,113,114,115,116,120,123,124,125,126,128,132,134,137,140,141,143,145,149,151,153,156,163,164,166,167,172,176,178,179,181],[2,91],{45:kn,78:g,80:Pn,92:gr,93:Ss,94:Lt,95:Ut,96:rs,97:fe}),R(B3,[2,92],{45:kn,78:g,80:Pn,94:Lt,95:Ut,96:rs,97:fe}),R(B3,[2,93],{45:kn,78:g,80:Pn,94:Lt,95:Ut,96:rs,97:fe}),R(x3,[2,94],{45:kn,94:Lt,95:Ut,96:rs,97:fe}),R(x3,[2,95],{45:kn,94:Lt,95:Ut,96:rs,97:fe}),R(f3,[2,96]),R(f3,[2,97]),R(f3,[2,98]),R(f3,[2,99]),R(f3,[2,100]),R([6,8,14,17,34,36,43,49,50,51,70,71,73,76,88,90,98,100,104,105,106,107,108,109,111,112,113,114,115,116,120,123,124,125,126,128,132,134,137,140,141,143,145,149,151,153,156,163,164,166,167,172,176,178,179,181],[2,101],{45:kn,78:g,80:Pn,91:Vt,92:gr,93:Ss,94:Lt,95:Ut,96:rs,97:fe}),R([6,8,14,16,17,34,35,36,43,45,49,50,51,54,55,57,58,60,66,70,71,73,75,76,78,80,81,82,83,85,86,87,88,90,91,92,93,94,95,96,97,98,100,102,104,105,106,107,108,109,111,112,113,114,115,116,120,123,124,125,126,128,132,134,137,140,141,143,145,149,151,153,156,163,164,166,167,172,176,178,179,181,191,192,193],[2,64]),R(h3,[2,83]),{16:w,35:r,47:190,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(h3,[2,85]),{17:[1,191],43:m3},{17:[1,192]},{88:[1,193],106:Wn,123:Jn,124:Ks,125:Jt,126:$t},{17:[1,194],43:[1,195]},R(w3,[2,57]),R(w3,[2,59]),R(w3,[2,60]),{16:w,35:r,47:196,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(w3,[2,62],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),{70:[1,198],72:197,73:[1,199],76:[2,71]},{16:w,35:r,47:200,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(O3,[2,26],{23:201,38:[1,202]}),R(k3,[2,23]),R(hs,[2,19]),R(Hs,[2,157]),R(Hs,[2,158]),R(Fs,[2,129]),R(_r,[2,123]),R(Fs,[2,126]),R(Fs,[2,127]),{4:203,18:s3},{4:204,16:w,18:s3,35:r,47:111,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,84:205,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{45:kn,78:g,80:Pn,90:ro,91:Vt,92:gr,93:Ss,94:Lt,95:Ut,96:rs,97:fe,98:b,106:[1,206]},R(_r,[2,104],{101:207,102:[1,208]}),R(_r,[2,112],{45:kn,78:g,80:Pn,90:ro,91:Vt,92:gr,93:Ss,94:Lt,95:Ut,96:rs,97:fe,98:b}),R(_r,[2,110],{45:kn,78:g,80:Pn,90:ro,91:Vt,92:gr,93:Ss,94:Lt,95:Ut,96:rs,97:fe,98:b}),R(w3,[2,137],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),R(h3,[2,84]),R(h3,[2,86]),R(h3,[2,87]),R(h3,[2,55]),R(w3,I3,{119:33,103:35,89:36,79:37,61:38,65:39,62:40,77:41,74:46,52:47,53:48,56:49,59:50,47:172,64:209,16:w,30:b3,35:r,45:_3,46:E3,50:_,51:i,54:a,55:u,57:A,58:I,60:v,75:o,78:f,80:h,81:s,82:l,83:p,85:e,86:n,87:c,100:t}),R(w3,[2,61],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),{76:[1,210]},{16:w,35:r,47:211,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{16:w,35:r,47:212,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{71:[1,213],106:Wn,123:Jn,124:Ks,125:Jt,126:$t},R(D3,[2,28],{24:214,39:[1,215]}),R(O3,[2,25]),{17:[1,216]},{17:[1,217]},{17:[1,218],43:m3},{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,103:219},R(_r,[2,111]),{16:w,35:r,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:220,80:h,81:s,82:l,83:p,85:e,86:n,87:c},R(w3,[2,56]),R(h3,[2,73]),{71:[1,221],106:Wn,123:Jn,124:Ks,125:Jt,126:$t},{76:[2,72],106:Wn,123:Jn,124:Ks,125:Jt,126:$t},{16:w,35:r,47:222,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(N3,[2,29],{25:223,40:[1,224],41:[1,225]}),R(D3,[2,27]),R(_r,[2,125]),R(_r,[2,107]),R(_r,[2,108]),R(_r,[2,109]),R(_r,[2,105]),{16:w,35:r,47:226,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(R3,[2,69],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),R(Q3,[2,33],{26:227,42:[1,228]}),R(N3,[2,30]),R(N3,[2,31]),R(R3,[2,70],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),{16:w,27:229,35:r,44:230,45:P3,46:j3,47:233,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(Q3,[2,32]),R(L3,[2,167],{28:234,43:[1,235],156:[1,236]}),R(U3,[2,35]),R(U3,[2,36]),R(U3,[2,37]),R(U3,[2,39],{48:237,49:[1,238],50:[1,239],51:[1,240],106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),R(L3,[2,12]),{16:w,35:r,44:241,45:P3,46:j3,47:233,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{16:M3,50:d3,65:248,87:F3,157:242,159:243,160:244,171:247,173:246},R(U3,[2,38]),{50:[1,250],51:[1,251]},R(U3,[2,41]),R(U3,[2,43]),R(U3,[2,34]),R([6,8,14,17,128,134,137,143,145,149,151,153],V3,{158:252,43:G3,181:J3}),R(H3,[2,169]),R(H3,[2,171],{162:255,165:257,36:K3,163:Y3,164:W3,166:Z3,167:q3,172:X3,176:$3}),{161:[1,263]},R(z3,[2,192]),R(z3,[2,193]),R([6,8,14,17,36,43,49,50,88,128,134,137,143,145,149,151,153,163,164,166,167,172,176,178,179,191,192,193],V3,{158:264,66:p3,181:J3}),{4:265,16:M3,18:s3,50:d3,65:248,87:F3,157:266,159:243,160:244,171:247,173:246},R(U3,[2,40]),R(U3,[2,42]),R(tE,[2,138],{127:267,128:[1,268]}),{16:M3,50:d3,65:248,87:F3,159:269,160:244,171:247,173:246},{16:[1,270]},{172:[1,271]},{16:M3,50:d3,65:248,173:272},{168:273,169:eE,172:nE},{165:276,166:Z3,167:q3,170:275,172:[2,180]},{172:[2,174]},{172:[2,175]},R(rE,[2,176]),R(rE,[2,177]),{16:M3,50:d3,65:248,160:277,171:247,173:246},R(iE,oE,{182:278,65:280,49:aE,50:d3}),{17:[1,281]},{17:[1,282],43:G3},R(S3,[2,140],{129:283,130:284,134:[1,285]}),{16:w,35:r,47:286,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(H3,[2,170]),{50:d3,65:288,180:287},{16:M3,50:d3,65:248,173:289},{175:290,178:sE},{172:[1,292]},{172:[2,179]},{172:[1,293]},{168:294,169:eE,172:nE},{36:K3,88:[1,295],162:255,163:Y3,164:W3,165:257,166:Z3,167:q3,172:X3,176:$3},R(z3,[2,209],{188:296,189:297,190:298,191:uE,192:cE,193:lE}),{50:d3,65:302},R(iE,[2,200],{66:p3}),R(z3,oE,{65:280,182:303,49:aE,50:d3}),R(z3,[2,218]),R(fE,[2,154],{142:304,143:[1,305]}),R(S3,[2,141]),{16:w,35:r,47:32,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33,135:306,138:31},R(tE,[2,139],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),{17:[1,307],43:[1,308]},R(w3,[2,194],{66:p3}),R([6,8,14,17,36,43,88,128,134,137,143,145,149,151,153,163,164,166,167,172,176,181],[2,182],{174:309,175:310,178:sE,179:hE}),R(z3,[2,184]),{16:w,35:r,47:312,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},{16:M3,50:d3,65:248,160:313,171:247,173:246},{16:M3,50:d3,65:248,173:314},{172:[2,181]},R(H3,[2,172]),R(z3,[2,216]),R(z3,[2,210]),R(z3,[2,211]),{183:316,184:pE,185:dE},{183:319,184:pE,185:dE},{183:320,184:pE,185:dE},R(iE,[2,199],{66:p3}),R(z3,[2,217]),R(ks,qs,{136:18,11:321,137:fs}),{16:w,35:r,47:322,50:_,51:i,52:47,53:48,54:a,55:u,56:49,57:A,58:I,59:50,60:v,61:38,62:40,65:39,74:46,75:o,77:41,78:f,79:37,80:h,81:s,82:l,83:p,85:e,86:n,87:c,89:36,100:t,103:35,119:33},R(S3,Mt,{131:323,43:Bn,132:io}),R([6,8,14,17,36,43,49,50,88,128,134,137,143,145,149,151,153,163,164,166,167,172,176,178,179,181,191,192,193],[2,197]),{50:d3,65:324},R(z3,[2,183]),R(z3,[2,190]),{16:[1,325]},R(z3,[2,189],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),{36:K3,162:255,163:Y3,164:W3,165:257,166:Z3,167:q3,172:X3,174:326,175:310,176:$3,178:sE,179:hE},R(z3,[2,186]),{190:327,191:uE,192:cE,193:lE},{16:gE,151:AE,186:328},R(yE,[2,201]),R(yE,[2,202]),{16:gE,151:AE,186:330},{16:gE,151:AE,186:331},R(Hs,Js,{144:28,12:332,145:Gs}),R(fE,[2,155],{106:Wn,123:Jn,124:Ks,125:Jt,126:$t}),R(S3,[2,144]),R(w3,[2,195],{66:p3}),{50:d3,65:334,67:333},R(z3,[2,185]),R(z3,[2,212]),{16:[1,335]},{134:[1,338],137:[1,337],172:[1,336]},{16:[1,339]},{16:[1,340]},R(vE,[2,161],{147:341,148:342,149:[1,343]}),{17:[1,344],43:mE},R(w3,[2,65],{66:p3}),{17:[2,207],50:d3,65:334,67:347,187:346},{16:[2,204]},{16:[2,205]},{16:[2,206]},{50:d3,65:334,67:348},{50:d3,65:334,67:349},R(L3,[2,164],{150:350,151:[1,351],153:[1,352]}),R(vE,[2,162]),{50:[1,354],62:353},R(z3,[2,191]),{50:d3,65:355},{17:[1,356]},{17:[2,208],43:mE},{17:[1,357],43:mE},{17:[1,358],43:mE},R(L3,[2,168]),{152:[1,359]},{104:[1,360]},R(vE,[2,163]),{16:A3},R(w3,[2,66],{66:p3}),R(z3,[2,213]),R(z3,[2,214]),R(z3,[2,215]),R(L3,[2,165]),{154:[1,361]},{155:[1,362]},R(L3,[2,166])],defaultActions:{11:[2,3],22:[2,1],24:[2,2],141:[2,120],142:[2,121],259:[2,174],260:[2,175],274:[2,179],294:[2,181],336:[2,204],337:[2,205],338:[2,206]},parseError:function(t,e){var n;if(!e.recoverable)throw(n=new Error(t)).hash=e,n;this.trace(t)},parse:function(t){var e,n=this,r=[0],i=[null],o=[],a=this.table,s="",u=0,c=0,l=1,f=o.slice.call(arguments,1),h=Object.create(this.lexer),p={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(p.yy[e]=this.yy[e]);h.setInput(t,p.yy),p.yy.lexer=h,p.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});for(var d,g,A,y,v,m,w=h.yylloc,I=(o.push(w),h.options&&h.options.ranges),b=("function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,{});;){if(g=r[r.length-1],void 0===(A=this.defaultActions[g]||(null==d&&(_=void 0,d=_="number"!=typeof(_=h.lex()||l)&&n.symbols_[_]||_),a[g]&&a[g][d]))||!A.length||!A[0]){var _="",E=[];for(y in a[g])this.terminals_[y]&&2e[0].length))if(e=n,r=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[o])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return 0";case 103:return 113;case 104:return 115;case 105:return 114;case 106:return 87;case 107:return 88;case 108:return 8;case 109:case 110:return 51;case 111:return 55;case 112:return 35;case 113:return 54;case 114:return 50;case 115:return 66;case 116:case 117:return 51;case 118:return 50;case 119:return 6;case 120:return"INVALID"}},rules:[/^(?:[\/][*](.|\n)*?[*][\/])/i,/^(?:[-][-]\s.*\n)/i,/^(?:[#]\s.*\n)/i,/^(?:\s+)/i,/^(?:[`][a-zA-Z_\u4e00-\u9fa5][a-zA-Z0-9_\u4e00-\u9fa5]*[`])/i,/^(?:[\w]+[\u4e00-\u9fa5]+[0-9a-zA-Z_\u4e00-\u9fa5]*)/i,/^(?:[\u4e00-\u9fa5][0-9a-zA-Z_\u4e00-\u9fa5]*)/i,/^(?:SELECT\b)/i,/^(?:ALL\b)/i,/^(?:ANY\b)/i,/^(?:DISTINCT\b)/i,/^(?:DISTINCTROW\b)/i,/^(?:HIGH_PRIORITY\b)/i,/^(?:MAX_STATEMENT_TIME\b)/i,/^(?:STRAIGHT_JOIN\b)/i,/^(?:SQL_SMALL_RESULT\b)/i,/^(?:SQL_BIG_RESULT\b)/i,/^(?:SQL_BUFFER_RESULT\b)/i,/^(?:SQL_CACHE\b)/i,/^(?:SQL_NO_CACHE\b)/i,/^(?:SQL_CALC_FOUND_ROWS\b)/i,/^(?:([a-zA-Z_\u4e00-\u9fa5][a-zA-Z0-9_\u4e00-\u9fa5]*\.){1,2}\*)/i,/^(?:AS\b)/i,/^(?:TRUE\b)/i,/^(?:FALSE\b)/i,/^(?:NULL\b)/i,/^(?:COLLATE\b)/i,/^(?:BINARY\b)/i,/^(?:ROW\b)/i,/^(?:EXISTS\b)/i,/^(?:CASE\b)/i,/^(?:WHEN\b)/i,/^(?:THEN\b)/i,/^(?:ELSE\b)/i,/^(?:END\b)/i,/^(?:DIV\b)/i,/^(?:MOD\b)/i,/^(?:NOT\b)/i,/^(?:BETWEEN\b)/i,/^(?:IN\b)/i,/^(?:SOUNDS\b)/i,/^(?:LIKE\b)/i,/^(?:ESCAPE\b)/i,/^(?:REGEXP\b)/i,/^(?:IS\b)/i,/^(?:UNKNOWN\b)/i,/^(?:AND\b)/i,/^(?:OR\b)/i,/^(?:XOR\b)/i,/^(?:FROM\b)/i,/^(?:PARTITION\b)/i,/^(?:USE\b)/i,/^(?:INDEX\b)/i,/^(?:KEY\b)/i,/^(?:FOR\b)/i,/^(?:JOIN\b)/i,/^(?:ORDER\s+BY\b)/i,/^(?:GROUP\s+BY\b)/i,/^(?:IGNORE\b)/i,/^(?:FORCE\b)/i,/^(?:INNER\b)/i,/^(?:CROSS\b)/i,/^(?:ON\b)/i,/^(?:USING\b)/i,/^(?:LEFT\b)/i,/^(?:RIGHT\b)/i,/^(?:OUTER\b)/i,/^(?:NATURAL\b)/i,/^(?:WHERE\b)/i,/^(?:ASC\b)/i,/^(?:DESC\b)/i,/^(?:WITH\b)/i,/^(?:ROLLUP\b)/i,/^(?:HAVING\b)/i,/^(?:OFFSET\b)/i,/^(?:PROCEDURE\b)/i,/^(?:UPDATE\b)/i,/^(?:LOCK\b)/i,/^(?:SHARE\b)/i,/^(?:MODE\b)/i,/^(?:OJ\b)/i,/^(?:LIMIT\b)/i,/^(?:UNION\b)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\()/i,/^(?:\))/i,/^(?:~)/i,/^(?:!=)/i,/^(?:!)/i,/^(?:\|)/i,/^(?:&)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:%)/i,/^(?:\^)/i,/^(?:>>)/i,/^(?:>=)/i,/^(?:>)/i,/^(?:<<)/i,/^(?:<=>)/i,/^(?:<=)/i,/^(?:<>)/i,/^(?:<)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:;)/i,/^(?:['](\\.|[^'])*['])/i,/^(?:["](\\.|[^"])*["])/i,/^(?:[0][x][0-9a-fA-F]+)/i,/^(?:[-]?[0-9]+(\.[0-9]+)?)/i,/^(?:[-]?[0-9]+(\.[0-9]+)?[eE][-][0-9]+(\.[0-9]+)?)/i,/^(?:[a-zA-Z_\u4e00-\u9fa5][a-zA-Z0-9_\u4e00-\u9fa5]*)/i,/^(?:\.)/i,/^(?:["][a-zA-Z_\u4e00-\u9fa5][a-zA-Z0-9_\u4e00-\u9fa5]*["])/i,/^(?:['][a-zA-Z_\u4e00-\u9fa5][a-zA-Z0-9_\u4e00-\u9fa5]*['])/i,/^(?:([`])(?:(?=(\\?))\2.)*?\1)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120],inclusive:!0}}}},(is=(is=new((TE.prototype=u3).Parser=TE))||{}).stringify=function(t){var e=new Q;return e.travelMain(t),e.buffer},wE=!(Q.prototype.travel=function(t){if(t){if("string"==typeof t)return this.append(t);this["travel"+t.type].call(this,t)}}),Q.prototype.appendKeyword=function(t,e,n){wE=wE&&!(e=!0),this.buffer+=e?t.toUpperCase():" "+t.toUpperCase(),n&&(wE=!0)},Q.prototype.append=function(t,e,n){wE=wE&&!(e=!0),this.buffer+=e?t:" "+t,n&&(wE=!0)},Q.prototype.travelMain=function(t){this.travel(t.value),t.hasSemicolon&&this.append(";",!0)},Q.prototype.travelSelect=function(t){this.appendKeyword("select"),t.distinctOpt&&this.appendKeyword(t.distinctOpt),t.highPriorityOpt&&this.appendKeyword(t.highPriorityOpt),t.maxStateMentTimeOpt&&this.append("MAX_STATEMENT_TIME = "+t.maxStateMentTimeOpt),t.straightJoinOpt&&this.appendKeyword(t.straightJoinOpt),t.sqlSmallResultOpt&&this.appendKeyword(t.sqlSmallResultOpt),t.sqlBigResultOpt&&this.appendKeyword(t.sqlBigResultOpt),t.sqlBufferResultOpt&&this.appendKeyword(t.sqlBufferResultOpt),t.sqlCacheOpt&&this.appendKeyword(t.sqlCacheOpt),t.sqlCalcFoundRowsOpt&&this.appendKeyword(t.sqlCalcFoundRowsOpt),t.selectItems&&this.travelSelectExpr(t.selectItems),t.from&&(this.appendKeyword("from"),this.travel(t.from)),t.partition&&this.travel(t.partition),t.where&&(this.appendKeyword("where"),this.travel(t.where)),t.groupBy&&this.travel(t.groupBy),t.having&&(this.appendKeyword("having"),this.travel(t.having)),t.orderBy&&this.travel(t.orderBy),t.limit&&this.travel(t.limit),t.procedure&&(this.appendKeyword("procedure"),this.travel(t.procedure)),t.updateLockMode&&this.appendKeyword(t.updateLockMode)},Q.prototype.travelSelectExpr=function(t){for(var e=t.value,n=0;n=":r="$gte",i="$lte";break;case">":r="$gt",i="$lt";break;case"<=":r="$lte",i="$gte";break;case"<":r="$lt",i="$gt";break;case"=":r=i="$eq";break;case"<>":case"!=":r=i="$ne"}if(!r||!i)break;if("Identifier"==t.left.type&&"Identifier"!=t.right.type?(c=t.left.value,u=this._getValue(t.right),s=r):"Identifier"!=t.left.type&&"Identifier"==t.right.type&&(c=t.right.value,u=this._getValue(t.left),s=i),!c||!s)break;a={};a[s]=u,o[c]=a;break;case"InExpressionListPredicate":var s=t.hasNot?"$nin":"$in",u=t.left.value,a=fc(c=t.right.value).call(c,function(t){return n._getValue(t)});if(!u||!a||a.length<=0)break;var c={};c[s]=a,o[u]=c}return o}},{key:"_getValue",value:function(t){return"Number"==t.type?parseFloat(t.value):"String"==t.type?(n=t.value)[0]==n[n.length-1]&&Al(e=['"',"'"]).call(e,n[0])?yl(n).call(n,1,n.length-1):n:t.value;var e,n}},{key:"handleGroup",value:function(t){var e={},n=(t.groupBy.length?t.groupBy.forEach(function(t){return e[t]="$".concat(t)}):e=0,{_id:e,_countX:{$sum:1}});tl(t.countColumns).forEach(function(t){return n["_count_".concat(t)]="*"==t?{$sum:1}:{$push:"$".concat(t)}}),tl(t.countDistinctColumns).forEach(function(t){return n["_count_distinct_".concat(t)]={$addToSet:"$".concat(t)}}),t.cursor=t.cursor.group(n),kc("group by param",n)}},{key:"handleRawData",value:function(a,t){if(!Array.isArray(t)||t.length<=0)return[];kc("rawData",JSON.parse(S(t))),t.forEach(function(t){if(0e)return[];if(this.circle[i%LE].time==e)return[this.circle[i%LE]]}while(0);do{if(s<=e){o=r;break}var d=0,g=n,A=r;do{if(100 a.event_time - b.event_time);\nfor (let i = 1; i < typingEvents.length; i++) {\ninterval.push(typingEvents[i].event_time - typingEvents[i - 1].event_time);\n}\ntry {\nconst aveInterval = interval.reduce((total, value) => total + value) / interval.length;\nconst speed = 1000 / aveInterval;\nreturn speed.toFixed(2) * 1;\n} catch (error) {\nreturn -3;\n}\n}\nreturn function(event, cb) {\n\nvar cbCalled = false;\nconst sendError = function(msg) {\nif (msg instanceof Error) {\nmsg = msg.message;\n}\ncbResult.error = (typeof msg == 'string' && msg != '') ? msg : 'Unknown Error';\nsendResult();\n};\nconst sendResult = function() {\nif (cbCalled) { return; }\ncbCalled = true;\n\n\ncbResult.dvzd_all_features = [\n1, \nevent.event_name,\nnew Date().toISOString(),\ncbResult.loginCountWithin5min,\ncbResult.loginCountWithin30min,\ncbResult.loginCountWithin60min,\ncbResult.signIn_failure_cnt_by_dvid_1d,\ncbResult.signIn_not_failure_cnt_by_dvid_1d,\ncbResult.forget_cnt_by_dvid_1d,\ncbResult.use_autofill_hide_password_in_name,\ncbResult.use_autofill_in_name,\ncbResult.use_paste_in_name,\ncbResult.typing_rate_in_name,\ncbResult.click_duration ? cbResult.click_duration : [],\ncbResult.trying_to_find_user_name,\ncbResult.onload_to_next_time_simlilar\n];\n\n\ncb(cbResult);\n}; \nconst cbResult = {\nloginCountWithin5min: 0,\nloginCountWithin30min: 0,\nloginCountWithin60min: 0,\nsignIn_failure_cnt_by_dvid_1d: 0,\nsignIn_not_failure_cnt_by_dvid_1d: 0,\nforget_cnt_by_dvid_1d: 0,\nuse_autofill_hide_password_in_name: false,\nuse_autofill_in_name: false,\nuse_paste_in_name: false,\ntyping_rate_in_name: 0,\nclick_duration: [],\ntrying_to_find_user_name: false, \nonload_to_next_time_simlilar: false, \n};\ndb.execute(`select event_name,event_time from event where (event_name in (\"signInFailure\",\"buttonClick_forgotYourPassword_signInTrouble\",\"buttonClick_signIn_signInPassword\") and event_time>${Date.now() - 24 * 3600 * 1000})`, (err, result) => {\nif (err) {\nreturn sendError(err);\n}\ntry {\nconst signInEvent = result.filter(item => item.event_name == 'buttonClick_signIn_signInPassword');\ncbResult.loginCountWithin5min = signInEvent.filter(item => item.event_time > Date.now() - 5 * 60 * 1000).length;\ncbResult.loginCountWithin30min = signInEvent.filter(item => item.event_time > Date.now() - 30 * 60 * 1000).length;\ncbResult.loginCountWithin60min = signInEvent.filter(item => item.event_time > Date.now() - 60 * 60 * 1000).length;\ncbResult.signIn_failure_cnt_by_dvid_1d = result.filter(item => item.event_name == 'signInFailure').length;\ncbResult.signIn_not_failure_cnt_by_dvid_1d = signInEvent.length - cbResult.signIn_failure_cnt_by_dvid_1d;\ncbResult.forget_cnt_by_dvid_1d = result.filter(item => item.event_name == 'buttonClick_forgotYourPassword_signInTrouble').length;\ndb.execute('select event_name, event_time from event where event_name in (\"buttonClick_signIn_signInPassword\",\"ZDEN_Onload\") order by event_time desc limit 1', (err, result) => {\nif (err) {\nreturn sendError(err);\n}\ntry {\nif (result.length == 0) {\nthrow 'Failed to find last buttonClick_signIn_signInPassword or ZDEN_Onload event';\n}\nconst startTime = result[0].event_time;\ndb.execute(`select * from event where event_name in (\"ZDEN_Autofill\",\"ZDEN_Paste\",\"ZDEN_Typing\") and event_time>${startTime}`, (err, result) => {\nif (err) {\nreturn sendError(err);\n}\ntry {\nconst autofillEvents = result.filter(item => item.event_name == 'ZDEN_Autofill');\nconst pasteEvents = result.filter(item => item.event_name == 'ZDEN_Paste');\nconst typingEvents = result.filter(item => item.event_name == 'ZDEN_Typing');\ncbResult.use_autofill_hide_password_in_name = !!autofillEvents.find(item => item.target.includes('#hidden-password'));\ncbResult.use_autofill_in_name = !!autofillEvents.find(item => item.target.includes('#loginname'));\ncbResult.use_paste_in_name = !!pasteEvents.find(item => item.target.includes('#loginname'));\nconst typingEventsInName = typingEvents.filter(item => item.target.includes('#loginname'));\ncbResult.typing_rate_in_name = calcTypingSpeed(typingEventsInName);\ndb.execute('select event_name, event_time, web_page_url from event where event_name=\"ZDEN_Onload\" order by event_time desc limit 10', (err, result) => {\nif (err) {\nreturn sendError(err);\n}\ntry {\nif (result.length < 1) {\nthrow 'No ZDEN_Onload event exists';\n}\n\nresult = result.filter(item => \nitem.web_page_url.includes(\"account.booking.com/sign-in\") && \n!item.web_page_url.includes(\"account.booking.com/sign-in/password\")\n); \n\nif (result.length < 1) {\nthrow 'No ZDEN_Onload event exists';\n}\n\nconst earliestOnloadTime = result[result.length - 1].event_time;\nconst onloadEvents = result;\ndb.execute(`select event_name, event_time from event where event_name=\"buttonClick_next_signInUserName\" and event_time > ${earliestOnloadTime}`, (err, result) => {\nif (err) {\nreturn sendError(err);\n}\ntry {\nconst clickAndOnloadEvents = result.concat(onloadEvents).concat([event]).sort((a, b) => a.event_time - b.event_time);\nconst clickDuration = [];\nlet tryLoginEvent = null;\nfor (let i = 0; i < clickAndOnloadEvents.length; i++) {\nif (clickAndOnloadEvents[i].event_name == 'ZDEN_Onload') {\nif (tryLoginEvent) {\nclickDuration.push(tryLoginEvent);\n}\ntryLoginEvent = {\ntt: clickAndOnloadEvents[i].event_time,\npage_onload__username_next: 0,\nusername_next__username_next: []\n};\n}\nif (clickAndOnloadEvents[i].event_name == 'buttonClick_next_signInUserName') {\nif (!tryLoginEvent || i == 0) { continue; }\nif (clickAndOnloadEvents[i - 1].event_name == 'ZDEN_Onload') {\ntryLoginEvent.page_onload__username_next = clickAndOnloadEvents[i].event_time - clickAndOnloadEvents[i - 1].event_time;\n} else {\ntryLoginEvent.username_next__username_next.push(\nclickAndOnloadEvents[i].event_time - clickAndOnloadEvents[i - 1].event_time\n);\n}\n}\n}\n\nif (tryLoginEvent != null) {\nclickDuration.push(tryLoginEvent);\n}\ncbResult.click_duration = clickDuration;\ncbResult.trying_to_find_user_name = (tryLoginEvent.username_next__username_next.length + 1 >= 5);\nconst onloadToNextArr = clickDuration.map(cd => cd.page_onload__username_next);\nif (onloadToNextArr.length < 3) {\ncbResult.onload_to_next_time_simlilar = false;\n} else {\nlet onloadToNextSum = 0;\nonloadToNextArr.forEach(item => onloadToNextSum += item);\nconst onloadToNextAvg = onloadToNextSum / onloadToNextArr.length;\ncbResult.onload_to_next_time_simlilar = !onloadToNextArr.some(item => Math.abs(item - onloadToNextAvg) > 200); \n}\nsendResult();\n} catch (error) {\nsendError(error);\n}\n});\n} catch (error) {\nsendError(error);\n}\n});\n} catch (error) {\nsendError(error);\n}\n});\n} catch (error) {\nsendError(error);\n}\n});\n} catch (error) {\nsendError(error);\n}\n});\n};\n})();\n\ndv.mods.event.on_buttonClick_signIn_signInPassword = (function() {\nfunction calcTypingSpeed(typingEvents) {\nif (typingEvents.length == 0) {\nreturn -1;\n}\nif (typingEvents.length == 1) {\ntry {\nreturn -100 - typingEvents[0].text_length;\n} catch (e) {\nreturn -2;\n}\n}\nconst interval = [];\ntypingEvents.sort((a, b) => a.event_time - b.event_time);\nfor (let i = 1; i < typingEvents.length; i++) {\ninterval.push(typingEvents[i].event_time - typingEvents[i - 1].event_time);\n}\ntry {\nconst aveInterval = interval.reduce((total, value) => total + value) / interval.length;\nconst speed = 1000 / aveInterval;\nreturn speed.toFixed(2) * 1;\n} catch (error) {\nreturn -3;\n}\n}\nreturn function(event, cb) {\n\nvar cbCalled = false;\nconst sendError = function(msg) {\nif (msg instanceof Error) {\nmsg = msg.message;\n}\ncbResult.error = (typeof msg == 'string' && msg != '') ? msg : 'Unknown Error';\nsendResult();\n};\nconst sendResult = function() {\nif (cbCalled) { return; }\ncbCalled = true;\n\n\n\nconst aryDefaultStatus = Object.keys(cbResult).filter(x => x !== 'field_default_status').filter(x => !collectedFeatures.includes(x));\ncbResult.field_default_status = aryDefaultStatus;\n\n\ncbResult.dvzd_all_features = [\n1, \nevent.event_name,\nnew Date().toISOString(),\ncbResult.loginCountWithin5min,\ncbResult.loginCountWithin30min,\ncbResult.loginCountWithin60min,\ncbResult.signIn_failure_cnt_by_dvid_1d,\ncbResult.signIn_not_failure_cnt_by_dvid_1d,\ncbResult.forget_cnt_by_dvid_1d,\ncbResult.use_autofill_hide_password_in_name,\ncbResult.use_autofill_in_name,\ncbResult.use_paste_in_name,\ncbResult.typing_rate_in_name,\ncbResult.click_duration ? cbResult.click_duration : [],\ncbResult.trying_to_find_user_name,\ncbResult.onload_to_next_time_simlilar,\ncbResult.use_autofill_in_password,\ncbResult.use_paste_in_password,\ncbResult.modify_autofilled_password,\ncbResult.typing_rate_in_password,\ncbResult.user_id,\ncbResult.page_duration_in_signin\n];\n\ncb(cbResult);\n};\nconst cbResult = {\nloginCountWithin5min: 0,\nloginCountWithin30min: 0,\nloginCountWithin60min: 0,\nsignIn_failure_cnt_by_dvid_1d: 0,\nsignIn_not_failure_cnt_by_dvid_1d: 0,\nforget_cnt_by_dvid_1d: 0,\nuse_autofill_hide_password_in_name: false,\nuse_autofill_in_name: false,\nuse_paste_in_name: false,\ntyping_rate_in_name: 0,\nclick_duration: [],\ntrying_to_find_user_name: false, \nonload_to_next_time_simlilar: false, \nuse_autofill_in_password: false,\nuse_paste_in_password: false,\nmodify_autofilled_password: false,\ntyping_rate_in_password: 0,\nuser_id: 'DV_empty',\npage_duration_in_signin: 0,\nfield_default_status: []\n};\n\nconst collectedFeatures = [];\n\ndb.execute('select event_time,script_status from event where event_name=\"buttonClick_next_signInUserName\" order by event_time desc limit 1', (err, result) => {\nif (err) {\nreturn sendError(err);\n}\ntry {\nif (result.length == 0) {\nthrow 'Failed to find last buttonClick_next_signInUserName event';\n}\nconst startTime = result[0].event_time;\nlet priviousAutofill = false;\ntry {\npriviousAutofill = JSON.parse(result[0].script_status).use_autofill_hide_password_in_name;\n} catch (e) { }\n\nif (typeof result[0].script_status === 'string') {\nlet scriptStatusJson = null;\ntry {\nscriptStatusJson = JSON.parse(result[0].script_status)\n} catch (e) {\n}\n\nif (scriptStatusJson) {\ncbResult.loginCountWithin5min = scriptStatusJson.loginCountWithin5min || 0;\ncbResult.loginCountWithin30min = scriptStatusJson.loginCountWithin30min || 0;\ncbResult.loginCountWithin60min = scriptStatusJson.loginCountWithin60min || 0;\ncbResult.signIn_failure_cnt_by_dvid_1d = scriptStatusJson.signIn_failure_cnt_by_dvid_1d || 0;\ncbResult.signIn_not_failure_cnt_by_dvid_1d = scriptStatusJson.signIn_not_failure_cnt_by_dvid_1d || 0;\ncbResult.forget_cnt_by_dvid_1d = scriptStatusJson.forget_cnt_by_dvid_1d || 0;\ncbResult.use_autofill_hide_password_in_name = scriptStatusJson.use_autofill_hide_password_in_name || false;\ncbResult.use_autofill_in_name = scriptStatusJson.use_autofill_in_name || false;\ncbResult.use_paste_in_name = scriptStatusJson.use_paste_in_name || false;\ncbResult.typing_rate_in_name = scriptStatusJson.typing_rate_in_name || 0;\ncbResult.click_duration = scriptStatusJson.click_duration || [];\ncbResult.trying_to_find_user_name = scriptStatusJson.trying_to_find_user_name || false;\ncbResult.onload_to_next_time_simlilar = scriptStatusJson.onload_to_next_time_simlilar || false;\n\ncollectedFeatures.push('loginCountWithin5min');\ncollectedFeatures.push('loginCountWithin30min');\ncollectedFeatures.push('loginCountWithin60min');\ncollectedFeatures.push('signIn_failure_cnt_by_dvid_1d');\ncollectedFeatures.push('signIn_not_failure_cnt_by_dvid_1d');\ncollectedFeatures.push('forget_cnt_by_dvid_1d');\ncollectedFeatures.push('use_autofill_hide_password_in_name');\ncollectedFeatures.push('use_autofill_in_name');\ncollectedFeatures.push('use_paste_in_name');\ncollectedFeatures.push('typing_rate_in_name');\ncollectedFeatures.push('click_duration');\ncollectedFeatures.push('trying_to_find_user_name');\ncollectedFeatures.push('onload_to_next_time_simlilar');\n}\n}\n\ndb.execute(`select * from event where event_name in (\"ZDEN_Autofill\",\"ZDEN_Paste\",\"ZDEN_Typing\") and event_time>${startTime}`, (err, result) => {\nif (err) {\nreturn sendError(err);\n}\ntry {\nconst autofillEvents = result.filter(item => item.event_name == 'ZDEN_Autofill');\nconst pasteEvents = result.filter(item => item.event_name == 'ZDEN_Paste');\ncbResult.use_autofill_in_password = !!autofillEvents.find(item => item.target.includes('#password'));\ncollectedFeatures.push('use_autofill_in_password');\ncbResult.use_paste_in_password = !!pasteEvents.find(item => item.target.includes('#password'));\ncollectedFeatures.push('use_paste_in_password');\nconst typingEvents = result.filter(item => item.event_name == 'ZDEN_Typing');\nconst typingEventsInPassword = typingEvents.filter(item => item.target.includes('#password'));\ncbResult.typing_rate_in_password = calcTypingSpeed(typingEventsInPassword);\ncollectedFeatures.push('typing_rate_in_password');\ncbResult.modify_autofilled_password = priviousAutofill && typingEventsInPassword.length > 0;\ncollectedFeatures.push('modify_autofilled_password');\ndb.execute('select event_time from event where event_name in (\"ZDEN_PageJumpH5\",\"ZDEN_PageJumpManual\",\"ZDEN_Onload\") order by event_time desc limit 1', (err, result) => {\nif (err) {\nreturn sendError(err);\n}\ntry {\nif (result.length == 0) {\nthrow 'fail to find ZDEN_PageJumpH5 ZDEN_PageJumpManual ZDEN_Onload event';\n}\nconst page_in_time = result[0].event_time;\nif (!page_in_time) {\nthrow 'page_in_time is not valid';\n}\n\ncbResult.page_duration_in_signin = new Date().getTime() - page_in_time;\ncollectedFeatures.push('page_duration_in_signin');\ndb.execute(`select ud from event where event_name=\"reportUsername_signInUserName\" and event_time>${Date.now() - 10 * 60 * 1000} order by event_time desc limit 1`, (err, result) => { \nif (err) {\nreturn sendError(err);\n}\ntry {\nconst record = result[0];\nif (!record) {\nthrow 'Failed to find last reportUsername_signInUserName event within 10 min';\n}\nconst userName = JSON.parse(record.ud).entered_username_hashed;\nif (typeof userName == 'string') {\ncbResult.user_id = userName;\ncollectedFeatures.push('user_id');\n}\nsendResult();\n} catch (error) {\nsendError(error);\n}\n});\n} catch (error) {\nsendError(error);\n}\n});\n} catch (error) {\nsendError(error);\n}\n});\n} catch (error) {\nsendError(error);\n}\n});\n};\n})();\n\nconst EVENT_CODE = {\nZDEN_Onload: 12, \nZDEN_BeforeUnload: 13, \nZDEN_PageJumpManual: 14, \nZDEN_PageJumpH5: 15, \nZDEN_Click: 16, \nZDEN_TouchMove: 11, \nZDEN_Typing: 9, \nZDEN_Paste: 18, \nZDEN_Resize: 19, \nZDEN_NetworkRequest: 17, \nZDEN_BatteryChange: 20, \nZDEN_GoBack: 4, \nZDEN_GoFront: 5, \nZDEN_Autofill: 21, \nZDEN_Inner: 100, \nZDEN_Focus: 22, \nZDEN_Blur: 23, \n};\nconst util = {\nnow() {\nreturn new Date().getTime();\n},\nwaituntil(condition, interval = 20, cb) {\nfunction singleTurn() {\nif (condition()) {\nreturn cb();\n} else {\nsetTimeout(singleTurn, interval);\n}\n}\nsingleTurn();\n},\n};\nfunction sendMsg(msg) {\npostMessage(msg);\n}\nself.onmessage = message => {\nif (!message || !message.data || typeof message.data != 'object') {\nreturn;\n}\nconst msg = message.data;\nif (!msg._msgId_) {\nreturn;\n}\nswitch (msg.type) {\ncase 'alive': {\nsendMsg({\n_msgId_: msg._msgId_,\nstatus: 'alive'\n});\nbreak;\n}\ncase 'on_event': {\ndv.on_event(msg.event,(res) => sendMsg({\n_msgId_: msg._msgId_,\nresult: res\n}));\nbreak;\n}\ncase 'update_event_script': {\nlet success = false;\nif (msg.field && msg.script && typeof msg.field == 'string') {\nvar fun;\ntry {\neval(`fun=${msg.script}`);\n} catch (e) {\n\n}\nif (fun instanceof Function) {\ndv.mods.event[msg.field] = fun;\nsuccess = true;\n}\n}\nsendMsg({\n_msgId_: msg._msgId_,\nsuccess: success\n});\nbreak;\n}\ncase 'delete_event_script': {\nlet success = false;\nif (msg.field && typeof msg.field == 'string') {\ndelete dv.mods.event[msg.field];\nsuccess = true;\n}\nsendMsg({\n_msgId_: msg._msgId_,\nsuccess: success\n});\nbreak;\n}\ncase 'exec_feature': {\ndv.on_feature(msg.event, (result,err) => {\nsendMsg({\n_msgId_: msg._msgId_,\nerror: err,\nresult: result\n});\n},msg.scriptType, msg.scriptName);\nbreak;\n}\ncase 'db_callback': {\nconst cb = msgCallbackMap[msg._msgId_];\nif (!cb) {\nreturn;\n}\nif (msg.success) {\ncb(null, msg.result);\n} else {\ncb(msg.reason, null);\n}\ndelete msgCallbackMap[msg._msgId_];\nbreak;\n}\ncase 'get_mouse_movement_event_callback': {\nconst cb = msgCallbackMap[msg._msgId_];\nif (!cb) {\nreturn;\n}\ncb(msg.result);\nbreak;\n}\ncase 'save_cooling_callback':\ncase 'delete_cooling_callback': {\nconst cb = msgCallbackMap[msg._msgId_];\nif (!cb) {\nreturn;\n}\ncb(!!msg.success);\ndelete msgCallbackMap[msg._msgId_];\nbreak;\n}\ndefault:\nbreak;\n}\n};\ndv.on_feature = function(event,cb,scriptType, scriptName) {\ndb.execute(`select * from script where script_type=\"${scriptType}\" and script_name=\"${scriptName}\"`, (err, result) => {\nif (err) {\nreturn cb(null,'Failed when read db');\n}\nif (result.length <= 0) {\nreturn cb(null,'Failed to get script');\n}\nconst script = result[0].script_value;\nlet fun;\ntry {\neval('fun=' + script);\n} catch (e) {\nreturn cb(null,'Failed to parse function:' + script);\n}\nfun(event, cb); \n});\n};\ndv.init = function() {\ndb.execute('select script_name,script_value,script_type,script_version from script where script_type in (\"event\",\"dv\",\"library\")',(err, result) => {\nconst failedScripts = [];\ntry {\nif (err) {\n\nreturn;\n}\n\nresult.forEach(script => {\ntry {\nif (script.script_type == 'event') {\neval('dv.mods.event[script.script_name] = ' + script.script_value);\n}\nif (['dv', 'library'].includes(script.script_type)) {\neval('dv[script.script_name] = ' + script.script_value);\n}\n} catch (e) {\n\nfailedScripts.push({\ntype: script.script_type,\nname: script.script_name,\nversion: script.script_version\n});\n}\n});\n} finally {\nsendMsg({\ntype: 'created',\nfailedScripts: failedScripts\n});\nObject.freeze(dv);\n}\n\n});\n};\nfunction onEventDefaultReturn(event, cb) {\nconst callbackParamater = {};\ndv.need_to_save(event, res1 => {\ncallbackParamater.need_to_save = res1;\ndv.need_to_upload(event, res2 => {\ncallbackParamater.need_to_upload = res2;\ncb(callbackParamater);\n});\n});\n}\ndv.getMouseMovementEvents = function(startTime, endTime, cb) {\nconst id = msgId++;\nmsgCallbackMap[id] = cb;\nsendMsg({\n_msgId_: id,\ntype: 'get_mouse_movement_event',\nstartTime: startTime,\nendTime: endTime\n});\n};\ndv.isOneLineBasic = function(mouseMoveEvents, pixelLimit, percentageLimit) {\nif (mouseMoveEvents.length <= 2) {\nreturn false;\n}\ntry {\nlet startPoint = mouseMoveEvents[0];\nlet endPoint = mouseMoveEvents[mouseMoveEvents.length - 1];\nlet pointInTheLine;\nif (endPoint.x == startPoint.x) {\nif (endPoint.y == startPoint.y) {\n\nreturn false;\n} else {\n\npointInTheLine = point => Math.abs(point.x - startPoint.x) < pixelLimit;\n}\n} else {\n\nlet k = (endPoint.y - startPoint.y) / (endPoint.x - startPoint.x);\nlet b = startPoint.y - k * startPoint.x;\npointInTheLine = point => Math.abs(k * point.x + b - point.y) < pixelLimit;\n}\nlet inLineDot = 0;\nmouseMoveEvents.forEach(evt => {\nif (pointInTheLine(evt)) {\ninLineDot++;\n}\n});\nif (inLineDot / mouseMoveEvents.length >= percentageLimit) {\nreturn true;\n} else {\nreturn false;\n}\n} catch (error) {\nreturn false;\n}\n};\ndv.isOneLine = function(mouseMoveEvents) {\nreturn dv.isOneLineBasic(mouseMoveEvents, 2, 0.95);\n};\ndv.on_event = function(event,cb) {\n\nlet key = 'on_' + event.event_name;\n\nif (key in dv.mods.event) {\n\ntry {\ndv.mods.event[key](event, result => { \nresult = result || {};\nif (!('need_to_save' in result)) {\ndv.need_to_save(event, res => result.need_to_save = res);\n}\nif (!('need_to_upload' in result)) {\ndv.need_to_upload(event, res => result.need_to_upload = res);\n}\nutil.waituntil(\n() => 'need_to_save' in result && 'need_to_upload' in result,\n50,\n() => cb(result)\n);\n});\n} catch (e) {\n\nonEventDefaultReturn(event,cb);\n}\n} else {\n\nonEventDefaultReturn(event,cb);\n}\n};\n\n\n\n\ndv.need_to_upload = function (event, cb) {\nif (event.event_type == 2) {\nreturn cb(false);\n} else {\nreturn cb(true);\n}\n};\ndv.need_to_save = function(event, cb) {\nreturn cb(true);\n};\n\n\ndv.cooling = function(name, alpha, window) {\nreturn {\nname: name,\ntime: util.now(),\nwindow: window,\nalpha: alpha,\nheat: 0,\nfetch: function(cb) {\nif (!this.name) {\nreturn cb(false);\n}\ndb.execute(`select * from cooling where name=\"${this.name}\"`,(err,result) => {\nif (err) {\nreturn cb(false);\n}\ntry {\nconst unit = result[0];\nthis.time = unit.time;\nthis.window = unit.window;\nthis.alpha = unit.alpha;\nthis.heat = unit.heat;\nreturn cb(true);\n} catch (e) {\nreturn cb(false);\n}\n});\n},\nsave: function(cb) {\ncb = cb || function() {};\nif ( !this\n|| !this.name\n|| typeof this.name != 'string'\n|| typeof this.heat != 'number'\n|| typeof this.window != 'number'\n|| typeof this.alpha != 'number'\n|| typeof this.time != 'number') {\nreturn cb(false);\n}\nconst id = msgId++;\nmsgCallbackMap[id] = cb;\nsendMsg({\n_msgId_: id,\ntype: 'save_cooling',\nunit: {\nname: this.name,\nheat: this.heat,\nwindow: this.window,\nalpha: this.alpha,\ntime: this.time\n}\n});\n},\ndelete: function(cb) {\ncb = cb || function() {};\nif (!this.name || typeof this.name != 'string') {\nreturn cb(false);\n}\nconst id = msgId++;\nmsgCallbackMap[id] = cb;\nsendMsg({\n_msgId_: id,\ntype: 'delete_cooling',\nname: this.name\n});\n},\nupdate: function(addHeat,time, cb) {\nif (!addHeat || typeof addHeat != 'number') {\naddHeat = 0;\n}\nif (time == undefined || time == null || time != 'number') {\ntime = util.now();\n}\nthis.heat = this.calculate(time) + addHeat;\nthis.time = time;\nthis.save(cb);\n},\ncalculate: function(time) {\nif (time == undefined || time == null || time != 'number') {\ntime = util.now();\n}\nreturn this.heat * Math.exp(this.alpha * (time - this.time) / this.window);\n}\n};\n};\ndv.lib_base = {\ntest: () => { console.log('origin lib_base !!!')},\n};\n\n\ndv.init();\n"]);this.url=D0.createObjectURL(t),this.worker=new Worker(this.url),this.worker.onmessage=this.onWorkerMessage.bind(this)}catch(t){Bc("error happens when starting worker",t),this.status=OE.failed}}var r,n,i,o,a;return Da(e,[{key:"keepAlive",value:function(){var e=this;this.aliveTimer=qc(Sa(y.mark(function t(){return y.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sendMessage({type:"alive"});case 3:e.keepAlive(),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),"timeout"==t.t0?e.restart():e.keepAlive();case 9:case"end":return t.stop()}},t,null,[[0,6]])})),1e4)}},{key:"restart",value:function(){Sc("restart worker"),this.worker.terminate(),this.status=OE.initing,this.worker=new Worker(this.url),this.worker.onmessage=this.onWorkerMessage.bind(this)}},{key:"onWorkerMessage",value:(a=Sa(y.mark(function t(e){var n,r,i,o,a,s,u;return y.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e.data&&"object"==E(e.data)){t.next=2;break}return t.abrupt("return");case 2:if("created"==(n=e.data).type)return Tc("worker ready"),this.status=OE.ready,this.keepAlive(),this.loadFailedScripts=[],Array.isArray(n.failedScripts)&&0