@plitzi/plitzi-sdk 0.32.4 → 0.32.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/plitzi-sdk.js +6 -6
- package/dist/plitzi-sdk.js.gz +0 -0
- package/package.json +37 -37
package/dist/plitzi-sdk.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import*as e from"react";import t,{Children as n,Component as r,Fragment as i,Profiler as a,Suspense as o,cloneElement as s,createContext as l,createElement as c,forwardRef as u,isValidElement as d,lazy as p,memo as h,use as f,useCallback as m,useContext as g,useEffect as y,useId as b,useImperativeHandle as v,useLayoutEffect as x,useMemo as w,useReducer as k,useRef as S,useState as N,useSyncExternalStore as T}from"react";import{createRoot as C,hydrateRoot as E}from"react-dom/client";import*as _ from"react/jsx-runtime";import{Fragment as O,jsx as A,jsxs as I}from"react/jsx-runtime";import*as z from"react-dom";import{createPortal as D}from"react-dom";import{c as P}from"react/compiler-runtime";var M=Object.create,j=Object.defineProperty,R=Object.getOwnPropertyDescriptor,L=Object.getOwnPropertyNames,F=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty,q=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),V=(e,t)=>{let n={};for(var r in e)j(n,r,{get:e[r],enumerable:!0});return t||j(n,Symbol.toStringTag,{value:"Module"}),n},B=(e,t,n)=>(n=null!=e?M(F(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=L(t),o=0,s=a.length;o<s;o++)i=a[o],$.call(e,i)||void 0===i||j(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=R(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:j(n,"default",{value:e,enumerable:!0}),e)),U=l(void 0);U.displayName="ElementContext";var H=()=>{let e=f(U);if(void 0===e)throw Error("Element data not found. Make sure the element is rendered under withElement.");return e},W=l({enabled:!1}),Y=()=>{let{enabled:e,serverData:t,refresh:n}=f(W),{id:r}=H();return{enabled:e,serverData:t,elementData:t?.[r]??null,isServerElement:!!t&&r in t,refresh:n}},G=({tag:e="div",refProp:t,style:n,className:r,otherProps:i,params:a,serverMarker:o,events:s,children:l})=>c(e,{ref:t,style:n,className:r,...i,...a,...s,...o},l);function Q(e){if("string"==typeof e||"number"==typeof e){let t=String(e);return""===t?null:/^[a-zA-Z0-9_-]+$/.test(t)||/^\d+$/.test(t)?t:null}return null}function J(e,t=!0){return e?"string"==typeof e?function(e,t){if(!e||e.startsWith(".")||e.endsWith(".")||/[^a-zA-Z0-9_.[\]-]/.test(e)||t&&(/\.\.|(\[\])/g.test(e)||(e.match(/\[/g)||[]).length!==(e.match(/\]/g)||[]).length||/\][^.[]/.test(e)))return[];let n,r=[],i=/([^.[\]]+)|\[(\d+)\]/g;for(;n=i.exec(e);)if(n[1]){if(!t&&""===n[1])continue;let e=Q(n[1]);if(null!==e)r.push(e);else if(t)return[]}else if(n[2]){let e=Q(n[2]);if(null!==e)r.push(e);else if(t)return[]}return r.length?r:[]}(e,t):Array.isArray(e)?function(e,t){if(!Array.isArray(e))return[];let n=[];for(let r of e){let e=Q(r);if(null!==e)n.push(e);else if(t)return[]}return n}(e,t):[]:[]}function K(e,t,n){if(null==e||!t)return n;let r=J(t);if(!r.length)return n;let i=e;for(let a of r){if("object"!=typeof i||!i)return n;i=Array.isArray(i)?i[Number(a)]:i[a]}return void 0===i?n:i}function X(e,t,n){let r=J(t);if(!r.length)return e;let i=e;for(let o=0;o<r.length-1;o++){let t=r[o],n=r[o+1];if("object"!=typeof i||!i)return e;let a=i;(null==a[t]||"object"!=typeof a[t])&&(a[t]=/^\d+$/.test(n)?[]:{}),i=a[t]}let a=r[r.length-1];return"object"==typeof i&&i&&(i[a]=n),e}function Z(e,t){let n={},r=Array.isArray(t)?t:[t];for(let i of r){let t=K(e,i);void 0!==t&&X(n,i,t)}return n}function ee(e,t=/* @__PURE__ */new WeakMap){if("object"!=typeof e||!e)return e;if(t.has(e))return t.get(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){let n=/* @__PURE__ */new Map;return t.set(e,n),e.forEach((e,r)=>n.set(r,ee(e,t))),n}if(e instanceof Set){let n=/* @__PURE__ */new Set;return t.set(e,n),e.forEach(e=>n.add(ee(e,t))),n}if(ArrayBuffer.isView(e)){if(e instanceof DataView){let n=new DataView(ee(e.buffer,t),e.byteOffset,e.byteLength);return t.set(e,n),n}let n=new(0,e.constructor)(e.buffer.slice(0),e.byteOffset,e.length);return t.set(e,n),n}if(e instanceof ArrayBuffer){let n=e.slice(0);return t.set(e,n),n}if(Array.isArray(e)){let n=[];return t.set(e,n),e.forEach((e,r)=>n[r]=ee(e,t)),n}let n=Object.getPrototypeOf(e),r=Object.create(n);t.set(e,r);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=ee(e[i],t));return r}var te=e=>Object.assign(Object.create(Object.getPrototypeOf(e)),e);function ne(e,t){let n=J(t),r=Array.isArray(e)?[...e]:te(e);if(!n.length)return r;let i=e,a=r;for(let o=0;o<n.length;o++){let e=n[o],t=i?.[e];if(!t||"object"!=typeof t){a[e]=t;break}let r=Array.isArray(t)?[...t]:te(t);a[e]=r,i=t,a=r}return r}function re(e,t){if(null===e)return!1;let n=J(t),r=e;for(let i of n){if(null==r||!(i in r))return!1;r=r[i]}return!0}function ie(e,t){let n=Array.isArray(t)?t:t?[t]:[];if(0===n.length)return{...e};let r=[],i=[];for(let o of n){let e=J(o);0!==e.length&&(1===e.length?r.push(e[0]):i.push(o))}let a=e;if(r.length){let e;for(let t of r)Object.prototype.hasOwnProperty.call(a,t)&&(e??=te(a),delete e[t]);e&&(a=e)}for(let o of i){let e=J(o);if(!re(a,o))continue;let t=ne(a,o),n=t;for(let r=0;r<e.length-1&&n&&"object"==typeof n;r++)n=n[e[r]];if(n&&"object"==typeof n){let t=e[e.length-1];Object.prototype.hasOwnProperty.call(n,t)&&delete n[t]}a=t}return a}function ae(e,t=0,n={}){let r,i,a,o,s,l=0,c=n.leading??!1,u=n.trailing??!0,d=n.maxWait,p=()=>Date.now();function h(t){if(!r)return a;l=t;let n=r,o=i;return r=void 0,i=void 0,a=e.apply(o,n),a}function f(e){o=setTimeout(g,e)}function m(e){if(void 0===s)return!0;let n=e-s;return n>=t||n<0||void 0!==d&&e-l>=d}function g(){let e=p();if(m(e))return b(e);f(function(e){let n=e-l,r=t-(e-(s??0));return void 0===d?r:Math.min(r,d-n)}(e))}function y(e){return l=e,f(t),c?h(e):a}function b(e){return o=void 0,u&&r?h(e):(r=i=void 0,a)}function v(...e){let n=p(),l=m(n);if(r=e,i=this,s=n,l){if(!o)return y(n);if(void 0!==d)return clearTimeout(o),f(t),h(n)}return o||f(t),a}return v.cancel=()=>{void 0!==o&&clearTimeout(o),l=0,r=s=i=o=void 0},v.flush=()=>void 0===o?a:b(p()),v.pending=()=>void 0!==o,v}function oe(e,t=0,n={}){return ae(e,t,{leading:n.leading??!0,trailing:n.trailing??!0,maxWait:t})}function se(e){return null==e||"number"!=typeof e&&"boolean"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e&&("string"==typeof e||Array.isArray(e)?0===e.length:e instanceof Map||e instanceof Set?0===e.size:"object"==typeof e&&0===Object.keys(e).length)}function le(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=le(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ce(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=le(e))&&(r&&(r+=" "),r+=t);return r}var ue=/* @__PURE__ */V({cva:()=>he,cx:()=>pe}),de=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,pe=ce,he=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return pe(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const o=de(t)||de(r);return i[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return pe(e,o,l,null==n?void 0:n.class,null==n?void 0:n.className)},{cva:fe}=ue,me=(Math.pow(10,8),6048e5),ge=6e4,ye=36e5,be=Symbol.for("constructDateFrom");function ve(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&be in e?e[be](t):e instanceof Date?new e.constructor(t):new Date(t)}function xe(e,t){return ve(t||e,e)}function we(e,t,n){const r=xe(e,n?.in);return isNaN(t)?ve(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}var ke={};function Se(){return ke}function Ne(e,t){const n=Se(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=xe(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Te(e,t){return Ne(e,{...t,weekStartsOn:1})}function Ce(e,t){const n=xe(e,t?.in),r=n.getFullYear(),i=ve(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=Te(i),o=ve(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const s=Te(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Ee(e){const t=xe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function _e(e,...t){const n=ve.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}function Oe(e,t){const n=xe(e,t?.in);return n.setHours(0,0,0,0),n}function Ae(e,t){const n=+xe(e)-+xe(t);return n<0?-1:n>0?1:n}function Ie(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+xe(e)));var t}function ze(e,t){return+xe(e)-+xe(t)}function De(e,t,n){const[r,i,a]=_e(n?.in,e,e,t),o=Ae(i,a),s=Math.abs(function(e,t){const[n,r]=_e(void 0,e,t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(i,a));if(s<1)return 0;1===i.getMonth()&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*s);let l=Ae(i,a)===-o;(function(e,t){const n=xe(e,t?.in);return+function(e,t){const n=xe(e,t?.in);return n.setHours(23,59,59,999),n}(n,t)===+function(e,t){const n=xe(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}(n,t)})(r)&&1===s&&1===Ae(r,a)&&(l=!1);const c=o*(s-+l);return 0===c?0:c}var Pe={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 Me(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var je={date:Me({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Me({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:Me({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Re={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Le(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var Fe={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Le({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Le({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Le({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:Le({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:Le({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"})};function $e(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(o)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(o));let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(o.length)}}}function qe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];return o=n.valueCallback?n.valueCallback(o):o,{value:o,rest:t.slice(i.length)}}}var Ve={ordinalNumber:qe({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$e({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:$e({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:e=>e+1}),month:$e({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:$e({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:$e({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"})},Be={code:"en-US",formatDistance:(e,t,n)=>{let r;const i=Pe[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:je,formatRelative:(e,t,n,r)=>Re[e],localize:Fe,match:Ve,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ue(e,t){const n=xe(e,t?.in),r=+Te(n)-+function(e,t){const n=Ce(e,t),r=ve(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Te(r)}(n);return Math.round(r/me)+1}function He(e,t){const n=xe(e,t?.in),r=n.getFullYear(),i=Se(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=ve(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=Ne(o,t),l=ve(t?.in||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=Ne(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function We(e,t){const n=xe(e,t?.in),r=+Ne(n,t)-+function(e,t){const n=Se(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=He(e,t),a=ve(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Ne(a,t)}(n,t);return Math.round(r/me)+1}function Ye(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}var Ge={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ye("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Ye(n+1,2)},d:(e,t)=>Ye(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Ye(e.getHours()%12||12,t.length),H:(e,t)=>Ye(e.getHours(),t.length),m:(e,t)=>Ye(e.getMinutes(),t.length),s:(e,t)=>Ye(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Ye(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Qe={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Ge.y(e,t)},Y:function(e,t,n,r){const i=He(e,r),a=i>0?i:1-i;return"YY"===t?Ye(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Ye(a,t.length)},R:function(e,t){return Ye(Ce(e),t.length)},u:function(e,t){return Ye(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ye(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ye(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ge.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ye(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=We(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):Ye(i,t.length)},I:function(e,t,n){const r=Ue(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Ye(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Ge.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=xe(e,t?.in);return function(e,t){const[n,r]=_e(void 0,e,t),i=Oe(n),a=Oe(r),o=+i-Ee(i),s=+a-Ee(a);return Math.round((o-s)/864e5)}(n,function(e){const t=xe(e,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Ye(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ye(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ye(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return Ye(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Ge.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ge.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ye(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ye(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ge.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ge.s(e,t)},S:function(e,t){return Ge.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ke(r);case"XXXX":case"XX":return Xe(r);default:return Xe(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ke(r);case"xxxx":case"xx":return Xe(r);default:return Xe(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Je(r,":");default:return"GMT"+Xe(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Je(r,":");default:return"GMT"+Xe(r,":")}},t:function(e,t,n){return Ye(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return Ye(+e,t.length)}};function Je(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+Ye(a,2)}function Ke(e,t){return e%60==0?(e>0?"-":"+")+Ye(Math.abs(e)/60,2):Xe(e,t)}function Xe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Ye(Math.trunc(r/60),2)+t+Ye(r%60,2)}var Ze=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},et=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},tt={p:et,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Ze(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",Ze(r,t)).replace("{{time}}",et(i,t))}},nt=/^D+$/,rt=/^Y+$/,it=["D","DD","YY","YYYY"];function at(e){return nt.test(e)}function ot(e){return rt.test(e)}function st(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(it.includes(e))throw new RangeError(r)}var lt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ct=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ut=/^'([^]*?)'?$/,dt=/''/g,pt=/[a-zA-Z]/;function ht(e,t,n){const r=Se(),i=n?.locale??r.locale??Be,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=xe(e,n?.in);if(!Ie(s))throw new RangeError("Invalid time value");let l=t.match(ct).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,tt[t])(e,i.formatLong):e}).join("").match(lt).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ft(e)};if(Qe[t])return{isToken:!0,value:e};if(t.match(pt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&ot(a)||!n?.useAdditionalDayOfYearTokens&&at(a))&&st(a,t,String(e)),(0,Qe[a[0]])(s,a,i.localize,c)}).join("")}function ft(e){const t=e.match(ut);return t?t[1].replace(dt,"'"):e}function mt(e,t){return function(e,t,n){const r=Se(),i=n?.locale??r.locale??Be,a=Ae(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:a}),[s,l]=_e(n?.in,...a>0?[t,e]:[e,t]),c=function(e,t,n){const r=ze(e,t)/1e3;return(i=n?.roundingMethod,e=>{const t=(i?Math[i]:Math.trunc)(e);return 0===t?0:t})(r);var i}(l,s),u=(Ee(l)-Ee(s))/1e3,d=Math.round((c-u)/60);let p;if(d<2)return n?.includeSeconds?c<5?i.formatDistance("lessThanXSeconds",5,o):c<10?i.formatDistance("lessThanXSeconds",10,o):c<20?i.formatDistance("lessThanXSeconds",20,o):c<40?i.formatDistance("halfAMinute",0,o):c<60?i.formatDistance("lessThanXMinutes",1,o):i.formatDistance("xMinutes",1,o):0===d?i.formatDistance("lessThanXMinutes",1,o):i.formatDistance("xMinutes",d,o);if(d<45)return i.formatDistance("xMinutes",d,o);if(d<90)return i.formatDistance("aboutXHours",1,o);if(d<1440){const e=Math.round(d/60);return i.formatDistance("aboutXHours",e,o)}if(d<2520)return i.formatDistance("xDays",1,o);if(d<43200){const e=Math.round(d/1440);return i.formatDistance("xDays",e,o)}if(d<86400)return p=Math.round(d/43200),i.formatDistance("aboutXMonths",p,o);if(p=De(l,s),p<12){const e=Math.round(d/43200);return i.formatDistance("xMonths",e,o)}{const e=p%12,t=Math.trunc(p/12);return e<3?i.formatDistance("aboutXYears",t,o):e<9?i.formatDistance("overXYears",t,o):i.formatDistance("almostXYears",t+1,o)}}(e,function(e){return ve(e,Date.now())}(e),t)}var gt=class{subPriority=0;validate(e,t){return!0}},yt=class extends gt{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},bt=class extends gt{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>ve(t,e))}set(e,t){return t.timestampIsSet?e:ve(e,function(e,t){const n=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):ve(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,this.context))}},vt=class{run(e,t,n,r){const i=this.parse(e,t,n,r);return i?{setter:new yt(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},xt=/^(1[0-2]|0?\d)/,wt=/^(3[0-1]|[0-2]?\d)/,kt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,St=/^(5[0-3]|[0-4]?\d)/,Nt=/^(2[0-3]|[0-1]?\d)/,Tt=/^(2[0-4]|[0-1]?\d)/,Ct=/^(1[0-1]|0?\d)/,Et=/^(1[0-2]|0?\d)/,_t=/^[0-5]?\d/,Ot=/^[0-5]?\d/,At=/^\d/,It=/^\d{1,2}/,zt=/^\d{1,3}/,Dt=/^\d{1,4}/,Pt=/^-?\d+/,Mt=/^-?\d/,jt=/^-?\d{1,2}/,Rt=/^-?\d{1,3}/,Lt=/^-?\d{1,4}/,Ft=/^([+-])(\d{2})(\d{2})?|Z/,$t=/^([+-])(\d{2})(\d{2})|Z/,qt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Vt=/^([+-])(\d{2}):(\d{2})|Z/,Bt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ut(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Ht(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Wt(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*ye+a*ge+1e3*o),rest:t.slice(n[0].length)}}function Yt(e){return Ht(Pt,e)}function Gt(e,t){switch(e){case 1:return Ht(At,t);case 2:return Ht(It,t);case 3:return Ht(zt,t);case 4:return Ht(Dt,t);default:return Ht(new RegExp("^\\d{1,"+e+"}"),t)}}function Qt(e,t){switch(e){case 1:return Ht(Mt,t);case 2:return Ht(jt,t);case 3:return Ht(Rt,t);case 4:return Ht(Lt,t);default:return Ht(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Jt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Kt(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i}function Xt(e){return e%400==0||e%4==0&&e%100!=0}var Zt=[31,28,31,30,31,30,31,31,30,31,30,31],en=[31,29,31,30,31,30,31,31,30,31,30,31];function tn(e,t,n){const r=Se(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=xe(e,n?.in),o=a.getDay(),s=7-i;return we(a,t<0||t>6?t-(o+s)%7:((t%7+7)%7+s)%7-(o+s)%7,n)}var nn={G:new class extends vt{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends vt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Ut(Gt(4,e),r);case"yo":return Ut(n.ordinalNumber(e,{unit:"year"}),r);default:return Ut(Gt(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=Kt(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},Y:new class extends vt{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Ut(Gt(4,e),r);case"Yo":return Ut(n.ordinalNumber(e,{unit:"year"}),r);default:return Ut(Gt(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const i=He(e,r);if(n.isTwoDigitYear){const t=Kt(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Ne(e,r)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Ne(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends vt{priority=130;parse(e,t){return Qt("R"===t?4:t.length,e)}set(e,t,n){const r=ve(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Te(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends vt{priority=130;parse(e,t){return Qt("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends vt{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return Gt(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends vt{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return Gt(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends vt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return Ut(Ht(xt,e),r);case"MM":return Ut(Gt(2,e),r);case"Mo":return Ut(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends vt{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Ut(Ht(xt,e),r);case"LL":return Ut(Gt(2,e),r);case"Lo":return Ut(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends vt{priority=100;parse(e,t,n){switch(t){case"w":return Ht(St,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Ne(function(e,t,n){const r=xe(e,n?.in),i=We(r,n)-t;return r.setDate(r.getDate()-7*i),xe(r,n?.in)}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends vt{priority=100;parse(e,t,n){switch(t){case"I":return Ht(St,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Te(function(e,t,n){const r=xe(e,n?.in),i=Ue(r,n)-t;return r.setDate(r.getDate()-7*i),r}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends vt{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Ht(wt,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Gt(t.length,e)}}validate(e,t){const n=Xt(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=en[r]:t>=1&&t<=Zt[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends vt{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Ht(kt,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Gt(t.length,e)}}validate(e,t){return Xt(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends vt{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=tn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends vt{priority=90;parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Ut(Gt(t.length,e),i);case"eo":return Ut(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=tn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends vt{priority=90;parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Ut(Gt(t.length,e),i);case"co":return Ut(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=tn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends vt{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return Gt(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ut(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Ut(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Ut(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Ut(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=function(e,t,n){const r=xe(e,n?.in);return we(r,t-function(e,t){const n=xe(e,t?.in).getDay();return 0===n?7:n}(r,n),n)}(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends vt{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends vt{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends vt{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends vt{priority=70;parse(e,t,n){switch(t){case"h":return Ht(Et,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends vt{priority=70;parse(e,t,n){switch(t){case"H":return Ht(Nt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends vt{priority=70;parse(e,t,n){switch(t){case"K":return Ht(Ct,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends vt{priority=70;parse(e,t,n){switch(t){case"k":return Ht(Tt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends vt{priority=60;parse(e,t,n){switch(t){case"m":return Ht(_t,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends vt{priority=50;parse(e,t,n){switch(t){case"s":return Ht(Ot,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends vt{priority=30;parse(e,t){return Ut(Gt(t.length,e),e=>Math.trunc(e*Math.pow(10,3-t.length)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends vt{priority=10;parse(e,t){switch(t){case"X":return Wt(Ft,e);case"XX":return Wt($t,e);case"XXXX":return Wt(qt,e);case"XXXXX":return Wt(Bt,e);default:return Wt(Vt,e)}}set(e,t,n){return t.timestampIsSet?e:ve(e,e.getTime()-Ee(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends vt{priority=10;parse(e,t){switch(t){case"x":return Wt(Ft,e);case"xx":return Wt($t,e);case"xxxx":return Wt(qt,e);case"xxxxx":return Wt(Bt,e);default:return Wt(Vt,e)}}set(e,t,n){return t.timestampIsSet?e:ve(e,e.getTime()-Ee(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends vt{priority=40;parse(e){return Yt(e)}set(e,t,n){return[ve(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends vt{priority=20;parse(e){return Yt(e)}set(e,t,n){return[ve(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},rn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,an=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,on=/^'([^]*?)'?$/,sn=/''/g,ln=/\S/,cn=/[a-zA-Z]/;function un(e){return e.match(on)[1].replace(sn,"'")}function dn(e,t){const n=()=>ve(t?.in,NaN),r=t?.additionalDigits??2,i=function(e){const t={},n=e.split(pn.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],pn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(pn.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const e=pn.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(i.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);a=function(e,t){if(null===t)/* @__PURE__ */return new Date(NaN);const n=e.match(hn);if(!n)/* @__PURE__ */return new Date(NaN);const r=!!n[4],i=gn(n[1]),a=gn(n[2])-1,o=gn(n[3]),s=gn(n[4]),l=gn(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const r=/* @__PURE__ */new Date(0);r.setUTCFullYear(e,0,4);const i=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(t,s,l):/* @__PURE__ */new Date(NaN);{const e=/* @__PURE__ */new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(bn[t]||(vn(e)?29:28))}(t,a,o)&&function(e,t){return t>=1&&t<=(vn(e)?366:365)}(t,i)?(e.setUTCFullYear(t,a,Math.max(i,o)),e):/* @__PURE__ */new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return n();const o=+a;let s,l=0;if(i.time&&(l=function(e){const t=e.match(fn);if(!t)return NaN;const n=yn(t[1]),r=yn(t[2]),i=yn(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*ye+r*ge+1e3*i:NaN}(i.time),isNaN(l)))return n();if(!i.timezone){const e=new Date(o+l),n=xe(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return s=function(e){if("Z"===e)return 0;const t=e.match(mn);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*ye+i*ge):NaN}(i.timezone),isNaN(s)?n():xe(o+l+s,t?.in)}var pn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},hn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,fn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,mn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function gn(e){return e?parseInt(e):1}function yn(e){return e&&parseFloat(e.replace(",","."))||0}var bn=[31,null,31,30,31,30,31,31,30,31,30,31];function vn(e){return e%400==0||e%4==0&&e%100!=0}var xn=e=>{let t;return t="number"==typeof e?e<1e12?/* @__PURE__ */new Date(1e3*e):new Date(e):"string"==typeof e?dn(e):e,Math.floor((n=t,+xe(n)/1e3)).toString();var n},wn=e=>!("string"!=typeof e||!/^\d{4}-\d{2}-\d{2}$/.test(e))&&Ie(function(e,t,n,r){const i=()=>ve(r?.in||n,NaN),a=Object.assign({},Se()),o=r?.locale??a.locale??Be,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():xe(n,r?.in);const c={firstWeekContainsDate:s,weekStartsOn:l,locale:o},u=[new bt(r?.in,n)],d=t.match(an).map(e=>{const t=e[0];return t in tt?(0,tt[t])(e,o.formatLong):e}).join("").match(rn),p=[];for(let g of d){!r?.useAdditionalWeekYearTokens&&ot(g)&&st(g,t,e),!r?.useAdditionalDayOfYearTokens&&at(g)&&st(g,t,e);const n=g[0],a=nn[n];if(a){const{incompatibleTokens:t}=a;if(Array.isArray(t)){const e=p.find(e=>t.includes(e.token)||e.token===n);if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${g}\` at the same time`)}else if("*"===a.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);p.push({token:n,fullToken:g});const r=a.run(e,g,o.match,c);if(!r)return i();u.push(r.setter),e=r.rest}else{if(n.match(cn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===g?g="'":"'"===n&&(g=un(g)),0!==e.indexOf(g))return i();e=e.slice(g.length)}}if(e.length>0&&ln.test(e))return i();const h=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]);let f=xe(n,r?.in);if(isNaN(+f))return i();const m={};for(const g of h){if(!g.validate(f,c))return i();const e=g.set(f,m,c);Array.isArray(e)?(f=e[0],Object.assign(m,e[1])):f=e}return f}(e,"yyyy-MM-dd",/* @__PURE__ */new Date)),kn=Symbol.for("immer-nothing"),Sn=Symbol.for("immer-draftable"),Nn=Symbol.for("immer-state");function Tn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Cn=Object,En=Cn.getPrototypeOf,_n="constructor",On="prototype",An="configurable",In="enumerable",zn="writable",Dn="value",Pn=e=>!!e&&!!e[Nn];function Mn(e){return!!e&&(Ln(e)||Un(e)||!!e[Sn]||!!e[_n]?.[Sn]||Hn(e)||Wn(e))}var jn=Cn[On][_n].toString(),Rn=/* @__PURE__ */new WeakMap;function Ln(e){if(!e||!Yn(e))return!1;const t=En(e);if(null===t||t===Cn[On])return!0;const n=Cn.hasOwnProperty.call(t,_n)&&t[_n];if(n===Object)return!0;if(!Gn(n))return!1;let r=Rn.get(n);return void 0===r&&(r=Function.toString.call(n),Rn.set(n,r)),r===jn}function Fn(e,t,n=!0){0===$n(e)?(n?Reflect.ownKeys(e):Cn.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function $n(e){const t=e[Nn];return t?t.type_:Un(e)?1:Hn(e)?2:Wn(e)?3:0}var qn=(e,t,n=$n(e))=>2===n?e.has(t):Cn[On].hasOwnProperty.call(e,t),Vn=(e,t,n=$n(e))=>2===n?e.get(t):e[t],Bn=(e,t,n,r=$n(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n},Un=Array.isArray,Hn=e=>e instanceof Map,Wn=e=>e instanceof Set,Yn=e=>"object"==typeof e,Gn=e=>"function"==typeof e,Qn=e=>"boolean"==typeof e,Jn=e=>e.copy_||e.base_,Kn=e=>e.modified_?e.copy_:e.base_;function Xn(e,t){if(Hn(e))return new Map(e);if(Wn(e))return new Set(e);if(Un(e))return Array[On].slice.call(e);const n=Ln(e);if(!0===t||"class_only"===t&&!n){const t=Cn.getOwnPropertyDescriptors(e);delete t[Nn];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],a=t[i];!1===a[zn]&&(a[zn]=!0,a[An]=!0),(a.get||a.set)&&(t[i]={[An]:!0,[zn]:!0,[In]:a[In],[Dn]:e[i]})}return Cn.create(En(e),t)}{const t=En(e);if(null!==t&&n)return{...e};const r=Cn.create(t);return Cn.assign(r,e)}}function Zn(e,t=!1){return tr(e)||Pn(e)||!Mn(e)||($n(e)>1&&Cn.defineProperties(e,{set:er,add:er,clear:er,delete:er}),Cn.freeze(e),t&&Fn(e,(e,t)=>{Zn(t,!0)},!1)),e}var er={[Dn]:function(){Tn(2)}};function tr(e){return null===e||!Yn(e)||Cn.isFrozen(e)}var nr="MapSet",rr="Patches",ir="ArrayMethods",ar={};function or(e){const t=ar[e];return t||Tn(0),t}var sr,lr=e=>!!ar[e],cr=()=>sr;function ur(e,t){t&&(e.patchPlugin_=or(rr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function dr(e){pr(e),e.drafts_.forEach(fr),e.drafts_=null}function pr(e){e===sr&&(sr=e.parent_)}var hr=e=>sr={drafts_:[],parent_:sr,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:/* @__PURE__ */new Set,processedForPatches_:/* @__PURE__ */new Set,mapSetPlugin_:lr(nr)?or(nr):void 0,arrayMethodsPlugin_:lr(ir)?or(ir):void 0};function fr(e){const t=e[Nn];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function mr(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(void 0!==e&&e!==n){n[Nn].modified_&&(dr(t),Tn(4)),Mn(e)&&(e=gr(t,e));const{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Nn].base_,e,t)}else e=gr(t,n);return function(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zn(t,n)}(t,e,!0),dr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kn?e:void 0}function gr(e,t){if(tr(t))return t;const n=t[Nn];if(!n)return kr(t,e.handledSet_,e);if(!br(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);wr(n,e)}return n.copy_}function yr(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var br=(e,t)=>e.scope_===t,vr=[];function xr(e,t,n,r){const i=Jn(e),a=e.type_;if(void 0!==r&&Vn(i,r,a)===t)return void Bn(i,r,n,a);if(!e.draftLocations_){const t=e.draftLocations_=/* @__PURE__ */new Map;Fn(i,(e,n)=>{if(Pn(n)){const r=t.get(n)||[];r.push(e),t.set(n,r)}})}const o=e.draftLocations_.get(t)??vr;for(const s of o)Bn(i,s,n,a)}function wr(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const r=n.getPath(e);r&&n.generatePatches_(e,r,t)}yr(e)}}function kr(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Pn(e)||t.has(e)||!Mn(e)||tr(e)||(t.add(e),Fn(e,(r,i)=>{if(Pn(i)){const t=i[Nn];br(t,n)&&(Bn(e,r,Kn(t),e.type_),yr(t))}else Mn(i)&&kr(i,t,n)})),e}var Sr={get(e,t){if(t===Nn)return e;if("constructor"===t||"__proto__"===t){const n=Jn(e)[t];return new Proxy(n||{},{get:(e,t)=>"__proto__"===t||"prototype"===t?Object.freeze(/* @__PURE__ */Object.create(null)):Reflect.get(e,t),set:()=>!0,apply:(e,t,n)=>Reflect.apply(e,t,n)})}let n=e.scope_.arrayMethodsPlugin_;const r=1===e.type_&&"string"==typeof t;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Jn(e);if(!qn(i,t,e.type_))return function(e,t,n){const r=Cr(t,n);return r?Dn in r?r[Dn]:r.get?.call(e.draft_):void 0}(e,i,t);const a=i[t];if(e.finalized_||!Mn(a))return a;if(r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return a;if(a===Tr(e.base_,t)){_r(e);const n=1===e.type_?+t:t,r=Or(e.scope_,a,e,n);return e.copy_[n]=r}return a},has:(e,t)=>"constructor"!==t&&"__proto__"!==t&&"prototype"!==t&&t in Jn(e),ownKeys:e=>Reflect.ownKeys(Jn(e)),set(e,t,n){if("constructor"===t||"__proto__"===t||"prototype"===t)return!0;const r=Cr(Jn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Tr(Jn(e),t),i=r?.[Nn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||qn(e.base_,t,e.type_)))return!0;_r(e),Er(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),function(e,t,n){const{scope_:r}=e;if(Pn(n)){const i=n[Nn];br(i,r)&&i.callbacks_.push(function(){_r(e),xr(e,n,Kn(i),t)})}else Mn(n)&&e.callbacks_.push(function(){const i=Jn(e);3===e.type_?i.has(n)&&kr(n,r.handledSet_,r):Vn(i,t,e.type_)===n&&r.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&kr(Vn(e.copy_,t,e.type_),r.handledSet_,r)})}(e,t,n)),!0},deleteProperty:(e,t)=>(_r(e),void 0!==Tr(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),Er(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Jn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[zn]:!0,[An]:1!==e.type_||"length"!==t,[In]:r[In],[Dn]:n[t]}:r},defineProperty(){Tn(11)},getPrototypeOf:e=>En(e.base_),setPrototypeOf(){Tn(12)}},Nr={};for(let NL in Sr){let e=Sr[NL];Nr[NL]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function Tr(e,t){const n=e[Nn];return(n?Jn(n):e)[t]}function Cr(e,t){if(!(t in e))return;let n=En(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=En(n)}}function Er(e){e.modified_||(e.modified_=!0,e.parent_&&Er(e.parent_))}function _r(e){e.copy_||(e.assigned_=/* @__PURE__ */new Map,e.copy_=Xn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Or(e,t,n,r){const[i,a]=Hn(t)?or(nr).proxyMap_(t,n):Wn(t)?or(nr).proxySet_(t,n):function(e,t){const n=Un(e),r={type_:n?1:0,scope_:t?t.scope_:cr(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,a=Sr;n&&(i=[r],a=Nr);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}(t,n);return(n?.scope_??cr()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&void 0!==r?function(e,t,n){e.callbacks_.push(function(r){const i=t;if(!i||!br(i,r))return;r.mapSetPlugin_?.fixSetContents(i);const a=Kn(i);xr(e,i.draft_??i,a,n),wr(i,r)})}(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Ar(e){if(!Mn(e)||tr(e))return e;const t=e[Nn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Xn(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Xn(e,!0);return Fn(n,(e,t)=>{Bn(n,e,Ar(t))},r),t&&(t.finalized_=!1),n}Nr.deleteProperty=function(e,t){return Nr.set.call(this,e,t,void 0)},Nr.set=function(e,t,n){return Sr.set.call(this,e[0],t,n,e[0])};var Ir=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Gn(e)&&!Gn(t)){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}let r;if(Gn(t)||Tn(6),void 0===n||Gn(n)||Tn(7),Mn(e)){const i=hr(this),a=Or(0,e,void 0);let o=!0;try{r=t(a),o=!1}finally{o?dr(i):pr(i)}return ur(i,n),mr(r,i)}if(!e||!Yn(e)){if(r=t(e),void 0===r&&(r=e),r===kn&&(r=void 0),this.autoFreeze_&&Zn(r,!0),n){const t=[],i=[];or(rr).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Tn(1)},this.produceWithPatches=(e,t)=>{if(Gn(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Qn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;Mn(e)||Tn(8),Pn(e)&&(Pn(t=e)||Tn(10),e=Ar(t));const n=hr(this),r=Or(0,e,void 0);return r[Nn].isManual_=!0,pr(n),r}finishDraft(e,t){const n=e&&e[Nn];n&&n.isManual_||Tn(9);const{scope_:r}=n;return ur(r,t),mr(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=or(rr).applyPatches_;return Pn(e)?r(e,t):this.produce(e,e=>r(e,t))}},zr=Ir.produce,Dr=({id:e,className:t,previewMode:n,baseElementId:r,plitziElementLayout:i,definition:a,elementState:o})=>{let{items:s}=a,l=o.visibility;return w(()=>ce(t,{"plitzi-component--hidden":!1===l||"false"===l,"plitzi-component":!n&&!i,"plitzi-component--layout":!n&&!!i,with__container:!n&&!!s,"container--empty":!n&&!!s&&0===s.length&&!i,"container--base-element":!n&&!!s&&r===e,"plitzi-component--layout-body":i&&e===i.containerId},a.styleSelectors.base),[t,l,n,i,s,r,e,a.styleSelectors.base])},Pr={onLoad:{action:"onLoad",title:"On Load",type:"trigger",preview:{},params:{}},onClick:{action:"onClick",title:"On Click",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onMouseEnter:{action:"onMouseEnter",title:"On Mouse Enter",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onMouseLeave:{action:"onMouseLeave",title:"On Mouse Leave",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onHover:{action:"onHover",title:"On Hover",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onFocus:{action:"onFocus",title:"On Focus",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onBlur:{action:"onBlur",title:"On Blur",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}}},Mr=["onClick","onHover","onFocus","onBlur","onMouseEnter","onMouseLeave"],jr=l(void 0);jr.displayName="StoreContext";var Rr=l(void 0);Rr.displayName="StoreRegistryContext";var Lr=/* @__PURE__ */new Map,Fr=e=>{let t=Lr.get(e);return void 0===t&&(t=e.split("."),Lr.size>=512&&Lr.delete(Lr.keys().next().value),Lr.set(e,t)),t},$r=/* @__PURE__ */new Map;function qr(e,t){let n=Array.isArray(t);if("string"!=typeof t&&!n||n&&!t.length||"string"==typeof t&&!t)return e;if("string"==typeof t&&-1===t.indexOf("."))return"object"==typeof e&&e&&t in e?e[t]:void 0;if("string"==typeof t)return(e=>{let t=$r.get(e);if(!t){if(t=(e=>{if(1===e.length){let t=e[0];return e=>"object"==typeof e&&e&&t in e?e[t]:void 0}return t=>{let n=t;for(let r=0;r<e.length;r++){if("object"!=typeof n||!n)return;n=n[e[r]]}return n}})(Fr(e)),$r.size>=512){let e=$r.keys().next().value;$r.delete(e)}$r.set(e,t)}return t})(t)(e);let r=e;for(let i of t){if("object"!=typeof r||!r||!(i in r))return;r=r[i]}return r}var Vr=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0};function Br(e,t,n){let r=g(jr),i=g(Rr);if(e)return e;if(void 0!==n){let e=((e,t)=>{for(let n=e;n;n=n.parent)if(n.id===t)return n.store})(i,n);if(!e)throw Error(`${t}: no store registered with id "${n}" in any ancestor StoreProvider`);return e}if(!r)throw Error(`${t} must be used inside a StoreProvider`);return r}function Ur(e,t,n){let r=t.current.length;return w(()=>Array.from({length:r},(n,r)=>n=>{let i=t.current[r],a="function"==typeof i?i(e.getState()):i;e.setState(a,n)}),[e,n])}var Hr=typeof window<"u"?x:y,Wr=(e,t)=>{if(Object.is(e,t))return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!Object.is(e[i],t[i]))return!1;return!0};function Yr(e,t,n={}){let r=n,i=Br(r.store,"useStoreSync",r.storeId);Array.isArray(e)?function(e,t,n,r){let{mode:i="sync",enabled:a=!0,syncStrategy:o="afterRender"}=r,s=t.map((e,t)=>"function"==typeof e?`fn_${t}`:e).join("|"),l=S(!1),c=!l.current;l.current=!0;let u=S(void 0),d=a&&(c||"sync"===i&&n.some((e,t)=>!Object.is(u.current?.[t],e))),p=()=>{u.current=n,e.batch(()=>{t.forEach((t,r)=>{let i="function"==typeof t?t(e.getState()):t;e.setState(i,n[r])})})};"render"===o?d&&p():(d&&c&&p(),Hr(()=>{d&&!c&&p()},[d,n,s]))}(i,e,t,n):function(e,t,n,r){let i=void 0===t,a="function"==typeof t,o=i?Wr:Object.is,{mode:s="sync",enabled:l=!0,equalityFn:c=o,syncStrategy:u="afterRender"}=r,d=S(void 0),p=S(!1),h=!p.current;p.current=!0;let f=d.current,m=l&&(h||"sync"===s&&(void 0===f||!c(f,n))),g=(r=!0)=>{if(d.current=n,i)e.setState(void 0,e=>({...e,...n}),r);else if(a){let i=t(e.getState());e.setState(i,n,r)}else e.setState(t,n,r)};"render"===u?m&&g():(m&&h&&g(!1),Hr(()=>{m&&!h&&g()},[m,n,t]))}(i,e,t,n)}var Gr=()=>{},Qr=class{items=[];notifying=0;dead=0;get length(){return this.items.length-this.dead}add(e){return this.items.push(e),()=>this.remove(e)}remove(e){let t=this.items.indexOf(e);if(-1===t)return;if(this.notifying>0)return this.items[t]=Gr,void this.dead++;let n=this.items.pop();t<this.items.length&&(this.items[t]=n)}begin(){this.notifying++}end(){0===--this.notifying&&this.dead>0&&this.compact()}forEach(e,t){this.begin();try{let n,{items:r}=this,i=r.length,a=0,o=!1;for(;a<i;)try{for(;a<i;a++)e(r[a])}catch(e){o||(o=!0,n=e),a++}if(o){if(!t)throw n;t(n)}}finally{this.end()}}clear(){if(this.notifying>0){let{items:e}=this;for(let t=0,n=e.length;t<n;t++)e[t]=Gr;return void(this.dead=e.length)}this.items.length=0,this.dead=0}compact(){let{items:e}=this,t=0;for(let n=0;n<e.length;n++)e[n]!==Gr&&(e[t++]=e[n]);e.length=t,this.dead=0}},Jr=e=>"object"==typeof e&&!!e&&!Array.isArray(e),Kr=(e,t)=>{if(!Jr(e)||!Jr(t))return t;let n={...e};for(let r of Object.keys(t))"__proto__"!==r&&(n[r]=r in e?Kr(e[r],t[r]):t[r]);return n};var Xr,Zr=Symbol("unchanged"),ei=e=>/^\d+$/.test(e),ti=e=>Array.isArray(e)?e.slice():{...e},ni=(e,t,n,r,i)=>{let a=t[n],o="object"==typeof e&&e?e:{};if(n===t.length-1){let e=o[a],t=i?r(e):r;if(e===t)return Zr;let n=ti(o);return n[a]=t,n}let s=ni(o[a],t,n+1,r,i);if(s===Zr)return Zr;let l=ti(o);return l[a]=s,l},ri=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,ii=e=>ri.test(e)?`.${e}`:`[${JSON.stringify(e)}]`,ai=e=>ri.test(e)?e:JSON.stringify(e),oi=e=>{let t=e.length,n="";for(let a=0;a<t-1;a++){let t=0===a?"o":"_"+(a-1);n+=`var _${a}=${t}==null?void 0:${t}${ii(e[a])};\n`}let r=t>1?"_"+(t-2):"o";n+=`var _p=${r}==null?void 0:${r}${ii(e[t-1])};\n`,n+="var _v=f?v(_p):v;\nif(_p===_v)return null;\n";let i="_v";for(let a=t-1;a>=0;a--)i=`{...${0===a?"o":`(_${a-1}||{})`},${ai(e[a])}:${i}}`;return n+=`return ${i};`,Function("o","v","f",n)},si=/* @__PURE__ */new Map,li=(e,t,n,r,i)=>{let a=((e,t)=>{if(!(()=>{if(typeof window>"u")return!1;if(void 0===Xr)try{oi(["x","y"])({x:{}},1,!1),Xr=!0}catch{Xr=!1}return Xr})())return;let n=si.get(e);if(n)return n;if(t.some(ei))return;let r=oi(t);return si.size>=256&&si.delete(si.keys().next().value),si.set(e,r),r})(t,n);if(a){let t=a(e,r,i);return null===t?Zr:t}return ni(e,n,0,r,i)},ci=e=>"number"==typeof e||""===e||isNaN(Number(e))?e:Number(e),ui=e=>Array.isArray(e)?e.slice():{...e},di=(e,t,n,r)=>{let i=ci(t[n]),a=ui(e);return a[i]=n===t.length-1?r:di(e[i]??{},t,n+1,r),a},pi=Symbol("@plitzi/nexus/cancel"),hi=Symbol("no-error"),fi=(e,t,n)=>{let r=0,i=hi;for(;r<n;)try{for(;r<n;r++)e[r](t)}catch(e){i===hi&&(i=e),r++}return i},mi="__proto__";function gi(e){let{getOwnState:t,getOwnSnapshot:n,setOwnState:r,mutateOwnKey:i,parent:a,listeners:o,pathListeners:s,changeListeners:l,interceptors:c,reportError:u,invalidateDescendants:d,onDelegateToParent:p}=e,h=(e,t,n)=>{let r=t;for(let i=0,a=c.length;i<a;i++){let a;try{a=c[i]({path:e,value:r,prev:n})}catch(t){return u(t,"beforeChange",e),pi}if(a===pi)return pi;void 0!==a&&(r=a)}return r},f=0,m=/* @__PURE__ */new Set,g=(e,t)=>{let{items:n}=e;if(f>0)for(let r=0,i=n.length;r<i;r++)m.add(n[r]);else if(0!==n.length){e.begin();try{let e=fi(n,t,n.length);e!==hi&&u(e,"notify",t)}finally{e.end()}}},y=(e,t,n)=>{let r={path:e,prev:t,next:n,prevValue:void 0===e?t:qr(t,e),nextValue:void 0===e?n:qr(n,e)},{items:i}=l;l.begin();try{let t=fi(i,r,i.length);t!==hi&&u(t,"onChange",e)}finally{l.end()}},b=(e,t,n,r)=>{let i=s.getDescendants(e);if(i)for(let a of i){let i=s.direct.get(a);if(!i)continue;let o=Fr(a).slice(r);qr(t,o)!==qr(n,o)&&g(i,e)}};return{setState:(e,u,f=!0)=>{let m=t();if("string"==typeof e&&-1!==e.indexOf(mi)&&-1!==Fr(e).indexOf(mi))throw Error(`@plitzi/nexus: refused to write to unsafe path "${e}" (\`__proto__\` segment)`);if(a&&"string"==typeof e&&!(-1===e.indexOf(".")?Object.hasOwn(m,e):((e,t)=>{let n=e;for(let r=0,i=t.length;r<i;r++){if("object"!=typeof n||!n||!Object.hasOwn(n,t[r]))return!1;n=n[t[r]]}return!0})(m,Fr(e))))return p?.(e),void a.setState(e,u,f);if("string"!=typeof e)return void((e,t,n,i)=>{let a=e?qr(n,e):void 0,u=e?"function"==typeof t?t(a):t:void 0;if(e&&c.length>0){let t=h(e,u,a);if(t===pi)return;u=t}if(e&&a===u)return;let p=e?((e,t,n)=>{if("string"==typeof t){if(!t)return n;let r=Fr(t);if(1===r.length){let t=ui(e);return t[ci(r[0])]=n,t}return di(e,r,0,n)}return Array.isArray(t)&&t.length?di(e,t,0,n):n})(n,e,u):"function"==typeof t?t(n):{...n,...t};if(!e&&c.length>0){let e=h(void 0,p,n);if(e===pi)return;p=e}p!==n&&(r(p),l.length>0&&y(e,n,p),d(),i&&(g(o,e),s.size>0&&s.direct.forEach((t,r)=>{qr(n,r)!==qr(p,r)&&g(t,e)})))})(e,u,m,f);if(-1===e.indexOf(".")){let t=m[e],r="function"==typeof u?u(t):u,a=r;if(c.length>0){let n=h(e,r,t);if(n===pi)return;a=n}if(t===a)return;let p=l.length>0?n():void 0;if(i(e,a),void 0!==p&&y(e,p,n()),f&&(g(o,e),s.size>0)){let n=s.direct.get(e);n&&g(n,e),b(e,t,a,1)}return void d()}let v,x=Fr(e);if(c.length>0){let t=qr(m,e),n="function"==typeof u?u(t):u,r=h(e,n,t);if(r===pi)return;v=li(m,e,x,r,!1)}else v=li(m,e,x,u,"function"==typeof u);if(v===Zr)return;let w=v;r(w),l.length>0&&y(e,m,w),f&&(g(o,e),s.size>0&&(((e,t)=>{s.walkAncestors(t,t=>g(t,e))})(e,x),b(e,m,w,0))),d()},batch:e=>{f++;try{return e()}finally{if(f--,0===f&&m.size>0){let e=[...m];m.clear();let t=fi(e,void 0,e.length);t!==hi&&u(t,"notify",void 0)}}}}}var yi=class{subscribers=null;children=null},bi=class{direct=/* @__PURE__ */new Map;descendants=/* @__PURE__ */new Map;root=new yi;size=0;add(e,t){let n=Fr(e),r=this.direct.get(e);if(!r){r=new Qr,this.direct.set(e,r);let t=this.root;for(let e of n){t.children||=/* @__PURE__ */new Map;let n=t.children.get(e);n||(n=new yi,t.children.set(e,n)),t=n}t.subscribers=r,this.size++;let i="";for(let r=0;r<n.length-1;r++){i=i?`${i}.${n[r]}`:n[r];let t=this.descendants.get(i);t||(t=/* @__PURE__ */new Set,this.descendants.set(i,t)),t.add(e)}}return r.add(t),()=>this.remove(e,r,t,n)}remove(e,t,n,r){if(this.direct.get(e)!==t||(t.remove(n),t.length>0))return;this.direct.delete(e),this.size--;let i=this.root;for(let o of r){if(!i.children)return;let e=i.children.get(o);if(!e)return;i=e}i.subscribers===t&&(i.subscribers=null);let a="";for(let o=0;o<r.length-1;o++){a=a?`${a}.${r[o]}`:r[o];let t=this.descendants.get(a);t&&(t.delete(e),0===t.size&&this.descendants.delete(a))}}walkAncestors(e,t){let n=this.root;for(let r of e){if(!n.children)return;let e=n.children.get(r);if(!e)return;n=e,n.subscribers&&t(n.subscribers)}}getDescendants(e){return this.descendants.get(e)}forEachAffected(e,t,n){let r=e=>{e&&e.forEach(t,n)};if("string"!=typeof e)return void this.direct.forEach(r);let i=Fr(e);this.walkAncestors(i,r),this.descendants.get(e)?.forEach(e=>r(this.direct.get(e)))}clear(){this.direct.clear(),this.descendants.clear(),this.root.children=null,this.root.subscribers=null,this.size=0}};function vi(e,t){let n,r,i,a={},o=new Qr,s=new Qr,l=new bi,c=new Qr,u=()=>{0!==c.length&&c.forEach(e=>e())},d=[],p=[],h=[],f=t?.parent,m=(e,t,n)=>{if(0===p.length)throw e;let r={error:e,phase:t,path:n};for(let i=0,a=p.length;i<a;i++)p[i](r)},g=()=>a,y=()=>n??={...a},{getState:b,getPath:v,invalidate:x,resetCache:w,getMergeCount:k}=function(e,t,n,r){if(!n)return{getState:t,getPath:t=>qr(e(),t),invalidate:()=>{},resetCache:()=>{},getMergeCount:()=>0};let i,a=n,o=r&&r.length>0?new Set(r):void 0,s=!0,l=!1,c=0,u=/* @__PURE__ */new Map,d=()=>((s||void 0===i)&&(i=(()=>{c++;let e=t(),n=Kr(a.getState(),e);if(o)for(let t of o)void 0!==e[t]&&(n[t]=e[t]);return n})(),s=!1),i);return{getState:d,getPath:t=>{if(l)u.clear(),l=!1;else if(u.has(t))return u.get(t);let n=(t=>{if(o){let n=t.indexOf("."),r=-1===n?t:t.slice(0,n);if(o.has(r)&&void 0!==e()[r])return qr(e(),t)}let n=qr(e(),t);if(void 0===n)return a.getPath(t);let r=a.getPath(t);return void 0!==r&&Jr(n)&&Jr(r)?qr(d(),t):n})(t);return u.set(t,n),n},invalidate:()=>{s=!0,l=!0},resetCache:()=>{u.clear(),i=void 0,s=!0,l=!1},getMergeCount:()=>c}}(g,y,f,t?.exclusive),S=()=>{x(),u()},N=!1;f&&(w(),i=f.subscribeInvalidate?.(S));let{setState:T,batch:C}=gi({getOwnState:g,getOwnSnapshot:y,setOwnState:e=>{a=e,n=void 0,x()},mutateOwnKey:(e,t)=>{a[e]=t,x(),n=void 0},parent:f,listeners:o,pathListeners:l,changeListeners:s,interceptors:d,reportError:m,invalidateDescendants:u,onDelegateToParent:void 0}),E=()=>{r&&(r.unsubscribe(),r=void 0,w())},_=()=>{f&&(!N&&(o.length>0||l.size>0||s.length>0)?r||!f||(x(),w(),r=function(e,t,n,r,i,a,o){let s;return{unsubscribe:e.subscribe(e=>{o();let l=e;if(t.forEach(t=>t(e),e=>a(e,"notify",l)),n.size>0&&n.forEachAffected(e,t=>t(e),e=>a(e,"notify",l)),r.length>0){let e=i(),t=s??e,n={path:l,prev:t,next:e,prevValue:void 0===l?t:qr(t,l),nextValue:void 0===l?e:qr(e,l)};s=e,r.forEach(e=>e(n),e=>a(e,"onChange",l))}}),seedBaseline:()=>{s??=i()}}}(f,o,l,s,b,m,x),s.length>0&&r.seedBaseline()):E())},O=e=>(_(),()=>{e(),_()}),A=e=>O(o.add(e)),I=(e,t)=>O(l.add(e,t)),z=e=>{let t=O(s.add(e));return r?.seedBaseline(),t};a="function"==typeof e?e(T,b):e;let D={id:t?.id,scopePath:t?.scopePath,getState:b,getPath:v,setState:T,get:e=>void 0===e?b():v(e),set:T,watch:(e,t)=>"function"==typeof e?A(e):I(e,t),withBase:e=>{let t=(t,n)=>T(void 0===t?e:`${e}.${t}`,n);return{getState:t=>{let n=v(e);return void 0===n&&void 0!==t?t:n},getPath:(t,n)=>{let r=v(`${e}.${t}`);return void 0===r&&void 0!==n?n:r},setState:t,subscribe:t=>I(e,t),subscribePath:(t,n)=>I(`${e}.${t}`,n),get:t=>v(void 0===t?e:`${e}.${t}`),set:t,watch:(t,n)=>"function"==typeof t?I(e,t):I(`${e}.${t}`,n)}},batch:C,subscribe:A,subscribePath:I,subscribeChange:z,destroy:()=>{N=!0,E(),o.clear(),l.clear(),s.clear(),c.clear(),i?.()},reconnect:()=>{N=!1,f&&(i?.(),i=f.subscribeInvalidate?.(S)),_()},subscribeInvalidate:e=>c.add(e),hydrate:()=>{for(let e of h)e()}};if(t?.middlewares)for(let P of t.middlewares){let e=P(D);e?.beforeChange&&d.push(e.beforeChange),e?.onChange&&z(e.onChange),e?.onError&&p.push(e.onError);let n=e?.hydrate;n&&(t.deferHydrate?h.push(()=>n(D)):n(D))}return D}var xi=vi,wi=Symbol("@plitzi/nexus/ssr-snapshot");function ki(e){return"object"==typeof e&&!!e&&wi in e}var Si=l(void 0),Ni=e=>!0===e.cascade,Ti=({store:e,id:t,segment:n,isolate:r,path:i,value:a,inherit:o,autoSync:s=!0,middlewares:l,children:c})=>{let u=g(jr),d=g(Si),p=g(Rr),h=u?.scopePath??"",f=w(()=>void 0===n?h:h?`${h}/${n}`:n,[h,n]),m=S(void 0),b="live"===o,v=w(()=>{let e="snapshot"===o&&u?u.getState():{},t="function"==typeof a?a(e):{...e,...a};return ki(t)?function(e){return ki(e)?{...e}:e}(t):t},[o,u,a]),x=l??[],k=d?[...d,...x]:x,N=w(()=>{let e=x.filter(Ni);return 0===e.length?d:[...d??[],...e]},[d,l]);m.current||=e??xi(()=>v,{id:t,scopePath:f,exclusive:b?r:void 0,parent:b?u:void 0,middlewares:k.length>0?k:void 0,deferHydrate:!0});let T=w(()=>t?{id:t,store:m.current,parent:p}:p,[t,p]);S(!1),y(()=>{},[t,p]),y(()=>(b&&!e&&m.current?.reconnect?.(),()=>{b&&!e&&m.current?.destroy?.()}),[b,e]);let C=S(!1);y(()=>{!C.current&&m.current?.hydrate&&(m.current.hydrate(),C.current=!0)},[]),Yr(i,i?a:v,{enabled:!!a&&s,store:m.current});let E=/* @__PURE__ */A(jr,{value:m.current,children:c});return T!==p&&(E=/* @__PURE__ */A(Rr,{value:T,children:E})),N!==d&&(E=/* @__PURE__ */A(Si,{value:N,children:E})),E},Ci=[];var Ei=()=>({useStore:function(e,t){return function(e,t={}){let n=Br(t.store,"useStore",t.storeId),r=Array.isArray(e),i=function(e,t,n){let r=n.mode??"sync",i=n.enabled??!0,a=void 0===t,o=n.equalityFn??(a?Wr:Object.is),s=n.transformer,l=S(s);l.current=s;let c=w(()=>function(e,t){return()=>{if("string"==typeof t)return e.getPath(t);if("function"==typeof t){let n=e.getState();return qr(n,t(n))}return e.getState()}}(e,t),[e,t]),u=S(c()),d=w(()=>n=>i&&"mount"!==r?"string"==typeof t?e.subscribePath(t,n):e.subscribe(n):()=>{},[i,r,t,e]),p=()=>{if(!i)return u.current;if("mount"===r)return c();let e=c();return o(u.current,e)?u.current:(u.current=e,e)},h=T(d,p,p);return[w(()=>l.current?l.current(h):h,[h]),m(n=>{a?e.setState(void 0,n):"function"==typeof t?e.setState(t(e.getState()),n):e.setState(t,n)},[e,t])]}(n,r?void 0:e,r?{...t,enabled:!1,transformer:void 0}:t),a=function(e,t,n){let r=n.mode??"sync",i=n.enabled??!0,a=n.equalityFn??Vr,o=n.transformer,s=S(o);s.current=o;let l=S(t);l.current=t;let c=t.map((e,t)=>"function"==typeof e?`fn_${t}`:e).join("|"),u=S(null),d=w(()=>function(e,t,n,r={}){let{equalityFn:i=Vr}=r;return()=>{let r=t.current,a=r.some(e=>"function"==typeof e)?e.getState():void 0,o=r.map(t=>"function"==typeof t?qr(a,t(a)):e.getPath(t)),s=n.current;return null!==s&&i(s,o)?s:(n.current=o,o)}}(e,l,u,{equalityFn:a}),[e,c,a]),p=function(e,t,n,r){let i=m(()=>{if(!n){let e=r.current??t();return r.current=e,e}return t()},[n,t,r]);return T(e,i,i)}(function(e,t,n,r,i){return w(()=>n=>{if(!r||"mount"===i)return()=>{};let a=t.current;if(a.some(e=>"function"==typeof e))return e.subscribe(n);let o=a.map(t=>e.subscribePath(t,n));return()=>o.forEach(e=>e())},[e,n,r,i])}(e,l,c,i,r),d,i,u);return[w(()=>s.current?s.current(p):p,[p]),...Ur(e,l,c)]}(n,r?e:Ci,r?t:{...t,enabled:!1,transformer:void 0});return r?a:i}(e,t)},useStoreSync:function(e,t,n){Yr(e,t,n)},useStoreGetter:function(e,t){return function(e,t){let n="string"==typeof e?e:void 0,r=Array.isArray(e)?e:void 0,i="object"!=typeof e||Array.isArray(e)?t:e,a=Br(i?.store,"useStoreGetter",i?.storeId),o=r?.map(e=>"function"==typeof e?e.toString():e).join("|");return w(()=>{if(r)return r.map(e=>(t,n)=>{let r="function"==typeof e?e(a.getState()):qr(a.getState(),e);if(void 0!==t){let e=qr(r,t);return void 0===e&&void 0!==n?n:e}return void 0===r&&void 0!==n?n:r});if(void 0!==n){let e=a.withBase(n);return(t,n)=>void 0===t?void 0===n?e.getState():e.getState(n):void 0===n?e.getPath(t):e.getPath(t,n)}return(e,t)=>{let n=a.getState();if(void 0!==e){let r=qr(n,e);return void 0===r&&void 0!==t?t:r}return n}},[a,n,o])}(e,t)},useStoreSetter:function(e,t){return function(e,t){let n="string"==typeof e?e:void 0,r="object"==typeof e?e:t,i=Br(r?.store,"useStoreSetter",r?.storeId);return w(()=>void 0===n?i.setState:i.withBase(n).setState,[i,n])}(e,t)}}),_i=(e,t)=>"function"==typeof e?!e(t):!1===e,Oi=(e,t)=>"string"!=typeof e||e===t||e.length>t.length&&e.startsWith(t)&&"."===e[t.length]||t.length>e.length&&t.startsWith(e)&&"."===t[e.length],Ai=(e,t,n=12)=>{if(!Object.is(e,t)){if(n<=0||!Jr(e)||!Jr(t))return{path:"",value:t};for(let r of/* @__PURE__ */new Set([...Object.keys(e),...Object.keys(t)])){if(Object.is(e[r],t[r]))continue;let i=Ai(e[r],t[r],n-1);if(i)return{path:i.path?`${r}.${i.path}`:r,value:i.value}}}},Ii=/* @__PURE__ */new WeakMap,zi=e=>{let t=e?.enabled;return n=>{if(_i(t,n.getState()))return;let{handle:r,record:i}=function(e,t={}){let n=t.limit??100,r=t.path,i=t.shouldRecord,a=[{state:e.getState(),timestamp:Date.now()}],o=0,s=!1,l=()=>({entries:a,index:o,canUndo:o>0,canRedo:o<a.length-1}),c=l(),u=/* @__PURE__ */new Set,d=()=>{c=l(),u.forEach(e=>e())},p=t=>{if(t<0||t>=a.length||t===o)return;let n=a[t].state;if(s=!0,r){let t=qr(n,r);e.setState(r,()=>t)}else e.setState(void 0,()=>n);s=!1,o=t,d()};return{handle:{getSnapshot:()=>c,subscribe:e=>(u.add(e),()=>u.delete(e)),undo:()=>p(o-1),redo:()=>p(o+1),travelTo:p,clear:()=>{a=[{state:e.getState(),timestamp:Date.now()}],o=0,d()}},record:({path:t})=>{if(s||i&&!i(t)||r&&void 0!==t&&!Oi(t,r))return;let l,c=o<a.length-1?a.slice(0,o+1):a,u=c[c.length-1].state,p=e.getState(),h=t??r,f=t??r;if(f)try{let e=Ai(qr(u,f),qr(p,f));e&&(h=e.path?`${f}.${e.path}`:f,l=e.value)}catch{}let m=[...c,{path:h,value:l,state:p,timestamp:Date.now()}];a=m.length>n?m.slice(m.length-n):m,o=a.length-1,d()}}}(n,e);return Ii.set(n,r),{onChange:i}}},Di={entries:[],index:-1,canUndo:!1,canRedo:!1},Pi=()=>{},Mi=()=>Pi,ji=()=>Di;var{useStore:Ri,useStoreSync:Li,useStoreGetter:Fi,useStoreSetter:$i}=Ei(),{useStore:qi,useStoreSync:Vi,useStoreGetter:Bi,useStoreSetter:Ui}=Ei(),{useStore:Hi,useStoreSync:Wi,useStoreGetter:Yi,useStoreSetter:Gi}=Ei(),Qi={};Object.freeze(Qi);var Ji=(e,t="",n=".",r=!1)=>e&&"object"==typeof e?Object.keys(e).reduce((i,a)=>{a=a.replaceAll(n,"").replaceAll(".","");let o=`${t}${t?n:""}${a}`;return"object"!=typeof e[a]||Array.isArray(e[a])&&r?[...i,o]:[...i,o,...Ji(e[a],o,n,r)]},[]):[],Ki={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},Xi={date:Me({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Me({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Me({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zi={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},ea={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},ta={ordinalNumber:(e,t)=>Number(e)+"º",era:Le({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:Le({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:Le({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:Le({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:Le({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},na={ordinalNumber:qe({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:$e({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:$e({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:$e({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:$e({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:$e({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},ra={code:"es",formatDistance:(e,t,n)=>{let r;const i=Ki[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},formatLong:Xi,formatRelative:(e,t,n,r)=>1!==t.getHours()?ea[e]:Zi[e],localize:ta,match:na,options:{weekStartsOn:1,firstWeekContainsDate:1}},ia={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},aa={date:Me({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:Me({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Me({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},oa={lastWeek:e=>{const t=e.getDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},sa={ordinalNumber:(e,t)=>Number(e)+"º",era:Le({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:Le({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Le({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Le({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:Le({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},la={ordinalNumber:qe({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$e({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:$e({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:$e({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:$e({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:"any"}),dayPeriod:$e({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},ca={code:"pt",formatDistance:(e,t,n)=>{let r;const i=ia[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"daqui a "+r:"há "+r:r},formatLong:aa,formatRelative:(e,t,n,r)=>{const i=oa[e];return"function"==typeof i?i(t):i},localize:sa,match:la,options:{weekStartsOn:0,firstWeekContainsDate:4}};var ua={year:0,month:1,day:2,hour:3,minute:4,second:5},da={},pa=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(/* @__PURE__ */new Date("2014-06-25T04:00:00.123Z")),ha="06/25/2014, 00:00:00"===pa||"06/25/2014 00:00:00"===pa;function fa(e,t,n,r,i,a,o){const s=/* @__PURE__ */new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,a,o),s}var ma=36e5,ga={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ya(e,t,n){if(!e)return 0;let r,i,a=ga.timezoneZ.exec(e);if(a)return 0;if(a=ga.timezoneHH.exec(e),a)return r=parseInt(a[1],10),va(r)?-r*ma:NaN;if(a=ga.timezoneHHMM.exec(e),a){r=parseInt(a[2],10);const e=parseInt(a[3],10);return va(r,e)?(i=Math.abs(r)*ma+6e4*e,"+"===a[1]?-i:i):NaN}if(function(e){if(xa[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),xa[e]=!0,!0}catch(t){return!1}}(e)){t=new Date(t||Date.now());const r=ba(n?t:function(e){return fa(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),e);return-(n?r:function(e,t,n){let r=e.getTime()-t;const i=ba(new Date(r),n);if(t===i)return t;r-=i-t;const a=ba(new Date(r),n);return i===a?i:Math.max(i,a)}(t,r,e))}return NaN}function ba(e,t){const n=function(e,t){const n=function(e){return da[e]||(da[e]=ha?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),da[e]}(t);return"formatToParts"in n?function(e,t){try{const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const t=ua[n[e].type];void 0!==t&&(r[t]=parseInt(n[e].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}(n,e):function(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}(n,e)}(e,t),r=fa(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let i=e.getTime();const a=i%1e3;return i-=a>=0?a:1e3+a,r-i}function va(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var xa={};function wa(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}var ka=36e5,Sa={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Na(e,t,n){t=t||0,n=n||0;const r=/* @__PURE__ */new Date(0);r.setUTCFullYear(e,0,4);const i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var Ta=[31,28,31,30,31,30,31,31,30,31,30,31],Ca=[31,29,31,30,31,30,31,31,30,31,30,31];function Ea(e){return e%400==0||e%4==0&&e%100!=0}function _a(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;const r=Ea(e);if(r&&n>Ca[t])return!1;if(!r&&n>Ta[t])return!1}return!0}function Oa(e,t){return!(e<0||e>52||null!=t&&(t<0||t>6))}function Aa(e,t,n){return!(e<0||e>=25||null!=t&&(t<0||t>=60)||null!=n&&(n<0||n>=60))}var Ia={en:Be,es:ra,pt:ca},za=e=>{let t;return t="number"==typeof e?e<1e12?/* @__PURE__ */new Date(1e3*e):new Date(e):"string"==typeof e?dn(e):e,t};function Da(e,t="dd MMMM, yyyy",n="en"){return e?ht(za(e),t,{locale:Ia[n]}):""}function Pa(e,t="dd MMMM, yyyy",n="en"){return e?ht(function(e){const t=ya("UTC",e=function(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)/* @__PURE__ */return new Date(NaN);const n=null==t.additionalDigits?2:Number(t.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))/* @__PURE__ */return new Date(NaN);const r=function(e){const t={};let n,r=Sa.dateTimePattern.exec(e);if(r?(t.date=r[1],n=r[3]):(r=Sa.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){const e=Sa.timeZone.exec(n);e?(t.time=n.replace(e[1],""),t.timeZone=e[1].trim()):t.time=n}return t}(e),{year:i,restDateString:a}=function(e,t){if(e){const n=Sa.YYY[t],r=Sa.YYYYY[t];let i=Sa.YYYY.exec(e)||r.exec(e);if(i){const t=i[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(i=Sa.YY.exec(e)||n.exec(e),i){const t=i[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(r.date,n),o=function(e,t){if(null===t)return null;let n,r,i;if(!e||!e.length)return n=/* @__PURE__ */new Date(0),n.setUTCFullYear(t),n;let a=Sa.MM.exec(e);if(a)return n=/* @__PURE__ */new Date(0),r=parseInt(a[1],10)-1,_a(t,r)?(n.setUTCFullYear(t,r),n):/* @__PURE__ */new Date(NaN);if(a=Sa.DDD.exec(e),a){n=/* @__PURE__ */new Date(0);const e=parseInt(a[1],10);return function(e,t){if(t<1)return!1;const n=Ea(e);return!(n&&t>366||!n&&t>365)}(t,e)?(n.setUTCFullYear(t,0,e),n):/* @__PURE__ */new Date(NaN)}if(a=Sa.MMDD.exec(e),a){n=/* @__PURE__ */new Date(0),r=parseInt(a[1],10)-1;const e=parseInt(a[2],10);return _a(t,r,e)?(n.setUTCFullYear(t,r,e),n):/* @__PURE__ */new Date(NaN)}if(a=Sa.Www.exec(e),a)return i=parseInt(a[1],10)-1,Oa(i)?Na(t,i):/* @__PURE__ */new Date(NaN);if(a=Sa.WwwD.exec(e),a){i=parseInt(a[1],10)-1;const e=parseInt(a[2],10)-1;return Oa(i,e)?Na(t,i,e):/* @__PURE__ */new Date(NaN)}return null}(a,i);if(null===o||isNaN(o.getTime()))/* @__PURE__ */return new Date(NaN);if(o){const e=o.getTime();let n,i=0;if(r.time&&(i=function(e){let t,n,r=Sa.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),Aa(t)?t%24*ka:NaN;if(r=Sa.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Aa(t,n)?t%24*ka+6e4*n:NaN;if(r=Sa.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const e=parseFloat(r[3].replace(",","."));return Aa(t,n,e)?t%24*ka+6e4*n+1e3*e:NaN}return null}(r.time),null===i||isNaN(i)))/* @__PURE__ */return new Date(NaN);if(r.timeZone||t.timeZone){if(n=ya(r.timeZone||t.timeZone,new Date(e+i)),isNaN(n))/* @__PURE__ */return new Date(NaN)}else n=wa(new Date(e+i)),n=wa(new Date(e+i+n));return new Date(e+i+n)}/* @__PURE__ */return new Date(NaN)}(e,void 0),!0),n=new Date(e.getTime()-t),r=/* @__PURE__ */new Date(0);return r.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),r.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),r}(za(e)),t,{locale:Ia[n]}):""}function Ma(e,t){let n=za(e);return ze(za(t),n)}var ja=new class{callbackInternal;callbackAddProvider;callbackRemoveProvider;pendingLimit=100;logsListenedLimit=1e3;pendingLogs=[];listening=!1;listeningCategory;logsListened=[];listeningParams;#e=[];#t=!1;constructor(e,t=100){this.callbackInternal=e,this.pendingLimit=t}setCallback(e){this.callbackInternal=e}processPendingLogs(){if(this.pendingLogs.length&&this.callbackInternal){for(let e of this.pendingLogs)this.callbackInternal(e.logType,e.category,e.message,e.params,e.time);this.pendingLogs=[]}}setCallbackAddProvider(e){this.callbackAddProvider=e}setCallbackRemoveProvider(e){this.callbackRemoveProvider=e}flush(e=!1){this.logsListened=[],e&&(this.pendingLogs=[])}#n(e,t,n,r){let i=this.getTime(!0);if(!this.callbackInternal)return this.pendingLogs.push({logType:e,category:t,message:n,params:r,time:i}),void(this.pendingLogs.length>this.pendingLimit&&this.pendingLogs.shift());this.listening?this.logsListened.push({logType:e,category:t,message:n,params:r,time:i}):(this.#e.push({logType:e,category:t,message:n,params:r,time:i}),this.#r()),this.logsListened.length>this.logsListenedLimit&&this.logsListened.shift()}#r(){this.#t||(this.#t=!0,queueMicrotask(()=>{this.#t=!1;let e=this.callbackInternal,t=this.#e;if(this.#e=[],e)for(let n of t)e(n.logType,n.category,n.message,n.params,n.time)}))}addProviderMethod(e,t){this.callbackAddProvider?.(e,t)}removeProviderMethod(e){"function"==typeof this.callbackRemoveProvider&&this.callbackRemoveProvider(e)}getTime(e=!1){let t=/* @__PURE__ */new Date;return e?Da(t,"HH:mm:ss.SSS"):t}info(e,t,n){this.#n("info",e,t,n)}warning(e,t,n){this.#n("warning",e,t,n)}danger(e,t,n){this.#n("danger",e,t,n)}success(e,t,n){this.#n("success",e,t,n)}begin(e){this.listening=!0,this.listeningParams={category:e}}end(){this.listening=!1,this.listeningCategory&&this.logsListened.length>0&&this.callbackInternal?.("info",this.listeningCategory,`${this.logsListened.length} Log${1===this.logsListened.length?"":"s"}`,{logs:this.logsListened}),this.logsListened=[],this.listeningCategory=void 0}};function Ra(e="store"){return({path:t,prevValue:n,nextValue:r})=>{ja.info("store",e,{storeName:e,path:t,prev:n,next:r})}}var La=l({});La.displayName="PlitziServiceContext";var Fa=()=>{let e=f(La);if(void 0===e)throw Error("ServiceContext value is undefined. Make sure you use the PlitziServiceProvider before using the hook.");return e},$a=e=>{let{children:t,value:n}=e;/* @__PURE__ */
|
|
1
|
+
import*as e from"react";import t,{Children as n,Component as r,Fragment as i,Profiler as a,Suspense as o,cloneElement as s,createContext as l,createElement as c,forwardRef as u,isValidElement as d,lazy as p,memo as h,use as f,useCallback as m,useContext as g,useEffect as y,useId as b,useImperativeHandle as v,useLayoutEffect as x,useMemo as w,useReducer as k,useRef as S,useState as N,useSyncExternalStore as T}from"react";import{createRoot as C,hydrateRoot as E}from"react-dom/client";import*as _ from"react/jsx-runtime";import{Fragment as O,jsx as A,jsxs as I}from"react/jsx-runtime";import*as z from"react-dom";import{createPortal as D}from"react-dom";import{c as P}from"react/compiler-runtime";var M=Object.create,j=Object.defineProperty,R=Object.getOwnPropertyDescriptor,L=Object.getOwnPropertyNames,F=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty,q=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),V=(e,t)=>{let n={};for(var r in e)j(n,r,{get:e[r],enumerable:!0});return t||j(n,Symbol.toStringTag,{value:"Module"}),n},B=(e,t,n)=>(n=null!=e?M(F(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=L(t),o=0,s=a.length;o<s;o++)i=a[o],$.call(e,i)||void 0===i||j(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=R(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:j(n,"default",{value:e,enumerable:!0}),e)),U=l(void 0);U.displayName="ElementContext";var H=()=>{let e=f(U);if(void 0===e)throw Error("Element data not found. Make sure the element is rendered under withElement.");return e},W=l({enabled:!1}),Y=()=>{let{enabled:e,serverData:t,refresh:n}=f(W),{id:r}=H();return{enabled:e,serverData:t,elementData:t?.[r]??null,isServerElement:!!t&&r in t,refresh:n}},G=({tag:e="div",refProp:t,style:n,className:r,otherProps:i,params:a,serverMarker:o,events:s,children:l})=>c(e,{ref:t,style:n,className:r,...i,...a,...s,...o},l);function Q(e){if("string"==typeof e||"number"==typeof e){let t=String(e);return""===t?null:/^[a-zA-Z0-9_-]+$/.test(t)||/^\d+$/.test(t)?t:null}return null}function J(e,t=!0){return e?"string"==typeof e?function(e,t){if(!e||e.startsWith(".")||e.endsWith(".")||/[^a-zA-Z0-9_.[\]-]/.test(e)||t&&(/\.\.|(\[\])/g.test(e)||(e.match(/\[/g)||[]).length!==(e.match(/\]/g)||[]).length||/\][^.[]/.test(e)))return[];let n,r=[],i=/([^.[\]]+)|\[(\d+)\]/g;for(;n=i.exec(e);)if(n[1]){if(!t&&""===n[1])continue;let e=Q(n[1]);if(null!==e)r.push(e);else if(t)return[]}else if(n[2]){let e=Q(n[2]);if(null!==e)r.push(e);else if(t)return[]}return r.length?r:[]}(e,t):Array.isArray(e)?function(e,t){if(!Array.isArray(e))return[];let n=[];for(let r of e){let e=Q(r);if(null!==e)n.push(e);else if(t)return[]}return n}(e,t):[]:[]}function K(e,t,n){if(null==e||!t)return n;let r=J(t);if(!r.length)return n;let i=e;for(let a of r){if("object"!=typeof i||!i)return n;i=Array.isArray(i)?i[Number(a)]:i[a]}return void 0===i?n:i}function X(e,t,n){let r=J(t);if(!r.length)return e;let i=e;for(let o=0;o<r.length-1;o++){let t=r[o],n=r[o+1];if("object"!=typeof i||!i)return e;let a=i;(null==a[t]||"object"!=typeof a[t])&&(a[t]=/^\d+$/.test(n)?[]:{}),i=a[t]}let a=r[r.length-1];return"object"==typeof i&&i&&(i[a]=n),e}function Z(e,t){let n={},r=Array.isArray(t)?t:[t];for(let i of r){let t=K(e,i);void 0!==t&&X(n,i,t)}return n}function ee(e,t=/* @__PURE__ */new WeakMap){if("object"!=typeof e||!e)return e;if(t.has(e))return t.get(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){let n=/* @__PURE__ */new Map;return t.set(e,n),e.forEach((e,r)=>n.set(r,ee(e,t))),n}if(e instanceof Set){let n=/* @__PURE__ */new Set;return t.set(e,n),e.forEach(e=>n.add(ee(e,t))),n}if(ArrayBuffer.isView(e)){if(e instanceof DataView){let n=new DataView(ee(e.buffer,t),e.byteOffset,e.byteLength);return t.set(e,n),n}let n=new(0,e.constructor)(e.buffer.slice(0),e.byteOffset,e.length);return t.set(e,n),n}if(e instanceof ArrayBuffer){let n=e.slice(0);return t.set(e,n),n}if(Array.isArray(e)){let n=[];return t.set(e,n),e.forEach((e,r)=>n[r]=ee(e,t)),n}let n=Object.getPrototypeOf(e),r=Object.create(n);t.set(e,r);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=ee(e[i],t));return r}var te=e=>Object.assign(Object.create(Object.getPrototypeOf(e)),e);function ne(e,t){let n=J(t),r=Array.isArray(e)?[...e]:te(e);if(!n.length)return r;let i=e,a=r;for(let o=0;o<n.length;o++){let e=n[o],t=i?.[e];if(!t||"object"!=typeof t){a[e]=t;break}let r=Array.isArray(t)?[...t]:te(t);a[e]=r,i=t,a=r}return r}function re(e,t){if(null===e)return!1;let n=J(t),r=e;for(let i of n){if(null==r||!(i in r))return!1;r=r[i]}return!0}function ie(e,t){let n=Array.isArray(t)?t:t?[t]:[];if(0===n.length)return{...e};let r=[],i=[];for(let o of n){let e=J(o);0!==e.length&&(1===e.length?r.push(e[0]):i.push(o))}let a=e;if(r.length){let e;for(let t of r)Object.prototype.hasOwnProperty.call(a,t)&&(e??=te(a),delete e[t]);e&&(a=e)}for(let o of i){let e=J(o);if(!re(a,o))continue;let t=ne(a,o),n=t;for(let r=0;r<e.length-1&&n&&"object"==typeof n;r++)n=n[e[r]];if(n&&"object"==typeof n){let t=e[e.length-1];Object.prototype.hasOwnProperty.call(n,t)&&delete n[t]}a=t}return a}function ae(e,t=0,n={}){let r,i,a,o,s,l=0,c=n.leading??!1,u=n.trailing??!0,d=n.maxWait,p=()=>Date.now();function h(t){if(!r)return a;l=t;let n=r,o=i;return r=void 0,i=void 0,a=e.apply(o,n),a}function f(e){o=setTimeout(g,e)}function m(e){if(void 0===s)return!0;let n=e-s;return n>=t||n<0||void 0!==d&&e-l>=d}function g(){let e=p();if(m(e))return b(e);f(function(e){let n=e-l,r=t-(e-(s??0));return void 0===d?r:Math.min(r,d-n)}(e))}function y(e){return l=e,f(t),c?h(e):a}function b(e){return o=void 0,u&&r?h(e):(r=i=void 0,a)}function v(...e){let n=p(),l=m(n);if(r=e,i=this,s=n,l){if(!o)return y(n);if(void 0!==d)return clearTimeout(o),f(t),h(n)}return o||f(t),a}return v.cancel=()=>{void 0!==o&&clearTimeout(o),l=0,r=s=i=o=void 0},v.flush=()=>void 0===o?a:b(p()),v.pending=()=>void 0!==o,v}function oe(e,t=0,n={}){return ae(e,t,{leading:n.leading??!0,trailing:n.trailing??!0,maxWait:t})}function se(e){return null==e||"number"!=typeof e&&"boolean"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e&&("string"==typeof e||Array.isArray(e)?0===e.length:e instanceof Map||e instanceof Set?0===e.size:"object"==typeof e&&0===Object.keys(e).length)}function le(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=le(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ce(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=le(e))&&(r&&(r+=" "),r+=t);return r}var ue=/* @__PURE__ */V({cva:()=>he,cx:()=>pe}),de=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,pe=ce,he=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return pe(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const o=de(t)||de(r);return i[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return pe(e,o,l,null==n?void 0:n.class,null==n?void 0:n.className)},{cva:fe}=ue,me=(Math.pow(10,8),6048e5),ge=6e4,ye=36e5,be=Symbol.for("constructDateFrom");function ve(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&be in e?e[be](t):e instanceof Date?new e.constructor(t):new Date(t)}function xe(e,t){return ve(t||e,e)}function we(e,t,n){const r=xe(e,n?.in);return isNaN(t)?ve(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}var ke={};function Se(){return ke}function Ne(e,t){const n=Se(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=xe(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Te(e,t){return Ne(e,{...t,weekStartsOn:1})}function Ce(e,t){const n=xe(e,t?.in),r=n.getFullYear(),i=ve(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=Te(i),o=ve(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const s=Te(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Ee(e){const t=xe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function _e(e,...t){const n=ve.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}function Oe(e,t){const n=xe(e,t?.in);return n.setHours(0,0,0,0),n}function Ae(e,t){const n=+xe(e)-+xe(t);return n<0?-1:n>0?1:n}function Ie(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+xe(e)));var t}function ze(e,t){return+xe(e)-+xe(t)}function De(e,t,n){const[r,i,a]=_e(n?.in,e,e,t),o=Ae(i,a),s=Math.abs(function(e,t){const[n,r]=_e(void 0,e,t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(i,a));if(s<1)return 0;1===i.getMonth()&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*s);let l=Ae(i,a)===-o;(function(e,t){const n=xe(e,t?.in);return+function(e,t){const n=xe(e,t?.in);return n.setHours(23,59,59,999),n}(n,t)===+function(e,t){const n=xe(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}(n,t)})(r)&&1===s&&1===Ae(r,a)&&(l=!1);const c=o*(s-+l);return 0===c?0:c}var Pe={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 Me(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var je={date:Me({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Me({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:Me({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Re={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Le(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var Fe={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Le({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Le({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Le({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:Le({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:Le({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"})};function $e(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(o)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(o));let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(o.length)}}}function qe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];return o=n.valueCallback?n.valueCallback(o):o,{value:o,rest:t.slice(i.length)}}}var Ve={ordinalNumber:qe({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$e({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:$e({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:e=>e+1}),month:$e({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:$e({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:$e({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"})},Be={code:"en-US",formatDistance:(e,t,n)=>{let r;const i=Pe[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:je,formatRelative:(e,t,n,r)=>Re[e],localize:Fe,match:Ve,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ue(e,t){const n=xe(e,t?.in),r=+Te(n)-+function(e,t){const n=Ce(e,t),r=ve(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Te(r)}(n);return Math.round(r/me)+1}function He(e,t){const n=xe(e,t?.in),r=n.getFullYear(),i=Se(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=ve(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=Ne(o,t),l=ve(t?.in||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=Ne(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function We(e,t){const n=xe(e,t?.in),r=+Ne(n,t)-+function(e,t){const n=Se(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=He(e,t),a=ve(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Ne(a,t)}(n,t);return Math.round(r/me)+1}function Ye(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}var Ge={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ye("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Ye(n+1,2)},d:(e,t)=>Ye(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Ye(e.getHours()%12||12,t.length),H:(e,t)=>Ye(e.getHours(),t.length),m:(e,t)=>Ye(e.getMinutes(),t.length),s:(e,t)=>Ye(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Ye(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Qe={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Ge.y(e,t)},Y:function(e,t,n,r){const i=He(e,r),a=i>0?i:1-i;return"YY"===t?Ye(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Ye(a,t.length)},R:function(e,t){return Ye(Ce(e),t.length)},u:function(e,t){return Ye(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ye(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ye(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ge.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ye(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=We(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):Ye(i,t.length)},I:function(e,t,n){const r=Ue(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Ye(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Ge.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=xe(e,t?.in);return function(e,t){const[n,r]=_e(void 0,e,t),i=Oe(n),a=Oe(r),o=+i-Ee(i),s=+a-Ee(a);return Math.round((o-s)/864e5)}(n,function(e){const t=xe(e,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Ye(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ye(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ye(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return Ye(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Ge.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ge.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ye(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ye(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ge.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ge.s(e,t)},S:function(e,t){return Ge.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ke(r);case"XXXX":case"XX":return Xe(r);default:return Xe(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ke(r);case"xxxx":case"xx":return Xe(r);default:return Xe(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Je(r,":");default:return"GMT"+Xe(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Je(r,":");default:return"GMT"+Xe(r,":")}},t:function(e,t,n){return Ye(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return Ye(+e,t.length)}};function Je(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+Ye(a,2)}function Ke(e,t){return e%60==0?(e>0?"-":"+")+Ye(Math.abs(e)/60,2):Xe(e,t)}function Xe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Ye(Math.trunc(r/60),2)+t+Ye(r%60,2)}var Ze=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},et=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},tt={p:et,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Ze(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",Ze(r,t)).replace("{{time}}",et(i,t))}},nt=/^D+$/,rt=/^Y+$/,it=["D","DD","YY","YYYY"];function at(e){return nt.test(e)}function ot(e){return rt.test(e)}function st(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(it.includes(e))throw new RangeError(r)}var lt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ct=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ut=/^'([^]*?)'?$/,dt=/''/g,pt=/[a-zA-Z]/;function ht(e,t,n){const r=Se(),i=n?.locale??r.locale??Be,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=xe(e,n?.in);if(!Ie(s))throw new RangeError("Invalid time value");let l=t.match(ct).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,tt[t])(e,i.formatLong):e}).join("").match(lt).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ft(e)};if(Qe[t])return{isToken:!0,value:e};if(t.match(pt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&ot(a)||!n?.useAdditionalDayOfYearTokens&&at(a))&&st(a,t,String(e)),(0,Qe[a[0]])(s,a,i.localize,c)}).join("")}function ft(e){const t=e.match(ut);return t?t[1].replace(dt,"'"):e}function mt(e,t){return function(e,t,n){const r=Se(),i=n?.locale??r.locale??Be,a=Ae(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:a}),[s,l]=_e(n?.in,...a>0?[t,e]:[e,t]),c=function(e,t,n){const r=ze(e,t)/1e3;return(i=n?.roundingMethod,e=>{const t=(i?Math[i]:Math.trunc)(e);return 0===t?0:t})(r);var i}(l,s),u=(Ee(l)-Ee(s))/1e3,d=Math.round((c-u)/60);let p;if(d<2)return n?.includeSeconds?c<5?i.formatDistance("lessThanXSeconds",5,o):c<10?i.formatDistance("lessThanXSeconds",10,o):c<20?i.formatDistance("lessThanXSeconds",20,o):c<40?i.formatDistance("halfAMinute",0,o):c<60?i.formatDistance("lessThanXMinutes",1,o):i.formatDistance("xMinutes",1,o):0===d?i.formatDistance("lessThanXMinutes",1,o):i.formatDistance("xMinutes",d,o);if(d<45)return i.formatDistance("xMinutes",d,o);if(d<90)return i.formatDistance("aboutXHours",1,o);if(d<1440){const e=Math.round(d/60);return i.formatDistance("aboutXHours",e,o)}if(d<2520)return i.formatDistance("xDays",1,o);if(d<43200){const e=Math.round(d/1440);return i.formatDistance("xDays",e,o)}if(d<86400)return p=Math.round(d/43200),i.formatDistance("aboutXMonths",p,o);if(p=De(l,s),p<12){const e=Math.round(d/43200);return i.formatDistance("xMonths",e,o)}{const e=p%12,t=Math.trunc(p/12);return e<3?i.formatDistance("aboutXYears",t,o):e<9?i.formatDistance("overXYears",t,o):i.formatDistance("almostXYears",t+1,o)}}(e,function(e){return ve(e,Date.now())}(e),t)}var gt=class{subPriority=0;validate(e,t){return!0}},yt=class extends gt{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},bt=class extends gt{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>ve(t,e))}set(e,t){return t.timestampIsSet?e:ve(e,function(e,t){const n=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):ve(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,this.context))}},vt=class{run(e,t,n,r){const i=this.parse(e,t,n,r);return i?{setter:new yt(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},xt=/^(1[0-2]|0?\d)/,wt=/^(3[0-1]|[0-2]?\d)/,kt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,St=/^(5[0-3]|[0-4]?\d)/,Nt=/^(2[0-3]|[0-1]?\d)/,Tt=/^(2[0-4]|[0-1]?\d)/,Ct=/^(1[0-1]|0?\d)/,Et=/^(1[0-2]|0?\d)/,_t=/^[0-5]?\d/,Ot=/^[0-5]?\d/,At=/^\d/,It=/^\d{1,2}/,zt=/^\d{1,3}/,Dt=/^\d{1,4}/,Pt=/^-?\d+/,Mt=/^-?\d/,jt=/^-?\d{1,2}/,Rt=/^-?\d{1,3}/,Lt=/^-?\d{1,4}/,Ft=/^([+-])(\d{2})(\d{2})?|Z/,$t=/^([+-])(\d{2})(\d{2})|Z/,qt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Vt=/^([+-])(\d{2}):(\d{2})|Z/,Bt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ut(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Ht(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Wt(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*ye+a*ge+1e3*o),rest:t.slice(n[0].length)}}function Yt(e){return Ht(Pt,e)}function Gt(e,t){switch(e){case 1:return Ht(At,t);case 2:return Ht(It,t);case 3:return Ht(zt,t);case 4:return Ht(Dt,t);default:return Ht(new RegExp("^\\d{1,"+e+"}"),t)}}function Qt(e,t){switch(e){case 1:return Ht(Mt,t);case 2:return Ht(jt,t);case 3:return Ht(Rt,t);case 4:return Ht(Lt,t);default:return Ht(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Jt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Kt(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i}function Xt(e){return e%400==0||e%4==0&&e%100!=0}var Zt=[31,28,31,30,31,30,31,31,30,31,30,31],en=[31,29,31,30,31,30,31,31,30,31,30,31];function tn(e,t,n){const r=Se(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=xe(e,n?.in),o=a.getDay(),s=7-i;return we(a,t<0||t>6?t-(o+s)%7:((t%7+7)%7+s)%7-(o+s)%7,n)}var nn={G:new class extends vt{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends vt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Ut(Gt(4,e),r);case"yo":return Ut(n.ordinalNumber(e,{unit:"year"}),r);default:return Ut(Gt(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=Kt(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},Y:new class extends vt{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Ut(Gt(4,e),r);case"Yo":return Ut(n.ordinalNumber(e,{unit:"year"}),r);default:return Ut(Gt(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const i=He(e,r);if(n.isTwoDigitYear){const t=Kt(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Ne(e,r)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Ne(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends vt{priority=130;parse(e,t){return Qt("R"===t?4:t.length,e)}set(e,t,n){const r=ve(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Te(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends vt{priority=130;parse(e,t){return Qt("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends vt{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return Gt(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends vt{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return Gt(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends vt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return Ut(Ht(xt,e),r);case"MM":return Ut(Gt(2,e),r);case"Mo":return Ut(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends vt{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Ut(Ht(xt,e),r);case"LL":return Ut(Gt(2,e),r);case"Lo":return Ut(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends vt{priority=100;parse(e,t,n){switch(t){case"w":return Ht(St,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Ne(function(e,t,n){const r=xe(e,n?.in),i=We(r,n)-t;return r.setDate(r.getDate()-7*i),xe(r,n?.in)}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends vt{priority=100;parse(e,t,n){switch(t){case"I":return Ht(St,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Te(function(e,t,n){const r=xe(e,n?.in),i=Ue(r,n)-t;return r.setDate(r.getDate()-7*i),r}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends vt{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Ht(wt,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Gt(t.length,e)}}validate(e,t){const n=Xt(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=en[r]:t>=1&&t<=Zt[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends vt{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Ht(kt,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Gt(t.length,e)}}validate(e,t){return Xt(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends vt{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=tn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends vt{priority=90;parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Ut(Gt(t.length,e),i);case"eo":return Ut(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=tn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends vt{priority=90;parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Ut(Gt(t.length,e),i);case"co":return Ut(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=tn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends vt{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return Gt(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ut(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Ut(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Ut(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Ut(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=function(e,t,n){const r=xe(e,n?.in);return we(r,t-function(e,t){const n=xe(e,t?.in).getDay();return 0===n?7:n}(r,n),n)}(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends vt{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends vt{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends vt{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends vt{priority=70;parse(e,t,n){switch(t){case"h":return Ht(Et,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends vt{priority=70;parse(e,t,n){switch(t){case"H":return Ht(Nt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends vt{priority=70;parse(e,t,n){switch(t){case"K":return Ht(Ct,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends vt{priority=70;parse(e,t,n){switch(t){case"k":return Ht(Tt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends vt{priority=60;parse(e,t,n){switch(t){case"m":return Ht(_t,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends vt{priority=50;parse(e,t,n){switch(t){case"s":return Ht(Ot,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends vt{priority=30;parse(e,t){return Ut(Gt(t.length,e),e=>Math.trunc(e*Math.pow(10,3-t.length)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends vt{priority=10;parse(e,t){switch(t){case"X":return Wt(Ft,e);case"XX":return Wt($t,e);case"XXXX":return Wt(qt,e);case"XXXXX":return Wt(Bt,e);default:return Wt(Vt,e)}}set(e,t,n){return t.timestampIsSet?e:ve(e,e.getTime()-Ee(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends vt{priority=10;parse(e,t){switch(t){case"x":return Wt(Ft,e);case"xx":return Wt($t,e);case"xxxx":return Wt(qt,e);case"xxxxx":return Wt(Bt,e);default:return Wt(Vt,e)}}set(e,t,n){return t.timestampIsSet?e:ve(e,e.getTime()-Ee(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends vt{priority=40;parse(e){return Yt(e)}set(e,t,n){return[ve(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends vt{priority=20;parse(e){return Yt(e)}set(e,t,n){return[ve(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},rn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,an=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,on=/^'([^]*?)'?$/,sn=/''/g,ln=/\S/,cn=/[a-zA-Z]/;function un(e){return e.match(on)[1].replace(sn,"'")}function dn(e,t){const n=()=>ve(t?.in,NaN),r=t?.additionalDigits??2,i=function(e){const t={},n=e.split(pn.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],pn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(pn.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const e=pn.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(i.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);a=function(e,t){if(null===t)/* @__PURE__ */return new Date(NaN);const n=e.match(hn);if(!n)/* @__PURE__ */return new Date(NaN);const r=!!n[4],i=gn(n[1]),a=gn(n[2])-1,o=gn(n[3]),s=gn(n[4]),l=gn(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const r=/* @__PURE__ */new Date(0);r.setUTCFullYear(e,0,4);const i=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(t,s,l):/* @__PURE__ */new Date(NaN);{const e=/* @__PURE__ */new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(bn[t]||(vn(e)?29:28))}(t,a,o)&&function(e,t){return t>=1&&t<=(vn(e)?366:365)}(t,i)?(e.setUTCFullYear(t,a,Math.max(i,o)),e):/* @__PURE__ */new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return n();const o=+a;let s,l=0;if(i.time&&(l=function(e){const t=e.match(fn);if(!t)return NaN;const n=yn(t[1]),r=yn(t[2]),i=yn(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*ye+r*ge+1e3*i:NaN}(i.time),isNaN(l)))return n();if(!i.timezone){const e=new Date(o+l),n=xe(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return s=function(e){if("Z"===e)return 0;const t=e.match(mn);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*ye+i*ge):NaN}(i.timezone),isNaN(s)?n():xe(o+l+s,t?.in)}var pn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},hn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,fn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,mn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function gn(e){return e?parseInt(e):1}function yn(e){return e&&parseFloat(e.replace(",","."))||0}var bn=[31,null,31,30,31,30,31,31,30,31,30,31];function vn(e){return e%400==0||e%4==0&&e%100!=0}var xn=e=>{let t;return t="number"==typeof e?e<1e12?/* @__PURE__ */new Date(1e3*e):new Date(e):"string"==typeof e?dn(e):e,Math.floor((n=t,+xe(n)/1e3)).toString();var n},wn=e=>!("string"!=typeof e||!/^\d{4}-\d{2}-\d{2}$/.test(e))&&Ie(function(e,t,n,r){const i=()=>ve(r?.in||n,NaN),a=Object.assign({},Se()),o=r?.locale??a.locale??Be,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():xe(n,r?.in);const c={firstWeekContainsDate:s,weekStartsOn:l,locale:o},u=[new bt(r?.in,n)],d=t.match(an).map(e=>{const t=e[0];return t in tt?(0,tt[t])(e,o.formatLong):e}).join("").match(rn),p=[];for(let g of d){!r?.useAdditionalWeekYearTokens&&ot(g)&&st(g,t,e),!r?.useAdditionalDayOfYearTokens&&at(g)&&st(g,t,e);const n=g[0],a=nn[n];if(a){const{incompatibleTokens:t}=a;if(Array.isArray(t)){const e=p.find(e=>t.includes(e.token)||e.token===n);if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${g}\` at the same time`)}else if("*"===a.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);p.push({token:n,fullToken:g});const r=a.run(e,g,o.match,c);if(!r)return i();u.push(r.setter),e=r.rest}else{if(n.match(cn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===g?g="'":"'"===n&&(g=un(g)),0!==e.indexOf(g))return i();e=e.slice(g.length)}}if(e.length>0&&ln.test(e))return i();const h=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]);let f=xe(n,r?.in);if(isNaN(+f))return i();const m={};for(const g of h){if(!g.validate(f,c))return i();const e=g.set(f,m,c);Array.isArray(e)?(f=e[0],Object.assign(m,e[1])):f=e}return f}(e,"yyyy-MM-dd",/* @__PURE__ */new Date)),kn=Symbol.for("immer-nothing"),Sn=Symbol.for("immer-draftable"),Nn=Symbol.for("immer-state");function Tn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Cn=Object,En=Cn.getPrototypeOf,_n="constructor",On="prototype",An="configurable",In="enumerable",zn="writable",Dn="value",Pn=e=>!!e&&!!e[Nn];function Mn(e){return!!e&&(Ln(e)||Un(e)||!!e[Sn]||!!e[_n]?.[Sn]||Hn(e)||Wn(e))}var jn=Cn[On][_n].toString(),Rn=/* @__PURE__ */new WeakMap;function Ln(e){if(!e||!Yn(e))return!1;const t=En(e);if(null===t||t===Cn[On])return!0;const n=Cn.hasOwnProperty.call(t,_n)&&t[_n];if(n===Object)return!0;if(!Gn(n))return!1;let r=Rn.get(n);return void 0===r&&(r=Function.toString.call(n),Rn.set(n,r)),r===jn}function Fn(e,t,n=!0){0===$n(e)?(n?Reflect.ownKeys(e):Cn.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function $n(e){const t=e[Nn];return t?t.type_:Un(e)?1:Hn(e)?2:Wn(e)?3:0}var qn=(e,t,n=$n(e))=>2===n?e.has(t):Cn[On].hasOwnProperty.call(e,t),Vn=(e,t,n=$n(e))=>2===n?e.get(t):e[t],Bn=(e,t,n,r=$n(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n},Un=Array.isArray,Hn=e=>e instanceof Map,Wn=e=>e instanceof Set,Yn=e=>"object"==typeof e,Gn=e=>"function"==typeof e,Qn=e=>"boolean"==typeof e,Jn=e=>e.copy_||e.base_,Kn=e=>e.modified_?e.copy_:e.base_;function Xn(e,t){if(Hn(e))return new Map(e);if(Wn(e))return new Set(e);if(Un(e))return Array[On].slice.call(e);const n=Ln(e);if(!0===t||"class_only"===t&&!n){const t=Cn.getOwnPropertyDescriptors(e);delete t[Nn];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],a=t[i];!1===a[zn]&&(a[zn]=!0,a[An]=!0),(a.get||a.set)&&(t[i]={[An]:!0,[zn]:!0,[In]:a[In],[Dn]:e[i]})}return Cn.create(En(e),t)}{const t=En(e);if(null!==t&&n)return{...e};const r=Cn.create(t);return Cn.assign(r,e)}}function Zn(e,t=!1){return tr(e)||Pn(e)||!Mn(e)||($n(e)>1&&Cn.defineProperties(e,{set:er,add:er,clear:er,delete:er}),Cn.freeze(e),t&&Fn(e,(e,t)=>{Zn(t,!0)},!1)),e}var er={[Dn]:function(){Tn(2)}};function tr(e){return null===e||!Yn(e)||Cn.isFrozen(e)}var nr="MapSet",rr="Patches",ir="ArrayMethods",ar={};function or(e){const t=ar[e];return t||Tn(0),t}var sr,lr=e=>!!ar[e],cr=()=>sr;function ur(e,t){t&&(e.patchPlugin_=or(rr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function dr(e){pr(e),e.drafts_.forEach(fr),e.drafts_=null}function pr(e){e===sr&&(sr=e.parent_)}var hr=e=>sr={drafts_:[],parent_:sr,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:/* @__PURE__ */new Set,processedForPatches_:/* @__PURE__ */new Set,mapSetPlugin_:lr(nr)?or(nr):void 0,arrayMethodsPlugin_:lr(ir)?or(ir):void 0};function fr(e){const t=e[Nn];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function mr(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(void 0!==e&&e!==n){n[Nn].modified_&&(dr(t),Tn(4)),Mn(e)&&(e=gr(t,e));const{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Nn].base_,e,t)}else e=gr(t,n);return function(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zn(t,n)}(t,e,!0),dr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kn?e:void 0}function gr(e,t){if(tr(t))return t;const n=t[Nn];if(!n)return kr(t,e.handledSet_,e);if(!br(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);wr(n,e)}return n.copy_}function yr(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var br=(e,t)=>e.scope_===t,vr=[];function xr(e,t,n,r){const i=Jn(e),a=e.type_;if(void 0!==r&&Vn(i,r,a)===t)return void Bn(i,r,n,a);if(!e.draftLocations_){const t=e.draftLocations_=/* @__PURE__ */new Map;Fn(i,(e,n)=>{if(Pn(n)){const r=t.get(n)||[];r.push(e),t.set(n,r)}})}const o=e.draftLocations_.get(t)??vr;for(const s of o)Bn(i,s,n,a)}function wr(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const r=n.getPath(e);r&&n.generatePatches_(e,r,t)}yr(e)}}function kr(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Pn(e)||t.has(e)||!Mn(e)||tr(e)||(t.add(e),Fn(e,(r,i)=>{if(Pn(i)){const t=i[Nn];br(t,n)&&(Bn(e,r,Kn(t),e.type_),yr(t))}else Mn(i)&&kr(i,t,n)})),e}var Sr={get(e,t){if(t===Nn)return e;if("constructor"===t||"__proto__"===t){const n=Jn(e)[t];return new Proxy(n||{},{get:(e,t)=>"__proto__"===t||"prototype"===t?Object.freeze(/* @__PURE__ */Object.create(null)):Reflect.get(e,t),set:()=>!0,apply:(e,t,n)=>Reflect.apply(e,t,n)})}let n=e.scope_.arrayMethodsPlugin_;const r=1===e.type_&&"string"==typeof t;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Jn(e);if(!qn(i,t,e.type_))return function(e,t,n){const r=Cr(t,n);return r?Dn in r?r[Dn]:r.get?.call(e.draft_):void 0}(e,i,t);const a=i[t];if(e.finalized_||!Mn(a))return a;if(r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return a;if(a===Tr(e.base_,t)){_r(e);const n=1===e.type_?+t:t,r=Or(e.scope_,a,e,n);return e.copy_[n]=r}return a},has:(e,t)=>"constructor"!==t&&"__proto__"!==t&&"prototype"!==t&&t in Jn(e),ownKeys:e=>Reflect.ownKeys(Jn(e)),set(e,t,n){if("constructor"===t||"__proto__"===t||"prototype"===t)return!0;const r=Cr(Jn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Tr(Jn(e),t),i=r?.[Nn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||qn(e.base_,t,e.type_)))return!0;_r(e),Er(e)}return e.copy_[t]===n&&(void 0!==n||qn(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),function(e,t,n){const{scope_:r}=e;if(Pn(n)){const i=n[Nn];br(i,r)&&i.callbacks_.push(function(){_r(e),xr(e,n,Kn(i),t)})}else Mn(n)&&e.callbacks_.push(function(){const i=Jn(e);3===e.type_?i.has(n)&&kr(n,r.handledSet_,r):Vn(i,t,e.type_)===n&&r.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&kr(Vn(e.copy_,t,e.type_),r.handledSet_,r)})}(e,t,n)),!0},deleteProperty:(e,t)=>(_r(e),void 0!==Tr(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),Er(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Jn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[zn]:!0,[An]:1!==e.type_||"length"!==t,[In]:r[In],[Dn]:n[t]}:r},defineProperty(){Tn(11)},getPrototypeOf:e=>En(e.base_),setPrototypeOf(){Tn(12)}},Nr={};for(let NL in Sr){let e=Sr[NL];Nr[NL]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function Tr(e,t){const n=e[Nn];return(n?Jn(n):e)[t]}function Cr(e,t){if(!(t in e))return;let n=En(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=En(n)}}function Er(e){e.modified_||(e.modified_=!0,e.parent_&&Er(e.parent_))}function _r(e){e.copy_||(e.assigned_=/* @__PURE__ */new Map,e.copy_=Xn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Or(e,t,n,r){const[i,a]=Hn(t)?or(nr).proxyMap_(t,n):Wn(t)?or(nr).proxySet_(t,n):function(e,t){const n=Un(e),r={type_:n?1:0,scope_:t?t.scope_:cr(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,a=Sr;n&&(i=[r],a=Nr);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}(t,n);return(n?.scope_??cr()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&void 0!==r?function(e,t,n){e.callbacks_.push(function(r){const i=t;if(!i||!br(i,r))return;r.mapSetPlugin_?.fixSetContents(i);const a=Kn(i);xr(e,i.draft_??i,a,n),wr(i,r)})}(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Ar(e){if(!Mn(e)||tr(e))return e;const t=e[Nn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Xn(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Xn(e,!0);return Fn(n,(e,t)=>{Bn(n,e,Ar(t))},r),t&&(t.finalized_=!1),n}Nr.deleteProperty=function(e,t){return Nr.set.call(this,e,t,void 0)},Nr.set=function(e,t,n){return Sr.set.call(this,e[0],t,n,e[0])};var Ir=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Gn(e)&&!Gn(t)){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}let r;if(Gn(t)||Tn(6),void 0===n||Gn(n)||Tn(7),Mn(e)){const i=hr(this),a=Or(0,e,void 0);let o=!0;try{r=t(a),o=!1}finally{o?dr(i):pr(i)}return ur(i,n),mr(r,i)}if(!e||!Yn(e)){if(r=t(e),void 0===r&&(r=e),r===kn&&(r=void 0),this.autoFreeze_&&Zn(r,!0),n){const t=[],i=[];or(rr).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Tn(1)},this.produceWithPatches=(e,t)=>{if(Gn(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Qn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;Mn(e)||Tn(8),Pn(e)&&(Pn(t=e)||Tn(10),e=Ar(t));const n=hr(this),r=Or(0,e,void 0);return r[Nn].isManual_=!0,pr(n),r}finishDraft(e,t){const n=e&&e[Nn];n&&n.isManual_||Tn(9);const{scope_:r}=n;return ur(r,t),mr(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=or(rr).applyPatches_;return Pn(e)?r(e,t):this.produce(e,e=>r(e,t))}},zr=Ir.produce,Dr=({id:e,className:t,previewMode:n,baseElementId:r,plitziElementLayout:i,definition:a,elementState:o})=>{let{items:s}=a,l=o.visibility;return w(()=>ce(t,{"plitzi-component--hidden":!1===l||"false"===l,"plitzi-component":!n&&!i,"plitzi-component--layout":!n&&!!i,with__container:!n&&!!s,"container--empty":!n&&!!s&&0===s.length&&!i,"container--base-element":!n&&!!s&&r===e,"plitzi-component--layout-body":i&&e===i.containerId},a.styleSelectors.base),[t,l,n,i,s,r,e,a.styleSelectors.base])},Pr={onLoad:{action:"onLoad",title:"On Load",type:"trigger",preview:{},params:{}},onClick:{action:"onClick",title:"On Click",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onMouseEnter:{action:"onMouseEnter",title:"On Mouse Enter",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onMouseLeave:{action:"onMouseLeave",title:"On Mouse Leave",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onHover:{action:"onHover",title:"On Hover",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onFocus:{action:"onFocus",title:"On Focus",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}},onBlur:{action:"onBlur",title:"On Blur",type:"trigger",preview:{propagateEvent:""},params:{propagateEvent:{canBind:!1,defaultValue:!1,type:"boolean",label:"Propagate Event"}}}},Mr=["onClick","onHover","onFocus","onBlur","onMouseEnter","onMouseLeave"],jr=l(void 0);jr.displayName="StoreContext";var Rr=l(void 0);Rr.displayName="StoreRegistryContext";var Lr=/* @__PURE__ */new Map,Fr=e=>{let t=Lr.get(e);return void 0===t&&(t=e.split("."),Lr.size>=512&&Lr.delete(Lr.keys().next().value),Lr.set(e,t)),t},$r=/* @__PURE__ */new Map;function qr(e,t){let n=Array.isArray(t);if("string"!=typeof t&&!n||n&&!t.length||"string"==typeof t&&!t)return e;if("string"==typeof t&&-1===t.indexOf("."))return"object"==typeof e&&e&&t in e?e[t]:void 0;if("string"==typeof t)return(e=>{let t=$r.get(e);if(!t){if(t=(e=>{if(1===e.length){let t=e[0];return e=>"object"==typeof e&&e&&t in e?e[t]:void 0}return t=>{let n=t;for(let r=0;r<e.length;r++){if("object"!=typeof n||!n)return;n=n[e[r]]}return n}})(Fr(e)),$r.size>=512){let e=$r.keys().next().value;$r.delete(e)}$r.set(e,t)}return t})(t)(e);let r=e;for(let i of t){if("object"!=typeof r||!r||!(i in r))return;r=r[i]}return r}var Vr=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0};function Br(e,t,n){let r=g(jr),i=g(Rr);if(e)return e;if(void 0!==n){let e=((e,t)=>{for(let n=e;n;n=n.parent)if(n.id===t)return n.store})(i,n);if(!e)throw Error(`${t}: no store registered with id "${n}" in any ancestor StoreProvider`);return e}if(!r)throw Error(`${t} must be used inside a StoreProvider`);return r}function Ur(e,t,n){let r=t.current.length;return w(()=>Array.from({length:r},(n,r)=>n=>{let i=t.current[r],a="function"==typeof i?i(e.getState()):i;e.setState(a,n)}),[e,n])}var Hr=typeof window<"u"?x:y,Wr=(e,t)=>{if(Object.is(e,t))return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!Object.is(e[i],t[i]))return!1;return!0};function Yr(e,t,n={}){let r=n,i=Br(r.store,"useStoreSync",r.storeId);Array.isArray(e)?function(e,t,n,r){let{mode:i="sync",enabled:a=!0,syncStrategy:o="afterRender"}=r,s=t.map((e,t)=>"function"==typeof e?`fn_${t}`:e).join("|"),l=S(!1),c=!l.current;l.current=!0;let u=S(void 0),d=a&&(c||"sync"===i&&n.some((e,t)=>!Object.is(u.current?.[t],e))),p=()=>{u.current=n,e.batch(()=>{t.forEach((t,r)=>{let i="function"==typeof t?t(e.getState()):t;e.setState(i,n[r])})})};"render"===o?d&&p():(d&&c&&p(),Hr(()=>{d&&!c&&p()},[d,n,s]))}(i,e,t,n):function(e,t,n,r){let i=void 0===t,a="function"==typeof t,o=i?Wr:Object.is,{mode:s="sync",enabled:l=!0,equalityFn:c=o,syncStrategy:u="afterRender"}=r,d=S(void 0),p=S(!1),h=!p.current;p.current=!0;let f=d.current,m=l&&(h||"sync"===s&&(void 0===f||!c(f,n))),g=(r=!0)=>{if(d.current=n,i)e.setState(void 0,e=>({...e,...n}),r);else if(a){let i=t(e.getState());e.setState(i,n,r)}else e.setState(t,n,r)};"render"===u?m&&g():(m&&h&&g(!1),Hr(()=>{m&&!h&&g()},[m,n,t]))}(i,e,t,n)}var Gr=()=>{},Qr=class{items=[];notifying=0;dead=0;get length(){return this.items.length-this.dead}add(e){return this.items.push(e),()=>this.remove(e)}remove(e){let t=this.items.indexOf(e);if(-1===t)return;if(this.notifying>0)return this.items[t]=Gr,void this.dead++;let n=this.items.pop();t<this.items.length&&(this.items[t]=n)}begin(){this.notifying++}end(){0===--this.notifying&&this.dead>0&&this.compact()}forEach(e,t){this.begin();try{let n,{items:r}=this,i=r.length,a=0,o=!1;for(;a<i;)try{for(;a<i;a++)e(r[a])}catch(e){o||(o=!0,n=e),a++}if(o){if(!t)throw n;t(n)}}finally{this.end()}}clear(){if(this.notifying>0){let{items:e}=this;for(let t=0,n=e.length;t<n;t++)e[t]=Gr;return void(this.dead=e.length)}this.items.length=0,this.dead=0}compact(){let{items:e}=this,t=0;for(let n=0;n<e.length;n++)e[n]!==Gr&&(e[t++]=e[n]);e.length=t,this.dead=0}},Jr=e=>"object"==typeof e&&!!e&&!Array.isArray(e),Kr=(e,t)=>{if(!Jr(e)||!Jr(t))return t;let n={...e};for(let r of Object.keys(t))"__proto__"!==r&&(n[r]=r in e?Kr(e[r],t[r]):t[r]);return n};var Xr,Zr=Symbol("unchanged"),ei=e=>/^\d+$/.test(e),ti=e=>Array.isArray(e)?e.slice():{...e},ni=(e,t,n,r,i)=>{let a=t[n],o="object"==typeof e&&e?e:{};if(n===t.length-1){let e=o[a],t=i?r(e):r;if(e===t)return Zr;let n=ti(o);return n[a]=t,n}let s=ni(o[a],t,n+1,r,i);if(s===Zr)return Zr;let l=ti(o);return l[a]=s,l},ri=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,ii=e=>ri.test(e)?`.${e}`:`[${JSON.stringify(e)}]`,ai=e=>ri.test(e)?e:JSON.stringify(e),oi=e=>{let t=e.length,n="";for(let a=0;a<t-1;a++){let t=0===a?"o":"_"+(a-1);n+=`var _${a}=${t}==null?void 0:${t}${ii(e[a])};\n`}let r=t>1?"_"+(t-2):"o";n+=`var _p=${r}==null?void 0:${r}${ii(e[t-1])};\n`,n+="var _v=f?v(_p):v;\nif(_p===_v)return null;\n";let i="_v";for(let a=t-1;a>=0;a--)i=`{...${0===a?"o":`(_${a-1}||{})`},${ai(e[a])}:${i}}`;return n+=`return ${i};`,Function("o","v","f",n)},si=/* @__PURE__ */new Map,li=(e,t,n,r,i)=>{let a=((e,t)=>{if(!(()=>{if(typeof window>"u")return!1;if(void 0===Xr)try{oi(["x","y"])({x:{}},1,!1),Xr=!0}catch{Xr=!1}return Xr})())return;let n=si.get(e);if(n)return n;if(t.some(ei))return;let r=oi(t);return si.size>=256&&si.delete(si.keys().next().value),si.set(e,r),r})(t,n);if(a){let t=a(e,r,i);return null===t?Zr:t}return ni(e,n,0,r,i)},ci=e=>"number"==typeof e||""===e||isNaN(Number(e))?e:Number(e),ui=e=>Array.isArray(e)?e.slice():{...e},di=(e,t,n,r)=>{let i=ci(t[n]),a=ui(e);return a[i]=n===t.length-1?r:di(e[i]??{},t,n+1,r),a},pi=Symbol("@plitzi/nexus/cancel"),hi=Symbol("no-error"),fi=(e,t,n)=>{let r=0,i=hi;for(;r<n;)try{for(;r<n;r++)e[r](t)}catch(e){i===hi&&(i=e),r++}return i},mi="__proto__";function gi(e){let{getOwnState:t,getOwnSnapshot:n,setOwnState:r,mutateOwnKey:i,parent:a,listeners:o,pathListeners:s,changeListeners:l,interceptors:c,reportError:u,invalidateDescendants:d,onDelegateToParent:p}=e,h=(e,t,n)=>{let r=t;for(let i=0,a=c.length;i<a;i++){let a;try{a=c[i]({path:e,value:r,prev:n})}catch(t){return u(t,"beforeChange",e),pi}if(a===pi)return pi;void 0!==a&&(r=a)}return r},f=0,m=/* @__PURE__ */new Set,g=(e,t)=>{let{items:n}=e;if(f>0)for(let r=0,i=n.length;r<i;r++)m.add(n[r]);else if(0!==n.length){e.begin();try{let e=fi(n,t,n.length);e!==hi&&u(e,"notify",t)}finally{e.end()}}},y=(e,t,n)=>{let r={path:e,prev:t,next:n,prevValue:void 0===e?t:qr(t,e),nextValue:void 0===e?n:qr(n,e)},{items:i}=l;l.begin();try{let t=fi(i,r,i.length);t!==hi&&u(t,"onChange",e)}finally{l.end()}},b=(e,t,n,r)=>{let i=s.getDescendants(e);if(i)for(let a of i){let i=s.direct.get(a);if(!i)continue;let o=Fr(a).slice(r);qr(t,o)!==qr(n,o)&&g(i,e)}};return{setState:(e,u,f=!0)=>{let m=t();if("string"==typeof e&&-1!==e.indexOf(mi)&&-1!==Fr(e).indexOf(mi))throw Error(`@plitzi/nexus: refused to write to unsafe path "${e}" (\`__proto__\` segment)`);if(a&&"string"==typeof e&&!(-1===e.indexOf(".")?Object.hasOwn(m,e):((e,t)=>{let n=e;for(let r=0,i=t.length;r<i;r++){if("object"!=typeof n||!n||!Object.hasOwn(n,t[r]))return!1;n=n[t[r]]}return!0})(m,Fr(e))))return p?.(e),void a.setState(e,u,f);if("string"!=typeof e)return void((e,t,n,i)=>{let a=e?qr(n,e):void 0,u=e?"function"==typeof t?t(a):t:void 0;if(e&&c.length>0){let t=h(e,u,a);if(t===pi)return;u=t}if(e&&a===u)return;let p=e?((e,t,n)=>{if("string"==typeof t){if(!t)return n;let r=Fr(t);if(1===r.length){let t=ui(e);return t[ci(r[0])]=n,t}return di(e,r,0,n)}return Array.isArray(t)&&t.length?di(e,t,0,n):n})(n,e,u):"function"==typeof t?t(n):{...n,...t};if(!e&&c.length>0){let e=h(void 0,p,n);if(e===pi)return;p=e}p!==n&&(r(p),l.length>0&&y(e,n,p),d(),i&&(g(o,e),s.size>0&&s.direct.forEach((t,r)=>{qr(n,r)!==qr(p,r)&&g(t,e)})))})(e,u,m,f);if(-1===e.indexOf(".")){let t=m[e],r="function"==typeof u?u(t):u,a=r;if(c.length>0){let n=h(e,r,t);if(n===pi)return;a=n}if(t===a)return;let p=l.length>0?n():void 0;if(i(e,a),void 0!==p&&y(e,p,n()),f&&(g(o,e),s.size>0)){let n=s.direct.get(e);n&&g(n,e),b(e,t,a,1)}return void d()}let v,x=Fr(e);if(c.length>0){let t=qr(m,e),n="function"==typeof u?u(t):u,r=h(e,n,t);if(r===pi)return;v=li(m,e,x,r,!1)}else v=li(m,e,x,u,"function"==typeof u);if(v===Zr)return;let w=v;r(w),l.length>0&&y(e,m,w),f&&(g(o,e),s.size>0&&(((e,t)=>{s.walkAncestors(t,t=>g(t,e))})(e,x),b(e,m,w,0))),d()},batch:e=>{f++;try{return e()}finally{if(f--,0===f&&m.size>0){let e=[...m];m.clear();let t=fi(e,void 0,e.length);t!==hi&&u(t,"notify",void 0)}}}}}var yi=class{subscribers=null;children=null},bi=class{direct=/* @__PURE__ */new Map;descendants=/* @__PURE__ */new Map;root=new yi;size=0;add(e,t){let n=Fr(e),r=this.direct.get(e);if(!r){r=new Qr,this.direct.set(e,r);let t=this.root;for(let e of n){t.children||=/* @__PURE__ */new Map;let n=t.children.get(e);n||(n=new yi,t.children.set(e,n)),t=n}t.subscribers=r,this.size++;let i="";for(let r=0;r<n.length-1;r++){i=i?`${i}.${n[r]}`:n[r];let t=this.descendants.get(i);t||(t=/* @__PURE__ */new Set,this.descendants.set(i,t)),t.add(e)}}return r.add(t),()=>this.remove(e,r,t,n)}remove(e,t,n,r){if(this.direct.get(e)!==t||(t.remove(n),t.length>0))return;this.direct.delete(e),this.size--;let i=this.root;for(let o of r){if(!i.children)return;let e=i.children.get(o);if(!e)return;i=e}i.subscribers===t&&(i.subscribers=null);let a="";for(let o=0;o<r.length-1;o++){a=a?`${a}.${r[o]}`:r[o];let t=this.descendants.get(a);t&&(t.delete(e),0===t.size&&this.descendants.delete(a))}}walkAncestors(e,t){let n=this.root;for(let r of e){if(!n.children)return;let e=n.children.get(r);if(!e)return;n=e,n.subscribers&&t(n.subscribers)}}getDescendants(e){return this.descendants.get(e)}forEachAffected(e,t,n){let r=e=>{e&&e.forEach(t,n)};if("string"!=typeof e)return void this.direct.forEach(r);let i=Fr(e);this.walkAncestors(i,r),this.descendants.get(e)?.forEach(e=>r(this.direct.get(e)))}clear(){this.direct.clear(),this.descendants.clear(),this.root.children=null,this.root.subscribers=null,this.size=0}};function vi(e,t){let n,r,i,a={},o=new Qr,s=new Qr,l=new bi,c=new Qr,u=()=>{0!==c.length&&c.forEach(e=>e())},d=[],p=[],h=[],f=t?.parent,m=(e,t,n)=>{if(0===p.length)throw e;let r={error:e,phase:t,path:n};for(let i=0,a=p.length;i<a;i++)p[i](r)},g=()=>a,y=()=>n??={...a},{getState:b,getPath:v,invalidate:x,resetCache:w,getMergeCount:k}=function(e,t,n,r){if(!n)return{getState:t,getPath:t=>qr(e(),t),invalidate:()=>{},resetCache:()=>{},getMergeCount:()=>0};let i,a=n,o=r&&r.length>0?new Set(r):void 0,s=!0,l=!1,c=0,u=/* @__PURE__ */new Map,d=()=>((s||void 0===i)&&(i=(()=>{c++;let e=t(),n=Kr(a.getState(),e);if(o)for(let t of o)void 0!==e[t]&&(n[t]=e[t]);return n})(),s=!1),i);return{getState:d,getPath:t=>{if(l)u.clear(),l=!1;else if(u.has(t))return u.get(t);let n=(t=>{if(o){let n=t.indexOf("."),r=-1===n?t:t.slice(0,n);if(o.has(r)&&void 0!==e()[r])return qr(e(),t)}let n=qr(e(),t);if(void 0===n)return a.getPath(t);let r=a.getPath(t);return void 0!==r&&Jr(n)&&Jr(r)?qr(d(),t):n})(t);return u.set(t,n),n},invalidate:()=>{s=!0,l=!0},resetCache:()=>{u.clear(),i=void 0,s=!0,l=!1},getMergeCount:()=>c}}(g,y,f,t?.exclusive),S=()=>{x(),u()},N=!1;f&&(w(),i=f.subscribeInvalidate?.(S));let{setState:T,batch:C}=gi({getOwnState:g,getOwnSnapshot:y,setOwnState:e=>{a=e,n=void 0,x()},mutateOwnKey:(e,t)=>{a[e]=t,x(),n=void 0},parent:f,listeners:o,pathListeners:l,changeListeners:s,interceptors:d,reportError:m,invalidateDescendants:u,onDelegateToParent:void 0}),E=()=>{r&&(r.unsubscribe(),r=void 0,w())},_=()=>{f&&(!N&&(o.length>0||l.size>0||s.length>0)?r||!f||(x(),w(),r=function(e,t,n,r,i,a,o){let s;return{unsubscribe:e.subscribe(e=>{o();let l=e;if(t.forEach(t=>t(e),e=>a(e,"notify",l)),n.size>0&&n.forEachAffected(e,t=>t(e),e=>a(e,"notify",l)),r.length>0){let e=i(),t=s??e,n={path:l,prev:t,next:e,prevValue:void 0===l?t:qr(t,l),nextValue:void 0===l?e:qr(e,l)};s=e,r.forEach(e=>e(n),e=>a(e,"onChange",l))}}),seedBaseline:()=>{s??=i()}}}(f,o,l,s,b,m,x),s.length>0&&r.seedBaseline()):E())},O=e=>(_(),()=>{e(),_()}),A=e=>O(o.add(e)),I=(e,t)=>O(l.add(e,t)),z=e=>{let t=O(s.add(e));return r?.seedBaseline(),t};a="function"==typeof e?e(T,b):e;let D={id:t?.id,scopePath:t?.scopePath,getState:b,getPath:v,setState:T,get:e=>void 0===e?b():v(e),set:T,watch:(e,t)=>"function"==typeof e?A(e):I(e,t),withBase:e=>{let t=(t,n)=>T(void 0===t?e:`${e}.${t}`,n);return{getState:t=>{let n=v(e);return void 0===n&&void 0!==t?t:n},getPath:(t,n)=>{let r=v(`${e}.${t}`);return void 0===r&&void 0!==n?n:r},setState:t,subscribe:t=>I(e,t),subscribePath:(t,n)=>I(`${e}.${t}`,n),get:t=>v(void 0===t?e:`${e}.${t}`),set:t,watch:(t,n)=>"function"==typeof t?I(e,t):I(`${e}.${t}`,n)}},batch:C,subscribe:A,subscribePath:I,subscribeChange:z,destroy:()=>{N=!0,E(),o.clear(),l.clear(),s.clear(),c.clear(),i?.()},reconnect:()=>{N=!1,f&&(i?.(),i=f.subscribeInvalidate?.(S)),_()},subscribeInvalidate:e=>c.add(e),hydrate:()=>{for(let e of h)e()}};if(t?.middlewares)for(let P of t.middlewares){let e=P(D);e?.beforeChange&&d.push(e.beforeChange),e?.onChange&&z(e.onChange),e?.onError&&p.push(e.onError);let n=e?.hydrate;n&&(t.deferHydrate?h.push(()=>n(D)):n(D))}return D}var xi=vi,wi=Symbol("@plitzi/nexus/ssr-snapshot");function ki(e){return"object"==typeof e&&!!e&&wi in e}var Si=l(void 0),Ni=e=>!0===e.cascade,Ti=({store:e,id:t,segment:n,isolate:r,path:i,value:a,inherit:o,autoSync:s=!0,middlewares:l,children:c})=>{let u=g(jr),d=g(Si),p=g(Rr),h=u?.scopePath??"",f=w(()=>void 0===n?h:h?`${h}/${n}`:n,[h,n]),m=S(void 0),b="live"===o,v=w(()=>{let e="snapshot"===o&&u?u.getState():{},t="function"==typeof a?a(e):{...e,...a};return ki(t)?function(e){return ki(e)?{...e}:e}(t):t},[o,u,a]),x=l??[],k=d?[...d,...x]:x,N=w(()=>{let e=x.filter(Ni);return 0===e.length?d:[...d??[],...e]},[d,l]);m.current||=e??xi(()=>v,{id:t,scopePath:f,exclusive:b?r:void 0,parent:b?u:void 0,middlewares:k.length>0?k:void 0,deferHydrate:!0});let T=w(()=>t?{id:t,store:m.current,parent:p}:p,[t,p]);S(!1),y(()=>{},[t,p]),y(()=>(b&&!e&&m.current?.reconnect?.(),()=>{b&&!e&&m.current?.destroy?.()}),[b,e]);let C=S(!1);y(()=>{!C.current&&m.current?.hydrate&&(m.current.hydrate(),C.current=!0)},[]),Yr(i,i?a:v,{enabled:!!a&&s,store:m.current});let E=/* @__PURE__ */A(jr,{value:m.current,children:c});return T!==p&&(E=/* @__PURE__ */A(Rr,{value:T,children:E})),N!==d&&(E=/* @__PURE__ */A(Si,{value:N,children:E})),E},Ci=[];var Ei=()=>({useStore:function(e,t){return function(e,t={}){let n=Br(t.store,"useStore",t.storeId),r=Array.isArray(e),i=function(e,t,n){let r=n.mode??"sync",i=n.enabled??!0,a=void 0===t,o=n.equalityFn??(a?Wr:Object.is),s=n.transformer,l=S(s);l.current=s;let c=w(()=>function(e,t){return()=>{if("string"==typeof t)return e.getPath(t);if("function"==typeof t){let n=e.getState();return qr(n,t(n))}return e.getState()}}(e,t),[e,t]),u=S(c()),d=w(()=>n=>i&&"mount"!==r?"string"==typeof t?e.subscribePath(t,n):e.subscribe(n):()=>{},[i,r,t,e]),p=()=>{if(!i)return u.current;if("mount"===r)return c();let e=c();return o(u.current,e)?u.current:(u.current=e,e)},h=T(d,p,p);return[w(()=>l.current?l.current(h):h,[h]),m(n=>{a?e.setState(void 0,n):"function"==typeof t?e.setState(t(e.getState()),n):e.setState(t,n)},[e,t])]}(n,r?void 0:e,r?{...t,enabled:!1,transformer:void 0}:t),a=function(e,t,n){let r=n.mode??"sync",i=n.enabled??!0,a=n.equalityFn??Vr,o=n.transformer,s=S(o);s.current=o;let l=S(t);l.current=t;let c=t.map((e,t)=>"function"==typeof e?`fn_${t}`:e).join("|"),u=S(null),d=w(()=>function(e,t,n,r={}){let{equalityFn:i=Vr}=r;return()=>{let r=t.current,a=r.some(e=>"function"==typeof e)?e.getState():void 0,o=r.map(t=>"function"==typeof t?qr(a,t(a)):e.getPath(t)),s=n.current;return null!==s&&i(s,o)?s:(n.current=o,o)}}(e,l,u,{equalityFn:a}),[e,c,a]),p=function(e,t,n,r){let i=m(()=>{if(!n){let e=r.current??t();return r.current=e,e}return t()},[n,t,r]);return T(e,i,i)}(function(e,t,n,r,i){return w(()=>n=>{if(!r||"mount"===i)return()=>{};let a=t.current;if(a.some(e=>"function"==typeof e))return e.subscribe(n);let o=a.map(t=>e.subscribePath(t,n));return()=>o.forEach(e=>e())},[e,n,r,i])}(e,l,c,i,r),d,i,u);return[w(()=>s.current?s.current(p):p,[p]),...Ur(e,l,c)]}(n,r?e:Ci,r?t:{...t,enabled:!1,transformer:void 0});return r?a:i}(e,t)},useStoreSync:function(e,t,n){Yr(e,t,n)},useStoreGetter:function(e,t){return function(e,t){let n="string"==typeof e?e:void 0,r=Array.isArray(e)?e:void 0,i="object"!=typeof e||Array.isArray(e)?t:e,a=Br(i?.store,"useStoreGetter",i?.storeId),o=r?.map(e=>"function"==typeof e?e.toString():e).join("|");return w(()=>{if(r)return r.map(e=>(t,n)=>{let r="function"==typeof e?e(a.getState()):qr(a.getState(),e);if(void 0!==t){let e=qr(r,t);return void 0===e&&void 0!==n?n:e}return void 0===r&&void 0!==n?n:r});if(void 0!==n){let e=a.withBase(n);return(t,n)=>void 0===t?void 0===n?e.getState():e.getState(n):void 0===n?e.getPath(t):e.getPath(t,n)}return(e,t)=>{let n=a.getState();if(void 0!==e){let r=qr(n,e);return void 0===r&&void 0!==t?t:r}return n}},[a,n,o])}(e,t)},useStoreSetter:function(e,t){return function(e,t){let n="string"==typeof e?e:void 0,r="object"==typeof e?e:t,i=Br(r?.store,"useStoreSetter",r?.storeId);return w(()=>void 0===n?i.setState:i.withBase(n).setState,[i,n])}(e,t)}}),_i=(e,t)=>"function"==typeof e?!e(t):!1===e,Oi=(e,t)=>"string"!=typeof e||e===t||e.length>t.length&&e.startsWith(t)&&"."===e[t.length]||t.length>e.length&&t.startsWith(e)&&"."===t[e.length],Ai=(e,t,n=12)=>{if(!Object.is(e,t)){if(n<=0||!Jr(e)||!Jr(t))return{path:"",value:t};for(let r of/* @__PURE__ */new Set([...Object.keys(e),...Object.keys(t)])){if(Object.is(e[r],t[r]))continue;let i=Ai(e[r],t[r],n-1);if(i)return{path:i.path?`${r}.${i.path}`:r,value:i.value}}}},Ii=/* @__PURE__ */new WeakMap,zi=e=>{let t=e?.enabled;return n=>{if(_i(t,n.getState()))return;let{handle:r,record:i}=function(e,t={}){let n=t.limit??100,r=t.path,i=t.shouldRecord,a=[{state:e.getState(),timestamp:Date.now()}],o=0,s=!1,l=()=>({entries:a,index:o,canUndo:o>0,canRedo:o<a.length-1}),c=l(),u=/* @__PURE__ */new Set,d=()=>{c=l(),u.forEach(e=>e())},p=t=>{if(t<0||t>=a.length||t===o)return;let n=a[t].state;if(s=!0,r){let t=qr(n,r);e.setState(r,()=>t)}else e.setState(void 0,()=>n);s=!1,o=t,d()};return{handle:{getSnapshot:()=>c,subscribe:e=>(u.add(e),()=>u.delete(e)),undo:()=>p(o-1),redo:()=>p(o+1),travelTo:p,clear:()=>{a=[{state:e.getState(),timestamp:Date.now()}],o=0,d()}},record:({path:t})=>{if(s||i&&!i(t)||r&&void 0!==t&&!Oi(t,r))return;let l,c=o<a.length-1?a.slice(0,o+1):a,u=c[c.length-1].state,p=e.getState(),h=t??r,f=t??r;if(f)try{let e=Ai(qr(u,f),qr(p,f));e&&(h=e.path?`${f}.${e.path}`:f,l=e.value)}catch{}let m=[...c,{path:h,value:l,state:p,timestamp:Date.now()}];a=m.length>n?m.slice(m.length-n):m,o=a.length-1,d()}}}(n,e);return Ii.set(n,r),{onChange:i}}},Di={entries:[],index:-1,canUndo:!1,canRedo:!1},Pi=()=>{},Mi=()=>Pi,ji=()=>Di;var{useStore:Ri,useStoreSync:Li,useStoreGetter:Fi,useStoreSetter:$i}=Ei(),{useStore:qi,useStoreSync:Vi,useStoreGetter:Bi,useStoreSetter:Ui}=Ei(),{useStore:Hi,useStoreSync:Wi,useStoreGetter:Yi,useStoreSetter:Gi}=Ei(),Qi={};Object.freeze(Qi);var Ji=(e,t="",n=".",r=!1)=>e&&"object"==typeof e?Object.keys(e).reduce((i,a)=>{a=a.replaceAll(n,"").replaceAll(".","");let o=`${t}${t?n:""}${a}`;return"object"!=typeof e[a]||Array.isArray(e[a])&&r?[...i,o]:[...i,o,...Ji(e[a],o,n,r)]},[]):[],Ki={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},Xi={date:Me({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Me({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Me({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zi={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},ea={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},ta={ordinalNumber:(e,t)=>Number(e)+"º",era:Le({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:Le({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:Le({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:Le({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:Le({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},na={ordinalNumber:qe({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:$e({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:$e({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:$e({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:$e({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:$e({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},ra={code:"es",formatDistance:(e,t,n)=>{let r;const i=Ki[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},formatLong:Xi,formatRelative:(e,t,n,r)=>1!==t.getHours()?ea[e]:Zi[e],localize:ta,match:na,options:{weekStartsOn:1,firstWeekContainsDate:1}},ia={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},aa={date:Me({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:Me({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Me({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},oa={lastWeek:e=>{const t=e.getDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},sa={ordinalNumber:(e,t)=>Number(e)+"º",era:Le({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:Le({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Le({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Le({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:Le({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},la={ordinalNumber:qe({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$e({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:$e({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:$e({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:$e({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:"any"}),dayPeriod:$e({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},ca={code:"pt",formatDistance:(e,t,n)=>{let r;const i=ia[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"daqui a "+r:"há "+r:r},formatLong:aa,formatRelative:(e,t,n,r)=>{const i=oa[e];return"function"==typeof i?i(t):i},localize:sa,match:la,options:{weekStartsOn:0,firstWeekContainsDate:4}};var ua={year:0,month:1,day:2,hour:3,minute:4,second:5},da={},pa=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(/* @__PURE__ */new Date("2014-06-25T04:00:00.123Z")),ha="06/25/2014, 00:00:00"===pa||"06/25/2014 00:00:00"===pa;function fa(e,t,n,r,i,a,o){const s=/* @__PURE__ */new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,a,o),s}var ma=36e5,ga={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ya(e,t,n){if(!e)return 0;let r,i,a=ga.timezoneZ.exec(e);if(a)return 0;if(a=ga.timezoneHH.exec(e),a)return r=parseInt(a[1],10),va(r)?-r*ma:NaN;if(a=ga.timezoneHHMM.exec(e),a){r=parseInt(a[2],10);const e=parseInt(a[3],10);return va(r,e)?(i=Math.abs(r)*ma+6e4*e,"+"===a[1]?-i:i):NaN}if(function(e){if(xa[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),xa[e]=!0,!0}catch(t){return!1}}(e)){t=new Date(t||Date.now());const r=ba(n?t:function(e){return fa(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),e);return-(n?r:function(e,t,n){let r=e.getTime()-t;const i=ba(new Date(r),n);if(t===i)return t;r-=i-t;const a=ba(new Date(r),n);return i===a?i:Math.max(i,a)}(t,r,e))}return NaN}function ba(e,t){const n=function(e,t){const n=function(e){return da[e]||(da[e]=ha?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),da[e]}(t);return"formatToParts"in n?function(e,t){try{const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const t=ua[n[e].type];void 0!==t&&(r[t]=parseInt(n[e].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}(n,e):function(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}(n,e)}(e,t),r=fa(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let i=e.getTime();const a=i%1e3;return i-=a>=0?a:1e3+a,r-i}function va(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var xa={};function wa(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}var ka=36e5,Sa={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Na(e,t,n){t=t||0,n=n||0;const r=/* @__PURE__ */new Date(0);r.setUTCFullYear(e,0,4);const i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var Ta=[31,28,31,30,31,30,31,31,30,31,30,31],Ca=[31,29,31,30,31,30,31,31,30,31,30,31];function Ea(e){return e%400==0||e%4==0&&e%100!=0}function _a(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;const r=Ea(e);if(r&&n>Ca[t])return!1;if(!r&&n>Ta[t])return!1}return!0}function Oa(e,t){return!(e<0||e>52||null!=t&&(t<0||t>6))}function Aa(e,t,n){return!(e<0||e>=25||null!=t&&(t<0||t>=60)||null!=n&&(n<0||n>=60))}var Ia={en:Be,es:ra,pt:ca},za=e=>{let t;return t="number"==typeof e?e<1e12?/* @__PURE__ */new Date(1e3*e):new Date(e):"string"==typeof e?dn(e):e,t};function Da(e,t="dd MMMM, yyyy",n="en"){return e?ht(za(e),t,{locale:Ia[n]}):""}function Pa(e,t="dd MMMM, yyyy",n="en"){return e?ht(function(e){const t=ya("UTC",e=function(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)/* @__PURE__ */return new Date(NaN);const n=null==t.additionalDigits?2:Number(t.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))/* @__PURE__ */return new Date(NaN);const r=function(e){const t={};let n,r=Sa.dateTimePattern.exec(e);if(r?(t.date=r[1],n=r[3]):(r=Sa.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){const e=Sa.timeZone.exec(n);e?(t.time=n.replace(e[1],""),t.timeZone=e[1].trim()):t.time=n}return t}(e),{year:i,restDateString:a}=function(e,t){if(e){const n=Sa.YYY[t],r=Sa.YYYYY[t];let i=Sa.YYYY.exec(e)||r.exec(e);if(i){const t=i[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(i=Sa.YY.exec(e)||n.exec(e),i){const t=i[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(r.date,n),o=function(e,t){if(null===t)return null;let n,r,i;if(!e||!e.length)return n=/* @__PURE__ */new Date(0),n.setUTCFullYear(t),n;let a=Sa.MM.exec(e);if(a)return n=/* @__PURE__ */new Date(0),r=parseInt(a[1],10)-1,_a(t,r)?(n.setUTCFullYear(t,r),n):/* @__PURE__ */new Date(NaN);if(a=Sa.DDD.exec(e),a){n=/* @__PURE__ */new Date(0);const e=parseInt(a[1],10);return function(e,t){if(t<1)return!1;const n=Ea(e);return!(n&&t>366||!n&&t>365)}(t,e)?(n.setUTCFullYear(t,0,e),n):/* @__PURE__ */new Date(NaN)}if(a=Sa.MMDD.exec(e),a){n=/* @__PURE__ */new Date(0),r=parseInt(a[1],10)-1;const e=parseInt(a[2],10);return _a(t,r,e)?(n.setUTCFullYear(t,r,e),n):/* @__PURE__ */new Date(NaN)}if(a=Sa.Www.exec(e),a)return i=parseInt(a[1],10)-1,Oa(i)?Na(t,i):/* @__PURE__ */new Date(NaN);if(a=Sa.WwwD.exec(e),a){i=parseInt(a[1],10)-1;const e=parseInt(a[2],10)-1;return Oa(i,e)?Na(t,i,e):/* @__PURE__ */new Date(NaN)}return null}(a,i);if(null===o||isNaN(o.getTime()))/* @__PURE__ */return new Date(NaN);if(o){const e=o.getTime();let n,i=0;if(r.time&&(i=function(e){let t,n,r=Sa.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),Aa(t)?t%24*ka:NaN;if(r=Sa.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Aa(t,n)?t%24*ka+6e4*n:NaN;if(r=Sa.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const e=parseFloat(r[3].replace(",","."));return Aa(t,n,e)?t%24*ka+6e4*n+1e3*e:NaN}return null}(r.time),null===i||isNaN(i)))/* @__PURE__ */return new Date(NaN);if(r.timeZone||t.timeZone){if(n=ya(r.timeZone||t.timeZone,new Date(e+i)),isNaN(n))/* @__PURE__ */return new Date(NaN)}else n=wa(new Date(e+i)),n=wa(new Date(e+i+n));return new Date(e+i+n)}/* @__PURE__ */return new Date(NaN)}(e,void 0),!0),n=new Date(e.getTime()-t),r=/* @__PURE__ */new Date(0);return r.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),r.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),r}(za(e)),t,{locale:Ia[n]}):""}function Ma(e,t){let n=za(e);return ze(za(t),n)}var ja=new class{callbackInternal;callbackAddProvider;callbackRemoveProvider;pendingLimit=100;logsListenedLimit=1e3;pendingLogs=[];listening=!1;listeningCategory;logsListened=[];listeningParams;#e=[];#t=!1;constructor(e,t=100){this.callbackInternal=e,this.pendingLimit=t}setCallback(e){this.callbackInternal=e}processPendingLogs(){if(this.pendingLogs.length&&this.callbackInternal){for(let e of this.pendingLogs)this.callbackInternal(e.logType,e.category,e.message,e.params,e.time);this.pendingLogs=[]}}setCallbackAddProvider(e){this.callbackAddProvider=e}setCallbackRemoveProvider(e){this.callbackRemoveProvider=e}flush(e=!1){this.logsListened=[],e&&(this.pendingLogs=[])}#n(e,t,n,r){let i=this.getTime(!0);if(!this.callbackInternal)return this.pendingLogs.push({logType:e,category:t,message:n,params:r,time:i}),void(this.pendingLogs.length>this.pendingLimit&&this.pendingLogs.shift());this.listening?this.logsListened.push({logType:e,category:t,message:n,params:r,time:i}):(this.#e.push({logType:e,category:t,message:n,params:r,time:i}),this.#r()),this.logsListened.length>this.logsListenedLimit&&this.logsListened.shift()}#r(){this.#t||(this.#t=!0,queueMicrotask(()=>{this.#t=!1;let e=this.callbackInternal,t=this.#e;if(this.#e=[],e)for(let n of t)e(n.logType,n.category,n.message,n.params,n.time)}))}addProviderMethod(e,t){this.callbackAddProvider?.(e,t)}removeProviderMethod(e){"function"==typeof this.callbackRemoveProvider&&this.callbackRemoveProvider(e)}getTime(e=!1){let t=/* @__PURE__ */new Date;return e?Da(t,"HH:mm:ss.SSS"):t}info(e,t,n){this.#n("info",e,t,n)}warning(e,t,n){this.#n("warning",e,t,n)}danger(e,t,n){this.#n("danger",e,t,n)}success(e,t,n){this.#n("success",e,t,n)}begin(e){this.listening=!0,this.listeningParams={category:e}}end(){this.listening=!1,this.listeningCategory&&this.logsListened.length>0&&this.callbackInternal?.("info",this.listeningCategory,`${this.logsListened.length} Log${1===this.logsListened.length?"":"s"}`,{logs:this.logsListened}),this.logsListened=[],this.listeningCategory=void 0}};function Ra(e="store"){return({path:t,prevValue:n,nextValue:r})=>{ja.info("store",e,{storeName:e,path:t,prev:n,next:r})}}var La=l({});La.displayName="PlitziServiceContext";var Fa=()=>{let e=f(La);if(void 0===e)throw Error("ServiceContext value is undefined. Make sure you use the PlitziServiceProvider before using the hook.");return e},$a=e=>{let{children:t,value:n}=e;/* @__PURE__ */
|
|
2
2
|
return A(La,{value:n,children:t})},qa=({ref:e,children:t,tag:n="div",className:r="",interactionTriggers:i,interactionCallbacks:a,style:o,...s})=>{let l=w(()=>((e="")=>{if(e)return"object"==typeof e?e:Object.fromEntries(e.split(";").map(e=>e.trim()).filter(Boolean).map(e=>{let[t,n]=e.split(":").map(e=>e.trim());return[t.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),n]}))})(o),[o]),c=H(),u=Fa(),d=u.settings.previewMode??!0,p=!!u.settings.debugMode;if(c.plitziJsxSkipHOC)return G({tag:n,refProp:e,style:l,className:r,otherProps:s,children:t});let{root:{baseElementId:h},contexts:g}=u,b=g.InteractionsContext,{id:v,rootId:x,style:k,definition:{type:N,label:T,runtime:C}}=c,E="server"===C?{"data-rsc-id":v}:void 0,_=p||!d&&N&&x===h?{"data-id":v,"data-name":T||N||"unknown","data-root-id":x,"data-type":N||"unknown","data-root-render-element":!0}:{};if(!b)return G({tag:n,refProp:e,style:{...k,...l},className:r,otherProps:s,params:_,serverMarker:E,children:t});let{className:O,events:A}=(({elementContext:e,InteractionsContext:t,previewMode:n,debugMode:r,baseElementId:i,className:a,interactionTriggers:o,interactionCallbacks:s,otherProps:l})=>{let{id:c,className:u,attributes:d,definition:p,definition:{interactions:h},plitziElementLayout:g,elementState:b,setElementState:v}=e,{interactionsManager:x,useInteractions:k}=f(t),N=m((e,t,n,r,i=!1)=>{i||e.preventDefault(),r&&r(e),x.interactionTrigger(t,n,{event:e})},[x]),T=w(()=>n&&h?Object.values(h).filter(e=>"trigger"===e.type&&e.action&&Mr.includes(e.action)&&e.enabled).reduce((e,t)=>{let n=K(t,"params.propagateEvent",!1);return{...e,[t.action]:e=>N(e,c,t.action,l[t.action],n)}},{}):{},[c,h,l,n,N]),[C=Qi]=Ri("runtime.sources",{enabled:r||!(!h||!Object.keys(h).length)}),E=S({});E.current=C;let _=m(()=>({dataSource:E.current}),[E]),O=w(()=>({...Pr,...o}),[o]),A=(({attributes:e,definition:t,setElementState:n})=>{let r=m(e=>{if(!e.key||!e.value)return{prevState:void 0,nextState:void 0};let t,r,{key:i}=e,a=(e=>{if("string"!=typeof e)return e;let t=e.toLowerCase();return"true"===t||"false"===t||"yes"===t||"no"===t?"true"===t||"yes"===t:e})(e.value);return n(e=>(t=e,r=zr(e,e=>X(e,i,a)),r)),{prevState:t,nextState:r}},[n]),i=m((e,t)=>{let r=t?.prevState;!e.revertOnFinish||!r||n(r)},[n]);return w(()=>((e,t,n,r)=>({setState:{action:"setState",title:`Update ${t.label}`,type:"callback",callback:n,postCallback:r,preview:{},params:{category:{label:"Category",defaultValue:"attribute",type:"select",options:[{value:"attribute",label:"Attribute"},{value:"state",label:"State"}]},key:{label:"Key",defaultValue:void 0,type:"select",when:e=>"attribute"===e.category||"state"===e.category,options:n=>{let{category:r}=n;return"attribute"===r?Object.keys(e).map(e=>({value:e,label:e})):"state"===r?[{value:"visibility",label:"Visibility"},...Object.keys(t.styleSelectors).map(e=>({value:`styleSelectors.${e}`,label:`Selector - ${e}`}))]:[]}},value:{label:"Value",defaultValue:void 0,type:t=>"boolean"==typeof e[t.key]?"select":"text",when:e=>!!e.category,options:t=>{let{key:n}=t;return"boolean"==typeof e[n]?[{value:"true",label:"True"},{value:"false",label:"False"}]:Object.keys(e).map(e=>({value:e,label:e}))}},revertOnFinish:{label:"Revert changes after interaction",defaultValue:!1,type:"boolean"}}}}))(e,t,r,i),[e,t,r,i])})({attributes:d,definition:p,setElementState:v});return k({id:c,interactions:h,triggers:O,callbacks:w(()=>({...s,...A}),[s,A]),getAdditionalParams:_}),y(()=>{!n||!h||!Object.keys(h).length||x.interactionTrigger(c,"onLoad",{})},[]),y(()=>{if(r)return ja.addProviderMethod(`getElementDataSource-${c}`,()=>E.current),()=>{ja.removeProviderMethod(`getElementDataSource-${c}`)}},[r,E,c]),{className:ce(u,Dr({id:c,className:a,previewMode:n,baseElementId:i,definition:p,elementState:b,plitziElementLayout:g})),events:T}})({elementContext:c,InteractionsContext:b,previewMode:d,debugMode:p,baseElementId:h,className:r,interactionTriggers:i,interactionCallbacks:a,otherProps:s});return G({tag:n,refProp:e,style:{...k,...l},className:O,otherProps:s,params:_,serverMarker:E,events:A,children:t})},Va=(e,t)=>{let n=new Set(t),r={};for(let i in e)!n.has(i)&&Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},Ba={},Ua=l({});Ua.displayName="ComponentContext";var Ha=async(t,n=!0,r="")=>{let i;try{if(n){let e=await fetch(t),n=new Blob([await e.text()],{type:"text/javascript"});i=await import(
|
|
3
3
|
/* @vite-ignore */
|
|
4
4
|
/* webpackIgnore: true */
|
|
5
|
-
URL.createObjectURL(n))}else{let t={default:void 0,ComponentProvider:YI,ComponentContext:Ua,usePlitziServiceContext:Fa,RootElement:qa},n={__WEBPACK_EXTERNAL_MODULE_react__:e,__WEBPACK_EXTERNAL_MODULE_react_dom__:z,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__:_,__WEBPACK_EXTERNAL_MODULE__plitzi_plitzi_sdk__:t},a=K(window,`plitziPlugins.${r}`);if(!a||"function"!=typeof a)return;i=await a(t,void 0,n)}}catch(WR){return}return i},Wa=
|
|
5
|
+
URL.createObjectURL(n))}else{let t={default:void 0,ComponentProvider:YI,ComponentContext:Ua,usePlitziServiceContext:Fa,RootElement:qa},n={__WEBPACK_EXTERNAL_MODULE_react__:e,__WEBPACK_EXTERNAL_MODULE_react_dom__:z,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__:_,__WEBPACK_EXTERNAL_MODULE__plitzi_plitzi_sdk__:t},a=K(window,`plitziPlugins.${r}`);if(!a||"function"!=typeof a)return;i=await a(t,void 0,n)}}catch(WR){return}return i},Wa=e=>{let t={};if(!e)return t;t[e.type]=e;let{plugins:n}=e;return n&&Object.keys(n).length>0&&Object.keys(n).forEach(e=>{Object.assign(t,Wa(n[e]))}),t},Ya=e=>{let t={};return e&&Object.values(e).forEach(e=>{e.type&&Object.assign(t,Wa(e))}),t},Ga=(e,t)=>{if(!e)return{};let n={};return Object.keys(e).forEach(r=>{let i=e[r],{version:a,pluginSettings:o,initialItems:s,plugins:l,extraProps:c}=i;n[r]=h_(i),n[r].origin=t,n[r].version=a,n[r].type=r,n[r].initialItems=s,n[r].pluginSettings=o,n[r].extraProps=c,n[r].plugins=Ga(l,t)}),n},Qa=e=>{let t={};return e&&Object.values(e).forEach(e=>{if(!e.type)return;let{type:n,pluginSettings:r,version:i,initialItems:a,plugins:o,assets:s,content:l,extraProps:c}=e,u=h_(e);u.version=i,u.type=n,u.assets=s,u.initialItems=a,u.pluginSettings=r,u.origin="local-custom",u.content=l,u.extraProps=c,u.plugins=Ga(o,"local-custom"),Object.assign(t,Wa(u))}),t},Ja=/* @__PURE__ */new Map,Ka=(e,t,n,r=!0,i=!1)=>async()=>{let a=`${e}::${t}`;if(!Ja.get(a)){let n=Ha(e,e.endsWith(".mjs")||e.includes(".esm.")||e.includes(".module."),t).finally(()=>{Ja.delete(a)});Ja.set(a,{promise:n,timestamp:Date.now()})}let o=await(Ja.get(a)?.promise);if(!o)return{default:f_};let{type:s,pluginSettings:l}=K(o,"default",{}),{version:c,initialItems:u,plugins:d}=o;if(!s)return{default:f_};let p=o.default;return i||(p=h_(o.default)),p.version=c,p.origin="remote",p.type=s,p.initialItems=u,p.pluginSettings=l,p.plugins=Ga(d,"remote"),r&&n(p),{default:p}},Xa=({url:e="",scope:t="",internalProps:n,autoRegister:r=!0,plitziJsxSkipHOC:i=!1,plitziJsxProps:a=Qi})=>{let{register:s}=f(Ua),l=w(()=>p(Ka(e,t,s,r,i)),[e,t]);/* @__PURE__ */
|
|
6
6
|
return A(o,i?{children:/* @__PURE__ */A(l,{internalProps:n,plitziJsxSkipHOC:i,...a})}:{children:/* @__PURE__ */A(l,{internalProps:n})})},Za=({type:e,plugins:t})=>{let n=(e?t[e]:void 0)??((e,t)=>Object.values(e).find(e=>e.subPlugins.find(e=>e===t)))(t,e);if(!n)return;let r=K(n,"assets",[]).filter(e=>"script"===e.type),{scope:i}=n;return{url:r.find(e=>e.isMain)?.params.src??K(r,"0.params.src",""),scope:i}},eo=({key:e,plitziElementLayout:t,type:n,internalProps:r,components:i,plugins:a})=>{let o={...r,plitziElementLayout:t},s=i.notFound?/* @__PURE__ */A(i.notFound,{internalProps:o},e):void 0;if(!n)return s;let l=i[n];if(l)/* @__PURE__ */return A(l,{internalProps:o,extraProps:l.extraProps},e);let c=Za({type:n,plugins:a});return c?/* @__PURE__ */A(Xa,{url:c.url,scope:c.scope,internalProps:o},e):s},to=e=>{let t={};for(let n of e.split(";")){let e=n.indexOf(":");if(-1===e)continue;let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();if(r&&i){let e=r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());t[e]=i}}return t},no=({id:e})=>{let[t]=N(()=>{if(typeof document>"u")return null;let t=document.querySelector(`[data-rsc-id="${e}"]`);if(!t)return null;let n={};for(let e=0;e<t.attributes.length;e++){let{name:r,value:i}=t.attributes[e];"class"!==r&&"style"!==r&&"data-rsc-id"!==r&&(n[r]=i)}let r=t.getAttribute("style");return{tag:t.tagName.toLowerCase(),className:t.className,style:r?to(r):void 0,attrs:n,html:t.innerHTML}});return t?c(t.tag,{"data-rsc-id":e,className:t.className||void 0,style:t.style,...t.attrs,dangerouslySetInnerHTML:{__html:t.html}}):null},ro=l({});ro.displayName="CollectionContext";var io=e=>{let t="number";return/^"/.test(e)?t=/:$/.test(e)?"text-red-700":"text-green-700":/true|false/.test(e)?t="text-blue-700":/null/.test(e)&&(t=""),`<span class="${t}">${e}</span>`},ao=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,oo=e=>e?.replace(ao,io)??e,so=/* @__PURE__ */q((e,t)=>{t.exports=function(e){function t(t,n){if(t.template.options.rethrow)throw"string"==typeof n&&(n=new e.Error(n)),"TwigException"!==n.type||n.file||(n.file=t.template.id),n;if(e.log.error("Error parsing twig template "+t.template.id+": "),n.stack?e.log.error(n.stack):e.log.error(n.toString()),e.debug)return n.toString()}return e.trace=!1,e.debug=!1,e.cache=!0,e.noop=function(){},e.merge=function(e,t,n){return Object.keys(t).forEach(r=>{n&&!(r in e)||(e[r]=t[r])}),e},e.Error=function(e,t){this.message=e,this.name="TwigException",this.type="TwigException",this.file=t},e.Error.prototype.toString=function(){return this.name+": "+this.message},e.log={trace(...t){e.trace&&console},debug(...t){e.debug&&console}},"undefined"==typeof console?e.log.error=function(){}:(void 0!==console.error||void 0!==console.log)&&(e.log.error=function(...e){}),e.token={},e.token.type={output:"output",logic:"logic",comment:"comment",raw:"raw",outputWhitespacePre:"output_whitespace_pre",outputWhitespacePost:"output_whitespace_post",outputWhitespaceBoth:"output_whitespace_both",logicWhitespacePre:"logic_whitespace_pre",logicWhitespacePost:"logic_whitespace_post",logicWhitespaceBoth:"logic_whitespace_both"},e.token.definitions=[{type:e.token.type.raw,open:"{% raw %}",close:"{% endraw %}"},{type:e.token.type.raw,open:"{% verbatim %}",close:"{% endverbatim %}"},{type:e.token.type.outputWhitespacePre,open:"{{-",close:"}}"},{type:e.token.type.outputWhitespacePost,open:"{{",close:"-}}"},{type:e.token.type.outputWhitespaceBoth,open:"{{-",close:"-}}"},{type:e.token.type.logicWhitespacePre,open:"{%-",close:"%}"},{type:e.token.type.logicWhitespacePost,open:"{%",close:"-%}"},{type:e.token.type.logicWhitespaceBoth,open:"{%-",close:"-%}"},{type:e.token.type.output,open:"{{",close:"}}"},{type:e.token.type.logic,open:"{%",close:"%}"},{type:e.token.type.comment,open:"{#",close:"#}"}],e.token.strings=['"',"'"],e.token.findStart=function(t){const n={position:null,def:null};let r=null;const i=e.token.definitions.length;let a,o,s,l;for(a=0;a<i;a++)o=e.token.definitions[a],s=t.indexOf(o.open),l=t.indexOf(o.close),e.log.trace("Twig.token.findStart: ","Searching for ",o.open," found at ",s),s>=0&&o.open.length!==o.close.length&&l<0||(s>=0&&(null===n.position||s<n.position)?(n.position=s,n.def=o,r=l):s>=0&&null!==n.position&&s===n.position&&(o.open.length>n.def.open.length?(n.position=s,n.def=o,r=l):o.open.length===n.def.open.length&&(o.close.length,n.def.close.length,l>=0&&l<r&&(n.position=s,n.def=o,r=l))));return n},e.token.findEnd=function(t,n,r){let i,a,o=null,s=!1,l=0,c=null,u=null,d=null,p=null,h=null,f=null;for(;!s;){if(c=null,u=null,d=t.indexOf(n.close,l),!(d>=0))throw new e.Error("Unable to find closing bracket '"+n.close+"' opened near template position "+r);if(o=d,s=!0,n.type===e.token.type.comment)break;if(n.type===e.token.type.raw)break;for(a=e.token.strings.length,i=0;i<a;i+=1)h=t.indexOf(e.token.strings[i],l),h>0&&h<d&&(null===c||h<c)&&(c=h,u=e.token.strings[i]);if(null!==c)for(p=c+1,o=null,s=!1;;){if(f=t.indexOf(u,p),f<0)throw e.Error("Unclosed string in template");if("\\"!==t.slice(f-1,f)){l=f+1;break}p=f+1}}return o},e.tokenize=function(t){const n=[];let r=0,i=null,a=null;for(;t.length>0;)if(i=e.token.findStart(t),e.log.trace("Twig.tokenize: ","Found token: ",i),null===i.position)n.push({type:e.token.type.raw,value:t,position:{start:r,end:r+i.position}}),t="";else{if(i.position>0&&n.push({type:e.token.type.raw,value:t.slice(0,Math.max(0,i.position)),position:{start:r,end:r+Math.max(0,i.position)}}),t=t.slice(i.position+i.def.open.length),r+=i.position+i.def.open.length,a=e.token.findEnd(t,i.def,r),e.log.trace("Twig.tokenize: ","Token ends at ",a),n.push({type:i.def.type,value:t.slice(0,Math.max(0,a)).trim(),position:{start:r-i.def.open.length,end:r+a+i.def.close.length}}),"\n"===t.slice(a+i.def.close.length,a+i.def.close.length+1))switch(i.def.type){case"logic_whitespace_pre":case"logic_whitespace_post":case"logic_whitespace_both":case"logic":a+=1}t=t.slice(a+i.def.close.length),r+=a+i.def.close.length}return n},e.compile=function(t){const n=this;try{const r=[],i=[];let a=[],o=null,s=null,l=null,c=null,u=null,d=null,p=null,h=null,f=null,m=null,g=null,y=null;const b=function(t){e.expression.compile.call(n,t),i.length>0?a.push(t):r.push(t)},v=function(t){if(s=e.logic.compile.call(n,t),s.position=t.position,m=s.type,g=e.logic.handler[m].open,y=e.logic.handler[m].next,e.log.trace("Twig.compile: ","Compiled logic token to ",s," next is: ",y," open is : ",g),void 0!==g&&!g){if(c=i.pop(),p=e.logic.handler[c.type],!p.next.includes(m))throw new Error(m+" not expected after a "+c.type);c.output=c.output||[],c.output=c.output.concat(a),a=[],f={type:e.token.type.logic,token:c,position:{open:c.position,close:t.position}},i.length>0?a.push(f):r.push(f)}void 0!==y&&y.length>0?(e.log.trace("Twig.compile: ","Pushing ",s," to logic stack."),i.length>0&&(c=i.pop(),c.output=c.output||[],c.output=c.output.concat(a),i.push(c),a=[]),i.push(s)):void 0!==g&&g&&(f={type:e.token.type.logic,token:s,position:s.position},i.length>0?a.push(f):r.push(f))};for(;t.length>0;){switch(o=t.shift(),u=r[r.length-1],d=a[a.length-1],h=t[0],e.log.trace("Compiling token ",o),o.type){case e.token.type.raw:i.length>0?a.push(o):r.push(o);break;case e.token.type.logic:v.call(n,o);break;case e.token.type.comment:break;case e.token.type.output:b.call(n,o);break;case e.token.type.logicWhitespacePre:case e.token.type.logicWhitespacePost:case e.token.type.logicWhitespaceBoth:case e.token.type.outputWhitespacePre:case e.token.type.outputWhitespacePost:case e.token.type.outputWhitespaceBoth:switch(o.type!==e.token.type.outputWhitespacePost&&o.type!==e.token.type.logicWhitespacePost&&(u&&u.type===e.token.type.raw&&(r.pop(),u.value=u.value.trimEnd(),r.push(u)),d&&d.type===e.token.type.raw&&(a.pop(),d.value=d.value.trimEnd(),a.push(d))),o.type){case e.token.type.outputWhitespacePre:case e.token.type.outputWhitespacePost:case e.token.type.outputWhitespaceBoth:b.call(n,o);break;case e.token.type.logicWhitespacePre:case e.token.type.logicWhitespacePost:case e.token.type.logicWhitespaceBoth:v.call(n,o)}o.type!==e.token.type.outputWhitespacePre&&o.type!==e.token.type.logicWhitespacePre&&h&&h.type===e.token.type.raw&&(t.shift(),h.value=h.value.trimStart(),t.unshift(h))}e.log.trace("Twig.compile: "," Output: ",r," Logic Stack: ",i," Pending Output: ",a)}if(i.length>0)throw l=i.pop(),new Error("Unable to find an end tag for "+l.type+", expecting one of "+l.next);return r}catch(r){if(n.options.rethrow)throw"TwigException"!==r.type||r.file||(r.file=n.id),r;e.log.error("Error compiling twig template "+n.id+": "),r.stack?e.log.error(r.stack):e.log.error(r.toString())}},e.prepare=function(t){e.log.debug("Twig.prepare: ","Tokenizing ",t);const n=e.tokenize.call(this,t);e.log.debug("Twig.prepare: ","Compiling ",n);const r=e.compile.call(this,n);return e.log.debug("Twig.prepare: ","Compiled ",r),r},e.output=function(t){const{autoescape:n}=this.options;if(!n)return t.join("");const r="string"==typeof n?n:"html",i=t.map(t=>(!t||!0===t.twigMarkup||t.twigMarkup===r||"html"===r&&"html_attr"===t.twigMarkup||(t=e.filters.escape(t,[r])),t));if(0===i.length)return"";const a=i.join("");return 0===a.length?"":new e.Markup(a,!0)},e.Templates={loaders:{},parsers:{},registry:{}},e.validateId=function(t){if("prototype"===t)throw new e.Error(t+" is not a valid twig identifier");if(e.cache&&Object.hasOwnProperty.call(e.Templates.registry,t))throw new e.Error("There is already a template with the ID "+t);return!0},e.Templates.registerLoader=function(t,n,r){if("function"!=typeof n)throw new e.Error("Unable to add loader for "+t+": Invalid function reference given.");r&&(n=n.bind(r)),this.loaders[t]=n},e.Templates.unRegisterLoader=function(e){this.isRegisteredLoader(e)&&delete this.loaders[e]},e.Templates.isRegisteredLoader=function(e){return Object.hasOwnProperty.call(this.loaders,e)},e.Templates.registerParser=function(t,n,r){if("function"!=typeof n)throw new e.Error("Unable to add parser for "+t+": Invalid function regerence given.");r&&(n=n.bind(r)),this.parsers[t]=n},e.Templates.unRegisterParser=function(e){this.isRegisteredParser(e)&&delete this.parsers[e]},e.Templates.isRegisteredParser=function(e){return Object.hasOwnProperty.call(this.parsers,e)},e.Templates.save=function(t){if(void 0===t.id)throw new e.Error("Unable to save template with no id");e.Templates.registry[t.id]=t},e.Templates.load=function(t){return Object.hasOwnProperty.call(e.Templates.registry,t)?e.Templates.registry[t]:null},e.Templates.loadRemote=function(t,n,r,i){const a=void 0===n.id?t:n.id,o=e.Templates.registry[a];return e.cache&&void 0!==o?("function"==typeof r&&r(o),o):(n.parser=n.parser||"twig",n.id=a,void 0===n.async&&(n.async=!0),(this.loaders[n.method]||this.loaders.fs).call(this,t,n,r,i))},e.Block=function(e,t){this.template=e,this.token=t},e.Block.prototype.render=function(t,n){const r=t.template;let i;return t.template=this.template,i=this.token.expression?e.expression.parseAsync.call(t,this.token.output,n):t.parseAsync(this.token.output,n),i.then(r=>e.expression.parseAsync.call(t,{type:e.expression.type.string,value:r},n)).then(e=>(t.template=r,e))},e.ParseState=function(e,t,n){this.renderedBlocks={},this.overrideBlocks=void 0===t?{}:t,this.context=void 0===n?{}:n,this.macros={},this.nestingStack=[],this.template=e},e.ParseState.prototype.getBlock=function(e,t){let n;return!0!==t&&(n=this.overrideBlocks[e]),void 0===n&&(n=this.template.getBlock(e,t)),void 0===n&&null!==this.template.parentTemplate&&(n=this.template.parentTemplate.getBlock(e)),n},e.ParseState.prototype.getBlocks=function(e){let t={};return!1!==e&&null!==this.template.parentTemplate&&this.template.parentTemplate!==this.template&&(t=this.template.parentTemplate.getBlocks()),t={...t,...this.template.getBlocks(),...this.overrideBlocks},t},e.ParseState.prototype.getNestingStackToken=function(e){let t;return this.nestingStack.forEach(n=>{void 0===t&&n.type===e&&(t=n)}),t},e.ParseState.prototype.parse=function(n,r,i){const a=this;let o=[],s=null,l=!0,c=null,u=!0;function d(e){o.push(e)}function p(e){void 0!==e.chain&&(u=e.chain),void 0!==e.context&&(a.context=e.context),void 0!==e.output&&o.push(e.output)}if(r&&(a.context=r),c=e.async.forEach(n,t=>{switch(e.log.debug("Twig.ParseState.parse: ","Parsing token: ",t),t.type){case e.token.type.raw:o.push(e.filters.raw(t.value));break;case e.token.type.logic:return e.logic.parseAsync.call(a,t.token,a.context,u).then(p);case e.token.type.comment:break;case e.token.type.outputWhitespacePre:case e.token.type.outputWhitespacePost:case e.token.type.outputWhitespaceBoth:case e.token.type.output:return e.log.debug("Twig.ParseState.parse: ","Output token: ",t.stack),e.expression.parseAsync.call(a,t.stack,a.context).then(d)}}).then(()=>(o=e.output.call(a.template,o),l=!1,o)).catch(e=>{i&&t(a,e),s=e}),i)return c;if(null!==s)return t(a,s);if(l)throw new e.Error("You are using Twig.js in sync mode in combination with async extensions.");return o},e.Template=function(t){const{data:n,id:r,base:i,path:a,url:o,name:s,method:l,options:c}=t;this.base=i,this.blocks={defined:{},imported:{}},this.id=r,this.method=l,this.name=s,this.options=c,this.parentTemplate=null,this.path=a,this.url=o,function(e,t){const n=Object.prototype.toString.call(t).slice(8,-1);return null!=t&&"String"===n}(0,n)?this.tokens=e.prepare.call(this,n):this.tokens=n,void 0!==r&&e.Templates.save(this)},e.Template.prototype.getBlock=function(e,t,n=!0){let r;return!0!==t&&(r=this.blocks.defined[e]),n&&void 0===r&&(r=this.blocks.imported[e]),void 0===r&&null!==this.parentTemplate&&(r=this.parentTemplate.getBlock(e,t,n=!1)),r},e.Template.prototype.getBlocks=function(){let e={};return e={...e,...this.blocks.imported,...this.blocks.defined},e},e.Template.prototype.render=function(t,n,r){const i=this;return n=n||{},e.async.potentiallyAsync(i,r,()=>{const r=new e.ParseState(i,n.blocks,t);return r.parseAsync(i.tokens).then(t=>{let a,o;return null!==i.parentTemplate?(i.options.allowInlineIncludes&&(a=e.Templates.load(i.parentTemplate),a&&(a.options=i.options)),a||(o=e.path.parsePath(i,i.parentTemplate),a=e.Templates.loadRemote(o,{method:i.getLoaderMethod(),base:i.base,async:!1,id:o,options:i.options})),i.parentTemplate=a,i.parentTemplate.renderAsync(r.context,{blocks:r.getBlocks(!1),isInclude:!0})):!0===n.isInclude?t:t.valueOf()})})},e.Template.prototype.importFile=function(t){let n,r=null;if(!this.url&&this.options.allowInlineIncludes){if(t=this.path?e.path.parsePath(this,t):t,n=e.Templates.load(t),!n&&(n=e.Templates.loadRemote(r,{id:t,method:this.getLoaderMethod(),async:!1,path:t,options:this.options}),!n))throw new e.Error("Unable to find the template "+t);return n.options=this.options,n}return r=e.path.parsePath(this,t),n=e.Templates.loadRemote(r,{method:this.getLoaderMethod(),base:this.base,async:!1,options:this.options,id:r}),n},e.Template.prototype.getLoaderMethod=function(){return this.path?"fs":this.url?"ajax":this.method||"fs"},e.Template.prototype.compile=function(t){return e.compiler.compile(this,t)},e.Markup=function(e,t){if("string"!=typeof e)return e;const n=new String(e);return n.twigMarkup=void 0===t||t,n},e}}),lo=/* @__PURE__ */q((e,t)=>{t.exports=function(e){return e.compiler={module:{}},e.compiler.compile=function(t,n){const r=JSON.stringify(t.tokens),{id:i}=t;let a=null;if(n.module){if(void 0===e.compiler.module[n.module])throw new e.Error("Unable to find module type "+n.module);a=e.compiler.module[n.module](i,r,n.twig)}else a=e.compiler.wrap(i,r);return a},e.compiler.module={amd:(t,n,r)=>'define(["'+r+'"], function (Twig) {\n\tvar twig, templates;\ntwig = Twig.twig;\ntemplates = '+e.compiler.wrap(t,n)+"\n\treturn templates;\n});",node:(t,n)=>'var twig = require("twig").twig;\nexports.template = '+e.compiler.wrap(t,n),cjs2:(t,n,r)=>'module.declare([{ twig: "'+r+'" }], function (require, exports, module) {\n\tvar twig = require("twig").twig;\n\texports.template = '+e.compiler.wrap(t,n)+"\n});"},e.compiler.wrap=function(e,t){return'twig({id:"'+e.replace('"','\\"')+'", data:'+t+", precompiled: true});\n"},e}}),co=/* @__PURE__ */q((e,t)=>{t.exports=function(e){e.expression.operator={leftToRight:"leftToRight",rightToLeft:"rightToLeft"};const t=function(e,t){if(null==t)return null;if(void 0!==t.indexOf)return(e===t||""!==e)&&t.includes(e);let n;for(n in t)if(Object.hasOwnProperty.call(t,n)&&t[n]===e)return!0;return!1};return e.expression.operator.lookup=function(t,n){switch(t){case"..":n.precidence=20,n.associativity=e.expression.operator.leftToRight;break;case",":n.precidence=18,n.associativity=e.expression.operator.leftToRight;break;case"?:":case"?":case":":n.precidence=16,n.associativity=e.expression.operator.rightToLeft;break;case"??":n.precidence=15,n.associativity=e.expression.operator.rightToLeft;break;case"or":n.precidence=14,n.associativity=e.expression.operator.leftToRight;break;case"and":n.precidence=13,n.associativity=e.expression.operator.leftToRight;break;case"b-or":n.precidence=12,n.associativity=e.expression.operator.leftToRight;break;case"b-xor":n.precidence=11,n.associativity=e.expression.operator.leftToRight;break;case"b-and":n.precidence=10,n.associativity=e.expression.operator.leftToRight;break;case"==":case"!=":case"<=>":n.precidence=9,n.associativity=e.expression.operator.leftToRight;break;case"<":case"<=":case">":case">=":case"not in":case"in":case"matches":case"starts with":case"ends with":n.precidence=8,n.associativity=e.expression.operator.leftToRight;break;case"~":case"+":case"-":n.precidence=6,n.associativity=e.expression.operator.leftToRight;break;case"//":case"**":case"*":case"/":case"%":n.precidence=5,n.associativity=e.expression.operator.leftToRight;break;case"not":n.precidence=3,n.associativity=e.expression.operator.rightToLeft;break;default:throw new e.Error("Failed to lookup operator: "+t+" is an unknown operator.")}return n.operator=t,n},e.expression.operator.parse=function(n,r){let i,a,o;if(e.log.trace("Twig.expression.operator.parse: ","Handling ",n),"?"===n&&(o=r.pop()),a=r.pop(),"not"!==n&&(i=r.pop()),"in"!==n&&"not in"!==n&&"??"!==n&&(i&&Array.isArray(i)&&(i=i.length),"?"!==n&&a&&Array.isArray(a)&&(a=a.length)),"matches"===n&&a&&"string"==typeof a){const e=a.match(/^\/(.*)\/([gims]?)$/),t=e[1],n=e[2];a=new RegExp(t,n)}switch(n){case":":break;case"??":void 0===i&&(i=a,a=o,o=void 0),null!=i?r.push(i):r.push(a);break;case"?:":e.lib.boolval(i)?r.push(i):r.push(a);break;case"?":void 0===i&&(i=a,a=o,o=void 0),e.lib.boolval(i)?r.push(a):r.push(o);break;case"+":a=parseFloat(a),i=parseFloat(i),r.push(i+a);break;case"-":a=parseFloat(a),i=parseFloat(i),r.push(i-a);break;case"*":a=parseFloat(a),i=parseFloat(i),r.push(i*a);break;case"/":a=parseFloat(a),i=parseFloat(i),r.push(i/a);break;case"//":a=parseFloat(a),i=parseFloat(i),r.push(Math.floor(i/a));break;case"%":a=parseFloat(a),i=parseFloat(i),r.push(i%a);break;case"~":r.push((null!=i?i.toString():"")+(null!=a?a.toString():""));break;case"not":case"!":r.push(!e.lib.boolval(a));break;case"<=>":r.push(i===a?0:i<a?-1:1);break;case"<":r.push(i<a);break;case"<=":r.push(i<=a);break;case">":r.push(i>a);break;case">=":r.push(i>=a);break;case"===":r.push(i===a);break;case"==":r.push(i==a);break;case"!==":r.push(i!==a);break;case"!=":r.push(i!=a);break;case"or":r.push(e.lib.boolval(i)||e.lib.boolval(a));break;case"b-or":r.push(i|a);break;case"b-xor":r.push(i^a);break;case"and":r.push(e.lib.boolval(i)&&e.lib.boolval(a));break;case"b-and":r.push(i&a);break;case"**":r.push(i**a);break;case"not in":r.push(!t(i,a));break;case"in":r.push(t(i,a));break;case"matches":r.push(a.test(i));break;case"starts with":r.push("string"==typeof i&&0===i.indexOf(a));break;case"ends with":r.push("string"==typeof i&&i.includes(a,i.length-a.length));break;case"..":r.push(e.functions.range(i,a));break;default:throw new e.Error("Failed to parse operator: "+n+" is an unknown operator.")}},e}}),uo=/* @__PURE__ */q((e,t)=>{t.exports=function(e){function t(t,n,r){return n?e.expression.parseAsync.call(t,n,r):e.Promise.resolve(!1)}for(e.expression={},co()(e),e.expression.reservedWords=["true","false","null","TRUE","FALSE","NULL","_context","and","b-and","or","b-or","b-xor","in","not in","if","matches","starts","ends","with"],e.expression.type={comma:"Twig.expression.type.comma",operator:{unary:"Twig.expression.type.operator.unary",binary:"Twig.expression.type.operator.binary"},string:"Twig.expression.type.string",bool:"Twig.expression.type.bool",slice:"Twig.expression.type.slice",array:{start:"Twig.expression.type.array.start",end:"Twig.expression.type.array.end"},object:{start:"Twig.expression.type.object.start",end:"Twig.expression.type.object.end"},parameter:{start:"Twig.expression.type.parameter.start",end:"Twig.expression.type.parameter.end"},subexpression:{start:"Twig.expression.type.subexpression.start",end:"Twig.expression.type.subexpression.end"},key:{period:"Twig.expression.type.key.period",brackets:"Twig.expression.type.key.brackets"},filter:"Twig.expression.type.filter",_function:"Twig.expression.type._function",variable:"Twig.expression.type.variable",number:"Twig.expression.type.number",_null:"Twig.expression.type.null",context:"Twig.expression.type.context",test:"Twig.expression.type.test"},e.expression.set={operations:[e.expression.type.filter,e.expression.type.operator.unary,e.expression.type.operator.binary,e.expression.type.array.end,e.expression.type.object.end,e.expression.type.parameter.end,e.expression.type.subexpression.end,e.expression.type.comma,e.expression.type.test],expressions:[e.expression.type._function,e.expression.type.bool,e.expression.type.string,e.expression.type.variable,e.expression.type.number,e.expression.type._null,e.expression.type.context,e.expression.type.parameter.start,e.expression.type.array.start,e.expression.type.object.start,e.expression.type.subexpression.start,e.expression.type.operator.unary]},e.expression.set.operationsExtended=e.expression.set.operations.concat([e.expression.type.key.period,e.expression.type.key.brackets,e.expression.type.slice]),e.expression.fn={compile:{push(e,t,n){n.push(e)},pushBoth(e,t,n){n.push(e),t.push(e)}},parse:{push(e,t){t.push(e)},pushValue(e,t){t.push(e.value)}}},e.expression.definitions=[{type:e.expression.type.test,regex:/^is\s+(not)?\s*([a-zA-Z_]\w*(\s?(?:as|by))?)/,next:e.expression.set.operations.concat([e.expression.type.parameter.start]),compile(e,t,n){e.filter=e.match[2],e.modifier=e.match[1],delete e.match,delete e.value,n.push(e)},parse(n,r,i){const a=r.pop();return t(this,n.params,i).then(t=>{const i=e.test(n.filter,a,t);"not"===n.modifier?r.push(!i):r.push(i)})}},{type:e.expression.type.comma,regex:/^,/,next:e.expression.set.expressions.concat([e.expression.type.array.end,e.expression.type.object.end]),compile(t,n,r){let i,a=n.length-1;for(delete t.match,delete t.value;a>=0;a--){if(i=n.pop(),i.type===e.expression.type.object.start||i.type===e.expression.type.parameter.start||i.type===e.expression.type.array.start){n.push(i);break}r.push(i)}r.push(t)}},{type:e.expression.type.number,regex:/^-?\d+(\.\d+)?/,next:e.expression.set.operations,compile(e,t,n){e.value=Number(e.value),n.push(e)},parse:e.expression.fn.parse.pushValue},{type:e.expression.type.operator.binary,regex:/(^\?\?|^\?\s*:|^(b-and)|^(b-or)|^(b-xor)|^[+\-~%?]|^(<=>)|^[:](?!\d\])|^[!=]==?|^[!<>]=?|^\*\*?|^\/\/?|^(and)[(|\s+]|^(or)[(|\s+]|^(in)[(|\s+]|^(not in)[(|\s+]|^(matches)|^(starts with)|^(ends with)|^\.\.)/,next:e.expression.set.expressions,transform(e,t){switch(e[0]){case"and(":case"or(":case"in(":case"not in(":return t[t.length-1].value=e[2],e[0];default:return""}},compile(t,n,r){delete t.match,t.value.match(/^\?\s*:/)&&(t.value="?:"),t.value=t.value.trim();const{value:i}=t,a=e.expression.operator.lookup(i,t);for(e.log.trace("Twig.expression.compile: ","Operator: ",a," from ",i);n.length>0&&(n[n.length-1].type===e.expression.type.operator.unary||n[n.length-1].type===e.expression.type.operator.binary)&&(a.associativity===e.expression.operator.leftToRight&&a.precidence>=n[n.length-1].precidence||a.associativity===e.expression.operator.rightToLeft&&a.precidence>n[n.length-1].precidence);){const e=n.pop();r.push(e)}if(":"===i)if(n[n.length-1]&&"?"===n[n.length-1].value);else{const n=r.pop();if(n.type===e.expression.type.string||n.type===e.expression.type.variable)t.key=n.value;else if(n.type===e.expression.type.number)t.key=n.value.toString();else{if(!n.expression||n.type!==e.expression.type.parameter.end&&n.type!==e.expression.type.subexpression.end)throw new e.Error("Unexpected value before ':' of "+n.type+" = "+n.value);t.params=n.params}r.push(t)}else n.push(a)},parse(t,n,r){if(t.key)n.push(t);else{if(t.params)return e.expression.parseAsync.call(this,t.params,r).then(e=>{t.key=e,n.push(t),r.loop||delete t.params});e.expression.operator.parse(t.value,n)}}},{type:e.expression.type.operator.unary,regex:/(^not\s+)/,next:e.expression.set.expressions,compile(t,n,r){delete t.match,t.value=t.value.trim();const{value:i}=t,a=e.expression.operator.lookup(i,t);for(e.log.trace("Twig.expression.compile: ","Operator: ",a," from ",i);n.length>0&&(n[n.length-1].type===e.expression.type.operator.unary||n[n.length-1].type===e.expression.type.operator.binary)&&(a.associativity===e.expression.operator.leftToRight&&a.precidence>=n[n.length-1].precidence||a.associativity===e.expression.operator.rightToLeft&&a.precidence>n[n.length-1].precidence);){const e=n.pop();r.push(e)}n.push(a)},parse(t,n){e.expression.operator.parse(t.value,n)}},{type:e.expression.type.string,regex:/^(["'])(?:(?=(\\?))\2[\s\S])*?\1/,next:e.expression.set.operationsExtended,compile(t,n,r){let{value:i}=t;delete t.match,i='"'===i.slice(0,1)?i.replace('\\"','"'):i.replace("\\'","'"),t.value=i.slice(1,-1).replace(/\\n/g,"\n").replace(/\\r/g,"\r"),e.log.trace("Twig.expression.compile: ","String value: ",t.value),r.push(t)},parse:e.expression.fn.parse.pushValue},{type:e.expression.type.subexpression.start,regex:/^\(/,next:e.expression.set.expressions.concat([e.expression.type.subexpression.end]),compile(e,t,n){e.value="(",n.push(e),t.push(e)},parse:e.expression.fn.parse.push},{type:e.expression.type.subexpression.end,regex:/^\)/,next:e.expression.set.operationsExtended,validate(t,n){let r=n.length-1,i=!1,a=!1,o=0;for(;!i&&r>=0;){const t=n[r];i=t.type===e.expression.type.subexpression.start,i&&a&&(a=!1,i=!1),t.type===e.expression.type.parameter.start?o++:t.type===e.expression.type.parameter.end?o--:t.type===e.expression.type.subexpression.end&&(a=!0),r--}return i&&0===o},compile(t,n,r){let i;const a=t;for(i=n.pop();n.length>0&&i.type!==e.expression.type.subexpression.start;)r.push(i),i=n.pop();const o=[];for(;t.type!==e.expression.type.subexpression.start;)o.unshift(t),t=r.pop();o.unshift(t),i=n[n.length-1],void 0===i||i.type!==e.expression.type._function&&i.type!==e.expression.type.filter&&i.type!==e.expression.type.test&&i.type!==e.expression.type.key.brackets?(a.expression=!0,o.pop(),o.shift(),a.params=o,r.push(a)):(a.expression=!1,i.params=o)},parse(t,n,r){if(t.expression)return e.expression.parseAsync.call(this,t.params,r).then(e=>{n.push(e)});throw new e.Error("Unexpected subexpression end when token is not marked as an expression")}},{type:e.expression.type.parameter.start,regex:/^\(/,next:e.expression.set.expressions.concat([e.expression.type.parameter.end]),validate(t,n){const r=n[n.length-1];return r&&!e.expression.reservedWords.includes(r.value.trim())},compile:e.expression.fn.compile.pushBoth,parse:e.expression.fn.parse.push},{type:e.expression.type.parameter.end,regex:/^\)/,next:e.expression.set.operationsExtended,compile(t,n,r){let i;const a=t;for(i=n.pop();n.length>0&&i.type!==e.expression.type.parameter.start;)r.push(i),i=n.pop();const o=[];for(;t.type!==e.expression.type.parameter.start;)o.unshift(t),t=r.pop();o.unshift(t),void 0===(t=r[r.length-1])||t.type!==e.expression.type._function&&t.type!==e.expression.type.filter&&t.type!==e.expression.type.test&&t.type!==e.expression.type.key.brackets?(a.expression=!0,o.pop(),o.shift(),a.params=o,r.push(a)):(a.expression=!1,t.params=o)},parse(t,n,r){const i=[];let a=!1,o=null;if(t.expression)return e.expression.parseAsync.call(this,t.params,r).then(e=>{n.push(e)});for(;n.length>0;){if(o=n.pop(),o&&o.type&&o.type===e.expression.type.parameter.start){a=!0;break}i.unshift(o)}if(!a)throw new e.Error("Expected end of parameter set.");n.push(i)}},{type:e.expression.type.slice,regex:/^\[(-?\w*:-?\w*)\]/,next:e.expression.set.operationsExtended,compile(e,t,n){const r=e.match[1].split(":"),i=r[0],a=r[1];e.value="slice",e.params=[i,a],a||(e.params=[i]),n.push(e)},parse(t,n,r){const i=n.pop();let{params:a}=t;const o=this;if(parseInt(a[0],10).toString()===a[0])a[0]=parseInt(a[0],10);else{const t=r[a[0]];if(o.template.options.strictVariables&&void 0===t)throw new e.Error('Variable "'+a[0]+'" does not exist.');a[0]=t}if(a[1])if(parseInt(a[1],10).toString()===a[1])a[1]=parseInt(a[1],10);else{const t=r[a[1]];if(o.template.options.strictVariables&&void 0===t)throw new e.Error('Variable "'+a[1]+'" does not exist.');void 0===t?a=[a[0]]:a[1]=t}n.push(e.filter.call(o,t.value,i,a))}},{type:e.expression.type.array.start,regex:/^\[/,next:e.expression.set.expressions.concat([e.expression.type.array.end]),compile:e.expression.fn.compile.pushBoth,parse:e.expression.fn.parse.push},{type:e.expression.type.array.end,regex:/^\]/,next:e.expression.set.operationsExtended,compile(t,n,r){let i,a=n.length-1;for(;a>=0&&(i=n.pop(),i.type!==e.expression.type.array.start);a--)r.push(i);r.push(t)},parse(t,n){const r=[];let i=!1,a=null;for(;n.length>0;){if(a=n.pop(),a&&a.type&&a.type===e.expression.type.array.start){i=!0;break}r.unshift(a)}if(!i)throw new e.Error("Expected end of array.");n.push(r)}},{type:e.expression.type.object.start,regex:/^\{/,next:e.expression.set.expressions.concat([e.expression.type.object.end]),compile:e.expression.fn.compile.pushBoth,parse:e.expression.fn.parse.push},{type:e.expression.type.object.end,regex:/^\}/,next:e.expression.set.operationsExtended,compile(t,n,r){let i,a=n.length-1;for(;a>=0&&(i=n.pop(),!i||i.type!==e.expression.type.object.start);a--)r.push(i);r.push(t)},parse(t,n){const r={};let i=!1,a=null,o=!1,s=null;for(;n.length>0;){if(a=n.pop(),a&&a.type&&a.type===e.expression.type.object.start){i=!0;break}if(a&&a.type&&(a.type===e.expression.type.operator.binary||a.type===e.expression.type.operator.unary)&&a.key){if(!o)throw new e.Error("Missing value for key '"+a.key+"' in object definition.");r[a.key]=s,void 0===r._keys&&(r._keys=[]),r._keys.unshift(a.key),s=null,o=!1}else o=!0,s=a}if(!i)throw new e.Error("Unexpected end of object.");n.push(r)}},{type:e.expression.type.filter,regex:/^\|\s?([a-zA-Z_][a-zA-Z0-9_-]*)/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile(e,t,n){e.value=e.match[1],n.push(e)},parse(n,r,i){const a=r.pop(),o=this;return t(o,n.params,i).then(t=>e.filter.call(o,n.value,a,t)).then(e=>{r.push(e)})}},{type:e.expression.type._function,regex:/^([a-zA-Z_]\w*)\s*\(/,next:e.expression.type.parameter.start,validate:t=>t[1]&&!e.expression.reservedWords.includes(t[1]),transform:()=>"(",compile(e,t,n){e.fn=e.match[1],delete e.match,delete e.value,n.push(e)},parse(n,r,i){const a=this,{fn:o}=n;let s;return t(a,n.params,i).then(t=>{if(e.functions[o])s=e.functions[o].apply(a,t);else{if("function"!=typeof i[o])throw new e.Error(o+" function does not exist and is not defined in the context");s=i[o](...t)}return s}).then(e=>{r.push(e)})}},{type:e.expression.type.variable,regex:/^[a-zA-Z_]\w*/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile:e.expression.fn.compile.push,validate:t=>!e.expression.reservedWords.includes(t[0]),parse(t,n,r){const i=this;return e.expression.resolveAsync.call(i,r[t.value],r).then(r=>{if(i.template.options.strictVariables&&void 0===r)throw new e.Error('Variable "'+t.value+'" does not exist.');n.push(r)})}},{type:e.expression.type.key.period,regex:/^\.(\w+)/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile(e,t,n){e.key=e.match[1],delete e.match,delete e.value,n.push(e)},parse(n,r,i,a){const o=this,{key:s}=n,l=r.pop();let c;if(l&&!Object.prototype.hasOwnProperty.call(l,s)&&o.template.options.strictVariables)throw Object.keys(l).length>0?new e.Error('Key "'+s+'" for object with keys "'+Object.keys(l).join(", ")+'" does not exist.'):new e.Error('Key "'+s+'" does not exist as the object is empty.');return t(o,n.params,i).then(t=>{if(null==l)c=void 0;else{const e=function(e){return e.slice(0,1).toUpperCase()+e.slice(1)};c="object"==typeof l&&s in l?l[s]:l["get"+e(s)]?l["get"+e(s)]:l["is"+e(s)]?l["is"+e(s)]:void 0}return e.expression.resolveAsync.call(o,c,i,t,a,l)}).then(e=>{r.push(e)})}},{type:e.expression.type.key.brackets,regex:/^\[([^\]]*)\]/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile(t,n,r){const i=t.match[1];delete t.value,delete t.match,t.stack=e.expression.compile({value:i}).stack,r.push(t)},parse(n,r,i,a){const o=this;let s,l,c=null;return t(o,n.params,i).then(t=>(c=t,e.expression.parseAsync.call(o,n.stack,i))).then(t=>{if(s=r.pop(),s&&!Object.prototype.hasOwnProperty.call(s,t)&&o.template.options.strictVariables){const n=Object.keys(s);throw n.length>0?new e.Error('Key "'+t+'" for array with keys "'+n.join(", ")+'" does not exist.'):new e.Error('Key "'+t+'" does not exist as the array is empty.')}return null==s?null:(l="object"==typeof s&&t in s?s[t]:null,e.expression.resolveAsync.call(o,l,s,c,a))}).then(e=>{r.push(e)})}},{type:e.expression.type._null,regex:/^(null|NULL|none|NONE)/,next:e.expression.set.operations,compile(e,t,n){delete e.match,e.value=null,n.push(e)},parse:e.expression.fn.parse.pushValue},{type:e.expression.type.context,regex:/^_context/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile:e.expression.fn.compile.push,parse(e,t,n){t.push(n)}},{type:e.expression.type.bool,regex:/^(true|TRUE|false|FALSE)/,next:e.expression.set.operations,compile(e,t,n){e.value="true"===e.match[0].toLowerCase(),delete e.match,n.push(e)},parse:e.expression.fn.parse.pushValue}],e.expression.resolveAsync=function(t,n,r,i,a){const o=this;if("function"!=typeof t)return e.Promise.resolve(t);let s=e.Promise.resolve(r);if(i&&i.type===e.expression.type.parameter.end){const t=!0;s=s.then(()=>i.params&&e.expression.parseAsync.call(o,i.params,n,t)).then(e=>(i.cleanup=!0,e))}return s.then(e=>t.apply(a||n,e||[]))},e.expression.resolve=function(t,n,r,i,a){return e.async.potentiallyAsync(this,!1,function(){return e.expression.resolveAsync.call(this,t,n,r,i,a)})},e.expression.handler={},e.expression.extendType=function(t){e.expression.type[t]="Twig.expression.type."+t},e.expression.extend=function(t){if(!t.type)throw new e.Error("Unable to extend logic definition. No type provided for "+t);e.expression.handler[t.type]=t};e.expression.definitions.length>0;)e.expression.extend(e.expression.definitions.shift());return e.expression.tokenize=function(t){let n=t.value;const r=[];let i,a,o,s,l,c=0,u=null,d=[];const p=function(...n){let a=arguments.length-2;const o=new Array(a);for(;a-- >0;)o[a]=n[a];if(e.log.trace("Twig.expression.tokenize","Matched a ",i," regular expression of ",o),u&&!u.includes(i))return d.push(i+" cannot follow a "+r[r.length-1].type+" at template:"+c+" near '"+o[0].slice(0,20)+"...'"),o[0];const p=e.expression.handler[i];if(p.validate&&!p.validate(o,r))return o[0];d=[];const h={type:i,value:o[0],match:o};return t.position&&(h.position=t.position),r.push(h),l=!0,u=s,c+=o[0].length,p.transform?p.transform(o,r):""};for(e.log.debug("Twig.expression.tokenize","Tokenizing expression ",n);n.length>0;){for(i in n=n.trim(),e.expression.handler)if(Object.hasOwnProperty.call(e.expression.handler,i)){if(s=e.expression.handler[i].next,a=e.expression.handler[i].regex,e.log.trace("Checking type ",i," on ",n),l=!1,Array.isArray(a))for(o=a.length;o-- >0;)n=n.replace(a[o],p);else n=n.replace(a,p);if(l)break}if(!l)throw d.length>0?new e.Error(d.join(" OR ")):new e.Error("Unable to parse '"+n+"' at template position"+c)}return e.log.trace("Twig.expression.tokenize","Tokenized to ",r),r},e.expression.compile=function(t){const n=e.expression.tokenize(t);let r=null;const i=[],a=[];let o=null;for(e.log.trace("Twig.expression.compile: ","Compiling ",t.value);n.length>0;)r=n.shift(),o=e.expression.handler[r.type],e.log.trace("Twig.expression.compile: ","Compiling ",r),o.compile(r,a,i),e.log.trace("Twig.expression.compile: ","Stack is",a),e.log.trace("Twig.expression.compile: ","Output is",i);for(;a.length>0;)i.push(a.pop());return e.log.trace("Twig.expression.compile: ","Final output is",i),t.stack=i,delete t.value,t},e.expression.parse=function(t,n,r,i){const a=this;Array.isArray(t)||(t=[t]);const o=[],s=[],l=e.expression.type.operator.binary;return e.async.potentiallyAsync(a,i,()=>e.async.forEach(t,(r,i)=>{let c,u=null,d=null;if(!r.cleanup)return t.length>i+1&&(d=t[i+1]),u=e.expression.handler[r.type],u.parse&&(c=u.parse.call(a,r,o,n,d)),r.type===l&&n.loop&&s.push(r),c}).then(()=>{let e=s.length,t=null;for(;e-- >0;)t=s[e],t.params&&t.key&&delete t.key;if(r){const e=o.splice(0);o.push(e)}return o.pop()}))},e}}),po=/* @__PURE__ */q((e,t)=>{t.exports=function(e){function t(e,t){const n=Object.prototype.toString.call(t).slice(8,-1);return null!=t&&n===e}return e.filters={upper:e=>"string"!=typeof e?e:e.toUpperCase(),lower:e=>"string"!=typeof e?e:e.toLowerCase(),capitalize:e=>"string"!=typeof e?e:e.slice(0,1).toUpperCase()+e.toLowerCase().slice(1),title:e=>"string"!=typeof e?e:e.toLowerCase().replace(/(^|\s)([a-z])/g,(e,t,n)=>t+n.toUpperCase()),length:t=>e.lib.is("Array",t)||"string"==typeof t?t.length:e.lib.is("Object",t)?void 0===t._keys?Object.keys(t).length:t._keys.length:0,reverse:e=>t("Array",e)?e.reverse():t("String",e)?e.split("").reverse().join(""):t("Object",e)?(e._keys=e._keys||Object.keys(e).reverse(),e):void 0,sort:e=>t("Array",e)?e.sort():t("Object",e)?(delete e._keys,e._keys=Object.keys(e).sort((t,n)=>{let r,i;return e[t]>e[n]==!(e[t]<=e[n])?e[t]>e[n]?1:e[t]<e[n]?-1:0:isNaN(r=parseFloat(e[t]))||isNaN(i=parseFloat(e[n]))?"string"==typeof e[t]?e[t]>e[n].toString()?1:e[t]<e[n].toString()?-1:0:"string"==typeof e[n]?e[t].toString()>e[n]?1:e[t].toString()<e[n]?-1:0:null:r>i?1:r<i?-1:0}),e):void 0,keys(e){if(null==e)return;const t=e._keys||Object.keys(e),n=[];return t.forEach(t=>{"_keys"!==t&&Object.hasOwnProperty.call(e,t)&&n.push(t)}),n},url_encode(t){if(null==t)return;if(e.lib.is("Object",t)){const n=function(t,r){const i=[];return(t._keys||Object.keys(t)).forEach(a=>{if(!Object.prototype.hasOwnProperty.call(t,a))return;const o=r?r+"["+a+"]":a,s=t[a];i.push(e.lib.is("Object",s)||Array.isArray(s)?n(s,o):encodeURIComponent(o)+"="+encodeURIComponent(s))}),i.join("&")};return n(t)}let n=encodeURIComponent(t);return n=n.replace("'","%27"),n},join(e,n){if(null==e)return;let r="",i=[],a=null;return n&&n[0]&&(r=n[0]),t("Array",e)?i=e:(a=e._keys||Object.keys(e),a.forEach(t=>{"_keys"!==t&&Object.hasOwnProperty.call(e,t)&&i.push(e[t])})),i.join(r)},default(t,n){if(void 0!==n&&n.length>1)throw new e.Error("default filter expects one argument");return null==t||""===t?void 0===n?"":n[0]:t},json_encode(n){if(null==n)return"null";if("object"==typeof n&&t("Array",n)){const t=[];return n.forEach(n=>{t.push(e.filters.json_encode(n))}),"["+t.join(",")+"]"}if("object"==typeof n&&t("Date",n))return'"'+n.toISOString()+'"';if("object"==typeof n){const t=n._keys||Object.keys(n),r=[];return t.forEach(t=>{r.push(JSON.stringify(t)+":"+e.filters.json_encode(n[t]))}),"{"+r.join(",")+"}"}return JSON.stringify(n)},merge(n,r){let i=[],a=0,o=[];if(t("Array",n)?r.forEach(e=>{t("Array",e)||(i={})}):i={},t("Array",i)||(i._keys=[]),t("Array",n)?n.forEach(e=>{i._keys&&i._keys.push(a),i[a]=e,a++}):(o=n._keys||Object.keys(n),o.forEach(e=>{i[e]=n[e],i._keys.push(e);const t=parseInt(e,10);!isNaN(t)&&t>=a&&(a=t+1)})),r.forEach(e=>{t("Array",e)?e.forEach(e=>{i._keys&&i._keys.push(a),i[a]=e,a++}):(o=e._keys||Object.keys(e),o.forEach(t=>{i[t]||i._keys.push(t),i[t]=e[t];const n=parseInt(t,10);!isNaN(n)&&n>=a&&(a=n+1)}))}),0===r.length)throw new e.Error("Filter merge expects at least one parameter");return i},date(t,n){const r=e.functions.date(t),i=n&&Boolean(n.length)?n[0]:"F j, Y H:i";return e.lib.date(i.replace(/\\\\/g,"\\"),r)},date_modify(t,n){if(null==t)return;if(void 0===n||1!==n.length)throw new e.Error("date_modify filter expects 1 argument");const r=n[0];let i;return e.lib.is("Date",t)&&(i=e.lib.strtotime(r,t.getTime()/1e3)),e.lib.is("String",t)&&(i=e.lib.strtotime(r,e.lib.strtotime(t))),e.lib.is("Number",t)&&(i=e.lib.strtotime(r,t)),/* @__PURE__ */new Date(1e3*i)},replace(t,n){if(null==t)return;const r=n[0];let i;for(i in r)Object.hasOwnProperty.call(r,i)&&"_keys"!==i&&(t=e.lib.replaceAll(t,i,r[i]));return t},format(t,n){if(null!=t&&""!==t)return e.lib.vsprintf(t,n)},striptags(t,n){if(null!=t)return e.lib.stripTags(t,n)},escape(t,n){if(null==t||""===t)return;let r="html";if(n&&Boolean(n.length)&&!0!==n[0]&&(r=n[0]),"html"===r){const n=t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");return new e.Markup(n,"html")}if("js"===r){const n=t.toString();let r="";for(let t=0;t<n.length;t++)if(n[t].match(/^[a-zA-Z0-9,._]$/))r+=n[t];else{const i=n.charAt(t),a=n.charCodeAt(t),o={"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};o[i]?r+=o[i]:r+=e.lib.sprintf("\\u%04s",a.toString(16).toUpperCase())}return new e.Markup(r,"js")}if("css"===r){const n=t.toString();let r="";for(let e=0;e<n.length;e++)n[e].match(/^[a-zA-Z0-9]$/)?r+=n[e]:r+="\\"+n.charCodeAt(e).toString(16).toUpperCase()+" ";return new e.Markup(r,"css")}if("url"===r){const n=e.filters.url_encode(t);return new e.Markup(n,"url")}if("html_attr"===r){const n=t.toString();let r="";for(let t=0;t<n.length;t++)if(n[t].match(/^[a-zA-Z0-9,.\-_]$/))r+=n[t];else if(n[t].match(/^[&<>"]$/))r+=n[t].replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");else{const i=n.charCodeAt(t);r+=i<=31&&9!==i&&10!==i&&13!==i?"�":i<128?e.lib.sprintf("&#x%02s;",i.toString(16).toUpperCase()):e.lib.sprintf("&#x%04s;",i.toString(16).toUpperCase())}return new e.Markup(r,"html_attr")}throw new e.Error("escape strategy unsupported")},e:(t,n)=>e.filters.escape(t,n),nl2br(t){if(null==t||""===t)return;const n="<br />BACKSLASH_n_replace";return t=e.filters.escape(t).replace(/\r\n/g,n).replace(/\r/g,n).replace(/\n/g,n),t=e.lib.replaceAll(t,"BACKSLASH_n_replace","\n"),new e.Markup(t)},number_format(e,t){let n=e;const r=t&&t[0]?t[0]:void 0,i=t&&void 0!==t[1]?t[1]:".",a=t&&void 0!==t[2]?t[2]:",";n=String(n).replace(/[^0-9+\-Ee.]/g,"");const o=isFinite(Number(n))?Number(n):0,s=isFinite(Number(r))?Math.abs(r):0;let l="";return l=(s?function(e,t){const n=10**t;return String(Math.round(e*n)/n)}(o,s):String(Math.round(o))).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(l[1]||"").length<s&&(l[1]=l[1]||"",l[1]+=new Array(s-l[1].length+1).join("0")),l.join(i)},trim(e,t){if(null==e)return;let n,r=String(e);n=t&&t[0]?String(t[0]):" \n\r\t\f\v \u2028\u2029 ";for(let i=0;i<r.length;i++)if(!n.includes(r.charAt(i))){r=r.slice(Math.max(0,i));break}for(let i=r.length-1;i>=0;i--)if(!n.includes(r.charAt(i))){r=r.slice(0,Math.max(0,i+1));break}return n.includes(r.charAt(0))?"":r},truncate(e,t){let n=30,r=!1,i="...";if(e=String(e),t&&(t[0]&&(n=t[0]),t[1]&&(r=t[1]),t[2]&&(i=t[2])),e.length>n){if(r&&(n=e.indexOf(" ",n),-1===n))return e;e=e.slice(0,n)+i}return e},slice(t,n){if(null==t)return;if(void 0===n||0===n.length)throw new e.Error("slice filter expects at least 1 argument");const r=n[0]||0;let i=n.length>1?n[1]:t.length;const a=r>=0?r:Math.max(t.length+r,0);if(i<0&&(i=t.length-a+i),e.lib.is("Array",t)){const e=[];for(let n=a;n<a+i&&n<t.length;n++)e.push(t[n]);return e}if(e.lib.is("String",t))return t.slice(a,a+i);throw new e.Error("slice filter expects value to be an array or string")},abs(e){if(null!=e)return Math.abs(e)},first(e){if(t("Array",e))return e[0];if(t("Object",e)){if("_keys"in e)return e[e._keys[0]]}else if("string"==typeof e)return e.slice(0,1)},split(t,n){if(null!=t){if(void 0===n||0===n.length||n.length>2)throw new e.Error("split filter expects 1 or 2 argument");if(e.lib.is("String",t)){const e=n[0],r=n[1],i=t.split(e);if(void 0===r)return i;if(r<0)return t.split(e,i.length+r);const a=[];if(""===e)for(;i.length>0;){let e="";for(let t=0;t<r&&i.length>0;t++)e+=i.shift();a.push(e)}else{for(let e=0;e<r-1&&i.length>0;e++)a.push(i.shift());i.length>0&&a.push(i.join(e))}return a}throw new e.Error("split filter expects value to be a string")}},last(t){if(e.lib.is("Object",t)){let e;return e=void 0===t._keys?Object.keys(t):t._keys,t[e[e.length-1]]}return e.lib.is("Number",t)?t.toString().slice(-1):t[t.length-1]},raw:t=>new e.Markup(t||""),batch(t,n){let r=n.shift();const i=n.shift();let a,o;if(!e.lib.is("Array",t))throw new e.Error("batch filter expects items to be an array");if(!e.lib.is("Number",r))throw new e.Error("batch filter expects size to be a number");r=Math.ceil(r);const s=e.lib.chunkArray(t,r);if(i&&t.length%r!==0){for(a=s.pop(),o=r-a.length;o--;)a.push(i);s.push(a)}return s},round(t,n){const r=(n=n||[]).length>0?n[0]:0,i=n.length>1?n[1]:"common";if(t=parseFloat(t),r&&!e.lib.is("Number",r))throw new e.Error("round filter expects precision to be a number");if("common"===i)return e.lib.round(t,r);if(!e.lib.is("Function",Math[i]))throw new e.Error("round filter expects method to be 'floor', 'ceil', or 'common'");return Math[i](t*10**r)/10**r},spaceless:e=>e.replace(/>\s+</g,"><").trim()},e.filter=function(t,n,r){if(!e.filters[t])throw new e.Error("Unable to find filter "+t);return e.filters[t].call(this,n,r)},e.filter.extend=function(t,n){e.filters[t]=n},e}}),ho=/* @__PURE__ */q((e,t)=>{t.exports=function(e){return e.functions={range(e,t,n){const r=[];let i,a;const o=n||1;let s=!1;if(isNaN(e)||isNaN(t)?isNaN(e)&&isNaN(t)?(s=!0,i=e.charCodeAt(0),a=t.charCodeAt(0)):(i=isNaN(e)?0:e,a=isNaN(t)?0:t):(i=parseInt(e,10),a=parseInt(t,10)),i>a)for(;i>=a;)r.push(s?String.fromCharCode(i):i),i-=o;else for(;i<=a;)r.push(s?String.fromCharCode(i):i),i+=o;return r},cycle:(e,t)=>e[t%e.length],dump(...e){const t=[...e];let n=0,r="";const i=function(e){let t="";for(;e>0;)e--,t+=" ";return t},a=function(e){r+=i(n),"object"==typeof e?o(e):"function"==typeof e?r+="function()\n":"string"==typeof e?r+="string("+e.length+') "'+e+'"\n':"number"==typeof e?r+="number("+e+")\n":"boolean"==typeof e&&(r+="bool("+e+")\n")},o=function(e){let t;if(null===e)r+="NULL\n";else if(void 0===e)r+="undefined\n";else if("object"==typeof e){for(t in r+=i(n)+typeof e,n++,r+="("+function(e){let t,n=0;for(t in e)Object.hasOwnProperty.call(e,t)&&n++;return n}(e)+") {\n",e)Object.hasOwnProperty.call(e,t)&&(r+=i(n)+"["+t+"]=> \n",a(e[t]));n--,r+=i(n)+"}\n"}else a(e)};return 0===t.length&&t.push(this.context),t.forEach(e=>{o(e)}),r},date(t){let n;if(null==t||""===t)n=/* @__PURE__ */new Date;else if(e.lib.is("Date",t))n=t;else if(e.lib.is("String",t))n=t.match(/^\d+$/)?/* @__PURE__ */new Date(1e3*t):/* @__PURE__ */new Date(1e3*e.lib.strtotime(t));else{if(!e.lib.is("Number",t))throw new e.Error("Unable to parse date "+t);n=/* @__PURE__ */new Date(1e3*t)}return n},block(e){const t=this,n=t.getBlock(e);if(void 0!==n)return n.render(t,t.context)},parent(){const t=this;return t.getBlock(t.getNestingStackToken(e.logic.type.block).blockName,!0).render(t,t.context)},attribute:(t,n,r)=>e.lib.is("Object",t)&&Object.hasOwnProperty.call(t,n)?"function"==typeof t[n]?t[n].apply(void 0,r):t[n]:t&&t[n]||void 0,max:(t,...n)=>e.lib.is("Object",t)?(delete t._keys,e.lib.max(t)):Reflect.apply(e.lib.max,null,[t,...n]),min:(t,...n)=>e.lib.is("Object",t)?(delete t._keys,e.lib.min(t)):Reflect.apply(e.lib.min,null,[t,...n]),template_from_string(t){return void 0===t&&(t=""),e.Templates.parsers.twig({options:this.template.options,data:t})},random(t){const n=2147483648;function r(e){const t=Math.floor(Math.random()*n),r=Math.min.call(null,0,e),i=Math.max.call(null,0,e);return r+Math.floor((i-r+1)*t/n)}if(e.lib.is("Number",t))return r(t);if(e.lib.is("String",t))return t.charAt(r(t.length-1));if(e.lib.is("Array",t))return t[r(t.length-1)];if(e.lib.is("Object",t)){const e=Object.keys(t);return t[e[r(e.length-1)]]}return r(2147483647)},source(n,r){const{namespaces:i}=this.template.options;let a,o=!1;const s=void 0!==t&&void 0!==t.exports&&"undefined"==typeof window;let l,c=n;i&&"object"==typeof i&&(c=e.path.expandNamespace(i,c)),l=s?"fs":"ajax";const u={id:n,path:c,method:l,parser:"source",async:!1,fetchTemplateSource:!0};void 0===r&&(r=!1);try{a=e.Templates.loadRemote(n,u),null==a?a="":o=!0}catch(d){e.log.debug("Twig.functions.source: ","Problem loading template ",d)}return o||r?a:'Template "{name}" is not defined.'.replace("{name}",n)}},e._function=function(t,n,r){if(!e.functions[t])throw new e.Error("Unable to find function "+t);return e.functions[t](n,r)},e._function.extend=function(t,n){e.functions[t]=n},e}}),fo=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sprintf=function(e,...t){const n=/%%|%(?:(\d+)\$)?((?:[-+#0 ]|'[\s\S])*)(\d+)?(?:\.(\d*))?([\s\S])/g,r=[e,...t];let i=1;const a=function(e,t,n,r){n||(n=" ");const i=e.length>=t?"":new Array(1+t-e.length>>>0).join(n);return r?e+i:i+e},o=function(e,t,n,r,i){const o=r-e.length;return o>0&&(e=n||"0"!==i?a(e,r,i,n):[e.slice(0,t.length),a("",o,"0",!0),e.slice(t.length)].join("")),e},s=function(e,t,n,r,i,s){const l=Number(e)>>>0,c=a(l.toString(t),i||0,"0",!1);return o(c,"",n,r,s)},l=function(e,t,n,r,i){return null!=r&&(e=e.slice(0,r)),o(e,"",t,n,i)},c=function(e,t,n,c,u,d){let p,h=0,f="";if("%%"===e)return"%";let m=" ",g=!1,y="",b=0,v=0;for(b=0,v=n.length;b<v;b++)switch(n.charAt(b)){case" ":case"0":m=n.charAt(b);break;case"+":y="+";break;case"-":g=!0;break;case"'":b+1<v&&(m=n.charAt(b+1),b++)}let x,w=0;if(w=c?+c:0,!isFinite(w))throw new Error("Width must be finite");if(x=u?+u:"d"===d?0:"fFeE".includes(d)?6:void 0,t&&0===+t)throw new Error("Argument number must be greater than zero");if(t&&+t>=r.length)throw new Error("Too few arguments");switch(p=t?r[+t]:r[i++],d){case"%":return"%";case"s":return l(String(p),g,w,x,m);case"c":return l(String.fromCharCode(+String(p)),g,w,x,m);case"b":return s(p,2,g,w,x,m);case"o":return s(p,8,g,w,x,m);case"x":return s(p,16,g,w,x,m);case"X":return s(p,16,g,w,x,m).toUpperCase();case"u":return s(p,10,g,w,x,m);case"i":case"d":return h=+String(p)||0,h=Math.round(h-h%1),f=h<0?"-":y,p=f+a(String(Math.abs(h)),x??0,"0",!1),g&&"0"===m&&(m=" "),o(String(p),f,g,w,m);case"e":case"E":case"f":case"F":case"g":case"G":{h=+String(p),f=h<0?"-":y;const e="efg".indexOf(d.toLowerCase()),t=Math.abs(h);let n="";n=0===e?t.toExponential(x):1===e?t.toFixed(x):t.toPrecision(x);const r=o(f+n,f,g,w,m);return"eEfFgG".indexOf(d)%2==0?r:r.toUpperCase()}default:return""}};try{return e.replace(n,c)}catch(u){return!1}}}),mo=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.vsprintf=function(e,n){return(0,t.sprintf)(e,...n)};var t=fo()}),go=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e._phpCastString=function(e){if("boolean"==typeof e)return e?"1":"";if("string"==typeof e)return e;if("number"==typeof e)return isNaN(e)?"NAN":isFinite(e)?e+"":(e<0?"-":"")+"INF";if(void 0===e)return"";if("object"==typeof e)return Array.isArray(e)?"Array":null!==e?"Object":"";throw new Error("Unsupported value type")}}),yo=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.strip_tags=function(e,n){n=(((n||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");const r=/<\/?([a-z0-9]*)\b[^>]*>?/gi,i=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;let a=(0,t._phpCastString)(e);for(a=a.endsWith("<")?a.slice(0,-1):a;;){const e=a;if(a=e.replace(i,"").replace(r,function(e,t){return n.includes("<"+t.toLowerCase()+">")?e:""}),e===a)return a}};var t=go()}),bo=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e._php_cast_int=function(e){return"number"==typeof e?isNaN(e)||!isFinite(e)?0:e<0?Math.ceil(e):Math.floor(e):"string"==typeof e?parseInt(e,10)||0:+!!e}}),vo=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e._php_cast_float=function(e){return"number"==typeof e?e:"string"==typeof e?parseFloat(e)||0:(0,t._php_cast_int)(e)};var t=bo()}),xo=/* @__PURE__ */q(e=>{function t(e,t){let n=Math.floor(Math.abs(e)+.5);return("PHP_ROUND_HALF_DOWN"===t&&e===n-.5||"PHP_ROUND_HALF_EVEN"===t&&e===.5+2*Math.floor(n/2)||"PHP_ROUND_HALF_ODD"===t&&e===.5+2*Math.floor(n/2)-1)&&(n-=1),e<0?-n:n}Object.defineProperty(e,"__esModule",{value:!0}),e.round=function(e,i=0,a="PHP_ROUND_HALF_UP"){let o;if(e=(0,n._php_cast_float)(e),i=(0,r._php_cast_int)(i),o=Math.pow(10,i),isNaN(e)||!isFinite(e))return e;if(Math.trunc(e)===e&&i>=0)return e;const s=14-Math.floor(Math.log10(Math.abs(e)));return s>i&&s-15<i?(e=t(e*Math.pow(10,s),a),e/=Math.pow(10,Math.abs(i-s))):e*=o,(e=t(e,a))/o};var n=vo(),r=bo()}),wo=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.min=function(...e){if(0===e.length)throw new Error("At least one value should be passed to min()");let i;if(1===e.length){const r=e[0];if(void 0===r||!t(r))throw new Error("Wrong parameter count for min()");if(i=n(r),0===i.length)throw new Error("Array must contain at least one element for min()")}else i=e;const a=i[0];if(void 0===a)throw new Error("Array must contain at least one element for min()");let o=a;for(let t=1;t<i.length;t+=1){const e=i[t];void 0!==e&&-1===r(o,e)&&(o=e)}return o};var t=e=>"object"==typeof e&&null!==e,n=e=>Array.isArray(e)?e:Object.values(e).filter(e=>void 0!==e),r=(e,i)=>{const a=Number(e),o=Number(i);if(e===i)return 0;if(t(e)){if(t(i)){const t=n(e),a=n(i);if(a.length>t.length)return 1;if(a.length<t.length)return-1;for(let e=0;e<t.length;e+=1){const n=t[e],i=a[e];if(void 0===n||void 0===i)continue;const o=r(n,i);if(0!==o)return o}return 0}return-1}return t(i)?1:Number.isNaN(o)&&!Number.isNaN(a)?0===e?0:a<0?1:-1:Number.isNaN(a)&&!Number.isNaN(o)?0===i?0:o>0?1:-1:"string"==typeof e&&"string"==typeof i&&Number.isNaN(a)&&Number.isNaN(o)?i>e?1:-1:o>a?1:-1}}),ko=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.max=function(...e){if(0===e.length)throw new Error("At least one value should be passed to max()");let i;if(1===e.length){const r=e[0];if(void 0===r||!t(r))throw new Error("Wrong parameter count for max()");if(i=n(r),0===i.length)throw new Error("Array must contain at least one element for max()")}else i=e;const a=i[0];if(void 0===a)throw new Error("Array must contain at least one element for max()");let o=a;for(let t=1;t<i.length;t+=1){const e=i[t];void 0!==e&&1===r(o,e)&&(o=e)}return o};var t=e=>"object"==typeof e&&null!==e,n=e=>Array.isArray(e)?e:Object.values(e).filter(e=>void 0!==e),r=(e,i)=>{const a=Number(e),o=Number(i);if(e===i)return 0;if(t(e)){if(t(i)){const t=n(e),a=n(i);if(a.length>t.length)return 1;if(a.length<t.length)return-1;for(let e=0;e<t.length;e+=1){const n=t[e],i=a[e];if(void 0===n||void 0===i)continue;const o=r(n,i);if(0!==o)return o}return 0}return-1}return t(i)?1:Number.isNaN(o)&&!Number.isNaN(a)?0===e?0:a<0?1:-1:Number.isNaN(a)&&!Number.isNaN(o)?0===i?0:o>0?1:-1:"string"==typeof e&&"string"==typeof i&&Number.isNaN(a)&&Number.isNaN(o)?i>e?1:-1:o>a?1:-1}}),So=/* @__PURE__ */q(e=>{function t(e,t){switch(t?.toLowerCase()){case"a":e+=12===e?-12:0;break;case"p":e+=12!==e?12:0}return e}function n(e){let t=+e;return e.length<4&&t<100&&(t+=t<70?2e3:1900),t}function r(e){return{jan:0,january:0,i:0,feb:1,february:1,ii:1,mar:2,march:2,iii:2,apr:3,april:3,iv:3,may:4,v:4,jun:5,june:5,vi:5,jul:6,july:6,vii:6,aug:7,august:7,viii:7,sep:8,sept:8,september:8,ix:8,oct:9,october:9,x:9,nov:10,november:10,xi:10,dec:11,december:11,xii:11}[e.toLowerCase()]??NaN}function i(e,t=0){return{mon:1,monday:1,tue:2,tuesday:2,wed:3,wednesday:3,thu:4,thursday:4,fri:5,friday:5,sat:6,saturday:6,sun:0,sunday:0}[e.toLowerCase()]||t}function a(e,t=NaN){const n=e?.match(/(?:GMT)?([+-])(\d+)(:?)(\d{0,2})/i);if(!n)return t;const r="-"===n[1]?-1:1;let i=+(n[2]??0),a=+(n[4]??0);return n[4]||n[3]||(a=Math.floor(i%100),i=Math.floor(i/100)),r*(60*i+a)*60}Object.defineProperty(e,"__esModule",{value:!0}),e.strtotime=function(e,t){const n=null==t?Math.floor(Date.now()/1e3):t;e=String(e);const r=[s.yesterday,s.now,s.noon,s.midnightOrToday,s.tomorrow,s.timestamp,s.firstOrLastDay,s.backOrFrontOf,s.timeTiny12,s.timeShort12,s.timeLong12,s.mssqltime,s.oracledate,s.timeShort24,s.timeLong24,s.iso8601long,s.gnuNoColon,s.iso8601noColon,s.americanShort,s.american,s.iso8601date4,s.iso8601dateSlash,s.dateSlash,s.gnuDateShortOrIso8601date2,s.gnuDateShorter,s.dateFull,s.pointedDate4,s.pointedDate2,s.dateNoDay,s.dateNoDayRev,s.dateTextual,s.dateNoYear,s.dateNoYearRev,s.dateNoColon,s.xmlRpc,s.xmlRpcNoColon,s.soap,s.wddx,s.exif,s.pgydotd,s.isoWeekDay,s.pgTextShort,s.pgTextReverse,s.clf,s.year4,s.ago,s.dayText,s.relativeTextWeek,s.relativeText,s.monthFullOrMonthAbbr,s.tzCorrection,s.tzAbbr,s.dateShortWithTimeShort12,s.dateShortWithTimeLong12,s.dateShortWithTimeShort,s.dateShortWithTimeLong,s.relative,s.whitespace],i={...l};for(;e.length;){let t=null,n=null;for(const i of r){const r=e.match(i.regex);r&&(!t||r[0].length>t[0].length)&&(t=r,n=i)}if(!n||!t)return!1;if(n.callback&&!1===n.callback.apply(i,t))return!1;e=e.substr(t[0].length),n=null,t=null}return Math.floor(i.toDate(/* @__PURE__ */new Date(1e3*n)).getTime()/1e3)};var o={acdt:37800,acst:34200,addt:-7200,adt:-10800,aedt:39600,aest:36e3,ahdt:-32400,ahst:-36e3,akdt:-28800,akst:-32400,amt:-13840,apt:-10800,ast:-14400,awdt:32400,awst:28800,awt:-10800,bdst:7200,bdt:-36e3,bmt:-14309,bst:3600,cast:34200,cat:7200,cddt:-14400,cdt:-18e3,cemt:10800,cest:7200,cet:3600,cmt:-15408,cpt:-18e3,cst:-21600,cwt:-18e3,chst:36e3,dmt:-1521,eat:10800,eddt:-10800,edt:-14400,eest:10800,eet:7200,emt:-26248,ept:-14400,est:-18e3,ewt:-14400,ffmt:-14660,fmt:-4056,gdt:39600,gmt:0,gst:36e3,hdt:-34200,hkst:32400,hkt:28800,hmt:-19776,hpt:-34200,hst:-36e3,hwt:-34200,iddt:14400,idt:10800,imt:25025,ist:7200,jdt:36e3,jmt:8440,jst:32400,kdt:36e3,kmt:5736,kst:30600,lst:9394,mddt:-18e3,mdst:16279,mdt:-21600,mest:7200,met:3600,mmt:9017,mpt:-21600,msd:14400,msk:10800,mst:-25200,mwt:-21600,nddt:-5400,ndt:-9052,npt:-9e3,nst:-12600,nwt:-9e3,nzdt:46800,nzmt:41400,nzst:43200,pddt:-21600,pdt:-25200,pkst:21600,pkt:18e3,plmt:25590,pmt:-13236,ppmt:-17340,ppt:-25200,pst:-28800,pwt:-25200,qmt:-18840,rmt:5794,sast:7200,sdmt:-16800,sjmt:-20173,smt:-13884,sst:-39600,tbmt:10751,tmt:12344,uct:0,utc:0,wast:7200,wat:3600,wemt:7200,west:3600,wet:0,wib:25200,wita:28800,wit:32400,wmt:5040,yddt:-25200,ydt:-28800,ypt:-28800,yst:-32400,ywt:-28800,a:3600,b:7200,c:10800,d:14400,e:18e3,f:21600,g:25200,h:28800,i:32400,k:36e3,l:39600,m:43200,n:-3600,o:-7200,p:-10800,q:-14400,r:-18e3,s:-21600,t:-25200,u:-28800,v:-32400,w:-36e3,x:-39600,y:-43200,z:0},s={yesterday:{regex:/^yesterday/i,name:"yesterday",callback(){return this.rd-=1,this.resetTime()}},now:{regex:/^now/i,name:"now"},noon:{regex:/^noon/i,name:"noon",callback(){return this.resetTime()&&this.time(12,0,0,0)}},midnightOrToday:{regex:/^(midnight|today)/i,name:"midnight | today",callback(){return this.resetTime()}},tomorrow:{regex:/^tomorrow/i,name:"tomorrow",callback(){return this.rd+=1,this.resetTime()}},timestamp:{regex:/^@(-?\d+)/i,name:"timestamp",callback(e,t){return this.rs+=+t,this.y=1970,this.m=0,this.d=1,this.dates=0,this.resetTime()&&this.zone(0)}},firstOrLastDay:{regex:/^(first|last) day of/i,name:"firstdayof | lastdayof",callback(e,t){"first"===t.toLowerCase()?this.firstOrLastDayOfMonth=1:this.firstOrLastDayOfMonth=-1}},backOrFrontOf:{regex:/* @__PURE__ */new RegExp("^(back|front) of (2[0-4]|[01]?[0-9])[ \\t]*(?:([ap])\\.?m\\.?([\\t ]|$))?","i"),name:"backof | frontof",callback(e,n,r,i){let a=+r,o=15;return"back"===n.toLowerCase()||(a-=1,o=45),a=t(a,i),this.resetTime()&&this.time(a,o,0,0)}},weekdayOf:{regex:/* @__PURE__ */new RegExp("^(first|second|third|fourth|fifth|sixth|seventh|eighth?|ninth|tenth|eleventh|twelfth|next|last|previous|this)[ \\t]+(sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|fri|sat)[ \\t]+of","i"),name:"weekdayof"},mssqltime:{regex:/* @__PURE__ */new RegExp("^(0?[1-9]|1[0-2]):([0-5][0-9]):(60|[0-5][0-9])[:.]([0-9]+)(?:([ap])\\.?m\\.?([\\t ]|$))","i"),name:"mssqltime",callback(e,n,r,i,a,o){return this.time(t(+n,o),+r,+i,+a.substr(0,3))}},oracledate:{regex:/^(\d{2})-([A-Z]{3})-(\d{2})$/i,name:"d-M-y",callback(e,t,n,r){const i={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[n.toUpperCase()]??NaN;return this.ymd(2e3+parseInt(r,10),i,parseInt(t,10))}},timeLong12:{regex:/* @__PURE__ */new RegExp("^(0?[1-9]|1[0-2])[:.]([0-5]?[0-9])[:.](60|[0-5][0-9])[ \\t]*(?:([ap])\\.?m\\.?([\\t ]|$))","i"),name:"timelong12",callback(e,n,r,i,a){return this.time(t(+n,a),+r,+i,0)}},timeShort12:{regex:/* @__PURE__ */new RegExp("^(0?[1-9]|1[0-2])[:.]([0-5][0-9])[ \\t]*(?:([ap])\\.?m\\.?([\\t ]|$))","i"),name:"timeshort12",callback(e,n,r,i){return this.time(t(+n,i),+r,0,0)}},timeTiny12:{regex:/* @__PURE__ */new RegExp("^(0?[1-9]|1[0-2])[ \\t]*(?:([ap])\\.?m\\.?([\\t ]|$))","i"),name:"timetiny12",callback(e,n,r){return this.time(t(+n,r),0,0,0)}},soap:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})-(0[0-9]|1[0-2])-(0[0-9]|[1-2][0-9]|3[01])T([01][0-9]|2[0-4]):([0-5][0-9]):(60|[0-5][0-9])(?:\\.([0-9]+))((?:GMT)?([+-])(2[0-4]|[01]?[0-9]):?([0-5]?[0-9])?)?","i"),name:"soap",callback(e,t,n,r,i,o,s,l,c){return this.ymd(+t,+n-1,+r)&&this.time(+i,+o,+s,+l.substr(0,3))&&this.zone(a(c))}},wddx:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})-(1[0-2]|0?[0-9])-(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)T(2[0-4]|[01]?[0-9]):([0-5]?[0-9]):(60|[0-5]?[0-9])"),name:"wddx",callback(e,t,n,r,i,a,o){return this.ymd(+t,+n-1,+r)&&this.time(+i,+a,+o,0)}},exif:{regex:/* @__PURE__ */new RegExp("^([0-9]{4}):(0[0-9]|1[0-2]):(0[0-9]|[1-2][0-9]|3[01]) ([01][0-9]|2[0-4]):([0-5][0-9]):(60|[0-5][0-9])","i"),name:"exif",callback(e,t,n,r,i,a,o){return this.ymd(+t,+n-1,+r)&&this.time(+i,+a,+o,0)}},xmlRpc:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})(0[0-9]|1[0-2])(0[0-9]|[1-2][0-9]|3[01])T(2[0-4]|[01]?[0-9]):([0-5][0-9]):(60|[0-5][0-9])"),name:"xmlrpc",callback(e,t,n,r,i,a,o){return this.ymd(+t,+n-1,+r)&&this.time(+i,+a,+o,0)}},xmlRpcNoColon:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})(0[0-9]|1[0-2])(0[0-9]|[1-2][0-9]|3[01])[Tt](2[0-4]|[01]?[0-9])([0-5][0-9])(60|[0-5][0-9])"),name:"xmlrpcnocolon",callback(e,t,n,r,i,a,o){return this.ymd(+t,+n-1,+r)&&this.time(+i,+a,+o,0)}},clf:{regex:/* @__PURE__ */new RegExp("^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)/(jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec)/([0-9]{4}):([01][0-9]|2[0-4]):([0-5][0-9]):(60|[0-5][0-9])[ \\t]+((?:GMT)?([+-])(2[0-4]|[01]?[0-9]):?([0-5]?[0-9])?)","i"),name:"clf",callback(e,t,n,i,o,s,l,c){return this.ymd(+i,r(n),+t)&&this.time(+o,+s,+l,0)&&this.zone(a(c))}},iso8601long:{regex:/* @__PURE__ */new RegExp("^t?(2[0-4]|[01]?[0-9])[:.]([0-5]?[0-9])[:.](60|[0-5]?[0-9])(?:\\.([0-9]+))","i"),name:"iso8601long",callback(e,t,n,r,i){return this.time(+t,+n,+r,+i.substr(0,3))}},dateTextual:{regex:/* @__PURE__ */new RegExp("^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\\t-]*(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[,.stndrh\\t ]+([0-9]{1,4})","i"),name:"datetextual",callback(e,t,i,a){return this.ymd(n(a),r(t),+i)}},pointedDate4:{regex:/* @__PURE__ */new RegExp("^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[.\\t-](1[0-2]|0?[0-9])[.-]([0-9]{4})"),name:"pointeddate4",callback(e,t,n,r){return this.ymd(+r,+n-1,+t)}},pointedDate2:{regex:/* @__PURE__ */new RegExp("^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[.\\t](1[0-2]|0?[0-9])\\.([0-9]{2})"),name:"pointeddate2",callback(e,t,r,i){return this.ymd(n(i),+r-1,+t)}},timeLong24:{regex:/* @__PURE__ */new RegExp("^t?(2[0-4]|[01]?[0-9])[:.]([0-5]?[0-9])[:.](60|[0-5]?[0-9])"),name:"timelong24",callback(e,t,n,r){return this.time(+t,+n,+r,0)}},dateNoColon:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})(0[0-9]|1[0-2])(0[0-9]|[1-2][0-9]|3[01])"),name:"datenocolon",callback(e,t,n,r){return this.ymd(+t,+n-1,+r)}},pgydotd:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})\\.?(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])"),name:"pgydotd",callback(e,t,n){return this.ymd(+t,0,+n)}},timeShort24:{regex:/* @__PURE__ */new RegExp("^t?(2[0-4]|[01]?[0-9])[:.]([0-5]?[0-9])","i"),name:"timeshort24",callback(e,t,n){return this.time(+t,+n,0,0)}},iso8601noColon:{regex:/* @__PURE__ */new RegExp("^t?([01][0-9]|2[0-4])([0-5][0-9])(60|[0-5][0-9])","i"),name:"iso8601nocolon",callback(e,t,n,r){return this.time(+t,+n,+r,0)}},iso8601dateSlash:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})/(0[0-9]|1[0-2])/(0[0-9]|[1-2][0-9]|3[01])/"),name:"iso8601dateslash",callback(e,t,n,r){return this.ymd(+t,+n-1,+r)}},dateSlash:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})/(1[0-2]|0?[0-9])/(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)"),name:"dateslash",callback(e,t,n,r){return this.ymd(+t,+n-1,+r)}},american:{regex:/* @__PURE__ */new RegExp("^(1[0-2]|0?[0-9])/(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)/([0-9]{1,4})"),name:"american",callback(e,t,r,i){return this.ymd(n(i),+t-1,+r)}},americanShort:{regex:/* @__PURE__ */new RegExp("^(1[0-2]|0?[0-9])/(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)"),name:"americanshort",callback(e,t,n){return this.ymd(this.y,+t-1,+n)}},gnuDateShortOrIso8601date2:{regex:/* @__PURE__ */new RegExp("^([0-9]{1,4})-(1[0-2]|0?[0-9])-(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)"),name:"gnudateshort | iso8601date2",callback(e,t,r,i){return this.ymd(n(t),+r-1,+i)}},iso8601date4:{regex:/* @__PURE__ */new RegExp("^([+-]?[0-9]{4})-(0[0-9]|1[0-2])-(0[0-9]|[1-2][0-9]|3[01])"),name:"iso8601date4",callback(e,t,n,r){return this.ymd(+t,+n-1,+r)}},gnuNoColon:{regex:/* @__PURE__ */new RegExp("^t?([01][0-9]|2[0-4])([0-5][0-9])","i"),name:"gnunocolon",callback(e,t,n){switch(this.times){case 0:return this.time(+t,+n,0,this.f);case 1:return this.y=100*+t+ +n,this.times++,!0;default:return!1}}},gnuDateShorter:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})-(1[0-2]|0?[0-9])"),name:"gnudateshorter",callback(e,t,n){return this.ymd(+t,+n-1,1)}},pgTextReverse:{regex:/* @__PURE__ */new RegExp("^(\\d{3,4}|[4-9]\\d|3[2-9])-(jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec)-(0[0-9]|[1-2][0-9]|3[01])","i"),name:"pgtextreverse",callback(e,t,i,a){return this.ymd(n(t),r(i),+a)}},dateFull:{regex:/* @__PURE__ */new RegExp("^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[ \\t.-]*(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ \\t.-]*([0-9]{1,4})","i"),name:"datefull",callback(e,t,i,a){return this.ymd(n(a),r(i),+t)}},dateNoDay:{regex:/* @__PURE__ */new RegExp("^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\\t-]*([0-9]{4})","i"),name:"datenoday",callback(e,t,n){return this.ymd(+n,r(t),1)}},dateNoDayRev:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})[ .\\t-]*(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})","i"),name:"datenodayrev",callback(e,t,n){return this.ymd(+t,r(n),1)}},pgTextShort:{regex:/* @__PURE__ */new RegExp("^(jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec)-(0[0-9]|[1-2][0-9]|3[01])-([0-9]{1,4})","i"),name:"pgtextshort",callback(e,t,i,a){return this.ymd(n(a),r(t),+i)}},dateNoYear:{regex:/* @__PURE__ */new RegExp("^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\\t-]*(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[,.stndrh\\t ]*","i"),name:"datenoyear",callback(e,t,n){return this.ymd(this.y,r(t),+n)}},dateNoYearRev:{regex:/* @__PURE__ */new RegExp("^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[ .\\t-]*(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})","i"),name:"datenoyearrev",callback(e,t,n){return this.ymd(this.y,r(n),+t)}},isoWeekDay:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})-?W(0[1-9]|[1-4][0-9]|5[0-3])(?:-?([0-7]))?"),name:"isoweekday | isoweek",callback(e,t,n,r){const i=r?+r:1;if(!this.ymd(+t,0,1))return!1;let a=new Date(this.y,this.m,this.d).getDay();return a=0-(a>4?a-7:a),this.rd+=a+7*(+n-1)+i,!0}},relativeText:{regex:/* @__PURE__ */new RegExp("^(first|second|third|fourth|fifth|sixth|seventh|eighth?|ninth|tenth|eleventh|twelfth|next|last|previous|this)[ \\t]+((?:second|sec|minute|min|hour|day|fortnight|forthnight|month|year)s?|weeks|sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|fri|sat|weekdays?)","i"),name:"relativetext",callback(e,t,n){const{amount:r,behavior:a}=function(e){const t=e.toLowerCase();return{amount:{last:-1,previous:-1,this:0,first:1,next:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eight:8,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12}[t]??0,behavior:{this:1}[t]||0}}(t);switch(n.toLowerCase()){case"sec":case"secs":case"second":case"seconds":this.rs+=r;break;case"min":case"mins":case"minute":case"minutes":this.ri+=r;break;case"hour":case"hours":this.rh+=r;break;case"day":case"days":this.rd+=r;break;case"fortnight":case"fortnights":case"forthnight":case"forthnights":this.rd+=14*r;break;case"week":case"weeks":this.rd+=7*r;break;case"month":case"months":this.rm+=r;break;case"year":case"years":this.ry+=r;break;case"mon":case"monday":case"tue":case"tuesday":case"wed":case"wednesday":case"thu":case"thursday":case"fri":case"friday":case"sat":case"saturday":case"sun":case"sunday":this.resetTime(),this.weekday=i(n,7),this.weekdayBehavior=1,this.rd+=7*(r>0?r-1:r)}}},relative:{regex:/* @__PURE__ */new RegExp("^([+-]*)[ \\t]*(\\d+)[ \\t]*((?:second|sec|minute|min|hour|day|fortnight|forthnight|month|year)s?|weeks|sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|fri|sat|weekdays?|week)","i"),name:"relative",callback(e,t,n,r){const a=t.replace(/[^-]/g,"").length,o=+n*Math.pow(-1,a);switch(r.toLowerCase()){case"sec":case"secs":case"second":case"seconds":this.rs+=o;break;case"min":case"mins":case"minute":case"minutes":this.ri+=o;break;case"hour":case"hours":this.rh+=o;break;case"day":case"days":this.rd+=o;break;case"fortnight":case"fortnights":case"forthnight":case"forthnights":this.rd+=14*o;break;case"week":case"weeks":this.rd+=7*o;break;case"month":case"months":this.rm+=o;break;case"year":case"years":this.ry+=o;break;case"mon":case"monday":case"tue":case"tuesday":case"wed":case"wednesday":case"thu":case"thursday":case"fri":case"friday":case"sat":case"saturday":case"sun":case"sunday":this.resetTime(),this.weekday=i(r,7),this.weekdayBehavior=1,this.rd+=7*(o>0?o-1:o)}}},dayText:{regex:/* @__PURE__ */new RegExp("^(sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|fri|sat|weekdays?)","i"),name:"daytext",callback(e,t){this.resetTime(),this.weekday=i(t,0),2!==this.weekdayBehavior&&(this.weekdayBehavior=1)}},relativeTextWeek:{regex:/* @__PURE__ */new RegExp("^(next|last|previous|this)[ \\t]+week","i"),name:"relativetextweek",callback(e,t){switch(this.weekdayBehavior=2,t.toLowerCase()){case"this":this.rd+=0;break;case"next":this.rd+=7;break;case"last":case"previous":this.rd-=7}isNaN(this.weekday)&&(this.weekday=1)}},monthFullOrMonthAbbr:{regex:/* @__PURE__ */new RegExp("^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec)","i"),name:"monthfull | monthabbr",callback(e,t){return this.ymd(this.y,r(t),this.d)}},tzCorrection:{regex:/* @__PURE__ */new RegExp("^((?:GMT)?([+-])(2[0-4]|[01]?[0-9]):?([0-5]?[0-9])?)","i"),name:"tzcorrection",callback(e){return this.zone(a(e))}},tzAbbr:{regex:/* @__PURE__ */new RegExp("^\\(?([a-zA-Z]{1,6})\\)?"),name:"tzabbr",callback(e,t){const n=o[t.toLowerCase()];return null!=n&&!Number.isNaN(n)&&this.zone(n)}},ago:{regex:/^ago/i,name:"ago",callback(){this.ry=-this.ry,this.rm=-this.rm,this.rd=-this.rd,this.rh=-this.rh,this.ri=-this.ri,this.rs=-this.rs,this.rf=-this.rf}},year4:{regex:/* @__PURE__ */new RegExp("^([0-9]{4})"),name:"year4",callback(e,t){return this.y=+t,!0}},whitespace:{regex:/^[ .,\t]+/,name:"whitespace"},dateShortWithTimeLong:{regex:/* @__PURE__ */new RegExp("^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\\t-]*(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[,.stndrh\\t ]*t?(2[0-4]|[01]?[0-9])[:.]([0-5]?[0-9])[:.](60|[0-5]?[0-9])","i"),name:"dateshortwithtimelong",callback(e,t,n,i,a,o){return this.ymd(this.y,r(t),+n)&&this.time(+i,+a,+o,0)}},dateShortWithTimeLong12:{regex:/* @__PURE__ */new RegExp("^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\\t-]*(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[,.stndrh\\t ]*(0?[1-9]|1[0-2])[:.]([0-5]?[0-9])[:.](60|[0-5][0-9])[ \\t]*(?:([ap])\\.?m\\.?([\\t ]|$))","i"),name:"dateshortwithtimelong12",callback(e,n,i,a,o,s,l){return this.ymd(this.y,r(n),+i)&&this.time(t(+a,l),+o,+s,0)}},dateShortWithTimeShort:{regex:/* @__PURE__ */new RegExp("^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\\t-]*(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[,.stndrh\\t ]*t?(2[0-4]|[01]?[0-9])[:.]([0-5]?[0-9])","i"),name:"dateshortwithtimeshort",callback(e,t,n,i,a){return this.ymd(this.y,r(t),+n)&&this.time(+i,+a,0,0)}},dateShortWithTimeShort12:{regex:/* @__PURE__ */new RegExp("^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\\t-]*(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[,.stndrh\\t ]*(0?[1-9]|1[0-2])[:.]([0-5][0-9])[ \\t]*(?:([ap])\\.?m\\.?([\\t ]|$))","i"),name:"dateshortwithtimeshort12",callback(e,n,i,a,o,s){return this.ymd(this.y,r(n),+i)&&this.time(t(+a,s),+o,0,0)}}},l={y:NaN,m:NaN,d:NaN,h:NaN,i:NaN,s:NaN,f:NaN,ry:0,rm:0,rd:0,rh:0,ri:0,rs:0,rf:0,weekday:NaN,weekdayBehavior:0,firstOrLastDayOfMonth:0,z:NaN,dates:0,times:0,zones:0,ymd(e,t,n){return!(this.dates>0||(this.dates++,this.y=e,this.m=t,this.d=n,0))},time(e,t,n,r){return!(this.times>0||(this.times++,this.h=e,this.i=t,this.s=n,this.f=r,0))},resetTime(){return this.h=0,this.i=0,this.s=0,this.f=0,this.times=0,!0},zone(e){return this.zones<=1&&(this.zones++,this.z=e,!0)},toDate(e){switch(this.dates&&!this.times&&(this.h=this.i=this.s=this.f=0),isNaN(this.y)&&(this.y=e.getFullYear()),isNaN(this.m)&&(this.m=e.getMonth()),isNaN(this.d)&&(this.d=e.getDate()),isNaN(this.h)&&(this.h=e.getHours()),isNaN(this.i)&&(this.i=e.getMinutes()),isNaN(this.s)&&(this.s=e.getSeconds()),isNaN(this.f)&&(this.f=e.getMilliseconds()),this.firstOrLastDayOfMonth){case 1:this.d=1;break;case-1:this.d=0,this.m+=1}if(!isNaN(this.weekday)){const t=new Date(e.getTime());t.setFullYear(this.y,this.m,this.d),t.setHours(this.h,this.i,this.s,this.f);const n=t.getDay();if(2===this.weekdayBehavior)0===n&&0!==this.weekday&&(this.weekday=-6),0===this.weekday&&0!==n&&(this.weekday=7),this.d-=n,this.d+=this.weekday;else{let e=this.weekday-n;(this.rd<0&&e<0||this.rd>=0&&e<=-this.weekdayBehavior)&&(e+=7),this.weekday>=0?this.d+=e:this.d-=7-(Math.abs(this.weekday)-n),this.weekday=NaN}}this.y+=this.ry,this.m+=this.rm,this.d+=this.rd,this.h+=this.rh,this.i+=this.ri,this.s+=this.rs,this.f+=this.rf,this.ry=this.rm=this.rd=0,this.rh=this.ri=this.rs=this.rf=0;const t=new Date(e.getTime());switch(t.setFullYear(this.y,this.m,this.d),t.setHours(this.h,this.i,this.s,this.f),this.firstOrLastDayOfMonth){case 1:t.setDate(1);break;case-1:t.setMonth(t.getMonth()+1,0)}return isNaN(this.z)||t.getTimezoneOffset()===this.z||(t.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),t.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds()-this.z,t.getMilliseconds())),t}}}),No=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.date=function(e,t){let n,r=/* @__PURE__ */new Date;const i=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"],a=/\\?(.?)/gi,o=function(e,t){return r=e,Object.hasOwn(n,r)?String(n[e]()):t;var r},s=function(e,t){let n=String(e);for(;n.length<t;)n="0"+n;return n};return n={d:function(){return s(n.j(),2)},D:function(){return String(n.l()).slice(0,3)},j:function(){return r.getDate()},l:function(){return(i[Number(n.w())]??"")+"day"},N:function(){return Number(n.w())||7},S:function(){const e=Number(n.j());let t=e%10;return t<=3&&1===Number.parseInt(String(e%100/10),10)&&(t=0),["st","nd","rd"][t-1]||"th"},w:function(){return r.getDay()},z:function(){const e=new Date(Number(n.Y()),Number(n.n())-1,Number(n.j())),t=new Date(Number(n.Y()),0,1);return Math.round((e.getTime()-t.getTime())/864e5)},W:function(){const e=new Date(Number(n.Y()),Number(n.n())-1,Number(n.j())-Number(n.N())+3),t=new Date(e.getFullYear(),0,4);return s(1+Math.round((e.getTime()-t.getTime())/864e5/7),2)},F:function(){return i[6+Number(n.n())]??""},m:function(){return s(n.n(),2)},M:function(){return String(n.F()).slice(0,3)},n:function(){return r.getMonth()+1},t:function(){return new Date(Number(n.Y()),Number(n.n()),0).getDate()},L:function(){const e=Number(n.Y());return e%4==0&&e%100!=0||e%400==0?1:0},o:function(){const e=Number(n.n()),t=Number(n.W());return Number(n.Y())+(12===e&&t<9?1:1===e&&t>9?-1:0)},Y:function(){return r.getFullYear()},y:function(){return String(n.Y()).slice(-2)},a:function(){return r.getHours()>11?"pm":"am"},A:function(){return String(n.a()).toUpperCase()},B:function(){const e=3600*r.getUTCHours(),t=60*r.getUTCMinutes(),n=r.getUTCSeconds();return s(Math.floor((e+t+n+3600)/86.4)%1e3,3)},g:function(){return Number(n.G())%12||12},G:function(){return r.getHours()},h:function(){return s(n.g(),2)},H:function(){return s(n.G(),2)},i:function(){return s(r.getMinutes(),2)},s:function(){return s(r.getSeconds(),2)},u:function(){return s(1e3*r.getMilliseconds(),6)},e:function(){throw new Error("Not supported (see source code of date() for timezone on how to add support)")},I:function(){const e=new Date(Number(n.Y()),0),t=Date.UTC(Number(n.Y()),0),r=new Date(Number(n.Y()),6),i=Date.UTC(Number(n.Y()),6);return e.getTime()-t!==r.getTime()-i?1:0},O:function(){const e=r.getTimezoneOffset(),t=Math.abs(e);return(e>0?"-":"+")+s(100*Math.floor(t/60)+t%60,4)},P:function(){const e=String(n.O());return e.slice(0,3)+":"+e.slice(3,5)},T:function(){return"UTC"},Z:function(){return 60*-r.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(a,o)},r:function(){return"D, d M Y H:i:s O".replace(a,o)},U:function(){return r.getTime()/1e3|0}},l=e,r=void 0===(c=t)?/* @__PURE__ */new Date:c instanceof Date?new Date(c):/* @__PURE__ */new Date(1e3*Number(c)),l.replace(a,o);var l,c}}),To=/* @__PURE__ */q(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolval=function(e){return!1!==e&&0!==e&&0!==e&&""!==e&&"0"!==e&&(!Array.isArray(e)||0!==e.length)&&null!=e}}),Co=/* @__PURE__ */q((e,t)=>{t.exports=function(e){const{sprintf:t}=fo(),{vsprintf:n}=mo(),{strip_tags:r}=yo(),{round:i}=xo(),{min:a}=wo(),{max:o}=ko(),{strtotime:s}=So(),{date:l}=No(),{boolval:c}=To();return e.lib={},e.lib.sprintf=t,e.lib.vsprintf=n,e.lib.round=i,e.lib.max=o,e.lib.min=a,e.lib.stripTags=r,e.lib.strtotime=s,e.lib.date=l,e.lib.boolval=c,e.lib.is=function(e,t){if(null==t)return!1;switch(e){case"Array":return Array.isArray(t);case"Date":return t instanceof Date;case"String":return"string"==typeof t||t instanceof String;case"Number":return"number"==typeof t||t instanceof Number;case"Function":return"function"==typeof t;case"Object":return t instanceof Object;default:return!1}},e.lib.replaceAll=function(e,t,n){const r="string"==typeof e?e:e.toString(),i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return r.replace(new RegExp(i,"g"),n)},e.lib.chunkArray=function(e,t){const n=[];let r=0;const i=e.length;if(t<1||!Array.isArray(e))return[];for(;r<i;)n.push(e.slice(r,r+=t));return n},e}}),Eo=/* @__PURE__ */q((e,t)=>{t.exports=function(e){e.Templates.registerLoader("ajax",function(t,n,r,i){let a;const{precompiled:o}=n,s=this.parsers[n.parser]||this.parser.twig;if("undefined"==typeof XMLHttpRequest)throw new e.Error('Unsupported platform: Unable to do ajax requests because there is no "XMLHTTPRequest" implementation');const l=new XMLHttpRequest;return l.onreadystatechange=function(){let c=null;4===l.readyState&&(200===l.status||window.cordova&&0===l.status?(e.log.debug("Got template ",l.responseText),c=!0===o?JSON.parse(l.responseText):l.responseText,n.url=t,n.data=c,a=s.call(this,n),"function"==typeof r&&r(a)):"function"==typeof i&&i(l))},l.open("GET",t,Boolean(n.async)),l.overrideMimeType("text/plain"),l.send(),!!n.async||a})}}),_o=/* @__PURE__ */q((e,t)=>{t.exports={}}),Oo=/* @__PURE__ */q((e,t)=>{t.exports=function(e){let t,n;try{t=_o(),n=_o()}catch(r){}e.Templates.registerLoader("fs",function(i,a,o,s){let l,c=null;const{precompiled:u}=a,d=this.parsers[a.parser]||this.parser.twig;if(!t||!n)throw new e.Error('Unsupported platform: Unable to load from file because there is no "fs" or "path" implementation');const p=function(e,t){e?"function"==typeof s&&s(e):(!0===u&&(t=JSON.parse(t)),a.data=t,a.path=a.path||i,l=d.call(this,a),"function"==typeof o&&o(l))};if(a.path=a.path||i,a.async)return t.stat(a.path,(n,r)=>{!n&&r.isFile()?t.readFile(a.path,"utf8",p):"function"==typeof s&&s(new e.Error("Unable to find template file "+a.path))}),!0;try{if(!t.statSync(a.path).isFile())throw new e.Error("Unable to find template file "+a.path)}catch(r){throw new e.Error("Unable to find template file "+a.path+". "+r)}return c=t.readFileSync(a.path,"utf8"),p(void 0,c),l})}}),Ao=/* @__PURE__ */q((e,t)=>{t.exports=function(e){for(e.logic={},e.logic.type={if_:"Twig.logic.type.if",endif:"Twig.logic.type.endif",for_:"Twig.logic.type.for",endfor:"Twig.logic.type.endfor",else_:"Twig.logic.type.else",elseif:"Twig.logic.type.elseif",set:"Twig.logic.type.set",setcapture:"Twig.logic.type.setcapture",endset:"Twig.logic.type.endset",filter:"Twig.logic.type.filter",endfilter:"Twig.logic.type.endfilter",apply:"Twig.logic.type.apply",endapply:"Twig.logic.type.endapply",do:"Twig.logic.type.do",shortblock:"Twig.logic.type.shortblock",block:"Twig.logic.type.block",endblock:"Twig.logic.type.endblock",extends_:"Twig.logic.type.extends",use:"Twig.logic.type.use",include:"Twig.logic.type.include",spaceless:"Twig.logic.type.spaceless",endspaceless:"Twig.logic.type.endspaceless",macro:"Twig.logic.type.macro",endmacro:"Twig.logic.type.endmacro",import_:"Twig.logic.type.import",from:"Twig.logic.type.from",embed:"Twig.logic.type.embed",endembed:"Twig.logic.type.endembed",with:"Twig.logic.type.with",endwith:"Twig.logic.type.endwith",deprecated:"Twig.logic.type.deprecated"},e.logic.definitions=[{type:e.logic.type.if_,regex:/^if\s?([\s\S]+)$/,next:[e.logic.type.else_,e.logic.type.elseif,e.logic.type.endif],open:!0,compile(t){const n=t.match[1];return t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,delete t.match,t},parse(t,n,r){const i=this;return e.expression.parseAsync.call(i,t.stack,n).then(a=>(r=!0,e.lib.boolval(a)?(r=!1,i.parseAsync(t.output,n)):"")).then(e=>({chain:r,output:e}))}},{type:e.logic.type.elseif,regex:/^elseif\s*([^\s].*)$/,next:[e.logic.type.else_,e.logic.type.elseif,e.logic.type.endif],open:!1,compile(t){const n=t.match[1];return t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,delete t.match,t},parse(t,n,r){const i=this;return e.expression.parseAsync.call(i,t.stack,n).then(a=>r&&e.lib.boolval(a)?(r=!1,i.parseAsync(t.output,n)):"").then(e=>({chain:r,output:e}))}},{type:e.logic.type.else_,regex:/^else$/,next:[e.logic.type.endif,e.logic.type.endfor],open:!1,parse(t,n,r){let i=e.Promise.resolve("");return r&&(i=this.parseAsync(t.output,n)),i.then(e=>({chain:r,output:e}))}},{type:e.logic.type.endif,regex:/^endif$/,next:[],open:!1},{type:e.logic.type.for_,regex:/^for\s+([a-zA-Z0-9_,\s]+)\s+in\s+([\S\s]+?)(?:\s+if\s+([^\s].*))?$/,next:[e.logic.type.else_,e.logic.type.endfor],open:!0,compile(t){const n=t.match[1],r=t.match[2],i=t.match[3];let a=null;if(t.keyVar=null,t.valueVar=null,n.includes(",")){if(a=n.split(","),2!==a.length)throw new e.Error("Invalid expression in for loop: "+n);t.keyVar=a[0].trim(),t.valueVar=a[1].trim()}else t.valueVar=n.trim();return t.expression=e.expression.compile.call(this,{type:e.expression.type.expression,value:r}).stack,i&&(t.conditional=e.expression.compile.call(this,{type:e.expression.type.expression,value:i}).stack),delete t.match,t},parse(t,n,r){const i=[];let a,o,s=0;const l=this,{conditional:c}=t,u=function(r,o){const u={...n};return u[t.valueVar]=o,t.keyVar&&(u[t.keyVar]=r),u.loop=function(e,t){const r=void 0!==c;return{index:e+1,index0:e,revindex:r?void 0:t-e,revindex0:r?void 0:t-e-1,first:0===e,last:r?void 0:e===t-1,length:r?void 0:t,parent:n}}(s,a),(void 0===c?e.Promise.resolve(!0):e.expression.parseAsync.call(l,c,u)).then(e=>{if(e)return l.parseAsync(t.output,u).then(e=>{i.push(e),s+=1})}).then(()=>{delete u.loop,delete u[t.valueVar],delete u[t.keyVar],e.merge(n,u,!0)})};return e.expression.parseAsync.call(l,t.expression,n).then(t=>Array.isArray(t)?(a=t.length,e.async.forEach(t,e=>u(s,e))):e.lib.is("Object",t)?(o=void 0===t._keys?Object.keys(t):t._keys,a=o.length,e.async.forEach(o,e=>{if("_keys"!==e)return u(e,t[e])})):void 0).then(()=>({chain:0===i.length,context:n,output:e.output.call(l.template,i)}))}},{type:e.logic.type.endfor,regex:/^endfor$/,next:[],open:!1},{type:e.logic.type.set,regex:/^set\s+([a-zA-Z0-9_,\s]+)\s*=\s*([\s\S]+)$/,next:[],open:!0,compile(t){const n=t.match[1].trim(),r=t.match[2],i=e.expression.compile.call(this,{type:e.expression.type.expression,value:r}).stack;return t.key=n,t.expression=i,delete t.match,t},parse(t,n,r){const{key:i}=t;return e.expression.parseAsync.call(this,t.expression,n).then(e=>(e===n&&(e={...e}),n[i]=e,{chain:r,context:n}))}},{type:e.logic.type.setcapture,regex:/^set\s+([a-zA-Z0-9_,\s]+)$/,next:[e.logic.type.endset],open:!0,compile:e=>(e.key=e.match[1].trim(),delete e.match,e),parse(e,t,n){const r=this,{key:i}=e;return r.parseAsync(e.output,t).then(e=>(r.context[i]=e,t[i]=e,{chain:n,context:t}))}},{type:e.logic.type.endset,regex:/^endset$/,next:[],open:!1},{type:e.logic.type.filter,regex:/^filter\s+(.+)$/,next:[e.logic.type.endfilter],open:!0,compile(t){const n="|"+t.match[1].trim();return t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,delete t.match,t},parse(t,n,r){const i=this;return i.parseAsync(t.output,n).then(r=>{const a=[{type:e.expression.type.string,value:r}].concat(t.stack);return e.expression.parseAsync.call(i,a,n)}).then(e=>({chain:r,output:e}))}},{type:e.logic.type.endfilter,regex:/^endfilter$/,next:[],open:!1},{type:e.logic.type.apply,regex:/^apply\s+(.+)$/,next:[e.logic.type.endapply],open:!0,compile(t){const n="|"+t.match[1].trim();return t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,delete t.match,t},parse(t,n,r){const i=this;return i.parseAsync(t.output,n).then(r=>{const a=[{type:e.expression.type.string,value:r}].concat(t.stack);return e.expression.parseAsync.call(i,a,n)}).then(e=>({chain:r,output:e}))}},{type:e.logic.type.endapply,regex:/^endapply$/,next:[],open:!1},{type:e.logic.type.do,regex:/^do\s+([\S\s]+)$/,next:[],open:!0,compile(t){const n=t.match[1];return t.expression=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,delete t.match,t},parse(t,n,r){return e.expression.parseAsync.call(this,t.expression,n).then(()=>({chain:r,context:n}))}},{type:e.logic.type.block,regex:/^block\s+(\w+)$/,next:[e.logic.type.endblock],open:!0,compile:e=>(e.blockName=e.match[1].trim(),delete e.match,e),parse(t,n,r){const i=this;let a=e.Promise.resolve();return i.template.blocks.defined[t.blockName]=new e.Block(i.template,t),(null===i.template.parentTemplate||i.template.parentTemplate instanceof e.Template)&&(a=i.getBlock(t.blockName).render(i,n)),a.then(e=>({chain:r,output:e}))}},{type:e.logic.type.shortblock,regex:/^block\s+(\w+)\s+(.+)$/,next:[],open:!0,compile(t){return t.expression=t.match[2].trim(),t.output=e.expression.compile({type:e.expression.type.expression,value:t.expression}).stack,e.logic.handler[e.logic.type.block].compile.apply(this,[t])},parse(...t){return e.logic.handler[e.logic.type.block].parse.apply(this,t)}},{type:e.logic.type.endblock,regex:/^endblock(?:\s+(\w+))?$/,next:[],open:!1},{type:e.logic.type.extends_,regex:/^extends\s+(.+)$/,next:[],open:!0,compile(t){const n=t.match[1].trim();return delete t.match,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,t},parse(t,n,r){const i=this;return e.expression.parseAsync.call(i,t.stack,n).then(e=>{if(Array.isArray(e)){const t=e.reverse().reduce((e,t)=>{try{return{render:i.template.importFile(t),fileName:t}}catch(n){return e}},{render:null,fileName:null});null!==t.fileName&&(i.template.parentTemplate=t.fileName)}else i.template.parentTemplate=e;return{chain:r,output:""}})}},{type:e.logic.type.use,regex:/^use\s+(.+)$/,next:[],open:!0,compile(t){const n=t.match[1].trim();return delete t.match,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,t},parse(t,n,r){const i=this;return e.expression.parseAsync.call(i,t.stack,n).then(t=>{const n=i.template.importFile(t),r=new e.ParseState(n);return r.parseAsync(n.tokens).then(()=>{i.template.blocks.imported={...i.template.blocks.imported,...r.getBlocks()}})}).then(()=>({chain:r,output:""}))}},{type:e.logic.type.include,regex:/^include\s+(.+?)(?:\s|$)(ignore missing(?:\s|$))?(?:with\s+([\S\s]+?))?(?:\s|$)(only)?$/,next:[],open:!0,compile(t){const{match:n}=t,r=n[1].trim(),i=void 0!==n[2],a=n[3],o=void 0!==n[4]&&n[4].length;return delete t.match,t.only=o,t.ignoreMissing=i,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:r}).stack,void 0!==a&&(t.withStack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a.trim()}).stack),t},parse(t,n,r){let i=t.only?{}:{...n};const{ignoreMissing:a}=t,o=this;let s=null;const l={chain:r,output:""};return s=void 0===t.withStack?e.Promise.resolve():e.expression.parseAsync.call(o,t.withStack,n).then(e=>{i={...i,...e}}),s.then(()=>e.expression.parseAsync.call(o,t.stack,n)).then(t=>{let n;n=Array.isArray(t)?t:[t];const r=n.reduce((t,n)=>{if(null===t.render){if(n instanceof e.Template)return{render:n.renderAsync(i,{isInclude:!0}),lastError:null};try{return{render:o.template.importFile(n).renderAsync(i,{isInclude:!0}),lastError:null}}catch(r){return{render:null,lastError:r}}}return t},{render:null,lastError:null});if(null!==r.render)return r.render;if(null===r.render&&a)return"";throw r.lastError}).then(e=>(""!==e&&(l.output=e),l))}},{type:e.logic.type.spaceless,regex:/^spaceless$/,next:[e.logic.type.endspaceless],open:!0,parse(t,n,r){return this.parseAsync(t.output,n).then(t=>{let n=t.replace(/>\s+</g,"><").trim();return n=new e.Markup(n),{chain:r,output:n}})}},{type:e.logic.type.endspaceless,regex:/^endspaceless$/,next:[],open:!1},{type:e.logic.type.macro,regex:/^macro\s+(\w+)\s*\(\s*((?:\w+(?:\s*=\s*([\s\S]+))?(?:,\s*)?)*)\s*\)$/,next:[e.logic.type.endmacro],open:!0,compile(t){const n=t.match[1],r=t.match[2].split(/\s*,\s*/),i=r.map(e=>e.split(/\s*=\s*/)[0]),a=i.length;if(a>1){const t={};for(let n=0;n<a;n++){const r=i[n];if(t[r])throw new e.Error("Duplicate arguments for parameter: "+r);t[r]=1}}return t.macroName=n,t.parameters=i,t.defaults=r.reduce(function(t,n){const r=n.split(/\s*=\s*/),i=r[0],a=r[1];return t[i]=a?e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack:void 0,t},{}),delete t.match,t},parse(t,n,r){const i=this;return i.macros[t.macroName]=function(...r){const a={...i.context,_self:i.macros};return e.async.forEach(t.parameters,function(i,o){return void 0!==r[o]?(a[i]=r[o],!0):void 0!==t.defaults[i]?e.expression.parseAsync.call(this,t.defaults[i],n).then(t=>(a[i]=t,e.Promise.resolve())):(a[i]=void 0,!0)}).then(()=>i.parseAsync(t.output,a))},{chain:r,output:""}}},{type:e.logic.type.endmacro,regex:/^endmacro$/,next:[],open:!1},{type:e.logic.type.import_,regex:/^import\s+(.+)\s+as\s+(\w+)$/,next:[],open:!0,compile(t){const n=t.match[1].trim(),r=t.match[2].trim();return delete t.match,t.expression=n,t.contextName=r,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,t},parse(t,n,r){const i=this,a={chain:r,output:""};return"_self"===t.expression?(n[t.contextName]=i.macros,a):e.expression.parseAsync.call(i,t.stack,n).then(e=>i.template.importFile(e||t.expression)).then(r=>{const i=new e.ParseState(r);return i.parseAsync(r.tokens).then(()=>(n[t.contextName]=i.macros,a))})}},{type:e.logic.type.from,regex:/^from\s+(.+)\s+import\s+([a-zA-Z0-9_, ]+)$/,next:[],open:!0,compile(t){const n=t.match[1].trim(),r=t.match[2].trim().split(/\s*,\s*/),i={};for(const e of r){const t=e.match(/^(\w+)\s+as\s+(\w+)$/);t?i[t[1].trim()]=t[2].trim():e.match(/^(\w+)$/)&&(i[e]=e)}return delete t.match,t.expression=n,t.macroNames=i,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:n}).stack,t},parse(t,n,r){const i=this;let a;return a="_self"===t.expression?e.Promise.resolve(i.macros):e.expression.parseAsync.call(i,t.stack,n).then(e=>i.template.importFile(e||t.expression)).then(t=>{const n=new e.ParseState(t);return n.parseAsync(t.tokens).then(()=>n.macros)}),a.then(e=>{for(const r in t.macroNames)void 0!==e[r]&&(n[t.macroNames[r]]=e[r]);return{chain:r,output:""}})}},{type:e.logic.type.embed,regex:/^embed\s+(.+?)(?:\s+(ignore missing))?(?:\s+with\s+([\S\s]+?))?(?:\s+(only))?$/,next:[e.logic.type.endembed],open:!0,compile(t){const{match:n}=t,r=n[1].trim(),i=void 0!==n[2],a=n[3],o=void 0!==n[4]&&n[4].length;return delete t.match,t.only=o,t.ignoreMissing=i,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:r}).stack,void 0!==a&&(t.withStack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a.trim()}).stack),t},parse(t,n,r){let i={},a=e.Promise.resolve(),o=this;return t.only||(i={...n}),void 0!==t.withStack&&(a=e.expression.parseAsync.call(o,t.withStack,n).then(e=>{i={...i,...e}})),a.then(()=>e.expression.parseAsync.call(o,t.stack,i)).then(n=>{const r=new e.Template({data:t.output,base:o.template.base,path:o.template.path,url:o.template.url,name:o.template.name,method:o.template.method,options:o.template.options});try{r.importFile(n)}catch(a){if(t.ignoreMissing)return"";throw o=null,a}return r.parentTemplate=n,r.renderAsync(i,{isInclude:!0})}).then(e=>({chain:r,output:e}))}},{type:e.logic.type.endembed,regex:/^endembed$/,next:[],open:!1},{type:e.logic.type.with,regex:/^(?:with(?:\s+([\S\s]+?))?)(?:\s|$)(only)?$/,next:[e.logic.type.endwith],open:!0,compile(t){const{match:n}=t,r=n[1],i=void 0!==n[2]&&n[2].length;return delete t.match,t.only=i,void 0!==r&&(t.withStack=e.expression.compile.call(this,{type:e.expression.type.expression,value:r.trim()}).stack),t},parse(t,n,r){let i,a={},o=e.Promise.resolve();t.only||(a={...n}),void 0!==t.withStack&&(o=e.expression.parseAsync.call(this,t.withStack,n).then(e=>{for(i in e)Object.hasOwnProperty.call(e,i)&&(a[i]=e[i])}));const s=new e.ParseState(this.template,void 0,a);return o.then(()=>s.parseAsync(t.output)).then(e=>({chain:r,output:e}))}},{type:e.logic.type.endwith,regex:/^endwith$/,next:[],open:!1},{type:e.logic.type.deprecated,regex:/^deprecated\s+(.+)$/,next:[],open:!0,compile:e=>e,parse:()=>({})}],e.logic.handler={},e.logic.extendType=function(t,n){n=n||"Twig.logic.type"+t,e.logic.type[t]=n},e.logic.extend=function(t){if(!t.type)throw new e.Error("Unable to extend logic definition. No type provided for "+t);e.logic.extendType(t.type),e.logic.handler[t.type]=t};e.logic.definitions.length>0;)e.logic.extend(e.logic.definitions.shift());return e.logic.compile=function(t){const n=t.value.trim();let r=e.logic.tokenize.call(this,n);const i=e.logic.handler[r.type];return i.compile&&(r=i.compile.call(this,r),e.log.trace("Twig.logic.compile: ","Compiled logic token to ",r)),r},e.logic.tokenize=function(t){let n=null,r=null,i=null,a=null,o=null,s=null,l=null;for(n in t=t.trim(),e.logic.handler)if(Object.hasOwnProperty.call(e.logic.handler,n))for(r=e.logic.handler[n].type,i=e.logic.handler[n].regex,a=i,Array.isArray(i)||(a=[i]),o=a.length,s=0;s<o;s++)if(l=a[s].exec(t),null!==l)return e.log.trace("Twig.logic.tokenize: ","Matched a ",r," regular expression of ",l),{type:r,match:l};throw new e.Error("Unable to parse '"+t.trim()+"'")},e.logic.parse=function(t,n,r,i){return e.async.potentiallyAsync(this,i,function(){e.log.debug("Twig.logic.parse: ","Parsing logic token ",t);const i=e.logic.handler[t.type];let a;const o=this;return i.parse?(o.nestingStack.unshift(t),a=i.parse.call(o,t,n||{},r),e.isPromise(a)?a=a.then(e=>(o.nestingStack.shift(),e)):o.nestingStack.shift(),a):""})},e}}),Io=/* @__PURE__ */q((e,t)=>{t.exports=function(e){e.Templates.registerParser("source",e=>e.data||"")}}),zo=/* @__PURE__ */q((e,t)=>{t.exports=function(e){e.Templates.registerParser("twig",t=>new e.Template(t))}}),Do=/* @__PURE__ */q((e,t)=>{t.exports=function(e){return e.path={},e.path.expandNamespace=function(e,t){const n=Object.keys(e),r=new RegExp(`^(?:@(${n.join("|")})/|(${n.join("|")})::)`);return t.replace(r,(t,n,r)=>`${e[void 0===n?r:n]}/`)},e.path.parsePath=function(t,n){const{namespaces:r}=t.options,i=n||"";let a=r&&"object"==typeof r?e.path.expandNamespace(r,i):i;return a===i&&(a=e.path.relativePath(t,i)),a},e.path.relativePath=function(t,n){let r,i,a="/";const o=[];let s,l=n||"";if(t.url)r=void 0===t.base?t.url:t.base.replace(/([^/])$/,"$1/");else if(t.path){const e=_o(),n=e.sep||a,i=new RegExp("^\\.{1,2}"+n.replace("\\","\\\\"));l=l.replace(/\//g,n),void 0!==t.base&&null===l.match(i)?(l=l.replace(t.base,""),r=t.base+n):r=e.normalize(t.path),r=r.replace(n+n,n),a=n}else{if(!t.name&&!t.id||!t.method||"fs"===t.method||"ajax"===t.method)throw new e.Error("Cannot extend an inline template.");r=t.base||t.name||t.id}for(i=r.split(a),i.pop(),i=i.concat(l.split(a));i.length>0;)s=i.shift(),"."===s||(".."===s&&o.length>0&&".."!==o[o.length-1]?o.pop():o.push(s));return o.join(a)},e}}),Po=/* @__PURE__ */q((e,t)=>{t.exports=function(e){return e.tests={empty(e){if(!0===e)return!1;if(null==e)return!0;if("number"==typeof e)return!1;if(e.length>0)return!1;for(const t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0},odd:e=>e%2==1,even:e=>e%2==0,"divisible by":(e,t)=>e%t[0]===0,divisibleby:(t,n)=>e.tests["divisible by"](t,n),defined:e=>void 0!==e,none:e=>null===e,null(e){return this.none(e)},"same as":(e,t)=>e===t[0],sameas:(t,n)=>e.tests["same as"](t,n),iterable:t=>t&&(e.lib.is("Array",t)||e.lib.is("Object",t))},e.test=function(t,n,r){if(!e.tests[t])throw e.Error("Test "+t+" is not defined.");return e.tests[t](n,r)},e.test.extend=function(t,n){e.tests[t]=n},e}}),Mo=/* @__PURE__ */q((e,t)=>{t.exports=function(e){return e.ParseState.prototype.parseAsync=function(e,t){return this.parse(e,t,!0)},e.expression.parseAsync=function(t,n,r){return e.expression.parse.call(this,t,n,r,!0)},e.logic.parseAsync=function(t,n,r){return e.logic.parse.call(this,t,n,r,!0)},e.Template.prototype.renderAsync=function(e,t){return this.render(e,t,!0)},e.async={},e.isPromise=function(e){return e&&e.then&&"function"==typeof e.then},e.async.potentiallyAsync=function(t,n,r){return n?e.Promise.resolve(r.call(t)):function(t,n,r){let i=r.call(t),a=null,o=!0;if(!e.isPromise(i))return i;if(i.then(e=>{i=e,o=!1}).catch(e=>{a=e}),null!==a)throw a;if(o)throw new e.Error("You are using Twig.js in sync mode in combination with async extensions.");return i}(t,0,r)},e.Thenable=function(e,t,n){this.then=e,this._value=n?t:null,this._state=n||0},e.Thenable.prototype.catch=function(e){return 1===this._state?this:this.then(null,e)},e.Thenable.resolvedThen=function(t){try{return e.Promise.resolve(t(this._value))}catch(n){return e.Promise.reject(n)}},e.Thenable.rejectedThen=function(t,n){if(!n||"function"!=typeof n)return this;const r=this._value;let i;try{i=n(r)}catch(a){i=e.Promise.reject(a)}return e.Promise.resolve(i)},e.Promise=function(t){let n=0,r=null,i=function(e,t){n=e,r=t};return function(e,t,n){try{e(function(e){i(1,e)},n)}catch(r){n(r)}}(t,0,function(e){i(2,e)}),1===n?e.Promise.resolve(r):2===n?e.Promise.reject(r):(i=new e.FullPromise,i.promise)},e.FullPromise=function(){let t=null;function n(e){e(o._value)}function r(e,t){t(o._value)}let i=function(e,n){t=function(e,t,n){const r=[t,n,-2];return e?-2===e[2]?e=[e,r]:e.push(r):e=r,e}(t,e,n)};function a(e,a){if(!o._state&&(o._value=a,o._state=e,i=1===e?n:r,t)){if(-2===t[2])return i(t[0],t[1]),void(t=null);t.forEach(e=>{i(e[0],e[1])}),t=null}}const o=new e.Thenable((t,n)=>{const r="function"==typeof t;if(1===o._state&&!r)return e.Promise.resolve(o._value);if(1===o._state)try{return e.Promise.resolve(t(o._value))}catch(s){return e.Promise.reject(s)}const a="function"==typeof n;return new e.Promise((e,o)=>{i(r?n=>{try{e(t(n))}catch(s){o(s)}}:e,a?t=>{try{e(n(t))}catch(s){o(s)}}:o)})});return a.promise=o,a},e.Promise.defaultResolved=new e.Thenable(e.Thenable.resolvedThen,void 0,1),e.Promise.emptyStringResolved=new e.Thenable(e.Thenable.resolvedThen,"",1),e.Promise.resolve=function(t){return 0===arguments.length||void 0===t?e.Promise.defaultResolved:e.isPromise(t)?t:""===t?e.Promise.emptyStringResolved:new e.Thenable(e.Thenable.resolvedThen,t,1)},e.Promise.reject=function(t){return new e.Thenable(e.Thenable.rejectedThen,t,2)},e.Promise.all=function(t){const n=new Array(t.length);return e.async.forEach(t,(t,r)=>{if(e.isPromise(t)){if(1!==t._state)return t.then(e=>{n[r]=e});n[r]=t._value}else n[r]=t}).then(()=>n)},e.async.forEach=function(t,n){const r=t?t.length:0;let i=0;return function a(){let o=null;do{if(i===r)return e.Promise.resolve();o=n(t[i],i),i++}while(!o||!e.isPromise(o)||1===o._state);return o.then(a)}()},e}}),jo=/* @__PURE__ */q((e,t)=>{t.exports=function(e){return e.exports={VERSION:e.VERSION},e.exports.twig=function(t){const{id:n}=t,r={strictVariables:t.strict_variables||!1,autoescape:null!==t.autoescape&&t.autoescape||!1,allowInlineIncludes:t.allowInlineIncludes||!1,rethrow:t.rethrow||!1,namespaces:t.namespaces};if(e.cache&&n&&e.validateId(n),void 0!==t.debug&&(e.debug=t.debug),void 0!==t.trace&&(e.trace=t.trace),void 0!==t.data)return e.Templates.parsers.twig({data:t.data,path:Object.hasOwnProperty.call(t,"path")?t.path:void 0,module:t.module,id:n,options:r});if(void 0!==t.ref){if(void 0!==t.id)throw new e.Error("Both ref and id cannot be set on a twig.js template.");return e.Templates.load(t.ref)}if(void 0!==t.method){if(!e.Templates.isRegisteredLoader(t.method))throw new e.Error('Loader for "'+t.method+'" is not defined.');return e.Templates.loadRemote(t.name||t.href||t.path||n||void 0,{id:n,method:t.method,parser:t.parser||"twig",base:t.base,module:t.module,precompiled:t.precompiled,async:t.async,options:r},t.load,t.error)}return void 0!==t.href?e.Templates.loadRemote(t.href,{id:n,method:"ajax",parser:t.parser||"twig",base:t.base,module:t.module,precompiled:t.precompiled,async:t.async,options:r},t.load,t.error):void 0!==t.path?e.Templates.loadRemote(t.path,{id:n,method:"fs",parser:t.parser||"twig",base:t.base,module:t.module,precompiled:t.precompiled,async:t.async,options:r},t.load,t.error):void 0},e.exports.extendFilter=function(t,n){e.filter.extend(t,n)},e.exports.extendFunction=function(t,n){e._function.extend(t,n)},e.exports.extendTest=function(t,n){e.test.extend(t,n)},e.exports.extendTag=function(t){e.logic.extend(t)},e.exports.extend=function(t){t(e)},e.exports.compile=function(t,n){const r=n.filename,i=n.filename,a=new e.Template({data:t,path:i,id:r,options:n.settings["twig options"]});return function(e){return a.render(e)}},e.exports.renderFile=function(t,n,r){"function"==typeof n&&(r=n,n={});const i=(n=n||{}).settings||{},a=i["twig options"],o={path:t,base:i.views,load(e){a&&a.allowAsync?e.renderAsync(n).then(e=>r(null,e),r):r(null,String(e.render(n)))},error(e){r(e)}};if(a)for(const e in a)Object.hasOwnProperty.call(a,e)&&(o[e]=a[e]);e.exports.twig(o)},e.exports.__express=e.exports.renderFile,e.exports.cache=function(t){e.cache=t},e.exports.path=e.path,e.exports.filters=e.filters,e.exports.tests=e.tests,e.exports.functions=e.functions,e.exports.Promise=e.Promise,e}}),Ro=/* @__PURE__ */q((e,t)=>{t.exports=function e(){const t={VERSION:"3.0.0"};return so()(t),lo()(t),uo()(t),po()(t),ho()(t),Co()(t),Eo()(t),Oo()(t),Ao()(t),Io()(t),zo()(t),Do()(t),Po()(t),Mo()(t),jo()(t),t.exports.factory=e,t.exports}}),Lo=/* @__PURE__ */B(/* @__PURE__ */q((e,t)=>{t.exports=Ro()()})(),1);Lo.default.extendFilter("object_as_json",e=>"object"==typeof e?JSON.stringify(e):e);var Fo="{{\\s*(?<token>[a-zA-Z_][a-zA-Z0-9_]*(?:\\??\\.[a-zA-Z_][a-zA-Z0-9_]*)*)[^}]*}}",$o=new RegExp(Fo,"g"),qo=RegExp(`^${Fo}$`),Vo=(e,t=!1)=>{if("string"!=typeof e)return!1;let n=t?qo:$o;return n.lastIndex=0,n.test(e.trim())},Bo=(e,t={},n=!1,r=!1)=>{if("string"!=typeof e||!Vo(e))return e;try{$o.lastIndex=0;let i=e;n&&[...i.matchAll($o)].forEach(e=>{e.groups&&(i=i.replace(e[0],`{{ ${e.groups.token} | default('${e[0]}') }}`))}),r&&[...i.matchAll($o)].forEach(e=>{e.groups&&(i=i.replace(e[0],`{{ ${e.groups.token} | object_as_json }}`))}),"variables"in t&&(t={...t,...t.variables});let a=Lo.default.twig({data:i}).render(t);if(!r)return a;try{return JSON.parse(a)||a}catch{return a}}catch{return e}};function Uo(e){return Ho(e,[])}function Ho(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:Ho(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let a=0;a<n;++a)i.push(Ho(e[a],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+Ho(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function Wo(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}var Yo=/\r\n|[\n\r]/g;function Go(e,t){let n=0,r=1;for(const i of e.body.matchAll(Yo)){if("number"!=typeof i.index&&Wo(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Qo(e){return Jo(e.source,Go(e.source,e.start))}function Jo(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,l=t.column+s,c=`${e.name}:${o}:${l}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let r=0;r<d.length;r+=80)n.push(d.slice(r,r+80));return c+Ko([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return c+Ko([[o-1+" |",u[i-1]],[`${o} |`,d],["|","^".padStart(l)],[`${o+1} |`,u[i+1]]])}function Ko(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}var Xo=class e extends Error{constructor(t,n={}){const{nodes:r,source:i,positions:a,path:o,originalError:s,cause:l,extensions:c}=n,u="cause"in n;super(t,u||null!=s?{cause:u?l:s}:void 0),this.name="GraphQLError",this.path=o??void 0;const d=s??(l instanceof Error?l:void 0);this.originalError=d,this.nodes=Zo(Array.isArray(r)?r:r?[r]:void 0);const p=Zo(this.nodes?.map(e=>e.loc).filter(e=>null!=e));this.source=i??p?.[0]?.source,this.positions=a??p?.map(e=>e.start),this.locations=a&&i?a.map(e=>Go(i,e)):p?.map(e=>Go(e.source,e.start));const h=(f=d?.extensions,"object"==typeof f&&null!==f?d.extensions:void 0);var f;this.extensions=c??h??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s?.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):null!=Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Qo(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Jo(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function Zo(e){return void 0===e||0===e.length?void 0:e}var es=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},ts=class{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},ns={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentArgument:["name","value"],FragmentSpread:["name","arguments","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},rs=new Set(Object.keys(ns));function is(e){const t=e?.kind;return"string"==typeof t&&rs.has(t)}var as="query",os="mutation",ss="subscription",ls=/* @__PURE__ */V({ARGUMENT:()=>ms,ARGUMENT_COORDINATE:()=>nl,BOOLEAN:()=>Ns,DIRECTIVE:()=>As,DIRECTIVE_ARGUMENT_COORDINATE:()=>il,DIRECTIVE_COORDINATE:()=>rl,DIRECTIVE_DEFINITION:()=>Hs,DIRECTIVE_EXTENSION:()=>Ys,DOCUMENT:()=>us,ENUM:()=>Cs,ENUM_TYPE_DEFINITION:()=>Vs,ENUM_TYPE_EXTENSION:()=>Xs,ENUM_VALUE_DEFINITION:()=>Bs,FIELD:()=>fs,FIELD_DEFINITION:()=>Ls,FLOAT:()=>ks,FRAGMENT_ARGUMENT:()=>gs,FRAGMENT_DEFINITION:()=>vs,FRAGMENT_SPREAD:()=>ys,INLINE_FRAGMENT:()=>bs,INPUT_OBJECT_TYPE_DEFINITION:()=>Us,INPUT_OBJECT_TYPE_EXTENSION:()=>Zs,INPUT_VALUE_DEFINITION:()=>Fs,INT:()=>ws,INTERFACE_TYPE_DEFINITION:()=>$s,INTERFACE_TYPE_EXTENSION:()=>Js,LIST:()=>Es,LIST_TYPE:()=>zs,MEMBER_COORDINATE:()=>tl,NAME:()=>cs,NAMED_TYPE:()=>Is,NON_NULL_TYPE:()=>Ds,NULL:()=>Ts,OBJECT:()=>_s,OBJECT_FIELD:()=>Os,OBJECT_TYPE_DEFINITION:()=>Rs,OBJECT_TYPE_EXTENSION:()=>Qs,OPERATION_DEFINITION:()=>ds,OPERATION_TYPE_DEFINITION:()=>Ms,SCALAR_TYPE_DEFINITION:()=>js,SCALAR_TYPE_EXTENSION:()=>Gs,SCHEMA_DEFINITION:()=>Ps,SCHEMA_EXTENSION:()=>Ws,SELECTION_SET:()=>hs,STRING:()=>Ss,TYPE_COORDINATE:()=>el,UNION_TYPE_DEFINITION:()=>qs,UNION_TYPE_EXTENSION:()=>Ks,VARIABLE:()=>xs,VARIABLE_DEFINITION:()=>ps}),cs="Name",us="Document",ds="OperationDefinition",ps="VariableDefinition",hs="SelectionSet",fs="Field",ms="Argument",gs="FragmentArgument",ys="FragmentSpread",bs="InlineFragment",vs="FragmentDefinition",xs="Variable",ws="IntValue",ks="FloatValue",Ss="StringValue",Ns="BooleanValue",Ts="NullValue",Cs="EnumValue",Es="ListValue",_s="ObjectValue",Os="ObjectField",As="Directive",Is="NamedType",zs="ListType",Ds="NonNullType",Ps="SchemaDefinition",Ms="OperationTypeDefinition",js="ScalarTypeDefinition",Rs="ObjectTypeDefinition",Ls="FieldDefinition",Fs="InputValueDefinition",$s="InterfaceTypeDefinition",qs="UnionTypeDefinition",Vs="EnumTypeDefinition",Bs="EnumValueDefinition",Us="InputObjectTypeDefinition",Hs="DirectiveDefinition",Ws="SchemaExtension",Ys="DirectiveExtension",Gs="ScalarTypeExtension",Qs="ObjectTypeExtension",Js="InterfaceTypeExtension",Ks="UnionTypeExtension",Xs="EnumTypeExtension",Zs="InputObjectTypeExtension",el="TypeCoordinate",tl="MemberCoordinate",nl="ArgumentCoordinate",rl="DirectiveCoordinate",il="DirectiveArgumentCoordinate";function al(e,t){if(!e)throw new Error(t)}function ol(e){return 9===e||32===e}function sl(e){return e>=48&&e<=57}function ll(e){return e>=97&&e<=122||e>=65&&e<=90}function cl(e){return ll(e)||95===e}function ul(e){return ll(e)||sl(e)||95===e}function dl(e){let t=Number.MAX_SAFE_INTEGER,n=null,r=-1;for(let i=0;i<e.length;++i){const a=e[i],o=pl(a);o!==a.length&&(n??=i,r=i,0!==i&&o<t&&(t=o))}return e.map((e,n)=>0===n?e:e.slice(t)).slice(n??0,r+1)}function pl(e){let t=0;for(;t<e.length&&ol(e.charCodeAt(t));)++t;return t}var hl=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function fl(e){return ml[e.charCodeAt(0)]}var ml=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],gl=Object.freeze({});function yl(e,t,n=ns){const r=/* @__PURE__ */new Map;for(const f of Object.values(ls))r.set(f,bl(t,f));let i,a,o,s=Array.isArray(e),l=[e],c=-1,u=[],d=e;const p=[],h=[];do{c++;const e=c===l.length,f=e&&0!==u.length;if(e){if(a=0===h.length?void 0:p[p.length-1],d=o,o=h.pop(),f)if(s){d=d.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d={...d};for(const[e,t]of u)d[e]=t}c=i.index,l=i.keys,u=i.edits,s=i.inArray,i=i.prev}else if(null!=o){if(a=s?c:l[c],d=o[a],null==d)continue;p.push(a)}let m;if(!Array.isArray(d)){if(is(d)||al(!1,`Invalid AST Node: ${Uo(d)}.`),m=(e?r.get(d.kind)?.leave:r.get(d.kind)?.enter)?.call(t,d,a,o,p,h),m===gl)break;if(!1===m){if(!e){p.pop();continue}}else if(void 0!==m&&(u.push([a,m]),!e)){if(!is(m)){p.pop();continue}d=m}}void 0===m&&f&&u.push([a,d]),e?p.pop():(i={inArray:s,index:c,keys:l,edits:u,prev:i},s=Array.isArray(d),l=s?d:n[d.kind]??[],c=-1,u=[],null!=o&&h.push(o),o=d)}while(void 0!==i);return 0!==u.length?u.at(-1)[1]:e}function bl(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var vl={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>xl(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Nl(e.variableDefinitions)?kl("(\n",xl(e.variableDefinitions,"\n"),"\n)"):kl("(",xl(e.variableDefinitions,", "),")"),n=kl("",e.description,"\n")+xl([e.operation,xl([e.name,t]),xl(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>kl("",i,"\n")+e+": "+t+kl(" = ",n)+kl(" ",xl(r," "))},SelectionSet:{leave:({selections:e})=>wl(e)},Field:{leave:({alias:e,name:t,arguments:n,directives:r,selectionSet:i})=>xl([Tl(xl([kl("",e,": "),t],""),n),kl(" ",xl(r," ")),kl(" ",i)])},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentArgument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,arguments:t,directives:n})=>Tl("..."+e,t)+kl(" ",xl(n," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>xl(["...",kl("on ",e),xl(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:a})=>kl("",a,"\n")+`fragment ${e}${kl("(",xl(n,", "),")")} on ${t} ${kl("",xl(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>!0===t?function(e){const t=e.replaceAll('"""','\\"""'),n=t.split(/\r\n|[\n\r]/g),r=1===n.length,i=n.length>1&&n.slice(1).every(e=>0===e.length||ol(e.charCodeAt(0))),a=t.endsWith('\\"""'),o=e.endsWith('"')&&!a,s=e.endsWith("\\"),l=o||s,c=!r||e.length>70||l||i||a;let u="";const d=r&&ol(e.charCodeAt(0));return(c&&!d||i)&&(u+="\n"),u+=t,(c||l)&&(u+="\n"),'"""'+u+'"""'}(e):`"${e.replace(hl,fl)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>{const t="["+xl(e,", ")+"]";return t.length>80?"[\n"+Sl(xl(e,"\n"))+"\n]":t}},ObjectValue:{leave:({fields:e})=>{const t="{ "+xl(e,", ")+" }";return t.length>80?wl(e):t}},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+kl("(",xl(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>kl("",e,"\n")+xl(["schema",xl(t," "),wl(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>kl("",e,"\n")+xl(["scalar",t,xl(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>kl("",e,"\n")+xl(["type",t,kl("implements ",xl(n," & ")),xl(r," "),wl(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>kl("",e,"\n")+t+(Nl(n)?kl("(\n",Sl(xl(n,"\n")),"\n)"):kl("(",xl(n,", "),")"))+": "+r+kl(" ",xl(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>kl("",e,"\n")+xl([t+": "+n,kl("= ",r),xl(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>kl("",e,"\n")+xl(["interface",t,kl("implements ",xl(n," & ")),xl(r," "),wl(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>kl("",e,"\n")+xl(["union",t,xl(n," "),kl("= ",xl(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>kl("",e,"\n")+xl(["enum",t,xl(n," "),wl(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>kl("",e,"\n")+xl([t,xl(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>kl("",e,"\n")+xl(["input",t,xl(n," "),wl(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:a})=>kl("",e,"\n")+"directive @"+t+(Nl(n)?kl("(\n",Sl(xl(n,"\n")),"\n)"):kl("(",xl(n,", "),")"))+kl(" ",xl(r," "))+(i?" repeatable":"")+" on "+xl(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>xl(["extend schema",xl(e," "),wl(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>xl(["extend scalar",e,xl(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>xl(["extend type",e,kl("implements ",xl(t," & ")),xl(n," "),wl(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>xl(["extend interface",e,kl("implements ",xl(t," & ")),xl(n," "),wl(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>xl(["extend union",e,xl(t," "),kl("= ",xl(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>xl(["extend enum",e,xl(t," "),wl(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>xl(["extend input",e,xl(t," "),wl(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>xl(["extend directive @"+e,xl(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>xl([e,kl(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>xl([e,kl(".",t),kl("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>xl(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>xl(["@",e,kl("(",t,":)")])}};function xl(e,t=""){return e?.filter(e=>void 0!==e&&""!==e).join(t)??""}function wl(e){return kl("{\n",Sl(xl(e,"\n")),"\n}")}function kl(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Sl(e){return kl(" ",e.replaceAll("\n","\n "))}function Nl(e){return e?.some(e=>e.includes("\n"))??!1}function Tl(e,t){let n=e+kl("(",xl(t,", "),")");return n.length>80&&(n=e+kl("(\n",Sl(xl(t,"\n")),"\n)")),n}var Cl={QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",FRAGMENT_VARIABLE_DEFINITION:"FRAGMENT_VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION",DIRECTIVE_DEFINITION:"DIRECTIVE_DEFINITION"};function El(e,t,n){return new Xo(`Syntax Error: ${n}`,{source:e,positions:[t]})}var _l=function(){let e;try{const t=globalThis.process;"function"==typeof t?.getBuiltinModule&&(e=t.getBuiltinModule("node:diagnostics_channel"))}catch{}return e}(),Ol=_l?.tracingChannel("graphql:parse"),Al=(_l?.tracingChannel("graphql:validate"),_l?.tracingChannel("graphql:execute"),_l?.tracingChannel("graphql:execute:variableCoercion"),_l?.tracingChannel("graphql:execute:rootSelectionSet"),_l?.tracingChannel("graphql:subscribe"),_l?.tracingChannel("graphql:resolve"),["start","end","asyncStart","asyncEnd","error"]),Il="<SOF>",zl="<EOF>",Dl="$",Pl="(",Ml=")",jl="...",Rl=":",Ll="=",Fl="@",$l="[",ql="]",Vl="{",Bl="|",Ul="}",Hl="Name",Wl="Float",Yl="String",Gl="BlockString",Ql="Comment",Jl=class{constructor(e){const t=new ts(Il,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==zl)do{if(e.next)e=e.next;else{const t=rc(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===Ql);return e}};function Kl(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Xl(e,t){return Zl(e.charCodeAt(t))&&ec(e.charCodeAt(t+1))}function Zl(e){return e>=55296&&e<=56319}function ec(e){return e>=56320&&e<=57343}function tc(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return zl;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function nc(e,t,n,r,i){const a=e.line;return new ts(t,n,r,a,1+n-e.lineStart,i)}function rc(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return ic(e,i);case 33:return nc(e,"!",i,i+1);case 36:return nc(e,Dl,i,i+1);case 38:return nc(e,"&",i,i+1);case 40:return nc(e,Pl,i,i+1);case 41:return nc(e,Ml,i,i+1);case 46:{const t=n.charCodeAt(i+1);if(46===t&&46===n.charCodeAt(i+2))return nc(e,jl,i,i+3);if(46===t)throw El(e.source,i,'Unexpected "..", did you mean "..."?');if(sl(t)){const n=e.source.body.slice(i+1,oc(e,i+1,t));throw El(e.source,i,`Invalid number, expected digit before ".", did you mean "0.${n}"?`)}break}case 58:return nc(e,Rl,i,i+1);case 61:return nc(e,Ll,i,i+1);case 64:return nc(e,Fl,i,i+1);case 91:return nc(e,$l,i,i+1);case 93:return nc(e,ql,i,i+1);case 123:return nc(e,Vl,i,i+1);case 124:return nc(e,Bl,i,i+1);case 125:return nc(e,Ul,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?hc(e,i):sc(e,i)}if(sl(t)||45===t)return ac(e,i,t);if(cl(t))return fc(e,i);throw El(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Kl(t)||Xl(n,i)?`Unexpected character: ${tc(e,i)}.`:`Invalid character: ${tc(e,i)}.`)}return nc(e,zl,r,r)}function ic(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(Kl(e))++i;else{if(!Xl(n,i))break;i+=2}}return nc(e,Ql,t,i,n.slice(t+1,i))}function ac(e,t,n){const r=e.source.body;let i=t,a=n,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(a=r.charCodeAt(++i),sl(a))throw El(e.source,i,`Invalid number, unexpected digit after 0: ${tc(e,i)}.`)}else i=oc(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=oc(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(o=!0,a=r.charCodeAt(++i),43!==a&&45!==a||(a=r.charCodeAt(++i)),i=oc(e,i,a),a=r.charCodeAt(i)),46===a||cl(a))throw El(e.source,i,`Invalid number, expected digit but got: ${tc(e,i)}.`);return nc(e,o?Wl:"Int",t,i,r.slice(t,i))}function oc(e,t,n){if(!sl(n))throw El(e.source,t,`Invalid number, expected digit but got: ${tc(e,t)}.`);const r=e.source.body;let i=t+1;for(;sl(r.charCodeAt(i));)++i;return i}function sc(e,t){const n=e.source.body,r=n.length;let i=t+1,a=i,o="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return o+=n.slice(a,i),nc(e,Yl,t,i+1,o);if(92===r){o+=n.slice(a,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?lc(e,i):cc(e,i):pc(e,i);o+=t.value,i+=t.size,a=i;continue}if(10===r||13===r)break;if(Kl(r))++i;else{if(!Xl(n,i))throw El(e.source,i,`Invalid character within String: ${tc(e,i)}.`);i+=2}}throw El(e.source,i,"Unterminated string.")}function lc(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!Kl(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|dc(e),r<0)break}throw El(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function cc(e,t){const n=e.source.body,r=uc(n,t+2);if(Kl(r))return{value:String.fromCodePoint(r),size:6};if(Zl(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=uc(n,t+8);if(ec(e))return{value:String.fromCodePoint(r,e),size:12}}throw El(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function uc(e,t){return dc(e.charCodeAt(t))<<12|dc(e.charCodeAt(t+1))<<8|dc(e.charCodeAt(t+2))<<4|dc(e.charCodeAt(t+3))}function dc(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function pc(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw El(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function hc(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,a=t+3,o=a,s="";const l=[];for(;a<r;){const r=n.charCodeAt(a);if(34===r&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){s+=n.slice(o,a),l.push(s);const r=nc(e,Gl,t,a+3,dl(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==r&&13!==r)if(Kl(r))++a;else{if(!Xl(n,a))throw El(e.source,a,`Invalid character within String: ${tc(e,a)}.`);a+=2}else s+=n.slice(o,a),l.push(s),13===r&&10===n.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;else s+=n.slice(o,a),o=a+1,a+=4}throw El(e.source,a,"Unterminated string.")}function fc(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&ul(n.charCodeAt(i));)++i;return nc(e,Hl,t,i,n.slice(t,i))}var mc=Symbol("Source"),gc=class{constructor(e,t="GraphQL request",n={line:1,column:1}){this.__kind=mc,this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||al(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||al(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function yc(e,t){const n=new bc(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}var bc=class{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=function(e){return t=e,n=mc,t?.__kind===n;var t,n}(e)?e:new gc(e);this._lexer=new Jl(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(Hl);return this.node(e,{kind:cs,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:us,definitions:this.many(Il,this.parseDefinition,zl)})}parseDefinition(){if(this.peek(Vl))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===Vl)throw El(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===Hl){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw El(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(Vl))return this.node(e,{kind:ds,operation:as,description:void 0,name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(Hl)&&(r=this.parseName()),this.node(e,{kind:ds,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Hl);switch(e.value){case"query":return as;case"mutation":return os;case"subscription":return ss}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Pl,this.parseVariableDefinition,Ml)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ps,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Rl),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ll)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Dl),this.node(e,{kind:xs,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:hs,selections:this.many(Vl,this.parseSelection,Ul)})}parseSelection(){return this.peek(jl)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(Rl)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:fs,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Vl)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Pl,t,Ml)}parseFragmentArguments(){const e=this.parseFragmentArgument;return this.optionalMany(Pl,e,Ml)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(Rl),this.node(t,{kind:ms,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragmentArgument(){const e=this._lexer.token,t=this.parseName();return this.expectToken(Rl),this.node(e,{kind:gs,name:t,value:this.parseValueLiteral(!1)})}parseFragment(){const e=this._lexer.token;this.expectToken(jl);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(Hl)){const t=this.parseFragmentName();return this.peek(Pl)&&this._options.experimentalFragmentArguments?this.node(e,{kind:ys,name:t,arguments:this.parseFragmentArguments(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ys,name:t,directives:this.parseDirectives(!1)})}return this.node(e,{kind:bs,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.experimentalFragmentArguments?this.node(e,{kind:vs,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:vs,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case $l:return this.parseList(e);case Vl:return this.parseObject(e);case"Int":return this.advanceLexer(),this.node(t,{kind:ws,value:t.value});case Wl:return this.advanceLexer(),this.node(t,{kind:ks,value:t.value});case Yl:case Gl:return this.parseStringLiteral();case Hl:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:Ns,value:!0});case"false":return this.node(t,{kind:Ns,value:!1});case"null":return this.node(t,{kind:Ts});default:return this.node(t,{kind:Cs,value:t.value})}case Dl:if(e){if(this.expectToken(Dl),this._lexer.token.kind===Hl){const e=this._lexer.token.value;throw El(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:Ss,value:e.value,block:e.kind===Gl})}parseList(e){return this.node(this._lexer.token,{kind:Es,values:this.any($l,()=>this.parseValueLiteral(e),ql)})}parseObject(e){return this.node(this._lexer.token,{kind:_s,fields:this.any(Vl,()=>this.parseObjectField(e),Ul)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(Rl),this.node(t,{kind:Os,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(Fl);)t.push(this.parseDirective(e));if(t.length)return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(Fl),this.node(t,{kind:As,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken($l)){const n=this.parseTypeReference();this.expectToken(ql),t=this.node(e,{kind:zs,type:n})}else t=this.parseNamedType();return this.expectOptionalToken("!")?this.node(e,{kind:Ds,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Is,name:this.parseName()})}peekDescription(){return this.peek(Yl)||this.peek(Gl)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(Vl,this.parseOperationTypeDefinition,Ul);return this.node(e,{kind:Ps,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(Rl);const n=this.parseNamedType();return this.node(e,{kind:Ms,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:js,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:Rs,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany("&",this.parseNamedType):void 0}parseFieldsDefinition(){return this.optionalMany(Vl,this.parseFieldDefinition,Ul)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Rl);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:Ls,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(Pl,this.parseInputValueDef,Ml)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Rl);const r=this.parseTypeReference();let i;this.expectOptionalToken(Ll)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:Fs,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$s,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:qs,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(Ll)?this.delimitedMany(Bl,this.parseNamedType):void 0}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:Vs,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(Vl,this.parseEnumValueDefinition,Ul)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:Bs,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw El(this._lexer.source,this._lexer.token.start,`${vc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:Us,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(Vl,this.parseInputValueDef,Ul)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Hl)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":return this.parseDirectiveExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(Vl,this.parseOperationTypeDefinition,Ul);if(void 0===t&&void 0===n)throw this.unexpected();return this.node(e,{kind:Ws,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(void 0===n)throw this.unexpected();return this.node(e,{kind:Gs,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(void 0===n&&void 0===r&&void 0===i)throw this.unexpected();return this.node(e,{kind:Qs,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(void 0===n&&void 0===r&&void 0===i)throw this.unexpected();return this.node(e,{kind:Js,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(void 0===n&&void 0===r)throw this.unexpected();return this.node(e,{kind:Ks,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(void 0===n&&void 0===r)throw this.unexpected();return this.node(e,{kind:Xs,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(void 0===n&&void 0===r)throw this.unexpected();return this.node(e,{kind:Zs,name:t,directives:n,fields:r})}parseDirectiveExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(Fl);const t=this.parseName(),n=this.parseConstDirectives();if(void 0===n)throw this.unexpected();return this.node(e,{kind:Ys,name:t,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Fl);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.parseConstDirectives(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:Hs,description:t,name:n,arguments:r,directives:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Bl,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.hasOwn(Cl,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(Fl),n=this.parseName();let r,i;return!t&&this.expectOptionalToken(".")&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(Pl)&&(i=this.parseName(),this.expectToken(Rl),this.expectToken(Ml)),t?i?this.node(e,{kind:il,name:n,argumentName:i}):this.node(e,{kind:rl,name:n}):r?i?this.node(e,{kind:nl,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:tl,name:n,memberName:r}):this.node(e,{kind:el,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new es(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw El(this._lexer.source,t.start,`Expected ${xc(e)}, found ${vc(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==Hl||t.value!==e)throw El(this._lexer.source,t.start,`Expected "${e}", found ${vc(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===Hl&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=e??this._lexer.token;return El(this._lexer.source,t.start,`Unexpected ${vc(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==zl&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw El(this._lexer.source,t.start,`Document contains more than ${e} tokens. Parsing aborted.`)}};function vc(e){const t=e.value;return xc(e.kind)+(null!=t?` "${t}"`:"")}function xc(e){return function(e){return"!"===e||e===Dl||"&"===e||e===Pl||e===Ml||"."===e||e===jl||e===Rl||e===Ll||e===Fl||e===$l||e===ql||e===Vl||e===Bl||e===Ul}(e)?`"${e}"`:e}var wc=function(e,t){return wc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},wc(e,t)};function kc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}wc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Sc=function(){return Sc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Sc.apply(this,arguments)};function Nc(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(WR){s=[6,WR],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Tc(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cc(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Ec(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function _c(e){return this instanceof _c?(this.v=e,this):new _c(e)}function Oc(e){return"function"==typeof e}function Ac(e){var t=e(function(e){Error.call(e),e.stack=/* @__PURE__ */(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ic=Ac(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function zc(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Dc=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=Tc(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(h){e={error:h}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(Oc(l))try{l()}catch(WR){i=WR instanceof Ic?WR.errors:[WR]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Tc(c),d=u.next();!d.done;d=u.next()){var p=d.value;try{jc(p)}catch(f){i=null!=i?i:[],f instanceof Ic?i=Ec(Ec([],Cc(i)),Cc(f.errors)):i.push(f)}}}catch(m){n={error:m}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new Ic(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)jc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&zc(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&zc(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Pc=Dc.EMPTY;function Mc(e){return e instanceof Dc||e&&"closed"in e&&Oc(e.remove)&&Oc(e.add)&&Oc(e.unsubscribe)}function jc(e){Oc(e)?e():e.unsubscribe()}var Rc={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Rc.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ec([e,t],Cc(n))):setTimeout.apply(void 0,Ec([e,t],Cc(n)))},clearTimeout:function(e){var t=Rc.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Lc(e){Rc.setTimeout(function(){throw e})}function Fc(){}var $c=qc("C",void 0,void 0);function qc(e,t,n){return{kind:e,value:t,error:n}}function Vc(e){e()}var Bc=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Mc(t)&&t.add(n)):n.destination=Gc,n}return kc(t,e),t.create=function(e,t,n){return new Hc(e,t,n)},t.prototype.next=function(e){this.isStopped?Yc(function(e){return qc("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?Yc(qc("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?Yc($c,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Dc);Function.prototype.bind;var Uc=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(n){Wc(n)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(n){Wc(n)}else Wc(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Wc(t)}},e}(),Hc=function(e){function t(t,n,r){var i,a=e.call(this)||this;return i=Oc(t)||!t?{next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:t,a.destination=new Uc(i),a}return kc(t,e),t}(Bc);function Wc(e){Lc(e)}function Yc(e,t){var n=null;n&&Rc.setTimeout(function(){return n(e,t)})}var Gc={closed:!0,next:Fc,error:function(e){throw e},complete:Fc},Qc="function"==typeof Symbol&&Symbol.observable||"@@observable";function Jc(e){return e}var Kc=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,a=(r=e)&&r instanceof Bc||function(e){return e&&Oc(e.next)&&Oc(e.error)&&Oc(e.complete)}(r)&&Mc(r)?e:new Hc(e,t,n);return Vc(function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Xc(t))(function(t,r){var i=new Hc({next:function(t){try{e(t)}catch(n){r(n),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Qc]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Jc:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Xc(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function Xc(e){var t;return null!==(t=null!=e?e:void 0)&&void 0!==t?t:Promise}function Zc(e){return function(t){if(function(e){return Oc(null==e?void 0:e.lift)}(t))return t.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function eu(e,t,n,r,i){return new tu(e,t,n,r,i)}var tu=function(e){function t(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(r){t.error(r)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return kc(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(Bc),nu=Ac(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ru=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return kc(t,e),t.prototype.lift=function(e){var t=new iu(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new nu},t.prototype.next=function(e){var t=this;Vc(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=Tc(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(o){n={error:o}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;Vc(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;Vc(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?Pc:(this.currentObservers=null,a.push(e),new Dc(function(){t.currentObservers=null,zc(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Kc;return e.source=this,e},t.create=function(e,t){return new iu(e,t)},t}(Kc),iu=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return kc(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Pc},t}(ru),au=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return kc(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(ru),ou={now:function(){return(ou.delegate||Date).now()},delegate:void 0},su=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ou);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return kc(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,l=1;l<r.length&&r[l]<=o;l+=2)s=l;s&&r.splice(0,s+1)}},t}(ru),lu=function(e){function t(t,n){return e.call(this)||this}return kc(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(Dc),cu={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=cu.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,Ec([e,t],Cc(n))):setInterval.apply(void 0,Ec([e,t],Cc(n)))},clearInterval:function(e){var t=cu.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},uu=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return kc(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),cu.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&cu.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)/* @__PURE__ */return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(WR){r=!0,n=WR||/* @__PURE__ */new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,zc(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(lu),du=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=ou.now,e}(),pu=new(function(e){function t(t,n){void 0===n&&(n=du.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return kc(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(du))(uu),hu=new Kc(function(e){return e.complete()});function fu(e){return e&&Oc(e.schedule)}function mu(e){return fu((t=e)[t.length-1])?e.pop():void 0;var t}var gu=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function yu(e){return Oc(null==e?void 0:e.then)}function bu(e){return Oc(e[Qc])}function vu(e){return Symbol.asyncIterator&&Oc(null==e?void 0:e[Symbol.asyncIterator])}function xu(e){/* @__PURE__ */
|
|
7
|
-
return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var wu,ku="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Su(e){return Oc(null==e?void 0:e[ku])}function Nu(e){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{!function(e){e.value instanceof _c?Promise.resolve(e.value.v).then(l,c):u(a[0][2],e)}(i[e](t))}catch(WR){u(a[0][3],WR)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}(this,arguments,function(){var t,n,r;return Nc(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,_c(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,_c(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,_c(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Tu(e){return Oc(null==e?void 0:e.getReader)}function Cu(e){if(e instanceof Kc)return e;if(null!=e){if(bu(e))return i=e,new Kc(function(e){var t=i[Qc]();if(Oc(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(gu(e))return r=e,new Kc(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()});if(yu(e))return n=e,new Kc(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Lc)});if(vu(e))return Eu(e);if(Su(e))return t=e,new Kc(function(e){var n,r;try{for(var i=Tc(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(e.next(o),e.closed)return}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()});if(Tu(e))return Eu(Nu(e))}var t,n,r,i;throw xu(e)}function Eu(e){return new Kc(function(t){(function(e,t){var n,r,i,a;return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(WR){a(WR)}}function s(e){try{l(r.throw(e))}catch(WR){a(WR)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function(){var o,s;return Nc(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Tc(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}(e),l.label=1;case 1:return[4,n.next()];case 2:if((r=l.sent()).done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),i={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function _u(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function Ou(e,t){return void 0===t&&(t=0),Zc(function(n,r){n.subscribe(eu(r,function(n){return _u(r,e,function(){return r.next(n)},t)},function(){return _u(r,e,function(){return r.complete()},t)},function(n){return _u(r,e,function(){return r.error(n)},t)}))})}function Au(e,t){return void 0===t&&(t=0),Zc(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function Iu(e,t){if(!e)throw new Error("Iterable cannot be null");return new Kc(function(n){_u(n,t,function(){var r=e[Symbol.asyncIterator]();_u(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function zu(e,t){return t?function(e,t){if(null!=e){if(bu(e))return function(e,t){return Cu(e).pipe(Au(t),Ou(t))}(e,t);if(gu(e))return function(e,t){return new Kc(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(yu(e))return function(e,t){return Cu(e).pipe(Au(t),Ou(t))}(e,t);if(vu(e))return Iu(e,t);if(Su(e))return function(e,t){return new Kc(function(n){var r;return _u(n,t,function(){r=e[ku](),_u(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(a){return void n.error(a)}i?n.complete():n.next(t)},0,!0)}),function(){return Oc(null==r?void 0:r.return)&&r.return()}})}(e,t);if(Tu(e))return function(e,t){return Iu(Nu(e),t)}(e,t)}throw xu(e)}(e,t):Cu(e)}function Du(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zu(e,mu(e))}function Pu(e,t){var n=Oc(e)?e:function(){return e},r=function(e){return e.error(n())};return new Kc(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(wu||(wu={}));var Mu=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var n,r,i,a=e,o=a.kind,s=a.value,l=a.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(n=t.next)||void 0===n||n.call(t,s):"E"===o?null===(r=t.error)||void 0===r||r.call(t,l):null===(i=t.complete)||void 0===i||i.call(t)}(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,a=r.value,o=r.error;return"N"===i?null==e?void 0:e(a):"E"===i?null==t?void 0:t(o):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return Oc(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,i="N"===t?Du(n):"E"===t?Pu(function(){return r}):"C"===t?hu:0;if(!i)throw new TypeError("Unexpected notification kind "+t);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();Ac(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function ju(e,t){return Zc(function(n,r){var i=0;n.subscribe(eu(r,function(n){r.next(e.call(t,n,i++))}))})}function Ru(e,t,n){return void 0===n&&(n=1/0),Oc(t)?Ru(function(n,r){return ju(function(e,i){return t(n,e,r,i)})(Cu(e(n,r)))},n):("number"==typeof t&&(n=t),Zc(function(t,r){return function(e,t,n,r){var i=[],a=0,o=0,s=!1,l=function(){!s||i.length||a||t.complete()},c=function(e){return a<r?u(e):i.push(e)},u=function(e){a++;var s=!1;Cu(n(e,o++)).subscribe(eu(t,function(e){t.next(e)},function(){s=!0},void 0,function(){if(s)try{a--;for(var e=function(){var e=i.shift();u(e)};i.length&&a<r;)e();l()}catch(n){t.error(n)}}))};return e.subscribe(eu(t,c,function(){s=!0,l()})),function(){}}(t,r,e,n)}))}function Lu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(void 0===(n=1)&&(n=1/0),Ru(Jc,n))(zu(e,mu(e)));var n}function Fu(e,t){return Zc(function(n,r){var i=0;n.subscribe(eu(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function $u(e){return Zc(function(t,n){var r,i=null,a=!1;i=t.subscribe(eu(n,void 0,void 0,function(o){r=Cu(e(o,$u(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):a=!0})),a&&(i.unsubscribe(),i=null,r.subscribe(n))})}function qu(e,t){return e===t}function Vu(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new ru}:t,r=e.resetOnError,i=void 0===r||r,a=e.resetOnComplete,o=void 0===a||a,s=e.resetOnRefCountZero,l=void 0===s||s;return function(e){var t,r,a,s=0,c=!1,u=!1,d=function(){null==r||r.unsubscribe(),r=void 0},p=function(){d(),t=a=void 0,c=u=!1},h=function(){var e=t;p(),null==e||e.unsubscribe()};return Zc(function(e,f){s++,u||c||d();var m=a=null!=a?a:n();f.add(function(){0!==--s||u||c||(r=Bu(h,l))}),m.subscribe(f),!t&&s>0&&(t=new Hc({next:function(e){return m.next(e)},error:function(e){u=!0,d(),r=Bu(p,i,e),m.error(e)},complete:function(){c=!0,d(),r=Bu(p,o),m.complete()}}),Cu(e).subscribe(t))})(e)}}function Bu(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0!==t){if(!1!==t){var i=new Hc({next:function(){i.unsubscribe(),e()}});return Cu(t.apply(void 0,Ec([],Cc(n)))).subscribe(i)}}else e()}function Uu(e,t,n){var r,i,a,o,s=!1;return e&&"object"==typeof e?(r=e.bufferSize,o=void 0===r?1/0:r,i=e.windowTime,t=void 0===i?1/0:i,s=void 0!==(a=e.refCount)&&a,n=e.scheduler):o=null!=e?e:1/0,Vu({connector:function(){return new su(o,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Hu(e,t,n){var r=Oc(e)||t||n?{next:e,error:t,complete:n}:e;return r?Zc(function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;e.subscribe(eu(t,function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)},function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()},function(e){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)},function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)}))}):Jc}function Wu(e){try{return e()}catch{}}var Yu=Wu(()=>globalThis)||Wu(()=>window)||Wu(()=>self)||Wu(()=>global)||Wu(function(){return Wu.constructor("return this")()}),Gu="4.2.5",Qu=/* @__PURE__ */new Map;function Ju(e){const t=Qu.get(e)||1;return Qu.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}var Ku="Invariant Violation",Xu=class e extends Error{constructor(t=Ku){super(t),this.name=Ku,Object.setPrototypeOf(this,e.prototype)}},Zu=["debug","log","warn","error","silent"],ed=Zu.indexOf("silent");function td(e,...t){if(!e)throw rd(...t)}function nd(e){return function(t,...n){if(Zu.indexOf(e)>=ed){const r=console[e]||console.log;if("number"==typeof t){const e=t;(t=od(e))||(t=sd(e,n),n=[])}r(t,...n)}}}function rd(e,...t){return new Xu(od(e,t)||sd(e,t))}td.debug=nd("debug"),td.log=nd("log"),td.warn=nd("warn"),td.error=nd("error");var id=Symbol.for("ApolloErrorMessageHandler_"+Gu);function ad(e){if("string"==typeof e)return e;try{return function(e,t=0){const n=Ju("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?n:t,t).split(JSON.stringify(n)).join("<undefined>")}(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function od(e,t=[]){if(e)return Yu[id]&&Yu[id](e,t.map(ad))}function sd(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,ad(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Gu,message:e,args:t.map(ad)}))}`}function ld(e,t,n,r){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){const i={};n.fields.map(e=>ld(i,e.name,e.value,r)),e[t.value]=i}else if("Variable"===n.kind){const i=(r||{})[n.name.value];e[t.value]=i}else if("ListValue"===n.kind)e[t.value]=n.values.map(e=>{const n={};return ld(n,t,e,r),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else{if("NullValue"!==n.kind)throw rd(19,t.value,n.kind);e[t.value]=null}}function cd(e,t){if(e.arguments&&e.arguments.length){const n={};return e.arguments.forEach(({name:e,value:r})=>ld(n,e,r,t)),n}return null}var ud=Symbol.for("apollo.cacheSize"),dd={...Yu[ud]};function pd(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}var hd=()=>Object.create(null),{forEach:fd,slice:md}=Array.prototype,{hasOwnProperty:gd}=Object.prototype,yd=class e{constructor(e=!0,t=hd){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return fd.call(e,e=>t=t.getChildTrie(e)),gd.call(t,"data")?t.data:t.data=this.makeData(md.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(md.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=/* @__PURE__ */new WeakMap:void 0):this.strong||(t?this.strong=/* @__PURE__ */new Map:void 0)}};function bd(){}var vd=class{constructor(e=1/0,t=bd){this.max=e,this.dispose=t,this.map=/* @__PURE__ */new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}};function xd(){}var wd=xd,kd="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},Sd="undefined"!=typeof WeakMap?WeakMap:Map,Nd="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:xd,unregister:xd}},Td=class{constructor(e=1/0,t=wd){this.max=e,this.dispose=t,this.map=new Sd,this.newest=null,this.oldest=null,this.unfinalizedNodes=/* @__PURE__ */new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new kd(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Nd(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}},Cd=/* @__PURE__ */new WeakSet;function Ed(e){e.size<=(e.max||-1)||Cd.has(e)||(Cd.add(e),setTimeout(()=>{e.clean(),Cd.delete(e)},100))}var _d=function(e,t){const n=new Td(e,t);return n.set=function(e,t){const n=Td.prototype.set.call(this,e,t);return Ed(this),n},n},Od=function(e,t){const n=new vd(e,t);return n.set=function(e,t){const n=vd.prototype.set.call(this,e,t);return Ed(this),n},n};function Ad(e,{max:t,makeCacheKey:n=e=>e}){const r=new yd(!0),i=new _d(t);return(...t)=>{const a=r.lookupArray(n(t)),o=i.get(a);if(o){if(o.error)throw o.error;return o.result}const s=i.set(a,{});try{return s.result=e(...t)}catch(l){throw s.error=l,l}}}var Id=Ad((e,t)=>{td(e&&"Document"===e.kind,1);const n=e.definitions.filter(e=>"OperationDefinition"===e.kind);t&&td(1==n.length&&n[0].operation===t,4,t,t,n[0].operation),yl(e,{Field(t,r,i,a){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let r=e,i=[];for(const e of a)r=r[e],"Field"===r.kind&&i.push(r.alias?.value||r.name.value);throw i.splice(-1,1,t.name.value),rd(5,t.alias.value,i.join("."),n[0].operation,pd(e,"(anonymous)"))}}})},{max:dd.checkDocument||2e3}),{toString:zd}=Object.prototype;function Dd(...e){const t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(n=>{const r=e[n];void 0!==r&&(t[n]=r)})}),t}function Pd(e=[]){const t={};return e.forEach(e=>{t[e.name.value]=e}),t}function Md(e){return null!==e&&"object"==typeof e}var{hasOwnProperty:jd}=Object.prototype,Rd=function(e,t,n){return this.merge(e[n],t[n])},Ld=e=>isNaN(+e)?{}:[],Fd=class{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||Rd}merge(e,t,n={}){const r=n.atPath;if(r?.length){const[i,...a]=r;void 0===e&&(e=Ld(i));let o=e[i];void 0===o&&a.length&&(o=Ld(a[0]));const s=this.merge(o,t,{...n,atPath:a});return o!==s&&((e=this.shallowCopyForMerge(e))[i]=s),e}return Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),Md(t)&&Md(e)?(Object.keys(t).forEach(n=>{if(jd.call(e,n)){const r=e[n];if(t[n]!==r){const i=this.reconciler(e,t,n);i!==r&&((e=this.shallowCopyForMerge(e))[n]=i)}}else(e=this.shallowCopyForMerge(e))[n]=t[n]}),e):t}isObject=Md;pastCopies=/* @__PURE__ */new Set;shallowCopyForMerge(e){return Md(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}};function $d(e){const t={},n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(e=>{e.defaultValue&&ld(t,e.variable.name,e.defaultValue)}),t}function qd(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{const n=e.name.value;if("function"==typeof t)return t(n);const r=t&&t[n];return td(r,9,n),r||null}default:return null}}function Vd(e,t){let n=t;const r=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw rd(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(td(1===r.length,11,r.length),n=r[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}},...e.definitions]}}function Bd(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}function Ud(e){let t;Id(e);for(let n of e.definitions){if("OperationDefinition"===n.kind)return n;"FragmentDefinition"!==n.kind||t||(t=n)}if(t)return t;throw rd(12)}function Hd(e){return Id(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}function Wd(e){const t=Hd(e);return td(t&&"query"===t.operation,13),t}var Yd,Gd=Object.assign(function(e){return JSON.stringify(e,Qd)},{reset(){Yd=new Od(dd.canonicalStringify||1e3)}});function Qd(e,t){if(t&&"object"==typeof t){const e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){const n=Object.keys(t);if(n.every(Jd))return t;const r=JSON.stringify(n);let i=Yd.get(r);if(!i){n.sort();const e=JSON.stringify(n);i=Yd.get(e)||n,Yd.set(r,i),Yd.set(e,i)}const a=Object.create(e);return i.forEach(e=>{a[e]=t[e]}),a}}return t}function Jd(e,t,n){return 0===t||n[t-1]<=e}Gd.reset();var Kd=["connection","include","skip","client","rest","export","nonreactive","stream"],Xd=Gd,Zd=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){const e=n.connection.filter?n.connection.filter:[];e.sort();const r={};e.forEach(e=>{r[e]=t[e]});const i=Xd(r);if("{}"!==i)return`${n.connection.key}(${i})`}return n.connection.key}let r=e;if(t){const e=Xd(t);"{}"!==e&&(r+=`(${e})`)}return n&&Object.keys(n).forEach(e=>{-1===Kd.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?r+=`@${e}(${Xd(n[e])})`:r+=`@${e}`)}),r},{setStringify(e){const t=Xd;return Xd=e,t}});function ep(e){return!!e.errors?.length}function tp(e,t,n){const r=new Set(e),i=r.size;return yl(t,{Directive(e){if(r.delete(e.name.value)&&(!n||!r.size))return gl}}),n?!r.size:r.size<i}function np(e){let t=!1;return yl(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value),t))return gl}}}),t}var rp=Array.isArray;function ip(e){return"Field"===e.kind}function ap(e){return Array.isArray(e)&&e.length>0}function op(e){return{__ref:String(e)}}function sp(e){let t=e[0]||{};const n=e.length;if(n>1){const r=new Fd;for(let i=1;i<n;++i)t=r.merge(t,e[i])}return t}function lp(e,t){return Dd(e,t,t.variables&&{variables:Dd({...e&&e.variables,...t.variables})})}function cp(e){return e.catch(()=>{}),e}function up(e,t){Id(t);const n=dp(""),r=dp(""),i=e=>{for(let t,i=0;i<e.length&&(t=e[i]);++i)if(!rp(t)){if("OperationDefinition"===t.kind)return n(t.name&&t.name.value);if("FragmentDefinition"===t.kind)return r(t.name.value)}return td.error(14),null};let a=0;for(let m=t.definitions.length-1;m>=0;--m)"OperationDefinition"===t.definitions[m].kind&&++a;const o=function(e){const t=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}),e=>{let r=t.get(e.name.value);return!r&&n.size&&n.forEach((t,n)=>{n(e)&&(r=t)}),r}}(e),s=e=>ap(e)&&e.map(o).some(e=>e&&e.remove),l=/* @__PURE__ */new Map;let c=!1;const u={enter(e){if(s(e.directives))return c=!0,null}},d=yl(t,{Field:u,InlineFragment:u,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,n,r,a){const o=i(a);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,n,r,a){if(s(e.directives))return c=!0,null;const o=i(a);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,n,r){l.set(JSON.stringify(r),e)},leave:(e,t,n,i)=>e===l.get(JSON.stringify(i))?e:a>0&&e.selectionSet.selections.every(e=>"Field"===e.kind&&"__typename"===e.name.value)?(r(e.name.value).removed=!0,c=!0,null):void 0},Directive:{leave(e){if(o(e))return c=!0,null}}});if(!c)return t;const p=e=>(e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{p(r(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),h=/* @__PURE__ */new Set;d.definitions.forEach(e=>{"OperationDefinition"===e.kind?p(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{h.add(e)}):"FragmentDefinition"!==e.kind||0!==a||r(e.name.value).removed||h.add(e.name.value)}),h.forEach(e=>{p(r(e)).fragmentSpreads.forEach(e=>{h.add(e)})});const f={enter(e){if(t=e.name.value,!h.has(t)||r(t).removed)return null;var t}};return function(e){return pp(Hd(e)||function(e){td("Document"===e.kind,6),td(e.definitions.length<=1,7);const t=e.definitions[0];return td("FragmentDefinition"===t.kind,8),t}(e),Pd(Bd(e)))?null:e}(yl(d,{FragmentSpread:f,FragmentDefinition:f,OperationDefinition:{leave(e){if(e.variableDefinitions){const t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))}function dp(e){const t=/* @__PURE__ */new Map;return function(n=e){let r=t.get(n);return r||t.set(n,r={variables:/* @__PURE__ */new Set,fragmentSpreads:/* @__PURE__ */new Set}),r}}function pp(e,t){return!e||e.selectionSet.selections.every(e=>"FragmentSpread"===e.kind&&pp(t[e.name.value],t))}function hp(e){return yl(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}function fp(e){return e.alias?e.alias.value:e.name.value}function mp({directives:e},t){return!e||!e.length||function(e){const t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;const n=e.arguments,r=e.name.value;td(n&&1===n.length,16,r);const i=n[0];td(i.name&&"if"===i.name.value,17,r);const a=i.value;td(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,r),t.push({directive:e,ifArgument:i})}),t}(e).every(({directive:e,ifArgument:n})=>{let r=!1;return"Variable"===n.value.kind?(r=t&&t[n.value.name.value],td(void 0!==r,15,e.name.value)):r=n.value.value,"skip"===e.name.value?!r:r})}function gp(e){const t={data:e.data};return e.error&&(t.error=e.error),t}function yp(e,t=()=>{}){return n=>new Kc(r=>{let i=t();return n.subscribe({next(t){let n;try{n=e(t,i)}catch(WR){r.error(WR)}void 0!==n&&r.next(n)},error(e){r.error(e)},complete(){r.complete()}})})}var{toString:bp,hasOwnProperty:vp}=Object.prototype,xp=Function.prototype.toString,wp=/* @__PURE__ */new Map;function kp(e,t){try{return Sp(e,t)}finally{wp.clear()}}function Sp(e,t){if(e===t)return!0;const n=bp.call(e);if(n!==bp.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Ep(e,t))return!0;const n=Np(e),r=Np(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!vp.call(t,n[e]))return!1;for(let a=0;a<i;++a){const r=n[a];if(!Sp(e[r],t[r]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Ep(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,a]=e.value;if(!t.has(n))return!1;if(i&&!Sp(a,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=xp.call(e);return n===xp.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,Cp)}}return!1}function Np(e){return Object.keys(e).filter(Tp,e)}function Tp(e){return void 0!==this[e]}var Cp="{ [native code] }";function Ep(e,t){let n=wp.get(e);if(n){if(n.has(t))return!0}else wp.set(e,n=/* @__PURE__ */new Set);return n.add(t),!1}function _p(e,{data:t,...n},{data:r,...i},a){return kp(n,i)&&Op(Ud(e).selectionSet,t,r,{fragmentMap:Pd(Bd(e)),variables:a})}function Op(e,t,n,r){if(t===n)return!0;const i=/* @__PURE__ */new Set;return e.selections.every(e=>{if(i.has(e))return!0;if(i.add(e),!mp(e,r.variables))return!0;if(Ap(e))return!0;if(ip(e)){const i=fp(e),a=t&&t[i],o=n&&n[i],s=e.selectionSet;if(!s)return kp(a,o);const l=Array.isArray(a),c=Array.isArray(o);if(l!==c)return!1;if(l&&c){const e=a.length;if(o.length!==e)return!1;for(let t=0;t<e;++t)if(!Op(s,a[t],o[t],r))return!1;return!0}return Op(s,a,o,r)}{const i=qd(e,r.fragmentMap);if(i)return!!Ap(i)||Op(i.selectionSet,t,n,r)}})}function Ap(e){return!!e.directives&&e.directives.some(Ip)}function Ip(e){return"nonreactive"===e.name.value}var zp=Ad(function(e,t,n){return function(e,t){let n,r;function i(e){return e!==n&&(n=e,r=t(n)),r}return Object.assign(e.pipe(ju(i),Uu({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(e.getCurrentResult())})}(e,n)},{max:1,makeCacheKey:e=>e.slice(0,2)}),Dp=Symbol.for("apollo.result.extensions"),Pp=Symbol.for("apollo.result.streamInfo"),Mp=Symbol.for("apollo.observableQuery.variablesUnknown"),jp=null,Rp={},Lp=1;function Fp(e){try{return e()}catch(t){}}var $p="@wry/context:Slot",qp=Fp(()=>globalThis)||Fp(()=>global)||Object.create(null),Vp=qp[$p]||Array[$p]||function(e){try{Object.defineProperty(qp,$p,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Lp++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=jp;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Rp)break;return e!==jp&&(jp.slots[this.id]=t),!0}return jp&&(jp.slots[this.id]=Rp),!1}getValue(){if(this.hasValue())return jp.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},a=jp;jp={parent:a,slots:i};try{return t.apply(r,n)}finally{jp=a}}static bind(e){const t=jp;return function(){const n=jp;try{return jp=t,e.apply(this,arguments)}finally{jp=n}}}static noContext(e,t,n){if(!jp)return e.apply(n,t);{const r=jp;try{return jp=null,e.apply(n,t)}finally{jp=r}}}}),{bind:Bp,noContext:Up}=Vp,Hp=new Vp,{hasOwnProperty:Wp}=Object.prototype,Yp=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function Gp(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Qp=[];function Jp(e,t){if(!e)throw new Error(t||"assertion failure")}function Kp(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Xp(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Zp(e){return e.slice(0)}var eh=class e{constructor(t){this.fn=t,this.parents=/* @__PURE__ */new Set,this.childValues=/* @__PURE__ */new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(1===this.value.length&&!rh(this))return th(this),this.value[0]}recompute(e){return Jp(!this.recomputing,"already recomputing"),th(this),rh(this)?function(e,t){return uh(e),Hp.withValue(e,nh,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Gp(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(WR){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,rh(e)||ah(e)}(e),Xp(e.value)}(this,e):Xp(this.value)}setDirty(){this.dirty||(this.dirty=!0,ih(this),Gp(this))}dispose(){this.setDirty(),uh(this),oh(this,(e,t)=>{e.setDirty(),dh(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Qp.pop()||/* @__PURE__ */new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Yp(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Qp.push(this.deps),this.deps=null)}};function th(e){const t=Hp.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),rh(e)?sh(t,e):lh(t,e),t}function nh(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=Zp(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!Kp(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(i){}}catch(WR){e.value[1]=WR}e.recomputing=!1}function rh(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function ih(e){oh(e,sh)}function ah(e){oh(e,lh)}function oh(e,t){const n=e.parents.size;if(n){const r=Yp(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function sh(e,t){Jp(e.childValues.has(t)),Jp(rh(t));const n=!rh(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Qp.pop()||/* @__PURE__ */new Set;e.dirtyChildren.add(t),n&&ih(e)}function lh(e,t){Jp(e.childValues.has(t)),Jp(!rh(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,Zp(t.value)):Kp(n,t.value)||e.setDirty(),ch(e,t),rh(e)||ah(e)}function ch(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Qp.length<100&&Qp.push(n),e.dirtyChildren=null))}function uh(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{dh(e,n)}),e.forgetDeps(),Jp(null===e.dirtyChildren)}function dh(e,t){t.parents.delete(e),e.childValues.delete(t),ch(e,t)}eh.count=0;var ph,hh={setDirty:!0,dispose:!0,forget:!0};function fh(e){const t=/* @__PURE__ */new Map,n=e&&e.subscribe;function r(e){const r=Hp.getValue();if(r){let i=t.get(e);i||t.set(e,i=/* @__PURE__ */new Set),r.dependOn(i),"function"==typeof n&&(Gp(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&Wp.call(hh,n)?n:"setDirty";Yp(r).forEach(e=>e[i]()),t.delete(e),Gp(r)}},r}function mh(...e){return(ph||(ph=new yd("function"==typeof WeakMap))).lookupArray(e)}var gh=/* @__PURE__ */new Set;function yh(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=mh,normalizeResult:i,subscribe:a,cache:o=vd}=Object.create(null)){const s="function"==typeof o?new o(t,e=>e.dispose()):o,l=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new eh(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>s.delete(t));const l=o.recompute(Array.prototype.slice.call(arguments));return s.set(t,o),gh.add(s),Hp.hasValue()||(gh.forEach(e=>e.clean()),gh.clear()),l};function c(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:a,cache:s}),l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))},l.peekKey=u,l.peek=function(){return u(r.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}function bh(...e){return mh.bind(null,...e)}var vh=class{isIncrementalResult(e){return!1}prepareRequest(e){return td(!tp(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0},xh=class e{static empty(){return new e(()=>hu)}static from(t){if(0===t.length)return e.empty();const[n,...r]=t;return n.concat(...r)}static split(t,n,r=new e((e,t)=>t(e))){const i=new e((e,i)=>t(e)?n.request(e,i):r.request(e,i));return Object.assign(i,{left:n,right:r})}static execute(e,t,n){return e.request(function(e,{client:t}){const n={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:pd(e.query),operationType:Hd(e.query).operation};let r={...e.context};const i=()=>Object.freeze({...r});return Object.defineProperty(n,"setContext",{enumerable:!1,value:e=>{r="function"==typeof e?{...r,...e(i())}:{...r,...e}}}),Object.defineProperty(n,"getContext",{enumerable:!1,value:i}),Object.defineProperty(n,"client",{enumerable:!1,value:t}),n}(t,n),()=>hu)}static concat(...t){return e.from(t)}constructor(e){e&&(this.request=e)}split(t,n,r){return this.concat(e.split(t,n,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(t,n){const r=new e((e,r)=>t.request(e,e=>n.request(e,r)));return Object.assign(r,{left:t,right:n})}request(e,t){throw rd(65)}left;right},wh=xh.execute;function kh(e){return e}var Sh,Nh=class e{transform;cached;resultCache=/* @__PURE__ */new WeakSet;getCacheKey(e){return[e]}static identity(){return new e(kh,{cache:!1})}static split(t,n,r=e.identity()){return Object.assign(new e(e=>(t(e)?n:r).transformDocument(e),{cache:!1}),{left:n,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){const t=new yd;this.performWork=yh(e.prototype.performWork.bind(this),{makeCacheKey:e=>{const n=this.getCacheKey(e);if(n)return td(Array.isArray(n),20),t.lookupArray(n)},max:dd["documentTransform.cache"],cache:Td})}}performWork(e){return Id(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const t=this.performWork(e);return this.resultCache.add(t),t}concat(t){return Object.assign(new e(e=>t.transformDocument(this.transformDocument(e)),{cache:!1}),{left:this,right:t})}left;right},Th=Object.assign(e=>{let t=Sh.get(e);return t||(t=function(e){return yl(e,vl)}(e),Sh.set(e,t)),t},{reset(){Sh=new _d(dd.print||2e3)}});function Ch(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}Th.reset();var Eh={kind:fs,name:{kind:cs,value:"__typename"}},_h=Object.assign(function(e){return yl(e,{SelectionSet:{enter(e,t,n){if(n&&"OperationDefinition"===n.kind)return;const{selections:r}=e;if(!r)return;if(r.some(e=>"Field"===e.kind&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))return;const i=n;return"Field"===i.kind&&i.directives&&i.directives.some(e=>"export"===e.name.value)?void 0:{...e,selections:[...r,Eh]}}}})},{added:e=>e===Eh});function Oh(e,t){return Hd(e)?.operation===t}function Ah(e){return 7===e||8===e}function Ih(e){return!Ah(e)}var zh=class{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){const t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;let n;return this.performTransaction(()=>n=e.update(this),t),n}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new yd(!0);watchFragment(e){const{fragment:t,fragmentName:n,from:r}=e,i=this.getFragmentDoc(t,n),a=(Array.isArray(r)?r:[r]).map(e=>null==e?e:this.toCacheId(e));if(!Array.isArray(r)){const t=this.watchSingleFragment(a[0],i,e);return null===r?t:zp(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}let o;function s(e){const t=e.reduce((e,t,n)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[n]=t.missing),e),{data:[],dataState:"complete",complete:!0});return kp(o,t)||(o=t),o}if(0===a.length)return jh;let l=!1;const c=a.map(t=>this.watchSingleFragment(t,i,e)),u=function(e){return 0===e.length?hu:new Kc(t=>{const{length:n}=e,r=new Array(n),i=/* @__PURE__ */new Map;e.forEach((e,t)=>{i.has(e)||i.set(e,/* @__PURE__ */new Set),i.get(e).add(t)});let a,o=i.size,s=i.size;i.forEach((n,i)=>{let l=!1;const c=i.subscribe({next:o=>{n.forEach(e=>r[e]=o),l||(l=!0,s--),s||(a||=new Set(e.filter(e=>e.dirty)),a.delete(i),a.size||(t.next(r.slice()),a=void 0))},complete:()=>{o--,o||t.complete()},error:t.error.bind(t)});t.add(c)})})}(c).pipe(ju(s),Hu({subscribe:()=>l=!0,unsubscribe:()=>l=!1}),Uu({bufferSize:1,refCount:!0}));return Object.assign(u,{getCurrentResult:()=>l&&o?o:s(c.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,n){if(null===e)return Ph;const{optimistic:r=!0,variables:i}=n,a=[t,Gd({id:e,optimistic:r,variables:i})],o=this.fragmentWatches.lookupArray(a);if(!o.observable){let c,u=!1;function d(e){const r=e.result;return c&&_p(t,{data:c.data},{data:r},n.variables)||(c={data:r,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}const p=new Kc(n=>{u=!0;const o=this.watch({variables:i,returnPartialData:!0,id:e,query:t,optimistic:r,immediate:!0,callback:e=>{p.dirty=!0,this.onAfterBroadcast(()=>{n.next(d(e)),p.dirty=!1})}});return()=>{u=!1,o(),this.fragmentWatches.removeArray(a)}}).pipe((void 0===l&&(l=Jc),s=null!=s?s:qu,Zc(function(e,t){var n,r=!0;e.subscribe(eu(t,function(e){var i=l(e);!r&&s(n,i)||(r=!1,n=i,t.next(e))}))})),Vu({connector:()=>new su(1),resetOnRefCountZero:()=>function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=pu);var r=-1;return null!=t&&(fu(t)?n=t:r=t),new Kc(function(t){var i,a=(i=e)instanceof Date&&!isNaN(i)?+e-n.now():e;a<0&&(a=0);var o=0;return n.schedule(function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())},a)})}(0)}));o.observable=Object.assign(p,{dirty:!1,getCurrentResult:()=>u&&c?c:d(this.diff({id:e,query:t,returnPartialData:!0,optimistic:r,variables:i}))})}var s,l;return o.observable}getFragmentDoc=yh(Vd,{max:dd["cache.fragmentQueryDocuments"]||1e3,cache:Td,makeCacheKey:bh(this)});readFragment(e,t=!!e.optimistic){const n=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:n,optimistic:t})}writeQuery({id:e,data:t,...n}){return this.write(Object.assign(n,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:n,...r}){const i=void 0!==r.from?this.toCacheId(r.from):r.id;return this.write(Object.assign(r,{query:this.getFragmentDoc(t,n),dataId:i,result:e}))}updateQuery(e,t){return this.batch({update(n){const r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(n){const r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment({...e,data:i}),i)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}},Dh=Object.freeze({data:null,dataState:"complete",complete:!0}),Ph=Object.assign(new Kc(e=>{e.next(Dh)}),{dirty:!1,getCurrentResult:()=>Dh}),Mh=Object.freeze({data:[],dataState:"complete",complete:!0}),jh=Object.assign(new Kc(e=>{e.next(Mh)}),{getCurrentResult:()=>Mh}),Rh=class e extends Error{message;path;query;variables;constructor(t,n,r,i){if(super(t),this.message=t,this.path=n,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=e.prototype}missing},{hasOwnProperty:Lh}=Object.prototype;function Fh({__typename:e,id:t,_id:n},r){if("string"==typeof e&&(r&&(r.keyObject=null!=t?{id:t}:null!=n?{_id:n}:void 0),null==t&&null!=n&&(t=n),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}var $h={dataIdFromObject:Fh,resultCaching:!0},qh=/^[_a-z][_0-9a-z]*/i;function Vh(e){const t=e.match(qh);return t?t[0]:e}function Bh(e,t,n){return!!Md(t)&&(rp(t)?t.every(t=>Bh(e,t,n)):e.selections.every(e=>{if(ip(e)&&mp(e,n)){const r=fp(e);return Lh.call(t,r)&&(!e.selectionSet||Bh(e.selectionSet,t[r],n))}return!0}))}function Uh(e){return Md(e)&&!Ch(e)&&!rp(e)}function Hh(e,t){const n=Pd(Bd(e));return{fragmentMap:n,lookupFragment(e){let r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var Wh={},Yh=()=>Wh,Gh={},Qh=class{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),Lh.call(this.data,e)){const n=this.data[e];if(n&&Lh.call(n,t))return n[t]}return"__typename"===t&&Lh.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Zh?this.parent.get(e,t):void 0}lookup(e,t){return t&&this.group.depend(e,"__exists"),Lh.call(this.data,e)?this.data[e]:this instanceof Zh?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let n;Ch(e)&&(e=e.__ref),Ch(t)&&(t=t.__ref);const r="string"==typeof e?this.lookup(n=e):e,i="string"==typeof t?this.lookup(n=t):t;if(!i)return;td("string"==typeof n,104);const a=new Fd({reconciler:tf}).merge(r,i);if(this.data[n]=a,a!==r&&(delete this.refs[n],this.group.caching)){const e={};r||(e.__exists=1),Object.keys(i).forEach(t=>{if(!r||r[t]!==a[t]){e[t]=1;const n=Vh(t);n===t||this.policies.hasKeyArgs(a.__typename,n)||(e[n]=1),void 0!==a[t]||this instanceof Zh||delete a[t]}}),!e.__typename||r&&r.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(n,e))}}modify(e,t,n){const r=this.lookup(e);if(r){const i={};let a=!1,o=!0;const s={DELETE:Wh,INVALIDATE:Gh,isReference:Ch,toReference:this.toReference,canRead:this.canRead,readField:(t,n)=>this.policies.readField("string"==typeof t?{fieldName:t,from:n||op(e)}:t,{store:this})};if(Object.keys(r).forEach(l=>{const c=Vh(l);let u=r[l];if(void 0===u)return;const d="function"==typeof t?t:t[l]||(n?void 0:t[c]);if(d){let t=d===Yh?Wh:d(u,{...s,fieldName:c,storeFieldName:l,storage:this.getStorage(e,l)});t===Gh?this.group.dirty(e,l):(t===Wh&&(t=void 0),t!==u&&(i[l]=t,a=!0,u=t))}void 0!==u&&(o=!1)}),a)return this.merge(e,i),o&&(this instanceof Zh?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,n){const r=this.lookup(e);if(r){const i=this.getFieldValue(r,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:i,fieldName:t,args:n}):t;return this.modify(e,a?{[a]:Yh}:Yh,!!n)}return!1}evict(e,t){let n=!1;return e.id&&(Lh.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Zh&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n}clear(){this.replace(null)}extract(){const e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{Lh.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&Lh.call(e,t)||this.delete(t)}),e){const{__META:t,...n}=e;Object.keys(n).forEach(e=>{this.merge(e,n[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=/* @__PURE__ */new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof Zh?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),t=this.toObject();e.forEach(n=>{Lh.call(t,n)&&(Object.keys(this.findChildRefIds(n)).forEach(e.add,e),delete t[n])});const n=Object.keys(t);if(n.length){let e=this;for(;e instanceof Zh;)e=e.parent;n.forEach(t=>e.delete(t))}return n}refs={};findChildRefIds(e){if(!Lh.call(this.refs,e)){const t=this.refs[e]={},n=this.data[e];if(!n)return t;const r=/* @__PURE__ */new Set([n]);r.forEach(e=>{Ch(e)&&(t[e.__ref]=!0),Md(e)&&Object.keys(e).forEach(t=>{const n=e[t];Md(n)&&r.add(n)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>Ch(e)?this.get(e.__ref,t):e&&e[t];canRead=e=>Ch(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return op(e);if(Ch(e))return e;const[n]=this.policies.identify(e);if(n){const r=op(n);return t&&this.merge(n,e),r}};get supportsResultCaching(){return this.group.caching}},Jh=class{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?fh():null,this.keyMaker=new yd}depend(e,t){if(this.d){this.d(Kh(e,t));const n=Vh(t);n!==t&&this.d(Kh(e,n)),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(Kh(e,t),"__exists"===t?"forget":"setDirty")}};function Kh(e,t){return t+"#"+e}function Xh(e,t){nf(e)&&e.group.depend(t,"__exists")}Qh.Root=class extends Qh{constructor({policies:e,resultCaching:t=!0,seed:n}){super(e,new Jh(t)),n&&this.replace(n)}stump=new ef(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new yd;getStorage(){return this.storageTrie.lookupArray(arguments)}};var Zh=class e extends Qh{id;parent;replay;group;constructor(e,t,n,r){super(t.policies,r),this.id=e,this.parent=t,this.replay=n,this.group=r,n(this)}addLayer(t,n){return new e(t,this,n,this.group)}removeLayer(e){const t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{const n=this.data[e],r=t.lookup(e);r?n?n!==r&&Object.keys(n).forEach(t=>{kp(n[t],r[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(r).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){const t=this.parent.findChildRefIds(e);return Lh.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}},ef=class extends Zh{constructor(e){super("EntityStore.Stump",e,()=>{},new Jh(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}};function tf(e,t,n){const r=e[n],i=t[n];return kp(r,i)?r:i}function nf(e){return!(!e||!e.supportsResultCaching)}var rf=new Vp;function af(e){const t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";const n=t.arguments?.find(({name:e})=>"mode"===e.value);return n&&"value"in n.value&&"migrate"===n.value.value?"migrate":"unmask"}function of(e,t,n){return rf.withValue(!0,()=>{const r=sf(e,t,n,!1);return Object.isFrozen(e),r})}function sf(e,t,n,r,i){const{knownChanged:a}=n,o=function(e,t){if(t.has(e))return t.get(e);const n=Array.isArray(e)?[]:{};return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(const[i,s]of Array.from(e.entries())){if(null===s){o[i]=null;continue}const e=sf(s,t,n,r,void 0);a.has(e)&&a.add(o),o[i]=e}return a.has(o)?o:e}for(const s of t.selections){let t;if(r&&a.add(o),"Field"===s.kind){const i=fp(s),l=s.selectionSet;if(t=o[i]||e[i],void 0===t)continue;if(l&&null!==t){const o=sf(e[i],l,n,r,void 0);a.has(o)&&(t=o)}o[i]=t}if("InlineFragment"!==s.kind||s.typeCondition&&!n.cache.fragmentMatches(s,e.__typename)||(t=sf(e,s.selectionSet,n,r,i)),"FragmentSpread"===s.kind){const r=s.name.value,a=n.fragmentMap[r]||(n.fragmentMap[r]=n.cache.lookupFragment(r));td(a,39,r);const o=af(s);"mask"!==o&&(t=sf(e,a.selectionSet,n,"migrate"===o,i))}a.has(t)&&a.add(o)}return"__typename"in e&&!("__typename"in o)&&(o.__typename=e.__typename),Object.keys(o).length!==Object.keys(e).length&&a.add(o),a.has(o)?o:e}var lf={};function cf(e){const t=JSON.stringify(e);return lf[t]||(lf[t]={})}function uf(e){const t=cf(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,n)=>{const r=(e,t)=>n.readField(t,e),i=n.keyObject=pf(e,e=>{let i=mf(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&Lh.call(t,e[0])&&(i=mf(t,e,ff)),td(void 0!==i,107,e.join("."),t),i});return`${n.typename}:${JSON.stringify(i)}`})}function df(e){const t=cf(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:n,variables:r,fieldName:i})=>{const a=pf(e,e=>{const i=e[0],a=i.charAt(0);if("@"!==a){if("$"===a){const t=i.slice(1);if(r&&Lh.call(r,t)){const n=e.slice(0);return n[0]=t,mf(r,n)}return}if(t)return mf(t,e)}else if(n&&ap(n.directives)){const t=i.slice(1),a=n.directives.find(e=>e.name.value===t),o=a&&cd(a,r);return o&&mf(o,e.slice(1))}}),o=JSON.stringify(a);return(t||"{}"!==o)&&(i+=":"+o),i})}function pf(e,t){const n=new Fd;return hf(e).reduce((e,r)=>{let i=t(r);if(void 0!==i){for(let e=r.length-1;e>=0;--e)i={[r[e]]:i};e=n.merge(e,i)}return e},{})}function hf(e){const t=cf(e);if(!t.paths){const n=t.paths=[],r=[];e.forEach((t,i)=>{rp(t)?(hf(t).forEach(e=>n.push(r.concat(e))),r.length=0):(r.push(t),rp(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function ff(e,t){return e[t]}function mf(e,t,n){return n=n||ff,gf(t.reduce(function e(t,r){return rp(t)?t.map(t=>e(t,r)):t&&n(t,r)},e))}function gf(e){return Md(e)?rp(e)?e.map(gf):pf(Object.keys(e).sort(),t=>mf(e,t)):e}var yf=new Vp,bf=/* @__PURE__ */new WeakMap;function vf(e){let t=bf.get(e);return t||bf.set(e,t={vars:/* @__PURE__ */new Set,dep:fh()}),t}function xf(e){vf(e).vars.forEach(t=>t.forgetCache(e))}function wf(e){const t=/* @__PURE__ */new Set,n=/* @__PURE__ */new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(e=>{vf(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});const i=Array.from(n);n.clear(),i.forEach(t=>t(e))}}else{const e=yf.getValue();e&&(i(e),vf(e).dep(r))}return e};r.onNextChange=e=>(n.add(e),()=>{n.delete(e)});const i=r.attachCache=e=>(t.add(e),vf(e).vars.add(r),r);return r.forgetCache=e=>t.delete(e),r}function kf(e){return void 0!==e.args?e.args:e.field?cd(e.field,e.variables):null}var Sf=()=>{},Nf=(e,t)=>t.fieldName,Tf=(e,t,{mergeObjects:n})=>n(e,t),Cf=(e,t)=>t,Ef=(e,t,{streamFieldInfo:n,existingData:r})=>{if(!e&&!r)return t;const i=[],a=e??r,o=n?.isLastChunk?t.length:Math.max(a.length,t.length);for(let s=0;s<o;s++)i[s]=void 0===t[s]?a[s]:t[s];return i},_f=class{config;typePolicies={};toBeAdded={};supertypeMap=/* @__PURE__ */new Map;fuzzySubtypes=/* @__PURE__ */new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:Fh,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){const n=this,r=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const i=t&&t.storeObject||e,a={...t,typename:r,storeObject:i,readField:t&&t.readField||((...e)=>{const t=Af(e,i);return n.readField(t,{store:n.cache.data,variables:t.variables})})};let o;const s=r&&this.getTypePolicy(r);let l=s&&s.keyFn||this.config.dataIdFromObject;return rf.withValue(!0,()=>{for(;l;){const t=l({...e,...i},a);if(!rp(t)){o=t;break}l=uf(t)}}),o=o?String(o):void 0,a.keyObject?[o,a.keyObject]:[o]}addTypePolicies(e){Object.keys(e).forEach(t=>{const{queryType:n,mutationType:r,subscriptionType:i,...a}=e[t];n&&this.setRootTypename("Query",t),r&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),Lh.call(this.toBeAdded,t)?this.toBeAdded[t].push(a):this.toBeAdded[t]=[a]})}updateTypePolicy(e,t,n){const r=this.getTypePolicy(e),{keyFields:i,fields:a}=t;function o(e,t){e.merge="function"==typeof t?t:!0===t?Tf:!1===t?Cf:e.merge}o(r,t.merge),r.keyFn=!1===i?Sf:rp(i)?uf(i):"function"==typeof i?i:r.keyFn,a&&Object.keys(a).forEach(t=>{let r=n[t];r&&r?.typename===e||(r=n[t]={typename:e});const i=a[t];if("function"==typeof i)r.read=i;else{const{keyArgs:e,read:t,merge:n}=i;r.keyFn=!1===e?Nf:rp(e)?df(e):"function"==typeof e?e:r.keyFn,"function"==typeof t&&(r.read=t),o(r,n)}r.read&&r.merge&&(r.keyFn=r.keyFn||Nf)})}setRootTypename(e,t=e){const n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(td(!r||r===e,108,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);const n=e.match(qh);n&&n[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!Lh.call(this.typePolicies,e)){const t=this.typePolicies[e]={};t.fields={};let n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,r)=>{if(t.test(e)){const e=this.supertypeMap.get(r);e&&e.forEach(e=>n.add(e))}})),n&&n.size&&n.forEach(e=>{const{fields:n,...r}=this.getTypePolicy(e);Object.assign(t,r),Object.assign(t.fields,n)})}const t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=/* @__PURE__ */new Set),n}fragmentMatches(e,t,n,r){if(!e.typeCondition)return!0;if(!t)return!1;const i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){const a=this.getSupertypeSet(t,!0),o=[a],s=e=>{const t=this.getSupertypeSet(e,!1);t&&t.size&&o.indexOf(t)<0&&o.push(t)};let l=!(!n||!this.fuzzySubtypes.size),c=!1;for(let u=0;u<o.length;++u){const d=o[u];if(d.has(i))return a.has(i)||a.add(i),!0;d.forEach(s),l&&u===o.length-1&&Bh(e.selectionSet,n,r)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((e,n)=>{const r=t.match(e);r&&r[0]===t&&s(n)}))}}return!1}hasKeyArgs(e,t){const n=this.getFieldPolicy(e,t);return!(!n||!n.keyFn)}getStoreFieldName(e){const{typename:t,fieldName:n}=e,r=this.getFieldPolicy(t,n);let i,a=r&&r.keyFn;if(a&&t){const r={typename:t,fieldName:n,field:e.field||null,variables:e.variables},o=kf(e);for(;a;){const e=a(o,r);if(!rp(e)){i=e||n;break}a=df(e)}}return void 0===i&&(i=e.field?function(e,t){let n=null;e.directives&&(n={},e.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:r,value:i})=>ld(n[e.name.value],r,i,t))}));let r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(({name:e,value:n})=>ld(r,e,n,t))),Zd(e.name.value,r,n)}(e.field,e.variables):Zd(n,kf(e))),!1===i?n:n===Vh(i)?i:n+":"+i}readField(e,t){const n=e.from;if(!n)return;if(!e.field&&!e.fieldName)return;if(void 0===e.typename){const r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}const r=this.getStoreFieldName(e),i=Vh(r),a=t.store.getFieldValue(n,r),o=this.getFieldPolicy(e.typename,i),s=o&&o.read;if(s){const i=Of(this,n,e,t,t.store.getStorage(Ch(n)?n.__ref:n,r));return yf.withValue(this.cache,s,[a,i])}return a}getReadFunction(e,t){const n=this.getFieldPolicy(e,t);return n&&n.read}getMergeFunction(e,t,n){let r=this.getFieldPolicy(e,t),i=r&&r.merge;return!i&&n&&(r=this.getTypePolicy(n),i=r&&r.merge),i}runMergeFunction(e,t,{field:n,typename:r,merge:i,path:a},o,s){const l=e;if(i===Tf)return If(o.store)(e,t);if(i===Cf)return t;o.overwrite&&(e=void 0);const c=o.extensions?.[Pp]?.deref()?.peekArray(a);if(c){const{current:e,previous:n}=c;if(n&&kp(n.incoming,t)&&kp(n.streamFieldInfo,e))return n.result}const u=i(e,t,function(e,t,n,r,i,a){const o={...Of(e,void 0,n,r,i),extensions:r.extensions,existingData:a},s=r.extensions;if(s&&Pp in s){const{[Pp]:e,...t}=s,r=e?.deref()?.peekArray(n.path);r&&(o.streamFieldInfo=r.current),o.extensions=0===Object.keys(t).length?void 0:t}return o}(this,0,{typename:r,fieldName:n.name.value,field:n,variables:o.variables,path:a},o,s||{},l));return c&&(c.previous={incoming:t,streamFieldInfo:c.current,result:u}),u}};function Of(e,t,n,r,i){const a=e.getStoreFieldName(n),o=Vh(a),s=n.variables||r.variables,{toReference:l,canRead:c}=r.store;return{args:kf(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:Ch,toReference:l,storage:i,cache:e.cache,canRead:c,readField:(...n)=>e.readField(Af(n,t,s),r),mergeObjects:If(r.store)}}function Af(e,t,n){const{0:r,1:i,length:a}=e;let o;return"string"==typeof r?o={fieldName:r,from:a>1?i:t}:(o={...r},Lh.call(o,"from")||(o.from=t)),void 0===o.variables&&(o.variables=n),o}function If(e){return function(t,n){if(rp(t)||rp(n))throw rd(111);if(Md(t)&&Md(n)){const r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Ch(t)&&Uh(n))return e.merge(t.__ref,n),t;if(Uh(t)&&Ch(n))return e.merge(t,n.__ref),n;if(Uh(t)&&Uh(n))return{...t,...n}}return n}}function zf(e){return[e.selectionSet,e.objectOrReference,e.context]}var Df=class{executeSelectionSet;executeSubSelectedArray;config;knownResults=/* @__PURE__ */new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=yh(e=>{const t=zf(e);return this.executeSelectionSet.peek(...t)||(Xh(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:dd["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:zf,makeCacheKey(e,t,n){if(nf(n.store))return n.store.makeCacheKey(e,Ch(t)?t.__ref:t,n.varString)}}),this.executeSubSelectedArray=yh(e=>(Xh(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:dd["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:n}){if(nf(n.store))return n.store.makeCacheKey(e,t,n.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:n="ROOT_QUERY",variables:r,returnPartialData:i=!0}){const a=this.config.cache.policies;r={...$d(Wd(t)),...r};const o=op(n),s=this.executeSelectionSet({selectionSet:Ud(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:a,variables:r,varString:Gd(r),...Hh(t,this.config.fragments)}});let l;s.missing&&(l=new Rh(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(u){return u}}(s.missing),s.missing,t,r));const c=!l,{result:u}=s;return{result:c?u:i?0===Object.keys(u).length?null:u:null,complete:c,missing:l}}isFresh(e,t,n,r){if(nf(r.store)&&this.knownResults.get(e)===n){const i=this.executeSelectionSet.peek(n,t,r);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:n,context:r}){if(Ch(t)&&!r.policies.rootTypenamesById[t.__ref]&&!r.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};const{variables:i,policies:a,store:o}=r,s=o.getFieldValue(t,"__typename"),l=[];let c;const u=new Fd;function d(e,t){return e.missing&&(c=u.merge(c,{[t]:e.missing})),e.result}"string"!=typeof s||a.rootIdsByTypename[s]||l.push({__typename:s});const p=new Set(e.selections);p.forEach(e=>{if(mp(e,i))if(ip(e)){let i=a.readField({fieldName:e.name.value,field:e,variables:r.variables,from:t},r);const o=fp(e);void 0===i?_h.added(e)||(c=u.merge(c,{[o]:`Can't find field '${e.name.value}' on ${Ch(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):rp(i)?i.length>0&&(i=d(this.executeSubSelectedArray({field:e,array:i,enclosingRef:n,context:r}),o)):e.selectionSet&&null!=i&&(i=d(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:i,enclosingRef:Ch(i)?i:n,context:r}),o)),void 0!==i&&l.push({[o]:i})}else{const t=qd(e,r.lookupFragment);if(!t&&"FragmentSpread"===e.kind)throw rd(112,e.name.value);t&&a.fragmentMatches(t,s)&&t.selectionSet.selections.forEach(p.add,p)}});const h={result:sp(l),missing:c};return h.result&&this.knownResults.set(h.result,e),h}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:n,context:r}){let i,a=new Fd;function o(e,t){return e.missing&&(i=a.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||r.store.canRead(e))),t=t.map((t,i)=>null===t?null:rp(t)?o(this.executeSubSelectedArray({field:e,array:t,enclosingRef:n,context:r}),i):e.selectionSet?o(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:Ch(t)?t:n,context:r}),i):t),{result:t,missing:i}}};function Pf(e,t,n){const r=`${t}${n}`;let i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:{...e,clientOnly:t,deferred:n}),i}var Mf=class{cache;reader;fragments;constructor(e,t,n){this.cache=e,this.reader=t,this.fragments=n}writeToStore(e,{query:t,result:n,dataId:r,variables:i,overwrite:a,extensions:o}){const s=Hd(t),l=new Fd;i={...$d(s),...i};const c={store:e,written:{},merge:(e,t)=>l.merge(e,t),variables:i,varString:Gd(i),...Hh(t,this.fragments),overwrite:!!a,incomingById:/* @__PURE__ */new Map,clientOnly:!1,deferred:!1,flavors:/* @__PURE__ */new Map,extensions:o},u=this.processSelectionSet({result:n||{},dataId:r,selectionSet:s.selectionSet,mergeTree:{map:/* @__PURE__ */new Map},context:c,path:[]});if(!Ch(u))throw rd(114,n);return c.incomingById.forEach(({storeObject:t,mergeTree:n,fieldNodeSet:r},i)=>{const a=op(i);if(n&&n.map.size){const e=this.applyMerges(n,a,t,c);if(Ch(e))return;t=e}e.merge(i,t)}),e.retain(u.__ref),u}processSelectionSet({dataId:e,result:t,selectionSet:n,context:r,mergeTree:i,path:a}){const{policies:o}=this.cache;let s={};const l=e&&o.rootTypenamesById[e]||qf(t,n,r.fragmentMap)||e&&r.store.get(e,"__typename");"string"==typeof l&&(s.__typename=l);const c=(...e)=>{const t=Af(e,s,r.variables);if(Ch(t.from)){const e=r.incomingById.get(t.from.__ref);if(e){const n=o.readField({...t,from:e.storeObject},r);if(void 0!==n)return n}}return o.readField(t,r)},u=/* @__PURE__ */new Set;this.flattenFields(n,t,r,l).forEach((e,n)=>{const r=t[fp(n)],d=[...a,n.name.value];if(u.add(n),void 0!==r){const t=o.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),a=Rf(i,t);let u,p=this.processFieldValue(r,n,n.selectionSet?Pf(e,!1,!1):e,a,d);n.selectionSet&&(Ch(p)||Uh(p))&&(u=c("__typename",p));const h=o.getMergeFunction(l,n.name.value,u);h?a.info={field:n,typename:l,merge:h,path:d}:tp(["stream"],n)&&Array.isArray(p)&&e.extensions?.[Pp]?a.info={field:n,typename:l,merge:Ef,path:d}:$f(i,t),s=e.merge(s,{[t]:p})}});try{const[i,a]=o.identify(t,{typename:l,selectionSet:n,fragmentMap:r.fragmentMap,storeObject:s,readField:c});e=e||i,a&&(s=r.merge(s,a))}catch(WR){if(!e)throw WR}if("string"==typeof e){const a=op(e),o=r.written[e]||(r.written[e]=[]);if(o.indexOf(n)>=0)return a;if(o.push(n),this.reader&&this.reader.isFresh(t,a,n,r))return a;const l=r.incomingById.get(e);return l?(l.storeObject=r.merge(l.storeObject,s),l.mergeTree=Lf(l.mergeTree,i),u.forEach(e=>l.fieldNodeSet.add(e))):r.incomingById.set(e,{storeObject:s,mergeTree:Ff(i)?void 0:i,fieldNodeSet:u}),a}return s}processFieldValue(e,t,n,r,i){return t.selectionSet&&null!==e?rp(e)?e.map((e,a)=>{const o=this.processFieldValue(e,t,n,Rf(r,a),[...i,a]);return $f(r,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r,path:i}):e}flattenFields(e,t,n,r=qf(t,e,n.fragmentMap)){const i=/* @__PURE__ */new Map,{policies:a}=this.cache,o=new yd(!1);return function e(s,l){const c=o.lookup(s,l.clientOnly,l.deferred);c.visited||(c.visited=!0,s.selections.forEach(o=>{if(!mp(o,n.variables))return;let{clientOnly:s,deferred:c}=l;if(s&&c||!ap(o.directives)||o.directives.forEach(e=>{const t=e.name.value;if("client"===t&&(s=!0),"defer"===t){const t=cd(e,n.variables);t&&!1===t.if||(c=!0)}}),ip(o)){const e=i.get(o);e&&(s=s&&e.clientOnly,c=c&&e.deferred),i.set(o,Pf(n,s,c))}else{const i=qd(o,n.lookupFragment);if(!i&&"FragmentSpread"===o.kind)throw rd(116,o.name.value);i&&a.fragmentMatches(i,r,t,n.variables)&&e(i.selectionSet,Pf(n,s,c))}}))}(e,n),i}applyMerges(e,t,n,r,i){if(e.map.size&&!Ch(n)){const a=rp(n)||!Ch(t)&&!Uh(t)?void 0:t,o=n;let s;a&&!i&&(i=[Ch(a)?a.__ref:a]);const l=(e,t)=>rp(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{const n=l(a,t),c=l(o,t);if(void 0===c)return;i&&i.push(t);const u=this.applyMerges(e,n,c,r,i);u!==c&&(s=s||/* @__PURE__ */new Map,s.set(t,u)),i&&td(i.pop()===t)}),s&&(n=rp(o)?o.slice(0):{...o},s.forEach((e,t)=>{n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&r.store.getStorage(...i)):n}},jf=[];function Rf({map:e},t){return e.has(t)||e.set(t,jf.pop()||{map:/* @__PURE__ */new Map}),e.get(t)}function Lf(e,t){if(e===t||!t||Ff(t))return e;if(!e||Ff(e))return t;const n=e.info&&t.info?{...e.info,...t.info}:e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?/* @__PURE__ */new Map:e.map.size?e.map:t.map};if(r){const n=new Set(t.map.keys());e.map.forEach((e,r)=>{i.map.set(r,Lf(e,t.map.get(r))),n.delete(r)}),n.forEach(n=>{i.map.set(n,Lf(t.map.get(n),e.map.get(n)))})}return i}function Ff(e){return!e||!(e.info||e.map.size)}function $f({map:e},t){const n=e.get(t);n&&Ff(n)&&(jf.push(n),e.delete(t))}function qf(e,t,n){let r;for(const i of t.selections)if(ip(i)){if("__typename"===i.name.value)return e[fp(i)]}else r?r.push(i):r=[i];if("string"==typeof e.__typename)return e.__typename;if(r)for(const i of r){const t=qf(e,qd(i,n).selectionSet,n);if("string"==typeof t)return t}}var Vf=class extends zh{data;optimisticData;config;watches=/* @__PURE__ */new Set;storeReader;storeWriter;addTypenameTransform=new Nh(_h);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=wf;constructor(e={}){super(),this.config=function(e){return Dd($h,e)}(e),this.policies=new _f({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const e=this.data=new Qh.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){const{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new Mf(this,this.storeReader=new Df({cache:this,fragments:e}),e),this.maybeBroadcastWatch=yh((e,t)=>this.broadcastWatch(e,t),{max:dd["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{const t=e.optimistic?this.optimisticData:this.data;if(nf(t)){const{optimistic:n,id:r,variables:i}=e;return t.makeCacheKey(e.query,e.callback,Gd({optimistic:n,id:r,variables:i}))}}}),
|
|
7
|
+
return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var wu,ku="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Su(e){return Oc(null==e?void 0:e[ku])}function Nu(e){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{!function(e){e.value instanceof _c?Promise.resolve(e.value.v).then(l,c):u(a[0][2],e)}(i[e](t))}catch(WR){u(a[0][3],WR)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}(this,arguments,function(){var t,n,r;return Nc(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,_c(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,_c(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,_c(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Tu(e){return Oc(null==e?void 0:e.getReader)}function Cu(e){if(e instanceof Kc)return e;if(null!=e){if(bu(e))return i=e,new Kc(function(e){var t=i[Qc]();if(Oc(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(gu(e))return r=e,new Kc(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()});if(yu(e))return n=e,new Kc(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Lc)});if(vu(e))return Eu(e);if(Su(e))return t=e,new Kc(function(e){var n,r;try{for(var i=Tc(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(e.next(o),e.closed)return}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()});if(Tu(e))return Eu(Nu(e))}var t,n,r,i;throw xu(e)}function Eu(e){return new Kc(function(t){(function(e,t){var n,r,i,a;return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(WR){a(WR)}}function s(e){try{l(r.throw(e))}catch(WR){a(WR)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function(){var o,s;return Nc(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Tc(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}(e),l.label=1;case 1:return[4,n.next()];case 2:if((r=l.sent()).done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),i={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function _u(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function Ou(e,t){return void 0===t&&(t=0),Zc(function(n,r){n.subscribe(eu(r,function(n){return _u(r,e,function(){return r.next(n)},t)},function(){return _u(r,e,function(){return r.complete()},t)},function(n){return _u(r,e,function(){return r.error(n)},t)}))})}function Au(e,t){return void 0===t&&(t=0),Zc(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function Iu(e,t){if(!e)throw new Error("Iterable cannot be null");return new Kc(function(n){_u(n,t,function(){var r=e[Symbol.asyncIterator]();_u(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function zu(e,t){return t?function(e,t){if(null!=e){if(bu(e))return function(e,t){return Cu(e).pipe(Au(t),Ou(t))}(e,t);if(gu(e))return function(e,t){return new Kc(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(yu(e))return function(e,t){return Cu(e).pipe(Au(t),Ou(t))}(e,t);if(vu(e))return Iu(e,t);if(Su(e))return function(e,t){return new Kc(function(n){var r;return _u(n,t,function(){r=e[ku](),_u(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(a){return void n.error(a)}i?n.complete():n.next(t)},0,!0)}),function(){return Oc(null==r?void 0:r.return)&&r.return()}})}(e,t);if(Tu(e))return function(e,t){return Iu(Nu(e),t)}(e,t)}throw xu(e)}(e,t):Cu(e)}function Du(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zu(e,mu(e))}function Pu(e,t){var n=Oc(e)?e:function(){return e},r=function(e){return e.error(n())};return new Kc(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(wu||(wu={}));var Mu=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var n,r,i,a=e,o=a.kind,s=a.value,l=a.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(n=t.next)||void 0===n||n.call(t,s):"E"===o?null===(r=t.error)||void 0===r||r.call(t,l):null===(i=t.complete)||void 0===i||i.call(t)}(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,a=r.value,o=r.error;return"N"===i?null==e?void 0:e(a):"E"===i?null==t?void 0:t(o):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return Oc(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,i="N"===t?Du(n):"E"===t?Pu(function(){return r}):"C"===t?hu:0;if(!i)throw new TypeError("Unexpected notification kind "+t);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();Ac(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function ju(e,t){return Zc(function(n,r){var i=0;n.subscribe(eu(r,function(n){r.next(e.call(t,n,i++))}))})}function Ru(e,t,n){return void 0===n&&(n=1/0),Oc(t)?Ru(function(n,r){return ju(function(e,i){return t(n,e,r,i)})(Cu(e(n,r)))},n):("number"==typeof t&&(n=t),Zc(function(t,r){return function(e,t,n,r){var i=[],a=0,o=0,s=!1,l=function(){!s||i.length||a||t.complete()},c=function(e){return a<r?u(e):i.push(e)},u=function(e){a++;var s=!1;Cu(n(e,o++)).subscribe(eu(t,function(e){t.next(e)},function(){s=!0},void 0,function(){if(s)try{a--;for(var e=function(){var e=i.shift();u(e)};i.length&&a<r;)e();l()}catch(n){t.error(n)}}))};return e.subscribe(eu(t,c,function(){s=!0,l()})),function(){}}(t,r,e,n)}))}function Lu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(void 0===(n=1)&&(n=1/0),Ru(Jc,n))(zu(e,mu(e)));var n}function Fu(e,t){return Zc(function(n,r){var i=0;n.subscribe(eu(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function $u(e){return Zc(function(t,n){var r,i=null,a=!1;i=t.subscribe(eu(n,void 0,void 0,function(o){r=Cu(e(o,$u(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):a=!0})),a&&(i.unsubscribe(),i=null,r.subscribe(n))})}function qu(e,t){return e===t}function Vu(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new ru}:t,r=e.resetOnError,i=void 0===r||r,a=e.resetOnComplete,o=void 0===a||a,s=e.resetOnRefCountZero,l=void 0===s||s;return function(e){var t,r,a,s=0,c=!1,u=!1,d=function(){null==r||r.unsubscribe(),r=void 0},p=function(){d(),t=a=void 0,c=u=!1},h=function(){var e=t;p(),null==e||e.unsubscribe()};return Zc(function(e,f){s++,u||c||d();var m=a=null!=a?a:n();f.add(function(){0!==--s||u||c||(r=Bu(h,l))}),m.subscribe(f),!t&&s>0&&(t=new Hc({next:function(e){return m.next(e)},error:function(e){u=!0,d(),r=Bu(p,i,e),m.error(e)},complete:function(){c=!0,d(),r=Bu(p,o),m.complete()}}),Cu(e).subscribe(t))})(e)}}function Bu(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0!==t){if(!1!==t){var i=new Hc({next:function(){i.unsubscribe(),e()}});return Cu(t.apply(void 0,Ec([],Cc(n)))).subscribe(i)}}else e()}function Uu(e,t,n){var r,i,a,o,s=!1;return e&&"object"==typeof e?(r=e.bufferSize,o=void 0===r?1/0:r,i=e.windowTime,t=void 0===i?1/0:i,s=void 0!==(a=e.refCount)&&a,n=e.scheduler):o=null!=e?e:1/0,Vu({connector:function(){return new su(o,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Hu(e,t,n){var r=Oc(e)||t||n?{next:e,error:t,complete:n}:e;return r?Zc(function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;e.subscribe(eu(t,function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)},function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()},function(e){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)},function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)}))}):Jc}function Wu(e){try{return e()}catch{}}var Yu=Wu(()=>globalThis)||Wu(()=>window)||Wu(()=>self)||Wu(()=>global)||Wu(function(){return Wu.constructor("return this")()}),Gu="4.2.6",Qu=/* @__PURE__ */new Map;function Ju(e){const t=Qu.get(e)||1;return Qu.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}var Ku="Invariant Violation",Xu=class e extends Error{constructor(t=Ku){super(t),this.name=Ku,Object.setPrototypeOf(this,e.prototype)}},Zu=["debug","log","warn","error","silent"],ed=Zu.indexOf("silent");function td(e,...t){if(!e)throw rd(...t)}function nd(e){return function(t,...n){if(Zu.indexOf(e)>=ed){const r=console[e]||console.log;if("number"==typeof t){const e=t;(t=od(e))||(t=sd(e,n),n=[])}r(t,...n)}}}function rd(e,...t){return new Xu(od(e,t)||sd(e,t))}td.debug=nd("debug"),td.log=nd("log"),td.warn=nd("warn"),td.error=nd("error");var id=Symbol.for("ApolloErrorMessageHandler_"+Gu);function ad(e){if("string"==typeof e)return e;try{return function(e,t=0){const n=Ju("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?n:t,t).split(JSON.stringify(n)).join("<undefined>")}(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function od(e,t=[]){if(e)return Yu[id]&&Yu[id](e,t.map(ad))}function sd(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,ad(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Gu,message:e,args:t.map(ad)}))}`}function ld(e,t,n,r){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){const i={};n.fields.map(e=>ld(i,e.name,e.value,r)),e[t.value]=i}else if("Variable"===n.kind){const i=(r||{})[n.name.value];e[t.value]=i}else if("ListValue"===n.kind)e[t.value]=n.values.map(e=>{const n={};return ld(n,t,e,r),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else{if("NullValue"!==n.kind)throw rd(19,t.value,n.kind);e[t.value]=null}}function cd(e,t){if(e.arguments&&e.arguments.length){const n={};return e.arguments.forEach(({name:e,value:r})=>ld(n,e,r,t)),n}return null}var ud=Symbol.for("apollo.cacheSize"),dd={...Yu[ud]};function pd(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}var hd=()=>Object.create(null),{forEach:fd,slice:md}=Array.prototype,{hasOwnProperty:gd}=Object.prototype,yd=class e{constructor(e=!0,t=hd){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return fd.call(e,e=>t=t.getChildTrie(e)),gd.call(t,"data")?t.data:t.data=this.makeData(md.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(md.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=/* @__PURE__ */new WeakMap:void 0):this.strong||(t?this.strong=/* @__PURE__ */new Map:void 0)}};function bd(){}var vd=class{constructor(e=1/0,t=bd){this.max=e,this.dispose=t,this.map=/* @__PURE__ */new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}};function xd(){}var wd=xd,kd="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},Sd="undefined"!=typeof WeakMap?WeakMap:Map,Nd="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:xd,unregister:xd}},Td=class{constructor(e=1/0,t=wd){this.max=e,this.dispose=t,this.map=new Sd,this.newest=null,this.oldest=null,this.unfinalizedNodes=/* @__PURE__ */new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new kd(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Nd(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}},Cd=/* @__PURE__ */new WeakSet;function Ed(e){e.size<=(e.max||-1)||Cd.has(e)||(Cd.add(e),setTimeout(()=>{e.clean(),Cd.delete(e)},100))}var _d=function(e,t){const n=new Td(e,t);return n.set=function(e,t){const n=Td.prototype.set.call(this,e,t);return Ed(this),n},n},Od=function(e,t){const n=new vd(e,t);return n.set=function(e,t){const n=vd.prototype.set.call(this,e,t);return Ed(this),n},n};function Ad(e,{max:t,makeCacheKey:n=e=>e}){const r=new yd(!0),i=new _d(t);return(...t)=>{const a=r.lookupArray(n(t)),o=i.get(a);if(o){if(o.error)throw o.error;return o.result}const s=i.set(a,{});try{return s.result=e(...t)}catch(l){throw s.error=l,l}}}var Id=Ad((e,t)=>{td(e&&"Document"===e.kind,1);const n=e.definitions.filter(e=>"OperationDefinition"===e.kind);t&&td(1==n.length&&n[0].operation===t,4,t,t,n[0].operation),yl(e,{Field(t,r,i,a){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let r=e,i=[];for(const e of a)r=r[e],"Field"===r.kind&&i.push(r.alias?.value||r.name.value);throw i.splice(-1,1,t.name.value),rd(5,t.alias.value,i.join("."),n[0].operation,pd(e,"(anonymous)"))}}})},{max:dd.checkDocument||2e3}),{toString:zd}=Object.prototype;function Dd(...e){const t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(n=>{const r=e[n];void 0!==r&&(t[n]=r)})}),t}function Pd(e=[]){const t={};return e.forEach(e=>{t[e.name.value]=e}),t}function Md(e){return null!==e&&"object"==typeof e}var{hasOwnProperty:jd}=Object.prototype,Rd=function(e,t,n){return this.merge(e[n],t[n])},Ld=e=>isNaN(+e)?{}:[],Fd=class{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||Rd}merge(e,t,n={}){const r=n.atPath;if(r?.length){const[i,...a]=r;void 0===e&&(e=Ld(i));let o=e[i];void 0===o&&a.length&&(o=Ld(a[0]));const s=this.merge(o,t,{...n,atPath:a});return o!==s&&((e=this.shallowCopyForMerge(e))[i]=s),e}return Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),Md(t)&&Md(e)?(Object.keys(t).forEach(n=>{if(jd.call(e,n)){const r=e[n];if(t[n]!==r){const i=this.reconciler(e,t,n);i!==r&&((e=this.shallowCopyForMerge(e))[n]=i)}}else(e=this.shallowCopyForMerge(e))[n]=t[n]}),e):t}isObject=Md;pastCopies=/* @__PURE__ */new Set;shallowCopyForMerge(e){return Md(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}};function $d(e){const t={},n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(e=>{e.defaultValue&&ld(t,e.variable.name,e.defaultValue)}),t}function qd(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{const n=e.name.value;if("function"==typeof t)return t(n);const r=t&&t[n];return td(r,9,n),r||null}default:return null}}function Vd(e,t){let n=t;const r=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw rd(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(td(1===r.length,11,r.length),n=r[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}},...e.definitions]}}function Bd(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}function Ud(e){let t;Id(e);for(let n of e.definitions){if("OperationDefinition"===n.kind)return n;"FragmentDefinition"!==n.kind||t||(t=n)}if(t)return t;throw rd(12)}function Hd(e){return Id(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}function Wd(e){const t=Hd(e);return td(t&&"query"===t.operation,13),t}var Yd,Gd=Object.assign(function(e){return JSON.stringify(e,Qd)},{reset(){Yd=new Od(dd.canonicalStringify||1e3)}});function Qd(e,t){if(t&&"object"==typeof t){const e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){const n=Object.keys(t);if(n.every(Jd))return t;const r=JSON.stringify(n);let i=Yd.get(r);if(!i){n.sort();const e=JSON.stringify(n);i=Yd.get(e)||n,Yd.set(r,i),Yd.set(e,i)}const a=Object.create(e);return i.forEach(e=>{a[e]=t[e]}),a}}return t}function Jd(e,t,n){return 0===t||n[t-1]<=e}Gd.reset();var Kd=["connection","include","skip","client","rest","export","nonreactive","stream"],Xd=Gd,Zd=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){const e=n.connection.filter?n.connection.filter:[];e.sort();const r={};e.forEach(e=>{r[e]=t[e]});const i=Xd(r);if("{}"!==i)return`${n.connection.key}(${i})`}return n.connection.key}let r=e;if(t){const e=Xd(t);"{}"!==e&&(r+=`(${e})`)}return n&&Object.keys(n).forEach(e=>{-1===Kd.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?r+=`@${e}(${Xd(n[e])})`:r+=`@${e}`)}),r},{setStringify(e){const t=Xd;return Xd=e,t}});function ep(e){return!!e.errors?.length}function tp(e,t,n){const r=new Set(e),i=r.size;return yl(t,{Directive(e){if(r.delete(e.name.value)&&(!n||!r.size))return gl}}),n?!r.size:r.size<i}function np(e){let t=!1;return yl(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value),t))return gl}}}),t}var rp=Array.isArray;function ip(e){return"Field"===e.kind}function ap(e){return Array.isArray(e)&&e.length>0}function op(e){return{__ref:String(e)}}function sp(e){let t=e[0]||{};const n=e.length;if(n>1){const r=new Fd;for(let i=1;i<n;++i)t=r.merge(t,e[i])}return t}function lp(e,t){return Dd(e,t,t.variables&&{variables:Dd({...e&&e.variables,...t.variables})})}function cp(e){return e.catch(()=>{}),e}function up(e,t){Id(t);const n=dp(""),r=dp(""),i=e=>{for(let t,i=0;i<e.length&&(t=e[i]);++i)if(!rp(t)){if("OperationDefinition"===t.kind)return n(t.name&&t.name.value);if("FragmentDefinition"===t.kind)return r(t.name.value)}return td.error(14),null};let a=0;for(let m=t.definitions.length-1;m>=0;--m)"OperationDefinition"===t.definitions[m].kind&&++a;const o=function(e){const t=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}),e=>{let r=t.get(e.name.value);return!r&&n.size&&n.forEach((t,n)=>{n(e)&&(r=t)}),r}}(e),s=e=>ap(e)&&e.map(o).some(e=>e&&e.remove),l=/* @__PURE__ */new Map;let c=!1;const u={enter(e){if(s(e.directives))return c=!0,null}},d=yl(t,{Field:u,InlineFragment:u,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,n,r,a){const o=i(a);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,n,r,a){if(s(e.directives))return c=!0,null;const o=i(a);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,n,r){l.set(JSON.stringify(r),e)},leave:(e,t,n,i)=>e===l.get(JSON.stringify(i))?e:a>0&&e.selectionSet.selections.every(e=>"Field"===e.kind&&"__typename"===e.name.value)?(r(e.name.value).removed=!0,c=!0,null):void 0},Directive:{leave(e){if(o(e))return c=!0,null}}});if(!c)return t;const p=e=>(e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{p(r(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),h=/* @__PURE__ */new Set;d.definitions.forEach(e=>{"OperationDefinition"===e.kind?p(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{h.add(e)}):"FragmentDefinition"!==e.kind||0!==a||r(e.name.value).removed||h.add(e.name.value)}),h.forEach(e=>{p(r(e)).fragmentSpreads.forEach(e=>{h.add(e)})});const f={enter(e){if(t=e.name.value,!h.has(t)||r(t).removed)return null;var t}};return function(e){return pp(Hd(e)||function(e){td("Document"===e.kind,6),td(e.definitions.length<=1,7);const t=e.definitions[0];return td("FragmentDefinition"===t.kind,8),t}(e),Pd(Bd(e)))?null:e}(yl(d,{FragmentSpread:f,FragmentDefinition:f,OperationDefinition:{leave(e){if(e.variableDefinitions){const t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))}function dp(e){const t=/* @__PURE__ */new Map;return function(n=e){let r=t.get(n);return r||t.set(n,r={variables:/* @__PURE__ */new Set,fragmentSpreads:/* @__PURE__ */new Set}),r}}function pp(e,t){return!e||e.selectionSet.selections.every(e=>"FragmentSpread"===e.kind&&pp(t[e.name.value],t))}function hp(e){return yl(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}function fp(e){return e.alias?e.alias.value:e.name.value}function mp({directives:e},t){return!e||!e.length||function(e){const t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;const n=e.arguments,r=e.name.value;td(n&&1===n.length,16,r);const i=n[0];td(i.name&&"if"===i.name.value,17,r);const a=i.value;td(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,r),t.push({directive:e,ifArgument:i})}),t}(e).every(({directive:e,ifArgument:n})=>{let r=!1;return"Variable"===n.value.kind?(r=t&&t[n.value.name.value],td(void 0!==r,15,e.name.value)):r=n.value.value,"skip"===e.name.value?!r:r})}function gp(e){const t={data:e.data};return e.error&&(t.error=e.error),t}function yp(e,t=()=>{}){return n=>new Kc(r=>{let i=t();return n.subscribe({next(t){let n;try{n=e(t,i)}catch(WR){r.error(WR)}void 0!==n&&r.next(n)},error(e){r.error(e)},complete(){r.complete()}})})}var{toString:bp,hasOwnProperty:vp}=Object.prototype,xp=Function.prototype.toString,wp=/* @__PURE__ */new Map;function kp(e,t){try{return Sp(e,t)}finally{wp.clear()}}function Sp(e,t){if(e===t)return!0;const n=bp.call(e);if(n!==bp.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Ep(e,t))return!0;const n=Np(e),r=Np(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!vp.call(t,n[e]))return!1;for(let a=0;a<i;++a){const r=n[a];if(!Sp(e[r],t[r]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Ep(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,a]=e.value;if(!t.has(n))return!1;if(i&&!Sp(a,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=xp.call(e);return n===xp.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,Cp)}}return!1}function Np(e){return Object.keys(e).filter(Tp,e)}function Tp(e){return void 0!==this[e]}var Cp="{ [native code] }";function Ep(e,t){let n=wp.get(e);if(n){if(n.has(t))return!0}else wp.set(e,n=/* @__PURE__ */new Set);return n.add(t),!1}function _p(e,{data:t,...n},{data:r,...i},a){return kp(n,i)&&Op(Ud(e).selectionSet,t,r,{fragmentMap:Pd(Bd(e)),variables:a})}function Op(e,t,n,r){if(t===n)return!0;const i=/* @__PURE__ */new Set;return e.selections.every(e=>{if(i.has(e))return!0;if(i.add(e),!mp(e,r.variables))return!0;if(Ap(e))return!0;if(ip(e)){const i=fp(e),a=t&&t[i],o=n&&n[i],s=e.selectionSet;if(!s)return kp(a,o);const l=Array.isArray(a),c=Array.isArray(o);if(l!==c)return!1;if(l&&c){const e=a.length;if(o.length!==e)return!1;for(let t=0;t<e;++t)if(!Op(s,a[t],o[t],r))return!1;return!0}return Op(s,a,o,r)}{const i=qd(e,r.fragmentMap);if(i)return!!Ap(i)||Op(i.selectionSet,t,n,r)}})}function Ap(e){return!!e.directives&&e.directives.some(Ip)}function Ip(e){return"nonreactive"===e.name.value}var zp=Ad(function(e,t,n){return function(e,t){let n,r;function i(e){return e!==n&&(n=e,r=t(n)),r}return Object.assign(e.pipe(ju(i),Uu({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(e.getCurrentResult())})}(e,n)},{max:1,makeCacheKey:e=>e.slice(0,2)}),Dp=Symbol.for("apollo.result.extensions"),Pp=Symbol.for("apollo.result.streamInfo"),Mp=Symbol.for("apollo.observableQuery.variablesUnknown"),jp=null,Rp={},Lp=1;function Fp(e){try{return e()}catch(t){}}var $p="@wry/context:Slot",qp=Fp(()=>globalThis)||Fp(()=>global)||Object.create(null),Vp=qp[$p]||Array[$p]||function(e){try{Object.defineProperty(qp,$p,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Lp++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=jp;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Rp)break;return e!==jp&&(jp.slots[this.id]=t),!0}return jp&&(jp.slots[this.id]=Rp),!1}getValue(){if(this.hasValue())return jp.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},a=jp;jp={parent:a,slots:i};try{return t.apply(r,n)}finally{jp=a}}static bind(e){const t=jp;return function(){const n=jp;try{return jp=t,e.apply(this,arguments)}finally{jp=n}}}static noContext(e,t,n){if(!jp)return e.apply(n,t);{const r=jp;try{return jp=null,e.apply(n,t)}finally{jp=r}}}}),{bind:Bp,noContext:Up}=Vp,Hp=new Vp,{hasOwnProperty:Wp}=Object.prototype,Yp=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function Gp(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Qp=[];function Jp(e,t){if(!e)throw new Error(t||"assertion failure")}function Kp(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Xp(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Zp(e){return e.slice(0)}var eh=class e{constructor(t){this.fn=t,this.parents=/* @__PURE__ */new Set,this.childValues=/* @__PURE__ */new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(1===this.value.length&&!rh(this))return th(this),this.value[0]}recompute(e){return Jp(!this.recomputing,"already recomputing"),th(this),rh(this)?function(e,t){return uh(e),Hp.withValue(e,nh,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Gp(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(WR){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,rh(e)||ah(e)}(e),Xp(e.value)}(this,e):Xp(this.value)}setDirty(){this.dirty||(this.dirty=!0,ih(this),Gp(this))}dispose(){this.setDirty(),uh(this),oh(this,(e,t)=>{e.setDirty(),dh(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Qp.pop()||/* @__PURE__ */new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Yp(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Qp.push(this.deps),this.deps=null)}};function th(e){const t=Hp.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),rh(e)?sh(t,e):lh(t,e),t}function nh(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=Zp(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!Kp(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(i){}}catch(WR){e.value[1]=WR}e.recomputing=!1}function rh(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function ih(e){oh(e,sh)}function ah(e){oh(e,lh)}function oh(e,t){const n=e.parents.size;if(n){const r=Yp(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function sh(e,t){Jp(e.childValues.has(t)),Jp(rh(t));const n=!rh(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Qp.pop()||/* @__PURE__ */new Set;e.dirtyChildren.add(t),n&&ih(e)}function lh(e,t){Jp(e.childValues.has(t)),Jp(!rh(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,Zp(t.value)):Kp(n,t.value)||e.setDirty(),ch(e,t),rh(e)||ah(e)}function ch(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Qp.length<100&&Qp.push(n),e.dirtyChildren=null))}function uh(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{dh(e,n)}),e.forgetDeps(),Jp(null===e.dirtyChildren)}function dh(e,t){t.parents.delete(e),e.childValues.delete(t),ch(e,t)}eh.count=0;var ph,hh={setDirty:!0,dispose:!0,forget:!0};function fh(e){const t=/* @__PURE__ */new Map,n=e&&e.subscribe;function r(e){const r=Hp.getValue();if(r){let i=t.get(e);i||t.set(e,i=/* @__PURE__ */new Set),r.dependOn(i),"function"==typeof n&&(Gp(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&Wp.call(hh,n)?n:"setDirty";Yp(r).forEach(e=>e[i]()),t.delete(e),Gp(r)}},r}function mh(...e){return(ph||(ph=new yd("function"==typeof WeakMap))).lookupArray(e)}var gh=/* @__PURE__ */new Set;function yh(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=mh,normalizeResult:i,subscribe:a,cache:o=vd}=Object.create(null)){const s="function"==typeof o?new o(t,e=>e.dispose()):o,l=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new eh(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>s.delete(t));const l=o.recompute(Array.prototype.slice.call(arguments));return s.set(t,o),gh.add(s),Hp.hasValue()||(gh.forEach(e=>e.clean()),gh.clear()),l};function c(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:a,cache:s}),l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))},l.peekKey=u,l.peek=function(){return u(r.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}function bh(...e){return mh.bind(null,...e)}var vh=class{isIncrementalResult(e){return!1}prepareRequest(e){return td(!tp(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0},xh=class e{static empty(){return new e(()=>hu)}static from(t){if(0===t.length)return e.empty();const[n,...r]=t;return n.concat(...r)}static split(t,n,r=new e((e,t)=>t(e))){const i=new e((e,i)=>t(e)?n.request(e,i):r.request(e,i));return Object.assign(i,{left:n,right:r})}static execute(e,t,n){return e.request(function(e,{client:t}){const n={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:pd(e.query),operationType:Hd(e.query).operation};let r={...e.context};const i=()=>Object.freeze({...r});return Object.defineProperty(n,"setContext",{enumerable:!1,value:e=>{r="function"==typeof e?{...r,...e(i())}:{...r,...e}}}),Object.defineProperty(n,"getContext",{enumerable:!1,value:i}),Object.defineProperty(n,"client",{enumerable:!1,value:t}),n}(t,n),()=>hu)}static concat(...t){return e.from(t)}constructor(e){e&&(this.request=e)}split(t,n,r){return this.concat(e.split(t,n,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(t,n){const r=new e((e,r)=>t.request(e,e=>n.request(e,r)));return Object.assign(r,{left:t,right:n})}request(e,t){throw rd(65)}left;right},wh=xh.execute;function kh(e){return e}var Sh,Nh=class e{transform;cached;resultCache=/* @__PURE__ */new WeakSet;getCacheKey(e){return[e]}static identity(){return new e(kh,{cache:!1})}static split(t,n,r=e.identity()){return Object.assign(new e(e=>(t(e)?n:r).transformDocument(e),{cache:!1}),{left:n,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){const t=new yd;this.performWork=yh(e.prototype.performWork.bind(this),{makeCacheKey:e=>{const n=this.getCacheKey(e);if(n)return td(Array.isArray(n),20),t.lookupArray(n)},max:dd["documentTransform.cache"],cache:Td})}}performWork(e){return Id(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const t=this.performWork(e);return this.resultCache.add(t),t}concat(t){return Object.assign(new e(e=>t.transformDocument(this.transformDocument(e)),{cache:!1}),{left:this,right:t})}left;right},Th=Object.assign(e=>{let t=Sh.get(e);return t||(t=function(e){return yl(e,vl)}(e),Sh.set(e,t)),t},{reset(){Sh=new _d(dd.print||2e3)}});function Ch(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}Th.reset();var Eh={kind:fs,name:{kind:cs,value:"__typename"}},_h=Object.assign(function(e){return yl(e,{SelectionSet:{enter(e,t,n){if(n&&"OperationDefinition"===n.kind)return;const{selections:r}=e;if(!r)return;if(r.some(e=>"Field"===e.kind&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))return;const i=n;return"Field"===i.kind&&i.directives&&i.directives.some(e=>"export"===e.name.value)?void 0:{...e,selections:[...r,Eh]}}}})},{added:e=>e===Eh});function Oh(e,t){return Hd(e)?.operation===t}function Ah(e){return 7===e||8===e}function Ih(e){return!Ah(e)}var zh=class{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){const t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;let n;return this.performTransaction(()=>n=e.update(this),t),n}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new yd(!0);watchFragment(e){const{fragment:t,fragmentName:n,from:r}=e,i=this.getFragmentDoc(t,n),a=(Array.isArray(r)?r:[r]).map(e=>null==e?e:this.toCacheId(e));if(!Array.isArray(r)){const t=this.watchSingleFragment(a[0],i,e);return null===r?t:zp(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}let o;function s(e){const t=e.reduce((e,t,n)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[n]=t.missing),e),{data:[],dataState:"complete",complete:!0});return kp(o,t)||(o=t),o}if(0===a.length)return jh;let l=!1;const c=a.map(t=>this.watchSingleFragment(t,i,e)),u=function(e){return 0===e.length?hu:new Kc(t=>{const{length:n}=e,r=new Array(n),i=/* @__PURE__ */new Map;e.forEach((e,t)=>{i.has(e)||i.set(e,/* @__PURE__ */new Set),i.get(e).add(t)});let a,o=i.size,s=i.size;i.forEach((n,i)=>{let l=!1;const c=i.subscribe({next:o=>{n.forEach(e=>r[e]=o),l||(l=!0,s--),s||(a||=new Set(e.filter(e=>e.dirty)),a.delete(i),a.size||(t.next(r.slice()),a=void 0))},complete:()=>{o--,o||t.complete()},error:t.error.bind(t)});t.add(c)})})}(c).pipe(ju(s),Hu({subscribe:()=>l=!0,unsubscribe:()=>l=!1}),Uu({bufferSize:1,refCount:!0}));return Object.assign(u,{getCurrentResult:()=>l&&o?o:s(c.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,n){if(null===e)return Ph;const{optimistic:r=!0,variables:i}=n,a=[t,Gd({id:e,optimistic:r,variables:i})],o=this.fragmentWatches.lookupArray(a);if(!o.observable){let c,u=!1;function d(e){const r=e.result;return c&&_p(t,{data:c.data},{data:r},n.variables)||(c={data:r,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}const p=new Kc(n=>{u=!0;const o=this.watch({variables:i,returnPartialData:!0,id:e,query:t,optimistic:r,immediate:!0,callback:e=>{p.dirty=!0,this.onAfterBroadcast(()=>{n.next(d(e)),p.dirty=!1})}});return()=>{u=!1,o(),this.fragmentWatches.removeArray(a)}}).pipe((void 0===l&&(l=Jc),s=null!=s?s:qu,Zc(function(e,t){var n,r=!0;e.subscribe(eu(t,function(e){var i=l(e);!r&&s(n,i)||(r=!1,n=i,t.next(e))}))})),Vu({connector:()=>new su(1),resetOnRefCountZero:()=>function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=pu);var r=-1;return null!=t&&(fu(t)?n=t:r=t),new Kc(function(t){var i,a=(i=e)instanceof Date&&!isNaN(i)?+e-n.now():e;a<0&&(a=0);var o=0;return n.schedule(function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())},a)})}(0)}));o.observable=Object.assign(p,{dirty:!1,getCurrentResult:()=>u&&c?c:d(this.diff({id:e,query:t,returnPartialData:!0,optimistic:r,variables:i}))})}var s,l;return o.observable}getFragmentDoc=yh(Vd,{max:dd["cache.fragmentQueryDocuments"]||1e3,cache:Td,makeCacheKey:bh(this)});readFragment(e,t=!!e.optimistic){const n=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:n,optimistic:t})}writeQuery({id:e,data:t,...n}){return this.write(Object.assign(n,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:n,...r}){const i=void 0!==r.from?this.toCacheId(r.from):r.id;return this.write(Object.assign(r,{query:this.getFragmentDoc(t,n),dataId:i,result:e}))}updateQuery(e,t){return this.batch({update(n){const r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(n){const r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment({...e,data:i}),i)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}},Dh=Object.freeze({data:null,dataState:"complete",complete:!0}),Ph=Object.assign(new Kc(e=>{e.next(Dh)}),{dirty:!1,getCurrentResult:()=>Dh}),Mh=Object.freeze({data:[],dataState:"complete",complete:!0}),jh=Object.assign(new Kc(e=>{e.next(Mh)}),{getCurrentResult:()=>Mh}),Rh=class e extends Error{message;path;query;variables;constructor(t,n,r,i){if(super(t),this.message=t,this.path=n,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=e.prototype}missing},{hasOwnProperty:Lh}=Object.prototype;function Fh({__typename:e,id:t,_id:n},r){if("string"==typeof e&&(r&&(r.keyObject=null!=t?{id:t}:null!=n?{_id:n}:void 0),null==t&&null!=n&&(t=n),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}var $h={dataIdFromObject:Fh,resultCaching:!0},qh=/^[_a-z][_0-9a-z]*/i;function Vh(e){const t=e.match(qh);return t?t[0]:e}function Bh(e,t,n){return!!Md(t)&&(rp(t)?t.every(t=>Bh(e,t,n)):e.selections.every(e=>{if(ip(e)&&mp(e,n)){const r=fp(e);return Lh.call(t,r)&&(!e.selectionSet||Bh(e.selectionSet,t[r],n))}return!0}))}function Uh(e){return Md(e)&&!Ch(e)&&!rp(e)}function Hh(e,t){const n=Pd(Bd(e));return{fragmentMap:n,lookupFragment(e){let r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var Wh={},Yh=()=>Wh,Gh={},Qh=class{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),Lh.call(this.data,e)){const n=this.data[e];if(n&&Lh.call(n,t))return n[t]}return"__typename"===t&&Lh.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Zh?this.parent.get(e,t):void 0}lookup(e,t){return t&&this.group.depend(e,"__exists"),Lh.call(this.data,e)?this.data[e]:this instanceof Zh?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let n;Ch(e)&&(e=e.__ref),Ch(t)&&(t=t.__ref);const r="string"==typeof e?this.lookup(n=e):e,i="string"==typeof t?this.lookup(n=t):t;if(!i)return;td("string"==typeof n,104);const a=new Fd({reconciler:tf}).merge(r,i);if(this.data[n]=a,a!==r&&(delete this.refs[n],this.group.caching)){const e={};r||(e.__exists=1),Object.keys(i).forEach(t=>{if(!r||r[t]!==a[t]){e[t]=1;const n=Vh(t);n===t||this.policies.hasKeyArgs(a.__typename,n)||(e[n]=1),void 0!==a[t]||this instanceof Zh||delete a[t]}}),!e.__typename||r&&r.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(n,e))}}modify(e,t,n){const r=this.lookup(e);if(r){const i={};let a=!1,o=!0;const s={DELETE:Wh,INVALIDATE:Gh,isReference:Ch,toReference:this.toReference,canRead:this.canRead,readField:(t,n)=>this.policies.readField("string"==typeof t?{fieldName:t,from:n||op(e)}:t,{store:this})};if(Object.keys(r).forEach(l=>{const c=Vh(l);let u=r[l];if(void 0===u)return;const d="function"==typeof t?t:t[l]||(n?void 0:t[c]);if(d){let t=d===Yh?Wh:d(u,{...s,fieldName:c,storeFieldName:l,storage:this.getStorage(e,l)});t===Gh?this.group.dirty(e,l):(t===Wh&&(t=void 0),t!==u&&(i[l]=t,a=!0,u=t))}void 0!==u&&(o=!1)}),a)return this.merge(e,i),o&&(this instanceof Zh?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,n){const r=this.lookup(e);if(r){const i=this.getFieldValue(r,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:i,fieldName:t,args:n}):t;return this.modify(e,a?{[a]:Yh}:Yh,!!n)}return!1}evict(e,t){let n=!1;return e.id&&(Lh.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Zh&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n}clear(){this.replace(null)}extract(){const e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{Lh.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&Lh.call(e,t)||this.delete(t)}),e){const{__META:t,...n}=e;Object.keys(n).forEach(e=>{this.merge(e,n[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=/* @__PURE__ */new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof Zh?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),t=this.toObject();e.forEach(n=>{Lh.call(t,n)&&(Object.keys(this.findChildRefIds(n)).forEach(e.add,e),delete t[n])});const n=Object.keys(t);if(n.length){let e=this;for(;e instanceof Zh;)e=e.parent;n.forEach(t=>e.delete(t))}return n}refs={};findChildRefIds(e){if(!Lh.call(this.refs,e)){const t=this.refs[e]={},n=this.data[e];if(!n)return t;const r=/* @__PURE__ */new Set([n]);r.forEach(e=>{Ch(e)&&(t[e.__ref]=!0),Md(e)&&Object.keys(e).forEach(t=>{const n=e[t];Md(n)&&r.add(n)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>Ch(e)?this.get(e.__ref,t):e&&e[t];canRead=e=>Ch(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return op(e);if(Ch(e))return e;const[n]=this.policies.identify(e);if(n){const r=op(n);return t&&this.merge(n,e),r}};get supportsResultCaching(){return this.group.caching}},Jh=class{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?fh():null,this.keyMaker=new yd}depend(e,t){if(this.d){this.d(Kh(e,t));const n=Vh(t);n!==t&&this.d(Kh(e,n)),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(Kh(e,t),"__exists"===t?"forget":"setDirty")}};function Kh(e,t){return t+"#"+e}function Xh(e,t){nf(e)&&e.group.depend(t,"__exists")}Qh.Root=class extends Qh{constructor({policies:e,resultCaching:t=!0,seed:n}){super(e,new Jh(t)),n&&this.replace(n)}stump=new ef(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new yd;getStorage(){return this.storageTrie.lookupArray(arguments)}};var Zh=class e extends Qh{id;parent;replay;group;constructor(e,t,n,r){super(t.policies,r),this.id=e,this.parent=t,this.replay=n,this.group=r,n(this)}addLayer(t,n){return new e(t,this,n,this.group)}removeLayer(e){const t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{const n=this.data[e],r=t.lookup(e);r?n?n!==r&&Object.keys(n).forEach(t=>{kp(n[t],r[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(r).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){const t=this.parent.findChildRefIds(e);return Lh.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}},ef=class extends Zh{constructor(e){super("EntityStore.Stump",e,()=>{},new Jh(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}};function tf(e,t,n){const r=e[n],i=t[n];return kp(r,i)?r:i}function nf(e){return!(!e||!e.supportsResultCaching)}var rf=new Vp;function af(e){const t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";const n=t.arguments?.find(({name:e})=>"mode"===e.value);return n&&"value"in n.value&&"migrate"===n.value.value?"migrate":"unmask"}function of(e,t,n){return rf.withValue(!0,()=>{const r=sf(e,t,n,!1);return Object.isFrozen(e),r})}function sf(e,t,n,r,i){const{knownChanged:a}=n,o=function(e,t){if(t.has(e))return t.get(e);const n=Array.isArray(e)?[]:{};return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(const[i,s]of Array.from(e.entries())){if(null===s){o[i]=null;continue}const e=sf(s,t,n,r,void 0);a.has(e)&&a.add(o),o[i]=e}return a.has(o)?o:e}for(const s of t.selections){let t;if(r&&a.add(o),"Field"===s.kind){const i=fp(s),l=s.selectionSet;if(t=o[i]||e[i],void 0===t)continue;if(l&&null!==t){const o=sf(e[i],l,n,r,void 0);a.has(o)&&(t=o)}o[i]=t}if("InlineFragment"!==s.kind||s.typeCondition&&!n.cache.fragmentMatches(s,e.__typename)||(t=sf(e,s.selectionSet,n,r,i)),"FragmentSpread"===s.kind){const r=s.name.value,a=n.fragmentMap[r]||(n.fragmentMap[r]=n.cache.lookupFragment(r));td(a,39,r);const o=af(s);"mask"!==o&&(t=sf(e,a.selectionSet,n,"migrate"===o,i))}a.has(t)&&a.add(o)}return"__typename"in e&&!("__typename"in o)&&(o.__typename=e.__typename),Object.keys(o).length!==Object.keys(e).length&&a.add(o),a.has(o)?o:e}var lf={};function cf(e){const t=JSON.stringify(e);return lf[t]||(lf[t]={})}function uf(e){const t=cf(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,n)=>{const r=(e,t)=>n.readField(t,e),i=n.keyObject=pf(e,e=>{let i=mf(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&Lh.call(t,e[0])&&(i=mf(t,e,ff)),td(void 0!==i,107,e.join("."),t),i});return`${n.typename}:${JSON.stringify(i)}`})}function df(e){const t=cf(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:n,variables:r,fieldName:i})=>{const a=pf(e,e=>{const i=e[0],a=i.charAt(0);if("@"!==a){if("$"===a){const t=i.slice(1);if(r&&Lh.call(r,t)){const n=e.slice(0);return n[0]=t,mf(r,n)}return}if(t)return mf(t,e)}else if(n&&ap(n.directives)){const t=i.slice(1),a=n.directives.find(e=>e.name.value===t),o=a&&cd(a,r);return o&&mf(o,e.slice(1))}}),o=JSON.stringify(a);return(t||"{}"!==o)&&(i+=":"+o),i})}function pf(e,t){const n=new Fd;return hf(e).reduce((e,r)=>{let i=t(r);if(void 0!==i){for(let e=r.length-1;e>=0;--e)i={[r[e]]:i};e=n.merge(e,i)}return e},{})}function hf(e){const t=cf(e);if(!t.paths){const n=t.paths=[],r=[];e.forEach((t,i)=>{rp(t)?(hf(t).forEach(e=>n.push(r.concat(e))),r.length=0):(r.push(t),rp(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function ff(e,t){return e[t]}function mf(e,t,n){return n=n||ff,gf(t.reduce(function e(t,r){return rp(t)?t.map(t=>e(t,r)):t&&n(t,r)},e))}function gf(e){return Md(e)?rp(e)?e.map(gf):pf(Object.keys(e).sort(),t=>mf(e,t)):e}var yf=new Vp,bf=/* @__PURE__ */new WeakMap;function vf(e){let t=bf.get(e);return t||bf.set(e,t={vars:/* @__PURE__ */new Set,dep:fh()}),t}function xf(e){vf(e).vars.forEach(t=>t.forgetCache(e))}function wf(e){const t=/* @__PURE__ */new Set,n=/* @__PURE__ */new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(e=>{vf(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});const i=Array.from(n);n.clear(),i.forEach(t=>t(e))}}else{const e=yf.getValue();e&&(i(e),vf(e).dep(r))}return e};r.onNextChange=e=>(n.add(e),()=>{n.delete(e)});const i=r.attachCache=e=>(t.add(e),vf(e).vars.add(r),r);return r.forgetCache=e=>t.delete(e),r}function kf(e){return void 0!==e.args?e.args:e.field?cd(e.field,e.variables):null}var Sf=()=>{},Nf=(e,t)=>t.fieldName,Tf=(e,t,{mergeObjects:n})=>n(e,t),Cf=(e,t)=>t,Ef=(e,t,{streamFieldInfo:n,existingData:r})=>{if(!e&&!r)return t;const i=[],a=e??r,o=n?.isLastChunk?t.length:Math.max(a.length,t.length);for(let s=0;s<o;s++)i[s]=void 0===t[s]?a[s]:t[s];return i},_f=class{config;typePolicies={};toBeAdded={};supertypeMap=/* @__PURE__ */new Map;fuzzySubtypes=/* @__PURE__ */new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:Fh,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){const n=this,r=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const i=t&&t.storeObject||e,a={...t,typename:r,storeObject:i,readField:t&&t.readField||((...e)=>{const t=Af(e,i);return n.readField(t,{store:n.cache.data,variables:t.variables})})};let o;const s=r&&this.getTypePolicy(r);let l=s&&s.keyFn||this.config.dataIdFromObject;return rf.withValue(!0,()=>{for(;l;){const t=l({...e,...i},a);if(!rp(t)){o=t;break}l=uf(t)}}),o=o?String(o):void 0,a.keyObject?[o,a.keyObject]:[o]}addTypePolicies(e){Object.keys(e).forEach(t=>{const{queryType:n,mutationType:r,subscriptionType:i,...a}=e[t];n&&this.setRootTypename("Query",t),r&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),Lh.call(this.toBeAdded,t)?this.toBeAdded[t].push(a):this.toBeAdded[t]=[a]})}updateTypePolicy(e,t,n){const r=this.getTypePolicy(e),{keyFields:i,fields:a}=t;function o(e,t){e.merge="function"==typeof t?t:!0===t?Tf:!1===t?Cf:e.merge}o(r,t.merge),r.keyFn=!1===i?Sf:rp(i)?uf(i):"function"==typeof i?i:r.keyFn,a&&Object.keys(a).forEach(t=>{let r=n[t];r&&r?.typename===e||(r=n[t]={typename:e});const i=a[t];if("function"==typeof i)r.read=i;else{const{keyArgs:e,read:t,merge:n}=i;r.keyFn=!1===e?Nf:rp(e)?df(e):"function"==typeof e?e:r.keyFn,"function"==typeof t&&(r.read=t),o(r,n)}r.read&&r.merge&&(r.keyFn=r.keyFn||Nf)})}setRootTypename(e,t=e){const n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(td(!r||r===e,108,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);const n=e.match(qh);n&&n[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!Lh.call(this.typePolicies,e)){const t=this.typePolicies[e]={};t.fields={};let n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,r)=>{if(t.test(e)){const e=this.supertypeMap.get(r);e&&e.forEach(e=>n.add(e))}})),n&&n.size&&n.forEach(e=>{const{fields:n,...r}=this.getTypePolicy(e);Object.assign(t,r),Object.assign(t.fields,n)})}const t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=/* @__PURE__ */new Set),n}fragmentMatches(e,t,n,r){if(!e.typeCondition)return!0;if(!t)return!1;const i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){const a=this.getSupertypeSet(t,!0),o=[a],s=e=>{const t=this.getSupertypeSet(e,!1);t&&t.size&&o.indexOf(t)<0&&o.push(t)};let l=!(!n||!this.fuzzySubtypes.size),c=!1;for(let u=0;u<o.length;++u){const d=o[u];if(d.has(i))return a.has(i)||a.add(i),!0;d.forEach(s),l&&u===o.length-1&&Bh(e.selectionSet,n,r)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((e,n)=>{const r=t.match(e);r&&r[0]===t&&s(n)}))}}return!1}hasKeyArgs(e,t){const n=this.getFieldPolicy(e,t);return!(!n||!n.keyFn)}getStoreFieldName(e){const{typename:t,fieldName:n}=e,r=this.getFieldPolicy(t,n);let i,a=r&&r.keyFn;if(a&&t){const r={typename:t,fieldName:n,field:e.field||null,variables:e.variables},o=kf(e);for(;a;){const e=a(o,r);if(!rp(e)){i=e||n;break}a=df(e)}}return void 0===i&&(i=e.field?function(e,t){let n=null;e.directives&&(n={},e.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:r,value:i})=>ld(n[e.name.value],r,i,t))}));let r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(({name:e,value:n})=>ld(r,e,n,t))),Zd(e.name.value,r,n)}(e.field,e.variables):Zd(n,kf(e))),!1===i?n:n===Vh(i)?i:n+":"+i}readField(e,t){const n=e.from;if(!n)return;if(!e.field&&!e.fieldName)return;if(void 0===e.typename){const r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}const r=this.getStoreFieldName(e),i=Vh(r),a=t.store.getFieldValue(n,r),o=this.getFieldPolicy(e.typename,i),s=o&&o.read;if(s){const i=Of(this,n,e,t,t.store.getStorage(Ch(n)?n.__ref:n,r));return yf.withValue(this.cache,s,[a,i])}return a}getReadFunction(e,t){const n=this.getFieldPolicy(e,t);return n&&n.read}getMergeFunction(e,t,n){let r=this.getFieldPolicy(e,t),i=r&&r.merge;return!i&&n&&(r=this.getTypePolicy(n),i=r&&r.merge),i}runMergeFunction(e,t,{field:n,typename:r,merge:i,path:a},o,s){const l=e;if(i===Tf)return If(o.store)(e,t);if(i===Cf)return t;o.overwrite&&(e=void 0);const c=o.extensions?.[Pp]?.deref()?.peekArray(a);if(c){const{current:e,previous:n}=c;if(n&&kp(n.incoming,t)&&kp(n.streamFieldInfo,e))return n.result}const u=i(e,t,function(e,t,n,r,i,a){const o={...Of(e,void 0,n,r,i),extensions:r.extensions,existingData:a},s=r.extensions;if(s&&Pp in s){const{[Pp]:e,...t}=s,r=e?.deref()?.peekArray(n.path);r&&(o.streamFieldInfo=r.current),o.extensions=0===Object.keys(t).length?void 0:t}return o}(this,0,{typename:r,fieldName:n.name.value,field:n,variables:o.variables,path:a},o,s||{},l));return c&&(c.previous={incoming:t,streamFieldInfo:c.current,result:u}),u}};function Of(e,t,n,r,i){const a=e.getStoreFieldName(n),o=Vh(a),s=n.variables||r.variables,{toReference:l,canRead:c}=r.store;return{args:kf(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:Ch,toReference:l,storage:i,cache:e.cache,canRead:c,readField:(...n)=>e.readField(Af(n,t,s),r),mergeObjects:If(r.store)}}function Af(e,t,n){const{0:r,1:i,length:a}=e;let o;return"string"==typeof r?o={fieldName:r,from:a>1?i:t}:(o={...r},Lh.call(o,"from")||(o.from=t)),void 0===o.variables&&(o.variables=n),o}function If(e){return function(t,n){if(rp(t)||rp(n))throw rd(111);if(Md(t)&&Md(n)){const r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Ch(t)&&Uh(n))return e.merge(t.__ref,n),t;if(Uh(t)&&Ch(n))return e.merge(t,n.__ref),n;if(Uh(t)&&Uh(n))return{...t,...n}}return n}}function zf(e){return[e.selectionSet,e.objectOrReference,e.context]}var Df=class{executeSelectionSet;executeSubSelectedArray;config;knownResults=/* @__PURE__ */new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=yh(e=>{const t=zf(e);return this.executeSelectionSet.peek(...t)||(Xh(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:dd["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:zf,makeCacheKey(e,t,n){if(nf(n.store))return n.store.makeCacheKey(e,Ch(t)?t.__ref:t,n.varString)}}),this.executeSubSelectedArray=yh(e=>(Xh(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:dd["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:n}){if(nf(n.store))return n.store.makeCacheKey(e,t,n.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:n="ROOT_QUERY",variables:r,returnPartialData:i=!0}){const a=this.config.cache.policies;r={...$d(Wd(t)),...r};const o=op(n),s=this.executeSelectionSet({selectionSet:Ud(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:a,variables:r,varString:Gd(r),...Hh(t,this.config.fragments)}});let l;s.missing&&(l=new Rh(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(u){return u}}(s.missing),s.missing,t,r));const c=!l,{result:u}=s;return{result:c?u:i?0===Object.keys(u).length?null:u:null,complete:c,missing:l}}isFresh(e,t,n,r){if(nf(r.store)&&this.knownResults.get(e)===n){const i=this.executeSelectionSet.peek(n,t,r);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:n,context:r}){if(Ch(t)&&!r.policies.rootTypenamesById[t.__ref]&&!r.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};const{variables:i,policies:a,store:o}=r,s=o.getFieldValue(t,"__typename"),l=[];let c;const u=new Fd;function d(e,t){return e.missing&&(c=u.merge(c,{[t]:e.missing})),e.result}"string"!=typeof s||a.rootIdsByTypename[s]||l.push({__typename:s});const p=new Set(e.selections);p.forEach(e=>{if(mp(e,i))if(ip(e)){let i=a.readField({fieldName:e.name.value,field:e,variables:r.variables,from:t},r);const o=fp(e);void 0===i?_h.added(e)||(c=u.merge(c,{[o]:`Can't find field '${e.name.value}' on ${Ch(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):rp(i)?i.length>0&&(i=d(this.executeSubSelectedArray({field:e,array:i,enclosingRef:n,context:r}),o)):e.selectionSet&&null!=i&&(i=d(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:i,enclosingRef:Ch(i)?i:n,context:r}),o)),void 0!==i&&l.push({[o]:i})}else{const t=qd(e,r.lookupFragment);if(!t&&"FragmentSpread"===e.kind)throw rd(112,e.name.value);t&&a.fragmentMatches(t,s)&&t.selectionSet.selections.forEach(p.add,p)}});const h={result:sp(l),missing:c};return h.result&&this.knownResults.set(h.result,e),h}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:n,context:r}){let i,a=new Fd;function o(e,t){return e.missing&&(i=a.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||r.store.canRead(e))),t=t.map((t,i)=>null===t?null:rp(t)?o(this.executeSubSelectedArray({field:e,array:t,enclosingRef:n,context:r}),i):e.selectionSet?o(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:Ch(t)?t:n,context:r}),i):t),{result:t,missing:i}}};function Pf(e,t,n){const r=`${t}${n}`;let i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:{...e,clientOnly:t,deferred:n}),i}var Mf=class{cache;reader;fragments;constructor(e,t,n){this.cache=e,this.reader=t,this.fragments=n}writeToStore(e,{query:t,result:n,dataId:r,variables:i,overwrite:a,extensions:o}){const s=Hd(t),l=new Fd;i={...$d(s),...i};const c={store:e,written:{},merge:(e,t)=>l.merge(e,t),variables:i,varString:Gd(i),...Hh(t,this.fragments),overwrite:!!a,incomingById:/* @__PURE__ */new Map,clientOnly:!1,deferred:!1,flavors:/* @__PURE__ */new Map,extensions:o},u=this.processSelectionSet({result:n||{},dataId:r,selectionSet:s.selectionSet,mergeTree:{map:/* @__PURE__ */new Map},context:c,path:[]});if(!Ch(u))throw rd(114,n);return c.incomingById.forEach(({storeObject:t,mergeTree:n,fieldNodeSet:r},i)=>{const a=op(i);if(n&&n.map.size){const e=this.applyMerges(n,a,t,c);if(Ch(e))return;t=e}e.merge(i,t)}),e.retain(u.__ref),u}processSelectionSet({dataId:e,result:t,selectionSet:n,context:r,mergeTree:i,path:a}){const{policies:o}=this.cache;let s={};const l=e&&o.rootTypenamesById[e]||qf(t,n,r.fragmentMap)||e&&r.store.get(e,"__typename");"string"==typeof l&&(s.__typename=l);const c=(...e)=>{const t=Af(e,s,r.variables);if(Ch(t.from)){const e=r.incomingById.get(t.from.__ref);if(e){const n=o.readField({...t,from:e.storeObject},r);if(void 0!==n)return n}}return o.readField(t,r)},u=/* @__PURE__ */new Set;this.flattenFields(n,t,r,l).forEach((e,n)=>{const r=t[fp(n)],d=[...a,n.name.value];if(u.add(n),void 0!==r){const t=o.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),a=Rf(i,t);let u,p=this.processFieldValue(r,n,n.selectionSet?Pf(e,!1,!1):e,a,d);n.selectionSet&&(Ch(p)||Uh(p))&&(u=c("__typename",p));const h=o.getMergeFunction(l,n.name.value,u);h?a.info={field:n,typename:l,merge:h,path:d}:e.extensions?.[Pp]&&Array.isArray(p)&&function(e){return!!e.directives&&e.directives.some(e=>"stream"===e.name.value)}(n)?a.info={field:n,typename:l,merge:Ef,path:d}:$f(i,t),s=e.merge(s,{[t]:p})}});try{const[i,a]=o.identify(t,{typename:l,selectionSet:n,fragmentMap:r.fragmentMap,storeObject:s,readField:c});e=e||i,a&&(s=r.merge(s,a))}catch(WR){if(!e)throw WR}if("string"==typeof e){const a=op(e),o=r.written[e]||(r.written[e]=[]);if(o.indexOf(n)>=0)return a;if(o.push(n),this.reader&&this.reader.isFresh(t,a,n,r))return a;const l=r.incomingById.get(e);return l?(l.storeObject=r.merge(l.storeObject,s),l.mergeTree=Lf(l.mergeTree,i),u.forEach(e=>l.fieldNodeSet.add(e))):r.incomingById.set(e,{storeObject:s,mergeTree:Ff(i)?void 0:i,fieldNodeSet:u}),a}return s}processFieldValue(e,t,n,r,i){return t.selectionSet&&null!==e?rp(e)?e.map((e,a)=>{const o=this.processFieldValue(e,t,n,Rf(r,a),[...i,a]);return $f(r,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r,path:i}):e}flattenFields(e,t,n,r=qf(t,e,n.fragmentMap)){const i=/* @__PURE__ */new Map,{policies:a}=this.cache,o=new yd(!1);return function e(s,l){const c=o.lookup(s,l.clientOnly,l.deferred);c.visited||(c.visited=!0,s.selections.forEach(o=>{if(!mp(o,n.variables))return;let{clientOnly:s,deferred:c}=l;if(s&&c||!ap(o.directives)||o.directives.forEach(e=>{const t=e.name.value;if("client"===t&&(s=!0),"defer"===t){const t=cd(e,n.variables);t&&!1===t.if||(c=!0)}}),ip(o)){const e=i.get(o);e&&(s=s&&e.clientOnly,c=c&&e.deferred),i.set(o,Pf(n,s,c))}else{const i=qd(o,n.lookupFragment);if(!i&&"FragmentSpread"===o.kind)throw rd(116,o.name.value);i&&a.fragmentMatches(i,r,t,n.variables)&&e(i.selectionSet,Pf(n,s,c))}}))}(e,n),i}applyMerges(e,t,n,r,i){if(e.map.size&&!Ch(n)){const a=rp(n)||!Ch(t)&&!Uh(t)?void 0:t,o=n;let s;a&&!i&&(i=[Ch(a)?a.__ref:a]);const l=(e,t)=>rp(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{const n=l(a,t),c=l(o,t);if(void 0===c)return;i&&i.push(t);const u=this.applyMerges(e,n,c,r,i);u!==c&&(s=s||/* @__PURE__ */new Map,s.set(t,u)),i&&td(i.pop()===t)}),s&&(n=rp(o)?o.slice(0):{...o},s.forEach((e,t)=>{n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&r.store.getStorage(...i)):n}},jf=[];function Rf({map:e},t){return e.has(t)||e.set(t,jf.pop()||{map:/* @__PURE__ */new Map}),e.get(t)}function Lf(e,t){if(e===t||!t||Ff(t))return e;if(!e||Ff(e))return t;const n=e.info&&t.info?{...e.info,...t.info}:e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?/* @__PURE__ */new Map:e.map.size?e.map:t.map};if(r){const n=new Set(t.map.keys());e.map.forEach((e,r)=>{i.map.set(r,Lf(e,t.map.get(r))),n.delete(r)}),n.forEach(n=>{i.map.set(n,Lf(t.map.get(n),e.map.get(n)))})}return i}function Ff(e){return!e||!(e.info||e.map.size)}function $f({map:e},t){const n=e.get(t);n&&Ff(n)&&(jf.push(n),e.delete(t))}function qf(e,t,n){let r;for(const i of t.selections)if(ip(i)){if("__typename"===i.name.value)return e[fp(i)]}else r?r.push(i):r=[i];if("string"==typeof e.__typename)return e.__typename;if(r)for(const i of r){const t=qf(e,qd(i,n).selectionSet,n);if("string"==typeof t)return t}}var Vf=class extends zh{data;optimisticData;config;watches=/* @__PURE__ */new Set;storeReader;storeWriter;addTypenameTransform=new Nh(_h);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=wf;constructor(e={}){super(),this.config=function(e){return Dd($h,e)}(e),this.policies=new _f({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const e=this.data=new Qh.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){const{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new Mf(this,this.storeReader=new Df({cache:this,fragments:e}),e),this.maybeBroadcastWatch=yh((e,t)=>this.broadcastWatch(e,t),{max:dd["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{const t=e.optimistic?this.optimisticData:this.data;if(nf(t)){const{optimistic:n,id:r,variables:i}=e;return t.makeCacheKey(e.query,e.callback,Gd({optimistic:n,id:r,variables:i}))}}}),
|
|
8
8
|
/* @__PURE__ */new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){const{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(Lh.call(e,"id")&&!e.id)return!1;const t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;return this.watches.size||vf(t=this).vars.forEach(e=>e.attachCache(t)),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&xf(this),this.maybeBroadcastWatch.forget(e)}}gc(e){Gd.reset(),Th.reset();const t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(Ch(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(WR){}}evict(e){if(!e.id){if(Lh.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),Gd.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),xf(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){const t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){const{update:t,optimistic:n=!0,removeOptimistic:r,onWatchUpdated:i}=e;let a;const o=e=>{const{data:n,optimisticData:r}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return a=t(this)}finally{--this.txCount,this.data=n,this.optimisticData=r}},s=/* @__PURE__ */new Set;return i&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(s.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,o):!1===n?o(this.data):o(),"string"==typeof r&&(this.optimisticData=this.optimisticData.removeLayer(r)),i&&s.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){const n=i.call(this,e,t);return!1!==n&&s.delete(e),n}}),s.size&&s.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),a}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){const t=this.onAfterBroadcast,n=/* @__PURE__ */new Set;this.onAfterBroadcast=e=>{n.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),n.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){const{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){const{lastDiff:n}=e,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&kp(n.result,r.result)||e.callback(e.lastDiff=r,n)}};function Bf(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function Uf(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function Hf(e){return e.map(e=>e.message||"Error message not found.").join("\n")}var Wf=class e extends Error{static is(e){return Bf(e,"CombinedProtocolErrors")}static formatMessage=Hf;errors;constructor(t){super(e.formatMessage(t,{defaultFormatMessage:Hf})),this.name="CombinedProtocolErrors",this.errors=t,Uf(this),Object.setPrototypeOf(this,e.prototype)}},Yf=class e extends Error{static is(e){return Bf(e,"UnconventionalError")}constructor(t){super("An error of unexpected shape occurred.",{cause:t}),this.name="UnconventionalError",Uf(this),Object.setPrototypeOf(this,e.prototype)}};function Gf(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}var Qf,Jf=class e extends Error{static is(e){return Bf(e,"CombinedGraphQLErrors")}static formatMessage=Gf;errors;data;extensions;constructor(t,n=t.errors||[]){super(e.formatMessage(n,{result:t,defaultFormatMessage:Gf})),this.errors=n,this.data=t.data,this.extensions=t.extensions,this.name="CombinedGraphQLErrors",Uf(this),Object.setPrototypeOf(this,e.prototype)}},Kf=/* @__PURE__ */new WeakSet,Xf=class e extends Error{static is(e){return Bf(e,"ServerError")}response;statusCode;bodyText;constructor(t,n){super(t),this.name="ServerError",this.response=n.response,this.statusCode=n.response.status,this.bodyText=n.bodyText,Uf(this),Object.setPrototypeOf(this,e.prototype)}},Zf=class e extends Error{static is(e){return Bf(e,"ServerParseError")}response;statusCode;bodyText;constructor(t,n){super(t instanceof Error?t.message:"Could not parse server response",{cause:t}),this.name="ServerParseError",this.response=n.response,this.statusCode=n.response.status,this.bodyText=n.bodyText,Uf(this),Object.setPrototypeOf(this,e.prototype)}},em=Symbol();!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(Qf||(Qf={}));var{assign:tm,hasOwnProperty:nm}=Object,rm={loading:!0,networkStatus:Qf.loading,data:void 0,dataState:"empty",partial:!0},im={loading:!1,networkStatus:Qf.ready,data:void 0,dataState:"empty",partial:!0},am=class{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=/* @__PURE__ */new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:n=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:r="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=r,initialFetchPolicy:a=("standby"===i?r:i)}=t;t[Mp]&&(td("standby"===i,82),this.variablesUnknown=!0),this.lastQuery=n,this.options={...t,initialFetchPolicy:a,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const o=Hd(this.query);this.queryName=o&&o.name&&o.name.value}initializeObservablesQueue(){this.subject=new au({query:this.query,variables:this.variables,result:rm,meta:{}});const e=this.subject.pipe(Hu({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),yp(({query:e,variables:t,result:n,meta:r},i)=>{const{shouldEmit:a}=r;if(n===rm&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===a)return;if(1===a)return l();const{previous:o,previousVariables:s}=i;if(o){const r=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,a=i?r.nonReactiveQuery:e;if((i||r.hasNonreactiveDirective?_p(a,o,n,t):kp(o,n))&&kp(s,t))return}if(3!==a||this.options.notifyOnNetworkStatusChange&&!kp(o,n))return l();function l(){return i.previous=n,i.previousVariables=t,n}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new ru,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;!this.queryManager.prioritizeCacheValues||"network-only"!==t&&"cache-and-network"!==t||(t="cache-first");const n=()=>{const e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?Qf.ready:Qf.loading,partial:!e.complete})};switch(t){case"cache-only":return{...n(),loading:!1,networkStatus:Qf.ready};case"cache-first":return n();case"cache-and-network":return{...n(),loading:!0,networkStatus:Qf.loading};case"standby":return im;default:return rm}}resubscribeCache(){const{variables:e,fetchPolicy:t}=this.options,n=this.query,r="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!om({query:n,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((r||i)&&this.unsubscribeFromCache?.(),r||!i)return;const a={query:n,variables:e,optimistic:!0,watcher:this,callback:e=>{const t=this.queryManager.getDocumentInfo(n);if((t.hasClientExports||t.hasForcedResolvers)&&(a.lastDiff=void 0),a.lastOwnDiff===e)return;const{result:r}=this.subject.getValue();(e.complete||!r.error&&r!==rm&&r!==im)&&(kp(r.data,e.result)||this.scheduleNotify())}},o=this.cache.watch(a);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,o()},{query:n,variables:e})}stableLastResult;getCurrentResult(){const{result:e}=this.subject.getValue();let t=e.networkStatus===Qf.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===rm&&(t=this.getInitialResult()),kp(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){const{fetchPolicy:t}=this.options,n={pollInterval:0};return n.fetchPolicy="no-cache"===t?"no-cache":"network-only",e&&!kp(this.variables,e)&&(n.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(n,{newNetworkStatus:Qf.refetch})}fetchMore({query:e,variables:t,context:n,errorPolicy:r,updateQuery:i}){td("cache-only"!==this.options.fetchPolicy,84,pd(this.query,"(anonymous)"));const a={...Dd(this.options,{errorPolicy:"none"},{query:e,context:n,errorPolicy:r}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};a.query=this.transformDocument(a.query),this.lastQuery=e?this.transformDocument(this.options.query):a.query;let o=!1;const s="no-cache"!==this.options.fetchPolicy;s||td(i,85);const{finalize:l,pushNotification:c}=this.pushOperation(Qf.fetchMore);c({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:u,operator:d}=sm(),{observable:p}=this.queryManager.fetchObservableWithInfo(a,{networkStatus:Qf.fetchMore,exposeExtensions:!0}),h=p.pipe(d,Fu(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{o=!1;const t=e.value,n=t[Dp];if(Ah(e.value.networkStatus)&&l(),s){const e=this.getCacheDiff();this.cache.batch({update:e=>{i?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:n},e=>i(e,{fetchMoreResult:t.data,variables:a.variables})):e.writeQuery({query:a.query,variables:a.variables,data:t.data,extensions:n})},onWatchUpdated:(n,r)=>{if(n.watcher===this&&!kp(r.result,e.result)){o=!0;const e=this.getCurrentResult();Ih(t.networkStatus)&&c({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===Qf.error?Qf.ready:t.networkStatus,loading:!1,data:r.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{const e=this.getCurrentResult(),n=i(e.data,{fetchMoreResult:t.data,variables:a.variables});c({kind:"N",value:{...e,networkStatus:Qf.ready,loading:!1,data:n,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return cp(u.then(e=>gp(this.maskResult(e))).finally(()=>{if(h.unsubscribe(),l(),s&&!o){const e=this.getCurrentResult();"streaming"===e.dataState?c({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:Qf.ready}}):c({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){const t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{const{updateQuery:n,onError:r}=e,{error:i}=t;i?r?r(i):td.error(86,i):n&&this.updateQuery((e,r)=>n(e,{subscriptionData:t,...r}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){const t=Dd(this.options,e||{});tm(this.options,t),this.updatePolling()}async setVariables(e){return e=this.getVariablesWithDefaults(e),kp(this.variables,e)?gp(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:Qf.setVariables}):gp(this.getCurrentResult()))}updateQuery(e){const{queryManager:t}=this,{result:n,complete:r}=this.getCacheDiff({optimistic:!1}),i=e(n,{variables:this.variables,complete:!!r,previousData:n});i&&(this.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){const{fetchPolicy:n="cache-first",initialFetchPolicy:r=n}=t;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,n,{reason:e,options:t,observable:this,initialFetchPolicy:r}):t.fetchPolicy="variables-changed"===e?r:t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,n,r){const i=this.options.fetchPolicy;e.context??={};let a=!1,{observable:o,fromLink:s}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:n,onCacheHit:()=>{a=!0},fetchQueryOperator:e=>new Kc(n=>{try{return e.subscribe({next(e){a=!0,n.next(e)},error:e=>n.error(e),complete:()=>n.complete()})}finally{a||(u.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:l,variables:c,meta:{shouldEmit:3,fetchPolicy:i}}))}}),observableQuery:this});const{query:l,variables:c}=this,u={abort:()=>{p.unsubscribe()},query:l,variables:c};this.activeOperations.add(u);let d=t==Qf.refetch||t==Qf.setVariables;o=o.pipe(r,Vu());const p=o.pipe(Hu({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?u.override=t:delete u.override},finalize:()=>this.activeOperations.delete(u)})).subscribe({next:e=>{const t={};d&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(d=!1,t.shouldEmit=1),this.input.next({...e,query:l,variables:c,meta:t})}});return{fromLink:s,subscription:p,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:e,options:{fetchPolicy:t,pollInterval:n}}=this,r=()=>{const{options:e}=this;return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(r())return void this.cancelPolling();if(e?.interval===n)return;(e||(this.pollingInfo={})).interval=n;const i=()=>{if(r())return this.cancelPolling();this.pollingInfo&&(Ih(this.networkStatus)||this.options.skipPollAttempt?.()?a():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:Qf.poll}).then(a,a))},a=()=>{const e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(i,e.interval))};a()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:n}=t||{};this.queryManager.obsQueries.add(this);const r=n===Qf.refetch||n===Qf.poll,i=this.variables,a=this.options.fetchPolicy,o=Dd(this.options,e||{});this.variablesUnknown&&="standby"===o.fetchPolicy;const s=r?o:tm(this.options,o),l=this.transformDocument(s.query);this.lastQuery=l,e&&"variables"in e&&(s.variables=this.getVariablesWithDefaults(e.variables)),r||(this.updatePolling(),!e||!e.variables||kp(e.variables,i)||"standby"===s.fetchPolicy||s.fetchPolicy!==a&&"function"!=typeof s.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",s),void 0===n&&(n=Qf.setVariables)));const c=this.networkStatus;n||(n=Qf.loading,c!==Qf.loading&&e?.variables&&!kp(e.variables,i)&&(n=Qf.setVariables),"standby"===s.fetchPolicy&&(n=Qf.ready)),"standby"===s.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();const{promise:u,operator:d}=sm("standby"===s.fetchPolicy?{data:void 0}:void 0),{subscription:p,observable:h,fromLink:f}=this.fetch(s,n,l,d);r||!f&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=p);const m=Object.assign(cp(u.then(e=>gp(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{const e=h.subscribe({}),t=()=>e.unsubscribe();return u.then(t,t),m}});return m}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){const t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){const e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}const{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){const e=this.getCacheDiff();kp(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:Qf.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=/* @__PURE__ */new Set;pushOperation(e){let t=!1;const{query:n,variables:r}=this,i=()=>{this.activeOperations.delete(a)},a={override:e,abort:()=>{t=!0,i()},query:n,variables:r};return this.activeOperations.add(a),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:n,variables:r,meta:{...i}})}}}calculateNetworkStatus(e){return e===Qf.streaming?e:Array.from(this.activeOperations.values()).reverse().find(e=>om(e,this)&&void 0!==e.override)?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){const e="cache-only"===this.options.fetchPolicy;this.setResult(e?im:rm,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=yp(e=>{const{query:t,variables:n,meta:r}=e;if("setResult"===e.source)return{query:t,variables:n,result:e.value,meta:r};if("C"===e.kind||!om(e,this))return;let i;const a=this.subject.getValue();if("cache"===e.source){if(i=e.value,i.networkStatus===Qf.ready&&i.partial&&(!this.options.returnPartialData||a.result.networkStatus===Qf.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),i="E"===e.kind?{...om(a,e)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:Qf.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===i.dataState&&(i.dataState="complete"),i.error&&(r.shouldEmit=1);else if("newNetworkStatus"===e.source){const t=om(a,e)?a.result:this.getInitialResult(r.fetchPolicy),{resetError:n}=e.value,o=n?void 0:t.error,s=o?Qf.error:Qf.ready;i={...t,error:o,networkStatus:s}}return td(i),i.error||delete i.error,i.networkStatus=this.calculateNetworkStatus(i.networkStatus),i.loading=Ih(i.networkStatus),i=this.maskResult(i),void 0!==a.result.data&&i.data!==a.result.data&&kp(i.data,a.result.data)&&(i.data=a.result.data),{query:t,variables:n,result:i,meta:r}});reobserveCacheFirst(){const{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(n,r){return this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(n,r):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}};function om(e,t){return!!(e&&t&&e.query===t.query&&kp(e.variables,t.variables))}function sm(e){let t,n,r=e;return{promise:new Promise((e,r)=>{t=e,n=r}),operator:Hu({next(e){if("E"===e.kind)return n(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(r=e.value)},finalize:()=>{if(r)t(r);else{const e="The operation was aborted.",t="AbortError";n("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(/* @__PURE__ */new Error(e),{name:t}))}}})}}var lm={},cm=/* @__PURE__ */new WeakMap;function um(e,t){const n=e[t];"function"==typeof n&&(e[t]=function(){return cm.set(e,(cm.get(e)+1)%1e15),n.apply(this,arguments)})}var dm=/* @__PURE__ */new WeakMap,pm=class{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){const n=this.cache=e.cache,r=(dm.get(e)||0)+1;dm.set(e,r),this.id=r+"",this.observableQuery=t,this.queryManager=e,cm.has(n)||(cm.set(n,0),um(n,"evict"),um(n,"modify"),um(n,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){const{lastWrite:n}=this;return!(n&&n.dmCount===cm.get(this.cache)&&kp(t,n.variables)&&kp(e.data,n.result.data)&&e.extensions?.[Pp]===n.result.extensions?.[Pp])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,n){const{incrementalHandler:r}=this.queryManager;return r.isIncrementalResult(t)?(this.incremental||=r.startRequest({query:n}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:n,errorPolicy:r,cacheWriteBehavior:i}){const a={query:t,variables:n,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();const o=0===i,s=o?void 0:this.cache.diff(a);let l=this.maybeHandleIncrementalResult(s?.result,e,t);return o||(hm(l,r)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:e=>{if(this.shouldWrite(l,n))e.writeQuery({query:t,data:l.data,variables:n,overwrite:1===i,extensions:l.extensions}),this.lastWrite={result:l,variables:n,dmCount:cm.get(this.cache)};else if(s&&s.complete)return void(l={...l,data:s.result});const r=e.diff(a);r.complete&&(l={...l,data:r.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,n=this.cache){const r=[],i=0===t.cacheWriteBehavior;let a=this.maybeHandleIncrementalResult(i?void 0:n.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(a={...a,errors:[]}),ep(a)&&"none"===t.errorPolicy)return Promise.resolve(a);const o=()=>({...a,dataState:this.hasNext?"streaming":"complete"});if(!i&&hm(a,t.errorPolicy)){r.push({result:a.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:a.extensions});const{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{const n=t&&t.queryName;if(!n||!Object.hasOwnProperty.call(e,n))return;const i=e[n],{query:a,variables:s}=t,{result:l,complete:c}=t.getCacheDiff({optimistic:!1});if(c&&l){const e=i(l,{mutationResult:o(),queryName:a&&pd(a)||void 0,queryVariables:s});e&&r.push({result:e,dataId:"ROOT_QUERY",query:a,variables:s})}})}let s=t.refetchQueries;if("function"==typeof s&&(s=s(o())),r.length>0||(s||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){const e=[];if(this.queryManager.refetchQueries({updateCache:e=>{i||r.forEach(t=>e.write(t));const{update:n}=t;if(n){if(!i){const n=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});n.complete&&(a={...a,data:n.result})}this.hasNext||n(e,a,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:n})=>"__typename"===t?e:n})},include:s,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>a)}return Promise.resolve(a)}markMutationOptimistic(e,t){const n="function"==typeof e?e(t.variables,{IGNORE:lm}):e;return n!==lm&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:n},t,e)}catch(r){td.error(r)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:n,errorPolicy:r,cacheWriteBehavior:i}){0!==i&&(hm(e,r)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:n,extensions:e.extensions}),this.queryManager.broadcastQueries())}};function hm(e,t="none"){const n="ignore"===t||"all"===t;let r=!ep(e);return!r&&n&&e.data&&(r=!0),r}var fm=class{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=/* @__PURE__ */new Set;fetchCancelFns=/* @__PURE__ */new Map;constructor(e){const t=new Nh(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const n=e.documentTransform;this.documentTransform=n?t.concat(n).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches(rd(89))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:n,updateQueries:r,refetchQueries:i=[],awaitRefetchQueries:a=!1,update:o,onQueryUpdated:s,fetchPolicy:l,errorPolicy:c,keepRootFields:u,context:d}){const p=new pm(this);e=this.cache.transformForLink(this.transform(e));const{hasClientExports:h}=this.getDocumentInfo(e);t=this.getVariables(e,t),h&&(t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:d}));const f=this.mutationStore&&(this.mutationStore[p.id]={mutation:e,variables:t,loading:!0,error:null}),m=n&&p.markMutationOptimistic(n,{document:e,variables:t,cacheWriteBehavior:"no-cache"===l?0:2,errorPolicy:c,context:d,updateQueries:r,update:o,keepRootFields:u});return this.broadcastQueries(),new Promise((h,g)=>{const y={};return this.getObservableFromLink(e,{...d,optimisticResponse:m?n:void 0},t,l,{},!1).observable.pipe(mm(),Ru(n=>{const h={...n};return zu(p.markMutationResult(h,{document:e,variables:t,cacheWriteBehavior:"no-cache"===l?0:2,errorPolicy:c,context:d,update:o,updateQueries:r,awaitRefetchQueries:a,refetchQueries:i,removeOptimistic:m?p.id:void 0,onQueryUpdated:s,keepRootFields:u}))})).pipe(ju(e=>{if(ep(e)&&"none"===c)throw new Jf(ym(e));return f&&(f.loading=!1,f.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!p.hasNext){const n={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:y})};ep(t)&&(n.error=new Jf(t)),Object.keys(t.extensions||{}).length&&(n.extensions=t.extensions),h(n)}},error:e=>(f&&(f.loading=!1,f.error=e),m&&this.cache.removeOptimistic(p.id),this.broadcastQueries(),"ignore"===c?h({data:void 0}):"all"===c?h({data:void 0,error:e}):void g(e))})})}fetchQuery(e,t){return Id(e.query,as),(async()=>{return n=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(yp(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return gp(e.value)}})),r={defaultValue:{data:void 0}},new Promise(function(e,t){var i,a=!1;n.subscribe({next:function(e){i=e,a=!0},error:t,complete:function(){e(a?i:r.defaultValue)}})});var n,r})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new _d(dd["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){const{transformCache:t}=this;if(!t.has(e)){const n=Hd(e),r={hasClientExports:tp(["client","export"],e,!0),hasForcedResolvers:np(e),hasNonreactiveDirective:tp(["nonreactive"],e),hasIncrementalDirective:tp(["defer"],e),nonReactiveQuery:gm(e),clientQuery:tp(["client"],e)?e:null,serverQuery:up([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:$d(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,r)}const n=t.get(e);if(n.violation)throw n.violation;return n}getVariables(e,t){const n=this.getDocumentInfo(e).defaultVars,r=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?n[e]:t]);return{...n,...Object.fromEntries(r)}}watchQuery(e){Id(e.query,as);const t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new am({queryManager:this,options:e,transformedQuery:t})}query(e){const t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(n=>({...n,data:this.maskOperation({document:t,data:n?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches(rd(91)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){const t=/* @__PURE__ */new Set,n=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map,i=/* @__PURE__ */new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)n.set(e,e),r.set(e,!1);else if(Md(t=e)&&"Document"===t.kind&&Array.isArray(t.definitions)){const t=Th(this.transform(e));n.set(t,pd(e)),r.set(t,!1)}else Md(e)&&e.query&&i.add(e);var t}),this.obsQueries.forEach(n=>{const i=Th(this.transform(n.options.query));if("all"===e)return void t.add(n);const{queryName:a,options:{fetchPolicy:o}}=n;"active"===e&&"standby"===o||("active"===e||a&&r.has(a)||i&&r.has(i))&&(t.add(n),a&&r.set(a,!0),i&&r.set(i,!0))}),i.size&&i.forEach(e=>{const n=new am({queryManager:this,options:{...lp(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(n)}),t}refetchObservableQueries(e=!1){const t=[];return this.getObservableQueries(e?"all":"active").forEach(n=>{const{fetchPolicy:r}=n.options;!e&&"standby"===r||"cache-only"===r||t.push(n.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let{query:t,variables:n}=e;const{fetchPolicy:r="cache-first",errorPolicy:i="none",context:a={},extensions:o={}}=e;let s;Id(t,ss),t=this.transform(t),n=this.getVariables(t,n);const l=(this.getDocumentInfo(t).hasClientExports?zu(this.localState.getExportedVariables({client:this.client,document:t,variables:n,context:a})):Du(n)).pipe(Ru(e=>{const{observable:n,restart:l}=this.getObservableFromLink(t,a,e,r,o),c=new pm(this);return s=l,n.pipe(ju(n=>{c.markSubscriptionResult(n,{document:t,variables:e,errorPolicy:i,cacheWriteBehavior:"no-cache"===r?0:2});const a={data:n.data??void 0};return ep(n)?a.error=new Jf(n):function(e){return"extensions"in e&&Wf.is(e.extensions[em])}(n)&&(a.error=n.extensions[em],delete n.extensions[em]),n.extensions&&Object.keys(n.extensions).length&&(a.extensions=n.extensions),a.error&&"none"===i&&(a.data=void 0),"ignore"===i&&delete a.error,a}),$u(e=>Du("ignore"===i?{data:void 0}:{data:void 0,error:e})),Fu(e=>!(!e.data&&!e.error)))}));return Object.assign(l,{restart:()=>s?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new yd(!1);getObservableFromLink(e,t,n,r,i,a=t?.queryDeduplication??this.queryDeduplication){let o={};const{serverQuery:s,clientQuery:l,operationType:c,hasIncrementalDirective:u}=this.getDocumentInfo(e),d=pd(e),p={client:this.client};if(s){const{inFlightLinkObservables:m,link:g}=this;try{const y=this.incrementalHandler.prepareRequest({query:s,variables:n,context:{...this.defaultContext,...t,queryDeduplication:a},extensions:i});function b(e){return new Kc(t=>{function n(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let r=n();return o.restart||=()=>{r.unsubscribe(),r=n()},()=>{r.unsubscribe(),o.restart=void 0}})}if(t=y.context,a){const v=Th(s),x=Gd(n);o=m.lookup(v,x),o.observable||(o.observable=wh(g,y,p).pipe(b,(h=()=>{m.peek(v,x)===o&&m.remove(v,x)},Zc(function(e,t){try{e.subscribe(t)}finally{t.add(h)}})),c===ss?Vu():Uu({refCount:!0})))}else o.observable=wh(g,y,p).pipe(b)}catch(f){o.observable=Pu(()=>f)}}else o.observable=Du({data:{}});var h;if(l){const{operation:w}=Hd(e);td(!u,96,w[0].toUpperCase()+w.slice(1),d??"(anonymous)"),o.observable=o.observable.pipe(Ru(e=>zu(this.localState.execute({client:this.client,document:l,remoteResult:e,context:t,variables:n,fetchPolicy:r}))))}return{restart:()=>o.restart?.(),observable:o.observable.pipe($u(e=>{throw function(e){Kf.add(e)}(e=function(e){return function(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)}(e)?e:"string"==typeof e?new Error(e,{cause:e}):new Yf(e)}(e)),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:n,observableQuery:r,exposeExtensions:i}){const a=t.lastRequestId=this.generateRequestId(),{errorPolicy:o}=e,s=this.cache.transformForLink(e.query);return this.getObservableFromLink(s,e.context,e.variables,e.fetchPolicy).observable.pipe(ju(a=>{const l=t.markQueryResult(a,{...e,document:s,cacheWriteBehavior:n}),c=ep(l);if(c&&"none"===o)throw t.resetLastWrite(),r?.resetNotifications(),new Jf(ym(l));const u={data:l.data,...t.hasNext?{loading:!0,networkStatus:Qf.streaming,dataState:"streaming",partial:!0}:{dataState:l.data?"complete":"empty",loading:!1,networkStatus:Qf.ready,partial:!l.data}};return i&&"extensions"in l&&(u[Dp]=l.extensions),c&&("none"===o&&(u.data=void 0,u.dataState="empty"),"ignore"!==o&&(u.error=new Jf(ym(l)),"streaming"!==u.dataState&&(u.networkStatus=Qf.error))),u}),$u(e=>{if(a>=t.lastRequestId&&"none"===o)throw t.resetLastWrite(),r?.resetNotifications(),e;const n={data:void 0,dataState:"empty",loading:!1,networkStatus:Qf.ready,partial:!0};return"ignore"!==o&&(n.error=e,n.networkStatus=Qf.error),Du(n)}))}fetchObservableWithInfo(e,{networkStatus:t=Qf.loading,query:n=e.query,fetchQueryOperator:r=e=>e,onCacheHit:i=()=>{},observableQuery:a,exposeExtensions:o}){const s=this.getVariables(n,e.variables);let{fetchPolicy:l="cache-first",errorPolicy:c="none",returnPartialData:u=!1,notifyOnNetworkStatusChange:d=!0,context:p={}}=e;!this.prioritizeCacheValues||"network-only"!==l&&"cache-and-network"!==l||(l="cache-first");const h=Object.assign({},e,{query:n,variables:s,fetchPolicy:l,errorPolicy:c,returnPartialData:u,notifyOnNetworkStatusChange:d,context:p}),f=new pm(this,a),m=n=>{h.variables=n;const s="no-cache"===l?0:t===Qf.refetch&&"merge"!==h.refetchWritePolicy?1:2,c=this.fetchQueryByPolicy(h,{queryInfo:f,cacheWriteBehavior:s,onCacheHit:i,observableQuery:a,exposeExtensions:o});return c.observable=c.observable.pipe(r),"standby"!==h.fetchPolicy&&a?.applyNextFetchPolicy("after-fetch",e),c},g=()=>{this.fetchCancelFns.delete(f.id)};this.fetchCancelFns.set(f.id,e=>{y.next({kind:"E",error:e,source:"network"})});const y=new ru;let b,v;if(this.getDocumentInfo(h.query).hasClientExports)b=zu(this.localState.getExportedVariables({client:this.client,document:h.query,variables:h.variables,context:h.context})).pipe(Ru(e=>m(e).observable)),v=!0;else{const e=m(h.variables);v=e.fromLink,b=e.observable}return{observable:new Kc(e=>{e.add(g),b.subscribe(e),y.subscribe(e)}).pipe(Vu()),fromLink:v}}refetchQueries({updateCache:e,include:t,optimistic:n=!1,removeOptimistic:r=(n?Ju("refetchQueries"):void 0),onQueryUpdated:i}){const a=/* @__PURE__ */new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;const t=e.getCurrentResult();a.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});const o=/* @__PURE__ */new Map;if(e){const t=/* @__PURE__ */new Set;this.cache.batch({update:e,optimistic:n&&r||!1,removeOptimistic:r,onWatchUpdated(e,n,r){const s=e.watcher;if(s instanceof am&&!t.has(s)){if(t.add(s),i){a.delete(s);let e=i(s,n,r);return!0===e&&(e=s.refetch().retain()),!1!==e&&o.set(s,e),e}null!==i&&"cache-only"!==s.options.fetchPolicy&&a.set(s,{oq:s,lastDiff:r,diff:n})}}})}return a.size&&a.forEach(({oq:e,lastDiff:t,diff:n})=>{let r;i&&(n||(n=e.getCacheDiff()),r=i(e,n,t)),i&&!0!==r||(r=e.refetch().retain()),!1!==r&&o.set(e,r)}),r&&this.cache.removeOptimistic(r),o}noCacheWarningsByCause=/* @__PURE__ */new WeakSet;maskOperation(e){const{document:t,data:n}=e;return this.dataMasking?function(e,t,n){const r=Hd(t);return td(r,43),null==e?e:of(e,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:Pd(Bd(t)),cache:n,mutableTargets:/* @__PURE__ */new WeakMap,knownChanged:/* @__PURE__ */new WeakSet})}(n,t,this.cache):n}maskFragment(e){const{data:t,fragment:n,fragmentName:r}=e;return this.dataMasking?function(e,t,n,r){const i=t.definitions.filter(e=>e.kind===vs);void 0===r&&(td(1===i.length,41,i.length),r=i[0].name.value);const a=i.find(e=>e.name.value===r);return td(!!a,42,r),null==e||kp(e,{})?e:of(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:Pd(Bd(t)),cache:n,mutableTargets:/* @__PURE__ */new WeakMap,knownChanged:/* @__PURE__ */new WeakSet})}(t,n,this.cache,r):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:n,errorPolicy:r,returnPartialData:i,context:a},{cacheWriteBehavior:o,onCacheHit:s,queryInfo:l,observableQuery:c,exposeExtensions:u}){const d=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),p=(o,l)=>{const c=o.result,u=e=>(o.complete||i||(e=void 0),{data:e,dataState:o.complete?"complete":e?"partial":"empty",loading:Ih(l),networkStatus:l,partial:!o.complete}),d=e=>Du({kind:"N",value:u(e),source:"cache"});return(o.complete||i)&&this.getDocumentInfo(e).hasForcedResolvers?(s(),zu(this.localState.execute({client:this.client,document:e,remoteResult:c?{data:c}:void 0,context:a,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:n}).then(e=>({kind:"N",value:u(e.data||void 0),source:"cache"})))):"none"===r&&l===Qf.refetch&&o.missing?d(void 0):d(c||void 0)},h=()=>this.getResultsFromLink({query:e,variables:t,context:a,fetchPolicy:n,errorPolicy:r},{cacheWriteBehavior:o,queryInfo:l,observableQuery:c,exposeExtensions:u}).pipe(mm(),Zc(function(e,t){e.subscribe(eu(t,function(e){t.next(Mu.createNext(e))},function(){t.next(Mu.createComplete()),t.complete()},function(e){t.next(Mu.createError(e)),t.complete()}))}),ju(e=>({...e,source:"network"})));switch(n){default:case"cache-first":{const e=d();return e.complete?{fromLink:!1,observable:p(e,Qf.ready)}:i?{fromLink:!0,observable:Lu(p(e,Qf.loading),h())}:{fromLink:!0,observable:h()}}case"cache-and-network":{const e=d();return e.complete||i?{fromLink:!0,observable:Lu(p(e,Qf.loading),h())}:{fromLink:!0,observable:h()}}case"cache-only":return{fromLink:!1,observable:Lu(p(d(),Qf.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:h()};case"standby":return{fromLink:!1,observable:hu}}}};function mm(){let e=!1;return Hu({next(){e=!0},complete(){td(e,100)}})}function gm(e){return yl(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:As,name:{kind:cs,value:"nonreactive"}}]}}})}function ym(e){if(null==e.extensions?.[Pp])return e;const{extensions:{[Pp]:t,...n},...r}=e;return Object.keys(n).length>0&&(r.extensions=n),r}var bm=class{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){const{cache:t,documentTransform:n,ssrMode:r=!1,ssrForceFetchDelay:i=0,queryDeduplication:a=!0,defaultOptions:o,defaultContext:s,assumeImmutableResults:l=t.assumeImmutableResults,localState:c,devtools:u,dataMasking:d,link:p,incrementalHandler:h=new vh,experiments:f=[],refetchEventManager:m}=e;this.link=p,this.cache=t,this.queryDeduplication=a,this.defaultOptions=o||{},this.devtoolsConfig={...u,enabled:u?.enabled??!1},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=Gu,this.queryManager=new fm({client:this,defaultOptions:this.defaultOptions,defaultContext:s,documentTransform:n,queryDeduplication:a,ssrMode:r,dataMasking:!!d,clientOptions:e,incrementalHandler:h,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:c}),this.prioritizeCacheValues=r||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools(),f.forEach(t=>t.call(this,e)),this.refetchEventManager=m,this.refetchEventManager?.connect(this)}connectToDevTools(){if("undefined"==typeof window)return;const e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(e){const{refetchOn:t}=e;if(this.defaultOptions.watchQuery){const n=this.defaultOptions.watchQuery.refetchOn;let r;t&&"object"==typeof t&&("object"==typeof n?r={...n,...t}:null!=n&&(r=e=>{const r=t[e.source]??n;return"function"==typeof r?r(e):r})),e=lp(this.defaultOptions.watchQuery,e),r&&(e.refetchOn=r)}return this.queryManager.watchQuery(e)}query=e=>(this.defaultOptions.query&&(e=lp(this.defaultOptions.query,e)),this.queryManager.query(e));mutate=e=>{const t=lp(Dd({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return Id(t.mutation,os),this.queryManager.mutate(t)};subscribe(e){const t={},n=this.queryManager.startGraphQLSubscription(e),r=n.pipe(ju(n=>({...n,data:this.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,cause:t})})));return Object.assign(r,{restart:n.restart})}readQuery(e,t=!!e.optimistic){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){const t=this.queryManager.dataMasking;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)})}readFragment(e,t=!!e.optimistic){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){const t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){const t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return wh(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){const t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((e,t)=>{n.push(t),r.push(e)});const i=Promise.all(r);return i.queries=n,i.results=r,i.catch(e=>{}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new Nh(hp);transform(e,t=!1){const n=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(n):n}},{hasOwnProperty:vm}=Object.prototype;function xm(e){return Md(e)&&"payload"in e}function wm(e){const t={};return e.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>-1){const r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}function km(e,t){if(e.status>=300)throw new Xf(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(n){throw new Zf(n,{response:e,bodyText:t})}}var Sm={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},Nm=(e,t)=>t(e);function Tm(e,t,...n){let r={},i={};n.forEach(e=>{r={...r,...e.options,headers:{...r.headers,...e.headers}},e.credentials&&(r.credentials=e.credentials),r.headers.accept=(e.http?.accept||[]).concat(r.headers.accept).join(","),i={...i,...e.http}}),r.headers=function(e,t){if(!t){const t={};return Object.keys(Object(e)).forEach(n=>{t[n.toLowerCase()]=e[n]}),t}const n={};Object.keys(Object(e)).forEach(t=>{n[t.toLowerCase()]={originalName:t,value:e[t]}});const r={};return Object.keys(n).forEach(e=>{r[n[e].originalName]=n[e].value}),r}(r.headers,i.preserveHeaderCase);const{operationName:a,extensions:o,variables:s,query:l}=e,c={operationName:a,variables:s};return i.includeExtensions&&Object.keys(o||{}).length&&(c.extensions=o),i.includeQuery&&(c.query=t(l,Th)),{options:r,body:c}}var Cm=Wu(()=>fetch);function Em(){}var _m=class extends xh{constructor(e={}){let{uri:t="/graphql",fetch:n,print:r=Nm,includeExtensions:i,preserveHeaderCase:a,useGETForQueries:o,includeUnusedVariables:s=!1,...l}=e;const c={http:Dd({includeExtensions:i,preserveHeaderCase:a}),options:l.fetchOptions,credentials:l.credentials,headers:l.headers};super(e=>{let i=((e,t)=>e.getContext().uri||("function"==typeof t?t(e):t||"/graphql"))(e,t);const a=e.getContext(),l={...a.http};(function(e){return Oh(e,"subscription")})(e.query)&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);const u={http:l,options:a.fetchOptions,credentials:a.credentials,headers:a.headers},{options:d,body:p}=Tm(e,r,Sm,c,u);p.variables&&!s&&(p.variables=function(e,t){const n={...e},r=new Set(Object.keys(e));return yl(t,{Variable(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.forEach(e=>{delete n[e]}),n}(p.variables,e.query));let h=new AbortController,f=()=>{h=void 0};if(d.signal){const e=d.signal,t=()=>{h?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),f=()=>{h?.signal.removeEventListener("abort",f),h=void 0,e.removeEventListener("abort",t),f=Em},h.signal.addEventListener("abort",f,{once:!0})}return d.signal=h.signal,o&&!function(e){return Oh(e,"mutation")}(e.query)&&(d.method="GET"),new Kc(t=>{if("GET"===d.method){const{newURI:e,parseError:t}=function(e,n){const r=[],i=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in n&&i("query",n.query),n.operationName&&i("operationName",n.operationName),n.variables){let e;try{e=JSON.stringify(n.variables)}catch(t){return{parseError:t}}i("variables",e)}if(n.extensions){let e;try{e=JSON.stringify(n.extensions)}catch(t){return{parseError:t}}i("extensions",e)}let a="",o=e;const s=e.indexOf("#");-1!==s&&(a=e.substr(s),o=e.substr(0,s));const l=-1===o.indexOf("?")?"?":"&";return{newURI:o+l+r.join("&")+a}}(i,p);if(t)throw t;i=e}else d.body=JSON.stringify(p);const r=n||Wu(()=>fetch)||Cm,a=t.next.bind(t);return r(i,d).then(t=>{e.setContext({response:t});const n=t.headers?.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?async function(e,t){for await(const n of async function*(e){const t=new TextDecoder("utf-8"),n=(e.headers?.get("content-type"))?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),r="\r\n--"+(n?n[1]??n[2]??n[3]??"-":"-");let i="";td(e.body&&"function"==typeof e.body.getReader,62);const a=e.body.getReader();let o,s=!1,l=!1;const c=()=>l&&"-"==i[0]&&"-"==i[1];try{for(;!s;){({value:o,done:s}=await a.read());const e="string"==typeof o?o:t.decode(o),n=i.length-r.length+1;i+=e;let u=i.indexOf(r,n);for(;u>-1&&!c();){let e;l=!0,[e,i]=[i.slice(0,u),i.slice(u+r.length)];const t=e.indexOf("\r\n\r\n"),n=wm(e.slice(0,t))["content-type"];if(n&&-1===n.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");const a=e.slice(t);a&&(yield a),u=i.indexOf(r)}if(c())return}throw new Error("premature end of multipart body")}finally{a.cancel()}}(e)){const r=km(e,n);if(0!=Object.keys(r).length)if(xm(r)){if(1===Object.keys(r).length&&null===r.payload)return;let e={...r.payload};"errors"in r&&(e.extensions={...e.extensions,[em]:new Wf(r.errors??[])}),t(e)}else t(r)}}(t,a):(r=e,e=>e.text().then(t=>{const n=function(e,t){return e.headers.get("content-type")?.includes("application/graphql-response+json")?function(e,t){try{return JSON.parse(t)}catch(n){throw new Zf(n,{response:e,bodyText:t})}}(e,t):km(e,t)}(e,t);if(!Array.isArray(n)&&!vm.call(n,"data")&&!vm.call(n,"errors"))throw new Xf(`Server response was malformed for query '${Array.isArray(r)?r.map(e=>e.operationName):r.operationName}'.`,{response:e,bodyText:t});return n}))(t).then(a);var r}).then(()=>{f(),t.complete()}).catch(e=>{f(),t.error(e)}),()=>{h&&h.abort()}})})}},Om=class extends xh{constructor(e={}){super((t,n)=>{const r=t.client,i=r.queryManager.clientOptions,a=t.getContext();{const{name:n,version:r,transport:o="headers"}=Dd({},i.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===o&&t.setContext(({headers:e})=>({headers:Dd({"apollographql-client-name":n,"apollographql-client-version":r},e)}))}{const{transport:n="extensions"}=Dd({},i.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===n&&(t.extensions=Dd({clientLibrary:{name:"@apollo/client",version:r.version}},t.extensions)),"headers"===n&&t.setContext(({headers:e})=>({headers:Dd({"apollographql-library-name":"@apollo/client","apollographql-library-version":r.version},e)}))}return n(t)})}},Am=class extends xh{constructor(e={}){const{left:t,right:n,request:r}=xh.from([new Om(e),new _m(e)]);super(r),Object.assign(this,{left:t,right:n})}},Im=/* @__PURE__ */new Map,zm=/* @__PURE__ */new Map,Dm=!1;function Pm(e){return e.replace(/[\s,]+/g," ").trim()}function Mm(e){var t,n,r,i=Pm(e);if(!Im.has(i)){var a=function(e,t){return function(e){if(null==e)return!1;const t=e.hasSubscribers;if(void 0!==t)return t;for(const n of Al)if(e[n].hasSubscribers)return!0;return!1}(Ol)?Ol.traceSync(()=>yc(e,t),{source:e}):yc(e,t)}(e,{experimentalFragmentVariables:Dm,allowLegacyFragmentVariables:Dm,experimentalFragmentArguments:Dm});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");Im.set(i,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=/* @__PURE__ */new Set,r=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Pm((o=e.loc).source.body.substring(o.start,o.end)),a=zm.get(t);a&&!a.has(i)||a||zm.set(t,a=/* @__PURE__ */new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var o}),Sc(Sc({},t),{definitions:r}))))}return Im.get(i)}function jm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),Mm(r)}var Rm,Lm=jm;function Fm(e){if(Array.isArray(e)){let t=!1,n=e.map(e=>{let n=Fm(e);return n!==e&&(t=!0),n});return t?n:e}if("object"==typeof e&&e){let t={},n=!1;for(let r in e){if("__typename"===r){n=!0;continue}let i=e[r],a=Fm(i);a!==i&&(n=!0),t[r]=a}return n?t:e}return e}(Rm=jm||(jm={})).gql=Lm,Rm.resetCaches=function(){Im.clear(),zm.clear()},Rm.disableFragmentWarnings=function(){},Rm.enableExperimentalFragmentVariables=function(){Dm=!0},Rm.disableExperimentalFragmentVariables=function(){Dm=!1},jm.default=jm;var $m=({id:e="",source:t,name:n,fields:r=[]})=>{let{useStoreSetter:i}=Ei(),a=i(),o=w(()=>`${e}_${((e,t=!0,n=!0)=>{let r="",i="abcdefghijklmnopqrstuvwxyz";t&&(i=`ABCDEFGHIJKLMNOPQRSTUVWXYZ${i}`),n&&(i=`${i}0123456789`);let a=i.length;for(let o=0;o<e;o++)r+=i.charAt(Math.floor(Math.random()*a));return r})(8)}`,[e]);y(()=>(a(`sources.${o}`,{id:o,meta:{id:e,source:t,name:n,fields:r}}),()=>a("sources",e=>ie(e??{},o))),[o]),y(()=>{a(`sources.${o}.meta.fields`,r)},[r,o,a])},qm={action:"arrayMap",title:"Array Map",type:"utility",params:{keys:{defaultValue:'[{"from": "", "to": ""}]',type:"textarea"}},preview:{sourceParsed:""},callback:(e,t)=>{let{keys:n}=t;if(!Array.isArray(e))return e;try{"string"==typeof n&&(n=JSON.parse(n))}catch{return e}return e.map(e=>{let t={};return n.forEach(n=>{"object"==typeof n&&n.from&&n.to&&X(t,n.to,K(e,n.from,""))}),t})}},Vm={action:"dateConverter",title:"Date Converter",type:"utility",params:{format:{defaultValue:"dd/MM/yyyy",type:"text"},asAge:{defaultValue:!1,type:"checkbox"},isUnix:{defaultValue:!0,type:"checkbox"},isUtc:{defaultValue:!1,type:"checkbox"},locale:{defaultValue:"en",type:"select",options:[{label:"en",value:"en"},{label:"es",value:"es"},{label:"pt",value:"pt"}]}},preview:{format:"",asAge:"",isUnix:"",isUtc:"",locale:""},callback:(e,{format:t="dd/MM/yyyy",asAge:n=!1,isUnix:r=!0,isUtc:i=!1,locale:a="en"})=>{if("string"!=typeof e&&"number"!=typeof e)return e;try{let o=za(r?Number(e):e);return isNaN(o.getTime())?e:n?function(e,t="en",n){if(!e)return"";let r=za(e);return isNaN(r.getTime())?"":mt(r,{...n,locale:Ia[t]})}(o,a,{addSuffix:!0}):i?Pa(o,t,a):Da(o,t,a)}catch{return e}}},Bm={action:"styleSelector",title:"Style Selector",type:"utility",params:{originalSelector:{label:"Original Selector",description:"This will append the original selector (require append option enabled)",defaultValue:!1,disabled:({append:e})=>!e,type:"checkbox"},append:{label:"Append Selector",defaultValue:!1,type:"checkbox"},selector:{label:"Selector",defaultValue:"",type:"select",options:(e,t,n)=>{let r=n?.stylePlatform;return r?Object.keys(r).map(e=>({label:e,options:Object.values(r[e]).filter(e=>"class"===e.type).map(e=>({label:e.name,value:e.name}))})):[]}}},preview:{append:"",originalSelector:"",selector:""},callback:(e,t,n,r={})=>{let{originalSelector:i,append:a,selector:o}=t,s=[];if(a&&!i&&r.sourceTo)s.push(r.sourceTo,o);else if(i&&a){let e=K(n,"definition.styleSelectors.base","");e?s.push(e,o):s.push(o)}return s.length?1===s.length?s[0]:s.join(" "):""}},Um={action:"styleVariant",title:"Style Variant",type:"utility",params:{key:{label:"Selector Key",defaultValue:"",type:"select",options:(e,t)=>{let n=t?.definition?.styleSelectors;if(!t||!t.definition||!n)return[];let r=t.definition.type;return(e=>{let t=e.reduce((e,{groupLabel:t,option:n})=>(t in e||(e[t]=[]),e[t].push(n),e),{});return Object.entries(t).map(([e,t])=>({label:e,options:t}))})(Object.entries(n).flatMap(([e,t])=>(t?[r,...t.split(" ")]:[r]).map(t=>({groupLabel:e,option:{value:`${t}.${e}`,label:`${t} (${e})`}}))))}},variant:{label:"Variant",defaultValue:"",type:"select",options:(e,t,n)=>{let r=t?.definition?.styleSelectors,i=e.key||"";if(!(t&&t.definition&&r&&n?.stylePlatform&&i.includes(".")))return[];let a=t.definition.type,o=i.split(".").pop()||"",s=r[o];if(!s)return[];let l=[],c=[a,...s.split(" ").filter(Boolean)];return Object.entries(n.stylePlatform).forEach(([e,t])=>{c.forEach(n=>{let r=t[n];if(!r)return;let i=r.attributes[o];Object.keys(i.variants||{}).forEach(t=>{l.push({value:t,label:`${e}: ${t}`})})})}),l}},append:{label:"Append to Variant",description:"Merge with existing variant values instead of replacing",defaultValue:!1,type:"checkbox"}},preview:{key:"",variant:"",append:""},callback:(e,t,n,r={})=>{let{key:i,variant:a,append:o}=t;if(!i)return r.sourceTo??{};let s=i||"base",l=a||e;return"object"!=typeof l||Array.isArray(l)?X(o?{...r.sourceTo}:{},s,l):l}},Hm={action:"twigTemplate",title:"Twig Template",type:"utility",params:{template:{label:"Template",defaultValue:"Tokens {{source}} from the value selected to bind previously, {{sourceTo}} is your original value, other tokens via autocomplete",type:"codemirror-text"}},preview:{template:""},callback:(e,t,n,r={})=>{let{template:i}=t,a=e;try{a=Bo(i,{source:e,...r})}catch{a=e}return a}},Wm={twigTemplate:Hm,dateConverter:Vm,staticValue:{action:"staticValue",title:"Static Value",type:"utility",params:{valueType:{label:"Value Type",defaultValue:"text",type:"select",options:[{label:"Text",value:"text"},{label:"Long Text",value:"textarea"},{label:"Boolean",value:"select"}]},value:{defaultValue:"",type:({valueType:e})=>e,options:[{label:"True",value:"true"},{label:"False",value:"false"}]}},preview:{valueType:"",value:""},callback:(e,t)=>{let{valueType:n,value:r}=t;return"select"===n?"true"===r:r}},capitalize:{action:"capitalize",title:"Capitalize",type:"utility",params:{},preview:{content:""},callback:e=>"string"==typeof e?function(e){return null!=e&&"string"==typeof e&&e.trim()?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""}(e):e},arrayMap:qm,stringToArray:{action:"stringToArray",title:"Text to List",type:"utility",params:{separator:{label:"Separator",defaultValue:",",type:"text"}},preview:{valueType:"",value:""},callback:(e,t)=>{let{separator:n}=t;return"string"==typeof e?e.split(n).map(e=>e.trim()):e}},styleSelector:Bm,styleVariant:Um},Ym=(Object.values(Wm).map(({title:e,action:t})=>({label:e,value:t})),(e,t)=>{if(e&&typeof localStorage<"u")try{let t=localStorage.getItem(e);if("dark"===t||"light"===t)return t}catch{}return"system"===t?(()=>{if(typeof window>"u")return"light";try{return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():t}),Gm=l({theme:{components:{}},colorMode:"light",toggleColorMode:()=>{},setColorMode:()=>{}});Gm.displayName="ThemeContext";var Qm=({children:e,components:t,defaultColorMode:n="light",colorModeStorageKey:r,applyColorModeClass:i=!0,colorModeRoot:a})=>{let o="system"===n,[s,l]=N(()=>Ym(r,n));y(()=>{if(!o||typeof window>"u")return;let e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>l(e.matches?"dark":"light");return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[o]),y(()=>{if(!i||typeof document>"u")return;let e=a??document.documentElement;"dark"===s?e.classList.add("dark"):e.classList.remove("dark")},[s,i,a]);let c=m(()=>{o||l(e=>{let t="dark"===e?"light":"dark";if(r)try{localStorage.setItem(r,t)}catch{}return t})},[o,r]),u=m(e=>{if(!o&&(l(e),r))try{localStorage.setItem(r,e)}catch{}},[o,r]);/* @__PURE__ */
|
|
9
9
|
return A(Gm,{value:w(()=>({theme:{components:t&&Object.keys(t).length>0?t:{}},colorMode:s,toggleColorMode:c,setColorMode:u}),[t,s,c,u]),children:e})},Jm=(e,t)=>Object.getOwnPropertyDescriptor(e,t)?.enumerable,Km=(e,t,n="soft",r={})=>{let{skip:i=[],skipFunctions:a=!1}=r;if(e===t&&"soft"===n)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;let a,o,s=[];if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(o=a;0!==o--;)if(!Km(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o of e.values())if(!t.has(o))return!1;for(o of e.entries())if(!Km(o[1],t.get(o[0]),n,r))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(a=e.length,a!=t.length)return!1;for(o=a;0!==o--;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.lastIndex===t.lastIndex&&e.sticky===t.sticky;if((e.valueOf!==Object.prototype.valueOf||t.valueOf!==Object.prototype.valueOf)&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if((e.toString!==Object.prototype.toString||t.toString!==Object.prototype.toString)&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if(s="soft"===n?Object.keys(e):Object.getOwnPropertyNames(e),a=s.length,a!==("soft"===n?Object.keys(t).length:Object.getOwnPropertyNames(t).length))return!1;for(o=a;0!==o--;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=a;0!==o--;){let a=s[o];if("_owner"===a&&e.$$typeof)continue;let l="soft"===n||Jm(e,a)||!i.includes(a);if(!Km(e[a],t[a],n,r)&&l)return!1}return!0}return!!("hard"===n&&e===t||a&&"function"==typeof e&&"function"==typeof t)||e!=e&&t!=t},Xm=Km,Zm=(e,t="soft",n={})=>{let r=S(e);return Xm(r.current,e,t,n)?r.current:(r.current=e,e)},eg=(e=/* @__PURE__ */new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),tg="-",ng=[],rg=e=>{const t=og(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return ag(e);const n=e.split(tg),r=""===n[0]&&n.length>1?1:0;return ig(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],i=n[e];return t?i?((e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(i,t):t:i||ng}return n[e]||ng}}},ig=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],i=n.nextPart.get(r);if(i){const n=ig(e,t+1,i);if(n)return n}const a=n.validators;if(null===a)return;const o=0===t?e.join(tg):e.slice(t).join(tg),s=a.length;for(let l=0;l<s;l++){const e=a[l];if(e.validator(o))return e.classGroupId}},ag=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),og=e=>{const{theme:t,classGroups:n}=e;return sg(n,t)},sg=(e,t)=>{const n=eg();for(const r in e){const i=e[r];lg(i,n,r,t)}return n},lg=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const i=e[a];cg(i,t,n,r)}},cg=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?pg(e,t,n,r):dg(e,t,n,r):ug(e,t,n)},ug=(e,t,n)=>{(""===e?t:hg(t,e)).classGroupId=n},dg=(e,t,n,r)=>{fg(e)?lg(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},pg=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[e,a]=i[o];lg(a,hg(t,e),n,r)}},hg=(e,t)=>{let n=e;const r=t.split(tg),i=r.length;for(let a=0;a<i;a++){const e=r[a];let t=n.nextPart.get(e);t||(t=eg(),n.nextPart.set(e,t)),n=t}return n},fg=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,mg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(i(e,t),t):void 0},set(e,t){e in n?n[e]=t:i(e,t)}}},gg=[],yg=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),bg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,i=0,a=0;const o=e.length;for(let u=0;u<o;u++){const o=e[u];if(0===r&&0===i){if(":"===o){t.push(e.slice(a,u)),a=u+1;continue}if("/"===o){n=u;continue}}"["===o?r++:"]"===o?r--:"("===o?i++:")"===o&&i--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;return s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0),yg(t,c,l,n&&n>a?n-a:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):yg(gg,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},vg=e=>{const t=/* @__PURE__ */new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let i=0;i<e.length;i++){const a=e[i],o="["===a[0],s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},xg=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},wg=/\s+/,kg=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kg(e[r]))&&(n&&(n+=" "),n+=t);return n},Sg=(e,...t)=>{let n,r,i,a;const o=e=>{const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],l=e.trim().split(wg);let c="";for(let u=l.length-1;u>=0;u-=1){const e=l[u],{isExternal:t,modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:f}=n(e);if(t){c=e+(c.length>0?" "+c:c);continue}let m,g=!!f;if(g){m=r(h.substring(0,f));const e=m&&o[m]?r(h):void 0;e&&e!==m&&(m=e,g=!1)}else m=r(h);if(!m){if(!g){c=e+(c.length>0?" "+c:c);continue}if(m=r(h),!m){c=e+(c.length>0?" "+c:c);continue}g=!1}const y=0===d.length?"":1===d.length?d[0]:a(d).join(":"),b=p?y+"!":y,v=b+m;if(s.indexOf(v)>-1)continue;s.push(v);const x=i(m,g);for(let n=0;n<x.length;++n){const e=x[n];s.push(b+e)}c=e+(c.length>0?" "+c:c)}return c})(e,n);return i(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:mg(e.cacheSize),parseClassName:bg(e),sortModifiers:vg(e),postfixLookupClassGroupIds:xg(e),...rg(e)}))(l),r=n.cache.get,i=n.cache.set,a=o,o(s)},(...e)=>a(((...e)=>{let t,n,r=0,i="";for(;r<e.length;)(t=e[r++])&&(n=kg(t))&&(i&&(i+=" "),i+=n);return i})(...e))},Ng=[],Tg=e=>{const t=t=>t[e]||Ng;return t.isThemeGetter=!0,t},Cg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Eg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_g=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Og=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ag=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ig=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pg=e=>_g.test(e),Mg=e=>!!e&&!Number.isNaN(Number(e)),jg=e=>!!e&&Number.isInteger(Number(e)),Rg=e=>e.endsWith("%")&&Mg(e.slice(0,-1)),Lg=e=>Og.test(e),Fg=()=>!0,$g=e=>Ag.test(e)&&!Ig.test(e),qg=()=>!1,Vg=e=>zg.test(e),Bg=e=>Dg.test(e),Ug=e=>!Yg(e)&&!ty(e),Hg=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Wg=e=>cy(e,hy,qg),Yg=e=>Cg.test(e),Gg=e=>cy(e,fy,$g),Qg=e=>cy(e,my,Mg),Jg=e=>cy(e,yy,Fg),Kg=e=>cy(e,gy,qg),Xg=e=>cy(e,dy,qg),Zg=e=>cy(e,py,Bg),ey=e=>cy(e,by,Vg),ty=e=>Eg.test(e),ny=e=>uy(e,fy),ry=e=>uy(e,gy),iy=e=>uy(e,dy),ay=e=>uy(e,hy),oy=e=>uy(e,py),sy=e=>uy(e,by,!0),ly=e=>uy(e,yy,!0),cy=(e,t,n)=>{const r=Cg.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},uy=(e,t,n=!1)=>{const r=Eg.exec(e);return!!r&&(r[1]?t(r[1]):n)},dy=e=>"position"===e||"percentage"===e,py=e=>"image"===e||"url"===e,hy=e=>"length"===e||"size"===e||"bg-size"===e,fy=e=>"length"===e,my=e=>"number"===e,gy=e=>"family-name"===e,yy=e=>"number"===e||"weight"===e,by=e=>"shadow"===e,vy=/*#__PURE__*/Sg(()=>{const e=Tg("color"),t=Tg("font"),n=Tg("text"),r=Tg("font-weight"),i=Tg("tracking"),a=Tg("leading"),o=Tg("breakpoint"),s=Tg("container"),l=Tg("spacing"),c=Tg("radius"),u=Tg("shadow"),d=Tg("inset-shadow"),p=Tg("text-shadow"),h=Tg("drop-shadow"),f=Tg("blur"),m=Tg("perspective"),g=Tg("aspect"),y=Tg("ease"),b=Tg("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ty,Yg],x=()=>[ty,Yg,l],w=()=>[Pg,"full","auto",...x()],k=()=>[jg,"none","subgrid",ty,Yg],S=()=>["auto",{span:["full",jg,ty,Yg]},jg,ty,Yg],N=()=>[jg,"auto",ty,Yg],T=()=>["auto","min","max","fr",ty,Yg],C=()=>["auto",...x()],E=()=>[Pg,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],_=()=>[Pg,"screen","full","dvw","lvw","svw","min","max","fit",...x()],O=()=>[Pg,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],A=()=>[e,ty,Yg],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",iy,Xg,{position:[ty,Yg]}],z=()=>["auto","cover","contain",ay,Wg,{size:[ty,Yg]}],D=()=>[Rg,ny,Gg],P=()=>["","none","full",c,ty,Yg],M=()=>["",Mg,ny,Gg],j=()=>[Mg,Rg,iy,Xg],R=()=>["","none",f,ty,Yg],L=()=>["none",Mg,ty,Yg],F=()=>["none",Mg,ty,Yg],$=()=>[Mg,ty,Yg],q=()=>[Pg,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lg],breakpoint:[Lg],color:[Fg],container:[Lg],"drop-shadow":[Lg],ease:["in","out","in-out"],font:[Ug],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lg],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lg],shadow:[Lg],spacing:["px",Mg],text:[Lg],"text-shadow":[Lg],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pg,Yg,ty,g]}],container:["container"],"container-type":[{"@container":["","normal","size",ty,Yg]}],"container-named":[Hg],columns:[{columns:[Mg,Yg,ty,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[jg,"auto",ty,Yg]}],basis:[{basis:[Pg,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Mg,Pg,"auto","initial","none",Yg]}],grow:[{grow:["",Mg,ty,Yg]}],shrink:[{shrink:["",Mg,ty,Yg]}],order:[{order:[jg,"first","last","none",ty,Yg]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mbs:[{mbs:C()}],mbe:[{mbe:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],"inline-size":[{inline:["auto",..._()]}],"min-inline-size":[{"min-inline":["auto",..._()]}],"max-inline-size":[{"max-inline":["none",..._()]}],"block-size":[{block:["auto",...O()]}],"min-block-size":[{"min-block":["auto",...O()]}],"max-block-size":[{"max-block":["none",...O()]}],w:[{w:[s,"screen",...E()]}],"min-w":[{"min-w":[s,"screen","none",...E()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",n,ny,Gg]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ly,Jg]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rg,Yg]}],"font-family":[{font:[ry,Kg,t]}],"font-features":[{"font-features":[Yg]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ty,Yg]}],"line-clamp":[{"line-clamp":[Mg,"none",ty,Qg]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":["none",ty,Yg]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ty,Yg]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Mg,"from-font","auto",ty,Gg]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Mg,"auto",ty,Yg]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[jg,ty,Yg]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ty,Yg]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ty,Yg]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jg,ty,Yg],radial:["",ty,Yg],conic:[jg,ty,Yg]},oy,Zg]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Mg,ty,Yg]}],"outline-w":[{outline:["",Mg,ny,Gg]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,sy,ey]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,sy,ey]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Mg,Gg]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,sy,ey]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Mg,ty,Yg]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Mg]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[ty,Yg]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Mg]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ty,Yg]}],filter:[{filter:["","none",ty,Yg]}],blur:[{blur:R()}],brightness:[{brightness:[Mg,ty,Yg]}],contrast:[{contrast:[Mg,ty,Yg]}],"drop-shadow":[{"drop-shadow":["","none",h,sy,ey]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Mg,ty,Yg]}],"hue-rotate":[{"hue-rotate":[Mg,ty,Yg]}],invert:[{invert:["",Mg,ty,Yg]}],saturate:[{saturate:[Mg,ty,Yg]}],sepia:[{sepia:["",Mg,ty,Yg]}],"backdrop-filter":[{"backdrop-filter":["","none",ty,Yg]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[Mg,ty,Yg]}],"backdrop-contrast":[{"backdrop-contrast":[Mg,ty,Yg]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Mg,ty,Yg]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Mg,ty,Yg]}],"backdrop-invert":[{"backdrop-invert":["",Mg,ty,Yg]}],"backdrop-opacity":[{"backdrop-opacity":[Mg,ty,Yg]}],"backdrop-saturate":[{"backdrop-saturate":[Mg,ty,Yg]}],"backdrop-sepia":[{"backdrop-sepia":["",Mg,ty,Yg]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ty,Yg]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Mg,"initial",ty,Yg]}],ease:[{ease:["linear","initial",y,ty,Yg]}],delay:[{delay:[Mg,ty,Yg]}],animate:[{animate:["none",b,ty,Yg]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ty,Yg]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:$()}],"skew-x":[{"skew-x":$()}],"skew-y":[{"skew-y":$()}],transform:[{transform:[ty,Yg,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],zoom:[{zoom:[jg,ty,Yg]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ty,Yg]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ty,Yg]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Mg,ny,Gg,Qg]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),xy=function(e,{componentKey:t,className:n,variants:r}){let{theme:i}=f(Gm);e=Zm(e);let a=Zm(n),o=m((t,n={},r="")=>(n={...n,className:r},"string"==typeof e?K(i.components[e],t,void 0)?.(n)??r:e.map(e=>K(i.components[e],t,void 0)?.(n)).filter(Boolean).join(" ")||r),[i.components,e]);return t=w(()=>void 0!==t?t:e&&"string"==typeof e?Object.keys(i.components[e]):Array.isArray(e)&&e.length>0?e.map(e=>Object.keys(i.components[e])).flat():void 0,[e,i.components]),w(()=>{if(t&&"string"==typeof t)return vy(o(t,r,a&&"object"==typeof a?K(a,t,""):a));if(t&&Array.isArray(t)){let e={};return t.forEach((t,n)=>{let i;"object"==typeof a?i=K(a,t):"string"==typeof a&&0===n&&(i=a);let s=vy(o(t,r,i));t.split(".").length>1?X(e,t.split(".").slice(1).join("."),s):X(e,t,s)}),e}return""},[t,a,o,r])},wy=({ref:e,className:t,children:n,testId:r,direction:i,wrap:a,items:o,gap:s,justify:l,grow:c,basis:u,alignItems:d,shrink:p,...h})=>(t=xy("Flex",{className:t,componentKey:"root",variants:{direction:i,wrap:a,items:o,gap:s,justify:l,grow:c,basis:u,shrink:p,alignItems:d}}),/* @__PURE__ */A("div",{...h,"data-testid":r,className:t,ref:e,children:n})),ky=(e,t,n="primary")=>e?"disabled":t&&"primary"===n?"primaryActive":t&&"secondary"===n?"secondaryActive":t&&"tertiary"===n?"tertiaryActive":n,Sy=({className:e,children:t,icon:r,active:i=!1,disabled:a=!1,testId:o,intent:l,size:c,cursor:u,title:p,...h})=>{let f=xy("Icon",{className:e,componentKey:"root",variants:{intent:ky(a,i,l),size:c,cursor:a?"disabled":u}}),{iconChildren:m}=w(()=>{let e={iconChildren:void 0};return n.forEach(t,t=>{d(t)&&(e.iconChildren=s(t,{...h,className:ce({"h-[1em] w-[1em]":"custom"!==c},f,t.props.className),title:p}))}),e},[t,f,h,c,p]);return m||/* @__PURE__ */A("i",{...h,title:p,"data-testid":o,className:ce(r,f)})},Ny={root:fe("flex outline-none select-none border transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{intent:{primary:["border-transparent bg-primary-500 text-white","hover:bg-primary-600","focus-visible:ring-primary-500","dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus-visible:ring-primary-400"],secondary:["border-gray-300 text-zinc-700 hover:border-gray-400 hover:bg-gray-50 hover:text-zinc-900","focus-visible:ring-gray-400","dark:border-zinc-700 dark:text-zinc-300 dark:hover:border-zinc-400 dark:hover:bg-zinc-700/50 dark:hover:text-white dark:focus-visible:ring-zinc-500"],danger:["border-transparent bg-red-500 text-white hover:bg-red-600","focus-visible:ring-red-500","dark:bg-red-600 dark:hover:bg-red-700"],custom:""},disabled:{true:["disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none"],false:"cursor-pointer"},aspect:{square:"aspect-square",custom:""},size:{md:"py-2 px-4 gap-2 text-sm rounded-lg",sm:"py-1.5 px-3 gap-1.5 text-sm rounded",xs:"py-1 px-2 gap-1 text-xs rounded-sm min-w-6",custom:""},border:{solid:"border-solid",none:"border-none",custom:""},items:{start:"",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},justify:{normal:"justify-normal",start:"",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"}},compoundVariants:[],defaultVariants:{items:"center",justify:"center",intent:"primary",border:"solid",size:"md",disabled:!1,aspect:"custom"}}),icon:fe("shrink-0",{variants:{intent:{default:""},size:{md:"text-sm",sm:"text-xs",xs:"text-xs",custom:""}},compoundVariants:[],defaultVariants:{intent:"default",size:"md"}})},Ty=({className:e,message:t,disabled:n=!1,error:r=!1,intent:i,size:a})=>(e=xy("ErrorMessage",{className:e,componentKey:"root",variants:{intent:i,size:a,error:r,disabled:n}}),/* @__PURE__ */A("p",{className:e,children:t})),Cy=({className:e,children:t,disabled:n=!1,error:r=!1,intent:i,size:a,...o})=>(e=xy("Label",{className:e,componentKey:"root",variants:{intent:i,size:a,error:r,disabled:n}}),/* @__PURE__ */A("label",{className:e,...o,children:t})),Ey=({ref:e,className:t,id:r,label:i,error:a,disabled:o,intent:l,size:c,prefix:u,children:p,loading:h,clearable:f,inline:g,value:y,onClear:b,...v})=>{let x=xy("Input",{className:t,componentKey:["root","label","inputContainer","iconFloatingContainer","icon","iconError","iconClear"],variants:{intent:l,size:c,disabled:o||h,error:!!a,inline:g}}),k=m(e=>b?.(e),[b]),{iconChildren:S,inputChildren:N}=w(()=>{let e={iconChildren:void 0,inputChildren:[]};return n.forEach(p,t=>{if(d(t))if(t.type===Sy){let n=t.props;e.iconChildren=s(t,{className:ce(x.icon,n.className),size:c,...n,intent:n.intent??"custom"})}else e.inputChildren.push(t)}),e},[p,x.icon,c]);/* @__PURE__ */
|
|
10
10
|
return I("div",{className:x.root,ref:e,...v,children:[i&&!g&&/* @__PURE__ */A(Cy,{error:!!a,disabled:o,intent:l,size:c,htmlFor:r,className:x.label,children:i}),
|
|
@@ -23,7 +23,7 @@ return I(Ey,{className:n,id:r,label:i,loading:o,clearable:l,value:f,prefix:u,dis
|
|
|
23
23
|
/* @__PURE__ */i.type;const a=i.properties[0];
|
|
24
24
|
/* @__PURE__ */a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Nv(e,t.position);else{const i=r.name;let a;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];
|
|
25
25
|
/* @__PURE__ */t.type,a=e.evaluater.evaluateExpression(t.expression)}else Nv(e,t.position);else a=null===r.value||r.value;n[i]=a}return n}(e,t),s=wv(e,t);return vv(e,o,a,t),xv(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Nv(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return xv(r,wv(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function vv(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xv(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function wv(e,t){const n=[];let r=-1;const i=e.passKeys?/* @__PURE__ */new Map:fv;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}const s=bv(e,a,o);void 0!==s&&n.push(s)}return n}function kv(e,t,n){const r=Gb(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,pv.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new dv("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)hv.call(e,n)&&(t[Tv(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Ub[r.property]||r.property:r.attribute,n]}}function Sv(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=mb(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}
|
|
26
|
-
/* @__PURE__ */r=n}else r=mb(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return hv.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Nv(e)}function Nv(e,t){const n=new dv("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater",n}function Tv(e){let t=e.replace(mv,Cv);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Cv(e){return"-"+e.toLowerCase()}var Ev={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_v={};function Ov(e,t){const n=t||_v;return Av(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Av(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Iv(e.children,t,n)}return Array.isArray(e)?Iv(e,t,n):""}function Iv(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Av(e[i],t,n);return r.join("")}var zv={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Dv={}.hasOwnProperty;function Pv(e){return!!Dv.call(zv,e)&&zv[e]}function Mv(e,t,n,r){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function jv(e,t){return e.length>0?(Mv(e,e.length,0,t),e):t}var Rv={}.hasOwnProperty;function Lv(e){const t={};let n=-1;for(;++n<e.length;)Fv(t,e[n]);return t}function Fv(e,t){let n;for(n in t){const r=(Rv.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){Rv.call(r,a)||(r[a]=[]);const e=i[a];$v(r[a],Array.isArray(e)?e:e?[e]:[])}}}function $v(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Mv(e,0,0,r)}function qv(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Vv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Bv=tx(/[A-Za-z]/),Uv=tx(/[\dA-Za-z]/),Hv=tx(/[#-'*+\--9=?A-Z^-~]/);function Wv(e){return null!==e&&(e<32||127===e)}var Yv=tx(/\d/),Gv=tx(/[\dA-Fa-f]/),Qv=tx(/[!-/:-@[-`{-~]/);function Jv(e){return null!==e&&e<-2}function Kv(e){return null!==e&&(e<0||32===e)}function Xv(e){return-2===e||-1===e||32===e}var Zv=tx(/\p{P}|\p{S}/u),ex=tx(/\s/);function tx(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function nx(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(37===a&&Uv(e.charCodeAt(n+1))&&Uv(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function rx(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Xv(r)?(e.enter(n),o(r)):t(r)};function o(r){return Xv(r)&&a++<i?(e.consume(r),o):(e.exit(n),t(r))}}var ix={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rx(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Jv(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},ax={tokenize:function(e){const t=this,n=[];let r,i,a,o=0;return s;function s(r){if(o<n.length){const i=n[o];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let i,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}y(o);let s=n;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return Mv(t.events,a+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(o===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ox,u,d)(i)}function u(e){return r&&b(),y(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==n.length,a=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(ox,h,f)(n)}function h(e){return o++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Jv(n)?(e.consume(n),g(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(y(o),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;Mv(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ox={tokenize:function(e,t,n){return rx(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function sx(e){return null===e||Kv(e)||ex(e)?1:Zv(e)?2:void 0}function lx(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var cx={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};ux(d,-s),ux(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=jv(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=jv(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=jv(l,lx(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=jv(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=jv(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Mv(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=sx(r);let a;return function(t){return a=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===a)return e.consume(s),o;const l=e.exit("attentionSequence"),c=sx(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===a?u:u&&(i||!d)),l._close=Boolean(42===a?d:d&&(c||!u)),t(s)}}};function ux(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var dx={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Bv(t)?(e.consume(t),a):64===t?n(t):l(t)}function a(e){return 43===e||45===e||46===e||Uv(e)?(r=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Uv(t))&&r++<32?(e.consume(t),o):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Wv(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Hv(t)?(e.consume(t),l):n(t)}function c(e){return Uv(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Uv(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},px={partial:!0,tokenize:function(e,t,n){return function(t){return Xv(t)?rx(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Jv(e)?t(e):n(e)}}},hx={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Xv(t)?rx(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(hx,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Xv(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},fx={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Qv(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},mx={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,a=Uv,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=Gv,c):(e.enter("characterReferenceValue"),i=7,a=Yv,c(t))}function c(s){if(59===s&&o){const i=e.exit("characterReferenceValue");return a!==Uv||Pv(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return a(s)&&o++<i?(e.consume(s),c):n(s)}}},gx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},yx={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),Xv(t)?rx(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===a?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),Xv(t)?rx(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||Jv(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,o=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Xv(t)?rx(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Jv(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(gx,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Jv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Xv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rx(e,d,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function d(t){return null===t||Jv(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Jv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),p)}function h(t){return e.attempt(i,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return o>0&&Xv(t)?rx(e,g,"linePrefix",o+1)(t):g(t)}function g(t){return null===t||Jv(t)?e.check(gx,h,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Jv(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}},bx={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),rx(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?s(t):Jv(t)?e.attempt(vx,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||Jv(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}},vx={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Jv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):rx(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Jv(e)?i(e):n(e)}}},xx={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):Jv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Jv(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}},wx=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&kx(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),kx(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),kx(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);kx(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);kx(this.left,t.reverse())}}};function kx(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Sx(e){const t={};let n,r,i,a,o,s,l,c=-1;const u=new wx(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Nx(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(a=u.get(i),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=i);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;r&&(n[1].end={...u.get(r)[1].start},o=u.slice(r,c),o.unshift(n),u.splice(r,c-r+1,o))}}return Mv(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Nx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=a.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}var Tx={resolve:function(e){return Sx(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Jv(t)?e.check(Cx,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Cx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rx(e,i,"linePrefix")};function i(i){if(null===i||Jv(i))return n(i);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function Ex(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||Wv(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Jv(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return u||null!==i&&41!==i&&!Kv(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||Wv(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function _x(e,t,n,r,i,a){const o=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Jv(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Jv(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Xv(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ox(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):Jv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rx(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||Jv(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Ax(e,t){let n;return function r(i){return Jv(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Xv(i)?rx(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var Ix={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return _x.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return i=Vv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return Kv(t)?Ax(e,s)(t):s(t)}function s(t){return Ex(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(zx,c,c)(t)}function c(t){return Xv(t)?rx(e,u,"whitespace")(t):u(t)}function u(a){return null===a||Jv(a)?(e.exit("definition"),r.parser.defined.push(i),t(a)):n(a)}}},zx={partial:!0,tokenize:function(e,t,n){return function(t){return Kv(t)?Ax(e,r)(t):n(t)};function r(t){return Ox(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Xv(t)?rx(e,a,"whitespace")(t):a(t)}function a(e){return null===e||Jv(e)?t(e):n(e)}}},Dx={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Jv(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Px={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Mv(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Kv(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||Jv(n)?(e.exit("atxHeading"),t(n)):Xv(n)?rx(e,a,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||Kv(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}}},Mx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jx=["pre","script","style","textarea"],Rx={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let i,a,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:P):Bv(s)?(e.consume(s),o=String.fromCharCode(s),f):n(s)}function u(a){return 45===a?(e.consume(a),i=2,d):91===a?(e.consume(a),i=5,s=0,p):Bv(a)?(e.consume(a),i=4,r.interrupt?t:P):n(a)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:P):n(i)}function p(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:C:p):n(i)}function h(t){return Bv(t)?(e.consume(t),o=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||Kv(s)){const l=47===s,c=o.toLowerCase();return l||a||!jx.includes(c)?Mx.includes(o.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):C(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?g(s):y(s)):(i=1,r.interrupt?t(s):C(s))}return 45===s||Uv(s)?(e.consume(s),o+=String.fromCharCode(s),f):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:C):n(i)}function g(t){return Xv(t)?(e.consume(t),g):N(t)}function y(t){return 47===t?(e.consume(t),N):58===t||95===t||Bv(t)?(e.consume(t),b):Xv(t)?(e.consume(t),y):N(t)}function b(t){return 45===t||46===t||58===t||95===t||Uv(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),x):Xv(t)?(e.consume(t),v):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):Xv(t)?(e.consume(t),x):k(t)}function w(t){return t===l?(e.consume(t),l=null,S):null===t||Jv(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Kv(t)?v(t):(e.consume(t),k)}function S(e){return 47===e||62===e||Xv(e)?y(e):n(e)}function N(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||Jv(t)?C(t):Xv(t)?(e.consume(t),T):n(t)}function C(t){return 45===t&&2===i?(e.consume(t),A):60===t&&1===i?(e.consume(t),I):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),P):93===t&&5===i?(e.consume(t),D):!Jv(t)||6!==i&&7!==i?null===t||Jv(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Lx,j,E)(t))}function E(t){return e.check(Fx,_,j)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||Jv(t)?E(t):(e.enter("htmlFlowData"),C(t))}function A(t){return 45===t?(e.consume(t),P):C(t)}function I(t){return 47===t?(e.consume(t),o="",z):C(t)}function z(t){if(62===t){const n=o.toLowerCase();return jx.includes(n)?(e.consume(t),M):C(t)}return Bv(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),z):C(t)}function D(t){return 93===t?(e.consume(t),P):C(t)}function P(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),P):C(t)}function M(t){return null===t||Jv(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),M)}function j(n){return e.exit("htmlFlow"),t(n)}}},Lx={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(px,t,n)}}},Fx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Jv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},$x={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,a,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),b):Bv(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,h):Bv(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Jv(t)?(o=u,z(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?I(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):Jv(t)?(o=f,z(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?I(t):Jv(t)?(o=y,z(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):Jv(t)?(o=b,z(t)):(e.consume(t),b)}function v(e){return 62===e?I(e):b(e)}function x(t){return Bv(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Uv(t)?(e.consume(t),w):k(t)}function k(t){return Jv(t)?(o=k,z(t)):Xv(t)?(e.consume(t),k):I(t)}function S(t){return 45===t||Uv(t)?(e.consume(t),S):47===t||62===t||Kv(t)?N(t):n(t)}function N(t){return 47===t?(e.consume(t),I):58===t||95===t||Bv(t)?(e.consume(t),T):Jv(t)?(o=N,z(t)):Xv(t)?(e.consume(t),N):I(t)}function T(t){return 45===t||46===t||58===t||95===t||Uv(t)?(e.consume(t),T):C(t)}function C(t){return 61===t?(e.consume(t),E):Jv(t)?(o=C,z(t)):Xv(t)?(e.consume(t),C):N(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,_):Jv(t)?(o=E,z(t)):Xv(t)?(e.consume(t),E):(e.consume(t),O)}function _(t){return t===i?(e.consume(t),i=void 0,A):null===t?n(t):Jv(t)?(o=_,z(t)):(e.consume(t),_)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Kv(t)?N(t):(e.consume(t),O)}function A(e){return 47===e||62===e||Kv(e)?N(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function z(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return Xv(t)?rx(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),o(t)}}},qx={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Mv(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=jv(a,e.slice(r+1,r+s+3)),a=jv(a,[["enter",u,t]]),a=jv(a,lx(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=jv(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=jv(a,e.slice(i+1)),a=jv(a,[["exit",l,t]]),Mv(e,r,e.length,a),e},tokenize:function(e,t,n){const r=this;let i,a,o=r.events.length;for(;o--;)if(("labelImage"===r.events[o][1].type||"labelLink"===r.events[o][1].type)&&!r.events[o][1]._balanced){i=r.events[o][1];break}return function(t){return i?i._inactive?u(t):(a=r.parser.defined.includes(Vv(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(Vx,c,a?c:u)(t):91===t?e.attempt(Bx,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(Ux,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}},Vx={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Kv(t)?Ax(e,i)(t):i(t)}function i(t){return 41===t?c(t):Ex(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Kv(t)?Ax(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?Ox(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Kv(t)?Ax(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Bx={tokenize:function(e,t,n){const r=this;return function(t){return _x.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Vv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},Ux={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Hx={name:"labelStartImage",resolveAll:qx.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},Wx={name:"labelStartLink",resolveAll:qx.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},Yx={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rx(e,t,"linePrefix")}}},Gx={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),o(a)):i>=3&&(null===a||Jv(a))?(e.exit("thematicBreak"),t(a)):n(a)}function o(t){return t===r?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),Xv(t)?rx(e,a,"whitespace")(t):a(t))}}},Qx={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(px,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rx(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Xv(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Kx,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,rx(e,e.attempt(Qx,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Yv(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Gx,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Yv(t)&&++o<10?(e.consume(t),s):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(px,r.interrupt?n:c,e.attempt(Jx,d,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return Xv(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Jx={partial:!0,tokenize:function(e,t,n){const r=this;return rx(e,function(e){const i=r.events[r.events.length-1];return!Xv(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Kx={partial:!0,tokenize:function(e,t,n){const r=this;return rx(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},Xx={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let o,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){o="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!o?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===i?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Xv(t)?rx(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||Jv(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},Zx={tokenize:function(e){const t=this,n=e.attempt(px,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,rx(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Tx,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},ew={resolveAll:iw()},tw=rw("string"),nw=rw("text");function rw(e){return{resolveAll:iw("text"===e?aw:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function iw(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function aw(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let a,o=i.length,s=-1,l=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const i={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}var ow=/* @__PURE__ */V({attentionMarkers:()=>fw,contentInitial:()=>lw,disable:()=>mw,document:()=>sw,flow:()=>uw,flowInitial:()=>cw,insideSpan:()=>hw,string:()=>dw,text:()=>pw}),sw={42:Qx,43:Qx,45:Qx,48:Qx,49:Qx,50:Qx,51:Qx,52:Qx,53:Qx,54:Qx,55:Qx,56:Qx,57:Qx,62:hx},lw={91:Ix},cw={[-2]:bx,[-1]:bx,32:bx},uw={35:Px,42:Gx,45:[Xx,Gx],60:Rx,61:Xx,95:Gx,96:yx,126:yx},dw={38:mx,92:fx},pw={[-5]:Yx,[-4]:Yx,[-3]:Yx,33:Hx,38:mx,42:cx,60:[dx,$x],91:Wx,92:[Dx,fx],93:qx,95:cx,96:xx},hw={null:[cx,ew]},fw={null:[42,95]},mw={null:[]};function gw(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:m(function(e,t){g(e,t.from)}),check:m(f),consume:function(e){Jv(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:m(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,r.push(o)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){return o=jv(o,e),function(){let e;for(;r._index<o.length;){const t=o[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}(),null!==o[o.length-1]?[]:(g(t,0),c.events=lx(a,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){u=u(e)}function f(e,t){t.restore()}function m(e,t){return function(n,i,a){let o,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return o=e,u=0,0===e.length?a:m(e[u])}function m(e){return function(n){return h=function(){const e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=a,y()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,b)(n)}}function g(t){return e(d,h),i}function b(e){return h.restore(),++u<o.length?m(o[u]):a}}}function g(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Mv(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}var yw=/[\0\t\n\r]/g,bw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vw(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return qv(n.slice(t?2:1),t?16:10)}return Pv(n)||e}var xw={}.hasOwnProperty;function ww(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(m),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(f),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(f,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(g),hardBreakTrailing:i(g),htmlFlow:i(y,a),htmlFlowData:u,htmlText:i(y,a),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(b),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(v),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(m),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=qv(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Pv(t),this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=kw(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vv(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(bw,vw)}(t),n.identifier=Vv(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=kw(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vv(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};Sw(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:a,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];xw.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Tw).call(s,void 0,e[0])}for(i.position={start:kw(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:kw(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function r(e,t,n){let r,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=c,n}function i(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:kw(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+sv({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Tw).call(this,e,r[0])),n.position.end=kw(e.end)}function c(){return Ov(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:kw(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=kw(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function y(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!Sx(e););return e}(function(e){const t={constructs:Lv([ow,...(e||{}).extensions||[]]),content:n(ix),defined:[],document:n(ax),flow:n(Zx),lazy:{},string:n(tw),text:n(nw)};return t;function n(e){return function(n){return gw(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,a,o){const s=[];let l,c,u,d,p;for(i=n+("string"==typeof i?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(yw.lastIndex=u,l=yw.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function kw(e){return{line:e.line,column:e.column,offset:e.offset}}function Sw(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Sw(e,r):Nw(e,r)}}function Nw(e,t){let n;for(n in t)if(xw.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Tw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+sv({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sv({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+sv({start:t.start,end:t.end})+") is still open")}function Cw(e){const t=this;t.parser=function(n){return ww(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ew(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function _w(e){const t=e.spread;return null==t?e.children.length>1:t}function Ow(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Aw(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Aw(t.slice(i),i>0,!1)),a.join("")}function Aw(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}var Iw={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=nx(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ew(e,t);const i={src:nx(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:nx(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ew(e,t);const i={href:nx(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:nx(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=_w(n[r])}return t}(n):_w(t),a={},o=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=av(t.children[1]),o=iv(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Ow(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:zw,yaml:zw,definition:zw,footnoteDefinition:zw};function zw(){}var Dw="object"==typeof self?self:globalThis,Pw=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Dw[e](t)},Mw=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{const e=n([],i);for(const t of o)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{const{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{const e=n(/* @__PURE__ */new Map,i);for(const[t,n]of o)e.set(r(t),r(n));return e}case 6:{const e=n(/* @__PURE__ */new Set,i);for(const t of o)e.add(r(t));return e}case 7:{const{name:e,message:t}=o;return n(Pw(e,t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(Pw(a,o),i)};return r})(/* @__PURE__ */new Map,e)(0),jw="",{toString:Rw}={},{keys:Lw}=Object,Fw=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Rw.call(e).slice(8,-1);switch(n){case"Array":return[1,jw];case"Object":return[2,jw];case"Date":return[3,jw];case"RegExp":return[4,jw];case"Map":return[5,jw];case"Set":return[6,jw];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},$w=([e,t])=>0===e&&("function"===t||"symbol"===t),qw=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=Fw(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}const e=[],t=i([o,e],r);for(const n of r)e.push(a(n));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],l=i([o,n],r);for(const t of Lw(r))!e&&$w(Fw(r[t]))||n.push([a(t),a(r[t])]);return l}case 3:return i([o,isNaN(r.getTime())?jw:r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{const t=[],n=i([o,t],r);for(const[i,o]of r)(e||!$w(Fw(i))&&!$w(Fw(o)))&&t.push([a(i),a(o)]);return n}case 6:{const t=[],n=i([o,t],r);for(const i of r)!e&&$w(Fw(i))||t.push(a(i));return n}}const{message:l}=r;return i([o,{name:s,message:l}],r)};return a})(!(t||n),!!t,/* @__PURE__ */new Map,r)(e),r},Vw="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Mw(qw(e,t)):structuredClone(e):(e,t)=>Mw(qw(e,t));function Bw(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Uw(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var Hw=function(e){if(null==e)return Yw;if("function"==typeof e)return Ww(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Hw(e[n]);return Ww(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return Ww(function(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0})}(e);if("string"==typeof e)return function(e){return Ww(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function Ww(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Yw(){return!0}var Gw=[];function Qw(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const a=Hw(i),o=r?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Gw;if((!t||a(i,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?Gw:[e]}(n(i,l)),!1===p[0]))return p;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),!1===c[0])return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function Jw(e,t,n,r){let i,a,o;"function"==typeof t&&"function"!=typeof n?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Qw(e,a,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}var Kw={}.hasOwnProperty,Xw={};function Zw(e,t){const n=t||Xw,r=/* @__PURE__ */new Map,i=/* @__PURE__ */new Map,a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=ik(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=ik(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tk,definitionById:r,footnoteById:i,footnoteCounts:/* @__PURE__ */new Map,footnoteOrder:[],handlers:{...Iw,...n.handlers},one:function(e,t){const n=e.type,r=a.handlers[n];if(Kw.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Vw(n);return r.children=a.all(e),r}return Vw(e)}return(a.options.unknownHandler||nk)(a,e,t)},options:n,patch:ek,wrap:rk};return Jw(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}function ek(e,t){e.position&&(t.position=function(e){const t=av(e),n=iv(e);if(t&&n)return{start:t,end:n}}(e))}function tk(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,Vw(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nk(e,t){const n=t.data||{},r=!("value"in t)||Kw.call(n,"hProperties")||Kw.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function rk(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function ik(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ak(e,t){const n=Zw(e,t),r=n.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Bw,r=e.options.footnoteBackLabel||Uw,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const a=e.all(i),o=String(i.identifier).toUpperCase(),c=nx(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=a[a.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else a.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vw(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function ok(e,t){return e&&"run"in e?async function(n,r){const i=ak(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ak(n,{file:r,...e||t})}}function sk(e){if(e)throw e}var lk=/* @__PURE__ */q((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=c(d,n),d!==(i=c(t,n))&&(f&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},l(d,{name:n,newValue:e(f,u,i)})):void 0!==i&&l(d,{name:n,newValue:i}));return d}});function ck(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}var uk=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');mk(e);let n,r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dk=function(e){if(mk(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},pk=function(e){mk(e);let t,n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1);else if(t){i=n+1;break}}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},hk=function(...e){let t,n=-1;for(;++n<e.length;)mk(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){mk(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",a=0):(i=i.slice(0,r),a=i.length-1-i.lastIndexOf("/")),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},fk="/";function mk(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var gk=function(){return"/"};function yk(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}var bk=["history","path","basename","stem","extname","dirname"],vk=class{constructor(e){let t;t=e?yk(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":gk(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<bk.length;){const e=bk[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)bk.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?uk(this.path):void 0}set basename(e){wk(e,"basename"),xk(e,"basename"),this.path=hk(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?dk(this.path):void 0}set dirname(e){kk(this.basename,"dirname"),this.path=hk(e||"",this.basename)}get extname(){return"string"==typeof this.path?pk(this.path):void 0}set extname(e){if(xk(e,"extname"),kk(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hk(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){yk(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!yk(e)){const t=/* @__PURE__ */new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=/* @__PURE__ */new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=/* @__PURE__ */new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=/* @__PURE__ */new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),wk(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?uk(this.path,this.extname):void 0}set stem(e){wk(e,"stem"),xk(e,"stem"),this.path=hk(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new dv(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}};function xk(e,t){if(e&&e.includes(fk))throw new Error("`"+t+"` cannot be a path: did not expect `"+fk+"`")}function wk(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kk(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var Sk=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Nk=/* @__PURE__ */B(lk(),1),Tk={}.hasOwnProperty,Ck=(new class e extends Sk{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(a,...o){const s=e[++n];let l=-1;if(a)r(a);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let n;return function(...t){const o=e.length>t.length;let s;o&&t.push(r);try{s=e.apply(this,t)}catch(a){if(o&&n)throw a;return r(a)}o||(s&&s.then&&"function"==typeof s.then?s.then(i,r):s instanceof Error?r(s):i(s))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}(s,i)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const t=new e;let n=-1;for(;++n<this.attachers.length;){const e=this.attachers[n];t.use(...e)}return t.data((0,Nk.default)(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2===arguments.length?(Ok("data",this.frozen),this.namespace[e]=t,this):Tk.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ok("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=zk(e),n=this.parser||this.Parser;return Ek("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ek("process",this.parser||this.Parser),_k("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const a=zk(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);const i=t,a=n.stringify(i,r);var o;"string"==typeof(o=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?r.value=a:r.result=a,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Ek("processSync",this.parser||this.Parser),_k("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,sk(e),t=r}),Ik("processSync","process",n),t}run(e,t,n){Ak(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){const o=zk(t);r.run(e,o,function(t,r,o){const s=r||e;t?a(t):i?i(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){sk(e),n=t,r=!0}),Ik("runSync","run",r),n}stringify(e,t){this.freeze();const n=zk(t),r=this.compiler||this.Compiler;return _k("stringify",r),Ak(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ok("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):a(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,Nk.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t;const o=n[i][1];ck(o)&&ck(r)&&(r=(0,Nk.default)(!0,o,r)),n[i]=[e,r,...a]}}}}).freeze();function Ek(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function _k(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ok(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ak(e){if(!ck(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ik(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function zk(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new vk(e)}var Dk=[],Pk={allowDangerousHtml:!0},Mk=/^(https?|ircs?|mailto|xmpp)$/i,jk=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Rk(e){const t=function(e){const t=e.rehypePlugins||Dk,n=e.remarkPlugins||Dk,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Pk}:Pk;return Ck().use(Cw).use(n).use(ok,r).use(t)}(e),n=function(e){const t=e.children||"",n=new vk;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Lk;for(const c of jk)Object.hasOwn(t,c.from)&&(c.from,c.to&&c.to,c.id);return Jw(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ev)if(Object.hasOwn(Ev,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ev[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,i,a){const o=Array.isArray(i.children),s=av(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return function(e,r,i,a){const o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Xb:Kb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=bv(i,e,void 0);return a&&"string"!=typeof a?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}(e,{Fragment:O,components:i,ignoreInvalidStyle:!0,jsx:A,jsxs:I,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function Lk(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||Mk.test(e.slice(0,t))?e:""}function Fk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $k(e){return function(e){if(Array.isArray(e))return Fk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Fk(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fk(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qk(e){return qk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qk(e)}function Vk(e,t,n){return(t=function(e){var t=function(e){if("object"!=qk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bk(Object(n),!0).forEach(function(t){Vk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hk={};function Wk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");return Hk[r]||(Hk[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),Hk[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Uk(Uk({},e),n[t])},t)}function Yk(e){return e.join(" ")}function Gk(e){var n=e.node,r=e.stylesheet,i=e.style,a=void 0===i?{}:i,o=e.useInlineStyles,s=e.key,l=n.properties,c=n.type,u=n.tagName,d=n.value;if("text"===c)return d;if(u){var p,h=function(e,t){var n=0;return function(r){return n+=1,r.map(function(r,i){return Gk({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}(r,o);if(o){var f=Object.keys(r).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),m=l.className&&l.className.includes("token")?["token"]:[],g=l.className&&m.concat(l.className.filter(function(e){return!f.includes(e)}));p=Uk(Uk({},l),{},{className:Yk(g)||void 0,style:Wk(l.className,Object.assign({},l.style,a),r)})}else p=Uk(Uk({},l),{},{className:Yk(l.className)});var y=h(n.children);/*#__PURE__*/
|
|
26
|
+
/* @__PURE__ */r=n}else r=mb(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return hv.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Nv(e)}function Nv(e,t){const n=new dv("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater",n}function Tv(e){let t=e.replace(mv,Cv);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Cv(e){return"-"+e.toLowerCase()}var Ev={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_v={};function Ov(e,t){const n=t||_v;return Av(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Av(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Iv(e.children,t,n)}return Array.isArray(e)?Iv(e,t,n):""}function Iv(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Av(e[i],t,n);return r.join("")}var zv={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Dv={}.hasOwnProperty;function Pv(e){return!!Dv.call(zv,e)&&zv[e]}function Mv(e,t,n,r){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function jv(e,t){return e.length>0?(Mv(e,e.length,0,t),e):t}var Rv={}.hasOwnProperty;function Lv(e){const t={};let n=-1;for(;++n<e.length;)Fv(t,e[n]);return t}function Fv(e,t){let n;for(n in t){const r=(Rv.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){Rv.call(r,a)||(r[a]=[]);const e=i[a];$v(r[a],Array.isArray(e)?e:e?[e]:[])}}}function $v(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Mv(e,0,0,r)}function qv(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Vv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Bv=tx(/[A-Za-z]/),Uv=tx(/[\dA-Za-z]/),Hv=tx(/[#-'*+\--9=?A-Z^-~]/);function Wv(e){return null!==e&&(e<32||127===e)}var Yv=tx(/\d/),Gv=tx(/[\dA-Fa-f]/),Qv=tx(/[!-/:-@[-`{-~]/);function Jv(e){return null!==e&&e<-2}function Kv(e){return null!==e&&(e<0||32===e)}function Xv(e){return-2===e||-1===e||32===e}var Zv=tx(/\p{P}|\p{S}/u),ex=tx(/\s/);function tx(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function nx(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(37===a&&Uv(e.charCodeAt(n+1))&&Uv(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function rx(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Xv(r)?(e.enter(n),o(r)):t(r)};function o(r){return Xv(r)&&a++<i?(e.consume(r),o):(e.exit(n),t(r))}}var ix={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rx(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Jv(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},ax={tokenize:function(e){const t=this,n=[];let r,i,a,o=0;return s;function s(r){if(o<n.length){const i=n[o];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let i,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}y(o);let s=n;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return Mv(t.events,a+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(o===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ox,u,d)(i)}function u(e){return r&&b(),y(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==n.length,a=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(ox,h,f)(n)}function h(e){return o++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Jv(n)?(e.consume(n),g(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(y(o),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;Mv(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ox={tokenize:function(e,t,n){return rx(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function sx(e){return null===e||Kv(e)||ex(e)?1:Zv(e)?2:void 0}function lx(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var cx={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};ux(d,-s),ux(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=jv(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=jv(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=jv(l,lx(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=jv(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=jv(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Mv(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=sx(r);let a;return function(t){return a=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===a)return e.consume(s),o;const l=e.exit("attentionSequence"),c=sx(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===a?u:u&&(i||!d)),l._close=Boolean(42===a?d:d&&(c||!u)),t(s)}}};function ux(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var dx={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Bv(t)?(e.consume(t),a):64===t?n(t):l(t)}function a(e){return 43===e||45===e||46===e||Uv(e)?(r=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Uv(t))&&r++<32?(e.consume(t),o):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Wv(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Hv(t)?(e.consume(t),l):n(t)}function c(e){return Uv(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Uv(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},px={partial:!0,tokenize:function(e,t,n){return function(t){return Xv(t)?rx(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Jv(e)?t(e):n(e)}}},hx={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Xv(t)?rx(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(hx,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Xv(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},fx={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Qv(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},mx={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,a=Uv,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=Gv,c):(e.enter("characterReferenceValue"),i=7,a=Yv,c(t))}function c(s){if(59===s&&o){const i=e.exit("characterReferenceValue");return a!==Uv||Pv(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return a(s)&&o++<i?(e.consume(s),c):n(s)}}},gx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},yx={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),Xv(t)?rx(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===a?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),Xv(t)?rx(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||Jv(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,o=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Xv(t)?rx(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Jv(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(gx,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Jv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Xv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rx(e,d,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function d(t){return null===t||Jv(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Jv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),p)}function h(t){return e.attempt(i,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return o>0&&Xv(t)?rx(e,g,"linePrefix",o+1)(t):g(t)}function g(t){return null===t||Jv(t)?e.check(gx,h,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Jv(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}},bx={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),rx(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?s(t):Jv(t)?e.attempt(vx,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||Jv(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}},vx={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Jv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):rx(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Jv(e)?i(e):n(e)}}},xx={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):Jv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Jv(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}},wx=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&kx(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),kx(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),kx(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);kx(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);kx(this.left,t.reverse())}}};function kx(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Sx(e){const t={};let n,r,i,a,o,s,l,c=-1;const u=new wx(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Nx(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(a=u.get(i),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=i);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;r&&(n[1].end={...u.get(r)[1].start},o=u.slice(r,c),o.unshift(n),u.splice(r,c-r+1,o))}}return Mv(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Nx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=a.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}var Tx={resolve:function(e){return Sx(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Jv(t)?e.check(Cx,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Cx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rx(e,i,"linePrefix")};function i(i){if(null===i||Jv(i))return n(i);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function Ex(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||Wv(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Jv(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return u||null!==i&&41!==i&&!Kv(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||Wv(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function _x(e,t,n,r,i,a){const o=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Jv(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Jv(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Xv(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ox(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):Jv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rx(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||Jv(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Ax(e,t){let n;return function r(i){return Jv(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Xv(i)?rx(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var Ix={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return _x.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return i=Vv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return Kv(t)?Ax(e,s)(t):s(t)}function s(t){return Ex(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(zx,c,c)(t)}function c(t){return Xv(t)?rx(e,u,"whitespace")(t):u(t)}function u(a){return null===a||Jv(a)?(e.exit("definition"),r.parser.defined.push(i),t(a)):n(a)}}},zx={partial:!0,tokenize:function(e,t,n){return function(t){return Kv(t)?Ax(e,r)(t):n(t)};function r(t){return Ox(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Xv(t)?rx(e,a,"whitespace")(t):a(t)}function a(e){return null===e||Jv(e)?t(e):n(e)}}},Dx={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Jv(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Px={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Mv(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Kv(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||Jv(n)?(e.exit("atxHeading"),t(n)):Xv(n)?rx(e,a,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||Kv(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}}},Mx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jx=["pre","script","style","textarea"],Rx={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let i,a,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:P):Bv(s)?(e.consume(s),o=String.fromCharCode(s),f):n(s)}function u(a){return 45===a?(e.consume(a),i=2,d):91===a?(e.consume(a),i=5,s=0,p):Bv(a)?(e.consume(a),i=4,r.interrupt?t:P):n(a)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:P):n(i)}function p(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:C:p):n(i)}function h(t){return Bv(t)?(e.consume(t),o=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||Kv(s)){const l=47===s,c=o.toLowerCase();return l||a||!jx.includes(c)?Mx.includes(o.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):C(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?g(s):y(s)):(i=1,r.interrupt?t(s):C(s))}return 45===s||Uv(s)?(e.consume(s),o+=String.fromCharCode(s),f):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:C):n(i)}function g(t){return Xv(t)?(e.consume(t),g):N(t)}function y(t){return 47===t?(e.consume(t),N):58===t||95===t||Bv(t)?(e.consume(t),b):Xv(t)?(e.consume(t),y):N(t)}function b(t){return 45===t||46===t||58===t||95===t||Uv(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),x):Xv(t)?(e.consume(t),v):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):Xv(t)?(e.consume(t),x):k(t)}function w(t){return t===l?(e.consume(t),l=null,S):null===t||Jv(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Kv(t)?v(t):(e.consume(t),k)}function S(e){return 47===e||62===e||Xv(e)?y(e):n(e)}function N(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||Jv(t)?C(t):Xv(t)?(e.consume(t),T):n(t)}function C(t){return 45===t&&2===i?(e.consume(t),A):60===t&&1===i?(e.consume(t),I):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),P):93===t&&5===i?(e.consume(t),D):!Jv(t)||6!==i&&7!==i?null===t||Jv(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Lx,j,E)(t))}function E(t){return e.check(Fx,_,j)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||Jv(t)?E(t):(e.enter("htmlFlowData"),C(t))}function A(t){return 45===t?(e.consume(t),P):C(t)}function I(t){return 47===t?(e.consume(t),o="",z):C(t)}function z(t){if(62===t){const n=o.toLowerCase();return jx.includes(n)?(e.consume(t),M):C(t)}return Bv(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),z):C(t)}function D(t){return 93===t?(e.consume(t),P):C(t)}function P(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),P):C(t)}function M(t){return null===t||Jv(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),M)}function j(n){return e.exit("htmlFlow"),t(n)}}},Lx={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(px,t,n)}}},Fx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Jv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},$x={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,a,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),b):Bv(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,h):Bv(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Jv(t)?(o=u,z(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?I(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):Jv(t)?(o=f,z(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?I(t):Jv(t)?(o=y,z(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):Jv(t)?(o=b,z(t)):(e.consume(t),b)}function v(e){return 62===e?I(e):b(e)}function x(t){return Bv(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Uv(t)?(e.consume(t),w):k(t)}function k(t){return Jv(t)?(o=k,z(t)):Xv(t)?(e.consume(t),k):I(t)}function S(t){return 45===t||Uv(t)?(e.consume(t),S):47===t||62===t||Kv(t)?N(t):n(t)}function N(t){return 47===t?(e.consume(t),I):58===t||95===t||Bv(t)?(e.consume(t),T):Jv(t)?(o=N,z(t)):Xv(t)?(e.consume(t),N):I(t)}function T(t){return 45===t||46===t||58===t||95===t||Uv(t)?(e.consume(t),T):C(t)}function C(t){return 61===t?(e.consume(t),E):Jv(t)?(o=C,z(t)):Xv(t)?(e.consume(t),C):N(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,_):Jv(t)?(o=E,z(t)):Xv(t)?(e.consume(t),E):(e.consume(t),O)}function _(t){return t===i?(e.consume(t),i=void 0,A):null===t?n(t):Jv(t)?(o=_,z(t)):(e.consume(t),_)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Kv(t)?N(t):(e.consume(t),O)}function A(e){return 47===e||62===e||Kv(e)?N(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function z(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return Xv(t)?rx(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),o(t)}}},qx={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Mv(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=jv(a,e.slice(r+1,r+s+3)),a=jv(a,[["enter",u,t]]),a=jv(a,lx(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=jv(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=jv(a,e.slice(i+1)),a=jv(a,[["exit",l,t]]),Mv(e,r,e.length,a),e},tokenize:function(e,t,n){const r=this;let i,a,o=r.events.length;for(;o--;)if(("labelImage"===r.events[o][1].type||"labelLink"===r.events[o][1].type)&&!r.events[o][1]._balanced){i=r.events[o][1];break}return function(t){return i?i._inactive?u(t):(a=r.parser.defined.includes(Vv(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(Vx,c,a?c:u)(t):91===t?e.attempt(Bx,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(Ux,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}},Vx={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Kv(t)?Ax(e,i)(t):i(t)}function i(t){return 41===t?c(t):Ex(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Kv(t)?Ax(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?Ox(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Kv(t)?Ax(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Bx={tokenize:function(e,t,n){const r=this;return function(t){return _x.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Vv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},Ux={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Hx={name:"labelStartImage",resolveAll:qx.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},Wx={name:"labelStartLink",resolveAll:qx.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},Yx={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rx(e,t,"linePrefix")}}},Gx={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),o(a)):i>=3&&(null===a||Jv(a))?(e.exit("thematicBreak"),t(a)):n(a)}function o(t){return t===r?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),Xv(t)?rx(e,a,"whitespace")(t):a(t))}}},Qx={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(px,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rx(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Xv(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Kx,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,rx(e,e.attempt(Qx,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Yv(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Gx,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Yv(t)&&++o<10?(e.consume(t),s):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(px,r.interrupt?n:c,e.attempt(Jx,d,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return Xv(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Jx={partial:!0,tokenize:function(e,t,n){const r=this;return rx(e,function(e){const i=r.events[r.events.length-1];return!Xv(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Kx={partial:!0,tokenize:function(e,t,n){const r=this;return rx(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},Xx={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let o,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){o="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!o?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===i?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Xv(t)?rx(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||Jv(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},Zx={tokenize:function(e){const t=this,n=e.attempt(px,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,rx(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Tx,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},ew={resolveAll:iw()},tw=rw("string"),nw=rw("text");function rw(e){return{resolveAll:iw("text"===e?aw:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function iw(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function aw(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let a,o=i.length,s=-1,l=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const i={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}var ow=/* @__PURE__ */V({attentionMarkers:()=>fw,contentInitial:()=>lw,disable:()=>mw,document:()=>sw,flow:()=>uw,flowInitial:()=>cw,insideSpan:()=>hw,string:()=>dw,text:()=>pw}),sw={42:Qx,43:Qx,45:Qx,48:Qx,49:Qx,50:Qx,51:Qx,52:Qx,53:Qx,54:Qx,55:Qx,56:Qx,57:Qx,62:hx},lw={91:Ix},cw={[-2]:bx,[-1]:bx,32:bx},uw={35:Px,42:Gx,45:[Xx,Gx],60:Rx,61:Xx,95:Gx,96:yx,126:yx},dw={38:mx,92:fx},pw={[-5]:Yx,[-4]:Yx,[-3]:Yx,33:Hx,38:mx,42:cx,60:[dx,$x],91:Wx,92:[Dx,fx],93:qx,95:cx,96:xx},hw={null:[cx,ew]},fw={null:[42,95]},mw={null:[]};function gw(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:m(function(e,t){g(e,t.from)}),check:m(f),consume:function(e){Jv(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:m(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,r.push(o)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){return o=jv(o,e),function(){let e;for(;r._index<o.length;){const t=o[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}(),null!==o[o.length-1]?[]:(g(t,0),c.events=lx(a,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){u=u(e)}function f(e,t){t.restore()}function m(e,t){return function(n,i,a){let o,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return o=e,u=0,0===e.length?a:m(e[u])}function m(e){return function(n){return h=function(){const e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=a,y()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,b)(n)}}function g(t){return e(d,h),i}function b(e){return h.restore(),++u<o.length?m(o[u]):a}}}function g(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Mv(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}var yw=/[\0\t\n\r]/g,bw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vw(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return qv(n.slice(t?2:1),t?16:10)}return Pv(n)||e}var xw={}.hasOwnProperty;function ww(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(m),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(f),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(f,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(g),hardBreakTrailing:i(g),htmlFlow:i(y,a),htmlFlowData:u,htmlText:i(y,a),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(b),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(v),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(m),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=qv(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Pv(t),this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=kw(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vv(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(bw,vw)}(t),n.identifier=Vv(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=kw(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vv(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};Sw(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:a,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];xw.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Tw).call(s,void 0,e[0])}for(i.position={start:kw(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:kw(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function r(e,t,n){let r,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=c,n}function i(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:kw(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+sv({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Tw).call(this,e,r[0])),n.position.end=kw(e.end)}function c(){return Ov(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:kw(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=kw(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function y(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!Sx(e););return e}(function(e){const t={constructs:Lv([ow,...(e||{}).extensions||[]]),content:n(ix),defined:[],document:n(ax),flow:n(Zx),lazy:{},string:n(tw),text:n(nw)};return t;function n(e){return function(n){return gw(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,a,o){const s=[];let l,c,u,d,p;for(i=n+("string"==typeof i?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(yw.lastIndex=u,l=yw.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function kw(e){return{line:e.line,column:e.column,offset:e.offset}}function Sw(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Sw(e,r):Nw(e,r)}}function Nw(e,t){let n;for(n in t)if(xw.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Tw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+sv({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sv({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+sv({start:t.start,end:t.end})+") is still open")}function Cw(e){const t=this;t.parser=function(n){return ww(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ew(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function _w(e){const t=e.spread;return null==t?e.children.length>1:t}function Ow(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Aw(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Aw(t.slice(i),i>0,!1)),a.join("")}function Aw(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}var Iw={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=nx(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ew(e,t);const i={src:nx(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:nx(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ew(e,t);const i={href:nx(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:nx(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=_w(n[r])}return t}(n):_w(t),a={},o=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=av(t.children[1]),o=iv(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Ow(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:zw,yaml:zw,definition:zw,footnoteDefinition:zw};function zw(){}var Dw="object"==typeof self?self:globalThis,Pw=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Dw[e](t)},Mw=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{const e=n([],i);for(const t of o)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{const{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{const e=n(/* @__PURE__ */new Map,i);for(const[t,n]of o)e.set(r(t),r(n));return e}case 6:{const e=n(/* @__PURE__ */new Set,i);for(const t of o)e.add(r(t));return e}case 7:{const{name:e,message:t}=o;return n("function"==typeof Dw[e]?Pw(e,t):new Error(t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(Pw(a,o),i)};return r})(/* @__PURE__ */new Map,e)(0),jw="",{toString:Rw}={},{keys:Lw}=Object,Fw=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Rw.call(e).slice(8,-1);switch(n){case"Array":return[1,jw];case"Object":return[2,jw];case"Date":return[3,jw];case"RegExp":return[4,jw];case"Map":return[5,jw];case"Set":return[6,jw];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},$w=([e,t])=>0===e&&("function"===t||"symbol"===t),qw=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=Fw(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}const e=[],t=i([o,e],r);for(const n of r)e.push(a(n));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],l=i([o,n],r);for(const t of Lw(r))!e&&$w(Fw(r[t]))||n.push([a(t),a(r[t])]);return l}case 3:return i([o,isNaN(r.getTime())?jw:r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{const t=[],n=i([o,t],r);for(const[i,o]of r)(e||!$w(Fw(i))&&!$w(Fw(o)))&&t.push([a(i),a(o)]);return n}case 6:{const t=[],n=i([o,t],r);for(const i of r)!e&&$w(Fw(i))||t.push(a(i));return n}}const{message:l}=r;return i([o,{name:s,message:l}],r)};return a})(!(t||n),!!t,/* @__PURE__ */new Map,r)(e),r},Vw="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Mw(qw(e,t)):structuredClone(e):(e,t)=>Mw(qw(e,t));function Bw(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Uw(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var Hw=function(e){if(null==e)return Yw;if("function"==typeof e)return Ww(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Hw(e[n]);return Ww(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return Ww(function(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0})}(e);if("string"==typeof e)return function(e){return Ww(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function Ww(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Yw(){return!0}var Gw=[];function Qw(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const a=Hw(i),o=r?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Gw;if((!t||a(i,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?Gw:[e]}(n(i,l)),!1===p[0]))return p;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),!1===c[0])return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function Jw(e,t,n,r){let i,a,o;"function"==typeof t&&"function"!=typeof n?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Qw(e,a,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}var Kw={}.hasOwnProperty,Xw={};function Zw(e,t){const n=t||Xw,r=/* @__PURE__ */new Map,i=/* @__PURE__ */new Map,a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=ik(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=ik(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tk,definitionById:r,footnoteById:i,footnoteCounts:/* @__PURE__ */new Map,footnoteOrder:[],handlers:{...Iw,...n.handlers},one:function(e,t){const n=e.type,r=a.handlers[n];if(Kw.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Vw(n);return r.children=a.all(e),r}return Vw(e)}return(a.options.unknownHandler||nk)(a,e,t)},options:n,patch:ek,wrap:rk};return Jw(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}function ek(e,t){e.position&&(t.position=function(e){const t=av(e),n=iv(e);if(t&&n)return{start:t,end:n}}(e))}function tk(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,Vw(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nk(e,t){const n=t.data||{},r=!("value"in t)||Kw.call(n,"hProperties")||Kw.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function rk(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function ik(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ak(e,t){const n=Zw(e,t),r=n.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Bw,r=e.options.footnoteBackLabel||Uw,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const a=e.all(i),o=String(i.identifier).toUpperCase(),c=nx(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=a[a.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else a.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vw(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function ok(e,t){return e&&"run"in e?async function(n,r){const i=ak(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ak(n,{file:r,...e||t})}}function sk(e){if(e)throw e}var lk=/* @__PURE__ */q((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=c(d,n),d!==(i=c(t,n))&&(f&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},l(d,{name:n,newValue:e(f,u,i)})):void 0!==i&&l(d,{name:n,newValue:i}));return d}});function ck(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}var uk=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');mk(e);let n,r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dk=function(e){if(mk(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},pk=function(e){mk(e);let t,n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1);else if(t){i=n+1;break}}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},hk=function(...e){let t,n=-1;for(;++n<e.length;)mk(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){mk(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",a=0):(i=i.slice(0,r),a=i.length-1-i.lastIndexOf("/")),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},fk="/";function mk(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var gk=function(){return"/"};function yk(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}var bk=["history","path","basename","stem","extname","dirname"],vk=class{constructor(e){let t;t=e?yk(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":gk(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<bk.length;){const e=bk[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)bk.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?uk(this.path):void 0}set basename(e){wk(e,"basename"),xk(e,"basename"),this.path=hk(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?dk(this.path):void 0}set dirname(e){kk(this.basename,"dirname"),this.path=hk(e||"",this.basename)}get extname(){return"string"==typeof this.path?pk(this.path):void 0}set extname(e){if(xk(e,"extname"),kk(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hk(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){yk(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!yk(e)){const t=/* @__PURE__ */new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=/* @__PURE__ */new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=/* @__PURE__ */new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=/* @__PURE__ */new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),wk(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?uk(this.path,this.extname):void 0}set stem(e){wk(e,"stem"),xk(e,"stem"),this.path=hk(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new dv(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}};function xk(e,t){if(e&&e.includes(fk))throw new Error("`"+t+"` cannot be a path: did not expect `"+fk+"`")}function wk(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kk(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var Sk=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Nk=/* @__PURE__ */B(lk(),1),Tk={}.hasOwnProperty,Ck=(new class e extends Sk{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(a,...o){const s=e[++n];let l=-1;if(a)r(a);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let n;return function(...t){const o=e.length>t.length;let s;o&&t.push(r);try{s=e.apply(this,t)}catch(a){if(o&&n)throw a;return r(a)}o||(s&&s.then&&"function"==typeof s.then?s.then(i,r):s instanceof Error?r(s):i(s))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}(s,i)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const t=new e;let n=-1;for(;++n<this.attachers.length;){const e=this.attachers[n];t.use(...e)}return t.data((0,Nk.default)(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2===arguments.length?(Ok("data",this.frozen),this.namespace[e]=t,this):Tk.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ok("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=zk(e),n=this.parser||this.Parser;return Ek("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ek("process",this.parser||this.Parser),_k("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const a=zk(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);const i=t,a=n.stringify(i,r);var o;"string"==typeof(o=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?r.value=a:r.result=a,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Ek("processSync",this.parser||this.Parser),_k("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,sk(e),t=r}),Ik("processSync","process",n),t}run(e,t,n){Ak(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){const o=zk(t);r.run(e,o,function(t,r,o){const s=r||e;t?a(t):i?i(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){sk(e),n=t,r=!0}),Ik("runSync","run",r),n}stringify(e,t){this.freeze();const n=zk(t),r=this.compiler||this.Compiler;return _k("stringify",r),Ak(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ok("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):a(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,Nk.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t;const o=n[i][1];ck(o)&&ck(r)&&(r=(0,Nk.default)(!0,o,r)),n[i]=[e,r,...a]}}}}).freeze();function Ek(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function _k(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ok(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ak(e){if(!ck(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ik(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function zk(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new vk(e)}var Dk=[],Pk={allowDangerousHtml:!0},Mk=/^(https?|ircs?|mailto|xmpp)$/i,jk=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Rk(e){const t=function(e){const t=e.rehypePlugins||Dk,n=e.remarkPlugins||Dk,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Pk}:Pk;return Ck().use(Cw).use(n).use(ok,r).use(t)}(e),n=function(e){const t=e.children||"",n=new vk;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Lk;for(const c of jk)Object.hasOwn(t,c.from)&&(c.from,c.to&&c.to,c.id);return Jw(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ev)if(Object.hasOwn(Ev,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ev[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,i,a){const o=Array.isArray(i.children),s=av(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return function(e,r,i,a){const o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Xb:Kb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=bv(i,e,void 0);return a&&"string"!=typeof a?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}(e,{Fragment:O,components:i,ignoreInvalidStyle:!0,jsx:A,jsxs:I,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function Lk(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||Mk.test(e.slice(0,t))?e:""}function Fk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $k(e){return function(e){if(Array.isArray(e))return Fk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Fk(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fk(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qk(e){return qk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qk(e)}function Vk(e,t,n){return(t=function(e){var t=function(e){if("object"!=qk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bk(Object(n),!0).forEach(function(t){Vk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hk={};function Wk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");return Hk[r]||(Hk[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),Hk[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Uk(Uk({},e),n[t])},t)}function Yk(e){return e.join(" ")}function Gk(e){var n=e.node,r=e.stylesheet,i=e.style,a=void 0===i?{}:i,o=e.useInlineStyles,s=e.key,l=n.properties,c=n.type,u=n.tagName,d=n.value;if("text"===c)return d;if(u){var p,h=function(e,t){var n=0;return function(r){return n+=1,r.map(function(r,i){return Gk({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}(r,o);if(o){var f=Object.keys(r).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),m=l.className&&l.className.includes("token")?["token"]:[],g=l.className&&m.concat(l.className.filter(function(e){return!f.includes(e)}));p=Uk(Uk({},l),{},{className:Yk(g)||void 0,style:Wk(l.className,Object.assign({},l.style,a),r)})}else p=Uk(Uk({},l),{},{className:Yk(l.className)});var y=h(n.children);/*#__PURE__*/
|
|
27
27
|
return t.createElement(u,Oy({key:s},p),y)}}var Qk=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jk(Object(n),!0).forEach(function(t){Vk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Xk=/\n/g;function Zk(e){var n=e.codeString,r=e.codeStyle,i=e.containerStyle,a=void 0===i?{float:"left",paddingRight:"10px"}:i,o=e.numberStyle,s=void 0===o?{}:o,l=e.startingLineNumber;/*#__PURE__*/
|
|
28
28
|
return t.createElement("code",{style:Object.assign({},r,a)},function(e){var n=e.startingLineNumber,r=e.style;return e.lines.map(function(e,i){var a=i+n;/*#__PURE__*/
|
|
29
29
|
return t.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:"function"==typeof r?r(a):r},"".concat(a,"\n"))})}({lines:n.replace(/\n$/,"").split("\n"),style:s,startingLineNumber:l}))}function eS(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function tS(e,t,n){var r,i={display:"inline-block",minWidth:(r=n,"".concat(r.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return Kk(Kk({},i),a)}function nS(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,a=e.showInlineLineNumbers,o=e.lineProps,s=void 0===o?{}:o,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,h=void 0!==p&&p?Kk({},"function"==typeof s?s(n):s):{};if(h.className=h.className?[].concat($k(h.className.trim().split(/\s+/)),$k(c)):c,n&&a){var f=tS(r,n,i);t.unshift(eS(n,f))}return d&u&&(h.style=Kk({display:"flex"},h.style)),{type:"element",tagName:"span",properties:h,children:t}}function rS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];void 0===e.length&&(e=[e]);for(var r=0;r<e.length;r++){var i=e[r];if("text"===i.type)n.push(nS({children:[i],className:$k(new Set(t))}));else if(i.children){var a,o=t.concat((null===(a=i.properties)||void 0===a?void 0:a.className)||[]);rS(i.children,o).forEach(function(e){return n.push(e)})}}return n}function iS(e,t,n,r,i,a,o,s,l){var c,u=rS(e.value),d=[],p=-1,h=0;function f(e,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,a){return nS({children:e,lineNumber:a,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:l,wrapLines:t})}(e,a,c):function(e,t){if(r&&t&&i){var n=tS(s,t,o);e.unshift(eS(t,n))}return e}(e,a)}for(var m=function(){var e=u[h],t=e.children[0].value;if(t.match(Xk)){var n=t.split("\n");n.forEach(function(t,i){var o=r&&d.length+a,s={type:"text",value:"".concat(t,"\n")};if(0===i){var l=f(u.slice(p+1,h).concat(nS({children:[s],className:e.properties.className})),o);d.push(l)}else if(i===n.length-1){var c=u[h+1]&&u[h+1].children&&u[h+1].children[0],m={type:"text",value:"".concat(t)};if(c){var g=nS({children:[m],className:e.properties.className});u.splice(h+1,0,g)}else{var y=f([m],o,e.properties.className);d.push(y)}}else{var b=f([s],o,e.properties.className);d.push(b)}}),p=h}h++};h<u.length;)m();if(p!==u.length-1){var g=u.slice(p+1,u.length);if(g&&g.length){var y=f(g,r&&d.length+a);d.push(y)}}return t?d:(c=[]).concat.apply(c,d)}function aS(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return Gk({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function oS(e){return e&&void 0!==e.highlightAuto}var sS=/[#.]/g;function lS(e,t,n){const r=n?function(e){const t=/* @__PURE__ */new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i,...a){let o;if(null==n){o={type:"root",children:[]};const e=i;a.unshift(e)}else{o=function(e,t){const n=e||"",r={};let i,a,o=0;for(;o<n.length;){sS.lastIndex=o;const e=sS.exec(n),t=n.slice(o,e?e.index:n.length);t&&(i?"#"===i?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:a=t,o+=t.length),e&&(i=e[0],o++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}(n,t);const s=o.tagName.toLowerCase(),l=r?r.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(i))a.unshift(i);else for(const[t,n]of Object.entries(i))cS(e,o.properties,t,n)}for(const e of a)uS(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function cS(e,t,n,r){const i=Gb(e,n);let a;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?Zb(r):i.commaSeparated?db(r):i.commaOrSpaceSeparated?Zb(db(r).join(" ")):dS(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){const e=[];for(const t of a)e.push(dS(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function uS(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)uS(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?uS(e,t.children):e.push(t)}}function dS(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||xb(n)===xb(t)))return!0}return n}var pS=lS(Kb,"div"),hS=(lS(Xb,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]),fS={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function mS(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function gS(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function yS(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||mS(e)}var bS=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function vS(e,t){const n=t||{},r="string"==typeof n.additional?n.additional.charCodeAt(0):n.additional,i=[];let a,o,s=0,l=-1,c="";n.position&&("start"in n.position||"indent"in n.position?(o=n.position.indent,a=n.position.start):a=n.position);let u,d=(a?a.line:0)||1,p=(a?a.column:0)||1,h=f();for(s--;++s<=e.length;)if(10===u&&(p=(o?o[l]:0)||1),u=e.charCodeAt(s),38===u){const t=e.charCodeAt(s+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||r&&t===r){c+=String.fromCharCode(u),p++;continue}const a=s+1;let o,l=a,d=a;if(35===t){d=++l;const t=e.charCodeAt(d);88===t||120===t?(o="hexadecimal",d=++l):o="decimal"}else o="named";let y="",b="",v="";const x="named"===o?yS:"decimal"===o?mS:gS;for(d--;++d<=e.length;){const t=e.charCodeAt(d);if(!x(t))break;v+=String.fromCharCode(t),"named"===o&&hS.includes(v)&&(y=v,b=Pv(v))}let w=59===e.charCodeAt(d);if(w){d++;const e="named"===o&&Pv(v);e&&(y=v,b=e)}let k=1+d-a,S="";if(w||!1!==n.nonTerminated)if(v)if("named"===o){if(w&&!b)m(5,1);else if(y!==v&&(d=l+y.length,k=1+d-l,w=!1),!w){const t=y?1:3;if(n.attribute){const n=e.charCodeAt(d);61===n?(m(t,k),b=""):yS(n)?b="":m(t,k)}else m(t,k)}S=b}else{w||m(2,k);let e=Number.parseInt(v,"hexadecimal"===o?16:10);if(xS(e))m(7,k),S=String.fromCharCode(65533);else if(e in fS)m(6,k),S=fS[e];else{let t="";wS(e)&&m(6,k),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),S=t+String.fromCharCode(e)}}else"named"!==o&&m(4,k);if(S){g(),h=f(),s=d-1,p+=d-a+1,i.push(S);const t=f();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,S,{start:h,end:t},e.slice(a-1,d)),h=t}else v=e.slice(a-1,d),c+=v,p+=v.length,s=d-1}else 10===u&&(d++,l++,p=0),Number.isNaN(u)?g():(c+=String.fromCharCode(u),p++);return i.join("");function f(){return{line:d,column:p,offset:s+((a?a.offset:0)||0)}}function m(e,t){let r;n.warning&&(r=f(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,bS[e],r,e))}function g(){c&&(i.push(c),n.text&&n.text.call(n.textContext||void 0,c,{start:h,end:f()}),c="")}}function xS(e){return e>=55296&&e<=57343||e>1114111}function wS(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}var kS=0,SS={},NS={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++kS}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},NS.util.type(t)){case"Object":if(i=NS.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=NS.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}}},languages:{plain:SS,plaintext:SS,text:SS,txt:SS,extend:function(e,t){var n=NS.util.clone(NS.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||NS.languages)[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var l=r[e];return r[e]=a,NS.languages.DFS(NS.languages,function(t,n){n===l&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=NS.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],l=NS.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,o,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(NS.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=NS.tokenize(r.code,r.grammar),NS.hooks.run("after-tokenize",r),TS.stringify(NS.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new _S;return OS(i,i.head,e),ES(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=NS.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=NS.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:TS};function TS(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function CS(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function ES(e,t,n,r,i,a){for(var o in n)if(n.hasOwnProperty(o)&&n[o]){var s=n[o];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(a&&a.cause==o+","+l)return;var c=s[l],u=c.inside,d=!!c.lookbehind,p=!!c.greedy,h=c.alias;if(p&&!c.pattern.global){var f=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,f+"g")}for(var m=c.pattern||c,g=r.next,y=i;g!==t.tail&&!(a&&y>=a.reach);y+=g.value.length,g=g.next){var b=g.value;if(t.length>e.length)return;if(!(b instanceof TS)){var v,x=1;if(p){if(!(v=CS(m,y,e,d))||v.index>=e.length)break;var w=v.index,k=v.index+v[0].length,S=y;for(S+=g.value.length;w>=S;)S+=(g=g.next).value.length;if(y=S-=g.value.length,g.value instanceof TS)continue;for(var N=g;N!==t.tail&&(S<k||"string"==typeof N.value);N=N.next)x++,S+=N.value.length;x--,b=e.slice(y,S),v.index-=y}else if(!(v=CS(m,0,b,d)))continue;w=v.index;var T=v[0],C=b.slice(0,w),E=b.slice(w+T.length),_=y+b.length;a&&_>a.reach&&(a.reach=_);var O=g.prev;if(C&&(O=OS(t,O,C),y+=C.length),AS(t,O,x),g=OS(t,O,new TS(o,u?NS.tokenize(T,u):T,h,T)),E&&OS(t,g,E),x>1){var A={cause:o+","+l,reach:_};ES(e,t,n,g.prev,y,A),a&&A.reach>a.reach&&(a.reach=A.reach)}}}}}}function _S(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function OS(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function AS(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}var IS=NS;function zS(){}zS.prototype=IS;var DS=new zS;DS.highlight=function(e,t){if("string"!=typeof e)throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&"object"==typeof t)n=t;else{if(r=t,"string"!=typeof r)throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(!Object.hasOwn(DS.languages,r))throw new Error("Unknown language: `"+r+"` is not registered");n=DS.languages[r]}return{type:"root",children:IS.highlight.call(DS,e,n,r)}},DS.register=function(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(DS.languages,e.displayName)||e(DS)},DS.alias=function(e,t){const n=DS.languages;let r,i={};for(r in"string"==typeof e?t&&(i[e]=t):i=e,i)if(Object.hasOwn(i,r)){const e=i[r],t="string"==typeof e?[e]:e;let a=-1;for(;++a<t.length;)n[t[a]]=n[r]}},DS.registered=function(e){if("string"!=typeof e)throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(DS.languages,e)},DS.listLanguages=function(){const e=DS.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&"object"==typeof e[n]&&t.push(n);return t},DS.util.encode=function(e){return e},DS.Token.stringify=function e(t,n){if("string"==typeof t)return{type:"text",value:t};if(Array.isArray(t)){const r=[];let i=-1;for(;++i<t.length;)null!==t[i]&&void 0!==t[i]&&""!==t[i]&&r.push(e(t[i],n));return r}const r={attributes:{},classes:["token",t.type],content:e(t.content,n),language:n,tag:"span",type:t.type};return t.alias&&r.classes.push(..."string"==typeof t.alias?[t.alias]:t.alias),DS.hooks.run("wrap",r),pS(r.tag+"."+r.classes.join("."),function(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=vS(e[t]));return e}(r.attributes),r.content)};var PS,MS,jS=(PS=DS,MS={},function(e){var n,r,i=e.language,a=e.children,o=e.style,s=void 0===o?MS:o,l=e.customStyle,c=void 0===l?{}:l,u=e.codeTagProps,d=void 0===u?{className:i?"language-".concat(i):void 0,style:Kk(Kk({},s['code[class*="language-"]']),s['code[class*="language-'.concat(i,'"]')])}:u,p=e.useInlineStyles,h=void 0===p||p,f=e.showLineNumbers,m=void 0!==f&&f,g=e.showInlineLineNumbers,y=void 0===g||g,b=e.startingLineNumber,v=void 0===b?1:b,x=e.lineNumberContainerStyle,w=e.lineNumberStyle,k=void 0===w?{}:w,S=e.wrapLines,N=e.wrapLongLines,T=void 0!==N&&N,C=e.lineProps,E=void 0===C?{}:C,_=e.renderer,O=e.PreTag,A=void 0===O?"pre":O,I=e.CodeTag,z=void 0===I?"code":I,D=e.code,P=void 0===D?(Array.isArray(a)?a[0]:a)||"":D,M=e.astGenerator,j=function(e,t){if(null==e)return{};var n,r,i=Ay(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Qk);M=M||PS;var R=m?/*#__PURE__*/t.createElement(Zk,{containerStyle:x,codeStyle:d.style||{},numberStyle:k,startingLineNumber:v,codeString:P}):null,L=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},F=oS(M)?"hljs":"prismjs",$=h?Object.assign({},j,{style:Object.assign({},L,c)}):Object.assign({},j,{className:j.className?"".concat(F," ").concat(j.className):F,style:Object.assign({},c)});if(d.style=Kk(T?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},d.style),!M)/*#__PURE__*/return t.createElement(A,$,R,/*#__PURE__*/t.createElement(z,d,P));(void 0===S&&_||T)&&(S=!0),_=_||aS;var q=[{type:"text",value:P}],V=function(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(oS(t)){var a=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:i,language:"text"}:a?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:i}}catch(WR){return{value:i}}}({astGenerator:M,language:i,code:P,defaultCodeValue:q});null===V.language&&(V.value=q);var B=iS(V,S,E,m,y,v,v+(null!==(n=null===(r=P.match(/\n/g))||void 0===r?void 0:r.length)&&void 0!==n?n:0),k,T);/*#__PURE__*/
|
|
@@ -644,7 +644,7 @@ return A(qy,{className:ce("component__container-resizable-sidebar relative z-[10
|
|
|
644
644
|
/* @__PURE__ */A(zR,{orientation:t,tabSelected:r,elementSelected:l,onSelectElement:h})]})})},LR=({children:e})=>{let[t,n]=N([]),[r,i]=N({}),a=S(!1),o=m((e,t,r,i,a)=>{n(n=>[...n,{logType:e,category:t,message:r,time:a,params:i}])},[n]),s=m((e,t)=>i(n=>({...n,[e]:t})),[]),l=m(e=>i(t=>ie(t,[e])),[]),c=m((e,...t)=>{if(e&&"function"==typeof r[e])return r[e](...t)},[r]),u=m(()=>n([]),[]);return a.current||=(ja.setCallback(o),ja.setCallbackAddProvider(s),ja.setCallbackRemoveProvider(l),!0),y(()=>(ja.setCallback(o),ja.setCallbackAddProvider(s),ja.setCallbackRemoveProvider(l),ja.processPendingLogs(),()=>{ja.setCallback(void 0),ja.setCallbackAddProvider(void 0),ja.setCallbackRemoveProvider(void 0),ja.flush()}),[o,s,l]),/* @__PURE__ */A(vE,{value:w(()=>({providers:r,logs:t,setLogs:n,clearLogs:u,getData:c}),[r,t,n,u,c]),children:e})},FR=({children:e,className:t,innerClassName:n,enabled:r=!1,renderMode:i="default",devToolsStyle:a="",devToolsStyleLink:o=""})=>{let{theme:s}=f(EE),[l,c]=N("horizontal"),u=m(e=>c(e),[]);return r?/* @__PURE__ */A(LR,{children:/* @__PURE__ */I("div",{className:ce("flex grow overflow-auto",{"flex-col":"horizontal"===l,"h-screen":"vertical"===l},t),children:[
|
|
645
645
|
/* @__PURE__ */A("div",{className:ce("grow basis-0 flex-col overflow-auto",n),children:e}),"default"===i&&/* @__PURE__ */A(RR,{orientation:l,onChangeOrientation:u}),"shadow"===i&&/* @__PURE__ */I(Jy,{children:[o&&/* @__PURE__ */A(Jy.Link,{href:o}),/* @__PURE__ */I(Jy.Content,{children:[/* @__PURE__ */A("style",{dangerouslySetInnerHTML:{__html:a}}),/* @__PURE__ */A(RR,{className:ce({dark:"dark"===s}),orientation:l,onChangeOrientation:u})]})]})]})}):e},$R=({children:e,environment:t="main"})=>{let{routeParams:n,queryParams:r,hostname:i,currentPageId:a}=f(HI),[o]=Ri("schema.variables"),s=w(()=>o?o.reduce((e,a)=>{let{name:o,value:s,subValues:l}=a;if(!Array.isArray(l)||0===l.length)return{...e,[o]:s};let c={routeParams:n,queryParams:r,hostname:i,environment:t},u=l.find(e=>NC(e.when,c));return{...e,[o]:u?u.value:s}},{}):{},[t,i,r,n,o]);$m({id:"global",source:"variables",name:"Variables",fields:m(()=>Ji(s).map(e=>({path:e,name:`variables.${e}`})),[s])}),Li("runtime.sources.variables",s);let[l={}]=Ri("pageDefinitions"),c=w(()=>Object.values(l).map(e=>({value:e.id,label:K(e,"attributes.name",e.id)})),[l]),u=w(()=>({routeParams:n,queryParams:r,currentPageId:a}),[n,r,a]);$m({id:"global",source:"navigation",name:"Navigation",fields:m(()=>[...Ji({routeParams:n,queryParams:r}).map(e=>({path:e,name:`navigation.${e}`})),c.length>0?{path:"currentPageId",name:"Current Page",inputType:"select",values:c}:{path:"currentPageId",name:"Current Page"}],[n,r,c])}),Li("runtime.sources.navigation",u);let{user:d,authenticated:p}=f(Fz),[h="basic"]=Ri("schema.settings.userProvider"),g=w(()=>{switch(h){case"auth0":return{isAuthenticated:p,user:{given_name:"",family_name:"",nickname:"",name:"",picture:"",locale:"",updated_at:"",email:"",email_verified:!1,sub:"",...d}};case"basic":return{isAuthenticated:p,accessToken:d?.accessToken??"",details:{username:"",email:"",roles:"",permissions:"",verified:"",...d?.details??{}}};default:return{}}},[h,d,p]);$m({id:"global",source:"auth",name:"Auth State",fields:m(()=>Ji(g).map(e=>({path:e,name:`user.${e}`})),[g])}),Li("runtime.sources.auth",g);let[y]=Ri("runtime.state");return $m({id:"global",source:"state",name:"State",fields:m(()=>Ji(y).map(e=>({path:e,name:`state.${e}`})),[y])}),Li("runtime.sources.state",y),e},qR=class{debugMode=!1;events;listeners=/* @__PURE__ */new Map;constructor({events:e,debugMode:t=!1}={}){this.events=e??{},this.debugMode=t}has(e,t){if(!e)throw Error("Module name is required");return this.events[e]&&this.events[e][t]}on(e,t,n,r={}){let{filter:i,override:a=!1}=r;if(!e)throw Error("Module name is required");if(!n||"function"!=typeof n)throw Error("Callback must be a function");this.events[e]||(this.events[e]={}),(!this.events[e][t]||a&&this.events[e][t].length>0)&&(this.events[e][t]=[]),this.events[e][t].push({callback:n,filter:i})}get(e,t){return this.has(e,t)?this.events[e]?.[t]:[]}off(e,t,n){!this.has(e,t)||!this.events[e]||(this.events[e][t]=n?this.events[e][t]?.filter(e=>e.callback!==n):[],0===this.events[e][t]?.length&&delete this.events[e][t],0===Object.keys(this.events[e]).length&&delete this.events[e])}async emit(e,t=[],...n){let r;this.debugMode&&ja.info("eventBridge","Event Triggered",{module:e,events:t,data:n}),r=Array.isArray(t)?t:[t];let i=[];r.forEach(t=>{if(!this.has(e,t))return;let r=this.get(e,t);r&&r.forEach(e=>{let{callback:t,filter:r}=e;(!r||"function"!=typeof r||r(...n))&&i.push(t(...n))})});let a=await Promise.all(i);return this.touch(r.reduce((e,t)=>({...e,[t]:n}),{})),a}async emitWithResponse(e,t,...n){if(!this.has(e,t))return;let r=this.get(e,t);if(!r)return;let i=await Promise.all(r.filter(e=>!e.filter||e.filter(...n)).map(e=>e.callback(...n)));return 1===i.length?i[0]:i}once(e,t,n,r){if(!e)throw Error("Module name is required");let i=async r=>{await n(r),this.off(e,t,i)};this.on(e,t,i,{filter:r})}clear(e){e?this.events[e]&&delete this.events[e]:this.events={}}getEvents(e){return e?this.events[e]?this.events[e]:{}:this.events}getModuleEventsNames(e){return e&&this.events[e]?Object.keys(this.events[e]):[]}getModuleEventsCount(e){return this.getModuleEventsNames(e).length}listen(e,t){let n=Array.isArray(e)?e:[e];return n.forEach(e=>{this.listeners.has(e)||this.listeners.set(e,/* @__PURE__ */new Set),this.listeners.get(e)?.add(t)}),()=>{n.forEach(e=>{let n=this.listeners.get(e);n&&(n.delete(t),0===n.size&&this.listeners.delete(e))})}}touch(e){for(let t in e){let n=this.listeners.get(t);if(n)for(let t of n)t(e)}}},VR=({children:e,debugMode:t,onInit:n})=>{let r=w(()=>new qR({debugMode:t}),[t]);y(()=>()=>{r.clear()},[r]);let i=w(()=>({eventBridge:r}),[r]);return y(()=>{n?.(i)},[n,i]),/* @__PURE__ */A(BE,{value:i,children:e})},BR=({id:e,interactions:t,triggers:n,callbacks:r,getAdditionalParams:i})=>{let{interactionsManager:a}=f(Qz);y(()=>(a.subscribe(e,t,n,r,i),()=>{a.unsubscribe(e)}),[e,t,n,r,i,a])},UR={action:"delayTime",title:"Delay Time",type:"utility",params:{time:{label:"Time (Milliseconds)",type:"text"}},preview:{},callback:({time:e})=>new Promise(t=>{setTimeout(t,e)})},HR={action:"twigTemplate",title:"Twig Template",type:"utility",params:{returnMode:{label:"Mode",canBind:!1,type:"select",defaultValue:"text",options:[{label:"Text",value:"text"},{label:"Json Text",value:"json"},{label:"Json Object",value:"jsonObject"}]},template:{label:"Template",canBind:!1,defaultValue:"",type:e=>{let{returnMode:t}=e;return"text"===t?"codemirror-text":"codemirror-json"}}},preview:e=>{let{template:t,returnMode:n}=e;if("jsonObject"===n)try{let n=JSON.parse(Bo(t,e));if(n&&"object"==typeof n)return{template:"",content:Ji(n).reduce((e,t)=>({...e,[t]:""}),{})}}catch{}return{template:"",content:""}},callback:e=>{let{template:t,returnMode:n}=e,r="";try{r=Bo(t,e)}catch(WR){}if("jsonObject"===n)try{return{content:JSON.parse(r)}}catch(WR){}else if("json"===n)try{return JSON.parse(r),{content:r}}catch{return{content:""}}return{content:r}}},WR={action:"webHook",title:"Webhook",type:"utility",params:{url:{canBind:!0,defaultValue:"",type:"text",label:"Url"},method:{label:"Method",type:"select",defaultValue:"get",options:[{label:"Get",value:"get"},{label:"Post",value:"post"},{label:"Put",value:"put"},{label:"Delete",value:"delete"},{label:"Patch",value:"patch"},{label:"Head",value:"head"}]},body:{canBind:!0,defaultValue:"",type:"textarea",label:"Body"},authorizationToken:{canBind:!0,defaultValue:"",type:"text",label:"Authorization Token"},credentials:{canBind:!0,defaultValue:"same-origin",type:"select",options:[{label:"Include",value:"include"},{label:"Omit",value:"omit"},{label:"Same Origin",value:"same-origin"}],label:"Credentials"}},preview:{response:{status:"",data:""}},callback:async e=>{let{url:t,authorizationToken:n,body:r,credentials:i}=e,{method:a}=e,o={};try{a=a.toUpperCase();let e={};n&&(e.Authorization=`Bearer ${n}`),Object.values(r).forEach(t=>{t instanceof Blob&&"multipart/form-data"!==e["Content-Type"]&&(e["Content-Type"]="multipart/form-data")});let s=new FormData;Object.entries(r).forEach(([e,t])=>{s?.append(e,t)});let l={method:a,headers:e,credentials:i};(!a||"get"!==a.toLowerCase())&&(l.body=s);let c=await fetch(t,l),u="";try{u=await c.json()}catch{}o={status:c.status,data:u}}catch(e){}return{response:o}}},YR={delayTime:UR,twigTemplate:HR,webHook:WR},GR=(e,t,n,r,i)=>"utility"===e&&"twigTemplate"===i?t:Object.keys(t).reduce((i,a)=>{let o=t[a];if("trigger"!==e){let e=5;for(;"string"==typeof o&&Vo(o)&&e>0;)o=Bo(o,{...n,...r},!1,!0),e--;"string"==typeof o&&Vo(o)&&ja.warning("interactions",/* @__PURE__ */I("span",{children:["Twig token resolution exceeded ",5," passes for ",
|
|
646
646
|
/* @__PURE__ */A("b",{children:a}),", leaving unresolved tokens"]}),{param:a,value:o})}return{...i,[a]:o}},{}),QR=async(e,t={},n={},r={})=>{let i={},a=[],{id:o,action:s,enabled:l,params:c,elementId:u,type:d,when:p}=e;if(!s||!l)return{status:"disabled",result:i,postCallbacks:a};let h={...r,...n,[o]:c};if(p&&!NC(p,h))return{status:"skipped",result:i,postCallbacks:a,whenParams:h};let f={...n,...r,...GR(d,c,n,r,s)};try{switch(d){case"callback":case"globalCallback":{if(!u)return{status:"failed",result:i,postCallbacks:a,whenParams:h};let e=K(t,`${u}.${s}`);if(!e)return{status:"failed",result:i,postCallbacks:a,whenParams:h};let{callback:n,postCallback:r}=e;n&&(i=await n(f)),r&&a.push({id:o,callback:r,params:{...f,[o]:i}});break}case"utility":{let{callback:e,postCallback:t}=K(YR,s,{});e&&(i=await e(f)),t&&a.push({id:o,callback:t,params:{...f,[o]:i}});break}}}catch(WR){return ja.danger("interactions",/* @__PURE__ */I("span",{children:["Interaction node failed ",/* @__PURE__ */A("b",{children:s})]}),{error:WR instanceof Error?WR.message:String(WR),node:e}),{status:"failed",result:i,postCallbacks:a,whenParams:h}}return{status:"success",result:i,postCallbacks:a,whenParams:h}},JR=async(e,t={},n={},r={},i={},a=[],o={})=>{if(!e)return o;let s=K(t,e.afterNode);if(!s&&a.length>0&&await(async(e=[])=>{let t={};return await Promise.all(e.reverse().map(async({id:e,callback:n,params:r})=>{t[e]=await(n?.(ie(r,[e]),r[e]))})),t})(a),!s)return o;let l=ja.getTime().valueOf(),{status:c,result:u,postCallbacks:d,whenParams:p}=await QR(s,n,r,i);return o[s.id]={node:s,status:c,result:u,postCallbacks:d,whenParams:p,startTime:l,endTime:ja.getTime().valueOf()},a.push(...d),JR(s,t,n,{...r,[s.id]:u},i,a,o)},KR=(e,t,n={},r)=>{let i=ja.getTime().valueOf(),a="skipped";"completed"===r&&(a="success"),ja.info("interactions",/* @__PURE__ */I("span",{children:["Interaction triggered ",/* @__PURE__ */A("b",{children:`${e.title} [${e.action}]`})]}),{status:r,node:e,elementId:e.elementId,nodes:{...n,[e.id]:{node:e,status:a,result:void 0,postCallbacks:[],startTime:t,endTime:i}},startTime:t,endTime:i})},XR=qR,ZR=class e{eventBridge;parentManager;childManagers;interactionsData;subscriptors;callbacksAvailables;interactionsRunning;lastUpdate;listeners=/* @__PURE__ */new Set;constructor(e="",t={},n={}){this.eventBridge=new XR,this.parentManager=void 0,this.childManagers=[],this.subscriptors={},this.callbacksAvailables={},this.interactionsRunning={},this.interactionsData={currentPageId:e,...t,...n},this.lastUpdate=Date.now()}eventBridgeCallback=e=>async(t,n,r)=>{if(e&&n&&t&&!K(this.interactionsRunning,`${t}.${n}`)){X(this.interactionsRunning,`${t}.${n}`,!0);try{let i,a=K(this.subscriptors,`${t}.getAdditionalParams`,void 0);"function"==typeof a&&({dataSource:i}=a());let o=Object.values(e).filter(e=>"trigger"===e.type&&e.action===n&&e.enabled);await Promise.all(o.map(t=>(async(e,t={},n={},r={},i={},a=[])=>{let o=ja.getTime().valueOf(),{action:s,enabled:l,when:c}=e;s&&l&&(!c||NC(c,{...i,...r}))?KR(e,o,await JR(e,t,n,r,i,a),"completed"):KR(e,o,{},"skipped")})(t,e,this.getCallbacksAvailables(),{[t.id]:r},{...this.interactionsData,...i})))}finally{X(this.interactionsRunning,`${t}.${n}`,!1)}}};subscribe(e,t={},n={},r={},i){if(this.subscriptors[e])return!1;X(this.subscriptors,e,{id:e,triggers:n,getAdditionalParams:i});let a=Object.keys(r);return a.length>0&&(this.callbacksAvailables[e]=a.reduce((t,n)=>{let{title:i,callback:a,postCallback:o,params:s,preview:l,type:c}=r[n];return"function"==typeof a?{...t,[n]:{elementId:e,title:i,action:n,type:c,callback:a,postCallback:o,params:s,preview:l}}:t},{})),Object.keys(n).length>0&&this.eventBridge.on("interaction",e,this.eventBridgeCallback(t),{override:!0}),this.touch(),!0}unsubscribe(e){return!!this.subscriptors[e]&&(this.eventBridge.off("interaction",e),delete this.subscriptors[e],this.callbacksAvailables[e]&&delete this.callbacksAvailables[e],this.touch(),!0)}getRootManager(){return this.parentManager?this.parentManager.getRootManager():this}getSubscriptorInternal(e){let t=K(this.subscriptors,e);if(!t&&this.childManagers.length>0)for(let n of this.childManagers)if(t=n.getSubscriptorInternal(e),t)break;return t}getSubscriptor(e){return this.parentManager?this.getRootManager()?.getSubscriptorInternal(e):this.getSubscriptorInternal(e)}getCallbacksAvailablesInternal(){let e={};if(this.childManagers.length>0)for(let t of this.childManagers)e={...e,...t.getCallbacksAvailablesInternal()};return{...e,...this.callbacksAvailables}}getCallbacksAvailables(){return this.parentManager?this.getRootManager()?.getCallbacksAvailablesInternal()??{}:this.getCallbacksAvailablesInternal()}interactionTrigger(e,t,n={}){return this.eventBridge.emit("interaction",e,e,t,n)}createChildManager=(t={},n={})=>{let r=new e(this.interactionsData.currentPageId,t,n);return r.parentManager=this,this.childManagers.push(r),r};removeChildManager=e=>{this.childManagers=this.childManagers.filter(t=>t!==e)};onUpdate(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}touch(){let e=Date.now();this.lastUpdate=e;for(let t of this.listeners)t(e)}},eL=({children:e,currentPageId:t,routeParams:n,queryParams:r})=>{let i=w(()=>new ZR(t,n,r),[]);return i.interactionsData=w(()=>({currentPageId:t,...n,...r}),[t,n,r]),/* @__PURE__ */A(Qz,{value:w(()=>({interactionsManager:i,useInteractions:BR}),[i]),children:e})},tL=({children:e,authProvider:t="basic"})=>{let{login:n,refresh:r,logout:i}=f(Fz),{useInteractions:a}=f(Qz),o=m(e=>n(e),[n]),s=m(e=>r(e),[r]),l=m(()=>i(),[i]);return a({id:"auth",callbacks:w(()=>{let e={};return"auth0"===t?e={login:{action:"authLogin",title:"Auth Login",type:"globalCallback",callback:o,params:{}},logout:{action:"authLogout",title:"Auth Logout",type:"globalCallback",callback:l,params:{}}}:"basic"===t&&(e={login:{action:"authLogin",title:"Auth Login",type:"globalCallback",callback:o,params:{mode:{label:"Mode",canBind:!1,type:"select",defaultValue:"normal",options:[{label:"Token",value:"token"},{label:"User and Password",value:"normal"}]},username:{type:"text",defaultValue:"",when:e=>"normal"===e.mode},password:{type:"text",defaultValue:"",when:e=>"normal"===e.mode},token:{type:"text",defaultValue:"",when:e=>"token"===e.mode}},preview:{errors:{username:"",password:"",token:""},success:"",access_token:"",expires_at:"",details:{id:"",username:"",email:"",verified:"",permissions:""}}},refreshDetails:{action:"authRefreshDetails",title:"Auth Refresh Details",type:"globalCallback",callback:s,params:{},preview:{errors:"",success:"",access_token:"",expires_at:"",details:{id:"",username:"",email:"",roles:"",permissions:"",verified:""}}},logout:{action:"authLogout",title:"Auth Logout",type:"globalCallback",callback:l,preview:{},params:{}}}),e},[o,l,s,t])}),e},nL={text:{icon:"fas fa-font",label:"Plain Text"},richText:{icon:"fas fa-align-justify",label:"Rich Text"},image:{icon:"far fa-image",label:"Image"},multiImage:{icon:"far fa-images",label:"Multi Image"},video:{icon:"fab fa-youtube",label:"Video Link"},link:{icon:"fas fa-link",label:"Link"},email:{icon:"far fa-envelope",label:"Email"},phone:{icon:"fas fa-phone",label:"Phone"},number:{icon:"fas fa-hashtag",label:"Number"},date:{icon:"fas fa-calendar-day",label:"Date / Time"},switch:{icon:"fas fa-toggle-off",label:"Switch"},color:{icon:"fas fa-tint",label:"Color"},option:{icon:"",label:"Option"},file:{icon:"far fa-file",label:"File"}},rL=e=>{let t;switch(e){case"switch":case"boolean":t="boolean";break;case"option":t="select";break;default:t="text"}return t},iL=(Object.keys(nL).map(e=>({label:e,value:e,icon:/* @__PURE__ */A(Sy,{icon:nL[e].icon,size:"xs"})})),({children:e})=>{let{useInteractions:t}=f(Qz),{collections:n,addRecord:r,updateRecord:i,removeRecord:a}=f(ro),o=m((e,t)=>{if(!e)return!1;let{fields:n}=e;if("object"!=typeof n)return!0;let r=Object.values(n).filter(e=>e.params.required);if(0===r.length)return!0;let i=!0;return r.forEach(e=>{t[e.machineName]||!i||(i=!1)}),i},[]),s=m(async e=>{let{collectionId:t,recordStatus:i="draft"}=e,a=K(n,t,void 0);if(!a||!o(a,e))return{success:!1,record:void 0};let{fields:s}=a,l=Z(e,Object.keys(s));return{success:!0,collectionId:t,record:await r(t,i,l)}},[r,n,o]),l=m(async e=>{let{collectionId:t,recordStatus:r="draft",recordId:a}=e,s=K(n,t,void 0);if(!s||!a||!o(s,e))return{success:!1,record:void 0};let{fields:l}=s,c=Z(e,Object.keys(l));return{success:!0,collectionId:t,record:await i(t,a,r,c)}},[n,i,o]),c=m(async e=>{let{collectionId:t,recordId:r}=e;return K(n,t,void 0)&&r?(await a(t,r),{success:!0,collectionId:t,recordId:r}):{success:!1,record:void 0}},[n,a]),u=w(()=>n&&"object"==typeof n?Object.keys(n).reduce((e,t)=>[...e,{value:t,label:K(n[t],"name",t)}],[]):[],[n]);return t({id:"collection",callbacks:w(()=>({addCollectionRecord:{action:"addCollectionRecord",title:"Add Collection Record",type:"globalCallback",callback:s,preview:{success:"",collectionId:"",record:{id:"",status:"",values:{}}},params:e=>{let t=K(n,`${e.collectionId}.fields`,{});return{collectionId:{label:"Collection",defaultValue:void 0,type:"select",options:u},recordStatus:{label:"Record Status",defaultValue:"draft",type:"select",options:[{value:"published",label:"Published"},{value:"draft",label:"Draft"},{value:"archived",label:"Archived"},{value:"deleted",label:"Deleted"},{value:"created",label:"Created"}]},...Object.values(t).reduce((e,t)=>{let{machineName:n,name:r,type:i}=t;return{...e,[n]:{label:r,defaultValue:void 0,when:e=>!!e.collectionId,type:rL(i)}}},{})}}},updateCollectionRecord:{action:"updateCollectionRecord",title:"Update Collection Record",type:"globalCallback",callback:l,preview:{success:"",collectionId:"",record:{id:"",status:"",values:{}}},params:e=>{let t=K(n,`${e.collectionId}.fields`,{});return{collectionId:{label:"Collection",defaultValue:void 0,type:"select",options:u},recordStatus:{label:"Record Status",defaultValue:"draft",type:"select",options:[{value:"published",label:"Published"},{value:"draft",label:"Draft"},{value:"archived",label:"Archived"},{value:"deleted",label:"Deleted"},{value:"created",label:"Created"}]},recordId:{label:"Record",defaultValue:void 0,type:"select",when:e=>!!e.collectionId,options:e=>{let{collectionId:t}=e,r=n[t];if(!t||!r)return[];let i=Object.values(r.fields).find(e=>e.params.primary);return r.records.map(e=>{let t="";return t=i?e.values[i.machineName]:JSON.stringify(e.values),{value:e.id,label:t}})}},...Object.values(t).reduce((e,t)=>{let{machineName:n,name:r,type:i}=t;return{...e,[n]:{label:r,defaultValue:void 0,when:e=>!!e.collectionId,type:rL(i)}}},{})}}},removeCollectionRecord:{action:"removeCollectionRecord",title:"Remove Collection Record",type:"globalCallback",callback:c,preview:{success:"",collectionId:"",recordId:""},params:{collectionId:{label:"Collection",defaultValue:void 0,type:"select",options:u},recordId:{label:"Record",defaultValue:void 0,type:"select",when:e=>!!e.collectionId,options:e=>{let{collectionId:t}=e,r=n[t];if(!t||!r)return[];let i=Object.values(r.fields).find(e=>e.params.primary);return r.records.map(e=>{let t="";return t=i?e.values[i.machineName]:JSON.stringify(e.values),{value:e.id,label:t}})}}}}}),[n,u,s,c,l])}),e}),aL=({children:e,previewMode:t=!1})=>{let{useInteractions:n}=f(Qz),{navigate:r}=f(HI),[[i,a]]=Ri(["schema.pages","pageDefinitions"]),o=w(()=>{let e=Z(a,i);return Object.keys(e).reduce((t,n)=>{let r=e[n];return[...t,{key:n,label:K(r,"attributes.name",n),defaultPage:K(r,"attributes.default",!1)}]},[])},[a,i]),s=m(e=>{if(!t)return;let{url:n,urlType:i}=e;"page"===i||"internal"===i?r(n):r(n,!0)},[r,t]);return n({id:"navigation",callbacks:w(()=>({navigate:{action:"navigate",title:"Navigate",type:"globalCallback",callback:s,preview:{},params:{urlType:{label:"Url Type",defaultValue:void 0,type:"select",options:[{value:"page",label:"Space Page"},{value:"internal",label:"Inside Space"},{value:"external",label:"Outside Space"}]},url:{defaultValue:o.find(e=>e.defaultPage)?.key??"",type:e=>"page"===e.urlType?"select":"text",when:e=>!!e.urlType,options:o.map(e=>({value:e.key,label:e.label}))}}}}),[s,o])}),e},oL=({children:e})=>{let{useInteractions:t}=f(Qz),n=$i(),r=m(e=>{let{key:t,type:r}=e,{value:i}=e;"boolean"===r?i="true"===i:"number"===r&&(i=parseInt(i,10)),n(`runtime.state.${t}`,i)},[n]),i=m(()=>{n("runtime.state",{})},[n]);return t({id:"state",callbacks:w(()=>({setState:{action:"setState",title:"Set State",type:"globalCallback",callback:r,preview:{},params:{key:{defaultValue:"",type:"text"},type:{defaultValue:void 0,type:"select",options:[{value:"boolean",label:"True / False"},{value:"number",label:"Numeric"},{value:"text",label:"Text"}]},value:{defaultValue:void 0,type:e=>"boolean"===e.type?"select":"text",when:e=>!!e.type,options:[{value:"true",label:"True"},{value:"false",label:"False"}]}}},clearState:{action:"clearState",title:"Clear State",type:"globalCallback",callback:i,preview:{},params:{}}}),[r,i])}),e},sL=({children:e,previewMode:t=!1})=>{let{currentPageId:n,routeParams:r,queryParams:i}=f(HI),[a="basic"]=Ri("schema.settings.userProvider");/* @__PURE__ */
|
|
647
|
-
return A(eL,{currentPageId:n,routeParams:r,queryParams:i,children:/* @__PURE__ */A(tL,{authProvider:a,children:/* @__PURE__ */A(iL,{children:/* @__PURE__ */A(oL,{children:/* @__PURE__ */A(aL,{previewMode:t,children:e})})})})})},lL=l({});lL.displayName="StyleContext";var cL,uL,dL=({children:e,style:t})=>{let{style:n}=f(SE),r=w(()=>({}),[]);return Wi("style",t??(n||xE)),/* @__PURE__ */A(lL,{value:r,children:e})},pL="/plitzi-sdk.
|
|
647
|
+
return A(eL,{currentPageId:n,routeParams:r,queryParams:i,children:/* @__PURE__ */A(tL,{authProvider:a,children:/* @__PURE__ */A(iL,{children:/* @__PURE__ */A(oL,{children:/* @__PURE__ */A(aL,{previewMode:t,children:e})})})})})},lL=l({});lL.displayName="StyleContext";var cL,uL,dL=({children:e,style:t})=>{let{style:n}=f(SE),r=w(()=>({}),[]);return Wi("style",t??(n||xE)),/* @__PURE__ */A(lL,{value:r,children:e})},pL="/plitzi-sdk.css",hL=({revision:e,webKey:t="",webId:n,environment:r="main",currentPageId:i,server:a,isHydrating:o=!1,offlineMode:s=!1,offlineData:l,offlineDataType:c="json",instanceId:u,renderMode:d="iframe",sdkStylePath:p="./plitzi-sdk.css",sdkDevToolsStylePath:h,previewMode:m=!0,debugMode:g=!1,onInitEventBridge:b,onInitStateManager:v,ssrResult:x,...k})=>{const S=f(jr),N=w(()=>S?.withBase("runtime.state"),[S]),T=w(()=>({get state(){return N?.getState()??{}},setState:e=>N?.setState(void 0,e),setStateByKey:(e,t)=>N?.setState(e,t),clearState:()=>N?.setState(void 0,{})}),[N]);return y(()=>{v?.(T)},[v,T]),/* @__PURE__ */A(Hz,{webKey:t,webId:n,instanceId:u,server:a,offlineMode:s,offlineData:l,offlineDataType:c,environment:r,revision:e,debugMode:g,children:/* @__PURE__ */A(Gz,{children:/* @__PURE__ */A(Lz,{children:/* @__PURE__ */A(Yz,{renderMode:d,sdkStylePath:pL,children:/* @__PURE__ */A(dL,{children:/* @__PURE__ */A(VR,{onInit:b,debugMode:g,children:/* @__PURE__ */A(cD,{children:/* @__PURE__ */A(hD,{previewMode:m,environment:r,server:a,isHydrating:o,children:/* @__PURE__ */A(qz,{renderMode:d,currentPageId:i,previewMode:m,ssrResult:x,children:/* @__PURE__ */A($R,{environment:r,children:/* @__PURE__ */A(sL,{previewMode:m,children:/* @__PURE__ */A(FR,{enabled:g,devToolsStyleLink:h||"/plitzi-sdk-devtools.css",renderMode:"shadow",innerClassName:ce({flex:"iframe"===d}),children:/* @__PURE__ */A(lD,{renderMode:d,previewMode:m,debugMode:g,environment:r,isHydrating:o,sdkStylePath:pL,server:a,...k})})})})})})})})})})})})})},fL={Button:Ny,ContentEditable:rb,Input:ob,Heading:cb,ContainerResizable:Fy,ContainerCollapsable:Iy,Text:EC,Markdown:ub,ContainerTabs:eb},mL=({className:e="min-h-screen",children:t,webKey:r="",server:a,renderMode:o="iframe",debugMode:s=!1,state:l,...c})=>{const u=w(()=>function(e){if(!e)return 0;let t={};try{let n=e.split(".")[1],r=typeof window<"u"?window.atob(n):Buffer.from(n,"base64").toString();t=JSON.parse(r)}catch{return 0}return K(t,"data.spaceId",0)}(r),[r]),p=S(l).current,h=w(()=>({segments:{},runtime:{sources:{},state:p??{}}}),[p]),[f,g]=gE("plitzi_debug",s,"cookie"),b=w(()=>(e=>({apiServer:"https://api.plitzi.com",ssrServer:"https://ssr.plitzi.com",nodeServer:"https://server.plitzi.com",aiServer:"https://server.plitzi.com",graphqlServer:"https://server.plitzi.com/graphql",websocketServer:"wss://server.plitzi.com",subscriptionServer:"wss://server.plitzi.com/subscriptions",...e}))(a),[a]),v=w(()=>((e,t)=>{const n=new Am({uri:e.graphqlServer}),r=new Vf;return new bm({link:new Dz(e=>({headers:{...e.headers,"sdk-version":"0.32.5",authorization:t?`Bearer ${t}`:""}})).concat(new xh((e,t)=>new Kc(n=>{let r=t(e).subscribe({next:e=>{n.next(e.data?{...e,data:Fm(e.data)}:e)},error:e=>n.error(e),complete:()=>n.complete()});return()=>{r.unsubscribe()}})),n),cache:r})})(b,r),[b,r]);y(()=>{},[]);const x=m(e=>{e.shiftKey&&"F12"===e.key&&g(e=>!e)},[g]);y(()=>{if("production"!==c.environment)return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[x,c.environment]),y(()=>{c.isHydrating&&d_.setHydrated()},[c.isHydrating]);const k=w(()=>{const e={};return n.forEach(t,t=>{if(!d(t))return;if(t.type!==oD)return;const{renderType:n,component:r,assets:i=[],...a}=t.props;if(!n||!r)return;const o=r;o.type=n,o.assets=i,o.extraProps=a,e[n]=o}),e},[t]);"undefined"==typeof window&&b.requestUrl;const N="widget"===o?i:"undefined"==typeof window?OA:kA,T="widget"===o?{}:{basename:K(b,"basePath","/"),location:"undefined"==typeof window?b.requestUrl??"":void 0};/* @__PURE__ */
|
|
648
648
|
return A(Ti,{value:h,middlewares:[zE(Ra("sdk")),PE(u),...f?[()=>({onChange:e=>d_.recordStoreChange(e)}),zi({shouldRecord:e=>!e?.startsWith("runtime.elements")})]:[]],children:/* @__PURE__ */A(_E,{children:/* @__PURE__ */A(QT,{components:fL,children:/* @__PURE__ */A(Uy,{className:ce("plitzi-sdk flex",e,{"sdk-debug-mode":f}),children:/* @__PURE__ */A(Oz,{children:/* @__PURE__ */A(N,{...T,children:/* @__PURE__ */A(JI,{client:v,children:/* @__PURE__ */A(YI,{localCustomComponents:k,localComponents:yL,children:/* @__PURE__ */A(hL,{server:b,webKey:r,renderMode:o,debugMode:f,webId:u,...c})})})})})})})})})},gL=h_(({ref:e,className:t,spaceKey:n,environment:r="main"})=>{const{settings:{previewMode:i},contexts:{NetworkContext:a}}=Fa(),{server:o}=f(a);/* @__PURE__ */
|
|
649
649
|
return A(qa,{ref:e,className:ce("plitzi-component__plitzi-sdk",t,{"with__plitzi-sdk":!i}),children:n&&/* @__PURE__ */A(mL,{webKey:n,environment:r,renderMode:"widget",server:o,className:"h-full w-full"})})}),yL={plitziSdk:Object.assign(gL,{type:"plitziSdk",content:{attributes:{spaceId:"",spaceKey:"",environment:"main"},definition:{label:"Plitzi Sdk",type:"plitziSdk",bindings:{},styleSelectors:{base:""},initialState:{visibility:!0}},builder:{canDelete:!0,canSelect:!0,canDragDrop:!0,canMove:!0,canTemplate:!0,itemsAllowed:[],itemsNotAllowed:[]},market:{category:"advanced",owner:"Plitzi",verified:!0,license:"MIT",website:"https://plitzi.com",backgroundColor:"#4422ee",icon:/* @__PURE__ */A(bE,{})},defaultStyle:{name:"Plitzi Sdk",displayMode:"desktop",style:{base:{default:{"min-width":"50px","min-height":"50px"}}}},settings:{}}})};function bL(e,t={},n={},r=!1,i=!1){const a=({isHydrating:e=!1})=>{const i=Object.keys(n);r||(()=>{if(typeof window>"u")return;let e=()=>{},t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;"object"==typeof t&&Object.keys(t).forEach(n=>{let r=t[n];t[n]="function"==typeof r?e:null})})();const a=m(e=>{cL=e},[]),o=m(e=>{uL=e},[]);/* @__PURE__ */
|
|
650
|
-
return A(mL,{...t,debugMode:r,isHydrating:e,onInitStateManager:a,onInitEventBridge:o,children:i.filter(e=>!!n[e].component).map(e=>/* @__PURE__ */A(lD.Plugin,{renderType:e,component:n[e].component,...n[e].props},e))})},o="undefined"!=typeof document?document.getElementById(e):void 0;o&&(i?E(o,/* @__PURE__ */A(a,{isHydrating:!0})):C(o).render(/* @__PURE__ */A(a,{})))}Promise.resolve({ });var vL=({debugMode:e=!1,isHydrating:t=!1,children:n,webKey:r="",environment:i="main",renderMode:a="iframe",...o})=>/* @__PURE__ */A(mL,{...o,isHydrating:t,renderMode:a,debugMode:e,webKey:r,environment:i,children:n});vL.Plugin=lD.Plugin;var xL=Fa,wL="0.32.
|
|
650
|
+
return A(mL,{...t,debugMode:r,isHydrating:e,onInitStateManager:a,onInitEventBridge:o,children:i.filter(e=>!!n[e].component).map(e=>/* @__PURE__ */A(lD.Plugin,{renderType:e,component:n[e].component,...n[e].props},e))})},o="undefined"!=typeof document?document.getElementById(e):void 0;o&&(i?E(o,/* @__PURE__ */A(a,{isHydrating:!0})):C(o).render(/* @__PURE__ */A(a,{})))}Promise.resolve({ });var vL=({debugMode:e=!1,isHydrating:t=!1,children:n,webKey:r="",environment:i="main",renderMode:a="iframe",...o})=>/* @__PURE__ */A(mL,{...o,isHydrating:t,renderMode:a,debugMode:e,webKey:r,environment:i,children:n});vL.Plugin=lD.Plugin;var xL=Fa,wL="0.32.5",kL=()=>cL,SL=()=>uL;export{Ua as ComponentContext,YI as ComponentProvider,m_ as JsxManager,$a as PlitziServiceProvider,N_ as PluginManager,Xa as PluginRemote,EI as ReplicaProvider,qa as RootElement,vL as default,SL as getEventBridge,kL as getStateManager,bL as render,yL as sdkComponents,H as useElement,xL as usePlitziServiceContext,Y as useRscData,wL as version,h_ as withElement};
|