!function(){"use strict";var t={1896:function(t,e,n){var r=n(9063),o=n(4596),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},3984:function(t,e,n){var r=n(780),o=n(4596),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a constructor")}},9472:function(t,e,n){var r=n(968),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},2328:function(t,e,n){var r=n(1840),o=n(8340),i=n(368).f,a=r("unscopables"),c=Array.prototype;void 0===c[a]&&i(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},6884:function(t,e,n){var r=n(1968).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5796:function(t,e,n){var r=n(6056),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},8424:function(t,e,n){var r=n(808),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},6460:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7736:function(t,e,n){var r,o,i,a=n(6460),c=n(3528),u=n(5624),s=n(9063),l=n(808),f=n(6216),p=n(8040),d=n(4596),v=n(3652),h=n(3244),g=n(1720),y=n(6056),m=n(1304),b=n(5168),w=n(1840),x=n(320),O=n(5444),S=O.enforce,E=O.get,_=u.Int8Array,I=_&&_.prototype,P=u.Uint8ClampedArray,j=P&&P.prototype,A=_&&m(_),T=I&&m(I),k=Object.prototype,L=u.TypeError,R=w("toStringTag"),D=x("TYPED_ARRAY_TAG"),C="TypedArrayConstructor",M=a&&!!b&&"Opera"!==p(u.opera),N=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(t){var e=m(t);if(l(e)){var n=E(e);return n&&f(n,C)?n[C]:U(e)}},V=function(t){if(!l(t))return!1;var e=p(t);return f(B,e)||f(F,e)};for(r in B)(i=(o=u[r])&&o.prototype)?S(i)[C]=o:M=!1;for(r in F)(i=(o=u[r])&&o.prototype)&&(S(i)[C]=o);if((!M||!s(A)||A===Function.prototype)&&(A=function(){throw new L("Incorrect invocation")},M))for(r in B)u[r]&&b(u[r],A);if((!M||!T||T===k)&&(T=A.prototype,M))for(r in B)u[r]&&b(u[r].prototype,T);if(M&&m(j)!==T&&b(j,T),c&&!f(T,R))for(r in N=!0,g(T,R,{configurable:!0,get:function(){return l(this)?this[D]:void 0}}),B)u[r]&&v(u[r],D,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:N&&D,aTypedArray:function(t){if(V(t))return t;throw new L("Target is not a typed array")},aTypedArrayConstructor:function(t){if(s(t)&&(!b||y(A,t)))return t;throw new L(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(c){if(n)for(var o in B){var i=u[o];if(i&&f(i.prototype,t))try{delete i.prototype[t]}catch(n){try{i.prototype[t]=e}catch(t){}}}T[t]&&!n||h(T,t,n?e:M&&I[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,o;if(c){if(b){if(n)for(r in B)if((o=u[r])&&f(o,t))try{delete o[t]}catch(t){}if(A[t]&&!n)return;try{return h(A,t,n?e:M&&A[t]||e)}catch(t){}}for(r in B)!(o=u[r])||o[t]&&!n||h(o,t,e)}},getTypedArrayConstructor:U,isView:function(t){if(!l(t))return!1;var e=p(t);return"DataView"===e||f(B,e)||f(F,e)},isTypedArray:V,TypedArray:A,TypedArrayPrototype:T}},4025:function(t,e,n){var r=n(5624),o=n(1447),i=n(3528),a=n(6460),c=n(3788),u=n(3652),s=n(1720),l=n(5248),f=n(6040),p=n(5796),d=n(3288),v=n(960),h=n(4084),g=n(6136),y=n(7015),m=n(1304),b=n(5168),w=n(5212),x=n(7588),O=n(2744),S=n(4304),E=n(4200),_=n(5444),I=c.PROPER,P=c.CONFIGURABLE,j="ArrayBuffer",A="DataView",T="prototype",k="Wrong index",L=_.getterFor(j),R=_.getterFor(A),D=_.set,C=r[j],M=C,N=M&&M[T],B=r[A],F=B&&B[T],U=Object.prototype,V=r.Array,z=r.RangeError,G=o(w),H=o([].reverse),W=y.pack,Q=y.unpack,q=function(t){return[255&t]},Y=function(t){return[255&t,t>>8&255]},$=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},J=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},X=function(t){return W(g(t),23,4)},K=function(t){return W(t,52,8)},Z=function(t,e,n){s(t[T],e,{configurable:!0,get:function(){return n(this)[e]}})},tt=function(t,e,n,r){var o=R(t),i=h(n),a=!!r;if(i+e>o.byteLength)throw new z(k);var c=o.bytes,u=i+o.byteOffset,s=x(c,u,u+e);return a?s:H(s)},et=function(t,e,n,r,o,i){var a=R(t),c=h(n),u=r(+o),s=!!i;if(c+e>a.byteLength)throw new z(k);for(var l=a.bytes,f=c+a.byteOffset,p=0;p>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else N=(M=function(t){p(this,N);var e=h(t);D(this,{type:j,bytes:G(V(e),0),byteLength:e}),i||(this.byteLength=e,this.detached=!1)})[T],F=(B=function(t,e,n){p(this,F),p(t,N);var r=L(t),o=r.byteLength,a=d(e);if(a<0||a>o)throw new z("Wrong offset");if(a+(n=void 0===n?o-a:v(n))>o)throw new z("Wrong length");D(this,{type:A,buffer:t,byteLength:n,byteOffset:a,bytes:r.bytes}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=a)})[T],i&&(Z(M,"byteLength",L),Z(B,"buffer",R),Z(B,"byteLength",R),Z(B,"byteOffset",R)),l(F,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return J(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return J(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return Q(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,q,e)},setUint8:function(t,e){et(this,1,t,q,e)},setInt16:function(t,e){et(this,2,t,Y,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,Y,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,$,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,$,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,X,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,K,e,arguments.length>2&&arguments[2])}});E(M,j),E(B,A),t.exports={ArrayBuffer:M,DataView:B}},5212:function(t,e,n){var r=n(6804),o=n(4160),i=n(9480);t.exports=function(t){for(var e=r(this),n=i(e),a=arguments.length,c=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,s=void 0===u?n:o(u,n);s>c;)e[c++]=t;return e}},4244:function(t,e,n){var r=n(9480);t.exports=function(t,e,n){for(var o=0,i=arguments.length>2?n:r(e),a=new t(i);i>o;)a[o]=e[o++];return a}},2196:function(t,e,n){var r=n(9740),o=n(4160),i=n(9480),a=function(t){return function(e,n,a){var c,u=r(e),s=i(u),l=o(a,s);if(t&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4904:function(t,e,n){var r=n(2880),o=n(1447),i=n(6212),a=n(6804),c=n(9480),u=n(8488),s=o([].push),l=function(t){var e=1===t,n=2===t,o=3===t,l=4===t,f=6===t,p=7===t,d=5===t||f;return function(v,h,g,y){for(var m,b,w=a(v),x=i(w),O=c(x),S=r(h,g),E=0,_=y||u,I=e?_(v,O):n||p?_(v,0):void 0;O>E;E++)if((d||E in x)&&(b=S(m=x[E],E,w),t))if(e)I[E]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:s(I,m)}else switch(t){case 4:return!1;case 7:s(I,m)}return f?-1:o||l?l:I}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},4528:function(t,e,n){var r=n(6040);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},7588:function(t,e,n){var r=n(1447);t.exports=r([].slice)},584:function(t,e,n){var r=n(7588),o=Math.floor,i=function(t,e){var n=t.length;if(n<8)for(var a,c,u=1;u0;)t[c]=t[--c];c!==u++&&(t[c]=a)}else for(var s=o(n/2),l=i(r(t,0,s),e),f=i(r(t,s),e),p=l.length,d=f.length,v=0,h=0;v9007199254740991)throw e("Maximum allowed index exceeded");return t}},5848:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8280:function(t,e,n){var r=n(9308)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},2392:function(t,e,n){var r=n(8232).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},7464:function(t,e,n){var r=n(8232);t.exports=/MSIE|Trident/.test(r)},8232:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3356:function(t,e,n){var r,o,i=n(5624),a=n(8232),c=i.process,u=i.Deno,s=c&&c.versions||u&&u.version,l=s&&s.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},315:function(t,e,n){var r=n(8232).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},4656:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3748:function(t,e,n){var r=n(5624),o=n(4560).f,i=n(3652),a=n(3244),c=n(1544),u=n(4304),s=n(5272);t.exports=function(t,e){var n,l,f,p,d,v=t.target,h=t.global,g=t.stat;if(n=h?r:g?r[v]||c(v,{}):r[v]&&r[v].prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(d=o(n,l))&&d.value:n[l],!s(h?l:v+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,t)}}},6040:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8760:function(t,e,n){n(2644);var r=n(892),o=n(3244),i=n(8096),a=n(6040),c=n(1840),u=n(3652),s=c("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var p=c(t),d=!a((function(){var e={};return e[p]=function(){return 7},7!==""[t](e)})),v=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!d||!v||n){var h=/./[p],g=e(p,""[t],(function(t,e,n,o,a){var c=e.exec;return c===i||c===l.exec?d&&!a?{done:!0,value:r(h,e,n,o)}:{done:!0,value:r(t,n,e,o)}:{done:!1}}));o(String.prototype,t,g[0]),o(l,p,g[1])}f&&u(l[p],"sham",!0)}},3052:function(t,e,n){var r=n(1064),o=n(9480),i=n(3272),a=n(2880),c=function(t,e,n,u,s,l,f,p){for(var d,v,h=s,g=0,y=!!f&&a(f,p);g0&&r(d)?(v=o(d),h=c(t,e,d,v,h,l-1)-1):(i(h+1),t[h]=d),h++),g++;return h};t.exports=c},4744:function(t,e,n){var r=n(5744),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},2880:function(t,e,n){var r=n(8168),o=n(1896),i=n(5744),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},5744:function(t,e,n){var r=n(6040);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},892:function(t,e,n){var r=n(5744),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},3788:function(t,e,n){var r=n(3528),o=n(6216),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},6632:function(t,e,n){var r=n(1447),o=n(1896);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},8168:function(t,e,n){var r=n(5983),o=n(1447);t.exports=function(t){if("Function"===r(t))return o(t)}},1447:function(t,e,n){var r=n(5744),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},4960:function(t,e,n){var r=n(5624),o=n(9063);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},7508:function(t,e,n){var r=n(8040),o=n(364),i=n(952),a=n(4920),c=n(1840)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||a[r(t)]}},2704:function(t,e,n){var r=n(892),o=n(1896),i=n(8424),a=n(4596),c=n(7508),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?c(t):e;if(o(n))return i(r(n,t));throw new u(a(t)+" is not iterable")}},364:function(t,e,n){var r=n(1896),o=n(952);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},4740:function(t,e,n){var r=n(1447),o=n(6804),i=Math.floor,a=r("".charAt),c=r("".replace),u=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,p){var d=n+t.length,v=r.length,h=l;return void 0!==f&&(f=o(f),h=s),c(p,h,(function(o,c){var s;switch(a(c,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":s=f[u(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>v){var p=i(l/10);return 0===p?o:p<=v?void 0===r[p-1]?a(c,1):r[p-1]+a(c,1):o}s=r[l-1]}return void 0===s?"":s}))}},5624:function(t,e,n){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6216:function(t,e,n){var r=n(1447),o=n(6804),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},6480:function(t){t.exports={}},6836:function(t,e,n){var r=n(4960);t.exports=r("document","documentElement")},784:function(t,e,n){var r=n(3528),o=n(6040),i=n(9308);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7015:function(t){var e=Array,n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;t.exports={pack:function(t,c,u){var s,l,f,p=e(u),d=8*u-c-1,v=(1<>1,g=23===c?r(2,-24)-r(2,-77):0,y=t<0||0===t&&1/t<0?1:0,m=0;for((t=n(t))!=t||t===1/0?(l=t!=t?1:0,s=v):(s=o(i(t)/a),t*(f=r(2,-s))<1&&(s--,f*=2),(t+=s+h>=1?g/f:g*r(2,1-h))*f>=2&&(s++,f/=2),s+h>=v?(l=0,s=v):s+h>=1?(l=(t*f-1)*r(2,c),s+=h):(l=t*r(2,h-1)*r(2,c),s=0));c>=8;)p[m++]=255&l,l/=256,c-=8;for(s=s<0;)p[m++]=255&s,s/=256,d-=8;return p[--m]|=128*y,p},unpack:function(t,e){var n,o=t.length,i=8*o-e-1,a=(1<>1,u=i-7,s=o-1,l=t[s--],f=127&l;for(l>>=7;u>0;)f=256*f+t[s--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;)n=256*n+t[s--],u-=8;if(0===f)f=1-c;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=r(2,e),f-=c}return(l?-1:1)*n*r(2,f-e)}}},6212:function(t,e,n){var r=n(1447),o=n(6040),i=n(5983),a=Object,c=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):a(t)}:a},2744:function(t,e,n){var r=n(9063),o=n(808),i=n(5168);t.exports=function(t,e,n){var a,c;return i&&r(a=e.constructor)&&a!==n&&o(c=a.prototype)&&c!==n.prototype&&i(t,c),t}},8460:function(t,e,n){var r=n(1447),o=n(9063),i=n(9136),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},5444:function(t,e,n){var r,o,i,a=n(280),c=n(5624),u=n(808),s=n(3652),l=n(6216),f=n(9136),p=n(8192),d=n(6480),v="Object already initialized",h=c.TypeError,g=c.WeakMap;if(a||f.state){var y=f.state||(f.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw new h(v);return e.facade=t,y.set(t,e),e},o=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var m=p("state");d[m]=!0,r=function(t,e){if(l(t,m))throw new h(v);return e.facade=t,s(t,m,e),e},o=function(t){return l(t,m)?t[m]:{}},i=function(t){return l(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return n}}}},4264:function(t,e,n){var r=n(1840),o=n(4920),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},1064:function(t,e,n){var r=n(5983);t.exports=Array.isArray||function(t){return"Array"===r(t)}},2040:function(t,e,n){var r=n(8040);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},9063:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},780:function(t,e,n){var r=n(1447),o=n(6040),i=n(9063),a=n(8040),c=n(4960),u=n(8460),s=function(){},l=c("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=r(f.exec),d=!f.test(s),v=function(t){if(!i(t))return!1;try{return l(s,[],t),!0}catch(t){return!1}},h=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(f,u(t))}catch(t){return!0}};h.sham=!0,t.exports=!l||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?h:v},5272:function(t,e,n){var r=n(6040),o=n(9063),i=/#|\.prototype\./,a=function(t,e){var n=u[c(t)];return n===l||n!==s&&(o(e)?r(e):!!e)},c=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},7432:function(t,e,n){var r=n(808),o=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&o(t)===t}},952:function(t){t.exports=function(t){return null==t}},808:function(t,e,n){var r=n(9063);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},968:function(t,e,n){var r=n(808);t.exports=function(t){return r(t)||null===t}},2804:function(t){t.exports=!1},392:function(t,e,n){var r=n(808),o=n(5983),i=n(1840)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},6232:function(t,e,n){var r=n(4960),o=n(9063),i=n(6056),a=n(9448),c=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,c(t))}},4216:function(t,e,n){var r=n(2880),o=n(892),i=n(8424),a=n(4596),c=n(4264),u=n(9480),s=n(6056),l=n(2704),f=n(7508),p=n(2252),d=TypeError,v=function(t,e){this.stopped=t,this.result=e},h=v.prototype;t.exports=function(t,e,n){var g,y,m,b,w,x,O,S=n&&n.that,E=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_RECORD),I=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),j=r(e,S),A=function(t){return g&&p(g,"normal",t),new v(!0,t)},T=function(t){return E?(i(t),P?j(t[0],t[1],A):j(t[0],t[1])):P?j(t,A):j(t)};if(_)g=t.iterator;else if(I)g=t;else{if(!(y=f(t)))throw new d(a(t)+" is not iterable");if(c(y)){for(m=0,b=u(t);b>m;m++)if((w=T(t[m]))&&s(h,w))return w;return new v(!1)}g=l(t,y)}for(x=_?t.next:g.next;!(O=o(x,g)).done;){try{w=T(O.value)}catch(t){p(g,"throw",t)}if("object"==typeof w&&w&&s(h,w))return w}return new v(!1)}},2252:function(t,e,n){var r=n(892),o=n(8424),i=n(364);t.exports=function(t,e,n){var a,c;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){c=!0,a=t}if("throw"===e)throw n;if(c)throw a;return o(a),n}},7936:function(t,e,n){var r=n(5412).IteratorPrototype,o=n(8340),i=n(9200),a=n(4200),c=n(4920),u=function(){return this};t.exports=function(t,e,n,s){var l=e+" Iterator";return t.prototype=o(r,{next:i(+!s,n)}),a(t,l,!1,!0),c[l]=u,t}},8752:function(t,e,n){var r=n(3748),o=n(892),i=n(2804),a=n(3788),c=n(9063),u=n(7936),s=n(1304),l=n(5168),f=n(4200),p=n(3652),d=n(3244),v=n(1840),h=n(4920),g=n(5412),y=a.PROPER,m=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=v("iterator"),O="keys",S="values",E="entries",_=function(){return this};t.exports=function(t,e,n,a,v,g,I){u(n,e,a);var P,j,A,T=function(t){if(t===v&&C)return C;if(!w&&t&&t in R)return R[t];switch(t){case O:case S:case E:return function(){return new n(this,t)}}return function(){return new n(this)}},k=e+" Iterator",L=!1,R=t.prototype,D=R[x]||R["@@iterator"]||v&&R[v],C=!w&&D||T(v),M="Array"===e&&R.entries||D;if(M&&(P=s(M.call(new t)))!==Object.prototype&&P.next&&(i||s(P)===b||(l?l(P,b):c(P[x])||d(P,x,_)),f(P,k,!0,!0),i&&(h[k]=_)),y&&v===S&&D&&D.name!==S&&(!i&&m?p(R,"name",S):(L=!0,C=function(){return o(D,this)})),v)if(j={values:T(S),keys:g?C:T(O),entries:T(E)},I)for(A in j)(w||L||!(A in R))&&d(R,A,j[A]);else r({target:e,proto:!0,forced:w||L},j);return i&&!I||R[x]===C||d(R,x,C,{name:v}),h[e]=C,j}},5412:function(t,e,n){var r,o,i,a=n(6040),c=n(9063),u=n(808),s=n(8340),l=n(1304),f=n(3244),p=n(1840),d=n(2804),v=p("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),!u(r)||a((function(){var t={};return r[v].call(t)!==t}))?r={}:d&&(r=s(r)),c(r[v])||f(r,v,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},4920:function(t){t.exports={}},9480:function(t,e,n){var r=n(960);t.exports=function(t){return r(t.length)}},316:function(t,e,n){var r=n(1447),o=n(6040),i=n(9063),a=n(6216),c=n(3528),u=n(3788).CONFIGURABLE,s=n(8460),l=n(5444),f=l.enforce,p=l.get,d=String,v=Object.defineProperty,h=r("".slice),g=r("".replace),y=r([].join),m=c&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===h(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(c?v(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&a(n,"arity")&&t.length!==n.arity&&v(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?c&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&p(this).source||s(this)}),"toString")},5151:function(t,e,n){var r=n(7824),o=Math.abs,i=2220446049250313e-31,a=1/i;t.exports=function(t,e,n,c){var u=+t,s=o(u),l=r(u);if(sn||p!=p?l*(1/0):l*p}},6136:function(t,e,n){var r=n(5151);t.exports=Math.fround||function(t){return r(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},7824:function(t){t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},1736:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},8340:function(t,e,n){var r,o=n(8424),i=n(5045),a=n(4656),c=n(6480),u=n(6836),s=n(9308),l=n(8192),f="prototype",p="script",d=l("IE_PROTO"),v=function(){},h=function(t){return"<"+p+">"+t+""},g=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&r?g(r):(e=s("iframe"),n="java"+p+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):g(r);for(var o=a.length;o--;)delete y[f][a[o]];return y()};c[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[f]=o(t),n=new v,v[f]=null,n[d]=t):n=y(),void 0===e?n:i.f(n,e)}},5045:function(t,e,n){var r=n(3528),o=n(4859),i=n(368),a=n(8424),c=n(9740),u=n(4152);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=c(e),o=u(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],r[n]);return t}},368:function(t,e,n){var r=n(3528),o=n(784),i=n(4859),a=n(8424),c=n(8732),u=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){if(a(t),e=c(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return s(t,e,n)}:s:function(t,e,n){if(a(t),e=c(e),a(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},4560:function(t,e,n){var r=n(3528),o=n(892),i=n(2460),a=n(9200),c=n(9740),u=n(8732),s=n(6216),l=n(784),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=c(t),e=u(e),l)try{return f(t,e)}catch(t){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},692:function(t,e,n){var r=n(9232),o=n(4656).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},8167:function(t,e){e.f=Object.getOwnPropertySymbols},1304:function(t,e,n){var r=n(6216),o=n(9063),i=n(6804),a=n(8192),c=n(6740),u=a("IE_PROTO"),s=Object,l=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var e=i(t);if(r(e,u))return e[u];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof s?l:null}},6056:function(t,e,n){var r=n(1447);t.exports=r({}.isPrototypeOf)},9232:function(t,e,n){var r=n(1447),o=n(6216),i=n(9740),a=n(2196).indexOf,c=n(6480),u=r([].push);t.exports=function(t,e){var n,r=i(t),s=0,l=[];for(n in r)!o(c,n)&&o(r,n)&&u(l,n);for(;e.length>s;)o(r,n=e[s++])&&(~a(l,n)||u(l,n));return l}},4152:function(t,e,n){var r=n(9232),o=n(4656);t.exports=Object.keys||function(t){return r(t,o)}},2460:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},5168:function(t,e,n){var r=n(6632),o=n(8424),i=n(9472);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},7664:function(t,e,n){var r=n(892),o=n(9063),i=n(808),a=TypeError;t.exports=function(t,e){var n,c;if("string"===e&&o(n=t.toString)&&!i(c=r(n,t)))return c;if(o(n=t.valueOf)&&!i(c=r(n,t)))return c;if("string"!==e&&o(n=t.toString)&&!i(c=r(n,t)))return c;throw new a("Can't convert object to primitive value")}},9976:function(t,e,n){var r=n(4960),o=n(1447),i=n(692),a=n(8167),c=n(8424),u=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=a.f;return n?u(e,n(t)):e}},1456:function(t,e,n){var r=n(892),o=n(8424),i=n(9063),a=n(5983),c=n(8096),u=TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var s=r(n,t,e);return null!==s&&o(s),s}if("RegExp"===a(t))return r(c,t,e);throw new u("RegExp#exec called on incompatible receiver")}},8096:function(t,e,n){var r,o,i=n(892),a=n(1447),c=n(1992),u=n(8020),s=n(8548),l=n(8196),f=n(8340),p=n(5444).get,d=n(9160),v=n(7416),h=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,m=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),O=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=s.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(O||E||S||d||v)&&(y=function(t){var e,n,r,o,a,s,l,d=this,v=p(d),_=c(t),I=v.raw;if(I)return I.lastIndex=d.lastIndex,e=i(y,I,_),d.lastIndex=I.lastIndex,e;var P=v.groups,j=S&&d.sticky,A=i(u,d),T=d.source,k=0,L=_;if(j&&(A=w(A,"y",""),-1===b(A,"g")&&(A+="g"),L=x(_,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==m(_,d.lastIndex-1))&&(T="(?: "+T+")",L=" "+L,k++),n=new RegExp("^(?:"+T+")",A)),E&&(n=new RegExp("^"+T+"$(?!\\s)",A)),O&&(r=d.lastIndex),o=i(g,j?n:d,L),j?o?(o.input=x(o.input,k),o[0]=x(o[0],k),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:O&&o&&(d.lastIndex=d.global?o.index+o[0].length:r),E&&o&&o.length>1&&i(h,o[0],n,(function(){for(a=1;ab)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},2696:function(t,e,n){var r=n(952),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},3440:function(t,e,n){var r=n(5624),o=n(3528),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return r[t];var e=i(r,t);return e&&e.value}},4440:function(t,e,n){var r=n(4960),o=n(1720),i=n(1840),a=n(3528),c=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&o(e,c,{configurable:!0,get:function(){return this}})}},4200:function(t,e,n){var r=n(368).f,o=n(6216),i=n(1840)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},8192:function(t,e,n){var r=n(8196),o=n(320),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9136:function(t,e,n){var r=n(5624),o=n(1544),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},8196:function(t,e,n){var r=n(2804),o=n(9136);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6080:function(t,e,n){var r=n(8424),o=n(3984),i=n(952),a=n(1840)("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||i(n=r(c)[a])?e:o(n)}},1968:function(t,e,n){var r=n(1447),o=n(3288),i=n(1992),a=n(2696),c=r("".charAt),u=r("".charCodeAt),s=r("".slice),l=function(t){return function(e,n){var r,l,f=i(a(e)),p=o(n),d=f.length;return p<0||p>=d?t?"":void 0:(r=u(f,p))<55296||r>56319||p+1===d||(l=u(f,p+1))<56320||l>57343?t?c(f,p):r:t?s(f,p,p+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},8972:function(t,e,n){var r=n(3356),o=n(6040),i=n(5624).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4160:function(t,e,n){var r=n(3288),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},2724:function(t,e,n){var r=n(8176),o=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new o("Can't convert number to bigint");return BigInt(e)}},4084:function(t,e,n){var r=n(3288),o=n(960),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw new i("Wrong length or index");return n}},9740:function(t,e,n){var r=n(6212),o=n(2696);t.exports=function(t){return r(o(t))}},3288:function(t,e,n){var r=n(1736);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},960:function(t,e,n){var r=n(3288),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},6804:function(t,e,n){var r=n(2696),o=Object;t.exports=function(t){return o(r(t))}},9163:function(t,e,n){var r=n(1500),o=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw new o("Wrong offset");return n}},1500:function(t,e,n){var r=n(3288),o=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new o("The argument can't be less than 0");return e}},8176:function(t,e,n){var r=n(892),o=n(808),i=n(6232),a=n(364),c=n(7664),u=n(1840),s=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!o(n)||i(n))return n;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},8732:function(t,e,n){var r=n(8176),o=n(6232);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},1712:function(t,e,n){var r={};r[n(1840)("toStringTag")]="z",t.exports="[object z]"===String(r)},1992:function(t,e,n){var r=n(8040),o=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},2360:function(t){var e=Math.round;t.exports=function(t){var n=e(t);return n<0?0:n>255?255:255&n}},4596:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6736:function(t,e,n){var r=n(3748),o=n(5624),i=n(892),a=n(3528),c=n(2300),u=n(7736),s=n(4025),l=n(5796),f=n(9200),p=n(3652),d=n(7432),v=n(960),h=n(4084),g=n(9163),y=n(2360),m=n(8732),b=n(6216),w=n(8040),x=n(808),O=n(6232),S=n(8340),E=n(6056),_=n(5168),I=n(692).f,P=n(5552),j=n(4904).forEach,A=n(4440),T=n(1720),k=n(368),L=n(4560),R=n(4244),D=n(5444),C=n(2744),M=D.get,N=D.set,B=D.enforce,F=k.f,U=L.f,V=o.RangeError,z=s.ArrayBuffer,G=z.prototype,H=s.DataView,W=u.NATIVE_ARRAY_BUFFER_VIEWS,Q=u.TYPED_ARRAY_TAG,q=u.TypedArray,Y=u.TypedArrayPrototype,$=u.isTypedArray,J="BYTES_PER_ELEMENT",X="Wrong length",K=function(t,e){T(t,e,{configurable:!0,get:function(){return M(this)[e]}})},Z=function(t){var e;return E(G,t)||"ArrayBuffer"===(e=w(t))||"SharedArrayBuffer"===e},tt=function(t,e){return $(t)&&!O(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=m(e),tt(t,e)?f(2,t[e]):U(t,e)},nt=function(t,e,n){return e=m(e),!(tt(t,e)&&x(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?F(t,e,n):(t[e]=n.value,t)};a?(W||(L.f=et,k.f=nt,K(Y,"buffer"),K(Y,"byteOffset"),K(Y,"byteLength"),K(Y,"length")),r({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,u=t+(n?"Clamped":"")+"Array",s="get"+t,f="set"+t,d=o[u],m=d,b=m&&m.prototype,w={},O=function(t,e){F(t,e,{get:function(){return function(t,e){var n=M(t);return n.view[s](e*a+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var o=M(t);o.view[f](e*a+o.byteOffset,n?y(r):r,!0)}(this,e,t)},enumerable:!0})};W?c&&(m=e((function(t,e,n,r){return l(t,b),C(x(e)?Z(e)?void 0!==r?new d(e,g(n,a),r):void 0!==n?new d(e,g(n,a)):new d(e):$(e)?R(m,e):i(P,m,e):new d(h(e)),t,m)})),_&&_(m,q),j(I(d),(function(t){t in m||p(m,t,d[t])})),m.prototype=b):(m=e((function(t,e,n,r){l(t,b);var o,c,u,s=0,f=0;if(x(e)){if(!Z(e))return $(e)?R(m,e):i(P,m,e);o=e,f=g(n,a);var p=e.byteLength;if(void 0===r){if(p%a)throw new V(X);if((c=p-f)<0)throw new V(X)}else if((c=v(r)*a)+f>p)throw new V(X);u=c/a}else u=h(e),o=new z(c=u*a);for(N(t,{buffer:o,byteOffset:f,byteLength:c,length:u,view:new H(o)});s1?arguments[1]:void 0,E=void 0!==S,_=s(x);if(_&&!l(_))for(b=(m=u(x,_)).next,x=[];!(y=o(b,m)).done;)x.push(y.value);for(E&&O>2&&(S=r(S,arguments[2])),n=c(x),v=new(p(w))(n),h=f(v),e=0;n>e;e++)g=E?S(x[e],e):x[e],v[e]=h?d(g):+g;return v}},320:function(t,e,n){var r=n(1447),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},402:function(t,e,n){var r=n(6040),o=n(1840),i=n(3528),a=n(2804),c=o("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),n.delete("a",2),n.delete("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!i)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},9448:function(t,e,n){var r=n(8972);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4859:function(t,e,n){var r=n(3528),o=n(6040);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3416:function(t){var e=TypeError;t.exports=function(t,n){if(t1?arguments[1]:void 0),e}})},9120:function(t,e,n){var r=n(9740),o=n(2328),i=n(4920),a=n(5444),c=n(368).f,u=n(8752),s=n(2596),l=n(2804),f=n(3528),p="Array Iterator",d=a.set,v=a.getterFor(p);t.exports=u(Array,"Array",(function(t,e){d(this,{type:p,target:r(t),index:0,kind:e})}),(function(){var t=v(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,s(void 0,!0);switch(t.kind){case"keys":return s(n,!1);case"values":return s(e[n],!1)}return s([n,e[n]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==h.name)try{c(h,"name",{value:"values"})}catch(t){}},9168:function(t,e,n){var r=n(3748),o=n(1447),i=n(1896),a=n(6804),c=n(9480),u=n(1136),s=n(1992),l=n(6040),f=n(584),p=n(4528),d=n(2392),v=n(7464),h=n(3356),g=n(315),y=[],m=o(y.sort),b=o(y.push),w=l((function(){y.sort(void 0)})),x=l((function(){y.sort(null)})),O=p("sort"),S=!l((function(){if(h)return h<70;if(!(d&&d>3)){if(v)return!0;if(g)return g<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort((function(t,e){return e.v-t.v})),r=0;rs(n)?1:-1}}(t)),n=c(o),r=0;rv.length?-1:m(v,O,j+_);return A=T&&(A+=_(c,T,D)+L,T=D+R.length)}return A+_(c,T)}]}),!!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!I||P)},5016:function(t,e,n){var r=n(3748),o=n(3528),i=n(5624),a=n(1447),c=n(6216),u=n(9063),s=n(6056),l=n(1992),f=n(1720),p=n(4304),d=i.Symbol,v=d&&d.prototype;if(o&&u(d)&&(!("description"in v)||void 0!==d().description)){var h={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=s(v,this)?new d(t):void 0===t?d():d(t);return""===t&&(h[e]=!0),e};p(g,d),g.prototype=v,v.constructor=g;var y="Symbol(description detection)"===String(d("description detection")),m=a(v.valueOf),b=a(v.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),O=a("".slice);f(v,"description",{configurable:!0,get:function(){var t=m(this);if(c(h,t))return"";var e=b(t),n=y?O(e,7,-1):x(e,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},7996:function(t,e,n){var r=n(7736),o=n(5212),i=n(2724),a=n(8040),c=n(892),u=n(1447),s=n(6040),l=r.aTypedArray,f=r.exportTypedArrayMethod,p=u("".slice);f("fill",(function(t){var e=arguments.length;l(this);var n="Big"===p(a(this),0,3)?i(t):+t;return c(o,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),s((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},7696:function(t,e,n){var r=n(5624),o=n(892),i=n(7736),a=n(9480),c=n(9163),u=n(6804),s=n(6040),l=r.RangeError,f=r.Int8Array,p=f&&f.prototype,d=p&&p.set,v=i.aTypedArray,h=i.exportTypedArrayMethod,g=!s((function(){var t=new Uint8ClampedArray(2);return o(d,t,{length:1,0:3},1),3!==t[1]})),y=g&&i.NATIVE_ARRAY_BUFFER_VIEWS&&s((function(){var t=new f(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));h("set",(function(t){v(this);var e=c(arguments.length>1?arguments[1]:void 0,1),n=u(t);if(g)return o(d,this,n,e);var r=this.length,i=a(n),s=0;if(i+e>r)throw new l("Wrong length");for(;s0&&1/n<0?1:-1:e>n}}(t))}),!m||y)},5284:function(t,e,n){n(6736)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},1072:function(t,e,n){n(8500)},9708:function(t,e,n){var r=n(5624),o=n(5848),i=n(8280),a=n(9120),c=n(3652),u=n(4200),s=n(1840)("iterator"),l=a.values,f=function(t,e){if(t){if(t[s]!==l)try{c(t,s,l)}catch(e){t[s]=l}if(u(t,e,!0),o[e])for(var n in a)if(t[n]!==a[n])try{c(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var p in o)f(r[p]&&r[p].prototype,p);f(i,"DOMTokenList")},5704:function(t,e,n){n(9120);var r=n(3748),o=n(5624),i=n(3440),a=n(892),c=n(1447),u=n(3528),s=n(402),l=n(3244),f=n(1720),p=n(5248),d=n(4200),v=n(7936),h=n(5444),g=n(5796),y=n(9063),m=n(6216),b=n(2880),w=n(8040),x=n(8424),O=n(808),S=n(1992),E=n(8340),_=n(9200),I=n(2704),P=n(7508),j=n(2596),A=n(3416),T=n(1840),k=n(584),L=T("iterator"),R="URLSearchParams",D=R+"Iterator",C=h.set,M=h.getterFor(R),N=h.getterFor(D),B=i("fetch"),F=i("Request"),U=i("Headers"),V=F&&F.prototype,z=U&&U.prototype,G=o.RegExp,H=o.TypeError,W=o.decodeURIComponent,Q=o.encodeURIComponent,q=c("".charAt),Y=c([].join),$=c([].push),J=c("".replace),X=c([].shift),K=c([].splice),Z=c("".split),tt=c("".slice),et=/\+/g,nt=Array(4),rt=function(t){return nt[t-1]||(nt[t-1]=G("((?:%[\\da-f]{2}){"+t+"})","gi"))},ot=function(t){try{return W(t)}catch(e){return t}},it=function(t){var e=J(t,et," "),n=4;try{return W(e)}catch(t){for(;n;)e=J(e,rt(n--),ot);return e}},at=/[!'()~]|%20/g,ct={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ut=function(t){return ct[t]},st=function(t){return J(Q(t),at,ut)},lt=v((function(t,e){C(this,{type:D,target:M(t).entries,index:0,kind:e})}),R,(function(){var t=N(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,j(void 0,!0);var r=e[n];switch(t.kind){case"keys":return j(r.key,!1);case"values":return j(r.value,!1)}return j([r.key,r.value],!1)}),!0),ft=function(t){this.entries=[],this.url=null,void 0!==t&&(O(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===q(t,0)?tt(t,1):t:S(t)))};ft.prototype={type:R,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,o,i,c,u,s=this.entries,l=P(t);if(l)for(n=(e=I(t,l)).next;!(r=a(n,e)).done;){if(i=(o=I(x(r.value))).next,(c=a(i,o)).done||(u=a(i,o)).done||!a(i,o).done)throw new H("Expected sequence with length 2");$(s,{key:S(c.value),value:S(u.value)})}else for(var f in t)m(t,f)&&$(s,{key:f,value:S(t[f])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,o=Z(t,"&"),i=0;i0?arguments[0]:void 0));u||(this.size=t.entries.length)},dt=pt.prototype;if(p(dt,{append:function(t,e){var n=M(this);A(arguments.length,2),$(n.entries,{key:S(t),value:S(e)}),u||this.length++,n.updateURL()},delete:function(t){for(var e=M(this),n=A(arguments.length,1),r=e.entries,o=S(t),i=n<2?void 0:arguments[1],a=void 0===i?i:S(i),c=0;ce.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=M(this).entries,r=b(t,arguments.length>1?arguments[1]:void 0),o=0;o1?gt(arguments[1]):{})}}),y(F)){var yt=function(t){return g(this,V),new F(t,arguments.length>1?gt(arguments[1]):{})};V.constructor=yt,yt.prototype=V,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:pt,getState:M}},4088:function(t,e,n){n(5704)},1060:function(t,e,n){var r=n(3748),o=n(892);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),function(){n(5016),n(9708);var t,e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},r=new Uint8Array(16);function o(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(r)}for(var i=[],a=0;a<256;++a)i.push((a+256).toString(16).slice(1));function c(t,e=0){return(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase()}var u=function(t,n,r){if(e.randomUUID&&!n&&!t)return e.randomUUID();var i=(t=t||{}).random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){r=r||0;for(var a=0;a<16;++a)n[r+a]=i[a];return n}return c(i)};n(2644),n(4088),n(9168),n(9196),n(4004),n(5284),n(7996),n(7696),n(8372),n(1060);const s=function(t){const e=function(t){if(t&&Object.prototype.hasOwnProperty.call(t,"circularValue")){var e=t.circularValue;if("string"==typeof e)return'"'.concat(e,'"');if(null==e)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(t),n=b(t,"bigint"),r=b(t,"deterministic"),o=w(t,"maximumDepth"),i=w(t,"maximumBreadth");function a(t,c,u,s,l,f){let p=c[t];switch("object"==typeof p&&null!==p&&"function"==typeof p.toJSON&&(p=p.toJSON(t)),p=s.call(c,t,p),typeof p){case"string":return'"'.concat(v(p),'"');case"object":{if(null===p)return"null";if(-1!==u.indexOf(p))return e;let t="",n=",";const c=f;if(Array.isArray(p)){if(0===p.length)return"[]";if(oi){const e=p.length-i-1;t+="".concat(n,'"... ').concat(x(e),' not stringified"')}return""!==l&&(t+="\n".concat(c)),u.pop(),"[".concat(t,"]")}let d=Object.keys(p);const g=d.length;if(0===g)return"{}";if(oi){const e=g-i;t+="".concat(w,'"...":').concat(b,'"').concat(x(e),' not stringified"'),w=n}return""!==l&&w.length>1&&(t="\n".concat(f).concat(t,"\n").concat(c)),u.pop(),"{".concat(t,"}")}case"number":return isFinite(p)?String(p):"null";case"boolean":return!0===p?"true":"false";case"bigint":return n?String(p):void 0}}function c(t,r,a,u,s,l){switch("object"==typeof r&&null!==r&&"function"==typeof r.toJSON&&(r=r.toJSON(t)),typeof r){case"string":return'"'.concat(v(r),'"');case"object":{if(null===r)return"null";if(-1!==a.indexOf(r))return e;const t=l;let n="",f=",";if(Array.isArray(r)){if(0===r.length)return"[]";if(oi){const t=r.length-i-1;n+="".concat(f,'"... ').concat(x(t),' not stringified"')}return""!==s&&(n+="\n".concat(t)),a.pop(),"[".concat(n,"]")}if(0===u.size)return"{}";a.push(r);let p="";""!==s&&(f=",\n".concat(l+=s),p=" ");let d="";for(const t of u){const e=c(t,r[t],a,u,s,l);void 0!==e&&(n+="".concat(d,'"').concat(v(t),'":').concat(p).concat(e),d=f)}return""!==s&&d.length>1&&(n="\n".concat(l).concat(n,"\n").concat(t)),a.pop(),"{".concat(n,"}")}case"number":return isFinite(r)?String(r):"null";case"boolean":return!0===r?"true":"false";case"bigint":return n?String(r):void 0}}function u(t,a,c,s,l){switch(typeof a){case"string":return'"'.concat(v(a),'"');case"object":{if(null===a)return"null";if("function"==typeof a.toJSON){if("object"!=typeof(a=a.toJSON(t)))return u(t,a,c,s,l);if(null===a)return"null"}if(-1!==c.indexOf(a))return e;const n=l;if(Array.isArray(a)){if(0===a.length)return"[]";if(oi){const n=a.length-i-1;t+="".concat(e,'"... ').concat(x(n),' not stringified"')}return t+="\n".concat(n),c.pop(),"[".concat(t,"]")}let f=Object.keys(a);const p=f.length;if(0===p)return"{}";if(oi){const t=p-i;g+="".concat(b,'"...": "').concat(x(t),' not stringified"'),b=d}return""!==b&&(g="\n".concat(l).concat(g,"\n").concat(n)),c.pop(),"{".concat(g,"}")}case"number":return isFinite(a)?String(a):"null";case"boolean":return!0===a?"true":"false";case"bigint":return n?String(a):void 0}}function s(t,a,c){switch(typeof a){case"string":return'"'.concat(v(a),'"');case"object":{if(null===a)return"null";if("function"==typeof a.toJSON){if("object"!=typeof(a=a.toJSON(t)))return s(t,a,c);if(null===a)return"null"}if(-1!==c.indexOf(a))return e;let n="";if(Array.isArray(a)){if(0===a.length)return"[]";if(oi){const t=a.length-i-1;n+=',"... '.concat(x(t),' not stringified"')}return c.pop(),"[".concat(n,"]")}let u=Object.keys(a);const l=u.length;if(0===l)return"{}";if(oi){const t=l-i;n+="".concat(f,'"...":"').concat(x(t),' not stringified"')}return c.pop(),"{".concat(n,"}")}case"number":return isFinite(a)?String(a):"null";case"boolean":return!0===a?"true":"false";case"bigint":return n?String(a):void 0}}return function(t,e,n){if(arguments.length>1){let r="";if("number"==typeof n?r=" ".repeat(Math.min(n,10)):"string"==typeof n&&(r=n.slice(0,10)),null!=e){if("function"==typeof e)return a("",{"":t},[],e,r,"");if(Array.isArray(e))return c("",t,[],function(t){const e=new Set;for(const n of t)"string"==typeof n?e.add(n):"number"==typeof n&&e.add(String(n));return e}(e),r,"")}if(0!==r.length)return u("",t,[],r,"")}return s("",t,[])}}(),l=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,f=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/g,p=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function d(t){if(2===t.length){const e=t.charCodeAt(1);return"".concat(t[0],"\\u").concat(e.toString(16))}const e=t.charCodeAt(0);return p.length>e?p[e]:"\\u".concat(e.toString(16))}function v(t){if(t.length<5e3&&!l.test(t))return t;if(t.length>100)return t.replace(f,d);let e="",n=0;for(let r=0;r=55296&&o<=57343){if(o<=56319&&r+1=56320&&e<=57343){r++;continue}}e+="".concat(t.slice(n,r),"\\u".concat(o.toString(16))),n=r+1}}return e+=t.slice(n),e}function h(t){if(t.length>200)return t.sort();for(let e=1;en;)t[r]=t[r-1],r--;t[r]=n}return t}const g=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Uint8Array)),Symbol.toStringTag).get;function y(t){return void 0!==g.call(t)&&0!==t.length}function m(t,e,n){t.length= 1'))}return void 0===n?1/0:n}function x(t){return 1===t?"1 item":"".concat(t," items")}var O=s;var S=function(t,e){const n="XMLHttpRequest"in window?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");n.open("POST",t),n.withCredentials=!0,n.setRequestHeader("Accept","*/*"),"string"==typeof e?(n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),n.responseType="text"):(t=>t instanceof Blob)(e)&&e.type&&n.setRequestHeader("Content-Type",e.type);try{n.send(e)}catch(t){return!1}return!0};const E=(t,e,n)=>{if(n>100)return void(e.stop=!0);const r=typeof t;if("boolean"===r)e.size+=t.toString().length;else if("number"===r)e.size+=t.toString().length;else if("string"===r)e.size+=(t=>{let e=0,n=0;for(let r=0;n=t.charCodeAt(r++);e+=n>>11?3:n>>7?2:1);return e})(t)+2;else{if("undefined"===r)return;if("bigint"===r)return void(e.stop=!0);if("object"===r)if(null===t)e.size+=4;else if(Array.isArray(t)){e.size+=2,t.length>=2&&(e.size+=t.length-1);for(let r=0;r=e.maxSize)return void(e.stop=!0)}else{const r=Object.entries(t).filter((t=>void 0!==t[1]));e.size+=2,r.length>=2&&(e.size+=r.length-1);for(let t=0;t=e.maxSize)return void(e.stop=!0)}}}e.size>=e.maxSize&&(e.stop=!0)},_=(t,e)=>{const n={size:0,stop:!1,maxSize:null!=e?e:65536};return E(t,n,1),!n.stop&&n.size};function I(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class P{static log(){!P.suppressed&&P.enabled&&console&&console.log&&console.log(...arguments)}static warn(){!P.suppressed&&P.enabled&&console&&console.warn&&console.warn(...arguments)}static error(){!P.suppressed&&P.enabled&&console&&console.error&&console.error(...arguments)}static pauseLog(){P.suppressed=!0}static resumeLog(){P.suppressed=!1}static runWithoutLog(t){this.pauseLog();try{return t()}finally{this.resumeLog()}}}I(P,"enabled",!1),I(P,"suppressed",!1);var j=P;const A=["cks"];function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function R(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const D=64e3;class C{constructor(){R(this,"sendDataQueue",[]),R(this,"queueSize",20),R(this,"autoSendInterval",2e3),R(this,"dataPushed",!1),R(this,"sendBeaconQueue",[]),R(this,"hasSetTimeout",null),R(this,"impressionFlushCallbacks",[]),R(this,"impressionFlushCallbackEvents",["pagehide","beforeunload"]),C.registerLeaveEvent((t=>{this.impressionFlushCallbacks.length&&this.impressionFlushCallbackEvents.includes(t)&&this.impressionFlushCallbacks.forEach((t=>{try{t()}catch(t){j.error("impressionFlushCallback Error",t)}})),this.sendData()}))}pushData(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;this.dataPushed||(setInterval((()=>{this.sendData()}),this.autoSendInterval),this.dataPushed=!0);const i={corp:e.corp,service:e.svc,service_tags:e.svc_tags,env:e.env,cks:e.cks},a=O(i);!1!==_(n)?(this.sendDataQueue.push({url:t,common:e,event:n,bulkKey:a,nlogCallback:o}),(r||this.sendDataQueue.length>=this.queueSize)&&this.sendData()):j.error("NLOG send fail: payload size exceeds max size: 64k")}flushQueue(){this.sendData()}sendData(){if(this.sendDataQueue.length){const e={};this.sendDataQueue.forEach((t=>{const{url:n,bulkKey:r}=t,o="".concat(n,"-").concat(r);o in e||(e[o]=[]),e[o].push(t)}));const n=Object.entries(e);for(const[e,r]of n){const e=this.makeNLogBody(r),n=this.splitDataBySize(e),o=n.map((t=>t.evts.length)),i=[];let a=0;for(const t of o)i.push(r.slice(a,a+t)),a+=t;for(let e=0;et.nlogCallback));this.sendBeaconWithPendingQueue(a,o,c)}}this.sendDataQueue=[]}}sendBeaconWithPendingQueue(t,e,n){const r=new Blob([JSON.stringify(e)],{type:"text/plain"});this.sendBeaconQueue.push({url:t,blob:r,nlogCallbacks:n});const o=t=>{if(t>10)j.error("sendBeacon failed after ".concat(10," attempts"));else for(;this.sendBeaconQueue.length;){const{url:e,blob:n,nlogCallbacks:r}=this.sendBeaconQueue[0];if(!this.sendBeacon(e,n))return void(this.hasSetTimeout=setTimeout((()=>{o(t+1),this.hasSetTimeout=null}),100));this.sendBeaconQueue.shift(),r.forEach((t=>{const{tagName:e,callbackFn:n}=null!=t?t:{};try{null==n||n(e)}catch(t){j.error("nlogCallbackFn Error",t)}}))}};this.hasSetTimeout||o(1)}sendBeacon(t,e){var n;if(null===(n=navigator)||void 0===n||!n.sendBeacon)return S(t,e);try{return navigator.sendBeacon(t,e)}catch(t){if(t instanceof Error&&t.message&&(t.message.toLowerCase().includes("not implemented")||t.message.toLowerCase().includes("illegal invocation")))return!0;throw t}}makeNLogBody(t){const e=t[0].common,{cks:n}=e;return k(k({},L(e,A)),{},{send_ts:+new Date,evts:t.map((t=>t.event))})}static registerLeaveEvent(t){"onpagehide"in window&&window.addEventListener("pagehide",(e=>{t("pagehide",e)}),{capture:!0}),window.addEventListener("beforeunload",(e=>{t("beforeunload",e)}),{capture:!0}),window.addEventListener("blur",(e=>{t("blur",e)}),{capture:!0}),document.addEventListener("freeze",(e=>{t("freeze",e)}),{capture:!0}),document.addEventListener("visibilitychange",(function(e){"hidden"==document.visibilityState&&t("visibilitychange",e)}),{capture:!0})}splitDataBySize(t){if(this.getByteSize(JSON.stringify(t))<=D)return[t];const e=[],n=t.evts;if(!n||0==n.length)return[];let r=t;for(;;){const{nextBody:t,remains:n}=this.getNextBody(r);if(e.push(t),!n)break;r=n}return e}getNextBody(t){var e;const n=k(k({},t),{},{evts:[]}),r=k(k({},t),{},{evts:[]});for(let e=0;eD){n.evts.pop();const o=t.evts.slice(e);r.evts=[...o];break}}if(0==n.evts.length)throw new Error("[NLog] data exceed max size : cur size - ".concat(this.getByteSize(JSON.stringify(t)),", max - ").concat(D));const o={nextBody:n};return null!=r&&null!==(e=r.evts)&&void 0!==e&&e.length&&(o.remains=r),o}getByteSize(t){return encodeURI(t).split(/%..|./).length-1}static appendCksToUrl(t,e){if(e){const n=new URLSearchParams({cks:e.join(";")});return"".concat(t,"?").concat(n.toString())}return t}registerImpressionFlushCallback(t){this.impressionFlushCallbacks.push(t)}}n(1072);var M=/\s/;var N=function(t){for(var e=t.length;e--&&M.test(t.charAt(e)););return e},B=/^\s+/;var F=function(t){return t?t.slice(0,N(t)+1).replace(B,""):t};var U=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},V="object"==typeof global&&global&&global.Object===Object&&global,z="object"==typeof self&&self&&self.Object===Object&&self,G=(V||z||Function("return this")()).Symbol,H=Object.prototype,W=H.hasOwnProperty,Q=H.toString,q=G?G.toStringTag:void 0;var Y=function(t){var e=W.call(t,q),n=t[q];try{t[q]=void 0;var r=!0}catch(t){}var o=Q.call(t);return r&&(e?t[q]=n:delete t[q]),o},$=Object.prototype.toString;var J=function(t){return $.call(t)},X=G?G.toStringTag:void 0;var K=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":X&&X in Object(t)?Y(t):J(t)};var Z=function(t){return null!=t&&"object"==typeof t};var tt=function(t){return"symbol"==typeof t||Z(t)&&"[object Symbol]"==K(t)},et=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;var it=function(t){if("number"==typeof t)return t;if(tt(t))return NaN;if(U(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=U(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=F(t);var n=nt.test(t);return n||rt.test(t)?ot(t.slice(2),n?2:8):et.test(t)?NaN:+t},at=1/0;var ct=function(t){return t?(t=it(t))===at||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var ut=function(t){var e=ct(t),n=e%1;return e==e?n?e-n:e:0};var st=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=ut(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}};var lt=function(t){return st(2,t)};const ft=(t,e,n)=>{const r=n.get(t);r&&(e[t]=r)},pt=t=>Object.keys(t).reduce(((e,n)=>(void 0!==t[n]&&(e[n]=t[n]),e)),{}),dt=(t,e)=>!!(t=>{if(!t||t===window)return!1;try{if(t.parent===window)return!0}catch(t){j.log("NLOG: frame parent check failed",t)}try{const{frames:e}=window;for(let n=0;nxt;let Et;const _t=[],It=lt((()=>{window.addEventListener("message",(t=>{var e;if(t&&t.source&&t.origin&&(null===(e=t.data)||void 0===e?void 0:e.type)===Ot.REGISTER_INNER_IFRAME){if(!dt(t.source,"[NLOG]"))return;_t.push(t),Et||(Et={}),Et.page_id=kt(),Pt()}}),!1)})),Pt=()=>{_t.forEach((t=>{var e;const n={type:Ot.SET_OUTER_PAGE_INFO,pageInfo:Et};null===(e=t.source)||void 0===e||e.postMessage(n,t.origin)}))},jt=lt((()=>{if(self!==parent){window.addEventListener("message",(function(t){try{if(t.source!==parent)return;const n=t.data;n.type===Ot.SET_OUTER_PAGE_INFO&&n.pageInfo&&(e=n.pageInfo,xt=e)}catch(t){}var e}),!1);const t={type:Ot.REGISTER_INNER_IFRAME};parent.postMessage(t,"*")}})),At=()=>u();let Tt;const kt=null!==(vt=null!==(ht=window.gNTMLib.ensurePageId)&&void 0!==ht?ht:window.gNTMLib.getPageId)&&void 0!==vt?vt:()=>(Tt||(Tt=At()),Tt),Lt=null!==(gt=window.gNTMLib.updatePageId)&&void 0!==gt?gt:()=>(Tt=At(),Tt),Rt=null!==(yt=window.gNTMLib.setPageId)&&void 0!==yt?yt:t=>{Tt=t},Dt=()=>{var t;const e=null===(t=window)||void 0===t||null===(t=t.performance)||void 0===t?void 0:t.getEntriesByType("navigation")[0],n={},r=["type","unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","workerStart","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"];for(const t of r)n[t]=e[t];return n},Ct=()=>{var t;const e=window.performance||{},n={};if(e.timing){const t=e.timing;for(const e in t){const r=t[e];"number"==typeof r&&(n[e]=r)}}return bt({navigation:{type:null===(t=window.performance)||void 0===t||null===(t=t.navigation)||void 0===t?void 0:t.type}},n)},Mt=(t,e)=>{var n;const r=null!==(n=e.parameters.get("event_data_layer_key",e.dataLayer))&&void 0!==n?n:"nlogEvt";return r&&e.dataLayer.get(r)&&e.dataLayer.get(r)[t]?e.dataLayer.get(r)[t]:e.eventData[t]?e.eventData[t]:e.dataLayer.get(t)?e.dataLayer.get(t):void 0},Nt=["page_url","page_ref","page_id","page_sti","page_pos","page_cid","page_qy"],Bt=/^[a-z](_*[a-z0-9]+)*$/;let Ft=0,Ut=!1;const Vt=t=>{var e,n,r,o,i,a,c,u,s,l,f,p,d,v,h;const g=null!==(e=Et)&&void 0!==e?e:St();return{page_id:null!==(n=null==g?void 0:g.page_id)&&void 0!==n?n:kt(),page_url:null!==(r=null!==(o=t.eventData.page_url)&&void 0!==o?o:null==g?void 0:g.page_url)&&void 0!==r?r:window.location.href,page_sti:null!==(i=null!==(a=t.eventData.page_sti)&&void 0!==a?a:null==g?void 0:g.page_sti)&&void 0!==i?i:void 0,page_pos:null!==(c=null!==(u=t.eventData.page_pos)&&void 0!==u?u:null==g?void 0:g.page_pos)&&void 0!==c?c:void 0,page_cid:null!==(s=null!==(l=t.eventData.page_cid)&&void 0!==l?l:null==g?void 0:g.page_cid)&&void 0!==s?s:void 0,page_qy:null!==(f=null!==(p=t.eventData.page_qy)&&void 0!==p?p:null==g?void 0:g.page_qy)&&void 0!==f?f:void 0,page_ref:null!==(d=null!==(v=null!==(h=t.eventData.page_ref)&&void 0!==h?h:null==g?void 0:g.page_ref)&&void 0!==v?v:window.document.referrer)&&void 0!==d?d:""}};var zt={eventType:"pageview",onInit:t=>{It(),jt()},getEventData:t=>{var e,n,r,o;const i=Mt("page_id",t),a=!(null===(e=window.gNTMLib)||void 0===e||!e.getHasCustomPageId)&&window.gNTMLib.getHasCustomPageId(),c=!(null===(n=window.gNTMLib)||void 0===n||!n.getIsAutoPageId)&&window.gNTMLib.getIsAutoPageId();let u=i||c?void 0:St(),s="";if(Ut=!1,i)c||Rt(i),s=i;else if(c){var l;s=null!==(l=window.gNTMLib)&&void 0!==l&&l.resolvePageIdForPageview?window.gNTMLib.resolvePageIdForPageview("v1"):0==Ft?kt():Lt()}else if(a)s=kt();else{var f;if(null!=u&&u.page_id)s=null==u?void 0:u.page_id,Ut=!0;else s=null!==(f=window.gNTMLib)&&void 0!==f&&f.resolvePageIdForPageview?window.gNTMLib.resolvePageIdForPageview("v1"):0==Ft?kt():Lt()}let p={};if(Ut)p=bt({},u),t.ntmVersion&&Ae(t.ntmVersion,"v1.3.25")>0&&(p.optionalObject={outerPageInfo:u});else{var d;const e=window.document.location.href||"",n=window.document.referrer||"";let r=null!==(d=t.dataLayer.get("nds_tags"))&&void 0!==d?d:t.eventData.nds_tags;r&&(Array.isArray(r)?(r=r.map((t=>String(t))).filter((t=>Bt.test(t))),0===r.length&&(r=void 0)):r=void 0),p={page_url:e,page_ref:n,page_id:s,nds_tags:r},Nt.forEach((e=>ft(e,p,t.dataLayer)))}const v=null==t||null===(r=t.parameters)||void 0===r?void 0:r.get("send_timing_data",t.dataLayer),h=null==t||null===(o=t.tagCmdData)||void 0===o?void 0:o.sendTimingData;var g;return void 0!==v&&!0!==v&&"true"!==v&&!0!==h||!1===h?p.pts="0":Ft<1&&(p.timing=(t=>{const e={};for(const[n,r]of Object.entries(t))e[n.replaceAll("-","_")]=r;return e})(bt(bt({},null!==(g=window)&&void 0!==g&&null!==(g=g.performance)&&void 0!==g&&null!==(g=g.getEntriesByType("navigation")[0])&&void 0!==g&&g.type?Dt():Ct()),(()=>{const t=window.performance||{},e={};try{t.getEntriesByType&&t.getEntriesByType("paint").forEach((t=>{const n=t.name;switch(n){case"first-paint":case"first-contentful-paint":e[n]=t.startTime}}))}catch(t){j.error(t)}return e})()))),Et={},Nt.forEach((e=>{const n=Mt(e,t);Et&&(n?Et[e]=n:e in p&&(Et[e]=p[e]))})),Pt(),Ft++,pt(p)}};function Gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ht(t){for(var e=1;e{let n,r,o,i=-1,a=-1,c=-1,u=-1,s=window.event?window.event:t,l=0,f=0;e&&(s=e||window.event);try{if(o=(t=>{let e,n,r=t.parentNode;if(null!=r&&null!=r){try{var o;if(window.top!=window.self)if((null===(o=window)||void 0===o||null===(o=o.top)||void 0===o?void 0:o.location.origin)!=window.origin)return}catch(t){return}for(;;)if("#document"==r.nodeName.toLowerCase()){e=r.parentWindow?r.parentWindow:r.defaultView;try{var i;if(null!=(null===(i=e)||void 0===i?void 0:i.frameElement)&&null!=e.frameElement){if("iframe"==e.frameElement.nodeName.toLowerCase()){if(n=e.frameElement.id,!n)return;return n}return}return}catch(t){return}}else if(r=r.parentNode,null==r||null==r)return}})(t),o){const t=(t=>{let e=t,n=0,r=0;try{var o,i,a;if(null!==(o=e)&&void 0!==o&&o.offsetParent)do{n+=e.offsetLeft,r+=e.offsetTop}while(e=e.offsetParent);else(null!==(i=e)&&void 0!==i&&i.x||null!==(a=e)&&void 0!==a&&a.y)&&(e.x&&(n+=e.x),e.y&&(r+=e.y))}catch(t){}return[n,r]})(document.getElementById(o));s.clientX&&null!=s.clientX&&(n=document.body,n.clientLeft&&n.clientTop?(l=s.clientX-n.clientLeft,f=s.clientY-n.clientTop):(l=s.clientX,f=s.clientY)),c=t[0]+l,u=t[1]+f,document.body&&(document.body.scrollTop||document.body.scrollLeft)?(n=document.body,i=c-n.scrollLeft,a=u-n.scrollTop):document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)?(r=document.documentElement,i=c-r.scrollLeft,a=u-r.scrollTop):(i=c,a=u)}else s.clientX&&null!=s.clientX&&(n=document.body,n.clientLeft&&n.clientTop?(i=s.clientX-n.clientLeft,a=s.clientY-n.clientTop):(i=s.clientX,a=s.clientY)),document.body&&(document.body.scrollTop||document.body.scrollLeft)?(c=document.body.scrollLeft+(i<0?0:i),u=document.body.scrollTop+(a<0?0:a)):document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)?(r=document.documentElement,null!=r.scrollLeft&&(c=r.scrollLeft+(i<0?0:i)),null!=r.scrollTop&&(u=r.scrollTop+(a<0?0:a))):(c=i<0?0:i,u=a<0?0:a),s.pageX&&(c=s.pageX),s.pageY&&(u=s.pageY)}catch(e){}const p={};return-1!=c&&-1!=u&&(p.click_px=c,p.click_py=u),-1!=i&&-1!=a&&(p.click_sx=i,p.click_sy=a),p},qt=["click_nsc","click_area","click_panel_pos","click_rank","click_cid","click_targeturl",...Nt];var Yt={eventType:"click",onInit:t=>{jt()},getEventData:t=>{var e,n;const r=t.dataLayer.get("pre.clickEvent"),o=t.dataLayer.get("pre.clickElement"),i=t.dataLayer.get("click_element"),a=t.dataLayer.get("click_event");let c=null!=a?a:r,u=null!=i?i:o;if(!c&&window.event&&(c=window.event),!u&&c){var s,l;let t=null!==(s=null!==(l=c.srcElement)&&void 0!==l?l:c.currentTarget)&&void 0!==s?s:c.target;t&&(u=(t=>{let e=t;for(;e&&"BODY"!==e.tagName&&"HTML"!==e.tagName&&"A"!==e.tagName&&e.parentNode;)e=e.parentNode;return"A"!==e.tagName&&(e=t),e})(t))}const f=Qt(null!==(e=u)&&void 0!==e?e:c,c),p=(d=null!==(n=u)&&void 0!==n?n:c)&&d.href&&d.getAttribute("href")&&"#"!==d.getAttribute("href")?d.href:"about:blank";var d;const v=Vt(t),h=Ht(Ht({click_targeturl:p},f),v);qt.forEach((e=>ft(e,h,t.dataLayer)));return Ht(Ht({},pt(t.eventData)),pt(h)).click_area?h:(j.log("NLOG: Failed to send the log because the area code does not exist"),!1)}};n(5452),n(2200),n(648);const $t=(t,e)=>{if(!t||!e)return null;const n=Math.max(t.left,e.left),r=Math.min(t.right,e.right);if(n>r)return null;const o=Math.max(t.top,e.top),i=Math.min(t.bottom,e.bottom);return o>i?null:{left:n,right:r,top:o,bottom:i}},Jt=t=>(t.right-t.left)*(t.bottom-t.top),Xt=t=>{const e=t.getBoundingClientRect();if(!e)return 0;if(!(e.width&&e.height||"visible"===window.getComputedStyle(t).overflow))return 0;let n=$t({left:e.left,right:e.right,top:e.top,bottom:e.bottom},{left:0,right:document.documentElement.clientWidth,top:0,bottom:document.documentElement.clientHeight});if(!n)return 0;let r=t.parentElement;for(;r&&r!==document.body&&r!==document.documentElement;){const{overflow:t}=window.getComputedStyle(r);if("visible"!==t&&(n=$t(n,r.getBoundingClientRect()),!n))return 0;r=r.parentElement}return Jt(n)/Jt(e)*100};function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e{const{impStartTs:e}=t,n=+new Date-e;return n>0?n:0},ce=new Map,ue=new Map,se=[],le=()=>{if(0===se.length)return;const t=new Map;se.forEach((e=>{var n;const r=e.eventParam.imp_id,o=e.tagId;if(!r||!o)return;const i="".concat(r,"_").concat(o);t.has(i)||t.set(i,[]),null===(n=t.get(i))||void 0===n||n.push(e)}));const e=Object.fromEntries(t);se.splice(0);const n=Object.entries(e).map((t=>{let[e,n]=t;const r=n.map((t=>t.eventParam.imps[0]));return{commonParam:n[0].commonParam,eventParam:Zt(Zt({},n[0].eventParam),{},{imps:r}),sendOption:n[0].sendOption}}));n.forEach((t=>{const{commonParam:e,eventParam:n,sendOption:r}=t;window.nlogLib.sendImpressionDurationData(e,n,r)}))};let fe=null;const pe=()=>{ce.forEach(((t,e)=>{const{intersectionObserver:n,impsByImpId:r}=t;r.forEach(((t,r)=>{const{commonParam:o,eventParam:i,sendOption:a,imps:c,elements:u,minPercentVisible:s}=t;if(!o||!i||!a)return;if(!ue.has(e)){const t=new Map;ue.set(e,t)}const l=ue.get(e);if(!l)return;l.has(r)||l.set(r,{bgSentInfoItems:[],minPercentVisible:s});const f=l.get(r);f&&(f.minPercentVisible=s,c.forEach(((n,r)=>{n.exp_tm=ae(t);const i=Zt(Zt({},t.eventParam),{},{imps:[n]}),c={commonParam:o,eventParam:i,sendOption:a,tagId:e};se.push(c),f.bgSentInfoItems.push(Zt(Zt({},c),{},{element:u[r]}))})),u.forEach((t=>{null==n||n.unobserve(t)})))}))})),ce.clear(),le()};var de=function(t){return t.FG="fg",t.BG="bg",t}(de||{});let ve=null;const he=()=>{ve!=de.FG&&(ue.forEach(((t,e)=>{t.forEach(((t,n)=>{const{minPercentVisible:r,bgSentInfoItems:o}=t;if(o.length<=0)return;const i=o[0],a=[],c=o.filter((t=>{const e=Xt(t.element);return xe(t.element,!0,e,r)})).map((t=>{const{eventParam:e,element:n}=t,r=e.imps[0];return delete r.exp_tm,a.push(r),{imp:r,element:n}})),{commonParam:u,eventParam:s,sendOption:l}=i,f=Zt(Zt({},s),{},{evt_ts:+new Date,imps:a});be(n,e,r,c,+new Date),me(e,n,u,f,l)}))})),ue.clear(),ve=de.FG)};let ge=!1;const ye=()=>{ge||document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState?ve!=de.BG&&(pe(),ve=de.BG):he()})),ge=!0},me=(t,e,n,r,o)=>{const i=ce.get(t);if(!i)return void j.error("no tagId in durationInfo");const a=i.impsByImpId.get(e);if(!a)return void j.error("no impId in durationInfo");a.commonParam=n,a.eventParam=r,a.sendOption=o;const c=r.imps||[];a.imps.push(...c)},be=(t,e,n,r,o)=>{var i;if(null===fe&&(fe=window.setInterval((()=>{le()}),2e3),window.nlogLib&&(null===(i=window.nlogLib.beaconBulkSender)||void 0===i||i.registerImpressionFlushCallback(lt((()=>{pe()}))))),!ce.has(e)){const t=n/100,r={intersectionObserver:null,elementImpIdMap:new Map,impsByImpId:new Map},o=n=>{n.forEach((n=>{if(!(n.intersectionRatio>t))try{null==c||c.unobserve(n.target);const t=r.elementImpIdMap.get(n.target);if(!t)return void j.error("no impId for element");const o=r.impsByImpId.get(t);if(!o)return;if(!o.commonParam||!o.eventParam||!o.sendOption)return;const i=o.elements.indexOf(n.target);if(-1===i)return;const a=null==o?void 0:o.imps[i];o.elements.splice(i,1),o.imps.splice(i,1),a.exp_tm=ae(o);const u=Zt(Zt({},o.eventParam),{},{imps:[a]});se.push({commonParam:o.commonParam,eventParam:u,sendOption:o.sendOption,tagId:e})}finally{r.elementImpIdMap.delete(n.target)}}))};r.intersectionObserver=new IntersectionObserver(o,{threshold:t}),ce.set(e,r)}const a=ce.get(e);if(!a)return;const{intersectionObserver:c,elementImpIdMap:u,impsByImpId:s}=a;r.forEach((e=>{const{element:n}=e;u.has(n)||(u.set(e.element,t),null==c||c.observe(n))})),s.set(t,{commonParam:null,eventParam:null,sendOption:null,impStartTs:o,imps:[],elements:r.map((t=>t.element)),minPercentVisible:n})},we=(t,e)=>{const n=ce.get(t);if(!n)return;const r=n.elementImpIdMap.get(e);return r?n.impsByImpId.get(r):void 0};function xe(t,e,n,r){if(!e){const e=t.getBoundingClientRect();return!!(e.width&&e.height||"visible"===window.getComputedStyle(t).overflow)}return!(!n||r&&!(r<=n))}const Oe=(t,e)=>{var n;const r=t.getBoundingClientRect(),o=document.documentElement,i=null!==(n=$t({left:r.left,right:r.right,top:r.top,bottom:r.bottom},{left:0,right:o.clientWidth,top:0,bottom:o.clientHeight}))&&void 0!==n?n:{left:0,right:0,top:0,bottom:0},a=(window.scrollY||window.pageYOffset)+r.top,c=(window.scrollX||window.pageXOffset)+r.left,u=t.offsetHeight,s=t.offsetWidth,l=i.bottom-i.top,f=i.right-i.left,p=a+(r.top>=0?0:Math.abs(r.top)),d=c+(r.left>=0?0:Math.abs(r.left));return{y:Math.round(a),x:Math.round(c),h:Math.round(u),w:Math.round(s),exp_y:e?Math.round(p):0,exp_x:e?Math.round(d):0,exp_h:e?Math.round(l):0,exp_w:e?Math.round(f):0}},Se=(t,e,n,r,o,i,a,c)=>{var u;let s;try{s=null!=a&&a.impressionRootSelector?Array.from(document.querySelectorAll(a.impressionRootSelector)).flatMap((t=>Array.from(t.querySelectorAll(e)))):document.querySelectorAll(e)}catch(t){j.error("NLOG: Failed to select nodes"),s=[]}if(null===(u=s)||void 0===u||!u.length)return[];const l=[];let f=oe.get(t);f||(f=new Map,oe.set(t,f));let p=ie.get(t);p||(p=new Set,ie.set(t,p));const d=!0===(null==a?void 0:a.viewportCheckOnly);for(let e=0;e0&&(r+=1,f.set(u,r),p.add(u));const s=Oe(u,S),d=Zt({url:null!==(g=null!==(y=null==u?void 0:u.href)&&void 0!==y?y:u.getAttribute("href"))&&void 0!==g?g:void 0,exp_num:e?void 0:r},s);if([...re,...o].forEach((t=>{if(!t)return;const e="".concat(ne,"-").concat(t),n=u.getAttribute(e);if(!n)return;const r=re.includes(t)?t.replaceAll("-","_"):t;d[r]=n})),i){const t="".concat(ne,"-").concat(i),e=u.getAttribute(t);if(e)try{const t=JSON.parse(e);Object.assign(d,t)}catch(t){j.error("NLOG: Failed to parse the JSON string in the attribute")}}if(null!=a&&a.expandImpressionData)try{const t=a.expandImpressionData(u);null!=t&&"object"==typeof t&&Object.assign(d,t)}catch(t){j.error("NLOG : expandImpressionData throws an error : ".concat(t))}l.push({imp:d,element:u})}else{var b;if(w)null===(b=p)||void 0===b||b.delete(u)}}return(t=>{const e=oe.get(t),n=ie.get(t);null==e||e.forEach(((t,n)=>{n.isConnected||e.delete(n)})),null==n||n.forEach((t=>{t.isConnected||n.delete(t)}))})(t),l},Ee=[...Nt],_e=t=>{const e=t.dataLayer.get("pre.scrollStartTime"),n=t.dataLayer.get("pre.elementScrollDirection"),r=document.body.scrollTop||document.documentElement.scrollTop,o=document.body.scrollLeft||document.documentElement.scrollLeft;if(e>=0)return{p_y:Math.round(r),p_x:Math.round(o),ts:e,direction:n}};var Ie={eventType:"impression",onInit:t=>{jt()},getEventData:t=>{var e,n,r,o,i,a,c,u,s,l;const f=null!==(e=null==t?void 0:t.tagId)&&void 0!==e?e:"",p=null==t||null===(n=t.parameters)||void 0===n?void 0:n.get("css_selector",t.dataLayer),d=null==t||null===(r=t.parameters)||void 0===r?void 0:r.get("el_visibility_check_limit",t.dataLayer),v=(null==t||null===(o=t.parameters)||void 0===o?void 0:o.get("min_percent_visible",t.dataLayer))||10,h=null==t||null===(i=t.parameters)||void 0===i?void 0:i.get("custom_data_attributes",t.dataLayer),g=Array.isArray(h)?h:[],y=null!==(a=null==t||null===(c=t.parameters)||void 0===c?void 0:c.get("custom_json_data_attribute",t.dataLayer))&&void 0!==a?a:"",m=t.parameters.get("use_imp_duration",t.dataLayer),b=!1!==(null==t||null===(u=t.tagCmdData)||void 0===u?void 0:u.viewportCheckOnly)&&m;b&&ye();const w=_e(t);if(ve?ve===de.BG:"hidden"===document.visibilityState)return!1;const x=Se(f,p,d,v,g,y,t.tagCmdData,b),O=x.map((t=>t.imp));if(!t.parameters.get("imps_empty_send",t.dataLayer)&&0===O.length)return!1;if(!w&&0===O.length)return!1;const S=Vt(t),E={is_exp_tm:!!b},_=null!==(s=null===(l=t.tagCmdData)||void 0===l?void 0:l.triggerEventId)&&void 0!==s?s:"",I=Zt(Zt({},S),{},{scroll:w,doc:{width:Math.round(Math.max(document.body.offsetWidth,document.body.scrollWidth,document.documentElement.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,1)),height:Math.round(Math.max(document.body.offsetHeight,document.body.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,1))},imp_id:_,imps:O,config:E});return Ee.forEach((e=>ft(e,I,t.dataLayer))),b&&be(_,f,v,x,+new Date),pt(I)}};const Pe={},je=t=>{const{eventType:e}=t;Pe[e]=t},Ae=(t,e)=>{const n=t=>t.replace(/^v/,"").split("-")[0].split(".").map(Number),r=n(t),o=n(e);for(let t=0;tn)return 1;if(e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function De(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ce(t){for(var e=1;e{if(this.hasScrolled=!0,void 0===this.pvIntervalId)return;const t=+new Date;this.lastScrolledTime&&+t-+this.lastScrolledTime>this.scrollGapDuration&&this.stopPvCallbacks(),this.lastScrolledTime=t})),this.beaconBulkSender=new C,this.setHighEntropyEnv(),this.callbackMap=Pe}send(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ne;try{if(!t)throw new Error("commonParam is nil");if(!e)throw new Error("eventParam is nil");if(null==n||!n.host||null==n||!n.path)throw new Error("invalid sendOption : path, host => ".concat(n.host,", ").concat(n.path));j.enabled="dev"===n.containerEnv||"stage"===n.containerEnv;const r=Ce(Ce({},e),{},{evt_ts:+new Date}),o=this.pruneInvalidTypeField(r),i=!!(o.imps&&Array.isArray(o.imps)&&o.imps.length>0);if(n.useImpDuration&&n.tagId&&o.imp_id&&i)return void me(n.tagId,o.imp_id,t,o,n);this.sendData(t,o,n)}catch(t){"dev"!==(null==n?void 0:n.containerEnv)&&"stage"!==(null==n?void 0:n.containerEnv)||console.error("[nlog]",t)}}sendImpressionDurationData(t,e,n){this.sendData(t,e,n)}splitData(t,e){const n=_(t,e);if(1===t.length||!1!==n)return[t];const r=[];let o=0;return t.forEach((t=>{const n=_(t,e);if(!1===n||n>e)return;o+=n;const i=r.length;0===i||o>e?(o=n,r.push([t])):r[i-1].push(t)})),r}flushQueue(){var t;null===(t=this.beaconBulkSender)||void 0===t||t.flushQueue()}sendData(t,e,n){if("impression"===e.type&&e.imps&&Array.isArray(e.imps)&&e.imps.length>0){const r=e.imps;return void this.splitData(r,49152).forEach((r=>{this.sendSingleData(t,Ce(Ce({},e),{},{imps:r,nlog_id:u()}),n)}))}const r=Ce(Ce({},e),{},{nlog_id:u()});this.sendSingleData(t,r,n)}sendSingleData(t,e,n){"pageview"==e.type&&n.sendActLog&&this.onPageViewSend(t,e,n),this.pending?this.sendQueue.push({common:t,event:e,sendOption:n}):(this.flushSendQueue(),this.sendHttpRequest(t,e,n))}runBodyReturnCallback(t,e,n){const r=this.makeNlogBodyCommon(t,n),o=this.getSendUrl(n);if(n.bodyReturnCallback){const t=C.appendCksToUrl(o,r.cks),{cks:i}=r,a={url:t,body:Ce(Ce({},Re(r,Le)),{},{evt:e})};n.bodyReturnCallback(a,n.tagId)}}sendHttpRequest(t,e,n){const{sendImmediate:r}=n;if(this.beaconBulkSender){const o=this.makeNlogBodyCommon(t,n);this.runBodyReturnCallback(t,e,n),this.beaconBulkSender.pushData(this.getSendUrl(n),o,e,r,n.nlogCallback),n.serviceCollectHost&&this.beaconBulkSender.pushData(this.getServiceCollectSendUrl(n),o,e,r,n.nlogCallback)}}makeNlogBodyCommon(t,e){const{corp:n,svc:r,location:o,svc_tags:i,custom_usr:a,cks:c}=t;return{corp:n,svc:r,location:o,svc_tags:i,send_ts:+new Date,tool:this.makeToolObj(e),usr:a,env:Ce(Ce({},this.getEnv()),t.custom_env),cks:c}}makeToolObj(t){const e={name:"ntm-web",ver:"v".concat(Te)};var n,r;(t.ntmVersion||t.versionName)&&(e.ver="nlogLibVersion=v".concat(Te,"; verName=").concat(null!==(n=t.versionName)&&void 0!==n?n:"","; ntmVersion=").concat(null!==(r=t.ntmVersion)&&void 0!==r?r:""));return e}setHighEntropyEnv(){const t=window.navigator.userAgentData;t?(this.pending=!0,t.getHighEntropyValues(["platformVersion","model","architecture","uaFullVersion","fullVersionList","brands","bitness","formFactors","wow64"]).then((e=>{const n={ch_pltf:t.platform,ch_mob:(()=>{if(!t)return!1;const e=t.mobile,n=typeof e;return"boolean"===n?e:"string"===n?"true"===e:"number"===n&&e>0})(),ch_mdl:e.model,ch_arch:e.architecture,ch_pltfv:e.platformVersion,ch_brs:e.brands,ch_bit:e.bitness,ch_ffs:e.formFactors,ch_wow64:e.wow64};e.fullVersionList&&e.fullVersionList.length?n.ch_fvls=e.fullVersionList:n.ch_uav=e.uaFullVersion,this.chFields=Ce({},n),this.pending=!1,this.flushSendQueue()}))):this.pending=!1}getEnv(){return Ce(Ce({},this.getLowEntropyEnv()),this.chFields)}getLowEntropyEnv(){var t,e,n,r,o;const i=null!==(t=navigator.platform)&&void 0!==t?t:"",a=null!==(e=null!==(n=navigator.userLanguage)&&void 0!==n?n:navigator.language)&&void 0!==e?e:"",c=null===(r=window)||void 0===r?void 0:r.devicePixelRatio,u=null===(o=window)||void 0===o||null===(o=o.Intl)||void 0===o||null===(o=o.DateTimeFormat())||void 0===o||null===(o=o.resolvedOptions())||void 0===o?void 0:o.timeZone,s={os:i,br_ln:a,br_sr:this.getBrowserSr(),device_sr:this.getDeviceSr(),platform_type:"web"};return void 0!==c&&(s.device_pr=null==c?void 0:c.toString()),void 0!==u&&(s.timezone=u),s}getDeviceSr(){if(window.screen&&screen.width&&screen.height)return screen.width+"x"+screen.height;if(window.java||self.java){const t=window.java.awt.Toolkit.getDefaultToolkit().getScreenSize();return t.width+"x"+t.height}return""}getBrowserSr(){var t,e,n,r;const o=null!==(t=null!==(e=document.documentElement.clientWidth)&&void 0!==e?e:document.body.clientWidth)&&void 0!==t?t:"",i=null!==(n=null!==(r=document.documentElement.clientHeight)&&void 0!==r?r:document.body.clientHeight)&&void 0!==n?n:"";return"".concat(o,"x").concat(i)}flushSendQueue(){this.sendQueue.length&&(this.sendQueue.forEach((t=>{const{common:e,event:n,sendOption:r}=t,{sendImmediate:o}=null!=r?r:{};this.beaconBulkSender&&(this.runBodyReturnCallback(e,n,r),this.beaconBulkSender.pushData(this.getSendUrl(r),this.makeNlogBodyCommon(e,r),n,o,r.nlogCallback),r.serviceCollectHost&&this.beaconBulkSender.pushData(this.getServiceCollectSendUrl(r),this.makeNlogBodyCommon(e,r),n,o,r.nlogCallback))})),this.sendQueue=[])}getProtocol(){return["http:","https:"].includes(location.protocol)?location.protocol:"https:"}getSendUrl(t){return t.customEndpoint?t.customEndpoint:"".concat(this.getProtocol(),"//").concat(t.host).concat(t.path)}getServiceCollectSendUrl(t){return"".concat(this.getProtocol(),"//").concat(t.serviceCollectHost).concat(t.path)}pruneInvalidTypeField(t){const e=Ce({},t);for(let[t,n]of Object.entries(e)){if("click_rank"===t&&"number"==typeof n&&(e[t]=n=n.toString()),["click_px","click_py","click_sx","click_sy"].includes(t)){const r=typeof n;if("string"===r){const r=it(n);Number.isNaN(r)?delete e[t]:e[t]=n=r}else"number"!==r&&delete e[t]}const r=ke[t];r&&(null==n&&delete e[t],typeof n!==r&&delete e[t])}return e}sendPageviewActManually(t){if(!this.lastPvEvent)return;const{commonParam:e,event:n,sendOption:r}=this.lastPvEvent,o=this.makePageviewActLog(n),i=["sub_type"];for(const e of i)e in t&&(o[e]=t[e]);this.sendData(e,o,r)}onPageViewSend(t,e,n){this.hasScrolled=!1,this.lastPageviewOrActTime=+new Date,this.lastPvEvent={commonParam:t,event:e,sendOption:n},this.stopPvCallbacks(),this.pvIntervalId=window.setInterval((()=>{if(+new Date-this.lastPageviewOrActTime>this.intervalDuration+this.intervalCheckMargin)this.stopPvCallbacks();else{if(document.hasFocus()&&this.hasScrolled){const r=this.makePageviewActLog(e);this.sendData(t,r,n),this.lastPageviewOrActTime=+new Date}else this.stopPvCallbacks();this.hasScrolled=!1}}),this.intervalDuration),document.addEventListener("scroll",this.pvScrollCallback,!0)}makePageviewActLog(t){const e={type:"pageview.act",evt_ts:+new Date},n=["page_id","page_ref","page_url","page_sti","page_pos","page_cid","page_qy"];for(const r of n)r in t&&(e[r]=t[r]);return e}stopPvCallbacks(){this.pvIntervalId&&(window.clearInterval(this.pvIntervalId),this.pvIntervalId=void 0),document.removeEventListener("scroll",this.pvScrollCallback,!0)}}window.nlogLib=new Be}()}();