@letscooee/web-sdk 9.3.35 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,44 @@
1
+ var __=Object.create;var dc=Object.defineProperty,D_=Object.defineProperties,w_=Object.getOwnPropertyDescriptor,I_=Object.getOwnPropertyDescriptors,S_=Object.getOwnPropertyNames,Nd=Object.getOwnPropertySymbols,b_=Object.getPrototypeOf,xd=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable;var Md=(e,t,n)=>t in e?dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||={})xd.call(t,n)&&Md(e,n,t[n]);if(Nd)for(var n of Nd(t))T_.call(t,n)&&Md(e,n,t[n]);return e},ie=(e,t)=>D_(e,I_(t));var Do=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var wo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var C_=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of S_(t))!xd.call(e,o)&&o!==n&&dc(e,o,{get:()=>t[o],enumerable:!(r=w_(t,o))||r.enumerable});return e};var Io=(e,t,n)=>(n=e!=null?__(b_(e)):{},C_(t||!e||!e.__esModule?dc(n,"default",{value:e,enumerable:!0}):n,e));var Qm=wo((Jm,Ks)=>{"use strict";(function(e){"use strict";var t={};t.VERSION="1.6.1";var n,r={},o=function(l,d){return function(){return d.apply(l,arguments)}},i=function(){var l=arguments,d=l[0],h,y;for(y=1;y<l.length;y++)for(h in l[y])!(h in d)&&l[y].hasOwnProperty(h)&&(d[h]=l[y][h]);return d},s=function(l,d){return{value:l,name:d}};t.TRACE=s(1,"TRACE"),t.DEBUG=s(2,"DEBUG"),t.INFO=s(3,"INFO"),t.TIME=s(4,"TIME"),t.WARN=s(5,"WARN"),t.ERROR=s(8,"ERROR"),t.OFF=s(99,"OFF");var a=function(l){this.context=l,this.setLevel(l.filterLevel),this.log=this.info};a.prototype={setLevel:function(l){l&&"value"in l&&(this.context.filterLevel=l)},getLevel:function(){return this.context.filterLevel},enabledFor:function(l){var d=this.context.filterLevel;return l.value>=d.value},trace:function(){this.invoke(t.TRACE,arguments)},debug:function(){this.invoke(t.DEBUG,arguments)},info:function(){this.invoke(t.INFO,arguments)},warn:function(){this.invoke(t.WARN,arguments)},error:function(){this.invoke(t.ERROR,arguments)},time:function(l){typeof l=="string"&&l.length>0&&this.invoke(t.TIME,[l,"start"])},timeEnd:function(l){typeof l=="string"&&l.length>0&&this.invoke(t.TIME,[l,"end"])},invoke:function(l,d){n&&this.enabledFor(l)&&n(d,i({level:l},this.context))}};var c=new a({filterLevel:t.OFF});(function(){var l=t;l.enabledFor=o(c,c.enabledFor),l.trace=o(c,c.trace),l.debug=o(c,c.debug),l.time=o(c,c.time),l.timeEnd=o(c,c.timeEnd),l.info=o(c,c.info),l.warn=o(c,c.warn),l.error=o(c,c.error),l.log=l.info})(),t.setHandler=function(l){n=l},t.setLevel=function(l){c.setLevel(l);for(var d in r)r.hasOwnProperty(d)&&r[d].setLevel(l)},t.getLevel=function(){return c.getLevel()},t.get=function(l){return r[l]||(r[l]=new a(i({name:l},c.context)))},t.createDefaultHandler=function(l){l=l||{},l.formatter=l.formatter||function(v,b){b.name&&v.unshift("["+b.name+"]")};var d={},h=function(y,v){Function.prototype.apply.call(y,console,v)};return typeof console>"u"?function(){}:function(y,v){y=Array.prototype.slice.call(y);var b=console.log,M;v.level===t.TIME?(M=(v.name?"["+v.name+"] ":"")+y[0],y[1]==="start"?console.time?console.time(M):d[M]=new Date().getTime():console.timeEnd?console.timeEnd(M):h(b,[M+": "+(new Date().getTime()-d[M])+"ms"])):(v.level===t.WARN&&console.warn?b=console.warn:v.level===t.ERROR&&console.error?b=console.error:v.level===t.INFO&&console.info?b=console.info:v.level===t.DEBUG&&console.debug?b=console.debug:v.level===t.TRACE&&console.trace&&(b=console.trace),l.formatter(y,v),h(b,y))}},t.useDefaults=function(l){t.setLevel(l&&l.defaultLevel||t.DEBUG),t.setHandler(t.createDefaultHandler(l))},t.setDefaults=t.useDefaults,typeof define=="function"&&define.amd?define(t):typeof Ks<"u"&&Ks.exports?Ks.exports=t:(t._prevLogger=e.Logger,t.noConflict=function(){return e.Logger=t._prevLogger,t},e.Logger=t)})(Jm)});var Ay=wo(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.MilestoneRewardType=H.ProgressBarLayout=H.EngagementContentSource=H.EngagementObjective=H.OnsiteDeliveryType=H.ClickActionType=H.FrequencyGapUnit=H.FrequencyType=H.RedirectBehaviour=H.EngagementPlacementPosition=H.EngagementCollectionSource=H.PromotionType=H.CartFilterEnum=H.CartCurrencyOperator=H.CartCriteria=H.URLCriteria=H.UTMCriteria=H.CartItemSource=H.EngagementItemSource=H.PurchasedVisitor=H.LoggedInVisitor=H.VisitorType=H.SessionType=H.EngagementContentType=H.TriggerType=H.EngagementType=H.EngagementStatus=H.TimePreference=H.ScheduleFrequency=H.CriteriaFrequency=void 0;var ty=function(e){return e[e.ONCE_PER_USER=1]="ONCE_PER_USER",e[e.ONCE_PER_SESSION=2]="ONCE_PER_SESSION",e[e.EVERY_TIME=3]="EVERY_TIME",e}(ty||(H.CriteriaFrequency=ty={})),ny=function(e){return e[e.ONE_TIME=1]="ONE_TIME",e[e.MULTIPLE=2]="MULTIPLE",e[e.RECURRING=3]="RECURRING",e}(ny||(H.ScheduleFrequency=ny={})),ry=function(e){return e[e.NOW=1]="NOW",e[e.LATER=2]="LATER",e[e.NEVER=3]="NEVER",e}(ry||(H.TimePreference=ry={})),oy=function(e){return e[e.PUBLISHED=1]="PUBLISHED",e[e.DRAFT=2]="DRAFT",e[e.PAUSED=3]="PAUSED",e[e.FAILED=4]="FAILED",e[e.STOPPED=5]="STOPPED",e[e.COMPLETED=6]="COMPLETED",e[e.ARCHIVED=7]="ARCHIVED",e[e.UNINSTALLED=8]="UNINSTALLED",e}(oy||(H.EngagementStatus=oy={})),iy=function(e){return e[e.POPUP=1]="POPUP",e[e.LEAD_GENERATION=2]="LEAD_GENERATION",e[e.PRODUCT_WIDGET=3]="PRODUCT_WIDGET",e[e.PRODUCT_BUNDLE=4]="PRODUCT_BUNDLE",e[e.ANNOUNCEMENT_BAR=5]="ANNOUNCEMENT_BAR",e[e.CART_REMINDER=6]="CART_REMINDER",e[e.CRO_COPILOT=10]="CRO_COPILOT",e[e.OTHER=11]="OTHER",e}(iy||(H.EngagementType=iy={})),sy=function(e){return e[e.NONE=0]="NONE",e[e.RULE_BASED=1]="RULE_BASED",e[e.INTENT_BASED=2]="INTENT_BASED",e}(sy||(H.TriggerType=sy={})),ay=function(e){return e[e.SINGLE=1]="SINGLE",e[e.EXCLUSION=2]="EXCLUSION",e[e.ABTESTING=3]="ABTESTING",e}(ay||(H.EngagementContentType=ay={})),cy=function(e){return e[e.ALL=0]="ALL",e[e.NEW_ONLY=1]="NEW_ONLY",e[e.RETURNING_ONLY=2]="RETURNING_ONLY",e}(cy||(H.SessionType=cy={})),uy=function(e){return e[e.ALL=0]="ALL",e[e.LOGGED_IN_ONLY=3]="LOGGED_IN_ONLY",e[e.NON_LOGGED_IN_ONLY=4]="NON_LOGGED_IN_ONLY",e[e.PURCHASED=5]="PURCHASED",e[e.NON_PURCHASED=6]="NON_PURCHASED",e[e.ABANDON_CART=7]="ABANDON_CART",e[e.RETURNING_AND_NON_PURCHASED=8]="RETURNING_AND_NON_PURCHASED",e}(uy||(H.VisitorType=uy={})),ly=function(e){return e.ALL="ALL",e.LOGGED_IN="LOGGED_IN",e.NON_LOGGED_IN="NON_LOGGED_IN",e}(ly||(H.LoggedInVisitor=ly={})),fy=function(e){return e.ALL="ALL",e.PURCHASED="PURCHASED",e.NON_PURCHASED="NON_PURCHASED",e}(fy||(H.PurchasedVisitor=fy={})),dy=function(e){return e[e.NONE=0]="NONE",e[e.ITEM_RECOMMENDATION=1]="ITEM_RECOMMENDATION",e[e.MULTIPLE_ITEMS=2]="MULTIPLE_ITEMS",e[e.SINGLE_ITEM=3]="SINGLE_ITEM",e[e.TOP_SELLING=4]="TOP_SELLING",e[e.STOCK_CLEARANCE=5]="STOCK_CLEARANCE",e[e.NEW_ARRIVALS=6]="NEW_ARRIVALS",e[e.RECENTLY_VIEWED=7]="RECENTLY_VIEWED",e[e.EVENT_ITEM=8]="EVENT_ITEM",e[e.CART_ITEM=9]="CART_ITEM",e[e.BUNDLE=10]="BUNDLE",e[e.CURRENT_ITEM=11]="CURRENT_ITEM",e[e.PURCHASED_PREVIOUSLY=12]="PURCHASED_PREVIOUSLY",e[e.COLLECTION_ITEMS=13]="COLLECTION_ITEMS",e[e.TRENDING_ITEMS=14]="TRENDING_ITEMS",e}(dy||(H.EngagementItemSource=dy={})),py=function(e){return e[e.LAST_ADDED=1]="LAST_ADDED",e[e.FIRST_ADDED=2]="FIRST_ADDED",e[e.HIGHEST_PRICE=3]="HIGHEST_PRICE",e[e.LOWEST_PRICE=4]="LOWEST_PRICE",e[e.FIRST_MATCHING_TAG=5]="FIRST_MATCHING_TAG",e[e.ALL=6]="ALL",e}(py||(H.CartItemSource=py={})),hy=function(e){return e[e.ALL=0]="ALL",e[e.ONLY_ORGANIC=1]="ONLY_ORGANIC",e[e.ONLY_NON_ORGANIC=2]="ONLY_NON_ORGANIC",e[e.INCLUDES=3]="INCLUDES",e[e.EXCLUDES=4]="EXCLUDES",e}(hy||(H.UTMCriteria=hy={})),gy=function(e){return e[e.NONE=0]="NONE",e[e.LIKE=1]="LIKE",e[e.NOT_LIKE=2]="NOT_LIKE",e[e.EQUALS=3]="EQUALS",e[e.NOT_EQUALS=4]="NOT_EQUALS",e}(gy||(H.URLCriteria=gy={})),my=function(e){return e[e.NONE=0]="NONE",e[e.LESS_THAN=1]="LESS_THAN",e[e.GREATER_THAN=2]="GREATER_THAN",e[e.BETWEEN=3]="BETWEEN",e[e.EQUALS=4]="EQUALS",e}(my||(H.CartCriteria=my={})),yy=function(e){return e[e.ALL=0]="ALL",e[e.INCLUDES=1]="INCLUDES",e[e.EXCLUDES=2]="EXCLUDES",e}(yy||(H.CartCurrencyOperator=yy={})),vy=function(e){return e[e.NONE=0]="NONE",e[e.AMOUNT=1]="AMOUNT",e[e.TOTAL_PRODUCT=2]="TOTAL_PRODUCT",e[e.UNIQUE_PRODUCT=3]="UNIQUE_PRODUCT",e}(vy||(H.CartFilterEnum=vy={})),Ey=function(e){return e[e.NONE=0]="NONE",e[e.ITEM=1]="ITEM",e[e.COLLECTION=2]="COLLECTION",e}(Ey||(H.PromotionType=Ey={})),_y=function(e){return e[e.NONE=0]="NONE",e[e.SINGLE=1]="SINGLE",e[e.MULTIPLE=2]="MULTIPLE",e}(_y||(H.EngagementCollectionSource=_y={})),Dy=function(e){return e.BEFORE="before",e.AFTER="after",e.INSIDE_FIRST="insideFirst",e.INSIDE_LAST="insideLast",e}(Dy||(H.EngagementPlacementPosition=Dy={})),wy=function(e){return e.SHOPIFY_CHECKOUT="shopify_checkout",e.THIRD_PARTY_CHECKOUT="third_party_checkout",e.CART_PAGE="cart_page",e.CART_DRAWER="cart_drawer",e}(wy||(H.RedirectBehaviour=wy={})),Iy=function(e){return e.ONCE_IN_SESSION="ONCE_IN_SESSION",e.ACROSS_SESSIONS="ACROSS_SESSIONS",e}(Iy||(H.FrequencyType=Iy={})),Sy=function(e){return e.DAYS="DAYS",e.HOURS="HOURS",e.MINUTES="MINUTES",e.SECONDS="SECONDS",e}(Sy||(H.FrequencyGapUnit=Sy={})),by=function(e){return e[e.NONE=0]="NONE",e[e.REJECT_POPUP=1]="REJECT_POPUP",e[e.ACCEPT_POPUP=2]="ACCEPT_POPUP",e[e.GO_TO_URL=4]="GO_TO_URL",e[e.SHARE=5]="SHARE",e[e.KEY_VALUE=100]="KEY_VALUE",e[e.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",e[e.ADD_TO_CART=102]="ADD_TO_CART",e[e.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",e[e.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",e[e.OPEN_CART=105]="OPEN_CART",e[e.SUBMIT_FORM=106]="SUBMIT_FORM",e[e.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",e[e.ADD_BUNDLE=108]="ADD_BUNDLE",e[e.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",e}(by||(H.ClickActionType=by={})),Ty=function(e){return e.POPUP="POPUP",e.PAGE_EMBED="PAGE_EMBED",e.CART_EMBED="CART_EMBED",e.ANNOUNCEMENT_BAR="ANNOUNCEMENT_BAR",e}(Ty||(H.OnsiteDeliveryType=Ty={})),Cy=function(e){return e.PRODUCT_PROMOTION="PRODUCT_PROMOTION",e.BUNDLE_AND_UPSELL="BUNDLE_AND_UPSELL",e.CART_RECOVERY="CART_RECOVERY",e.ANNOUNCEMENT="ANNOUNCEMENT",e.LEAD_GENERATION="LEAD_GENERATION",e.DATA_COLLECTION="DATA_COLLECTION",e.SALE_PROMOTION="SALE_PROMOTION",e.SUBSCRIPTION_UPSELL="SUBSCRIPTION_UPSELL",e.SHOPPABLE_VIDEO="SHOPPABLE_VIDEO",e.BYOB="BYOB",e.PROGRESS_BAR="PROGRESS_BAR",e.BUY_NOW="BUY_NOW",e}(Cy||(H.EngagementObjective=Cy={})),Ny=function(e){return e.COOEE="COOEE",e.KLAVIYO="KLAVIYO",e}(Ny||(H.EngagementContentSource=Ny={})),My=function(e){return e.ICONS="ICONS",e.TILES="TILES",e}(My||(H.ProgressBarLayout=My={})),xy=function(e){return e.FREE_SHIPPING="FREE_SHIPPING",e.DISCOUNT="DISCOUNT",e.FREE_AUTO_GIFT="FREE_AUTO_GIFT",e.FREE_GIFT_SELECT="FREE_GIFT_SELECT",e}(xy||(H.MilestoneRewardType=xy={}))});var Oy=wo(to=>{"use strict";var Rb=to&&to.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(d){try{l(r.next(d))}catch(h){s(h)}}function c(d){try{l(r.throw(d))}catch(h){s(h)}}function l(d){d.done?i(d.value):o(d.value).then(a,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(to,"__esModule",{value:!0});to.JSUtils=void 0;var ta=class{static isObject(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}static parseToAny(t){try{return JSON.parse(t.toString())}catch{}return t.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(t.toString()):t}static sleep(t){return Rb(this,void 0,void 0,function*(){return new Promise(n=>setTimeout(n,t))})}static hasKeys(t){return t?Object.keys(t).length>=1:!1}static convertObjectToArray(t,n){return n.reduce((r,o)=>(t.hasOwnProperty(o)&&t[o]!=null&&r.push({[o]:t[o]}),r),[])}static removeNullUndefinedKeys(t){return Object.keys(t).reduce((n,r)=>(t[r]!==null&&t[r]!==void 0&&(n[r]=t[r]),n),{})}static stringify(t){return JSON.stringify(t,function(n,r){return r===void 0?null:r})}};to.JSUtils=ta;ta.ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/)});var Ly=wo((Ry,$l)=>{"use strict";(function(e){if(typeof Ry=="object"&&typeof $l<"u")$l.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t=this,t.localforage=e()}})(function(){var e,t,n;return function r(o,i,s){function a(d,h){if(!i[d]){if(!o[d]){var y=typeof Do=="function"&&Do;if(!h&&y)return y(d,!0);if(c)return c(d,!0);var v=new Error("Cannot find module '"+d+"'");throw v.code="MODULE_NOT_FOUND",v}var b=i[d]={exports:{}};o[d][0].call(b.exports,function(M){var R=o[d][1][M];return a(R||M)},b,b.exports,r,o,i,s)}return i[d].exports}for(var c=typeof Do=="function"&&Do,l=0;l<s.length;l++)a(s[l]);return a}({1:[function(r,o,i){(function(s){"use strict";var a=s.MutationObserver||s.WebKitMutationObserver,c;if(a){var l=0,d=new a(M),h=s.document.createTextNode("");d.observe(h,{characterData:!0}),c=function(){h.data=l=++l%2}}else if(!s.setImmediate&&typeof s.MessageChannel<"u"){var y=new s.MessageChannel;y.port1.onmessage=M,c=function(){y.port2.postMessage(0)}}else"document"in s&&"onreadystatechange"in s.document.createElement("script")?c=function(){var k=s.document.createElement("script");k.onreadystatechange=function(){M(),k.onreadystatechange=null,k.parentNode.removeChild(k),k=null},s.document.documentElement.appendChild(k)}:c=function(){setTimeout(M,0)};var v,b=[];function M(){v=!0;for(var k,$,Q=b.length;Q;){for($=b,b=[],k=-1;++k<Q;)$[k]();Q=b.length}v=!1}o.exports=R;function R(k){b.push(k)===1&&!v&&c()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(r,o,i){"use strict";var s=r(1);function a(){}var c={},l=["REJECTED"],d=["FULFILLED"],h=["PENDING"];o.exports=y;function y(B){if(typeof B!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,B!==a&&R(this,B)}y.prototype.catch=function(B){return this.then(null,B)},y.prototype.then=function(B,X){if(typeof B!="function"&&this.state===d||typeof X!="function"&&this.state===l)return this;var q=new this.constructor(a);if(this.state!==h){var fe=this.state===d?B:X;b(q,fe,this.outcome)}else this.queue.push(new v(q,B,X));return q};function v(B,X,q){this.promise=B,typeof X=="function"&&(this.onFulfilled=X,this.callFulfilled=this.otherCallFulfilled),typeof q=="function"&&(this.onRejected=q,this.callRejected=this.otherCallRejected)}v.prototype.callFulfilled=function(B){c.resolve(this.promise,B)},v.prototype.otherCallFulfilled=function(B){b(this.promise,this.onFulfilled,B)},v.prototype.callRejected=function(B){c.reject(this.promise,B)},v.prototype.otherCallRejected=function(B){b(this.promise,this.onRejected,B)};function b(B,X,q){s(function(){var fe;try{fe=X(q)}catch(Fe){return c.reject(B,Fe)}fe===B?c.reject(B,new TypeError("Cannot resolve promise with itself")):c.resolve(B,fe)})}c.resolve=function(B,X){var q=k(M,X);if(q.status==="error")return c.reject(B,q.value);var fe=q.value;if(fe)R(B,fe);else{B.state=d,B.outcome=X;for(var Fe=-1,Ye=B.queue.length;++Fe<Ye;)B.queue[Fe].callFulfilled(X)}return B},c.reject=function(B,X){B.state=l,B.outcome=X;for(var q=-1,fe=B.queue.length;++q<fe;)B.queue[q].callRejected(X);return B};function M(B){var X=B&&B.then;if(B&&(typeof B=="object"||typeof B=="function")&&typeof X=="function")return function(){X.apply(B,arguments)}}function R(B,X){var q=!1;function fe(He){q||(q=!0,c.reject(B,He))}function Fe(He){q||(q=!0,c.resolve(B,He))}function Ye(){X(Fe,fe)}var Ve=k(Ye);Ve.status==="error"&&fe(Ve.value)}function k(B,X){var q={};try{q.value=B(X),q.status="success"}catch(fe){q.status="error",q.value=fe}return q}y.resolve=$;function $(B){return B instanceof this?B:c.resolve(new this(a),B)}y.reject=Q;function Q(B){var X=new this(a);return c.reject(X,B)}y.all=j;function j(B){var X=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var q=B.length,fe=!1;if(!q)return this.resolve([]);for(var Fe=new Array(q),Ye=0,Ve=-1,He=new this(a);++Ve<q;)$e(B[Ve],Ve);return He;function $e(Et,_t){X.resolve(Et).then(Me,function(Ze){fe||(fe=!0,c.reject(He,Ze))});function Me(Ze){Fe[_t]=Ze,++Ye===q&&!fe&&(fe=!0,c.resolve(He,Fe))}}}y.race=_e;function _e(B){var X=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var q=B.length,fe=!1;if(!q)return this.resolve([]);for(var Fe=-1,Ye=new this(a);++Fe<q;)Ve(B[Fe]);return Ye;function Ve(He){X.resolve(He).then(function($e){fe||(fe=!0,c.resolve(Ye,$e))},function($e){fe||(fe=!0,c.reject(Ye,$e))})}}},{1:1}],3:[function(r,o,i){(function(s){"use strict";typeof s.Promise!="function"&&(s.Promise=r(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(r,o,i){"use strict";var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p};function a(p,_){if(!(p instanceof _))throw new TypeError("Cannot call a class as a function")}function c(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=c();function d(){try{if(!l||!l.open)return!1;var p=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),_=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!p||_)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function h(p,_){p=p||[],_=_||{};try{return new Blob(p,_)}catch(w){if(w.name!=="TypeError")throw w;for(var m=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,I=new m,C=0;C<p.length;C+=1)I.append(p[C]);return I.getBlob(_.type)}}typeof Promise>"u"&&r(3);var y=Promise;function v(p,_){_&&p.then(function(m){_(null,m)},function(m){_(m)})}function b(p,_,m){typeof _=="function"&&p.then(_),typeof m=="function"&&p.catch(m)}function M(p){return typeof p!="string"&&(console.warn(p+" used as a key, but it is not a string."),p=String(p)),p}function R(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var k="local-forage-detect-blob-support",$=void 0,Q={},j=Object.prototype.toString,_e="readonly",B="readwrite";function X(p){for(var _=p.length,m=new ArrayBuffer(_),I=new Uint8Array(m),C=0;C<_;C++)I[C]=p.charCodeAt(C);return m}function q(p){return new y(function(_){var m=p.transaction(k,B),I=h([""]);m.objectStore(k).put(I,"key"),m.onabort=function(C){C.preventDefault(),C.stopPropagation(),_(!1)},m.oncomplete=function(){var C=navigator.userAgent.match(/Chrome\/(\d+)/),w=navigator.userAgent.match(/Edge\//);_(w||!C||parseInt(C[1],10)>=43)}}).catch(function(){return!1})}function fe(p){return typeof $=="boolean"?y.resolve($):q(p).then(function(_){return $=_,$})}function Fe(p){var _=Q[p.name],m={};m.promise=new y(function(I,C){m.resolve=I,m.reject=C}),_.deferredOperations.push(m),_.dbReady?_.dbReady=_.dbReady.then(function(){return m.promise}):_.dbReady=m.promise}function Ye(p){var _=Q[p.name],m=_.deferredOperations.pop();if(m)return m.resolve(),m.promise}function Ve(p,_){var m=Q[p.name],I=m.deferredOperations.pop();if(I)return I.reject(_),I.promise}function He(p,_){return new y(function(m,I){if(Q[p.name]=Q[p.name]||Z(),p.db)if(_)Fe(p),p.db.close();else return m(p.db);var C=[p.name];_&&C.push(p.version);var w=l.open.apply(l,C);_&&(w.onupgradeneeded=function(x){var O=w.result;try{O.createObjectStore(p.storeName),x.oldVersion<=1&&O.createObjectStore(k)}catch(P){if(P.name==="ConstraintError")console.warn('The database "'+p.name+'" has been upgraded from version '+x.oldVersion+" to version "+x.newVersion+', but the storage "'+p.storeName+'" already exists.');else throw P}}),w.onerror=function(x){x.preventDefault(),I(w.error)},w.onsuccess=function(){var x=w.result;x.onversionchange=function(O){O.target.close()},m(x),Ye(p)}})}function $e(p){return He(p,!1)}function Et(p){return He(p,!0)}function _t(p,_){if(!p.db)return!0;var m=!p.db.objectStoreNames.contains(p.storeName),I=p.version<p.db.version,C=p.version>p.db.version;if(I&&(p.version!==_&&console.warn('The database "'+p.name+`" can't be downgraded from version `+p.db.version+" to version "+p.version+"."),p.version=p.db.version),C||m){if(m){var w=p.db.version+1;w>p.version&&(p.version=w)}return!0}return!1}function Me(p){return new y(function(_,m){var I=new FileReader;I.onerror=m,I.onloadend=function(C){var w=btoa(C.target.result||"");_({__local_forage_encoded_blob:!0,data:w,type:p.type})},I.readAsBinaryString(p)})}function Ze(p){var _=X(atob(p.data));return h([_],{type:p.type})}function ue(p){return p&&p.__local_forage_encoded_blob}function S(p){var _=this,m=_._initReady().then(function(){var I=Q[_._dbInfo.name];if(I&&I.dbReady)return I.dbReady});return b(m,p,p),m}function D(p){Fe(p);for(var _=Q[p.name],m=_.forages,I=0;I<m.length;I++){var C=m[I];C._dbInfo.db&&(C._dbInfo.db.close(),C._dbInfo.db=null)}return p.db=null,$e(p).then(function(w){return p.db=w,_t(p)?Et(p):w}).then(function(w){p.db=_.db=w;for(var x=0;x<m.length;x++)m[x]._dbInfo.db=w}).catch(function(w){throw Ve(p,w),w})}function V(p,_,m,I){I===void 0&&(I=1);try{var C=p.db.transaction(p.storeName,_);m(null,C)}catch(w){if(I>0&&(!p.db||w.name==="InvalidStateError"||w.name==="NotFoundError"))return y.resolve().then(function(){if(!p.db||w.name==="NotFoundError"&&!p.db.objectStoreNames.contains(p.storeName)&&p.version<=p.db.version)return p.db&&(p.version=p.db.version+1),Et(p)}).then(function(){return D(p).then(function(){V(p,_,m,I-1)})}).catch(m);m(w)}}function Z(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function J(p){var _=this,m={db:null};if(p)for(var I in p)m[I]=p[I];var C=Q[m.name];C||(C=Z(),Q[m.name]=C),C.forages.push(_),_._initReady||(_._initReady=_.ready,_.ready=S);var w=[];function x(){return y.resolve()}for(var O=0;O<C.forages.length;O++){var P=C.forages[O];P!==_&&w.push(P._initReady().catch(x))}var F=C.forages.slice(0);return y.all(w).then(function(){return m.db=C.db,$e(m)}).then(function(U){return m.db=U,_t(m,_._defaultConfig.version)?Et(m):U}).then(function(U){m.db=C.db=U,_._dbInfo=m;for(var G=0;G<F.length;G++){var se=F[G];se!==_&&(se._dbInfo.db=m.db,se._dbInfo.version=m.version)}})}function te(p,_){var m=this;p=M(p);var I=new y(function(C,w){m.ready().then(function(){V(m._dbInfo,_e,function(x,O){if(x)return w(x);try{var P=O.objectStore(m._dbInfo.storeName),F=P.get(p);F.onsuccess=function(){var U=F.result;U===void 0&&(U=null),ue(U)&&(U=Ze(U)),C(U)},F.onerror=function(){w(F.error)}}catch(U){w(U)}})}).catch(w)});return v(I,_),I}function ne(p,_){var m=this,I=new y(function(C,w){m.ready().then(function(){V(m._dbInfo,_e,function(x,O){if(x)return w(x);try{var P=O.objectStore(m._dbInfo.storeName),F=P.openCursor(),U=1;F.onsuccess=function(){var G=F.result;if(G){var se=G.value;ue(se)&&(se=Ze(se));var Ie=p(se,G.key,U++);Ie!==void 0?C(Ie):G.continue()}else C()},F.onerror=function(){w(F.error)}}catch(G){w(G)}})}).catch(w)});return v(I,_),I}function Y(p,_,m){var I=this;p=M(p);var C=new y(function(w,x){var O;I.ready().then(function(){return O=I._dbInfo,j.call(_)==="[object Blob]"?fe(O.db).then(function(P){return P?_:Me(_)}):_}).then(function(P){V(I._dbInfo,B,function(F,U){if(F)return x(F);try{var G=U.objectStore(I._dbInfo.storeName);P===null&&(P=void 0);var se=G.put(P,p);U.oncomplete=function(){P===void 0&&(P=null),w(P)},U.onabort=U.onerror=function(){var Ie=se.error?se.error:se.transaction.error;x(Ie)}}catch(Ie){x(Ie)}})}).catch(x)});return v(C,m),C}function re(p,_){var m=this;p=M(p);var I=new y(function(C,w){m.ready().then(function(){V(m._dbInfo,B,function(x,O){if(x)return w(x);try{var P=O.objectStore(m._dbInfo.storeName),F=P.delete(p);O.oncomplete=function(){C()},O.onerror=function(){w(F.error)},O.onabort=function(){var U=F.error?F.error:F.transaction.error;w(U)}}catch(U){w(U)}})}).catch(w)});return v(I,_),I}function De(p){var _=this,m=new y(function(I,C){_.ready().then(function(){V(_._dbInfo,B,function(w,x){if(w)return C(w);try{var O=x.objectStore(_._dbInfo.storeName),P=O.clear();x.oncomplete=function(){I()},x.onabort=x.onerror=function(){var F=P.error?P.error:P.transaction.error;C(F)}}catch(F){C(F)}})}).catch(C)});return v(m,p),m}function Ae(p){var _=this,m=new y(function(I,C){_.ready().then(function(){V(_._dbInfo,_e,function(w,x){if(w)return C(w);try{var O=x.objectStore(_._dbInfo.storeName),P=O.count();P.onsuccess=function(){I(P.result)},P.onerror=function(){C(P.error)}}catch(F){C(F)}})}).catch(C)});return v(m,p),m}function me(p,_){var m=this,I=new y(function(C,w){if(p<0){C(null);return}m.ready().then(function(){V(m._dbInfo,_e,function(x,O){if(x)return w(x);try{var P=O.objectStore(m._dbInfo.storeName),F=!1,U=P.openKeyCursor();U.onsuccess=function(){var G=U.result;if(!G){C(null);return}p===0||F?C(G.key):(F=!0,G.advance(p))},U.onerror=function(){w(U.error)}}catch(G){w(G)}})}).catch(w)});return v(I,_),I}function de(p){var _=this,m=new y(function(I,C){_.ready().then(function(){V(_._dbInfo,_e,function(w,x){if(w)return C(w);try{var O=x.objectStore(_._dbInfo.storeName),P=O.openKeyCursor(),F=[];P.onsuccess=function(){var U=P.result;if(!U){I(F);return}F.push(U.key),U.continue()},P.onerror=function(){C(P.error)}}catch(U){C(U)}})}).catch(C)});return v(m,p),m}function ke(p,_){_=R.apply(this,arguments);var m=this.config();p=typeof p!="function"&&p||{},p.name||(p.name=p.name||m.name,p.storeName=p.storeName||m.storeName);var I=this,C;if(!p.name)C=y.reject("Invalid arguments");else{var w=p.name===m.name&&I._dbInfo.db,x=w?y.resolve(I._dbInfo.db):$e(p).then(function(O){var P=Q[p.name],F=P.forages;P.db=O;for(var U=0;U<F.length;U++)F[U]._dbInfo.db=O;return O});p.storeName?C=x.then(function(O){if(O.objectStoreNames.contains(p.storeName)){var P=O.version+1;Fe(p);var F=Q[p.name],U=F.forages;O.close();for(var G=0;G<U.length;G++){var se=U[G];se._dbInfo.db=null,se._dbInfo.version=P}var Ie=new y(function(Te,Ke){var We=l.open(p.name,P);We.onerror=function(xt){var _o=We.result;_o.close(),Ke(xt)},We.onupgradeneeded=function(){var xt=We.result;xt.deleteObjectStore(p.storeName)},We.onsuccess=function(){var xt=We.result;xt.close(),Te(xt)}});return Ie.then(function(Te){F.db=Te;for(var Ke=0;Ke<U.length;Ke++){var We=U[Ke];We._dbInfo.db=Te,Ye(We._dbInfo)}}).catch(function(Te){throw(Ve(p,Te)||y.resolve()).catch(function(){}),Te})}}):C=x.then(function(O){Fe(p);var P=Q[p.name],F=P.forages;O.close();for(var U=0;U<F.length;U++){var G=F[U];G._dbInfo.db=null}var se=new y(function(Ie,Te){var Ke=l.deleteDatabase(p.name);Ke.onerror=function(){var We=Ke.result;We&&We.close(),Te(Ke.error)},Ke.onblocked=function(){console.warn('dropInstance blocked for database "'+p.name+'" until all open connections are closed')},Ke.onsuccess=function(){var We=Ke.result;We&&We.close(),Ie(We)}});return se.then(function(Ie){P.db=Ie;for(var Te=0;Te<F.length;Te++){var Ke=F[Te];Ye(Ke._dbInfo)}}).catch(function(Ie){throw(Ve(p,Ie)||y.resolve()).catch(function(){}),Ie})})}return v(C,_),C}var ae={_driver:"asyncStorage",_initStorage:J,_support:d(),iterate:ne,getItem:te,setItem:Y,removeItem:re,clear:De,length:Ae,key:me,keys:de,dropInstance:ke};function g(){return typeof openDatabase=="function"}var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="~~local_forage_type~",E=/^~~local_forage_type~([^~]+)~/,T="__lfsc__:",A=T.length,L="arbf",oe="blob",ye="si08",we="ui08",Ge="uic8",xe="si16",En="si32",Jn="ur16",Fn="ui32",vo="fl32",Cr="fl64",Si=A+L.length,bi=Object.prototype.toString;function Dd(p){var _=p.length*.75,m=p.length,I,C=0,w,x,O,P;p[p.length-1]==="="&&(_--,p[p.length-2]==="="&&_--);var F=new ArrayBuffer(_),U=new Uint8Array(F);for(I=0;I<m;I+=4)w=u.indexOf(p[I]),x=u.indexOf(p[I+1]),O=u.indexOf(p[I+2]),P=u.indexOf(p[I+3]),U[C++]=w<<2|x>>4,U[C++]=(x&15)<<4|O>>2,U[C++]=(O&3)<<6|P&63;return F}function sc(p){var _=new Uint8Array(p),m="",I;for(I=0;I<_.length;I+=3)m+=u[_[I]>>2],m+=u[(_[I]&3)<<4|_[I+1]>>4],m+=u[(_[I+1]&15)<<2|_[I+2]>>6],m+=u[_[I+2]&63];return _.length%3===2?m=m.substring(0,m.length-1)+"=":_.length%3===1&&(m=m.substring(0,m.length-2)+"=="),m}function FE(p,_){var m="";if(p&&(m=bi.call(p)),p&&(m==="[object ArrayBuffer]"||p.buffer&&bi.call(p.buffer)==="[object ArrayBuffer]")){var I,C=T;p instanceof ArrayBuffer?(I=p,C+=L):(I=p.buffer,m==="[object Int8Array]"?C+=ye:m==="[object Uint8Array]"?C+=we:m==="[object Uint8ClampedArray]"?C+=Ge:m==="[object Int16Array]"?C+=xe:m==="[object Uint16Array]"?C+=Jn:m==="[object Int32Array]"?C+=En:m==="[object Uint32Array]"?C+=Fn:m==="[object Float32Array]"?C+=vo:m==="[object Float64Array]"?C+=Cr:_(new Error("Failed to get type for BinaryArray"))),_(C+sc(I))}else if(m==="[object Blob]"){var w=new FileReader;w.onload=function(){var x=f+p.type+"~"+sc(this.result);_(T+oe+x)},w.readAsArrayBuffer(p)}else try{_(JSON.stringify(p))}catch(x){console.error("Couldn't convert value into a JSON string: ",p),_(null,x)}}function kE(p){if(p.substring(0,A)!==T)return JSON.parse(p);var _=p.substring(Si),m=p.substring(A,Si),I;if(m===oe&&E.test(_)){var C=_.match(E);I=C[1],_=_.substring(C[0].length)}var w=Dd(_);switch(m){case L:return w;case oe:return h([w],{type:I});case ye:return new Int8Array(w);case we:return new Uint8Array(w);case Ge:return new Uint8ClampedArray(w);case xe:return new Int16Array(w);case Jn:return new Uint16Array(w);case En:return new Int32Array(w);case Fn:return new Uint32Array(w);case vo:return new Float32Array(w);case Cr:return new Float64Array(w);default:throw new Error("Unkown type: "+m)}}var ac={serialize:FE,deserialize:kE,stringToBuffer:Dd,bufferToString:sc};function wd(p,_,m,I){p.executeSql("CREATE TABLE IF NOT EXISTS "+_.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],m,I)}function BE(p){var _=this,m={db:null};if(p)for(var I in p)m[I]=typeof p[I]!="string"?p[I].toString():p[I];var C=new y(function(w,x){try{m.db=openDatabase(m.name,String(m.version),m.description,m.size)}catch(O){return x(O)}m.db.transaction(function(O){wd(O,m,function(){_._dbInfo=m,w()},function(P,F){x(F)})},x)});return m.serializer=ac,C}function kn(p,_,m,I,C,w){p.executeSql(m,I,C,function(x,O){O.code===O.SYNTAX_ERR?x.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[_.storeName],function(P,F){F.rows.length?w(P,O):wd(P,_,function(){P.executeSql(m,I,C,w)},w)},w):w(x,O)},w)}function UE(p,_){var m=this;p=M(p);var I=new y(function(C,w){m.ready().then(function(){var x=m._dbInfo;x.db.transaction(function(O){kn(O,x,"SELECT * FROM "+x.storeName+" WHERE key = ? LIMIT 1",[p],function(P,F){var U=F.rows.length?F.rows.item(0).value:null;U&&(U=x.serializer.deserialize(U)),C(U)},function(P,F){w(F)})})}).catch(w)});return v(I,_),I}function jE(p,_){var m=this,I=new y(function(C,w){m.ready().then(function(){var x=m._dbInfo;x.db.transaction(function(O){kn(O,x,"SELECT * FROM "+x.storeName,[],function(P,F){for(var U=F.rows,G=U.length,se=0;se<G;se++){var Ie=U.item(se),Te=Ie.value;if(Te&&(Te=x.serializer.deserialize(Te)),Te=p(Te,Ie.key,se+1),Te!==void 0){C(Te);return}}C()},function(P,F){w(F)})})}).catch(w)});return v(I,_),I}function Id(p,_,m,I){var C=this;p=M(p);var w=new y(function(x,O){C.ready().then(function(){_===void 0&&(_=null);var P=_,F=C._dbInfo;F.serializer.serialize(_,function(U,G){G?O(G):F.db.transaction(function(se){kn(se,F,"INSERT OR REPLACE INTO "+F.storeName+" (key, value) VALUES (?, ?)",[p,U],function(){x(P)},function(Ie,Te){O(Te)})},function(se){if(se.code===se.QUOTA_ERR){if(I>0){x(Id.apply(C,[p,P,m,I-1]));return}O(se)}})})}).catch(O)});return v(w,m),w}function VE(p,_,m){return Id.apply(this,[p,_,m,1])}function HE(p,_){var m=this;p=M(p);var I=new y(function(C,w){m.ready().then(function(){var x=m._dbInfo;x.db.transaction(function(O){kn(O,x,"DELETE FROM "+x.storeName+" WHERE key = ?",[p],function(){C()},function(P,F){w(F)})})}).catch(w)});return v(I,_),I}function $E(p){var _=this,m=new y(function(I,C){_.ready().then(function(){var w=_._dbInfo;w.db.transaction(function(x){kn(x,w,"DELETE FROM "+w.storeName,[],function(){I()},function(O,P){C(P)})})}).catch(C)});return v(m,p),m}function GE(p){var _=this,m=new y(function(I,C){_.ready().then(function(){var w=_._dbInfo;w.db.transaction(function(x){kn(x,w,"SELECT COUNT(key) as c FROM "+w.storeName,[],function(O,P){var F=P.rows.item(0).c;I(F)},function(O,P){C(P)})})}).catch(C)});return v(m,p),m}function WE(p,_){var m=this,I=new y(function(C,w){m.ready().then(function(){var x=m._dbInfo;x.db.transaction(function(O){kn(O,x,"SELECT key FROM "+x.storeName+" WHERE id = ? LIMIT 1",[p+1],function(P,F){var U=F.rows.length?F.rows.item(0).key:null;C(U)},function(P,F){w(F)})})}).catch(w)});return v(I,_),I}function zE(p){var _=this,m=new y(function(I,C){_.ready().then(function(){var w=_._dbInfo;w.db.transaction(function(x){kn(x,w,"SELECT key FROM "+w.storeName,[],function(O,P){for(var F=[],U=0;U<P.rows.length;U++)F.push(P.rows.item(U).key);I(F)},function(O,P){C(P)})})}).catch(C)});return v(m,p),m}function qE(p){return new y(function(_,m){p.transaction(function(I){I.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(C,w){for(var x=[],O=0;O<w.rows.length;O++)x.push(w.rows.item(O).name);_({db:p,storeNames:x})},function(C,w){m(w)})},function(I){m(I)})})}function YE(p,_){_=R.apply(this,arguments);var m=this.config();p=typeof p!="function"&&p||{},p.name||(p.name=p.name||m.name,p.storeName=p.storeName||m.storeName);var I=this,C;return p.name?C=new y(function(w){var x;p.name===m.name?x=I._dbInfo.db:x=openDatabase(p.name,"","",0),p.storeName?w({db:x,storeNames:[p.storeName]}):w(qE(x))}).then(function(w){return new y(function(x,O){w.db.transaction(function(P){function F(Ie){return new y(function(Te,Ke){P.executeSql("DROP TABLE IF EXISTS "+Ie,[],function(){Te()},function(We,xt){Ke(xt)})})}for(var U=[],G=0,se=w.storeNames.length;G<se;G++)U.push(F(w.storeNames[G]));y.all(U).then(function(){x()}).catch(function(Ie){O(Ie)})},function(P){O(P)})})}):C=y.reject("Invalid arguments"),v(C,_),C}var ZE={_driver:"webSQLStorage",_initStorage:BE,_support:g(),iterate:jE,getItem:UE,setItem:VE,removeItem:HE,clear:$E,length:GE,key:WE,keys:zE,dropInstance:YE};function KE(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Sd(p,_){var m=p.name+"/";return p.storeName!==_.storeName&&(m+=p.storeName+"/"),m}function JE(){var p="_localforage_support_test";try{return localStorage.setItem(p,!0),localStorage.removeItem(p),!1}catch{return!0}}function QE(){return!JE()||localStorage.length>0}function XE(p){var _=this,m={};if(p)for(var I in p)m[I]=p[I];return m.keyPrefix=Sd(p,_._defaultConfig),QE()?(_._dbInfo=m,m.serializer=ac,y.resolve()):y.reject()}function e_(p){var _=this,m=_.ready().then(function(){for(var I=_._dbInfo.keyPrefix,C=localStorage.length-1;C>=0;C--){var w=localStorage.key(C);w.indexOf(I)===0&&localStorage.removeItem(w)}});return v(m,p),m}function t_(p,_){var m=this;p=M(p);var I=m.ready().then(function(){var C=m._dbInfo,w=localStorage.getItem(C.keyPrefix+p);return w&&(w=C.serializer.deserialize(w)),w});return v(I,_),I}function n_(p,_){var m=this,I=m.ready().then(function(){for(var C=m._dbInfo,w=C.keyPrefix,x=w.length,O=localStorage.length,P=1,F=0;F<O;F++){var U=localStorage.key(F);if(U.indexOf(w)===0){var G=localStorage.getItem(U);if(G&&(G=C.serializer.deserialize(G)),G=p(G,U.substring(x),P++),G!==void 0)return G}}});return v(I,_),I}function r_(p,_){var m=this,I=m.ready().then(function(){var C=m._dbInfo,w;try{w=localStorage.key(p)}catch{w=null}return w&&(w=w.substring(C.keyPrefix.length)),w});return v(I,_),I}function o_(p){var _=this,m=_.ready().then(function(){for(var I=_._dbInfo,C=localStorage.length,w=[],x=0;x<C;x++){var O=localStorage.key(x);O.indexOf(I.keyPrefix)===0&&w.push(O.substring(I.keyPrefix.length))}return w});return v(m,p),m}function i_(p){var _=this,m=_.keys().then(function(I){return I.length});return v(m,p),m}function s_(p,_){var m=this;p=M(p);var I=m.ready().then(function(){var C=m._dbInfo;localStorage.removeItem(C.keyPrefix+p)});return v(I,_),I}function a_(p,_,m){var I=this;p=M(p);var C=I.ready().then(function(){_===void 0&&(_=null);var w=_;return new y(function(x,O){var P=I._dbInfo;P.serializer.serialize(_,function(F,U){if(U)O(U);else try{localStorage.setItem(P.keyPrefix+p,F),x(w)}catch(G){(G.name==="QuotaExceededError"||G.name==="NS_ERROR_DOM_QUOTA_REACHED")&&O(G),O(G)}})})});return v(C,m),C}function c_(p,_){if(_=R.apply(this,arguments),p=typeof p!="function"&&p||{},!p.name){var m=this.config();p.name=p.name||m.name,p.storeName=p.storeName||m.storeName}var I=this,C;return p.name?C=new y(function(w){p.storeName?w(Sd(p,I._defaultConfig)):w(p.name+"/")}).then(function(w){for(var x=localStorage.length-1;x>=0;x--){var O=localStorage.key(x);O.indexOf(w)===0&&localStorage.removeItem(O)}}):C=y.reject("Invalid arguments"),v(C,_),C}var u_={_driver:"localStorageWrapper",_initStorage:XE,_support:KE(),iterate:n_,getItem:t_,setItem:a_,removeItem:s_,clear:e_,length:i_,key:r_,keys:o_,dropInstance:c_},l_=function(_,m){return _===m||typeof _=="number"&&typeof m=="number"&&isNaN(_)&&isNaN(m)},f_=function(_,m){for(var I=_.length,C=0;C<I;){if(l_(_[C],m))return!0;C++}return!1},bd=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"},Eo={},Td={},Nr={INDEXEDDB:ae,WEBSQL:ZE,LOCALSTORAGE:u_},d_=[Nr.INDEXEDDB._driver,Nr.WEBSQL._driver,Nr.LOCALSTORAGE._driver],Ti=["dropInstance"],cc=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Ti),p_={description:"",driver:d_.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function h_(p,_){p[_]=function(){var m=arguments;return p.ready().then(function(){return p[_].apply(p,m)})}}function uc(){for(var p=1;p<arguments.length;p++){var _=arguments[p];if(_)for(var m in _)_.hasOwnProperty(m)&&(bd(_[m])?arguments[0][m]=_[m].slice():arguments[0][m]=_[m])}return arguments[0]}var g_=function(){function p(_){a(this,p);for(var m in Nr)if(Nr.hasOwnProperty(m)){var I=Nr[m],C=I._driver;this[m]=C,Eo[C]||this.defineDriver(I)}this._defaultConfig=uc({},p_),this._config=uc({},this._defaultConfig,_),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return p.prototype.config=function(m){if((typeof m>"u"?"undefined":s(m))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var I in m){if(I==="storeName"&&(m[I]=m[I].replace(/\W/g,"_")),I==="version"&&typeof m[I]!="number")return new Error("Database version must be a number.");this._config[I]=m[I]}return"driver"in m&&m.driver?this.setDriver(this._config.driver):!0}else return typeof m=="string"?this._config[m]:this._config},p.prototype.defineDriver=function(m,I,C){var w=new y(function(x,O){try{var P=m._driver,F=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!m._driver){O(F);return}for(var U=cc.concat("_initStorage"),G=0,se=U.length;G<se;G++){var Ie=U[G],Te=!f_(Ti,Ie);if((Te||m[Ie])&&typeof m[Ie]!="function"){O(F);return}}var Ke=function(){for(var _o=function(v_){return function(){var E_=new Error("Method "+v_+" is not implemented by the current driver"),Cd=y.reject(E_);return v(Cd,arguments[arguments.length-1]),Cd}},lc=0,y_=Ti.length;lc<y_;lc++){var fc=Ti[lc];m[fc]||(m[fc]=_o(fc))}};Ke();var We=function(_o){Eo[P]&&console.info("Redefining LocalForage driver: "+P),Eo[P]=m,Td[P]=_o,x()};"_support"in m?m._support&&typeof m._support=="function"?m._support().then(We,O):We(!!m._support):We(!0)}catch(xt){O(xt)}});return b(w,I,C),w},p.prototype.driver=function(){return this._driver||null},p.prototype.getDriver=function(m,I,C){var w=Eo[m]?y.resolve(Eo[m]):y.reject(new Error("Driver not found."));return b(w,I,C),w},p.prototype.getSerializer=function(m){var I=y.resolve(ac);return b(I,m),I},p.prototype.ready=function(m){var I=this,C=I._driverSet.then(function(){return I._ready===null&&(I._ready=I._initDriver()),I._ready});return b(C,m,m),C},p.prototype.setDriver=function(m,I,C){var w=this;bd(m)||(m=[m]);var x=this._getSupportedDrivers(m);function O(){w._config.driver=w.driver()}function P(G){return w._extend(G),O(),w._ready=w._initStorage(w._config),w._ready}function F(G){return function(){var se=0;function Ie(){for(;se<G.length;){var Te=G[se];return se++,w._dbInfo=null,w._ready=null,w.getDriver(Te).then(P).catch(Ie)}O();var Ke=new Error("No available storage method found.");return w._driverSet=y.reject(Ke),w._driverSet}return Ie()}}var U=this._driverSet!==null?this._driverSet.catch(function(){return y.resolve()}):y.resolve();return this._driverSet=U.then(function(){var G=x[0];return w._dbInfo=null,w._ready=null,w.getDriver(G).then(function(se){w._driver=se._driver,O(),w._wrapLibraryMethodsWithReady(),w._initDriver=F(x)})}).catch(function(){O();var G=new Error("No available storage method found.");return w._driverSet=y.reject(G),w._driverSet}),b(this._driverSet,I,C),this._driverSet},p.prototype.supports=function(m){return!!Td[m]},p.prototype._extend=function(m){uc(this,m)},p.prototype._getSupportedDrivers=function(m){for(var I=[],C=0,w=m.length;C<w;C++){var x=m[C];this.supports(x)&&I.push(x)}return I},p.prototype._wrapLibraryMethodsWithReady=function(){for(var m=0,I=cc.length;m<I;m++)h_(this,cc[m])},p.prototype.createInstance=function(m){return new p(m)},p}(),m_=new g_;o.exports=m_},{3:3}]},{},[4])(4)})});var nE=wo($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.MustacheUtils=void 0;var Ha=class e{static escapeHtml(t){return String(t).replace(/"/g,n=>e.entityMap[n])}};$a.MustacheUtils=Ha;Ha.entityMap={'"':"&quot;"}});function N_(e,t){return Object.is(e,t)}var Qe=null,Ci=!1,pc=1,_n=Symbol("SIGNAL");function pe(e){let t=Qe;return Qe=e,t}function Od(){return Qe}var Ni={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Rd(e){if(Ci)throw new Error("");if(Qe===null)return;Qe.consumerOnSignalRead(e);let t=Qe.nextProducerIndex++;if(xi(Qe),t<Qe.producerNode.length&&Qe.producerNode[t]!==e&&So(Qe)){let n=Qe.producerNode[t];Mi(n,Qe.producerIndexOfThis[t])}Qe.producerNode[t]!==e&&(Qe.producerNode[t]=e,Qe.producerIndexOfThis[t]=So(Qe)?kd(e,Qe,t):0),Qe.producerLastReadVersion[t]=e.version}function M_(){pc++}function x_(e){if(!(So(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===pc)){if(!e.producerMustRecompute(e)&&!gc(e)){Ad(e);return}e.producerRecomputeValue(e),Ad(e)}}function Ld(e){if(e.liveConsumerNode===void 0)return;let t=Ci;Ci=!0;try{for(let n of e.liveConsumerNode)n.dirty||A_(n)}finally{Ci=t}}function Pd(){return Qe?.consumerAllowSignalWrites!==!1}function A_(e){e.dirty=!0,Ld(e),e.consumerMarkedDirty?.(e)}function Ad(e){e.dirty=!1,e.lastCleanEpoch=pc}function hc(e){return e&&(e.nextProducerIndex=0),pe(e)}function Fd(e,t){if(pe(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(So(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Mi(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function gc(e){xi(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(x_(n),r!==n.version))return!0}return!1}function mc(e){if(xi(e),So(e))for(let t=0;t<e.producerNode.length;t++)Mi(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function kd(e,t,n){if(Bd(e),e.liveConsumerNode.length===0&&Ud(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=kd(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Mi(e,t){if(Bd(e),e.liveConsumerNode.length===1&&Ud(e))for(let r=0;r<e.producerNode.length;r++)Mi(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];xi(o),o.producerIndexOfThis[r]=t}}function So(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function xi(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Bd(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ud(e){return e.producerNode!==void 0}function O_(){throw new Error}var jd=O_;function Vd(e){jd(e)}function Hd(e){jd=e}var R_=null;function $d(e){let t=Object.create(Wd);t.value=e;let n=()=>(Rd(t),t.value);return n[_n]=t,n}function yc(e,t){Pd()||Vd(e),e.equal(e.value,t)||(e.value=t,L_(e))}function Gd(e,t){Pd()||Vd(e),yc(e,t(e.value))}var Wd=ie(N({},Ni),{equal:N_,value:void 0,kind:"signal"});function L_(e){e.version++,M_(),Ld(e),R_?.()}function ve(e){return typeof e=="function"}function Ai(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Oi=Ai(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function bo(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ft=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(ve(r))try{r()}catch(i){t=i instanceof Oi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{zd(i)}catch(s){t=t??[],s instanceof Oi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Oi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)zd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&bo(n,t)}remove(t){let{_finalizers:n}=this;n&&bo(n,t),t instanceof e&&t._removeParent(this)}};ft.EMPTY=(()=>{let e=new ft;return e.closed=!0,e})();var vc=ft.EMPTY;function Ri(e){return e instanceof ft||e&&"closed"in e&&ve(e.remove)&&ve(e.add)&&ve(e.unsubscribe)}function zd(e){ve(e)?e():e.unsubscribe()}var Ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Mr={setTimeout(e,t,...n){let{delegate:r}=Mr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Mr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Li(e){Mr.setTimeout(()=>{let{onUnhandledError:t}=Ht;if(t)t(e);else throw e})}function Ec(){}var qd=_c("C",void 0,void 0);function Yd(e){return _c("E",void 0,e)}function Zd(e){return _c("N",e,void 0)}function _c(e,t,n){return{kind:e,value:t,error:n}}var Qn=null;function xr(e){if(Ht.useDeprecatedSynchronousErrorHandling){let t=!Qn;if(t&&(Qn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Qn;if(Qn=null,n)throw r}}else e()}function Kd(e){Ht.useDeprecatedSynchronousErrorHandling&&Qn&&(Qn.errorThrown=!0,Qn.error=e)}var Xn=class extends ft{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ri(t)&&t.add(this)):this.destination=k_}static create(t,n,r){return new Ar(t,n,r)}next(t){this.isStopped?wc(Zd(t),this):this._next(t)}error(t){this.isStopped?wc(Yd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?wc(qd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},P_=Function.prototype.bind;function Dc(e,t){return P_.call(e,t)}var Ic=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Pi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Pi(r)}else Pi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Pi(n)}}},Ar=class extends Xn{constructor(t,n,r){super();let o;if(ve(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ht.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Dc(t.next,i),error:t.error&&Dc(t.error,i),complete:t.complete&&Dc(t.complete,i)}):o=t}this.destination=new Ic(o)}};function Pi(e){Ht.useDeprecatedSynchronousErrorHandling?Kd(e):Li(e)}function F_(e){throw e}function wc(e,t){let{onStoppedNotification:n}=Ht;n&&Mr.setTimeout(()=>n(e,t))}var k_={closed:!0,next:Ec,error:F_,complete:Ec};var Or=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Fi(e){return e}function Jd(e){return e.length===0?Fi:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var ze=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=U_(n)?n:new Ar(n,r,o);return xr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Qd(r),new r((o,i)=>{let s=new Ar({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Or](){return this}pipe(...n){return Jd(n)(this)}toPromise(n){return n=Qd(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Qd(e){var t;return(t=e??Ht.Promise)!==null&&t!==void 0?t:Promise}function B_(e){return e&&ve(e.next)&&ve(e.error)&&ve(e.complete)}function U_(e){return e&&e instanceof Xn||B_(e)&&Ri(e)}function j_(e){return ve(e?.lift)}function Jt(e){return t=>{if(j_(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Qt(e,t,n,r,o){return new Sc(e,t,n,r,o)}var Sc=class extends Xn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Xd=Ai(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Dn=(()=>{class e extends ze{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new ki(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Xd}next(n){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?vc:(this.currentObservers=null,i.push(n),new ft(()=>{this.currentObservers=null,bo(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new ze;return n.source=this,n}}return e.create=(t,n)=>new ki(t,n),e})(),ki=class extends Dn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:vc}};var To=class extends Dn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var bc={now(){return(bc.delegate||Date).now()},delegate:void 0};var Co=class extends Dn{constructor(t=1/0,n=1/0,r=bc){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var ep=new ze(e=>e.complete());function tp(e){return e&&ve(e.schedule)}function np(e){return e[e.length-1]}function rp(e){return tp(np(e))?e.pop():void 0}function op(e,t){return typeof np(e)=="number"?e.pop():t}function sp(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(d){try{l(r.next(d))}catch(h){s(h)}}function c(d){try{l(r.throw(d))}catch(h){s(h)}}function l(d){d.done?i(d.value):o(d.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function ip(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function er(e){return this instanceof er?(this.v=e,this):new er(e)}function ap(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(v){return function(b){return Promise.resolve(b).then(v,h)}}function a(v,b){r[v]&&(o[v]=function(M){return new Promise(function(R,k){i.push([v,M,R,k])>1||c(v,M)})},b&&(o[v]=b(o[v])))}function c(v,b){try{l(r[v](b))}catch(M){y(i[0][3],M)}}function l(v){v.value instanceof er?Promise.resolve(v.value.v).then(d,h):y(i[0][2],v)}function d(v){c("next",v)}function h(v){c("throw",v)}function y(v,b){v(b),i.shift(),i.length&&c(i[0][0],i[0][1])}}function cp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ip=="function"?ip(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Bi=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ui(e){return ve(e?.then)}function ji(e){return ve(e[Or])}function Vi(e){return Symbol.asyncIterator&&ve(e?.[Symbol.asyncIterator])}function Hi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function V_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var $i=V_();function Gi(e){return ve(e?.[$i])}function Wi(e){return ap(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield er(n.read());if(o)return yield er(void 0);yield yield er(r)}}finally{n.releaseLock()}})}function zi(e){return ve(e?.getReader)}function Dt(e){if(e instanceof ze)return e;if(e!=null){if(ji(e))return H_(e);if(Bi(e))return $_(e);if(Ui(e))return G_(e);if(Vi(e))return up(e);if(Gi(e))return W_(e);if(zi(e))return z_(e)}throw Hi(e)}function H_(e){return new ze(t=>{let n=e[Or]();if(ve(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $_(e){return new ze(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function G_(e){return new ze(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Li)})}function W_(e){return new ze(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function up(e){return new ze(t=>{q_(e,t).catch(n=>t.error(n))})}function z_(e){return up(Wi(e))}function q_(e,t){var n,r,o,i;return sp(this,void 0,void 0,function*(){try{for(n=cp(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function At(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function qi(e,t=0){return Jt((n,r)=>{n.subscribe(Qt(r,o=>At(r,e,()=>r.next(o),t),()=>At(r,e,()=>r.complete(),t),o=>At(r,e,()=>r.error(o),t)))})}function Yi(e,t=0){return Jt((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function lp(e,t){return Dt(e).pipe(Yi(t),qi(t))}function fp(e,t){return Dt(e).pipe(Yi(t),qi(t))}function dp(e,t){return new ze(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function pp(e,t){return new ze(n=>{let r;return At(n,t,()=>{r=e[$i](),At(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>ve(r?.return)&&r.return()})}function Zi(e,t){if(!e)throw new Error("Iterable cannot be null");return new ze(n=>{At(n,t,()=>{let r=e[Symbol.asyncIterator]();At(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function hp(e,t){return Zi(Wi(e),t)}function gp(e,t){if(e!=null){if(ji(e))return lp(e,t);if(Bi(e))return dp(e,t);if(Ui(e))return fp(e,t);if(Vi(e))return Zi(e,t);if(Gi(e))return pp(e,t);if(zi(e))return hp(e,t)}throw Hi(e)}function mp(e,t){return t?gp(e,t):Dt(e)}function No(e,t){return Jt((n,r)=>{let o=0;n.subscribe(Qt(r,i=>{r.next(e.call(t,i,o++))}))})}function yp(e,t,n,r,o,i,s,a){let c=[],l=0,d=0,h=!1,y=()=>{h&&!c.length&&!l&&t.complete()},v=M=>l<r?b(M):c.push(M),b=M=>{i&&t.next(M),l++;let R=!1;Dt(n(M,d++)).subscribe(Qt(t,k=>{o?.(k),i?v(k):t.next(k)},()=>{R=!0},void 0,()=>{if(R)try{for(l--;c.length&&l<r;){let k=c.shift();s?At(t,s,()=>b(k)):b(k)}y()}catch(k){t.error(k)}}))};return e.subscribe(Qt(t,v,()=>{h=!0,y()})),()=>{a?.()}}function Tc(e,t,n=1/0){return ve(t)?Tc((r,o)=>No((i,s)=>t(r,i,o,s))(Dt(e(r,o))),n):(typeof t=="number"&&(n=t),Jt((r,o)=>yp(r,o,e,n)))}function vp(e=1/0){return Tc(Fi,e)}function Cc(...e){let t=rp(e),n=op(e,1/0),r=e;return r.length?r.length===1?Dt(r[0]):vp(n)(mp(r,t)):ep}function Nc(e,t){return Jt((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Qt(r,c=>{o?.unsubscribe();let l=0,d=i++;Dt(e(c,d)).subscribe(o=Qt(r,h=>r.next(t?t(c,h,d,l++):h),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var ah="https://g.co/ng/security#xss",ge=class extends Error{code;constructor(t,n){super(Bu(t,n)),this.code=t}};function Bu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Y_(e){return{toString:e}.toString()}var Ro=globalThis;function Le(e){for(let t in e)if(e[t]===Le)return t;throw Error("Could not find renamed property on target object.")}function Ot(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ot).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function jc(e,t){return e?t?`${e} ${t}`:e:t||""}var Z_=Le({__forward_ref__:Le});function ch(e){return e.__forward_ref__=ch,e.toString=function(){return Ot(this())},e}function Gt(e){return K_(e)?e():e}function K_(e){return typeof e=="function"&&e.hasOwnProperty(Z_)&&e.__forward_ref__===ch}function Ue(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Uu(e){return Ep(e,uh)||Ep(e,lh)}function Ep(e,t){return e.hasOwnProperty(t)?e[t]:null}function J_(e){let t=e&&(e[uh]||e[lh]);return t||null}function _p(e){return e&&(e.hasOwnProperty(Dp)||e.hasOwnProperty(Q_))?e[Dp]:null}var uh=Le({\u0275prov:Le}),Dp=Le({\u0275inj:Le}),lh=Le({ngInjectableDef:Le}),Q_=Le({ngInjectorDef:Le}),be=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=Ue({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function fh(e){return e&&!!e.\u0275providers}var X_=Le({\u0275cmp:Le}),eD=Le({\u0275dir:Le}),tD=Le({\u0275pipe:Le});var wp=Le({\u0275fac:Le}),Oo=Le({__NG_ELEMENT_ID__:Le}),Ip=Le({__NG_ENV_ID__:Le});function Ss(e){return typeof e=="string"?e:e==null?"":String(e)}function nD(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ss(e)}function rD(e,t){throw new ge(-200,e)}function ju(e,t){throw new ge(-201,!1)}var le=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(le||{}),Vc;function dh(){return Vc}function wt(e){let t=Vc;return Vc=e,t}function ph(e,t,n){let r=Uu(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&le.Optional)return null;if(t!==void 0)return t;ju(e,"Injector")}var oD={},Lo=oD,iD="__NG_DI_FLAG__",is="ngTempTokenPath",sD="ngTokenPath",aD=/\n/gm,cD="\u0275",Sp="__source",Fr;function uD(){return Fr}function Bn(e){let t=Fr;return Fr=e,t}function lD(e,t=le.Default){if(Fr===void 0)throw new ge(-203,!1);return Fr===null?ph(e,void 0,t):Fr.get(e,t&le.Optional?null:void 0,t)}function Ce(e,t=le.Default){return(dh()||lD)(Gt(e),t)}function Se(e,t=le.Default){return Ce(e,bs(t))}function bs(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Hc(e){let t=[];for(let n=0;n<e.length;n++){let r=Gt(e[n]);if(Array.isArray(r)){if(r.length===0)throw new ge(900,!1);let o,i=le.Default;for(let s=0;s<r.length;s++){let a=r[s],c=fD(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(Ce(o,i))}else t.push(Ce(r))}return t}function fD(e){return e[iD]}function dD(e,t,n,r){let o=e[is];throw t[Sp]&&o.unshift(t[Sp]),e.message=pD(`
5
+ `+e.message,o,n,r),e[sD]=o,e[is]=null,e}function pD(e,t,n,r=null){e=e&&e.charAt(0)===`
6
+ `&&e.charAt(1)==cD?e.slice(2):e;let o=Ot(t);if(Array.isArray(t))o=t.map(Ot).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ot(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(aD,`
7
+ `)}`}function Br(e,t){let n=e.hasOwnProperty(wp);return n?e[wp]:null}function Vu(e,t){e.forEach(n=>Array.isArray(n)?Vu(n,t):t(n))}function hD(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function hh(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gD(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function gh(e,t,n){let r=$o(e,t);return r>=0?e[r|1]=n:(r=~r,gD(e,r,t,n)),r}function Mc(e,t){let n=$o(e,t);if(n>=0)return e[n|1]}function $o(e,t){return mD(e,t,1)}function mD(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Ur={},wn=[],Po=new be(""),mh=new be("",-1),yh=new be(""),ss=class{get(t,n=Lo){if(n===Lo){let r=new Error(`NullInjectorError: No provider for ${Ot(t)}!`);throw r.name="NullInjectorError",r}return n}};function Ts(e){return e[X_]||null}function vh(e){return e[eD]||null}function Eh(e){return e[tD]||null}function yD(e){let t=Ts(e)||vh(e)||Eh(e);return t!==null&&t.standalone}function _h(e){return{\u0275providers:e}}function vD(...e){return{\u0275providers:Dh(!0,e),\u0275fromNgModule:!0}}function Dh(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Vu(t,s=>{let a=s;$c(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&wh(o,i),n}function wh(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Hu(o,i=>{t(i,r)})}}function $c(e,t,n,r){if(e=Gt(e),!e)return!1;let o=null,i=_p(e),s=!i&&Ts(e);if(!i&&!s){let c=e.ngModule;if(i=_p(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)$c(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Vu(i.imports,d=>{$c(d,t,n,r)&&(l||=[],l.push(d))})}finally{}l!==void 0&&wh(l,t)}if(!a){let l=Br(o)||(()=>new o);t({provide:o,useFactory:l,deps:wn},o),t({provide:yh,useValue:o,multi:!0},o),t({provide:Po,useValue:()=>Ce(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Hu(c,d=>{t(d,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Hu(e,t){for(let n of e)fh(n)&&(n=n.\u0275providers),Array.isArray(n)?Hu(n,t):t(n)}var ED=Le({provide:String,useValue:Le});function Ih(e){return e!==null&&typeof e=="object"&&ED in e}function _D(e){return!!(e&&e.useExisting)}function DD(e){return!!(e&&e.useFactory)}function Gc(e){return typeof e=="function"}var Cs=new be(""),es={},wD={},xc;function $u(){return xc===void 0&&(xc=new ss),xc}var nr=class{},Fo=class extends nr{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,zc(t,s=>this.processProvider(s)),this.records.set(mh,Rr(void 0,this)),o.has("environment")&&this.records.set(nr,Rr(void 0,this));let i=this.records.get(Cs);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(yh,wn,le.Self))}destroy(){xo(this),this._destroyed=!0;let t=pe(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),pe(t)}}onDestroy(t){return xo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){xo(this);let n=Bn(this),r=wt(void 0),o;try{return t()}finally{Bn(n),wt(r)}}get(t,n=Lo,r=le.Default){if(xo(this),t.hasOwnProperty(Ip))return t[Ip](this);r=bs(r);let o,i=Bn(this),s=wt(void 0);try{if(!(r&le.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=ND(t)&&Uu(t);l&&this.injectableDefInScope(l)?c=Rr(Wc(t),es):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&le.Self?$u():this.parent;return n=r&le.Optional&&n===Lo?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[is]=a[is]||[]).unshift(Ot(t)),i)throw a;return dD(a,t,"R3InjectorError",this.source)}else throw a}finally{wt(s),Bn(i)}}resolveInjectorInitializers(){let t=pe(null),n=Bn(this),r=wt(void 0),o;try{let i=this.get(Po,wn,le.Self);for(let s of i)s()}finally{Bn(n),wt(r),pe(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ot(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Gt(t);let n=Gc(t)?t:Gt(t&&t.provide),r=SD(t);if(!Gc(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Rr(void 0,es,!0),o.factory=()=>Hc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=pe(null);try{return n.value===es&&(n.value=wD,n.value=n.factory()),typeof n.value=="object"&&n.value&&CD(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{pe(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Gt(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Wc(e){let t=Uu(e),n=t!==null?t.factory:Br(e);if(n!==null)return n;if(e instanceof be)throw new ge(204,!1);if(e instanceof Function)return ID(e);throw new ge(204,!1)}function ID(e){if(e.length>0)throw new ge(204,!1);let n=J_(e);return n!==null?()=>n.factory(e):()=>new e}function SD(e){if(Ih(e))return Rr(void 0,e.useValue);{let t=bD(e);return Rr(t,es)}}function bD(e,t,n){let r;if(Gc(e)){let o=Gt(e);return Br(o)||Wc(o)}else if(Ih(e))r=()=>Gt(e.useValue);else if(DD(e))r=()=>e.useFactory(...Hc(e.deps||[]));else if(_D(e))r=()=>Ce(Gt(e.useExisting));else{let o=Gt(e&&(e.useClass||e.provide));if(TD(e))r=()=>new o(...Hc(e.deps));else return Br(o)||Wc(o)}return r}function xo(e){if(e.destroyed)throw new ge(205,!1)}function Rr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function TD(e){return!!e.deps}function CD(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ND(e){return typeof e=="function"||typeof e=="object"&&e instanceof be}function zc(e,t){for(let n of e)Array.isArray(n)?zc(n,t):n&&fh(n)?zc(n.\u0275providers,t):t(n)}function Sh(e,t){e instanceof Fo&&xo(e);let n,r=Bn(e),o=wt(void 0);try{return t()}finally{Bn(r),wt(o)}}function MD(){return dh()!==void 0||uD()!=null}var Nn=0,he=1,ee=2,Rt=3,zt=4,rn=5,ko=6,as=7,Xe=8,Bo=9,In=10,at=11,Uo=12,bp=13,zr=14,en=15,jr=16,Lr=17,Vr=18,Ns=19,bh=20,Un=21,Ac=22,cs=23,Tt=24,Oc=25,ct=26,Th=1;var jo=7,xD=8,us=9,It=10;function tr(e){return Array.isArray(e)&&typeof e[Th]=="object"}function sr(e){return Array.isArray(e)&&e[Th]===!0}function Ch(e){return(e.flags&4)!==0}function Go(e){return e.componentOffset>-1}function Gu(e){return(e.flags&1)===1}function ar(e){return!!e.template}function ls(e){return(e[ee]&512)!==0}function Wo(e){return(e[ee]&256)===256}var qc=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Nh(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function AD(e){return e.type.prototype.ngOnChanges&&(e.setInput=RD),OD}function OD(){let e=xh(this),t=e?.current;if(t){let n=e.previous;if(n===Ur)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function RD(e,t,n,r,o){let i=this.declaredInputs[r],s=xh(e)||LD(e,{previous:Ur,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new qc(l&&l.currentValue,n,c===Ur),Nh(e,t,o,n)}var Mh="__ngSimpleChanges__";function xh(e){return e[Mh]||null}function LD(e,t){return e[Mh]=t}var Tp=null;var Re=function(e,t=null,n){Tp?.(e,t,n)},PD="svg",FD="math";function Sn(e){for(;Array.isArray(e);)e=e[Nn];return e}function Ah(e,t){return Sn(t[e])}function Wn(e,t){return Sn(t[e.index])}function Wu(e,t){return e.data[t]}function Oh(e,t){return e[t]}function jn(e,t){let n=t[e];return tr(n)?n:n[Nn]}function zu(e){return(e[ee]&128)===128}function Hr(e,t){return t==null?null:e[t]}function Rh(e){e[Lr]=0}function qu(e){e[ee]&1024||(e[ee]|=1024,zu(e)&&xs(e))}function kD(e,t){for(;e>0;)t=t[zr],e--;return t}function Ms(e){return!!(e[ee]&9216||e[Tt]?.dirty)}function Yc(e){e[In].changeDetectionScheduler?.notify(8),e[ee]&64&&(e[ee]|=1024),Ms(e)&&xs(e)}function xs(e){e[In].changeDetectionScheduler?.notify(0);let t=rr(e);for(;t!==null&&!(t[ee]&8192||(t[ee]|=8192,!zu(t)));)t=rr(t)}function Lh(e,t){if(Wo(e))throw new ge(911,!1);e[Un]===null&&(e[Un]=[]),e[Un].push(t)}function BD(e,t){if(e[Un]===null)return;let n=e[Un].indexOf(t);n!==-1&&e[Un].splice(n,1)}function rr(e){let t=e[Rt];return sr(t)?t[Rt]:t}function UD(e){return e[as]??=[]}function jD(e){return e.cleanup??=[]}var ce={lFrame:$h(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Zc=!1;function VD(){return ce.lFrame.elementDepthCount}function HD(){ce.lFrame.elementDepthCount++}function $D(){ce.lFrame.elementDepthCount--}function Ph(){return ce.bindingsEnabled}function GD(){return ce.skipHydrationRootTNode!==null}function WD(e){return ce.skipHydrationRootTNode===e}function zD(){ce.skipHydrationRootTNode=null}function Oe(){return ce.lFrame.lView}function Ct(){return ce.lFrame.tView}function zo(e){return ce.lFrame.contextLView=e,e[Xe]}function qo(e){return ce.lFrame.contextLView=null,e}function qr(){let e=Fh();for(;e!==null&&e.type===64;)e=e.parent;return e}function Fh(){return ce.lFrame.currentTNode}function qD(){let e=ce.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Yr(e,t){let n=ce.lFrame;n.currentTNode=e,n.isParent=t}function kh(){return ce.lFrame.isParent}function YD(){ce.lFrame.isParent=!1}function Bh(){return Zc}function Cp(e){let t=Zc;return Zc=e,t}function Yu(){let e=ce.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ZD(e){return ce.lFrame.bindingIndex=e}function As(){return ce.lFrame.bindingIndex++}function Uh(e){let t=ce.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function KD(){return ce.lFrame.inI18n}function JD(e,t){let n=ce.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kc(t)}function QD(){return ce.lFrame.currentDirectiveIndex}function Kc(e){ce.lFrame.currentDirectiveIndex=e}function XD(e){let t=ce.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function jh(e){ce.lFrame.currentQueryIndex=e}function e0(e){let t=e[he];return t.type===2?t.declTNode:t.type===1?e[rn]:null}function Vh(e,t,n){if(n&le.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&le.Host);)if(o=e0(i),o===null||(i=i[zr],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=ce.lFrame=Hh();return r.currentTNode=t,r.lView=e,!0}function Zu(e){let t=Hh(),n=e[he];ce.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Hh(){let e=ce.lFrame,t=e===null?null:e.child;return t===null?$h(e):t}function $h(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Gh(){let e=ce.lFrame;return ce.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Wh=Gh;function Ku(){let e=Gh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function t0(e){return(ce.lFrame.contextLView=kD(e,ce.lFrame.contextLView))[Xe]}function zn(){return ce.lFrame.selectedIndex}function or(e){ce.lFrame.selectedIndex=e}function zh(){let e=ce.lFrame;return Wu(e.tView,e.selectedIndex)}function n0(){return ce.lFrame.currentNamespace}var qh=!0;function Ju(){return qh}function Qu(e){qh=e}function r0(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=AD(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Yh(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:d}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),d!=null&&(e.destroyHooks??=[]).push(n,d)}}function ts(e,t,n){Zh(e,t,3,n)}function ns(e,t,n,r){(e[ee]&3)===n&&Zh(e,t,n,r)}function Rc(e,t){let n=e[ee];(n&3)===t&&(n&=16383,n+=1,e[ee]=n)}function Zh(e,t,n,r){let o=r!==void 0?e[Lr]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Lr]+=65536),(a<i||i==-1)&&(o0(e,n,t,c),e[Lr]=(e[Lr]&4294901760)+c+2),c++}function Np(e,t){Re(4,e,t);let n=pe(null);try{t.call(e)}finally{pe(n),Re(5,e,t)}}function o0(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[ee]>>14<e[Lr]>>16&&(e[ee]&3)===t&&(e[ee]+=16384,Np(a,i)):Np(a,i)}var kr=-1,Vo=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function i0(e){return e instanceof Vo}function s0(e){return(e.flags&8)!==0}function a0(e){return(e.flags&16)!==0}function c0(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];l0(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function u0(e){return e===3||e===4||e===6}function l0(e){return e.charCodeAt(0)===64}function Xu(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Mp(e,n,o,null,t[++r]):Mp(e,n,o,null,null))}}return e}function Mp(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Lc={},Jc=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=bs(r);let o=this.injector.get(t,Lc,r);return o!==Lc||n===Lc?o:this.parentInjector.get(t,n,r)}};function f0(e){return e!==kr}function Qc(e){return e&32767}function d0(e){return e>>16}function Xc(e,t){let n=d0(e),r=t;for(;n>0;)r=r[zr],n--;return r}var eu=!0;function fs(e){let t=eu;return eu=e,t}var p0=256,Kh=p0-1,Jh=5,h0=0,Xt={};function g0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Oo)&&(r=n[Oo]),r==null&&(r=n[Oo]=h0++);let o=r&Kh,i=1<<o;t.data[e+(o>>Jh)]|=i}function Qh(e,t){let n=Xh(e,t);if(n!==-1)return n;let r=t[he];r.firstCreatePass&&(e.injectorIndex=t.length,Pc(r.data,e),Pc(t,null),Pc(r.blueprint,null));let o=eg(e,t),i=e.injectorIndex;if(f0(o)){let s=Qc(o),a=Xc(o,t),c=a[he].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Pc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Xh(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function eg(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=ig(o),r===null)return kr;if(n++,o=o[zr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return kr}function m0(e,t,n){g0(e,t,n)}function tg(e,t,n){if(n&le.Optional||e!==void 0)return e;ju(t,"NodeInjector")}function ng(e,t,n,r){if(n&le.Optional&&r===void 0&&(r=null),(n&(le.Self|le.Host))===0){let o=e[Bo],i=wt(void 0);try{return o?o.get(t,r,n&le.Optional):ph(t,r,n&le.Optional)}finally{wt(i)}}return tg(r,t,n)}function rg(e,t,n,r=le.Default,o){if(e!==null){if(t[ee]&2048&&!(r&le.Self)){let s=D0(e,t,n,r,Xt);if(s!==Xt)return s}let i=og(e,t,n,r,Xt);if(i!==Xt)return i}return ng(t,n,r,o)}function og(e,t,n,r,o){let i=E0(n);if(typeof i=="function"){if(!Vh(t,e,r))return r&le.Host?tg(o,n,r):ng(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&le.Optional))ju(n);else return s}finally{Wh()}}else if(typeof i=="number"){let s=null,a=Xh(e,t),c=kr,l=r&le.Host?t[en][rn]:null;for((a===-1||r&le.SkipSelf)&&(c=a===-1?eg(e,t):t[a+8],c===kr||!Ap(r,!1)?a=-1:(s=t[he],a=Qc(c),t=Xc(c,t)));a!==-1;){let d=t[he];if(xp(i,a,d.data)){let h=y0(a,t,n,s,r,l);if(h!==Xt)return h}c=t[a+8],c!==kr&&Ap(r,t[he].data[a+8]===l)&&xp(i,a,t)?(s=d,a=Qc(c),t=Xc(c,t)):a=-1}}return o}function y0(e,t,n,r,o,i){let s=t[he],a=s.data[e+8],c=r==null?Go(a)&&eu:r!=s&&(a.type&3)!==0,l=o&le.Host&&i===a,d=v0(a,s,n,c,l);return d!==null?tu(t,s,d,a):Xt}function v0(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,d=i>>20,h=r?a:a+d,y=o?a+d:l;for(let v=h;v<y;v++){let b=s[v];if(v<c&&n===b||v>=c&&b.type===n)return v}if(o){let v=s[c];if(v&&ar(v)&&v.type===n)return c}return null}function tu(e,t,n,r){let o=e[n],i=t.data;if(i0(o)){let s=o;s.resolving&&rD(nD(i[n]));let a=fs(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?wt(s.injectImpl):null,d=Vh(e,r,le.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&r0(n,i[n],t)}finally{l!==null&&wt(l),fs(a),s.resolving=!1,Wh()}}return o}function E0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Oo)?e[Oo]:void 0;return typeof t=="number"?t>=0?t&Kh:_0:t}function xp(e,t,n){let r=1<<e;return!!(n[t+(e>>Jh)]&r)}function Ap(e,t){return!(e&le.Self)&&!(e&le.Host&&t)}var ds=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return rg(this._tNode,this._lView,t,bs(r),n)}};function _0(){return new ds(qr(),Oe())}function D0(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[ee]&2048&&!ls(s);){let a=og(i,s,n,r|le.Self,Xt);if(a!==Xt)return a;let c=i.parent;if(!c){let l=s[bh];if(l){let d=l.get(n,Xt,r);if(d!==Xt)return d}c=ig(s),s=s[zr]}i=c}return o}function ig(e){let t=e[he],n=t.type;return n===2?t.declTNode:n===1?e[rn]:null}function Op(e,t=null,n=null,r){let o=w0(e,t,n,r);return o.resolveInjectorInitializers(),o}function w0(e,t=null,n=null,r,o=new Set){let i=[n||wn,vD(e)];return r=r||(typeof e=="object"?void 0:Ot(e)),new Fo(i,t||$u(),r||null,o)}var tn=class e{static THROW_IF_NOT_FOUND=Lo;static NULL=new ss;static create(t,n){if(Array.isArray(t))return Op({name:""},n,t,"");{let r=t.name??"";return Op({name:r},t.parent,t.providers,r)}}static \u0275prov=Ue({token:e,providedIn:"any",factory:()=>Ce(mh)});static __NG_ELEMENT_ID__=-1};var I0=new be("");I0.__NG_ELEMENT_ID__=e=>{let t=qr();if(t===null)throw new ge(204,!1);if(t.type&2)return t.value;if(e&le.Optional)return null;throw new ge(204,!1)};var sg=!1,ag=(()=>{class e{static __NG_ELEMENT_ID__=S0;static __NG_ENV_ID__=n=>n}return e})(),nu=class extends ag{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Lh(this._lView,t),()=>BD(this._lView,t)}};function S0(){return new nu(Oe())}var Vn=class{},Os=new be("",{providedIn:"root",factory:()=>!1});var cg=new be(""),el=new be(""),Rs=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new To(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=Ue({token:e,providedIn:"root",factory:()=>new e})}return e})();var ru=class extends Dn{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,MD()&&(this.destroyRef=Se(ag,{optional:!0})??void 0,this.pendingTasks=Se(Rs,{optional:!0})??void 0)}emit(t){let n=pe(null);try{super.next(t)}finally{pe(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ft&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Wt=ru;function ps(...e){}function ug(e){let t,n;function r(){e=ps;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Rp(e){return queueMicrotask(()=>e()),()=>{e=ps}}var tl="isAngularZone",hs=tl+"_ID",b0=0,nt=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Wt(!1);onMicrotaskEmpty=new Wt(!1);onStable=new Wt(!1);onError=new Wt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=sg}=t;if(typeof Zone>"u")throw new ge(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,N0(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(tl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new ge(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new ge(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,T0,ps,ps);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},T0={};function nl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function C0(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ug(()=>{e.callbackScheduled=!1,ou(e),e.isCheckStableRunning=!0,nl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ou(e)}function N0(e){let t=()=>{C0(e)},n=b0++;e._inner=e._inner.fork({name:"angular",properties:{[tl]:!0,[hs]:n,[hs+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(M0(c))return r.invokeTask(i,s,a,c);try{return Lp(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Pp(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Lp(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!x0(c)&&t(),Pp(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ou(e),nl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ou(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Lp(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Pp(e){e._nesting--,nl(e)}var gs=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Wt;onMicrotaskEmpty=new Wt;onStable=new Wt;onError=new Wt;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function M0(e){return lg(e,"__ignore_ng_zone__")}function x0(e){return lg(e,"__scheduler_tick__")}function lg(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Hn=class{_console=console;handleError(t){this._console.error("ERROR",t)}},A0=new be("",{providedIn:"root",factory:()=>{let e=Se(nt),t=Se(Hn);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function O0(){return fg(qr(),Oe())}function fg(e,t){return new Ls(Wn(e,t))}var Ls=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=O0}return e})();function Zr(e,t){let n=$d(e),r=n[_n];return t?.equal&&(r.equal=t.equal),n.set=o=>yc(r,o),n.update=o=>Gd(r,o),n.asReadonly=R0.bind(n),n}function R0(){let e=this[_n];if(e.readonlyFn===void 0){let t=()=>this();t[_n]=e,e.readonlyFn=t}return e.readonlyFn}function dg(e){return(e.flags&128)===128}var pg=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(pg||{}),hg=new Map,L0=0;function P0(){return L0++}function F0(e){hg.set(e[Ns],e)}function iu(e){hg.delete(e[Ns])}var Fp="__ngContext__";function Yo(e,t){tr(t)?(e[Fp]=t[Ns],F0(t)):e[Fp]=t}function gg(e){return yg(e[Uo])}function mg(e){return yg(e[zt])}function yg(e){for(;e!==null&&!sr(e);)e=e[zt];return e}var su;function vg(e){su=e}function Eg(){if(su!==void 0)return su;if(typeof document<"u")return document;throw new ge(210,!1)}var rl=new be("",{providedIn:"root",factory:()=>k0}),k0="ng",ol=new be(""),Zo=new be("",{providedIn:"platform",factory:()=>"unknown"});var il=new be("",{providedIn:"root",factory:()=>Eg().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var B0="h",U0="b";var _g=!1,j0=new be("",{providedIn:"root",factory:()=>_g});var Dg=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Dg||{}),Ps=new be(""),kp=new Set;function Ko(e){kp.has(e)||(kp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var V0=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Ue({token:e,providedIn:"root",factory:()=>new e})}return e})();var H0=()=>null;function wg(e,t,n=!1){return H0(e,t,n)}function Ig(e,t){let n=e.contentQueries;if(n!==null){let r=pe(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];jh(i),a.contentQueries(2,t[s],s)}}}finally{pe(r)}}}function au(e,t,n){jh(0);let r=pe(null);try{t(e,n)}finally{pe(r)}}function Sg(e,t,n){if(Ch(t)){let r=pe(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{pe(r)}}}var nn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(nn||{}),Ki;function $0(){if(Ki===void 0&&(Ki=null,Ro.trustedTypes))try{Ki=Ro.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ki}function Fs(e){return $0()?.createHTML(e)||e}var Ji;function G0(){if(Ji===void 0&&(Ji=null,Ro.trustedTypes))try{Ji=Ro.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ji}function Bp(e){return G0()?.createHTML(e)||e}var bn=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ah})`}},cu=class extends bn{getTypeName(){return"HTML"}},uu=class extends bn{getTypeName(){return"Style"}},lu=class extends bn{getTypeName(){return"Script"}},fu=class extends bn{getTypeName(){return"URL"}},du=class extends bn{getTypeName(){return"ResourceURL"}};function Lt(e){return e instanceof bn?e.changingThisBreaksApplicationSecurity:e}function qn(e,t){let n=W0(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ah})`)}return n===t}function W0(e){return e instanceof bn&&e.getTypeName()||null}function bg(e){return new cu(e)}function Tg(e){return new uu(e)}function Cg(e){return new lu(e)}function Ng(e){return new fu(e)}function Mg(e){return new du(e)}function z0(e){let t=new hu(e);return q0()?new pu(t):t}var pu=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Fs(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},hu=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Fs(t),n}};function q0(){try{return!!new window.DOMParser().parseFromString(Fs(""),"text/html")}catch{return!1}}var Y0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ks(e){return e=String(e),e.match(Y0)?e:"unsafe:"+e}function Mn(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Jo(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var xg=Mn("area,br,col,hr,img,wbr"),Ag=Mn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Og=Mn("rp,rt"),Z0=Jo(Og,Ag),K0=Jo(Ag,Mn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),J0=Jo(Og,Mn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Up=Jo(xg,K0,J0,Z0),Rg=Mn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Q0=Mn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),X0=Mn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),ew=Jo(Rg,Q0,X0),tw=Mn("script,style,template"),gu=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=ow(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=rw(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=jp(t).toLowerCase();if(!Up.hasOwnProperty(n))return this.sanitizedSomething=!0,!tw.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!ew.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;Rg[a]&&(c=ks(c)),this.buf.push(" ",s,'="',Vp(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=jp(t).toLowerCase();Up.hasOwnProperty(n)&&!xg.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Vp(t))}};function nw(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function rw(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Lg(t);return t}function ow(e){let t=e.firstChild;if(t&&nw(e,t))throw Lg(t);return t}function jp(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Lg(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var iw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sw=/([^\#-~ |!])/g;function Vp(e){return e.replace(/&/g,"&amp;").replace(iw,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(sw,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Qi;function sl(e,t){let n=null;try{Qi=Qi||z0(e);let r=t?String(t):"";n=Qi.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Qi.getInertBodyElement(r)}while(r!==i);let a=new gu().sanitizeChildren(Hp(n)||n);return Fs(a)}finally{if(n){let r=Hp(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Hp(e){return"content"in e&&aw(e)?e.content:null}function aw(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var on=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(on||{});function al(e){let t=Pg();return t?Bp(t.sanitize(on.HTML,e)||""):qn(e,"HTML")?Bp(Lt(e)):sl(Eg(),Ss(e))}function xn(e){let t=Pg();return t?t.sanitize(on.URL,e)||"":qn(e,"URL")?Lt(e):ks(Ss(e))}function Pg(){let e=Oe();return e&&e[In].sanitizer}function cw(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Fg="ng-template";function uw(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&cw(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(cl(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function cl(e){return e.type===4&&e.value!==Fg}function lw(e,t,n){let r=e.type===4&&!n?Fg:e.value;return t===r}function fw(e,t,n){let r=4,o=e.attrs,i=o!==null?hw(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!$t(r)&&!$t(c))return!1;if(s&&$t(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!lw(e,c,n)||c===""&&t.length===1){if($t(r))return!1;s=!0}}else if(r&8){if(o===null||!uw(e,o,c,n)){if($t(r))return!1;s=!0}}else{let l=t[++a],d=dw(c,o,cl(e),n);if(d===-1){if($t(r))return!1;s=!0;continue}if(l!==""){let h;if(d>i?h="":h=o[d+1].toLowerCase(),r&2&&l!==h){if($t(r))return!1;s=!0}}}}return $t(r)||s}function $t(e){return(e&1)===0}function dw(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return gw(t,e)}function pw(e,t,n=!1){for(let r=0;r<t.length;r++)if(fw(e,t[r],n))return!0;return!1}function hw(e){for(let t=0;t<e.length;t++){let n=e[t];if(u0(n))return t}return e.length}function gw(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function $p(e,t){return e?":not("+t.trim()+")":t}function mw(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!$t(s)&&(t+=$p(i,o),o=""),r=s,i=i||!$t(r);n++}return o!==""&&(t+=$p(i,o)),t}function yw(e){return e.map(mw).join(",")}function vw(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!$t(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Pt={};function Ew(e,t){return e.createText(t)}function _w(e,t,n){e.setValue(t,n)}function kg(e,t,n){return e.createElement(t,n)}function mu(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Bg(e,t,n){e.appendChild(t,n)}function Gp(e,t,n,r,o){r!==null?mu(e,t,n,r,o):Bg(e,t,n)}function Dw(e,t,n){e.removeChild(null,t,n)}function ww(e,t,n){e.setAttribute(t,"style",n)}function Iw(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Ug(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&c0(e,t,r),o!==null&&Iw(e,t,o),i!==null&&ww(e,t,i)}function ul(e,t,n,r,o,i,s,a,c,l,d){let h=ct+r,y=h+o,v=Sw(h,y),b=typeof l=="function"?l():l;return v[he]={type:e,blueprint:v,template:n,queries:null,viewQuery:a,declTNode:t,data:v.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:y,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:b,incompleteFirstPass:!1,ssrId:d}}function Sw(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Pt);return n}function bw(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ul(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function ll(e,t,n,r,o,i,s,a,c,l,d){let h=t.blueprint.slice();return h[Nn]=o,h[ee]=r|4|128|8|64|1024,(l!==null||e&&e[ee]&2048)&&(h[ee]|=2048),Rh(h),h[Rt]=h[zr]=e,h[Xe]=n,h[In]=s||e&&e[In],h[at]=a||e&&e[at],h[Bo]=c||e&&e[Bo]||null,h[rn]=i,h[Ns]=P0(),h[ko]=d,h[bh]=l,h[en]=t.type==2?e[en]:h,h}function Tw(e,t,n){let r=Wn(t,e),o=bw(n),i=e[In].rendererFactory,s=Hg(e,ll(e,o,null,jg(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function jg(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Vg(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Hg(e,t){return e[Uo]?e[bp][zt]=t:e[Uo]=t,e[bp]=t,t}function st(e=1){$g(Ct(),Oe(),zn()+e,!1)}function $g(e,t,n,r){if(!r)if((t[ee]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ts(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ns(t,i,0,n)}or(n)}var Bs=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Bs||{});function yu(e,t,n,r){let o=pe(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Bs.SignalBased)!==0&&(c=t[i][_n]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Nh(t,c,i,r)}finally{pe(o)}}function Gg(e,t,n,r,o){let i=zn(),s=r&2;try{or(-1),s&&t.length>ct&&$g(e,t,ct,!1),Re(s?2:0,o),n(r,o)}finally{or(i),Re(s?3:1,o)}}function fl(e,t,n){Ow(e,t,n),(n.flags&64)===64&&Rw(e,t,n)}function Wg(e,t,n=Wn){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Cw(e,t,n,r){let i=r.get(j0,_g)||n===nn.ShadowDom,s=e.selectRootElement(t,i);return Nw(s),s}function Nw(e){Mw(e)}var Mw=()=>null;function xw(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function zg(e,t,n,r,o,i,s,a){if(!a&&dl(t,e,n,r,o)){Go(t)&&Aw(n,t.index);return}if(t.type&3){let c=Wn(t,n);r=xw(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function Aw(e,t){let n=jn(t,e);n[ee]&16||(n[ee]|=64)}function Ow(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Go(n)&&Tw(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Qh(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=tu(t,e,s,n);if(Yo(c,t),i!==null&&Pw(t,s-r,c,a,n,i),ar(a)){let l=jn(n.index,t);l[Xe]=tu(t,e,s,n)}}}function Rw(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=QD();try{or(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Kc(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Lw(c,l)}}finally{or(-1),Kc(s)}}function Lw(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function qg(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];pw(t,i.selectors,!1)&&(r??=[],ar(i)?r.unshift(i):r.push(i))}return r}function Pw(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];yu(r,n,c,l)}}function Yg(e,t){let n=e[Bo],r=n?n.get(Hn,null):null;r&&r.handleError(t)}function dl(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],d=s[c+1],h=t.data[l];yu(h,n[l],d,o),a=!0}if(i)for(let c of i){let l=n[c],d=t.data[c];yu(d,l,r,o),a=!0}return a}function Fw(e,t){let n=jn(t,e),r=n[he];kw(r,n);let o=n[Nn];o!==null&&n[ko]===null&&(n[ko]=wg(o,n[Bo])),Re(18),pl(r,n,n[Xe]),Re(19,n[Xe])}function kw(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function pl(e,t,n){Zu(t);try{let r=e.viewQuery;r!==null&&au(1,r,n);let o=e.template;o!==null&&Gg(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Vr]?.finishViewCreation(e),e.staticContentQueries&&Ig(e,t),e.staticViewQueries&&au(2,e.viewQuery,n);let i=e.components;i!==null&&Bw(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[ee]&=-5,Ku()}}function Bw(e,t){for(let n=0;n<t.length;n++)Fw(e,t[n])}function hl(e,t,n,r){let o=pe(null);try{let i=t.tView,a=e[ee]&4096?4096:16,c=ll(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[jr]=l;let d=e[Vr];return d!==null&&(c[Vr]=d.createEmbeddedView(i)),pl(i,c,n),c}finally{pe(o)}}function gl(e,t){return!t||t.firstChild===null||dg(e)}var Uw;function ml(e,t){return Uw(e,t)}var Tn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Tn||{});function Zg(e){return(e.flags&32)===32}function Pr(e,t,n,r,o){if(r!=null){let i,s=!1;sr(r)?i=r:tr(r)&&(s=!0,r=r[Nn]);let a=Sn(r);e===0&&n!==null?o==null?Bg(t,n,a):mu(t,n,a,o||null,!0):e===1&&n!==null?mu(t,n,a,o||null,!0):e===2?Dw(t,a,s):e===3&&t.destroyNode(a),i!=null&&Jw(t,e,i,n,o)}}function jw(e,t){Kg(e,t),t[Nn]=null,t[rn]=null}function Vw(e,t,n,r,o,i){r[Nn]=o,r[rn]=t,Us(e,r,n,1,o,i)}function Kg(e,t){t[In].changeDetectionScheduler?.notify(9),Us(e,t,t[at],2,null,null)}function Hw(e){let t=e[Uo];if(!t)return Fc(e[he],e);for(;t;){let n=null;if(tr(t))n=t[Uo];else{let r=t[It];r&&(n=r)}if(!n){for(;t&&!t[zt]&&t!==e;)tr(t)&&Fc(t[he],t),t=t[Rt];t===null&&(t=e),tr(t)&&Fc(t[he],t),n=t&&t[zt]}t=n}}function yl(e,t){let n=e[us],r=n.indexOf(t);n.splice(r,1)}function vl(e,t){if(Wo(t))return;let n=t[at];n.destroyNode&&Us(e,t,n,3,null,null),Hw(t)}function Fc(e,t){if(Wo(t))return;let n=pe(null);try{t[ee]&=-129,t[ee]|=256,t[Tt]&&mc(t[Tt]),Gw(e,t),$w(e,t),t[he].type===1&&t[at].destroy();let r=t[jr];if(r!==null&&sr(t[Rt])){r!==t[Rt]&&yl(r,t);let o=t[Vr];o!==null&&o.detachView(e)}iu(t)}finally{pe(n)}}function $w(e,t){let n=e.cleanup,r=t[as];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[as]=null);let o=t[Un];if(o!==null){t[Un]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[cs];if(i!==null){t[cs]=null;for(let s of i)s.destroy()}}function Gw(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Vo)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];Re(4,a,c);try{c.call(a)}finally{Re(5,a,c)}}else{Re(4,o,i);try{i.call(o)}finally{Re(5,o,i)}}}}}function Ww(e,t,n){return zw(e,t.parent,n)}function zw(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Nn];if(Go(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===nn.None||o===nn.Emulated)return null}return Wn(r,n)}function qw(e,t,n){return Zw(e,t,n)}function Yw(e,t,n){return e.type&40?Wn(e,n):null}var Zw=Yw,Wp;function El(e,t,n,r){let o=Ww(e,r,t),i=t[at],s=r.parent||t[rn],a=qw(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Gp(i,o,n[c],a,!1);else Gp(i,o,n,a,!1);Wp!==void 0&&Wp(i,r,t,n,o)}function Ao(e,t){if(t!==null){let n=t.type;if(n&3)return Wn(t,e);if(n&4)return vu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Ao(e,r);{let o=e[t.index];return sr(o)?vu(-1,o):Sn(o)}}else{if(n&128)return Ao(e,t.next);if(n&32)return ml(t,e)()||Sn(e[t.index]);{let r=Jg(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=rr(e[en]);return Ao(o,r)}else return Ao(e,t.next)}}}return null}function Jg(e,t){if(t!==null){let r=e[en][rn],o=t.projection;return r.projection[o]}return null}function vu(e,t){let n=It+e+1;if(n<t.length){let r=t[n],o=r[he].firstChild;if(o!==null)return Ao(r,o)}return t[jo]}function _l(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Yo(Sn(a),r),n.flags|=2),!Zg(n))if(c&8)_l(e,t,n.child,r,o,i,!1),Pr(t,e,o,a,i);else if(c&32){let l=ml(n,r),d;for(;d=l();)Pr(t,e,o,d,i);Pr(t,e,o,a,i)}else c&16?Kw(e,t,r,n,o,i):Pr(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Us(e,t,n,r,o,i){_l(n,r,e.firstChild,t,o,i,!1)}function Kw(e,t,n,r,o,i){let s=n[en],c=s[rn].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let d=c[l];Pr(t,e,o,d,i)}else{let l=c,d=s[Rt];dg(r)&&(l.flags|=128),_l(e,t,l,d,o,i,!0)}}function Jw(e,t,n,r,o){let i=n[jo],s=Sn(n);i!==s&&Pr(t,e,r,i,o);for(let a=It;a<n.length;a++){let c=n[a];Us(c[he],c,e,t,r,i)}}function Qw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Tn.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Tn.Important),e.setStyle(n,r,o,i))}}function ms(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Sn(i)),sr(i)&&Xw(i,r);let s=n.type;if(s&8)ms(e,t,n.child,r);else if(s&32){let a=ml(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Jg(t,n);if(Array.isArray(a))r.push(...a);else{let c=rr(t[en]);ms(c[he],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Xw(e,t){for(let n=It;n<e.length;n++){let r=e[n],o=r[he].firstChild;o!==null&&ms(r[he],r,o,t)}e[jo]!==e[Nn]&&t.push(e[jo])}function Qg(e){if(e[Oc]!==null){for(let t of e[Oc])t.impl.addSequence(t);e[Oc].length=0}}var Xg=[];function eI(e){return e[Tt]??tI(e)}function tI(e){let t=Xg.pop()??Object.create(rI);return t.lView=e,t}function nI(e){e.lView[Tt]!==e&&(e.lView=null,Xg.push(e))}var rI=ie(N({},Ni),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{xs(e.lView)},consumerOnSignalRead(){this.lView[Tt]=this}});function oI(e){let t=e[Tt]??Object.create(iI);return t.lView=e,t}var iI=ie(N({},Ni),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=rr(e.lView);for(;t&&!em(t[he]);)t=rr(t);t&&qu(t)},consumerOnSignalRead(){this.lView[Tt]=this}});function em(e){return e.type!==2}function tm(e){if(e[cs]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[cs])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[ee]&8192)}}var sI=100;function nm(e,t=!0,n=0){let o=e[In].rendererFactory,i=!1;i||o.begin?.();try{aI(e,n)}catch(s){throw t&&Yg(e,s),s}finally{i||o.end?.()}}function aI(e,t){let n=Bh();try{Cp(!0),Eu(e,t);let r=0;for(;Ms(e);){if(r===sI)throw new ge(103,!1);r++,Eu(e,1)}}finally{Cp(n)}}function cI(e,t,n,r){if(Wo(t))return;let o=t[ee],i=!1,s=!1;Zu(t);let a=!0,c=null,l=null;i||(em(e)?(l=eI(t),c=hc(l)):Od()===null?(a=!1,l=oI(t),c=hc(l)):t[Tt]&&(mc(t[Tt]),t[Tt]=null));try{Rh(t),ZD(e.bindingStartIndex),n!==null&&Gg(e,t,n,2,r);let d=(o&3)===3;if(!i)if(d){let v=e.preOrderCheckHooks;v!==null&&ts(t,v,null)}else{let v=e.preOrderHooks;v!==null&&ns(t,v,0,null),Rc(t,0)}if(s||uI(t),tm(t),rm(t,0),e.contentQueries!==null&&Ig(e,t),!i)if(d){let v=e.contentCheckHooks;v!==null&&ts(t,v)}else{let v=e.contentHooks;v!==null&&ns(t,v,1),Rc(t,1)}fI(e,t);let h=e.components;h!==null&&im(t,h,0);let y=e.viewQuery;if(y!==null&&au(2,y,r),!i)if(d){let v=e.viewCheckHooks;v!==null&&ts(t,v)}else{let v=e.viewHooks;v!==null&&ns(t,v,2),Rc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ac]){for(let v of t[Ac])v();t[Ac]=null}i||(Qg(t),t[ee]&=-73)}catch(d){throw i||xs(t),d}finally{l!==null&&(Fd(l,c),a&&nI(l)),Ku()}}function rm(e,t){for(let n=gg(e);n!==null;n=mg(n))for(let r=It;r<n.length;r++){let o=n[r];om(o,t)}}function uI(e){for(let t=gg(e);t!==null;t=mg(t)){if(!(t[ee]&2))continue;let n=t[us];for(let r=0;r<n.length;r++){let o=n[r];qu(o)}}}function lI(e,t,n){Re(18);let r=jn(t,e);om(r,n),Re(19,r[Xe])}function om(e,t){zu(e)&&Eu(e,t)}function Eu(e,t){let r=e[he],o=e[ee],i=e[Tt],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&gc(i)),s||=!1,i&&(i.dirty=!1),e[ee]&=-9217,s)cI(r,e,r.template,e[Xe]);else if(o&8192){tm(e),rm(e,1);let a=r.components;a!==null&&im(e,a,1),Qg(e)}}function im(e,t,n){for(let r=0;r<t.length;r++)lI(e,t[r],n)}function fI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)or(~o);else{let i=o,s=n[++r],a=n[++r];JD(s,i);let c=t[i];Re(24,c),a(2,c),Re(25,c)}}}finally{or(-1)}}function Dl(e,t){let n=Bh()?64:1088;for(e[In].changeDetectionScheduler?.notify(t);e;){e[ee]|=n;let r=rr(e);if(ls(e)&&!r)return e;e=r}return null}function dI(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function sm(e,t){let n=It+t;if(n<e.length)return e[n]}function wl(e,t,n,r=!0){let o=t[he];if(pI(o,t,e,n),r){let s=vu(n,e),a=t[at],c=a.parentNode(e[jo]);c!==null&&Vw(o,e[rn],a,t,c,s)}let i=t[ko];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function am(e,t){let n=Il(e,t);return n!==void 0&&vl(n[he],n),n}function Il(e,t){if(e.length<=It)return;let n=It+t,r=e[n];if(r){let o=r[jr];o!==null&&o!==e&&yl(o,r),t>0&&(e[n-1][zt]=r[zt]);let i=hh(e,It+t);jw(r[he],r);let s=i[Vr];s!==null&&s.detachView(i[he]),r[Rt]=null,r[zt]=null,r[ee]&=-129}return r}function pI(e,t,n,r){let o=It+r,i=n.length;r>0&&(n[o-1][zt]=t),r<i-It?(t[zt]=n[o],hD(n,It+r,t)):(n.push(t),t[zt]=null),t[Rt]=n;let s=t[jr];s!==null&&n!==s&&cm(s,t);let a=t[Vr];a!==null&&a.insertView(e),Yc(t),t[ee]|=128}function cm(e,t){let n=e[us],r=t[Rt];if(tr(r))e[ee]|=2;else{let o=r[Rt][en];t[en]!==o&&(e[ee]|=2)}n===null?e[us]=[t]:n.push(t)}var _u=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[he];return ms(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[Xe]}get dirty(){return!!(this._lView[ee]&9280)||!!this._lView[Tt]?.dirty}set context(t){this._lView[Xe]=t}get destroyed(){return Wo(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Rt];if(sr(t)){let n=t[xD],r=n?n.indexOf(this):-1;r>-1&&(Il(t,r),hh(n,r))}this._attachedToViewContainer=!1}vl(this._lView[he],this._lView)}onDestroy(t){Lh(this._lView,t)}markForCheck(){Dl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){qu(this._cdRefInjectingView||this._lView)}detach(){this._lView[ee]&=-129}reattach(){Yc(this._lView),this._lView[ee]|=128}detectChanges(){this._lView[ee]|=1024,nm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ge(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=ls(this._lView),n=this._lView[jr];n!==null&&!t&&yl(n,this._lView),Kg(this._lView[he],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ge(902,!1);this._appRef=t;let n=ls(this._lView),r=this._lView[jr];r!==null&&!n&&cm(r,this._lView),Yc(this._lView)}};function js(e,t,n,r,o){let i=e.data[t];if(i===null)i=hI(e,t,n,r,o),KD()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=qD();i.injectorIndex=s===null?-1:s.injectorIndex}return Yr(i,!0),i}function hI(e,t,n,r,o){let i=Fh(),s=kh(),a=s?i:i&&i.parent,c=e.data[t]=mI(e,a,n,t,r,o);return gI(e,c,i,s),c}function gI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function mI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return GD()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var r1=new RegExp(`^(\\d+)*(${U0}|${B0})*(.*)`);var yI=()=>null;function Sl(e,t){return yI(e,t)}var Du=class{},ys=class{},wu=class{resolveComponentFactory(t){throw Error(`No component factory found for ${Ot(t)}.`)}},$n=class{static NULL=new wu},$r=class{};var vI=(()=>{class e{static \u0275prov=Ue({token:e,providedIn:"root",factory:()=>null})}return e})();function zp(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=jc(o,a);else if(i==2){let c=a,l=t[++s];r=jc(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Kr(e,t=le.Default){let n=Oe();if(n===null)return Ce(e,t);let r=qr();return rg(r,n,Gt(e),t)}function um(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,l=null,d=_I(s);d===null?a=s:[a,c,l]=d,II(e,t,n,a,i,c,l)}i!==null&&r!==null&&EI(n,r,i)}function EI(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new ge(-301,!1);r.push(t[o],i)}}function _I(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&ar(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,DI(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function DI(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function wI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function II(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let y=0;y<a;y++){let v=r[y];!c&&ar(v)&&(c=!0,wI(e,n,y)),m0(Qh(n,t),e,v.type)}MI(n,e.data.length,a);for(let y=0;y<a;y++){let v=r[y];v.providersResolver&&v.providersResolver(v)}let l=!1,d=!1,h=Vg(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let v=r[y];if(n.mergedAttrs=Xu(n.mergedAttrs,v.hostAttrs),bI(e,n,t,h,v),NI(h,v,o),s!==null&&s.has(v)){let[M,R]=s.get(v);n.directiveToIndex.set(v.type,[h,M+n.directiveStart,R+n.directiveStart])}else(i===null||!i.has(v))&&n.directiveToIndex.set(v.type,h);v.contentQueries!==null&&(n.flags|=4),(v.hostBindings!==null||v.hostAttrs!==null||v.hostVars!==0)&&(n.flags|=64);let b=v.type.prototype;!l&&(b.ngOnChanges||b.ngOnInit||b.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!d&&(b.ngOnChanges||b.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}SI(e,n,i)}function SI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))qp(0,t,o,r),qp(1,t,o,r),Zp(t,r,!1);else{let i=n.get(o);Yp(0,t,i,r),Yp(1,t,i,r),Zp(t,r,!0)}}}function qp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),lm(t,i)}}function Yp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),lm(t,s)}}function lm(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Zp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||cl(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let d of l)if(d===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let d=0;d<l.length;d+=2)if(l[d]===t){s??=[],s.push(l[d+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function bI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Br(o.type,!0)),s=new Vo(i,ar(o),Kr);e.blueprint[r]=s,n[r]=s,TI(e,t,r,Vg(e,n,o.hostVars,Pt),o)}function TI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;CI(s)!=a&&s.push(a),s.push(n,r,i)}}function CI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function NI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ar(t)&&(n[""]=e)}}function MI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function fm(e,t,n,r,o,i,s,a){let c=t.consts,l=Hr(c,s),d=js(t,e,2,r,l);return i&&um(t,n,d,Hr(c,a),o),d.mergedAttrs=Xu(d.mergedAttrs,d.attrs),d.attrs!==null&&zp(d,d.attrs,!1),d.mergedAttrs!==null&&zp(d,d.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,d),d}function dm(e,t){Yh(e,t),Ch(t)&&e.queries.elementEnd(t)}var Iu=class extends $n{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Ts(t);return new Su(n,this.ngModule)}};function xI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Bs.SignalBased)!==0};return o&&(i.transform=o),i})}function AI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function OI(e,t,n){let r=t instanceof nr?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Jc(n,r):n}function RI(e){let t=e.get($r,null);if(t===null)throw new ge(407,!1);let n=e.get(vI,null),r=e.get(Vn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function LI(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return kg(t,n,n==="svg"?PD:n==="math"?FD:null)}var Su=class extends ys{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return xI(this.componentDef.inputs)}get outputs(){return AI(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=yw(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){Re(22);let i=pe(null);try{let s=this.componentDef,a=r?["ng-version","19.2.0"]:vw(this.componentDef.selectors[0]),c=ul(0,null,null,1,0,null,null,null,null,[a],null),l=OI(s,o||this.ngModule,t),d=RI(l),h=d.rendererFactory.createRenderer(null,s),y=r?Cw(h,r,s.encapsulation,l):LI(s,h),v=ll(null,c,null,512|jg(s),null,null,d,h,l,null,wg(y,l,!0));v[ct]=y,Zu(v);let b=null;try{let M=fm(ct,c,v,"#host",()=>[this.componentDef],!0,0);y&&(Ug(h,y,M),Yo(y,v)),fl(c,v,M),Sg(c,M,v),dm(c,M),n!==void 0&&PI(M,this.ngContentSelectors,n),b=jn(M.index,v),v[Xe]=b[Xe],pl(c,v,null)}catch(M){throw b!==null&&iu(b),iu(v),M}finally{Re(23),Ku()}return new bu(this.componentType,v)}finally{pe(i)}}},bu=class extends Du{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Wu(n[he],ct),this.location=fg(this._tNode,n),this.instance=jn(this._tNode.index,n)[Xe],this.hostView=this.changeDetectorRef=new _u(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=dl(r,o[he],o,t,n);this.previousInputValues.set(t,n);let s=jn(r.index,o);Dl(s,1)}get injector(){return new ds(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function PI(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var FI=()=>!1;function kI(e,t,n){return FI(e,t,n)}var Gr=class{};var vs=class extends Gr{injector;componentFactoryResolver=new Iu(this);instance=null;constructor(t){super();let n=new Fo([...t.providers,{provide:Gr,useValue:this},{provide:$n,useValue:this.componentFactoryResolver}],t.parent||$u(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function BI(e,t,n=null){return new vs({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var UI=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Dh(!1,n.type),o=r.length>0?BI([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Ue({token:e,providedIn:"environment",factory:()=>new e(Ce(nr))})}return e})();function Vs(e){return Y_(()=>{let t=GI(e),n=ie(N({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===pg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(UI).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||nn.Emulated,styles:e.styles||wn,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ko("NgStandalone"),WI(n);let r=e.dependencies;return n.directiveDefs=Kp(r,!1),n.pipeDefs=Kp(r,!0),n.id=zI(n),n})}function jI(e){return Ts(e)||vh(e)}function VI(e){return e!==null}function HI(e,t){if(e==null)return Ur;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Bs.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function $I(e){if(e==null)return Ur;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Jr(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function GI(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Ur,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||wn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:HI(e.inputs,t),outputs:$I(e.outputs),debugInfo:null}}function WI(e){e.features?.forEach(t=>t(e))}function Kp(e,t){if(!e)return null;let n=t?Eh:jI;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(VI)}function zI(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function bl(e,t,n){return e[t]=n}function qI(e,t){return e[t]}function Cn(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function YI(e,t,n,r){let o=Cn(e,t,n);return Cn(e,t+1,r)||o}function ZI(e,t,n,r,o,i,s,a,c){let l=t.consts,d=js(t,e,4,s||null,a||null);Ph()&&um(t,n,d,Hr(l,c),qg),d.mergedAttrs=Xu(d.mergedAttrs,d.attrs),Yh(t,d);let h=d.tView=ul(2,d,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,d),h.queries=t.queries.embeddedTView(d)),d}function Tu(e,t,n,r,o,i,s,a,c,l){let d=n+ct,h=t.firstCreatePass?ZI(d,t,e,r,o,i,s,a,c):t.data[d];Yr(h,!1);let y=KI(t,e,h,n);Ju()&&El(t,e,y,h),Yo(y,e);let v=dI(y,e,y,h);return e[d]=v,Hg(e,v),kI(v,h,e),Gu(h)&&fl(t,e,h),c!=null&&Wg(e,h,l),h}function Tl(e,t,n,r,o,i,s,a){let c=Oe(),l=Ct(),d=Hr(l.consts,i);return Tu(c,l,e,t,n,r,o,d,s,a),Tl}var KI=JI;function JI(e,t,n,r){return Qu(!0),t[at].createComment("")}var pm=new be("");var QI=(()=>{class e{static \u0275prov=Ue({token:e,providedIn:"root",factory:()=>new Cu})}return e})(),Cu=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function Cl(e){return!!e&&typeof e.then=="function"}function hm(e){return!!e&&typeof e.subscribe=="function"}var XI=new be("");var gm=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=Se(XI,{optional:!0})??[];injector=Se(tn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Sh(this.injector,o);if(Cl(i))n.push(i);else if(hm(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),eS=new be("");function tS(){Hd(()=>{throw new ge(600,!1)})}function nS(e){return e.isBoundToModule}var rS=10;var Gn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=Se(A0);afterRenderManager=Se(V0);zonelessEnabled=Se(Os);rootEffectScheduler=Se(QI);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Dn;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=Se(Rs).hasPendingTasks.pipe(No(n=>!n));constructor(){Se(Ps,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=Se(nr);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){Re(10);let o=n instanceof ys;if(!this._injector.get(gm).done){let y=!o&&yD(n),v=!1;throw new ge(405,v)}let s;o?s=n:s=this._injector.get($n).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=nS(s)?void 0:this._injector.get(Gr),c=r||s.selector,l=s.create(tn.NULL,[],c,a),d=l.location.nativeElement,h=l.injector.get(pm,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),rs(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),Re(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Re(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Dg.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ge(101,!1);let n=pe(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,pe(n),this.afterTick.next(),Re(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get($r,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<rS;)Re(14),this.synchronizeOnce(),Re(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)oS(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Ms(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;rs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(eS,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>rs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ge(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rs(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function oS(e,t,n,r){if(!n&&!Ms(e))return;nm(e,t,n&&!r?0:1)}function mm(e,t,n,r){return Cn(e,As(),n)?t+Ss(n)+r:Pt}function Xi(e,t){return e<<17|t<<2}function ir(e){return e>>17&32767}function iS(e){return(e&2)==2}function sS(e,t){return e&131071|t<<17}function Nu(e){return e|2}function Wr(e){return(e&131068)>>2}function kc(e,t){return e&-131069|t<<2}function aS(e){return(e&1)===1}function Mu(e){return e|1}function cS(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ir(s),c=Wr(s);e[r]=n;let l=!1,d;if(Array.isArray(n)){let h=n;d=h[1],(d===null||$o(h,d)>0)&&(l=!0)}else d=n;if(o)if(c!==0){let y=ir(e[a+1]);e[r+1]=Xi(y,a),y!==0&&(e[y+1]=kc(e[y+1],r)),e[a+1]=sS(e[a+1],r)}else e[r+1]=Xi(a,0),a!==0&&(e[a+1]=kc(e[a+1],r)),a=r;else e[r+1]=Xi(c,0),a===0?a=r:e[c+1]=kc(e[c+1],r),c=r;l&&(e[r+1]=Nu(e[r+1])),Jp(e,d,r,!0),Jp(e,d,r,!1),uS(t,d,e,r,i),s=Xi(a,c),i?t.classBindings=s:t.styleBindings=s}function uS(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&$o(i,t)>=0&&(n[r+1]=Mu(n[r+1]))}function Jp(e,t,n,r){let o=e[n+1],i=t===null,s=r?ir(o):Wr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];lS(c,t)&&(a=!0,e[s+1]=r?Mu(l):Nu(l)),s=r?ir(l):Wr(l)}a&&(e[n+1]=r?Nu(o):Mu(o))}function lS(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?$o(e,t)>=0:!1}var dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fS(e){return e.substring(dt.key,dt.keyEnd)}function dS(e){return e.substring(dt.value,dt.valueEnd)}function pS(e){return hS(e),ym(e,Es(e,0,dt.textEnd))}function ym(e,t){let n=dt.textEnd,r=dt.key=Es(e,t,n);return n===r?-1:(r=dt.keyEnd=gS(e,r,n),r=Qp(e,r,n,58),r=dt.value=Es(e,r,n),r=dt.valueEnd=mS(e,r,n),Qp(e,r,n,59))}function hS(e){dt.key=0,dt.keyEnd=0,dt.value=0,dt.valueEnd=0,dt.textEnd=e.length}function Es(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function gS(e,t,n){let r;for(;t<n&&((r=e.charCodeAt(t))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function Qp(e,t,n,r){return t=Es(e,t,n),t<n&&t++,t}function mS(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s<n;){let c=e.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=Xp(e,c,s,n):t===s-4&&i===85&&o===82&&r===76&&c===40?a=s=Xp(e,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33}return a}function Xp(e,t,n,r){let o=-1,i=n;for(;i<r;){let s=e.charCodeAt(i++);if(s==t&&o!==92)return i;s==92&&o===92?o=0:o=s}throw new Error}function sn(e,t,n){let r=Oe(),o=As();if(Cn(r,o,t)){let i=Ct(),s=zh();zg(i,s,r,e,t,r[at],n,!1)}return sn}function xu(e,t,n,r,o){dl(t,e,n,o?"class":"style",r)}function Hs(e,t,n){return vS(e,t,n,!1),Hs}function vm(e){ES(Dm,yS,e,!1)}function yS(e,t){for(let n=pS(t);n>=0;n=ym(t,n))Dm(e,fS(t),dS(t))}function vS(e,t,n,r){let o=Oe(),i=Ct(),s=Uh(2);if(i.firstUpdatePass&&_m(i,e,s,r),t!==Pt&&Cn(o,s,t)){let a=i.data[zn()];wm(i,a,o,o[at],e,o[s+1]=TS(t,n),r,s)}}function ES(e,t,n,r){let o=Ct(),i=Uh(2);o.firstUpdatePass&&_m(o,null,i,r);let s=Oe();if(n!==Pt&&Cn(s,i,n)){let a=o.data[zn()];if(Im(a,r)&&!Em(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=jc(c,n||"")),xu(o,a,s,n,r)}else bS(o,a,s,s[at],s[i+1],s[i+1]=SS(e,t,n),r,i)}}function Em(e,t){return t>=e.expandoStartIndex}function _m(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[zn()],s=Em(e,n);Im(i,r)&&t===null&&!s&&(t=!1),t=_S(o,i,t,r),cS(o,i,t,n,s,r)}}function _S(e,t,n,r){let o=XD(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Bc(null,e,t,n,r),n=Ho(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Bc(o,e,t,n,r),i===null){let c=DS(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Bc(null,e,t,c[1],r),c=Ho(c,t.attrs,r),wS(e,t,r,c))}else i=IS(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function DS(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Wr(r)!==0)return e[ir(r)]}function wS(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ir(o)]=r}function IS(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Ho(r,s,n)}return Ho(r,t.attrs,n)}function Bc(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Ho(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Ho(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),gh(e,s,n?!0:t[++i]))}return e===void 0?null:e}function SS(e,t,n){if(n==null||n==="")return wn;let r=[],o=Lt(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function Dm(e,t,n){gh(e,t,Lt(n))}function bS(e,t,n,r,o,i,s,a){o===Pt&&(o=wn);let c=0,l=0,d=0<o.length?o[0]:null,h=0<i.length?i[0]:null;for(;d!==null||h!==null;){let y=c<o.length?o[c+1]:void 0,v=l<i.length?i[l+1]:void 0,b=null,M;d===h?(c+=2,l+=2,y!==v&&(b=h,M=v)):h===null||d!==null&&d<h?(c+=2,b=d):(l+=2,b=h,M=v),b!==null&&wm(e,t,n,r,b,M,s,a),d=c<o.length?o[c]:null,h=l<i.length?i[l]:null}}function wm(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],d=aS(l)?eh(c,t,n,o,Wr(l),s):void 0;if(!_s(d)){_s(i)||iS(l)&&(i=eh(c,null,n,o,a,s));let h=Ah(zn(),n);Qw(r,s,h,o,i)}}function eh(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),d=l?c[1]:c,h=d===null,y=n[o+1];y===Pt&&(y=h?wn:void 0);let v=h?Mc(y,r):d===r?y:void 0;if(l&&!_s(v)&&(v=Mc(c,r)),_s(v)&&(a=v,s))return a;let b=e[o+1];o=s?ir(b):Wr(b)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Mc(c,r))}return a}function _s(e){return e!==void 0}function TS(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ot(Lt(e)))),e}function Im(e,t){return(e.flags&(t?8:16))!==0}var Au=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Uc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function CS(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),d=t[i],h=Uc(i,l,i,d,n);if(h!==0){h<0&&e.updateValue(i,d),i++;continue}let y=e.at(s),v=t[c],b=Uc(s,y,c,v,n);if(b!==0){b<0&&e.updateValue(s,v),s--,c--;continue}let M=n(i,l),R=n(s,y),k=n(i,d);if(Object.is(k,R)){let $=n(c,v);Object.is($,M)?(e.swap(i,s),e.updateValue(s,v),c--,s--):e.move(s,i),e.updateValue(i,d),i++;continue}if(r??=new Ds,o??=nh(e,i,s,n),Ou(e,r,i,k))e.updateValue(i,d),i++,s++;else if(o.has(k))r.set(M,e.detach(i)),s--;else{let $=e.create(i,t[i]);e.attach(i,$),i++,s++}}for(;i<=c;)th(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let d=e.at(i),h=l.value,y=Uc(i,d,i,h,n);if(y!==0)y<0&&e.updateValue(i,h),i++,l=c.next();else{r??=new Ds,o??=nh(e,i,s,n);let v=n(i,h);if(Ou(e,r,i,v))e.updateValue(i,h),i++,s++,l=c.next();else if(!o.has(v))e.attach(i,e.create(i,h)),i++,s++,l=c.next();else{let b=n(i,d);r.set(b,e.detach(i)),s--}}}for(;!l.done;)th(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Ou(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function th(e,t,n,r,o){if(Ou(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function nh(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Ds=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Sm(e,t){Ko("NgControlFlow");let n=Oe(),r=As(),o=n[r]!==Pt?n[r]:-1,i=o!==-1?ws(n,ct+o):void 0,s=0;if(Cn(n,r,e)){let a=pe(null);try{if(i!==void 0&&am(i,s),e!==-1){let c=ct+e,l=ws(n,c),d=Fu(n[he],c),h=Sl(l,d.tView.ssrId),y=hl(n,d,t,{dehydratedView:h});wl(l,y,s,gl(d,h))}}finally{pe(a)}}else if(i!==void 0){let a=sm(i,s);a!==void 0&&(a[Xe]=t)}}var Ru=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-It}};function bm(e,t){return t}var Lu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function cr(e,t,n,r,o,i,s,a,c,l,d,h,y){Ko("NgControlFlow");let v=Oe(),b=Ct(),M=c!==void 0,R=Oe(),k=a?s.bind(R[en][Xe]):s,$=new Lu(M,k);R[ct+e]=$,Tu(v,b,e+1,t,n,r,o,Hr(b.consts,i)),M&&Tu(v,b,e+2,c,l,d,h,Hr(b.consts,y))}var Pu=class extends Au{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-It}at(t){return this.getLView(t)[Xe].$implicit}attach(t,n){let r=n[ko];this.needsIndexUpdate||=t!==this.length,wl(this.lContainer,n,t,gl(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,NS(this.lContainer,t)}create(t,n){let r=Sl(this.lContainer,this.templateTNode.tView.ssrId),o=hl(this.hostLView,this.templateTNode,new Ru(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){vl(t[he],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Xe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Xe].$index=t}getLView(t){return MS(this.lContainer,t)}};function ur(e){let t=pe(null),n=zn();try{let r=Oe(),o=r[he],i=r[n],s=n+1,a=ws(r,s);if(i.liveCollection===void 0){let l=Fu(o,s);i.liveCollection=new Pu(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(CS(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=As(),d=c.length===0;if(Cn(r,l,d)){let h=n+2,y=ws(r,h);if(d){let v=Fu(o,h),b=Sl(y,v.tView.ssrId),M=hl(r,v,void 0,{dehydratedView:b});wl(y,M,0,gl(v,b))}else am(y,0)}}}finally{pe(t)}}function ws(e,t){return e[t]}function NS(e,t){return Il(e,t)}function MS(e,t){return sm(e,t)}function Fu(e,t){return Wu(e,t)}function rt(e,t,n,r){let o=Oe(),i=Ct(),s=ct+e,a=o[at],c=i.firstCreatePass?fm(s,i,o,t,qg,Ph(),n,r):i.data[s],l=xS(i,o,c,a,t,e);o[s]=l;let d=Gu(c);return Yr(c,!0),Ug(a,l,c),!Zg(c)&&Ju()&&El(i,o,l,c),(VD()===0||d)&&Yo(l,o),HD(),d&&(fl(i,o,c),Sg(i,c,o)),r!==null&&Wg(o,c),rt}function St(){let e=qr();kh()?YD():(e=e.parent,Yr(e,!1));let t=e;WD(t)&&zD(),$D();let n=Ct();return n.firstCreatePass&&dm(n,t),t.classesWithoutHost!=null&&s0(t)&&xu(n,t,Oe(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&a0(t)&&xu(n,t,Oe(),t.stylesWithoutHost,!1),St}function an(e,t,n,r){return rt(e,t,n,r),St(),an}var xS=(e,t,n,r,o,i)=>(Qu(!0),kg(r,o,n0()));function Tm(){return Oe()}var Is="en-US";var AS=Is;function OS(e){typeof e=="string"&&(AS=e.toLowerCase().replace(/_/g,"-"))}var RS=(e,t,n)=>{};function Qr(e,t,n,r){let o=Oe(),i=Ct(),s=qr();return PS(i,o,o[at],s,e,t,r),Qr}function LS(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[as],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function PS(e,t,n,r,o,i,s){let a=Gu(r),l=e.firstCreatePass?jD(e):null,d=t[Xe],h=UD(t),y=!0;if(r.type&3||s){let v=Wn(r,t),b=s?s(v):v,M=h.length,R=s?$=>s(Sn($[r.index])):r.index,k=null;if(!s&&a&&(k=LS(e,t,o,r.index)),k!==null){let $=k.__ngLastListenerFn__||k;$.__ngNextListenerFn__=i,k.__ngLastListenerFn__=i,y=!1}else{i=ih(r,t,d,i),RS(v,o,i);let $=n.listen(b,o,i);h.push(i,$),l&&l.push(o,R,M,M+1)}}else i=ih(r,t,d,i);if(y){let v=r.outputs?.[o],b=r.hostDirectiveOutputs?.[o];if(b&&b.length)for(let M=0;M<b.length;M+=2){let R=b[M],k=b[M+1];rh(r,e,t,R,k,o,i,h,l)}if(v&&v.length)for(let M of v)rh(r,e,t,M,o,o,i,h,l)}}function rh(e,t,n,r,o,i,s,a,c){let l=n[r],h=t.data[r].outputs[o],v=l[h].subscribe(s),b=a.length;a.push(s,v),c&&c.push(i,e.index,b,-(b+1))}function oh(e,t,n,r){let o=pe(null);try{return Re(6,t,n),n(r)!==!1}catch(i){return Yg(e,i),!1}finally{Re(7,t,n),pe(o)}}function ih(e,t,n,r){return function o(i){if(i===Function)return r;let s=Go(e)?jn(e.index,t):t;Dl(s,5);let a=oh(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=oh(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function bt(e=1){return t0(e)}function lr(e,t,n){return $s(e,"",t,"",n),lr}function $s(e,t,n,r,o){let i=Oe(),s=mm(i,t,n,r);if(s!==Pt){let a=Ct(),c=zh();zg(a,c,i,e,s,i[at],o,!1)}return $s}function Cm(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function fr(e,t=""){let n=Oe(),r=Ct(),o=e+ct,i=r.firstCreatePass?js(r,o,1,t,null):r.data[o],s=FS(r,n,i,t,e);n[o]=s,Ju()&&El(r,n,s,i),Yr(i,!1)}var FS=(e,t,n,r,o)=>(Qu(!0),Ew(t[at],r));function Qo(e){return Gs("",e,""),Qo}function Gs(e,t,n){let r=Oe(),o=mm(r,e,t,n);return o!==Pt&&kS(r,zn(),o),Gs}function kS(e,t,n){let r=Ah(t,e);_w(e[at],r,n)}var BS={};function Xo(e){let t=Ct(),n=Oe(),r=e+ct,o=js(t,r,128,null,null);return Yr(o,!1),Cm(t,n,r,BS),Xo}function Nm(e,t,n){let r=Yu()+e,o=Oe();return o[r]===Pt?bl(o,r,n?t.call(n):t()):qI(o,r)}function Mm(e,t){let n=e[t];return n===Pt?void 0:n}function US(e,t,n,r,o,i){let s=t+n;return Cn(e,s,o)?bl(e,s+1,i?r.call(i,o):r(o)):Mm(e,s+1)}function jS(e,t,n,r,o,i,s){let a=t+n;return YI(e,a,o,i)?bl(e,a+2,s?r.call(s,o,i):r(o,i)):Mm(e,a+2)}function dr(e,t){let n=Ct(),r,o=e+ct;n.firstCreatePass?(r=VS(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Br(r.type,!0)),s,a=wt(Kr);try{let c=fs(!1),l=i();return fs(c),Cm(n,Oe(),o,l),l}finally{wt(a)}}function VS(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Xr(e,t,n){let r=e+ct,o=Oe(),i=Oh(o,r);return Am(o,r)?US(o,Yu(),t,i.transform,n,i):i.transform(n)}function xm(e,t,n,r){let o=e+ct,i=Oe(),s=Oh(i,o);return Am(i,o)?jS(i,Yu(),t,s.transform,n,r,s):s.transform(n,r)}function Am(e,t){return e[he].data[t].pure}var HS=(()=>{class e{zone=Se(nt);changeDetectionScheduler=Se(Vn);applicationRef=Se(Gn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $S({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new nt(ie(N({},GS()),{scheduleInRootZone:n})),[{provide:nt,useFactory:e},{provide:Po,multi:!0,useFactory:()=>{let r=Se(HS,{optional:!0});return()=>r.initialize()}},{provide:Po,multi:!0,useFactory:()=>{let r=Se(WS);return()=>{r.initialize()}}},t===!0?{provide:cg,useValue:!0}:[],{provide:el,useValue:n??sg}]}function GS(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var WS=(()=>{class e{subscription=new ft;initialized=!1;zone=Se(nt);pendingTasks=Se(Rs);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Om=(()=>{class e{appRef=Se(Gn);taskService=Se(Rs);ngZone=Se(nt);zonelessEnabled=Se(Os);tracing=Se(Ps,{optional:!0});disableScheduling=Se(cg,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ft;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(hs):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Se(el,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof gs||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Rp:ug;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(hs+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Rp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Rm(){return Ko("NgZoneless"),_h([{provide:Vn,useExisting:Om},{provide:nt,useClass:gs},{provide:Os,useValue:!0},{provide:el,useValue:!1},[]])}function zS(){return typeof $localize<"u"&&$localize.locale||Is}var Nl=new be("",{providedIn:"root",factory:()=>Se(Nl,le.Optional|le.SkipSelf)||zS()});var ku=new be(""),qS=new be("");function Mo(e){return!e.moduleRef}function YS(e){let t=Mo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(nt);return n.run(()=>{Mo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Hn,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Mo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(ku);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ku);s.add(i),e.moduleRef.onDestroy(()=>{rs(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return KS(r,n,()=>{let i=t.get(gm);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Nl,Is);if(OS(s||Is),!t.get(qS,!0))return Mo(e)?t.get(Gn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Mo(e)){let c=t.get(Gn);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return ZS(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function ZS(e,t){let n=e.injector.get(Gn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new ge(-403,!1);t.push(e)}function KS(e,t,n){try{let r=n();return Cl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var os=null;function JS(e=[],t){return tn.create({name:t,providers:[{provide:Cs,useValue:"platform"},{provide:ku,useValue:new Set([()=>os=null])},...e]})}function QS(e=[]){if(os)return os;let t=JS(e);return os=t,tS(),XS(t),t}function XS(e){let t=e.get(ol,null);Sh(e,()=>{t?.forEach(n=>n())})}function Lm(e){Re(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=QS(r),i=[$S({}),{provide:Vn,useExisting:Om},...n||[]],s=new vs({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return YS({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{Re(9)}}var sh=class{[_n];constructor(t){this[_n]=t}destroy(){this[_n].destroy()}};var eb={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function tb(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function nb(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Ml;function rb(e,t){if(!Ml){let n=Element.prototype;Ml=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Ml.call(e,t):!1}function ob(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[tb(r)]=[n,o]}),t}function ib(e,t){return t.get($n).resolveComponentFactory(e).inputs}function sb(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=ab(a,t,o);c!==-1&&r[c].push(a)}return r}function ab(e,t,n){let r=n;return nb(e)&&t.some((o,i)=>o!=="*"&&rb(e,o)?(r=i,!0):!1),r}var cb=10,xl=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get($n).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new Al(this.componentFactory,t,this.inputMap)}},Al=class{componentFactory;injector;inputMap;eventEmitters=new Co(1);events=this.eventEmitters.pipe(Nc(t=>Cc(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(nt),this.appRef=this.injector.get(Gn),this.cdScheduler=n.get(Vn),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=eb.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},cb))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let n=tn.create({providers:[],parent:this.injector}),r=sb(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new ze(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Ol=class extends HTMLElement{ngElementEventsSubscription=null};function Fm(e,t){let n=ib(e,t.injector),r=t.strategyFactory||new xl(e,t.injector),o=ob(n);class i extends Ol{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:l})=>{if(!this.hasOwnProperty(c))return;let d=this[c];delete this[c],a.setInputValue(c,d,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,d){let[h,y]=o[a];this.ngElementStrategy.setInputValue(h,l,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}var km=null;function Rl(){return km}function Bm(e){km??=e}var Ws=class{};var An=new be("");function Um(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var jm="browser",ub="server";function Ll(e){return e===ub}var zs=class{};var Fl=class extends Ws{supportsDOMEvents=!0},kl=class e extends Fl{static makeCurrent(){Bm(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=lb();return n==null?null:fb(n)}resetBaseElement(){ei=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Um(document.cookie,t)}},ei=null;function lb(){return ei=ei||document.querySelector("base"),ei?ei.getAttribute("href"):null}function fb(e){return new URL(e,document.baseURI).pathname}var db=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),Bl=new be(""),zm=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new ge(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(Ce(Bl),Ce(nt))};static \u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),Ys=class{_doc;constructor(t){this._doc=t}manager},qs="ng-app-id";function Vm(e){for(let t of e)t.remove()}function Hm(e,t){let n=t.createElement("style");return n.textContent=e,n}function pb(e,t,n,r){let o=e.head?.querySelectorAll(`style[${qs}="${t}"],link[${qs}="${t}"]`);if(o)for(let i of o)i.removeAttribute(qs),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Ul(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var qm=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Ll(i),pb(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Hm);r?.forEach(o=>this.addUsage(o,this.external,Ul))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Vm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Vm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Hm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Ul(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(qs,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(Ce(An),Ce(rl),Ce(il,8),Ce(Zo))};static \u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),Pl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Vl=/%COMP%/g;var Ym="%COMP%",hb=`_nghost-${Ym}`,gb=`_ngcontent-${Ym}`,mb=!0,yb=new be("",{providedIn:"root",factory:()=>mb});function vb(e){return gb.replace(Vl,e)}function Eb(e){return hb.replace(Vl,e)}function Zm(e,t){return t.map(n=>n.replace(Vl,e))}var $m=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,l=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=d,this.platformIsServer=Ll(a),this.defaultRenderer=new ti(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===nn.ShadowDom&&(r=ie(N({},r),{encapsulation:nn.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Zs?o.applyToHost(n):o instanceof ni&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,y=this.tracingService;switch(r.encapsulation){case nn.Emulated:i=new Zs(c,l,r,this.appId,d,s,a,h,y);break;case nn.ShadowDom:return new jl(c,l,n,r,s,a,this.nonce,h,y);default:i=new ni(c,l,r,d,s,a,h,y);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(Ce(zm),Ce(qm),Ce(rl),Ce(yb),Ce(An),Ce(Zo),Ce(nt),Ce(il),Ce(Ps,8))};static \u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),ti=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Pl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Gm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Gm(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new ge(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Pl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Pl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Tn.DashCase|Tn.Important)?t.style.setProperty(n,r,o&Tn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Tn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Rl().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);let i=this.decoratePreventDefault(r);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Gm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var jl=class extends ti{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=o.styles;d=Zm(o.id,d);for(let y of d){let v=document.createElement("style");a&&v.setAttribute("nonce",a),v.textContent=y,this.shadowRoot.appendChild(v)}let h=o.getExternalStyles?.();if(h)for(let y of h){let v=Ul(y,i);a&&v.setAttribute("nonce",a),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ni=class extends ti{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let d=r.styles;this.styles=l?Zm(l,d):d,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Zs=class extends ni{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let d=o+"-"+r.id;super(t,n,r,i,s,a,c,l,d),this.contentAttr=vb(d),this.hostAttr=Eb(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},_b=(()=>{class e extends Ys{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(Ce(An))};static \u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),Wm=["alt","control","meta","shift"],Db={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wb={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Ib=(()=>{class e extends Ys{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Rl().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Wm.forEach(l=>{let d=r.indexOf(l);d>-1&&(r.splice(d,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Db[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Wm.forEach(s=>{if(s!==o){let a=wb[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(Ce(An))};static \u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();function Km(e){return Lm(Sb(e))}function Sb(e){return{appProviders:[...Mb,...e?.providers??[]],platformProviders:Nb}}function bb(){kl.makeCurrent()}function Tb(){return new Hn}function Cb(){return vg(document),document}var Nb=[{provide:Zo,useValue:jm},{provide:ol,useValue:bb,multi:!0},{provide:An,useFactory:Cb,deps:[]}];var Mb=[{provide:Cs,useValue:"root"},{provide:Hn,useFactory:Tb,deps:[]},{provide:Bl,useClass:_b,multi:!0,deps:[An]},{provide:Bl,useClass:Ib,multi:!0,deps:[An]},$m,qm,zm,{provide:$r,useExisting:$m},{provide:zs,useClass:db,deps:[]},[]];var Hl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=Ce(xb),o},providedIn:"root"})}return e})(),xb=(()=>{class e extends Hl{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case on.NONE:return r;case on.HTML:return qn(r,"HTML")?Lt(r):sl(this._doc,String(r)).toString();case on.STYLE:return qn(r,"Style")?Lt(r):r;case on.SCRIPT:if(qn(r,"Script"))return Lt(r);throw new ge(5200,!1);case on.URL:return qn(r,"URL")?Lt(r):ks(String(r));case on.RESOURCE_URL:if(qn(r,"ResourceURL"))return Lt(r);throw new ge(5201,!1);default:throw new ge(5202,!1)}}bypassSecurityTrustHtml(n){return bg(n)}bypassSecurityTrustStyle(n){return Tg(n)}bypassSecurityTrustScript(n){return Cg(n)}bypassSecurityTrustUrl(n){return Ng(n)}bypassSecurityTrustResourceUrl(n){return Mg(n)}static \u0275fac=function(r){return new(r||e)(Ce(An))};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ri={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css",widgetURL:"http://localhost:8002/main.js"};var Nt=Io(Qm());var Xm="9.4.0";var cn=class e{static SDK_VERSION=Xm;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let t=e.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");e.SDK_VERSION_CODE=parseInt(t,10)}};var ot=class{static log(...t){Nt.default.info(...t)}static debug(...t){Nt.default.debug(...t)}static error(...t){Nt.default.error(...t)}static warn(...t){Nt.default.warn(...t)}static info(...t){Nt.default.info(...t)}static trace(...t){Nt.default.trace(...t)}static configure(t=cn.LOG_PREFIX){Nt.default.useDefaults({formatter:function(r){r.unshift(`${t} (v${cn.SDK_VERSION}):`)}});let n=this.getDebugParam();(n==="1"||n==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Nt.default.setLevel(Nt.default[localStorage.cooeeLogLevel]):Nt.default.setLevel(ri.debug?Nt.default.TRACE:Nt.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let t=`
8
+ display: inline-block;
9
+ font-size: 14px;
10
+ background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
11
+ color: white;
12
+ padding: 4px;
13
+ border-radius: 4px;
14
+ `,n=`
15
+ `;n+=`\u{1F4E3} Drive higher conversions with AI-powered onsite engagement
16
+ `,n+=`\u{1F50D} Track real-time visitor intent & optimize engagement
17
+ `,n+=`\u{1F4CA} Improve Meta Ads ROAS with intent-driven campaigns
18
+ `,n+=`\u{1F6CD}\uFE0F Boost purchases & repeat sales effortlessly
19
+ `,n+=`
20
+
21
+ `,n+=`Learn more: https://www.letscooee.com
22
+ Cooee SDK: v${cn.SDK_VERSION}`,console.group("%c Elevate your ecommerce experience with Cooee \u{1F680} ",t),console.log(`%c${n}`,"font-size: 13px; line-height: 1.8;"),console.groupEnd()}};var ey={providers:[Rm()]};var qa=Io(Ay());var Js=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;skipItemAttribute;currency;static get(){return window.CooeeSDK.config}update(t){return t??={},this.gaEnabled=t.gaEnabled,this.gaMeasurementID=t.gaMeasurementID,this.pixelPush=t.pixelPush,this.website=t.website??{},this.currencyCount=t.currencyCount??0,this.money=t.money,this.currency=t.currency,this.storefrontToken=t.storefrontToken,this.skipItemAttribute=t.skipItemAttribute,this}};var Qs=class{static format(t,n){let r=/{{\s*(\w+)\s*}}/;return n.replace(r,(o,i)=>{switch(i){case"amount":return this.formatWithDelimiters(t,2);case"amount_no_decimals":return this.formatWithDelimiters(t,0);case"amount_with_comma_separator":return this.formatWithDelimiters(t,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(t,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(t,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(t,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(t,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(t,2," ",".");default:return o}})}static formatWithDelimiters(t,n=2,r=",",o="."){if(isNaN(t)||t==null)return"0";let s=(t/100).toFixed(n).split("."),a=s[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+r),c=s[1]?o+s[1]:"";return a+c}};var Xs=class{id;mID;vID;vName;imageURL;name;link;quantity;price;constructor(t){this.id=t.id,this.mID=t.mID,this.vID=t.vID,this.vName=t.vName,this.imageURL=t.imageURL,this.name=t.name,this.link=t.link,this.quantity=t.quantity,this.price=t.price}};var ea=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;locale;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(t){this._currencyCode=t}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(t){this.currentItem=new Xs(t)}};var tE=Io(Oy());var Gl=Io(Ly());function na(e){return Gl.default.createInstance({name:"lc",storeName:e,driver:Gl.default.LOCALSTORAGE})}var no=class{static storage;static async get(t,n){return await this.storage?.getItem(t)??n}static set(t,n){return this.storage?.setItem(t,n)}static remove(t){return this.storage?.removeItem(t)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}};var ra=class extends no{static storeName="usr";static{this.storage=na(this.storeName)}};var oi=class{static ID="id";static SESSION_LANDING_PAGE="landing";static SESSION_LAST_USED_TIME="lastUsedTime";static SESSION_SYNCED="synced";static APP_CONFIG="conf";static DEVICE_ID="did";static SDK_TOKEN="token";static FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart"};var oa=class extends no{static storeName="ses";static{this.storage=na(this.storeName)}};var Py=Object.prototype.toString;function pr(e){switch(Py.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return un(e,Error)}}function ro(e,t){return Py.call(e)===`[object ${t}]`}function ia(e){return ro(e,"ErrorEvent")}function sa(e){return ro(e,"DOMError")}function Wl(e){return ro(e,"DOMException")}function pt(e){return ro(e,"String")}function oo(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function hr(e){return e===null||oo(e)||typeof e!="object"&&typeof e!="function"}function qt(e){return ro(e,"Object")}function gr(e){return typeof Event<"u"&&un(e,Event)}function zl(e){return typeof Element<"u"&&un(e,Element)}function ql(e){return ro(e,"RegExp")}function On(e){return!!(e&&e.then&&typeof e.then=="function")}function Yl(e){return qt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function un(e,t){try{return e instanceof t}catch{return!1}}function ii(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function ln(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function aa(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{ii(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Fy(e,t,n=!1){return pt(e)?ql(t)?t.test(e):pt(t)?n?e===t:e.includes(t):!1:!1}function io(e,t=[],n=!1){return t.some(r=>Fy(e,r,n))}function Kl(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!un(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=Lb(Zl(e,t,o,s.originalException,r,i.exception.values,a,0),n))}function Zl(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(un(r[o],Error)){ky(s,a);let l=e(t,r[o]),d=c.length;By(l,o,d,a),c=Zl(e,t,n,r[o],o,[l,...c],l,d)}return Array.isArray(r.errors)&&r.errors.forEach((l,d)=>{if(un(l,Error)){ky(s,a);let h=e(t,l),y=c.length;By(h,`errors[${d}]`,y,a),c=Zl(e,t,n,l,o,[h,...c],h,y)}}),c}function ky(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=ie(N(N({},e.mechanism),e.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:t})}function By(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=ie(N({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function Lb(e,t){return e.map(n=>(n.value&&(n.value=ln(n.value,t)),n))}var Ft="8.18.0";var K=globalThis;function so(e,t,n){let r=n||K,o=r.__SENTRY__=r.__SENTRY__||{},i=o[Ft]=o[Ft]||{};return i[e]||(i[e]=t())}var Jl=K,Pb=80;function si(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,l,d=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||Pb;for(;n&&i++<r&&(l=Fb(n,d),!(l==="html"||i>1&&s+o.length*c+l.length>=h));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Fb(e,t){let n=e,r=[];if(!n||!n.tagName)return"";if(Jl.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let o=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o&&o.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&pt(s)){let a=s.split(/\s+/);for(let c of a)r.push(`.${c}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function Ql(){try{return Jl.document.location.href}catch{return""}}function Xl(e){if(!Jl.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}var fn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var kb="Sentry Logger ",ai=["debug","info","warn","error","log","assert","trace"],ao={};function co(e){if(!("console"in K))return e();let t=K.console,n={},r=Object.keys(ao);r.forEach(o=>{let i=ao[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function Bb(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return fn?ai.forEach(n=>{t[n]=(...r)=>{e&&co(()=>{K.console[n](`${kb}[${n}]:`,...r)})}}):ai.forEach(n=>{t[n]=()=>{}}),t}var W=Bb();var Ub=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function jb(e){return e==="http"||e==="https"}function dn(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function Uy(e){let t=Ub.exec(e);if(!t){co(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i="",s="",a=""]=t.slice(1),c="",l=a,d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){let h=l.match(/^\d+/);h&&(l=h[0])}return jy({host:i,pass:o,path:c,projectId:l,port:s,protocol:n,publicKey:r})}function jy(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Vb(e){if(!fn)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(W.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?jb(r)?t&&isNaN(parseInt(t,10))?(W.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(W.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(W.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ca(e){let t=typeof e=="string"?Uy(e):jy(e);if(!(!t||!Vb(t)))return t}var ut=class extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}};function Pe(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);typeof o=="function"&&ua(o,r),e[t]=o}function ht(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{fn&&W.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ua(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ht(e,"__sentry_original__",t)}catch{}}function mr(e){return e.__sentry_original__}function tf(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function la(e){if(pr(e))return N({message:e.message,name:e.name,stack:e.stack},Hy(e));if(gr(e)){let t=N({type:e.type,target:Vy(e.target),currentTarget:Vy(e.currentTarget)},Hy(e));return typeof CustomEvent<"u"&&un(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Vy(e){try{return zl(e)?si(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Hy(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function nf(e,t=40){let n=Object.keys(la(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ln(r,t);for(let o=n.length;o>0;o--){let i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:ln(i,t)}return""}function et(e){return ef(e,new Map)}function ef(e,t){if(Hb(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let o of Object.keys(e))typeof e[o]<"u"&&(r[o]=ef(e[o],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(o=>{r.push(ef(o,t))}),r}return e}function Hb(e){if(!qt(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}var pn="?",$y=/\(error: (.*)\)/,Gy=/captureMessage|captureException/;function of(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
23
+ `);for(let a=r;a<s.length;a++){let c=s[a];if(c.length>1024)continue;let l=$y.test(c)?c.replace($y,"$1"):c;if(!l.match(/\S*Error: /)){for(let d of t){let h=d(l);if(h){i.push(h);break}}if(i.length>=50+o)break}}return Wy(i.slice(o))}}function Wy(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(fa(t).function||"")&&t.pop(),t.reverse(),Gy.test(fa(t).function||"")&&(t.pop(),Gy.test(fa(t).function||"")&&t.pop()),t.slice(0,50).map(n=>ie(N({},n),{filename:n.filename||fa(t).filename,function:n.function||pn}))}function fa(e){return e[e.length-1]||{}}var rf="<anonymous>";function kt(e){try{return!e||typeof e!="function"?rf:e.name||rf}catch{return rf}}function da(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var pa={},zy={};function gt(e,t){pa[e]=pa[e]||[],pa[e].push(t)}function mt(e,t){zy[e]||(t(),zy[e]=!0)}function tt(e,t){let n=e&&pa[e];if(n)for(let r of n)try{r(t)}catch(o){fn&&W.error(`Error while triggering instrumentation handler.
24
+ Type: ${e}
25
+ Name: ${kt(r)}
26
+ Error:`,o)}}function sf(e){let t="console";gt(t,e),mt(t,$b)}function $b(){"console"in K&&ai.forEach(function(e){e in K.console&&Pe(K.console,e,function(t){return ao[e]=t,function(...n){tt("console",{args:n,level:e});let o=ao[e];o&&o.apply(K.console,n)}})})}var af=K;function qy(){if(!("fetch"in af))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ci(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function cf(){if(typeof EdgeRuntime=="string")return!0;if(!qy())return!1;if(ci(af.fetch))return!0;let e=!1,t=af.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ci(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){fn&&W.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}var Yy=1e3;function hn(){return Date.now()/Yy}function Gb(){let{performance:e}=K;if(!e||!e.now)return hn;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Yy}var Mt=Gb(),ui,Wb=(()=>{let{performance:e}=K;if(!e||!e.now){ui="none";return}let t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,l=c<t;return i||l?o<=c?(ui="timeOrigin",e.timeOrigin):(ui="navigationStart",s):(ui="dateNow",r)})();function lf(e){let t="fetch";gt(t,e),mt(t,zb)}function zb(){cf()&&Pe(K,"fetch",function(e){return function(...t){let{method:n,url:r}=qb(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Mt()*1e3};tt("fetch",N({},o));let i=new Error().stack;return e.apply(K,t).then(s=>{let a=ie(N({},o),{endTimestamp:Mt()*1e3,response:s});return tt("fetch",a),s},s=>{let a=ie(N({},o),{endTimestamp:Mt()*1e3,error:s});throw tt("fetch",a),pr(s)&&s.stack===void 0&&(s.stack=i,ht(s,"framesToPop",1)),s})}})}function uf(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Zy(e){return typeof e=="string"?e:e?uf(e,"url")?e.url:e.toString?e.toString():"":""}function qb(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:Zy(n),method:uf(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:Zy(t),method:uf(t,"method")?String(t.method).toUpperCase():"GET"}}var ha=null;function ff(e){let t="error";gt(t,e),mt(t,Yb)}function Yb(){ha=K.onerror,K.onerror=function(e,t,n,r,o){return tt("error",{column:r,error:o,line:n,msg:e,url:t}),ha&&!ha.__SENTRY_LOADER__?ha.apply(this,arguments):!1},K.onerror.__SENTRY_INSTRUMENTED__=!0}var ga=null;function df(e){let t="unhandledrejection";gt(t,e),mt(t,Zb)}function Zb(){ga=K.onunhandledrejection,K.onunhandledrejection=function(e){return tt("unhandledrejection",e),ga&&!ga.__SENTRY_LOADER__?ga.apply(this,arguments):!0},K.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function pf(){return"npm"}function Ky(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function it(){let e=K,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Jy(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Yt(e){let{message:t,event_id:n}=e;if(t)return t;let r=Jy(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function uo(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Rn(e,t){let n=Jy(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism=N(N(N({},r),o),t),t&&"data"in t){let i=N(N({},o&&o.data),t.data);n.mechanism.data=i}}function ma(e){if(e&&e.__sentry_captured__)return!0;try{ht(e,"__sentry_captured__",!0)}catch{}return!1}function ya(e){return Array.isArray(e)?e:[e]}function Zt(e,t=100,n=1/0){try{return hf("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function va(e,t=3,n=100*1024){let r=Zt(e,t);return Xb(r)>n?va(e,t-1,n):r}function hf(e,t,n=1/0,r=1/0,o=Ky()){let[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;let a=Kb(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let l=t;if(l&&typeof l.toJSON=="function")try{let v=l.toJSON();return hf("",v,c-1,r,o)}catch{}let d=Array.isArray(t)?[]:{},h=0,y=la(t);for(let v in y){if(!Object.prototype.hasOwnProperty.call(y,v))continue;if(h>=r){d[v]="[MaxProperties ~]";break}let b=y[v];d[v]=hf(v,b,c-1,r,o),h++}return s(t),d}function Kb(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(ii(t))return"[VueViewModel]";if(Yl(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${kt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Jb(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Jb(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Qb(e){return~-encodeURI(e).split(/%..|./).length}function Xb(e){return Qb(JSON.stringify(e))}var Ln;(function(e){e[e.PENDING=0]="PENDING";let n=1;e[e.RESOLVED=n]="RESOLVED";let r=2;e[e.REJECTED=r]="REJECTED"})(Ln||(Ln={}));function Bt(e){return new Kt(t=>{t(e)})}function Yn(e){return new Kt((t,n)=>{n(e)})}var Kt=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Ln.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new e((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(Ln.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ln.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Ln.PENDING){if(On(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ln.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ln.RESOLVED&&n[1](this._value),this._state===Ln.REJECTED&&n[2](this._value),n[0]=!0)})}}};function gf(e){let t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!n())return Yn(new ut("Not adding Promise because buffer limit was reached."));let a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new Kt((a,c)=>{let l=t.length;if(!l)return a(!0);let d=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(h=>{Bt(h).then(()=>{--l||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:o,drain:i}}function li(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var Qy=["fatal","error","warning","log","info","debug"];function mf(e){return e==="warn"?"warning":Qy.includes(e)?e:"log"}var ev="sentry-",tv=/^sentry-/;function yf(e){let t=nv(e);if(!t)return;let n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(tv)){let s=o.slice(ev.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function nv(e){if(!(!e||!pt(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=Xy(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):Xy(e)}function Xy(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function gn(e,t=[]){return[e,t]}function Ef(e,t){let[n,r]=e;return[n,[...r,t]]}function Ea(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function vf(e){return K.__SENTRY__&&K.__SENTRY__.encodePolyfill?K.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function _f(e){let[t,n]=e,r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[vf(r),i]:r.push(typeof i=="string"?vf(i):i)}for(let i of n){let[s,a]=i;if(o(`
27
+ ${JSON.stringify(s)}
28
+ `),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Zt(a))}o(c)}}return typeof r=="string"?r:eT(r)}function eT(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function Df(e){let t=typeof e.data=="string"?vf(e.data):e.data;return[et({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var tT={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function _a(e){return tT[e]}function Da(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function wf(e,t,n,r){let o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return N(N(N({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:dn(r)}),o&&{trace:et(N({},o))})}function If(e,t,n){let r=[{type:"client_report"},{timestamp:n||hn(),discarded_events:e}];return gn(t?{dsn:t}:{},[r])}function rv(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function ov(e,t){return e[t]||e.all||0}function Sf(e,t,n=Date.now()){return ov(e,t)>n}function bf(e,{statusCode:t,headers:n},r=Date.now()){let o=N({},e),i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,l,,,d]=a.split(":",5),h=parseInt(c,10),y=(isNaN(h)?60:h)*1e3;if(!l)o.all=r+y;else for(let v of l.split(";"))v==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[v]=r+y):o[v]=r+y}else s?o.all=r+rv(s,r):t===429&&(o.all=r+60*1e3);return o}function wa(){return{traceId:it(),spanId:it().substring(16)}}var Ia=K;function Tf(){let e=Ia.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ia&&!!Ia.history.pushState&&!!Ia.history.replaceState;return!t&&n}var Ne=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function yr(){return fi(K),K}function fi(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ft,t[Ft]=t[Ft]||{}}function di(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Mt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:it()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}var Cf="_sentrySpan";function Nf(e,t){t?ht(e,Cf,t):delete e[Cf]}function Mf(e){return e[Cf]}var oT=100,xf=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=wa()}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags=N({},this._tags),t._extra=N({},this._extra),t._contexts=N({},this._contexts),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata=N({},this._sdkProcessingMetadata),t._propagationContext=N({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,Nf(t,Mf(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&di(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags=N(N({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,n){return this._tags=ie(N({},this._tags),{[t]:n}),this._notifyScopeListeners(),this}setExtras(t){return this._extra=N(N({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,n){return this._extra=ie(N({},this._extra),{[t]:n}),this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t=="function"?t(this):t,[r,o]=n instanceof lt?[n.getScopeData(),n.getRequestSession()]:qt(n)?[t,t.requestSession]:[],{tags:i,extra:s,user:a,contexts:c,level:l,fingerprint:d=[],propagationContext:h}=r||{};return this._tags=N(N({},this._tags),i),this._extra=N(N({},this._extra),s),this._contexts=N(N({},this._contexts),c),a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),d.length&&(this._fingerprint=d),h&&(this._propagationContext=h),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Nf(this,void 0),this._attachments=[],this._propagationContext=wa(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:oT;if(r<=0)return this;let o=N({timestamp:hn()},t),i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Mf(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=N(N({},this._sdkProcessingMetadata),t),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n&&n.event_id?n.event_id:it();if(!this._client)return W.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,ie(N({originalException:t,syntheticException:o},n),{event_id:r}),this),r}captureMessage(t,n,r){let o=r&&r.event_id?r.event_id:it();if(!this._client)return W.warn("No client configured on scope - will not capture message!"),o;let i=new Error(t);return this._client.captureMessage(t,n,ie(N({originalException:t,syntheticException:i},r),{event_id:o}),this),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:it();return this._client?(this._client.captureEvent(t,ie(N({},n),{event_id:r}),this),r):(W.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}},lt=xf;function iv(){return so("defaultCurrentScope",()=>new lt)}function sv(){return so("defaultIsolationScope",()=>new lt)}var Af=class{constructor(t,n){let r;t?r=t:r=new lt;let o;n?o=n:o=new lt,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){let n=this._pushScope(),r;try{r=t(n)}catch(o){throw this._popScope(),o}return On(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function lo(){let e=yr(),t=fi(e);return t.stack=t.stack||new Af(iv(),sv())}function iT(e){return lo().withScope(e)}function sT(e,t){let n=lo();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function av(e){return lo().withScope(()=>e(lo().getIsolationScope()))}function cv(){return{withIsolationScope:av,withScope:iT,withSetScope:sT,withSetIsolationScope:(e,t)=>av(t),getCurrentScope:()=>lo().getScope(),getIsolationScope:()=>lo().getIsolationScope()}}function Sa(e){let t=fi(e);return t.acs?t.acs:cv()}function vr(){let e=yr();return Sa(e).getCurrentScope()}function Er(){let e=yr();return Sa(e).getIsolationScope()}function ba(){return so("globalScope",()=>new lt)}function Ta(...e){let t=yr(),n=Sa(t);if(e.length===2){let[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function Be(){return vr().getClient()}var aT="_sentryMetrics";function uv(e){let t=e[aT];if(!t)return;let n={};for(let[,[r,o]]of t)(n[r]||(n[r]=[])).push(et(o));return n}var Of="sentry.source",Rf="sentry.sample_rate",Lf="sentry.op",Pf="sentry.origin";var cT=1;function dv(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=_r(e);return et({parent_span_id:r,span_id:t,trace_id:n})}function lv(e){return typeof e=="number"?fv(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?fv(e.getTime()):Mt()}function fv(e){return e>9999999999?e/1e3:e}function _r(e){if(lT(e))return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(uT(e)){let{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return et({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:lv(o),timestamp:lv(s)||void 0,status:fT(c),op:r[Lf],origin:r[Pf],_metrics_summary:uv(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function uT(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function lT(e){return typeof e.getSpanJSON=="function"}function pv(e){let{traceFlags:t}=e.spanContext();return t===cT}function fT(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}var dT="_sentryRootSpan";function pi(e){return e[dT]||e}var Ca="production";var pT="_frozenDsc";function Ff(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=et({environment:n.environment||Ca,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function hv(e){let t=Be();if(!t)return{};let n=Ff(_r(e).trace_id||"",t),r=pi(e),o=r[pT];if(o)return o;let i=r.spanContext().traceState,s=i&&i.get("sentry.dsc"),a=s&&yf(s);if(a)return a;let c=_r(r),l=c.data||{},d=l[Rf];d!=null&&(n.sample_rate=`${d}`);let h=l[Of],y=c.description;return h!=="url"&&y&&(n.transaction=y),n.sampled=String(pv(r)),t.emit("createDsc",n,r),n}function gv(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){Ne&&W.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function hT(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function mv(e,t,n,r){let o=Da(n),i=N(N({sent_at:new Date().toISOString()},o&&{sdk:o}),!!r&&t&&{dsn:dn(t)}),s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return gn(i,[s])}function yv(e,t,n,r){let o=Da(n),i=e.type&&e.type!=="replay_event"?e.type:"event";hT(e,n&&n.sdk);let s=wf(e,o,r,t);return delete e.sdkProcessingMetadata,gn(s,[[{type:i},e]])}function Na(e,t,n,r=0){return new Kt((o,i)=>{let s=e[r];if(t===null||typeof s!="function")o(t);else{let a=s(N({},t),n);Ne&&s.id&&a===null&&W.log(`Event processor "${s.id}" dropped event`),On(a)?a.then(c=>Na(e,c,n,r+1).then(o)).then(null,i):Na(e,a,n,r+1).then(o).then(null,i)}})}function vv(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;gT(e,t),r&&vT(e,r),ET(e,n),mT(e,o),yT(e,i)}function kf(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:d,attachments:h,propagationContext:y,transactionName:v,span:b}=t;hi(e,"extra",n),hi(e,"tags",r),hi(e,"user",o),hi(e,"contexts",i),hi(e,"sdkProcessingMetadata",a),s&&(e.level=s),v&&(e.transactionName=v),b&&(e.span=b),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext=N(N({},e.propagationContext),y)}function hi(e,t,n){if(n&&Object.keys(n).length){e[t]=N({},e[t]);for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function gT(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=et(n);c&&Object.keys(c).length&&(e.extra=N(N({},c),e.extra));let l=et(r);l&&Object.keys(l).length&&(e.tags=N(N({},l),e.tags));let d=et(o);d&&Object.keys(d).length&&(e.user=N(N({},d),e.user));let h=et(i);h&&Object.keys(h).length&&(e.contexts=N(N({},h),e.contexts)),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function mT(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function yT(e,t){e.sdkProcessingMetadata=N(N({},e.sdkProcessingMetadata),t)}function vT(e,t){e.contexts=N({trace:dv(t)},e.contexts),e.sdkProcessingMetadata=N({dynamicSamplingContext:hv(t)},e.sdkProcessingMetadata);let n=pi(t),r=_r(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function ET(e,t){e.fingerprint=e.fingerprint?ya(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function _v(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c=ie(N({},t),{event_id:t.event_id||n.event_id||it(),timestamp:t.timestamp||hn()}),l=n.integrations||e.integrations.map(R=>R.name);_T(c,e),IT(c,l),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&DT(c,e.stackParser);let d=bT(r,n.captureContext);n.mechanism&&Rn(c,n.mechanism);let h=o?o.getEventProcessors():[],y=ba().getScopeData();if(i){let R=i.getScopeData();kf(y,R)}if(d){let R=d.getScopeData();kf(y,R)}let v=[...n.attachments||[],...y.attachments];v.length&&(n.attachments=v),vv(c,y);let b=[...h,...y.eventProcessors];return Na(b,c,n).then(R=>(R&&wT(R),typeof s=="number"&&s>0?ST(R,s,a):R))}function _T(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Ca),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=ln(e.message,i));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=ln(s.value,i));let a=e.request;a&&a.url&&(a.url=ln(a.url,i))}var Ev=new WeakMap;function DT(e,t){let n=K._sentryDebugIds;if(!n)return;let r,o=Ev.get(t);o?r=o:(r=new Map,Ev.set(t,r));let i=Object.entries(n).reduce((s,[a,c])=>{let l,d=r.get(a);d?l=d:(l=t(a),r.set(a,l));for(let h=l.length-1;h>=0;h--){let y=l[h];if(y.filename){s[y.filename]=c;break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function wT(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function IT(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ST(e,t,n){if(!e)return null;let r=N(N(N(N(N({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>N(N({},o),o.data&&{data:Zt(o.data,t,n)}))}),e.user&&{user:Zt(e.user,t,n)}),e.contexts&&{contexts:Zt(e.contexts,t,n)}),e.extra&&{extra:Zt(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Zt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>N(N({},o),o.data&&{data:Zt(o.data,t,n)}))),r}function bT(e,t){if(!t)return e;let n=e?e.clone():new lt;return n.update(t),n}function Dv(e){if(e)return TT(e)?{captureContext:e}:NT(e)?{captureContext:e}:e}function TT(e){return e instanceof lt||typeof e=="function"}var CT=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function NT(e){return Object.keys(e).some(t=>CT.includes(t))}function Ma(e,t){return vr().captureException(e,Dv(t))}function gi(e,t){return vr().captureEvent(e,t)}var MT="7";function xT(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function AT(e){return`${xT(e)}${e.projectId}/envelope/`}function OT(e,t){return tf(N({sentry_key:e.publicKey,sentry_version:MT},t&&{sentry_client:`${t.name}/${t.version}`}))}function Iv(e,t,n){return t||`${AT(e)}?${OT(e,n)}`}var Sv=[];function bv(e,t){let n={};return t.forEach(r=>{r&&Uf(e,r,n)}),n}function Bf(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Uf(e,t,n){if(n[t.name]){Ne&&W.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Sv.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Sv.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}Ne&&W.log(`Integration installed: ${t.name}`)}var Tv="Not capturing exception because it's already been captured.",mi=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=ca(t.dsn):Ne&&W.warn("No DSN provided, client will not send events."),this._dsn){let n=Iv(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(ie(N({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:n}))}}captureException(t,n,r){let o=it();if(ma(t))return Ne&&W.log(Tv),o;let i=N({event_id:o},n);return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r))),i.event_id}captureMessage(t,n,r,o){let i=N({event_id:it()},r),s=oo(t)?t:String(t),a=hr(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(a.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,r){let o=it();if(n&&n.originalException&&ma(n.originalException))return Ne&&W.log(Tv),o;let i=N({event_id:o},n),a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,a||r)),i.event_id}captureSession(t){typeof t.release!="string"?Ne&&W.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),di(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):Bt(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let n=this._integrations[t.name];Uf(this,t,this._integrations),n||Bf(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=yv(t,this._dsn,this._options._metadata,this._options.tunnel);for(let i of n.attachments||[])r=Ef(r,Df(i));let o=this.sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){let n=mv(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){let o=`${t}:${n}`;Ne&&W.log(`Adding outcome: "${o}"`),this._outcomes[o]=(this._outcomes[o]||0)+1}}on(t,n){let r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{let o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){let r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Ne&&W.error("Error while sending event:",n),n)):(Ne&&W.error("Transport disabled"),Bt({}))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=bv(this,t),Bf(this,t)}_updateSessionFromEvent(t,n){let r=!1,o=!1,i=n.exception&&n.exception.values;if(i){o=!0;for(let c of i){let l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}let s=t.status==="ok";(s&&t.errors===0||s&&r)&&(di(t,ie(N({},r&&{status:"crashed"}),{errors:t.errors||Number(o||r)})),this.captureSession(t))}_isClientDoneProcessing(t){return new Kt(n=>{let r=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=Er()){let i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),_v(i,t,n,r,this,o).then(a=>{if(a===null)return a;let c=N(N({},o.getPropagationContext()),r?r.getPropagationContext():void 0);if(!(a.contexts&&a.contexts.trace)&&c){let{traceId:d,spanId:h,parentSpanId:y,dsc:v}=c;a.contexts=N({trace:et({trace_id:d,span_id:h,parent_span_id:y})},a.contexts);let b=v||Ff(d,this);a.sdkProcessingMetadata=N({dynamicSamplingContext:b},a.sdkProcessingMetadata)}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(Ne){let i=o;i.logLevel==="log"?W.log(i.message):W.warn(i)}})}_processEvent(t,n,r){let o=this.getOptions(),{sampleRate:i}=o,s=jf(t),a=Cv(t),c=t.type||"error",l=`before send for type \`${c}\``,d=typeof i>"u"?void 0:gv(i);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",t),Yn(new ut(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let h=c==="replay_event"?"replay":c,v=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,v).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",h,t),new ut("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return b;let R=LT(this,o,b,n);return RT(R,l)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",h,t),jf(t)){let $=1+(t.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+$}throw new ut(`${l} returned \`null\`, will not send event.`,"log")}let M=r&&r.getSession();!s&&M&&this._updateSessionFromEvent(M,b);let R=b.transaction_info;if(s&&R&&b.transaction!==t.transaction){let k="custom";b.transaction_info=ie(N({},R),{source:k})}return this.sendEvent(b,n),b}).then(null,b=>{throw b instanceof ut?b:(this.captureException(b,{data:{__sentry__:!0},originalException:b}),new ut(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
29
+ Reason: ${b}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{let[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}};function RT(e,t){let n=`${t} must return \`null\` or a valid event.`;if(On(e))return e.then(r=>{if(!qt(r)&&r!==null)throw new ut(n);return r},r=>{throw new ut(`${t} rejected with ${r}`)});if(!qt(e)&&e!==null)throw new ut(n);return e}function LT(e,t,n,r){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(Cv(n)&&o)return o(n,r);if(jf(n)){if(n.spans&&s){let a=[];for(let c of n.spans){let l=s(c);l?a.push(l):e.recordDroppedEvent("before_send","span")}n.spans=a}if(i)return i(n,r)}return n}function Cv(e){return e.type===void 0}function jf(e){return e.type==="transaction"}var PT=64;function xa(e,t,n=gf(e.bufferSize||PT)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(Ea(s,(h,y)=>{let v=_a(y);if(Sf(r,v)){let b=Nv(h,y);e.recordDroppedEvent("ratelimit_backoff",v,b)}else a.push(h)}),a.length===0)return Bt({});let c=gn(s[0],a),l=h=>{Ea(c,(y,v)=>{let b=Nv(y,v);e.recordDroppedEvent(h,_a(v),b)})},d=()=>t({body:_f(c)}).then(h=>(h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&Ne&&W.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=bf(r,h),h),h=>{throw l("network_error"),h});return n.add(d).then(h=>h,h=>{if(h instanceof ut)return Ne&&W.error("Skipped sending event because buffer is full."),l("queue_overflow"),Bt({});throw h})}return{send:i,flush:o}}function Nv(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Vf(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Ft})),version:Ft}),e._metadata=o}var FT=100;function mn(e,t){let n=Be(),r=Er();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=FT}=n.getOptions();if(i<=0)return;let s=hn(),a=N({timestamp:s},e),c=o?co(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}var Mv,kT="FunctionToString",xv=new WeakMap,BT=()=>({name:kT,setupOnce(){Mv=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=mr(this),n=xv.has(Be())&&t!==void 0?t:this;return Mv.apply(n,e)}}catch{}},setup(e){xv.set(e,!0)}}),Aa=BT;var UT=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],jT="InboundFilters",VT=(e={})=>({name:jT,processEvent(t,n,r){let o=r.getOptions(),i=HT(e,o);return $T(t,i)?null:t}}),Ra=VT;function HT(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:UT],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function $T(e,t){return t.ignoreInternal&&ZT(e)?(Ne&&W.warn(`Event dropped due to being internal Sentry Error.
30
+ Event: ${Yt(e)}`),!0):GT(e,t.ignoreErrors)?(Ne&&W.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
31
+ Event: ${Yt(e)}`),!0):JT(e)?(Ne&&W.warn(`Event dropped due to not having an error message, error type or stacktrace.
32
+ Event: ${Yt(e)}`),!0):WT(e,t.ignoreTransactions)?(Ne&&W.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
33
+ Event: ${Yt(e)}`),!0):zT(e,t.denyUrls)?(Ne&&W.warn(`Event dropped due to being matched by \`denyUrls\` option.
34
+ Event: ${Yt(e)}.
35
+ Url: ${Oa(e)}`),!0):qT(e,t.allowUrls)?!1:(Ne&&W.warn(`Event dropped due to not being matched by \`allowUrls\` option.
36
+ Event: ${Yt(e)}.
37
+ Url: ${Oa(e)}`),!0)}function GT(e,t){return e.type||!t||!t.length?!1:YT(e).some(n=>io(n,t))}function WT(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;let n=e.transaction;return n?io(n,t):!1}function zT(e,t){if(!t||!t.length)return!1;let n=Oa(e);return n?io(n,t):!1}function qT(e,t){if(!t||!t.length)return!0;let n=Oa(e);return n?io(n,t):!0}function YT(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function ZT(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function KT(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Oa(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?KT(t):null}catch{return Ne&&W.error(`Cannot extract url for event ${Yt(e)}`),null}}function JT(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}var QT="Dedupe",XT=()=>{let e;return{name:QT,processEvent(t){if(t.type)return t;try{if(eC(t,e))return Ne&&W.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},La=XT;function eC(e,t){return t?!!(tC(e,t)||nC(e,t)):!1}function tC(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rv(e,t)||!Ov(e,t))}function nC(e,t){let n=Av(t),r=Av(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rv(e,t)||!Ov(e,t))}function Ov(e,t){let n=da(e),r=da(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Rv(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Av(e){return e.exception&&e.exception.values&&e.exception.values[0]}var qe=K,Hf=0;function $f(){return Hf>0}function gC(){Hf++,setTimeout(()=>{Hf--})}function Dr(e,t={},n){if(typeof e!="function")return e;try{let o=e.__sentry_wrapped__;if(o)return o;if(mr(e))return e}catch{return e}let r=function(){let o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let i=o.map(s=>Dr(s,t));return e.apply(this,i)}catch(i){throw gC(),Ta(s=>{s.addEventProcessor(a=>(t.mechanism&&(uo(a,void 0,void 0),Rn(a,t.mechanism)),a.extra=ie(N({},a.extra),{arguments:o}),a)),Ma(i)}),i}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}ua(r,e),ht(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}var Pn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Pa(e,t){let n=zf(e,t),r={type:t&&t.name,value:_C(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function mC(e,t,n,r){let o=Be(),i=o&&o.getOptions().normalizeDepth,s=IC(t),a={__serialized__:va(t,i)};if(s)return{exception:{values:[Pa(e,s)]},extra:a};let c={exception:{values:[{type:gr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:DC(t,{isUnhandledRejection:r})}]},extra:a};if(n){let l=zf(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function Gf(e,t){return{exception:{values:[Pa(e,t)]}}}function zf(e,t){let n=t.stacktrace||t.stack||"",r=vC(t),o=EC(t);try{return e(n,r,o)}catch{}return[]}var yC=/Minified React error #\d+;/i;function vC(e){return e&&yC.test(e.message)?1:0}function EC(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function _C(e){let t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function kv(e,t,n,r){let o=n&&n.syntheticException||void 0,i=Fa(e,t,o,r);return Rn(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Bt(i)}function Bv(e,t,n="info",r,o){let i=r&&r.syntheticException||void 0,s=Wf(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Bt(s)}function Fa(e,t,n,r,o){let i;if(ia(t)&&t.error)return Gf(e,t.error);if(sa(t)||Wl(t)){let s=t;if("stack"in t)i=Gf(e,t);else{let a=s.name||(sa(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=Wf(e,c,n,r),uo(i,c)}return"code"in s&&(i.tags=ie(N({},i.tags),{"DOMException.code":`${s.code}`})),i}return pr(t)?Gf(e,t):qt(t)||gr(t)?(i=mC(e,t,n,o),Rn(i,{synthetic:!0}),i):(i=Wf(e,t,n,r),uo(i,`${t}`,void 0),Rn(i,{synthetic:!0}),i)}function Wf(e,t,n,r){let o={};if(r&&n){let i=zf(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(oo(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function DC(e,{isUnhandledRejection:t}){let n=nf(e),r=t?"promise rejection":"exception";return ia(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:gr(e)?`Event \`${wC(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function wC(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function IC(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}function Uv(e,{metadata:t,tunnel:n,dsn:r}){let o=N(N({event_id:e.event_id,sent_at:new Date().toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:dn(r)}),i=SC(e);return gn(o,[i])}function SC(e){return[{type:"user_report"},e]}var yi=class extends mi{constructor(t){let n=N({parentSpanIsAlwaysRootSpan:!0},t),r=qe.SENTRY_SDK_SOURCE||pf();Vf(n,"browser",["browser"],r),super(n),n.sendClientReports&&qe.document&&qe.document.addEventListener("visibilitychange",()=>{qe.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return kv(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Bv(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Pn&&W.warn("SDK not enabled, will not capture user feedback.");return}let n=Uv(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){let t=this._clearOutcomes();if(t.length===0){Pn&&W.log("No outcomes to send");return}if(!this._dsn){Pn&&W.log("No dsn provided, will not send outcomes");return}Pn&&W.log("Sending outcomes:",t);let n=If(t,this._options.tunnel&&dn(this._dsn));this.sendEnvelope(n)}};var jv=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Je=K;var bC=1e3,Vv,qf,Yf;function Zf(e){let t="dom";gt(t,e),mt(t,TC)}function TC(){if(!Je.document)return;let e=tt.bind(null,"dom"),t=Hv(e,!0);Je.document.addEventListener("click",t,!1),Je.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=Je[n]&&Je[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Pe(r,"addEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},d=l[i]=l[i]||{refCount:0};if(!d.handler){let h=Hv(e);d.handler=h,o.call(this,i,h,a)}d.refCount++}catch{}return o.call(this,i,s,a)}}),Pe(r,"removeEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__||{},d=l[i];d&&(d.refCount--,d.refCount<=0&&(o.call(this,i,d.handler,a),d.handler=void 0,delete l[i]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,a)}}))})}function CC(e){if(e.type!==qf)return!1;try{if(!e.target||e.target._sentryId!==Yf)return!1}catch{}return!0}function NC(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Hv(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=MC(n);if(NC(n.type,r))return;ht(n,"_sentryCaptured",!0),r&&!r._sentryId&&ht(r,"_sentryId",it());let o=n.type==="keypress"?"input":n.type;CC(n)||(e({event:n,name:o,global:t}),qf=n.type,Yf=r?r._sentryId:void 0),clearTimeout(Vv),Vv=Je.setTimeout(()=>{Yf=void 0,qf=void 0},bC)}}function MC(e){try{return e.target}catch{return null}}var ka;function Kf(e){let t="history";gt(t,e),mt(t,xC)}function xC(){if(!Tf())return;let e=Je.onpopstate;Je.onpopstate=function(...n){let r=Je.location.href,o=ka;if(ka=r,tt("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let o=r.length>2?r[2]:void 0;if(o){let i=ka,s=String(o);ka=s,tt("history",{from:i,to:s})}return n.apply(this,r)}}Pe(Je.history,"pushState",t),Pe(Je.history,"replaceState",t)}var Ba={};function Jf(e){let t=Ba[e];if(t)return t;let n=Je[e];if(ci(n))return Ba[e]=n.bind(Je);let r=Je.document;if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){jv&&W.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Ba[e]=n.bind(Je))}function Ua(e){Ba[e]=void 0}var wr="__sentry_xhr_v3__";function Qf(e){let t="xhr";gt(t,e),mt(t,AC)}function AC(){if(!Je.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;Pe(e,"open",function(t){return function(...n){let r=Mt()*1e3,o=pt(n[0])?n[0].toUpperCase():void 0,i=OC(n[1]);if(!o||!i)return t.apply(this,n);this[wr]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[wr];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let c={endTimestamp:Mt()*1e3,startTimestamp:r,xhr:this};tt("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Pe(this,"onreadystatechange",function(a){return function(...c){return s(),a.apply(this,c)}}):this.addEventListener("readystatechange",s),Pe(this,"setRequestHeader",function(a){return function(...c){let[l,d]=c,h=this[wr];return h&&pt(l)&&pt(d)&&(h.request_headers[l.toLowerCase()]=d),a.apply(this,c)}}),t.apply(this,n)}}),Pe(e,"send",function(t){return function(...n){let r=this[wr];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let o={startTimestamp:Mt()*1e3,xhr:this};return tt("xhr",o),t.apply(this,n)}})}function OC(e){if(pt(e))return e;try{return e.toString()}catch{}}function Xf(e,t=Jf("fetch")){let n=0,r=0;function o(i){let s=i.body.length;n+=s,r++;let a=N({body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);if(!t)return Ua("fetch"),Yn("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Ua("fetch"),n-=s,r--,Yn(c)}}return xa(e,o)}var RC=30;var LC=50;function ed(e,t,n,r){let o={filename:e,function:t==="<anonymous>"?pn:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var PC=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,FC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,kC=/\((\S*)(?::(\d+))(?::(\d+))\)/,BC=e=>{let t=PC.exec(e);if(t){let[,r,o,i]=t;return ed(r,pn,+o,+i)}let n=FC.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){let s=kC.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}let[o,i]=zv(n[1]||pn,n[2]);return ed(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},$v=[RC,BC],UC=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jC=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,VC=e=>{let t=UC.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=jC.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||pn;return[o,r]=zv(o,r),ed(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Gv=[LC,VC];var Wv=[$v,Gv],td=of(...Wv),zv=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:pn,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var ja=1024,$C="Breadcrumbs",GC=(e={})=>{let t=N({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:$C,setup(n){t.console&&sf(qC(n)),t.dom&&Zf(zC(n,t.dom)),t.xhr&&Qf(YC(n)),t.fetch&&lf(ZC(n)),t.history&&Kf(KC(n)),t.sentry&&n.on("beforeSendEvent",WC(n))}}},qv=GC;function WC(e){return function(n){Be()===e&&mn({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Yt(n)},{event:n})}}function zC(e,t){return function(r){if(Be()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>ja&&(Pn&&W.warn(`\`dom.maxStringLength\` cannot exceed ${ja}, but a value of ${a} was configured. Sentry will use ${ja} instead.`),a=ja),typeof s=="string"&&(s=[s]);try{let l=r.event,d=JC(l)?l.target:l;o=si(d,{keyAttrs:s,maxStringLength:a}),i=Xl(d)}catch{o="<unknown>"}if(o.length===0)return;let c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),mn(c,{event:r.event,name:r.name,global:r.global})}}function qC(e){return function(n){if(Be()!==e)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:mf(n.level),message:aa(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${aa(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;mn(r,{input:n.args,level:n.level})}}function YC(e){return function(n){if(Be()!==e)return;let{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[wr];if(!r||!o||!i)return;let{method:s,url:a,status_code:c,body:l}=i,d={method:s,url:a,status_code:c},h={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:o};mn({category:"xhr",data:d,type:"http"},h)}}function ZC(e){return function(n){if(Be()!==e)return;let{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){let i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};mn({category:"fetch",data:i,level:"error",type:"http"},s)}else{let i=n.response,s=ie(N({},n.fetchData),{status_code:i&&i.status}),a={input:n.args,response:i,startTimestamp:r,endTimestamp:o};mn({category:"fetch",data:s,type:"http"},a)}}}function KC(e){return function(n){if(Be()!==e)return;let r=n.from,o=n.to,i=li(qe.location.href),s=r?li(r):void 0,a=li(o);(!s||!s.path)&&(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),mn({category:"navigation",data:{from:r,to:o}})}}function JC(e){return!!e&&!!e.target}var QC=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],XC="BrowserApiErrors",eN=(e={})=>{let t=N({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e);return{name:XC,setupOnce(){t.setTimeout&&Pe(qe,"setTimeout",Yv),t.setInterval&&Pe(qe,"setInterval",Yv),t.requestAnimationFrame&&Pe(qe,"requestAnimationFrame",tN),t.XMLHttpRequest&&"XMLHttpRequest"in qe&&Pe(XMLHttpRequest.prototype,"send",nN);let n=t.eventTarget;n&&(Array.isArray(n)?n:QC).forEach(rN)}}},Zv=eN;function Yv(e){return function(...t){let n=t[0];return t[0]=Dr(n,{mechanism:{data:{function:kt(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tN(e){return function(t){return e.apply(this,[Dr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:kt(e)},handled:!1,type:"instrument"}})])}}function nN(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Pe(n,o,function(i){let s={mechanism:{data:{function:o,handler:kt(i)},handled:!1,type:"instrument"}},a=mr(i);return a&&(s.mechanism.data.handler=kt(a)),Dr(i,s)})}),e.apply(this,t)}}function rN(e){let t=qe,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Pe(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=Dr(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:kt(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,Dr(i,{mechanism:{data:{function:"addEventListener",handler:kt(i),target:e},handled:!1,type:"instrument"}}),s])}}),Pe(n,"removeEventListener",function(r){return function(o,i,s){let a=i;try{let c=a&&a.__sentry_wrapped__;c&&r.call(this,o,c,s)}catch{}return r.call(this,o,a,s)}}))}var oN="GlobalHandlers",iN=(e={})=>{let t=N({onerror:!0,onunhandledrejection:!0},e);return{name:oN,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(sN(n),Kv("onerror")),t.onunhandledrejection&&(aN(n),Kv("onunhandledrejection"))}}},Jv=iN;function sN(e){ff(t=>{let{stackParser:n,attachStacktrace:r}=Qv();if(Be()!==e||$f())return;let{msg:o,url:i,line:s,column:a,error:c}=t,l=lN(Fa(n,c||o,void 0,r,!1),i,s,a);l.level="error",gi(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function aN(e){df(t=>{let{stackParser:n,attachStacktrace:r}=Qv();if(Be()!==e||$f())return;let o=cN(t),i=hr(o)?uN(o):Fa(n,o,void 0,r,!0);i.level="error",gi(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function cN(e){if(hr(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function uN(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function lN(e,t,n,r){let o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=pt(t)&&t.length>0?t:Ql();return c.length===0&&c.push({colno:l,filename:h,function:pn,in_app:!0,lineno:d}),e}function Kv(e){Pn&&W.log(`Global Handler attached: ${e}`)}function Qv(){let e=Be();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var Xv=()=>({name:"HttpContext",preprocessEvent(e){if(!qe.navigator&&!qe.location&&!qe.document)return;let t=e.request&&e.request.url||qe.location&&qe.location.href,{referrer:n}=qe.document||{},{userAgent:r}=qe.navigator||{},o=N(N(N({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),i=ie(N(N({},e.request),t&&{url:t}),{headers:o});e.request=i}});var fN="cause",dN=5,pN="LinkedErrors",hN=(e={})=>{let t=e.limit||dN,n=e.key||fN;return{name:pN,preprocessEvent(r,o,i){let s=i.getOptions();Kl(Pa,s.stackParser,s.maxValueLength,n,t,r,o)}}},eE=hN;function nd(e){return[Ra(),Aa(),Zv(),qv(),Jv(),eE(),La(),Xv()]}var rd=class extends Error{cause;constructor(t,n){super(t),this.cause=n}},Va=class e{static INSTANCE;contexts={};tags;client;user;constructor(){this.init()}static getInstance(){return this.INSTANCE||(this.INSTANCE=new e),this.INSTANCE}captureException(t,n,r){ot.error(t),this.getNewScope(n,r).captureException(t)}captureMessage(t,n,r,o){this.getNewScope(r,o).captureMessage(t,n??"error")}captureError(t,n,r,o){ot.error(t,n);let i=this.getNewScope(r,o),s=new rd(t,n);i.captureException(s)}setGlobalContext(t,n){this.contexts[t]=N({context:n},this.contexts[t])}setUser(t){this.user=t}setTags(t){this.tags=t}getNewScope(t,n){let r=new lt;if(r.setClient(this.client),r.setUser(this.user),t?.triggerContext){let o=t.triggerContext;r.setExtras(o.triggerData.sentryContext()),delete t.triggerContext}return t&&r.setExtras(t),this.tags&&r.setTags(this.tags),n&&r.setTags(n),Object.keys(this.contexts).forEach(o=>{r.setContext(o,this.contexts[o])}),r.setTag("language",navigator.language),r.setTag("timezone",Zn.getTimezone()),r}init(){let t=nd({}).filter(n=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(n.name));this.client=new yi({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:Xf,stackParser:td,integrations:t,environment:ri.mode,release:`web-sdk@${cn.SDK_VERSION}`,debug:ri.debug}),this.client.init()}};var Zn=class{static tz;static isValidURL(t){try{return new URL(t)}catch{return}}static isNull(t){return!t||t==="null"||t==="undefined"}static removeFromArray(t,n){let r=t.indexOf(n);return r===-1?!1:(t.splice(r,1),!0)}static formatCurrency(t,n){if(t==0&&n)return"Free";let r=ea.get(),o=Js.get(),i=r.shopCurrencyCode||o.currency,s=r.currencyCode;s||ot.warn("Currency code is not set in RuntimeData");let a=o.money?.format??r.moneyFormat,c;if(a&&i===s)c=Qs.format(t*100,a);else{let l;try{l=new Intl.NumberFormat(this.getLang(),{style:"currency",currency:s||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(d){return Va.getInstance().captureException(d,{currentCurrency:s,shopCurrency:i}),""}c=l.format(t),c=c.replace("\u20B9","Rs. "),o.money?.showCurrency&&s!=="INR"&&(c=c.concat(` ${s}`))}return c}static formatNumber(t){return new Intl.NumberFormat(this.getLang(),{notation:"compact"}).format(t)}static getLang(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}static getTimezone(){if(this.tz)return this.tz;try{return this.tz=Intl.DateTimeFormat().resolvedOptions().timeZone,this.tz}catch{return""}}static documentReady(t){document.readyState!=="loading"?t():document.addEventListener("DOMContentLoaded",t)}static onDocumentLoaded(t){document.readyState==="complete"?t():document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&t()})}static showSnackbar(t){let n=document.createElement("span");n.id="snackbar",n.innerText=t,document.body.appendChild(n),n.className="show",setTimeout(()=>{n.classList.remove("show"),document.body.removeChild(n)},3e3)}static async retrySelectorForElements(t,n=10,r=document){let o=0,i=document.querySelectorAll("nonexistent-tag");for(;o<n;){let s=Math.min(100*2**o,5e3);if(await tE.JSUtils.sleep(s),i=r.querySelectorAll(t),i.length)return ot.debug(`Attempt ${o+1}: ${i.length} elements found with ${t}`),i;ot.debug(`Attempt ${o+1}: Elements not found with ${t}. Retrying after ${s}ms.`),o++}return ot.warn(`Max attempts reached. Element not found with ${t}.`),i}static async retrySelector(t,n=10,r=document){return(await this.retrySelectorForElements(t,n,r)).item(0)}static async getCartAttributes(){let t=await ra.get(oi.DEVICE_ID),n=await oa.get(oi.ID,"");return[{key:"letscooee_did",value:t},{key:"letscooee_sid",value:n},{key:"__letscooee_time",value:new Date().toLocaleString()},{key:"__letscooee_via",value:"Buy Now"}]}static onNodesRemoved(t,n,r=document.body){let o=new MutationObserver(i=>{i.forEach(s=>{s.removedNodes.forEach(a=>{(a===t||a.contains(t))&&(n(),o.disconnect())})})});o.observe(r,{childList:!0})}};var fo=class e{transform(t){return t?Zn.formatCurrency(t):null}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Jr({name:"cooeeCurrency",type:e,pure:!0})};var iE=Io(nE());var gN=Object.prototype.toString,ho=Array.isArray||function(t){return gN.call(t)==="[object Array]"};function id(e){return typeof e=="function"}function mN(e){return ho(e)?"array":typeof e}function od(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function rE(e,t){return e!=null&&typeof e=="object"&&t in e}function yN(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var vN=RegExp.prototype.test;function EN(e,t){return vN.call(e,t)}var _N=/\S/;function DN(e){return!EN(_N,e)}var wN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function IN(e){return String(e).replace(/[&<>"'`=\/]/g,function(n){return wN[n]})}var SN=/\s*/,bN=/\s+/,oE=/\s*=/,TN=/\s*\}/,CN=/#|\^|\/|>|\{|&|=|!/;function NN(e,t){if(!e)return[];var n=!1,r=[],o=[],i=[],s=!1,a=!1,c="",l=0;function d(){if(s&&!a)for(;i.length;)delete o[i.pop()];else i=[];s=!1,a=!1}var h,y,v;function b(q){if(typeof q=="string"&&(q=q.split(bN,2)),!ho(q)||q.length!==2)throw new Error("Invalid tags: "+q);h=new RegExp(od(q[0])+"\\s*"),y=new RegExp("\\s*"+od(q[1])),v=new RegExp("\\s*"+od("}"+q[1]))}b(t||Ut.tags);for(var M=new Ei(e),R,k,$,Q,j,_e;!M.eos();){if(R=M.pos,$=M.scanUntil(h),$)for(var B=0,X=$.length;B<X;++B)Q=$.charAt(B),DN(Q)?(i.push(o.length),c+=Q):(a=!0,n=!0,c+=" "),o.push(["text",Q,R,R+1]),R+=1,Q===`
38
+ `&&(d(),c="",l=0,n=!1);if(!M.scan(h))break;if(s=!0,k=M.scan(CN)||"name",M.scan(SN),k==="="?($=M.scanUntil(oE),M.scan(oE),M.scanUntil(y)):k==="{"?($=M.scanUntil(v),M.scan(TN),M.scanUntil(y),k="&"):$=M.scanUntil(y),!M.scan(y))throw new Error("Unclosed tag at "+M.pos);if(k==">"?j=[k,$,R,M.pos,c,l,n]:j=[k,$,R,M.pos],l++,o.push(j),k==="#"||k==="^")r.push(j);else if(k==="/"){if(_e=r.pop(),!_e)throw new Error('Unopened section "'+$+'" at '+R);if(_e[1]!==$)throw new Error('Unclosed section "'+_e[1]+'" at '+R)}else k==="name"||k==="{"||k==="&"?a=!0:k==="="&&b($)}if(d(),_e=r.pop(),_e)throw new Error('Unclosed section "'+_e[1]+'" at '+M.pos);return xN(MN(o))}function MN(e){for(var t=[],n,r,o=0,i=e.length;o<i;++o)n=e[o],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function xN(e){for(var t=[],n=t,r=[],o,i,s=0,a=e.length;s<a;++s)switch(o=e[s],o[0]){case"#":case"^":n.push(o),r.push(o),n=o[4]=[];break;case"/":i=r.pop(),i[5]=o[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(o)}return t}function Ei(e){this.string=e,this.tail=e,this.pos=0}Ei.prototype.eos=function(){return this.tail===""};Ei.prototype.scan=function(t){var n=this.tail.match(t);if(!n||n.index!==0)return"";var r=n[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r};Ei.prototype.scanUntil=function(t){var n=this.tail.search(t),r;switch(n){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=r.length,r};function po(e,t){this.view=e,this.cache={".":this.view},this.parent=t}po.prototype.push=function(t){return new po(t,this)};po.prototype.lookup=function(t){var n=this.cache,r;if(n.hasOwnProperty(t))r=n[t];else{for(var o=this,i,s,a,c=!1;o;){if(t.indexOf(".")>0)for(i=o.view,s=t.split("."),a=0;i!=null&&a<s.length;)a===s.length-1&&(c=rE(i,s[a])||yN(i,s[a])),i=i[s[a++]];else i=o.view[t],c=rE(o.view,t);if(c){r=i;break}o=o.parent}n[t]=r}return id(r)&&(r=r.call(this.view)),r};function yt(){this.templateCache={_cache:{},set:function(t,n){this._cache[t]=n},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}yt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};yt.prototype.parse=function(t,n){var r=this.templateCache,o=t+":"+(n||Ut.tags).join(":"),i=typeof r<"u",s=i?r.get(o):void 0;return s==null&&(s=NN(t,n),i&&r.set(o,s)),s};yt.prototype.render=function(t,n,r,o){var i=this.getConfigTags(o),s=this.parse(t,i),a=n instanceof po?n:new po(n,void 0);return this.renderTokens(s,a,r,t,o)};yt.prototype.renderTokens=function(t,n,r,o,i){for(var s="",a,c,l,d=0,h=t.length;d<h;++d)l=void 0,a=t[d],c=a[0],c==="#"?l=this.renderSection(a,n,r,o,i):c==="^"?l=this.renderInverted(a,n,r,o,i):c===">"?l=this.renderPartial(a,n,r,i):c==="&"?l=this.unescapedValue(a,n):c==="name"?l=this.escapedValue(a,n,i):c==="text"&&(l=this.rawValue(a)),l!==void 0&&(s+=l);return s};yt.prototype.renderSection=function(t,n,r,o,i){var s=this,a="",c=n.lookup(t[1]);function l(y){return s.render(y,n,r,i)}if(c){if(ho(c))for(var d=0,h=c.length;d<h;++d)a+=this.renderTokens(t[4],n.push(c[d]),r,o,i);else if(typeof c=="object"||typeof c=="string"||typeof c=="number")a+=this.renderTokens(t[4],n.push(c),r,o,i);else if(id(c)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");c=c.call(n.view,o.slice(t[3],t[5]),l),c!=null&&(a+=c)}else a+=this.renderTokens(t[4],n,r,o,i);return a}};yt.prototype.renderInverted=function(t,n,r,o,i){var s=n.lookup(t[1]);if(!s||ho(s)&&s.length===0)return this.renderTokens(t[4],n,r,o,i)};yt.prototype.indentPartial=function(t,n,r){for(var o=n.replace(/[^ \t]/g,""),i=t.split(`
39
+ `),s=0;s<i.length;s++)i[s].length&&(s>0||!r)&&(i[s]=o+i[s]);return i.join(`
40
+ `)};yt.prototype.renderPartial=function(t,n,r,o){if(r){var i=this.getConfigTags(o),s=id(r)?r(t[1]):r[t[1]];if(s!=null){var a=t[6],c=t[5],l=t[4],d=s;c==0&&l&&(d=this.indentPartial(s,l,a));var h=this.parse(d,i);return this.renderTokens(h,n,r,d,o)}}};yt.prototype.unescapedValue=function(t,n){var r=n.lookup(t[1]);if(r!=null)return r};yt.prototype.escapedValue=function(t,n,r){var o=this.getConfigEscape(r)||Ut.escape,i=n.lookup(t[1]);if(i!=null)return typeof i=="number"&&o===Ut.escape?String(i):o(i)};yt.prototype.rawValue=function(t){return t[1]};yt.prototype.getConfigTags=function(t){return ho(t)?t:t&&typeof t=="object"?t.tags:void 0};yt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!ho(t))return t.escape};var Ut={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){vi.templateCache=e},get templateCache(){return vi.templateCache}},vi=new yt;Ut.clearCache=function(){return vi.clearCache()};Ut.parse=function(t,n){return vi.parse(t,n)};Ut.render=function(t,n,r,o){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+mN(t)+'" was given as the first argument for mustache#render(template, view, partials)');return vi.render(t,n,r,o)};Ut.escape=IN;Ut.Scanner=Ei;Ut.Context=po;Ut.Writer=yt;var sd=Ut;sd.escape=iE.MustacheUtils.escapeHtml;var Ga=class e{transform(t,n){return t?sd.render(t,N({},n)):null}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Jr({name:"cooeeDynamicVariables",type:e,pure:!0})};var ad={};(function e(t,n,r,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=function(){if(!t.OffscreenCanvas)return!1;var S=new OffscreenCanvas(1,1),D=S.getContext("2d");D.fillRect(0,0,1,1);var V=S.transferToImageBitmap();try{D.createPattern(V,"no-repeat")}catch{return!1}return!0}();function c(){}function l(S){var D=n.exports.Promise,V=D!==void 0?D:t.Promise;return typeof V=="function"?new V(S):(S(c,c),null)}var d=function(S,D){return{transform:function(V){if(S)return V;if(D.has(V))return D.get(V);var Z=new OffscreenCanvas(V.width,V.height),J=Z.getContext("2d");return J.drawImage(V,0,0),D.set(V,Z),Z},clear:function(){D.clear()}}}(a,new Map),h=function(){var S=Math.floor(16.666666666666668),D,V,Z={},J=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(D=function(te){var ne=Math.random();return Z[ne]=requestAnimationFrame(function Y(re){J===re||J+S-1<re?(J=re,delete Z[ne],te()):Z[ne]=requestAnimationFrame(Y)}),ne},V=function(te){Z[te]&&cancelAnimationFrame(Z[te])}):(D=function(te){return setTimeout(te,S)},V=function(te){return clearTimeout(te)}),{frame:D,cancel:V}}(),y=function(){var S,D,V={};function Z(J){function te(ne,Y){J.postMessage({options:ne||{},callback:Y})}J.init=function(Y){var re=Y.transferControlToOffscreen();J.postMessage({canvas:re},[re])},J.fire=function(Y,re,De){if(D)return te(Y,null),D;var Ae=Math.random().toString(36).slice(2);return D=l(function(me){function de(ke){ke.data.callback===Ae&&(delete V[Ae],J.removeEventListener("message",de),D=null,d.clear(),De(),me())}J.addEventListener("message",de),te(Y,Ae),V[Ae]=de.bind(null,{data:{callback:Ae}})}),D},J.reset=function(){J.postMessage({reset:!0});for(var Y in V)V[Y](),delete V[Y]}}return function(){if(S)return S;if(!r&&i){var J=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
41
+ `);try{S=new Worker(URL.createObjectURL(new Blob([J])))}catch(te){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",te),null}Z(S)}return S}}(),v={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(S,D){return D?D(S):S}function M(S){return S!=null}function R(S,D,V){return b(S&&M(S[D])?S[D]:v[D],V)}function k(S){return S<0?0:Math.floor(S)}function $(S,D){return Math.floor(Math.random()*(D-S))+S}function Q(S){return parseInt(S,16)}function j(S){return S.map(_e)}function _e(S){var D=String(S).replace(/[^0-9a-f]/gi,"");return D.length<6&&(D=D[0]+D[0]+D[1]+D[1]+D[2]+D[2]),{r:Q(D.substring(0,2)),g:Q(D.substring(2,4)),b:Q(D.substring(4,6))}}function B(S){var D=R(S,"origin",Object);return D.x=R(D,"x",Number),D.y=R(D,"y",Number),D}function X(S){S.width=document.documentElement.clientWidth,S.height=document.documentElement.clientHeight}function q(S){var D=S.getBoundingClientRect();S.width=D.width,S.height=D.height}function fe(S){var D=document.createElement("canvas");return D.style.position="fixed",D.style.top="0px",D.style.left="0px",D.style.pointerEvents="none",D.style.zIndex=S,D}function Fe(S,D,V,Z,J,te,ne,Y,re){S.save(),S.translate(D,V),S.rotate(te),S.scale(Z,J),S.arc(0,0,1,ne,Y,re),S.restore()}function Ye(S){var D=S.angle*(Math.PI/180),V=S.spread*(Math.PI/180);return{x:S.x,y:S.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:S.startVelocity*.5+Math.random()*S.startVelocity,angle2D:-D+(.5*V-Math.random()*V),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:S.color,shape:S.shape,tick:0,totalTicks:S.ticks,decay:S.decay,drift:S.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:S.gravity*3,ovalScalar:.6,scalar:S.scalar,flat:S.flat}}function Ve(S,D){D.x+=Math.cos(D.angle2D)*D.velocity+D.drift,D.y+=Math.sin(D.angle2D)*D.velocity+D.gravity,D.velocity*=D.decay,D.flat?(D.wobble=0,D.wobbleX=D.x+10*D.scalar,D.wobbleY=D.y+10*D.scalar,D.tiltSin=0,D.tiltCos=0,D.random=1):(D.wobble+=D.wobbleSpeed,D.wobbleX=D.x+10*D.scalar*Math.cos(D.wobble),D.wobbleY=D.y+10*D.scalar*Math.sin(D.wobble),D.tiltAngle+=.1,D.tiltSin=Math.sin(D.tiltAngle),D.tiltCos=Math.cos(D.tiltAngle),D.random=Math.random()+2);var V=D.tick++/D.totalTicks,Z=D.x+D.random*D.tiltCos,J=D.y+D.random*D.tiltSin,te=D.wobbleX+D.random*D.tiltCos,ne=D.wobbleY+D.random*D.tiltSin;if(S.fillStyle="rgba("+D.color.r+", "+D.color.g+", "+D.color.b+", "+(1-V)+")",S.beginPath(),s&&D.shape.type==="path"&&typeof D.shape.path=="string"&&Array.isArray(D.shape.matrix))S.fill(Me(D.shape.path,D.shape.matrix,D.x,D.y,Math.abs(te-Z)*.1,Math.abs(ne-J)*.1,Math.PI/10*D.wobble));else if(D.shape.type==="bitmap"){var Y=Math.PI/10*D.wobble,re=Math.abs(te-Z)*.1,De=Math.abs(ne-J)*.1,Ae=D.shape.bitmap.width*D.scalar,me=D.shape.bitmap.height*D.scalar,de=new DOMMatrix([Math.cos(Y)*re,Math.sin(Y)*re,-Math.sin(Y)*De,Math.cos(Y)*De,D.x,D.y]);de.multiplySelf(new DOMMatrix(D.shape.matrix));var ke=S.createPattern(d.transform(D.shape.bitmap),"no-repeat");ke.setTransform(de),S.globalAlpha=1-V,S.fillStyle=ke,S.fillRect(D.x-Ae/2,D.y-me/2,Ae,me),S.globalAlpha=1}else if(D.shape==="circle")S.ellipse?S.ellipse(D.x,D.y,Math.abs(te-Z)*D.ovalScalar,Math.abs(ne-J)*D.ovalScalar,Math.PI/10*D.wobble,0,2*Math.PI):Fe(S,D.x,D.y,Math.abs(te-Z)*D.ovalScalar,Math.abs(ne-J)*D.ovalScalar,Math.PI/10*D.wobble,0,2*Math.PI);else if(D.shape==="star")for(var ae=Math.PI/2*3,g=4*D.scalar,u=8*D.scalar,f=D.x,E=D.y,T=5,A=Math.PI/T;T--;)f=D.x+Math.cos(ae)*u,E=D.y+Math.sin(ae)*u,S.lineTo(f,E),ae+=A,f=D.x+Math.cos(ae)*g,E=D.y+Math.sin(ae)*g,S.lineTo(f,E),ae+=A;else S.moveTo(Math.floor(D.x),Math.floor(D.y)),S.lineTo(Math.floor(D.wobbleX),Math.floor(J)),S.lineTo(Math.floor(te),Math.floor(ne)),S.lineTo(Math.floor(Z),Math.floor(D.wobbleY));return S.closePath(),S.fill(),D.tick<D.totalTicks}function He(S,D,V,Z,J){var te=D.slice(),ne=S.getContext("2d"),Y,re,De=l(function(Ae){function me(){Y=re=null,ne.clearRect(0,0,Z.width,Z.height),d.clear(),J(),Ae()}function de(){r&&!(Z.width===o.width&&Z.height===o.height)&&(Z.width=S.width=o.width,Z.height=S.height=o.height),!Z.width&&!Z.height&&(V(S),Z.width=S.width,Z.height=S.height),ne.clearRect(0,0,Z.width,Z.height),te=te.filter(function(ke){return Ve(ne,ke)}),te.length?Y=h.frame(de):me()}Y=h.frame(de),re=me});return{addFettis:function(Ae){return te=te.concat(Ae),De},canvas:S,promise:De,reset:function(){Y&&h.cancel(Y),re&&re()}}}function $e(S,D){var V=!S,Z=!!R(D||{},"resize"),J=!1,te=R(D,"disableForReducedMotion",Boolean),ne=i&&!!R(D||{},"useWorker"),Y=ne?y():null,re=V?X:q,De=S&&Y?!!S.__confetti_initialized:!1,Ae=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,me;function de(ae,g,u){for(var f=R(ae,"particleCount",k),E=R(ae,"angle",Number),T=R(ae,"spread",Number),A=R(ae,"startVelocity",Number),L=R(ae,"decay",Number),oe=R(ae,"gravity",Number),ye=R(ae,"drift",Number),we=R(ae,"colors",j),Ge=R(ae,"ticks",Number),xe=R(ae,"shapes"),En=R(ae,"scalar"),Jn=!!R(ae,"flat"),Fn=B(ae),vo=f,Cr=[],Si=S.width*Fn.x,bi=S.height*Fn.y;vo--;)Cr.push(Ye({x:Si,y:bi,angle:E,spread:T,startVelocity:A,color:we[vo%we.length],shape:xe[$(0,xe.length)],ticks:Ge,decay:L,gravity:oe,drift:ye,scalar:En,flat:Jn}));return me?me.addFettis(Cr):(me=He(S,Cr,re,g,u),me.promise)}function ke(ae){var g=te||R(ae,"disableForReducedMotion",Boolean),u=R(ae,"zIndex",Number);if(g&&Ae)return l(function(A){A()});V&&me?S=me.canvas:V&&!S&&(S=fe(u),document.body.appendChild(S)),Z&&!De&&re(S);var f={width:S.width,height:S.height};Y&&!De&&Y.init(S),De=!0,Y&&(S.__confetti_initialized=!0);function E(){if(Y){var A={getBoundingClientRect:function(){if(!V)return S.getBoundingClientRect()}};re(A),Y.postMessage({resize:{width:A.width,height:A.height}});return}f.width=f.height=null}function T(){me=null,Z&&(J=!1,t.removeEventListener("resize",E)),V&&S&&(document.body.contains(S)&&document.body.removeChild(S),S=null,De=!1)}return Z&&!J&&(J=!0,t.addEventListener("resize",E,!1)),Y?Y.fire(ae,f,T):de(ae,f,T)}return ke.reset=function(){Y&&Y.reset(),me&&me.reset()},ke}var Et;function _t(){return Et||(Et=$e(null,{useWorker:!0,resize:!0})),Et}function Me(S,D,V,Z,J,te,ne){var Y=new Path2D(S),re=new Path2D;re.addPath(Y,new DOMMatrix(D));var De=new Path2D;return De.addPath(re,new DOMMatrix([Math.cos(ne)*J,Math.sin(ne)*J,-Math.sin(ne)*te,Math.cos(ne)*te,V,Z])),De}function Ze(S){if(!s)throw new Error("path confetti are not supported in this browser");var D,V;typeof S=="string"?D=S:(D=S.path,V=S.matrix);var Z=new Path2D(D),J=document.createElement("canvas"),te=J.getContext("2d");if(!V){for(var ne=1e3,Y=ne,re=ne,De=0,Ae=0,me,de,ke=0;ke<ne;ke+=2)for(var ae=0;ae<ne;ae+=2)te.isPointInPath(Z,ke,ae,"nonzero")&&(Y=Math.min(Y,ke),re=Math.min(re,ae),De=Math.max(De,ke),Ae=Math.max(Ae,ae));me=De-Y,de=Ae-re;var g=10,u=Math.min(g/me,g/de);V=[u,0,0,u,-Math.round(me/2+Y)*u,-Math.round(de/2+re)*u]}return{type:"path",path:D,matrix:V}}function ue(S){var D,V=1,Z="#000000",J='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof S=="string"?D=S:(D=S.text,V="scalar"in S?S.scalar:V,J="fontFamily"in S?S.fontFamily:J,Z="color"in S?S.color:Z);var te=10*V,ne=""+te+"px "+J,Y=new OffscreenCanvas(te,te),re=Y.getContext("2d");re.font=ne;var De=re.measureText(D),Ae=Math.ceil(De.actualBoundingBoxRight+De.actualBoundingBoxLeft),me=Math.ceil(De.actualBoundingBoxAscent+De.actualBoundingBoxDescent),de=2,ke=De.actualBoundingBoxLeft+de,ae=De.actualBoundingBoxAscent+de;Ae+=de+de,me+=de+de,Y=new OffscreenCanvas(Ae,me),re=Y.getContext("2d"),re.font=ne,re.fillStyle=Z,re.fillText(D,ke,ae);var g=1/V;return{type:"bitmap",bitmap:Y.transferToImageBitmap(),matrix:[g,0,0,g,-Ae*g/2,-me*g/2]}}n.exports=function(){return _t().apply(this,arguments)},n.exports.reset=function(){_t().reset()},n.exports.create=$e,n.exports.shapeFromPath=Ze,n.exports.shapeFromText=ue})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),ad,!1);var sE=ad.exports,wj=ad.exports.create;var Wa=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(t=100){let n=[],r=Date.now()+2e3,o=()=>{n.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<r&&t>0&&(requestAnimationFrame(o),t--)};o(),await Promise.all(n)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(t){Object.assign(t,this.DEFAULTS,t),t.particleCount=t.particleCount??this.DEFAULTS.colors.length,await sE(t)}static async realisticFire(t,n){let o={origin:{y:.7}};await this.fire(Object.assign({},o,n,{particleCount:Math.floor(200*t)}))}};var za=class e{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(n){return new(n||e)(Kr(Hl,16))};static \u0275pipe=Jr({name:"safeHtml",type:e,pure:!0})};var ON=(e,t)=>t.minValue;function RN(e,t){if(e&1&&(rt(0,"li",6)(1,"div",7),an(2,"div",8),dr(3,"cooeeCurrency"),dr(4,"safeHtml"),an(5,"img",9),rt(6,"div",10),fr(7),St()()()),e&2){let n=t.$implicit,r=bt(2);Hs("left",n.calculatedAlignment+"%"),st(2),sn("innerHTML",Xr(4,7,Xr(3,5,n.minValue)),al),st(3),sn("src",r.getIconURL(n),xn),st(2),Qo(n.label)}}function LN(e,t){if(e&1&&(Xo(0)(1),an(2,"div",0),dr(3,"cooeeDynamicVariables"),dr(4,"safeHtml"),rt(5,"div",1)(6,"ul",2)(7,"div",3),an(8,"div",4),St(),cr(9,RN,8,9,"li",5,ON),St()()),e&2){let n=bt(),r=n.calculatedState(),o=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;st(2),sn("innerHTML",Xr(4,6,xm(3,3,o,n.localDynamicVariables())),al),st(6),Hs("width",r.cartValuePercentage+"%"),st(),ur(r.milestones)}}var Ya=class e{constructor(t){this.elementRef=t;this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables=Zr({});calculatedState=Zr({});_engagementTrigger=Zr(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){ot.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){ot.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===qa.MilestoneRewardType.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===qa.MilestoneRewardType.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===qa.MilestoneRewardType.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>ot.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){ot.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,o=r.milestones.at(-1),i=o.minValue+Math.floor(o.minValue*5/100),s=n.originalAmount,a=Math.min(s,i),c=100/r.milestones.length,l=c;for(let v of r.milestones)v.calculatedAlignment=l,l+=c;let d=this.calculateTrackedProgress(a,r.milestones);ot.debug("Cart value:",s,`, percentage: ${d}%`),this.celebrate(t,s);let h={milestonesReady:!0,cartValuePercentage:d,milestones:r.milestones},y=r.milestones.find(v=>v.minValue>s);if(y){this.localDynamicVariables.set({amount_left:Zn.formatCurrency(y.minValue-s)}),h.nextMilestone=y,this.calculatedState.set(h);return}h.lastMilestone=o,this.calculatedState.set(h)}celebrate(t,n){let i=[...t.progressBarConfig.milestones].reverse().find(c=>c.minValue<n);if(!i)return;let s=`lc/en/${t.shortID}/${i.minValue}`;sessionStorage.getItem(s)||(sessionStorage.setItem(s,"1"),Wa.realistic())}calculateTrackedProgress(t,n){if(t<=n[0].minValue)return t/n[0].minValue*n[0].calculatedAlignment;if(t>=n[n.length-1].minValue)return 100;for(let r=0;r<n.length-1;r++){let o=n[r].minValue,i=n[r+1].minValue,s=n[r].calculatedAlignment,a=n[r+1].calculatedAlignment;if(t>=o&&t<=i)return(t-o)/(i-o)*(a-s)+s}return 0}static \u0275fac=function(n){return new(n||e)(Kr(Ls))};static \u0275cmp=Vs({type:e,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[["id","lc-heading",1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text",3,"innerHTML"],[1,"lc:mt-4","lc:w-[95%]"],["id","lc-milestone-list",1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],["id","lc-untracked-path",1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],["id","lc-tracked-path",1,"lc:bg-green-700","lc:h-full","lc:block!"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],["id","lc-milestone-value",1,"lc-milestone-value",3,"innerHTML"],["width","20","height","20","id","lc-milestone-icon","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],["id","lc-milestone-label",1,"lc="]],template:function(n,r){n&1&&Tl(0,LN,11,8),n&2&&Sm(r.calculatedState().milestonesReady?0:-1)},dependencies:[Ga,za,fo],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};function PN(e,t){return t={exports:{}},e(t,t.exports),t.exports}var FN=jN,kN=HN,BN=WN,vn=[],Vt=[],UN=typeof Uint8Array<"u"?Uint8Array:Array,cd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ir=0,aE=cd.length;Ir<aE;++Ir)vn[Ir]=cd[Ir],Vt[cd.charCodeAt(Ir)]=Ir;var Ir,aE;Vt[45]=62;Vt[95]=63;function IE(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function jN(e){var t=IE(e),n=t[0],r=t[1];return(n+r)*3/4-r}function VN(e,t,n){return(t+n)*3/4-n}function HN(e){var t,n=IE(e),r=n[0],o=n[1],i=new UN(VN(e,r,o)),s=0,a=o>0?r-4:r,c;for(c=0;c<a;c+=4)t=Vt[e.charCodeAt(c)]<<18|Vt[e.charCodeAt(c+1)]<<12|Vt[e.charCodeAt(c+2)]<<6|Vt[e.charCodeAt(c+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=t&255;return o===2&&(t=Vt[e.charCodeAt(c)]<<2|Vt[e.charCodeAt(c+1)]>>4,i[s++]=t&255),o===1&&(t=Vt[e.charCodeAt(c)]<<10|Vt[e.charCodeAt(c+1)]<<4|Vt[e.charCodeAt(c+2)]>>2,i[s++]=t>>8&255,i[s++]=t&255),i}function $N(e){return vn[e>>18&63]+vn[e>>12&63]+vn[e>>6&63]+vn[e&63]}function GN(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push($N(r));return o.join("")}function WN(e){for(var t,n=e.length,r=n%3,o=[],i=16383,s=0,a=n-r;s<a;s+=i)o.push(GN(e,s,s+i>a?a:s+i));return r===1?(t=e[n-1],o.push(vn[t>>2]+vn[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(vn[t>>10]+vn[t>>4&63]+vn[t<<2&63]+"=")),o.join("")}var ud={byteLength:FN,toByteArray:kN,fromByteArray:BN};var zN=function(t,n,r,o,i){var s,a,c=i*8-o-1,l=(1<<c)-1,d=l>>1,h=-7,y=r?i-1:0,v=r?-1:1,b=t[n+y];for(y+=v,s=b&(1<<-h)-1,b>>=-h,h+=c;h>0;s=s*256+t[n+y],y+=v,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=o;h>0;a=a*256+t[n+y],y+=v,h-=8);if(s===0)s=1-d;else{if(s===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,o),s=s-d}return(b?-1:1)*a*Math.pow(2,s-o)},qN=function(t,n,r,o,i,s){var a,c,l,d=s*8-i-1,h=(1<<d)-1,y=h>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:s-1,M=o?1:-1,R=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(c=isNaN(n)?1:0,a=h):(a=Math.floor(Math.log(n)/Math.LN2),n*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+y>=1?n+=v/l:n+=v*Math.pow(2,1-y),n*l>=2&&(a++,l/=2),a+y>=h?(c=0,a=h):a+y>=1?(c=(n*l-1)*Math.pow(2,i),a=a+y):(c=n*Math.pow(2,y-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=M,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=M,a/=256,d-=8);t[r+b-M]|=R*128},go={read:zN,write:qN},Ja=PN(function(e,t){var n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=k,t.INSPECT_MAX_BYTES=50;var r=2147483647;t.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var g=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(g,u),g.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function i(g){if(g>r)throw new RangeError('The value "'+g+'" is invalid for option "size"');var u=new Uint8Array(g);return Object.setPrototypeOf(u,s.prototype),u}function s(g,u,f){if(typeof g=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(g)}return a(g,u,f)}s.poolSize=8192;function a(g,u,f){if(typeof g=="string")return h(g,u);if(ArrayBuffer.isView(g))return v(g);if(g==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(g));if(de(g,ArrayBuffer)||g&&de(g.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(g,SharedArrayBuffer)||g&&de(g.buffer,SharedArrayBuffer)))return b(g,u,f);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var E=g.valueOf&&g.valueOf();if(E!=null&&E!==g)return s.from(E,u,f);var T=M(g);if(T)return T;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return s.from(g[Symbol.toPrimitive]("string"),u,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(g))}s.from=function(g,u,f){return a(g,u,f)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(g){if(typeof g!="number")throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function l(g,u,f){return c(g),g<=0?i(g):u!==void 0?typeof f=="string"?i(g).fill(u,f):i(g).fill(u):i(g)}s.alloc=function(g,u,f){return l(g,u,f)};function d(g){return c(g),i(g<0?0:R(g)|0)}s.allocUnsafe=function(g){return d(g)},s.allocUnsafeSlow=function(g){return d(g)};function h(g,u){if((typeof u!="string"||u==="")&&(u="utf8"),!s.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var f=$(g,u)|0,E=i(f),T=E.write(g,u);return T!==f&&(E=E.slice(0,T)),E}function y(g){for(var u=g.length<0?0:R(g.length)|0,f=i(u),E=0;E<u;E+=1)f[E]=g[E]&255;return f}function v(g){if(de(g,Uint8Array)){var u=new Uint8Array(g);return b(u.buffer,u.byteOffset,u.byteLength)}return y(g)}function b(g,u,f){if(u<0||g.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<u+(f||0))throw new RangeError('"length" is outside of buffer bounds');var E;return u===void 0&&f===void 0?E=new Uint8Array(g):f===void 0?E=new Uint8Array(g,u):E=new Uint8Array(g,u,f),Object.setPrototypeOf(E,s.prototype),E}function M(g){if(s.isBuffer(g)){var u=R(g.length)|0,f=i(u);return f.length===0||g.copy(f,0,0,u),f}if(g.length!==void 0)return typeof g.length!="number"||ke(g.length)?i(0):y(g);if(g.type==="Buffer"&&Array.isArray(g.data))return y(g.data)}function R(g){if(g>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return g|0}function k(g){return+g!=g&&(g=0),s.alloc(+g)}s.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==s.prototype},s.compare=function(u,f){if(de(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),de(f,Uint8Array)&&(f=s.from(f,f.offset,f.byteLength)),!s.isBuffer(u)||!s.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;for(var E=u.length,T=f.length,A=0,L=Math.min(E,T);A<L;++A)if(u[A]!==f[A]){E=u[A],T=f[A];break}return E<T?-1:T<E?1:0},s.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(u,f){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return s.alloc(0);var E;if(f===void 0)for(f=0,E=0;E<u.length;++E)f+=u[E].length;var T=s.allocUnsafe(f),A=0;for(E=0;E<u.length;++E){var L=u[E];if(de(L,Uint8Array))A+L.length>T.length?s.from(L).copy(T,A):Uint8Array.prototype.set.call(T,L,A);else if(s.isBuffer(L))L.copy(T,A);else throw new TypeError('"list" argument must be an Array of Buffers');A+=L.length}return T};function $(g,u){if(s.isBuffer(g))return g.length;if(ArrayBuffer.isView(g)||de(g,ArrayBuffer))return g.byteLength;if(typeof g!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+babelHelpers.typeof(g));var f=g.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&f===0)return 0;for(var T=!1;;)switch(u){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return Y(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return Ae(g).length;default:if(T)return E?-1:Y(g).length;u=(""+u).toLowerCase(),T=!0}}s.byteLength=$;function Q(g,u,f){var E=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return"";for(g||(g="utf8");;)switch(g){case"hex":return Ze(this,u,f);case"utf8":case"utf-8":return He(this,u,f);case"ascii":return _t(this,u,f);case"latin1":case"binary":return Me(this,u,f);case"base64":return Ve(this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,u,f);default:if(E)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),E=!0}}s.prototype._isBuffer=!0;function j(g,u,f){var E=g[u];g[u]=g[f],g[f]=E}s.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<u;f+=2)j(this,f,f+1);return this},s.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<u;f+=4)j(this,f,f+3),j(this,f+1,f+2);return this},s.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<u;f+=8)j(this,f,f+7),j(this,f+1,f+6),j(this,f+2,f+5),j(this,f+3,f+4);return this},s.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?He(this,0,u):Q.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(u){if(!s.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:s.compare(this,u)===0},s.prototype.inspect=function(){var u="",f=t.INSPECT_MAX_BYTES;return u=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(u+=" ... "),"<Buffer "+u+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(u,f,E,T,A){if(de(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),!s.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+babelHelpers.typeof(u));if(f===void 0&&(f=0),E===void 0&&(E=u?u.length:0),T===void 0&&(T=0),A===void 0&&(A=this.length),f<0||E>u.length||T<0||A>this.length)throw new RangeError("out of range index");if(T>=A&&f>=E)return 0;if(T>=A)return-1;if(f>=E)return 1;if(f>>>=0,E>>>=0,T>>>=0,A>>>=0,this===u)return 0;for(var L=A-T,oe=E-f,ye=Math.min(L,oe),we=this.slice(T,A),Ge=u.slice(f,E),xe=0;xe<ye;++xe)if(we[xe]!==Ge[xe]){L=we[xe],oe=Ge[xe];break}return L<oe?-1:oe<L?1:0};function _e(g,u,f,E,T){if(g.length===0)return-1;if(typeof f=="string"?(E=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,ke(f)&&(f=T?0:g.length-1),f<0&&(f=g.length+f),f>=g.length){if(T)return-1;f=g.length-1}else if(f<0)if(T)f=0;else return-1;if(typeof u=="string"&&(u=s.from(u,E)),s.isBuffer(u))return u.length===0?-1:B(g,u,f,E,T);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?T?Uint8Array.prototype.indexOf.call(g,u,f):Uint8Array.prototype.lastIndexOf.call(g,u,f):B(g,[u],f,E,T);throw new TypeError("val must be string, number or Buffer")}function B(g,u,f,E,T){var A=1,L=g.length,oe=u.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(g.length<2||u.length<2)return-1;A=2,L/=2,oe/=2,f/=2}function ye(Jn,Fn){return A===1?Jn[Fn]:Jn.readUInt16BE(Fn*A)}var we;if(T){var Ge=-1;for(we=f;we<L;we++)if(ye(g,we)===ye(u,Ge===-1?0:we-Ge)){if(Ge===-1&&(Ge=we),we-Ge+1===oe)return Ge*A}else Ge!==-1&&(we-=we-Ge),Ge=-1}else for(f+oe>L&&(f=L-oe),we=f;we>=0;we--){for(var xe=!0,En=0;En<oe;En++)if(ye(g,we+En)!==ye(u,En)){xe=!1;break}if(xe)return we}return-1}s.prototype.includes=function(u,f,E){return this.indexOf(u,f,E)!==-1},s.prototype.indexOf=function(u,f,E){return _e(this,u,f,E,!0)},s.prototype.lastIndexOf=function(u,f,E){return _e(this,u,f,E,!1)};function X(g,u,f,E){f=Number(f)||0;var T=g.length-f;E?(E=Number(E),E>T&&(E=T)):E=T;var A=u.length;E>A/2&&(E=A/2);for(var L=0;L<E;++L){var oe=parseInt(u.substr(L*2,2),16);if(ke(oe))return L;g[f+L]=oe}return L}function q(g,u,f,E){return me(Y(u,g.length-f),g,f,E)}function fe(g,u,f,E){return me(re(u),g,f,E)}function Fe(g,u,f,E){return me(Ae(u),g,f,E)}function Ye(g,u,f,E){return me(De(u,g.length-f),g,f,E)}s.prototype.write=function(u,f,E,T){if(f===void 0)T="utf8",E=this.length,f=0;else if(E===void 0&&typeof f=="string")T=f,E=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(E)?(E=E>>>0,T===void 0&&(T="utf8")):(T=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var A=this.length-f;if((E===void 0||E>A)&&(E=A),u.length>0&&(E<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");for(var L=!1;;)switch(T){case"hex":return X(this,u,f,E);case"utf8":case"utf-8":return q(this,u,f,E);case"ascii":case"latin1":case"binary":return fe(this,u,f,E);case"base64":return Fe(this,u,f,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,u,f,E);default:if(L)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),L=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ve(g,u,f){return u===0&&f===g.length?ud.fromByteArray(g):ud.fromByteArray(g.slice(u,f))}function He(g,u,f){f=Math.min(g.length,f);for(var E=[],T=u;T<f;){var A=g[T],L=null,oe=A>239?4:A>223?3:A>191?2:1;if(T+oe<=f){var ye,we,Ge,xe;switch(oe){case 1:A<128&&(L=A);break;case 2:ye=g[T+1],(ye&192)===128&&(xe=(A&31)<<6|ye&63,xe>127&&(L=xe));break;case 3:ye=g[T+1],we=g[T+2],(ye&192)===128&&(we&192)===128&&(xe=(A&15)<<12|(ye&63)<<6|we&63,xe>2047&&(xe<55296||xe>57343)&&(L=xe));break;case 4:ye=g[T+1],we=g[T+2],Ge=g[T+3],(ye&192)===128&&(we&192)===128&&(Ge&192)===128&&(xe=(A&15)<<18|(ye&63)<<12|(we&63)<<6|Ge&63,xe>65535&&xe<1114112&&(L=xe))}}L===null?(L=65533,oe=1):L>65535&&(L-=65536,E.push(L>>>10&1023|55296),L=56320|L&1023),E.push(L),T+=oe}return Et(E)}var $e=4096;function Et(g){var u=g.length;if(u<=$e)return String.fromCharCode.apply(String,g);for(var f="",E=0;E<u;)f+=String.fromCharCode.apply(String,g.slice(E,E+=$e));return f}function _t(g,u,f){var E="";f=Math.min(g.length,f);for(var T=u;T<f;++T)E+=String.fromCharCode(g[T]&127);return E}function Me(g,u,f){var E="";f=Math.min(g.length,f);for(var T=u;T<f;++T)E+=String.fromCharCode(g[T]);return E}function Ze(g,u,f){var E=g.length;(!u||u<0)&&(u=0),(!f||f<0||f>E)&&(f=E);for(var T="",A=u;A<f;++A)T+=ae[g[A]];return T}function ue(g,u,f){for(var E=g.slice(u,f),T="",A=0;A<E.length-1;A+=2)T+=String.fromCharCode(E[A]+E[A+1]*256);return T}s.prototype.slice=function(u,f){var E=this.length;u=~~u,f=f===void 0?E:~~f,u<0?(u+=E,u<0&&(u=0)):u>E&&(u=E),f<0?(f+=E,f<0&&(f=0)):f>E&&(f=E),f<u&&(f=u);var T=this.subarray(u,f);return Object.setPrototypeOf(T,s.prototype),T};function S(g,u,f){if(g%1!==0||g<0)throw new RangeError("offset is not uint");if(g+u>f)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(u,f,E){u=u>>>0,f=f>>>0,E||S(u,f,this.length);for(var T=this[u],A=1,L=0;++L<f&&(A*=256);)T+=this[u+L]*A;return T},s.prototype.readUintBE=s.prototype.readUIntBE=function(u,f,E){u=u>>>0,f=f>>>0,E||S(u,f,this.length);for(var T=this[u+--f],A=1;f>0&&(A*=256);)T+=this[u+--f]*A;return T},s.prototype.readUint8=s.prototype.readUInt8=function(u,f){return u=u>>>0,f||S(u,1,this.length),this[u]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||S(u,2,this.length),this[u]|this[u+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||S(u,2,this.length),this[u]<<8|this[u+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||S(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||S(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},s.prototype.readIntLE=function(u,f,E){u=u>>>0,f=f>>>0,E||S(u,f,this.length);for(var T=this[u],A=1,L=0;++L<f&&(A*=256);)T+=this[u+L]*A;return A*=128,T>=A&&(T-=Math.pow(2,8*f)),T},s.prototype.readIntBE=function(u,f,E){u=u>>>0,f=f>>>0,E||S(u,f,this.length);for(var T=f,A=1,L=this[u+--T];T>0&&(A*=256);)L+=this[u+--T]*A;return A*=128,L>=A&&(L-=Math.pow(2,8*f)),L},s.prototype.readInt8=function(u,f){return u=u>>>0,f||S(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},s.prototype.readInt16LE=function(u,f){u=u>>>0,f||S(u,2,this.length);var E=this[u]|this[u+1]<<8;return E&32768?E|4294901760:E},s.prototype.readInt16BE=function(u,f){u=u>>>0,f||S(u,2,this.length);var E=this[u+1]|this[u]<<8;return E&32768?E|4294901760:E},s.prototype.readInt32LE=function(u,f){return u=u>>>0,f||S(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},s.prototype.readInt32BE=function(u,f){return u=u>>>0,f||S(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},s.prototype.readFloatLE=function(u,f){return u=u>>>0,f||S(u,4,this.length),go.read(this,u,!0,23,4)},s.prototype.readFloatBE=function(u,f){return u=u>>>0,f||S(u,4,this.length),go.read(this,u,!1,23,4)},s.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||S(u,8,this.length),go.read(this,u,!0,52,8)},s.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||S(u,8,this.length),go.read(this,u,!1,52,8)};function D(g,u,f,E,T,A){if(!s.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>T||u<A)throw new RangeError('"value" argument is out of bounds');if(f+E>g.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(u,f,E,T){if(u=+u,f=f>>>0,E=E>>>0,!T){var A=Math.pow(2,8*E)-1;D(this,u,f,E,A,0)}var L=1,oe=0;for(this[f]=u&255;++oe<E&&(L*=256);)this[f+oe]=u/L&255;return f+E},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(u,f,E,T){if(u=+u,f=f>>>0,E=E>>>0,!T){var A=Math.pow(2,8*E)-1;D(this,u,f,E,A,0)}var L=E-1,oe=1;for(this[f+L]=u&255;--L>=0&&(oe*=256);)this[f+L]=u/oe&255;return f+E},s.prototype.writeUint8=s.prototype.writeUInt8=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,1,255,0),this[f]=u&255,f+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},s.prototype.writeIntLE=function(u,f,E,T){if(u=+u,f=f>>>0,!T){var A=Math.pow(2,8*E-1);D(this,u,f,E,A-1,-A)}var L=0,oe=1,ye=0;for(this[f]=u&255;++L<E&&(oe*=256);)u<0&&ye===0&&this[f+L-1]!==0&&(ye=1),this[f+L]=(u/oe>>0)-ye&255;return f+E},s.prototype.writeIntBE=function(u,f,E,T){if(u=+u,f=f>>>0,!T){var A=Math.pow(2,8*E-1);D(this,u,f,E,A-1,-A)}var L=E-1,oe=1,ye=0;for(this[f+L]=u&255;--L>=0&&(oe*=256);)u<0&&ye===0&&this[f+L+1]!==0&&(ye=1),this[f+L]=(u/oe>>0)-ye&255;return f+E},s.prototype.writeInt8=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},s.prototype.writeInt16LE=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},s.prototype.writeInt16BE=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},s.prototype.writeInt32LE=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},s.prototype.writeInt32BE=function(u,f,E){return u=+u,f=f>>>0,E||D(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function V(g,u,f,E,T,A){if(f+E>g.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function Z(g,u,f,E,T){return u=+u,f=f>>>0,T||V(g,u,f,4),go.write(g,u,f,E,23,4),f+4}s.prototype.writeFloatLE=function(u,f,E){return Z(this,u,f,!0,E)},s.prototype.writeFloatBE=function(u,f,E){return Z(this,u,f,!1,E)};function J(g,u,f,E,T){return u=+u,f=f>>>0,T||V(g,u,f,8),go.write(g,u,f,E,52,8),f+8}s.prototype.writeDoubleLE=function(u,f,E){return J(this,u,f,!0,E)},s.prototype.writeDoubleBE=function(u,f,E){return J(this,u,f,!1,E)},s.prototype.copy=function(u,f,E,T){if(!s.isBuffer(u))throw new TypeError("argument should be a Buffer");if(E||(E=0),!T&&T!==0&&(T=this.length),f>=u.length&&(f=u.length),f||(f=0),T>0&&T<E&&(T=E),T===E||u.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(E<0||E>=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),u.length-f<T-E&&(T=u.length-f+E);var A=T-E;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,E,T):Uint8Array.prototype.set.call(u,this.subarray(E,T),f),A},s.prototype.fill=function(u,f,E,T){if(typeof u=="string"){if(typeof f=="string"?(T=f,f=0,E=this.length):typeof E=="string"&&(T=E,E=this.length),T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!s.isEncoding(T))throw new TypeError("Unknown encoding: "+T);if(u.length===1){var A=u.charCodeAt(0);(T==="utf8"&&A<128||T==="latin1")&&(u=A)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(f<0||this.length<f||this.length<E)throw new RangeError("Out of range index");if(E<=f)return this;f=f>>>0,E=E===void 0?this.length:E>>>0,u||(u=0);var L;if(typeof u=="number")for(L=f;L<E;++L)this[L]=u;else{var oe=s.isBuffer(u)?u:s.from(u,T),ye=oe.length;if(ye===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(L=0;L<E-f;++L)this[L+f]=oe[L%ye]}return this};var te=/[^+/0-9A-Za-z-_]/g;function ne(g){if(g=g.split("=")[0],g=g.trim().replace(te,""),g.length<2)return"";for(;g.length%4!==0;)g=g+"=";return g}function Y(g,u){u=u||1/0;for(var f,E=g.length,T=null,A=[],L=0;L<E;++L){if(f=g.charCodeAt(L),f>55295&&f<57344){if(!T){if(f>56319){(u-=3)>-1&&A.push(239,191,189);continue}else if(L+1===E){(u-=3)>-1&&A.push(239,191,189);continue}T=f;continue}if(f<56320){(u-=3)>-1&&A.push(239,191,189),T=f;continue}f=(T-55296<<10|f-56320)+65536}else T&&(u-=3)>-1&&A.push(239,191,189);if(T=null,f<128){if((u-=1)<0)break;A.push(f)}else if(f<2048){if((u-=2)<0)break;A.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;A.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;A.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return A}function re(g){for(var u=[],f=0;f<g.length;++f)u.push(g.charCodeAt(f)&255);return u}function De(g,u){for(var f,E,T,A=[],L=0;L<g.length&&!((u-=2)<0);++L)f=g.charCodeAt(L),E=f>>8,T=f%256,A.push(T),A.push(E);return A}function Ae(g){return ud.toByteArray(ne(g))}function me(g,u,f,E){for(var T=0;T<E&&!(T+f>=u.length||T>=g.length);++T)u[T+f]=g[T];return T}function de(g,u){return g instanceof u||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===u.name}function ke(g){return g!==g}var ae=function(){for(var g="0123456789abcdef",u=new Array(256),f=0;f<16;++f)for(var E=f*16,T=0;T<16;++T)u[E+T]=g[f]+g[T];return u}()}),Ee=Ja.Buffer;Ja.SlowBuffer;Ja.INSPECT_MAX_BYTES;Ja.kMaxLength;var hd=function(t,n){return hd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},hd(t,n)};function Qa(e,t){hd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var br=function(e){Qa(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"BSONError"},enumerable:!1,configurable:!0}),t}(Error),je=function(e){Qa(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"BSONTypeError"},enumerable:!1,configurable:!0}),t}(TypeError);function Za(e){return e&&e.Math==Math&&e}function SE(){return Za(typeof globalThis=="object"&&globalThis)||Za(typeof window=="object"&&window)||Za(typeof self=="object"&&self)||Za(typeof global=="object"&&global)||Function("return this")()}function YN(){var e=SE();return typeof e.navigator=="object"&&e.navigator.product==="ReactNative"}var ZN=function(t){var n=YN()?"BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.":"BSON: No cryptographic implementation for random bytes present, falling back to a less secure implementation.";console.warn(n);for(var r=Ee.alloc(t),o=0;o<t;++o)r[o]=Math.floor(Math.random()*256);return r},KN=function(){{if(typeof window<"u"){var e=window.crypto||window.msCrypto;if(e&&e.getRandomValues)return function(t){return e.getRandomValues(Ee.alloc(t))}}return typeof global<"u"&&global.crypto&&global.crypto.getRandomValues?function(t){return global.crypto.getRandomValues(Ee.alloc(t))}:ZN}},bE=KN();function JN(e){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(e))}function md(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}function QN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function XN(e){return Ii(e)&&Object.prototype.toString.call(e)==="[object Date]"}function Ii(e){return typeof e=="object"&&e!==null}function Xa(e,t){var n=!1;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n||(console.warn(t),n=!0),e.apply(this,o)}return r}function Ka(e){if(ArrayBuffer.isView(e))return Ee.from(e.buffer,e.byteOffset,e.byteLength);if(JN(e))return Ee.from(e);throw new je("Must use either Buffer or TypedArray")}var eM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15})$/i,TE=function(e){return typeof e=="string"&&eM.test(e)},gd=function(e){if(!TE(e))throw new je('UUID string representations must be a 32 or 36 character hex string (dashes excluded/included). Format: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" or "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".');var t=e.replace(/-/g,"");return Ee.from(t,"hex")},cE=function(e,t){return t===void 0&&(t=!0),t?e.toString("hex",0,4)+"-"+e.toString("hex",4,6)+"-"+e.toString("hex",6,8)+"-"+e.toString("hex",8,10)+"-"+e.toString("hex",10,16):e.toString("hex")};var jj=Math.pow(2,63)-1,Vj=-Math.pow(2,63),tM=Math.pow(2,53),nM=-Math.pow(2,53);var CE=4;var Tr=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);if(t!=null&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!(t instanceof ArrayBuffer)&&!Array.isArray(t))throw new je("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");this.sub_type=n??e.BSON_BINARY_SUBTYPE_DEFAULT,t==null?(this.buffer=Ee.alloc(e.BUFFER_SIZE),this.position=0):(typeof t=="string"?this.buffer=Ee.from(t,"binary"):Array.isArray(t)?this.buffer=Ee.from(t):this.buffer=Ka(t),this.position=this.buffer.byteLength)}return e.prototype.put=function(t){if(typeof t=="string"&&t.length!==1)throw new je("only accepts single character String");if(typeof t!="number"&&t.length!==1)throw new je("only accepts single character Uint8Array or Array");var n;if(typeof t=="string"?n=t.charCodeAt(0):typeof t=="number"?n=t:n=t[0],n<0||n>255)throw new je("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.length>this.position)this.buffer[this.position++]=n;else{var r=Ee.alloc(e.BUFFER_SIZE+this.buffer.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r,this.buffer[this.position++]=n}},e.prototype.write=function(t,n){if(n=typeof n=="number"?n:this.position,this.buffer.length<n+t.length){var r=Ee.alloc(this.buffer.length+t.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r}ArrayBuffer.isView(t)?(this.buffer.set(Ka(t),n),this.position=n+t.byteLength>this.position?n+t.length:this.position):typeof t=="string"&&(this.buffer.write(t,n,t.length,"binary"),this.position=n+t.length>this.position?n+t.length:this.position)},e.prototype.read=function(t,n){return n=n&&n>0?n:this.position,this.buffer.slice(t,t+n)},e.prototype.value=function(t){return t=!!t,t&&this.buffer.length===this.position?this.buffer:t?this.buffer.slice(0,this.position):this.buffer.toString("binary",0,this.position)},e.prototype.length=function(){return this.position},e.prototype.toJSON=function(){return this.buffer.toString("base64")},e.prototype.toString=function(t){return this.buffer.toString(t)},e.prototype.toExtendedJSON=function(t){t=t||{};var n=this.buffer.toString("base64"),r=Number(this.sub_type).toString(16);return t.legacy?{$binary:n,$type:r.length===1?"0"+r:r}:{$binary:{base64:n,subType:r.length===1?"0"+r:r}}},e.prototype.toUUID=function(){if(this.sub_type===e.SUBTYPE_UUID)return new uE(this.buffer.slice(0,this.position));throw new br('Binary sub_type "'.concat(this.sub_type,'" is not supported for converting to UUID. Only "').concat(e.SUBTYPE_UUID,'" is currently supported.'))},e.fromExtendedJSON=function(t,n){n=n||{};var r,o;if("$binary"in t?n.legacy&&typeof t.$binary=="string"&&"$type"in t?(o=t.$type?parseInt(t.$type,16):0,r=Ee.from(t.$binary,"base64")):typeof t.$binary!="string"&&(o=t.$binary.subType?parseInt(t.$binary.subType,16):0,r=Ee.from(t.$binary.base64,"base64")):"$uuid"in t&&(o=4,r=gd(t.$uuid)),!r)throw new je("Unexpected Binary Extended JSON format ".concat(JSON.stringify(t)));return o===CE?new uE(r):new e(r,o)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.value(!0);return'new Binary(Buffer.from("'.concat(t.toString("hex"),'", "hex"), ').concat(this.sub_type,")")},e.BSON_BINARY_SUBTYPE_DEFAULT=0,e.BUFFER_SIZE=256,e.SUBTYPE_DEFAULT=0,e.SUBTYPE_FUNCTION=1,e.SUBTYPE_BYTE_ARRAY=2,e.SUBTYPE_UUID_OLD=3,e.SUBTYPE_UUID=4,e.SUBTYPE_MD5=5,e.SUBTYPE_ENCRYPTED=6,e.SUBTYPE_COLUMN=7,e.SUBTYPE_USER_DEFINED=128,e}();Object.defineProperty(Tr.prototype,"_bsontype",{value:"Binary"});var ld=16,uE=function(e){Qa(t,e);function t(n){var r=this,o,i;if(n==null)o=t.generate();else if(n instanceof t)o=Ee.from(n.buffer),i=n.__id;else if(ArrayBuffer.isView(n)&&n.byteLength===ld)o=Ka(n);else if(typeof n=="string")o=gd(n);else throw new je("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");return r=e.call(this,o,CE)||this,r.__id=i,r}return Object.defineProperty(t.prototype,"id",{get:function(){return this.buffer},set:function(n){this.buffer=n,t.cacheHexString&&(this.__id=cE(n))},enumerable:!1,configurable:!0}),t.prototype.toHexString=function(n){if(n===void 0&&(n=!0),t.cacheHexString&&this.__id)return this.__id;var r=cE(this.id,n);return t.cacheHexString&&(this.__id=r),r},t.prototype.toString=function(n){return n?this.id.toString(n):this.toHexString()},t.prototype.toJSON=function(){return this.toHexString()},t.prototype.equals=function(n){if(!n)return!1;if(n instanceof t)return n.id.equals(this.id);try{return new t(n).id.equals(this.id)}catch{return!1}},t.prototype.toBinary=function(){return new Tr(this.id,Tr.SUBTYPE_UUID)},t.generate=function(){var n=bE(ld);return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ee.from(n)},t.isValid=function(n){return n?n instanceof t?!0:typeof n=="string"?TE(n):md(n)?n.length!==ld?!1:(n[6]&240)===64&&(n[8]&128)===128:!1:!1},t.createFromHexString=function(n){var r=gd(n);return new t(r)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new UUID("'.concat(this.toHexString(),'")')},t}(Tr),ec=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);this.code=t,this.scope=n}return e.prototype.toJSON=function(){return{code:this.code,scope:this.scope}},e.prototype.toExtendedJSON=function(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}},e.fromExtendedJSON=function(t){return new e(t.$code,t.$scope)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.toJSON();return'new Code("'.concat(String(t.code),'"').concat(t.scope?", ".concat(JSON.stringify(t.scope)):"",")")},e}();Object.defineProperty(ec.prototype,"_bsontype",{value:"Code"});function rM(e){return Ii(e)&&e.$id!=null&&typeof e.$ref=="string"&&(e.$db==null||typeof e.$db=="string")}var Di=function(){function e(t,n,r,o){if(!(this instanceof e))return new e(t,n,r,o);var i=t.split(".");i.length===2&&(r=i.shift(),t=i.shift()),this.collection=t,this.oid=n,this.db=r,this.fields=o||{}}return Object.defineProperty(e.prototype,"namespace",{get:function(){return this.collection},set:function(t){this.collection=t},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var t=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return this.db!=null&&(t.$db=this.db),t},e.prototype.toExtendedJSON=function(t){t=t||{};var n={$ref:this.collection,$id:this.oid};return t.legacy||(this.db&&(n.$db=this.db),n=Object.assign(n,this.fields)),n},e.fromExtendedJSON=function(t){var n=Object.assign({},t);return delete n.$ref,delete n.$id,delete n.$db,new e(t.$ref,t.$id,t.$db,n)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return'new DBRef("'.concat(this.namespace,'", new ObjectId("').concat(String(t),'")').concat(this.db?', "'.concat(this.db,'"'):"",")")},e}();Object.defineProperty(Di.prototype,"_bsontype",{value:"DBRef"});var jt=void 0;try{jt=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var lE=65536,oM=1<<24,yo=lE*lE,NE=yo*yo,fE=NE/2,dE={},pE={},z=function(){function e(t,n,r){if(t===void 0&&(t=0),!(this instanceof e))return new e(t,n,r);typeof t=="bigint"?Object.assign(this,e.fromBigInt(t,!!n)):typeof t=="string"?Object.assign(this,e.fromString(t,!!n)):(this.low=t|0,this.high=n|0,this.unsigned=!!r),Object.defineProperty(this,"__isLong__",{value:!0,configurable:!1,writable:!1,enumerable:!1})}return e.fromBits=function(t,n,r){return new e(t,n,r)},e.fromInt=function(t,n){var r,o,i;return n?(t>>>=0,(i=0<=t&&t<256)&&(o=pE[t],o)?o:(r=e.fromBits(t,(t|0)<0?-1:0,!0),i&&(pE[t]=r),r)):(t|=0,(i=-128<=t&&t<128)&&(o=dE[t],o)?o:(r=e.fromBits(t,t<0?-1:0,!1),i&&(dE[t]=r),r))},e.fromNumber=function(t,n){if(isNaN(t))return n?e.UZERO:e.ZERO;if(n){if(t<0)return e.UZERO;if(t>=NE)return e.MAX_UNSIGNED_VALUE}else{if(t<=-fE)return e.MIN_VALUE;if(t+1>=fE)return e.MAX_VALUE}return t<0?e.fromNumber(-t,n).neg():e.fromBits(t%yo|0,t/yo|0,n)},e.fromBigInt=function(t,n){return e.fromString(t.toString(),n)},e.fromString=function(t,n,r){if(t.length===0)throw Error("empty string");if(t==="NaN"||t==="Infinity"||t==="+Infinity"||t==="-Infinity")return e.ZERO;if(typeof n=="number"?(r=n,n=!1):n=!!n,r=r||10,r<2||36<r)throw RangeError("radix");var o;if((o=t.indexOf("-"))>0)throw Error("interior hyphen");if(o===0)return e.fromString(t.substring(1),n,r).neg();for(var i=e.fromNumber(Math.pow(r,8)),s=e.ZERO,a=0;a<t.length;a+=8){var c=Math.min(8,t.length-a),l=parseInt(t.substring(a,a+c),r);if(c<8){var d=e.fromNumber(Math.pow(r,c));s=s.mul(d).add(e.fromNumber(l))}else s=s.mul(i),s=s.add(e.fromNumber(l))}return s.unsigned=n,s},e.fromBytes=function(t,n,r){return r?e.fromBytesLE(t,n):e.fromBytesBE(t,n)},e.fromBytesLE=function(t,n){return new e(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},e.fromBytesBE=function(t,n){return new e(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)},e.isLong=function(t){return Ii(t)&&t.__isLong__===!0},e.fromValue=function(t,n){return typeof t=="number"?e.fromNumber(t,n):typeof t=="string"?e.fromString(t,n):e.fromBits(t.low,t.high,typeof n=="boolean"?n:t.unsigned)},e.prototype.add=function(t){e.isLong(t)||(t=e.fromValue(t));var n=this.high>>>16,r=this.high&65535,o=this.low>>>16,i=this.low&65535,s=t.high>>>16,a=t.high&65535,c=t.low>>>16,l=t.low&65535,d=0,h=0,y=0,v=0;return v+=i+l,y+=v>>>16,v&=65535,y+=o+c,h+=y>>>16,y&=65535,h+=r+a,d+=h>>>16,h&=65535,d+=n+s,d&=65535,e.fromBits(y<<16|v,d<<16|h,this.unsigned)},e.prototype.and=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low&t.low,this.high&t.high,this.unsigned)},e.prototype.compare=function(t){if(e.isLong(t)||(t=e.fromValue(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},e.prototype.comp=function(t){return this.compare(t)},e.prototype.divide=function(t){if(e.isLong(t)||(t=e.fromValue(t)),t.isZero())throw Error("division by zero");if(jt){if(!this.unsigned&&this.high===-2147483648&&t.low===-1&&t.high===-1)return this;var n=(this.unsigned?jt.div_u:jt.div_s)(this.low,this.high,t.low,t.high);return e.fromBits(n,jt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?e.UZERO:e.ZERO;var r,o,i;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return e.UZERO;if(t.gt(this.shru(1)))return e.UONE;i=e.UZERO}else{if(this.eq(e.MIN_VALUE)){if(t.eq(e.ONE)||t.eq(e.NEG_ONE))return e.MIN_VALUE;if(t.eq(e.MIN_VALUE))return e.ONE;var s=this.shr(1);return r=s.div(t).shl(1),r.eq(e.ZERO)?t.isNegative()?e.ONE:e.NEG_ONE:(o=this.sub(t.mul(r)),i=r.add(o.div(t)),i)}else if(t.eq(e.MIN_VALUE))return this.unsigned?e.UZERO:e.ZERO;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=e.ZERO}for(o=this;o.gte(t);){r=Math.max(1,Math.floor(o.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),c=a<=48?1:Math.pow(2,a-48),l=e.fromNumber(r),d=l.mul(t);d.isNegative()||d.gt(o);)r-=c,l=e.fromNumber(r,this.unsigned),d=l.mul(t);l.isZero()&&(l=e.ONE),i=i.add(l),o=o.sub(d)}return i},e.prototype.div=function(t){return this.divide(t)},e.prototype.equals=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.unsigned!==t.unsigned&&this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low},e.prototype.eq=function(t){return this.equals(t)},e.prototype.getHighBits=function(){return this.high},e.prototype.getHighBitsUnsigned=function(){return this.high>>>0},e.prototype.getLowBits=function(){return this.low},e.prototype.getLowBitsUnsigned=function(){return this.low>>>0},e.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(e.MIN_VALUE)?64:this.neg().getNumBitsAbs();var t=this.high!==0?this.high:this.low,n;for(n=31;n>0&&(t&1<<n)===0;n--);return this.high!==0?n+33:n+1},e.prototype.greaterThan=function(t){return this.comp(t)>0},e.prototype.gt=function(t){return this.greaterThan(t)},e.prototype.greaterThanOrEqual=function(t){return this.comp(t)>=0},e.prototype.gte=function(t){return this.greaterThanOrEqual(t)},e.prototype.ge=function(t){return this.greaterThanOrEqual(t)},e.prototype.isEven=function(){return(this.low&1)===0},e.prototype.isNegative=function(){return!this.unsigned&&this.high<0},e.prototype.isOdd=function(){return(this.low&1)===1},e.prototype.isPositive=function(){return this.unsigned||this.high>=0},e.prototype.isZero=function(){return this.high===0&&this.low===0},e.prototype.lessThan=function(t){return this.comp(t)<0},e.prototype.lt=function(t){return this.lessThan(t)},e.prototype.lessThanOrEqual=function(t){return this.comp(t)<=0},e.prototype.lte=function(t){return this.lessThanOrEqual(t)},e.prototype.modulo=function(t){if(e.isLong(t)||(t=e.fromValue(t)),jt){var n=(this.unsigned?jt.rem_u:jt.rem_s)(this.low,this.high,t.low,t.high);return e.fromBits(n,jt.get_high(),this.unsigned)}return this.sub(this.div(t).mul(t))},e.prototype.mod=function(t){return this.modulo(t)},e.prototype.rem=function(t){return this.modulo(t)},e.prototype.multiply=function(t){if(this.isZero())return e.ZERO;if(e.isLong(t)||(t=e.fromValue(t)),jt){var n=jt.mul(this.low,this.high,t.low,t.high);return e.fromBits(n,jt.get_high(),this.unsigned)}if(t.isZero())return e.ZERO;if(this.eq(e.MIN_VALUE))return t.isOdd()?e.MIN_VALUE:e.ZERO;if(t.eq(e.MIN_VALUE))return this.isOdd()?e.MIN_VALUE:e.ZERO;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(e.TWO_PWR_24)&&t.lt(e.TWO_PWR_24))return e.fromNumber(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,o=this.high&65535,i=this.low>>>16,s=this.low&65535,a=t.high>>>16,c=t.high&65535,l=t.low>>>16,d=t.low&65535,h=0,y=0,v=0,b=0;return b+=s*d,v+=b>>>16,b&=65535,v+=i*d,y+=v>>>16,v&=65535,v+=s*l,y+=v>>>16,v&=65535,y+=o*d,h+=y>>>16,y&=65535,y+=i*l,h+=y>>>16,y&=65535,y+=s*c,h+=y>>>16,y&=65535,h+=r*d+o*l+i*c+s*a,h&=65535,e.fromBits(v<<16|b,h<<16|y,this.unsigned)},e.prototype.mul=function(t){return this.multiply(t)},e.prototype.negate=function(){return!this.unsigned&&this.eq(e.MIN_VALUE)?e.MIN_VALUE:this.not().add(e.ONE)},e.prototype.neg=function(){return this.negate()},e.prototype.not=function(){return e.fromBits(~this.low,~this.high,this.unsigned)},e.prototype.notEquals=function(t){return!this.equals(t)},e.prototype.neq=function(t){return this.notEquals(t)},e.prototype.ne=function(t){return this.notEquals(t)},e.prototype.or=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low|t.low,this.high|t.high,this.unsigned)},e.prototype.shiftLeft=function(t){return e.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?e.fromBits(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):e.fromBits(0,this.low<<t-32,this.unsigned)},e.prototype.shl=function(t){return this.shiftLeft(t)},e.prototype.shiftRight=function(t){return e.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?e.fromBits(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):e.fromBits(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},e.prototype.shr=function(t){return this.shiftRight(t)},e.prototype.shiftRightUnsigned=function(t){if(e.isLong(t)&&(t=t.toInt()),t&=63,t===0)return this;var n=this.high;if(t<32){var r=this.low;return e.fromBits(r>>>t|n<<32-t,n>>>t,this.unsigned)}else return t===32?e.fromBits(n,0,this.unsigned):e.fromBits(n>>>t-32,0,this.unsigned)},e.prototype.shr_u=function(t){return this.shiftRightUnsigned(t)},e.prototype.shru=function(t){return this.shiftRightUnsigned(t)},e.prototype.subtract=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.add(t.neg())},e.prototype.sub=function(t){return this.subtract(t)},e.prototype.toInt=function(){return this.unsigned?this.low>>>0:this.low},e.prototype.toNumber=function(){return this.unsigned?(this.high>>>0)*yo+(this.low>>>0):this.high*yo+(this.low>>>0)},e.prototype.toBigInt=function(){return BigInt(this.toString())},e.prototype.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},e.prototype.toBytesLE=function(){var t=this.high,n=this.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]},e.prototype.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]},e.prototype.toSigned=function(){return this.unsigned?e.fromBits(this.low,this.high,!1):this},e.prototype.toString=function(t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(e.MIN_VALUE)){var n=e.fromNumber(t),r=this.div(n),o=r.mul(n).sub(this);return r.toString(t)+o.toInt().toString(t)}else return"-"+this.neg().toString(t);for(var i=e.fromNumber(Math.pow(t,6),this.unsigned),s=this,a="";;){var c=s.div(i),l=s.sub(c.mul(i)).toInt()>>>0,d=l.toString(t);if(s=c,s.isZero())return d+a;for(;d.length<6;)d="0"+d;a=""+d+a}},e.prototype.toUnsigned=function(){return this.unsigned?this:e.fromBits(this.low,this.high,!0)},e.prototype.xor=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low^t.low,this.high^t.high,this.unsigned)},e.prototype.eqz=function(){return this.isZero()},e.prototype.le=function(t){return this.lessThanOrEqual(t)},e.prototype.toExtendedJSON=function(t){return t&&t.relaxed?this.toNumber():{$numberLong:this.toString()}},e.fromExtendedJSON=function(t,n){var r=e.fromString(t.$numberLong);return n&&n.relaxed?r.toNumber():r},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new Long("'.concat(this.toString(),'"').concat(this.unsigned?", true":"",")")},e.TWO_PWR_24=e.fromInt(oM),e.MAX_UNSIGNED_VALUE=e.fromBits(-1,-1,!0),e.ZERO=e.fromInt(0),e.UZERO=e.fromInt(0,!0),e.ONE=e.fromInt(1),e.UONE=e.fromInt(1,!0),e.NEG_ONE=e.fromInt(-1),e.MAX_VALUE=e.fromBits(-1,2147483647,!1),e.MIN_VALUE=e.fromBits(0,-2147483648,!1),e}();Object.defineProperty(z.prototype,"__isLong__",{value:!0});Object.defineProperty(z.prototype,"_bsontype",{value:"Long"});var iM=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,sM=/^(\+|-)?(Infinity|inf)$/i,aM=/^(\+|-)?NaN$/i,_i=6111,fd=-6176,hE=6176,cM=34,dd=[124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),gE=[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),mE=[120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),uM=/^([-+])?(\d+)?$/,lM=31,yE=16383,fM=30,dM=31;function vE(e){return!isNaN(parseInt(e,10))}function pM(e){var t=z.fromNumber(1e9),n=z.fromNumber(0);if(!e.parts[0]&&!e.parts[1]&&!e.parts[2]&&!e.parts[3])return{quotient:e,rem:n};for(var r=0;r<=3;r++)n=n.shiftLeft(32),n=n.add(new z(e.parts[r],0)),e.parts[r]=n.div(t).low,n=n.modulo(t);return{quotient:e,rem:n}}function hM(e,t){if(!e&&!t)return{high:z.fromNumber(0),low:z.fromNumber(0)};var n=e.shiftRightUnsigned(32),r=new z(e.getLowBits(),0),o=t.shiftRightUnsigned(32),i=new z(t.getLowBits(),0),s=n.multiply(o),a=n.multiply(i),c=r.multiply(o),l=r.multiply(i);return s=s.add(a.shiftRightUnsigned(32)),a=new z(a.getLowBits(),0).add(c).add(l.shiftRightUnsigned(32)),s=s.add(a.shiftRightUnsigned(32)),l=a.shiftLeft(32).add(new z(l.getLowBits(),0)),{high:s,low:l}}function gM(e,t){var n=e.high>>>0,r=t.high>>>0;if(n<r)return!0;if(n===r){var o=e.low>>>0,i=t.low>>>0;if(o<i)return!0}return!1}function mo(e,t){throw new je('"'.concat(e,'" is not a valid Decimal128 string - ').concat(t))}var yd=function(){function e(t){if(!(this instanceof e))return new e(t);if(typeof t=="string")this.bytes=e.fromString(t).bytes;else if(md(t)){if(t.byteLength!==16)throw new je("Decimal128 must take a Buffer of 16 bytes");this.bytes=t}else throw new je("Decimal128 must take a Buffer or string")}return e.fromString=function(t){var n=!1,r=!1,o=!1,i=0,s=0,a=0,c=0,l=0,d=[0],h=0,y=0,v=0,b=0,M=0,R=0,k=new z(0,0),$=new z(0,0),Q=0,j=0;if(t.length>=7e3)throw new je(""+t+" not a valid Decimal128 string");var _e=t.match(iM),B=t.match(sM),X=t.match(aM);if(!_e&&!B&&!X||t.length===0)throw new je(""+t+" not a valid Decimal128 string");if(_e){var q=_e[2],fe=_e[4],Fe=_e[5],Ye=_e[6];fe&&Ye===void 0&&mo(t,"missing exponent power"),fe&&q===void 0&&mo(t,"missing exponent base"),fe===void 0&&(Fe||Ye)&&mo(t,"missing e before exponent")}if((t[j]==="+"||t[j]==="-")&&(n=t[j++]==="-"),!vE(t[j])&&t[j]!=="."){if(t[j]==="i"||t[j]==="I")return new e(Ee.from(n?gE:mE));if(t[j]==="N")return new e(Ee.from(dd))}for(;vE(t[j])||t[j]===".";){if(t[j]==="."){r&&mo(t,"contains multiple periods"),r=!0,j=j+1;continue}h<34&&(t[j]!=="0"||o)&&(o||(l=s),o=!0,d[y++]=parseInt(t[j],10),h=h+1),o&&(a=a+1),r&&(c=c+1),s=s+1,j=j+1}if(r&&!s)throw new je(""+t+" not a valid Decimal128 string");if(t[j]==="e"||t[j]==="E"){var Ve=t.substr(++j).match(uM);if(!Ve||!Ve[2])return new e(Ee.from(dd));M=parseInt(Ve[0],10),j=j+Ve[0].length}if(t[j])return new e(Ee.from(dd));if(v=0,!h)v=0,b=0,d[0]=0,a=1,h=1,i=0;else if(b=h-1,i=a,i!==1)for(;d[l+i-1]===0;)i=i-1;for(M<=c&&c-M>16384?M=fd:M=M-c;M>_i;){if(b=b+1,b-v>cM){var He=d.join("");if(He.match(/^0+$/)){M=_i;break}mo(t,"overflow")}M=M-1}for(;M<fd||h<a;){if(b===0&&i<h){M=fd,i=0;break}if(h<a?a=a-1:b=b-1,M<_i)M=M+1;else{var He=d.join("");if(He.match(/^0+$/)){M=_i;break}mo(t,"overflow")}}if(b-v+1<i){var $e=s;r&&(l=l+1,$e=$e+1),n&&(l=l+1,$e=$e+1);var Et=parseInt(t[l+b+1],10),_t=0;if(Et>=5&&(_t=1,Et===5)){for(_t=d[b]%2===1?1:0,R=l+b+2;R<$e;R++)if(parseInt(t[R],10)){_t=1;break}}if(_t){for(var Me=b;Me>=0;Me--)if(++d[Me]>9&&(d[Me]=0,Me===0))if(M<_i)M=M+1,d[Me]=1;else return new e(Ee.from(n?gE:mE))}}if(k=z.fromNumber(0),$=z.fromNumber(0),i===0)k=z.fromNumber(0),$=z.fromNumber(0);else if(b-v<17){var Me=v;for($=z.fromNumber(d[Me++]),k=new z(0,0);Me<=b;Me++)$=$.multiply(z.fromNumber(10)),$=$.add(z.fromNumber(d[Me]))}else{var Me=v;for(k=z.fromNumber(d[Me++]);Me<=b-17;Me++)k=k.multiply(z.fromNumber(10)),k=k.add(z.fromNumber(d[Me]));for($=z.fromNumber(d[Me++]);Me<=b;Me++)$=$.multiply(z.fromNumber(10)),$=$.add(z.fromNumber(d[Me]))}var Ze=hM(k,z.fromString("100000000000000000"));Ze.low=Ze.low.add($),gM(Ze.low,$)&&(Ze.high=Ze.high.add(z.fromNumber(1))),Q=M+hE;var ue={low:z.fromNumber(0),high:z.fromNumber(0)};Ze.high.shiftRightUnsigned(49).and(z.fromNumber(1)).equals(z.fromNumber(1))?(ue.high=ue.high.or(z.fromNumber(3).shiftLeft(61)),ue.high=ue.high.or(z.fromNumber(Q).and(z.fromNumber(16383).shiftLeft(47))),ue.high=ue.high.or(Ze.high.and(z.fromNumber(0x7fffffffffff)))):(ue.high=ue.high.or(z.fromNumber(Q&16383).shiftLeft(49)),ue.high=ue.high.or(Ze.high.and(z.fromNumber(562949953421311)))),ue.low=Ze.low,n&&(ue.high=ue.high.or(z.fromString("9223372036854775808")));var S=Ee.alloc(16);return j=0,S[j++]=ue.low.low&255,S[j++]=ue.low.low>>8&255,S[j++]=ue.low.low>>16&255,S[j++]=ue.low.low>>24&255,S[j++]=ue.low.high&255,S[j++]=ue.low.high>>8&255,S[j++]=ue.low.high>>16&255,S[j++]=ue.low.high>>24&255,S[j++]=ue.high.low&255,S[j++]=ue.high.low>>8&255,S[j++]=ue.high.low>>16&255,S[j++]=ue.high.low>>24&255,S[j++]=ue.high.high&255,S[j++]=ue.high.high>>8&255,S[j++]=ue.high.high>>16&255,S[j++]=ue.high.high>>24&255,new e(S)},e.prototype.toString=function(){for(var t,n=0,r=new Array(36),o=0;o<r.length;o++)r[o]=0;var i=0,s=!1,a,c={parts:[0,0,0,0]},l,d,h=[];i=0;var y=this.bytes,v=y[i++]|y[i++]<<8|y[i++]<<16|y[i++]<<24,b=y[i++]|y[i++]<<8|y[i++]<<16|y[i++]<<24,M=y[i++]|y[i++]<<8|y[i++]<<16|y[i++]<<24,R=y[i++]|y[i++]<<8|y[i++]<<16|y[i++]<<24;i=0;var k={low:new z(v,b),high:new z(M,R)};k.high.lessThan(z.ZERO)&&h.push("-");var $=R>>26&lM;if($>>3===3){if($===fM)return h.join("")+"Infinity";if($===dM)return"NaN";t=R>>15&yE,a=8+(R>>14&1)}else a=R>>14&7,t=R>>17&yE;var Q=t-hE;if(c.parts[0]=(R&16383)+((a&15)<<14),c.parts[1]=M,c.parts[2]=b,c.parts[3]=v,c.parts[0]===0&&c.parts[1]===0&&c.parts[2]===0&&c.parts[3]===0)s=!0;else for(d=3;d>=0;d--){var j=0,_e=pM(c);if(c=_e.quotient,j=_e.rem.low,!!j)for(l=8;l>=0;l--)r[d*9+l]=j%10,j=Math.floor(j/10)}if(s)n=1,r[i]=0;else for(n=36;!r[i];)n=n-1,i=i+1;var B=n-1+Q;if(B>=34||B<=-7||Q>0){if(n>34)return h.push("".concat(0)),Q>0?h.push("E+".concat(Q)):Q<0&&h.push("E".concat(Q)),h.join("");h.push("".concat(r[i++])),n=n-1,n&&h.push(".");for(var o=0;o<n;o++)h.push("".concat(r[i++]));h.push("E"),B>0?h.push("+".concat(B)):h.push("".concat(B))}else if(Q>=0)for(var o=0;o<n;o++)h.push("".concat(r[i++]));else{var X=n+Q;if(X>0)for(var o=0;o<X;o++)h.push("".concat(r[i++]));else h.push("0");for(h.push(".");X++<0;)h.push("0");for(var o=0;o<n-Math.max(X-1,0);o++)h.push("".concat(r[i++]))}return h.join("")},e.prototype.toJSON=function(){return{$numberDecimal:this.toString()}},e.prototype.toExtendedJSON=function(){return{$numberDecimal:this.toString()}},e.fromExtendedJSON=function(t){return e.fromString(t.$numberDecimal)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new Decimal128("'.concat(this.toString(),'")')},e}();Object.defineProperty(yd.prototype,"_bsontype",{value:"Decimal128"});var tc=function(){function e(t){if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t.valueOf()),this.value=+t}return e.prototype.valueOf=function(){return this.value},e.prototype.toJSON=function(){return this.value},e.prototype.toString=function(t){return this.value.toString(t)},e.prototype.toExtendedJSON=function(t){return t&&(t.legacy||t.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-".concat(this.value.toFixed(1))}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}},e.fromExtendedJSON=function(t,n){var r=parseFloat(t.$numberDouble);return n&&n.relaxed?r:new e(r)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.toExtendedJSON();return"new Double(".concat(t.$numberDouble,")")},e}();Object.defineProperty(tc.prototype,"_bsontype",{value:"Double"});var nc=function(){function e(t){if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t.valueOf()),this.value=+t|0}return e.prototype.valueOf=function(){return this.value},e.prototype.toString=function(t){return this.value.toString(t)},e.prototype.toJSON=function(){return this.value},e.prototype.toExtendedJSON=function(t){return t&&(t.relaxed||t.legacy)?this.value:{$numberInt:this.value.toString()}},e.fromExtendedJSON=function(t,n){return n&&n.relaxed?parseInt(t.$numberInt,10):new e(t.$numberInt)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new Int32(".concat(this.valueOf(),")")},e}();Object.defineProperty(nc.prototype,"_bsontype",{value:"Int32"});var vd=function(){function e(){if(!(this instanceof e))return new e}return e.prototype.toExtendedJSON=function(){return{$maxKey:1}},e.fromExtendedJSON=function(){return new e},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new MaxKey()"},e}();Object.defineProperty(vd.prototype,"_bsontype",{value:"MaxKey"});var Ed=function(){function e(){if(!(this instanceof e))return new e}return e.prototype.toExtendedJSON=function(){return{$minKey:1}},e.fromExtendedJSON=function(){return new e},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new MinKey()"},e}();Object.defineProperty(Ed.prototype,"_bsontype",{value:"MinKey"});var mM=new RegExp("^[0-9a-fA-F]{24}$"),Sr=null,yn=Symbol("id"),vt=function(){function e(t){if(!(this instanceof e))return new e(t);var n;if(typeof t=="object"&&t&&"id"in t){if(typeof t.id!="string"&&!ArrayBuffer.isView(t.id))throw new je("Argument passed in must have an id that is of type string or Buffer");"toHexString"in t&&typeof t.toHexString=="function"?n=Ee.from(t.toHexString(),"hex"):n=t.id}else n=t;if(n==null||typeof n=="number")this[yn]=e.generate(typeof n=="number"?n:void 0);else if(ArrayBuffer.isView(n)&&n.byteLength===12)this[yn]=n instanceof Ee?n:Ka(n);else if(typeof n=="string")if(n.length===12){var r=Ee.from(n);if(r.byteLength===12)this[yn]=r;else throw new je("Argument passed in must be a string of 12 bytes")}else if(n.length===24&&mM.test(n))this[yn]=Ee.from(n,"hex");else throw new je("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new je("Argument passed in does not match the accepted types");e.cacheHexString&&(this.__id=this.id.toString("hex"))}return Object.defineProperty(e.prototype,"id",{get:function(){return this[yn]},set:function(t){this[yn]=t,e.cacheHexString&&(this.__id=t.toString("hex"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"generationTime",{get:function(){return this.id.readInt32BE(0)},set:function(t){this.id.writeUInt32BE(t,0)},enumerable:!1,configurable:!0}),e.prototype.toHexString=function(){if(e.cacheHexString&&this.__id)return this.__id;var t=this.id.toString("hex");return e.cacheHexString&&!this.__id&&(this.__id=t),t},e.getInc=function(){return e.index=(e.index+1)%16777215},e.generate=function(t){typeof t!="number"&&(t=Math.floor(Date.now()/1e3));var n=e.getInc(),r=Ee.alloc(12);return r.writeUInt32BE(t,0),Sr===null&&(Sr=bE(5)),r[4]=Sr[0],r[5]=Sr[1],r[6]=Sr[2],r[7]=Sr[3],r[8]=Sr[4],r[11]=n&255,r[10]=n>>8&255,r[9]=n>>16&255,r},e.prototype.toString=function(t){return t?this.id.toString(t):this.toHexString()},e.prototype.toJSON=function(){return this.toHexString()},e.prototype.equals=function(t){if(t==null)return!1;if(t instanceof e)return this[yn][11]===t[yn][11]&&this[yn].equals(t[yn]);if(typeof t=="string"&&e.isValid(t)&&t.length===12&&md(this.id))return t===Ee.prototype.toString.call(this.id,"latin1");if(typeof t=="string"&&e.isValid(t)&&t.length===24)return t.toLowerCase()===this.toHexString();if(typeof t=="string"&&e.isValid(t)&&t.length===12)return Ee.from(t).equals(this.id);if(typeof t=="object"&&"toHexString"in t&&typeof t.toHexString=="function"){var n=t.toHexString(),r=this.toHexString().toLowerCase();return typeof n=="string"&&n.toLowerCase()===r}return!1},e.prototype.getTimestamp=function(){var t=new Date,n=this.id.readUInt32BE(0);return t.setTime(Math.floor(n)*1e3),t},e.createPk=function(){return new e},e.createFromTime=function(t){var n=Ee.from([0,0,0,0,0,0,0,0,0,0,0,0]);return n.writeUInt32BE(t,0),new e(n)},e.createFromHexString=function(t){if(typeof t>"u"||t!=null&&t.length!==24)throw new je("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");return new e(Ee.from(t,"hex"))},e.isValid=function(t){if(t==null)return!1;try{return new e(t),!0}catch{return!1}},e.prototype.toExtendedJSON=function(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}},e.fromExtendedJSON=function(t){return new e(t.$oid)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new ObjectId("'.concat(this.toHexString(),'")')},e.index=Math.floor(Math.random()*16777215),e}();Object.defineProperty(vt.prototype,"generate",{value:Xa(function(e){return vt.generate(e)},"Please use the static `ObjectId.generate(time)` instead")});Object.defineProperty(vt.prototype,"getInc",{value:Xa(function(){return vt.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(vt.prototype,"get_inc",{value:Xa(function(){return vt.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(vt,"get_inc",{value:Xa(function(){return vt.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(vt.prototype,"_bsontype",{value:"ObjectID"});function yM(e){return e.split("").sort().join("")}var wi=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this.pattern=t,this.options=yM(n??""),this.pattern.indexOf("\0")!==-1)throw new br("BSON Regex patterns cannot contain null bytes, found: ".concat(JSON.stringify(this.pattern)));if(this.options.indexOf("\0")!==-1)throw new br("BSON Regex options cannot contain null bytes, found: ".concat(JSON.stringify(this.options)));for(var r=0;r<this.options.length;r++)if(!(this.options[r]==="i"||this.options[r]==="m"||this.options[r]==="x"||this.options[r]==="l"||this.options[r]==="s"||this.options[r]==="u"))throw new br("The regular expression option [".concat(this.options[r],"] is not supported"))}return e.parseOptions=function(t){return t?t.split("").sort().join(""):""},e.prototype.toExtendedJSON=function(t){return t=t||{},t.legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}},e.fromExtendedJSON=function(t){if("$regex"in t)if(typeof t.$regex!="string"){if(t.$regex._bsontype==="BSONRegExp")return t}else return new e(t.$regex,e.parseOptions(t.$options));if("$regularExpression"in t)return new e(t.$regularExpression.pattern,e.parseOptions(t.$regularExpression.options));throw new je("Unexpected BSONRegExp EJSON object form: ".concat(JSON.stringify(t)))},e}();Object.defineProperty(wi.prototype,"_bsontype",{value:"BSONRegExp"});var _d=function(){function e(t){if(!(this instanceof e))return new e(t);this.value=t}return e.prototype.valueOf=function(){return this.value},e.prototype.toString=function(){return this.value},e.prototype.inspect=function(){return'new BSONSymbol("'.concat(this.value,'")')},e.prototype.toJSON=function(){return this.value},e.prototype.toExtendedJSON=function(){return{$symbol:this.value}},e.fromExtendedJSON=function(t){return new e(t.$symbol)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e}();Object.defineProperty(_d.prototype,"_bsontype",{value:"Symbol"});var vM=z,ME=function(e){Qa(t,e);function t(n,r){var o=this;return o instanceof t?(z.isLong(n)?o=e.call(this,n.low,n.high,!0)||this:Ii(n)&&typeof n.t<"u"&&typeof n.i<"u"?o=e.call(this,n.i,n.t,!0)||this:o=e.call(this,n,r,!0)||this,Object.defineProperty(o,"_bsontype",{value:"Timestamp",writable:!1,configurable:!1,enumerable:!1}),o):new t(n,r)}return t.prototype.toJSON=function(){return{$timestamp:this.toString()}},t.fromInt=function(n){return new t(z.fromInt(n,!0))},t.fromNumber=function(n){return new t(z.fromNumber(n,!0))},t.fromBits=function(n,r){return new t(n,r)},t.fromString=function(n,r){return new t(z.fromString(n,!0,r))},t.prototype.toExtendedJSON=function(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}},t.fromExtendedJSON=function(n){return new t(n.$timestamp)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return"new Timestamp({ t: ".concat(this.getHighBits(),", i: ").concat(this.getLowBits()," })")},t.MAX_VALUE=z.MAX_UNSIGNED_VALUE,t}(vM);function EM(e){return Ii(e)&&Reflect.has(e,"_bsontype")&&typeof e._bsontype=="string"}var xE=2147483647,AE=-2147483648,OE=9223372036854776e3,RE=-9223372036854776e3,_M={$oid:vt,$binary:Tr,$uuid:Tr,$symbol:_d,$numberInt:nc,$numberDecimal:yd,$numberDouble:tc,$numberLong:z,$minKey:Ed,$maxKey:vd,$regex:wi,$regularExpression:wi,$timestamp:ME};function LE(e,t){if(t===void 0&&(t={}),typeof e=="number"){if(t.relaxed||t.legacy)return e;if(Math.floor(e)===e){if(e>=AE&&e<=xE)return new nc(e);if(e>=RE&&e<=OE)return z.fromNumber(e)}return new tc(e)}if(e==null||typeof e!="object")return e;if(e.$undefined)return null;for(var n=Object.keys(e).filter(function(h){return h.startsWith("$")&&e[h]!=null}),r=0;r<n.length;r++){var o=_M[n[r]];if(o)return o.fromExtendedJSON(e,t)}if(e.$date!=null){var i=e.$date,s=new Date;return t.legacy?typeof i=="number"?s.setTime(i):typeof i=="string"&&s.setTime(Date.parse(i)):typeof i=="string"?s.setTime(Date.parse(i)):z.isLong(i)?s.setTime(i.toNumber()):typeof i=="number"&&t.relaxed&&s.setTime(i),s}if(e.$code!=null){var a=Object.assign({},e);return e.$scope&&(a.$scope=LE(e.$scope)),ec.fromExtendedJSON(e)}if(rM(e)||e.$dbPointer){var c=e.$ref?e:e.$dbPointer;if(c instanceof Di)return c;var l=Object.keys(c).filter(function(h){return h.startsWith("$")}),d=!0;if(l.forEach(function(h){["$ref","$id","$db"].indexOf(h)===-1&&(d=!1)}),d)return Di.fromExtendedJSON(c)}return e}function DM(e,t){return e.map(function(n,r){t.seenObjects.push({propertyName:"index ".concat(r),obj:null});try{return Kn(n,t)}finally{t.seenObjects.pop()}})}function EE(e){var t=e.toISOString();return e.getUTCMilliseconds()!==0?t:t.slice(0,-5)+"Z"}function Kn(e,t){if((typeof e=="object"||typeof e=="function")&&e!==null){var n=t.seenObjects.findIndex(function(k){return k.obj===e});if(n!==-1){var r=t.seenObjects.map(function(k){return k.propertyName}),o=r.slice(0,n).map(function(k){return"".concat(k," -> ")}).join(""),i=r[n],s=" -> "+r.slice(n+1,r.length-1).map(function(k){return"".concat(k," -> ")}).join(""),a=r[r.length-1],c=" ".repeat(o.length+i.length/2),l="-".repeat(s.length+(i.length+a.length)/2-1);throw new je(`Converting circular structure to EJSON:
42
+ `+" ".concat(o).concat(i).concat(s).concat(a,`
43
+ `)+" ".concat(c,"\\").concat(l,"/"))}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return DM(e,t);if(e===void 0)return null;if(e instanceof Date||XN(e)){var d=e.getTime(),h=d>-1&&d<2534023188e5;return t.legacy?t.relaxed&&h?{$date:e.getTime()}:{$date:EE(e)}:t.relaxed&&h?{$date:EE(e)}:{$date:{$numberLong:e.getTime().toString()}}}if(typeof e=="number"&&(!t.relaxed||!isFinite(e))){if(Math.floor(e)===e){var y=e>=AE&&e<=xE,v=e>=RE&&e<=OE;if(y)return{$numberInt:e.toString()};if(v)return{$numberLong:e.toString()}}return{$numberDouble:e.toString()}}if(e instanceof RegExp||QN(e)){var b=e.flags;if(b===void 0){var M=e.toString().match(/[gimuy]*$/);M&&(b=M[0])}var R=new wi(e.source,b);return R.toExtendedJSON(t)}return e!=null&&typeof e=="object"?IM(e,t):e}var wM={Binary:function(e){return new Tr(e.value(),e.sub_type)},Code:function(e){return new ec(e.code,e.scope)},DBRef:function(e){return new Di(e.collection||e.namespace,e.oid,e.db,e.fields)},Decimal128:function(e){return new yd(e.bytes)},Double:function(e){return new tc(e.value)},Int32:function(e){return new nc(e.value)},Long:function(e){return z.fromBits(e.low!=null?e.low:e.low_,e.low!=null?e.high:e.high_,e.low!=null?e.unsigned:e.unsigned_)},MaxKey:function(){return new vd},MinKey:function(){return new Ed},ObjectID:function(e){return new vt(e)},ObjectId:function(e){return new vt(e)},BSONRegExp:function(e){return new wi(e.pattern,e.options)},Symbol:function(e){return new _d(e.value)},Timestamp:function(e){return ME.fromBits(e.low,e.high)}};function IM(e,t){if(e==null||typeof e!="object")throw new br("not an object instance");var n=e._bsontype;if(typeof n>"u"){var r={};for(var o in e){t.seenObjects.push({propertyName:o,obj:null});try{var i=Kn(e[o],t);o==="__proto__"?Object.defineProperty(r,o,{value:i,writable:!0,enumerable:!0,configurable:!0}):r[o]=i}finally{t.seenObjects.pop()}}return r}else if(EM(e)){var s=e;if(typeof s.toExtendedJSON!="function"){var a=wM[e._bsontype];if(!a)throw new je("Unrecognized or invalid _bsontype: "+e._bsontype);s=a(s)}return n==="Code"&&s.scope?s=new ec(s.code,Kn(s.scope,t)):n==="DBRef"&&s.oid&&(s=new Di(Kn(s.collection,t),Kn(s.oid,t),Kn(s.db,t),Kn(s.fields,t))),s.toExtendedJSON(t)}else throw new br("_bsontype must be a string, but was: "+typeof n)}var _E;(function(e){function t(i,s){var a=Object.assign({},{relaxed:!0,legacy:!1},s);return typeof a.relaxed=="boolean"&&(a.strict=!a.relaxed),typeof a.strict=="boolean"&&(a.relaxed=!a.strict),JSON.parse(i,function(c,l){if(c.indexOf("\0")!==-1)throw new br("BSON Document field names cannot contain null bytes, found: ".concat(JSON.stringify(c)));return LE(l,a)})}e.parse=t;function n(i,s,a,c){a!=null&&typeof a=="object"&&(c=a,a=0),s!=null&&typeof s=="object"&&!Array.isArray(s)&&(c=s,s=void 0,a=0);var l=Object.assign({relaxed:!0,legacy:!1},c,{seenObjects:[{propertyName:"(root)",obj:null}]}),d=Kn(i,l);return JSON.stringify(d,s,a)}e.stringify=n;function r(i,s){return s=s||{},JSON.parse(n(i,s))}e.serialize=r;function o(i,s){return s=s||{},t(JSON.stringify(i),s)}e.deserialize=o})(_E||(_E={}));var DE,wE=SE();wE.Map?DE=wE.Map:DE=function(){function e(t){t===void 0&&(t=[]),this._keys=[],this._values={};for(var n=0;n<t.length;n++)if(t[n]!=null){var r=t[n],o=r[0],i=r[1];this._keys.push(o),this._values[o]={v:i,i:this._keys.length-1}}}return e.prototype.clear=function(){this._keys=[],this._values={}},e.prototype.delete=function(t){var n=this._values[t];return n==null?!1:(delete this._values[t],this._keys.splice(n.i,1),!0)},e.prototype.entries=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?[r,t._values[r].v]:void 0,done:r===void 0}}}},e.prototype.forEach=function(t,n){n=n||this;for(var r=0;r<this._keys.length;r++){var o=this._keys[r];t.call(n,this._values[o].v,o,n)}},e.prototype.get=function(t){return this._values[t]?this._values[t].v:void 0},e.prototype.has=function(t){return this._values[t]!=null},e.prototype.keys=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?r:void 0,done:r===void 0}}}},e.prototype.set=function(t,n){return this._values[t]?(this._values[t].v=n,this):(this._keys.push(t),this._values[t]={v:n,i:this._keys.length-1},this)},e.prototype.values=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?t._values[r].v:void 0,done:r===void 0}}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!1,configurable:!0}),e}();var Hj=z.fromNumber(tM),$j=z.fromNumber(nM);var pd=new Uint8Array(8),Gj=new DataView(pd.buffer,pd.byteOffset,pd.byteLength);var SM=1024*1024*17,Wj=Ee.alloc(SM);var rc=class{triggerID;nudgeID;engagementID;contentID;shortID;contentType;variation;props;objective;onsiteDeliveryType;holdout;constructor(t){t=t||{},this.triggerID=t.id||t.triggerID,this.nudgeID=t.nudgeID,this.shortID=t.shortID,this.contentType=t.contentType,this.engagementID=t.engagementID,this.contentID=t.contentID,this.variation=t.variation,this.props=t.props,this.objective=t.objective,this.onsiteDeliveryType=t.onsiteDeliveryType,this.holdout=t.holdout}};var oc=class{constructor(t,n={},r,o){this.name=t;this.properties=n;this.id=o?new vt(o):new vt,this.occurred=new Date,r&&(this.trigger=new rc(r)),this.newEvent=!o}trigger;items;id;newEvent;cart;currentItem;deviceProps;landingPage;occurred;page;sessionID;sessionNumber;locale};var bM=()=>({flex:"1 1 0"}),TM=(e,t)=>t.mID,PE=(e,t)=>t.url;function CM(e,t){if(e&1&&an(0,"source",6),e&2){let n=t.$implicit;lr("type",n.mimeType),$s("media","(max-width: ",n.width,"px)"),sn("src",n.url,xn)}}function NM(e,t){if(e&1&&an(0,"source",7),e&2){let n=t.$implicit;lr("type",n.mimeType),sn("src",n.url,xn)}}function MM(e,t){if(e&1){let n=Tm();rt(0,"div",3),Xo(1),rt(2,"a",4),Qr("click",function(){zo(n);let o=bt().$implicit,i=bt();return qo(i.sendTriggerClicked(o,"video"))}),rt(3,"video",5),cr(4,CM,1,4,"source",6,PE),cr(6,NM,1,2,"source",7,PE),St()(),rt(8,"div",8)(9,"div",9)(10,"a",4),Qr("click",function(){zo(n);let o=bt().$implicit,i=bt();return qo(i.sendTriggerClicked(o,"image"))}),an(11,"img",10),St(),rt(12,"div",11)(13,"a",4),Qr("click",function(){zo(n);let o=bt().$implicit,i=bt();return qo(i.sendTriggerClicked(o,"title"))}),rt(14,"div",12)(15,"span",13),fr(16),St()()(),rt(17,"div",14)(18,"div",13),fr(19),dr(20,"cooeeCurrency"),St()(),rt(21,"button",15),Qr("click",function(){zo(n);let o=bt().$implicit,i=bt();return qo(i.performCTA.emit(o))}),rt(22,"span"),fr(23,"Add"),St()()()()()()}if(e&2){let n=t.$implicit,r=bt().$implicit,o=bt();vm(Nm(11,bM));let i=r.selectedOrFirstVariant.value.link;st(2),sn("href",i,xn),st(2),ur(n.sources),st(2),ur(o.getBestSources(n.sources)),st(4),lr("href",i,xn),st(),lr("alt",r.selectedOrFirstVariant.value.name),sn("src",r.imageURL,xn),st(2),lr("href",i,xn),st(3),Qo(r.name),st(3),Gs(" ",Xr(20,9,r.selectedOrFirstVariant.value.price.d)," ")}}function xM(e,t){if(e&1&&cr(0,MM,24,12,"div",2,bm),e&2){let n=t.$implicit;ur(n.portraitVideos)}}var ic=class e{items;triggerClicked=new Wt;performCTA=new Wt;_engagementTrigger=Zr(null);set engagementTrigger(t){this._engagementTrigger.set(t)}getBestSources(t){if(!t)return[];let n=[],r=t.filter(i=>i.format==="mp4").sort((i,s)=>s.width-i.width)[0];r&&n.push(r);let o=t.filter(i=>i.format==="m3u8").sort((i,s)=>s.width-i.width)[0];return o&&n.push(o),n}sendTriggerClicked(t,n){let r=new oc(cn.EVENT_TRIGGER_CLICKED,{from:n},this.engagementTrigger);r.items=[t.toEmbed()],this.triggerClicked.emit(r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Vs({type:e,selectors:[["cooee-shoppable-videos"]],inputs:{items:"items",engagementTrigger:"engagementTrigger"},outputs:{triggerClicked:"triggerClicked",performCTA:"performCTA"},decls:5,vars:0,consts:[["id","lc-heading-text",1,"lc:mb-[15px]","lc:text-[16px]","lc:block","lc:text-center","lc:font-bold"],["id","lc-video-list",1,"lc:flex","lc:overflow-x-auto","lc:m-[10px]","lc:gap-[10px]"],["id","lc-video",1,"lc-video-card","lc:w-[260px]",3,"style"],["id","lc-video",1,"lc-video-card","lc:w-[260px]"],[3,"click","href"],["width","100%","autoplay","","muted","","loop",""],[3,"src","type","media"],[3,"src","type"],["id","lc-single-product",1,"lc:w-full","lc:h-auto","lc:p-[5px]","lc:block","lc:min-w-[240px]"],[1,"lc:flex","lc:justify-center","lc:items-center","lc:gap-[10px]","lc:w-full"],["id","lc-item-image",1,"lc:w-[70px]","lc:h-[80px]","lc:mb-[5px]","lc:object-cover","lc:box-border",3,"alt","src"],[1,"lc:w-full","lc:flex","lc:flex-col","lc:gap-[7px]"],["id","lc-item-name",1,"lc:text-[12px]","lc:font-semibold"],[1,"lc:line-clamp-2"],["id","lc-item-price",1,"lc:text-[13px]","lc:font-medium"],["id","lc-cta-button",1,"lc:bg-black","lc:w-full","lc:h-auto","lc:p-[7px]","lc:text-[12px]","lc:block","lc:text-center","lc:font-normal","lc:text-white","lc:cursor-pointer",3,"click"]],template:function(n,r){n&1&&(rt(0,"div",0),fr(1,` WATCH & SHOP - NEW LAUNCHES
44
+ `),St(),rt(2,"div",1),cr(3,xM,2,0,null,null,TM),St()),n&2&&(st(3),ur(r.items))},dependencies:[fo],styles:["[_nghost-%COMP%]{display:block;margin-top:30px}"]})};ot.configure("CooeeWidgetSDK");(async()=>{let e=await Km(ey),t=(n,r)=>{let o=Fm(n,{injector:e.injector});customElements.define(r,o)};t(Ya,"cooee-progressbar"),t(ic,"cooee-shoppable-videos")})();