anys-web 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(){var t={d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};!function(){"use strict";function r(t){return Array.isArray(t)}function n(t,e){return"function"==typeof t&&(!e||!function(t,e){if("function"!=typeof t)return!1;if(t===Symbol)return!1;if(!t.prototype)return!1;var r=t+"",n=r.slice(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),o=0===r.indexOf("class "),i="[native code]"===n,u=o||i;if(e>=4)return u;var a=n.replace(/function.*?\{.*?\}/gm,"").replace(/return/gm,"").replace(/\n+/gm,";").replace(/\s+/gm,"").replace(/;;/gm,";"),c=/^_classCallCheck\(this,/.test(a),f=/^\(.*?_classCallCheck.*?\)\(this,/.test(a),s=/^[0-9a-zA-Z_;!?:]*?\(this,/.test(a),l=u||c||f||s;if(3==e)return l;var p=Object.getOwnPropertyDescriptors(t.prototype),y=!!Object.keys(p).filter((function(t){return"constructor"!==t})).length,v=l||y;if(2==e)return v;var m=0===a.indexOf("this.")||a.indexOf(";this.")>-1||a.indexOf("=this;")>-1,d=v||m;if(1==e)return d;return!0}(t,2))}function o(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e="0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ",r="",n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function i(t,e,n){var o;return n?(o=Object.getOwnPropertyDescriptors(t),void Object.keys(o).forEach((function(r){var n=o[r],i=n.get,u=n.set,a=n.enumerable,c=n.configurable,f=n.writable;(a||i||u||c&&f)&&e(n,r,t)}))):void(r(t)?t.forEach(e):Object.keys(t).forEach((function(r){var n=t[r];e(n,r,t)})))}t.r(e),t.d(e,{create:function(){return zr}});Symbol("Proxy");var u=["filters","plugins"],a=["filters","plugins","defines"];function c(){c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,u=Object.create(i.prototype),a=new I(n||[]);return o(u,"_invoke",{value:L(t,r,a)}),u}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var v="suspendedStart",m="suspendedYield",d="executing",h="completed",b={};function g(){}function w(){}function O(){}var S={};s(S,u,(function(){return this}));var j=Object.getPrototypeOf,P=j&&j(j(D([])));P&&P!==r&&n.call(P,u)&&(S=P);var E=O.prototype=g.prototype=Object.create(S);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,u,a){var c=p(t[o],t,i);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==y(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,u,a)}),(function(t){r("throw",t,u,a)})):e.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,a)}))}a(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=v;return function(i,u){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw u;return{value:t,done:!0}}for(n.method=i,n.arg=u;;){var a=n.delegate;if(a){var c=T(a,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var f=p(e,r,n);if("normal"===f.type){if(o=n.done?h:m,f.arg===b)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=h,n.method="throw",n.arg=f.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var u=i.arg;return u?u.done?(r[e.resultName]=u.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return w.prototype=O,o(E,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=s(O,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},x(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var u=new _(l(t,r,n,o),i);return e.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},x(E),s(E,f,"Generator"),s(E,u,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=D,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=n.call(u,"catchLoc"),f=n.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function f(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){f(i,n,o,u,a,"next",t)}function a(t){f(i,n,o,u,a,"throw",t)}u(void 0)}))}}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e,r){return(e=g(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function g(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===y(e)?e:String(e)}var w=function(){function t(e){var c=this;this._events=[],this._queue=[];var f,s=(f=this,Object.getPrototypeOf(f).constructor),p=m(m({},t.defaultOptions),s.defaultOptions||{}),v=p.filters,d=void 0===v?[]:v,b=p.plugins,g=void 0===b?[]:b,w=h(p,u),j=e||{},P=j.filters,E=void 0===P?[]:P,x=j.plugins,_=void 0===x?[]:x,L=j.defines,T=void 0===L?[]:L,k=h(j,a),A={},I=[],D={},N=_&&!r(_)&&"object"===y(_),q=N?O(_):r(_)?_:[],M=N?Object.keys(_).map((function(t){return{key:t,value:_[t]}})):[],R=[].concat(l(g),l(q));!function t(e){e.forEach((function(e){var r=e.dependencies||[];r.forEach((function(t){R.unshift(t)})),t(r)}))}(R);var C=R.filter((function(t,e){return e===R.indexOf(t)})),B=[],U={};C.forEach((function(t){var e,r,n,o=null===(e=M.find((function(e){return e.value===t})))||void 0===e?void 0:e.key;if(o&&U[o])return n="plugin named '".concat(r=o,"' has been registered"),void(U[r]instanceof t?console.debug(n,t,U):console.error(n,t,U));var i=(t.dependencies||[]).map((function(t){return B.find((function(e){return e instanceof t}))})),u=new t(c,i);u.options&&S(A,u.options()),u.defines&&S(D,u.defines()),u.filters&&I.push.apply(I,l(u.filters())),B.push(u),o&&(U[o]=u)})),this._pluginList=B,this.plugins=U,this.options=m(m(m({},w),A),k),this.filters=[].concat(l(d),I,l(E));var $=O(this.options).find((function(t){return t&&t instanceof Error}));if($)throw $;var F=m(m({},D),T);this.definitions=F,this.clientId=F.client?F.client():o(8),this.traceId=F.trace?F.trace():o(8),this.requestId=o(8);var H={};Object.defineProperties(H,function(t,e){if(r(t))return t.map(e);var n={};return i(t,(function(r,o){n[o]=e(r,o,t)})),n}(F,(function(t){return{get:n(t)?t:function(){return t},enumerable:!0,configurable:!0}}))),Object.defineProperties(H,{client:{get:function(){return c.clientId},enumerable:!0,configurable:!0},trace:{get:function(){return c.traceId},enumerable:!0,configurable:!0},request:{get:function(){return c.requestId},enumerable:!0,configurable:!0}}),this._basicLog=H,this.invoke("init"),this._inited=!0,this.invoke("ready"),this.options.autoStart&&this.start()}var e,f,p,v=t.prototype;return v.define=function(t,e){Object.defineProperty(this._basicLog,t,{get:e,enumerable:!0,configurable:!0})},v.on=function(t,e){this._events.push([t,e])},v.off=function(t,e){var r=this;this._events.forEach((function(n,o){n[0]===t&&n[1]===e&&r._events.splice(o,1)}))},v.emit=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this._events.forEach((function(e){e[0]!==t&&"*"!==e[0]||e[1].apply(e,r)}))},v.invoke=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];for(var i=0,u=this._pluginList.length;i<u;i+=1){var a=this._pluginList[i];a[t]&&(n(a[t])&&a[t].apply(a,r))}},v.refreshTraceId=function(){var t=this.traceId;this.traceId=this.definitions.trace?this.definitions.trace():o(8),this.emit("refreshTraceId",{prev:t,next:this.traceId})},v.refreshRequestId=function(){var t=this.requestId;this.requestId=o(8),this.emit("refreshRequestId",{prev:t,next:this.requestId})},v.start=function(){this.invoke("start"),this.emit("start")},v.write=function(t){if(!this._inited)throw new Error("could not write before ready");for(var e=m(m({},this._basicLog),t),r=this.filters,o=0,i=r.length;o<i;o+=1){if(!(0,r[o])(e))return}for(var u=0,a=this._pluginList.length;u<a;u+=1){var c=this._pluginList[u];n(c.filter)&&!c.filter(e)||n(c.write)&&c.write(e)}this.emit("write",e)},v.report=function(t){var e,r,o=this;if(!this._inited)throw new Error("could not report before ready");var i=new Promise((function(t,n){e=t,r=n})),u={message:t,resolve:e,reject:r};this._queue.push(u);var a=function(){var e=s(c().mark((function e(r){var n,i,u,a,f;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],i=[],r.forEach((function(e){if(e.read){var r=function(t){e.data=t,null!=t&&t.length&&n.push.apply(n,l(t))},o=e.read(t);o instanceof Promise?(o.then(r),i.push(o)):r(o)}})),!i.length){e.next=8;break}return e.next=6,Promise.all(i).then((function(){o.emit("read",t,n)}));case 6:e.next=9;break;case 8:o.emit("read",t,n);case 9:if(u=[],r.forEach((function(t){if(t.arrange){var e=function(e){t.chunks=e},r=t.arrange(t.data,n);r instanceof Promise?(r.then(e),u.push(r)):e(r)}})),!u.length){e.next=16;break}return e.next=14,Promise.all(u).then((function(){o.emit("arrage",t,r.map((function(t){return t.chunks})))}));case 14:e.next=17;break;case 16:o.emit("arrage",t,r.map((function(t){return t.chunks})));case 17:if(a=[],r.forEach((function(t){t.send&&(t.chunks||[n]).forEach((function(e){var r=t.send(e);r instanceof Promise&&a.push(r)}))})),!a.length){e.next=24;break}return e.next=22,Promise.all(a).then((function(){o.emit("send",t,r.map((function(t){return t.chunks})))}));case 22:e.next=25;break;case 24:o.emit("send",t,r.map((function(t){return t.chunks})));case 25:if(f=[],r.forEach((function(t){t.clear&&(t.chunks||[n]).forEach((function(e){var r=t.clear(e);r&&r instanceof Promise&&f.push(r)}))})),!f.length){e.next=32;break}return e.next=30,Promise.all(f).then((function(){o.emit("clear",t,r.map((function(t){return t.chunks})))}));case 30:e.next=33;break;case 32:o.emit("clear",t,r.map((function(t){return t.chunks})));case 33:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();this._reporting=!1;var f=function(){var t=s(c().mark((function t(){var e,r,i,u,s,l,p,y,v,m,d;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o._reporting){t.next=2;break}return t.abrupt("return");case 2:if(o._reporting=!0,e=o._queue.shift()){t.next=6;break}return t.abrupt("return");case 6:for(r=e.message,i=e.resolve,u=e.reject,o.emit("report",r),t.prev=8,l=[s=[]],p=0,y=o._pluginList.length;p<y;p+=1)v=o._pluginList[p],m={},d=0,n(v.read)&&(m.read=v.read.bind(v),d++),n(v.arrange)&&(m.arrange=v.arrange.bind(v),d++),n(v.send)&&(m.send=v.send.bind(v),d++),n(v.clear)&&(m.clear=v.clear.bind(v),d++),4===d?l.push([m]):d&&s.push(m);return t.next=14,Promise.all(l.map(a));case 14:i(),t.next=20;break;case 17:t.prev=17,t.t0=t.catch(8),u(t.t0);case 20:o._reporting=!1,f();case 22:case"end":return t.stop()}}),t,null,[[8,17]])})));return function(){return t.apply(this,arguments)}}();return f(),i},v.stop=function(){this.invoke("stop"),this.emit("stop")},e=t,f&&b(e.prototype,f),p&&b(e,p),Object.defineProperty(e,"prototype",{writable:!1}),e}();function O(t){return Object.keys(t).map((function(e){return t[e]}))}function S(t,e){return Object.keys(e).forEach((function(r){var n=e[r];t[r]=n})),t}function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach((function(e){x(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==j(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===j(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function T(t,e){if(t.indexOf("?")<0){var r=Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&"),n=_(t.split("#"),2),o=n[0],i=n[1];return o+"?"+r+(i?"#"+i:"")}var u=_(t.split("?"),2),a=u[0],c=_(u[1].split("#"),2),f=c[0],s=c[1],l=f.split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var r=_(e,2),n=r[0],o=r[1];return E(E({},t),{},x({},n,o))}),{});return Object.assign(l,e),a+"?"+Object.keys(l).map((function(t){return"".concat(t,"=").concat(l[t])})).join("&")+(s?"#"+s:"")}function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,I(n.key),n)}}function I(t){var e=function(t,e){if("object"!==k(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===k(e)?e:String(e)}w.defaultOptions={autoStart:!0};var D=function(){function t(t){this.anys=t,this.$effects={}}var e,r,n,o=t.prototype;return o.start=function(){var t=this;if(this.options){var e=this.options(),r=Object.keys(e),n=this.anys.options;r.forEach((function(e){n[e]&&function(e){var r="register".concat(e.replace(e[0],e[0].toUpperCase()));if(t[r]){var n=t[r]();t.$effects[e]=n}}(e)}))}},o.stop=function(){var t=this;if(this.options){var e=this.options(),r=Object.keys(e),n=this.anys.options;r.forEach((function(e){var r=t.$effects[e];n[e]&&r&&r(),t.$effects[e]=null}))}},e=t,r&&A(e.prototype,r),n&&A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return M(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function R(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,C(n.key),n)}}function C(t){var e=function(t,e){if("object"!==N(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===N(e)?e:String(e)}var B=function(){function t(){this.$events=[]}var e,r,n,o=t.prototype;return o.on=function(t,e){this.$events.push([t,e])},o.emit=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.$events.forEach((function(e){var n=q(e,2),o=n[0],i=n[1];t===o&&i.apply(void 0,r)}))},o.off=function(t,e){var r=this;this.$events.forEach((function(n,o){var i=q(n,2),u=i[0],a=i[1];t===u&&a===e&&r.$events.splice(o,1)}))},e=t,r&&R(e.prototype,r),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function $(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,X(n.key),n)}}function F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function H(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?H(Object(r),!0).forEach((function(e){K(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function K(t,e,r){return(e=X(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function X(t){var e=function(t,e){if("object"!==U(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===U(e)?e:String(e)}var Y,G,W=new B;Y=window.XMLHttpRequest,window.__XMLHttpRequest=Y,window.XMLHttpRequest=function(){var t=new Y,e={open:t.open,send:t.send},r={name:o(4)},n=function(e){var n,o,i=r.name,u=r.url,a=r.method;t.responseType&&"text"!==t.responseType?"json"===t.responseType&&(n=t.response,o="json"):(n=t.responseText.toString(),o="text"),W.emit("xhr",{type:e,time:Date.now(),name:"xhr_".concat(i),url:u,detail:{status:t.status,method:a,responseType:o,response:n||void 0}})},i=function(){4===t.readyState&&(2===Math.floor(t.status/100)?n("xhr.ok"):n("xhr.fail"))};return Object.defineProperty(t,"open",{get:function(){return function(n,o){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u={method:n,url:o};W.emit("request",u),Object.assign(r,z(z({},u),{},{async:i})),t.onreadystatechange&&(e.onreadystatechange=t.onreadystatechange);for(var a=e.open,c=arguments.length,f=new Array(c>3?c-3:0),s=3;s<c;s++)f[s-3]=arguments[s];return a.call.apply(a,[t,u.method,u.url,i].concat(f))}},configurable:!0}),Object.defineProperty(t,"send",{get:function(){return function(n){var o=e.send,u=r.async;Object.assign(r,{body:n}),function(){var t=r.name,e=r.url,n=r.method,o=r.async,i=r.body;W.emit("xhr",{type:"xhr.req",time:Date.now(),name:"xhr_".concat(t),url:e,detail:{method:n,async:o,body:i}})}();var a=o.call(t,n);return u||i(),a}},configurable:!0}),t.addEventListener("error",(function(){n("xhr.err")})),t.addEventListener("readystatechange",(function(t){i()})),t},G=window.fetch,window.__fetch=G,window.fetch=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.method,n=e.body,i=o(4);W.emit("fetch",{type:"fetch.init",time:Date.now(),name:"fetch_".concat(i),url:t,detail:{body:n,method:r}});var u={method:r,url:t};return W.emit("request",u),Promise.resolve().then((function(){return G(u.url,e)})).then((function(e){var n=e.status;return 2===Math.floor(n/100)?new Proxy(e,{get:function(o,u){return"json"===u||"text"===u?function(){return e[u]().then((function(e){return W.emit("fetch",{type:"fetch.ok",time:Date.now(),name:"fetch_".concat(i),url:t,detail:{status:n,data:e,method:r}}),e}))}:"function"==typeof e[u]?e[u].bind(e):e[u]}}):(W.emit("fetch",{type:"fetch.fail",time:Date.now(),name:"fetch_".concat(i),url:t,detail:{status:n,method:r}}),e)}),(function(e){var n;if(e instanceof Error){var o=e.name,u=e.message;n={method:r,type:o,err:u}}else n={method:r,err:e};W.emit("fetch",{type:"fetch.err",time:Date.now(),name:"fetch_".concat(i),url:t,detail:n})}))};var Z=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{xhr:!0,fetch:!0,ajaxResponse:!0,patchRequestId:!0}},i.registerXhr=function(){var t=this,e=function(e){t.anys.options.ajaxResponse||"xhr.ok"!==e.type||delete e.detail.response,t.anys.write(e)};return W.on("xhr",e),function(){return W.off("xhr",e)}},i.registerFetch=function(){var t=this,e=function(e){t.anys.options.ajaxResponse||"fetch.ok"!==e.type||delete e.detail.data,t.anys.write(e)};return W.on("fetch",e),function(){return W.off("fetch",e)}},i.registerPatchRequestId=function(){var t=this,e=function(e){var r=e.url,n=t.anys,o=T(r,{_request_id:n.traceId+n.requestId});e.url=o};return W.on("request",e),function(){return W.off("request",e)}},r=e,n&&$(r.prototype,n),o&&$(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function V(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Q(n.key),n)}}function Q(t){var e=function(t,e){if("object"!==J(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===J(e)?e:String(e)}var tt=function(){function t(t){this.anys=t}var e,r,n,i=t.prototype;return i.options=function(){return{namespace:new Error("options.namespace is required!")}},i.defines=function(){return{client:this.defineClientId.bind(this),trace:this.defineTraceId.bind(this)}},i.defineClientId=function(){var t=this.anys.options.namespace,e="Anys.".concat(t,".clientId"),r=localStorage.getItem(e);return r||(r=o(8),sessionStorage.setItem(e,r)),r},i.defineTraceId=function(){var t=this.anys.options.namespace,e="Anys.".concat(t,".traceId"),r=o(8);return sessionStorage.setItem(e,r),r},e=t,r&&V(e.prototype,r),n&&V(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,r=t.nodeName,n=t.path;if(n)return n;if("BODY"===r||"HTML"===r||"HEAD"===r)return r;var o=[],i=t,u=t.parentNode,a=function(t){var e=t.nodeName,r=t.parentNode;return r?[].filter.call(r.childNodes,(function(t){return t.nodeName===e})).indexOf(t):-1};if("#"===r[0]){var c=a(t);o.push("".concat(r,":").concat(c)),u=(i=u).parentNode}for(;u&&i!==e;){var f=i.nodeName;if("BODY"===f||"HTML"===f||"HEAD"===f)o.push(f);else{var s=a(i);o.push("".concat(f.toLowerCase(),":").concat(s))}u=(i=u).parentNode}return o.reverse(),o.join("/")}function rt(t){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(t)}function nt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ot(n.key),n)}}function ot(t){var e=function(t,e){if("object"!==rt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rt(e)?e:String(e)}function it(t,e){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},it(t,e)}var ut=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{input:!0}},i.registerInput=function(){var t=this,e=function(e){return function(r){var n=r.target,o=r.type,i=r.inputType,u=r.data;if("insertCompositionText"!==i&&("compositionend"!==o||u)){var a=n.tagName,c=n.value;if(!n.getAttribute("anys-ignore")){var f=n.getAttribute("type"),s=e({tagName:a,value:c,type:f,target:n});if(s){var l={type:"input",time:Date.now(),el:et(n),detail:s};t.anys.write(l)}}}}},r=e((function(t){var e=t.tagName,r=t.value,n=t.type;return"INPUT"===e&&"radio"!==n&&"checkbox"!==n&&"password"!==n?{value:r,type:n}:"INPUT"===e&&"password"===n?{value:"***",type:n}:"TEXTAREA"===e?{value:r,type:"textarea"}:void 0})),n=e((function(t){var e=t.tagName,r=t.value,n=t.type;return"SELECT"===e?{value:r,type:"select"}:"INPUT"!==e||"radio"!==n&&"checkbox"!==n?void 0:{value:r,type:n}})),o=e((function(t){var e=t.tagName,r=t.value,n=t.type;return"TEXTAREA"===e?{value:r,type:"textarea"}:"INPUT"===e?{value:r,type:n}:void 0}));return document.addEventListener("input",r,!0),document.addEventListener("compositionend",r,!0),document.addEventListener("change",n,!0),document.addEventListener("paste",o,!0),function(){document.removeEventListener("input",r),document.removeEventListener("compositionend",r),document.removeEventListener("change",n),document.removeEventListener("paste",o)}},r=e,n&&nt(r.prototype,n),o&&nt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function at(t){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(t)}function ct(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ft(n.key),n)}}function ft(t){var e=function(t,e){if("object"!==at(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===at(e)?e:String(e)}function st(t,e){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},st(t,e)}var lt=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&st(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{mouse:!("ontouchend"in document),click:!0,mousemove:!1,mousedown:!1,mouseup:!1,wheel:!1,contextmenu:!1}},i.addEventListener=function(t,e){if(this.anys.options.mouse){var r=this.createThrottleListener((function(e){var r=window,n=r.innerWidth,o=r.innerHeight,i=e.target,u=e.button,a=e.pageX,c=e.pageY;return{type:t,time:Date.now(),detail:{e:et(i),w:n,h:o,x:a,y:c,button:u}}}),e);return document.addEventListener(t,r,!0),function(){return document.removeEventListener(t,r)}}},i.registerClick=function(){return this.addEventListener("click")},i.registerMouseup=function(){return this.addEventListener("mouseup")},i.registerMousedown=function(){return this.addEventListener("mousedown")},i.registerContextmenu=function(){return this.addEventListener("contextmenu")},i.registerMousemove=function(){return this.addEventListener("mousemove",100)},i.registerWheel=function(){if(this.anys.options.mouse){var t="wheel",e=this.createThrottleListener((function(e){var r=e.target,n=e.deltaX,o=e.deltaY,i=e.deltaZ,u=e.deltaMode;return{type:t,time:Date.now(),detail:{e:et(r),deltaX:n,deltaY:o,deltaZ:i,mode:u}}}),100);return document.addEventListener(t,e),function(){return document.removeEventListener(t,e)}}},i.createThrottleListener=function(t,e){var r=this,n=0,o=0;return function(i){if(!n){var u=Date.now();if(!(e&&o+e>u)){var a=t(i);requestAnimationFrame((function(){r.anys.write(a),n=0,o=Date.now()})),n=1}}}},r=e,n&&ct(r.prototype,n),o&&ct(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function yt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vt(n.key),n)}}function vt(t){var e=function(t,e){if("object"!==pt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pt(e)?e:String(e)}function mt(t,e){return mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mt(t,e)}var dt={type:"window_activity.enter",time:Date.now()},ht=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mt(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{activity:!0,deadTimeout:0}},i.ready=function(){this.anys.options.activity&&this.anys.write(dt)},i.registerActivity=function(){var t=this,e=function(){if("hidden"===document.visibilityState){var e={type:"window_activity.focusout",time:Date.now()};t.anys.write(e)}else{var r={type:"window_activity.focusin",time:Date.now()};t.anys.write(r)}},r=function(){var e={type:"window_activity.unload",time:Date.now()};t.anys.write(e)};return window.addEventListener("beforeunload",r,!0),document.addEventListener("visibilitychange",e,!0),function(){window.removeEventListener("beforeunload",r),document.removeEventListener("visibilitychange",e)}},i.registerDeadTimeout=function(){var t=this,e=this.anys.options.deadTimeout;if(e){var r,n=function(){clearTimeout(r),r=setTimeout((function(){var e={type:"window_activity.dead",time:Date.now()};t.anys.write(e)}),e)};return document.addEventListener("keydown",n,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",n,!0),document.addEventListener("touchmove",n,!0),document.addEventListener("mousemove",n,!0),document.addEventListener("scroll",n,!0),window.addEventListener("resize",n,!0),function(){document.removeEventListener("keydown",n),document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n),document.removeEventListener("touchmove",n),document.removeEventListener("mousemove",n),document.removeEventListener("scroll",n),window.removeEventListener("resize",n)}}},r=e,n&&yt(r.prototype,n),o&&yt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function gt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wt(n.key),n)}}function wt(t){var e=function(t,e){if("object"!==bt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bt(e)?e:String(e)}function Ot(t,e){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ot(t,e)}var St=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ot(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{url:!0}},i.registerUrl=function(){var t=this,e=function(){t.recordUrl()};return window.addEventListener("hashchange",e),window.addEventListener("popstate",e),this.recordUrl(),function(){window.removeEventListener("hashchange",e),window.removeEventListener("popstate",e)}},i.recordUrl=function(){var t=window.location.href,e=new URL(t),r=e.pathname.replace(/^([^/])/,"/$1"),n={type:"url",time:Date.now(),url:t,detail:{uri:r+(e.search?"?".concat(e.search):""),path:r,protocol:e.protocol.replace(":",""),host:e.hostname,port:e.port,search:e.search,hash:e.hash.replace("#","")}};this.anys.write(n)},r=e,n&>(r.prototype,n),o&>(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function jt(t){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function Pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Et(n.key),n)}}function Et(t){var e=function(t,e){if("object"!==jt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===jt(e)?e:String(e)}function xt(t,e){return xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xt(t,e)}var _t=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xt(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){var t="ontouchend"in document;return{touch:t,touchstart:t,touchend:t,touchmove:t}},i.addEventListener=function(t){var e=this;if(this.anys.options.touch){var r=0,n=function(n){if(!r){var o=window,i=o.innerWidth,u=o.innerHeight,a=n.target,c=n.identifier,f=n.force,s=n.pageX,l=n.pageY,p={type:t,time:Date.now(),detail:{e:et(a),width:i,height:u,x:s,y:l,identifier:c,force:f}};requestAnimationFrame((function(){e.anys.write(p),r=0})),r=1}};return document.addEventListener(t,n,!0),function(){return document.removeEventListener(t,n)}}},i.registerTouchmove=function(){return this.addEventListener("touchmove")},i.registerTouchend=function(){return this.addEventListener("touchend")},i.registerTouchstart=function(){return this.addEventListener("touchstart")},r=e,n&&Pt(r.prototype,n),o&&Pt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function Tt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kt(n.key),n)}}function kt(t){var e=function(t,e){if("object"!==Lt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lt(e)?e:String(e)}var At=function(){function t(){this.queue=[],this.status=0}var e,r,n;return t.prototype.push=function(t){var e,r,n=this,o=new Promise((function(t,n){e=t,r=n})),i={runner:t,resolve:e,reject:r};this.queue.push(i);return this.status||function t(){setTimeout((function(){if(n.queue.length){var e=n.queue.shift(),r=e.runner,o=e.resolve,i=e.reject;r().then(o,i).finally(t)}else n.status=0}),0),n.status=1}(),o},e=t,r&&Tt(e.prototype,r),n&&Tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Dt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nt(t){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(t)}function qt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rt(n.key),n)}}function Mt(t,e,r){return e&&qt(t.prototype,e),r&&qt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rt(t){var e=function(t,e){if("object"!==Nt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Nt(e)?e:String(e)}var Ct=function(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,r=t.version,n=void 0===r?1:r,o=t.stores,i=!e;e||(e="__indb__"),o&&Array.isArray(o)&&o.length||(o=[{name:"__indb__",isKv:!0}]),this.cache={},this.connection=null,this.name=e,this.version=n,this.stores=o;var u=indexedDB.open(e,n);if(u.onupgradeneeded=function(t){var e=t.target.result,r=Array.from(e.objectStoreNames),n=[];o.forEach((function(o){var i=null;if(r.indexOf(o.name)>-1)i=t.target.transaction.objectStore(o.name);else{var u=o.isKv?"key":o.primaryKeyPath,a=!o.isKv&&o.autoIncrement;i=e.createObjectStore(o.name,{keyPath:u,autoIncrement:a})}var c=i.indexNames;c&&c.length&&Array.from(c).forEach((function(t){return i.deleteIndex(t)})),o.indexes&&o.indexes.length&&o.indexes.forEach((function(t){i.createIndex(t.name,t.keyPath||t.name,{unique:t.unique,multiEntry:Array.isArray(t.keyPath)})})),n.push(o.name)})),r&&r.forEach((function(t){-1===n.indexOf(t)&&e.deleteObjectStore(t)}))},u.onblocked=function(t){console.error($t(new Error("indexedDB "+e+" is blocked")))},i)return this.use(e)}var e=t.prototype;return e.connect=function(){var t=this;return new Promise((function(e,r){var n=indexedDB.open(t.name,t.version);n.onerror=function(t){r($t(t))},n.onsuccess=function(t){e(t.target.result)}}))},e.use=function(t){var e=this.stores.find((function(e){return e.name===t}));if(!e)throw new Error("[InDB]: store ".concat(t," is not existing."));if(this.cache[t])return this.cache[t];var r=new Bt({db:this,store:e});return e.isKv&&Object.defineProperties(r,{key:{value:function(t){return r.keys().then((function(e){return e&&e[t]}))}},getItem:{value:function(t){return r.get(t).then((function(t){return t&&t.value}))}},setItem:{value:function(t,e){return r.put({key:t,value:e})}},removeItem:{value:function(t){return r.delete(t)}}}),this.cache[t]=r,r},e.close=function(){return this.cache=null,this.stores=null,this.connect().then((function(t){t.close()}))},t.deleteDatabase=function(t){return new Promise((function(e,r){var n=indexedDB.deleteDatabase(t);n.onsuccess=function(){e()},n.onerror=function(t){r(t)}}))},t.databases=function(){return indexedDB.databases()},Mt(t)}(),Bt=function(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.store,r=t.db;if("object"!==Nt(e)||!e.name||"string"!=typeof e.name)throw new Error("[InDBStore]: options.store should be a store config object.");if(!(r instanceof Ct))throw new Error("[InDBStore]: options.db should be an instanceof InDB.");this.db=r,this.store=e,this.name=e.name,this.primaryKeyPath=e.isKv?"key":e.primaryKeyPath,this._queue=[]}var e=t.prototype;return e.transaction=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=function(){var r=t.name,n=e?"readwrite":"readonly",o=t.db.connection;return(o?Promise.resolve(o):t.db.connect()).then((function(e){t.db.connection=e;var o=e.transaction(r,n),i=function(){t.db.connection=null,t._queue.shift()};return o.oncomplete=i,o.onabort=i,o.onerror=i,o}))},n=this._queue[this._queue.length-1],o=n?n.then((function(){return r()})):r();return this._queue.push(o),o},e.objectStore=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.name;return this.transaction(t).then((function(t){return t.objectStore(e)}))},e.cursor=function(t){var e=t.index,r=t.range,n=t.direction,o=t.onTouch,i=t.onDone,u=t.onError,a=t.writable,c=void 0!==a&&a;return this.objectStore(c).then((function(t){var a=e?t.index(e):t,c=a.openCursor(r,n);c.onsuccess=function(t){var e=t.target.result;e?o(e,a):i(e,a)},c.onerror=function(t){u($t(t))}}))},e.request=function(t){var e=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).writable,n=void 0!==r&&r;return new Promise((function(r,o){e.objectStore(n).then((function(e){var n=t(e);n.onsuccess=function(t){var e=t.target.result;r(e)},n.onerror=function(t){o($t(t))}}))}))},e.iterate=function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.index,o=r.range,i=r.writable,u=void 0!==i&&i,a=r.direction,c=void 0===a?"next":a;return new Promise((function(r,i){e.cursor({index:n,range:o,writable:u,direction:c,onTouch:function(e,n){t(e,(function(){return e.continue()}),(function(){n.transaction.commit(),r()}))},onDone:function(){r()},onError:function(t){i(t)}})}))},e.batch=function(t){var e=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).writable,n=void 0===r||r;return this.transaction(n).then((function(r){var n=e.name,o=[],i=r.objectStore(n);return t.forEach((function(t){var e=new Promise((function(e,r){var n=t(i);n.onsuccess=function(t){var r=t.target.result;e(r)},n.onerror=function(t){r($t(t))}}));o.push(e)})),Promise.all(o)}))},e.get=function(t){if(!Array.isArray(t))return this.request((function(e){return e.get(t)}));var e=t.map((function(t){return function(e){return e.get(t)}}));return this.batch(e,{writable:!1})},e.keys=function(){var t=this.primaryKeyPath,e=[];return this.each((function(r){var n=Ut(r,t);e.push(n)})).then((function(){return e}))},e.all=function(){var t=[];return this.each((function(e){t.push(e)})).then((function(){return t}))},e.count=function(){return this.request((function(t){return t.count()}))},e.each=function(t){return this.iterate((function(e,r){var n=e.value;t(n),r()}))},e.reverse=function(t){return this.iterate((function(e,r){var n=e.value;t(n),r()}),{direction:"prev"})},e.some=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Promise((function(n,o){var i,u=[],a=0,c=r,f=r+e;r<0&&(i="prev",e=Math.min(e,-r),f=(c=-(r+e)||0)+e),t.iterate((function(t,e,r){a<c?(a++,e()):a<f?(u.push(t.value),a++,e()):r()}),{direction:i}).then((function(){r<0&&u.reverse(),n(u)})).catch(o)}))},e.first=function(){return this.some(1).then((function(t){return t[0]}))},e.last=function(){return this.some(1,-1).then((function(t){return t[0]}))},e.find=function(t,e){return this.request((function(r){return r.index(t).get(e)}))},e.query=function(t,e,r){var n=this,o=function(){switch(r){case">":return IDBKeyRange.lowerBound(e,!0);case">=":return IDBKeyRange.lowerBound(e);case"<":return IDBKeyRange.upperBound(e,!0);case"<=":return IDBKeyRange.upperBound(e);case"%":case"!=":case"in":return;default:return IDBKeyRange.only(e)}}(),i=[];return new Promise((function(u,a){n.cursor({index:t,range:o,onTouch:function(t,n){var o=t.value,u=Ut(o,n.keyPath);"!="===r?u!==e&&i.push(o):"%"===r?"string"==typeof u&&u.indexOf(e)>-1&&i.push(o):"in"===r?Array.isArray(e)&&e.indexOf(u)>-1&&i.push(o):i.push(o),t.continue()},onDone:function(){u(i)},onError:function(t){a(t)}})}))},e.select=function(){var t=this.store.indexes||[],e={};t.forEach((function(t){var r=t.name,n=t.keyPath;e[r]=n}));for(var r=function(t,e,r){if(void 0===t)return!1;switch(r){case">":return t>e;case">=":return t>=e;case"<":return t<e;case"<=":return t<=e;case"!=":return t!==e;case"%":return"string"==typeof t&&t.indexOf(e)>-1;case"in":return Array.isArray(e)&&e.indexOf(t)>-1;default:return t===e}},n=function(t,e,n){if(!e.length&&!n.length)return!1;for(var o=0,i=e.length;o<i;o++){var u=e[o],a=u.keyPath,c=u.value,f=u.compare,s=Ut(t,a);if(!r(s,c,f))return!1}if(!n.length)return!0;for(var l=0,p=n.length;l<p;l++){var y=n[l],v=y.keyPath,m=y.value,d=y.compare,h=Ut(t,v);if(r(h,m,d))return!0}return!1},o=[],i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];u.forEach((function(t){for(var r=[],n=[],i=0,u=t.length;i<u;i++){var a=t[i],c=a.key,f=a.value,s=a.compare,l=a.optional,p=e[c]||c;l?r.push({keyPath:p,value:f,compare:s}):n.push({keyPath:p,value:f,compare:s})}o.push([n,r])}));var c=[];return this.each((function(t){(function(t){for(var e=0,r=o.length;e<r;e++){var i=It(o[e],2),u=i[0],a=i[1];if(n(t,u,a))return!0}return!1})(t)&&c.push(t)})).then((function(){return c}))},e.add=function(t,e){if(Array.isArray(t)){var r=t;if(r.length<2)return this.add(t[0],e);var n=r.map((function(t){return function(r){return r.add(t,e)}}));return this.batch(n)}return t?this.request((function(r){return r.add(t,e)}),{writable:!0}):Promise.resolve()},e.put=function(t,e){if(Array.isArray(t)){var r=t;if(r.length<2)return this.put(r[0],e);var n=r.map((function(t){return function(r){return r.put(t,e)}}));return this.batch(n)}return t?this.request((function(r){return r.put(t,e)}),{writable:!0}):Promise.resolve()},e.delete=function(t){if(Array.isArray(t)){var e=t;if(e.length<2)return this.delete(e[0]);var r=e.map((function(t){return function(e){return e.delete(t)}}));return this.batch(r)}return t?this.request((function(e){return e.delete(t)}),{writable:!0}):Promise.resolve()},e.remove=function(t){var e=this.primaryKeyPath;if(Array.isArray(t)){var r=t;if(r.length<2)return this.remove(r[0]);var n=r.map((function(t){var r=Ut(t,e);return function(t){return t.delete(r)}}));return this.batch(n)}if(!t)return Promise.resolve();var o=Ut(t,e);return o?this.delete(o):Promise.resolve()},e.clear=function(){return this.request((function(t){return t.clear()}),{writable:!0})},Mt(t)}();function Ut(t,e){if(null!=e){if(!Array.isArray(e)){var r=function(t){return t.toString().split(/\.|\[|\]/).filter((function(t){return!!t}))}(e);if(!r.length)return t;for(var n=t,o=0,i=r.length;o<i;o++){var u=r[o];if(void 0===n[u])return;n=n[u]}return n}for(var a=0,c=e.length;a<c;a++){var f=Ut(t,e[a]);if(void 0!==f)return f}}}function $t(t){var e=t.message;return t.message=-1===e.indexOf("[IndexedDB]")?"[IndexedDB]: "+e:e,t}function Ft(t){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(t)}function Ht(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zt(n.key),n)}}function zt(t){var e=function(t,e){if("object"!==Ft(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ft(e)?e:String(e)}var Kt=function(){function t(t){this.anys=t,this.queue=new At}var e,r,n,o=t.prototype;return o.options=function(){return{namespace:new Error("options.namespace is required!"),autoReport:!1,expireTime:1728e5}},o.init=function(){var t="anyslogs",e=new Ct({name:this.anys.options.namespace,version:1,stores:[{name:t,primaryKeyPath:"_id",autoIncrement:!0}]});this.db=e.use(t)},o.ready=function(){var t=this,e=this.anys.options.expireTime;if(e)var r=0,n=setInterval((function(){t.queue.push((function(){return t.db.some(100,r)})).then((function(o){if(o.length){var i=Date.now(),u=[];o.forEach((function(t){var r=t._id,n=t.time;i-n>e&&u.push(r)})),u.length&&t.queue.push((function(){return t.db.delete(u)})),r+=100,r-=u.length}else clearInterval(n)}))}),1e4)},o.write=function(t){var e=this;this.queue.push((function(){return e.db.add(t)})).then((function(r){e.anys.emit("writeOfflineLog",{id:r,data:t})}))},o.read=function(t){if(t){if(!Array.isArray(t))return;if(t.some((function(t){return!t.key})))return}else t=[{key:"client",value:this.anys.clientId},{key:"trace",value:this.anys.traceId}];return this.select(t)},o.clear=function(t){var e=this;return this.queue.push((function(){return e.db.remove(t)})).catch((function(){}))},o.select=function(t){var e=this;return this.queue.push((function(){return e.db.select(t)}))},o.remove=function(t){var e=this;return this.queue.push((function(){return e.db.delete(t)})).catch((function(){}))},e=t,r&&Ht(e.prototype,r),n&&Ht(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Yt(t){return function(t){if(Array.isArray(t))return Wt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Gt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(t,e){if(t){if("string"==typeof t)return Wt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wt(t,e):void 0}}function Wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jt(n.key),n)}}function Jt(t){var e=function(t,e){if("object"!==Xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xt(e)?e:String(e)}function Vt(t,e){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vt(t,e)}var Qt=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{mutation:!0}},i.registerMutation=function(){var t=this,e=this.createObserver((function(e){var r={type:"mutation",time:Date.now(),detail:e};t.anys.write(r)}));return window.addEventListener("load",(function(){e.observe(document,{characterData:!0,attributes:!0,childList:!0,subtree:!0}),t.recordSnapshot(),te(document.documentElement)})),function(){e.disconnect()}},i.recordSnapshot=function(){var t=function(){var t,e=document.doctype,r=e.name,n=e.publicId,o=e.systemId,i={name:r,publicId:n,systemId:o},u=ee(document.documentElement.innerHTML),a={},c=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Gt(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}(document.querySelector("html").attributes);try{for(c.s();!(t=c.n()).done;){var f=t.value,s=f.name,l=f.value;a[s]=l}}catch(t){c.e(t)}finally{c.f()}var p=(y=document.querySelectorAll("input, textarea, select"),v=[],Array.from(y).forEach((function(t){var e=et(t),r="password"===t.type?"***":t.value;v.push({el:e,value:r})})),v);var y,v;return{doctype:i,attrs:a,html:u,values:p}}(),e=window.location.href,r=new URL(e),n=r.pathname.replace(/^([^/])/,"/$1");this.anys.write({type:"snapshot",time:Date.now(),url:{uri:n+(r.search?"?".concat(r.search):""),path:n,protocol:r.protocol.replace(":",""),host:r.hostname,port:r.port,search:r.search,hash:r.hash.replace("#","")},detail:t})},i.createObserver=function(t){var e=new MutationObserver((function(e){var r=[];Yt(e).reverse().forEach((function(t){var e=t.type,n=t.target,o=t.attributeName,i=t.oldValue;if(!function(t){var e;if(null!==(e=t.hasAttribute)&&void 0!==e&&e.call(t,"anys-ignore"))return!0;for(var r=t.parentNode;r;){var n,o;if(null!==(n=(o=r).hasAttribute)&&void 0!==n&&n.call(o,"anys-ignore"))return!0;r=r.parentNode}return!1}(n)){if("attributes"===e){if(n.getAttribute(o)===i)return;if(r.find((function(t){return t.type===e&&t.target===n&&t.attributeName===o})))return}else if("characterData"===e){var u=n.data;if(u===i)return;if(r.find((function(t){return t.type===e&&t.target===n&&t.target.data===u})))return}r.push(t)}})),r.reverse();var n=[];r.forEach((function(t){var e=t.type,r=t.target,o=t.attributeName,i=t.oldValue,u=r.path||et(r),a=function(t){return et(t).replace(u+"/","")};if("attributes"===e){var c=r.getAttribute(o),f=i;n.push({type:"attribute",target:u,name:o,next:c,prev:f})}else if("characterData"===e){var s=r.data,l=i;n.push({type:"text",target:u,next:s,prev:l})}else if("childList"===e){if("TEXTAREA"===r.nodeName)return;var p=t.removedNodes,y=t.addedNodes,v=t.previousSibling,m=t.nextSibling,d=[],h=Array.from(p).map((function(t){if(!document.body.contains(t)){var e=t.path?a(t):null,r=v?et(v):null,n=m?et(m):null,o={};return e?o.node=e:(o.before=r,o.after=n),o}d.push({node:t,path:et(t)})})).filter(Boolean),b=[],g=Array.from(y).map((function(t){var e=t.nextSibling?a(t.nextSibling):null,r=d.find((function(e){return e.node===t}));if(!r){var n="#text"===t.nodeName,o="#comment"===t.nodeName,i=n?t.data:null,u=o?t.data:null;return{text:i,html:n||o?null:ee(t.outerHTML),comment:u,sibling:e}}b.push({node:r.path,sibling:e})})).filter(Boolean);n.push({type:"children",target:u,remove:h,insert:g,move:b}),te(r)}})),t(n)}));return te(document),e},r=e,n&&Zt(r.prototype,n),o&&Zt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function te(t){if(t!==document){var e=et(t);t.path=e}var r=t.childNodes;Array.from(r).forEach((function(t){te(t)}))}function ee(t){return t.replace(/<script([^]*?)>([^]*?)<\/script>/gm,"<noscript$1></noscript>").replace(/<noscript([^]*?)>([^]*?)<\/noscript>/gm,"<noscript$1></noscript>").replace(/<link([^]*?)as="script"([^]*?)>/g,"<link$1$2>").replace(/\n\n*\s*\n*\n/gm,"\n")}function re(t){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(t)}function ne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oe(n.key),n)}}function oe(t){var e=function(t,e){if("object"!==re(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===re(e)?e:String(e)}function ie(t,e){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ie(t,e)}var ue=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ie(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{size:!0}},i.createRecordLog=function(){var t=window,e=t.innerWidth,r=t.innerHeight;return{type:"window_size",time:Date.now(),detail:{width:e,height:r}}},i.registerSize=function(){var t,e=this,r=function(){clearTimeout(t);var r=e.createRecordLog();t=setTimeout((function(){e.anys.write(r)}),100)};return this.recordSize(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}},i.recordSize=function(){var t=this.createRecordLog();this.anys.write(t)},r=e,n&&ne(r.prototype,n),o&&ne(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}function ce(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fe(n.key),n)}}function fe(t){var e=function(t,e){if("object"!==ae(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ae(e)?e:String(e)}function se(t,e){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},se(t,e)}var le=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&se(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{scroll:!0}},i.registerScroll=function(){var t=this,e=0,r=function(r){if(!e){var n,o=r.target;if(r.bubbles){var i=window,u=i.scrollX,a=i.scrollY;n={type:"window_scroll",time:Date.now(),detail:{scrollX:u,scrollY:a}}}else{var c=o.scrollLeft,f=o.scrollTop;n={type:"scroll",time:Date.now(),target:et(o),detail:{scrollLeft:c,scrollTop:f}}}requestAnimationFrame((function(){t.anys.write(n),e=0})),e=1}};return window.addEventListener("scroll",r,!0),function(){window.removeEventListener("scroll",r)}},r=e,n&&ce(r.prototype,n),o&&ce(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function pe(t){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(t)}function ye(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ve(n.key),n)}}function ve(t){var e=function(t,e){if("object"!==pe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pe(e)?e:String(e)}function me(t,e){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},me(t,e)}var de=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&me(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{error:!0,unhandledrejection:!0}},i.registerError=function(){var t=this,e=function(e){if(e instanceof ErrorEvent){var r=e.colno,n=e.filename,o=e.lineno,i=e.message,u=e.error,a=e.target;if(a===window){var c=u||{},f=c.name,s=c.stack,l={type:"JSError",level:490,time:Date.now(),msg:i,name:f,detail:{stack:s,filename:n,colno:r,lineno:o}};t.anys.write(l)}else if(a instanceof HTMLElement){var p={type:"DownloadError",level:489,time:Date.now(),name:a.tagName,detail:{e:et(a)}};t.anys.write(p)}}},r="error";return window.addEventListener(r,e,!0),function(){return window.removeEventListener(r,e)}},i.registerUnhandledrejection=function(){var t=this,e=function(e){var r=e.reason;if("string"==typeof r){var n={type:"PromiseRejection",level:485,time:Date.now(),detail:{message:r}};t.anys.write(n)}else if(r&&r instanceof Error){var o=r.name,i=r.message,u={type:"PromiseRejection",level:485,time:Date.now(),name:o,detail:{message:i}};t.anys.write(u)}};return window.addEventListener("unhandledrejection",e,!0),function(){return window.removeEventListener("unhandledrejection",e)}},r=e,n&&ye(r.prototype,n),o&&ye(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function he(t){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(t)}var be=["name"];function ge(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function we(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Se(n.key),n)}}function Oe(t,e,r){return e&&we(t.prototype,e),r&&we(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Se(t){var e=function(t,e){if("object"!==he(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===he(e)?e:String(e)}function je(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xe(t,e)}function Pe(t){var e="function"==typeof Map?new Map:void 0;return Pe=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Ee(t,arguments,_e(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),xe(r,t)},Pe(t)}function Ee(t,e,r){return Ee=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&xe(o,r.prototype),o},Ee.apply(null,arguments)}function xe(t,e){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xe(t,e)}function _e(t){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_e(t)}function Le(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Te(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function Te(t,e){if(t){if("string"==typeof t)return ke(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ke(t,e):void 0}}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ae,Ie,De,Ne=performance.getEntriesByType("navigation")[0],qe=Ne.name,Me=Ne.startTime,Re=Ne.unloadEventStart,Ce=Ne.unloadEventEnd,Be=Ne.redirectStart,Ue=Ne.redirectEnd,$e=Ne.workerStart,Fe=Ne.fetchStart,He=Ne.domainLookupStart,ze=Ne.domainLookupEnd,Ke=Ne.connectStart,Xe=Ne.secureConnectionStart,Ye=Ne.connectEnd,Ge=Ne.requestStart,We=Ne.responseStart,Ze=Ne.responseEnd,Je=Ne.domInteractive,Ve=Ne.domContentLoadedEventStart,Qe=Ne.domContentLoadedEventEnd,tr=Ne.domComplete,er=Ne.loadEventStart,rr=Ne.loadEventEnd,nr=Ne.redirectCount,or=Ne.type,ir=Ne.decodedBodySize,ur=Ne.encodedBodySize,ar=Ne.transferSize,cr=Ne.nextHopProtocol,fr=performance.timeOrigin,sr=(Ae=performance.getEntriesByType("paint"),function(t){if(Array.isArray(t))return ke(t)}(Ae)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(Ae)||Te(Ae)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).reduce((function(t,e){var r;return t[(r=e.name,r.split(/[\W|_|$]/).map((function(t){return t.replace(t[0],t[0].toUpperCase())})).join(""))]=e.startTime,t}),{}),lr=sr.firstPaint,pr=sr.firstContentfulPaint,yr=Ye-Ke,vr=ze-He,mr=Ge-Xe,dr=We-Ge,hr=Ze-We,br=Ue-Be,gr=ir!==ur,wr=!ar,Or=cr,Sr=We-Me;new PerformanceObserver((function(t){var e,r=Le(t.getEntries());try{for(r.s();!(e=r.n()).done;){var n=e.value;Ie||(Ie=n.startTime)}}catch(t){r.e(t)}finally{r.f()}})).observe({type:"largest-contentful-paint",buffered:!0}),new PerformanceObserver((function(t){var e,r=Le(t.getEntries());try{for(r.s();!(e=r.n()).done;){var n=e.value;De||(De=n.startTime)}}catch(t){r.e(t)}finally{r.f()}})).observe({entryTypes:["longtask"]});var jr=new B,Pr={},Er=function(t){function e(){return t.apply(this,arguments)||this}return je(e,t),e.prototype.connectedCallback=function(){var t=this.dataset,e=t.name,r=ge(t,be);if(e&&!Pr[e]){var n=performance.now();jr.emit("perf",{type:"performance.dom",time:Date.now(),name:e,data:r,detail:{timeOrigin:fr,startTime:Je,duration:n-Je}}),Pr[e]=1}},Oe(e)}(Pe(HTMLDivElement));customElements.define("anys-perf",Er,{extends:"div"});var xr=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).hasReported=0,e}je(e,t);var r=e.prototype;return r.options=function(){return{performance:!0,fps:!0}},r.ready=function(){if(this.anys.options.performance&&!this.hasReported){var t={type:"performance.navigation",time:Date.now(),detail:{url:qe,redirectCount:nr,type:or,timeOrigin:fr,startTime:Me,unloadEventStart:Re,unloadEventEnd:Ce,redirectStart:Be,redirectEnd:Ue,workerStart:$e,fetchStart:Fe,domainLookupStart:He,domainLookupEnd:ze,connectStart:Ke,secureConnectionStart:Xe,connectEnd:Ye,requestStart:Ge,responseStart:We,responseEnd:Ze,domInteractive:Je,domContentLoadedEventStart:Ve,domContentLoadedEventEnd:Qe,domComplete:tr,loadEventStart:er,loadEventEnd:rr,FP:lr,FCP:pr,TTFB:Sr,LCP:Ie,TTI:De,TCP:yr,DNS:vr,REQUEST:dr,RESPONSE:hr,REDIRECT:br,TLS:mr,COMPRESSED:gr,CACHED:wr,PROTOCOL:Or}};this.anys.write(t),this.hasReported=1}},r.registerPerformance=function(){var t=this,e=function(e){t.anys.write(e)};jr.on("perf",e);var r=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){var r=e.name,n=e.startTime,o=e.duration,i={type:"performance.measure",time:Date.now(),name:r,detail:{timeOrigin:fr,startTime:n,duration:o}};t.anys.write(i)}))}));return r.observe({entryTypes:["measure"]}),function(){jr.off("perf",e),r.disconnect()}},r.registerFps=function(){var t,e=this,r=this.anys.options.fps,n=[performance.now()];return t=requestAnimationFrame((function o(){var i=performance.now();n.push(i);var u=n[0];if(i-u>=1e3){var a=n.length;if(a<("number"==typeof r?r:25)){var c={type:"performance.fps",time:Date.now(),fps:a,detail:{timeOrigin:fr,startTime:u,duration:i-u}};e.anys.write(c)}n=[i]}t=requestAnimationFrame(o)})),function(){cancelAnimationFrame(t)}},r.mark=function(t){var e=t+o(8);return performance.mark(e),function(){performance.measure(t,e),performance.clearMeasures(t),performance.clearMarks(e)}},Oe(e)}(D);function _r(t){return _r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(t)}var Lr=["_id"];function Tr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function kr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ar(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ar(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ir(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Dr(n.key),n)}}function Dr(t){var e=function(t,e){if("object"!==_r(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_r(e)?e:String(e)}function Nr(t,e){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nr(t,e)}var qr=function(t){function e(e,r){var n,o=kr(r,4),i=o[0],u=o[1],a=o[2],c=o[3];return(n=t.call(this,e)||this).offlineStore=i,n.urlMonitor=u,n.windowSizeMonitor=a,n.DOMMutationMonitor=c,n.cache={},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nr(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){var t="ontouchend"in document;return{touch:t,mouse:!t,click:!1,mousedown:!0,mousemove:!0,mouseup:!0,autoReport:!1,reportUrl:new Error("options.reportUrl is required!"),reportInterval:1e4,reportParams:null}},i.registerAutoReport=function(){var t=this,e=this.anys.clientId,r=function(r){var n=r.prev;t.anys.report([{key:"client",value:e},{key:"trace",value:n}]),t.cache={},t.urlMonitor.recordUrl(),t.windowSizeMonitor.recordSize(),t.DOMMutationMonitor.recordSnapshot()};this.anys.on("refreshTraceId",r);var n=setInterval((function(){t.anys.report()}),this.anys.options.reportInterval),o=0,i=function(){if(!o){o=1;var e=Object.keys(t.cache),r=Object.values(t.cache);e.length&&(t.offlineStore.remove(e),navigator.sendBeacon(t.anys.options.reportUrl,JSON.stringify(r)),t.cache={})}};window.addEventListener("beforeunload",i),window.addEventListener("pagehide",i),window.addEventListener("unload",i);var u=function(e){var r=e.id,n=e.data;t.cache[r]=n};return this.anys.on("writeOfflineLog",u),function(){t.anys.off("refreshTraceId",r),t.anys.off("writeOfflineLog",u),clearInterval(n),window.removeEventListener("beforeunload",i)}},i.read=function(t){return this.offlineStore.read(t)},i.arrange=function(t){var e=[],r=0;return t.forEach((function(t){e[r]=e[r]||[],e[r].push(t),e[r].length>200&&r++})),e},i.send=function(t){var e=this,r=[],n=[];if(t.forEach((function(t){var e=t._id,o=Tr(t,Lr);n.push(e),r.push(o)})),r.length){var o=this.anys.options,i=o.reportUrl,u=o.reportParams;return function(t,e){return new Promise((function(r,n){var o=new(window.__XMLHttpRequest||window.XMLHttpRequest);o.open("POST",t,!0),o.onreadystatechange=function(){4==o.readyState&&(200==o.status?r(o.responseText):n(new Error("ajax post fail with status ".concat(o.status))))},o.onerror=n,o.send(JSON.stringify(e))}))}(u?T(i,u):i,{data:r}).then((function(){n.forEach((function(t){delete e.cache[t]}))}))}},i.clear=function(){this.cache={}},r=e,n&&Ir(r.prototype,n),o&&Ir(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function Mr(t){return Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(t)}function Rr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rr(Object(r),!0).forEach((function(e){Br(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Br(t,e,r){return(e=$r(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ur(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$r(n.key),n)}}function $r(t){var e=function(t,e){if("object"!==Mr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Mr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mr(e)?e:String(e)}function Fr(t,e){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fr(t,e)}qr.dependencies=[Kt,St,ue,Qt,tt,Z,ut,lt,ht,_t,le,de,xr];var Hr=function(t){function e(){return t.apply(this,arguments)||this}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fr(t,e)}(e,t),e.prototype.auth=function(t){this.options.reportParams=Object.assign(this.options.reportParams||{},t)},r=e,n&&Ur(r.prototype,n),o&&Ur(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(w),zr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Hr(Cr(Cr({namespace:"AnysTracer",autoReport:!1},t),{},{plugins:Cr(Cr({},t.plugins||{}),{},{recorder:qr})}))}}();var r=anys="undefined"==typeof anys?{}:anys;for(var n in e)r[n]=e[n];e.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})}();
|
|
2
|
+
!function(){var t={d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};!function(){"use strict";function r(t){return Array.isArray(t)}function n(t,e){return"function"==typeof t&&(!e||!function(t,e){if("function"!=typeof t)return!1;if(t===Symbol)return!1;if(!t.prototype)return!1;var r=t+"",n=r.slice(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),o=0===r.indexOf("class "),i="[native code]"===n,u=o||i;if(e>=4)return u;var a=n.replace(/function.*?\{.*?\}/gm,"").replace(/return/gm,"").replace(/\n+/gm,";").replace(/\s+/gm,"").replace(/;;/gm,";"),c=/^_classCallCheck\(this,/.test(a),f=/^\(.*?_classCallCheck.*?\)\(this,/.test(a),s=/^[0-9a-zA-Z_;!?:]*?\(this,/.test(a),l=u||c||f||s;if(3==e)return l;var p=Object.getOwnPropertyDescriptors(t.prototype),y=!!Object.keys(p).filter((function(t){return"constructor"!==t})).length,h=l||y;if(2==e)return h;var v=0===a.indexOf("this.")||a.indexOf(";this.")>-1||a.indexOf("=this;")>-1,d=h||v;if(1==e)return d;return!0}(t,2))}function o(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e="0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ",r="",n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function i(t,e,n){var o;return n?(o=Object.getOwnPropertyDescriptors(t),void Object.keys(o).forEach((function(r){var n=o[r],i=n.get,u=n.set,a=n.enumerable,c=n.configurable,f=n.writable;(a||i||u||c&&f)&&e(n,r,t)}))):void(r(t)?t.forEach(e):Object.keys(t).forEach((function(r){var n=t[r];e(n,r,t)})))}t.r(e),t.d(e,{createTracer:function(){return ke}});Symbol("Proxy");var u=["filters","plugins"],a=["filters","plugins","defines"];function c(){c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,u=Object.create(i.prototype),a=new I(n||[]);return o(u,"_invoke",{value:L(t,r,a)}),u}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",v="suspendedYield",d="executing",m="completed",b={};function g(){}function w(){}function O(){}var j={};s(j,u,(function(){return this}));var S=Object.getPrototypeOf,P=S&&S(S(D([])));P&&P!==r&&n.call(P,u)&&(j=P);var E=O.prototype=g.prototype=Object.create(j);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,u,a){var c=p(t[o],t,i);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==y(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,u,a)}),(function(t){r("throw",t,u,a)})):e.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,a)}))}a(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=h;return function(i,u){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw u;return{value:t,done:!0}}for(n.method=i,n.arg=u;;){var a=n.delegate;if(a){var c=k(a,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var f=p(e,r,n);if("normal"===f.type){if(o=n.done?m:v,f.arg===b)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=m,n.method="throw",n.arg=f.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var u=i.arg;return u?u.done?(r[e.resultName]=u.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return w.prototype=O,o(E,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=s(O,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},x(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var u=new _(l(t,r,n,o),i);return e.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},x(E),s(E,f,"Generator"),s(E,u,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=D,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=n.call(u,"catchLoc"),f=n.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function f(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){f(i,n,o,u,a,"next",t)}function a(t){f(i,n,o,u,a,"throw",t)}u(void 0)}))}}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e,r){return(e=g(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function g(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===y(e)?e:String(e)}var w=function(){function t(e){var c=this;this._events=[],this._queue=[];var f,s=(f=this,Object.getPrototypeOf(f).constructor),p=v(v({},t.defaultOptions),s.defaultOptions||{}),h=p.filters,d=void 0===h?[]:h,b=p.plugins,g=void 0===b?[]:b,w=m(p,u),S=e||{},P=S.filters,E=void 0===P?[]:P,x=S.plugins,_=void 0===x?[]:x,L=S.defines,k=void 0===L?[]:L,A=m(S,a),T={},I=[],D={},q=_&&!r(_)&&"object"===y(_),N=q?O(_):r(_)?_:[],M=q?Object.keys(_).map((function(t){return{key:t,value:_[t]}})):[],R=[].concat(l(g),l(N));!function t(e){e.forEach((function(e){var r=e.dependencies||[];r.forEach((function(t){R.unshift(t)})),t(r)}))}(R);var B=R.filter((function(t,e){return e===R.indexOf(t)})),U=[],$={};B.forEach((function(t){var e,r,n,o=null===(e=M.find((function(e){return e.value===t})))||void 0===e?void 0:e.key;if(o&&$[o])return n="plugin named '".concat(r=o,"' has been registered"),void($[r]instanceof t?console.debug(n,t,$):console.error(n,t,$));var i=(t.dependencies||[]).map((function(t){return U.find((function(e){return e instanceof t}))})),u=new t(c,i);u.options&&j(T,u.options()),u.defines&&j(D,u.defines()),u.filters&&I.push.apply(I,l(u.filters())),U.push(u),o&&($[o]=u)})),this._pluginList=U,this.plugins=$,this.options=v(v(v({},w),T),A),this.filters=[].concat(l(d),I,l(E));var C=O(this.options).find((function(t){return t&&t instanceof Error}));if(C)throw C;var K=v(v({},D),k);this.definitions=K,this.clientId=K.client?K.client():o(8),this.traceId=K.trace?K.trace():o(8),this.requestId=o(8);var X={};Object.defineProperties(X,function(t,e){if(r(t))return t.map(e);var n={};return i(t,(function(r,o){n[o]=e(r,o,t)})),n}(K,(function(t){return{get:n(t)?t:function(){return t},enumerable:!0,configurable:!0}}))),Object.defineProperties(X,{client:{get:function(){return c.clientId},enumerable:!0,configurable:!0},trace:{get:function(){return c.traceId},enumerable:!0,configurable:!0},request:{get:function(){return c.requestId},enumerable:!0,configurable:!0}}),this._basicLog=X,this.invoke("init"),this._inited=!0,this.invoke("ready"),this.options.autoStart&&this.start()}var e,f,p,h=t.prototype;return h.define=function(t,e){Object.defineProperty(this._basicLog,t,{get:e,enumerable:!0,configurable:!0})},h.on=function(t,e){this._events.push([t,e])},h.off=function(t,e){var r=this;this._events.forEach((function(n,o){n[0]===t&&n[1]===e&&r._events.splice(o,1)}))},h.emit=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this._events.forEach((function(e){e[0]!==t&&"*"!==e[0]||e[1].apply(e,r)}))},h.invoke=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];for(var i=0,u=this._pluginList.length;i<u;i+=1){var a=this._pluginList[i];a[t]&&(n(a[t])&&a[t].apply(a,r))}},h.refreshTraceId=function(){var t=this.traceId;this.traceId=this.definitions.trace?this.definitions.trace():o(8),this.emit("refreshTraceId",{prev:t,next:this.traceId})},h.refreshRequestId=function(){var t=this.requestId;this.requestId=o(8),this.emit("refreshRequestId",{prev:t,next:this.requestId})},h.start=function(){this.invoke("start"),this.emit("start")},h.write=function(t){if(!this._inited)throw new Error("could not write before ready");for(var e=v(v({},this._basicLog),t),r=this.filters,o=0,i=r.length;o<i;o+=1){if(!(0,r[o])(e))return}for(var u=0,a=this._pluginList.length;u<a;u+=1){var c=this._pluginList[u];n(c.filter)&&!c.filter(e)||n(c.write)&&c.write(e)}this.emit("write",e)},h.report=function(t){var e,r,o=this;if(!this._inited)throw new Error("could not report before ready");var i=new Promise((function(t,n){e=t,r=n})),u={message:t,resolve:e,reject:r};this._queue.push(u);var a=function(){var e=s(c().mark((function e(r){var n,i,u,a,f;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],i=[],r.forEach((function(e){if(e.read){var r=function(t){e.data=t,null!=t&&t.length&&n.push.apply(n,l(t))},o=e.read(t);o instanceof Promise?(o.then(r),i.push(o)):r(o)}})),!i.length){e.next=8;break}return e.next=6,Promise.all(i).then((function(){o.emit("read",t,n)}));case 6:e.next=9;break;case 8:o.emit("read",t,n);case 9:if(u=[],r.forEach((function(t){if(t.arrange){var e=function(e){t.chunks=e},r=t.arrange(t.data,n);r instanceof Promise?(r.then(e),u.push(r)):e(r)}})),!u.length){e.next=16;break}return e.next=14,Promise.all(u).then((function(){o.emit("arrage",t,r.map((function(t){return t.chunks})))}));case 14:e.next=17;break;case 16:o.emit("arrage",t,r.map((function(t){return t.chunks})));case 17:if(a=[],r.forEach((function(t){t.send&&(t.chunks||[n]).forEach((function(e){var r=t.send(e);r instanceof Promise&&a.push(r)}))})),!a.length){e.next=24;break}return e.next=22,Promise.all(a).then((function(){o.emit("send",t,r.map((function(t){return t.chunks})))}));case 22:e.next=25;break;case 24:o.emit("send",t,r.map((function(t){return t.chunks})));case 25:if(f=[],r.forEach((function(t){t.clear&&(t.chunks||[n]).forEach((function(e){var r=t.clear(e);r&&r instanceof Promise&&f.push(r)}))})),!f.length){e.next=32;break}return e.next=30,Promise.all(f).then((function(){o.emit("clear",t,r.map((function(t){return t.chunks})))}));case 30:e.next=33;break;case 32:o.emit("clear",t,r.map((function(t){return t.chunks})));case 33:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();this._reporting=!1;var f=function(){var t=s(c().mark((function t(){var e,r,i,u,s,l,p,y,h,v,d;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o._reporting){t.next=2;break}return t.abrupt("return");case 2:if(o._reporting=!0,e=o._queue.shift()){t.next=6;break}return t.abrupt("return");case 6:for(r=e.message,i=e.resolve,u=e.reject,o.emit("report",r),t.prev=8,l=[s=[]],p=0,y=o._pluginList.length;p<y;p+=1)h=o._pluginList[p],v={},d=0,n(h.read)&&(v.read=h.read.bind(h),d++),n(h.arrange)&&(v.arrange=h.arrange.bind(h),d++),n(h.send)&&(v.send=h.send.bind(h),d++),n(h.clear)&&(v.clear=h.clear.bind(h),d++),4===d?l.push([v]):d&&s.push(v);return t.next=14,Promise.all(l.map(a));case 14:i(),t.next=20;break;case 17:t.prev=17,t.t0=t.catch(8),u(t.t0);case 20:o._reporting=!1,f();case 22:case"end":return t.stop()}}),t,null,[[8,17]])})));return function(){return t.apply(this,arguments)}}();return f(),i},h.stop=function(){this.invoke("stop"),this.emit("stop")},e=t,f&&b(e.prototype,f),p&&b(e,p),Object.defineProperty(e,"prototype",{writable:!1}),e}();function O(t){return Object.keys(t).map((function(e){return t[e]}))}function j(t,e){return Object.keys(e).forEach((function(r){var n=e[r];t[r]=n})),t}function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach((function(e){x(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function x(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==S(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===S(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function k(t,e){if(t.indexOf("?")<0){var r=Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&"),n=_(t.split("#"),2),o=n[0],i=n[1];return o+"?"+r+(i?"#"+i:"")}var u=_(t.split("?"),2),a=u[0],c=_(u[1].split("#"),2),f=c[0],s=c[1],l=f.split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var r=_(e,2),n=r[0],o=r[1];return E(E({},t),{},x({},n,o))}),{});return Object.assign(l,e),a+"?"+Object.keys(l).map((function(t){return"".concat(t,"=").concat(l[t])})).join("&")+(s?"#"+s:"")}function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function T(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,I(n.key),n)}}function I(t){var e=function(t,e){if("object"!==A(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===A(e)?e:String(e)}w.defaultOptions={autoStart:!0};var D=function(){function t(t){this.anys=t,this.$effects={}}var e,r,n,o=t.prototype;return o.start=function(){var t=this;if(this.options){var e=this.options(),r=Object.keys(e),n=this.anys.options;r.forEach((function(e){n[e]&&function(e){var r="register".concat(e.replace(e[0],e[0].toUpperCase()));if(t[r]){var n=t[r]();t.$effects[e]=n}}(e)}))}},o.stop=function(){var t=this;if(this.options){var e=this.options(),r=Object.keys(e),n=this.anys.options;r.forEach((function(e){var r=t.$effects[e];n[e]&&r&&r(),t.$effects[e]=null}))}},e=t,r&&T(e.prototype,r),n&&T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return M(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function R(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,B(n.key),n)}}function B(t){var e=function(t,e){if("object"!==q(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===q(e)?e:String(e)}var U=function(){function t(){this.$events=[]}var e,r,n,o=t.prototype;return o.on=function(t,e){this.$events.push([t,e])},o.emit=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.$events.forEach((function(e){var n=N(e,2),o=n[0],i=n[1];t===o&&i.apply(void 0,r)}))},o.off=function(t,e){var r=this;this.$events.forEach((function(n,o){var i=N(n,2),u=i[0],a=i[1];t===u&&a===e&&r.$events.splice(o,1)}))},e=t,r&&R(e.prototype,r),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Y(n.key),n)}}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}function X(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function H(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?X(Object(r),!0).forEach((function(e){z(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function z(t,e,r){return(e=Y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Y(t){var e=function(t,e){if("object"!==$(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===$(e)?e:String(e)}var F,G,W=new U;F=window.XMLHttpRequest,window.__XMLHttpRequest=F,window.XMLHttpRequest=function(){var t=new F,e={open:t.open,send:t.send},r={name:o(4)},n=function(e){var n,o,i=r.name,u=r.url,a=r.method;t.responseType&&"text"!==t.responseType?"json"===t.responseType&&(n=t.response,o="json"):(n=t.responseText.toString(),o="text"),W.emit("xhr",{type:e,time:Date.now(),name:"xhr_".concat(i),url:u,detail:{status:t.status,method:a,responseType:o,response:n||void 0}})},i=function(){4===t.readyState&&(2===Math.floor(t.status/100)?n("xhr.ok"):n("xhr.fail"))};return Object.defineProperty(t,"open",{get:function(){return function(n,o){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u={method:n,url:o};W.emit("request",u),Object.assign(r,H(H({},u),{},{async:i})),t.onreadystatechange&&(e.onreadystatechange=t.onreadystatechange);for(var a=e.open,c=arguments.length,f=new Array(c>3?c-3:0),s=3;s<c;s++)f[s-3]=arguments[s];return a.call.apply(a,[t,u.method,u.url,i].concat(f))}},configurable:!0}),Object.defineProperty(t,"send",{get:function(){return function(n){var o=e.send,u=r.async;Object.assign(r,{body:n}),function(){var t=r.name,e=r.url,n=r.method,o=r.async,i=r.body;W.emit("xhr",{type:"xhr.req",time:Date.now(),name:"xhr_".concat(t),url:e,detail:{method:n,async:o,body:i}})}();var a=o.call(t,n);return u||i(),a}},configurable:!0}),t.addEventListener("error",(function(){n("xhr.err")})),t.addEventListener("readystatechange",(function(t){i()})),t},G=window.fetch,window.__fetch=G,window.fetch=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.method,n=e.body,i=o(4);W.emit("fetch",{type:"fetch.init",time:Date.now(),name:"fetch_".concat(i),url:t,detail:{body:n,method:r}});var u={method:r,url:t};return W.emit("request",u),Promise.resolve().then((function(){return G(u.url,e)})).then((function(e){var n=e.status;return 2===Math.floor(n/100)?new Proxy(e,{get:function(o,u){return"json"===u||"text"===u?function(){return e[u]().then((function(e){return W.emit("fetch",{type:"fetch.ok",time:Date.now(),name:"fetch_".concat(i),url:t,detail:{status:n,data:e,method:r}}),e}))}:"function"==typeof e[u]?e[u].bind(e):e[u]}}):(W.emit("fetch",{type:"fetch.fail",time:Date.now(),name:"fetch_".concat(i),url:t,detail:{status:n,method:r}}),e)}),(function(e){var n;if(e instanceof Error){var o=e.name,u=e.message;n={method:r,type:o,err:u}}else n={method:r,err:e};W.emit("fetch",{type:"fetch.err",time:Date.now(),name:"fetch_".concat(i),url:t,detail:n})}))};var Z=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{xhr:!0,fetch:!0,ajaxResponse:!0,patchRequestId:!0}},i.registerXhr=function(){var t=this,e=function(e){t.anys.options.ajaxResponse||"xhr.ok"!==e.type||delete e.detail.response,t.anys.write(e)};return W.on("xhr",e),function(){return W.off("xhr",e)}},i.registerFetch=function(){var t=this,e=function(e){t.anys.options.ajaxResponse||"fetch.ok"!==e.type||delete e.detail.data,t.anys.write(e)};return W.on("fetch",e),function(){return W.off("fetch",e)}},i.registerPatchRequestId=function(){var t=this,e=function(e){var r=e.url,n=t.anys,o=k(r,{_request_id:n.traceId+n.requestId});e.url=o};return W.on("request",e),function(){return W.off("request",e)}},r=e,n&&C(r.prototype,n),o&&C(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function J(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Q(n.key),n)}}function Q(t){var e=function(t,e){if("object"!==V(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===V(e)?e:String(e)}var tt=function(){function t(t){this.anys=t}var e,r,n,i=t.prototype;return i.options=function(){return{namespace:new Error("options.namespace is required!")}},i.defines=function(){return{client:this.defineClientId.bind(this),trace:this.defineTraceId.bind(this)}},i.defineClientId=function(){var t=this.anys.options.namespace,e="Anys.".concat(t,".clientId"),r=localStorage.getItem(e);return r||(r=o(8),sessionStorage.setItem(e,r)),r},i.defineTraceId=function(){var t=this.anys.options.namespace,e="Anys.".concat(t,".traceId"),r=o(8);return sessionStorage.setItem(e,r),r},e=t,r&&J(e.prototype,r),n&&J(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,r=t.nodeName,n=t.path;if(n)return n;if("BODY"===r||"HTML"===r||"HEAD"===r)return r;var o=[],i=t,u=t.parentNode,a=function(t){var e=t.nodeName,r=t.parentNode;return r?[].filter.call(r.childNodes,(function(t){return t.nodeName===e})).indexOf(t):-1};if("#"===r[0]){var c=a(t);o.push("".concat(r,":").concat(c)),u=(i=u).parentNode}for(;u&&i!==e;){var f=i.nodeName;if("BODY"===f||"HTML"===f||"HEAD"===f)o.push(f);else{var s=a(i);o.push("".concat(f.toLowerCase(),":").concat(s))}u=(i=u).parentNode}return o.reverse(),o.join("/")}function rt(t){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(t)}function nt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ot(n.key),n)}}function ot(t){var e=function(t,e){if("object"!==rt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rt(e)?e:String(e)}function it(t,e){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},it(t,e)}var ut=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{input:!0}},i.registerInput=function(){var t=this,e=function(e){return function(r){var n=r.target,o=r.type,i=r.inputType,u=r.data;if("insertCompositionText"!==i&&("compositionend"!==o||u)){var a=n.tagName,c=n.value;if(!n.getAttribute("anys-ignore")){var f=n.getAttribute("type"),s=e({tagName:a,value:c,type:f,target:n});if(s){var l={type:"input",time:Date.now(),el:et(n),detail:s};t.anys.write(l)}}}}},r=e((function(t){var e=t.tagName,r=t.value,n=t.type;return"INPUT"===e&&"radio"!==n&&"checkbox"!==n&&"password"!==n?{value:r,type:n}:"INPUT"===e&&"password"===n?{value:"***",type:n}:"TEXTAREA"===e?{value:r,type:"textarea"}:void 0})),n=e((function(t){var e=t.tagName,r=t.value,n=t.type;return"SELECT"===e?{value:r,type:"select"}:"INPUT"!==e||"radio"!==n&&"checkbox"!==n?void 0:{value:r,type:n}})),o=e((function(t){var e=t.tagName,r=t.value,n=t.type;return"TEXTAREA"===e?{value:r,type:"textarea"}:"INPUT"===e?{value:r,type:n}:void 0}));return document.addEventListener("input",r,!0),document.addEventListener("compositionend",r,!0),document.addEventListener("change",n,!0),document.addEventListener("paste",o,!0),function(){document.removeEventListener("input",r),document.removeEventListener("compositionend",r),document.removeEventListener("change",n),document.removeEventListener("paste",o)}},r=e,n&&nt(r.prototype,n),o&&nt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function at(t){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(t)}function ct(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ft(n.key),n)}}function ft(t){var e=function(t,e){if("object"!==at(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===at(e)?e:String(e)}function st(t,e){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},st(t,e)}var lt=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&st(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{mouse:!("ontouchend"in document),click:!0,mousemove:!1,mousedown:!1,mouseup:!1,wheel:!1,contextmenu:!1}},i.addEventListener=function(t,e){if(this.anys.options.mouse){var r=this.createThrottleListener((function(e){var r=window,n=r.innerWidth,o=r.innerHeight,i=e.target,u=e.button,a=e.pageX,c=e.pageY;return{type:t,time:Date.now(),detail:{e:et(i),w:n,h:o,x:a,y:c,button:u}}}),e);return document.addEventListener(t,r,!0),function(){return document.removeEventListener(t,r)}}},i.registerClick=function(){return this.addEventListener("click")},i.registerMouseup=function(){return this.addEventListener("mouseup")},i.registerMousedown=function(){return this.addEventListener("mousedown")},i.registerContextmenu=function(){return this.addEventListener("contextmenu")},i.registerMousemove=function(){return this.addEventListener("mousemove",100)},i.registerWheel=function(){if(this.anys.options.mouse){var t="wheel",e=this.createThrottleListener((function(e){var r=e.target,n=e.deltaX,o=e.deltaY,i=e.deltaZ,u=e.deltaMode;return{type:t,time:Date.now(),detail:{e:et(r),deltaX:n,deltaY:o,deltaZ:i,mode:u}}}),100);return document.addEventListener(t,e),function(){return document.removeEventListener(t,e)}}},i.createThrottleListener=function(t,e){var r=this,n=0,o=0;return function(i){if(!n){var u=Date.now();if(!(e&&o+e>u)){var a=t(i);requestAnimationFrame((function(){r.anys.write(a),n=0,o=Date.now()})),n=1}}}},r=e,n&&ct(r.prototype,n),o&&ct(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function yt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ht(n.key),n)}}function ht(t){var e=function(t,e){if("object"!==pt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pt(e)?e:String(e)}function vt(t,e){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vt(t,e)}var dt={type:"window_activity.enter",time:Date.now()},mt=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vt(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{activity:!0,deadTimeout:0}},i.ready=function(){this.anys.options.activity&&this.anys.write(dt)},i.registerActivity=function(){var t=this,e=function(){if("hidden"===document.visibilityState){var e={type:"window_activity.focusout",time:Date.now()};t.anys.write(e)}else{var r={type:"window_activity.focusin",time:Date.now()};t.anys.write(r)}},r=function(){var e={type:"window_activity.unload",time:Date.now()};t.anys.write(e)};return window.addEventListener("beforeunload",r,!0),document.addEventListener("visibilitychange",e,!0),function(){window.removeEventListener("beforeunload",r),document.removeEventListener("visibilitychange",e)}},i.registerDeadTimeout=function(){var t=this,e=this.anys.options.deadTimeout;if(e){var r,n=function(){clearTimeout(r),r=setTimeout((function(){var e={type:"window_activity.dead",time:Date.now()};t.anys.write(e)}),e)};return document.addEventListener("keydown",n,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",n,!0),document.addEventListener("touchmove",n,!0),document.addEventListener("mousemove",n,!0),document.addEventListener("scroll",n,!0),window.addEventListener("resize",n,!0),function(){document.removeEventListener("keydown",n),document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n),document.removeEventListener("touchmove",n),document.removeEventListener("mousemove",n),document.removeEventListener("scroll",n),window.removeEventListener("resize",n)}}},r=e,n&&yt(r.prototype,n),o&&yt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function gt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wt(n.key),n)}}function wt(t){var e=function(t,e){if("object"!==bt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bt(e)?e:String(e)}function Ot(t,e){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ot(t,e)}var jt=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ot(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{url:!0}},i.registerUrl=function(){var t=this,e=function(){t.recordUrl()};return window.addEventListener("hashchange",e),window.addEventListener("popstate",e),this.recordUrl(),function(){window.removeEventListener("hashchange",e),window.removeEventListener("popstate",e)}},i.recordUrl=function(){var t=window.location.href,e=new URL(t),r=e.pathname.replace(/^([^/])/,"/$1"),n={type:"url",time:Date.now(),url:t,detail:{uri:r+(e.search?"?".concat(e.search):""),path:r,protocol:e.protocol.replace(":",""),host:e.hostname,port:e.port,search:e.search,hash:e.hash.replace("#","")}};this.anys.write(n)},r=e,n&>(r.prototype,n),o&>(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function Pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Et(n.key),n)}}function Et(t){var e=function(t,e){if("object"!==St(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===St(e)?e:String(e)}function xt(t,e){return xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xt(t,e)}var _t=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xt(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){var t="ontouchend"in document;return{touch:t,touchstart:t,touchend:t,touchmove:t}},i.addEventListener=function(t){var e=this;if(this.anys.options.touch){var r=0,n=function(n){if(!r){var o=window,i=o.innerWidth,u=o.innerHeight,a=n.target,c=n.identifier,f=n.force,s=n.pageX,l=n.pageY,p={type:t,time:Date.now(),detail:{e:et(a),width:i,height:u,x:s,y:l,identifier:c,force:f}};requestAnimationFrame((function(){e.anys.write(p),r=0})),r=1}};return document.addEventListener(t,n,!0),function(){return document.removeEventListener(t,n)}}},i.registerTouchmove=function(){return this.addEventListener("touchmove")},i.registerTouchend=function(){return this.addEventListener("touchend")},i.registerTouchstart=function(){return this.addEventListener("touchstart")},r=e,n&&Pt(r.prototype,n),o&&Pt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function kt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,At(n.key),n)}}function At(t){var e=function(t,e){if("object"!==Lt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lt(e)?e:String(e)}var Tt=function(){function t(){this.queue=[],this.status=0}var e,r,n;return t.prototype.push=function(t){var e,r,n=this,o=new Promise((function(t,n){e=t,r=n})),i={runner:t,resolve:e,reject:r};this.queue.push(i);return this.status||function t(){setTimeout((function(){if(n.queue.length){var e=n.queue.shift(),r=e.runner,o=e.resolve,i=e.reject;r().then(o,i).finally(t)}else n.status=0}),0),n.status=1}(),o},e=t,r&&kt(e.prototype,r),n&&kt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Dt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Nt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rt(n.key),n)}}function Mt(t,e,r){return e&&Nt(t.prototype,e),r&&Nt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rt(t){var e=function(t,e){if("object"!==qt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qt(e)?e:String(e)}var Bt=function(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,r=t.version,n=void 0===r?1:r,o=t.stores,i=!e;e||(e="__indb__"),o&&Array.isArray(o)&&o.length||(o=[{name:"__indb__",isKv:!0}]),this.cache={},this.connection=null,this.name=e,this.version=n,this.stores=o;var u=indexedDB.open(e,n);if(u.onupgradeneeded=function(t){var e=t.target.result,r=Array.from(e.objectStoreNames),n=[];o.forEach((function(o){var i=null;if(r.indexOf(o.name)>-1)i=t.target.transaction.objectStore(o.name);else{var u=o.isKv?"key":o.primaryKeyPath,a=!o.isKv&&o.autoIncrement;i=e.createObjectStore(o.name,{keyPath:u,autoIncrement:a})}var c=i.indexNames;c&&c.length&&Array.from(c).forEach((function(t){return i.deleteIndex(t)})),o.indexes&&o.indexes.length&&o.indexes.forEach((function(t){i.createIndex(t.name,t.keyPath||t.name,{unique:t.unique,multiEntry:Array.isArray(t.keyPath)})})),n.push(o.name)})),r&&r.forEach((function(t){-1===n.indexOf(t)&&e.deleteObjectStore(t)}))},u.onblocked=function(t){console.error(Ct(new Error("indexedDB "+e+" is blocked")))},i)return this.use(e)}var e=t.prototype;return e.connect=function(){var t=this;return new Promise((function(e,r){var n=indexedDB.open(t.name,t.version);n.onerror=function(t){r(Ct(t))},n.onsuccess=function(t){e(t.target.result)}}))},e.use=function(t){var e=this.stores.find((function(e){return e.name===t}));if(!e)throw new Error("[InDB]: store ".concat(t," is not existing."));if(this.cache[t])return this.cache[t];var r=new Ut({db:this,store:e});return e.isKv&&Object.defineProperties(r,{key:{value:function(t){return r.keys().then((function(e){return e&&e[t]}))}},getItem:{value:function(t){return r.get(t).then((function(t){return t&&t.value}))}},setItem:{value:function(t,e){return r.put({key:t,value:e})}},removeItem:{value:function(t){return r.delete(t)}}}),this.cache[t]=r,r},e.close=function(){return this.cache=null,this.stores=null,this.connect().then((function(t){t.close()}))},t.deleteDatabase=function(t){return new Promise((function(e,r){var n=indexedDB.deleteDatabase(t);n.onsuccess=function(){e()},n.onerror=function(t){r(t)}}))},t.databases=function(){return indexedDB.databases()},Mt(t)}(),Ut=function(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.store,r=t.db;if("object"!==qt(e)||!e.name||"string"!=typeof e.name)throw new Error("[InDBStore]: options.store should be a store config object.");if(!(r instanceof Bt))throw new Error("[InDBStore]: options.db should be an instanceof InDB.");this.db=r,this.store=e,this.name=e.name,this.primaryKeyPath=e.isKv?"key":e.primaryKeyPath,this._queue=[]}var e=t.prototype;return e.transaction=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=function(){var r=t.name,n=e?"readwrite":"readonly",o=t.db.connection;return(o?Promise.resolve(o):t.db.connect()).then((function(e){t.db.connection=e;var o=e.transaction(r,n),i=function(){t.db.connection=null,t._queue.shift()};return o.oncomplete=i,o.onabort=i,o.onerror=i,o}))},n=this._queue[this._queue.length-1],o=n?n.then((function(){return r()})):r();return this._queue.push(o),o},e.objectStore=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.name;return this.transaction(t).then((function(t){return t.objectStore(e)}))},e.cursor=function(t){var e=t.index,r=t.range,n=t.direction,o=t.onTouch,i=t.onDone,u=t.onError,a=t.writable,c=void 0!==a&&a;return this.objectStore(c).then((function(t){var a=e?t.index(e):t,c=a.openCursor(r,n);c.onsuccess=function(t){var e=t.target.result;e?o(e,a):i(e,a)},c.onerror=function(t){u(Ct(t))}}))},e.request=function(t){var e=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).writable,n=void 0!==r&&r;return new Promise((function(r,o){e.objectStore(n).then((function(e){var n=t(e);n.onsuccess=function(t){var e=t.target.result;r(e)},n.onerror=function(t){o(Ct(t))}}))}))},e.iterate=function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.index,o=r.range,i=r.writable,u=void 0!==i&&i,a=r.direction,c=void 0===a?"next":a;return new Promise((function(r,i){e.cursor({index:n,range:o,writable:u,direction:c,onTouch:function(e,n){t(e,(function(){return e.continue()}),(function(){n.transaction.commit(),r()}))},onDone:function(){r()},onError:function(t){i(t)}})}))},e.batch=function(t){var e=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).writable,n=void 0===r||r;return this.transaction(n).then((function(r){var n=e.name,o=[],i=r.objectStore(n);return t.forEach((function(t){var e=new Promise((function(e,r){var n=t(i);n.onsuccess=function(t){var r=t.target.result;e(r)},n.onerror=function(t){r(Ct(t))}}));o.push(e)})),Promise.all(o)}))},e.get=function(t){if(!Array.isArray(t))return this.request((function(e){return e.get(t)}));var e=t.map((function(t){return function(e){return e.get(t)}}));return this.batch(e,{writable:!1})},e.keys=function(){var t=this.primaryKeyPath,e=[];return this.each((function(r){var n=$t(r,t);e.push(n)})).then((function(){return e}))},e.all=function(){var t=[];return this.each((function(e){t.push(e)})).then((function(){return t}))},e.count=function(){return this.request((function(t){return t.count()}))},e.each=function(t){return this.iterate((function(e,r){var n=e.value;t(n),r()}))},e.reverse=function(t){return this.iterate((function(e,r){var n=e.value;t(n),r()}),{direction:"prev"})},e.some=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Promise((function(n,o){var i,u=[],a=0,c=r,f=r+e;r<0&&(i="prev",e=Math.min(e,-r),f=(c=-(r+e)||0)+e),t.iterate((function(t,e,r){a<c?(a++,e()):a<f?(u.push(t.value),a++,e()):r()}),{direction:i}).then((function(){r<0&&u.reverse(),n(u)})).catch(o)}))},e.first=function(){return this.some(1).then((function(t){return t[0]}))},e.last=function(){return this.some(1,-1).then((function(t){return t[0]}))},e.find=function(t,e){return this.request((function(r){return r.index(t).get(e)}))},e.query=function(t,e,r){var n=this,o=function(){switch(r){case">":return IDBKeyRange.lowerBound(e,!0);case">=":return IDBKeyRange.lowerBound(e);case"<":return IDBKeyRange.upperBound(e,!0);case"<=":return IDBKeyRange.upperBound(e);case"%":case"!=":case"in":return;default:return IDBKeyRange.only(e)}}(),i=[];return new Promise((function(u,a){n.cursor({index:t,range:o,onTouch:function(t,n){var o=t.value,u=$t(o,n.keyPath);"!="===r?u!==e&&i.push(o):"%"===r?"string"==typeof u&&u.indexOf(e)>-1&&i.push(o):"in"===r?Array.isArray(e)&&e.indexOf(u)>-1&&i.push(o):i.push(o),t.continue()},onDone:function(){u(i)},onError:function(t){a(t)}})}))},e.select=function(){var t=this.store.indexes||[],e={};t.forEach((function(t){var r=t.name,n=t.keyPath;e[r]=n}));for(var r=function(t,e,r){if(void 0===t)return!1;switch(r){case">":return t>e;case">=":return t>=e;case"<":return t<e;case"<=":return t<=e;case"!=":return t!==e;case"%":return"string"==typeof t&&t.indexOf(e)>-1;case"in":return Array.isArray(e)&&e.indexOf(t)>-1;default:return t===e}},n=function(t,e,n){if(!e.length&&!n.length)return!1;for(var o=0,i=e.length;o<i;o++){var u=e[o],a=u.keyPath,c=u.value,f=u.compare,s=$t(t,a);if(!r(s,c,f))return!1}if(!n.length)return!0;for(var l=0,p=n.length;l<p;l++){var y=n[l],h=y.keyPath,v=y.value,d=y.compare,m=$t(t,h);if(r(m,v,d))return!0}return!1},o=[],i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];u.forEach((function(t){for(var r=[],n=[],i=0,u=t.length;i<u;i++){var a=t[i],c=a.key,f=a.value,s=a.compare,l=a.optional,p=e[c]||c;l?r.push({keyPath:p,value:f,compare:s}):n.push({keyPath:p,value:f,compare:s})}o.push([n,r])}));var c=[];return this.each((function(t){(function(t){for(var e=0,r=o.length;e<r;e++){var i=It(o[e],2),u=i[0],a=i[1];if(n(t,u,a))return!0}return!1})(t)&&c.push(t)})).then((function(){return c}))},e.add=function(t,e){if(Array.isArray(t)){var r=t;if(r.length<2)return this.add(t[0],e);var n=r.map((function(t){return function(r){return r.add(t,e)}}));return this.batch(n)}return t?this.request((function(r){return r.add(t,e)}),{writable:!0}):Promise.resolve()},e.put=function(t,e){if(Array.isArray(t)){var r=t;if(r.length<2)return this.put(r[0],e);var n=r.map((function(t){return function(r){return r.put(t,e)}}));return this.batch(n)}return t?this.request((function(r){return r.put(t,e)}),{writable:!0}):Promise.resolve()},e.delete=function(t){if(Array.isArray(t)){var e=t;if(e.length<2)return this.delete(e[0]);var r=e.map((function(t){return function(e){return e.delete(t)}}));return this.batch(r)}return t?this.request((function(e){return e.delete(t)}),{writable:!0}):Promise.resolve()},e.remove=function(t){var e=this.primaryKeyPath;if(Array.isArray(t)){var r=t;if(r.length<2)return this.remove(r[0]);var n=r.map((function(t){var r=$t(t,e);return function(t){return t.delete(r)}}));return this.batch(n)}if(!t)return Promise.resolve();var o=$t(t,e);return o?this.delete(o):Promise.resolve()},e.clear=function(){return this.request((function(t){return t.clear()}),{writable:!0})},Mt(t)}();function $t(t,e){if(null!=e){if(!Array.isArray(e)){var r=function(t){return t.toString().split(/\.|\[|\]/).filter((function(t){return!!t}))}(e);if(!r.length)return t;for(var n=t,o=0,i=r.length;o<i;o++){var u=r[o];if(void 0===n[u])return;n=n[u]}return n}for(var a=0,c=e.length;a<c;a++){var f=$t(t,e[a]);if(void 0!==f)return f}}}function Ct(t){var e=t.message;return t.message=-1===e.indexOf("[IndexedDB]")?"[IndexedDB]: "+e:e,t}function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Xt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ht(n.key),n)}}function Ht(t){var e=function(t,e){if("object"!==Kt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Kt(e)?e:String(e)}var zt=function(){function t(t){this.anys=t,this.queue=new Tt}var e,r,n,o=t.prototype;return o.options=function(){return{namespace:new Error("options.namespace is required!"),autoReport:!1,expireTime:1728e5}},o.init=function(){var t="logs",e=new Bt({name:this.anys.options.namespace,version:2,stores:[{name:t,primaryKeyPath:"_id",autoIncrement:!0}]});this.db=e.use(t)},o.ready=function(){var t=this,e=this.anys.options.expireTime;if(e)var r=0,n=setInterval((function(){t.queue.push((function(){return t.db.some(100,r)})).then((function(o){if(o.length){var i=Date.now(),u=[];o.forEach((function(t){var r=t._id,n=t.time;i-n>e&&u.push(r)})),u.length&&t.queue.push((function(){return t.db.delete(u)})),r+=100,r-=u.length}else clearInterval(n)}))}),1e4)},o.write=function(t){var e=this;this.queue.push((function(){return e.db.add(t)})).then((function(r){e.anys.emit("writeOfflineLog",{id:r,data:t})}))},o.read=function(t){if(t){if(!Array.isArray(t))return;if(t.some((function(t){return!t.key})))return}else t=[{key:"client",value:this.anys.clientId},{key:"trace",value:this.anys.traceId}];return this.select(t)},o.clear=function(t){var e=this;return this.queue.push((function(){return e.db.remove(t)})).catch((function(){}))},o.select=function(t){var e=this;return this.queue.push((function(){return e.db.select(t)}))},o.remove=function(t){var e=this;return this.queue.push((function(){return e.db.delete(t)})).catch((function(){}))},e=t,r&&Xt(e.prototype,r),n&&Xt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}();function Yt(t){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(t)}function Ft(t){return function(t){if(Array.isArray(t))return Wt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Gt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(t,e){if(t){if("string"==typeof t)return Wt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wt(t,e):void 0}}function Wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Vt(n.key),n)}}function Vt(t){var e=function(t,e){if("object"!==Yt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yt(e)?e:String(e)}function Jt(t,e){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jt(t,e)}var Qt=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jt(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{mutation:!0}},i.registerMutation=function(){var t=this,e=this.createObserver((function(e){var r={type:"mutation",time:Date.now(),detail:e};t.anys.write(r)}));return window.addEventListener("load",(function(){e.observe(document,{characterData:!0,attributes:!0,childList:!0,subtree:!0}),t.recordSnapshot(),te(document.documentElement)})),function(){e.disconnect()}},i.recordSnapshot=function(){var t=function(){var t,e=document.doctype,r=e.name,n=e.publicId,o=e.systemId,i={name:r,publicId:n,systemId:o},u=ee(document.documentElement.innerHTML),a={},c=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Gt(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}(document.querySelector("html").attributes);try{for(c.s();!(t=c.n()).done;){var f=t.value,s=f.name,l=f.value;a[s]=l}}catch(t){c.e(t)}finally{c.f()}var p=(y=document.querySelectorAll("input, textarea, select"),h=[],Array.from(y).forEach((function(t){var e=et(t),r="password"===t.type?"***":t.value;h.push({el:e,value:r})})),h);var y,h;return{doctype:i,attrs:a,html:u,values:p}}(),e=window.location.href,r=new URL(e),n=r.pathname.replace(/^([^/])/,"/$1");this.anys.write({type:"snapshot",time:Date.now(),url:{uri:n+(r.search?"?".concat(r.search):""),path:n,protocol:r.protocol.replace(":",""),host:r.hostname,port:r.port,search:r.search,hash:r.hash.replace("#","")},detail:t})},i.createObserver=function(t){var e=new MutationObserver((function(e){var r=[];Ft(e).reverse().forEach((function(t){var e=t.type,n=t.target,o=t.attributeName,i=t.oldValue;if(!function(t){var e;if(null!==(e=t.hasAttribute)&&void 0!==e&&e.call(t,"anys-ignore"))return!0;for(var r=t.parentNode;r;){var n,o;if(null!==(n=(o=r).hasAttribute)&&void 0!==n&&n.call(o,"anys-ignore"))return!0;r=r.parentNode}return!1}(n)){if("attributes"===e){if(n.getAttribute(o)===i)return;if(r.find((function(t){return t.type===e&&t.target===n&&t.attributeName===o})))return}else if("characterData"===e){var u=n.data;if(u===i)return;if(r.find((function(t){return t.type===e&&t.target===n&&t.target.data===u})))return}r.push(t)}})),r.reverse();var n=[];r.forEach((function(t){var e=t.type,r=t.target,o=t.attributeName,i=t.oldValue,u=r.path||et(r),a=function(t){return et(t).replace(u+"/","")};if("attributes"===e){var c=r.getAttribute(o),f=i;n.push({type:"attribute",target:u,name:o,next:c,prev:f})}else if("characterData"===e){var s=r.data,l=i;n.push({type:"text",target:u,next:s,prev:l})}else if("childList"===e){if("TEXTAREA"===r.nodeName)return;var p=t.removedNodes,y=t.addedNodes,h=t.previousSibling,v=t.nextSibling,d=[],m=Array.from(p).map((function(t){if(!document.body.contains(t)){var e=t.path?a(t):null,r=h?et(h):null,n=v?et(v):null,o={};return e?o.node=e:(o.before=r,o.after=n),o}d.push({node:t,path:et(t)})})).filter(Boolean),b=[],g=Array.from(y).map((function(t){var e=t.nextSibling?a(t.nextSibling):null,r=d.find((function(e){return e.node===t}));if(!r){var n="#text"===t.nodeName,o="#comment"===t.nodeName,i=n?t.data:null,u=o?t.data:null;return{text:i,html:n||o?null:ee(t.outerHTML),comment:u,sibling:e}}b.push({node:r.path,sibling:e})})).filter(Boolean);n.push({type:"children",target:u,remove:m,insert:g,move:b}),te(r)}})),t(n)}));return te(document),e},r=e,n&&Zt(r.prototype,n),o&&Zt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function te(t){if(t!==document){var e=et(t);t.path=e}var r=t.childNodes;Array.from(r).forEach((function(t){te(t)}))}function ee(t){return t.replace(/<script([^]*?)>([^]*?)<\/script>/gm,"<noscript$1></noscript>").replace(/<noscript([^]*?)>([^]*?)<\/noscript>/gm,"<noscript$1></noscript>").replace(/<link([^]*?)as="script"([^]*?)>/g,"<link$1$2>").replace(/\n\n*\s*\n*\n/gm,"\n")}function re(t){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(t)}function ne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oe(n.key),n)}}function oe(t){var e=function(t,e){if("object"!==re(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===re(e)?e:String(e)}function ie(t,e){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ie(t,e)}var ue=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ie(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{size:!0}},i.createRecordLog=function(){var t=window,e=t.innerWidth,r=t.innerHeight;return{type:"window_size",time:Date.now(),detail:{width:e,height:r}}},i.registerSize=function(){var t,e=this,r=function(){clearTimeout(t);var r=e.createRecordLog();t=setTimeout((function(){e.anys.write(r)}),100)};return this.recordSize(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}},i.recordSize=function(){var t=this.createRecordLog();this.anys.write(t)},r=e,n&&ne(r.prototype,n),o&&ne(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}function ce(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fe(n.key),n)}}function fe(t){var e=function(t,e){if("object"!==ae(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ae(e)?e:String(e)}function se(t,e){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},se(t,e)}var le=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&se(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){return{scroll:!0}},i.registerScroll=function(){var t=this,e=0,r=function(r){if(!e){var n,o=r.target;if(r.bubbles){var i=window,u=i.scrollX,a=i.scrollY;n={type:"window_scroll",time:Date.now(),detail:{scrollX:u,scrollY:a}}}else{var c=o.scrollLeft,f=o.scrollTop;n={type:"scroll",time:Date.now(),target:et(o),detail:{scrollLeft:c,scrollTop:f}}}requestAnimationFrame((function(){t.anys.write(n),e=0})),e=1}};return window.addEventListener("scroll",r,!0),function(){window.removeEventListener("scroll",r)}},r=e,n&&ce(r.prototype,n),o&&ce(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function pe(t){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(t)}var ye=["_id"];function he(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return de(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return de(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function me(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,be(n.key),n)}}function be(t){var e=function(t,e){if("object"!==pe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pe(e)?e:String(e)}function ge(t,e){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ge(t,e)}var we=function(t){function e(e,r){var n,o=ve(r,4),i=o[0],u=o[1],a=o[2],c=o[3];return(n=t.call(this,e)||this).offlineStore=i,n.urlMonitor=u,n.windowSizeMonitor=a,n.DOMMutationMonitor=c,n.cache={},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ge(t,e)}(e,t);var r,n,o,i=e.prototype;return i.options=function(){var t="ontouchend"in document;return{touch:t,mouse:!t,click:!1,mousedown:!0,mousemove:!0,mouseup:!0,autoReport:!1,reportUrl:new Error("options.reportUrl is required!"),reportInterval:1e4,reportParams:null}},i.registerAutoReport=function(){var t=this,e=this.anys.clientId,r=function(r){var n=r.prev;t.anys.report([{key:"client",value:e},{key:"trace",value:n}]),t.cache={},t.urlMonitor.recordUrl(),t.windowSizeMonitor.recordSize(),t.DOMMutationMonitor.recordSnapshot()};this.anys.on("refreshTraceId",r);var n=setInterval((function(){t.anys.report()}),this.anys.options.reportInterval),o=0,i=function(){if(!o){o=1;var e=Object.keys(t.cache),r=Object.values(t.cache);e.length&&(t.offlineStore.remove(e),navigator.sendBeacon(t.anys.options.reportUrl,JSON.stringify(r)),t.cache={})}};window.addEventListener("beforeunload",i),window.addEventListener("pagehide",i),window.addEventListener("unload",i);var u=function(e){var r=e.id,n=e.data;t.cache[r]=n};return this.anys.on("writeOfflineLog",u),function(){t.anys.off("refreshTraceId",r),t.anys.off("writeOfflineLog",u),clearInterval(n),window.removeEventListener("beforeunload",i)}},i.read=function(t){return this.offlineStore.read(t)},i.arrange=function(t){var e=[],r=0;return t.forEach((function(t){e[r]=e[r]||[],e[r].push(t),e[r].length>200&&r++})),e},i.send=function(t){var e=this,r=[],n=[];if(t.forEach((function(t){var e=t._id,o=he(t,ye);n.push(e),r.push(o)})),r.length){var o=this.anys.options,i=o.reportUrl,u=o.reportParams;return function(t,e){return new Promise((function(r,n){var o=new(window.__XMLHttpRequest||window.XMLHttpRequest);o.open("POST",t,!0),o.onreadystatechange=function(){4==o.readyState&&(200==o.status?r(o.responseText):n(new Error("ajax post fail with status ".concat(o.status))))},o.onerror=n,o.send(JSON.stringify(e))}))}(u?k(i,u):i,{data:r}).then((function(){n.forEach((function(t){delete e.cache[t]}))}))}},i.clear=function(){this.cache={}},r=e,n&&me(r.prototype,n),o&&me(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(D);function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Se(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?je(Object(r),!0).forEach((function(e){Pe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pe(t,e,r){return(e=xe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xe(n.key),n)}}function xe(t){var e=function(t,e){if("object"!==Oe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Oe(e)?e:String(e)}function _e(t,e){return _e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_e(t,e)}we.dependencies=[zt,jt,ue,Qt,tt,Z,ut,lt,mt,_t,le];var Le=function(t){function e(){return t.apply(this,arguments)||this}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_e(t,e)}(e,t),e.prototype.auth=function(t){this.options.reportParams=Object.assign(this.options.reportParams||{},t)},r=e,n&&Ee(r.prototype,n),o&&Ee(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(w),ke=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Le(Se(Se({namespace:"AnysTracer"},t),{},{plugins:Se(Se({},t.plugins||{}),{},{tracer:we})}))}}();var r=anys="undefined"==typeof anys?{}:anys;for(var n in e)r[n]=e[n];e.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})}();
|
|
3
3
|
//# sourceMappingURL=index.js.map
|