(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();function Xt(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}else return Array.from(t)}var He=!1;if(typeof window<"u"){var et={get passive(){He=!0}};window.addEventListener("testPassive",null,et),window.removeEventListener("testPassive",null,et)}var he=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),X=[],be=!1,qe=-1,oe=void 0,W=void 0,ae=void 0,$t=function(e){return X.some(function(r){return!!(r.options.allowTouchMove&&r.options.allowTouchMove(e))})},Se=function(e){var r=e||window.event;return $t(r.target)||r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)},Kt=function(e){if(ae===void 0){var r=!!e&&e.reserveScrollBarGap===!0,n=window.innerWidth-document.documentElement.clientWidth;if(r&&n>0){var a=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);ae=document.body.style.paddingRight,document.body.style.paddingRight=a+n+"px"}}oe===void 0&&(oe=document.body.style.overflow,document.body.style.overflow="hidden")},Zt=function(){ae!==void 0&&(document.body.style.paddingRight=ae,ae=void 0),oe!==void 0&&(document.body.style.overflow=oe,oe=void 0)},er=function(){return window.requestAnimationFrame(function(){if(W===void 0){W={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,r=e.scrollY,n=e.scrollX,a=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-r,document.body.style.left=-n,setTimeout(function(){return window.requestAnimationFrame(function(){var o=a-window.innerHeight;o&&r>=a&&(document.body.style.top=-(r+o))})},300)}})},tr=function(){if(W!==void 0){var e=-parseInt(document.body.style.top,10),r=-parseInt(document.body.style.left,10);document.body.style.position=W.position,document.body.style.top=W.top,document.body.style.left=W.left,window.scrollTo(r,e),W=void 0}},rr=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},nr=function(e,r){var n=e.targetTouches[0].clientY-qe;return $t(e.target)?!1:r&&r.scrollTop===0&&n>0||rr(r)&&n<0?Se(e):(e.stopPropagation(),!0)},tt=function(e,r){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!X.some(function(a){return a.targetElement===e})){var n={targetElement:e,options:r||{}};X=[].concat(Xt(X),[n]),he?er():Kt(r),he&&(e.ontouchstart=function(a){a.targetTouches.length===1&&(qe=a.targetTouches[0].clientY)},e.ontouchmove=function(a){a.targetTouches.length===1&&nr(a,e)},be||(document.addEventListener("touchmove",Se,He?{passive:!1}:void 0),be=!0))}},or=function(){he&&(X.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),be&&(document.removeEventListener("touchmove",Se,He?{passive:!1}:void 0),be=!1),qe=-1),he?tr():Zt(),X=[]},ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ar(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var It={exports:{}},Bt={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(r,n){return r<<n|r>>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return e.rotl(r,8)&16711935|e.rotl(r,24)&4278255360;for(var n=0;n<r.length;n++)r[n]=e.endian(r[n]);return r},randomBytes:function(r){for(var n=[];r>0;r--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(r){for(var n=[],a=0,o=0;a<r.length;a++,o+=8)n[o>>>5]|=r[a]<<24-o%32;return n},wordsToBytes:function(r){for(var n=[],a=0;a<r.length*32;a+=8)n.push(r[a>>>5]>>>24-a%32&255);return n},bytesToHex:function(r){for(var n=[],a=0;a<r.length;a++)n.push((r[a]>>>4).toString(16)),n.push((r[a]&15).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],a=0;a<r.length;a+=2)n.push(parseInt(r.substr(a,2),16));return n},bytesToBase64:function(r){for(var n=[],a=0;a<r.length;a+=3)for(var o=r[a]<<16|r[a+1]<<8|r[a+2],c=0;c<4;c++)a*8+c*6<=r.length*8?n.push(t.charAt(o>>>6*(3-c)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],a=0,o=0;a<r.length;o=++a%4)o!=0&&n.push((t.indexOf(r.charAt(a-1))&Math.pow(2,-2*o+8)-1)<<o*2|t.indexOf(r.charAt(a))>>>6-o*2);return n}};Bt.exports=e})();var ir=Bt.exports,Ce={utf8:{stringToBytes:function(t){return Ce.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(Ce.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(t.charCodeAt(r)&255);return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}},rt=Ce;/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var lr=function(t){return t!=null&&(Rt(t)||fr(t)||!!t._isBuffer)};function Rt(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function fr(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Rt(t.slice(0,0))}(function(){var t=ir,e=rt.utf8,r=lr,n=rt.bin,a=function(o,c){o.constructor==String?c&&c.encoding==="binary"?o=n.stringToBytes(o):o=e.stringToBytes(o):r(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var i=t.bytesToWords(o),p=o.length*8,l=1732584193,u=-271733879,s=-1732584194,f=271733878,y=0;y<i.length;y++)i[y]=(i[y]<<8|i[y]>>>24)&16711935|(i[y]<<24|i[y]>>>8)&4278255360;i[p>>>5]|=128<<p%32,i[(p+64>>>9<<4)+14]=p;for(var m=a._ff,S=a._gg,w=a._hh,g=a._ii,y=0;y<i.length;y+=16){var I=l,B=u,d=s,v=f;l=m(l,u,s,f,i[y+0],7,-680876936),f=m(f,l,u,s,i[y+1],12,-389564586),s=m(s,f,l,u,i[y+2],17,606105819),u=m(u,s,f,l,i[y+3],22,-1044525330),l=m(l,u,s,f,i[y+4],7,-176418897),f=m(f,l,u,s,i[y+5],12,1200080426),s=m(s,f,l,u,i[y+6],17,-1473231341),u=m(u,s,f,l,i[y+7],22,-45705983),l=m(l,u,s,f,i[y+8],7,1770035416),f=m(f,l,u,s,i[y+9],12,-1958414417),s=m(s,f,l,u,i[y+10],17,-42063),u=m(u,s,f,l,i[y+11],22,-1990404162),l=m(l,u,s,f,i[y+12],7,1804603682),f=m(f,l,u,s,i[y+13],12,-40341101),s=m(s,f,l,u,i[y+14],17,-1502002290),u=m(u,s,f,l,i[y+15],22,1236535329),l=S(l,u,s,f,i[y+1],5,-165796510),f=S(f,l,u,s,i[y+6],9,-1069501632),s=S(s,f,l,u,i[y+11],14,643717713),u=S(u,s,f,l,i[y+0],20,-373897302),l=S(l,u,s,f,i[y+5],5,-701558691),f=S(f,l,u,s,i[y+10],9,38016083),s=S(s,f,l,u,i[y+15],14,-660478335),u=S(u,s,f,l,i[y+4],20,-405537848),l=S(l,u,s,f,i[y+9],5,568446438),f=S(f,l,u,s,i[y+14],9,-1019803690),s=S(s,f,l,u,i[y+3],14,-187363961),u=S(u,s,f,l,i[y+8],20,1163531501),l=S(l,u,s,f,i[y+13],5,-1444681467),f=S(f,l,u,s,i[y+2],9,-51403784),s=S(s,f,l,u,i[y+7],14,1735328473),u=S(u,s,f,l,i[y+12],20,-1926607734),l=w(l,u,s,f,i[y+5],4,-378558),f=w(f,l,u,s,i[y+8],11,-2022574463),s=w(s,f,l,u,i[y+11],16,1839030562),u=w(u,s,f,l,i[y+14],23,-35309556),l=w(l,u,s,f,i[y+1],4,-1530992060),f=w(f,l,u,s,i[y+4],11,1272893353),s=w(s,f,l,u,i[y+7],16,-155497632),u=w(u,s,f,l,i[y+10],23,-1094730640),l=w(l,u,s,f,i[y+13],4,681279174),f=w(f,l,u,s,i[y+0],11,-358537222),s=w(s,f,l,u,i[y+3],16,-722521979),u=w(u,s,f,l,i[y+6],23,76029189),l=w(l,u,s,f,i[y+9],4,-640364487),f=w(f,l,u,s,i[y+12],11,-421815835),s=w(s,f,l,u,i[y+15],16,530742520),u=w(u,s,f,l,i[y+2],23,-995338651),l=g(l,u,s,f,i[y+0],6,-198630844),f=g(f,l,u,s,i[y+7],10,1126891415),s=g(s,f,l,u,i[y+14],15,-1416354905),u=g(u,s,f,l,i[y+5],21,-57434055),l=g(l,u,s,f,i[y+12],6,1700485571),f=g(f,l,u,s,i[y+3],10,-1894986606),s=g(s,f,l,u,i[y+10],15,-1051523),u=g(u,s,f,l,i[y+1],21,-2054922799),l=g(l,u,s,f,i[y+8],6,1873313359),f=g(f,l,u,s,i[y+15],10,-30611744),s=g(s,f,l,u,i[y+6],15,-1560198380),u=g(u,s,f,l,i[y+13],21,1309151649),l=g(l,u,s,f,i[y+4],6,-145523070),f=g(f,l,u,s,i[y+11],10,-1120210379),s=g(s,f,l,u,i[y+2],15,718787259),u=g(u,s,f,l,i[y+9],21,-343485551),l=l+I>>>0,u=u+B>>>0,s=s+d>>>0,f=f+v>>>0}return t.endian([l,u,s,f])};a._ff=function(o,c,i,p,l,u,s){var f=o+(c&i|~c&p)+(l>>>0)+s;return(f<<u|f>>>32-u)+c},a._gg=function(o,c,i,p,l,u,s){var f=o+(c&p|i&~p)+(l>>>0)+s;return(f<<u|f>>>32-u)+c},a._hh=function(o,c,i,p,l,u,s){var f=o+(c^i^p)+(l>>>0)+s;return(f<<u|f>>>32-u)+c},a._ii=function(o,c,i,p,l,u,s){var f=o+(i^(c|~p))+(l>>>0)+s;return(f<<u|f>>>32-u)+c},a._blocksize=16,a._digestsize=16,It.exports=function(o,c){if(o==null)throw new Error("Illegal argument "+o);var i=t.wordsToBytes(a(o,c));return c&&c.asBytes?i:c&&c.asString?n.bytesToString(i):t.bytesToHex(i)}})();var ur=It.exports;const cr=Tt(ur);(function(t){var e=function(){try{if(t.URLSearchParams&&new t.URLSearchParams("foo=bar").get("foo")==="bar")return t.URLSearchParams}catch{}return null}(),r=e&&new e({a:1}).toString()==="a=1",n=e&&new e("s=%2B").get("s")==="+",a=e&&"size"in e.prototype,o="__URLSearchParams__",c=e?function(){var d=new e;return d.append("s"," &"),d.toString()==="s=+%26"}():!0,i=l.prototype,p=!!(t.Symbol&&t.Symbol.iterator);if(e&&r&&n&&c&&a)return;function l(d){d=d||"",(d instanceof URLSearchParams||d instanceof l)&&(d=d.toString()),this[o]=w(d)}i.append=function(d,v){g(this[o],d,v)},i.delete=function(d){delete this[o][d]},i.get=function(d){var v=this[o];return this.has(d)?v[d][0]:null},i.getAll=function(d){var v=this[o];return this.has(d)?v[d].slice(0):[]},i.has=function(d){return B(this[o],d)},i.set=function(v,h){this[o][v]=[""+h]},i.toString=function(){var d=this[o],v=[],h,O,P,x;for(O in d)for(P=y(O),h=0,x=d[O];h<x.length;h++)v.push(P+"="+y(x[h]));return v.join("&")};var u=t.Proxy&&e&&(!n||!c||!r||!a),s;u?(s=new Proxy(e,{construct:function(d,v){return new d(new l(v[0]).toString())}}),s.toString=Function.prototype.toString.bind(l)):s=l,Object.defineProperty(t,"URLSearchParams",{value:s});var f=t.URLSearchParams.prototype;f.polyfill=!0,!u&&t.Symbol&&(f[t.Symbol.toStringTag]="URLSearchParams"),"forEach"in f||(f.forEach=function(d,v){var h=w(this.toString());Object.getOwnPropertyNames(h).forEach(function(O){h[O].forEach(function(P){d.call(v,P,O,this)},this)},this)}),"sort"in f||(f.sort=function(){var d=w(this.toString()),v=[],h,O,P;for(h in d)v.push(h);for(v.sort(),O=0;O<v.length;O++)this.delete(v[O]);for(O=0;O<v.length;O++){var x=v[O],R=d[x];for(P=0;P<R.length;P++)this.append(x,R[P])}}),"keys"in f||(f.keys=function(){var d=[];return this.forEach(function(v,h){d.push(h)}),S(d)}),"values"in f||(f.values=function(){var d=[];return this.forEach(function(v){d.push(v)}),S(d)}),"entries"in f||(f.entries=function(){var d=[];return this.forEach(function(v,h){d.push([h,v])}),S(d)}),p&&(f[t.Symbol.iterator]=f[t.Symbol.iterator]||f.entries),"size"in f||Object.defineProperty(f,"size",{get:function(){var d=w(this.toString());if(f===this)throw new TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(d).reduce(function(v,h){return v+d[h].length},0)}});function y(d){var v={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(d).replace(/[!'\(\)~]|%20|%00/g,function(h){return v[h]})}function m(d){return d.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(v){return decodeURIComponent(v)})}function S(d){var v={next:function(){var h=d.shift();return{done:h===void 0,value:h}}};return p&&(v[t.Symbol.iterator]=function(){return v}),v}function w(d){var v={};if(typeof d=="object")if(I(d))for(var h=0;h<d.length;h++){var O=d[h];if(I(O)&&O.length===2)g(v,O[0],O[1]);else throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var P in d)d.hasOwnProperty(P)&&g(v,P,d[P]);else{d.indexOf("?")===0&&(d=d.slice(1));for(var x=d.split("&"),R=0;R<x.length;R++){var _=x[R],T=_.indexOf("=");-1<T?g(v,m(_.slice(0,T)),m(_.slice(T+1))):_&&g(v,m(_),"")}}return v}function g(d,v,h){var O=typeof h=="string"?h:h!=null&&typeof h.toString=="function"?h.toString():JSON.stringify(h);B(d,v)?d[v].push(O):d[v]=[O]}function I(d){return!!d&&Object.prototype.toString.call(d)==="[object Array]"}function B(d,v){return Object.prototype.hasOwnProperty.call(d,v)}})(typeof ve<"u"?ve:typeof window<"u"?window:ve);var sr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[r]=a;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,r);if(c.value!==a||c.enumerable!==!0)return!1}return!0},nt=typeof Symbol<"u"&&Symbol,pr=sr,yr=function(){return typeof nt!="function"||typeof Symbol!="function"||typeof nt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:pr()},ot={foo:{}},dr=Object,vr=function(){return{__proto__:ot}.foo===ot.foo&&!({__proto__:null}instanceof dr)},gr="Function.prototype.bind called on incompatible ",mr=Object.prototype.toString,hr=Math.max,br="[object Function]",at=function(e,r){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<r.length;o+=1)n[o+e.length]=r[o];return n},Sr=function(e,r){for(var n=[],a=r||0,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n},wr=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Or=function(e){var r=this;if(typeof r!="function"||mr.apply(r)!==br)throw new TypeError(gr+r);for(var n=Sr(arguments,1),a,o=function(){if(this instanceof a){var u=r.apply(this,at(n,arguments));return Object(u)===u?u:this}return r.apply(e,at(n,arguments))},c=hr(0,r.length-n.length),i=[],p=0;p<c;p++)i[p]="$"+p;if(a=Function("binder","return function ("+wr(i,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},Pr=Or,Ve=Function.prototype.bind||Pr,Ar=Function.prototype.call,Er=Object.prototype.hasOwnProperty,xr=Ve,Fr=xr.call(Ar,Er),b,Z=SyntaxError,_t=Function,K=TypeError,Ee=function(t){try{return _t('"use strict"; return ('+t+").constructor;")()}catch{}},z=Object.getOwnPropertyDescriptor;if(z)try{z({},"")}catch{z=null}var xe=function(){throw new K},$r=z?function(){try{return arguments.callee,xe}catch{try{return z(arguments,"callee").get}catch{return xe}}}():xe,Y=yr(),Tr=vr(),E=Object.getPrototypeOf||(Tr?function(t){return t.__proto__}:null),j={},Ir=typeof Uint8Array>"u"||!E?b:E(Uint8Array),H={"%AggregateError%":typeof AggregateError>"u"?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?b:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&E?E([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics>"u"?b:Atomics,"%BigInt%":typeof BigInt>"u"?b:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?b:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?b:Float32Array,"%Float64Array%":typeof Float64Array>"u"?b:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?b:FinalizationRegistry,"%Function%":_t,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array>"u"?b:Int8Array,"%Int16Array%":typeof Int16Array>"u"?b:Int16Array,"%Int32Array%":typeof Int32Array>"u"?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&E?E(E([][Symbol.iterator]())):b,"%JSON%":typeof JSON=="object"?JSON:b,"%Map%":typeof Map>"u"?b:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!E?b:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?b:Promise,"%Proxy%":typeof Proxy>"u"?b:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?b:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?b:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!E?b:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&E?E(""[Symbol.iterator]()):b,"%Symbol%":Y?Symbol:b,"%SyntaxError%":Z,"%ThrowTypeError%":$r,"%TypedArray%":Ir,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?b:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?b:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?b:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?b:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?b:WeakMap,"%WeakRef%":typeof WeakRef>"u"?b:WeakRef,"%WeakSet%":typeof WeakSet>"u"?b:WeakSet};if(E)try{null.error}catch(t){var Br=E(E(t));H["%Error.prototype%"]=Br}var Rr=function t(e){var r;if(e==="%AsyncFunction%")r=Ee("async function () {}");else if(e==="%GeneratorFunction%")r=Ee("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ee("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&E&&(r=E(a.prototype))}return H[e]=r,r},it={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ce=Ve,we=Fr,_r=ce.call(Function.call,Array.prototype.concat),Nr=ce.call(Function.apply,Array.prototype.splice),lt=ce.call(Function.call,String.prototype.replace),Oe=ce.call(Function.call,String.prototype.slice),Cr=ce.call(Function.call,RegExp.prototype.exec),Mr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Lr=/\\(\\)?/g,Ur=function(e){var r=Oe(e,0,1),n=Oe(e,-1);if(r==="%"&&n!=="%")throw new Z("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Z("invalid intrinsic syntax, expected opening `%`");var a=[];return lt(e,Mr,function(o,c,i,p){a[a.length]=i?lt(p,Lr,"$1"):c||o}),a},kr=function(e,r){var n=e,a;if(we(it,n)&&(a=it[n],n="%"+a[0]+"%"),we(H,n)){var o=H[n];if(o===j&&(o=Rr(n)),typeof o>"u"&&!r)throw new K("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Z("intrinsic "+e+" does not exist!")},q=function(e,r){if(typeof e!="string"||e.length===0)throw new K("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new K('"allowMissing" argument must be a boolean');if(Cr(/^%?[^%]*%?$/,e)===null)throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ur(e),a=n.length>0?n[0]:"",o=kr("%"+a+"%",r),c=o.name,i=o.value,p=!1,l=o.alias;l&&(a=l[0],Nr(n,_r([0,1],l)));for(var u=1,s=!0;u<n.length;u+=1){var f=n[u],y=Oe(f,0,1),m=Oe(f,-1);if((y==='"'||y==="'"||y==="`"||m==='"'||m==="'"||m==="`")&&y!==m)throw new Z("property names with quotes must have matching quotes");if((f==="constructor"||!s)&&(p=!0),a+="."+f,c="%"+a+"%",we(H,c))i=H[c];else if(i!=null){if(!(f in i)){if(!r)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(z&&u+1>=n.length){var S=z(i,f);s=!!S,s&&"get"in S&&!("originalValue"in S.get)?i=S.get:i=i[f]}else s=we(i,f),i=i[f];s&&!p&&(H[c]=i)}}return i},Nt={exports:{}},Dr=q,Me=Dr("%Object.defineProperty%",!0),Le=function(){if(Me)try{return Me({},"a",{value:1}),!0}catch{return!1}return!1};Le.hasArrayLengthDefineBug=function(){if(!Le())return null;try{return Me([],"length",{value:1}).length!==1}catch{return!0}};var Ct=Le,Wr=q,ge=Wr("%Object.getOwnPropertyDescriptor%",!0);if(ge)try{ge([],"length")}catch{ge=null}var Mt=ge,Gr=Ct(),Qe=q,ie=Gr&&Qe("%Object.defineProperty%",!0);if(ie)try{ie({},"a",{value:1})}catch{ie=!1}var zr=Qe("%SyntaxError%"),J=Qe("%TypeError%"),ft=Mt,Hr=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new J("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new J("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new J("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new J("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new J("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new J("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,p=!!ft&&ft(e,r);if(ie)ie(e,r,{configurable:c===null&&p?p.configurable:!c,enumerable:a===null&&p?p.enumerable:!a,value:n,writable:o===null&&p?p.writable:!o});else if(i||!a&&!o&&!c)e[r]=n;else throw new zr("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Lt=q,ut=Hr,qr=Ct(),ct=Mt,st=Lt("%TypeError%"),Vr=Lt("%Math.floor%"),Qr=function(e,r){if(typeof e!="function")throw new st("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Vr(r)!==r)throw new st("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in e&&ct){var c=ct(e,"length");c&&!c.configurable&&(a=!1),c&&!c.writable&&(o=!1)}return(a||o||!n)&&(qr?ut(e,"length",r,!0,!0):ut(e,"length",r)),e};(function(t){var e=Ve,r=q,n=Qr,a=r("%TypeError%"),o=r("%Function.prototype.apply%"),c=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(c,o),p=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}t.exports=function(f){if(typeof f!="function")throw new a("a function is required");var y=i(e,c,arguments);return n(y,1+l(0,f.length-(arguments.length-1)),!0)};var u=function(){return i(e,o,arguments)};p?p(t.exports,"apply",{value:u}):t.exports.apply=u})(Nt);var Yr=Nt.exports,Ut=q,kt=Yr,Jr=kt(Ut("String.prototype.indexOf")),jr=function(e,r){var n=Ut(e,!!r);return typeof n=="function"&&Jr(e,".prototype.")>-1?kt(n):n};const Xr={},Kr=Object.freeze(Object.defineProperty({__proto__:null,default:Xr},Symbol.toStringTag,{value:"Module"})),Zr=ar(Kr);var Ye=typeof Map=="function"&&Map.prototype,Fe=Object.getOwnPropertyDescriptor&&Ye?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Pe=Ye&&Fe&&typeof Fe.get=="function"?Fe.get:null,pt=Ye&&Map.prototype.forEach,Je=typeof Set=="function"&&Set.prototype,$e=Object.getOwnPropertyDescriptor&&Je?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ae=Je&&$e&&typeof $e.get=="function"?$e.get:null,yt=Je&&Set.prototype.forEach,en=typeof WeakMap=="function"&&WeakMap.prototype,le=en?WeakMap.prototype.has:null,tn=typeof WeakSet=="function"&&WeakSet.prototype,fe=tn?WeakSet.prototype.has:null,rn=typeof WeakRef=="function"&&WeakRef.prototype,dt=rn?WeakRef.prototype.deref:null,nn=Boolean.prototype.valueOf,on=Object.prototype.toString,an=Function.prototype.toString,ln=String.prototype.match,je=String.prototype.slice,k=String.prototype.replace,fn=String.prototype.toUpperCase,vt=String.prototype.toLowerCase,Dt=RegExp.prototype.test,gt=Array.prototype.concat,C=Array.prototype.join,un=Array.prototype.slice,mt=Math.floor,Ue=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Te=Object.getOwnPropertySymbols,ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="object",$=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ee||!0)?Symbol.toStringTag:null,Wt=Object.prototype.propertyIsEnumerable,ht=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function bt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Dt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-mt(-t):mt(t);if(n!==t){var a=String(n),o=je.call(e,a.length+1);return k.call(a,r,"$&_")+"."+k.call(k.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return k.call(e,r,"$&_")}var De=Zr,St=De.custom,wt=zt(St)?St:null,cn=function t(e,r,n,a){var o=r||{};if(U(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=U(o,"customInspect")?o.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(o,"indent")&&o.indent!==null&&o.indent!=="	"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return qt(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var p=String(e);return i?bt(e,p):p}if(typeof e=="bigint"){var l=String(e)+"n";return i?bt(e,l):l}var u=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return We(e)?"[Array]":"[Object]";var s=$n(o,n);if(typeof a>"u")a=[];else if(Ht(a,e)>=0)return"[Circular]";function f(M,V,se){if(V&&(a=un.call(a),a.push(V)),se){var Q={depth:o.depth};return U(o,"quoteStyle")&&(Q.quoteStyle=o.quoteStyle),t(M,Q,n+1,a)}return t(M,o,n+1,a)}if(typeof e=="function"&&!Ot(e)){var y=bn(e),m=pe(e,f);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(m.length>0?" { "+C.call(m,", ")+" }":"")}if(zt(e)){var S=ee?k.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ke.call(e);return typeof e=="object"&&!ee?ne(S):S}if(En(e)){for(var w="<"+vt.call(String(e.nodeName)),g=e.attributes||[],I=0;I<g.length;I++)w+=" "+g[I].name+"="+Gt(sn(g[I].value),"double",o);return w+=">",e.childNodes&&e.childNodes.length&&(w+="..."),w+="</"+vt.call(String(e.nodeName))+">",w}if(We(e)){if(e.length===0)return"[]";var B=pe(e,f);return s&&!Fn(B)?"["+Ge(B,s)+"]":"[ "+C.call(B,", ")+" ]"}if(yn(e)){var d=pe(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Wt.call(e,"cause")?"{ ["+String(e)+"] "+C.call(gt.call("[cause]: "+f(e.cause),d),", ")+" }":d.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+C.call(d,", ")+" }"}if(typeof e=="object"&&c){if(wt&&typeof e[wt]=="function"&&De)return De(e,{depth:u-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Sn(e)){var v=[];return pt&&pt.call(e,function(M,V){v.push(f(V,e,!0)+" => "+f(M,e))}),Pt("Map",Pe.call(e),v,s)}if(Pn(e)){var h=[];return yt&&yt.call(e,function(M){h.push(f(M,e))}),Pt("Set",Ae.call(e),h,s)}if(wn(e))return Ie("WeakMap");if(An(e))return Ie("WeakSet");if(On(e))return Ie("WeakRef");if(vn(e))return ne(f(Number(e)));if(mn(e))return ne(f(Ue.call(e)));if(gn(e))return ne(nn.call(e));if(dn(e))return ne(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===ve)return"{ [object globalThis] }";if(!pn(e)&&!Ot(e)){var O=pe(e,f),P=ht?ht(e)===Object.prototype:e instanceof Object||e.constructor===Object,x=e instanceof Object?"":"null prototype",R=!P&&$&&Object(e)===e&&$ in e?je.call(D(e),8,-1):x?"Object":"",_=P||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",T=_+(R||x?"["+C.call(gt.call([],R||[],x||[]),": ")+"] ":"");return O.length===0?T+"{}":s?T+"{"+Ge(O,s)+"}":T+"{ "+C.call(O,", ")+" }"}return String(e)};function Gt(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function sn(t){return k.call(String(t),/"/g,"&quot;")}function We(t){return D(t)==="[object Array]"&&(!$||!(typeof t=="object"&&$ in t))}function pn(t){return D(t)==="[object Date]"&&(!$||!(typeof t=="object"&&$ in t))}function Ot(t){return D(t)==="[object RegExp]"&&(!$||!(typeof t=="object"&&$ in t))}function yn(t){return D(t)==="[object Error]"&&(!$||!(typeof t=="object"&&$ in t))}function dn(t){return D(t)==="[object String]"&&(!$||!(typeof t=="object"&&$ in t))}function vn(t){return D(t)==="[object Number]"&&(!$||!(typeof t=="object"&&$ in t))}function gn(t){return D(t)==="[object Boolean]"&&(!$||!(typeof t=="object"&&$ in t))}function zt(t){if(ee)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!ke)return!1;try{return ke.call(t),!0}catch{}return!1}function mn(t){if(!t||typeof t!="object"||!Ue)return!1;try{return Ue.call(t),!0}catch{}return!1}var hn=Object.prototype.hasOwnProperty||function(t){return t in this};function U(t,e){return hn.call(t,e)}function D(t){return on.call(t)}function bn(t){if(t.name)return t.name;var e=ln.call(an.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ht(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Sn(t){if(!Pe||!t||typeof t!="object")return!1;try{Pe.call(t);try{Ae.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function wn(t){if(!le||!t||typeof t!="object")return!1;try{le.call(t,le);try{fe.call(t,fe)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function On(t){if(!dt||!t||typeof t!="object")return!1;try{return dt.call(t),!0}catch{}return!1}function Pn(t){if(!Ae||!t||typeof t!="object")return!1;try{Ae.call(t);try{Pe.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function An(t){if(!fe||!t||typeof t!="object")return!1;try{fe.call(t,fe);try{le.call(t,le)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function En(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function qt(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return qt(je.call(t,0,e.maxStringLength),e)+n}var a=k.call(k.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,xn);return Gt(a,"single",e)}function xn(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+fn.call(e.toString(16))}function ne(t){return"Object("+t+")"}function Ie(t){return t+" { ? }"}function Pt(t,e,r,n){var a=n?Ge(r,n):C.call(r,", ");return t+" ("+e+") {"+a+"}"}function Fn(t){for(var e=0;e<t.length;e++)if(Ht(t[e],`
`)>=0)return!1;return!0}function $n(t,e){var r;if(t.indent==="	")r="	";else if(typeof t.indent=="number"&&t.indent>0)r=C.call(Array(t.indent+1)," ");else return null;return{base:r,prev:C.call(Array(e+1),r)}}function Ge(t,e){if(t.length===0)return"";var r=`
`+e.prev+e.base;return r+C.call(t,","+r)+`
`+e.prev}function pe(t,e){var r=We(t),n=[];if(r){n.length=t.length;for(var a=0;a<t.length;a++)n[a]=U(t,a)?e(t[a],t):""}var o=typeof Te=="function"?Te(t):[],c;if(ee){c={};for(var i=0;i<o.length;i++)c["$"+o[i]]=o[i]}for(var p in t)U(t,p)&&(r&&String(Number(p))===p&&p<t.length||ee&&c["$"+p]instanceof Symbol||(Dt.call(/[^\w$]/,p)?n.push(e(p,t)+": "+e(t[p],t)):n.push(p+": "+e(t[p],t))));if(typeof Te=="function")for(var l=0;l<o.length;l++)Wt.call(t,o[l])&&n.push("["+e(o[l])+"]: "+e(t[o[l]],t));return n}var Xe=q,re=jr,Tn=cn,In=Xe("%TypeError%"),ye=Xe("%WeakMap%",!0),de=Xe("%Map%",!0),Bn=re("WeakMap.prototype.get",!0),Rn=re("WeakMap.prototype.set",!0),_n=re("WeakMap.prototype.has",!0),Nn=re("Map.prototype.get",!0),Cn=re("Map.prototype.set",!0),Mn=re("Map.prototype.has",!0),Ke=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},Ln=function(t,e){var r=Ke(t,e);return r&&r.value},Un=function(t,e,r){var n=Ke(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},kn=function(t,e){return!!Ke(t,e)},Dn=function(){var e,r,n,a={assert:function(o){if(!a.has(o))throw new In("Side channel does not contain "+Tn(o))},get:function(o){if(ye&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Bn(e,o)}else if(de){if(r)return Nn(r,o)}else if(n)return Ln(n,o)},has:function(o){if(ye&&o&&(typeof o=="object"||typeof o=="function")){if(e)return _n(e,o)}else if(de){if(r)return Mn(r,o)}else if(n)return kn(n,o);return!1},set:function(o,c){ye&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new ye),Rn(e,o,c)):de?(r||(r=new de),Cn(r,o,c)):(n||(n={key:{},next:null}),Un(n,o,c))}};return a},Wn=String.prototype.replace,Gn=/%20/g,Be={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ze={default:Be.RFC3986,formatters:{RFC1738:function(t){return Wn.call(t,Gn,"+")},RFC3986:function(t){return String(t)}},RFC1738:Be.RFC1738,RFC3986:Be.RFC3986},zn=Ze,Re=Object.prototype.hasOwnProperty,G=Array.isArray,N=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Hn=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(G(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);r.obj[r.prop]=a}}},Vt=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},qn=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(G(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Re.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var a=e;return G(e)&&!G(r)&&(a=Vt(e,n)),G(e)&&G(r)?(r.forEach(function(o,c){if(Re.call(e,c)){var i=e[c];i&&typeof i=="object"&&o&&typeof o=="object"?e[c]=t(i,o,n):e.push(o)}else e[c]=o}),e):Object.keys(r).reduce(function(o,c){var i=r[c];return Re.call(o,c)?o[c]=t(o[c],i,n):o[c]=i,o},a)},Vn=function(e,r){return Object.keys(r).reduce(function(n,a){return n[a]=r[a],n},e)},Qn=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Yn=function(e,r,n,a,o){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var i="",p=0;p<c.length;++p){var l=c.charCodeAt(p);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===zn.RFC1738&&(l===40||l===41)){i+=c.charAt(p);continue}if(l<128){i=i+N[l];continue}if(l<2048){i=i+(N[192|l>>6]+N[128|l&63]);continue}if(l<55296||l>=57344){i=i+(N[224|l>>12]+N[128|l>>6&63]+N[128|l&63]);continue}p+=1,l=65536+((l&1023)<<10|c.charCodeAt(p)&1023),i+=N[240|l>>18]+N[128|l>>12&63]+N[128|l>>6&63]+N[128|l&63]}return i},Jn=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],a=0;a<r.length;++a)for(var o=r[a],c=o.obj[o.prop],i=Object.keys(c),p=0;p<i.length;++p){var l=i[p],u=c[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:c,prop:l}),n.push(u))}return Hn(r),e},jn=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Xn=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Kn=function(e,r){return[].concat(e,r)},Zn=function(e,r){if(G(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(r(e[a]));return n}return r(e)},Qt={arrayToObject:Vt,assign:Vn,combine:Kn,compact:Jn,decode:Qn,encode:Yn,isBuffer:Xn,isRegExp:jn,maybeMap:Zn,merge:qn},Yt=Dn,me=Qt,ue=Ze,eo=Object.prototype.hasOwnProperty,At={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},L=Array.isArray,to=Array.prototype.push,Jt=function(t,e){to.apply(t,L(e)?e:[e])},ro=Date.prototype.toISOString,Et=ue.default,F={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:me.encode,encodeValuesOnly:!1,format:Et,formatter:ue.formatters[Et],indices:!1,serializeDate:function(e){return ro.call(e)},skipNulls:!1,strictNullHandling:!1},no=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},_e={},oo=function t(e,r,n,a,o,c,i,p,l,u,s,f,y,m,S,w){for(var g=e,I=w,B=0,d=!1;(I=I.get(_e))!==void 0&&!d;){var v=I.get(e);if(B+=1,typeof v<"u"){if(v===B)throw new RangeError("Cyclic object value");d=!0}typeof I.get(_e)>"u"&&(B=0)}if(typeof p=="function"?g=p(r,g):g instanceof Date?g=s(g):n==="comma"&&L(g)&&(g=me.maybeMap(g,function(Q){return Q instanceof Date?s(Q):Q})),g===null){if(o)return i&&!m?i(r,F.encoder,S,"key",f):r;g=""}if(no(g)||me.isBuffer(g)){if(i){var h=m?r:i(r,F.encoder,S,"key",f);return[y(h)+"="+y(i(g,F.encoder,S,"value",f))]}return[y(r)+"="+y(String(g))]}var O=[];if(typeof g>"u")return O;var P;if(n==="comma"&&L(g))m&&i&&(g=me.maybeMap(g,i)),P=[{value:g.length>0?g.join(",")||null:void 0}];else if(L(p))P=p;else{var x=Object.keys(g);P=l?x.sort(l):x}for(var R=a&&L(g)&&g.length===1?r+"[]":r,_=0;_<P.length;++_){var T=P[_],M=typeof T=="object"&&typeof T.value<"u"?T.value:g[T];if(!(c&&M===null)){var V=L(g)?typeof n=="function"?n(R,T):R:R+(u?"."+T:"["+T+"]");w.set(e,B);var se=Yt();se.set(_e,w),Jt(O,t(M,V,n,a,o,c,n==="comma"&&m&&L(g)?null:i,p,l,u,s,f,y,m,S,se))}}return O},ao=function(e){if(!e)return F;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||F.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ue.default;if(typeof e.format<"u"){if(!eo.call(ue.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=ue.formatters[n],o=F.filter;return(typeof e.filter=="function"||L(e.filter))&&(o=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:F.addQueryPrefix,allowDots:typeof e.allowDots>"u"?F.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:F.charsetSentinel,delimiter:typeof e.delimiter>"u"?F.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:F.encode,encoder:typeof e.encoder=="function"?e.encoder:F.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:F.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:F.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:F.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:F.strictNullHandling}},io=function(t,e){var r=t,n=ao(e),a,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):L(n.filter)&&(o=n.filter,a=o);var c=[];if(typeof r!="object"||r===null)return"";var i;e&&e.arrayFormat in At?i=e.arrayFormat:e&&"indices"in e?i=e.indices?"indices":"repeat":i="indices";var p=At[i];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=p==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);for(var u=Yt(),s=0;s<a.length;++s){var f=a[s];n.skipNulls&&r[f]===null||Jt(c,oo(r[f],f,p,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var y=c.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),y.length>0?m+y:""},te=Qt,ze=Object.prototype.hasOwnProperty,lo=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:te.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},fo=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},jt=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},uo="utf8=%26%2310003%3B",co="utf8=%E2%9C%93",so=function(e,r){var n={__proto__:null},a=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=r.parameterLimit===1/0?void 0:r.parameterLimit,c=a.split(r.delimiter,o),i=-1,p,l=r.charset;if(r.charsetSentinel)for(p=0;p<c.length;++p)c[p].indexOf("utf8=")===0&&(c[p]===co?l="utf-8":c[p]===uo&&(l="iso-8859-1"),i=p,p=c.length);for(p=0;p<c.length;++p)if(p!==i){var u=c[p],s=u.indexOf("]="),f=s===-1?u.indexOf("="):s+1,y,m;f===-1?(y=r.decoder(u,A.decoder,l,"key"),m=r.strictNullHandling?null:""):(y=r.decoder(u.slice(0,f),A.decoder,l,"key"),m=te.maybeMap(jt(u.slice(f+1),r),function(S){return r.decoder(S,A.decoder,l,"value")})),m&&r.interpretNumericEntities&&l==="iso-8859-1"&&(m=fo(m)),u.indexOf("[]=")>-1&&(m=lo(m)?[m]:m),ze.call(n,y)?n[y]=te.combine(n[y],m):n[y]=m}return n},po=function(t,e,r,n){for(var a=n?e:jt(e,r),o=t.length-1;o>=0;--o){var c,i=t[o];if(i==="[]"&&r.parseArrays)c=[].concat(a);else{c=r.plainObjects?Object.create(null):{};var p=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,l=parseInt(p,10);!r.parseArrays&&p===""?c={0:a}:!isNaN(l)&&i!==p&&String(l)===p&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(c=[],c[l]=a):p!=="__proto__"&&(c[p]=a)}a=c}return a},yo=function(e,r,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,p=n.depth>0&&c.exec(o),l=p?o.slice(0,p.index):o,u=[];if(l){if(!n.plainObjects&&ze.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var s=0;n.depth>0&&(p=i.exec(o))!==null&&s<n.depth;){if(s+=1,!n.plainObjects&&ze.call(Object.prototype,p[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(p[1])}return p&&u.push("["+o.slice(p.index)+"]"),po(u,r,n,a)}},vo=function(e){if(!e)return A;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?A.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?A.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:A.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:A.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:A.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:A.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:A.comma,decoder:typeof e.decoder=="function"?e.decoder:A.decoder,delimiter:typeof e.delimiter=="string"||te.isRegExp(e.delimiter)?e.delimiter:A.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:A.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:A.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:A.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:A.strictNullHandling}},go=function(t,e){var r=vo(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?so(t,r):t,a=r.plainObjects?Object.create(null):{},o=Object.keys(n),c=0;c<o.length;++c){var i=o[c],p=yo(i,n[i],r,typeof t=="string");a=te.merge(a,p,r)}return r.allowSparse===!0?a:te.compact(a)},mo=io,ho=go,bo=Ze,So={formats:bo,parse:ho,stringify:mo};const wo=Tt(So),Oo="https://embed.selly.io";function xt(){const t=document.querySelectorAll("[data-selly-product]"),e=".selly-close{z-index:9999999999;height:40px;position:fixed;right:30px;top:15px;width:40px;margin:0;border-radius:50%;cursor:pointer}.selly-close:hover{background:rgba(0,0,0,.4)}.selly-close:after,.selly-close:before{background:#fff;content:'';display:block;left:50%;position:absolute;top:50%;height:70%;width:2px}.selly-close:before{-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;-ms-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-ms-transform-origin:center center;transform-origin:center center}.selly-close:after{-webkit-transform-origin:center center;-webkit-transform:translateX(-50%) translateY(-50%) rotate(-45deg);-ms-transform:translateX(-50%) translateY(-50%) rotate(-45deg);transform:translateX(-50%) translateY(-50%) rotate(-45deg);-ms-transform-origin:center center;transform-origin:center center}.selly-frame{border:none;height:100%;width:100%;}.selly-container{-webkit-overflow-scrolling: touch;position:relative;width:100%;height:0;padding-bottom:56.25%}.selly-wrapper{overflow-x:hidden;position:fixed;z-index:999999;background:rgba(0,0,0,.3);right:0;bottom:0;left:0;top:0;-webkit-overflow-scrolling:touch;overflow-y:scroll}.selly-loading:after,.selly-loading:before{position:absolute;content:'';width:1.28571em;height:1.28571em;margin:auto;top:0;left:0;right:0;bottom:0}.selly-loading{padding:0 21px}.selly-loading:before{border-radius:500rem;border:.2em solid rgba(0,0,0,.15)}.selly-loading:after{-webkit-animation:selly-spin .6s linear;animation:selly-spin .6s linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;border-radius:500rem;border-color:#FFF transparent transparent;border-style:solid;border-width:.2em;-webkit-box-shadow:0 0 0 1px transparent;box-shadow:0 0 0 1px transparent}.selly-loading__large:after,.selly-loading__large:before{width:2.5em;height:2.5em;border-width:.3em}.selly-loading--fixed{position:fixed;top:0;left:0;right:0;bottom:0}@-webkit-keyframes selly-spin{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes selly-spin{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.loading-text-container{margin-top:80px;max-width:300px;width:100%;text-align:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,segoe ui,Roboto,Oxygen-Sans,Ubuntu,Cantarell,helvetica neue,sans-serif;color:#fff}.loading-link{font-weight:700;text-decoration:underline;padding-top:10px;color:#fff}.selly-error{margin-top:0px;}.selly-error-icon{height:80px;margin-bottom:20px;}",r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),r.appendChild(n);for(let a=0;a<t.length;a++){const o=t[a].getAttribute("data-selly-product");t[a].removeEventListener("click",Ft.bind(null,o)),t[a].addEventListener("click",Ft.bind(null,o))}}function Ft(t){if(t.toString().length<2)return;if(Ne.includes(t)){const i=document.getElementById(`selly-${t}`);i.style.display="block";const p=document.getElementById(`selly-error-${t}`);return p&&(p.style.display="block",p.childNodes.item(0).style.display="block"),tt(i)}const e={},r=document.querySelectorAll(`[data-selly-product='${t}']`)[0];for(let i=0;i<10;i++)if(r){const p=r.getAttribute(`data-selly-custom-${i}`);p&&(e[`custom[${i}]`]=p)}if(r){const i=r.getAttribute("data-selly-coupon");i&&(e.coupon=i);const p=r.getAttribute("data-selly-metadata");if(p){e.metadata={};const l=JSON.parse(p);Object.keys(l).map(u=>{e.metadata[u]=l[u]})}}e.h=cr(window.location.hostname);const n=document.createElement("div");n.id=`selly-${t}`,n.className="selly-wrapper";const a=document.createElement("span");a.className="selly-close",a.addEventListener("click",()=>{Po()});const o=document.createElement("div");o.className="selly-loading selly-loading__large selly-loading--fixed",o.id=`selly-loading-${t}`;const c=document.createElement("iframe");c.className="selly-frame",c.src=`${Oo}/products/${t}?${wo.stringify(e)}`,c.style.display="none",c.onload=()=>{const i=document.getElementById(`selly-loading-${t}`);i.parentNode.removeChild(i),c.style.display="block"},setTimeout(function(){if(document.getElementById("selly-loading-"+t)){const i=Ao(t);document.getElementById("selly-loading-"+t).appendChild(i)}},3500),n.appendChild(c),n.appendChild(o),n.appendChild(a),Ne.includes(t)?document.getElementById(`selly-${t}`).style.display="block":(Ne.push(t),document.body.appendChild(n)),tt(n)}function Po(){const t=document.querySelectorAll("[id*='selly-']");for(let e=0;e<t.length;e++){const r=t[e];r!==void 0&&(r.style.display="none")}document.body.style.overflowY=null,document.documentElement.style.overflowY=null,or()}function Ao(t,e="If the product isn't showing, there may be an issue loading it"){const r=document.createElement("div");r.className="loading-text-container",r.id=`selly-loading-text-${t}`;const n=document.createElement("div");return n.innerText=e,r}const Ne=[];document.readyState!=="loading"?xt():document.addEventListener("DOMContentLoaded",xt);
