1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7927],{126:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function a(t){return function(e,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=t.formattingValues[o]||t.formattingValues[i]}else{var s=t.defaultWidth,a=null!=r&&r.width?String(r.width):t.defaultWidth;n=t.values[a]||t.values[s]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function u(t){return function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;var a=s[0],u=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}(u,function(t){return t.test(a)}):function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}(u,function(t){return t.test(a)});return r=t.valueCallback?t.valueCallback(c):c,{value:r=n.valueCallback?n.valueCallback(r):r,rest:e.slice(a.length)}}}let c={code:"en-US",formatDistance:function(t,e,r){var i,o=n[t];if(i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:o,formatRelative:function(t,e,r,n){return s[t]},localize:{ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:a({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:a({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:a({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:a({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:a({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var i=n[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:e.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},1251:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(65402);function i(t){return(0,n.T)(null==t?void 0:t.then)}},2467:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(91992),i=r(58937),o=r(54615),s=r(64340),a=r(22555),u=r(22053);function c(t,e){(0,s.A)(1,arguments);var r=(0,n.A)(t);return Math.round(((0,i.A)(r,e).getTime()-(function(t,e){(0,s.A)(1,arguments);var r,n,c,l,h,f,d,p,y=(0,u.q)(),g=(0,a.A)(null!=(r=null!=(n=null!=(c=null!=(l=null==e?void 0:e.firstWeekContainsDate)?l:null==e||null==(h=e.locale)||null==(f=h.options)?void 0:f.firstWeekContainsDate)?c:y.firstWeekContainsDate)?n:null==(d=y.locale)||null==(p=d.options)?void 0:p.firstWeekContainsDate)?r:1),m=(0,o.A)(t,e),v=new Date(0);return v.setUTCFullYear(m,0,g),v.setUTCHours(0,0,0,0),(0,i.A)(v,e)})(r,e).getTime())/6048e5)+1}},3252:(t,e,r)=>{"use strict";r.d(e,{A:()=>
1o});var n=r(91992),i=r(64340);function o(t){(0,i.A)(1,arguments);var e=(0,n.A)(t),r=e.getUTCDay();return e.setUTCDate(e.getUTCDate()-(7*(r<1)+r-1)),e.setUTCHours(0,0,0,0),e}},3505:(t,e,r)=>{"use strict";r.d(e,{h:()=>s});var n=r(12487),i=r(10776),o=r(11357);function s(t,e,r,s,a,u,c,l){var h=[],f=0,d=0,p=!1,y=function(){!p||h.length||f||e.complete()},g=function(t){return f<s?m(t):h.push(t)},m=function(t){u&&e.next(t),f++;var l=!1;(0,n.Tg)(r(t,d++)).subscribe((0,o._)(e,function(t){null==a||a(t),u?g(t):e.next(t)},function(){l=!0},void 0,function(){if(l)try{for(f--;h.length&&f<s;)!function(){var t=h.shift();c?(0,i.N)(e,c,function(){return m(t)}):m(t)}();y()}catch(t){e.error(t)}}))};return t.subscribe((0,o._)(e,g,function(){p=!0,y()})),function(){null==l||l()}}},4902:(t,e,r)=>{"use strict";r.d(e,{AQ:()=>p,C6:()=>i,Cl:()=>o,Ju:()=>c,N3:()=>d,Tt:()=>s,YH:()=>u,fX:()=>f,gz:()=>h,sH:()=>a,xN:()=>y,zs:()=>l});var n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)0>e.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function a(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})}function u(t,e){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){var c=[a,u];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function c(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function h(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function f(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function d(t){return this instanceof d?(this.v=t,this):new d(t)}function p(t,e,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(t,e||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(t){return function(e){return Promise.resolve(e).then(t,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(t,e){i[t]&&(n[t]=function(e){return new Promise(function(r,n){o.push([t,e,r,n])>1||a(t,e)})},e&&(n[t]=e(n[t])))}function a(t,e){try{var r;(r=i[t](e)).value instanceof d?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(t){l(o[0][3],t)}}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function y(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=c(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,i){var o,s,a;o=n,s=i,a=(e=t[r](e)).done,Promise.resolve(e.value).then(function(t){o({value:t,done:a})},s)})}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},5115:(t,e,r)=>{"use strict";r.d(e,{A:()=>
1o});var n=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},i=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};let o={p:i,P:function(t,e){var r,o=t.match(/(P+)(p+)?/)||[],s=o[1],a=o[2];if(!a)return n(t,e);switch(s){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",n(s,e)).replace("{{time}}",i(a,e))}}},5604:(t,e,r)=>{"use strict";function n(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}r.d(e,{Q:()=>h,u4:()=>n,y:()=>u});var i={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},o={0:8203,1:8204,2:8205,3:65279},s={0:String.fromCodePoint(o[0]),1:String.fromCodePoint(o[1]),2:String.fromCodePoint(o[2]),3:String.fromCodePoint(o[3])},a=[,,,,].fill(String.fromCodePoint(o[0])).join("");function u(t,e,r="auto"){return!0===r||"auto"===r&&(!(!Number.isNaN(Number(t))||/[a-z]/i.test(t)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(t))&&Date.parse(t)||function(t){try{new URL(t,t.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(t))?t:`${t}${function(t){let e=JSON.stringify(t),r=new TextEncoder().encode(e),n="";for(let t=0;t<r.length;t++){let e=r[t];n+=s[e>>6&3]+s[e>>4&3]+s[e>>2&3]+s[3&e]}return a+n}(e)}`}Object.fromEntries(Object.entries(s).map(t=>[t[1],+t[0]])),Object.fromEntries(Object.entries(i).map(t=>t.reverse()));var c=`${Object.values(i).map(t=>`\\u{${t.toString(16)}}`).join("")}`,l=RegExp(`[${c}]{4,}`,"gu");function h(t){var e,r;return t&&JSON.parse({cleaned:(e=JSON.stringify(t)).replace(l,""),encoded:(null==(r=e.match(l))?void 0:r[0])||""}.cleaned)}},9699:(t,e,r)=>{"use strict";r.d(e,{I:()=>s});var n=r(4902),i=r(67059),o=Array.isArray;function s(t){return(0,i.T)(function(e){return o(e)?t.apply(void 0,(0,n.fX)([],(0,n.zs)(e))):t(e)}
1)}},10776:(t,e,r)=>{"use strict";function n(t,e,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}r.d(e,{N:()=>n})},11013:(t,e,r)=>{"use strict";r.d(e,{x:()=>s});var n=r(69062),i=r(16023),o=r(95497);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.K)()((0,o.H)(t,(0,i.lI)(t)))}},11357:(t,e,r)=>{"use strict";r.d(e,{H:()=>o,_:()=>i});var n=r(4902);function i(t,e,r,n,i){return new o(t,e,r,n,i)}var o=function(t){function e(e,r,n,i,o,s){var a=t.call(this,e)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(t){try{r(t)}catch(t){e.error(t)}}:t.prototype._next,a._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,a._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,a}return(0,n.C6)(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),r||null==(e=this.onFinalize)||e.call(this)}},e}(r(94586).vU)},11385:(t,e,r)=>{"use strict";r.d(e,{p:()=>o});var n=r(65023),i=r(11357);function o(t,e){return(0,n.N)(function(r,n){var o=0;r.subscribe((0,i._)(n,function(r){return t.call(e,r,o++)&&n.next(r)}))})}},11614:(t,e,r)=>{"use strict";r.d(e,{Q6:()=>t2,MZ:()=>tm,gP:()=>tv,UU:()=>ra});let n=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:n?6e4:12e4},o=function(t){let e={...i,..."string"==typeof t?{url:t}:t};if(e.timeout=function t(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;let r=Number(e);return isNaN(r)?t(i.timeout):{connect:r,socket:r}}(e.timeout),e.query){let{url:t,searchParams:r}=function(t){let e=t.indexOf("?");if(-1===e)return{url:t,searchParams:new URLSearchParams};let r=t.slice(0,e),i=t.slice(e+1);if(!n)return{url:r,searchParams:new URLSearchParams(i)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let o=new URLSearchParams;for(let t of i.split("&")){let[e,r]=t.split("=");e&&o.append(s(e),s(r||""))}return{url:r,searchParams:o}}(e.url);for(let[n,i]of Object.entries(e.query)){if(void 0!==i)if(Array.isArray(i))for(let t of i)r.append(n,t);else r.append(n,i);let o=r.toString();o&&(e.url=`${t}?${o}`)}}return e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e};function s(t){return decodeURIComponent(t.replace(/\+/g," "))}let a=/^https?:\/\//i,u=function(t){if(!a.test(t.url))throw Error(`"${t.url}" is not a valid URL`)},c=["request","response","progress","error","abort"],l=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var h,f,d=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function(){if(f)return h;f=1;var t=function(t){return t.replace(/^\s+|\s+$/g,"")};return h=function(e){if(!e)return{};for(var r=Object.create(null),n=t(e).split("\n"),i=0;i<n.length;i++){var o,s=n[i],a=s.indexOf(":"),u=t(s.slice(0,a)).toLowerCase(),c=t(s.slice(a+1));typeof r[u]>"u"?r[u]=c:(o=r[u],"[object Array]"===Object.prototype.toString.call(o))?r[u].push(c):r[u]=[r[u],c]}return r}}());class p{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#t;#e;#r;#n={};#i;#o={};#s;open(t,e,r){this.#t=t,this.#e=e,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(t,e){this.#n[t]=e}setInit(t,e=!0){this.#o=t,this.#s=e}send(t){let e="arraybuffer"!==this.responseType,r={...this.#o,method:this.#t,headers:this.#n,body:t};"function"==typeof AbortController&&this.#s&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(r.signal=this.#i.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#e,r).then(t=>
1(t.headers.forEach((t,e)=>{this.#r+=`${e}: ${t}\r 2`}),this.status=t.status,this.statusText=t.statusText,this.readyState=3,this.onreadystatechange?.(),e?t.text():t.arrayBuffer())).then(t=>{"string"==typeof t?this.responseText=t:this.response=t,this.readyState=4,this.onreadystatechange?.()}).catch(t=>{"AbortError"!==t.name?this.onerror?.(t):this.onabort?.()})}}let y="function"==typeof XMLHttpRequest?"xhr":"fetch",g="xhr"===y?XMLHttpRequest:p,m=(t,e)=>{let r=t.options,n=t.applyMiddleware("finalizeOptions",r),i={},o=t.applyMiddleware("interceptRequest",void 0,{adapter:y,context:t});if(o){let t=setTimeout(e,0,null,o);return{abort:()=>clearTimeout(t)}}let s=new g;s instanceof p&&"object"==typeof n.fetch&&s.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,u=n.timeout,c=!1,l=!1,h=!1;if(s.onerror=t=>{v(s instanceof p?t instanceof Error?t:Error(`Request error while attempting to reach ${n.url}`,{cause:t}):Error(`Request error while attempting to reach is ${n.url}${t.lengthComputable?`(${t.loaded} of ${t.total} bytes transferred)`:""}`))},s.ontimeout=t=>{v(Error(`Request timeout while attempting to reach ${n.url}${t.lengthComputable?`(${t.loaded} of ${t.total} bytes transferred)`:""}`))},s.onabort=()=>{m(!0),c=!0},s.onreadystatechange=function(){u&&(m(),i.socket=setTimeout(()=>f("ESOCKETTIMEDOUT"),u.socket)),!c&&s&&4===s.readyState&&0!==s.status&&function(){if(!(c||l||h)){if(0===s.status)return v(Error("Unknown XHR error"));m(),l=!0,e(null,{body:s.response||(""===s.responseType||"text"===s.responseType?s.responseText:""),url:n.url,method:n.method,headers:d(s.getAllResponseHeaders()),statusCode:s.status,statusMessage:s.statusText})}}()},s.open(n.method,n.url,!0),s.withCredentials=!!n.withCredentials,a&&s.setRequestHeader)for(let t in a)a.hasOwnProperty(t)&&s.setRequestHeader(t,a[t]);return n.rawBody&&(s.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:n,adapter:y,request:s,context:t}),s.send(n.body||null),u&&(i.connect=setTimeout(()=>f("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,s&&s.abort()}};function f(e){h=!0,s.abort();let r=Error("ESOCKETTIMEDOUT"===e?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=e,t.channels.error.publish(r)}function m(t){(t||c||s&&s.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function v(t){if(l)return;m(!0),l=!0,s=null;let r=t||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,e(r)}};var v,b,w,C,T,E=r(99742),x=r(82909).hp,A={exports:{}};T||(T=1,function(t,e){let r;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(n++,"%c"===t&&(i=n))}),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch{}},e.load=function(){let t;try{t=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!t&&"u">typeof E&&"env"in E&&(t=E.env.DEBUG),t},e.useColors=function(){let t;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch{}}(),r=!1,e.destroy=()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
2CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=(C?w:(C=1,w=function(t){function e(t){let n,i,o,s=null;function a(...t){if(!a.enabled)return;let r=Number(new Date);a.diff=r-(n||r),a.prev=n,a.curr=r,n=r,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let i=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let o=e.formatters[n];if("function"==typeof o){let e=t[i];r=o.call(a,e),t.splice(i,1),i--}return r}),e.formatArgs.call(a,t),(a.log||e.log).apply(a,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=r,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==e.namespaces&&(i=e.namespaces,o=e.enabled(t)),o),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function r(t,r){let n=e(this.namespace+(typeof r>"u"?":":r)+t);return n.log=this.log,n}function n(t,e){let r=0,n=0,i=-1,o=0;for(;r<t.length;)if(n<e.length&&(e[n]===t[r]||"*"===e[n]))"*"===e[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<e.length&&"*"===e[n];)n++;return n===e.length}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){let t=[...e.names,...e.skips.map(t=>"-"+t)].join(",");return e.enable(""),t},e.enable=function(t){for(let r of(e.save(t),e.namespaces=t,e.names=[],e.skips=[],("string"==typeof t?t:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?e.skips.push(r.slice(1)):e.names.push(r)},e.enabled=function(t){for(let r of e.skips)if(n(t,r))return!1;for(let r of e.names)if(n(t,r))return!0;return!1},e.humanize=function(){if(b)return v;b=1;function t(t,e,r,n){return Math.round(t/r)+" "+n+(e>=1.5*r?"s":"")}return v=function(e,r){r=r||{};var n,i,o=typeof e;if("string"===o&&e.length>0){var s=e;if(!((s=String(s)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(a){var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u}}}return}if("number"===o&&isFinite(e))return r.long?(i=Math.abs(e))>=864e5?t(e,i,864e5,"day"):i>=36e5?t(e,i,36e5,"hour"):i>=6e4?t(e,i,6e4,"minute"):i>=1e3?t(e,i,1e3,"second"):e+" ms":(n=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":n>=36e5?Math.round(e/36e5)+"h":n>=6e4?Math.round(e/6e4)+"m":n>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}(),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(r=>{e[r]=t[r]}),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}))(e);let{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}(A,A.exports)),A.exports,Object.prototype.hasOwnProperty;let R=typeof x>"u"?()=>!1:t=>x.isBuffer(t);function S(t){return"[object Object]"===Object.prototype.toString.call(t)}let q=["boolean","string","number"],I={};"u">typeof globalThis?I=globalThis:"u">typeof window?I=window:"u">typeof global?I=global:"u">typeof self&&(I=self);var O=I;let U=(t={})=>{let e=t.implementation||Promise;if(!e)throw Error("`Promise` is not available in global scope, and n
2o implementation was passed");return{onReturn:(r,n)=>new e((e,i)=>{let o=n.options.cancelToken;o&&o.promise.then(t=>{r.abort.publish(t),i(t)}),r.error.subscribe(i),r.response.subscribe(r=>{e(t.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(t){i(t)}},0)})}};class ${__CANCEL__=!0;message;constructor(t){this.message=t}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class j{promise;reason;constructor(t){if("function"!=typeof t)throw TypeError("executor must be a function.");let e=null;this.promise=new Promise(t=>{e=t}),t(t=>{this.reason||(this.reason=new $(t),e(this.reason))})}static source=()=>{let t;return{token:new j(e=>{t=e}),cancel:t}}}U.Cancel=$,U.CancelToken=j,U.isCancel=t=>!(!t||!t?.__CANCEL__);var _=(t,e,r)=>("GET"===r.method||"HEAD"===r.method)&&(t.isNetworkError||!1);function D(t){return 100*Math.pow(2,t)+100*Math.random()}let P=(t={})=>(t=>{let e=t.maxRetries||5,r=t.retryDelay||D,n=t.shouldRetry;return{onError:(t,i)=>{var o;let s=i.options,a=s.maxRetries||e,u=s.retryDelay||r,c=s.shouldRetry||n,l=s.attemptNumber||0;if(null!==(o=s.body)&&"object"==typeof o&&"function"==typeof o.pipe||!c(t,l,s)||l>=a)return t;let h=Object.assign({},i,{options:Object.assign({},s,{attemptNumber:l+1})});return setTimeout(()=>i.channels.request.publish(h),u(l)),null}}})({shouldRetry:_,...t});P.shouldRetry=_;var M=r(92848),k=r(63167),N=r(33491),F=r(41848),L=r(66305),B=r(95497),z=r(83002),H=r(45449),W=r(96356),Y=r(11013),V=r(94146),G=r(28155),X=r(23924),J=r(86641),Q=r(95458),Z=r(16715),K=r(67059),tt=r(19782),te=r(5604),tr=r(4902),tn=r(88505),ti=r(65023),to=r(20463),ts=r(9699),ta=r(95342),tu=r(16023);function tc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,tu.ms)(t);return r?(0,ta.F)(tc.apply(void 0,(0,tr.fX)([],(0,tr.zs)(t))),(0,ts.I)(r)):(0,ti.N)(function(e,r){(0,tn.P)((0,tr.fX)([e],(0,tr.zs)((0,to.K)(t))))(r)})}var tl=r(11385),th=r(98099),tf=r(91609),td=r(46241),tp=r(46512);let ty=/\r\n|[\n\r\u2028\u2029]/;function tg(t,e){let r=0;for(let n=0;n<e.length;n++){let i=e[n].length+1;if(r+i>t)return{line:n+1,column:t-r};r+=i}return{line:e.length,column:e[e.length-1]?.length??0}}class tm extends Error{response;statusCode=400;responseBody;traceId;details;constructor(t,e){let r=tb(t,e);super(r.message),Object.assign(this,r)}}class tv extends Error{response;statusCode=500;responseBody;traceId;details;constructor(t){let e=tb(t);super(e.message),Object.assign(this,e)}}function tb(t,e){var r,n,i;let o=t.body,s={response:t,statusCode:t.statusCode,responseBody:(r=o,-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),traceId:function(t){let e=t?.headers?.traceparent;if(e)return e.split("-")[1]}(t),message:"",details:void 0};if(!(0,te.u4)(o))return s.message=`${tT(t,o)}${tE(s.traceId)}`,s;let a=o.error;if("string"==typeof a&&"string"==typeof o.message)return s.message=`${a} - ${o.message}${tE(s.traceId)}`,s;if("object"!=typeof a||null===a)return"string"==typeof a?s.message=`${a}${tE(s.traceId)}`:"string"==typeof o.message?s.message=`${o.message}${tE(s.traceId)}`:s.message=`${tT(t,o)}${tE(s.traceId)}`,s;if("type"in(n=a)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=a)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let t=a.items||[],e=t.slice(0,5).map(t=>t.error?.description).filter(Boolean),r=e.length?`: 3- ${e.join(` 4- `)}`:"";return t.length>5&&(r+=` 5...and ${t.length-5} more`),s.message=`${a.description}${tE(s.traceId)}${r}`,s.details=o.error,s}return tw(a)?(s.message=tC(a,e?.options?.query?.tag,s.traceId),s.details=o.error):"description"in a&&"string"==typeof a.description?(s.message=`${a.description}${tE(s.traceId)}`,s.details=a):s.message=`${tT(t,o)}${tE(s.traceId)}`,s}function tw(t){return(0,te.u4)(t)&&"queryParseError"===t.type&&"string"==typeof t.query&&"number"==typeof t.start&&"number"==typeof t.end}function tC(t,e,r){let{query:n,start:i,end:o,description:s}=t,a=r?` 6(traceId: ${r})`:"";if(!n||typeof i>"u")return`GROQ query parse error: ${s}${a}`;let u=e?` 7 8Tag: ${e}`:"";return`GROQ query parse error: 9${function(t,e,r){let n=t.split(ty),{start:i,end:o,markerLines:s}=function(t,e){let r={...t.start},n={...r,...t.end},i=r.line??-1,o=r.column??0,s=n.line,a=n.column,u=Math.max(i-3,0),c=Math.min(e.length,s+3);-1===i&&(u=0),-1===s&&(c=e.length);let l=s-i,h={};if(l)for(let t=0;t<=l;t++){let r=t+i;if(o)if(0===t){let t=e[r-1].length;h[r]=[o,t-o+1]}else if(t===l)h[r]=[0,a];else{let n=e[r-t].length;h[r]=[0,n]}else h[r]=!0}else o===a?o?h[i]=[o,0]:h[i]=!0:h[i]=[o,a-o];return{start:u,end:c,markerLines:h}}({start:tg(e.start,n),end:e.end?tg(e.end,n):void 0},n),a=`${o}`.length;return t.split(ty,o).slice(i,o).map((t,e)=>{let n=i+1+e,o=` ${` ${n}`.slice(-a)} |`,u=s[n],c=!s[n+1];if(!u)return` ${o}${t.length>0?` ${t}`:""}`;let l="";if(Array.isArray(u)){let e=t.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),n=u[1]||1;l=` 10 `+o.replace(/\d/g," ")+" "+e+"^".repeat(n),c&&r&&(l+=" "+r)}return">"+o+(t.length>0?` ${t}`:"")+l}).join(` 11`)}(n,{start:i,end:o},s)}${u}${a}`}function tT(t,e){var r,n;let i="string"==typeof e?` (${n=100,(r=e).length>100?`${r.slice(0,n)}\u2026`:r})`:"",o=t.statusMessage?` ${t.statusMessage}`:"";return`${t.method}-request to ${t.url} resulted in HTTP ${t.statusCode}${o}${i}`}function tE(t){return t?` (traceId: ${t})`:""}
11class tx extends Error{projectId;addOriginUrl;constructor({projectId:t,credentials:e}={}){if(super("CorsOriginError"),this.name="CorsOriginError",this.projectId=t,t&&"u">typeof location){let r=new URL(`https://sanity.io/manage/project/${t}/api`),{origin:n}=location;r.searchParams.set("cors","add"),r.searchParams.set("origin",n),e&&r.searchParams.set("credentials",""),this.addOriginUrl=r,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${r}`}else t?this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${t}/api`:this.message="The current origin is not allowed to connect to the Live Content API."}}let tA={onResponse:(t,e)=>{if(t.statusCode>=500)throw new tv(t);if(t.statusCode>=400)throw new tm(t,e);return t}};function tR(t,e={}){return((t=[],e=m)=>(function t(e,r){let n=[],i=l.reduce((t,e)=>(t[e]=t[e]||[],t),{processOptions:[o],validateOptions:[u]});function s(t){let e,n="object"==typeof t&&t.callSiteStack?t.callSiteStack:void 0,o=n?void 0:Error(),s=c.reduce((t,e)=>(t[e]=function(){let t=Object.create(null),e=0;return{publish:function(e){for(let r in t)t[r](e)},subscribe:function(r){let n=e++;return t[n]=r,function(){delete t[n]}}}}(),t),{}),a=function(t,e,...r){let n="onError"===t,o=e;for(let e=0;e<i[t].length&&(o=(0,i[t][e])(o,...r),!n||o);e++);return o},u=a("processOptions",t);a("validateOptions",u);let l={options:u,channels:s,applyMiddleware:a},h=s.request.subscribe(t=>{e=r(t,(e,r)=>((t,e,r)=>{let i=t,u=e;if(!i)try{u=a("onResponse",e,r)}catch(t){u=null,i=t}if(i=i&&a("onError",i,r)){if(i instanceof Error){let t=n?.stack||o?.stack;if("string"==typeof t){let e=t.split("\n").slice(n?1:2);e.length>0&&(i.stack+="\n"+e.join("\n"))}}s.error.publish(i)}else u&&s.response.publish(u)})(e,r,t))});s.abort.subscribe(()=>{h(),e&&e.abort()});let f=a("onReturn",s,l);return f===s&&s.request.publish(l),f}return s.use=function(t){if(!t)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof t)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return l.forEach(e=>{t[e]&&i[e].push(t[e])}),n.push(t),s},s.clone=()=>t(n,r),e.forEach(s.use),s})(t,e))([P({shouldRetry:tS}),...t,function(t={}){let e={},r=e=>void 0!==t.ignoreWarnings&&(Array.isArray(t.ignoreWarnings)?t.ignoreWarnings:[t.ignoreWarnings]).some(t=>"string"==typeof t?e.includes(t):t instanceof RegExp&&t.test(e));return{onResponse:t=>{let n=t.headers["x-sanity-warning"];for(let t of Array.isArray(n)?n:[n])!t||e[t]||r(t)||(e[t]=!0,console.warn(t));return t}}}(e),{processOptions:t=>{let e=t.body;return!e||"function"==typeof e.pipe||R(e)||-1===q.indexOf(typeof e)&&!Array.isArray(e)&&!function(t){if(!1===S(t))return!1;let e=t.constructor;if(void 0===e)return!0;let r=e.prototype;return!1!==S(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(e)?t:Object.assign({},t,{body:JSON.stringify(t.body),headers:Object.assign({},t.headers,{"Content-Type":"application/json"})})}},{onResponse:t=>{let e=t.headers["content-type"]||"",r=-1!==e.indexOf("application/json");return t.body&&e&&r?Object.assign({},t,{body:function(t){try{return JSON.parse(t)}catch(t){throw t.message=`Failed to parsed response body as JSON: ${t.message}`,t}}(t.body)}):t},processOptions:t=>Object.assign({},t,{headers:Object.assign({Accept:"application/json"},t.headers)})},{onRequest:t=>{if("xhr"!==t.adapter)return;let e=t.request,r=t.context;function n(t){return e=>{let n=e.lengthComputable?e.loaded/e.total*100:-1;r.channels.progress.publish({stage:t,percent:n,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}},tA,function(t={}){let e=t.implementation||O.Observable;if(!e)throw Error("`Observable` is not available in global scope, and n
11o implementation was passed");return{onReturn:(t,r)=>new e(e=>(t.error.subscribe(t=>e.error(t)),t.progress.subscribe(t=>e.next(Object.assign({type:"progress"},t))),t.response.subscribe(t=>{e.next(Object.assign({type:"response"},t)),e.complete()}),t.request.publish(r),()=>t.abort.publish()))}}({implementation:M.c})])}function tS(t,e,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),o=t.response&&(429===t.response.statusCode||502===t.response.statusCode||503===t.response.statusCode);return(!!n||!!i)&&!!o||P.shouldRetry(t,e,r)}function tq(t){return"https://www.sanity.io/help/"+t}let tI=["image","file"],tO=["before","after","replace"],tU=t=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},t$=(t,e)=>{if(null===e||"object"!=typeof e||Array.isArray(e))throw Error(`${t}() takes an object of properties`)},tj=(t,e)=>{if("string"!=typeof e||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(e)||e.includes(".."))throw Error(`${t}(): "${e}" is not a valid document ID`)},t_=(t,e)=>{if(!e._id)throw Error(`${t}() requires that the document contains an ID ("_id" property)`);tj(t,e._id)},tD=(t,e)=>{if(!e._type)throw Error(`\`${t}()\` requires that the document contains a type (\`_type\` property)`);((t,e)=>{if("string"!=typeof e)throw Error(`\`${t}()\`: \`${e}\` is not a valid document type`)})(t,e._type)},tP=t=>{if(t.dataset)return t.dataset;let e=t.resource;if(e&&"dataset"===e.type){let t=e.id.split(".");if(2!==t.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return t[1]}throw Error("`dataset` must be provided to perform queries")},tM=t=>{if("string"!=typeof t||!/^[a-z0-9._-]{1,75}$/i.test(t))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t},tk=t=>{let e=t.resource;if(!e)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=e;switch(r){case"dataset":if(2!==n.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${r.toString()}`)}},tN=(t,e)=>{if(e.resource)throw Error(`\`${t}\` does not support resource-based operations`)},tF=t=>(function(t){let e=!1,r;return(...n)=>(e||(r=t(...n),e=!0),r)})((...e)=>console.warn(t.join(" "),...e)),tL=tF(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),tB=tF(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),tz=tF(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),tH=tF(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),tW=tF(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${tq("js-client-browser-token")} for more information and how to hide this warning.`]),tY=tF(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),tV=tF(["Using the Sanity client without specifying an API version is deprecated.",`See ${tq("js-client-api-version")}`]),tG=(tF(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),tF(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),tX=tF(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),tJ={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},tQ=["localhost","127.0.0.1","0.0.0.0"];function tZ(t){if(Array.isArray(t)&&t.length>1&&t.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let tK=(t,e)=>{let r,n={...e,...t,stega:{..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||tJ.stega,..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||{}}};n.apiVersion||tV();let i={...tJ,...n};i["~experimental_resource"]&&!i.resource&&(tX(),i.resource=i["~experimental_resource"]);let o=i.resource,s=i.useProjectHostname&&!o;if(typeof Promise>"u"){let t=tq("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${t}`)}if(s&&!i.projectId)throw Error("Configuration must contain `projectId`");if(o&&tk(i),"u">typeof i.perspective&&tZ(i.perspective),"encodeSourceMap"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
11if("boolean"!=typeof i.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${i.stega.enabled}`);if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${i.stega.studioUrl}`);let a="u">typeof window&&window.location&&window.location.hostname,u=a&&(r=window.location.hostname,-1!==tQ.indexOf(r)),c=!!i.token;i.withCredentials&&c&&(tY(),i.withCredentials=!1),a&&u&&c&&!0!==i.ignoreBrowserTokenWarning?tW():typeof i.useCdn>"u"&&tB(),s&&(t=>{if(!/^[-a-z0-9]+$/i.test(t))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&tU(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?tM(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===tJ.apiHost,!0===i.useCdn&&i.withCredentials&&tL(),i.useCdn=!1!==i.useCdn&&!i.withCredentials,function(t){if("1"===t||"X"===t)return;let e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(i.apiVersion);let l=i.apiHost.split("://",2),h=l[0],f=l[1],d=i.isDefaultApi?"apicdn.sanity.io":f;return s?(i.url=`${h}://${i.projectId}.${f}/v${i.apiVersion}`,i.cdnUrl=`${h}://${i.projectId}.${d}/v${i.apiVersion}
11`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class t0 extends Error{name="ConnectionFailedError";status;constructor(t,e={}){let{status:r,...n}=e;super(t,n),this.status=r}}class t1 extends Error{name="DisconnectError";reason;constructor(t,e,r={}){super(t,r),this.reason=e}}class t2 extends Error{name="ChannelError";data;constructor(t,e){super(t),this.data=e}}class t3 extends Error{name="MessageError";data;constructor(t,e,r={}){super(t,r),this.data=e}}class t6 extends Error{name="MessageParseError"}let t5=["channelError","disconnect"];function t4(t,e){return(0,k.v)(()=>{let e=t();return(0,N.A)(e)?e:(0,F.of)(e)}).pipe((0,L.Z)(t=>{var r,n;return r=t,n=e,new M.c(t=>{let e=n.includes("open"),i=n.includes("reconnect");function o(e){if("data"in e){let[r,n]=t8(e);t.error(r?new t6("Unable to parse EventSource error message",{cause:n}):new t3((n?.data).message,n));return}let n=e.status,o="number"==typeof n?n:void 0;if(void 0!==o)return void t.error(new t0("EventSource connection failed",{status:o}));r.readyState===r.CLOSED?t.error(new t0("EventSource connection failed")):i&&t.next({type:"reconnect"})}function s(){t.next({type:"open"})}function a(e){let[n,i]=t8(e);if(n)return void t.error(new t6("Unable to parse EventSource message",{cause:n}));if("channelError"===e.type){let e=new URL(r.url).searchParams.get("tag");t.error(new t2(function(t,e){let r=t.error;return r?tw(r)?tC(r,e):r.description?r.description:"string"==typeof r?r:JSON.stringify(r,null,2):t.message||"Unknown listener error"}(i?.data,e),i.data));return}if("disconnect"===e.type)return void t.error(new t1(`Server disconnected client: ${i.data?.reason||"unknown error"}`));t.next({type:e.type,id:e.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",o),e&&r.addEventListener("open",s);let u=[...new Set([...t5,...n])].filter(t=>"error"!==t&&"open"!==t&&"reconnect"!==t);return u.forEach(t=>r.addEventListener(t,a)),()=>{r.removeEventListener("error",o),e&&r.removeEventListener("open",s),u.forEach(t=>r.removeEventListener(t,a)),r.close()}})}))}function t8(t){try{let e="string"==typeof t.data&&JSON.parse(t.data);return[null,{type:t.type,id:t.lastEventId,...!function(t){for(let e in t)return!1;return!0}(e)?{data:e}:{}}]}catch(t){return[t,null]}}function t9(t){if("string"==typeof t)return{id:t};if(Array.isArray(t))return{query:"*[_id in $ids]",params:{ids:t}};if("object"==typeof t&&null!==t&&"query"in t&&"string"==typeof t.query)return"params"in t&&"object"==typeof t.params&&null!==t.params?{query:t.query,params:t.params}:{query:t.query};let e=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 12`);throw Error(`Unknown selection - must be one of: 13 14${e}`)}class t7{selection;operations;constructor(t,e={}){this.selection=t,this.operations=e}set(t){return this._assign("set",t)}setIfMissing(t){return this._assign("setIfMissing",t)}diffMatchPatch(t){return t$("diffMatchPatch",t),this._assign("diffMatchPatch",t)}unset(t){if(!Array.isArray(t))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:t}),this}inc(t){return this._assign("inc",t)}dec(t){return this._assign("dec",t)}insert(t,e,r){return((t,e,r)=>{let n="insert(at, selector, items)";if(-1===tO.indexOf(t)){let t=tO.map(t=>`"${t}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${t}`)}if("string"!=typeof e)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)})(t,e,r),this._assign("insert",{[t]:e,items:r})}append(t,e){return this.insert("after",`${t}[-1]`,e)}prepend(t,e){return this.insert("before",`${t}[0]`,e)}splice(t,e,r,n){let i=e<0?e-1:e,o=typeof r>"u"||-1===r?-1:Math.max(0,e+r),s=`${t}[${i}:${i<0&&o>=0?"":o}]`;return this.insert("replace",s,n||[])}ifRevisionId(t){return this.operations.ifRevisionID=t,this}serialize(){return{...t9(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(t,e,r=!0){return t$(t,e),this.operations=Object.assign({},this.operations,{[t]:Object.assign({},r&&this.operations[t]||{},e)}),this}_set(t,e){return this._assign(t,e,!1)}}class et extends t7{#a;constructor(t,e,r){super(t,e),this.#a=r}clone(){return new et(this.selection,{...this.operations},this.#a)}commit(t){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let e=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return this.#a.mutate({patch:this.serialize()},e)}}class ee extends t7{#a;constructor(t,e,r){super(t,e),this.#a=r}clone(){return new ee(this.selection,{...this.operations},this.#a)}commit(t){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let e=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return this.#a.mutate({patch:this.serialize()},e)}}let er={returnDocuments:!1};class en{operations;trxId;constructor(t=[],e){this.operations=t,this.trxId=e}create(t){return t$("create",t),this._add({create:t})}createIfNotExists(t){let e="createIfNotExists";return t$(e,t),t_(e,t),this._add({[e]:t})}createOrReplace(t){let e="createOrReplace";return t$(e,t),t_(e,t),this._add({[e]:t})}delete(t){return tj("delete",t),this._add({delete:{id:t}})}transactionId(t){return t?(this.trxId=t,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(t){return this.operations.push(t),this}}class ei extends en{#a;constructor(t,e,r){super(t,r),this.#a=e}clone(){return new ei([...this.operations],this.#a,this.trxId)}commit(t){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},er,t||{}))}patch(t,e){let r="function"==typeof e,n="string"!=typeof t&&t instanceof ee,i="object"==typeof t&&("query"in t||"id"in t);if(n)return this._add({patch:t.serialize()});if(r){let r=e(new ee(t,{},this.#a));if(!(r instanceof ee))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new ee(t,e||{},this.#a);return this._add({patch:r.serialize()})}return this._add({patch:{id:t,...e}})}}class eo extends en{#a;constructor(t,e,r){super(t,r),this.#a=e}clone(){return new eo([...this.operations],this.#a,this.trxId)}commit(t){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},er,t||{}))}patch(t,e){let r="function"==typeof e;if("string"!=typeof t&&t instanceof et)return this._add({patch:t.serialize()});if(r){let r=e(new et(t,{},this.#a));if(!(r instanceof et))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:t,...e}})}}let es=({query:t,params:e={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:o,returnQuery:s,...a}=r;for(let[r,o]of(i&&n.append("tag",i),n.append("query",t),Object.entries(e)))void 0!==o&&n.append(`$${r}`,JSON.stringify(o));for(let[t,e]of Object.entries(a))e&&n.append(t,`${e}`);return!1===s&&n.append("returnQuery","false"),!1===o&&n.append("includeMutations","fal
14se"),`?${n}`},ea=t=>"response"===t.type,eu=t=>t.body;function ec(t,e,n,i,o={},s={}){let a="stega"in s?{...n||{},..."boolean"==typeof s.stega?{enabled:s.stega}:s.stega||{}}:n,u=a.enabled?(0,te.Q)(o):o,c=!1===s.filterResponse?t=>t:t=>t.result,{cache:l,next:h,...f}={useAbortSignal:"u">typeof s.signal,resultSourceMap:a.enabled?"withKeyArraySelector":s.resultSourceMap,...s,returnQuery:!1===s.filterResponse&&!1!==s.returnQuery},d=ex(t,e,"query",{query:i,params:u},"u">typeof l||"u">typeof h?{...f,fetch:{cache:l,next:h}}:f);return a.enabled?d.pipe(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tc.apply(void 0,(0,tr.fX)([],(0,tr.zs)(t)))}((0,B.H)(r.e(8570).then(r.bind(r,98570)).then(function(t){return t.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:t})=>t))),(0,K.T)(([t,e])=>{let r=e(t.result,t.resultSourceMap,a);return c({...t,result:r})})):d.pipe((0,K.T)(c))}function el(t,e,r,n={}){let i={uri:eO(t,"doc",(()=>{if(!n.releaseId)return r;let t=(0,td._S)(r);if(!t){if((0,td.R8)(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return(0,td.ct)(r,n.releaseId)}if(t!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${t}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})()),json:!0,tag:n.tag,signal:n.signal,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return eq(t,e,i).pipe((0,tl.p)(ea),(0,K.T)(t=>{let e=t.body.documents;return e?n.includeAllVersions?e:e[0]:n.includeAllVersions?[]:void 0}))}function eh(t,e,r,n={}){let i={uri:eO(t,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return eq(t,e,i).pipe((0,tl.p)(ea),(0,K.T)(t=>{let e,n,i=(e=t.body.documents||[],n=t=>t._id,e.reduce((t,e)=>(t[n(e)]=e,t),Object.create(null)));return r.map(t=>i[t]||null)}))}function ef(t,e,r,n={}){if(0===r.length)return(0,F.of)(new Set);let i=[];for(let t=0;t<r.length;t+=100)i.push(r.slice(t,t+100));return(0,B.H)(i).pipe((0,th.H)(r=>eq(t,e,{uri:eO(t,"doc",r.map(encodeURIComponent).join(",")),tag:n.tag,signal:n.signal,query:{excludeContent:!0}}).pipe((0,tl.p)(ea),(0,K.T)(t=>{let e=new Set;for(let r of t.body.omitted||[])"existence"===r.reason&&e.add(r.id);return new Set(r.filter(t=>!e.has(t)))}))),(0,tf.T)((t,e)=>{for(let r of e)t.add(r);return t},new Set))}function ed(t,e,r,n={}){return ex(t,e,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function ep(t,e,r,n){return t_("createIfNotExists",r),eA(t,e,r,"createIfNotExists",n)}function ey(t,e,r,n){return t_("createOrReplace",r),eA(t,e,r,"createOrReplace",n)}function eg(t,e,r,n,i){return t_("createVersion",r),tD("createVersion",r),tG(),eE(t,e,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function em(t,e,r,n,i,o,s){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return tj("createVersion",n),tj("createVersion",r),eE(t,e,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?(0,td.ct)(r,i):(0,td.T4)(r),ifBaseRevisionId:o},s)}function ev(t,e,r,n){return ex(t,e,"mutate",{mutations:[{delete:t9(r)}]},n)}function eb(t,e,r,n=!1,i){return eE(t,e,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function ew(t,e,r,n){return t_("replaceVersion",r),tD("replaceVersion",r),eE(t,e,{actionType:"sanity.action.document.version.replace",document:r},n)}function eC(t,e,r,n,i){return eE(t,e,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function eT(t,e,r,n){let i;return ex(t,e,"mutate",{mutations:Array.isArray(i=r instanceof ee||r instanceof et?{patch:r.serialize()}:r instanceof ei||r instanceof eo?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function eE(t,e,r,n){let i=Array.isArray(r)?r:[r],o=n&&n.transactionId||void 0;return ex(t,e,"actions",{actions:i,transactionId:o,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function ex(t,e,r,n,i={}){let o="mutate"===r,s="actions"===r,a=o||s?"":es(n),u=!o&&!s&&a.length<11264,c=u?a:"",l=i.returnFirst,{timeout:h,token:f,tag:d,headers:p,returnQuery:y,lastLiveEventId:g,cacheMode:m}=i,v={method:u?"GET":"POST",uri:eO(t,r,c),json:!0,body:u?void 0:n,query:o&&((t={})=>{let e,r;return{dryRun:t.dryRun,returnIds:!0,returnDocuments:(e=t.returnDocuments,r=!0,!1===e?void 0:typeof e>"u"?r:e),visibility:t.visibility||"sync",autoGenerateArrayKeys:t.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:t.skipCrossDatasetReferenceValidation}})(i),timeout:h,headers:p,token:f,tag:d,returnQuery:y,perspective:i.perspective,variant:i.variant,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(g)?g[0]:g,cacheMode:m,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return eq(t,e,v).pipe((0,tl.p)(ea),(0,K.T)(eu),(0,K.T)(t=>{if(!o)return t;let e=t.results||[];if(i.returnDocuments)return l?e[0]&&e[0].document:e.map(t=>t.document);let r=l?e[0]&&e[0].id:e.map(t=>
14t.id);return{transactionId:t.transactionId,results:e,[l?"documentId":"documentIds"]:r}}))}function eA(t,e,r,n,i={}){return ex(t,e,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let eR=t=>{let e=t.config();return void 0!==e.dataset&&void 0!==e.projectId||void 0!==e.resource},eS=(t,e)=>eR(t)&&e.startsWith(eO(t,"query"));function eq(t,e,r){var n;let i=Error(),o=r.url||r.uri,s=t.config(),a=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(o.startsWith("/data/")||eS(t,o)||eR(t)&&o.startsWith(eO(t,"mutate"))||eR(t)&&o.startsWith(eO(t,"doc",""))||eR(t)&&o.startsWith(eO(t,"listen"))||eR(t)&&o.startsWith(eO(t,"history",""))):r.canUseCdn,u=(r.useCdn??s.useCdn)&&a,c=r.tag&&s.requestTagPrefix?[s.requestTagPrefix,r.tag].join("."):r.tag||s.requestTagPrefix;if(c&&null!==r.tag&&(r.query={tag:tM(c),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&eS(t,o)){let t=r.resultSourceMap??s.resultSourceMap;void 0!==t&&!1!==t&&(r.query={resultSourceMap:t,...r.query});let e=r.perspective||s.perspective;"u">typeof e&&("previewDrafts"===e&&tH(),tZ(e),r.query={perspective:Array.isArray(e)?e.join(","):e,...r.query},(Array.isArray(e)&&e.length>0||"previewDrafts"===e||"drafts"===e)&&u&&(u=!1,tz()));let n=r.variant||s.variant;"string"==typeof n&&(r.query={variant:n,...r.query}),"object"==typeof n&&(r.query={variantCondition:Object.entries(n).map(([t,e])=>`${t}:${e}`).toSorted(),...r.query}),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),u&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let l=function(t,e={}){let r={};t.headers&&Object.assign(r,t.headers);let n=e.token||t.token;n&&(r.Authorization=`Bearer ${n}`),e.useGlobalApi||t.useProjectHostname||!t.projectId||(r["X-Sanity-Project-ID"]=t.projectId);let i=!!(typeof e.withCredentials>"u"?t.withCredentials:e.withCredentials),o=typeof e.timeout>"u"?t.timeout:e.timeout;return Object.assign({},e,{headers:Object.assign({},r,e.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:e.proxy||t.proxy,json:!0,withCredentials:i,fetch:"object"==typeof e.fetch&&"object"==typeof t.fetch?{...t.fetch,...e.fetch}:e.fetch||t.fetch})}(s,Object.assign({},r,{url:eU(t,o,u),callSiteStack:i})),h=new M.c(t=>e(l,s.requester).subscribe(t));return r.signal?h.pipe((n=r.signal,t=>new M.c(e=>{let r=()=>e.error(function(t){if(e$)return new DOMException(t?.reason??"The operation was aborted.","AbortError");let e=Error(t?.reason??"The operation was aborted.");return e.name="AbortError",e}(n));if(n&&n.aborted)return void r();let i=t.subscribe(e);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):h}function eI(t,e,r){return eq(t,e,r).pipe((0,tl.p)(t=>"response"===t.type),(0,K.T)(t=>t.body))}function eO(t,e,r){let n=t.config();if(n.resource){tk(n);let t=ej(n),i=void 0!==r?`${e}/${r}`:e;return`${t}/${i}`.replace(/\/($|\?)/,"$1")}let i=tP(n),o=`/${e}/${i}`;return`/data${void 0!==r?`${o}/${r}`:o}`.replace(/\/($|\?)/,"$1")}function eU(t,e,r=!1){let{url:n,cdnUrl:i}=t.config();return`${r?i:n}/${e.replace(/^\//,"")}`}let e$=!!globalThis.DOMException,ej=t=>{let e=t.resource;if(!e)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=e;switch(r){case"dataset":{let t=n.split(".");if(2!==t.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${t[0]}/datasets/${t[1]}`}case"canvas":return`/canvases/${n}`;case"media-library":return`/media-libraries/${n}`;case"dashboard":return`/dashboards/${n}`;default:throw Error(`Unsupported resource type: ${r.toString()}`)}};function e_(t,e,r){let n=tP(t.config());return eI(t,e,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function eD(t,e,r){let n=tP(t.config());return eI(t,e,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function eP(t,e,r){let n=tP(t.config());return eI(t,e,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class eM{#a;#u;constructor(t,e){this.#a=t,this.#u=e}generate(t){return e_(this.#a,this.#u,t)}transform(t){return eD(this.#a,this.#u,t)}translate(t){return eP(this.#a,this.#u,t)}}class ek{#a;#u;
14constructor(t,e){this.#a=t,this.#u=e}generate(t){return(0,z.s)(e_(this.#a,this.#u,t))}transform(t){return(0,z.s)(eD(this.#a,this.#u,t))}translate(t){return(0,z.s)(eP(this.#a,this.#u,t))}prompt(t){return(0,z.s)(function(t,e,r){let n=tP(t.config());return eI(t,e,{method:"POST",uri:`/agent/action/prompt/${n}`,body:r})}(this.#a,this.#u,t))}patch(t){return(0,z.s)(function(t,e,r){let n=tP(t.config());return eI(t,e,{method:"POST",uri:`/agent/action/patch/${n}`,body:r})}(this.#a,this.#u,t))}}class eN{#a;#u;constructor(t,e){this.#a=t,this.#u=e}upload(t,e,r){return eL(this.#a,this.#u,t,e,r)}}class eF{#a;#u;constructor(t,e){this.#a=t,this.#u=e}upload(t,e,r){let n=eL(this.#a,this.#u,t,e,r);return(0,z.s)(n.pipe((0,tl.p)(t=>"response"===t.type),(0,K.T)(t=>t.body.document)))}}function eL(t,e,r,n,i={}){var o,s;if(-1===tI.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${tI.join(", ")}`);let a=i.extract||void 0;a&&!a.length&&(a=["none"]);let u=t.config(),c=(o=i,s=n,!(typeof File>"u")&&s instanceof File?Object.assign({filename:!1===o.preserveFilename?void 0:s.name,contentType:s.type},o):o),{tag:l,label:h,title:f,description:d,creditLine:p,filename:y,source:g}=c,m=u.resource?.type==="media-library",v=m?{title:f,filename:y}:{label:h,title:f,description:d,filename:y,meta:a,creditLine:p};return g&&!m&&(v.sourceId=g.id,v.sourceName=g.name,v.sourceUrl=g.url),eq(t,e,{tag:l,method:"POST",timeout:c.timeout||0,uri:function(t,e){let r="image"===e?"images":"files",n=t.resource;if(n){let{type:t,id:e}=n;switch(t){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${e}/assets/${r}`;case"media-library":return`/media-libraries/${e}/upload`;case"dashboard":return`/dashboards/${e}/assets/${r}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}}let i=tP(t);return`assets/${r}/${i}`}(u,r),headers:c.contentType?{"Content-Type":c.contentType}:{},query:v,body:n})}let eB=(0,k.v)(()=>r.e(258).then(r.bind(r,90258))).pipe((0,K.T)(({default:t})=>t),(0,H.t)(1)),ez=new Set([408,429]);function eH(){return function(t){return t.pipe((0,W.W)((t,e)=>t instanceof t0&&("number"!=typeof t.status||t.status<400||t.status>=500||ez.has(t.status))?(0,Y.x)((0,F.of)({type:"reconnect"}),(0,V.O)(1e3).pipe((0,L.Z)(()=>e))):(0,G.$)(()=>t)))}}let eW=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],eY={includeResult:!0};function eV(t,e,r={}){let{url:n,token:i,withCredentials:o,requestTagPrefix:s,headers:a}=this.config(),u=r.tag&&s?[s,r.tag].join("."):r.tag,c={...Object.keys(eY).concat(Object.keys(r)).reduce((t,e)=>(t[e]=typeof r[e]>"u"?eY[e]:r[e],t),{}),tag:u},l=es({query:t,params:e,options:{tag:u,...eW.reduce((t,e)=>(typeof c[e]>"u"||(t[e]=c[e]),t),{})}}),h=`${n}${eO(this,"listen",l)}`;if(h.length>14800)return(0,G.$)(()=>Error("Query too large for listener"));let f=c.events?c.events:["mutation"],d={};return o&&(d.withCredentials=!0),(i||a)&&(d.headers={},i&&(d.headers.Authorization=`Bearer ${i}`),a&&Object.assign(d.headers,a)),t4(()=>(typeof EventSource>"u"||d.headers?eB:(0,F.of)(EventSource)).pipe((0,K.T)(t=>new t(h,d))),f).pipe(eH(),(0,tl.p)(t=>f.includes(t.type)),(0,K.T)(t=>({type:t.type,..."data"in t?t.data:{}})))}let eG="2021-03-25";class eX{#a;constructor(t){this.#a=t}events({includeDrafts:t=!1,tag:e,waitFor:r}={}){var n,i,o,s,a;let{projectId:u,apiVersion:c,token:l,withCredentials:h,requestTagPrefix:f,headers:d}=this.#a.config(),p=c.replace(/^v/,"");if("X"!==p&&p<eG)throw Error(`The live events API requires API version ${eG} or later. The current API version is ${p}. Please update your API version to use this feature.`);if(t&&!l&&!h)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let y=eO(this.#a,"live/events"),g=new URL(this.#a.getUrl(y,!1)),m=e&&f?[f,e].join("."):e;m&&g.searchParams.set("tag",m),t&&g.searchParams.set("includeDrafts","true"),r&&g.searchParams.set("waitFor",r);let v={};t&&h&&(v.withCredentials=!0),(t&&l||d)&&(v.headers={},t&&l&&(v.headers.Authorization=`Bearer ${l}`),d&&Object.assign(v.headers,d));let b=`${g.href}::${JSON.stringify(v)}`,w=eJ.get(b);if(w)return w;let C=t4(()=>(typeof EventSource>"u"||v.headers?eB:(0,F.of)(EventSource)).pipe((0,K.T)(t=>new t(g.href,v))),["message","restart","welcome","reconnect","goaway"]),T=(i=new URL(this.#a.getUrl("/check/cors",!1)),o=u,s=!0===v.withCredentials,new M.c(t=>{let e=new AbortController,{signal:r}=e;return fetch(i,{method:"GET",mode:"cors",credentials:"omit",signal:r}).then(t=>{if(!(r.aborted||!t.ok))return t.json()}).then(e=>{if(!r.aborted){if(s&&e?.result?.withCredentials===!1)return void t.error(new tx({projectId:o,credentials:!0}));if(e?.result?.allowed===!1)return void t.error(new tx({projectId:o,credentials:s}));t.next(),t.complete()}}).catch(()=>{r.aborted||t.closed||(t.next(),t.complete())}),()=>e.abort()})),E=C.pipe(eH(),(0,L.Z)(t=>"reconnect"===t.type?T.pipe((0,L.Z)(()=>(0,F.of)(t))):(0,F.of)(t)),(0,W.W)(t=>t instanceof tx?(0,G.$)(()=>t):T.pipe((0,L.Z)(()=>{throw t}))),(0,K.T)(t=>{if("message"===t.type){let{data:e,...r}=t;return{...r,tags:e.tags}}return t})).pipe((0,J.j)(()=>eJ.delete(b)),(a="function"==typeof(n={predicate:t=>"welcome"===t.type})?{predicate:n,...void 0}:n,t=>{let e,r=!1,{predicate:n,...i}=a,o=t.pipe((0,X.M)(t=>{a.predicate(t)&&(r=!0,e=t)}),(0,J.j)(()=>{r=!1,e=void 0}),(0,Q.u)(i)),s=new M.c(t=>{r&&t.next(e),t.complete()});return(0,Z.h)(o,s)}));return eJ.set(b,E),E}}let eJ=new Map;class eQ{#a;#u;
14constructor(t,e){this.#a=t,this.#u=e}create(t,e){return e0(this.#a,this.#u,"PUT",t,e)}edit(t,e){return e0(this.#a,this.#u,"PATCH",t,e)}delete(t){return e0(this.#a,this.#u,"DELETE",t)}list(){tN("dataset",this.#a.config());let t=this.#a.config(),e=t.projectId,r="/datasets";return!1===t.useProjectHostname&&(r=`/projects/${e}/datasets`),eI(this.#a,this.#u,{uri:r,tag:null})}getEmbeddingsSettings(t){return tN("dataset",this.#a.config()),tU(t),eI(this.#a,this.#u,{uri:eK(this.#a,t),tag:null})}editEmbeddingsSettings(t,e){return tN("dataset",this.#a.config()),tU(t),eI(this.#a,this.#u,{method:"PUT",uri:eK(this.#a,t),body:e,tag:null})}}class eZ{#a;#u;constructor(t,e){this.#a=t,this.#u=e}create(t,e){return tN("dataset",this.#a.config()),(0,z.s)(e0(this.#a,this.#u,"PUT",t,e))}edit(t,e){return tN("dataset",this.#a.config()),(0,z.s)(e0(this.#a,this.#u,"PATCH",t,e))}delete(t){return tN("dataset",this.#a.config()),(0,z.s)(e0(this.#a,this.#u,"DELETE",t))}list(){tN("dataset",this.#a.config());let t=this.#a.config(),e=t.projectId,r="/datasets";return!1===t.useProjectHostname&&(r=`/projects/${e}/datasets`),(0,z.s)(eI(this.#a,this.#u,{uri:r,tag:null}))}getEmbeddingsSettings(t){return tN("dataset",this.#a.config()),tU(t),(0,z.s)(eI(this.#a,this.#u,{uri:eK(this.#a,t),tag:null}))}editEmbeddingsSettings(t,e){return tN("dataset",this.#a.config()),tU(t),(0,z.s)(eI(this.#a,this.#u,{method:"PUT",uri:eK(this.#a,t),body:e,tag:null}))}}function eK(t,e){let r=t.config();return!1===r.useProjectHostname?`/projects/${r.projectId}/datasets/${e}/settings/embeddings`:`/datasets/${e}/settings/embeddings`}function e0(t,e,r,n,i){return tN("dataset",t.config()),tU(n),eI(t,e,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class e1{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getPlaybackInfo(t,e={}){var r,n;let i=this.#a.config(),o=(i.resource||i["~experimental_resource"])?.id,{instanceId:s,library
14Id:a}=function(t){let e="object"==typeof t&&"_ref"in t?t._ref:t,r=e3.exec(e);if(r){let[,t,e]=r;return{libraryId:t,instanceId:e}}if("string"==typeof t&&t.startsWith("video-"))return{instanceId:t};throw Error(`Invalid video asset instance identifier "${e}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(t),u=a||o;if(!u)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let c=(r=s,n=u,`/media-libraries/${n}/video/${r}/playback-info`),l=function(t){let e={};if(t.transformations){let{thumbnail:r,animated:n,storyboard:i}=t.transformations;r&&(r.width&&(e.thumbnailWidth=r.width),r.height&&(e.thumbnailHeight=r.height),void 0!==r.time&&(e.thumbnailTime=r.time),r.fit&&(e.thumbnailFit=r.fit),r.format&&(e.thumbnailFormat=r.format)),n&&(n.width&&(e.animatedWidth=n.width),n.height&&(e.animatedHeight=n.height),void 0!==n.start&&(e.animatedStart=n.start),void 0!==n.end&&(e.animatedEnd=n.end),n.fps&&(e.animatedFps=n.fps),n.format&&(e.animatedFormat=n.format)),i&&i.format&&(e.storyboardFormat=i.format)}return t.expiration&&(e.expiration=t.expiration),e}(e);return eI(this.#a,this.#u,{method:"GET",uri:c,query:l})}}class e2{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getPlaybackInfo(t,e={}){return(0,z.s)(new e1(this.#a.observable,this.#u).getPlaybackInfo(t,e))}}let e3=/^media-library:(ml[^:]+):([^:]+)$/;class e6{#a;#u;
14constructor(t,e){this.#a=t,this.#u=e}list(t){let e={};return t?.includeMembers===!1&&(e.includeMembers="false"),t?.includeFeatures===!1&&(e.includeFeatures="false"),t?.organizationId&&(e.organizationId=t.organizationId),t?.onlyExplicitMembership&&(e.onlyExplicitMembership="true"),eI(this.#a,this.#u,{uri:"/projects",query:e})}getById(t){return eI(this.#a,this.#u,{uri:`/projects/${t}`})}}class e5{#a;#u;constructor(t,e){this.#a=t,this.#u=e}list(t){let e={};return t?.includeMembers===!1&&(e.includeMembers="false"),t?.includeFeatures===!1&&(e.includeFeatures="false"),t?.organizationId&&(e.organizationId=t.organizationId),t?.onlyExplicitMembership&&(e.onlyExplicitMembership="true"),(0,z.s)(eI(this.#a,this.#u,{uri:"/projects",query:e}))}getById(t){return(0,z.s)(eI(this.#a,this.#u,{uri:`/projects/${t}`}))}}let e4=(0,tp.d_)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),e8=(t,e)=>e?(0,td.ct)(t,e):(0,td.T4)(t);function e9(t,{releaseId:e,publishedId:r,document:n}){if(r&&n._id){let t=e8(r,e);return((t,e)=>{if(e._id&&e._id!==t)throw Error(`The provided document ID (\`${e._id}\`) does not match the generated version ID (\`${t}\`)`)})(t,n),t}if(n._id){let r=(0,td.R8)(n._id),i=(0,td.A_)(n._id);if(!r&&!i)throw Error(`\`${t}()\` requires a document with an \`_id\` that is a version or draft ID`);if(e){if(r)throw Error(`\`${t}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${e}\`) was also provided.`);let i=(0,td._S)(n._id);if(i!==e)throw Error(`\`${t}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${e}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return e8(r,e);throw Error(`\`${t}()\` requires either a publishedId or a document with an \`_id\``)}let e7=(t,e)=>{let[r,n,i]=((t,e)=>{if("object"==typeof t&&null!==t&&("releaseId"in t||"metadata"in t)){let{releaseId:r=e4(),metadata:n={}}=t;return[r,n,e]}return[e4(),{},t]})(t,e);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class rt{#a;#u;constructor(t,e){this.#a=t,this.#u=e}get({releaseId:t},e){return el(this.#a,this.#u,`_.releases.${t}`,e)}create(t,e){let{action:r,options:n}=e7(t,e),{releaseId:i,metadata:o}=r;return eE(this.#a,this.#u,r,n).pipe((0,K.T)(t=>({...t,releaseId:i,metadata:o})))}edit({releaseId:t,patch:e},r){return eE(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:t,patch:e},r)}publish({releaseId:t},e){return eE(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:t},e)}archive({releaseId:t},e){return eE(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:t},e)}unarchive({releaseId:t},e){return eE(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:t},e)}schedule({releaseId:t,publishAt:e},r){return eE(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:t,publishAt:e},r)}unschedule({releaseId:t},e){return eE(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:t},e)}delete({releaseId:t},e){return eE(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:t},e)}fetchDocuments({releaseId:t},e){return ed(this.#a,this.#u,t,e)}}class re{#a;#u;constructor(t,e){this.#a=t,this.#u=e}get({releaseId:t},e){return(0,z.s)(el(this.#a,this.#u,`_.releases.${t}`,e))}async create(t,e){let{action:r,options:n}=e7(t,e),{releaseId:i,metadata:o}=r;return{...await (0,z.s)(eE(this.#a,this.#u,r,n)),releaseId:i,metadata:o}}edit({releaseId:t,patch:e},r){return(0,z.s)(eE(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:t,patch:e},r))}publish({releaseId:t},e){return(0,z.s)(eE(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:t},e))}archive({releaseId:t},e){return(0,z.s)(eE(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:t},e))}unarchive({releaseId:t},e){return(0,z.s)(eE(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:t},e))}schedule({releaseId:t,publishAt:e},r){return(0,z.s)(eE(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:t,publishAt:e},r))}unschedule({releaseId:t},e){return(0,z.s)(eE(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:t},e))}delete({releaseId:t},e){return(0,z.s)(eE(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:t},e))}fetchDocuments({releaseId:t},e){return(0,z.s)(ed(this.#a,this.#u,t,e))}}class rr{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getById(t){return eI(this.#a,this.#u,{uri:`/users/${t}`})}}class rn{#a;#u;
14constructor(t,e){this.#a=t,this.#u=e}getById(t){return(0,z.s)(eI(this.#a,this.#u,{uri:`/users/${t}`}))}}class ri{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#c;#l;#u;listen=eV;constructor(t,e=tJ){this.config(e),this.#l=t;let r=e._requestHandler;this.#u=r?(()=>{let n;return(i,o)=>(n||(n=new ro(t,{...e,_requestHandler:void 0})),r(i,e=>t(e,o),n))})():t,this.assets=new eN(this,this.#u),this.datasets=new eQ(this,this.#u),this.live=new eX(this),this.mediaLibrary={video:new e1(this,this.#u)},this.projects=new e6(this,this.#u),this.users=new rr(this,this.#u),this.agent={action:new eM(this,this.#u)},this.releases=new rt(this,this.#u)}clone(){return new ri(this.#l,this.config())}config(t){if(void 0===t)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#c=tK(t,this.#c||{}),this}withConfig(t){let e=this.config();return new ri(this.#l,{...e,...t,stega:{...e.stega||{},..."boolean"==typeof t?.stega?{enabled:t.stega}:t?.stega||{}}})}fetch(t,e,r){return ec(this,this.#u,this.#c.stega,t,e,r)}getDocument(t,e){if(e?.includeAllVersions===!0)return el(this,this.#u,t,{...e,includeAllVersions:!0});let r={signal:e?.signal,tag:e?.tag,releaseId:e?.releaseId,...e&&"includeAllVersions"in e?{includeAllVersions:!1}:{}};return el(this,this.#u,t,r)}getDocuments(t,e){return eh(this,this.#u,t,e)}documentsExists(t,e){return ef(this,this.#u,t,e)}create(t,e){return eA(this,this.#u,t,"create",e)}createIfNotExists(t,e){return ep(this,this.#u,t,e)}createOrReplace(t,e){return ey(this,this.#u,t,e)}createVersion({document:t,publishedId:e,releaseId:r,baseId:n,ifBaseRevisionId:i},o){if(!t)return em(this,this.#u,e,n,r,i,o);let s=e9("createVersion",{document:t,publishedId:e,releaseId:r}),a={...t,_id:s},u=e||(0,td.IM)(t._id);return eg(this,this.#u,a,u,o)}delete(t,e){return ev(this,this.#u,t,e)}discardVersion({releaseId:t,publishedId:e},r,n){let i=e8(e,t);return eb(this,this.#u,i,r,n)}replaceVersion({document:t,publishedId:e,releaseId:r},n){let i=e9("replaceVersion",{document:t,publishedId:e,releaseId:r}),o={...t,_id:i};return ew(this,this.#u,o,n)}unpublishVersion({releaseId:t,publishedId:e},r){let n=(0,td.ct)(e,t);return eC(this,this.#u,n,e,r)}mutate(t,e){return eT(this,this.#u,t,e)}patch(t,e){return new et(t,e,this)}transaction(t){return new eo(t,this)}action(t,e){return eE(this,this.#u,t,e)}request(t){return eI(this,this.#u,t)}getUrl(t,e){return eU(this,t,e)}getDataUrl(t,e){return eO(this,t,e)}}class ro{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#c;#l;#u;listen=eV;constructor(t,e=tJ){this.config(e),this.#l=t;let r=e._requestHandler;this.#u=r?(()=>{let n;return(i,o)=>(n||(n=new ro(t,{...e,_requestHandler:void 0})),r(i,e=>t(e,o),n))})():t,this.assets=new eF(this,this.#u),this.datasets=new eZ(this,this.#u),this.live=new eX(this),this.mediaLibrary={video:new e2(this,this.#u)},this.projects=new e5(this,this.#u),this.users=new rn(this,this.#u),this.agent={action:new ek(this,this.#u)},this.releases=new re(this,this.#u),this.observable=new ri(t,e)}clone(){return new ro(this.#l,this.config())}config(t){if(void 0===t)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(t),this.#c=tK(t,this.#c||{}),this}withConfig(t){let e=this.config();return new ro(this.#l,{...e,...t,stega:{...e.stega||{},..."boolean"==typeof t?.stega?{enabled:t.stega}:t?.stega||{}}})}fetch(t,e,r){return(0,z.s)(ec(this,this.#u,this.#c.stega,t,e,r))}getDocument(t,e){if(e?.includeAllVersions===!0)return(0,z.s)(el(this,this.#u,t,{...e,includeAllVersions:!0}));let r={signal:e?.signal,tag:e?.tag,releaseId:e?.releaseId,...e&&"includeAllVersions"in e?{includeAllVersions:!1}:{}};return(0,z.s)(el(this,this.#u,t,r))}getDocuments(t,e){return(0,z.s)(eh(this,this.#u,t,e))}documentsExists(t,e){return(0,z.s)(ef(this,this.#u,t,e))}create(t,e){return(0,z.s)(eA(this,this.#u,t,"create",e))}createIfNotExists(t,e){return(0,z.s)(ep(this,this.#u,t,e))}createOrReplace(t,e){return(0,z.s)(ey(this,this.#u,t,e))}createVersion({document:t,publishedId:e,releaseId:r,baseId:n,ifBaseRevisionId:i},o){if(!t)return(0,tt._)(em(this,this.#u,e,n,r,i,o));let s=e9("createVersion",{document:t,publishedId:e,releaseId:r}),a={...t,_id:s},u=e||(0,td.IM)(t._id);return(0,tt._)(eg(this,this.#u,a,u,o))}delete(t,e){return(0,z.s)(ev(this,this.#u,t,e))}discardVersion({releaseId:t,publishedId:e},r,n){let i=e8(e,t);return(0,z.s)(eb(this,this.#u,i,r,n))}replaceVersion({document:t,publishedId:e,releaseId:r},n){let i=e9("replaceVersion",{document:t,publishedId:e,releaseId:r}),o={...t,_id:i};return(0,tt._)(ew(this,this.#u,o,n))}unpublishVersion({releaseId:t,publishedId:e},r){let n=(0,td.ct)(e,t);return(0,z.s)(eC(this,this.#u,n,e,r))}mutate(t,e){return(0,z.s)(eT(this,this.#u,t,e))}patch(t,e){return new ee(t,e,this)}transaction(t){return new ei(t,this)}action(t,e){return(0,z.s)(eE(this,this.#u,t,e))}request(t){return(0,z.s)(eI(this,this.#u,t))}dataRequest(t,e,r){return(0,z.s)(ex(this,this.#u,t,e,r))}getUrl(t,e){return eU(this,t,e)}getDataUrl(t,e){return eO(this,t,e)}}let rs=function(t,e){return{requester:tR(t),createClient:r=>{let n=tR(t,{ignoreWarnings:r.ignoreWarnings});return new e((t,e)=>(e||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,lineage:r.lineage,...t}),r)}}}([],ro),ra=(rs.requester,rs.createClient)},12062:(t,e,r)=>{"use strict";r.d(e,{m:()=>s});
14var n=r(4902),i=r(60048),o=r(82688),s=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.U);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return(0,n.C6)(e,t),e.prototype.next=function(e){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(n.push(e),i||n.push(o.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=e.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},e}(i.B)},12487:(t,e,r)=>{"use strict";r.d(e,{Tg:()=>y});var n=r(4902),i=r(82704),o=r(1251),s=r(92848),a=r(22370),u=r(38592),c=r(47234),l=r(62940),h=r(91961),f=r(65402),d=r(27279),p=r(77439);function y(t){if(t instanceof s.c)return t;if(null!=t){var e,r,y,m,v;if((0,a.l)(t)){return e=t,new s.c(function(t){var r=e[p.s]();if((0,f.T)(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,i.X)(t)){return r=t,new s.c(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()})}if((0,o.y)(t)){return y=t,new s.c(function(t){y.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,d.m)})}if((0,u.T)(t))return g(t);if((0,l.x)(t)){return m=t,new s.c(function(t){var e,r;try{for(var i=(0,n.Ju)(m),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}t.complete()})}if((0,h.U)(t)){return v=t,g((0,h.C)(v))}}throw(0,c.L)(t)}function g(t){return new s.c(function(e){(function(t,e){var r,i,o,s;return(0,n.sH)(this,void 0,void 0,function(){var a;return(0,n.YH)(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=(0,n.xN)(t),u.label=1;case 1:return[4,r.next()];case 2:if((i=u.sent()).done)return[3,4];if(a=i.value,e.next(a),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o={error:u.sent()},[3,11];case 6:if(u.trys.push([6,,9,10]),!(i&&!i.done&&(s=r.return)))return[3,8];return[4,s.call(r)];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})})(t,e).catch(function(t){return e.error(t)})})}},14408:(t,e,r)=>{"use strict";r.d(e,{_:()=>i});var n=r(65023);function i(t,e){return void 0===e&&(e=0),(0,n.N)(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}},14723:(t,e,r)=>{"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{A:()=>n})},15325:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(90232),i=r(64340),o=r(22555);function s(t,e){(0,i.A)(1,arguments);var r,s,y,g=(0,o.A)(null!=(r=null==e?void 0:e.additionalDigits)?r:2);if(2!==g&&1!==g&&0!==g)throw RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var m=function(t){var e,r={},n=t.split(a.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?e=n[0]:(r.date=n[0],e=n[1],a.timeZoneDelimiter.test(r.date)&&(r.date=t.split(a.timeZoneDelimiter)[0],e=t.substr(r.date.length,t.length))),e){var i=a.timezone.exec(e);i?(r.time=e.replace(i[1],""),r.timezone=i[1]):r.time=e}return r}(t);
14if(m.date){var v=function(t,e){var r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((n[1]||n[2]).length)}}(m.date,g);s=function(t,e){if(null===e)return new Date(NaN);var r,n,i,o,s,a,c,l,f,y,g,m,v=t.match(u);if(!v)return new Date(NaN);var b=!!v[4],w=h(v[1]),C=h(v[2])-1,T=h(v[3]),E=h(v[4]),x=h(v[5])-1;if(b){return(r=E,n=x,r>=1&&r<=53&&n>=0&&n<=6)?(i=e,o=E,s=x,(a=new Date(0)).setUTCFullYear(i,0,4),c=a.getUTCDay()||7,a.setUTCDate(a.getUTCDate()+((o-1)*7+s+1-c)),a):new Date(NaN)}var A=new Date(0);return(l=e,f=C,y=T,f>=0&&f<=11&&y>=1&&y<=(d[f]||(p(l)?29:28))&&(g=e,(m=w)>=1&&m<=(p(g)?366:365)))?(A.setUTCFullYear(e,C,Math.max(w,T)),A):new Date(NaN)}(v.restDateString,v.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var b=s.getTime(),w=0;if(m.time&&isNaN(w=function(t){var e,r,i,o=t.match(c);if(!o)return NaN;var s=f(o[1]),a=f(o[2]),u=f(o[3]);return(e=s,r=a,i=u,24===e?0===r&&0===i:i>=0&&i<60&&r>=0&&r<60&&e>=0&&e<25)?s*n.s0+a*n.Cg+1e3*u:NaN}(m.time)))return new Date(NaN);if(m.timezone){if(isNaN(y=function(t){if("Z"===t)return 0;var e,r=t.match(l);if(!r)return 0;var i="+"===r[1]?-1:1,o=parseInt(r[2]),s=r[3]&&parseInt(r[3])||0;return(e=s)>=0&&e<=59?i*(o*n.s0+s*n.Cg):NaN}(m.timezone)))return new Date(NaN)}else{var C=new Date(b+w),T=new Date(0);return T.setFullYear(C.getUTCFullYear(),C.getUTCMonth(),C.getUTCDate()),T.setHours(C.getUTCHours(),C.getUTCMinutes(),C.getUTCSeconds(),C.getUTCMilliseconds()),T}return new Date(b+w+y)}var a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},u=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function h(t){return t?parseInt(t):1}function f(t){return t&&parseFloat(t.replace(",","."))||0}var d=[31,null,31,30,31,30,31,31,30,31,30,31];function p(t){return t%400==0||t%4==0&&t%100!=0}},16023:(t,e,r)=>{"use strict";r.d(e,{R0:()=>u,lI:()=>a,ms:()=>s});var n=r(65402),i=r(91799);function o(t){return t[t.length-1]}function s(t){return(0,n.T)(o(t))?t.pop():void 0}function a(t){return(0,i.m)(o(t))?t.pop():void 0}function u(t,e){return"number"==typeof o(t)?t.pop():e}},16715:(t,e,r)=>{"use strict";r.d(e,{h:()=>u});var n=r(82596),i=r(12487),o=r(55450),s=r(16023),a=r(95497);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,s.lI)(t),u=(0,s.R0)(t,1/0);return t.length?1===t.length?(0,i.Tg)(t[0]):(0,n.U)(u)((0,a.H)(t,r)):o.w}},17241:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(54945),i=r(64340),o=r(91992);function s(t){return(0,i.A)(1,arguments),(!!function(t){return(0,i.A)(1,arguments),t instanceof Date||"object"===(0,n.A)(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)||"number"==typeof t)&&!isNaN(Number((0,o.A)(t)))}},18003:(t,e,r)=>{"use strict";r.d(e,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},18737:(t,e,r)=>{"use strict";function n(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}r.d(e,{o:()=>n})},19782:(t,e,r)=>{"use strict";r.d(e,{_:()=>o});var n=r(48847),i=r(94586);function o(t,e){var r="object"==typeof e;return new Promise(function(o,s){var a=new i.Ms({next:function(t){o(t),a.unsubscribe()},error:s,complete:function(){r?o(e.defaultValue):s(new n.G)}});t.subscribe(a)})}},20463:(t,e,r)=>{"use strict";r.d(e,{K:()=>i});var n=Array.isArray;function i(t){return 1===t.length&&n(t[0])?t[0]:t}},22053:(t,e,r)=>{"use strict";r.d(e,{q:()=>i});var n={};function i(){return n}},22370:(t,e,r)=>{"use strict";r.d(e,{l:()=>o});var n=r(77439),i=r(65402);function o(t){return(0,i.T)(t[n.s])}},22555:(t,e,r)=>{"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{A:()=>n})},23924:(t,e,r)=>{"use strict";r.d(e,{M:()=>a});var n=r(65402),i=r(65023),o=r(11357),s=r(69820);function a(t,e,r){var a=(0,n.T)(t)||e||r?{next:t,error:e,complete:r}:t;return a?(0,i.N)(function(t,e){null==(r=a.subscribe)||r.call(a);var r,n=!0;t.subscribe((0,o._)(e,function(t){var r;null==(r=a.next)||r.call(a,t),e.next(t)},function(){var t;n=!1,null==(t=a.complete)||t.call(a),e.complete()},function(t){var r;n=!1,null==(r=a.error)||r.call(a,t),e.error(t)},function(){var t,e;n&&(null==(t=a.unsubscribe)||t.call(a)),null==(e=a.finalize)||e.call(a)}))}):s.D}},25446:(t,e,r)=>{"use strict";r.d(e,{R:()=>a});var n=r(4902),i=function(t){function e(e,r){return t.call(this)||this}return(0,n.C6)(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(52249).yU),o={setInterval:function(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var s=o.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,(0,n.fX)([t,e],(0,n.zs)(r))):setInterval.apply(void 0,(0,n.fX)([t,e],(0,n.zs)(r)))},clearInterval:function(t){var e=o.delegate;return((null==e?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},s=r(18737),a=function(t){function e(e,r){var n=t.call(this,e,r)||this;
14return n.scheduler=e,n.work=r,n.pending=!1,n}return(0,n.C6)(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),o.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&o.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r,n=!1;try{this.work(t)}catch(t){n=!0,r=t||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,s.o)(n,this),null!=e&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(i)},26346:(t,e,r)=>{"use strict";r.d(e,{ef:()=>o,lJ:()=>a,xM:()=>s});var n=["D","DD"],i=["YY","YYYY"];function o(t){return -1!==n.indexOf(t)}function s(t){return -1!==i.indexOf(t)}function a(t,e,r){if("YYYY"===t)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").
14concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},27046:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(91992),i=r(3252),o=r(41080),s=r(64340);function a(t){(0,s.A)(1,arguments);var e=(0,n.A)(t);return Math.round(((0,i.A)(e).getTime()-(function(t){(0,s.A)(1,arguments);var e=(0,o.A)(t),r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),(0,i.A)(r)})(e).getTime())/6048e5)+1}},27279:(t,e,r)=>{"use strict";r.d(e,{m:()=>o});var n=r(18003),i=r(50543);function o(t){i.f.setTimeout(function(){var e=n.$.onUnhandledError;if(e)e(t);else throw t})}},27742:(t,e,r)=>{"use strict";function n(t){return t instanceof Date&&!isNaN(t)}r.d(e,{v:()=>n})},28155:(t,e,r)=>{"use strict";r.d(e,{$:()=>o});var n=r(92848),i=r(65402);function o(t,e){var r=(0,i.T)(t)?t:function(){return t},o=function(t){return t.error(r())};return new n.c(e?function(t){return e.schedule(o,0,t)}:o)}},28888:(t,e,r)=>{"use strict";function n(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}r.d(e,{_:()=>n})},33491:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(92848),i=r(65402);function o(t){return!!t&&(t instanceof n.c||(0,i.T)(t.lift)&&(0,i.T)(t.subscribe))}},35314:(t,e,r)=>{"use strict";function n(){}r.d(e,{l:()=>n})},38376:(t,e,r)=>{"use strict";r.d(e,{c:()=>v});var n=r(12487),i=r(80644),o=r(14408),s=r(92848),a=r(59752),u=r(65402),c=r(10776);function l(t,e){if(!t)throw Error("Iterable cannot be null");return new s.c(function(r){(0,c.N)(r,e,function(){var n=t[Symbol.asyncIterator]();(0,c.N)(r,e,function(){n.next().then(function(t){t.done?r.complete():r.next(t.value)})},0,!0)})})}var h=r(22370),f=r(1251),d=r(82704),p=r(62940),y=r(38592),g=r(47234),m=r(91961);function v(t,e){if(null!=t){if((0,h.l)(t))return(0,n.Tg)(t).pipe((0,o._)(e),(0,i.Q)(e));if((0,d.X)(t))return new s.c(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})});if((0,f.y)(t))return(0,n.Tg)(t).pipe((0,o._)(e),(0,i.Q)(e));if((0,y.T)(t))return l(t,e);if((0,p.x)(t))return new s.c(function(r){var n;return(0,c.N)(r,e,function(){n=t[a.l](),(0,c.N)(r,e,function(){var t,e,i;try{e=(t=n.next()).value,i=t.done}catch(t){r.error(t);return}i?r.complete():r.next(e)},0,!0)}),function(){return(0,u.T)(null==n?void 0:n.return)&&n.return()}});if((0,m.U)(t))return l((0,m.C)(t),e)}throw(0,g.L)(t)}},38592:(t,e,r)=>{"use strict";r.d(e,{T:()=>i});var n=r(65402);function i(t){return Symbol.asyncIterator&&(0,n.T)(null==t?void 0:t[Symbol.asyncIterator])}},41080:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(91992),i=r(64340),o=r(3252);function s(t){(0,i.A)(1,arguments);var e=(0,n.A)(t),r=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(r+1,0,4),s.setUTCHours(0,0,0,0);var a=(0,o.A)(s),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var c=(0,o.A)(u);return e.getTime()>=a.getTime()?r+1:e.getTime()>=c.getTime()?r:r-1}},41848:(t,e,r)=>{"use strict";r.d(e,{of:()=>o});var n=r(16023),i=r(95497);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,n.lI)(t);return(0,i.H)(t,r)}},45449:(t,e,r)=>{"use strict";r.d(e,{t:()=>o});var n=r(12062),i=r(95458);function o(t,e,r){var o,s,a,u,c=!1;return t&&"object"==typeof t?(u=void 0===(o=t.bufferSize)?1/0:o,e=void 0===(s=t.windowTime)?1/0:s,c=void 0!==(a=t.refCount)&&a,r=t.scheduler):u=null!=t?t:1/0,(0,i.u)({connector:function(){return new n.m(u,e,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}},46241:(t,e,r)=>{"use strict";r.d(e,{A_:()=>s,IM:()=>l,R8:()=>o,T4:()=>a,_S:()=>c,ct:()=>u});let n="drafts.",i="versions.";function o(t){return t.startsWith(n)}function s(t){return t.startsWith(i)}function a(t){return s(t)?n+l(t):o(t)?t:n+t}function u(t,e){if("drafts"===e||"published"===e)throw Error('Version can not be "published" or "drafts"');return`${i}${e}.${l(t)}
14`}function c(t){if(!s(t))return;let[e,r]=t.split(".");return r}function l(t){return s(t)?t.split(".").slice(2).join("."):o(t)?t.slice(n.length):t}},46512:(t,e,r)=>{"use strict";r.d(e,{Ak:()=>o,d_:()=>i});let n=t=>crypto.getRandomValues(new Uint8Array(t)),i=(t,e=21)=>((t,e,r)=>{let n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*e/t.length);return (o=e)=>{if(o<=0)return"";let s="";for(;;){let e=r(i),a=0|i;for(;a--;)if((s+=t[e[a]&n]||"").length===o)return s}}})(t,e,n),o=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((t,e)=>((e&=63)<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"")},47234:(t,e,r)=>{"use strict";function n(t){return TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}r.d(e,{L:()=>n})},48847:(t,e,r)=>{"use strict";r.d(e,{G:()=>n});var n=(0,r(74020).L)(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})},50543:(t,e,r)=>{"use strict";r.d(e,{f:()=>i});var n=r(4902),i={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s=i.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,n.fX)([t,e],(0,n.zs)(r))):setTimeout.apply(void 0,(0,n.fX)([t,e],(0,n.zs)(r)))},clearTimeout:function(t){var e=i.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0}},51829:(t,e,r)=>{"use strict";function n(t,e){return t.reduce(function(t,r,n){return t[r]=e[n],t},{})}r.d(e,{e:()=>n})},52249:(t,e,r)=>{"use strict";r.d(e,{Kn:()=>u,yU:()=>a,Uv:()=>c});var n=r(4902),i=r(65402),o=(0,r(74020).L)(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}),s=r(18737),a=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,r,s,a,u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=(0,n.Ju)(u),h=c.next();!h.done;h=c.next())h.value.remove(this)}catch(e){t={error:e}}finally{try{h&&!h.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else u.remove(this);var f=this.initialTeardown;if((0,i.T)(f))try{f()}catch(t){a=t instanceof o?t.errors:[t]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=(0,n.Ju)(d),y=p.next();!y.done;y=p.next()){var g=y.value;try{l(g)}catch(t){a=null!=a?a:[],t instanceof o?a=(0,n.fX)((0,n.fX)([],(0,n.zs)(a)),(0,n.zs)(t.errors)):a.push(t)}}}catch(t){r={error:t}}finally{try{y&&!y.done&&(s=p.return)&&s.call(p)}finally{if(r)throw r.error}}}if(a)throw new o(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(t)}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&(0,s.o)(e,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&(0,s.o)(r,t),t instanceof e&&t._removeParent(this)},(t=new e).closed=!0,e.EMPTY=t,e}(),u=a.EMPTY;function c(t){return t instanceof a||t&&"closed"in t&&(0,i.T)(t.remove)&&(0,i.T)(t.add)&&(0,i.T)(t.unsubscribe)}function l(t){(0,i.T)(t)?t():t.unsubscribe()}},54283:(t,e,r)=>{"use strict";r.d(e,{Y:()=>o,l:()=>s});var n=r(18003),i=null;function o(t){if(n.$.useDeprecatedSynchronousErrorHandling){var e=!i;if(e&&(i={errorThrown:!1,error:null}),t(),e){var r=i,o=r.errorThrown,s=r.error;if(i=null,o)throw s}}else t()}function s(t){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=t)}},54615:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(91992),i=r(64340),o=r(58937),s=r(22555),a=r(22053);function u(t,e){(0,i.A)(1,arguments);var r,u,c,l,h,f,d,p,y=(0,n.A)(t),g=y.getUTCFullYear(),m=(0,a.q)(),v=(0,s.A)(null!=(r=null!=(u=null!=(c=null!=(l=null==e?void 0:e.firstWeekContainsDate)?l:null==e||null==(h=e.locale)||null==(f=h.options)?void 0:f.firstWeekContainsDate)?c:m.firstWeekContainsDate)?u:null==(d=m.locale)||null==(p=d.options)?void 0:p.firstWeekContainsDate)?r:1);if(!(v>=1&&v<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,v),b.setUTCHours(0,0,0,0);var w=(0,o.A)(b,e),C=new Date(0);C.setUTCFullYear(g,0,v),C.setUTCHours(0,0,0,0);var T=(0,o.A)(C,e);return y.getTime()>=w.getTime()?g+1:y.getTime()>=T.getTime()?g:g-1}},54945:(t,e,r)=>{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.d(e,{A:()=>n})},55450:(t,e,r)=>{"use strict";r.d(e,{I:()=>o,w:()=>i});var n=r(92848),i=new n.c(function(t){return t.complete()});function o(t){var e;return t?(e=t,new n.c(function(t){return e.schedule(function(){return t.complete()})})):i}},58937:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(91992),i=r(64340),o=r(22555),s=r(22053);function a(t,e){(0,i.A)(1,arguments);var r,a,u,c,l,h,f,d,p=(0,s.q)(),y=(0,o.A)(null!=(r=null!=(a=null!=(u=null!=(c=null==e?void 0:e.weekStartsOn)?c:null==e||null==(l=e.locale)||null==(h=l.options)?void 0:h.weekStartsOn)?u:p.weekStartsOn)?a:null==(f=p.locale)||null==(d=f.options)?void 0:d.weekStartsOn)?r:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,n.A)(t),m=g.getUTCDay();return g.setUTCDate(g.getUTCDate()-(7*(m<y)+m-y)),g.setUTCHours(0,0,0,0),g}},59165:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(64752),i=r(64340),o=r(22555);function s(t,e){(0,i.A)(2,arguments);var r=(0,o.A)(e);return(0,n.A)(t,-r)}},59752:(t,e,r)=>{"use strict";r.d(e,{l:()=>n});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},60048:(t,e,r)=>{"use strict";r.d(e,{B:()=>c});var n=r(4902),i=r(92848),o=r(52249),s=(0,r(74020).L)(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=r(18737),u=r(54283),c=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,n.C6)(e,t),e.prototype.lift=function(t){var e=new l(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new s},e.prototype.next=function(t){var e=this;(0,u.Y)(function(){var r,i;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=(0,n.Ju)(e.currentObservers),s=o.next();!s.done;s=o.next())s.value.next(t)}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}})},e.prototype.error=function(t){var e=this;(0,u.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}})},e.prototype.complete=function(){var t=this;(0,u.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null==(t=this.observers)?void 0:t.length)>0}
14,enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?o.Kn:(this.currentObservers=null,i.push(t),new o.yU(function(){e.currentObservers=null,(0,a.o)(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},e.prototype.asObservable=function(){var t=new i.c;return t.source=this,t},e.create=function(t,e){return new l(t,e)},e}(i.c),l=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return(0,n.C6)(e,t),e.prototype.next=function(t){var e,r;null==(r=null==(e=this.destination)?void 0:e.next)||r.call(e,t)},e.prototype.error=function(t){var e,r;null==(r=null==(e=this.destination)?void 0:e.error)||r.call(e,t)},e.prototype.complete=function(){var t,e;null==(e=null==(t=this.destination)?void 0:t.complete)||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!=(r=null==(e=this.source)?void 0:e.subscribe(t))?r:o.Kn},e}(c)},61265:(t,e,r)=>{"use strict";r.d(e,{E:()=>i,b:()=>o});var n=r(25446),i=new(r(76514)).q(n.R),o=i},62940:(t,e,r)=>{"use strict";r.d(e,{x:()=>o});var n=r(59752),i=r(65402);function o(t){return(0,i.T)(null==t?void 0:t[n.l])}},63167:(t,e,r)=>{"use strict";r.d(e,{v:()=>o});var n=r(92848),i=r(12487);function o(t){return new n.c(function(e){(0,i.Tg)(t()).subscribe(e)})}},63760:(t,e,r)=>{"use strict";r.d(e,{D:()=>a});var n=Array.isArray,i=Object.getPrototypeOf,o=Object.prototype,s=Object.keys;function a(t){if(1===t.length){var e,r=t[0];if(n(r))return{args:r,keys:null};if((e=r)&&"object"==typeof e&&i(e)===o){var a=s(r);return{args:a.map(function(t){return r[t]}),keys:a}}}return{args:t,keys:null}}},64340:(t,e,r)=>{"use strict";function n(t,e){if(e.length<t)throw TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}r.d(e,{A:()=>n})},64752:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(22555),i=r(91992),o=r(64340);function s(t,e){return(0,o.A)(2,arguments),new Date((0,i.A)(t).getTime()+(0,n.A)(e))}},65023:(t,e,r)=>{"use strict";r.d(e,{N:()=>o,S:()=>i});var n=r(65402);function i(t){return(0,n.T)(null==t?void 0:t.lift)}function o(t){return function(e){if(i(e))return e.lift(function(e){try{return t(e,this)}catch(t){this.error(t)}});throw TypeError("Unable to lift unknown Observable type")}}},65035:(t,e,r)=>{"use strict";r.d(e,{A:()=>I});var n=r(17241),i=r(59165),o=r(91992),s=r(64340),a=r(27046),u=r(41080),c=r(2467),l=r(54615);function h(t,e){for(var r=Math.abs(t).toString();r.length<e;)r="0"+r;return(t<0?"-":"")+r}let f={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return h("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):h(r+1,2)},d:function(t,e){return h(t.getUTCDate(),e.length)},h:function(t,e){return h(t.getUTCHours()%12||12,e.length)},H:function(t,e){return h(t.getUTCHours(),e.length)},m:function(t,e){return h(t.getUTCMinutes(),e.length)},s:function(t,e){return h(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length;return h(Math.floor(t.getUTCMilliseconds()*Math.pow(10,r-3)),e.length)}};var d={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function p(t,e){var r=t>0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+(e||"")+h(o,2)}function y(t,e){return t%60==0?(t>0?"-":"+")+h(Math.abs(t)/60,2):g(t,e)}function g(t,e){var r=Math.abs(t);return(t>0?"-":"+")+h(Math.floor(r/60),2)+(e||"")+h(r%60,2)}let m={G:function(t,e,r){var n=+(t.getUTCFullYear()>0);switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return f.y(t,e)},Y:function(t,e,r,n){var i=(0,l.A)(t,n),o=i>0?i:1-i;return"YY"===e?h(o%100,2):"Yo"===e?r.ordinalNumber(o,{unit:"year"}):h(o,e.length)},R:function(t,e){return h((0,u.A)(t),e.length)},u:function(t,e){return h(t.getUTCFullYear(),e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return h(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return h(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return f.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return h(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var i=(0,c.A)(t,n);return"wo"===e?r.ordinalNumber(i,{unit:"week"}):h(i,e.length)},I:function(t,e,r){var n=(0,a.A)(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):h(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):f.d(t,e)},D:function(t,e,r){var n=function(t){(0,s.A)(1,arguments);var e=(0,o.A)(t),r=e.getTime();return e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0),Math.floor((r-e.getTime())/864e5)+1}(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):h(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return h(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return h(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),i=0===n?7:n;switch(e){case"i":return String(i);case"ii":return h(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,i=t.getUTCHours();switch(n=12===i?d.noon:0===i?d.midnight:i/12>
14=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,i=t.getUTCHours();switch(n=i>=17?d.evening:i>=12?d.afternoon:i>=4?d.morning:d.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return f.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):f.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):h(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return(0===n&&(n=24),"ko"===e)?r.ordinalNumber(n,{unit:"hour"}):h(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):f.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):f.s(t,e)},S:function(t,e){return f.S(t,e)},X:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return y(i);case"XXXX":case"XX":return g(i);default:return g(i,":")}},x:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return y(i);case"xxxx":case"xx":return g(i);default:return g(i,":")}},O:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+p(i,":");default:return"GMT"+g(i,":")}},z:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+p(i,":");default:return"GMT"+g(i,":")}},t:function(t,e,r,n){return h(Math.floor((n._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,r,n){return h((n._originalDate||t).getTime(),e.length)}};var v=r(5115),b=r(14723),w=r(26346),C=r(22555),T=r(22053),E=r(126),x=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R=/^'([^]*?)'?$/,S=/''/g,q=/[a-zA-Z]/;function I(t,e,r){(0,s.A)(2,arguments);var a,u,c,l,h,f,d,p,y,g,I,O,U,$,j,_,D,P,M=String(e),k=(0,T.q)(),N=null!=(a=null!=(u=null==r?void 0:r.locale)?u:k.locale)?a:E.A,F=(0,C.A)(null!=(c=null!=(l=null!=(h=null!=(f=null==r?void 0:r.firstWeekContainsDate)?f:null==r||null==(d=r.locale)||null==(p=d.options)?void 0:p.firstWeekContainsDate)?h:k.firstWeekContainsDate)?l:null==(y=k.locale)||null==(g=y.options)?void 0:g.firstWeekContainsDate)?c:1);if(!(F>=1&&F<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=(0,C.A)(null!=(I=null!=(O=null!=(U=null!=($=null==r?void 0:r.weekStartsOn)?$:null==r||null==(j=r.locale)||null==(_=j.options)?void 0:_.weekStartsOn)?U:k.weekStartsOn)?O:null==(D=k.locale)||null==(P=D.options)?void 0:P.weekStartsOn)?I:0);if(!(L>=0&&L<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw RangeError("locale must contain localize property");if(!N.formatLong)throw RangeError("locale must contain formatLong property");var B=(0,o.A)(t);if(!(0,n.A)(B))throw RangeError("Invalid time value");var z=(0,b.A)(B),H=(0,i.A)(B,z),W={firstWeekContainsDate:F,weekStartsOn:L,locale:N,_originalDate:B};return M.match(A).map(function(t){var e=t[0];return"p"===e||"P"===e?(0,v.A[e])(t,N.formatLong):t}).join("").match(x).map(function(n){if("''"===n)return"'";var i,o,s=n[0];if("'"===s){return(o=(i=n).match(R))?o[1].replace(S,"'"):i}var a=m[s];if(a)return!(null!=r&&r.useAdditionalWeekYearTokens)&&(0,w.xM)(n)&&(0,w.lJ)(n,e,String(t)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&(0,w.ef)(n)&&(0,w.lJ)(n,e,String(t)),a(H,n,N.localize,W);if(s.match(q))throw RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return n}).join("")}},65402:(t,e,r)=>{"use strict";function n(t){return"function"==typeof t}r.d(e,{T:()=>n})},66305:(t,e,r)=>{"use strict";r.d(e,{Z:()=>function t(e,r,u){return(void 0===u&&(u=1/0),(0,a.T)(r))?t(function(t,o){return(0,n.T)(function(e,n){return r(t,e,o,n)})((0,i.Tg)(e(t,o)))},u):("number"==typeof r&&(u=r),(0,o.N)(function(t,r){return(0,s.h)(t,r,e,u)}))}});var n=r(67059),i=r(12487),o=r(65023),s=r(3505),a=r(65402)},67059:(t,e,r)=>{"use strict";r.d(e,{T:()=>
14o});var n=r(65023),i=r(11357);function o(t,e){return(0,n.N)(function(r,n){var o=0;r.subscribe((0,i._)(n,function(r){n.next(t.call(e,r,o++))}))})}},69062:(t,e,r)=>{"use strict";r.d(e,{K:()=>i});var n=r(82596);function i(){return(0,n.U)(1)}},69820:(t,e,r)=>{"use strict";function n(t){return t}r.d(e,{D:()=>n})},74020:(t,e,r)=>{"use strict";function n(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}r.d(e,{L:()=>n})},76514:(t,e,r)=>{"use strict";r.d(e,{q:()=>s});var n=r(4902),i=r(82688),o=function(){function t(e,r){void 0===r&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(r,e)},t.now=i.U.now,t}(),s=function(t){function e(e,r){void 0===r&&(r=o.now);var n=t.call(this,e,r)||this;return n.actions=[],n._active=!1,n}return(0,n.C6)(e,t),e.prototype.flush=function(t){var e,r=this.actions;if(this._active)return void r.push(t);this._active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},e}(o)},76536:(t,e,r)=>{"use strict";r.d(e,{S:()=>i});var n=r(11357);function i(t,e,r,i,o){return function(s,a){var u=r,c=e,l=0;s.subscribe((0,n._)(a,function(e){var r=l++;c=u?t(c,e,r):(u=!0,e),i&&a.next(c)},o&&function(){u&&a.next(c),a.complete()}))}}},77439:(t,e,r)=>{"use strict";r.d(e,{s:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},80644:(t,e,r)=>{"use strict";r.d(e,{Q:()=>s});var n=r(10776),i=r(65023),o=r(11357);function s(t,e){return void 0===e&&(e=0),(0,i.N)(function(r,i){r.subscribe((0,o._)(i,function(r){return(0,n.N)(i,t,function(){return i.next(r)},e)},function(){return(0,n.N)(i,t,function(){return i.complete()},e)},function(r){return(0,n.N)(i,t,function(){return i.error(r)},e)}))})}},81370:(t,e)=>{"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=u(t),s=o[0],a=o[1],c=new i((s+a)*3/4-a),l=0,h=a>0?s-4:s;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(t,e,n){for(var i,o=[],s=e;s<n;s+=3)i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},82596:(t,e,r)=>{"use strict";r.d(e,{U:()=>o});var n=r(66305),i=r(69820);function o(t){return void 0===t&&(t=1/0),(0,n.Z)(i.D,t)}},82688:(t,e,r)=>{"use strict";r.d(e,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},82704:(t,e,r)=>{"use strict";r.d(e,{X:()=>n});var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},82909:(t,e,r)=>{"use strict";var n=r(81370),i=r(87247),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=s(o),c=u.write(n,i);return c!==o&&(u=u.slice(0,c)),u}if(ArrayBuffer.isView(t)){var l=t;if(I(l,Uint8Array)){var y=new Uint8Array(l);return f(y.buffer,y.byteOffset,y.byteLength)}return h(l)}if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);
vendor: 18,093 bytes, line 14
14if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var g=t.valueOf&&t.valueOf();if(null!=g&&g!==t)return a.from(g,e,r);var m=function(t){if(a.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(m)return m;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}function d(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return S(t).length;default:if(i)return n?-1:R(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){var i,o,s,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=O[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return b(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,s=r,0===o&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return v(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else -1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(t,o+f)!==c(e,f)){h=!1;break}if(h)return o}return -1}function b(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,c=t[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:(192&(o=t[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var f=n,d=f.length;if(d<=4096)return String.fromCharCode.apply(String,f);for(var p="",y=0;y<d;)p+=String.fromCharCode.apply(String,f.slice(y,y+=4096));return p}function w(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function T(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,o){return e*=1,r>>>=0,o||T(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function x(t,e,r,n,o){return e*=1,r>>>=0,o||T(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.hp=a,e.IS=50,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(c(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(t){switch(String(t).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}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(I(o,Uint8Array))i+o.length>n.length?a.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(a.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):y.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,u=Math.min(o,s),c=this.slice(n,i),l=t.slice(e,r),h=0;h<u;++h)if(c[h]!==l[h]){o=c[h],s=l[h];break}return o<s?-1:+(s<o)},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,u,c,l,h,f=this.length-e;if((void 0===r||r>f)&&(r=f),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a,u=parseInt(e.substr(2*s,2),16);if((a=u)!=a)break;t[r+s]=u}return s}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,q(R(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=e,a=r,q(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,s,a);case"base64":return u=e,c=r,q(S(t),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,q(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;C(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s<r&&(o*=256);)this[e+s]=t/o&255;return e+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;C(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return x(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return x(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),u=s.length;
14if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%u]}return this};var A=/[^+/0-9A-Za-z-_]/g;function R(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function S(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var O=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},83002:(t,e,r)=>{"use strict";r.d(e,{s:()=>i});var n=r(48847);function i(t,e){var r="object"==typeof e;return new Promise(function(i,o){var s,a=!1;t.subscribe({next:function(t){s=t,a=!0},error:o,complete:function(){a?i(s):r?i(e.defaultValue):o(new n.G)}})})}},86641:(t,e,r)=>{"use strict";r.d(e,{j:()=>i});var n=r(65023);function i(t){return(0,n.N)(function(e,r){try{e.subscribe(r)}finally{r.add(t)}})}},87247:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=c}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=5960464477539062e-23*(23===i),d=n?0:o-1,p=n?1:-1,y=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?e+=f/u:e+=f*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+d]=255&s,d+=p,s/=256,c-=8);t[r+d-p]|=128*y}},88505:(t,e,r)=>{"use strict";r.d(e,{P:()=>d,z:()=>f});var n=r(92848),i=r(63760),o=r(95497),s=r(69820),a=r(9699),u=r(16023),c=r(51829),l=r(11357),h=r(10776);function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,u.lI)(t),l=(0,u.ms)(t),h=(0,i.D)(t),f=h.args,p=h.keys;if(0===f.length)return(0,o.H)([],r);var y=new n.c(d(f,r,p?function(t){return(0,c.e)(p,t)}:s.D));return l?y.pipe((0,a.I)(l)):y}function d(t,e,r){return void 0===r&&(r=s.D),function(n){p(e,function(){for(var i=t.length,s=Array(i),a=i,u=i,c=function(i){p(e,function(){var c=(0,o.H)(t[i],e),h=!1;c.subscribe((0,l._)(n,function(t){s[i]=t,!h&&(h=!0,u--),u||n.next(r(s.slice()))},function(){--a||n.complete()}))},n)},h=0;h<i;h++)c(h)},n)}}function p(t,e,r){t?(0,h.N)(r,t,e):e()}},90232:(t,e,r)=>{"use strict";r.d(e,{Cg:()=>n,_m:()=>o,s0:()=>i});var n=6e4,i=36e5,o=1e3},91609:(t,e,r)=>{"use strict";r.d(e,{T:()=>o});var n=r(76536),i=r(65023);function o(t,e){return(0,i.N)((0,n.S)(t,e,arguments.length>=2,!1,!0))}},91799:(t,e,r)=>{"use strict";r.d(e,{m:()=>i});var n=r(65402);function i(t){return t&&(0,n.T)(t.schedule)}},91961:(t,e,r)=>{"use strict";r.d(e,{C:()=>o,U:()=>s});var n=r(4902),i=r(65402);function o(t){return(0,n.AQ)(this,arguments,function(){var e,r,i;return(0,n.YH)(this,function(o){switch(o.label){case 0:e=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.N3)(e.read())];case 3:if(i=(r=o.sent()).value,!r.done)return[3,5];return[4,(0,n.N3)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,n.N3)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function s(t){return(0,i.T)(null==t?void 0:t.getReader)}},91992:(t,e,r)=>{"use strict";r.d(e,{A:()=>
14o});var n=r(54945),i=r(64340);function o(t){(0,i.A)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,n.A)(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):(("string"==typeof t||"[object String]"===e)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},92848:(t,e,r)=>{"use strict";r.d(e,{c:()=>l});var n=r(94586),i=r(52249),o=r(77439),s=r(95342),a=r(18003),u=r(65402),c=r(54283),l=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var o=this,s=!function(t){return t&&t instanceof n.vU||t&&(0,u.T)(t.next)&&(0,u.T)(t.error)&&(0,u.T)(t.complete)&&(0,i.Uv)(t)}(t)?new n.Ms(t,e,r):t;return(0,c.Y)(function(){var t=o.operator,e=o.source;s.add(t?t.call(s,e):e?o._subscribe(s):o._trySubscribe(s))}),s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=h(e))(function(e,i){var o=new n.Ms({next:function(e){try{t(e)}catch(t){i(t),o.unsubscribe()}},error:i,complete:e});r.subscribe(o)})},t.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},t.prototype[o.s]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,s.m)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=h(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function h(t){var e;return null!=(e=null!=t?t:a.$.Promise)?e:Promise}},94146:(t,e,r)=>{"use strict";r.d(e,{O:()=>a});var n=r(92848),i=r(61265),o=r(91799),s=r(27742);function a(t,e,r){void 0===t&&(t=0),void 0===r&&(r=i.b);var a=-1;return null!=e&&((0,o.m)(e)?r=e:a=e),new n.c(function(e){var n=(0,s.v)(t)?t-r.now():t;n<0&&(n=0);var i=0;return r.schedule(function(){e.closed||(e.next(i++),0<=a?this.schedule(void 0,a):e.complete())},n)})}},94586:(t,e,r)=>{"use strict";r.d(e,{Ms:()=>m,vU:()=>d});var n=r(4902),i=r(65402),o=r(52249),s=r(18003),a=r(27279),u=r(35314),c=l("C",void 0,void 0);function l(t,e,r){return{kind:t,value:e,error:r}}var h=r(50543),f=r(54283),d=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,(0,o.Uv)(e)&&e.add(r)):r.destination=w,r}return(0,n.C6)(e,t),e.create=function(t,e,r){return new m(t,e,r)},e.prototype.next=function(t){this.isStopped?b(l("N",t,void 0),this):this._next(t)},e.prototype.error=function(t){this.isStopped?b(l("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?b(c,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(o.yU),p=Function.prototype.bind;function y(t,e){return p.call(t,e)}var g=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){v(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){v(t)}else v(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){v(t)}},t}(),m=function(t){function e(e,r,n){var o,a,u=t.call(this)||this;return(0,i.T)(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:u&&s.$.useDeprecatedNextContext?((a=Object.create(e)).unsubscribe=function(){return u.unsubscribe()},o={next:e.next&&y(e.next,a),error:e.error&&y(e.error,a),complete:e.complete&&y(e.complete,a)}):o=e,u.destination=new g(o),u}return(0,n.C6)(e,t),e}(d);function v(t){s.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(t):(0,a.m)(t)}function b(t,e){var r=s.$.onStoppedNotification;r&&h.f.setTimeout(function(){return r(t,e)})}var w={closed:!0,next:u.l,error:function(t){throw t},complete:u.l}},95342:(t,e,r)=>{"use strict";r.d(e,{F:()=>i,m:()=>o});var n=r(69820);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?n.D:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}},95458:(t,e,r)=>{"use strict";r.d(e,{u:()=>u});var n=r(4902),i=r(12487),o=r(60048),s=r(94586),a=r(65023);function u(t){void 0===t&&(t={});var e=t.connector,r=void 0===e?function(){return new o.B}:e,n=t.resetOnError,u=void 0===n||n,l=t.resetOnComplete,h=void 0===l||l,f=t.resetOnRefCountZero,d=void 0===f||f;return function(t){var e,n,o,l=0,f=!1,p=!1,y=function(){null==n||n.unsubscribe(),n=void 0},g=function(){y(),e=o=void 0,f=p=!1},m=function(){var t=e;g(),null==t||t.unsubscribe()};return(0,a.N)(function(t,a){l++,p||f||y();var v=o=null!=o?o:r();a.add(function(){0!=--l||p||f||(n=c(m,d))}),v.subscribe(a),!e&&l>0&&(e=new s.Ms({next:function(t){return v.next(t)},error:function(t){p=!0,y(),n=c(g,u,t),v.error(t)},complete:function(){f=!0,y(),n=c(g,h),v.complete()}}),(0,i.Tg)(t).subscribe(e))})(t)}}function c(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!0===e)return void t();if(!1!==e){var a=new s.Ms({next:function(){a.unsubscribe(),t()}});return(0,i.Tg)(e.apply(void 0,(0,n.fX)([],(0,n.zs)(r)))).subscribe(a)}}},95497:(t,e,r)=>{"use strict";r.d(e,{H:()=>o});var n=r(38376),i=r(12487);function o(t,e){return e?(0,n.c)(t,e):(0,i.Tg)(t)}},96356:(t,e,r)=>{"use strict";r.d(e,{W:()=>function t(e){return(0,o.N)(function(r,o){var s,a=null,u=!1;a=r.subscribe((0,i._)(o,void 0,void 0,function(i){s=(0,n.Tg)(e(i,t(e)(r))),a?(a.unsubscribe(),a=null,s.subscribe(o)):u=!0})),u&&(a.unsubscribe(),a=null,s.subscribe(o))})}});var n=r(12487),i=r(11357),o=r(65023)},98099:(t,e,r)=>{"use strict";r.d(e,{H:()=>o});var n=r(66305),i=r(65402);function o(t,e){return(0,i.T)(e)?(0,n.Z)(t,e,1):(0,n.Z)(t,1)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.