@scattered-light/loomiere-base-ui 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/custom/collection/index.d.ts +9 -1
- package/dist/custom/collection/index.js +5 -2
- package/dist/custom/collection/index.js.map +1 -1
- package/dist/design-system/components/CollectionToolbar/README.md +3 -1
- package/dist/design-system/components/DataTable/preview.html +129 -129
- package/dist/design-system/components/bundle.js +2 -2
- package/dist/design-system/components/styles.css +111 -62
- package/dist/styles/components/Accordion.css +1 -1
- package/dist/styles/components/AlertDialog.css +1 -1
- package/dist/styles/components/Autocomplete.css +1 -1
- package/dist/styles/components/Avatar.css +1 -1
- package/dist/styles/components/Button.css +1 -1
- package/dist/styles/components/Checkbox.css +1 -1
- package/dist/styles/components/CheckboxGroup.css +1 -1
- package/dist/styles/components/Collapsible.css +1 -1
- package/dist/styles/components/Combobox.css +1 -1
- package/dist/styles/components/ContextMenu.css +1 -1
- package/dist/styles/components/Dialog.css +1 -1
- package/dist/styles/components/Drawer.css +1 -1
- package/dist/styles/components/Field.css +1 -1
- package/dist/styles/components/Fieldset.css +1 -1
- package/dist/styles/components/Form.css +1 -1
- package/dist/styles/components/Input.css +1 -1
- package/dist/styles/components/Menu.css +1 -1
- package/dist/styles/components/Menubar.css +1 -1
- package/dist/styles/components/Meter.css +1 -1
- package/dist/styles/components/NavigationMenu.css +1 -1
- package/dist/styles/components/NumberField.css +1 -1
- package/dist/styles/components/OTPField.css +1 -1
- package/dist/styles/components/Popover.css +1 -1
- package/dist/styles/components/PreviewCard.css +1 -1
- package/dist/styles/components/Progress.css +1 -1
- package/dist/styles/components/Radio.css +1 -1
- package/dist/styles/components/ScrollArea.css +1 -1
- package/dist/styles/components/Select.css +1 -1
- package/dist/styles/components/Separator.css +1 -1
- package/dist/styles/components/Slider.css +1 -1
- package/dist/styles/components/Switch.css +1 -1
- package/dist/styles/components/Tabs.css +1 -1
- package/dist/styles/components/Toast.css +1 -1
- package/dist/styles/components/Toggle.css +1 -1
- package/dist/styles/components/ToggleGroup.css +1 -1
- package/dist/styles/components/Toolbar.css +1 -1
- package/dist/styles/components/Tooltip.css +1 -1
- package/dist/styles/custom/AppBar.css +1 -1
- package/dist/styles/custom/Badge.css +1 -1
- package/dist/styles/custom/Collection.css +1 -1
- package/dist/styles/custom/CollectionPagination.css +1 -1
- package/dist/styles/custom/CollectionToolbar.css +26 -1
- package/dist/styles/custom/DataList.css +1 -1
- package/dist/styles/custom/DataTable.css +26 -2
- package/dist/styles/custom/DatePicker.css +1 -1
- package/dist/styles/custom/DescriptionList.css +1 -1
- package/dist/styles/custom/EditableList.css +1 -1
- package/dist/styles/custom/EmptyState.css +1 -1
- package/dist/styles/custom/ListDetail.css +1 -1
- package/dist/styles/custom/MoneyField.css +1 -1
- package/dist/styles/custom/PickerButton.css +1 -1
- package/dist/styles/custom/Sheet.css +1 -1
- package/dist/styles/custom/SideNav.css +1 -1
- package/dist/styles/custom/Splitter.css +1 -1
- package/dist/styles/custom/StatFigure.css +1 -1
- package/dist/styles/custom/Table.css +2 -2
- package/dist/styles/index.css +1 -1
- package/dist/styles/reset/accessibility.css +1 -1
- package/dist/styles/reset/reset-accessibility.css +1 -1
- package/dist/styles/reset/reset-tailwind.css +1 -1
- package/dist/styles/reset/reset.css +1 -1
- package/dist/styles/tailwind.css +1 -1
- package/package.json +2 -2
|
@@ -12,42 +12,42 @@
|
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|
|
14
14
|
<script>
|
|
15
|
-
(()=>{var aR=Object.create;var Zo=Object.defineProperty;var iR=Object.getOwnPropertyDescriptor;var sR=Object.getOwnPropertyNames;var lR=Object.getPrototypeOf,uR=Object.prototype.hasOwnProperty;var cR=(e,t,r)=>t in e?Zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ee=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var bs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qd=(e,t)=>{for(var r in t)Zo(e,r,{get:t[r],enumerable:!0})},dR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of sR(t))!uR.call(e,o)&&o!==r&&Zo(e,o,{get:()=>t[o],enumerable:!(n=iR(t,o))||n.enumerable});return e};var rn=(e,t,r)=>(r=e!=null?aR(lR(e)):{},dR(t||!e||!e.__esModule?Zo(r,"default",{value:e,enumerable:!0}):r,e));var Ae=(e,t,r)=>cR(e,typeof t!="symbol"?t+"":t,r);var zd=bs(($z,K_)=>{K_.exports=window.React});var Gd=bs((Uz,X_)=>{X_.exports=window.Loomiere});var Yd=bs((Hz,J_)=>{J_.exports=window.Loomiere});var Jd={};Qd(Jd,{ActiveRow:()=>iH,ClientsTree:()=>nH,CustomToolbar:()=>bH,DataColor:()=>EH,Default:()=>K9,Empty:()=>sH,GrandTotal:()=>Q9,Grouped:()=>Z9,Keyboard:()=>RH,Loading:()=>dH,Money:()=>J9,NarrowList:()=>mH,NoResults:()=>lH,RowActions:()=>aH,RowLink:()=>yH,Rtl:()=>vH,Search:()=>uH,SearchNarrow:()=>cH,Selection:()=>X9,Sizes:()=>_H,StickyHeader:()=>pH,Tree:()=>tH,WideStickyRowHeader:()=>fH,default:()=>Xd});var De=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();var pR=Object.defineProperty,ir=(e,t)=>pR(e,"name",{value:t,configurable:!0}),fR=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),{LOGLEVEL:mR}=fR,sr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},hR=mR,nn=sr[hR]||sr.info,le={trace:ir((e,...t)=>{nn<=sr.trace&&console.trace(e,...t)},"trace"),debug:ir((e,...t)=>{nn<=sr.debug&&console.debug(e,...t)},"debug"),info:ir((e,...t)=>{nn<=sr.info&&console.info(e,...t)},"info"),warn:ir((e,...t)=>{nn<=sr.warn&&console.warn(e,...t)},"warn"),error:ir((e,...t)=>{nn<=sr.error&&console.error(e,...t)},"error"),log:ir((e,...t)=>{nn<sr.silent&&console.log(e,...t)},"log")},gs=new Set,we=ir(e=>(t,...r)=>{if(!gs.has(t))return gs.add(t),le[e](t,...r)},"once");we.clear=()=>gs.clear();we.trace=we("trace");we.debug=we("debug");we.info=we("info");we.warn=we("warn");we.error=we("error");we.log=we("log");var Ut=we("warn"),dt=ir(e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,o=/<\/span>/gi,a;for(r.push(t[0].replace(n,"%c").replace(o,"%c"));a=n.exec(t[0]);)r.push(a[2]),r.push("");for(let i=1;i<t.length;i++)r.push(t[i])}le[e].apply(le,r)},"pretty");dt.trace=dt("trace");dt.debug=dt("debug");dt.info=dt("info");dt.warn=dt("warn");dt.error=dt("error");var oa={};Qd(oa,{ARGTYPES_INFO_REQUEST:()=>Fs,ARGTYPES_INFO_RESPONSE:()=>na,CHANNEL_CREATED:()=>bR,CHANNEL_WS_DISCONNECT:()=>Es,CONFIG_ERROR:()=>_s,CREATE_NEW_STORYFILE_REQUEST:()=>gR,CREATE_NEW_STORYFILE_RESPONSE:()=>vR,CURRENT_STORY_WAS_SET:()=>ea,DOCS_PREPARED:()=>Rs,DOCS_RENDERED:()=>Jn,FILE_COMPONENT_SEARCH_REQUEST:()=>ER,FILE_COMPONENT_SEARCH_RESPONSE:()=>_R,FORCE_REMOUNT:()=>on,FORCE_RE_RENDER:()=>Qn,GLOBALS_UPDATED:()=>Pr,NAVIGATE_URL:()=>RR,PLAY_FUNCTION_THREW_EXCEPTION:()=>ws,PRELOAD_ENTRIES:()=>Ss,PREVIEW_BUILDER_PROGRESS:()=>wR,PREVIEW_KEYDOWN:()=>As,REGISTER_SUBSCRIPTION:()=>CR,REQUEST_WHATS_NEW_DATA:()=>jR,RESET_STORY_ARGS:()=>Zn,RESULT_WHATS_NEW_DATA:()=>IR,SAVE_STORY_REQUEST:()=>BR,SAVE_STORY_RESPONSE:()=>kR,SELECT_STORY:()=>SR,SET_CONFIG:()=>AR,SET_CURRENT_STORY:()=>eo,SET_FILTER:()=>TR,SET_GLOBALS:()=>Ts,SET_INDEX:()=>PR,SET_STORIES:()=>OR,SET_WHATS_NEW_CACHE:()=>DR,SHARED_STATE_CHANGED:()=>qR,SHARED_STATE_SET:()=>xR,STORIES_COLLAPSE_ALL:()=>MR,STORIES_EXPAND_ALL:()=>NR,STORY_ARGS_UPDATED:()=>Ps,STORY_CHANGED:()=>Os,STORY_ERRORED:()=>qs,STORY_FINISHED:()=>ra,STORY_INDEX_INVALIDATED:()=>xs,STORY_MISSING:()=>ta,STORY_PREPARED:()=>Ms,STORY_RENDERED:()=>an,STORY_RENDER_PHASE_CHANGED:()=>Ht,STORY_SPECIFIED:()=>Ns,STORY_THREW_EXCEPTION:()=>js,STORY_UNCHANGED:()=>Is,TELEMETRY_ERROR:()=>LR,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:()=>zR,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:()=>GR,TESTING_MODULE_CRASH_REPORT:()=>$R,TESTING_MODULE_PROGRESS_REPORT:()=>UR,TESTING_MODULE_RUN_ALL_REQUEST:()=>VR,TESTING_MODULE_RUN_REQUEST:()=>HR,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>FR,UNHANDLED_ERRORS_WHILE_PLAYING:()=>Cs,UPDATE_GLOBALS:()=>to,UPDATE_QUERY_PARAMS:()=>Ds,UPDATE_STORY_ARGS:()=>ro,default:()=>yR});var vs=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.TESTING_MODULE_CRASH_REPORT="testingModuleCrashReport",e.TESTING_MODULE_PROGRESS_REPORT="testingModuleProgressReport",e.TESTING_MODULE_RUN_REQUEST="testingModuleRunRequest",e.TESTING_MODULE_RUN_ALL_REQUEST="testingModuleRunAllRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST="testingModuleCancelTestRunRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE="testingModuleCancelTestRunResponse",e))(vs||{}),yR=vs,{CHANNEL_WS_DISCONNECT:Es,CHANNEL_CREATED:bR,CONFIG_ERROR:_s,CREATE_NEW_STORYFILE_REQUEST:gR,CREATE_NEW_STORYFILE_RESPONSE:vR,CURRENT_STORY_WAS_SET:ea,DOCS_PREPARED:Rs,DOCS_RENDERED:Jn,FILE_COMPONENT_SEARCH_REQUEST:ER,FILE_COMPONENT_SEARCH_RESPONSE:_R,FORCE_RE_RENDER:Qn,FORCE_REMOUNT:on,GLOBALS_UPDATED:Pr,NAVIGATE_URL:RR,PLAY_FUNCTION_THREW_EXCEPTION:ws,UNHANDLED_ERRORS_WHILE_PLAYING:Cs,PRELOAD_ENTRIES:Ss,PREVIEW_BUILDER_PROGRESS:wR,PREVIEW_KEYDOWN:As,REGISTER_SUBSCRIPTION:CR,RESET_STORY_ARGS:Zn,SELECT_STORY:SR,SET_CONFIG:AR,SET_CURRENT_STORY:eo,SET_FILTER:TR,SET_GLOBALS:Ts,SET_INDEX:PR,SET_STORIES:OR,SHARED_STATE_CHANGED:qR,SHARED_STATE_SET:xR,STORIES_COLLAPSE_ALL:MR,STORIES_EXPAND_ALL:NR,STORY_ARGS_UPDATED:Ps,STORY_CHANGED:Os,STORY_ERRORED:qs,STORY_INDEX_INVALIDATED:xs,STORY_MISSING:ta,STORY_PREPARED:Ms,STORY_RENDER_PHASE_CHANGED:Ht,STORY_RENDERED:an,STORY_FINISHED:ra,STORY_SPECIFIED:Ns,STORY_THREW_EXCEPTION:js,STORY_UNCHANGED:Is,UPDATE_GLOBALS:to,UPDATE_QUERY_PARAMS:Ds,UPDATE_STORY_ARGS:ro,REQUEST_WHATS_NEW_DATA:jR,RESULT_WHATS_NEW_DATA:IR,SET_WHATS_NEW_CACHE:DR,TOGGLE_WHATS_NEW_NOTIFICATIONS:FR,TELEMETRY_ERROR:LR,SAVE_STORY_REQUEST:BR,SAVE_STORY_RESPONSE:kR,ARGTYPES_INFO_REQUEST:Fs,ARGTYPES_INFO_RESPONSE:na,TESTING_MODULE_CRASH_REPORT:$R,TESTING_MODULE_PROGRESS_REPORT:UR,TESTING_MODULE_RUN_REQUEST:HR,TESTING_MODULE_RUN_ALL_REQUEST:VR,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:zR,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:GR}=vs;var YR=Object.create,Hs=Object.defineProperty,WR=Object.getOwnPropertyDescriptor,KR=Object.getOwnPropertyNames,XR=Object.getPrototypeOf,JR=Object.prototype.hasOwnProperty,V=(e,t)=>Hs(e,"name",{value:t,configurable:!0}),aa=(e=>typeof Ee<"u"?Ee:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ee<"u"?Ee:t)[r]}):e)(function(e){if(typeof Ee<"u")return Ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),QR=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ZR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KR(t))!JR.call(e,o)&&o!==r&&Hs(e,o,{get:()=>t[o],enumerable:!(n=WR(t,o))||n.enumerable});return e},ew=(e,t,r)=>(r=e!=null?YR(XR(e)):{},ZR(t||!e||!e.__esModule?Hs(r,"default",{value:e,enumerable:!0}):r,e)),tw=QR((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return V(function a(i,s,l){function c(m,p){if(!s[m]){if(!i[m]){var h=typeof aa=="function"&&aa;if(!p&&h)return h(m,!0);if(u)return u(m,!0);var g=new Error("Cannot find module '"+m+"'");throw g.code="MODULE_NOT_FOUND",g}var y=s[m]={exports:{}};i[m][0].call(y.exports,function(b){var v=i[m][1][b];return c(v||b)},y,y.exports,a,i,s,l)}return s[m].exports}V(c,"s");for(var u=typeof aa=="function"&&aa,d=0;d<l.length;d++)c(l[d]);return c},"e")({1:[function(a,i,s){i.exports=function(l){if(typeof Map!="function"||l){var c=a("./similar");return new c}else return new Map}},{"./similar":2}],2:[function(a,i,s){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}V(l,"Similar"),l.prototype.get=function(c){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,c))return this.lastItem.val;if(u=this.indexOf(c),u>=0)return this.lastItem=this.list[u],this.list[u].val},l.prototype.set=function(c,u){var d;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=u,this):(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],this.list[d].val=u,this):(this.lastItem={key:c,val:u},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(c){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),u=this.indexOf(c),u>=0)return this.size--,this.list.splice(u,1)[0]},l.prototype.has=function(c){var u;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(u=this.indexOf(c),u>=0?(this.lastItem=this.list[u],!0):!1)},l.prototype.forEach=function(c,u){var d;for(d=0;d<this.size;d++)c.call(u||this,this.list[d].val,this.list[d].key,this)},l.prototype.indexOf=function(c){var u;for(u=0;u<this.size;u++)if(this.isEqual(this.list[u].key,c))return u;return-1},l.prototype.isEqual=function(c,u){return c===u||c!==c&&u!==u},i.exports=l},{}],3:[function(a,i,s){var l=a("map-or-similar");i.exports=function(m){var p=new l(!1),h=[];return function(g){var y=V(function(){var b=p,v,C,S=arguments.length-1,A=Array(S+1),_=!0,E;if((y.numArgs||y.numArgs===0)&&y.numArgs!==S+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<S;E++){if(A[E]={cacheItem:b,arg:arguments[E]},b.has(arguments[E])){b=b.get(arguments[E]);continue}_=!1,v=new l(!1),b.set(arguments[E],v),b=v}return _&&(b.has(arguments[S])?C=b.get(arguments[S]):_=!1),_||(C=g.apply(null,arguments),b.set(arguments[S],C)),m>0&&(A[S]={cacheItem:b,arg:arguments[S]},_?c(h,A):h.push(A),h.length>m&&u(h.shift())),y.wasMemoized=_,y.numArgs=S+1,C},"memoizerific");return y.limit=m,y.wasMemoized=!1,y.cache=p,y.lru=h,y}};function c(m,p){var h=m.length,g=p.length,y,b,v;for(b=0;b<h;b++){for(y=!0,v=0;v<g;v++)if(!d(m[b][v].arg,p[v].arg)){y=!1;break}if(y)break}m.push(m.splice(b,1)[0])}V(c,"moveToMostRecentLru");function u(m){var p=m.length,h=m[p-1],g,y;for(h.cacheItem.delete(h.arg),y=p-2;y>=0&&(h=m[y],g=h.cacheItem.get(h.arg),!g||!g.size);y--)h.cacheItem.delete(h.arg)}V(u,"removeCachedResult");function d(m,p){return m===p||m!==m&&p!==p}V(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),Fe=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();function Or(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var d,m;return(m=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&m!==void 0?m:0})):s},[]);if(o.length){var a=new RegExp(`
|
|
15
|
+
(()=>{var aR=Object.create;var Zo=Object.defineProperty;var iR=Object.getOwnPropertyDescriptor;var sR=Object.getOwnPropertyNames;var lR=Object.getPrototypeOf,uR=Object.prototype.hasOwnProperty;var cR=(e,t,r)=>t in e?Zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ee=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var bs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zd=(e,t)=>{for(var r in t)Zo(e,r,{get:t[r],enumerable:!0})},dR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of sR(t))!uR.call(e,o)&&o!==r&&Zo(e,o,{get:()=>t[o],enumerable:!(n=iR(t,o))||n.enumerable});return e};var rn=(e,t,r)=>(r=e!=null?aR(lR(e)):{},dR(t||!e||!e.__esModule?Zo(r,"default",{value:e,enumerable:!0}):r,e));var Ae=(e,t,r)=>cR(e,typeof t!="symbol"?t+"":t,r);var zd=bs(($z,X_)=>{X_.exports=window.React});var Gd=bs((Uz,J_)=>{J_.exports=window.Loomiere});var Yd=bs((Hz,Q_)=>{Q_.exports=window.Loomiere});var Qd={};Zd(Qd,{ActiveRow:()=>iH,ClientsTree:()=>nH,CustomToolbar:()=>bH,DataColor:()=>EH,Default:()=>K9,Empty:()=>sH,GrandTotal:()=>Q9,Grouped:()=>Z9,Keyboard:()=>RH,Loading:()=>dH,Money:()=>J9,NarrowList:()=>mH,NoResults:()=>lH,RowActions:()=>aH,RowLink:()=>yH,Rtl:()=>vH,Search:()=>uH,SearchNarrow:()=>cH,Selection:()=>X9,Sizes:()=>_H,StickyHeader:()=>pH,Tree:()=>tH,WideStickyRowHeader:()=>fH,default:()=>Jd});var De=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();var pR=Object.defineProperty,ir=(e,t)=>pR(e,"name",{value:t,configurable:!0}),fR=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),{LOGLEVEL:mR}=fR,sr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},hR=mR,nn=sr[hR]||sr.info,le={trace:ir((e,...t)=>{nn<=sr.trace&&console.trace(e,...t)},"trace"),debug:ir((e,...t)=>{nn<=sr.debug&&console.debug(e,...t)},"debug"),info:ir((e,...t)=>{nn<=sr.info&&console.info(e,...t)},"info"),warn:ir((e,...t)=>{nn<=sr.warn&&console.warn(e,...t)},"warn"),error:ir((e,...t)=>{nn<=sr.error&&console.error(e,...t)},"error"),log:ir((e,...t)=>{nn<sr.silent&&console.log(e,...t)},"log")},gs=new Set,we=ir(e=>(t,...r)=>{if(!gs.has(t))return gs.add(t),le[e](t,...r)},"once");we.clear=()=>gs.clear();we.trace=we("trace");we.debug=we("debug");we.info=we("info");we.warn=we("warn");we.error=we("error");we.log=we("log");var Ut=we("warn"),dt=ir(e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,o=/<\/span>/gi,a;for(r.push(t[0].replace(n,"%c").replace(o,"%c"));a=n.exec(t[0]);)r.push(a[2]),r.push("");for(let i=1;i<t.length;i++)r.push(t[i])}le[e].apply(le,r)},"pretty");dt.trace=dt("trace");dt.debug=dt("debug");dt.info=dt("info");dt.warn=dt("warn");dt.error=dt("error");var oa={};Zd(oa,{ARGTYPES_INFO_REQUEST:()=>Fs,ARGTYPES_INFO_RESPONSE:()=>na,CHANNEL_CREATED:()=>bR,CHANNEL_WS_DISCONNECT:()=>Es,CONFIG_ERROR:()=>_s,CREATE_NEW_STORYFILE_REQUEST:()=>gR,CREATE_NEW_STORYFILE_RESPONSE:()=>vR,CURRENT_STORY_WAS_SET:()=>ea,DOCS_PREPARED:()=>Rs,DOCS_RENDERED:()=>Jn,FILE_COMPONENT_SEARCH_REQUEST:()=>ER,FILE_COMPONENT_SEARCH_RESPONSE:()=>_R,FORCE_REMOUNT:()=>on,FORCE_RE_RENDER:()=>Qn,GLOBALS_UPDATED:()=>Pr,NAVIGATE_URL:()=>RR,PLAY_FUNCTION_THREW_EXCEPTION:()=>ws,PRELOAD_ENTRIES:()=>Ss,PREVIEW_BUILDER_PROGRESS:()=>wR,PREVIEW_KEYDOWN:()=>As,REGISTER_SUBSCRIPTION:()=>CR,REQUEST_WHATS_NEW_DATA:()=>jR,RESET_STORY_ARGS:()=>Zn,RESULT_WHATS_NEW_DATA:()=>IR,SAVE_STORY_REQUEST:()=>BR,SAVE_STORY_RESPONSE:()=>kR,SELECT_STORY:()=>SR,SET_CONFIG:()=>AR,SET_CURRENT_STORY:()=>eo,SET_FILTER:()=>TR,SET_GLOBALS:()=>Ts,SET_INDEX:()=>PR,SET_STORIES:()=>OR,SET_WHATS_NEW_CACHE:()=>DR,SHARED_STATE_CHANGED:()=>qR,SHARED_STATE_SET:()=>xR,STORIES_COLLAPSE_ALL:()=>MR,STORIES_EXPAND_ALL:()=>NR,STORY_ARGS_UPDATED:()=>Ps,STORY_CHANGED:()=>Os,STORY_ERRORED:()=>qs,STORY_FINISHED:()=>ra,STORY_INDEX_INVALIDATED:()=>xs,STORY_MISSING:()=>ta,STORY_PREPARED:()=>Ms,STORY_RENDERED:()=>an,STORY_RENDER_PHASE_CHANGED:()=>Ht,STORY_SPECIFIED:()=>Ns,STORY_THREW_EXCEPTION:()=>js,STORY_UNCHANGED:()=>Is,TELEMETRY_ERROR:()=>LR,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:()=>zR,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:()=>GR,TESTING_MODULE_CRASH_REPORT:()=>$R,TESTING_MODULE_PROGRESS_REPORT:()=>UR,TESTING_MODULE_RUN_ALL_REQUEST:()=>VR,TESTING_MODULE_RUN_REQUEST:()=>HR,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>FR,UNHANDLED_ERRORS_WHILE_PLAYING:()=>Cs,UPDATE_GLOBALS:()=>to,UPDATE_QUERY_PARAMS:()=>Ds,UPDATE_STORY_ARGS:()=>ro,default:()=>yR});var vs=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.TESTING_MODULE_CRASH_REPORT="testingModuleCrashReport",e.TESTING_MODULE_PROGRESS_REPORT="testingModuleProgressReport",e.TESTING_MODULE_RUN_REQUEST="testingModuleRunRequest",e.TESTING_MODULE_RUN_ALL_REQUEST="testingModuleRunAllRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST="testingModuleCancelTestRunRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE="testingModuleCancelTestRunResponse",e))(vs||{}),yR=vs,{CHANNEL_WS_DISCONNECT:Es,CHANNEL_CREATED:bR,CONFIG_ERROR:_s,CREATE_NEW_STORYFILE_REQUEST:gR,CREATE_NEW_STORYFILE_RESPONSE:vR,CURRENT_STORY_WAS_SET:ea,DOCS_PREPARED:Rs,DOCS_RENDERED:Jn,FILE_COMPONENT_SEARCH_REQUEST:ER,FILE_COMPONENT_SEARCH_RESPONSE:_R,FORCE_RE_RENDER:Qn,FORCE_REMOUNT:on,GLOBALS_UPDATED:Pr,NAVIGATE_URL:RR,PLAY_FUNCTION_THREW_EXCEPTION:ws,UNHANDLED_ERRORS_WHILE_PLAYING:Cs,PRELOAD_ENTRIES:Ss,PREVIEW_BUILDER_PROGRESS:wR,PREVIEW_KEYDOWN:As,REGISTER_SUBSCRIPTION:CR,RESET_STORY_ARGS:Zn,SELECT_STORY:SR,SET_CONFIG:AR,SET_CURRENT_STORY:eo,SET_FILTER:TR,SET_GLOBALS:Ts,SET_INDEX:PR,SET_STORIES:OR,SHARED_STATE_CHANGED:qR,SHARED_STATE_SET:xR,STORIES_COLLAPSE_ALL:MR,STORIES_EXPAND_ALL:NR,STORY_ARGS_UPDATED:Ps,STORY_CHANGED:Os,STORY_ERRORED:qs,STORY_INDEX_INVALIDATED:xs,STORY_MISSING:ta,STORY_PREPARED:Ms,STORY_RENDER_PHASE_CHANGED:Ht,STORY_RENDERED:an,STORY_FINISHED:ra,STORY_SPECIFIED:Ns,STORY_THREW_EXCEPTION:js,STORY_UNCHANGED:Is,UPDATE_GLOBALS:to,UPDATE_QUERY_PARAMS:Ds,UPDATE_STORY_ARGS:ro,REQUEST_WHATS_NEW_DATA:jR,RESULT_WHATS_NEW_DATA:IR,SET_WHATS_NEW_CACHE:DR,TOGGLE_WHATS_NEW_NOTIFICATIONS:FR,TELEMETRY_ERROR:LR,SAVE_STORY_REQUEST:BR,SAVE_STORY_RESPONSE:kR,ARGTYPES_INFO_REQUEST:Fs,ARGTYPES_INFO_RESPONSE:na,TESTING_MODULE_CRASH_REPORT:$R,TESTING_MODULE_PROGRESS_REPORT:UR,TESTING_MODULE_RUN_REQUEST:HR,TESTING_MODULE_RUN_ALL_REQUEST:VR,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:zR,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:GR}=vs;var YR=Object.create,Hs=Object.defineProperty,WR=Object.getOwnPropertyDescriptor,KR=Object.getOwnPropertyNames,XR=Object.getPrototypeOf,JR=Object.prototype.hasOwnProperty,V=(e,t)=>Hs(e,"name",{value:t,configurable:!0}),aa=(e=>typeof Ee<"u"?Ee:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ee<"u"?Ee:t)[r]}):e)(function(e){if(typeof Ee<"u")return Ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),QR=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ZR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KR(t))!JR.call(e,o)&&o!==r&&Hs(e,o,{get:()=>t[o],enumerable:!(n=WR(t,o))||n.enumerable});return e},ew=(e,t,r)=>(r=e!=null?YR(XR(e)):{},ZR(t||!e||!e.__esModule?Hs(r,"default",{value:e,enumerable:!0}):r,e)),tw=QR((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return V(function a(i,s,l){function c(m,p){if(!s[m]){if(!i[m]){var h=typeof aa=="function"&&aa;if(!p&&h)return h(m,!0);if(u)return u(m,!0);var g=new Error("Cannot find module '"+m+"'");throw g.code="MODULE_NOT_FOUND",g}var y=s[m]={exports:{}};i[m][0].call(y.exports,function(b){var v=i[m][1][b];return c(v||b)},y,y.exports,a,i,s,l)}return s[m].exports}V(c,"s");for(var u=typeof aa=="function"&&aa,d=0;d<l.length;d++)c(l[d]);return c},"e")({1:[function(a,i,s){i.exports=function(l){if(typeof Map!="function"||l){var c=a("./similar");return new c}else return new Map}},{"./similar":2}],2:[function(a,i,s){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}V(l,"Similar"),l.prototype.get=function(c){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,c))return this.lastItem.val;if(u=this.indexOf(c),u>=0)return this.lastItem=this.list[u],this.list[u].val},l.prototype.set=function(c,u){var d;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=u,this):(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],this.list[d].val=u,this):(this.lastItem={key:c,val:u},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(c){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),u=this.indexOf(c),u>=0)return this.size--,this.list.splice(u,1)[0]},l.prototype.has=function(c){var u;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(u=this.indexOf(c),u>=0?(this.lastItem=this.list[u],!0):!1)},l.prototype.forEach=function(c,u){var d;for(d=0;d<this.size;d++)c.call(u||this,this.list[d].val,this.list[d].key,this)},l.prototype.indexOf=function(c){var u;for(u=0;u<this.size;u++)if(this.isEqual(this.list[u].key,c))return u;return-1},l.prototype.isEqual=function(c,u){return c===u||c!==c&&u!==u},i.exports=l},{}],3:[function(a,i,s){var l=a("map-or-similar");i.exports=function(m){var p=new l(!1),h=[];return function(g){var y=V(function(){var b=p,v,C,S=arguments.length-1,A=Array(S+1),_=!0,E;if((y.numArgs||y.numArgs===0)&&y.numArgs!==S+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<S;E++){if(A[E]={cacheItem:b,arg:arguments[E]},b.has(arguments[E])){b=b.get(arguments[E]);continue}_=!1,v=new l(!1),b.set(arguments[E],v),b=v}return _&&(b.has(arguments[S])?C=b.get(arguments[S]):_=!1),_||(C=g.apply(null,arguments),b.set(arguments[S],C)),m>0&&(A[S]={cacheItem:b,arg:arguments[S]},_?c(h,A):h.push(A),h.length>m&&u(h.shift())),y.wasMemoized=_,y.numArgs=S+1,C},"memoizerific");return y.limit=m,y.wasMemoized=!1,y.cache=p,y.lru=h,y}};function c(m,p){var h=m.length,g=p.length,y,b,v;for(b=0;b<h;b++){for(y=!0,v=0;v<g;v++)if(!d(m[b][v].arg,p[v].arg)){y=!1;break}if(y)break}m.push(m.splice(b,1)[0])}V(c,"moveToMostRecentLru");function u(m){var p=m.length,h=m[p-1],g,y;for(h.cacheItem.delete(h.arg),y=p-2;y>=0&&(h=m[y],g=h.cacheItem.get(h.arg),!g||!g.size);y--)h.cacheItem.delete(h.arg)}V(u,"removeCachedResult");function d(m,p){return m===p||m!==m&&p!==p}V(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),Fe=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();function Or(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var d,m;return(m=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&m!==void 0?m:0})):s},[]);if(o.length){var a=new RegExp(`
|
|
16
16
|
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(a,`
|
|
17
17
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,l){var c=i.match(/(?:^|\n)( *)$/),u=c?c[1]:"",d=s;typeof s=="string"&&s.includes(`
|
|
18
18
|
`)&&(d=String(s).split(`
|
|
19
19
|
`).map(function(m,p){return p===0?m:""+u+m}).join(`
|
|
20
|
-
`)),i+=d+n[l+1]}),i}V(Or,"dedent");var
|
|
20
|
+
`)),i+=d+n[l+1]}),i}V(Or,"dedent");var ep=new Map,rw="UNIVERSAL_STORE:",ht={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},lr=class ne{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=V(()=>(this.debug("getState",{state:this.state}),this.state),"getState"),this.subscribe=V((n,o)=>{let a=typeof n=="function",i=a?"*":n,s=a?n:o;if(this.debug("subscribe",{eventType:i,listener:s}),!s)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(s),()=>{this.debug("unsubscribe",{eventType:i,listener:s}),this.listeners.has(i)&&(this.listeners.get(i).delete(s),this.listeners.get(i)?.size===0&&this.listeners.delete(i))}},"subscribe"),this.send=V(n=>{if(this.debug("send",{event:n}),this.status!==ne.Status.READY)throw new TypeError(Or`Cannot send event before store is ready. You can get the current status with store.status,
|
|
21
21
|
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
22
22
|
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},"send"),this.debugging=t.debug??!1,!ne.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(ne.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?ne.ActorType.LEADER:ne.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${rw}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===ne.ActorType.LEADER)this.syncing={state:ht.RESOLVED,promise:Promise.resolve()};else{let n,o,a=new Promise((i,s)=>{n=V(()=>{this.syncing.state===ht.PENDING&&(this.syncing.state=ht.RESOLVED,i())},"syncingResolve"),o=V(l=>{this.syncing.state===ht.PENDING&&(this.syncing.state=ht.REJECTED,s(l))},"syncingReject")});this.syncing={state:ht.PENDING,promise:a,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??ne.preparation.channel,this.environment=r?.environment??ne.preparation.environment,this.channel&&this.environment?this.prepareThis({channel:this.channel,environment:this.environment}):ne.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,a)=>{t=V(i=>{o(i)},"resolveRef"),r=V((...i)=>{a(i)},"rejectRef")});ne.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??ne.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return ne.Status.UNPREPARED;switch(this.syncing?.state){case ht.PENDING:case void 0:return ne.Status.SYNCING;case ht.REJECTED:return ne.Status.ERROR;case ht.RESOLVED:default:return ne.Status.READY}}untilReady(){return Promise.all([ne.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Or`[UniversalStore]
|
|
23
|
-
create`,{options:t});let r=
|
|
24
|
-
You should reuse the existing instance instead of trying to create a new one.`),r;ne.isInternalConstructing=!0;let n=new ne(t);return
|
|
23
|
+
create`,{options:t});let r=ep.get(t.id);if(r)return console.warn(Or`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
24
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;ne.isInternalConstructing=!0;let n=new ne(t);return ep.set(t.id,n),n}static __prepare(t,r){ne.preparation.channel=t,ne.preparation.environment=r,ne.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==ne.Status.READY)throw new TypeError(Or`Cannot set state before store is ready. You can get the current status with store.status,
|
|
25
25
|
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
26
26
|
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:ne.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(ne.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===ne.ActorType.LEADER?this.emitToChannel({type:ne.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:ne.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:ne.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(a=>a(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===ht.PENDING&&r.type!==ne.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===ne.ActorType.LEADER){let o=!0;switch(r.type){case ne.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let a={type:ne.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:a}),this.emitToChannel(a,{actor:this.actor});break;case ne.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=ht.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Or`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
27
27
|
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
28
28
|
Leaders detected:
|
|
29
29
|
this: ${JSON.stringify(this.actor,null,2)}
|
|
30
30
|
other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===ne.ActorType.FOLLOWER)switch(r.type){case ne.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==ht.PENDING)break;this.syncing.resolve?.();let o={type:ne.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}switch(r.type){case ne.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Or`[UniversalStore::${this.id}::${this.environment??ne.Environment.UNKNOWN}]
|
|
31
|
-
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){ne.preparation.reject(new Error("reset")),ne.setupPreparationPromise(),ne.isInternalConstructing=!1}};V(lr,"UniversalStore"),lr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},lr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},lr.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},lr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},lr.isInternalConstructing=!1,lr.setupPreparationPromise();var Ls=lr,nw=V(e=>e.transports!==void 0,"isMulti"),ow=V(()=>Math.random().toString(16).slice(2),"generateRandomId"),ip=class{constructor(t={}){this.sender=ow(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,nw(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){let n={type:t,args:r,from:this.sender},o={};r.length>=1&&r[0]&&r[0].options&&(o=r[0].options);let a=V(()=>{this.transports.forEach(i=>{i.send(n,o)}),this.handleEvent(n)},"handler");this.isAsync?setImmediate(a):a()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){let n=this.onceListener(t,r);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){let n=this.listeners(t);n&&(this.events[t]=n.filter(o=>o!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){let r=this.listeners(t.type);r&&r.length&&r.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){let n=V((...o)=>(this.removeListener(t,n),r(...o)),"onceListener");return n}};V(ip,"Channel");var ln=ip,aw=Object.create,sp=Object.defineProperty,iw=Object.getOwnPropertyDescriptor,lp=Object.getOwnPropertyNames,sw=Object.getPrototypeOf,lw=Object.prototype.hasOwnProperty,yt=V((e,t)=>V(function(){return t||(0,e[lp(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),uw=V((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lp(t))!lw.call(e,o)&&o!==r&&sp(e,o,{get:V(()=>t[o],"get"),enumerable:!(n=iw(t,o))||n.enumerable});return e},"__copyProps"),Vs=V((e,t,r)=>(r=e!=null?aw(sw(e)):{},uw(t||!e||!e.__esModule?sp(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),cw=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],dw=["detail"];function up(e){let t=cw.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&dw.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}V(up,"extractEventHiddenProperties");var pw=ew(tw(),1),cp=yt({"node_modules/has-symbols/shams.js"(e,t){"use strict";t.exports=V(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},"hasSymbols")}}),dp=yt({"node_modules/has-symbols/index.js"(e,t){"use strict";var r=typeof Symbol<"u"&&Symbol,n=cp();t.exports=V(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}}),fw=yt({"node_modules/function-bind/implementation.js"(e,t){"use strict";var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=V(function(i){var s=this;if(typeof s!="function"||o.call(s)!==a)throw new TypeError(r+s);for(var l=n.call(arguments,1),c,u=V(function(){if(this instanceof c){var g=s.apply(this,l.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,l.concat(n.call(arguments)))},"binder"),d=Math.max(0,s.length-l.length),m=[],p=0;p<d;p++)m.push("$"+p);if(c=Function("binder","return function ("+m.join(",")+"){ return binder.apply(this,arguments); }")(u),s.prototype){var h=V(function(){},"Empty2");h.prototype=s.prototype,c.prototype=new h,h.prototype=null}return c},"bind")}}),zs=yt({"node_modules/function-bind/index.js"(e,t){"use strict";var r=fw();t.exports=Function.prototype.bind||r}}),mw=yt({"node_modules/has/src/index.js"(e,t){"use strict";var r=zs();t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)}}),pp=yt({"node_modules/get-intrinsic/index.js"(e,t){"use strict";var r,n=SyntaxError,o=Function,a=TypeError,i=V(function(j){try{return o('"use strict"; return ('+j+").constructor;")()}catch{}},"getEvalledConstructor"),s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch{s=null}var l=V(function(){throw new a},"throwTypeError"),c=s?(function(){try{return arguments.callee,l}catch{try{return s(arguments,"callee").get}catch{return l}}})():l,u=dp()(),d=Object.getPrototypeOf||function(j){return j.__proto__},m={},p=typeof Uint8Array>"u"?r:d(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":m,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?r:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?r:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=V(function j(F){var T;if(F==="%AsyncFunction%")T=i("async function () {}");else if(F==="%GeneratorFunction%")T=i("function* () {}");else if(F==="%AsyncGeneratorFunction%")T=i("async function* () {}");else if(F==="%AsyncGenerator%"){var M=j("%AsyncGeneratorFunction%");M&&(T=M.prototype)}else if(F==="%AsyncIteratorPrototype%"){var D=j("%AsyncGenerator%");D&&(T=d(D.prototype))}return h[F]=T,T},"doEval2"),y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=zs(),v=mw(),C=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),A=b.call(Function.call,String.prototype.replace),_=b.call(Function.call,String.prototype.slice),E=b.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,N=V(function(j){var F=_(j,0,1),T=_(j,-1);if(F==="%"&&T!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(T==="%"&&F!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var M=[];return A(j,R,function(D,Y,G,J){M[M.length]=G?A(J,P,"$1"):Y||D}),M},"stringToPath3"),B=V(function(j,F){var T=j,M;if(v(y,T)&&(M=y[T],T="%"+M[0]+"%"),v(h,T)){var D=h[T];if(D===m&&(D=g(T)),typeof D>"u"&&!F)throw new a("intrinsic "+j+" exists, but is not available. Please file an issue!");return{alias:M,name:T,value:D}}throw new n("intrinsic "+j+" does not exist!")},"getBaseIntrinsic2");t.exports=V(function(j,F){if(typeof j!="string"||j.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof F!="boolean")throw new a('"allowMissing" argument must be a boolean');if(E(/^%?[^%]*%?$/,j)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var T=N(j),M=T.length>0?T[0]:"",D=B("%"+M+"%",F),Y=D.name,G=D.value,J=!1,re=D.alias;re&&(M=re[0],S(T,C([0,1],re)));for(var te=1,H=!0;te<T.length;te+=1){var U=T[te],z=_(U,0,1),K=_(U,-1);if((z==='"'||z==="'"||z==="`"||K==='"'||K==="'"||K==="`")&&z!==K)throw new n("property names with quotes must have matching quotes");if((U==="constructor"||!H)&&(J=!0),M+="."+U,Y="%"+M+"%",v(h,Y))G=h[Y];else if(G!=null){if(!(U in G)){if(!F)throw new a("base intrinsic for "+j+" exists, but the property is not available.");return}if(s&&te+1>=T.length){var W=s(G,U);H=!!W,H&&"get"in W&&!("originalValue"in W.get)?G=W.get:G=G[U]}else H=v(G,U),G=G[U];H&&!J&&(h[Y]=G)}}return G},"GetIntrinsic")}}),hw=yt({"node_modules/call-bind/index.js"(e,t){"use strict";var r=zs(),n=pp(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(a,o),s=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=V(function(d){var m=i(r,a,arguments);if(s&&l){var p=s(m,"length");p.configurable&&l(m,"length",{value:1+c(0,d.length-(arguments.length-1))})}return m},"callBind");var u=V(function(){return i(r,o,arguments)},"applyBind2");l?l(t.exports,"apply",{value:u}):t.exports.apply=u}}),yw=yt({"node_modules/call-bind/callBound.js"(e,t){"use strict";var r=pp(),n=hw(),o=n(r("String.prototype.indexOf"));t.exports=V(function(a,i){var s=r(a,!!i);return typeof s=="function"&&o(a,".prototype.")>-1?n(s):s},"callBoundIntrinsic")}}),bw=yt({"node_modules/has-tostringtag/shams.js"(e,t){"use strict";var r=cp();t.exports=V(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),gw=yt({"node_modules/is-regex/index.js"(e,t){"use strict";var r=yw(),n=bw()(),o,a,i,s;n&&(o=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),i={},l=V(function(){throw i},"throwRegexMarker"),s={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=l));var l,c=r("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,d="[object RegExp]";t.exports=V(n?function(m){if(!m||typeof m!="object")return!1;var p=u(m,"lastIndex"),h=p&&o(p,"value");if(!h)return!1;try{a(m,s)}catch(g){return g===i}}:function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:c(m)===d},"isRegex")}}),vw=yt({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}V(n,"isFunction3")}}),Ew=yt({"node_modules/is-symbol/index.js"(e,t){"use strict";var r=Object.prototype.toString,n=dp()();n?(o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,i=V(function(s){return typeof s.valueOf()!="symbol"?!1:a.test(o.call(s))},"isRealSymbolObject"),t.exports=V(function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}},"isSymbol3")):t.exports=V(function(s){return!1},"isSymbol3");var o,a,i}}),_w=Vs(gw()),Rw=Vs(vw()),ww=Vs(Ew());function fp(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}V(fp,"isObject");var Cw=typeof global=="object"&&global&&global.Object===Object&&global,Sw=Cw,Aw=typeof self=="object"&&self&&self.Object===Object&&self,Tw=Sw||Aw||Function("return this")(),Gs=Tw,Pw=Gs.Symbol,sn=Pw,mp=Object.prototype,Ow=mp.hasOwnProperty,qw=mp.toString,no=sn?sn.toStringTag:void 0;function hp(e){var t=Ow.call(e,no),r=e[no];try{e[no]=void 0;var n=!0}catch{}var o=qw.call(e);return n&&(t?e[no]=r:delete e[no]),o}V(hp,"getRawTag");var xw=hp,Mw=Object.prototype,Nw=Mw.toString;function yp(e){return Nw.call(e)}V(yp,"objectToString");var jw=yp,Iw="[object Null]",Dw="[object Undefined]",ep=sn?sn.toStringTag:void 0;function bp(e){return e==null?e===void 0?Dw:Iw:ep&&ep in Object(e)?xw(e):jw(e)}V(bp,"baseGetTag");var gp=bp;function vp(e){return e!=null&&typeof e=="object"}V(vp,"isObjectLike");var Fw=vp,Lw="[object Symbol]";function Ep(e){return typeof e=="symbol"||Fw(e)&&gp(e)==Lw}V(Ep,"isSymbol");var Ys=Ep;function _p(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}V(_p,"arrayMap");var Bw=_p,kw=Array.isArray,Ws=kw,$w=1/0,tp=sn?sn.prototype:void 0,rp=tp?tp.toString:void 0;function Ks(e){if(typeof e=="string")return e;if(Ws(e))return Bw(e,Ks)+"";if(Ys(e))return rp?rp.call(e):"";var t=e+"";return t=="0"&&1/e==-$w?"-0":t}V(Ks,"baseToString");var Uw=Ks;function Rp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}V(Rp,"isObject2");var wp=Rp,Hw="[object AsyncFunction]",Vw="[object Function]",zw="[object GeneratorFunction]",Gw="[object Proxy]";function Cp(e){if(!wp(e))return!1;var t=gp(e);return t==Vw||t==zw||t==Hw||t==Gw}V(Cp,"isFunction");var Yw=Cp,Ww=Gs["__core-js_shared__"],Bs=Ww,np=(function(){var e=/[^.]+$/.exec(Bs&&Bs.keys&&Bs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Sp(e){return!!np&&np in e}V(Sp,"isMasked");var Kw=Sp,Xw=Function.prototype,Jw=Xw.toString;function Ap(e){if(e!=null){try{return Jw.call(e)}catch{}try{return e+""}catch{}}return""}V(Ap,"toSource");var Qw=Ap,Zw=/[\\^$.*+?()[\]{}|]/g,eC=/^\[object .+?Constructor\]$/,tC=Function.prototype,rC=Object.prototype,nC=tC.toString,oC=rC.hasOwnProperty,aC=RegExp("^"+nC.call(oC).replace(Zw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tp(e){if(!wp(e)||Kw(e))return!1;var t=Yw(e)?aC:eC;return t.test(Qw(e))}V(Tp,"baseIsNative");var iC=Tp;function Pp(e,t){return e?.[t]}V(Pp,"getValue");var sC=Pp;function Op(e,t){var r=sC(e,t);return iC(r)?r:void 0}V(Op,"getNative");var qp=Op;function xp(e,t){return e===t||e!==e&&t!==t}V(xp,"eq");var lC=xp,uC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cC=/^\w*$/;function Mp(e,t){if(Ws(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ys(e)?!0:cC.test(e)||!uC.test(e)||t!=null&&e in Object(t)}V(Mp,"isKey");var dC=Mp,pC=qp(Object,"create"),oo=pC;function Np(){this.__data__=oo?oo(null):{},this.size=0}V(Np,"hashClear");var fC=Np;function jp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}V(jp,"hashDelete");var mC=jp,hC="__lodash_hash_undefined__",yC=Object.prototype,bC=yC.hasOwnProperty;function Ip(e){var t=this.__data__;if(oo){var r=t[e];return r===hC?void 0:r}return bC.call(t,e)?t[e]:void 0}V(Ip,"hashGet");var gC=Ip,vC=Object.prototype,EC=vC.hasOwnProperty;function Dp(e){var t=this.__data__;return oo?t[e]!==void 0:EC.call(t,e)}V(Dp,"hashHas");var _C=Dp,RC="__lodash_hash_undefined__";function Fp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oo&&t===void 0?RC:t,this}V(Fp,"hashSet");var wC=Fp;function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}V(qr,"Hash");qr.prototype.clear=fC;qr.prototype.delete=mC;qr.prototype.get=gC;qr.prototype.has=_C;qr.prototype.set=wC;var op=qr;function Lp(){this.__data__=[],this.size=0}V(Lp,"listCacheClear");var CC=Lp;function Bp(e,t){for(var r=e.length;r--;)if(lC(e[r][0],t))return r;return-1}V(Bp,"assocIndexOf");var la=Bp,SC=Array.prototype,AC=SC.splice;function kp(e){var t=this.__data__,r=la(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():AC.call(t,r,1),--this.size,!0}V(kp,"listCacheDelete");var TC=kp;function $p(e){var t=this.__data__,r=la(t,e);return r<0?void 0:t[r][1]}V($p,"listCacheGet");var PC=$p;function Up(e){return la(this.__data__,e)>-1}V(Up,"listCacheHas");var OC=Up;function Hp(e,t){var r=this.__data__,n=la(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}V(Hp,"listCacheSet");var qC=Hp;function xr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}V(xr,"ListCache");xr.prototype.clear=CC;xr.prototype.delete=TC;xr.prototype.get=PC;xr.prototype.has=OC;xr.prototype.set=qC;var xC=xr,MC=qp(Gs,"Map"),NC=MC;function Vp(){this.size=0,this.__data__={hash:new op,map:new(NC||xC),string:new op}}V(Vp,"mapCacheClear");var jC=Vp;function zp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}V(zp,"isKeyable");var IC=zp;function Gp(e,t){var r=e.__data__;return IC(t)?r[typeof t=="string"?"string":"hash"]:r.map}V(Gp,"getMapData");var ua=Gp;function Yp(e){var t=ua(this,e).delete(e);return this.size-=t?1:0,t}V(Yp,"mapCacheDelete");var DC=Yp;function Wp(e){return ua(this,e).get(e)}V(Wp,"mapCacheGet");var FC=Wp;function Kp(e){return ua(this,e).has(e)}V(Kp,"mapCacheHas");var LC=Kp;function Xp(e,t){var r=ua(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}V(Xp,"mapCacheSet");var BC=Xp;function Mr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}V(Mr,"MapCache");Mr.prototype.clear=jC;Mr.prototype.delete=DC;Mr.prototype.get=FC;Mr.prototype.has=LC;Mr.prototype.set=BC;var Jp=Mr,kC="Expected a function";function ca(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kC);var r=V(function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i},"memoized");return r.cache=new(ca.Cache||Jp),r}V(ca,"memoize");ca.Cache=Jp;var $C=ca,UC=500;function Qp(e){var t=$C(e,function(n){return r.size===UC&&r.clear(),n}),r=t.cache;return t}V(Qp,"memoizeCapped");var HC=Qp,VC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zC=/\\(\\)?/g,GC=HC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(VC,function(r,n,o,a){t.push(o?a.replace(zC,"$1"):n||r)}),t}),YC=GC;function Zp(e){return e==null?"":Uw(e)}V(Zp,"toString");var WC=Zp;function ef(e,t){return Ws(e)?e:dC(e,t)?[e]:YC(WC(e))}V(ef,"castPath");var KC=ef,XC=1/0;function tf(e){if(typeof e=="string"||Ys(e))return e;var t=e+"";return t=="0"&&1/e==-XC?"-0":t}V(tf,"toKey");var JC=tf;function rf(e,t){t=KC(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[JC(t[r++])];return r&&r==n?e:void 0}V(rf,"baseGet");var QC=rf;function nf(e,t,r){var n=e==null?void 0:QC(e,t);return n===void 0?r:n}V(nf,"get");var ZC=nf,ia=fp,e2=V(e=>{let t=null,r=!1,n=!1,o=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;i<e.length;i+=1)!t&&!r&&!n&&!o?e[i]==='"'||e[i]==="'"||e[i]==="`"?t=e[i]:e[i]==="/"&&e[i+1]==="*"?r=!0:e[i]==="/"&&e[i+1]==="/"?n=!0:e[i]==="/"&&e[i+1]!=="/"&&(o=!0):(t&&(e[i]===t&&e[i-1]!=="\\"||e[i]===`
|
|
31
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){ne.preparation.reject(new Error("reset")),ne.setupPreparationPromise(),ne.isInternalConstructing=!1}};V(lr,"UniversalStore"),lr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},lr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},lr.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},lr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},lr.isInternalConstructing=!1,lr.setupPreparationPromise();var Ls=lr,nw=V(e=>e.transports!==void 0,"isMulti"),ow=V(()=>Math.random().toString(16).slice(2),"generateRandomId"),sp=class{constructor(t={}){this.sender=ow(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,nw(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){let n={type:t,args:r,from:this.sender},o={};r.length>=1&&r[0]&&r[0].options&&(o=r[0].options);let a=V(()=>{this.transports.forEach(i=>{i.send(n,o)}),this.handleEvent(n)},"handler");this.isAsync?setImmediate(a):a()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){let n=this.onceListener(t,r);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){let n=this.listeners(t);n&&(this.events[t]=n.filter(o=>o!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){let r=this.listeners(t.type);r&&r.length&&r.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){let n=V((...o)=>(this.removeListener(t,n),r(...o)),"onceListener");return n}};V(sp,"Channel");var ln=sp,aw=Object.create,lp=Object.defineProperty,iw=Object.getOwnPropertyDescriptor,up=Object.getOwnPropertyNames,sw=Object.getPrototypeOf,lw=Object.prototype.hasOwnProperty,yt=V((e,t)=>V(function(){return t||(0,e[up(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),uw=V((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of up(t))!lw.call(e,o)&&o!==r&&lp(e,o,{get:V(()=>t[o],"get"),enumerable:!(n=iw(t,o))||n.enumerable});return e},"__copyProps"),Vs=V((e,t,r)=>(r=e!=null?aw(sw(e)):{},uw(t||!e||!e.__esModule?lp(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),cw=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],dw=["detail"];function cp(e){let t=cw.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&dw.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}V(cp,"extractEventHiddenProperties");var pw=ew(tw(),1),dp=yt({"node_modules/has-symbols/shams.js"(e,t){"use strict";t.exports=V(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},"hasSymbols")}}),pp=yt({"node_modules/has-symbols/index.js"(e,t){"use strict";var r=typeof Symbol<"u"&&Symbol,n=dp();t.exports=V(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}}),fw=yt({"node_modules/function-bind/implementation.js"(e,t){"use strict";var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=V(function(i){var s=this;if(typeof s!="function"||o.call(s)!==a)throw new TypeError(r+s);for(var l=n.call(arguments,1),c,u=V(function(){if(this instanceof c){var g=s.apply(this,l.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,l.concat(n.call(arguments)))},"binder"),d=Math.max(0,s.length-l.length),m=[],p=0;p<d;p++)m.push("$"+p);if(c=Function("binder","return function ("+m.join(",")+"){ return binder.apply(this,arguments); }")(u),s.prototype){var h=V(function(){},"Empty2");h.prototype=s.prototype,c.prototype=new h,h.prototype=null}return c},"bind")}}),zs=yt({"node_modules/function-bind/index.js"(e,t){"use strict";var r=fw();t.exports=Function.prototype.bind||r}}),mw=yt({"node_modules/has/src/index.js"(e,t){"use strict";var r=zs();t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)}}),fp=yt({"node_modules/get-intrinsic/index.js"(e,t){"use strict";var r,n=SyntaxError,o=Function,a=TypeError,i=V(function(j){try{return o('"use strict"; return ('+j+").constructor;")()}catch{}},"getEvalledConstructor"),s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch{s=null}var l=V(function(){throw new a},"throwTypeError"),c=s?(function(){try{return arguments.callee,l}catch{try{return s(arguments,"callee").get}catch{return l}}})():l,u=pp()(),d=Object.getPrototypeOf||function(j){return j.__proto__},m={},p=typeof Uint8Array>"u"?r:d(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":m,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?r:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?r:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=V(function j(F){var T;if(F==="%AsyncFunction%")T=i("async function () {}");else if(F==="%GeneratorFunction%")T=i("function* () {}");else if(F==="%AsyncGeneratorFunction%")T=i("async function* () {}");else if(F==="%AsyncGenerator%"){var M=j("%AsyncGeneratorFunction%");M&&(T=M.prototype)}else if(F==="%AsyncIteratorPrototype%"){var D=j("%AsyncGenerator%");D&&(T=d(D.prototype))}return h[F]=T,T},"doEval2"),y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=zs(),v=mw(),C=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),A=b.call(Function.call,String.prototype.replace),_=b.call(Function.call,String.prototype.slice),E=b.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,N=V(function(j){var F=_(j,0,1),T=_(j,-1);if(F==="%"&&T!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(T==="%"&&F!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var M=[];return A(j,R,function(D,Y,G,J){M[M.length]=G?A(J,P,"$1"):Y||D}),M},"stringToPath3"),B=V(function(j,F){var T=j,M;if(v(y,T)&&(M=y[T],T="%"+M[0]+"%"),v(h,T)){var D=h[T];if(D===m&&(D=g(T)),typeof D>"u"&&!F)throw new a("intrinsic "+j+" exists, but is not available. Please file an issue!");return{alias:M,name:T,value:D}}throw new n("intrinsic "+j+" does not exist!")},"getBaseIntrinsic2");t.exports=V(function(j,F){if(typeof j!="string"||j.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof F!="boolean")throw new a('"allowMissing" argument must be a boolean');if(E(/^%?[^%]*%?$/,j)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var T=N(j),M=T.length>0?T[0]:"",D=B("%"+M+"%",F),Y=D.name,G=D.value,J=!1,re=D.alias;re&&(M=re[0],S(T,C([0,1],re)));for(var te=1,H=!0;te<T.length;te+=1){var U=T[te],z=_(U,0,1),K=_(U,-1);if((z==='"'||z==="'"||z==="`"||K==='"'||K==="'"||K==="`")&&z!==K)throw new n("property names with quotes must have matching quotes");if((U==="constructor"||!H)&&(J=!0),M+="."+U,Y="%"+M+"%",v(h,Y))G=h[Y];else if(G!=null){if(!(U in G)){if(!F)throw new a("base intrinsic for "+j+" exists, but the property is not available.");return}if(s&&te+1>=T.length){var W=s(G,U);H=!!W,H&&"get"in W&&!("originalValue"in W.get)?G=W.get:G=G[U]}else H=v(G,U),G=G[U];H&&!J&&(h[Y]=G)}}return G},"GetIntrinsic")}}),hw=yt({"node_modules/call-bind/index.js"(e,t){"use strict";var r=zs(),n=fp(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(a,o),s=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=V(function(d){var m=i(r,a,arguments);if(s&&l){var p=s(m,"length");p.configurable&&l(m,"length",{value:1+c(0,d.length-(arguments.length-1))})}return m},"callBind");var u=V(function(){return i(r,o,arguments)},"applyBind2");l?l(t.exports,"apply",{value:u}):t.exports.apply=u}}),yw=yt({"node_modules/call-bind/callBound.js"(e,t){"use strict";var r=fp(),n=hw(),o=n(r("String.prototype.indexOf"));t.exports=V(function(a,i){var s=r(a,!!i);return typeof s=="function"&&o(a,".prototype.")>-1?n(s):s},"callBoundIntrinsic")}}),bw=yt({"node_modules/has-tostringtag/shams.js"(e,t){"use strict";var r=dp();t.exports=V(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),gw=yt({"node_modules/is-regex/index.js"(e,t){"use strict";var r=yw(),n=bw()(),o,a,i,s;n&&(o=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),i={},l=V(function(){throw i},"throwRegexMarker"),s={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=l));var l,c=r("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,d="[object RegExp]";t.exports=V(n?function(m){if(!m||typeof m!="object")return!1;var p=u(m,"lastIndex"),h=p&&o(p,"value");if(!h)return!1;try{a(m,s)}catch(g){return g===i}}:function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:c(m)===d},"isRegex")}}),vw=yt({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}V(n,"isFunction3")}}),Ew=yt({"node_modules/is-symbol/index.js"(e,t){"use strict";var r=Object.prototype.toString,n=pp()();n?(o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,i=V(function(s){return typeof s.valueOf()!="symbol"?!1:a.test(o.call(s))},"isRealSymbolObject"),t.exports=V(function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}},"isSymbol3")):t.exports=V(function(s){return!1},"isSymbol3");var o,a,i}}),_w=Vs(gw()),Rw=Vs(vw()),ww=Vs(Ew());function mp(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}V(mp,"isObject");var Cw=typeof global=="object"&&global&&global.Object===Object&&global,Sw=Cw,Aw=typeof self=="object"&&self&&self.Object===Object&&self,Tw=Sw||Aw||Function("return this")(),Gs=Tw,Pw=Gs.Symbol,sn=Pw,hp=Object.prototype,Ow=hp.hasOwnProperty,qw=hp.toString,no=sn?sn.toStringTag:void 0;function yp(e){var t=Ow.call(e,no),r=e[no];try{e[no]=void 0;var n=!0}catch{}var o=qw.call(e);return n&&(t?e[no]=r:delete e[no]),o}V(yp,"getRawTag");var xw=yp,Mw=Object.prototype,Nw=Mw.toString;function bp(e){return Nw.call(e)}V(bp,"objectToString");var jw=bp,Iw="[object Null]",Dw="[object Undefined]",tp=sn?sn.toStringTag:void 0;function gp(e){return e==null?e===void 0?Dw:Iw:tp&&tp in Object(e)?xw(e):jw(e)}V(gp,"baseGetTag");var vp=gp;function Ep(e){return e!=null&&typeof e=="object"}V(Ep,"isObjectLike");var Fw=Ep,Lw="[object Symbol]";function _p(e){return typeof e=="symbol"||Fw(e)&&vp(e)==Lw}V(_p,"isSymbol");var Ys=_p;function Rp(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}V(Rp,"arrayMap");var Bw=Rp,kw=Array.isArray,Ws=kw,$w=1/0,rp=sn?sn.prototype:void 0,np=rp?rp.toString:void 0;function Ks(e){if(typeof e=="string")return e;if(Ws(e))return Bw(e,Ks)+"";if(Ys(e))return np?np.call(e):"";var t=e+"";return t=="0"&&1/e==-$w?"-0":t}V(Ks,"baseToString");var Uw=Ks;function wp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}V(wp,"isObject2");var Cp=wp,Hw="[object AsyncFunction]",Vw="[object Function]",zw="[object GeneratorFunction]",Gw="[object Proxy]";function Sp(e){if(!Cp(e))return!1;var t=vp(e);return t==Vw||t==zw||t==Hw||t==Gw}V(Sp,"isFunction");var Yw=Sp,Ww=Gs["__core-js_shared__"],Bs=Ww,op=(function(){var e=/[^.]+$/.exec(Bs&&Bs.keys&&Bs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ap(e){return!!op&&op in e}V(Ap,"isMasked");var Kw=Ap,Xw=Function.prototype,Jw=Xw.toString;function Tp(e){if(e!=null){try{return Jw.call(e)}catch{}try{return e+""}catch{}}return""}V(Tp,"toSource");var Qw=Tp,Zw=/[\\^$.*+?()[\]{}|]/g,eC=/^\[object .+?Constructor\]$/,tC=Function.prototype,rC=Object.prototype,nC=tC.toString,oC=rC.hasOwnProperty,aC=RegExp("^"+nC.call(oC).replace(Zw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pp(e){if(!Cp(e)||Kw(e))return!1;var t=Yw(e)?aC:eC;return t.test(Qw(e))}V(Pp,"baseIsNative");var iC=Pp;function Op(e,t){return e?.[t]}V(Op,"getValue");var sC=Op;function qp(e,t){var r=sC(e,t);return iC(r)?r:void 0}V(qp,"getNative");var xp=qp;function Mp(e,t){return e===t||e!==e&&t!==t}V(Mp,"eq");var lC=Mp,uC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cC=/^\w*$/;function Np(e,t){if(Ws(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ys(e)?!0:cC.test(e)||!uC.test(e)||t!=null&&e in Object(t)}V(Np,"isKey");var dC=Np,pC=xp(Object,"create"),oo=pC;function jp(){this.__data__=oo?oo(null):{},this.size=0}V(jp,"hashClear");var fC=jp;function Ip(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}V(Ip,"hashDelete");var mC=Ip,hC="__lodash_hash_undefined__",yC=Object.prototype,bC=yC.hasOwnProperty;function Dp(e){var t=this.__data__;if(oo){var r=t[e];return r===hC?void 0:r}return bC.call(t,e)?t[e]:void 0}V(Dp,"hashGet");var gC=Dp,vC=Object.prototype,EC=vC.hasOwnProperty;function Fp(e){var t=this.__data__;return oo?t[e]!==void 0:EC.call(t,e)}V(Fp,"hashHas");var _C=Fp,RC="__lodash_hash_undefined__";function Lp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oo&&t===void 0?RC:t,this}V(Lp,"hashSet");var wC=Lp;function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}V(qr,"Hash");qr.prototype.clear=fC;qr.prototype.delete=mC;qr.prototype.get=gC;qr.prototype.has=_C;qr.prototype.set=wC;var ap=qr;function Bp(){this.__data__=[],this.size=0}V(Bp,"listCacheClear");var CC=Bp;function kp(e,t){for(var r=e.length;r--;)if(lC(e[r][0],t))return r;return-1}V(kp,"assocIndexOf");var la=kp,SC=Array.prototype,AC=SC.splice;function $p(e){var t=this.__data__,r=la(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():AC.call(t,r,1),--this.size,!0}V($p,"listCacheDelete");var TC=$p;function Up(e){var t=this.__data__,r=la(t,e);return r<0?void 0:t[r][1]}V(Up,"listCacheGet");var PC=Up;function Hp(e){return la(this.__data__,e)>-1}V(Hp,"listCacheHas");var OC=Hp;function Vp(e,t){var r=this.__data__,n=la(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}V(Vp,"listCacheSet");var qC=Vp;function xr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}V(xr,"ListCache");xr.prototype.clear=CC;xr.prototype.delete=TC;xr.prototype.get=PC;xr.prototype.has=OC;xr.prototype.set=qC;var xC=xr,MC=xp(Gs,"Map"),NC=MC;function zp(){this.size=0,this.__data__={hash:new ap,map:new(NC||xC),string:new ap}}V(zp,"mapCacheClear");var jC=zp;function Gp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}V(Gp,"isKeyable");var IC=Gp;function Yp(e,t){var r=e.__data__;return IC(t)?r[typeof t=="string"?"string":"hash"]:r.map}V(Yp,"getMapData");var ua=Yp;function Wp(e){var t=ua(this,e).delete(e);return this.size-=t?1:0,t}V(Wp,"mapCacheDelete");var DC=Wp;function Kp(e){return ua(this,e).get(e)}V(Kp,"mapCacheGet");var FC=Kp;function Xp(e){return ua(this,e).has(e)}V(Xp,"mapCacheHas");var LC=Xp;function Jp(e,t){var r=ua(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}V(Jp,"mapCacheSet");var BC=Jp;function Mr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}V(Mr,"MapCache");Mr.prototype.clear=jC;Mr.prototype.delete=DC;Mr.prototype.get=FC;Mr.prototype.has=LC;Mr.prototype.set=BC;var Qp=Mr,kC="Expected a function";function ca(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kC);var r=V(function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i},"memoized");return r.cache=new(ca.Cache||Qp),r}V(ca,"memoize");ca.Cache=Qp;var $C=ca,UC=500;function Zp(e){var t=$C(e,function(n){return r.size===UC&&r.clear(),n}),r=t.cache;return t}V(Zp,"memoizeCapped");var HC=Zp,VC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zC=/\\(\\)?/g,GC=HC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(VC,function(r,n,o,a){t.push(o?a.replace(zC,"$1"):n||r)}),t}),YC=GC;function ef(e){return e==null?"":Uw(e)}V(ef,"toString");var WC=ef;function tf(e,t){return Ws(e)?e:dC(e,t)?[e]:YC(WC(e))}V(tf,"castPath");var KC=tf,XC=1/0;function rf(e){if(typeof e=="string"||Ys(e))return e;var t=e+"";return t=="0"&&1/e==-XC?"-0":t}V(rf,"toKey");var JC=rf;function nf(e,t){t=KC(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[JC(t[r++])];return r&&r==n?e:void 0}V(nf,"baseGet");var QC=nf;function of(e,t,r){var n=e==null?void 0:QC(e,t);return n===void 0?r:n}V(of,"get");var ZC=of,ia=mp,e2=V(e=>{let t=null,r=!1,n=!1,o=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;i<e.length;i+=1)!t&&!r&&!n&&!o?e[i]==='"'||e[i]==="'"||e[i]==="`"?t=e[i]:e[i]==="/"&&e[i+1]==="*"?r=!0:e[i]==="/"&&e[i+1]==="/"?n=!0:e[i]==="/"&&e[i+1]!=="/"&&(o=!0):(t&&(e[i]===t&&e[i-1]!=="\\"||e[i]===`
|
|
32
32
|
`&&t!=="`")&&(t=null),o&&(e[i]==="/"&&e[i-1]!=="\\"||e[i]===`
|
|
33
33
|
`)&&(o=!1),r&&e[i-1]==="/"&&e[i-2]==="*"&&(r=!1),n&&e[i]===`
|
|
34
|
-
`&&(n=!1)),!r&&!n&&(a+=e[i]);else a=e;return a},"removeCodeComments"),t2=(0,pw.default)(1e4)(e=>e2(e).replace(/\n\s*/g,"").trim()),r2=V(function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let o=r;return o=o.replace(e,"function"),o+n},"convertShorthandMethods2"),n2=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Xs=V(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function Js(e){if(!ia(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=up(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}V(Js,"convertUnconventionalData");var o2=V(function(e){let t,r,n,o;return V(function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===-1/0?"_-Infinity_":i===1/0?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return n2.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,_w.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,Rw.default)(i)){if(!e.allowFunction)return;let{name:c}=i,u=i.toString();return u.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${c}|${(()=>{}).toString()}`:`_function_${c}|${t2(r2(a,u))}`}if((0,ww.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&!e.allowClass)return;let l=t.get(i);if(!l){let c=Array.isArray(i)?i:Js(i);if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&e.allowClass)try{Object.assign(c,{"_constructor-name_":i.constructor.name})}catch{}return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${l}`}catch{return}},"replace")},"replacer2"),a2=V(function reviver(options){let refs=[],root;return V(function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let n=Xs(r)?JSON.parse(r):r.split(".");n.length===0?t[e]=root:t[e]=ZC(root,n)})),key==="_constructor-name_")return value;if(ia(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(ia(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=V((...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)},"result");return Object.defineProperty(result,"toString",{value:V(()=>sourceSanitized,"value")}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value},"revive")},"reviver"),of={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},af=V((e,t={})=>{let r={...of,...t};return JSON.stringify(Js(e),o2(r),t.space)},"stringify"),i2=V(()=>{let e=new Map;return V(function t(r){ia(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})},"mutateUndefined")},"mutator"),sf=V((e,t={})=>{let r={...of,...t},n=JSON.parse(e,a2(r));return i2()(n),n},"parse"),s2=!1,ks="Invariant failed";function sa(e,t){if(!e){if(s2)throw new Error(ks);var r=typeof t=="function"?t():t,n=r?"".concat(ks,": ").concat(r):ks;throw new Error(n)}}V(sa,"invariant");var l2=V(e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(a=>{try{return a.contentWindow?.location.origin===e.source.location.origin&&a.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return a.contentWindow===e.source}catch{}let i=a.getAttribute("src"),s;try{if(!i)return!1;({origin:s}=new URL(i,document.location.toString()))}catch{return!1}return s===e.origin}),o=r?.getAttribute("src");if(o&&n.length===0){let{protocol:a,host:i,pathname:s}=new URL(o,document.location.toString());return`${a}//${i}${s}`}return n.length>0&&le.error("found multiple candidates for event source"),null},"getEventSourceUrl"),{document:$s,location:Us}=Fe,ap="storybook-channel",u2={allowFunction:!1,maxDepth:25},lf=class{constructor(t){if(this.config=t,this.connected=!1,this.buffer=[],typeof Fe?.addEventListener=="function"&&Fe.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...r)=>{t.apply(this,r),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,r){let{target:n,allowRegExp:o,allowFunction:a,allowSymbol:i,allowDate:s,allowError:l,allowUndefined:c,allowClass:u,maxDepth:d,space:m,lazyEval:p}=r||{},h=Object.fromEntries(Object.entries({allowRegExp:o,allowFunction:a,allowSymbol:i,allowDate:s,allowError:l,allowUndefined:c,allowClass:u,maxDepth:d,space:m,lazyEval:p}).filter(([C,S])=>typeof S<"u")),g={...u2,...Fe.CHANNEL_OPTIONS||{},...h},y=this.getFrames(n),b=new URLSearchParams(Us?.search||""),v=af({key:ap,event:t,refId:b.get("refId")},g);return y.length?(this.buffer.length&&this.flush(),y.forEach(C=>{try{C.postMessage(v,"*")}catch{le.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((C,S)=>{this.buffer.push({event:t,resolve:C,reject:S})})}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>{this.send(r.event).then(r.resolve).catch(r.reject)})}getFrames(t){if(this.config.page==="manager"){let r=Array.from($s.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(n=>{try{return n.contentWindow&&n.dataset.isStorybook!==void 0&&n.id===t?[n.contentWindow]:[]}catch{return[]}});return r?.length?r:this.getCurrentFrames()}return Fe&&Fe.parent&&Fe.parent!==Fe.self?[Fe.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from($s.querySelectorAll('[data-is-storybook="true"]')).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):Fe&&Fe.parent?[Fe.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from($s.querySelectorAll("#storybook-preview-iframe")).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):Fe&&Fe.parent?[Fe.parent]:[]}handleEvent(t){try{let{data:r}=t,{key:n,event:o,refId:a}=typeof r=="string"&&Xs(r)?sf(r,Fe.CHANNEL_OPTIONS||{}):r;if(n===ap){let i=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',s=Object.values(oa).includes(o.type)?`<span style="color: #FF4785">${o.type}</span>`:`<span style="color: #FFAE00">${o.type}</span>`;if(a&&(o.refId=a),o.source=this.config.page==="preview"?t.origin:l2(t),!o.source){dt.error(`${i} received ${s} but was unable to determine the source of the event`);return}let l=`${i} received ${s} (${r.length})`;dt.debug(Us.origin!==o.source?l:`${l} <span style="color: gray">(on ${Us.origin} from ${o.source})</span>`,...o.args),sa(this.handler,"ChannelHandler should be set"),this.handler(o)}}catch(r){le.error(r)}}};V(lf,"PostMessageTransport");var c2=lf,{WebSocket:d2}=Fe,p2=15e3,f2=5e3,uf=class{constructor({url:t,onError:r,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new d2(t),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:o})=>{let a=typeof o=="string"&&Xs(o)?sf(o):o;sa(this.handler,"WebsocketTransport handler should be set"),this.handler(a),a.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=o=>{r&&r(o)},this.socket.onclose=o=>{sa(this.handler,"WebsocketTransport handler should be set"),this.handler({type:Es,args:[{reason:o.reason,code:o.code}],from:n||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},p2+f2)}setHandler(t){this.handler=t}send(t){this.isClosed||(this.isReady?this.sendNow(t):this.sendLater(t))}sendLater(t){this.buffer.push(t)}sendNow(t){let r=af(t,{maxDepth:15,allowFunction:!1,...Fe.CHANNEL_OPTIONS});this.socket.send(r)}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>this.send(r))}};V(uf,"WebsocketTransport");var m2=uf,{CHANNEL_OPTIONS:h2,CONFIG_TYPE:y2}=Fe,LH=ln;function b2({page:e,extraTransports:t=[]}){let r=[new c2({page:e}),...t];if(y2==="DEVELOPMENT"){let o=window.location.protocol==="http:"?"ws":"wss",{hostname:a,port:i}=window.location,{wsToken:s}=h2||{},l=`${o}://${a}:${i}/storybook-server-channel?token=${s}`;r.push(new m2({url:l,onError:V(()=>{},"onError"),page:e}))}let n=new ln({transports:r});return Ls.__prepare(n,e==="manager"?Ls.Environment.MANAGER:Ls.Environment.PREVIEW),n}V(b2,"createBrowserChannel");var g2=Object.defineProperty,je=(e,t)=>g2(e,"name",{value:t,configurable:!0});function Le(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var d,m;return(m=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&m!==void 0?m:0})):s},[]);if(o.length){var a=new RegExp(`
|
|
34
|
+
`&&(n=!1)),!r&&!n&&(a+=e[i]);else a=e;return a},"removeCodeComments"),t2=(0,pw.default)(1e4)(e=>e2(e).replace(/\n\s*/g,"").trim()),r2=V(function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let o=r;return o=o.replace(e,"function"),o+n},"convertShorthandMethods2"),n2=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Xs=V(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function Js(e){if(!ia(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=cp(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}V(Js,"convertUnconventionalData");var o2=V(function(e){let t,r,n,o;return V(function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===-1/0?"_-Infinity_":i===1/0?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return n2.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,_w.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,Rw.default)(i)){if(!e.allowFunction)return;let{name:c}=i,u=i.toString();return u.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${c}|${(()=>{}).toString()}`:`_function_${c}|${t2(r2(a,u))}`}if((0,ww.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&!e.allowClass)return;let l=t.get(i);if(!l){let c=Array.isArray(i)?i:Js(i);if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&e.allowClass)try{Object.assign(c,{"_constructor-name_":i.constructor.name})}catch{}return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${l}`}catch{return}},"replace")},"replacer2"),a2=V(function reviver(options){let refs=[],root;return V(function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let n=Xs(r)?JSON.parse(r):r.split(".");n.length===0?t[e]=root:t[e]=ZC(root,n)})),key==="_constructor-name_")return value;if(ia(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(ia(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=V((...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)},"result");return Object.defineProperty(result,"toString",{value:V(()=>sourceSanitized,"value")}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value},"revive")},"reviver"),af={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},sf=V((e,t={})=>{let r={...af,...t};return JSON.stringify(Js(e),o2(r),t.space)},"stringify"),i2=V(()=>{let e=new Map;return V(function t(r){ia(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})},"mutateUndefined")},"mutator"),lf=V((e,t={})=>{let r={...af,...t},n=JSON.parse(e,a2(r));return i2()(n),n},"parse"),s2=!1,ks="Invariant failed";function sa(e,t){if(!e){if(s2)throw new Error(ks);var r=typeof t=="function"?t():t,n=r?"".concat(ks,": ").concat(r):ks;throw new Error(n)}}V(sa,"invariant");var l2=V(e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(a=>{try{return a.contentWindow?.location.origin===e.source.location.origin&&a.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return a.contentWindow===e.source}catch{}let i=a.getAttribute("src"),s;try{if(!i)return!1;({origin:s}=new URL(i,document.location.toString()))}catch{return!1}return s===e.origin}),o=r?.getAttribute("src");if(o&&n.length===0){let{protocol:a,host:i,pathname:s}=new URL(o,document.location.toString());return`${a}//${i}${s}`}return n.length>0&&le.error("found multiple candidates for event source"),null},"getEventSourceUrl"),{document:$s,location:Us}=Fe,ip="storybook-channel",u2={allowFunction:!1,maxDepth:25},uf=class{constructor(t){if(this.config=t,this.connected=!1,this.buffer=[],typeof Fe?.addEventListener=="function"&&Fe.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...r)=>{t.apply(this,r),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,r){let{target:n,allowRegExp:o,allowFunction:a,allowSymbol:i,allowDate:s,allowError:l,allowUndefined:c,allowClass:u,maxDepth:d,space:m,lazyEval:p}=r||{},h=Object.fromEntries(Object.entries({allowRegExp:o,allowFunction:a,allowSymbol:i,allowDate:s,allowError:l,allowUndefined:c,allowClass:u,maxDepth:d,space:m,lazyEval:p}).filter(([C,S])=>typeof S<"u")),g={...u2,...Fe.CHANNEL_OPTIONS||{},...h},y=this.getFrames(n),b=new URLSearchParams(Us?.search||""),v=sf({key:ip,event:t,refId:b.get("refId")},g);return y.length?(this.buffer.length&&this.flush(),y.forEach(C=>{try{C.postMessage(v,"*")}catch{le.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((C,S)=>{this.buffer.push({event:t,resolve:C,reject:S})})}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>{this.send(r.event).then(r.resolve).catch(r.reject)})}getFrames(t){if(this.config.page==="manager"){let r=Array.from($s.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(n=>{try{return n.contentWindow&&n.dataset.isStorybook!==void 0&&n.id===t?[n.contentWindow]:[]}catch{return[]}});return r?.length?r:this.getCurrentFrames()}return Fe&&Fe.parent&&Fe.parent!==Fe.self?[Fe.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from($s.querySelectorAll('[data-is-storybook="true"]')).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):Fe&&Fe.parent?[Fe.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from($s.querySelectorAll("#storybook-preview-iframe")).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):Fe&&Fe.parent?[Fe.parent]:[]}handleEvent(t){try{let{data:r}=t,{key:n,event:o,refId:a}=typeof r=="string"&&Xs(r)?lf(r,Fe.CHANNEL_OPTIONS||{}):r;if(n===ip){let i=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',s=Object.values(oa).includes(o.type)?`<span style="color: #FF4785">${o.type}</span>`:`<span style="color: #FFAE00">${o.type}</span>`;if(a&&(o.refId=a),o.source=this.config.page==="preview"?t.origin:l2(t),!o.source){dt.error(`${i} received ${s} but was unable to determine the source of the event`);return}let l=`${i} received ${s} (${r.length})`;dt.debug(Us.origin!==o.source?l:`${l} <span style="color: gray">(on ${Us.origin} from ${o.source})</span>`,...o.args),sa(this.handler,"ChannelHandler should be set"),this.handler(o)}}catch(r){le.error(r)}}};V(uf,"PostMessageTransport");var c2=uf,{WebSocket:d2}=Fe,p2=15e3,f2=5e3,cf=class{constructor({url:t,onError:r,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new d2(t),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:o})=>{let a=typeof o=="string"&&Xs(o)?lf(o):o;sa(this.handler,"WebsocketTransport handler should be set"),this.handler(a),a.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=o=>{r&&r(o)},this.socket.onclose=o=>{sa(this.handler,"WebsocketTransport handler should be set"),this.handler({type:Es,args:[{reason:o.reason,code:o.code}],from:n||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},p2+f2)}setHandler(t){this.handler=t}send(t){this.isClosed||(this.isReady?this.sendNow(t):this.sendLater(t))}sendLater(t){this.buffer.push(t)}sendNow(t){let r=sf(t,{maxDepth:15,allowFunction:!1,...Fe.CHANNEL_OPTIONS});this.socket.send(r)}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>this.send(r))}};V(cf,"WebsocketTransport");var m2=cf,{CHANNEL_OPTIONS:h2,CONFIG_TYPE:y2}=Fe,LH=ln;function b2({page:e,extraTransports:t=[]}){let r=[new c2({page:e}),...t];if(y2==="DEVELOPMENT"){let o=window.location.protocol==="http:"?"ws":"wss",{hostname:a,port:i}=window.location,{wsToken:s}=h2||{},l=`${o}://${a}:${i}/storybook-server-channel?token=${s}`;r.push(new m2({url:l,onError:V(()=>{},"onError"),page:e}))}let n=new ln({transports:r});return Ls.__prepare(n,e==="manager"?Ls.Environment.MANAGER:Ls.Environment.PREVIEW),n}V(b2,"createBrowserChannel");var g2=Object.defineProperty,je=(e,t)=>g2(e,"name",{value:t,configurable:!0});function Le(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var d,m;return(m=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&m!==void 0?m:0})):s},[]);if(o.length){var a=new RegExp(`
|
|
35
35
|
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(a,`
|
|
36
36
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,l){var c=i.match(/(?:^|\n)( *)$/),u=c?c[1]:"",d=s;typeof s=="string"&&s.includes(`
|
|
37
37
|
`)&&(d=String(s).split(`
|
|
38
38
|
`).map(function(m,p){return p===0?m:""+u+m}).join(`
|
|
39
|
-
`)),i+=d+n[l+1]}),i}je(Le,"dedent");function Qs({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}je(Qs,"parseErrorCode");var
|
|
39
|
+
`)),i+=d+n[l+1]}),i}je(Le,"dedent");function Qs({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}je(Qs,"parseErrorCode");var df=class pf extends Error{constructor(t){super(pf.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code}get fullErrorCode(){return Qs({code:this.code,category:this.category})}get name(){let t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:n,message:o}){let a;return t===!0?a=`https://storybook.js.org/error/${Qs({code:r,category:n})}`:typeof t=="string"?a=t:Array.isArray(t)&&(a=`
|
|
40
40
|
${t.map(i=>` - ${i}`).join(`
|
|
41
41
|
`)}`),`${o}${a!=null?`
|
|
42
42
|
|
|
43
43
|
More info: ${a}
|
|
44
|
-
`:""}`}};je(
|
|
44
|
+
`:""}`}};je(df,"StorybookError");var ke=df;var ff=class extends ke{constructor(t){super({category:"PREVIEW_API",code:1,message:Le`
|
|
45
45
|
Couldn't find story matching id '${t.storyId}' after HMR.
|
|
46
46
|
- Did you just rename a story?
|
|
47
47
|
- Did you remove it from your CSF file?
|
|
48
48
|
- Are you sure a story with the id '${t.storyId}' exists?
|
|
49
49
|
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
50
|
-
- Also check the browser console and terminal for potential error messages.`}),this.data=t}};je(
|
|
50
|
+
- Also check the browser console and terminal for potential error messages.`}),this.data=t}};je(ff,"MissingStoryAfterHmrError");var mf=ff,v2=class extends ke{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:Le`
|
|
51
51
|
We detected that you use an implicit action arg while ${t.phase} of your story.
|
|
52
52
|
${t.deprecated?`
|
|
53
53
|
This is deprecated and won't work in Storybook 8 anymore.
|
|
@@ -57,20 +57,20 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
57
57
|
...
|
|
58
58
|
args: {
|
|
59
59
|
${t.name}: fn()
|
|
60
|
-
}`}),this.data=t}};je(v2,"ImplicitActionsDuringRendering");var
|
|
60
|
+
}`}),this.data=t}};je(v2,"ImplicitActionsDuringRendering");var hf=class extends ke{constructor(){super({category:"PREVIEW_API",code:3,message:Le`
|
|
61
61
|
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
62
62
|
|
|
63
|
-
You probably meant to call \`await preview.extract()\` which does the above for you.`})}};je(
|
|
63
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`})}};je(hf,"CalledExtractOnStoreError");var yf=hf,bf=class extends ke{constructor(){super({category:"PREVIEW_API",code:4,message:Le`
|
|
64
64
|
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
65
65
|
|
|
66
|
-
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};je(
|
|
66
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};je(bf,"MissingRenderToCanvasError");var gf=bf,vf=class extends ke{constructor(t){super({category:"PREVIEW_API",code:5,message:Le`
|
|
67
67
|
Called \`Preview.${t.methodName}()\` before initialization.
|
|
68
68
|
|
|
69
69
|
The preview needs to load the story index before most methods can be called. If you want
|
|
70
70
|
to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
71
71
|
|
|
72
72
|
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
73
|
-
do the above.`}),this.data=t}};je(
|
|
73
|
+
do the above.`}),this.data=t}};je(vf,"CalledPreviewMethodBeforeInitializationError");var ut=vf,Ef=class extends ke{constructor(t){super({category:"PREVIEW_API",code:6,message:Le`
|
|
74
74
|
Error fetching \`/index.json\`:
|
|
75
75
|
|
|
76
76
|
${t.text}
|
|
@@ -79,21 +79,21 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
79
79
|
check the terminal for errors.
|
|
80
80
|
|
|
81
81
|
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
82
|
-
build.`}),this.data=t}};je(
|
|
82
|
+
build.`}),this.data=t}};je(Ef,"StoryIndexFetchError");var _f=Ef,Rf=class extends ke{constructor(t){super({category:"PREVIEW_API",code:7,message:Le`
|
|
83
83
|
Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF
|
|
84
84
|
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
85
85
|
|
|
86
86
|
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
87
|
-
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};je(
|
|
87
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};je(Rf,"MdxFileWithNoCsfReferencesError");var wf=Rf,Cf=class extends ke{constructor(){super({category:"PREVIEW_API",code:8,message:Le`
|
|
88
88
|
Couldn't find any stories in your Storybook.
|
|
89
89
|
|
|
90
90
|
- Please check your stories field of your main.js config: does it match correctly?
|
|
91
|
-
- Also check the browser console and terminal for error messages.`})}};je(
|
|
91
|
+
- Also check the browser console and terminal for error messages.`})}};je(Cf,"EmptyIndexError");var Sf=Cf,Af=class extends ke{constructor(t){super({category:"PREVIEW_API",code:9,message:Le`
|
|
92
92
|
Couldn't find story matching '${t.storySpecifier}'.
|
|
93
93
|
|
|
94
94
|
- Are you sure a story with that id exists?
|
|
95
95
|
- Please check your stories field of your main.js config.
|
|
96
|
-
- Also check the browser console and terminal for error messages.`}),this.data=t}};je(
|
|
96
|
+
- Also check the browser console and terminal for error messages.`}),this.data=t}};je(Af,"NoStoryMatchError");var Tf=Af,Pf=class extends ke{constructor(t){super({category:"PREVIEW_API",code:10,message:Le`
|
|
97
97
|
Couldn't find story matching id '${t.storyId}' after importing a CSF file.
|
|
98
98
|
|
|
99
99
|
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
@@ -101,11 +101,11 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
101
101
|
- You are using a custom story indexer that is misbehaving.
|
|
102
102
|
- You have a custom file loader that is removing or renaming exports.
|
|
103
103
|
|
|
104
|
-
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};je(
|
|
104
|
+
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};je(Pf,"MissingStoryFromCsfFileError");var Of=Pf,qf=class extends ke{constructor(){super({category:"PREVIEW_API",code:11,message:Le`
|
|
105
105
|
Cannot access the Story Store until the index is ready.
|
|
106
106
|
|
|
107
107
|
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
108
|
-
remove access to the store entirely`})}};je(
|
|
108
|
+
remove access to the store entirely`})}};je(qf,"StoryStoreAccessedBeforeInitializationError");var xf=qf,Mf=class extends ke{constructor(t){super({category:"PREVIEW_API",code:12,message:Le`
|
|
109
109
|
Incorrect use of mount in the play function.
|
|
110
110
|
|
|
111
111
|
To use mount in the play function, you must satisfy the following two requirements:
|
|
@@ -122,9 +122,9 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
122
122
|
More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered
|
|
123
123
|
|
|
124
124
|
Received the following play function:
|
|
125
|
-
${t.playFunction}`}),this.data=t}};je(
|
|
125
|
+
${t.playFunction}`}),this.data=t}};je(Mf,"MountMustBeDestructuredError");var da=Mf,Nf=class extends ke{constructor(t){super({category:"PREVIEW_API",code:14,message:Le`
|
|
126
126
|
No render function available for storyId '${t.id}'
|
|
127
|
-
`}),this.data=t}};je(
|
|
127
|
+
`}),this.data=t}};je(Nf,"NoRenderFunctionError");var jf=Nf,If=class extends ke{constructor(){super({category:"PREVIEW_API",code:15,message:Le`
|
|
128
128
|
No component is mounted in your story.
|
|
129
129
|
|
|
130
130
|
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
@@ -139,7 +139,7 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
Make sure to either remove it or call mount in your play function.
|
|
142
|
-
`})}};je(
|
|
142
|
+
`})}};je(If,"NoStoryMountedError");var Df=If,E2=class extends ke{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:Le`
|
|
143
143
|
You are importing avif images, but you don't have sharp installed.
|
|
144
144
|
|
|
145
145
|
You have to install sharp in order to use image optimization features in Next.js.
|
|
@@ -160,28 +160,28 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
160
160
|
- px, vh, vw, em, rem and %.
|
|
161
161
|
|
|
162
162
|
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
|
163
|
-
`}),this.data=t}};je(w2,"UnsupportedViewportDimensionError");var C2=Object.create,el=Object.defineProperty,S2=Object.getOwnPropertyDescriptor,A2=Object.getOwnPropertyNames,T2=Object.getPrototypeOf,P2=Object.prototype.hasOwnProperty,$e=(e,t)=>el(e,"name",{value:t,configurable:!0}),O2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),q2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of A2(t))!P2.call(e,o)&&o!==r&&el(e,o,{get:()=>t[o],enumerable:!(n=S2(t,o))||n.enumerable});return e},x2=(e,t,r)=>(r=e!=null?C2(T2(e)):{},q2(t||!e||!e.__esModule?el(r,"default",{value:e,enumerable:!0}):r,e)),M2=O2(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return $e(function i(s,l,c){var u,d,m,p=t.call(s),h=t.call(l);if(s===l)return!0;if(s==null||l==null)return!1;if(c.indexOf(s)>-1&&c.indexOf(l)>-1)return!0;if(c.push(s,l),p!=h||(u=n(s),d=n(l),u.length!=d.length||u.some(function(g){return!i(s[g],l[g],c)})))return!1;switch(p.slice(8,-1)){case"Symbol":return s.valueOf()==l.valueOf();case"Date":case"Number":return+s==+l||+s!=+s&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+l;case"Set":case"Map":u=s.entries(),d=l.entries();do if(!i((m=u.next()).value,d.next().value,c))return!1;while(!m.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),l=new Uint8Array(l);case"DataView":s=new Uint8Array(s.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=l.length)return!1;for(m=0;m<s.length;m++)if((m in s||m in l)&&(m in s!=m in l||!i(s[m],l[m],c)))return!1;return!0;case"Object":return i(r(s),r(l),c);default:return!1}},"n")(o,a,[])}})()});function Lf(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,o)=>`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}$e(Lf,"toStartCaseStr");var Df=x2(M2(),1),Bf=$e(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),N2=$e((e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(Bf([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,Df.isEqual)(t,n);if(typeof o<"u")return!(0,Df.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},"testValue"),kf=$e((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(Bf([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return N2(e.if,a)},"includeConditionalArg");function j2(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:n,...o}=e;return t=cn(jr([...n??[],o])),t},meta(n){return $f(n,this)}};return globalThis.globalProjectAnnotations=r.composed,r}$e(j2,"__definePreview");function I2(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Preview"}$e(I2,"isPreview");function D2(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}$e(D2,"isMeta");function $f(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r){return Uf(r,this)}}}$e($f,"defineMeta");function Uf(e,t){return{_tag:"Story",input:e,meta:t,get composed(){throw new Error("Not implemented")}}}$e(Uf,"defineStory");function Nr(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}$e(Nr,"isStory");var tl=$e(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),Ff=$e((e,t)=>{let r=tl(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),Hf=$e((e,t)=>`${Ff(e,"kind")}${t?`--${Ff(t,"name")}`:""}`,"toId"),Vf=$e(e=>Lf(e),"storyNameFromExport");function Zs(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}$e(Zs,"matches");function un(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Zs(e,t))&&(!r||!Zs(e,r))}$e(un,"isExportStory");var zf=$e((...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");var F2=Object.create,Rl=Object.defineProperty,L2=Object.getOwnPropertyDescriptor,B2=Object.getOwnPropertyNames,k2=Object.getPrototypeOf,$2=Object.prototype.hasOwnProperty,O=(e,t)=>Rl(e,"name",{value:t,configurable:!0}),pa=(e=>typeof Ee<"u"?Ee:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ee<"u"?Ee:t)[r]}):e)(function(e){if(typeof Ee<"u")return Ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of B2(t))!$2.call(e,o)&&o!==r&&Rl(e,o,{get:()=>t[o],enumerable:!(n=L2(t,o))||n.enumerable});return e},mn=(e,t,r)=>(r=e!=null?F2(k2(e)):{},U2(t||!e||!e.__esModule?Rl(r,"default",{value:e,enumerable:!0}):r,e)),im=Ye((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return O(function a(i,s,l){function c(m,p){if(!s[m]){if(!i[m]){var h=typeof pa=="function"&&pa;if(!p&&h)return h(m,!0);if(u)return u(m,!0);var g=new Error("Cannot find module '"+m+"'");throw g.code="MODULE_NOT_FOUND",g}var y=s[m]={exports:{}};i[m][0].call(y.exports,function(b){var v=i[m][1][b];return c(v||b)},y,y.exports,a,i,s,l)}return s[m].exports}O(c,"s");for(var u=typeof pa=="function"&&pa,d=0;d<l.length;d++)c(l[d]);return c},"e")({1:[function(a,i,s){i.exports=function(l){if(typeof Map!="function"||l){var c=a("./similar");return new c}else return new Map}},{"./similar":2}],2:[function(a,i,s){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}O(l,"Similar"),l.prototype.get=function(c){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,c))return this.lastItem.val;if(u=this.indexOf(c),u>=0)return this.lastItem=this.list[u],this.list[u].val},l.prototype.set=function(c,u){var d;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=u,this):(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],this.list[d].val=u,this):(this.lastItem={key:c,val:u},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(c){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),u=this.indexOf(c),u>=0)return this.size--,this.list.splice(u,1)[0]},l.prototype.has=function(c){var u;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(u=this.indexOf(c),u>=0?(this.lastItem=this.list[u],!0):!1)},l.prototype.forEach=function(c,u){var d;for(d=0;d<this.size;d++)c.call(u||this,this.list[d].val,this.list[d].key,this)},l.prototype.indexOf=function(c){var u;for(u=0;u<this.size;u++)if(this.isEqual(this.list[u].key,c))return u;return-1},l.prototype.isEqual=function(c,u){return c===u||c!==c&&u!==u},i.exports=l},{}],3:[function(a,i,s){var l=a("map-or-similar");i.exports=function(m){var p=new l(!1),h=[];return function(g){var y=O(function(){var b=p,v,C,S=arguments.length-1,A=Array(S+1),_=!0,E;if((y.numArgs||y.numArgs===0)&&y.numArgs!==S+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<S;E++){if(A[E]={cacheItem:b,arg:arguments[E]},b.has(arguments[E])){b=b.get(arguments[E]);continue}_=!1,v=new l(!1),b.set(arguments[E],v),b=v}return _&&(b.has(arguments[S])?C=b.get(arguments[S]):_=!1),_||(C=g.apply(null,arguments),b.set(arguments[S],C)),m>0&&(A[S]={cacheItem:b,arg:arguments[S]},_?c(h,A):h.push(A),h.length>m&&u(h.shift())),y.wasMemoized=_,y.numArgs=S+1,C},"memoizerific");return y.limit=m,y.wasMemoized=!1,y.cache=p,y.lru=h,y}};function c(m,p){var h=m.length,g=p.length,y,b,v;for(b=0;b<h;b++){for(y=!0,v=0;v<g;v++)if(!d(m[b][v].arg,p[v].arg)){y=!1;break}if(y)break}m.push(m.splice(b,1)[0])}O(c,"moveToMostRecentLru");function u(m){var p=m.length,h=m[p-1],g,y;for(h.cacheItem.delete(h.arg),y=p-2;y>=0&&(h=m[y],g=h.cacheItem.get(h.arg),!g||!g.size);y--)h.cacheItem.delete(h.arg)}O(u,"removeCachedResult");function d(m,p){return m===p||m!==m&&p!==p}O(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),sm=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let a=o.length;if(a===0)return"";let i="",s=0,l=0;e:for(;l<a;l++){let c=o.charCodeAt(l);for(;c<128;){if(r[c]!==1&&(s<l&&(i+=o.slice(s,l)),s=l+1,i+=t[c]),++l===a)break e;c=o.charCodeAt(l)}if(s<l&&(i+=o.slice(s,l)),c<2048){s=l+1,i+=t[192|c>>6]+t[128|c&63];continue}if(c<55296||c>=57344){s=l+1,i+=t[224|c>>12]+t[128|c>>6&63]+t[128|c&63];continue}if(++l,l>=a)throw new Error("URI malformed");let u=o.charCodeAt(l)&1023;s=l+1,c=65536+((c&1023)<<10|u),i+=t[240|c>>18]+t[128|c>>12&63]+t[128|c>>6&63]+t[128|c&63]}return s===0?o:s<a?i+o.slice(s):i}O(n,"encodeString")}),wl=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=sm(),r=O(a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=O(a=>a instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var o=O(a=>a,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}),lm=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=u;var t=wl(),r=sm();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}O(n,"isPrototypeKey");function o(d,m,p,h,g){if(n(m))return d;let y=d[m];return typeof y=="object"&&y!==null?y:!h&&(g||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[m]=[]:d[m]={}}O(o,"getDeepObject");var a=20,i="[]",s="[",l="]",c=".";function u(d,m,p=0,h,g){let{nestingSyntax:y=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:C=t.defaultOptions.nesting,delimiter:S=t.defaultOptions.delimiter,valueSerializer:A=t.defaultOptions.valueSerializer,shouldSerializeObject:_=t.defaultOptions.shouldSerializeObject}=m,E=typeof S=="number"?String.fromCharCode(S):S,R=g===!0&&b,P=y==="dot"||y==="js"&&!g;if(p>a)return"";let N="",B=!0,j=!1;for(let F in d){let T=d[F],M;h?(M=h,R?v==="bracket"&&(M+=i):P?(M+=c,M+=F):(M+=s,M+=F,M+=l)):M=F,B||(N+=E),typeof T=="object"&&T!==null&&!_(T)?(j=T.pop!==void 0,(C||b&&j)&&(N+=u(T,m,p+1,M,j))):(N+=(0,r.encodeString)(M),N+="=",N+=A(T,F)),B&&(B=!1)}return N}O(u,"stringifyObject")}),H2=Ye((e,t)=>{"use strict";var r=12,n=0,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(l){var c=l.indexOf("%");if(c===-1)return l;for(var u=l.length,d="",m=0,p=0,h=c,g=r;c>-1&&c<u;){var y=s(l[c+1],4),b=s(l[c+2],0),v=y|b,C=o[v];if(g=o[256+g+C],p=p<<6|v&o[364+C],g===r)d+=l.slice(m,h),d+=p<=65535?String.fromCharCode(p):String.fromCharCode(55232+(p>>10),56320+(p&1023)),p=0,m=c+3,c=h=l.indexOf("%",m);else{if(g===n)return null;if(c+=3,c<u&&l.charCodeAt(c)===37)continue;return null}}return d+l.slice(m)}O(a,"decodeURIComponent");var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function s(l,c){var u=i[l];return u===void 0?255:u<<c}O(s,"hexCodeToInt"),t.exports=a}),V2=Ye(e=>{"use strict";var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var r=lm(),n=wl(),o=t(H2()),a=O(d=>{let m=Number(d);return Number.isNaN(m)?d:m},"numberKeyDeserializer");e.numberKeyDeserializer=a;var i=O(d=>{let m=Number(d);return Number.isNaN(m)?d:m},"numberValueDeserializer");e.numberValueDeserializer=i;var s=/\+/g,l=O(function(){},"Empty");l.prototype=Object.create(null);function c(d,m,p,h,g){let y=d.substring(m,p);return h&&(y=y.replace(s," ")),g&&(y=(0,o.default)(y)||y),y}O(c,"computeKeySlice");function u(d,m){let{valueDeserializer:p=n.defaultOptions.valueDeserializer,keyDeserializer:h=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:g=n.defaultOptions.arrayRepeatSyntax,nesting:y=n.defaultOptions.nesting,arrayRepeat:b=n.defaultOptions.arrayRepeat,nestingSyntax:v=n.defaultOptions.nestingSyntax,delimiter:C=n.defaultOptions.delimiter}=m??{},S=typeof C=="string"?C.charCodeAt(0):C,A=v==="js",_=new l;if(typeof d!="string")return _;let E=d.length,R="",P=-1,N=-1,B=-1,j=_,F,T="",M="",D=!1,Y=!1,G=!1,J=!1,re=!1,te=!1,H=!1,U=0,z=-1,K=-1,W=-1;for(let ee=0;ee<E+1;ee++){if(U=ee!==E?d.charCodeAt(ee):S,U===S){if(H=N>P,H||(N=ee),B!==N-1&&(M=c(d,B+1,z>-1?z:N,G,D),T=h(M),F!==void 0&&(j=(0,r.getDeepObject)(j,F,T,A&&re,A&&te))),H||T!==""){H&&(R=d.slice(N+1,ee),J&&(R=R.replace(s," ")),Y&&(R=(0,o.default)(R)||R));let se=p(R,T);if(b){let ze=j[T];ze===void 0?z>-1?j[T]=[se]:j[T]=se:ze.pop?ze.push(se):j[T]=[ze,se]}else j[T]=se}R="",P=ee,N=ee,D=!1,Y=!1,G=!1,J=!1,re=!1,te=!1,z=-1,B=ee,j=_,F=void 0,T=""}else U===93?(b&&g==="bracket"&&W===91&&(z=K),y&&(v==="index"||A)&&N<=P&&(B!==K&&(M=c(d,B+1,ee,G,D),T=h(M),F!==void 0&&(j=(0,r.getDeepObject)(j,F,T,void 0,A)),F=T,G=!1,D=!1),B=ee,te=!0,re=!1)):U===46?y&&(v==="dot"||A)&&N<=P&&(B!==K&&(M=c(d,B+1,ee,G,D),T=h(M),F!==void 0&&(j=(0,r.getDeepObject)(j,F,T,A)),F=T,G=!1,D=!1),re=!0,te=!1,B=ee):U===91?y&&(v==="index"||A)&&N<=P&&(B!==K&&(M=c(d,B+1,ee,G,D),T=h(M),A&&F!==void 0&&(j=(0,r.getDeepObject)(j,F,T,A)),F=T,G=!1,D=!1,re=!1,te=!0),B=ee):U===61?N<=P?N=ee:Y=!0:U===43?N>P?J=!0:G=!0:U===37&&(N>P?Y=!0:D=!0);K=ee,W=U}return _}O(u,"parse")}),z2=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=lm();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}O(r,"stringify")}),Cl=Ye(e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(a,i,s,l){l===void 0&&(l=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:O(function(){return i[s]},"get")}),Object.defineProperty(a,l,c)}:function(a,i,s,l){l===void 0&&(l=s),a[l]=i[s]}),r=e&&e.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=V2();Object.defineProperty(e,"parse",{enumerable:!0,get:O(function(){return n.parse},"get")});var o=z2();Object.defineProperty(e,"stringify",{enumerable:!0,get:O(function(){return o.stringify},"get")}),r(wl(),e)}),um=Ye((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
164
|
-
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),G2=Ye((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),cm=Ye((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),Y2=Ye((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),W2=Ye(e=>{"use strict";var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(Y2()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}O(o,"decodeCodePoint"),e.default=o}),Gf=Ye(e=>{"use strict";var t=e&&e.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(um()),n=t(G2()),o=t(cm()),a=t(W2()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(u){var d=c(u);return function(m){return String(m).replace(i,d)}}O(s,"getStrictDecoder");var l=O(function(u,d){return u<d?1:-1},"sorter");e.decodeHTML=(function(){for(var u=Object.keys(n.default).sort(l),d=Object.keys(r.default).sort(l),m=0,p=0;m<d.length;m++)u[p]===d[m]?(d[m]+=";?",p++):d[m]+=";";var h=new RegExp("&(?:"+d.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=c(r.default);function y(b){return b.substr(-1)!==";"&&(b+=";"),g(b)}return O(y,"replacer"),function(b){return String(b).replace(h,y)}})();function c(u){return O(function(d){if(d.charAt(1)==="#"){var m=d.charAt(2);return m==="X"||m==="x"?a.default(parseInt(d.substr(3),16)):a.default(parseInt(d.substr(2),10))}return u[d.slice(1,-1)]||d},"replace")}O(c,"getReplacer")}),Yf=Ye(e=>{"use strict";var t=e&&e.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(cm()),n=l(r.default),o=c(n);e.encodeXML=b(n);var a=t(um()),i=l(a.default),s=c(i);e.encodeHTML=p(i,s),e.encodeNonAsciiHTML=b(i);function l(v){return Object.keys(v).sort().reduce(function(C,S){return C[v[S]]="&"+S+";",C},{})}O(l,"getInverseObj");function c(v){for(var C=[],S=[],A=0,_=Object.keys(v);A<_.length;A++){var E=_[A];E.length===1?C.push("\\"+E):S.push(E)}C.sort();for(var R=0;R<C.length-1;R++){for(var P=R;P<C.length-1&&C[P].charCodeAt(1)+1===C[P+1].charCodeAt(1);)P+=1;var N=1+P-R;N<3||C.splice(R,N,C[R]+"-"+C[P])}return S.unshift("["+C.join("")+"]"),new RegExp(S.join("|"),"g")}O(c,"getInverseReplacer");var u=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,d=String.prototype.codePointAt!=null?(function(v){return v.codePointAt(0)}):(function(v){return(v.charCodeAt(0)-55296)*1024+v.charCodeAt(1)-56320+65536});function m(v){return"&#x"+(v.length>1?d(v):v.charCodeAt(0)).toString(16).toUpperCase()+";"}O(m,"singleCharReplacer");function p(v,C){return function(S){return S.replace(C,function(A){return v[A]}).replace(u,m)}}O(p,"getInverse");var h=new RegExp(o.source+"|"+u.source,"g");function g(v){return v.replace(h,m)}O(g,"escape"),e.escape=g;function y(v){return v.replace(o,m)}O(y,"escapeUTF8"),e.escapeUTF8=y;function b(v){return function(C){return C.replace(h,function(S){return v[S]||m(S)})}}O(b,"getASCIIEncoder")}),K2=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Gf(),r=Yf();function n(l,c){return(!c||c<=0?t.decodeXML:t.decodeHTML)(l)}O(n,"decode"),e.decode=n;function o(l,c){return(!c||c<=0?t.decodeXML:t.decodeHTMLStrict)(l)}O(o,"decodeStrict"),e.decodeStrict=o;function a(l,c){return(!c||c<=0?r.encodeXML:r.encodeHTML)(l)}O(a,"encode"),e.encode=a;var i=Yf();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:O(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:O(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:O(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:O(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:O(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:O(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:O(function(){return i.encodeHTML},"get")});var s=Gf();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:O(function(){return s.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:O(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:O(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:O(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:O(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:O(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:O(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:O(function(){return s.decodeXML},"get")})}),X2=Ye((e,t)=>{"use strict";function r(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}O(r,"_classCallCheck");function n(T,M){for(var D=0;D<M.length;D++){var Y=M[D];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(T,Y.key,Y)}}O(n,"_defineProperties");function o(T,M,D){return M&&n(T.prototype,M),D&&n(T,D),T}O(o,"_createClass");function a(T,M){var D=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!D){if(Array.isArray(T)||(D=i(T))||M&&T&&typeof T.length=="number"){D&&(T=D);var Y=0,G=O(function(){},"F");return{s:G,n:O(function(){return Y>=T.length?{done:!0}:{done:!1,value:T[Y++]}},"n"),e:O(function(H){throw H},"e"),f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
165
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,re=!1,te;return{s:O(function(){D=D.call(T)},"s"),n:O(function(){var H=D.next();return J=H.done,H},"n"),e:O(function(H){re=!0,te=H},"e"),f:O(function(){try{!J&&D.return!=null&&D.return()}finally{if(re)throw te}},"f")}}O(a,"_createForOfIteratorHelper");function i(T,M){if(T){if(typeof T=="string")return s(T,M);var D=Object.prototype.toString.call(T).slice(8,-1);if(D==="Object"&&T.constructor&&(D=T.constructor.name),D==="Map"||D==="Set")return Array.from(T);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return s(T,M)}}O(i,"_unsupportedIterableToArray");function s(T,M){(M==null||M>T.length)&&(M=T.length);for(var D=0,Y=new Array(M);D<M;D++)Y[D]=T[D];return Y}O(s,"_arrayLikeToArray");var l=K2(),c={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:u()};function u(){var T={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return v(0,5).forEach(function(M){v(0,5).forEach(function(D){v(0,5).forEach(function(Y){return d(M,D,Y,T)})})}),v(0,23).forEach(function(M){var D=M+232,Y=m(M*10+8);T[D]="#"+Y+Y+Y}),T}O(u,"getDefaultColors");function d(T,M,D,Y){var G=16+T*36+M*6+D,J=T>0?T*40+55:0,re=M>0?M*40+55:0,te=D>0?D*40+55:0;Y[G]=p([J,re,te])}O(d,"setStyleColor");function m(T){for(var M=T.toString(16);M.length<2;)M="0"+M;return M}O(m,"toHexString");function p(T){var M=[],D=a(T),Y;try{for(D.s();!(Y=D.n()).done;){var G=Y.value;M.push(m(G))}}catch(J){D.e(J)}finally{D.f()}return"#"+M.join("")}O(p,"toColorHexString");function h(T,M,D,Y){var G;return M==="text"?G=A(D,Y):M==="display"?G=y(T,D,Y):M==="xterm256Foreground"?G=R(T,Y.colors[D]):M==="xterm256Background"?G=P(T,Y.colors[D]):M==="rgb"&&(G=g(T,D)),G}O(h,"generateOutput");function g(T,M){M=M.substring(2).slice(0,-1);var D=+M.substr(0,2),Y=M.substring(5).split(";"),G=Y.map(function(J){return("0"+Number(J).toString(16)).substr(-2)}).join("");return E(T,(D===38?"color:#":"background-color:#")+G)}O(g,"handleRgb");function y(T,M,D){M=parseInt(M,10);var Y={"-1":O(function(){return"<br/>"},"_"),0:O(function(){return T.length&&b(T)},"_"),1:O(function(){return _(T,"b")},"_"),3:O(function(){return _(T,"i")},"_"),4:O(function(){return _(T,"u")},"_"),8:O(function(){return E(T,"display:none")},"_"),9:O(function(){return _(T,"strike")},"_"),22:O(function(){return E(T,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:O(function(){return N(T,"i")},"_"),24:O(function(){return N(T,"u")},"_"),39:O(function(){return R(T,D.fg)},"_"),49:O(function(){return P(T,D.bg)},"_"),53:O(function(){return E(T,"text-decoration:overline")},"_")},G;return Y[M]?G=Y[M]():4<M&&M<7?G=_(T,"blink"):29<M&&M<38?G=R(T,D.colors[M-30]):39<M&&M<48?G=P(T,D.colors[M-40]):89<M&&M<98?G=R(T,D.colors[8+(M-90)]):99<M&&M<108&&(G=P(T,D.colors[8+(M-100)])),G}O(y,"handleDisplay");function b(T){var M=T.slice(0);return T.length=0,M.reverse().map(function(D){return"</"+D+">"}).join("")}O(b,"resetStyles");function v(T,M){for(var D=[],Y=T;Y<=M;Y++)D.push(Y);return D}O(v,"range");function C(T){return function(M){return(T===null||M.category!==T)&&T!=="all"}}O(C,"notCategory");function S(T){T=parseInt(T,10);var M=null;return T===0?M="all":T===1?M="bold":2<T&&T<5?M="underline":4<T&&T<7?M="blink":T===8?M="hide":T===9?M="strike":29<T&&T<38||T===39||89<T&&T<98?M="foreground-color":(39<T&&T<48||T===49||99<T&&T<108)&&(M="background-color"),M}O(S,"categoryForCode");function A(T,M){return M.escapeXML?l.encodeXML(T):T}O(A,"pushText");function _(T,M,D){return D||(D=""),T.push(M),"<".concat(M).concat(D?' style="'.concat(D,'"'):"",">")}O(_,"pushTag");function E(T,M){return _(T,"span",M)}O(E,"pushStyle");function R(T,M){return _(T,"span","color:"+M)}O(R,"pushForegroundColor");function P(T,M){return _(T,"span","background-color:"+M)}O(P,"pushBackgroundColor");function N(T,M){var D;if(T.slice(-1)[0]===M&&(D=T.pop()),D)return"</"+M+">"}O(N,"closeTag");function B(T,M,D){var Y=!1,G=3;function J(){return""}O(J,"remove");function re(fe,ye){return D("xterm256Foreground",ye),""}O(re,"removeXterm256Foreground");function te(fe,ye){return D("xterm256Background",ye),""}O(te,"removeXterm256Background");function H(fe){return M.newline?D("display",-1):D("text",fe),""}O(H,"newline");function U(fe,ye){Y=!0,ye.trim().length===0&&(ye="0"),ye=ye.trimRight(";").split(";");var qe=a(ye),lt;try{for(qe.s();!(lt=qe.n()).done;){var Kn=lt.value;D("display",Kn)}}catch(Xn){qe.e(Xn)}finally{qe.f()}return""}O(U,"ansiMess");function z(fe){return D("text",fe),""}O(z,"realText");function K(fe){return D("rgb",fe),""}O(K,"rgb");var W=[{pattern:/^\x08+/,sub:J},{pattern:/^\x1b\[[012]?K/,sub:J},{pattern:/^\x1b\[\(B/,sub:J},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:K},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:te},{pattern:/^\n/,sub:H},{pattern:/^\r+\n/,sub:H},{pattern:/^\r/,sub:H},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:U},{pattern:/^\x1b\[\d?J/,sub:J},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:J},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:J},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:z}];function ee(fe,ye){ye>G&&Y||(Y=!1,T=T.replace(fe.pattern,fe.sub))}O(ee,"process");var se=[],ze=T,L=ze.length;e:for(;L>0;){for(var X=0,Z=0,de=W.length;Z<de;X=++Z){var ue=W[X];if(ee(ue,X),T.length!==L){L=T.length;continue e}}if(T.length===L)break;se.push(0),L=T.length}return se}O(B,"tokenize");function j(T,M,D){return M!=="text"&&(T=T.filter(C(S(D))),T.push({token:M,data:D,category:S(D)})),T}O(j,"updateStickyStack");var F=(function(){function T(M){r(this,T),M=M||{},M.colors&&(M.colors=Object.assign({},c.colors,M.colors)),this.options=Object.assign({},c,M),this.stack=[],this.stickyStack=[]}return O(T,"Filter"),o(T,[{key:"toHtml",value:O(function(M){var D=this;M=typeof M=="string"?[M]:M;var Y=this.stack,G=this.options,J=[];return this.stickyStack.forEach(function(re){var te=h(Y,re.token,re.data,G);te&&J.push(te)}),B(M.join(""),G,function(re,te){var H=h(Y,re,te,G);H&&J.push(H),G.stream&&(D.stickyStack=j(D.stickyStack,re,te))}),Y.length&&J.push(b(Y)),J.join("")},"toHtml")}]),T})();t.exports=F}),Ue=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();function dm(){let e={setHandler:O(()=>{},"setHandler"),send:O(()=>{},"send")};return new ln({transport:e})}O(dm,"mockChannel");var pm=class{constructor(){this.getChannel=O(()=>{if(!this.channel){let t=dm();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=O(()=>this.promise,"ready"),this.hasChannel=O(()=>!!this.channel,"hasChannel"),this.setChannel=O(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};O(pm,"AddonStore");var J2=pm,rl="__STORYBOOK_ADDONS_PREVIEW";function fm(){return Ue[rl]||(Ue[rl]=new J2),Ue[rl]}O(fm,"getAddonsStore");var zt=fm();function Q2(e){return e}O(Q2,"definePreview");var mm=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=O(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),zt.getChannel().on(an,this.renderListener)}removeRenderListeners(){zt.getChannel().removeListener(an,this.renderListener)}};O(mm,"HooksContext");var hm=mm;function ul(e){let t=O((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let l=Ue.STORYBOOK_HOOKS_CONTEXT;Ue.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...r);if(Ue.STORYBOOK_HOOKS_CONTEXT=l,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=s,c},"hookified");return t.originalFn=e,t}O(ul,"hookify");var nl=0,Z2=25,eS=O(e=>(t,r)=>{let n=e(ul(t),r.map(o=>ul(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??(a.prevMountedDecorators=new Set),a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(nl=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),nl+=1,nl>Z2)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),tS=O((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Sl=O(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Al(){return Ue.STORYBOOK_HOOKS_CONTEXT||null}O(Al,"getHooksContextOrNull");function _a(){let e=Al();if(e==null)throw Sl();return e}O(_a,"getHooksContextOrThrow");function ym(e,t,r){let n=_a();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&le.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&le.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&le.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&le.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
163
|
+
`}),this.data=t}};je(w2,"UnsupportedViewportDimensionError");var C2=Object.create,el=Object.defineProperty,S2=Object.getOwnPropertyDescriptor,A2=Object.getOwnPropertyNames,T2=Object.getPrototypeOf,P2=Object.prototype.hasOwnProperty,$e=(e,t)=>el(e,"name",{value:t,configurable:!0}),O2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),q2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of A2(t))!P2.call(e,o)&&o!==r&&el(e,o,{get:()=>t[o],enumerable:!(n=S2(t,o))||n.enumerable});return e},x2=(e,t,r)=>(r=e!=null?C2(T2(e)):{},q2(t||!e||!e.__esModule?el(r,"default",{value:e,enumerable:!0}):r,e)),M2=O2(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return $e(function i(s,l,c){var u,d,m,p=t.call(s),h=t.call(l);if(s===l)return!0;if(s==null||l==null)return!1;if(c.indexOf(s)>-1&&c.indexOf(l)>-1)return!0;if(c.push(s,l),p!=h||(u=n(s),d=n(l),u.length!=d.length||u.some(function(g){return!i(s[g],l[g],c)})))return!1;switch(p.slice(8,-1)){case"Symbol":return s.valueOf()==l.valueOf();case"Date":case"Number":return+s==+l||+s!=+s&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+l;case"Set":case"Map":u=s.entries(),d=l.entries();do if(!i((m=u.next()).value,d.next().value,c))return!1;while(!m.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),l=new Uint8Array(l);case"DataView":s=new Uint8Array(s.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=l.length)return!1;for(m=0;m<s.length;m++)if((m in s||m in l)&&(m in s!=m in l||!i(s[m],l[m],c)))return!1;return!0;case"Object":return i(r(s),r(l),c);default:return!1}},"n")(o,a,[])}})()});function Bf(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,o)=>`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}$e(Bf,"toStartCaseStr");var Ff=x2(M2(),1),kf=$e(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),N2=$e((e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(kf([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,Ff.isEqual)(t,n);if(typeof o<"u")return!(0,Ff.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},"testValue"),$f=$e((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(kf([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return N2(e.if,a)},"includeConditionalArg");function j2(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:n,...o}=e;return t=cn(jr([...n??[],o])),t},meta(n){return Uf(n,this)}};return globalThis.globalProjectAnnotations=r.composed,r}$e(j2,"__definePreview");function I2(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Preview"}$e(I2,"isPreview");function D2(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}$e(D2,"isMeta");function Uf(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r){return Hf(r,this)}}}$e(Uf,"defineMeta");function Hf(e,t){return{_tag:"Story",input:e,meta:t,get composed(){throw new Error("Not implemented")}}}$e(Hf,"defineStory");function Nr(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}$e(Nr,"isStory");var tl=$e(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),Lf=$e((e,t)=>{let r=tl(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),Vf=$e((e,t)=>`${Lf(e,"kind")}${t?`--${Lf(t,"name")}`:""}`,"toId"),zf=$e(e=>Bf(e),"storyNameFromExport");function Zs(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}$e(Zs,"matches");function un(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Zs(e,t))&&(!r||!Zs(e,r))}$e(un,"isExportStory");var Gf=$e((...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");var F2=Object.create,Rl=Object.defineProperty,L2=Object.getOwnPropertyDescriptor,B2=Object.getOwnPropertyNames,k2=Object.getPrototypeOf,$2=Object.prototype.hasOwnProperty,O=(e,t)=>Rl(e,"name",{value:t,configurable:!0}),pa=(e=>typeof Ee<"u"?Ee:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ee<"u"?Ee:t)[r]}):e)(function(e){if(typeof Ee<"u")return Ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of B2(t))!$2.call(e,o)&&o!==r&&Rl(e,o,{get:()=>t[o],enumerable:!(n=L2(t,o))||n.enumerable});return e},mn=(e,t,r)=>(r=e!=null?F2(k2(e)):{},U2(t||!e||!e.__esModule?Rl(r,"default",{value:e,enumerable:!0}):r,e)),sm=Ye((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return O(function a(i,s,l){function c(m,p){if(!s[m]){if(!i[m]){var h=typeof pa=="function"&&pa;if(!p&&h)return h(m,!0);if(u)return u(m,!0);var g=new Error("Cannot find module '"+m+"'");throw g.code="MODULE_NOT_FOUND",g}var y=s[m]={exports:{}};i[m][0].call(y.exports,function(b){var v=i[m][1][b];return c(v||b)},y,y.exports,a,i,s,l)}return s[m].exports}O(c,"s");for(var u=typeof pa=="function"&&pa,d=0;d<l.length;d++)c(l[d]);return c},"e")({1:[function(a,i,s){i.exports=function(l){if(typeof Map!="function"||l){var c=a("./similar");return new c}else return new Map}},{"./similar":2}],2:[function(a,i,s){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}O(l,"Similar"),l.prototype.get=function(c){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,c))return this.lastItem.val;if(u=this.indexOf(c),u>=0)return this.lastItem=this.list[u],this.list[u].val},l.prototype.set=function(c,u){var d;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=u,this):(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],this.list[d].val=u,this):(this.lastItem={key:c,val:u},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(c){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),u=this.indexOf(c),u>=0)return this.size--,this.list.splice(u,1)[0]},l.prototype.has=function(c){var u;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(u=this.indexOf(c),u>=0?(this.lastItem=this.list[u],!0):!1)},l.prototype.forEach=function(c,u){var d;for(d=0;d<this.size;d++)c.call(u||this,this.list[d].val,this.list[d].key,this)},l.prototype.indexOf=function(c){var u;for(u=0;u<this.size;u++)if(this.isEqual(this.list[u].key,c))return u;return-1},l.prototype.isEqual=function(c,u){return c===u||c!==c&&u!==u},i.exports=l},{}],3:[function(a,i,s){var l=a("map-or-similar");i.exports=function(m){var p=new l(!1),h=[];return function(g){var y=O(function(){var b=p,v,C,S=arguments.length-1,A=Array(S+1),_=!0,E;if((y.numArgs||y.numArgs===0)&&y.numArgs!==S+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<S;E++){if(A[E]={cacheItem:b,arg:arguments[E]},b.has(arguments[E])){b=b.get(arguments[E]);continue}_=!1,v=new l(!1),b.set(arguments[E],v),b=v}return _&&(b.has(arguments[S])?C=b.get(arguments[S]):_=!1),_||(C=g.apply(null,arguments),b.set(arguments[S],C)),m>0&&(A[S]={cacheItem:b,arg:arguments[S]},_?c(h,A):h.push(A),h.length>m&&u(h.shift())),y.wasMemoized=_,y.numArgs=S+1,C},"memoizerific");return y.limit=m,y.wasMemoized=!1,y.cache=p,y.lru=h,y}};function c(m,p){var h=m.length,g=p.length,y,b,v;for(b=0;b<h;b++){for(y=!0,v=0;v<g;v++)if(!d(m[b][v].arg,p[v].arg)){y=!1;break}if(y)break}m.push(m.splice(b,1)[0])}O(c,"moveToMostRecentLru");function u(m){var p=m.length,h=m[p-1],g,y;for(h.cacheItem.delete(h.arg),y=p-2;y>=0&&(h=m[y],g=h.cacheItem.get(h.arg),!g||!g.size);y--)h.cacheItem.delete(h.arg)}O(u,"removeCachedResult");function d(m,p){return m===p||m!==m&&p!==p}O(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),lm=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let a=o.length;if(a===0)return"";let i="",s=0,l=0;e:for(;l<a;l++){let c=o.charCodeAt(l);for(;c<128;){if(r[c]!==1&&(s<l&&(i+=o.slice(s,l)),s=l+1,i+=t[c]),++l===a)break e;c=o.charCodeAt(l)}if(s<l&&(i+=o.slice(s,l)),c<2048){s=l+1,i+=t[192|c>>6]+t[128|c&63];continue}if(c<55296||c>=57344){s=l+1,i+=t[224|c>>12]+t[128|c>>6&63]+t[128|c&63];continue}if(++l,l>=a)throw new Error("URI malformed");let u=o.charCodeAt(l)&1023;s=l+1,c=65536+((c&1023)<<10|u),i+=t[240|c>>18]+t[128|c>>12&63]+t[128|c>>6&63]+t[128|c&63]}return s===0?o:s<a?i+o.slice(s):i}O(n,"encodeString")}),wl=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=lm(),r=O(a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=O(a=>a instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var o=O(a=>a,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}),um=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=u;var t=wl(),r=lm();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}O(n,"isPrototypeKey");function o(d,m,p,h,g){if(n(m))return d;let y=d[m];return typeof y=="object"&&y!==null?y:!h&&(g||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[m]=[]:d[m]={}}O(o,"getDeepObject");var a=20,i="[]",s="[",l="]",c=".";function u(d,m,p=0,h,g){let{nestingSyntax:y=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:C=t.defaultOptions.nesting,delimiter:S=t.defaultOptions.delimiter,valueSerializer:A=t.defaultOptions.valueSerializer,shouldSerializeObject:_=t.defaultOptions.shouldSerializeObject}=m,E=typeof S=="number"?String.fromCharCode(S):S,R=g===!0&&b,P=y==="dot"||y==="js"&&!g;if(p>a)return"";let N="",B=!0,j=!1;for(let F in d){let T=d[F],M;h?(M=h,R?v==="bracket"&&(M+=i):P?(M+=c,M+=F):(M+=s,M+=F,M+=l)):M=F,B||(N+=E),typeof T=="object"&&T!==null&&!_(T)?(j=T.pop!==void 0,(C||b&&j)&&(N+=u(T,m,p+1,M,j))):(N+=(0,r.encodeString)(M),N+="=",N+=A(T,F)),B&&(B=!1)}return N}O(u,"stringifyObject")}),H2=Ye((e,t)=>{"use strict";var r=12,n=0,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(l){var c=l.indexOf("%");if(c===-1)return l;for(var u=l.length,d="",m=0,p=0,h=c,g=r;c>-1&&c<u;){var y=s(l[c+1],4),b=s(l[c+2],0),v=y|b,C=o[v];if(g=o[256+g+C],p=p<<6|v&o[364+C],g===r)d+=l.slice(m,h),d+=p<=65535?String.fromCharCode(p):String.fromCharCode(55232+(p>>10),56320+(p&1023)),p=0,m=c+3,c=h=l.indexOf("%",m);else{if(g===n)return null;if(c+=3,c<u&&l.charCodeAt(c)===37)continue;return null}}return d+l.slice(m)}O(a,"decodeURIComponent");var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function s(l,c){var u=i[l];return u===void 0?255:u<<c}O(s,"hexCodeToInt"),t.exports=a}),V2=Ye(e=>{"use strict";var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var r=um(),n=wl(),o=t(H2()),a=O(d=>{let m=Number(d);return Number.isNaN(m)?d:m},"numberKeyDeserializer");e.numberKeyDeserializer=a;var i=O(d=>{let m=Number(d);return Number.isNaN(m)?d:m},"numberValueDeserializer");e.numberValueDeserializer=i;var s=/\+/g,l=O(function(){},"Empty");l.prototype=Object.create(null);function c(d,m,p,h,g){let y=d.substring(m,p);return h&&(y=y.replace(s," ")),g&&(y=(0,o.default)(y)||y),y}O(c,"computeKeySlice");function u(d,m){let{valueDeserializer:p=n.defaultOptions.valueDeserializer,keyDeserializer:h=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:g=n.defaultOptions.arrayRepeatSyntax,nesting:y=n.defaultOptions.nesting,arrayRepeat:b=n.defaultOptions.arrayRepeat,nestingSyntax:v=n.defaultOptions.nestingSyntax,delimiter:C=n.defaultOptions.delimiter}=m??{},S=typeof C=="string"?C.charCodeAt(0):C,A=v==="js",_=new l;if(typeof d!="string")return _;let E=d.length,R="",P=-1,N=-1,B=-1,j=_,F,T="",M="",D=!1,Y=!1,G=!1,J=!1,re=!1,te=!1,H=!1,U=0,z=-1,K=-1,W=-1;for(let ee=0;ee<E+1;ee++){if(U=ee!==E?d.charCodeAt(ee):S,U===S){if(H=N>P,H||(N=ee),B!==N-1&&(M=c(d,B+1,z>-1?z:N,G,D),T=h(M),F!==void 0&&(j=(0,r.getDeepObject)(j,F,T,A&&re,A&&te))),H||T!==""){H&&(R=d.slice(N+1,ee),J&&(R=R.replace(s," ")),Y&&(R=(0,o.default)(R)||R));let se=p(R,T);if(b){let ze=j[T];ze===void 0?z>-1?j[T]=[se]:j[T]=se:ze.pop?ze.push(se):j[T]=[ze,se]}else j[T]=se}R="",P=ee,N=ee,D=!1,Y=!1,G=!1,J=!1,re=!1,te=!1,z=-1,B=ee,j=_,F=void 0,T=""}else U===93?(b&&g==="bracket"&&W===91&&(z=K),y&&(v==="index"||A)&&N<=P&&(B!==K&&(M=c(d,B+1,ee,G,D),T=h(M),F!==void 0&&(j=(0,r.getDeepObject)(j,F,T,void 0,A)),F=T,G=!1,D=!1),B=ee,te=!0,re=!1)):U===46?y&&(v==="dot"||A)&&N<=P&&(B!==K&&(M=c(d,B+1,ee,G,D),T=h(M),F!==void 0&&(j=(0,r.getDeepObject)(j,F,T,A)),F=T,G=!1,D=!1),re=!0,te=!1,B=ee):U===91?y&&(v==="index"||A)&&N<=P&&(B!==K&&(M=c(d,B+1,ee,G,D),T=h(M),A&&F!==void 0&&(j=(0,r.getDeepObject)(j,F,T,A)),F=T,G=!1,D=!1,re=!1,te=!0),B=ee):U===61?N<=P?N=ee:Y=!0:U===43?N>P?J=!0:G=!0:U===37&&(N>P?Y=!0:D=!0);K=ee,W=U}return _}O(u,"parse")}),z2=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=um();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}O(r,"stringify")}),Cl=Ye(e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(a,i,s,l){l===void 0&&(l=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:O(function(){return i[s]},"get")}),Object.defineProperty(a,l,c)}:function(a,i,s,l){l===void 0&&(l=s),a[l]=i[s]}),r=e&&e.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=V2();Object.defineProperty(e,"parse",{enumerable:!0,get:O(function(){return n.parse},"get")});var o=z2();Object.defineProperty(e,"stringify",{enumerable:!0,get:O(function(){return o.stringify},"get")}),r(wl(),e)}),cm=Ye((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
164
|
+
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),G2=Ye((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),dm=Ye((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),Y2=Ye((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),W2=Ye(e=>{"use strict";var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(Y2()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}O(o,"decodeCodePoint"),e.default=o}),Yf=Ye(e=>{"use strict";var t=e&&e.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(cm()),n=t(G2()),o=t(dm()),a=t(W2()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(u){var d=c(u);return function(m){return String(m).replace(i,d)}}O(s,"getStrictDecoder");var l=O(function(u,d){return u<d?1:-1},"sorter");e.decodeHTML=(function(){for(var u=Object.keys(n.default).sort(l),d=Object.keys(r.default).sort(l),m=0,p=0;m<d.length;m++)u[p]===d[m]?(d[m]+=";?",p++):d[m]+=";";var h=new RegExp("&(?:"+d.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=c(r.default);function y(b){return b.substr(-1)!==";"&&(b+=";"),g(b)}return O(y,"replacer"),function(b){return String(b).replace(h,y)}})();function c(u){return O(function(d){if(d.charAt(1)==="#"){var m=d.charAt(2);return m==="X"||m==="x"?a.default(parseInt(d.substr(3),16)):a.default(parseInt(d.substr(2),10))}return u[d.slice(1,-1)]||d},"replace")}O(c,"getReplacer")}),Wf=Ye(e=>{"use strict";var t=e&&e.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(dm()),n=l(r.default),o=c(n);e.encodeXML=b(n);var a=t(cm()),i=l(a.default),s=c(i);e.encodeHTML=p(i,s),e.encodeNonAsciiHTML=b(i);function l(v){return Object.keys(v).sort().reduce(function(C,S){return C[v[S]]="&"+S+";",C},{})}O(l,"getInverseObj");function c(v){for(var C=[],S=[],A=0,_=Object.keys(v);A<_.length;A++){var E=_[A];E.length===1?C.push("\\"+E):S.push(E)}C.sort();for(var R=0;R<C.length-1;R++){for(var P=R;P<C.length-1&&C[P].charCodeAt(1)+1===C[P+1].charCodeAt(1);)P+=1;var N=1+P-R;N<3||C.splice(R,N,C[R]+"-"+C[P])}return S.unshift("["+C.join("")+"]"),new RegExp(S.join("|"),"g")}O(c,"getInverseReplacer");var u=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,d=String.prototype.codePointAt!=null?(function(v){return v.codePointAt(0)}):(function(v){return(v.charCodeAt(0)-55296)*1024+v.charCodeAt(1)-56320+65536});function m(v){return"&#x"+(v.length>1?d(v):v.charCodeAt(0)).toString(16).toUpperCase()+";"}O(m,"singleCharReplacer");function p(v,C){return function(S){return S.replace(C,function(A){return v[A]}).replace(u,m)}}O(p,"getInverse");var h=new RegExp(o.source+"|"+u.source,"g");function g(v){return v.replace(h,m)}O(g,"escape"),e.escape=g;function y(v){return v.replace(o,m)}O(y,"escapeUTF8"),e.escapeUTF8=y;function b(v){return function(C){return C.replace(h,function(S){return v[S]||m(S)})}}O(b,"getASCIIEncoder")}),K2=Ye(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Yf(),r=Wf();function n(l,c){return(!c||c<=0?t.decodeXML:t.decodeHTML)(l)}O(n,"decode"),e.decode=n;function o(l,c){return(!c||c<=0?t.decodeXML:t.decodeHTMLStrict)(l)}O(o,"decodeStrict"),e.decodeStrict=o;function a(l,c){return(!c||c<=0?r.encodeXML:r.encodeHTML)(l)}O(a,"encode"),e.encode=a;var i=Wf();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:O(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:O(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:O(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:O(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:O(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:O(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:O(function(){return i.encodeHTML},"get")});var s=Yf();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:O(function(){return s.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:O(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:O(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:O(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:O(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:O(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:O(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:O(function(){return s.decodeXML},"get")})}),X2=Ye((e,t)=>{"use strict";function r(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}O(r,"_classCallCheck");function n(T,M){for(var D=0;D<M.length;D++){var Y=M[D];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(T,Y.key,Y)}}O(n,"_defineProperties");function o(T,M,D){return M&&n(T.prototype,M),D&&n(T,D),T}O(o,"_createClass");function a(T,M){var D=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!D){if(Array.isArray(T)||(D=i(T))||M&&T&&typeof T.length=="number"){D&&(T=D);var Y=0,G=O(function(){},"F");return{s:G,n:O(function(){return Y>=T.length?{done:!0}:{done:!1,value:T[Y++]}},"n"),e:O(function(H){throw H},"e"),f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
165
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,re=!1,te;return{s:O(function(){D=D.call(T)},"s"),n:O(function(){var H=D.next();return J=H.done,H},"n"),e:O(function(H){re=!0,te=H},"e"),f:O(function(){try{!J&&D.return!=null&&D.return()}finally{if(re)throw te}},"f")}}O(a,"_createForOfIteratorHelper");function i(T,M){if(T){if(typeof T=="string")return s(T,M);var D=Object.prototype.toString.call(T).slice(8,-1);if(D==="Object"&&T.constructor&&(D=T.constructor.name),D==="Map"||D==="Set")return Array.from(T);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return s(T,M)}}O(i,"_unsupportedIterableToArray");function s(T,M){(M==null||M>T.length)&&(M=T.length);for(var D=0,Y=new Array(M);D<M;D++)Y[D]=T[D];return Y}O(s,"_arrayLikeToArray");var l=K2(),c={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:u()};function u(){var T={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return v(0,5).forEach(function(M){v(0,5).forEach(function(D){v(0,5).forEach(function(Y){return d(M,D,Y,T)})})}),v(0,23).forEach(function(M){var D=M+232,Y=m(M*10+8);T[D]="#"+Y+Y+Y}),T}O(u,"getDefaultColors");function d(T,M,D,Y){var G=16+T*36+M*6+D,J=T>0?T*40+55:0,re=M>0?M*40+55:0,te=D>0?D*40+55:0;Y[G]=p([J,re,te])}O(d,"setStyleColor");function m(T){for(var M=T.toString(16);M.length<2;)M="0"+M;return M}O(m,"toHexString");function p(T){var M=[],D=a(T),Y;try{for(D.s();!(Y=D.n()).done;){var G=Y.value;M.push(m(G))}}catch(J){D.e(J)}finally{D.f()}return"#"+M.join("")}O(p,"toColorHexString");function h(T,M,D,Y){var G;return M==="text"?G=A(D,Y):M==="display"?G=y(T,D,Y):M==="xterm256Foreground"?G=R(T,Y.colors[D]):M==="xterm256Background"?G=P(T,Y.colors[D]):M==="rgb"&&(G=g(T,D)),G}O(h,"generateOutput");function g(T,M){M=M.substring(2).slice(0,-1);var D=+M.substr(0,2),Y=M.substring(5).split(";"),G=Y.map(function(J){return("0"+Number(J).toString(16)).substr(-2)}).join("");return E(T,(D===38?"color:#":"background-color:#")+G)}O(g,"handleRgb");function y(T,M,D){M=parseInt(M,10);var Y={"-1":O(function(){return"<br/>"},"_"),0:O(function(){return T.length&&b(T)},"_"),1:O(function(){return _(T,"b")},"_"),3:O(function(){return _(T,"i")},"_"),4:O(function(){return _(T,"u")},"_"),8:O(function(){return E(T,"display:none")},"_"),9:O(function(){return _(T,"strike")},"_"),22:O(function(){return E(T,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:O(function(){return N(T,"i")},"_"),24:O(function(){return N(T,"u")},"_"),39:O(function(){return R(T,D.fg)},"_"),49:O(function(){return P(T,D.bg)},"_"),53:O(function(){return E(T,"text-decoration:overline")},"_")},G;return Y[M]?G=Y[M]():4<M&&M<7?G=_(T,"blink"):29<M&&M<38?G=R(T,D.colors[M-30]):39<M&&M<48?G=P(T,D.colors[M-40]):89<M&&M<98?G=R(T,D.colors[8+(M-90)]):99<M&&M<108&&(G=P(T,D.colors[8+(M-100)])),G}O(y,"handleDisplay");function b(T){var M=T.slice(0);return T.length=0,M.reverse().map(function(D){return"</"+D+">"}).join("")}O(b,"resetStyles");function v(T,M){for(var D=[],Y=T;Y<=M;Y++)D.push(Y);return D}O(v,"range");function C(T){return function(M){return(T===null||M.category!==T)&&T!=="all"}}O(C,"notCategory");function S(T){T=parseInt(T,10);var M=null;return T===0?M="all":T===1?M="bold":2<T&&T<5?M="underline":4<T&&T<7?M="blink":T===8?M="hide":T===9?M="strike":29<T&&T<38||T===39||89<T&&T<98?M="foreground-color":(39<T&&T<48||T===49||99<T&&T<108)&&(M="background-color"),M}O(S,"categoryForCode");function A(T,M){return M.escapeXML?l.encodeXML(T):T}O(A,"pushText");function _(T,M,D){return D||(D=""),T.push(M),"<".concat(M).concat(D?' style="'.concat(D,'"'):"",">")}O(_,"pushTag");function E(T,M){return _(T,"span",M)}O(E,"pushStyle");function R(T,M){return _(T,"span","color:"+M)}O(R,"pushForegroundColor");function P(T,M){return _(T,"span","background-color:"+M)}O(P,"pushBackgroundColor");function N(T,M){var D;if(T.slice(-1)[0]===M&&(D=T.pop()),D)return"</"+M+">"}O(N,"closeTag");function B(T,M,D){var Y=!1,G=3;function J(){return""}O(J,"remove");function re(fe,ye){return D("xterm256Foreground",ye),""}O(re,"removeXterm256Foreground");function te(fe,ye){return D("xterm256Background",ye),""}O(te,"removeXterm256Background");function H(fe){return M.newline?D("display",-1):D("text",fe),""}O(H,"newline");function U(fe,ye){Y=!0,ye.trim().length===0&&(ye="0"),ye=ye.trimRight(";").split(";");var qe=a(ye),lt;try{for(qe.s();!(lt=qe.n()).done;){var Kn=lt.value;D("display",Kn)}}catch(Xn){qe.e(Xn)}finally{qe.f()}return""}O(U,"ansiMess");function z(fe){return D("text",fe),""}O(z,"realText");function K(fe){return D("rgb",fe),""}O(K,"rgb");var W=[{pattern:/^\x08+/,sub:J},{pattern:/^\x1b\[[012]?K/,sub:J},{pattern:/^\x1b\[\(B/,sub:J},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:K},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:te},{pattern:/^\n/,sub:H},{pattern:/^\r+\n/,sub:H},{pattern:/^\r/,sub:H},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:U},{pattern:/^\x1b\[\d?J/,sub:J},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:J},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:J},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:z}];function ee(fe,ye){ye>G&&Y||(Y=!1,T=T.replace(fe.pattern,fe.sub))}O(ee,"process");var se=[],ze=T,L=ze.length;e:for(;L>0;){for(var X=0,Z=0,de=W.length;Z<de;X=++Z){var ue=W[X];if(ee(ue,X),T.length!==L){L=T.length;continue e}}if(T.length===L)break;se.push(0),L=T.length}return se}O(B,"tokenize");function j(T,M,D){return M!=="text"&&(T=T.filter(C(S(D))),T.push({token:M,data:D,category:S(D)})),T}O(j,"updateStickyStack");var F=(function(){function T(M){r(this,T),M=M||{},M.colors&&(M.colors=Object.assign({},c.colors,M.colors)),this.options=Object.assign({},c,M),this.stack=[],this.stickyStack=[]}return O(T,"Filter"),o(T,[{key:"toHtml",value:O(function(M){var D=this;M=typeof M=="string"?[M]:M;var Y=this.stack,G=this.options,J=[];return this.stickyStack.forEach(function(re){var te=h(Y,re.token,re.data,G);te&&J.push(te)}),B(M.join(""),G,function(re,te){var H=h(Y,re,te,G);H&&J.push(H),G.stream&&(D.stickyStack=j(D.stickyStack,re,te))}),Y.length&&J.push(b(Y)),J.join("")},"toHtml")}]),T})();t.exports=F}),Ue=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();function pm(){let e={setHandler:O(()=>{},"setHandler"),send:O(()=>{},"send")};return new ln({transport:e})}O(pm,"mockChannel");var fm=class{constructor(){this.getChannel=O(()=>{if(!this.channel){let t=pm();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=O(()=>this.promise,"ready"),this.hasChannel=O(()=>!!this.channel,"hasChannel"),this.setChannel=O(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};O(fm,"AddonStore");var J2=fm,rl="__STORYBOOK_ADDONS_PREVIEW";function mm(){return Ue[rl]||(Ue[rl]=new J2),Ue[rl]}O(mm,"getAddonsStore");var zt=mm();function Q2(e){return e}O(Q2,"definePreview");var hm=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=O(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),zt.getChannel().on(an,this.renderListener)}removeRenderListeners(){zt.getChannel().removeListener(an,this.renderListener)}};O(hm,"HooksContext");var ym=hm;function ul(e){let t=O((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let l=Ue.STORYBOOK_HOOKS_CONTEXT;Ue.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...r);if(Ue.STORYBOOK_HOOKS_CONTEXT=l,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=s,c},"hookified");return t.originalFn=e,t}O(ul,"hookify");var nl=0,Z2=25,eS=O(e=>(t,r)=>{let n=e(ul(t),r.map(o=>ul(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??(a.prevMountedDecorators=new Set),a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(nl=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),nl+=1,nl>Z2)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),tS=O((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Sl=O(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Al(){return Ue.STORYBOOK_HOOKS_CONTEXT||null}O(Al,"getHooksContextOrNull");function _a(){let e=Al();if(e==null)throw Sl();return e}O(_a,"getHooksContextOrThrow");function bm(e,t,r){let n=_a();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&le.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&le.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&le.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&le.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
166
166
|
Previous: ${o.deps}
|
|
167
|
-
Incoming: ${r}`),(r==null||o.deps==null||!tS(r,o.deps))&&(t(o),o.deps=r),o}throw Sl()}O(
|
|
167
|
+
Incoming: ${r}`),(r==null||o.deps==null||!tS(r,o.deps))&&(t(o),o.deps=r),o}throw Sl()}O(bm,"useHook");function lo(e,t,r){let{memoizedState:n}=bm(e,o=>{o.memoizedState=t()},r);return n}O(lo,"useMemoLike");function rS(e,t){return lo("useMemo",e,t)}O(rS,"useMemo");function so(e,t){return lo("useCallback",()=>e,t)}O(so,"useCallback");function Tl(e,t){return lo(e,()=>({current:t}),[])}O(Tl,"useRefLike");function nS(e){return Tl("useRef",e)}O(nS,"useRef");function gm(){let e=Al();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{zt.getChannel().emit(Qn)}catch{le.warn("State updates of Storybook preview hooks work only in browser")}}O(gm,"triggerUpdate");function Pl(e,t){let r=Tl(e,typeof t=="function"?t():t),n=O(o=>{r.current=typeof o=="function"?o(r.current):o,gm()},"setState");return[r.current,n]}O(Pl,"useStateLike");function oS(e){return Pl("useState",e)}O(oS,"useState");function aS(e,t,r){let n=r!=null?()=>r(t):t,[o,a]=Pl("useReducer",n);return[o,O(i=>a(s=>e(s,i)),"dispatch")]}O(aS,"useReducer");function vm(e,t){let r=_a(),n=lo("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}O(vm,"useEffect");function iS(e,t=[]){let r=zt.getChannel();return vm(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),so(r.emit.bind(r),[r])}O(iS,"useChannel");function Ra(){let{currentContext:e}=_a();if(e==null)throw Sl();return e}O(Ra,"useStoryContext");function sS(e,t){let{parameters:r}=Ra();if(e)return r[e]??t}O(sS,"useParameter");function lS(){let e=zt.getChannel(),{id:t,args:r}=Ra(),n=so(a=>e.emit(ro,{storyId:t,updatedArgs:a}),[e,t]),o=so(a=>e.emit(Zn,{storyId:t,argNames:a}),[e,t]);return[r,n,o]}O(lS,"useArgs");function uS(){let e=zt.getChannel(),{globals:t}=Ra(),r=so(n=>e.emit(to,{globals:n}),[e]);return[t,r]}O(uS,"useGlobals");function Ge(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var d,m;return(m=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&m!==void 0?m:0})):s},[]);if(o.length){var a=new RegExp(`
|
|
168
168
|
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(a,`
|
|
169
169
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,l){var c=i.match(/(?:^|\n)( *)$/),u=c?c[1]:"",d=s;typeof s=="string"&&s.includes(`
|
|
170
170
|
`)&&(d=String(s).split(`
|
|
171
171
|
`).map(function(m,p){return p===0?m:""+u+m}).join(`
|
|
172
|
-
`)),i+=d+n[l+1]}),i}O(Ge,"dedent");var cS=Ge,
|
|
172
|
+
`)),i+=d+n[l+1]}),i}O(Ge,"dedent");var cS=Ge,Kf=new Map,dS="UNIVERSAL_STORE:",bt={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},ur=class oe{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=O(()=>(this.debug("getState",{state:this.state}),this.state),"getState"),this.subscribe=O((n,o)=>{let a=typeof n=="function",i=a?"*":n,s=a?n:o;if(this.debug("subscribe",{eventType:i,listener:s}),!s)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(s),()=>{this.debug("unsubscribe",{eventType:i,listener:s}),this.listeners.has(i)&&(this.listeners.get(i).delete(s),this.listeners.get(i)?.size===0&&this.listeners.delete(i))}},"subscribe"),this.send=O(n=>{if(this.debug("send",{event:n}),this.status!==oe.Status.READY)throw new TypeError(Ge`Cannot send event before store is ready. You can get the current status with store.status,
|
|
173
173
|
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
174
174
|
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},"send"),this.debugging=t.debug??!1,!oe.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(oe.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?oe.ActorType.LEADER:oe.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${dS}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===oe.ActorType.LEADER)this.syncing={state:bt.RESOLVED,promise:Promise.resolve()};else{let n,o,a=new Promise((i,s)=>{n=O(()=>{this.syncing.state===bt.PENDING&&(this.syncing.state=bt.RESOLVED,i())},"syncingResolve"),o=O(l=>{this.syncing.state===bt.PENDING&&(this.syncing.state=bt.REJECTED,s(l))},"syncingReject")});this.syncing={state:bt.PENDING,promise:a,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??oe.preparation.channel,this.environment=r?.environment??oe.preparation.environment,this.channel&&this.environment?this.prepareThis({channel:this.channel,environment:this.environment}):oe.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,a)=>{t=O(i=>{o(i)},"resolveRef"),r=O((...i)=>{a(i)},"rejectRef")});oe.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??oe.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return oe.Status.UNPREPARED;switch(this.syncing?.state){case bt.PENDING:case void 0:return oe.Status.SYNCING;case bt.REJECTED:return oe.Status.ERROR;case bt.RESOLVED:default:return oe.Status.READY}}untilReady(){return Promise.all([oe.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Ge`[UniversalStore]
|
|
175
|
-
create`,{options:t});let r=
|
|
176
|
-
You should reuse the existing instance instead of trying to create a new one.`),r;oe.isInternalConstructing=!0;let n=new oe(t);return
|
|
175
|
+
create`,{options:t});let r=Kf.get(t.id);if(r)return console.warn(Ge`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
176
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;oe.isInternalConstructing=!0;let n=new oe(t);return Kf.set(t.id,n),n}static __prepare(t,r){oe.preparation.channel=t,oe.preparation.environment=r,oe.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==oe.Status.READY)throw new TypeError(Ge`Cannot set state before store is ready. You can get the current status with store.status,
|
|
177
177
|
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
178
178
|
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:oe.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(oe.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===oe.ActorType.LEADER?this.emitToChannel({type:oe.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:oe.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:oe.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(a=>a(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===bt.PENDING&&r.type!==oe.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===oe.ActorType.LEADER){let o=!0;switch(r.type){case oe.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let a={type:oe.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:a}),this.emitToChannel(a,{actor:this.actor});break;case oe.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=bt.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Ge`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
179
179
|
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
180
180
|
Leaders detected:
|
|
181
181
|
this: ${JSON.stringify(this.actor,null,2)}
|
|
182
182
|
other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===oe.ActorType.FOLLOWER)switch(r.type){case oe.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==bt.PENDING)break;this.syncing.resolve?.();let o={type:oe.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}switch(r.type){case oe.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Ge`[UniversalStore::${this.id}::${this.environment??oe.Environment.UNKNOWN}]
|
|
183
|
-
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){oe.preparation.reject(new Error("reset")),oe.setupPreparationPromise(),oe.isInternalConstructing=!1}};O(ur,"UniversalStore"),ur.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},ur.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},ur.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},ur.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},ur.isInternalConstructing=!1,ur.setupPreparationPromise();var fa=ur;function
|
|
184
|
-
Please provide testUtils as the second argument when creating the store.`);let t=O(r=>{try{r.value()}catch{}},"callReturnedUnsubscribeFn");this.subscribe.mock?.results.forEach(t),this.onStateChange.mock?.results.forEach(t)}};O(DS,"MockUniversalStore");var al=mn(
|
|
183
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){oe.preparation.reject(new Error("reset")),oe.setupPreparationPromise(),oe.isInternalConstructing=!1}};O(ur,"UniversalStore"),ur.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},ur.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},ur.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},ur.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},ur.isInternalConstructing=!1,ur.setupPreparationPromise();var fa=ur;function Em(e,t){let r={},n=Object.entries(e);for(let o=0;o<n.length;o++){let[a,i]=n[o];t(i,a)||(r[a]=i)}return r}O(Em,"omitBy");function _m(e,t){let r={};for(let n=0;n<t.length;n++){let o=t[n];Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}return r}O(_m,"pick");function Rm(e,t){let r={},n=Object.entries(e);for(let o=0;o<n.length;o++){let[a,i]=n[o];t(i,a)&&(r[a]=i)}return r}O(Rm,"pickBy");function Ct(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}O(Ct,"isPlainObject");function Fr(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];r[a]=t(i,a,e)}return r}O(Fr,"mapValues");var pS="[object RegExp]",fS="[object String]",mS="[object Number]",hS="[object Boolean]",Xf="[object Arguments]",yS="[object Symbol]",bS="[object Date]",gS="[object Map]",vS="[object Set]",ES="[object Array]",_S="[object Function]",RS="[object ArrayBuffer]",ol="[object Object]",wS="[object Error]",CS="[object DataView]",SS="[object Uint8Array]",AS="[object Uint8ClampedArray]",TS="[object Uint16Array]",PS="[object Uint32Array]",OS="[object BigUint64Array]",qS="[object Int8Array]",xS="[object Int16Array]",MS="[object Int32Array]",NS="[object BigInt64Array]",jS="[object Float32Array]",IS="[object Float64Array]";function cl(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}O(cl,"getSymbols");function dl(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}O(dl,"getTag");function wm(e,t){if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return jt(e,t)}return jt(e,t)}O(wm,"isEqual");function jt(e,t,r){if(Object.is(e,t))return!0;let n=dl(e),o=dl(t);if(n===Xf&&(n=ol),o===Xf&&(o=ol),n!==o)return!1;switch(n){case fS:return e.toString()===t.toString();case mS:{let s=e.valueOf(),l=t.valueOf();return s===l||Number.isNaN(s)&&Number.isNaN(l)}case hS:case bS:case yS:return Object.is(e.valueOf(),t.valueOf());case pS:return e.source===t.source&&e.flags===t.flags;case _S:return e===t}r=r??new Map;let a=r.get(e),i=r.get(t);if(a!=null&&i!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(n){case gS:{if(e.size!==t.size)return!1;for(let[s,l]of e.entries())if(!t.has(s)||!jt(l,t.get(s),r))return!1;return!0}case vS:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),l=Array.from(t.values());for(let c=0;c<s.length;c++){let u=s[c],d=l.findIndex(m=>jt(u,m,r));if(d===-1)return!1;l.splice(d,1)}return!0}case ES:case SS:case AS:case TS:case PS:case OS:case qS:case xS:case MS:case NS:case jS:case IS:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!jt(e[s],t[s],r))return!1;return!0}case RS:return e.byteLength!==t.byteLength?!1:jt(new Uint8Array(e),new Uint8Array(t),r);case CS:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:jt(e.buffer,t.buffer,r);case wS:return e.name===t.name&&e.message===t.message;case ol:{if(!(jt(e.constructor,t.constructor,r)||Ct(e)&&Ct(t)))return!1;let s=[...Object.keys(e),...cl(e)],l=[...Object.keys(t),...cl(t)];if(s.length!==l.length)return!1;for(let c=0;c<s.length;c++){let u=s[c],d=e[u];if(!Object.prototype.hasOwnProperty.call(t,u))return!1;let m=t[u];if(!jt(d,m,r))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}O(jt,"areObjectsEqual");var DS=class Cm extends fa{constructor(t,r){fa.isInternalConstructing=!0,super({...t,leader:!0},{channel:new ln({}),environment:fa.Environment.MOCK}),fa.isInternalConstructing=!1,typeof r?.fn=="function"&&(this.testUtils=r,this.getState=r.fn(this.getState),this.setState=r.fn(this.setState),this.subscribe=r.fn(this.subscribe),this.onStateChange=r.fn(this.onStateChange),this.send=r.fn(this.send))}static create(t,r){return new Cm(t,r)}unsubscribeAll(){if(!this.testUtils)throw new Error(cS`Cannot call unsubscribeAll on a store that does not have testUtils.
|
|
184
|
+
Please provide testUtils as the second argument when creating the store.`);let t=O(r=>{try{r.value()}catch{}},"callReturnedUnsubscribeFn");this.subscribe.mock?.results.forEach(t),this.onStateChange.mock?.results.forEach(t)}};O(DS,"MockUniversalStore");var al=mn(sm(),1),dn=Symbol("incompatible"),pl=O((e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?dn:e.reduce((n,o,a)=>{let i=pl(o,{type:r.value});return i!==dn&&(n[a]=i),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?dn:Object.entries(e).reduce((n,[o,a])=>{let i=pl(a,{type:r.value[o]});return i===dn?n:Object.assign(n,{[o]:i})},{});default:return dn}},"map"),FS=O((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let a=pl(o,t[n]);return a===dn?r:Object.assign(r,{[n]:a})},{}),"mapArgsToTypes"),fl=O((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=fl(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!Ct(e)||!Ct(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=fl(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),LS=O((e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function a(){return n in e&&(r[n]=e[n]),r}if(O(a,"allowArg"),!o)return a();if(!Array.isArray(o))return we.error(Ge`
|
|
185
185
|
Invalid argType: '${n}.options' should be an array.
|
|
186
186
|
|
|
187
187
|
More info: https://storybook.js.org/docs/api/arg-types
|
|
@@ -189,24 +189,24 @@ Incoming: ${r}`),(r==null||o.deps==null||!tS(r,o.deps))&&(t(o),o.deps=r),o}throw
|
|
|
189
189
|
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
190
190
|
|
|
191
191
|
More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
192
|
-
`),a();let i=Array.isArray(e[n]),s=i&&e[n].findIndex(d=>!o.includes(d)),l=i&&s===-1;if(e[n]===void 0||o.includes(e[n])||l)return a();let c=i?`${n}[${s}]`:n,u=o.map(d=>typeof d=="string"?`'${d}'`:String(d)).join(", ");return we.warn(`Received illegal value for '${c}'. Supported options: ${u}`),r},{}),"validateOptions"),ao=Symbol("Deeply equal"),ba=O((e,t)=>{if(typeof e!=typeof t)return t;if(
|
|
192
|
+
`),a();let i=Array.isArray(e[n]),s=i&&e[n].findIndex(d=>!o.includes(d)),l=i&&s===-1;if(e[n]===void 0||o.includes(e[n])||l)return a();let c=i?`${n}[${s}]`:n,u=o.map(d=>typeof d=="string"?`'${d}'`:String(d)).join(", ");return we.warn(`Received illegal value for '${c}'. Supported options: ${u}`),r},{}),"validateOptions"),ao=Symbol("Deeply equal"),ba=O((e,t)=>{if(typeof e!=typeof t)return t;if(wm(e,t))return ao;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=ba(e[a],o);return i!==ao&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Ct(e)&&Ct(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=ba(e?.[n],t?.[n]);return o===ao?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),Sm="UNTARGETED";function Am({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=Sm}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}O(Am,"groupArgsByTarget");function Tm(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}O(Tm,"deleteUndefined");var Pm=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=ba(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==ao&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=LS(r,t.argTypes);this.argsByStoryId[t.id]=fl(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=FS(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=Tm({...this.argsByStoryId[t],...r})}};O(Pm,"ArgsStore");var BS=Pm,Om=O((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),qm=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&ba(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=Om(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==ao&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:le.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)}}};O(qm,"GlobalsStore");var kS=qm,$S=mn(sm(),1),US=(0,$S.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),xm=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(a=>a.id.startsWith(t));let{name:n,title:o}=t;return r.find(a=>a.name===n&&a.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new mf({storyId:t});return r}importPathToEntry(t){return US(this.entries)[t]}};O(xm,"StoryIndexStore");var HS=xm,VS=O(e=>typeof e=="string"?{name:e}:e,"normalizeType"),zS=O(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),GS=O((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=VS(r)),n?a.control=zS(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),ga=O(e=>Fr(e,GS),"normalizeInputTypes"),Re=O(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),YS=Ge`
|
|
193
193
|
CSF .story annotations deprecated; annotate story functions directly:
|
|
194
194
|
- StoryFn.story.name => StoryFn.storyName
|
|
195
195
|
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
196
196
|
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
197
|
-
`;function va(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(le.debug("deprecated story",a),Ut(YS));let i=
|
|
197
|
+
`;function va(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(le.debug("deprecated story",a),Ut(YS));let i=zf(e),s=typeof n!="function"&&n.name||n.storyName||a?.name||i,l=[...Re(n.decorators),...Re(a?.decorators)],c={...a?.parameters,...n.parameters},u={...a?.args,...n.args},d={...a?.argTypes,...n.argTypes},m=[...Re(n.loaders),...Re(a?.loaders)],p=[...Re(n.beforeEach),...Re(a?.beforeEach)],h=[...Re(n.experimental_afterEach),...Re(a?.experimental_afterEach)],{render:g,play:y,tags:b=[],globals:v={}}=n,C=c.__id||Vf(r.id,i);return{moduleExport:t,id:C,name:s,tags:b,decorators:l,parameters:c,args:u,argTypes:ga(d),loaders:m,beforeEach:p,experimental_afterEach:h,globals:v,...g&&{render:g},...o&&{userStoryFn:o},...y&&{play:y}}}O(va,"normalizeStory");function Ea(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:tl(n||t),...e,title:t,...o&&{argTypes:ga(o)},parameters:{fileName:r,...e.parameters}}}O(Ea,"normalizeComponentAnnotations");var WS=O(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&le.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),KS=O(e=>{let{options:t}=e;t?.storySort&&le.error("The storySort option parameter can only be set globally")},"checkStorySort"),ma=O(e=>{e&&(WS(e),KS(e))},"checkDisallowedParameters");function Mm(e,t,r){let{default:n,__namedExportsOrder:o,...a}=e,i=Object.values(a)[0];if(Nr(i)){let c=Ea(i.meta.input,r,t);ma(c.parameters);let u={meta:c,stories:{},moduleExports:e};return Object.keys(a).forEach(d=>{if(un(d,c)){let m=va(d,a[d].input,c);ma(m.parameters),u.stories[m.id]=m}}),u.projectAnnotations=i.meta.preview.composed,u}let s=Ea(n,r,t);ma(s.parameters);let l={meta:s,stories:{},moduleExports:e};return Object.keys(a).forEach(c=>{if(un(c,s)){let u=va(c,a[c],s);ma(u.parameters),l.stories[u.id]=u}}),l}O(Mm,"processCSFFile");function Nm(e){return e!=null&&jm(e).includes("mount")}O(Nm,"mountDestructured");function jm(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=ml(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?ml(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}O(jm,"getUsedProps");function ml(e){let t=[],r=[],n=0;for(let a=0;a<e.length;a++)if(e[a]==="{"||e[a]==="[")r.push(e[a]==="{"?"}":"]");else if(e[a]===r[r.length-1])r.pop();else if(!r.length&&e[a]===","){let i=e.substring(n,a).trim();i&&t.push(i),n=a+1}let o=e.substring(n).trim();return o&&t.push(o),t}O(ml,"splitByComma");function Im(e,t,r){let n=r(e);return o=>t(n,o)}O(Im,"decorateStory");function Dm({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:s,argTypes:l,...c}={}){return c}O(Dm,"sanitizeStoryContextUpdate");function Fm(e,t){let r={},n=O(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...Dm(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>Im(a,i,n),e);return a=>(r.value=a,o(a))}O(Fm,"defaultDecorateStory");var Lr=O((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,s])=>{let l=o[i];Array.isArray(s)||typeof l>"u"?o[i]=s:Ct(s)&&Ct(l)?t[i]=!0:typeof s<"u"&&(o[i]=s)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>Ct(i))?n[o]=Lr(...a):n[o]=a[a.length-1]}),n},"combineParameters");function Ol(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=ql(e,t,r),s=O(async _=>{let E={};for(let R of[..."__STORYBOOK_TEST_LOADERS__"in Ue&&Array.isArray(Ue.__STORYBOOK_TEST_LOADERS__)?[Ue.__STORYBOOK_TEST_LOADERS__]:[],Re(r.loaders),Re(t.loaders),Re(e.loaders)]){if(_.abortSignal.aborted)return E;let P=await Promise.all(R.map(N=>N(_)));Object.assign(E,...P)}return E},"applyLoaders"),l=O(async _=>{let E=new Array;for(let R of[...Re(r.beforeEach),...Re(t.beforeEach),...Re(e.beforeEach)]){if(_.abortSignal.aborted)return E;let P=await R(_);P&&E.push(P)}return E},"applyBeforeEach"),c=O(async _=>{let E=[...Re(r.experimental_afterEach),...Re(t.experimental_afterEach),...Re(e.experimental_afterEach)].reverse();for(let R of E){if(_.abortSignal.aborted)return;await R(_)}},"applyAfterEach"),u=O(_=>_.originalStoryFn(_.args,_),"undecoratedStoryFn"),{applyDecorators:d=Fm,runStep:m}=r,p=[...Re(e?.decorators),...Re(t?.decorators),...Re(r?.decorators)],h=e?.userStoryFn||e?.render||t.render||r.render,g=eS(d)(u,p),y=O(_=>g(_),"unboundStoryFn"),b=e?.play??t?.play,v=Nm(b);if(!h&&!v)throw new jf({id:o});let C=O(_=>async()=>(await _.renderToCanvas(),_.canvas),"defaultMount"),S=e.mount??t.mount??r.mount??C,A=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:h,undecoratedStoryFn:u,unboundStoryFn:y,applyLoaders:s,applyBeforeEach:l,applyAfterEach:c,playFunction:b,runStep:m,mount:S,testingLibraryRender:A,renderToCanvas:r.renderToCanvas,usesMount:v}}O(Ol,"prepareStory");function Lm(e,t,r){return{...ql(void 0,e,t),moduleExport:r}}O(Lm,"prepareMeta");function ql(e,t,r){let n=["dev","test"],o=Ue.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=Gf(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=Lr(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:s=[],argsEnhancers:l=[]}=r,c=Lr(r.argTypes,t.argTypes,e?.argTypes);if(e){let b=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=b&&b.length>0}let u={...r.args,...t.args,...e?.args},d={...t.globals,...e?.globals},m={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:u,argTypes:c,storyGlobals:d};m.argTypes=s.reduce((b,v)=>v({...m,argTypes:b}),m.argTypes);let p={...u};m.initialArgs=l.reduce((b,v)=>({...b,...v({...m,initialArgs:b})}),p);let{name:h,story:g,...y}=m;return y}O(ql,"preparePartialAnnotations");function xl(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(Ue.FEATURES?.argTypeTargetsV7){let a=Am(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[Sm]||{}}}let n=Object.entries(r.args).reduce((a,[i,s])=>{if(!r.argTypes[i]?.mapping)return a[i]=s,a;let l=O(c=>{let u=r.argTypes[i].mapping;return u&&c in u?u[c]:c},"mappingFn");return a[i]=Array.isArray(s)?s.map(l):l(s),a},{}),o=Object.entries(n).reduce((a,[i,s])=>{let l=r.argTypes[i]||{};return $f(l,n,r.globals)&&(a[i]=s),a},{});return{...r,unmappedArgs:t,args:o}}O(xl,"prepareContext");var hl=O((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return e?r.has(e)?(le.warn(Ge`
|
|
198
198
|
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
199
199
|
|
|
200
200
|
Consider using the mapping feature or fully custom args:
|
|
201
201
|
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
202
202
|
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
203
|
-
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?hl(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Fr(e,o=>hl(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),
|
|
203
|
+
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?hl(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Fr(e,o=>hl(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Bm=O(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=Fr(n,(i,s)=>({name:s,type:hl(i,`${t}.${s}`,new Set)})),a=Fr(r,(i,s)=>({name:s}));return Lr(o,a,r)},"inferArgTypes");Bm.secondPass=!0;var Jf=O((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),XS=O((e,t,r)=>!t&&!r?e:e&&Rm(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||Jf(a,t))&&(!r||!Jf(a,r))}),"filterArgTypes"),JS=O((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&le.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),km=O(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=XS(t,n,o),s=Fr(i,(l,c)=>l?.type&&JS(l,c.toString(),a));return Lr(s,i)},"inferControls");km.secondPass=!0;function cn({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,experimental_afterEach:i,globals:s,initialGlobals:l,...c}){return s&&Object.keys(s).length>0&&Ut(Ge`
|
|
204
204
|
The preview.js 'globals' field is deprecated and will be removed in Storybook 9.0.
|
|
205
205
|
Please use 'initialGlobals' instead. Learn more:
|
|
206
206
|
|
|
207
207
|
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewjs-globals-renamed-to-initialglobals
|
|
208
|
-
`),{...e&&{argTypes:ga(e)},...t&&{globalTypes:ga(t)},decorators:Re(n),loaders:Re(o),beforeEach:Re(a),experimental_afterEach:Re(i),argTypesEnhancers:[...r||[],
|
|
209
|
-
${C.description}`)},"showError"),showException:O(C=>{throw C},"showException"),forceRemount:!0,storyContext:b,storyFn:O(()=>c.unboundStoryFn(b),"storyFn"),unboundStoryFn:c.unboundStoryFn},b.canvasElement);v&&cr.push(v)}),b.mount=c.mount(b),b},"initializeContext"),p,h=O(async b=>{let v=m();return v.canvasElement??(v.canvasElement=globalThis?.document?.body),p&&(v.loaded=p.loaded),Object.assign(v,b),c.playFunction(v)},"play"),g=O(b=>{let v=m();return Object.assign(v,b),
|
|
208
|
+
`),{...e&&{argTypes:ga(e)},...t&&{globalTypes:ga(t)},decorators:Re(n),loaders:Re(o),beforeEach:Re(a),experimental_afterEach:Re(i),argTypesEnhancers:[...r||[],Bm,km],initialGlobals:Lr(l,s),...c}}O(cn,"normalizeProjectAnnotations");var QS=O(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function $m(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}O($m,"composeStepRunners");function fn(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}O(fn,"getField");function Vt(e,t,r={}){return fn(e,t).reduce((n,o)=>{let a=Re(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}O(Vt,"getArrayField");function pn(e,t){return Object.assign({},...fn(e,t))}O(pn,"getObjectField");function Ir(e,t){return fn(e,t).pop()}O(Ir,"getSingletonField");function jr(e){let t=Vt(e,"argTypesEnhancers"),r=fn(e,"runStep"),n=Vt(e,"beforeAll");return{parameters:Lr(...fn(e,"parameters")),decorators:Vt(e,"decorators",{reverseFileOrder:!(Ue.FEATURES?.legacyDecoratorFileOrder??!1)}),args:pn(e,"args"),argsEnhancers:Vt(e,"argsEnhancers"),argTypes:pn(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],globals:pn(e,"globals"),initialGlobals:pn(e,"initialGlobals"),globalTypes:pn(e,"globalTypes"),loaders:Vt(e,"loaders"),beforeAll:QS(n),beforeEach:Vt(e,"beforeEach"),experimental_afterEach:Vt(e,"experimental_afterEach"),render:Ir(e,"render"),renderToCanvas:Ir(e,"renderToCanvas"),renderToDOM:Ir(e,"renderToDOM"),applyDecorators:Ir(e,"applyDecorators"),runStep:$m(r),tags:Vt(e,"tags"),mount:Ir(e,"mount"),testingLibraryRender:Ir(e,"testingLibraryRender")}}O(jr,"composeConfigs");var Um=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};O(Um,"ReporterAPI");var Hm=Um;function Vm(e,t,r){return Nr(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:t,preview:r}}O(Vm,"getCsfFactoryAnnotations");function ZS(e){globalThis.defaultProjectAnnotations=e}O(ZS,"setDefaultProjectAnnotations");var eA="ComposedStory",tA="Unnamed Story";function zm(e){return e?jr([e]):{}}O(zm,"extractAnnotation");function rA(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=jr([globalThis.defaultProjectAnnotations??{},jr(t.map(zm))]),globalThis.globalProjectAnnotations??{}}O(rA,"setProjectAnnotations");var cr=[];function Gm(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??eA;let a=Ea(t),i=o||e.storyName||e.story?.name||e.name||tA,s=va(i,e,a),l=cn(jr([n??globalThis.globalProjectAnnotations??{},r??{}])),c=Ol(s,a,l),u={...Om(l.globalTypes),...l.initialGlobals,...c.storyGlobals},d=new Hm,m=O(()=>{let b=xl({hooks:new ym,globals:u,args:{...c.initialArgs},viewMode:"story",reporting:d,loaded:{},abortSignal:new AbortController().signal,step:O((v,C)=>c.runStep(v,C,b),"step"),canvasElement:null,canvas:{},globalTypes:l.globalTypes,...c,context:null,mount:null});return b.parameters.__isPortableStory=!0,b.context=b,c.renderToCanvas&&(b.renderToCanvas=async()=>{let v=await c.renderToCanvas?.({componentId:c.componentId,title:c.title,id:c.id,name:c.name,tags:c.tags,showMain:O(()=>{},"showMain"),showError:O(C=>{throw new Error(`${C.title}
|
|
209
|
+
${C.description}`)},"showError"),showException:O(C=>{throw C},"showException"),forceRemount:!0,storyContext:b,storyFn:O(()=>c.unboundStoryFn(b),"storyFn"),unboundStoryFn:c.unboundStoryFn},b.canvasElement);v&&cr.push(v)}),b.mount=c.mount(b),b},"initializeContext"),p,h=O(async b=>{let v=m();return v.canvasElement??(v.canvasElement=globalThis?.document?.body),p&&(v.loaded=p.loaded),Object.assign(v,b),c.playFunction(v)},"play"),g=O(b=>{let v=m();return Object.assign(v,b),Ym(c,v)},"run"),y=c.playFunction?h:void 0;return Object.assign(O(function(b){let v=m();return p&&(v.loaded=p.loaded),v.args={...v.initialArgs,...b},c.unboundStoryFn(v)},"storyFn"),{id:c.id,storyName:i,load:O(async()=>{for(let v of[...cr].reverse())await v();cr.length=0;let b=m();b.loaded=await c.applyLoaders(b),cr.push(...(await c.applyBeforeEach(b)).filter(Boolean)),p=b},"load"),globals:u,args:c.initialArgs,parameters:c.parameters,argTypes:c.argTypes,play:y,run:g,reporting:d,tags:c.tags})}O(Gm,"composeStory");var nA=O((e,t,r,n)=>Gm(e,t,r,{},n),"defaultComposeStory");function oA(e,t,r=nA){let{default:n,__esModule:o,__namedExportsOrder:a,...i}=e,s=n;return Object.entries(i).reduce((l,[c,u])=>{let{story:d,meta:m}=Vm(u);return!s&&m&&(s=m),un(c,s)?Object.assign(l,{[c]:r(d,s,t,c)}):l},{})}O(oA,"composeStories");function aA(e){return e.extend({mount:O(async({mount:t,page:r},n)=>{await n(async(o,...a)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(Ge`
|
|
210
210
|
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
211
211
|
Please use JSX format for your components such as:
|
|
212
212
|
|
|
@@ -217,78 +217,78 @@ ${C.description}`)},"showError"),showException:O(C=>{throw C},"showException"),f
|
|
|
217
217
|
await mount(<MyComponent foo="bar"/>)
|
|
218
218
|
|
|
219
219
|
More info: https://storybook.js.org/docs/api/portable-stories-playwright
|
|
220
|
-
`);await r.evaluate(async s=>{let l=await globalThis.__pwUnwrapObject?.(s);return("__pw_type"in l?l.type:l)?.load?.()},o);let i=await t(o,...a);return await r.evaluate(async s=>{let l=await globalThis.__pwUnwrapObject?.(s),c="__pw_type"in l?l.type:l,u=document.querySelector("#root");return c?.play?.({canvasElement:u})},o),i})},"mount")})}O(aA,"createPlaywrightTest");async function Gm(e,t){for(let o of[...cr].reverse())await o();if(cr.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,cr.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;cr.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;n||await t.mount(),!t.abortSignal.aborted&&(r&&(n||(t.mount=async()=>{throw new da({playFunction:r.toString()})}),await r(t)),await e.applyAfterEach(t))}O(Gm,"runStory");function yl(e,t){return vm(Em(e,t),r=>r===void 0)}O(yl,"picky");var Jf=1e3,iA=1e4,Ym=class{constructor(t,r,n){this.importFn=r,this.getStoriesJsonData=O(()=>{let i=this.getSetStoriesPayload(),s=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:Fr(i.stories,l=>{let{importPath:c}=this.storyIndex.entries[l.id];return{...yl(l,["id","name","title"]),importPath:c,kind:l.title,story:l.name,parameters:{...yl(l.parameters,s),fileName:c}}})}},"getStoriesJsonData"),this.storyIndex=new HS(t),this.projectAnnotations=cn(n);let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new BS,this.userGlobals=new kS({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,al.default)(Jf)(xm),this.prepareMetaWithCache=(0,al.default)(Jf)(Fm),this.prepareStoryWithCache=(0,al.default)(iA)(Ol)}setProjectAnnotations(t){this.projectAnnotations=cn(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new Pf({storyId:t});let o=r.meta,a=this.prepareStoryWithCache(n,o,r.projectAnnotations??this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new hm,a}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let s=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals,a=new Um;return xl({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:a,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,r){this.cleanupCallbacks[t.id]=r}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new hf;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let s=r[i],l=this.storyFromCSFFile({storyId:o,csfFile:s});return!t.includeDocsOnly&&l.parameters.docsOnly||(n[o]=Object.entries(l).reduce((c,[u,d])=>u==="moduleExport"||typeof d=="function"?c:Array.isArray(d)?Object.assign(c,{[u]:d.slice().sort()}):Object.assign(c,{[u]:d}),{args:l.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...l.storyGlobals}})),n},{})}getSetStoriesPayload(){let t=this.extract({includeDocsOnly:!0}),r=Object.values(t).reduce((n,{title:o})=>(n[o]={},n),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:r,stories:t}}raw(){return Ut("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:t})=>this.fromId(t)).filter(Boolean)}fromId(t){if(Ut("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(t))}catch{return null}let n=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:t,csfFile:n});return{...o,storyFn:O(a=>{let i={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:O((s,l)=>o.runStep(s,l,i),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...i,...a})},"storyFn")}}};O(Ym,"StoryStore");var sA=Ym;function lA(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}O(lA,"slash");function uA(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}O(uA,"pathJoin");var wa=new Error("prepareAborted"),{AbortController:Qf}=globalThis;function bl(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}O(bl,"serializeError");var Wm=class{constructor(t,r,n,o,a,i,s={autoplay:!0,forceInitialArgs:!1},l){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=s,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=O(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Qf,l&&(this.story=l,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(Ht,{newPhase:this.phase,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(Ht,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),wa}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:s,name:l,tags:c,applyLoaders:u,applyBeforeEach:d,applyAfterEach:m,unboundStoryFn:p,playFunction:h,runStep:g}=o;r&&!t&&(this.cancelRender(),this.abortController=new Qf);let y=this.abortController.signal,b=!1,v=o.usesMount;try{let C={...this.storyContext(),viewMode:this.viewMode,abortSignal:y,canvasElement:n,loaded:{},step:O((j,F)=>g(j,F,C),"step"),context:null,canvas:{},renderToCanvas:O(async()=>{let j=await this.renderToScreen(S,n);this.teardownRender=j||(()=>{}),b=!0},"renderToCanvas"),mount:O(async(...j)=>{this.callbacks.showStoryDuringRender?.();let F=null;return await this.runPhase(y,"rendering",async()=>{F=await o.mount(C)(...j)}),v&&await this.runPhase(y,"playing"),F},"mount")};C.context=C;let S={componentId:i,title:s,kind:s,id:a,name:l,story:l,tags:c,...this.callbacks,showError:O(j=>(this.phase="errored",this.callbacks.showError(j)),"showError"),showException:O(j=>(this.phase="errored",this.callbacks.showException(j)),"showException"),forceRemount:r||this.notYetRendered,storyContext:C,storyFn:O(()=>p(C),"storyFn"),unboundStoryFn:p};if(await this.runPhase(y,"loading",async()=>{C.loaded=await u(C)}),y.aborted)return;let A=await d(C);if(this.store.addCleanupCallbacks(o,A),this.checkIfAborted(y)||(!b&&!v&&await C.mount(),this.notYetRendered=!1,y.aborted))return;let _=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,E=new Set,R=O(j=>E.add("error"in j?j.error:j.reason),"onError");if(this.renderOptions.autoplay&&r&&h&&this.phase!=="errored"){window.addEventListener("error",R),window.addEventListener("unhandledrejection",R),this.disableKeyListeners=!0;try{if(v?await h(C):(C.mount=async()=>{throw new da({playFunction:h.toString()})},await this.runPhase(y,"playing",async()=>h(C))),!b)throw new If;this.checkIfAborted(y),!_&&E.size>0?await this.runPhase(y,"errored"):await this.runPhase(y,"played")}catch(j){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(y,"errored",async()=>{this.channel.emit(ws,bl(j))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw j;console.error(j)}if(!_&&E.size>0&&this.channel.emit(Cs,Array.from(E).map(bl)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",R),window.removeEventListener("error",R),y.aborted)return}await this.runPhase(y,"completed",async()=>this.channel.emit(an,a)),this.phase!=="errored"&&await this.runPhase(y,"afterEach",async()=>{await m(C)});let P=!_&&E.size>0,N=C.reporting.reports.some(j=>j.status==="failed"),B=P||N;await this.runPhase(y,"finished",async()=>this.channel.emit(ra,{storyId:a,status:B?"error":"success",reporters:C.reporting.reports}))}catch(C){this.phase="errored",this.callbacks.showException(C),await this.runPhase(y,"finished",async()=>this.channel.emit(ra,{storyId:a,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}};O(Wm,"StoryRender");var gl=Wm,{fetch:cA}=Ue,dA="./index.json",Km=class{constructor(t,r,n=zt.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((a,i)=>{this.resolveStoreInitializationPromise=a,this.rejectStoreInitializationPromise=i}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:O((t,r)=>{if(this.storyStoreValue)return Ut("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new qf},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(xs,this.onStoryIndexChanged.bind(this)),this.channel.on(to,this.onUpdateGlobals.bind(this)),this.channel.on(ro,this.onUpdateArgs.bind(this)),this.channel.on(Fs,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Zn,this.onResetArgs.bind(this)),this.channel.on(Qn,this.onForceReRender.bind(this)),this.channel.on(on,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new bf;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await cA(dA);if(t.status===200)return t.json();throw new Ef({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new sA(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new ut({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Ts,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new ut({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new ut({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:o,userGlobals:a,globals:i}=this.storyStoreValue.getStoryContext(r);this.channel.emit(Pr,{initialGlobals:n,userGlobals:a,storyGlobals:o,globals:i})}else{let{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(Pr,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new ut({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(Ps,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(na,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(na,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new ut({methodName:"onResetArgs"});let n=this.storyRenders.find(a=>a.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((a,i)=>(a[i]=n.initialArgs[i],a),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new ut({methodName:"renderStoryToElement"});let a=new gl(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return a.renderToElement(r),this.storyRenders.push(a),async()=>{await this.teardownRender(a)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new ut({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new ut({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new ut({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,le.error(t),le.error(r),this.channel.emit(_s,r)}};O(Km,"Preview");var pA=Km,fA=!1,il="Invariant failed";function ha(e,t){if(!e){if(fA)throw new Error(il);var r=typeof t=="function"?t():t,n=r?"".concat(il,": ").concat(r):il;throw new Error(n)}}O(ha,"invariant");var Xm=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=O(a=>{let i=this.nameToStoryId.get(a);if(i)return i;throw new Error(`No story found with that name: ${a}`)},"storyIdByName"),this.componentStories=O(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=O(a=>this.store.componentStoriesFromCSFFile({csfFile:a}),"componentStoriesFromCSFFile"),this.storyById=O(a=>{if(!a){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let i=this.storyIdToCSFFile.get(a);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${a}`);return this.store.storyFromCSFFile({storyId:a,csfFile:i})},"storyById"),this.getStoryContext=O(a=>({...this.store.getStoryContext(a),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=O(a=>this.store.loadStory({storyId:a}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((a,i)=>{this.referenceCSFFile(a)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(Nr(t)?t.input:t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(Ge`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}.
|
|
220
|
+
`);await r.evaluate(async s=>{let l=await globalThis.__pwUnwrapObject?.(s);return("__pw_type"in l?l.type:l)?.load?.()},o);let i=await t(o,...a);return await r.evaluate(async s=>{let l=await globalThis.__pwUnwrapObject?.(s),c="__pw_type"in l?l.type:l,u=document.querySelector("#root");return c?.play?.({canvasElement:u})},o),i})},"mount")})}O(aA,"createPlaywrightTest");async function Ym(e,t){for(let o of[...cr].reverse())await o();if(cr.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,cr.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;cr.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;n||await t.mount(),!t.abortSignal.aborted&&(r&&(n||(t.mount=async()=>{throw new da({playFunction:r.toString()})}),await r(t)),await e.applyAfterEach(t))}O(Ym,"runStory");function yl(e,t){return Em(_m(e,t),r=>r===void 0)}O(yl,"picky");var Qf=1e3,iA=1e4,Wm=class{constructor(t,r,n){this.importFn=r,this.getStoriesJsonData=O(()=>{let i=this.getSetStoriesPayload(),s=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:Fr(i.stories,l=>{let{importPath:c}=this.storyIndex.entries[l.id];return{...yl(l,["id","name","title"]),importPath:c,kind:l.title,story:l.name,parameters:{...yl(l.parameters,s),fileName:c}}})}},"getStoriesJsonData"),this.storyIndex=new HS(t),this.projectAnnotations=cn(n);let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new BS,this.userGlobals=new kS({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,al.default)(Qf)(Mm),this.prepareMetaWithCache=(0,al.default)(Qf)(Lm),this.prepareStoryWithCache=(0,al.default)(iA)(Ol)}setProjectAnnotations(t){this.projectAnnotations=cn(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new Of({storyId:t});let o=r.meta,a=this.prepareStoryWithCache(n,o,r.projectAnnotations??this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new ym,a}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let s=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals,a=new Hm;return xl({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:a,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,r){this.cleanupCallbacks[t.id]=r}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new yf;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let s=r[i],l=this.storyFromCSFFile({storyId:o,csfFile:s});return!t.includeDocsOnly&&l.parameters.docsOnly||(n[o]=Object.entries(l).reduce((c,[u,d])=>u==="moduleExport"||typeof d=="function"?c:Array.isArray(d)?Object.assign(c,{[u]:d.slice().sort()}):Object.assign(c,{[u]:d}),{args:l.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...l.storyGlobals}})),n},{})}getSetStoriesPayload(){let t=this.extract({includeDocsOnly:!0}),r=Object.values(t).reduce((n,{title:o})=>(n[o]={},n),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:r,stories:t}}raw(){return Ut("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:t})=>this.fromId(t)).filter(Boolean)}fromId(t){if(Ut("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(t))}catch{return null}let n=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:t,csfFile:n});return{...o,storyFn:O(a=>{let i={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:O((s,l)=>o.runStep(s,l,i),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...i,...a})},"storyFn")}}};O(Wm,"StoryStore");var sA=Wm;function lA(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}O(lA,"slash");function uA(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}O(uA,"pathJoin");var wa=new Error("prepareAborted"),{AbortController:Zf}=globalThis;function bl(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}O(bl,"serializeError");var Km=class{constructor(t,r,n,o,a,i,s={autoplay:!0,forceInitialArgs:!1},l){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=s,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=O(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Zf,l&&(this.story=l,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(Ht,{newPhase:this.phase,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(Ht,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),wa}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:s,name:l,tags:c,applyLoaders:u,applyBeforeEach:d,applyAfterEach:m,unboundStoryFn:p,playFunction:h,runStep:g}=o;r&&!t&&(this.cancelRender(),this.abortController=new Zf);let y=this.abortController.signal,b=!1,v=o.usesMount;try{let C={...this.storyContext(),viewMode:this.viewMode,abortSignal:y,canvasElement:n,loaded:{},step:O((j,F)=>g(j,F,C),"step"),context:null,canvas:{},renderToCanvas:O(async()=>{let j=await this.renderToScreen(S,n);this.teardownRender=j||(()=>{}),b=!0},"renderToCanvas"),mount:O(async(...j)=>{this.callbacks.showStoryDuringRender?.();let F=null;return await this.runPhase(y,"rendering",async()=>{F=await o.mount(C)(...j)}),v&&await this.runPhase(y,"playing"),F},"mount")};C.context=C;let S={componentId:i,title:s,kind:s,id:a,name:l,story:l,tags:c,...this.callbacks,showError:O(j=>(this.phase="errored",this.callbacks.showError(j)),"showError"),showException:O(j=>(this.phase="errored",this.callbacks.showException(j)),"showException"),forceRemount:r||this.notYetRendered,storyContext:C,storyFn:O(()=>p(C),"storyFn"),unboundStoryFn:p};if(await this.runPhase(y,"loading",async()=>{C.loaded=await u(C)}),y.aborted)return;let A=await d(C);if(this.store.addCleanupCallbacks(o,A),this.checkIfAborted(y)||(!b&&!v&&await C.mount(),this.notYetRendered=!1,y.aborted))return;let _=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,E=new Set,R=O(j=>E.add("error"in j?j.error:j.reason),"onError");if(this.renderOptions.autoplay&&r&&h&&this.phase!=="errored"){window.addEventListener("error",R),window.addEventListener("unhandledrejection",R),this.disableKeyListeners=!0;try{if(v?await h(C):(C.mount=async()=>{throw new da({playFunction:h.toString()})},await this.runPhase(y,"playing",async()=>h(C))),!b)throw new Df;this.checkIfAborted(y),!_&&E.size>0?await this.runPhase(y,"errored"):await this.runPhase(y,"played")}catch(j){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(y,"errored",async()=>{this.channel.emit(ws,bl(j))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw j;console.error(j)}if(!_&&E.size>0&&this.channel.emit(Cs,Array.from(E).map(bl)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",R),window.removeEventListener("error",R),y.aborted)return}await this.runPhase(y,"completed",async()=>this.channel.emit(an,a)),this.phase!=="errored"&&await this.runPhase(y,"afterEach",async()=>{await m(C)});let P=!_&&E.size>0,N=C.reporting.reports.some(j=>j.status==="failed"),B=P||N;await this.runPhase(y,"finished",async()=>this.channel.emit(ra,{storyId:a,status:B?"error":"success",reporters:C.reporting.reports}))}catch(C){this.phase="errored",this.callbacks.showException(C),await this.runPhase(y,"finished",async()=>this.channel.emit(ra,{storyId:a,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}};O(Km,"StoryRender");var gl=Km,{fetch:cA}=Ue,dA="./index.json",Xm=class{constructor(t,r,n=zt.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((a,i)=>{this.resolveStoreInitializationPromise=a,this.rejectStoreInitializationPromise=i}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:O((t,r)=>{if(this.storyStoreValue)return Ut("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new xf},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(xs,this.onStoryIndexChanged.bind(this)),this.channel.on(to,this.onUpdateGlobals.bind(this)),this.channel.on(ro,this.onUpdateArgs.bind(this)),this.channel.on(Fs,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Zn,this.onResetArgs.bind(this)),this.channel.on(Qn,this.onForceReRender.bind(this)),this.channel.on(on,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new gf;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await cA(dA);if(t.status===200)return t.json();throw new _f({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new sA(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new ut({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Ts,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new ut({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new ut({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:o,userGlobals:a,globals:i}=this.storyStoreValue.getStoryContext(r);this.channel.emit(Pr,{initialGlobals:n,userGlobals:a,storyGlobals:o,globals:i})}else{let{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(Pr,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new ut({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(Ps,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(na,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(na,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new ut({methodName:"onResetArgs"});let n=this.storyRenders.find(a=>a.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((a,i)=>(a[i]=n.initialArgs[i],a),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new ut({methodName:"renderStoryToElement"});let a=new gl(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return a.renderToElement(r),this.storyRenders.push(a),async()=>{await this.teardownRender(a)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new ut({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new ut({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new ut({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,le.error(t),le.error(r),this.channel.emit(_s,r)}};O(Xm,"Preview");var pA=Xm,fA=!1,il="Invariant failed";function ha(e,t){if(!e){if(fA)throw new Error(il);var r=typeof t=="function"?t():t,n=r?"".concat(il,": ").concat(r):il;throw new Error(n)}}O(ha,"invariant");var Jm=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=O(a=>{let i=this.nameToStoryId.get(a);if(i)return i;throw new Error(`No story found with that name: ${a}`)},"storyIdByName"),this.componentStories=O(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=O(a=>this.store.componentStoriesFromCSFFile({csfFile:a}),"componentStoriesFromCSFFile"),this.storyById=O(a=>{if(!a){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let i=this.storyIdToCSFFile.get(a);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${a}`);return this.store.storyFromCSFFile({storyId:a,csfFile:i})},"storyById"),this.getStoryContext=O(a=>({...this.store.getStoryContext(a),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=O(a=>this.store.loadStory({storyId:a}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((a,i)=>{this.referenceCSFFile(a)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(Nr(t)?t.input:t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(Ge`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}.
|
|
221
221
|
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
222
222
|
- ... or vice versa?
|
|
223
|
-
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};O(Xm,"DocsContext");var Jm=Xm,Qm=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw wa;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(t,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new Jm(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,s=O(async()=>{try{await i(n,o,t),this.channel.emit(Jn,this.id)}catch(l){this.callbacks.showException(l)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:l})=>{!l||!t||a.unmount(t)},s()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};O(Qm,"CsfDocsRender");var Zf=Qm,Zm=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw wa;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Jm(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:s}=i,l=O(async()=>{try{await s(n,a,t),this.channel.emit(Jn,this.id)}catch(c){this.callbacks.showException(c)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:c}={})=>{!c||!t||(i.unmount(t),this.torndown=!0)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};O(Zm,"MdxDocsRender");var em=Zm,mA=globalThis;function eh(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}O(eh,"focusInInput");var th="attached-mdx",hA="unattached-mdx";function rh({tags:e}){return e?.includes(hA)||e?.includes(th)}O(rh,"isMdxEntry");function ya(e){return e.type==="story"}O(ya,"isStoryRender");function nh(e){return e.type==="docs"}O(nh,"isDocsRender");function oh(e){return nh(e)&&e.subtype==="csf"}O(oh,"isCsfDocsRender");var ah=class extends pA{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),mA.onkeydown=this.onKeydown.bind(this),this.channel.on(eo,this.onSetCurrentStory.bind(this)),this.channel.on(Ds,this.onUpdateQueryParams.bind(this)),this.channel.on(Ss,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new ut({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new ut({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new Cf):this.renderStoryLoadingException(t,new Af({storySpecifier:t.toString()}));return}let{id:o,type:a}=n;this.selectionStore.setSelection({storyId:o,viewMode:a}),this.channel.emit(Ns,this.selectionStore.selection),this.channel.emit(ea,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!eh(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}=t;this.channel.emit(As,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(ea,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof gl&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof em||this.currentRender instanceof Zf)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new ut({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,a;try{a=await this.storyStoreValue.storyIdToEntry(o)}catch(m){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,m);return}let i=this.currentSelection?.storyId!==o,s=this.currentRender?.type!==a.type;a.type==="story"?this.view.showPreparingStory({immediate:s}):this.view.showPreparingDocs({immediate:s}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let l;a.type==="story"?l=new gl(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):rh(a)?l=new em(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o)):l=new Zf(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o));let c=this.currentSelection;this.currentSelection=n;let u=this.currentRender;this.currentRender=l;try{await l.prepare()}catch(m){u&&await this.teardownRender(u),m!==wa&&this.renderStoryLoadingException(o,m);return}let d=!i&&u&&!l.isEqual(u);if(t&&ya(l)&&(ha(!!l.story),this.storyStoreValue.args.updateFromPersisted(l.story,t)),u&&!u.torndown&&!i&&!d&&!s){this.currentRender=u,this.channel.emit(Is,o),this.view.showMain();return}if(u&&await this.teardownRender(u,{viewModeChanged:s}),c&&(i||s)&&this.channel.emit(Os,o),ya(l)){ha(!!l.story);let{parameters:m,initialArgs:p,argTypes:h,unmappedArgs:g,initialGlobals:y,userGlobals:b,storyGlobals:v,globals:C}=this.storyStoreValue.getStoryContext(l.story);this.channel.emit(Ms,{id:o,parameters:m,initialArgs:p,argTypes:h,args:g}),this.channel.emit(Pr,{userGlobals:b,storyGlobals:v,globals:C,initialGlobals:y})}else{let{parameters:m}=this.storyStoreValue.projectAnnotations,{initialGlobals:p,globals:h}=this.storyStoreValue.userGlobals;if(this.channel.emit(Pr,{globals:h,initialGlobals:p,storyGlobals:{},userGlobals:h}),oh(l)||l.entry.tags?.includes(th)){if(!l.csfFiles)throw new Rf({storyId:o});({parameters:m}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:l.csfFiles[0]}))}this.channel.emit(Rs,{id:o,parameters:m})}ya(l)?(ha(!!l.story),this.storyRenders.push(l),this.currentRender.renderToElement(this.view.prepareForStory(l.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:O(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:O(()=>this.view.showMain(),"showMain"),showError:O(r=>this.renderError(t,r),"showError"),showException:O(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(ta)}renderStoryLoadingException(t,r){le.error(r),this.view.showErrorDisplay(r),this.channel.emit(ta,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:a}=r;this.channel.emit(js,{name:n,message:o,stack:a}),this.channel.emit(Ht,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay(r),le.error(`Error rendering story '${t}':`),le.error(r)}renderError(t,{title:r,description:n}){le.error(`Error rendering story ${r}: ${n}`),this.channel.emit(qs,{title:r,description:n}),this.channel.emit(Ht,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay({message:r,stack:n})}};O(ah,"PreviewWithSelection");var yA=ah,vl=mn(Cl(),1),bA=mn(Cl(),1),tm=/^[a-zA-Z0-9 _-]*$/,ih=/^-?[0-9]+(\.[0-9]+)?$/,gA=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,sh=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,El=O((e="",t)=>e===null||e===""||!tm.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?tm.test(t)||ih.test(t)||gA.test(t)||sh.test(t):Array.isArray(t)?t.every(r=>El(e,r)):Ct(t)?Object.entries(t).every(([r,n])=>El(r,n)):!1,"validateArgs"),vA={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(sh);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return ih.test(e)?Number(e):e}},rm=O(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,bA.parse)(t.join(";"),vA)).reduce((r,[n,o])=>El(n,o)?Object.assign(r,{[n]:o}):(we.warn(Ge`
|
|
223
|
+
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};O(Jm,"DocsContext");var Qm=Jm,Zm=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw wa;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(t,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new Qm(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,s=O(async()=>{try{await i(n,o,t),this.channel.emit(Jn,this.id)}catch(l){this.callbacks.showException(l)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:l})=>{!l||!t||a.unmount(t)},s()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};O(Zm,"CsfDocsRender");var em=Zm,eh=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw wa;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Qm(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:s}=i,l=O(async()=>{try{await s(n,a,t),this.channel.emit(Jn,this.id)}catch(c){this.callbacks.showException(c)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:c}={})=>{!c||!t||(i.unmount(t),this.torndown=!0)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};O(eh,"MdxDocsRender");var tm=eh,mA=globalThis;function th(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}O(th,"focusInInput");var rh="attached-mdx",hA="unattached-mdx";function nh({tags:e}){return e?.includes(hA)||e?.includes(rh)}O(nh,"isMdxEntry");function ya(e){return e.type==="story"}O(ya,"isStoryRender");function oh(e){return e.type==="docs"}O(oh,"isDocsRender");function ah(e){return oh(e)&&e.subtype==="csf"}O(ah,"isCsfDocsRender");var ih=class extends pA{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),mA.onkeydown=this.onKeydown.bind(this),this.channel.on(eo,this.onSetCurrentStory.bind(this)),this.channel.on(Ds,this.onUpdateQueryParams.bind(this)),this.channel.on(Ss,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new ut({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new ut({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new Sf):this.renderStoryLoadingException(t,new Tf({storySpecifier:t.toString()}));return}let{id:o,type:a}=n;this.selectionStore.setSelection({storyId:o,viewMode:a}),this.channel.emit(Ns,this.selectionStore.selection),this.channel.emit(ea,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!th(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}=t;this.channel.emit(As,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(ea,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof gl&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof tm||this.currentRender instanceof em)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new ut({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,a;try{a=await this.storyStoreValue.storyIdToEntry(o)}catch(m){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,m);return}let i=this.currentSelection?.storyId!==o,s=this.currentRender?.type!==a.type;a.type==="story"?this.view.showPreparingStory({immediate:s}):this.view.showPreparingDocs({immediate:s}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let l;a.type==="story"?l=new gl(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):nh(a)?l=new tm(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o)):l=new em(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o));let c=this.currentSelection;this.currentSelection=n;let u=this.currentRender;this.currentRender=l;try{await l.prepare()}catch(m){u&&await this.teardownRender(u),m!==wa&&this.renderStoryLoadingException(o,m);return}let d=!i&&u&&!l.isEqual(u);if(t&&ya(l)&&(ha(!!l.story),this.storyStoreValue.args.updateFromPersisted(l.story,t)),u&&!u.torndown&&!i&&!d&&!s){this.currentRender=u,this.channel.emit(Is,o),this.view.showMain();return}if(u&&await this.teardownRender(u,{viewModeChanged:s}),c&&(i||s)&&this.channel.emit(Os,o),ya(l)){ha(!!l.story);let{parameters:m,initialArgs:p,argTypes:h,unmappedArgs:g,initialGlobals:y,userGlobals:b,storyGlobals:v,globals:C}=this.storyStoreValue.getStoryContext(l.story);this.channel.emit(Ms,{id:o,parameters:m,initialArgs:p,argTypes:h,args:g}),this.channel.emit(Pr,{userGlobals:b,storyGlobals:v,globals:C,initialGlobals:y})}else{let{parameters:m}=this.storyStoreValue.projectAnnotations,{initialGlobals:p,globals:h}=this.storyStoreValue.userGlobals;if(this.channel.emit(Pr,{globals:h,initialGlobals:p,storyGlobals:{},userGlobals:h}),ah(l)||l.entry.tags?.includes(rh)){if(!l.csfFiles)throw new wf({storyId:o});({parameters:m}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:l.csfFiles[0]}))}this.channel.emit(Rs,{id:o,parameters:m})}ya(l)?(ha(!!l.story),this.storyRenders.push(l),this.currentRender.renderToElement(this.view.prepareForStory(l.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:O(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:O(()=>this.view.showMain(),"showMain"),showError:O(r=>this.renderError(t,r),"showError"),showException:O(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(ta)}renderStoryLoadingException(t,r){le.error(r),this.view.showErrorDisplay(r),this.channel.emit(ta,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:a}=r;this.channel.emit(js,{name:n,message:o,stack:a}),this.channel.emit(Ht,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay(r),le.error(`Error rendering story '${t}':`),le.error(r)}renderError(t,{title:r,description:n}){le.error(`Error rendering story ${r}: ${n}`),this.channel.emit(qs,{title:r,description:n}),this.channel.emit(Ht,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay({message:r,stack:n})}};O(ih,"PreviewWithSelection");var yA=ih,vl=mn(Cl(),1),bA=mn(Cl(),1),rm=/^[a-zA-Z0-9 _-]*$/,sh=/^-?[0-9]+(\.[0-9]+)?$/,gA=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,lh=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,El=O((e="",t)=>e===null||e===""||!rm.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?rm.test(t)||sh.test(t)||gA.test(t)||lh.test(t):Array.isArray(t)?t.every(r=>El(e,r)):Ct(t)?Object.entries(t).every(([r,n])=>El(r,n)):!1,"validateArgs"),vA={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(lh);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return sh.test(e)?Number(e):e}},nm=O(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,bA.parse)(t.join(";"),vA)).reduce((r,[n,o])=>El(n,o)?Object.assign(r,{[n]:o}):(we.warn(Ge`
|
|
224
224
|
Omitted potentially unsafe URL args.
|
|
225
225
|
|
|
226
226
|
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
|
|
227
|
-
`),r),{})},"parseArgsParam"),{history:
|
|
227
|
+
`),r),{})},"parseArgsParam"),{history:uh,document:dr}=Ue;function ch(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}O(ch,"pathToId");var dh=O(({selection:e,extraParams:t})=>{let r=dr?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:a,...i}=(0,vl.parse)(r);return`?${(0,vl.stringify)({...i,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),EA=O(e=>{if(!e)return;let t=dh({selection:e}),{hash:r=""}=dr.location;dr.title=e.storyId,uh.replaceState({},"",`${dr.location.pathname}${t}${r}`)},"setPath"),_A=O(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),io=O(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return io(e[0]);if(_A(e))return io(Object.values(e).filter(Boolean))}},"getFirstString"),RA=O(()=>{if(typeof dr<"u"){let e=dr.location.search.slice(1),t=(0,vl.parse)(e),r=typeof t.args=="string"?nm(t.args):void 0,n=typeof t.globals=="string"?nm(t.globals):void 0,o=io(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");let a=io(t.path),i=a?ch(a):io(t.id);if(i)return{storySpecifier:i,args:r,globals:n,viewMode:o}}return null},"getSelectionSpecifierFromPath"),ph=class{constructor(){this.selectionSpecifier=RA()}setSelection(t){this.selection=t,EA(this.selection)}setQueryParams(t){let r=dh({extraParams:t}),{hash:n=""}=dr.location;uh.replaceState({},"",`${dr.location.pathname}${r}${n}`)}};O(ph,"UrlStore");var wA=ph,CA=mn(X2(),1),SA=mn(Cl(),1),{document:Je}=Ue,om=100,fh=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(fh||{}),sl={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},ll={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},am=new CA.default({escapeXML:!0}),mh=class{constructor(){if(this.testing=!1,typeof Je<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=(0,SA.parse)(Je.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),Je.documentElement.scrollTop=0,Je.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Je.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Je.documentElement.scrollTop=0,Je.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Je.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){Je.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=ll[t];Je.body.classList.remove(this.currentLayoutClass),Je.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){ll[t]||le.warn(Ge`
|
|
228
228
|
The desired layout: ${t} is not a valid option.
|
|
229
229
|
The possible options are: ${Object.keys(ll).join(", ")}, none.
|
|
230
|
-
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(
|
|
230
|
+
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(fh).forEach(r=>{r===t?Je.body.classList.add(sl[r]):Je.body.classList.remove(sl[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r,a=t.split(`
|
|
231
231
|
`);a.length>1&&([n]=a,o=a.slice(1).join(`
|
|
232
|
-
`).replace(/^\n/,"")),Je.getElementById("error-message").innerHTML=
|
|
233
|
-
`)&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+l.prop.open+c+l.prop.close}=${l.value.open}${d}${l.value.close}`}).join("")}function Zl(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?
|
|
234
|
-
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new
|
|
232
|
+
`).replace(/^\n/,"")),Je.getElementById("error-message").innerHTML=am.toHtml(n),Je.getElementById("error-stack").innerHTML=am.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),om)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),om)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){Je.body.classList.add(sl.MAIN)}};O(mh,"WebView");var AA=mh,TA=class extends yA{constructor(t,r){super(t,r,new wA,new AA),this.importFn=t,this.getProjectAnnotations=r,Ue.__STORYBOOK_PREVIEW__=this}};O(TA,"PreviewWeb");var{document:Dr}=Ue,PA=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],OA="script",im="scripts-root";function _l(){let e=Dr.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Dr.dispatchEvent(e)}O(_l,"simulateDOMContentLoaded");function hh(e,t,r){let n=Dr.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):Dr.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}O(hh,"insertScript");function Ml(e,t,r=0){e[r](()=>{r++,r===e.length?t():Ml(e,t,r)})}O(Ml,"insertScriptsSequentially");function qA(e){let t=Dr.getElementById(im);t?t.innerHTML="":(t=Dr.createElement("div"),t.id=im,Dr.body.appendChild(t));let r=Array.from(e.querySelectorAll(OA));if(r.length){let n=[];r.forEach(o=>{let a=o.getAttribute("type");(!a||PA.includes(a))&&n.push(i=>hh(o,i,t))}),n.length&&Ml(n,_l,void 0)}else _l()}O(qA,"simulatePageLoad");var xA=(e=>typeof Ee<"u"?Ee:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ee<"u"?Ee:t)[r]}):e)(function(e){if(typeof Ee<"u")return Ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),MA={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},NA=Object.entries(MA);function Kl(e){return String(e)}Kl.open="";Kl.close="";function jA(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function IA(e=!1){let t=jA(e),r=(i,s,l,c)=>{let u="",d=0;do u+=i.substring(d,c)+l,d=c+s.length,c=i.indexOf(s,d);while(~c);return u+i.substring(d)},n=(i,s,l=i)=>{let c=u=>{let d=String(u),m=d.indexOf(s,i.length);return~m?i+r(d,s,l,m)+s:i+d+s};return c.open=i,c.close=s,c},o={isColorSupported:t},a=i=>`\x1B[${i}m`;for(let[i,s]of NA)o[i]=t?n(a(s[0]),a(s[1]),s[2]):Kl;return o}var Wt=IA(!1);function DA(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function Pa(e,t,r,n,o,a,i=": "){let s="",l=0,c=e.next();if(!c.done){s+=t.spacingOuter;let u=r+t.indent;for(;!c.done;){if(s+=u,l++===t.maxWidth){s+="\u2026";break}let d=a(c.value[0],t,u,n,o),m=a(c.value[1],t,u,n,o);s+=d+i+m,c=e.next(),c.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Xl(e,t,r,n,o,a){let i="",s=0,l=e.next();if(!l.done){i+=t.spacingOuter;let c=r+t.indent;for(;!l.done;){if(i+=c,s++===t.maxWidth){i+="\u2026";break}i+=a(l.value,t,c,n,o),l=e.next(),l.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}function Ta(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=c=>c instanceof DataView,l=s(e)?e.byteLength:e.length;if(l>0){i+=t.spacingOuter;let c=r+t.indent;for(let u=0;u<l;u++){if(i+=c,u===t.maxWidth){i+="\u2026";break}(s(e)||u in e)&&(i+=a(s(e)?e.getInt8(u):e[u],t,c,n,o)),u<l-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}function Jl(e,t,r,n,o,a){let i="",s=DA(e,t.compareKeys);if(s.length>0){i+=t.spacingOuter;let l=r+t.indent;for(let c=0;c<s.length;c++){let u=s[c],d=a(u,t,l,n,o),m=a(e[u],t,l,n,o);i+=`${l+d}: ${m}`,c<s.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var FA=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Nl=" ",LA=(e,t,r,n,o,a)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+Nl}[${Ta(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+Nl}{${Jl(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+Nl+a(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},BA=e=>e&&e.$$typeof===FA,kA={serialize:LA,test:BA},$A=" ",ay=new Set(["DOMStringMap","NamedNodeMap"]),UA=/^(?:HTML\w*Collection|NodeList)$/;function HA(e){return ay.has(e)||UA.test(e)}var VA=e=>e&&e.constructor&&!!e.constructor.name&&HA(e.constructor.name);function zA(e){return e.constructor.name==="NamedNodeMap"}var GA=(e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+$A)+(ay.has(i)?`{${Jl(zA(e)?[...e].reduce((s,l)=>(s[l.name]=l.value,s),{}):{...e},t,r,n,o,a)}}`:`[${Ta([...e],t,r,n,o,a)}]`)},YA={serialize:GA,test:VA};function iy(e){return e.replaceAll("<","<").replaceAll(">",">")}function Ql(e,t,r,n,o,a,i){let s=n+r.indent,l=r.colors;return e.map(c=>{let u=t[c],d=i(u,r,s,o,a);return typeof u!="string"&&(d.includes(`
|
|
233
|
+
`)&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+l.prop.open+c+l.prop.close}=${l.value.open}${d}${l.value.close}`}).join("")}function Zl(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?sy(i,t):a(i,t,r,n,o))).join("")}function sy(e,t){let r=t.colors.content;return r.open+iy(e)+r.close}function WA(e,t){let r=t.colors.comment;return`${r.open}<\!--${iy(e)}-->${r.close}`}function eu(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}function tu(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}var KA=1,ly=3,uy=8,cy=11,XA=/^(?:(?:HTML|SVG)\w*)?Element$/;function JA(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function QA(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||JA(e);return r===KA&&(XA.test(t)||o)||r===ly&&t==="Text"||r===uy&&t==="Comment"||r===cy&&t==="DocumentFragment"}var ZA=e=>{var t;return((t=e?.constructor)==null?void 0:t.name)&&QA(e)};function eT(e){return e.nodeType===ly}function tT(e){return e.nodeType===uy}function jl(e){return e.nodeType===cy}var rT=(e,t,r,n,o,a)=>{if(eT(e))return sy(e.data,t);if(tT(e))return WA(e.data,t);let i=jl(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?tu(i,t):eu(i,Ql(jl(e)?[]:Array.from(e.attributes,s=>s.name).sort(),jl(e)?{}:[...e.attributes].reduce((s,l)=>(s[l.name]=l.value,s),{}),t,r+t.indent,n,o,a),Zl(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},nT={serialize:rT,test:ZA},oT="@@__IMMUTABLE_ITERABLE__@@",aT="@@__IMMUTABLE_LIST__@@",iT="@@__IMMUTABLE_KEYED__@@",sT="@@__IMMUTABLE_MAP__@@",yh="@@__IMMUTABLE_ORDERED__@@",lT="@@__IMMUTABLE_RECORD__@@",uT="@@__IMMUTABLE_SEQ__@@",cT="@@__IMMUTABLE_SET__@@",dT="@@__IMMUTABLE_STACK__@@",gn=e=>`Immutable.${e}`,Oa=e=>`[${e}]`,co=" ",bh="\u2026";function pT(e,t,r,n,o,a,i){return++n>t.maxDepth?Oa(gn(i)):`${gn(i)+co}{${Pa(e.entries(),t,r,n,o,a)}}`}function fT(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function mT(e,t,r,n,o,a){let i=gn(e._name||"Record");return++n>t.maxDepth?Oa(i):`${i+co}{${Pa(fT(e),t,r,n,o,a)}}`}function hT(e,t,r,n,o,a){let i=gn("Seq");return++n>t.maxDepth?Oa(i):e[iT]?`${i+co}{${e._iter||e._object?Pa(e.entries(),t,r,n,o,a):bh}}`:`${i+co}[${e._iter||e._array||e._collection||e._iterable?Xl(e.values(),t,r,n,o,a):bh}]`}function Il(e,t,r,n,o,a,i){return++n>t.maxDepth?Oa(gn(i)):`${gn(i)+co}[${Xl(e.values(),t,r,n,o,a)}]`}var yT=(e,t,r,n,o,a)=>e[sT]?pT(e,t,r,n,o,a,e[yh]?"OrderedMap":"Map"):e[aT]?Il(e,t,r,n,o,a,"List"):e[cT]?Il(e,t,r,n,o,a,e[yh]?"OrderedSet":"Set"):e[dT]?Il(e,t,r,n,o,a,"Stack"):e[uT]?hT(e,t,r,n,o,a):mT(e,t,r,n,o,a),bT=e=>e&&(e[oT]===!0||e[lT]===!0),gT={serialize:yT,test:bT},gh={exports:{}},be={},vh;function vT(){if(vh)return be;vh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case e:switch(y=y.type,y){case r:case o:case n:case c:case u:return y;default:switch(y=y&&y.$$typeof,y){case s:case i:case l:case m:case d:case a:return y;default:return b}}case t:return b}}}return be.ContextConsumer=i,be.ContextProvider=a,be.Element=e,be.ForwardRef=l,be.Fragment=r,be.Lazy=m,be.Memo=d,be.Portal=t,be.Profiler=o,be.StrictMode=n,be.Suspense=c,be.SuspenseList=u,be.isAsyncMode=function(){return!1},be.isConcurrentMode=function(){return!1},be.isContextConsumer=function(y){return g(y)===i},be.isContextProvider=function(y){return g(y)===a},be.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},be.isForwardRef=function(y){return g(y)===l},be.isFragment=function(y){return g(y)===r},be.isLazy=function(y){return g(y)===m},be.isMemo=function(y){return g(y)===d},be.isPortal=function(y){return g(y)===t},be.isProfiler=function(y){return g(y)===o},be.isStrictMode=function(y){return g(y)===n},be.isSuspense=function(y){return g(y)===c},be.isSuspenseList=function(y){return g(y)===u},be.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===c||y===u||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===d||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===h||y.getModuleId!==void 0)},be.typeOf=g,be}var Eh;function ET(){return Eh||(Eh=1,gh.exports=vT()),gh.exports}var Br=ET();function dy(e,t=[]){if(Array.isArray(e))for(let r of e)dy(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function _h(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Br.isFragment(e))return"React.Fragment";if(Br.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Br.isContextProvider(e))return"Context.Provider";if(Br.isContextConsumer(e))return"Context.Consumer";if(Br.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Br.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function _T(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var RT=(e,t,r,n,o,a)=>++n>t.maxDepth?tu(_h(e),t):eu(_h(e),Ql(_T(e),e.props,t,r+t.indent,n,o,a),Zl(dy(e.props.children),t,r+t.indent,n,o,a),t,r),wT=e=>e!=null&&Br.isElement(e),CT={serialize:RT,test:wT},ST=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function AT(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var TT=(e,t,r,n,o,a)=>++n>t.maxDepth?tu(e.type,t):eu(e.type,e.props?Ql(AT(e),e.props,t,r+t.indent,n,o,a):"",e.children?Zl(e.children,t,r+t.indent,n,o,a):"",t,r),PT=e=>e&&e.$$typeof===ST,OT={serialize:TT,test:PT},py=Object.prototype.toString,qT=Date.prototype.toISOString,xT=Error.prototype.toString,Rh=RegExp.prototype.toString;function Dl(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function MT(e){return typeof window<"u"&&e===window}var NT=/^Symbol\((.*)\)(.*)$/,jT=/\n/g,fy=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function IT(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function DT(e){return Object.is(e,-0)?"-0":String(e)}function FT(e){return`${e}n`}function wh(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Ch(e){return String(e).replace(NT,"Symbol($1)")}function Sh(e){return`[${xT.call(e)}]`}function my(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return DT(e);if(o==="bigint")return FT(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return wh(e,t);if(o==="symbol")return Ch(e);let a=py.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?wh(e,t):a==="[object Symbol]"?Ch(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":qT.call(e):a==="[object Error]"?Sh(e):a==="[object RegExp]"?r?Rh.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Rh.call(e):e instanceof Error?Sh(e):null}function hy(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return pr(e.toJSON(),t,r,n,o,!0);let l=py.call(e);return l==="[object Arguments]"?i?"[Arguments]":`${s?"":"Arguments "}[${Ta(e,t,r,n,o,pr)}]`:IT(l)?i?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Ta(e,t,r,n,o,pr)}]`:l==="[object Map]"?i?"[Map]":`Map {${Pa(e.entries(),t,r,n,o,pr," => ")}}`:l==="[object Set]"?i?"[Set]":`Set {${Xl(e.values(),t,r,n,o,pr)}}`:i||MT(e)?`[${Dl(e)}]`:`${s||!t.printBasicPrototype&&Dl(e)==="Object"?"":`${Dl(e)} `}{${Jl(e,t,r,n,o,pr)}}`}function LT(e){return e.serialize!=null}function yy(e,t,r,n,o,a){let i;try{i=LT(e)?e.serialize(t,r,n,o,a,pr):e.print(t,s=>pr(s,r,n,o,a),s=>{let l=n+r.indent;return l+s.replaceAll(jT,`
|
|
234
|
+
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new fy(s.message,s.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function by(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new fy(n.message,n.stack)}return null}function pr(e,t,r,n,o,a){let i=by(t.plugins,e);if(i!==null)return yy(i,e,t,r,n,o);let s=my(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:hy(e,t,r,n,o,a)}var ru={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},gy=Object.keys(ru),St={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ru};function BT(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(St,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function kT(){return gy.reduce((e,t)=>{let r=ru[t],n=r&&Wt[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function $T(){return gy.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function vy(e){return e?.printFunctionName??St.printFunctionName}function Ey(e){return e?.escapeRegex??St.escapeRegex}function _y(e){return e?.escapeString??St.escapeString}function Ah(e){return{callToJSON:e?.callToJSON??St.callToJSON,colors:e?.highlight?kT():$T(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:St.compareKeys,escapeRegex:Ey(e),escapeString:_y(e),indent:e?.min?"":UT(e?.indent??St.indent),maxDepth:e?.maxDepth??St.maxDepth,maxWidth:e?.maxWidth??St.maxWidth,min:e?.min??St.min,plugins:e?.plugins??St.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:vy(e),spacingInner:e?.min?" ":`
|
|
235
235
|
`,spacingOuter:e?.min?"":`
|
|
236
|
-
`}}function UT(e){return Array.from({length:e+1}).join(" ")}function It(e,t){if(t&&(BT(t),t.plugins)){let n=
|
|
237
|
-
`)}function wy(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=At(r.map(u=>[u,e.getAttribute(u)]),t,fP," ")),t.truncate-=s.length;let l=t.truncate,c=Ul(e.children,t);return c&&c.length>l&&(c=`${vn}(${e.children.length})`),`${o}${s}${a}${c}${i}`}var mP=typeof Symbol=="function"&&typeof Symbol.for=="function",Ll=mP?Symbol.for("chai/inspect"):"@@chai/inspect",hn=!1;try{let e=xA("util");hn=e.inspect?e.inspect.custom:!1}catch{hn=!1}var Nh=new WeakMap,jh={},Ih={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Ph,Number:Ph,bigint:Oh,BigInt:Oh,string:xh,String:xh,function:Th,Function:Th,symbol:Mh,Symbol:Mh,Array:WT,Date:XT,Map:ZT,Set:nP,RegExp:tP,Promise:lP,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:cP,Int8Array:Gt,Uint8Array:Gt,Uint8ClampedArray:Gt,Int16Array:Gt,Uint16Array:Gt,Int32Array:Gt,Uint32Array:Gt,Float32Array:Gt,Float64Array:Gt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:pP,HTMLCollection:Ul,NodeList:Ul},hP=(e,t,r)=>Ll in e&&typeof e[Ll]=="function"?e[Ll](t):hn&&hn in e&&typeof e[hn]=="function"?e[hn](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Nh.has(e.constructor)?Nh.get(e.constructor)(e,t):jh[r]?jh[r](e,t):"",yP=Object.prototype.toString;function Hl(e,t={}){let r=zT(t,Hl),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=yP.call(e).slice(8,-1)),o in Ih)return Ih[o](e,r);if(n&&e){let i=hP(e,r,o);if(i)return typeof i=="string"?i:Hl(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Aa(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?wy(e,r):"constructor"in e?e.constructor!==Object?uP(e,r):Aa(e,r):e===Object(e)?Aa(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:bP,DOMCollection:gP,DOMElement:vP,Immutable:EP,ReactElement:_P,ReactTestComponent:RP}=_y,Dh=[RP,_P,vP,gP,EP,bP];function fo(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=It(e,{maxDepth:t,escapeString:!1,plugins:Dh,...n})}catch{a=It(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Dh,...n})}return a.length>=o&&t>1?fo(e,Math.floor(t/2)):a}var wP=/%[sdjifoOc%]/g;function CP(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(uo(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(wP,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?uo(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return uo(e[r++],{showHidden:!0,showProxy:!0});case"%O":return uo(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let s=i.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${uo(a)}`;return o}function uo(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Hl(e,t)}function SP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function AP(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Vl(e){return Object.prototype.toString.apply(e).slice(8,-1)}function TP(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Cy(e){let t=new Set;return AP(e)?[]:(TP(e,t),Array.from(t))}var Sy={forceWritable:!1};function Fh(e,t=Sy){return zl(e,new WeakMap,t)}function zl(e,t,r=Sy){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=zl(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let a=Cy(e);for(let i of a){let s=Object.getOwnPropertyDescriptor(e,i);if(!s)continue;let l=zl(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:s.enumerable,configurable:!0,writable:!0,value:l}):"get"in s?Object.defineProperty(o,i,{...s,get(){return l}}):Object.defineProperty(o,i,{...s,value:l})}return o}return e}function Lh(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var Qe=-1,We=1,xe=0,Te=class{constructor(e,t){Ae(this,0);Ae(this,1);this[0]=e,this[1]=t}},PP=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o},Ay=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o},Bh=function(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let a=0,i=1;for(;;){let s=e.substring(o-i),l=t.indexOf(s);if(l===-1)return a;i+=l,(l===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}},OP=function(e){let t=!1,r=[],n=0,o=null,a=0,i=0,s=0,l=0,c=0;for(;a<e.length;)e[a][0]===xe?(r[n++]=a,i=l,s=c,l=0,c=0,o=e[a][1]):(e[a][0]===We?l+=e[a][1].length:c+=e[a][1].length,o&&o.length<=Math.max(i,s)&&o.length<=Math.max(l,c)&&(e.splice(r[n-1],0,new Te(Qe,o)),e[r[n-1]+1][0]=We,n--,n--,a=n>0?r[n-1]:-1,i=0,s=0,l=0,c=0,o=null,t=!0)),a++;for(t&&Ty(e),MP(e),a=1;a<e.length;){if(e[a-1][0]===Qe&&e[a][0]===We){let u=e[a-1][1],d=e[a][1],m=Bh(u,d),p=Bh(d,u);m>=p?(m>=u.length/2||m>=d.length/2)&&(e.splice(a,0,new Te(xe,d.substring(0,m))),e[a-1][1]=u.substring(0,u.length-m),e[a+1][1]=d.substring(m),a++):(p>=u.length/2||p>=d.length/2)&&(e.splice(a,0,new Te(xe,u.substring(0,p))),e[a-1][0]=We,e[a-1][1]=d.substring(0,d.length-p),e[a+1][0]=Qe,e[a+1][1]=u.substring(p),a++),a++}a++}},kh=/[^a-z0-9]/i,$h=/\s/,Uh=/[\r\n]/,qP=/\n\r?\n$/,xP=/^\r?\n\r?\n/;function MP(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===xe&&e[t+1][0]===xe){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],a=Ay(r,n);if(a){let u=n.substring(n.length-a);r=r.substring(0,r.length-a),n=u+n.substring(0,n.length-a),o=u+o}let i=r,s=n,l=o,c=Ca(r,n)+Ca(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let u=Ca(r,n)+Ca(n,o);u>=c&&(c=u,i=r,s=n,l=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=s,l?e[t+1][1]=l:(e.splice(t+1,1),t--))}t++}}function Ty(e){e.push(new Te(xe,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case We:n++,a+=e[t][1],t++;break;case Qe:r++,o+=e[t][1],t++;break;case xe:r+n>1?(r!==0&&n!==0&&(i=PP(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===xe?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new Te(xe,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=Ay(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Te(Qe,o)),t++),a.length&&(e.splice(t,0,new Te(We,a)),t++),t++):t!==0&&e[t-1][0]===xe?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===xe&&e[t+1][0]===xe&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Ty(e)}function Ca(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(kh),a=n.match(kh),i=o&&r.match($h),s=a&&n.match($h),l=i&&r.match(Uh),c=s&&n.match(Uh),u=l&&e.match(qP),d=c&&t.match(xP);return u||d?5:l||c?4:o&&!i&&s?3:i||s?2:o||a?1:0}var Py="Compared values have no visual difference.",NP="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Sa={},Hh;function jP(){if(Hh)return Sa;Hh=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=m;let e="diff-sequences",t=0,r=(p,h,g,y,b)=>{let v=0;for(;p<h&&g<y&&b(p,g);)p+=1,g+=1,v+=1;return v},n=(p,h,g,y,b)=>{let v=0;for(;p<=h&&g<=y&&b(h,y);)h-=1,y-=1,v+=1;return v},o=(p,h,g,y,b,v,C)=>{let S=0,A=-p,_=v[S],E=_;v[S]+=r(_+1,h,y+_-A+1,g,b);let R=p<C?p:C;for(S+=1,A+=2;S<=R;S+=1,A+=2){if(S!==p&&E<v[S])_=v[S];else if(_=E+1,h<=_)return S-1;E=v[S],v[S]=_+r(_+1,h,y+_-A+1,g,b)}return C},a=(p,h,g,y,b,v,C)=>{let S=0,A=p,_=v[S],E=_;v[S]-=n(h,_-1,g,y+_-A-1,b);let R=p<C?p:C;for(S+=1,A-=2;S<=R;S+=1,A-=2){if(S!==p&&v[S]<E)_=v[S];else if(_=E-1,_<h)return S-1;E=v[S],v[S]=_-n(h,_-1,g,y+_-A-1,b)}return C},i=(p,h,g,y,b,v,C,S,A,_,E)=>{let R=y-h,P=g-h,N=b-y-P,B=-N-(p-1),j=-N+(p-1),F=t,T=p<S?p:S;for(let M=0,D=-p;M<=T;M+=1,D+=2){let Y=M===0||M!==p&&F<C[M],G=Y?C[M]:F,J=Y?G:G+1,re=R+J-D,te=r(J+1,g,re+1,b,v),H=J+te;if(F=C[M],C[M]=H,B<=D&&D<=j){let U=(p-1-(D+N))/2;if(U<=_&&A[U]-1<=H){let z=R+G-(Y?D+1:D-1),K=n(h,G,y,z,v),W=G-K,ee=z-K,se=W+1,ze=ee+1;E.nChangePreceding=p-1,p-1===se+ze-h-y?(E.aEndPreceding=h,E.bEndPreceding=y):(E.aEndPreceding=se,E.bEndPreceding=ze),E.nCommonPreceding=K,K!==0&&(E.aCommonPreceding=se,E.bCommonPreceding=ze),E.nCommonFollowing=te,te!==0&&(E.aCommonFollowing=J+1,E.bCommonFollowing=re+1);let L=H+1,X=re+te+1;return E.nChangeFollowing=p-1,p-1===g+b-L-X?(E.aStartFollowing=g,E.bStartFollowing=b):(E.aStartFollowing=L,E.bStartFollowing=X),!0}}}return!1},s=(p,h,g,y,b,v,C,S,A,_,E)=>{let R=b-g,P=g-h,N=b-y-P,B=N-p,j=N+p,F=t,T=p<_?p:_;for(let M=0,D=p;M<=T;M+=1,D-=2){let Y=M===0||M!==p&&A[M]<F,G=Y?A[M]:F,J=Y?G:G-1,re=R+J-D,te=n(h,J-1,y,re-1,v),H=J-te;if(F=A[M],A[M]=H,B<=D&&D<=j){let U=(p+(D-N))/2;if(U<=S&&H-1<=C[U]){let z=re-te;if(E.nChangePreceding=p,p===H+z-h-y?(E.aEndPreceding=h,E.bEndPreceding=y):(E.aEndPreceding=H,E.bEndPreceding=z),E.nCommonPreceding=te,te!==0&&(E.aCommonPreceding=H,E.bCommonPreceding=z),E.nChangeFollowing=p-1,p===1)E.nCommonFollowing=0,E.aStartFollowing=g,E.bStartFollowing=b;else{let K=R+G-(Y?D-1:D+1),W=r(G,g,K,b,v);E.nCommonFollowing=W,W!==0&&(E.aCommonFollowing=G,E.bCommonFollowing=K);let ee=G+W,se=K+W;p-1===g+b-ee-se?(E.aStartFollowing=g,E.bStartFollowing=b):(E.aStartFollowing=ee,E.bStartFollowing=se)}return!0}}}return!1},l=(p,h,g,y,b,v,C,S,A)=>{let _=y-h,E=b-g,R=g-h,P=b-y,N=P-R,B=R,j=R;if(C[0]=h-1,S[0]=g,N%2===0){let F=(p||N)/2,T=(R+P)/2;for(let M=1;M<=T;M+=1)if(B=o(M,g,b,_,v,C,B),M<F)j=a(M,h,y,E,v,S,j);else if(s(M,h,g,y,b,v,C,B,S,j,A))return}else{let F=((p||N)+1)/2,T=(R+P+1)/2,M=1;for(B=o(M,g,b,_,v,C,B),M+=1;M<=T;M+=1)if(j=a(M-1,h,y,E,v,S,j),M<F)B=o(M,g,b,_,v,C,B);else if(i(M,h,g,y,b,v,C,B,S,j,A))return}throw new Error(`${e}: no overlap aStart=${h} aEnd=${g} bStart=${y} bEnd=${b}`)},c=(p,h,g,y,b,v,C,S,A,_)=>{if(b-y<g-h){if(v=!v,v&&C.length===1){let{foundSubsequence:U,isCommon:z}=C[0];C[1]={foundSubsequence:(K,W,ee)=>{U(K,ee,W)},isCommon:(K,W)=>z(W,K)}}let te=h,H=g;h=y,g=b,y=te,b=H}let{foundSubsequence:E,isCommon:R}=C[v?1:0];l(p,h,g,y,b,R,S,A,_);let{nChangePreceding:P,aEndPreceding:N,bEndPreceding:B,nCommonPreceding:j,aCommonPreceding:F,bCommonPreceding:T,nCommonFollowing:M,aCommonFollowing:D,bCommonFollowing:Y,nChangeFollowing:G,aStartFollowing:J,bStartFollowing:re}=_;h<N&&y<B&&c(P,h,N,y,B,v,C,S,A,_),j!==0&&E(j,F,T),M!==0&&E(M,D,Y),J<g&&re<b&&c(G,J,g,re,b,v,C,S,A,_)},u=(p,h)=>{if(typeof h!="number")throw new TypeError(`${e}: ${p} typeof ${typeof h} is not a number`);if(!Number.isSafeInteger(h))throw new RangeError(`${e}: ${p} value ${h} is not a safe integer`);if(h<0)throw new RangeError(`${e}: ${p} value ${h} is a negative integer`)},d=(p,h)=>{let g=typeof h;if(g!=="function")throw new TypeError(`${e}: ${p} typeof ${g} is not a function`)};function m(p,h,g,y){u("aLength",p),u("bLength",h),d("isCommon",g),d("foundSubsequence",y);let b=r(0,p,0,h,g);if(b!==0&&y(b,0,0),p!==b||h!==b){let v=b,C=b,S=n(v,p-1,C,h-1,g),A=p-S,_=h-S,E=b+S;p!==E&&h!==E&&c(0,v,A,C,_,!1,[{foundSubsequence:y,isCommon:g}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),S!==0&&y(S,A,_)}}return Sa}var IP=jP(),Oy=SP(IP);function DP(e,t){return e.replace(/\s+$/,r=>t(r))}function nu(e,t,r,n,o,a){return e.length!==0?r(`${n} ${DP(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function qy(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return nu(e,t,r,n,o,a)}function xy(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return nu(e,t,r,n,o,a)}function My(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return nu(e,t,r,n,o,a)}function Vh(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function FP(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,s=0,l=0;for(;l!==r;){let S=l;for(;l!==r&&e[l][0]===xe;)l+=1;if(S!==l)if(S===0)l>n&&(a-=l-n,i=!0);else if(l===r){let A=l-S;A>n&&(a-=A-n,i=!0)}else{let A=l-S;A>o&&(a-=A-o,s+=1)}for(;l!==r&&e[l][0]!==xe;)l+=1}let c=s!==0||i;s!==0?a+=s+1:i&&(a+=1);let u=a-1,d=[],m=0;c&&d.push("");let p=0,h=0,g=0,y=0,b=S=>{let A=d.length;d.push(My(S,A===0||A===u,t)),g+=1,y+=1},v=S=>{let A=d.length;d.push(qy(S,A===0||A===u,t)),g+=1},C=S=>{let A=d.length;d.push(xy(S,A===0||A===u,t)),y+=1};for(l=0;l!==r;){let S=l;for(;l!==r&&e[l][0]===xe;)l+=1;if(S!==l)if(S===0){l>n&&(S=l-n,p=S,h=S,g=p,y=h);for(let A=S;A!==l;A+=1)b(e[A][1])}else if(l===r){let A=l-S>n?S+n:l;for(let _=S;_!==A;_+=1)b(e[_][1])}else{let A=l-S;if(A>o){let _=S+n;for(let R=S;R!==_;R+=1)b(e[R][1]);d[m]=Vh(p,g,h,y,t),m=d.length,d.push("");let E=A-o;p=g+E,h=y+E,g=p,y=h;for(let R=l-n;R!==l;R+=1)b(e[R][1])}else for(let _=S;_!==l;_+=1)b(e[_][1])}for(;l!==r&&e[l][0]===Qe;)v(e[l][1]),l+=1;for(;l!==r&&e[l][0]===We;)C(e[l][1]),l+=1}return c&&(d[m]=Vh(p,g,h,y,t)),d.join(`
|
|
238
|
-
`)}function LP(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Qe:return
|
|
239
|
-
`)}var Bl=e=>e,
|
|
236
|
+
`}}function UT(e){return Array.from({length:e+1}).join(" ")}function It(e,t){if(t&&(BT(t),t.plugins)){let n=by(t.plugins,e);if(n!==null)return yy(n,e,Ah(t),"",0,[])}let r=my(e,vy(t),Ey(t),_y(t));return r!==null?r:hy(e,Ah(t),"",0,[])}var Ry={AsymmetricMatcher:kA,DOMCollection:YA,DOMElement:nT,Immutable:gT,ReactElement:CT,ReactTestComponent:OT},Th={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},HT={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},vn="\u2026";function VT(e,t){let r=Th[HT[t]]||Th[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function zT({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:s=[],truncate:l=1/0,stylize:c=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(l),seen:s,inspect:u,stylize:c};return d.colors&&(d.stylize=VT),d}function GT(e){return e>="\uD800"&&e<="\uDBFF"}function fr(e,t,r=vn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&>(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}function At(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",s="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,d=c+2===e.length;l=`${vn}(${e.length-c})`;let m=e[c];t.truncate=a-i.length-(u?0:n.length);let p=s||r(m,t)+(u?"":n),h=i.length+p.length,g=h+l.length;if(u&&h>a&&i.length+l.length<=a||!u&&!d&&g>a||(s=u?"":r(e[c+1],t)+(d?"":n),!u&&d&&g>a&&h+s.length>a))break;if(i+=p,!u&&!d&&h+s.length>=a){l=`${vn}(${e.length-c-1})`;break}l=""}return`${i}${l}`}function YT(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function po([e,t],r){return r.truncate-=2,typeof e=="string"?e=YT(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function WT(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=At(e,t);t.truncate-=n.length;let o="";return r.length&&(o=At(r.map(a=>[a,e[a]]),t,po)),`[ ${n}${o?`, ${o}`:""} ]`}var KT=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Gt(e,t){let r=KT(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){let s=`${t.stylize(fr(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=s.length,e[i]!==e.length&&t.truncate<=3){o+=`${vn}(${e.length-e[i]+1})`;break}o+=s}let a="";return n.length&&(a=At(n.map(i=>[i,e[i]]),t,po)),`${r}[ ${o}${a?`, ${a}`:""} ]`}function XT(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${fr(n[1],t.truncate-o.length-1)}`,"date")}function Ph(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${fr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function JT([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function QT(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function ZT(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${At(QT(e),t,JT)} }`)}var eP=Number.isNaN||(e=>e!==e);function Oh(e,t){return eP(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(fr(String(e),t.truncate),"number")}function qh(e,t){let r=fr(e.toString(),t.truncate-1);return r!==vn&&(r+="n"),t.stylize(r,"bigint")}function tP(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${fr(o,n)}/${r}`,"regexp")}function rP(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function nP(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${At(rP(e),t)} }`)}var xh=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),oP={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},aP=16,iP=4;function sP(e){return oP[e]||`\\u${`0000${e.charCodeAt(0).toString(aP)}`.slice(-iP)}`}function Mh(e,t){return xh.test(e)&&(e=e.replace(xh,sP)),t.stylize(`'${fr(e,t.truncate-2)}'`,"string")}function Nh(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var wy=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(wy=(n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`})}catch{}var lP=wy;function Aa(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=At(r.map(s=>[s,e[s]]),t,po),a=At(n.map(s=>[s,e[s]]),t,po);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}var Fl=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function uP(e,t){let r="";return Fl&&Fl in e&&(r=e[Fl]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Aa(e,t)}`}function cP(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${At(e,t)} ]`)}var dP=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function pP(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>dP.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=fr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=At(r.map(i=>[i,e[i]]),t,po);return`${n}${o}${a?` { ${a} }`:""}`}function fP([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Ul(e,t){return At(e,t,Cy,`
|
|
237
|
+
`)}function Cy(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=At(r.map(u=>[u,e.getAttribute(u)]),t,fP," ")),t.truncate-=s.length;let l=t.truncate,c=Ul(e.children,t);return c&&c.length>l&&(c=`${vn}(${e.children.length})`),`${o}${s}${a}${c}${i}`}var mP=typeof Symbol=="function"&&typeof Symbol.for=="function",Ll=mP?Symbol.for("chai/inspect"):"@@chai/inspect",hn=!1;try{let e=xA("util");hn=e.inspect?e.inspect.custom:!1}catch{hn=!1}var jh=new WeakMap,Ih={},Dh={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Oh,Number:Oh,bigint:qh,BigInt:qh,string:Mh,String:Mh,function:Ph,Function:Ph,symbol:Nh,Symbol:Nh,Array:WT,Date:XT,Map:ZT,Set:nP,RegExp:tP,Promise:lP,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:cP,Int8Array:Gt,Uint8Array:Gt,Uint8ClampedArray:Gt,Int16Array:Gt,Uint16Array:Gt,Int32Array:Gt,Uint32Array:Gt,Float32Array:Gt,Float64Array:Gt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:pP,HTMLCollection:Ul,NodeList:Ul},hP=(e,t,r)=>Ll in e&&typeof e[Ll]=="function"?e[Ll](t):hn&&hn in e&&typeof e[hn]=="function"?e[hn](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&jh.has(e.constructor)?jh.get(e.constructor)(e,t):Ih[r]?Ih[r](e,t):"",yP=Object.prototype.toString;function Hl(e,t={}){let r=zT(t,Hl),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=yP.call(e).slice(8,-1)),o in Dh)return Dh[o](e,r);if(n&&e){let i=hP(e,r,o);if(i)return typeof i=="string"?i:Hl(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Aa(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Cy(e,r):"constructor"in e?e.constructor!==Object?uP(e,r):Aa(e,r):e===Object(e)?Aa(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:bP,DOMCollection:gP,DOMElement:vP,Immutable:EP,ReactElement:_P,ReactTestComponent:RP}=Ry,Fh=[RP,_P,vP,gP,EP,bP];function fo(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=It(e,{maxDepth:t,escapeString:!1,plugins:Fh,...n})}catch{a=It(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Fh,...n})}return a.length>=o&&t>1?fo(e,Math.floor(t/2)):a}var wP=/%[sdjifoOc%]/g;function CP(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(uo(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(wP,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?uo(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return uo(e[r++],{showHidden:!0,showProxy:!0});case"%O":return uo(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let s=i.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${uo(a)}`;return o}function uo(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Hl(e,t)}function SP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function AP(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Vl(e){return Object.prototype.toString.apply(e).slice(8,-1)}function TP(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Sy(e){let t=new Set;return AP(e)?[]:(TP(e,t),Array.from(t))}var Ay={forceWritable:!1};function Lh(e,t=Ay){return zl(e,new WeakMap,t)}function zl(e,t,r=Ay){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=zl(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let a=Sy(e);for(let i of a){let s=Object.getOwnPropertyDescriptor(e,i);if(!s)continue;let l=zl(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:s.enumerable,configurable:!0,writable:!0,value:l}):"get"in s?Object.defineProperty(o,i,{...s,get(){return l}}):Object.defineProperty(o,i,{...s,value:l})}return o}return e}function Bh(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var Qe=-1,We=1,xe=0,Te=class{constructor(e,t){Ae(this,0);Ae(this,1);this[0]=e,this[1]=t}},PP=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o},Ty=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o},kh=function(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let a=0,i=1;for(;;){let s=e.substring(o-i),l=t.indexOf(s);if(l===-1)return a;i+=l,(l===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}},OP=function(e){let t=!1,r=[],n=0,o=null,a=0,i=0,s=0,l=0,c=0;for(;a<e.length;)e[a][0]===xe?(r[n++]=a,i=l,s=c,l=0,c=0,o=e[a][1]):(e[a][0]===We?l+=e[a][1].length:c+=e[a][1].length,o&&o.length<=Math.max(i,s)&&o.length<=Math.max(l,c)&&(e.splice(r[n-1],0,new Te(Qe,o)),e[r[n-1]+1][0]=We,n--,n--,a=n>0?r[n-1]:-1,i=0,s=0,l=0,c=0,o=null,t=!0)),a++;for(t&&Py(e),MP(e),a=1;a<e.length;){if(e[a-1][0]===Qe&&e[a][0]===We){let u=e[a-1][1],d=e[a][1],m=kh(u,d),p=kh(d,u);m>=p?(m>=u.length/2||m>=d.length/2)&&(e.splice(a,0,new Te(xe,d.substring(0,m))),e[a-1][1]=u.substring(0,u.length-m),e[a+1][1]=d.substring(m),a++):(p>=u.length/2||p>=d.length/2)&&(e.splice(a,0,new Te(xe,u.substring(0,p))),e[a-1][0]=We,e[a-1][1]=d.substring(0,d.length-p),e[a+1][0]=Qe,e[a+1][1]=u.substring(p),a++),a++}a++}},$h=/[^a-z0-9]/i,Uh=/\s/,Hh=/[\r\n]/,qP=/\n\r?\n$/,xP=/^\r?\n\r?\n/;function MP(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===xe&&e[t+1][0]===xe){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],a=Ty(r,n);if(a){let u=n.substring(n.length-a);r=r.substring(0,r.length-a),n=u+n.substring(0,n.length-a),o=u+o}let i=r,s=n,l=o,c=Ca(r,n)+Ca(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let u=Ca(r,n)+Ca(n,o);u>=c&&(c=u,i=r,s=n,l=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=s,l?e[t+1][1]=l:(e.splice(t+1,1),t--))}t++}}function Py(e){e.push(new Te(xe,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case We:n++,a+=e[t][1],t++;break;case Qe:r++,o+=e[t][1],t++;break;case xe:r+n>1?(r!==0&&n!==0&&(i=PP(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===xe?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new Te(xe,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=Ty(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Te(Qe,o)),t++),a.length&&(e.splice(t,0,new Te(We,a)),t++),t++):t!==0&&e[t-1][0]===xe?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===xe&&e[t+1][0]===xe&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Py(e)}function Ca(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match($h),a=n.match($h),i=o&&r.match(Uh),s=a&&n.match(Uh),l=i&&r.match(Hh),c=s&&n.match(Hh),u=l&&e.match(qP),d=c&&t.match(xP);return u||d?5:l||c?4:o&&!i&&s?3:i||s?2:o||a?1:0}var Oy="Compared values have no visual difference.",NP="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Sa={},Vh;function jP(){if(Vh)return Sa;Vh=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=m;let e="diff-sequences",t=0,r=(p,h,g,y,b)=>{let v=0;for(;p<h&&g<y&&b(p,g);)p+=1,g+=1,v+=1;return v},n=(p,h,g,y,b)=>{let v=0;for(;p<=h&&g<=y&&b(h,y);)h-=1,y-=1,v+=1;return v},o=(p,h,g,y,b,v,C)=>{let S=0,A=-p,_=v[S],E=_;v[S]+=r(_+1,h,y+_-A+1,g,b);let R=p<C?p:C;for(S+=1,A+=2;S<=R;S+=1,A+=2){if(S!==p&&E<v[S])_=v[S];else if(_=E+1,h<=_)return S-1;E=v[S],v[S]=_+r(_+1,h,y+_-A+1,g,b)}return C},a=(p,h,g,y,b,v,C)=>{let S=0,A=p,_=v[S],E=_;v[S]-=n(h,_-1,g,y+_-A-1,b);let R=p<C?p:C;for(S+=1,A-=2;S<=R;S+=1,A-=2){if(S!==p&&v[S]<E)_=v[S];else if(_=E-1,_<h)return S-1;E=v[S],v[S]=_-n(h,_-1,g,y+_-A-1,b)}return C},i=(p,h,g,y,b,v,C,S,A,_,E)=>{let R=y-h,P=g-h,N=b-y-P,B=-N-(p-1),j=-N+(p-1),F=t,T=p<S?p:S;for(let M=0,D=-p;M<=T;M+=1,D+=2){let Y=M===0||M!==p&&F<C[M],G=Y?C[M]:F,J=Y?G:G+1,re=R+J-D,te=r(J+1,g,re+1,b,v),H=J+te;if(F=C[M],C[M]=H,B<=D&&D<=j){let U=(p-1-(D+N))/2;if(U<=_&&A[U]-1<=H){let z=R+G-(Y?D+1:D-1),K=n(h,G,y,z,v),W=G-K,ee=z-K,se=W+1,ze=ee+1;E.nChangePreceding=p-1,p-1===se+ze-h-y?(E.aEndPreceding=h,E.bEndPreceding=y):(E.aEndPreceding=se,E.bEndPreceding=ze),E.nCommonPreceding=K,K!==0&&(E.aCommonPreceding=se,E.bCommonPreceding=ze),E.nCommonFollowing=te,te!==0&&(E.aCommonFollowing=J+1,E.bCommonFollowing=re+1);let L=H+1,X=re+te+1;return E.nChangeFollowing=p-1,p-1===g+b-L-X?(E.aStartFollowing=g,E.bStartFollowing=b):(E.aStartFollowing=L,E.bStartFollowing=X),!0}}}return!1},s=(p,h,g,y,b,v,C,S,A,_,E)=>{let R=b-g,P=g-h,N=b-y-P,B=N-p,j=N+p,F=t,T=p<_?p:_;for(let M=0,D=p;M<=T;M+=1,D-=2){let Y=M===0||M!==p&&A[M]<F,G=Y?A[M]:F,J=Y?G:G-1,re=R+J-D,te=n(h,J-1,y,re-1,v),H=J-te;if(F=A[M],A[M]=H,B<=D&&D<=j){let U=(p+(D-N))/2;if(U<=S&&H-1<=C[U]){let z=re-te;if(E.nChangePreceding=p,p===H+z-h-y?(E.aEndPreceding=h,E.bEndPreceding=y):(E.aEndPreceding=H,E.bEndPreceding=z),E.nCommonPreceding=te,te!==0&&(E.aCommonPreceding=H,E.bCommonPreceding=z),E.nChangeFollowing=p-1,p===1)E.nCommonFollowing=0,E.aStartFollowing=g,E.bStartFollowing=b;else{let K=R+G-(Y?D-1:D+1),W=r(G,g,K,b,v);E.nCommonFollowing=W,W!==0&&(E.aCommonFollowing=G,E.bCommonFollowing=K);let ee=G+W,se=K+W;p-1===g+b-ee-se?(E.aStartFollowing=g,E.bStartFollowing=b):(E.aStartFollowing=ee,E.bStartFollowing=se)}return!0}}}return!1},l=(p,h,g,y,b,v,C,S,A)=>{let _=y-h,E=b-g,R=g-h,P=b-y,N=P-R,B=R,j=R;if(C[0]=h-1,S[0]=g,N%2===0){let F=(p||N)/2,T=(R+P)/2;for(let M=1;M<=T;M+=1)if(B=o(M,g,b,_,v,C,B),M<F)j=a(M,h,y,E,v,S,j);else if(s(M,h,g,y,b,v,C,B,S,j,A))return}else{let F=((p||N)+1)/2,T=(R+P+1)/2,M=1;for(B=o(M,g,b,_,v,C,B),M+=1;M<=T;M+=1)if(j=a(M-1,h,y,E,v,S,j),M<F)B=o(M,g,b,_,v,C,B);else if(i(M,h,g,y,b,v,C,B,S,j,A))return}throw new Error(`${e}: no overlap aStart=${h} aEnd=${g} bStart=${y} bEnd=${b}`)},c=(p,h,g,y,b,v,C,S,A,_)=>{if(b-y<g-h){if(v=!v,v&&C.length===1){let{foundSubsequence:U,isCommon:z}=C[0];C[1]={foundSubsequence:(K,W,ee)=>{U(K,ee,W)},isCommon:(K,W)=>z(W,K)}}let te=h,H=g;h=y,g=b,y=te,b=H}let{foundSubsequence:E,isCommon:R}=C[v?1:0];l(p,h,g,y,b,R,S,A,_);let{nChangePreceding:P,aEndPreceding:N,bEndPreceding:B,nCommonPreceding:j,aCommonPreceding:F,bCommonPreceding:T,nCommonFollowing:M,aCommonFollowing:D,bCommonFollowing:Y,nChangeFollowing:G,aStartFollowing:J,bStartFollowing:re}=_;h<N&&y<B&&c(P,h,N,y,B,v,C,S,A,_),j!==0&&E(j,F,T),M!==0&&E(M,D,Y),J<g&&re<b&&c(G,J,g,re,b,v,C,S,A,_)},u=(p,h)=>{if(typeof h!="number")throw new TypeError(`${e}: ${p} typeof ${typeof h} is not a number`);if(!Number.isSafeInteger(h))throw new RangeError(`${e}: ${p} value ${h} is not a safe integer`);if(h<0)throw new RangeError(`${e}: ${p} value ${h} is a negative integer`)},d=(p,h)=>{let g=typeof h;if(g!=="function")throw new TypeError(`${e}: ${p} typeof ${g} is not a function`)};function m(p,h,g,y){u("aLength",p),u("bLength",h),d("isCommon",g),d("foundSubsequence",y);let b=r(0,p,0,h,g);if(b!==0&&y(b,0,0),p!==b||h!==b){let v=b,C=b,S=n(v,p-1,C,h-1,g),A=p-S,_=h-S,E=b+S;p!==E&&h!==E&&c(0,v,A,C,_,!1,[{foundSubsequence:y,isCommon:g}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),S!==0&&y(S,A,_)}}return Sa}var IP=jP(),qy=SP(IP);function DP(e,t){return e.replace(/\s+$/,r=>t(r))}function nu(e,t,r,n,o,a){return e.length!==0?r(`${n} ${DP(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function xy(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return nu(e,t,r,n,o,a)}function My(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return nu(e,t,r,n,o,a)}function Ny(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return nu(e,t,r,n,o,a)}function zh(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function FP(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,s=0,l=0;for(;l!==r;){let S=l;for(;l!==r&&e[l][0]===xe;)l+=1;if(S!==l)if(S===0)l>n&&(a-=l-n,i=!0);else if(l===r){let A=l-S;A>n&&(a-=A-n,i=!0)}else{let A=l-S;A>o&&(a-=A-o,s+=1)}for(;l!==r&&e[l][0]!==xe;)l+=1}let c=s!==0||i;s!==0?a+=s+1:i&&(a+=1);let u=a-1,d=[],m=0;c&&d.push("");let p=0,h=0,g=0,y=0,b=S=>{let A=d.length;d.push(Ny(S,A===0||A===u,t)),g+=1,y+=1},v=S=>{let A=d.length;d.push(xy(S,A===0||A===u,t)),g+=1},C=S=>{let A=d.length;d.push(My(S,A===0||A===u,t)),y+=1};for(l=0;l!==r;){let S=l;for(;l!==r&&e[l][0]===xe;)l+=1;if(S!==l)if(S===0){l>n&&(S=l-n,p=S,h=S,g=p,y=h);for(let A=S;A!==l;A+=1)b(e[A][1])}else if(l===r){let A=l-S>n?S+n:l;for(let _=S;_!==A;_+=1)b(e[_][1])}else{let A=l-S;if(A>o){let _=S+n;for(let R=S;R!==_;R+=1)b(e[R][1]);d[m]=zh(p,g,h,y,t),m=d.length,d.push("");let E=A-o;p=g+E,h=y+E,g=p,y=h;for(let R=l-n;R!==l;R+=1)b(e[R][1])}else for(let _=S;_!==l;_+=1)b(e[_][1])}for(;l!==r&&e[l][0]===Qe;)v(e[l][1]),l+=1;for(;l!==r&&e[l][0]===We;)C(e[l][1]),l+=1}return c&&(d[m]=zh(p,g,h,y,t)),d.join(`
|
|
238
|
+
`)}function LP(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Qe:return xy(a,i,t);case We:return My(a,i,t);default:return Ny(a,i,t)}}).join(`
|
|
239
|
+
`)}var Bl=e=>e,jy=5,BP=0;function kP(){return{aAnnotation:"Expected",aColor:Wt.green,aIndicator:"-",bAnnotation:"Received",bColor:Wt.red,bIndicator:"+",changeColor:Wt.inverse,changeLineTrailingSpaceColor:Bl,commonColor:Wt.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Bl,compareKeys:void 0,contextLines:jy,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Wt.yellow,truncateThreshold:BP,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Bl}}function $P(e){return e&&typeof e=="function"?e:void 0}function UP(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:jy}function kr(e={}){return{...kP(),...e,compareKeys:$P(e.compareKeys),contextLines:UP(e.contextLines)}}function yn(e){return e.length===1&&e[0].length===0}function HP(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Qe:t+=1;break;case We:r+=1;break}}),{a:t,b:r}}function VP({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:s},l){if(s)return"";let c="",u="";if(i){let p=String(l.a),h=String(l.b),g=n.length-e.length,y=" ".repeat(Math.max(0,g)),b=" ".repeat(Math.max(0,-g)),v=h.length-p.length,C=" ".repeat(Math.max(0,v)),S=" ".repeat(Math.max(0,-v));c=`${y} ${r} ${C}${p}`,u=`${b} ${a} ${S}${h}`}let d=`${r} ${e}${c}`,m=`${a} ${n}${u}`;return`${t(d)}
|
|
240
240
|
${o(m)}
|
|
241
241
|
|
|
242
242
|
`}function ou(e,t,r){return VP(r,HP(e))+(r.expand?LP(e,r):FP(e,r))+(t?r.truncateAnnotationColor(`
|
|
243
|
-
${r.truncateAnnotation}`):"")}function qa(e,t,r){let n=kr(r),[o,a]=
|
|
243
|
+
${r.truncateAnnotation}`):"")}function qa(e,t,r){let n=kr(r),[o,a]=Iy(yn(e)?[]:e,yn(t)?[]:t,n);return ou(o,a,n)}function zP(e,t,r,n,o){if(yn(e)&&yn(r)&&(e=[],r=[]),yn(t)&&yn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return qa(e,t,o);let[a,i]=Iy(r,n,o),s=0,l=0;return a.forEach(c=>{switch(c[0]){case Qe:c[1]=e[s],s+=1;break;case We:c[1]=t[l],l+=1;break;default:c[1]=t[l],s+=1,l+=1}}),ou(a,i,kr(o))}function Iy(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,s=a!==e.length||i!==t.length,l=(m,p)=>e[m]===t[p],c=[],u=0,d=0;for(qy(a,i,l,(m,p,h)=>{for(;u!==p;u+=1)c.push(new Te(Qe,e[u]));for(;d!==h;d+=1)c.push(new Te(We,t[d]));for(;m!==0;m-=1,u+=1,d+=1)c.push(new Te(xe,t[d]))});u!==a;u+=1)c.push(new Te(Qe,e[u]));for(;d!==i;d+=1)c.push(new Te(We,t[d]));return[c,s]}function Gh(e){return e.includes(`\r
|
|
244
244
|
`)?`\r
|
|
245
245
|
`:`
|
|
246
246
|
`}function GP(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,i=t.length;if(n){let m=e.includes(`
|
|
247
247
|
`),p=t.includes(`
|
|
248
|
-
`),h=
|
|
248
|
+
`),h=Gh(e),g=Gh(t),y=m?`${e.split(h,o).join(h)}
|
|
249
249
|
`:e,b=p?`${t.split(g,o).join(g)}
|
|
250
|
-
`:t;a=y.length,i=b.length}let s=a!==e.length||i!==t.length,l=(m,p)=>e[m]===t[p],c=0,u=0,d=[];return
|
|
250
|
+
`:t;a=y.length,i=b.length}let s=a!==e.length||i!==t.length,l=(m,p)=>e[m]===t[p],c=0,u=0,d=[];return qy(a,i,l,(m,p,h)=>{c!==p&&d.push(new Te(Qe,e.slice(c,p))),u!==h&&d.push(new Te(We,t.slice(u,h))),c=p+m,u=h+m,d.push(new Te(xe,t.slice(h,u)))}),c!==a&&d.push(new Te(Qe,e.slice(c))),u!==i&&d.push(new Te(We,t.slice(u))),[d,s]}function YP(e,t,r){return t.reduce((n,o)=>n+(o[0]===xe?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Yh=class{constructor(e,t){Ae(this,"op");Ae(this,"line");Ae(this,"lines");Ae(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Te(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Te(this.op,YP(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Te(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
251
251
|
`)){let r=t.split(`
|
|
252
252
|
`),n=r.length-1;r.forEach((o,a)=>{a<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},WP=class{constructor(e,t){Ae(this,"deleteBuffer");Ae(this,"insertBuffer");Ae(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
|
|
253
253
|
`)){let n=r.split(`
|
|
254
|
-
`),o=n.length-1;n.forEach((a,i)=>{if(i===0){let s=new Te(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else i<o?this.pushDiffCommonLine(new Te(t,a)):a.length!==0&&this.pushDiffChangeLines(new Te(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function KP(e,t){let r=new
|
|
254
|
+
`),o=n.length-1;n.forEach((a,i)=>{if(i===0){let s=new Te(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else i<o?this.pushDiffCommonLine(new Te(t,a)):a.length!==0&&this.pushDiffChangeLines(new Te(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function KP(e,t){let r=new Yh(Qe,t),n=new Yh(We,t),o=new WP(r,n);return e.forEach(a=>{switch(a[0]){case Qe:r.align(a);break;case We:n.align(a);break;default:o.align(a)}}),o.getLines()}function XP(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===xe&&(o!==r||n[1]!==`
|
|
255
255
|
`))}return e.some(r=>r[0]===xe)}function JP(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
256
256
|
`)||t.includes(`
|
|
257
|
-
`),[o,a]=
|
|
257
|
+
`),[o,a]=Dy(n?`${e}
|
|
258
258
|
`:e,n?`${t}
|
|
259
259
|
`:t,!0,r);if(XP(o,n)){let i=kr(r),s=KP(o,i.changeColor);return ou(s,a,i)}}return qa(e.split(`
|
|
260
260
|
`),t.split(`
|
|
261
|
-
`),r)}function
|
|
261
|
+
`),r)}function Dy(e,t,r,n){let[o,a]=GP(e,t,n);return r&&OP(o),[o,a]}function Gl(e,t){let{commonColor:r}=kr(t);return r(e)}var{AsymmetricMatcher:QP,DOMCollection:ZP,DOMElement:eO,Immutable:tO,ReactElement:rO,ReactTestComponent:nO}=Ry,Fy=[nO,rO,eO,ZP,tO,QP],Yl={plugins:Fy},Ly={callToJSON:!1,maxDepth:10,plugins:Fy};function oO(e,t,r){if(Object.is(e,t))return"";let n=Bh(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==Bh(t)){let{aAnnotation:i,aColor:s,aIndicator:l,bAnnotation:c,bColor:u,bIndicator:d}=kr(r),m=Wl(Ly,r),p=It(e,m),h=It(t,m),g=`${s(`${l} ${i}:`)}
|
|
262
262
|
${p}`,y=`${u(`${d} ${c}:`)}
|
|
263
263
|
${h}`;return`${g}
|
|
264
264
|
|
|
265
265
|
${y}`}if(!a)switch(n){case"string":return qa(e.split(`
|
|
266
266
|
`),t.split(`
|
|
267
|
-
`),r);case"boolean":case"number":return aO(e,t,r);case"map":return kl(
|
|
267
|
+
`),r);case"boolean":case"number":return aO(e,t,r);case"map":return kl(Wh(e),Wh(t),r);case"set":return kl(Kh(e),Kh(t),r);default:return kl(e,t,r)}}function aO(e,t,r){let n=It(e,Yl),o=It(t,Yl);return n===o?"":qa(n.split(`
|
|
268
268
|
`),o.split(`
|
|
269
|
-
`),r)}function
|
|
269
|
+
`),r)}function Wh(e){return new Map(Array.from(e.entries()).sort())}function Kh(e){return new Set(Array.from(e.values()).sort())}function kl(e,t,r){let n,o=!1;try{let i=Wl(Yl,r);n=Xh(e,t,i,r)}catch{o=!0}let a=Gl(Oy,r);if(n===void 0||n===a){let i=Wl(Ly,r);n=Xh(e,t,i,r),n!==a&&!o&&(n=`${Gl(NP,r)}
|
|
270
270
|
|
|
271
|
-
${n}`)}return n}function Wl(e,t){let{compareKeys:r}=kr(t);return{...e,compareKeys:r}}function
|
|
271
|
+
${n}`)}return n}function Wl(e,t){let{compareKeys:r}=kr(t);return{...e,compareKeys:r}}function Xh(e,t,r,n){let o={...r,indent:0},a=It(e,o),i=It(t,o);if(a===i)return Gl(Oy,n);{let s=It(e,r),l=It(t,r);return zP(s.split(`
|
|
272
272
|
`),l.split(`
|
|
273
273
|
`),a.split(`
|
|
274
274
|
`),i.split(`
|
|
275
|
-
`),n)}}var
|
|
275
|
+
`),n)}}var Jh=2e4;function Qh(e){return Vl(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Zh(e,t){let r=Vl(e),n=Vl(t);return r===n&&(r==="Object"||r==="Array")}function iO(e,t,r){let{aAnnotation:n,bAnnotation:o}=kr(r);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=Jh&&t.length<=Jh&&e!==t){if(e.includes(`
|
|
276
276
|
`)||t.includes(`
|
|
277
|
-
`))return JP(t,e,r);let[c]=
|
|
278
|
-
${p}`}let a=
|
|
279
|
-
Inner error message: ${n?.message}`))}}var yO=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(yO||{}),Yt={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},ty={start:!1,back:!1,goto:!1,next:!1,end:!1},bO=new Error("This function ran after the play function completed. Did you forget to `await` it?"),ry=e=>Object.prototype.toString.call(e)==="[object Object]",gO=e=>Object.prototype.toString.call(e)==="[object Module]",vO=e=>{if(!ry(e)&&!gO(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!ry(t)},EO=e=>{try{return new e.constructor}catch{return{}}},$l=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),ny=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},_O=class{constructor(){this.initialized=!1,this.channel=zt.getChannel(),this.state=De.window?.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{};let e=({storyId:i,isPlaying:s=!0,isDebugging:l=!1})=>{let c=this.getState(i);this.setState(i,{...$l(),...ny(c,l),shadowCalls:l?c.shadowCalls:[],chainedCallIds:l?c.chainedCallIds:new Set,playUntil:l?c.playUntil:void 0,isPlaying:s,isDebugging:l}),this.sync(i)};this.channel.on(on,e),this.channel.on(Ht,({storyId:i,newPhase:s})=>{let{isDebugging:l}=this.getState(i);this.setState(i,{renderPhase:s}),s==="preparing"&&l&&e({storyId:i}),s==="playing"&&e({storyId:i,isDebugging:l}),s==="played"&&this.setState(i,{isLocked:!1,isPlaying:!1,isDebugging:!1}),s==="errored"&&this.setState(i,{isLocked:!1,isPlaying:!1})}),this.channel.on(eo,()=>{this.initialized?this.cleanup():this.initialized=!0});let t=({storyId:i,playUntil:s})=>{this.getState(i).isDebugging||this.setState(i,({calls:c})=>({calls:[],shadowCalls:c.map(u=>({...u,status:"waiting"})),isDebugging:!0}));let l=this.getLog(i);this.setState(i,({shadowCalls:c})=>{if(s||!l.length)return{playUntil:s};let u=c.findIndex(d=>d.id===l[0].callId);return{playUntil:c.slice(0,u).filter(d=>d.interceptable&&!d.ancestors?.length).slice(-1)[0]?.id}}),this.channel.emit(on,{storyId:i,isDebugging:!0})},r=({storyId:i})=>{let s=this.getLog(i).filter(c=>!c.ancestors?.length),l=s.reduceRight((c,u,d)=>c>=0||u.status==="waiting"?c:d,-1);t({storyId:i,playUntil:s[l-1]?.callId})},n=({storyId:i,callId:s})=>{let{calls:l,shadowCalls:c,resolvers:u}=this.getState(i),d=l.find(({id:p})=>p===s),m=c.find(({id:p})=>p===s);if(!d&&m&&Object.values(u).length>0){let p=this.getLog(i).find(h=>h.status==="waiting")?.callId;m.id!==p&&this.setState(i,{playUntil:m.id}),Object.values(u).forEach(h=>h())}else t({storyId:i,playUntil:s})},o=({storyId:i})=>{let{resolvers:s}=this.getState(i);if(Object.values(s).length>0)Object.values(s).forEach(l=>l());else{let l=this.getLog(i).find(c=>c.status==="waiting")?.callId;l?t({storyId:i,playUntil:l}):a({storyId:i})}},a=({storyId:i})=>{this.setState(i,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(i).resolvers).forEach(s=>s())};this.channel.on(Yt.START,t),this.channel.on(Yt.BACK,r),this.channel.on(Yt.GOTO,n),this.channel.on(Yt.NEXT,o),this.channel.on(Yt.END,a)}getState(e){return this.state[e]||$l()}setState(e,t){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},De.window?.parent&&(De.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let o=ny(n);return o&&(t[r]=Object.assign($l(),o)),t},{});let e={controlStates:ty,logItems:[]};this.channel.emit(Yt.SYNC,e),De.window?.parent&&(De.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((a,i)=>{n[i]=a});let o=new Set;return n.reduceRight((a,i)=>(i.args.forEach(s=>{s?.__callId__&&o.add(s.__callId__)}),i.path.forEach(s=>{s.__callId__&&o.add(s.__callId__)}),(i.interceptable||i.exception)&&!o.has(i.id)&&(a.unshift({callId:i.id,status:i.status,ancestors:i.ancestors}),o.add(i.id)),a),[])}instrument(e,t,r=0){if(!vO(e))return e;let{mutate:n=!1,path:o=[]}=t,a=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,a.reduce((i,s)=>{let l=RO(e,s);if(typeof l?.get=="function"){let u=()=>l?.get?.bind(e)?.();return Object.defineProperty(i,s,{get:()=>this.instrument(u(),{...t,path:o.concat(s)},r)}),i}let c=e[s];return typeof c!="function"?(i[s]=this.instrument(c,{...t,path:o.concat(s)},r),i):"__originalFn__"in c&&typeof c.__originalFn__=="function"?(i[s]=c,i):(i[s]=(...u)=>this.track(s,c,e,u,t),i[s].__originalFn__=c,Object.defineProperty(i[s],"name",{value:s,writable:!1}),Object.keys(c).length>0&&Object.assign(i[s],this.instrument({...c},{...t,path:o.concat(s)},r)),i)},n?e:EO(e))}track(e,t,r,n,o){let a=n?.[0]?.__storyId__||De.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:i,ancestors:s}=this.getState(a);this.setState(a,{cursor:i+1});let l=`${s.slice(-1)[0]||a} [${i}] ${e}`,{path:c=[],intercept:u=!1,retain:d=!1}=o,m=typeof u=="function"?u(e,c):u,p={id:l,cursor:i,storyId:a,ancestors:s,path:c,method:e,args:n,interceptable:m,retain:d},h=(m&&!s.length?this.intercept:this.invoke).call(this,t,r,p,o);return this.instrument(h,{...o,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:a,playUntil:i}=this.getState(r.storyId),s=o.has(r.id);return!a||s||i?(i===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(l=>{this.setState(r.storyId,({resolvers:c})=>({isLocked:!1,resolvers:{...c,[r.id]:l}}))}).then(()=>(this.setState(r.storyId,l=>{let{[r.id]:c,...u}=l.resolvers;return{isLocked:!0,resolvers:u}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:a}=this.getState(r.storyId),i=25,s=(u,d,m)=>{if(m.includes(u))return"[Circular]";if(m=[...m,u],d>i)return"...";if(o.has(u))return o.get(u);if(u instanceof Array)return u.map(p=>s(p,++d,m));if(u instanceof Date)return{__date__:{value:u.toISOString()}};if(u instanceof Error){let{name:p,message:h,stack:g}=u;return{__error__:{name:p,message:h,stack:g}}}if(u instanceof RegExp){let{flags:p,source:h}=u;return{__regexp__:{flags:p,source:h}}}if(u instanceof De.window?.HTMLElement){let{prefix:p,localName:h,id:g,classList:y,innerText:b}=u,v=Array.from(y);return{__element__:{prefix:p,localName:h,id:g,classNames:v,innerText:b}}}return typeof u=="function"?{__function__:{name:"getMockName"in u?u.getMockName():u.name}}:typeof u=="symbol"?{__symbol__:{description:u.description}}:typeof u=="object"&&u?.constructor?.name&&u?.constructor?.name!=="Object"?{__class__:{name:u.constructor.name}}:Object.prototype.toString.call(u)==="[object Object]"?Object.fromEntries(Object.entries(u).map(([p,h])=>[p,s(h,++d,m)])):u},l={...r,args:r.args.map(u=>s(u,0,[]))};r.path.forEach(u=>{u?.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(u.__callId__))}))});let c=u=>{if(u instanceof Error){let{name:d,message:m,stack:p,callId:h=r.id}=u,{showDiff:g=void 0,diff:y=void 0,actual:b=void 0,expected:v=void 0}=u.name==="AssertionError"?ky(u):u,C={name:d,message:m,stack:p,callId:h,showDiff:g,diff:y,actual:b,expected:v};if(this.update({...l,status:"error",exception:C}),this.setState(r.storyId,S=>({callRefsByResult:new Map([...Array.from(S.callRefsByResult.entries()),[u,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(u,"callId")||Object.defineProperty(u,"callId",{value:r.id}),u}throw u};try{if(a==="played"&&!r.retain)throw bO;let u=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(m=>typeof m!="function"||Object.keys(m).length?m:(...p)=>{let{cursor:h,ancestors:g}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...g,r.id]});let y=()=>this.setState(r.storyId,{cursor:h,ancestors:g}),b=!1;try{let v=m(...p);return v instanceof Promise?(b=!0,v.finally(y)):v}finally{b||y()}}),d=e.apply(t,u);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,m=>({callRefsByResult:new Map([...Array.from(m.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...l,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(m=>(this.update({...l,status:"done"}),m),c):d}catch(u){return c(u)}}update(e){this.channel.emit(Yt.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,o)=>Object.assign(n,{[o.id]:o}),{});return{calls:Object.values(r).sort((n,o)=>n.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),a=o.filter(({ancestors:c})=>!c.length).find(c=>c.status==="waiting")?.callId,i=o.some(c=>c.status==="active");if(r||i||o.length===0){let c={controlStates:ty,logItems:o};this.channel.emit(Yt.SYNC,c);return}let s=o.some(c=>c.status==="done"||c.status==="error"),l={controlStates:{start:s,back:s,goto:!0,next:n,end:n},logItems:o,pausedAt:a};this.channel.emit(Yt.SYNC,l)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function xa(e,t={}){try{let r=!1,n=!1;return De.window?.location?.search?.includes("instrument=true")?r=!0:De.window?.location?.search?.includes("instrument=false")&&(n=!0),De.window?.parent===De.window&&!r||n?e:(De.window&&!De.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(De.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new _O),(De.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return we.warn(r),e}}function RO(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}var wO=Object.create,Rc=Object.defineProperty,CO=Object.getOwnPropertyDescriptor,Yg=Object.getOwnPropertyNames,SO=Object.getPrototypeOf,AO=Object.prototype.hasOwnProperty,TO=(e=>typeof Ee<"u"?Ee:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ee<"u"?Ee:t)[r]}):e)(function(e){if(typeof Ee<"u")return Ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),w=(e,t)=>function(){return t||(0,e[Yg(e)[0]])((t={exports:{}}).exports,t),t.exports},wc=(e,t)=>{for(var r in t)Rc(e,r,{get:t[r],enumerable:!0})},PO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Yg(t))!AO.call(e,o)&&o!==r&&Rc(e,o,{get:()=>t[o],enumerable:!(n=CO(t,o))||n.enumerable});return e},mt=(e,t,r)=>(r=e!=null?wO(SO(e)):{},PO(t||!e||!e.__esModule?Rc(r,"default",{value:e,enumerable:!0}):r,e)),OO=w({"../../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((o,a)=>Math.min(o,a.length),1/0):0}}}),qO=w({"../../node_modules/strip-indent/index.js"(e,t){var r=OO();t.exports=n=>{let o=r(n);if(o===0)return n;let a=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(a,"")}}}),xO=w({"../../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(n===0)return r;let a=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(a,o.indent.repeat(n))}}}),Wg=w({"../../node_modules/redent/index.js"(e,t){var r=qO(),n=xO();t.exports=(o,a=0,i)=>n(r(o),a,i)}}),MO=w({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var a=r[n];return n=n+1,{done:!1,value:a}}else return{done:!0}}};return o}e.default=t}}),ko=w({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(MO());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},n(a)}function o(a,i){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(a,Symbol.iterator,{value:t.default.bind(i)}),a}}}),NO=w({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ko());function r(d){return d&&d.__esModule?d:{default:d}}function n(d,m){return l(d)||s(d,m)||a(d,m)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
277
|
+
`))return JP(t,e,r);let[c]=Dy(t,e,!0),u=c.some(h=>h[0]===xe),d=sO(n,o),m=d(n)+cO(ey(c,Qe,u)),p=d(o)+uO(ey(c,We,u));return`${m}
|
|
278
|
+
${p}`}let a=Lh(e,{forceWritable:!0}),i=Lh(t,{forceWritable:!0}),{replacedExpected:s,replacedActual:l}=By(a,i);return oO(s,l,r)}function By(e,t,r=new WeakSet,n=new WeakSet){return Zh(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Sy(t).forEach(o=>{let a=t[o],i=e[o];if(Qh(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Qh(i))i.asymmetricMatch(a)&&(t[o]=i);else if(Zh(i,a)){let s=By(i,a,r,n);e[o]=s.replacedActual,t[o]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function sO(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var lO="\xB7";function ky(e){return e.replace(/\s+$/gm,t=>lO.repeat(t.length))}function uO(e){return Wt.red(ky(fo(e)))}function cO(e){return Wt.green(ky(fo(e)))}function ey(e,t,r){return e.reduce((n,o)=>n+(o[0]===xe?o[1]:o[0]===t?r?Wt.inverse(o[1]):o[1]:""),"")}var dO="@@__IMMUTABLE_RECORD__@@",pO="@@__IMMUTABLE_ITERABLE__@@";function fO(e){return e&&(e[pO]||e[dO])}var mO=Object.getPrototypeOf({});function ty(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function bn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(fO(e))return bn(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${CP(e.sample)}`;if(typeof e.toJSON=="function")return bn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=bn(n,t)}catch(a){r[o]=ty(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==mO;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=bn(e[o],t)}catch(a){delete r[o],r[o]=ty(a)}}),n=Object.getPrototypeOf(n);return r}}function hO(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function $y(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;n.stack&&(n.stackStr=String(n.stack)),n.name&&(n.nameStr=String(n.name)),(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=iO(n.actual,n.expected,{...t,...n.diffOptions})),typeof n.expected!="string"&&(n.expected=fo(n.expected,10)),typeof n.actual!="string"&&(n.actual=fo(n.actual,10));try{typeof n.message=="string"&&(n.message=hO(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=$y(n.cause,t,r))}catch{}try{return bn(n)}catch(o){return bn(new Error(`Failed to fully serialize error: ${o?.message}
|
|
279
|
+
Inner error message: ${n?.message}`))}}var yO=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(yO||{}),Yt={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},ry={start:!1,back:!1,goto:!1,next:!1,end:!1},bO=new Error("This function ran after the play function completed. Did you forget to `await` it?"),ny=e=>Object.prototype.toString.call(e)==="[object Object]",gO=e=>Object.prototype.toString.call(e)==="[object Module]",vO=e=>{if(!ny(e)&&!gO(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!ny(t)},EO=e=>{try{return new e.constructor}catch{return{}}},$l=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),oy=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},_O=class{constructor(){this.initialized=!1,this.channel=zt.getChannel(),this.state=De.window?.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{};let e=({storyId:i,isPlaying:s=!0,isDebugging:l=!1})=>{let c=this.getState(i);this.setState(i,{...$l(),...oy(c,l),shadowCalls:l?c.shadowCalls:[],chainedCallIds:l?c.chainedCallIds:new Set,playUntil:l?c.playUntil:void 0,isPlaying:s,isDebugging:l}),this.sync(i)};this.channel.on(on,e),this.channel.on(Ht,({storyId:i,newPhase:s})=>{let{isDebugging:l}=this.getState(i);this.setState(i,{renderPhase:s}),s==="preparing"&&l&&e({storyId:i}),s==="playing"&&e({storyId:i,isDebugging:l}),s==="played"&&this.setState(i,{isLocked:!1,isPlaying:!1,isDebugging:!1}),s==="errored"&&this.setState(i,{isLocked:!1,isPlaying:!1})}),this.channel.on(eo,()=>{this.initialized?this.cleanup():this.initialized=!0});let t=({storyId:i,playUntil:s})=>{this.getState(i).isDebugging||this.setState(i,({calls:c})=>({calls:[],shadowCalls:c.map(u=>({...u,status:"waiting"})),isDebugging:!0}));let l=this.getLog(i);this.setState(i,({shadowCalls:c})=>{if(s||!l.length)return{playUntil:s};let u=c.findIndex(d=>d.id===l[0].callId);return{playUntil:c.slice(0,u).filter(d=>d.interceptable&&!d.ancestors?.length).slice(-1)[0]?.id}}),this.channel.emit(on,{storyId:i,isDebugging:!0})},r=({storyId:i})=>{let s=this.getLog(i).filter(c=>!c.ancestors?.length),l=s.reduceRight((c,u,d)=>c>=0||u.status==="waiting"?c:d,-1);t({storyId:i,playUntil:s[l-1]?.callId})},n=({storyId:i,callId:s})=>{let{calls:l,shadowCalls:c,resolvers:u}=this.getState(i),d=l.find(({id:p})=>p===s),m=c.find(({id:p})=>p===s);if(!d&&m&&Object.values(u).length>0){let p=this.getLog(i).find(h=>h.status==="waiting")?.callId;m.id!==p&&this.setState(i,{playUntil:m.id}),Object.values(u).forEach(h=>h())}else t({storyId:i,playUntil:s})},o=({storyId:i})=>{let{resolvers:s}=this.getState(i);if(Object.values(s).length>0)Object.values(s).forEach(l=>l());else{let l=this.getLog(i).find(c=>c.status==="waiting")?.callId;l?t({storyId:i,playUntil:l}):a({storyId:i})}},a=({storyId:i})=>{this.setState(i,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(i).resolvers).forEach(s=>s())};this.channel.on(Yt.START,t),this.channel.on(Yt.BACK,r),this.channel.on(Yt.GOTO,n),this.channel.on(Yt.NEXT,o),this.channel.on(Yt.END,a)}getState(e){return this.state[e]||$l()}setState(e,t){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},De.window?.parent&&(De.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let o=oy(n);return o&&(t[r]=Object.assign($l(),o)),t},{});let e={controlStates:ry,logItems:[]};this.channel.emit(Yt.SYNC,e),De.window?.parent&&(De.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((a,i)=>{n[i]=a});let o=new Set;return n.reduceRight((a,i)=>(i.args.forEach(s=>{s?.__callId__&&o.add(s.__callId__)}),i.path.forEach(s=>{s.__callId__&&o.add(s.__callId__)}),(i.interceptable||i.exception)&&!o.has(i.id)&&(a.unshift({callId:i.id,status:i.status,ancestors:i.ancestors}),o.add(i.id)),a),[])}instrument(e,t,r=0){if(!vO(e))return e;let{mutate:n=!1,path:o=[]}=t,a=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,a.reduce((i,s)=>{let l=RO(e,s);if(typeof l?.get=="function"){let u=()=>l?.get?.bind(e)?.();return Object.defineProperty(i,s,{get:()=>this.instrument(u(),{...t,path:o.concat(s)},r)}),i}let c=e[s];return typeof c!="function"?(i[s]=this.instrument(c,{...t,path:o.concat(s)},r),i):"__originalFn__"in c&&typeof c.__originalFn__=="function"?(i[s]=c,i):(i[s]=(...u)=>this.track(s,c,e,u,t),i[s].__originalFn__=c,Object.defineProperty(i[s],"name",{value:s,writable:!1}),Object.keys(c).length>0&&Object.assign(i[s],this.instrument({...c},{...t,path:o.concat(s)},r)),i)},n?e:EO(e))}track(e,t,r,n,o){let a=n?.[0]?.__storyId__||De.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:i,ancestors:s}=this.getState(a);this.setState(a,{cursor:i+1});let l=`${s.slice(-1)[0]||a} [${i}] ${e}`,{path:c=[],intercept:u=!1,retain:d=!1}=o,m=typeof u=="function"?u(e,c):u,p={id:l,cursor:i,storyId:a,ancestors:s,path:c,method:e,args:n,interceptable:m,retain:d},h=(m&&!s.length?this.intercept:this.invoke).call(this,t,r,p,o);return this.instrument(h,{...o,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:a,playUntil:i}=this.getState(r.storyId),s=o.has(r.id);return!a||s||i?(i===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(l=>{this.setState(r.storyId,({resolvers:c})=>({isLocked:!1,resolvers:{...c,[r.id]:l}}))}).then(()=>(this.setState(r.storyId,l=>{let{[r.id]:c,...u}=l.resolvers;return{isLocked:!0,resolvers:u}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:a}=this.getState(r.storyId),i=25,s=(u,d,m)=>{if(m.includes(u))return"[Circular]";if(m=[...m,u],d>i)return"...";if(o.has(u))return o.get(u);if(u instanceof Array)return u.map(p=>s(p,++d,m));if(u instanceof Date)return{__date__:{value:u.toISOString()}};if(u instanceof Error){let{name:p,message:h,stack:g}=u;return{__error__:{name:p,message:h,stack:g}}}if(u instanceof RegExp){let{flags:p,source:h}=u;return{__regexp__:{flags:p,source:h}}}if(u instanceof De.window?.HTMLElement){let{prefix:p,localName:h,id:g,classList:y,innerText:b}=u,v=Array.from(y);return{__element__:{prefix:p,localName:h,id:g,classNames:v,innerText:b}}}return typeof u=="function"?{__function__:{name:"getMockName"in u?u.getMockName():u.name}}:typeof u=="symbol"?{__symbol__:{description:u.description}}:typeof u=="object"&&u?.constructor?.name&&u?.constructor?.name!=="Object"?{__class__:{name:u.constructor.name}}:Object.prototype.toString.call(u)==="[object Object]"?Object.fromEntries(Object.entries(u).map(([p,h])=>[p,s(h,++d,m)])):u},l={...r,args:r.args.map(u=>s(u,0,[]))};r.path.forEach(u=>{u?.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(u.__callId__))}))});let c=u=>{if(u instanceof Error){let{name:d,message:m,stack:p,callId:h=r.id}=u,{showDiff:g=void 0,diff:y=void 0,actual:b=void 0,expected:v=void 0}=u.name==="AssertionError"?$y(u):u,C={name:d,message:m,stack:p,callId:h,showDiff:g,diff:y,actual:b,expected:v};if(this.update({...l,status:"error",exception:C}),this.setState(r.storyId,S=>({callRefsByResult:new Map([...Array.from(S.callRefsByResult.entries()),[u,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(u,"callId")||Object.defineProperty(u,"callId",{value:r.id}),u}throw u};try{if(a==="played"&&!r.retain)throw bO;let u=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(m=>typeof m!="function"||Object.keys(m).length?m:(...p)=>{let{cursor:h,ancestors:g}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...g,r.id]});let y=()=>this.setState(r.storyId,{cursor:h,ancestors:g}),b=!1;try{let v=m(...p);return v instanceof Promise?(b=!0,v.finally(y)):v}finally{b||y()}}),d=e.apply(t,u);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,m=>({callRefsByResult:new Map([...Array.from(m.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...l,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(m=>(this.update({...l,status:"done"}),m),c):d}catch(u){return c(u)}}update(e){this.channel.emit(Yt.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,o)=>Object.assign(n,{[o.id]:o}),{});return{calls:Object.values(r).sort((n,o)=>n.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),a=o.filter(({ancestors:c})=>!c.length).find(c=>c.status==="waiting")?.callId,i=o.some(c=>c.status==="active");if(r||i||o.length===0){let c={controlStates:ry,logItems:o};this.channel.emit(Yt.SYNC,c);return}let s=o.some(c=>c.status==="done"||c.status==="error"),l={controlStates:{start:s,back:s,goto:!0,next:n,end:n},logItems:o,pausedAt:a};this.channel.emit(Yt.SYNC,l)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function xa(e,t={}){try{let r=!1,n=!1;return De.window?.location?.search?.includes("instrument=true")?r=!0:De.window?.location?.search?.includes("instrument=false")&&(n=!0),De.window?.parent===De.window&&!r||n?e:(De.window&&!De.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(De.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new _O),(De.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return we.warn(r),e}}function RO(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}var wO=Object.create,Rc=Object.defineProperty,CO=Object.getOwnPropertyDescriptor,Wg=Object.getOwnPropertyNames,SO=Object.getPrototypeOf,AO=Object.prototype.hasOwnProperty,TO=(e=>typeof Ee<"u"?Ee:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ee<"u"?Ee:t)[r]}):e)(function(e){if(typeof Ee<"u")return Ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),w=(e,t)=>function(){return t||(0,e[Wg(e)[0]])((t={exports:{}}).exports,t),t.exports},wc=(e,t)=>{for(var r in t)Rc(e,r,{get:t[r],enumerable:!0})},PO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wg(t))!AO.call(e,o)&&o!==r&&Rc(e,o,{get:()=>t[o],enumerable:!(n=CO(t,o))||n.enumerable});return e},mt=(e,t,r)=>(r=e!=null?wO(SO(e)):{},PO(t||!e||!e.__esModule?Rc(r,"default",{value:e,enumerable:!0}):r,e)),OO=w({"../../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((o,a)=>Math.min(o,a.length),1/0):0}}}),qO=w({"../../node_modules/strip-indent/index.js"(e,t){var r=OO();t.exports=n=>{let o=r(n);if(o===0)return n;let a=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(a,"")}}}),xO=w({"../../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(n===0)return r;let a=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(a,o.indent.repeat(n))}}}),Kg=w({"../../node_modules/redent/index.js"(e,t){var r=qO(),n=xO();t.exports=(o,a=0,i)=>n(r(o),a,i)}}),MO=w({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var a=r[n];return n=n+1,{done:!1,value:a}}else return{done:!0}}};return o}e.default=t}}),ko=w({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(MO());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},n(a)}function o(a,i){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(a,Symbol.iterator,{value:t.default.bind(i)}),a}}}),NO=w({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ko());function r(d){return d&&d.__esModule?d:{default:d}}function n(d,m){return l(d)||s(d,m)||a(d,m)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
280
280
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(d,m){if(d){if(typeof d=="string")return i(d,m);var p={}.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?i(d,m):void 0}}function i(d,m){(m==null||m>d.length)&&(m=d.length);for(var p=0,h=Array(m);p<m;p++)h[p]=d[p];return h}function s(d,m){var p=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(p!=null){var h,g,y,b,v=[],C=!0,S=!1;try{if(y=(p=p.call(d)).next,m===0){if(Object(p)!==p)return;C=!1}else for(;!(C=(h=y.call(p)).done)&&(v.push(h.value),v.length!==m);C=!0);}catch(A){S=!0,g=A}finally{try{if(!C&&p.return!=null&&(b=p.return(),Object(b)!==b))return}finally{if(S)throw g}}return v}}function l(d){if(Array.isArray(d))return d}var c=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],u={entries:function(){return c},forEach:function(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,p=0,h=c;p<h.length;p++){var g=n(h[p],2),y=g[0],b=g[1];d.call(m,b,y,c)}},get:function(d){var m=c.filter(function(p){return p[0]===d})[0];return m&&m[1]},has:function(d){return!!u.get(d)},keys:function(){return c.map(function(d){var m=n(d,1),p=m[0];return p})},values:function(){return c.map(function(d){var m=n(d,2),p=m[1];return p})}};e.default=(0,t.default)(u,u.entries())}}),jO=w({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ko());function r(d){return d&&d.__esModule?d:{default:d}}function n(d,m){return l(d)||s(d,m)||a(d,m)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
281
281
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(d,m){if(d){if(typeof d=="string")return i(d,m);var p={}.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?i(d,m):void 0}}function i(d,m){(m==null||m>d.length)&&(m=d.length);for(var p=0,h=Array(m);p<m;p++)h[p]=d[p];return h}function s(d,m){var p=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(p!=null){var h,g,y,b,v=[],C=!0,S=!1;try{if(y=(p=p.call(d)).next,m===0){if(Object(p)!==p)return;C=!1}else for(;!(C=(h=y.call(p)).done)&&(v.push(h.value),v.length!==m);C=!0);}catch(A){S=!0,g=A}finally{try{if(!C&&p.return!=null&&(b=p.return(),Object(b)!==b))return}finally{if(S)throw g}}return v}}function l(d){if(Array.isArray(d))return d}var c=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],u={entries:function(){return c},forEach:function(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,p=0,h=c;p<h.length;p++){var g=n(h[p],2),y=g[0],b=g[1];d.call(m,b,y,c)}},get:function(d){var m=c.filter(function(p){return p[0]===d})[0];return m&&m[1]},has:function(d){return!!u.get(d)},keys:function(){return c.map(function(d){var m=n(d,1),p=m[0];return p})},values:function(){return c.map(function(d){var m=n(d,2),p=m[1];return p})}};e.default=(0,t.default)(u,u.entries())}}),IO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),DO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),FO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),LO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),BO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),kO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),$O=w({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),UO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),HO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};e.default=t}}),VO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),zO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),GO=w({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),YO=w({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=p(IO()),r=p(DO()),n=p(FO()),o=p(LO()),a=p(BO()),i=p(kO()),s=p($O()),l=p(UO()),c=p(HO()),u=p(VO()),d=p(zO()),m=p(GO());function p(g){return g&&g.__esModule?g:{default:g}}var h=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",a.default],["roletype",i.default],["section",s.default],["sectionhead",l.default],["select",c.default],["structure",u.default],["widget",d.default],["window",m.default]];e.default=h}}),WO=w({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),KO=w({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};e.default=t}}),XO=w({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),JO=w({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}}),QO=w({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),ZO=w({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),eq=w({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),tq=w({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),rq=w({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),nq=w({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}}),oq=w({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),aq=w({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),iq=w({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]};e.default=t}}),sq=w({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),lq=w({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),uq=w({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),cq=w({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),dq=w({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}}),pq=w({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),fq=w({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),mq=w({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),hq=w({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),yq=w({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),bq=w({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),gq=w({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),vq=w({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]};e.default=t}}),Eq=w({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]};e.default=t}}),_q=w({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Rq=w({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]};e.default=t}}),wq=w({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Cq=w({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Sq=w({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),Aq=w({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Tq=w({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),Pq=w({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Oq=w({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),qq=w({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),xq=w({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Mq=w({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Nq=w({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),jq=w({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),Iq=w({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]};e.default=t}}),Dq=w({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),Fq=w({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]};e.default=t}}),Lq=w({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]};e.default=t}}),Bq=w({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]};e.default=t}}),kq=w({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),$q=w({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),Uq=w({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Hq=w({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]};e.default=t}}),Vq=w({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),zq=w({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),Gq=w({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}}),Yq=w({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}}),Wq=w({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),Kq=w({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Xq=w({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]};e.default=t}}),Jq=w({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),Qq=w({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),Zq=w({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}}),ex=w({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),tx=w({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]};e.default=t}}),rx=w({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),nx=w({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}}),ox=w({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}}),ax=w({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),ix=w({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),sx=w({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),lx=w({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),ux=w({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]};e.default=t}}),cx=w({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]};e.default=t}}),dx=w({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),px=w({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]};e.default=t}}),fx=w({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),mx=w({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),hx=w({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]};e.default=t}}),yx=w({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),bx=w({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}}),gx=w({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}}),vx=w({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Ex=w({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),_x=w({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]};e.default=t}}),Rx=w({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]};e.default=t}}),wx=w({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=k(WO()),r=k(KO()),n=k(XO()),o=k(JO()),a=k(QO()),i=k(ZO()),s=k(eq()),l=k(tq()),c=k(rq()),u=k(nq()),d=k(oq()),m=k(aq()),p=k(iq()),h=k(sq()),g=k(lq()),y=k(uq()),b=k(cq()),v=k(dq()),C=k(pq()),S=k(fq()),A=k(mq()),_=k(hq()),E=k(yq()),R=k(bq()),P=k(gq()),N=k(vq()),B=k(Eq()),j=k(_q()),F=k(Rq()),T=k(wq()),M=k(Cq()),D=k(Sq()),Y=k(Aq()),G=k(Tq()),J=k(Pq()),re=k(Oq()),te=k(qq()),H=k(xq()),U=k(Mq()),z=k(Nq()),K=k(jq()),W=k(Iq()),ee=k(Dq()),se=k(Fq()),ze=k(Lq()),L=k(Bq()),X=k(kq()),Z=k($q()),de=k(Uq()),ue=k(Hq()),fe=k(Vq()),ye=k(zq()),qe=k(Gq()),lt=k(Yq()),Kn=k(Wq()),Xn=k(Kq()),Hi=k(Xq()),Vi=k(Jq()),zi=k(Qq()),Gi=k(Zq()),Yi=k(ex()),Wi=k(tx()),Ki=k(rx()),Xi=k(nx()),Ji=k(ox()),Qi=k(ax()),Zi=k(ix()),es=k(sx()),ts=k(lx()),rs=k(ux()),ns=k(cx()),os=k(dx()),as=k(px()),is=k(fx()),ss=k(mx()),ls=k(hx()),us=k(yx()),cs=k(bx()),ds=k(gx()),ps=k(vx()),fs=k(Ex()),ms=k(_x()),hs=k(Rx());function k(tn){return tn&&tn.__esModule?tn:{default:tn}}var ys=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",a.default],["blockquote",i.default],["button",s.default],["caption",l.default],["cell",c.default],["checkbox",u.default],["code",d.default],["columnheader",m.default],["combobox",p.default],["complementary",h.default],["contentinfo",g.default],["definition",y.default],["deletion",b.default],["dialog",v.default],["directory",C.default],["document",S.default],["emphasis",A.default],["feed",_.default],["figure",E.default],["form",R.default],["generic",P.default],["grid",N.default],["gridcell",B.default],["group",j.default],["heading",F.default],["img",T.default],["insertion",M.default],["link",D.default],["list",Y.default],["listbox",G.default],["listitem",J.default],["log",re.default],["main",te.default],["mark",H.default],["marquee",U.default],["math",z.default],["menu",K.default],["menubar",W.default],["menuitem",ee.default],["menuitemcheckbox",se.default],["menuitemradio",ze.default],["meter",L.default],["navigation",X.default],["none",Z.default],["note",de.default],["option",ue.default],["paragraph",fe.default],["presentation",ye.default],["progressbar",qe.default],["radio",lt.default],["radiogroup",Kn.default],["region",Xn.default],["row",Hi.default],["rowgroup",Vi.default],["rowheader",zi.default],["scrollbar",Gi.default],["search",Yi.default],["searchbox",Wi.default],["separator",Ki.default],["slider",Xi.default],["spinbutton",Ji.default],["status",Qi.default],["strong",Zi.default],["subscript",es.default],["superscript",ts.default],["switch",rs.default],["tab",ns.default],["table",os.default],["tablist",as.default],["tabpanel",is.default],["term",ss.default],["textbox",ls.default],["time",us.default],["timer",cs.default],["toolbar",ds.default],["tooltip",ps.default],["tree",fs.default],["treegrid",ms.default],["treeitem",hs.default]];e.default=ys}}),Cx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Sx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Ax=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Tx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Px=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),Ox=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}}),qx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),xx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),Mx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Nx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),jx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Ix=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}}),Dx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Fx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Lx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Bx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}}),kx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),$x=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Ux=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Hx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Vx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),zx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Gx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Yx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Wx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),Kx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),Xx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),Jx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),Qx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}}),Zx=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]};e.default=t}}),eM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),tM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),rM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),nM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),oM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),aM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),iM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]};e.default=t}}),sM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),lM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]};e.default=t}}),uM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}}),cM=w({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),dM=w({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=W(Cx()),r=W(Sx()),n=W(Ax()),o=W(Tx()),a=W(Px()),i=W(Ox()),s=W(qx()),l=W(xx()),c=W(Mx()),u=W(Nx()),d=W(jx()),m=W(Ix()),p=W(Dx()),h=W(Fx()),g=W(Lx()),y=W(Bx()),b=W(kx()),v=W($x()),C=W(Ux()),S=W(Hx()),A=W(Vx()),_=W(zx()),E=W(Gx()),R=W(Yx()),P=W(Wx()),N=W(Kx()),B=W(Xx()),j=W(Jx()),F=W(Qx()),T=W(Zx()),M=W(eM()),D=W(tM()),Y=W(rM()),G=W(nM()),J=W(oM()),re=W(aM()),te=W(iM()),H=W(sM()),U=W(lM()),z=W(uM()),K=W(cM());function W(se){return se&&se.__esModule?se:{default:se}}var ee=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",o.default],["doc-backlink",a.default],["doc-biblioentry",i.default],["doc-bibliography",s.default],["doc-biblioref",l.default],["doc-chapter",c.default],["doc-colophon",u.default],["doc-conclusion",d.default],["doc-cover",m.default],["doc-credit",p.default],["doc-credits",h.default],["doc-dedication",g.default],["doc-endnote",y.default],["doc-endnotes",b.default],["doc-epigraph",v.default],["doc-epilogue",C.default],["doc-errata",S.default],["doc-example",A.default],["doc-footnote",_.default],["doc-foreword",E.default],["doc-glossary",R.default],["doc-glossref",P.default],["doc-index",N.default],["doc-introduction",B.default],["doc-noteref",j.default],["doc-notice",F.default],["doc-pagebreak",T.default],["doc-pagefooter",M.default],["doc-pageheader",D.default],["doc-pagelist",Y.default],["doc-part",G.default],["doc-preface",J.default],["doc-prologue",re.default],["doc-pullquote",te.default],["doc-qna",H.default],["doc-subtitle",U.default],["doc-tip",z.default],["doc-toc",K.default]];e.default=ee}}),pM=w({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}}),fM=w({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}}),mM=w({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}}),hM=w({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(pM()),r=o(fM()),n=o(mM());function o(i){return i&&i.__esModule?i:{default:i}}var a=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=a}}),Cc=w({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(YO()),r=i(wx()),n=i(dM()),o=i(hM()),a=i(ko());function i(y){return y&&y.__esModule?y:{default:y}}function s(y,b){var v=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!v){if(Array.isArray(y)||(v=u(y))||b&&y&&typeof y.length=="number"){v&&(y=v);var C=0,S=function(){};return{s:S,n:function(){return C>=y.length?{done:!0}:{done:!1,value:y[C++]}},e:function(R){throw R},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
282
282
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A,_=!0,E=!1;return{s:function(){v=v.call(y)},n:function(){var R=v.next();return _=R.done,R},e:function(R){E=!0,A=R},f:function(){try{_||v.return==null||v.return()}finally{if(E)throw A}}}}function l(y,b){return p(y)||m(y,b)||u(y,b)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
283
283
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(y,b){if(y){if(typeof y=="string")return d(y,b);var v={}.toString.call(y).slice(8,-1);return v==="Object"&&y.constructor&&(v=y.constructor.name),v==="Map"||v==="Set"?Array.from(y):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?d(y,b):void 0}}function d(y,b){(b==null||b>y.length)&&(b=y.length);for(var v=0,C=Array(b);v<b;v++)C[v]=y[v];return C}function m(y,b){var v=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(v!=null){var C,S,A,_,E=[],R=!0,P=!1;try{if(A=(v=v.call(y)).next,b===0){if(Object(v)!==v)return;R=!1}else for(;!(R=(C=A.call(v)).done)&&(E.push(C.value),E.length!==b);R=!0);}catch(N){P=!0,S=N}finally{try{if(!R&&v.return!=null&&(_=v.return(),Object(_)!==_))return}finally{if(P)throw S}}return E}}function p(y){if(Array.isArray(y))return y}var h=[].concat(t.default,r.default,n.default,o.default);h.forEach(function(y){var b=l(y,2),v=b[1],C=s(v.superClass),S;try{for(C.s();!(S=C.n()).done;){var A=S.value,_=s(A),E;try{var R=function(){var P=E.value,N=h.filter(function(M){var D=l(M,1),Y=D[0];return Y===P})[0];if(N)for(var B=N[1],j=0,F=Object.keys(B.props);j<F.length;j++){var T=F[j];Object.prototype.hasOwnProperty.call(v.props,T)||(v.props[T]=B.props[T])}};for(_.s();!(E=_.n()).done;)R()}catch(P){_.e(P)}finally{_.f()}}}catch(P){C.e(P)}finally{C.f()}});var g={entries:function(){return h},forEach:function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,v=s(h),C;try{for(v.s();!(C=v.n()).done;){var S=l(C.value,2),A=S[0],_=S[1];y.call(b,_,A,h)}}catch(E){v.e(E)}finally{v.f()}},get:function(y){var b=h.filter(function(v){return v[0]===y})[0];return b&&b[1]},has:function(y){return!!g.get(y)},keys:function(){return h.map(function(y){var b=l(y,1),v=b[0];return v})},values:function(){return h.map(function(y){var b=l(y,2),v=b[1];return v})}};e.default=(0,a.default)(g,g.entries())}}),yM=w({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ko()),r=n(Cc());function n(_){return _&&_.__esModule?_:{default:_}}function o(_,E){return c(_)||l(_,E)||i(_,E)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
284
284
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(_,E){if(_){if(typeof _=="string")return s(_,E);var R={}.toString.call(_).slice(8,-1);return R==="Object"&&_.constructor&&(R=_.constructor.name),R==="Map"||R==="Set"?Array.from(_):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?s(_,E):void 0}}function s(_,E){(E==null||E>_.length)&&(E=_.length);for(var R=0,P=Array(E);R<E;R++)P[R]=_[R];return P}function l(_,E){var R=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(R!=null){var P,N,B,j,F=[],T=!0,M=!1;try{if(B=(R=R.call(_)).next,E===0){if(Object(R)!==R)return;T=!1}else for(;!(T=(P=B.call(R)).done)&&(F.push(P.value),F.length!==E);T=!0);}catch(D){M=!0,N=D}finally{try{if(!T&&R.return!=null&&(j=R.return(),Object(j)!==j))return}finally{if(M)throw N}}return F}}function c(_){if(Array.isArray(_))return _}var u=[],d=r.default.keys();for(b=0;b<d.length;b++)if(m=d[b],p=r.default.get(m),p)for(h=[].concat(p.baseConcepts,p.relatedConcepts),g=function(){var _=h[y];if(_.module==="HTML"){var E=_.concept;if(E){var R=u.filter(function(j){return C(j[0],E)})[0],P;R?P=R[1]:P=[];for(var N=!0,B=0;B<P.length;B++)if(P[B]===m){N=!1;break}N&&P.push(m),R||u.push([E,P])}}},y=0;y<h.length;y++)g();var m,p,h,g,y,b,v={entries:function(){return u},forEach:function(_){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,R=0,P=u;R<P.length;R++){var N=o(P[R],2),B=N[0],j=N[1];_.call(E,j,B,u)}},get:function(_){var E=u.filter(function(R){return _.name===R[0].name&&A(_.attributes,R[0].attributes)})[0];return E&&E[1]},has:function(_){return!!v.get(_)},keys:function(){return u.map(function(_){var E=o(_,1),R=E[0];return R})},values:function(){return u.map(function(_){var E=o(_,2),R=E[1];return R})}};function C(_,E){return _.name===E.name&&S(_.constraints,E.constraints)&&A(_.attributes,E.attributes)}function S(_,E){if(_===void 0&&E!==void 0||_!==void 0&&E===void 0)return!1;if(_!==void 0&&E!==void 0){if(_.length!==E.length)return!1;for(var R=0;R<_.length;R++)if(_[R]!==E[R])return!1}return!0}function A(_,E){if(_===void 0&&E!==void 0||_!==void 0&&E===void 0)return!1;if(_!==void 0&&E!==void 0){if(_.length!==E.length)return!1;for(var R=0;R<_.length;R++){if(_[R].name!==E[R].name||_[R].value!==E[R].value||_[R].constraints===void 0&&E[R].constraints!==void 0||_[R].constraints!==void 0&&E[R].constraints===void 0)return!1;if(_[R].constraints!==void 0&&E[R].constraints!==void 0){if(_[R].constraints.length!==E[R].constraints.length)return!1;for(var P=0;P<_[R].constraints.length;P++)if(_[R].constraints[P]!==E[R].constraints[P])return!1}}}return!0}e.default=(0,t.default)(v,v.entries())}}),bM=w({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ko()),r=n(Cc());function n(A){return A&&A.__esModule?A:{default:A}}function o(A,_){return c(A)||l(A,_)||i(A,_)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
285
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(A,_){if(A){if(typeof A=="string")return s(A,_);var E={}.toString.call(A).slice(8,-1);return E==="Object"&&A.constructor&&(E=A.constructor.name),E==="Map"||E==="Set"?Array.from(A):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?s(A,_):void 0}}function s(A,_){(_==null||_>A.length)&&(_=A.length);for(var E=0,R=Array(_);E<_;E++)R[E]=A[E];return R}function l(A,_){var E=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(E!=null){var R,P,N,B,j=[],F=!0,T=!1;try{if(N=(E=E.call(A)).next,_===0){if(Object(E)!==E)return;F=!1}else for(;!(F=(R=N.call(E)).done)&&(j.push(R.value),j.length!==_);F=!0);}catch(M){T=!0,P=M}finally{try{if(!F&&E.return!=null&&(B=E.return(),Object(B)!==B))return}finally{if(T)throw P}}return j}}function c(A){if(Array.isArray(A))return A}var u=[],d=r.default.keys();for(C=0;C<d.length;C++)if(m=d[C],p=r.default.get(m),h=[],p){for(g=[].concat(p.baseConcepts,p.relatedConcepts),v=0;v<g.length;v++)y=g[v],y.module==="HTML"&&(b=y.concept,b!=null&&h.push(b));h.length>0&&u.push([m,h])}var m,p,h,g,y,b,v,C,S={entries:function(){return u},forEach:function(A){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=0,R=u;E<R.length;E++){var P=o(R[E],2),N=P[0],B=P[1];A.call(_,B,N,u)}},get:function(A){var _=u.filter(function(E){return E[0]===A})[0];return _&&_[1]},has:function(A){return!!S.get(A)},keys:function(){return u.map(function(A){var _=o(A,1),E=_[0];return E})},values:function(){return u.map(function(A){var _=o(A,2),E=_[1];return E})}};e.default=(0,t.default)(S,S.entries())}}),Kg=w({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=i(NO()),r=i(jO()),n=i(Cc()),o=i(yM()),a=i(bM());function i(s){return s&&s.__esModule?s:{default:s}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=o.default,e.roleElements=a.default}}),gM=w({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Xg=w({"../../node_modules/color-convert/conversions.js"(e,t){var r=gM(),n={};for(let i of Object.keys(r))n[r[i]]=i;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let i of Object.keys(o)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:s,labels:l}=o[i];delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:s}),Object.defineProperty(o[i],"labels",{value:l})}o.rgb.hsl=function(i){let s=i[0]/255,l=i[1]/255,c=i[2]/255,u=Math.min(s,l,c),d=Math.max(s,l,c),m=d-u,p,h;d===u?p=0:s===d?p=(l-c)/m:l===d?p=2+(c-s)/m:c===d&&(p=4+(s-l)/m),p=Math.min(p*60,360),p<0&&(p+=360);let g=(u+d)/2;return d===u?h=0:g<=.5?h=m/(d+u):h=m/(2-d-u),[p,h*100,g*100]},o.rgb.hsv=function(i){let s,l,c,u,d,m=i[0]/255,p=i[1]/255,h=i[2]/255,g=Math.max(m,p,h),y=g-Math.min(m,p,h),b=function(v){return(g-v)/6/y+1/2};return y===0?(u=0,d=0):(d=y/g,s=b(m),l=b(p),c=b(h),m===g?u=c-l:p===g?u=1/3+s-c:h===g&&(u=2/3+l-s),u<0?u+=1:u>1&&(u-=1)),[u*360,d*100,g*100]},o.rgb.hwb=function(i){let s=i[0],l=i[1],c=i[2],u=o.rgb.hsl(i)[0],d=1/255*Math.min(s,Math.min(l,c));return c=1-1/255*Math.max(s,Math.max(l,c)),[u,d*100,c*100]},o.rgb.cmyk=function(i){let s=i[0]/255,l=i[1]/255,c=i[2]/255,u=Math.min(1-s,1-l,1-c),d=(1-s-u)/(1-u)||0,m=(1-l-u)/(1-u)||0,p=(1-c-u)/(1-u)||0;return[d*100,m*100,p*100,u*100]};function a(i,s){return(i[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2}o.rgb.keyword=function(i){let s=n[i];if(s)return s;let l=1/0,c;for(let u of Object.keys(r)){let d=r[u],m=a(i,d);m<l&&(l=m,c=u)}return c},o.keyword.rgb=function(i){return r[i]},o.rgb.xyz=function(i){let s=i[0]/255,l=i[1]/255,c=i[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;let u=s*.4124+l*.3576+c*.1805,d=s*.2126+l*.7152+c*.0722,m=s*.0193+l*.1192+c*.9505;return[u*100,d*100,m*100]},o.rgb.lab=function(i){let s=o.rgb.xyz(i),l=s[0],c=s[1],u=s[2];l/=95.047,c/=100,u/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let d=116*c-16,m=500*(l-c),p=200*(c-u);return[d,m,p]},o.hsl.rgb=function(i){let s=i[0]/360,l=i[1]/100,c=i[2]/100,u,d,m;if(l===0)return m=c*255,[m,m,m];c<.5?u=c*(1+l):u=c+l-c*l;let p=2*c-u,h=[0,0,0];for(let g=0;g<3;g++)d=s+1/3*-(g-1),d<0&&d++,d>1&&d--,6*d<1?m=p+(u-p)*6*d:2*d<1?m=u:3*d<2?m=p+(u-p)*(2/3-d)*6:m=p,h[g]=m*255;return h},o.hsl.hsv=function(i){let s=i[0],l=i[1]/100,c=i[2]/100,u=l,d=Math.max(c,.01);c*=2,l*=c<=1?c:2-c,u*=d<=1?d:2-d;let m=(c+l)/2,p=c===0?2*u/(d+u):2*l/(c+l);return[s,p*100,m*100]},o.hsv.rgb=function(i){let s=i[0]/60,l=i[1]/100,c=i[2]/100,u=Math.floor(s)%6,d=s-Math.floor(s),m=255*c*(1-l),p=255*c*(1-l*d),h=255*c*(1-l*(1-d));switch(c*=255,u){case 0:return[c,h,m];case 1:return[p,c,m];case 2:return[m,c,h];case 3:return[m,p,c];case 4:return[h,m,c];case 5:return[c,m,p]}},o.hsv.hsl=function(i){let s=i[0],l=i[1]/100,c=i[2]/100,u=Math.max(c,.01),d,m;m=(2-l)*c;let p=(2-l)*u;return d=l*u,d/=p<=1?p:2-p,d=d||0,m/=2,[s,d*100,m*100]},o.hwb.rgb=function(i){let s=i[0]/360,l=i[1]/100,c=i[2]/100,u=l+c,d;u>1&&(l/=u,c/=u);let m=Math.floor(6*s),p=1-c;d=6*s-m,(m&1)!==0&&(d=1-d);let h=l+d*(p-l),g,y,b;switch(m){default:case 6:case 0:g=p,y=h,b=l;break;case 1:g=h,y=p,b=l;break;case 2:g=l,y=p,b=h;break;case 3:g=l,y=h,b=p;break;case 4:g=h,y=l,b=p;break;case 5:g=p,y=l,b=h;break}return[g*255,y*255,b*255]},o.cmyk.rgb=function(i){let s=i[0]/100,l=i[1]/100,c=i[2]/100,u=i[3]/100,d=1-Math.min(1,s*(1-u)+u),m=1-Math.min(1,l*(1-u)+u),p=1-Math.min(1,c*(1-u)+u);return[d*255,m*255,p*255]},o.xyz.rgb=function(i){let s=i[0]/100,l=i[1]/100,c=i[2]/100,u,d,m;return u=s*3.2406+l*-1.5372+c*-.4986,d=s*-.9689+l*1.8758+c*.0415,m=s*.0557+l*-.204+c*1.057,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,m=m>.0031308?1.055*m**(1/2.4)-.055:m*12.92,u=Math.min(Math.max(0,u),1),d=Math.min(Math.max(0,d),1),m=Math.min(Math.max(0,m),1),[u*255,d*255,m*255]},o.xyz.lab=function(i){let s=i[0],l=i[1],c=i[2];s/=95.047,l/=100,c/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let u=116*l-16,d=500*(s-l),m=200*(l-c);return[u,d,m]},o.lab.xyz=function(i){let s=i[0],l=i[1],c=i[2],u,d,m;d=(s+16)/116,u=l/500+d,m=d-c/200;let p=d**3,h=u**3,g=m**3;return d=p>.008856?p:(d-16/116)/7.787,u=h>.008856?h:(u-16/116)/7.787,m=g>.008856?g:(m-16/116)/7.787,u*=95.047,d*=100,m*=108.883,[u,d,m]},o.lab.lch=function(i){let s=i[0],l=i[1],c=i[2],u;u=Math.atan2(c,l)*360/2/Math.PI,u<0&&(u+=360);let d=Math.sqrt(l*l+c*c);return[s,d,u]},o.lch.lab=function(i){let s=i[0],l=i[1],c=i[2]/360*2*Math.PI,u=l*Math.cos(c),d=l*Math.sin(c);return[s,u,d]},o.rgb.ansi16=function(i,s=null){let[l,c,u]=i,d=s===null?o.rgb.hsv(i)[2]:s;if(d=Math.round(d/50),d===0)return 30;let m=30+(Math.round(u/255)<<2|Math.round(c/255)<<1|Math.round(l/255));return d===2&&(m+=60),m},o.hsv.ansi16=function(i){return o.rgb.ansi16(o.hsv.rgb(i),i[2])},o.rgb.ansi256=function(i){let s=i[0],l=i[1],c=i[2];return s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5)},o.ansi16.rgb=function(i){let s=i%10;if(s===0||s===7)return i>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let l=(~~(i>50)+1)*.5,c=(s&1)*l*255,u=(s>>1&1)*l*255,d=(s>>2&1)*l*255;return[c,u,d]},o.ansi256.rgb=function(i){if(i>=232){let d=(i-232)*10+8;return[d,d,d]}i-=16;let s,l=Math.floor(i/36)/5*255,c=Math.floor((s=i%36)/6)/5*255,u=s%6/5*255;return[l,c,u]},o.rgb.hex=function(i){let s=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.hex.rgb=function(i){let s=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let l=s[0];s[0].length===3&&(l=l.split("").map(p=>p+p).join(""));let c=parseInt(l,16),u=c>>16&255,d=c>>8&255,m=c&255;return[u,d,m]},o.rgb.hcg=function(i){let s=i[0]/255,l=i[1]/255,c=i[2]/255,u=Math.max(Math.max(s,l),c),d=Math.min(Math.min(s,l),c),m=u-d,p,h;return m<1?p=d/(1-m):p=0,m<=0?h=0:u===s?h=(l-c)/m%6:u===l?h=2+(c-s)/m:h=4+(s-l)/m,h/=6,h%=1,[h*360,m*100,p*100]},o.hsl.hcg=function(i){let s=i[1]/100,l=i[2]/100,c=l<.5?2*s*l:2*s*(1-l),u=0;return c<1&&(u=(l-.5*c)/(1-c)),[i[0],c*100,u*100]},o.hsv.hcg=function(i){let s=i[1]/100,l=i[2]/100,c=s*l,u=0;return c<1&&(u=(l-c)/(1-c)),[i[0],c*100,u*100]},o.hcg.rgb=function(i){let s=i[0]/360,l=i[1]/100,c=i[2]/100;if(l===0)return[c*255,c*255,c*255];let u=[0,0,0],d=s%1*6,m=d%1,p=1-m,h=0;switch(Math.floor(d)){case 0:u[0]=1,u[1]=m,u[2]=0;break;case 1:u[0]=p,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=m;break;case 3:u[0]=0,u[1]=p,u[2]=1;break;case 4:u[0]=m,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=p}return h=(1-l)*c,[(l*u[0]+h)*255,(l*u[1]+h)*255,(l*u[2]+h)*255]},o.hcg.hsv=function(i){let s=i[1]/100,l=i[2]/100,c=s+l*(1-s),u=0;return c>0&&(u=s/c),[i[0],u*100,c*100]},o.hcg.hsl=function(i){let s=i[1]/100,l=i[2]/100*(1-s)+.5*s,c=0;return l>0&&l<.5?c=s/(2*l):l>=.5&&l<1&&(c=s/(2*(1-l))),[i[0],c*100,l*100]},o.hcg.hwb=function(i){let s=i[1]/100,l=i[2]/100,c=s+l*(1-s);return[i[0],(c-s)*100,(1-c)*100]},o.hwb.hcg=function(i){let s=i[1]/100,l=1-i[2]/100,c=l-s,u=0;return c<1&&(u=(l-c)/(1-c)),[i[0],c*100,u*100]},o.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},o.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},o.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},o.gray.hsl=function(i){return[0,0,i[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(i){return[0,100,i[0]]},o.gray.cmyk=function(i){return[0,0,0,i[0]]},o.gray.lab=function(i){return[i[0],0,0]},o.gray.hex=function(i){let s=Math.round(i[0]/100*255)&255,l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]}}}),vM=w({"../../node_modules/color-convert/route.js"(e,t){var r=Xg();function n(){let s={},l=Object.keys(r);for(let c=l.length,u=0;u<c;u++)s[l[u]]={distance:-1,parent:null};return s}function o(s){let l=n(),c=[s];for(l[s].distance=0;c.length;){let u=c.pop(),d=Object.keys(r[u]);for(let m=d.length,p=0;p<m;p++){let h=d[p],g=l[h];g.distance===-1&&(g.distance=l[u].distance+1,g.parent=u,c.unshift(h))}}return l}function a(s,l){return function(c){return l(s(c))}}function i(s,l){let c=[l[s].parent,s],u=r[l[s].parent][s],d=l[s].parent;for(;l[d].parent;)c.unshift(l[d].parent),u=a(r[l[d].parent][d],u),d=l[d].parent;return u.conversion=c,u}t.exports=function(s){let l=o(s),c={},u=Object.keys(l);for(let d=u.length,m=0;m<d;m++){let p=u[m];l[p].parent!==null&&(c[p]=i(p,l))}return c}}}),EM=w({"../../node_modules/color-convert/index.js"(e,t){var r=Xg(),n=vM(),o={},a=Object.keys(r);function i(l){let c=function(...u){let d=u[0];return d==null?d:(d.length>1&&(u=d),l(u))};return"conversion"in l&&(c.conversion=l.conversion),c}function s(l){let c=function(...u){let d=u[0];if(d==null)return d;d.length>1&&(u=d);let m=l(u);if(typeof m=="object")for(let p=m.length,h=0;h<p;h++)m[h]=Math.round(m[h]);return m};return"conversion"in l&&(c.conversion=l.conversion),c}a.forEach(l=>{o[l]={},Object.defineProperty(o[l],"channels",{value:r[l].channels}),Object.defineProperty(o[l],"labels",{value:r[l].labels});let c=n(l);Object.keys(c).forEach(u=>{let d=c[u];o[l][u]=s(d),o[l][u].raw=i(d)})}),t.exports=o}}),_M=w({"../../node_modules/ansi-styles/index.js"(e,t){var r=(d,m)=>(...p)=>`\x1B[${d(...p)+m}m`,n=(d,m)=>(...p)=>{let h=d(...p);return`\x1B[${38+m};5;${h}m`},o=(d,m)=>(...p)=>{let h=d(...p);return`\x1B[${38+m};2;${h[0]};${h[1]};${h[2]}m`},a=d=>d,i=(d,m,p)=>[d,m,p],s=(d,m,p)=>{Object.defineProperty(d,m,{get:()=>{let h=p();return Object.defineProperty(d,m,{value:h,enumerable:!0,configurable:!0}),h},enumerable:!0,configurable:!0})},l,c=(d,m,p,h)=>{l===void 0&&(l=EM());let g=h?10:0,y={};for(let[b,v]of Object.entries(l)){let C=b==="ansi16"?"ansi":b;b===m?y[C]=d(p,g):typeof v=="object"&&(y[C]=d(v[m],g))}return y};function u(){let d=new Map,m={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};m.color.gray=m.color.blackBright,m.bgColor.bgGray=m.bgColor.bgBlackBright,m.color.grey=m.color.blackBright,m.bgColor.bgGrey=m.bgColor.bgBlackBright;for(let[p,h]of Object.entries(m)){for(let[g,y]of Object.entries(h))m[g]={open:`\x1B[${y[0]}m`,close:`\x1B[${y[1]}m`},h[g]=m[g],d.set(y[0],y[1]);Object.defineProperty(m,p,{value:h,enumerable:!1})}return Object.defineProperty(m,"codes",{value:d,enumerable:!1}),m.color.close="\x1B[39m",m.bgColor.close="\x1B[49m",s(m.color,"ansi",()=>c(r,"ansi16",a,!1)),s(m.color,"ansi256",()=>c(n,"ansi256",a,!1)),s(m.color,"ansi16m",()=>c(o,"rgb",i,!1)),s(m.bgColor,"ansi",()=>c(r,"ansi16",a,!0)),s(m.bgColor,"ansi256",()=>c(n,"ansi256",a,!0)),s(m.bgColor,"ansi16m",()=>c(o,"rgb",i,!0)),m}Object.defineProperty(t,"exports",{enumerable:!0,get:u})}}),RM=w({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1}}}),wM=w({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(e,t){var r=(o,a,i)=>{let s=o.indexOf(a);if(s===-1)return o;let l=a.length,c=0,u="";do u+=o.substr(c,s-c)+a+i,c=s+l,s=o.indexOf(a,c);while(s!==-1);return u+=o.substr(c),u},n=(o,a,i,s)=>{let l=0,c="";do{let u=o[s-1]==="\r";c+=o.substr(l,(u?s-1:s)-l)+a+(u?`\r
|
|
285
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(A,_){if(A){if(typeof A=="string")return s(A,_);var E={}.toString.call(A).slice(8,-1);return E==="Object"&&A.constructor&&(E=A.constructor.name),E==="Map"||E==="Set"?Array.from(A):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?s(A,_):void 0}}function s(A,_){(_==null||_>A.length)&&(_=A.length);for(var E=0,R=Array(_);E<_;E++)R[E]=A[E];return R}function l(A,_){var E=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(E!=null){var R,P,N,B,j=[],F=!0,T=!1;try{if(N=(E=E.call(A)).next,_===0){if(Object(E)!==E)return;F=!1}else for(;!(F=(R=N.call(E)).done)&&(j.push(R.value),j.length!==_);F=!0);}catch(M){T=!0,P=M}finally{try{if(!F&&E.return!=null&&(B=E.return(),Object(B)!==B))return}finally{if(T)throw P}}return j}}function c(A){if(Array.isArray(A))return A}var u=[],d=r.default.keys();for(C=0;C<d.length;C++)if(m=d[C],p=r.default.get(m),h=[],p){for(g=[].concat(p.baseConcepts,p.relatedConcepts),v=0;v<g.length;v++)y=g[v],y.module==="HTML"&&(b=y.concept,b!=null&&h.push(b));h.length>0&&u.push([m,h])}var m,p,h,g,y,b,v,C,S={entries:function(){return u},forEach:function(A){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=0,R=u;E<R.length;E++){var P=o(R[E],2),N=P[0],B=P[1];A.call(_,B,N,u)}},get:function(A){var _=u.filter(function(E){return E[0]===A})[0];return _&&_[1]},has:function(A){return!!S.get(A)},keys:function(){return u.map(function(A){var _=o(A,1),E=_[0];return E})},values:function(){return u.map(function(A){var _=o(A,2),E=_[1];return E})}};e.default=(0,t.default)(S,S.entries())}}),Xg=w({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=i(NO()),r=i(jO()),n=i(Cc()),o=i(yM()),a=i(bM());function i(s){return s&&s.__esModule?s:{default:s}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=o.default,e.roleElements=a.default}}),gM=w({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Jg=w({"../../node_modules/color-convert/conversions.js"(e,t){var r=gM(),n={};for(let i of Object.keys(r))n[r[i]]=i;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let i of Object.keys(o)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:s,labels:l}=o[i];delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:s}),Object.defineProperty(o[i],"labels",{value:l})}o.rgb.hsl=function(i){let s=i[0]/255,l=i[1]/255,c=i[2]/255,u=Math.min(s,l,c),d=Math.max(s,l,c),m=d-u,p,h;d===u?p=0:s===d?p=(l-c)/m:l===d?p=2+(c-s)/m:c===d&&(p=4+(s-l)/m),p=Math.min(p*60,360),p<0&&(p+=360);let g=(u+d)/2;return d===u?h=0:g<=.5?h=m/(d+u):h=m/(2-d-u),[p,h*100,g*100]},o.rgb.hsv=function(i){let s,l,c,u,d,m=i[0]/255,p=i[1]/255,h=i[2]/255,g=Math.max(m,p,h),y=g-Math.min(m,p,h),b=function(v){return(g-v)/6/y+1/2};return y===0?(u=0,d=0):(d=y/g,s=b(m),l=b(p),c=b(h),m===g?u=c-l:p===g?u=1/3+s-c:h===g&&(u=2/3+l-s),u<0?u+=1:u>1&&(u-=1)),[u*360,d*100,g*100]},o.rgb.hwb=function(i){let s=i[0],l=i[1],c=i[2],u=o.rgb.hsl(i)[0],d=1/255*Math.min(s,Math.min(l,c));return c=1-1/255*Math.max(s,Math.max(l,c)),[u,d*100,c*100]},o.rgb.cmyk=function(i){let s=i[0]/255,l=i[1]/255,c=i[2]/255,u=Math.min(1-s,1-l,1-c),d=(1-s-u)/(1-u)||0,m=(1-l-u)/(1-u)||0,p=(1-c-u)/(1-u)||0;return[d*100,m*100,p*100,u*100]};function a(i,s){return(i[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2}o.rgb.keyword=function(i){let s=n[i];if(s)return s;let l=1/0,c;for(let u of Object.keys(r)){let d=r[u],m=a(i,d);m<l&&(l=m,c=u)}return c},o.keyword.rgb=function(i){return r[i]},o.rgb.xyz=function(i){let s=i[0]/255,l=i[1]/255,c=i[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;let u=s*.4124+l*.3576+c*.1805,d=s*.2126+l*.7152+c*.0722,m=s*.0193+l*.1192+c*.9505;return[u*100,d*100,m*100]},o.rgb.lab=function(i){let s=o.rgb.xyz(i),l=s[0],c=s[1],u=s[2];l/=95.047,c/=100,u/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let d=116*c-16,m=500*(l-c),p=200*(c-u);return[d,m,p]},o.hsl.rgb=function(i){let s=i[0]/360,l=i[1]/100,c=i[2]/100,u,d,m;if(l===0)return m=c*255,[m,m,m];c<.5?u=c*(1+l):u=c+l-c*l;let p=2*c-u,h=[0,0,0];for(let g=0;g<3;g++)d=s+1/3*-(g-1),d<0&&d++,d>1&&d--,6*d<1?m=p+(u-p)*6*d:2*d<1?m=u:3*d<2?m=p+(u-p)*(2/3-d)*6:m=p,h[g]=m*255;return h},o.hsl.hsv=function(i){let s=i[0],l=i[1]/100,c=i[2]/100,u=l,d=Math.max(c,.01);c*=2,l*=c<=1?c:2-c,u*=d<=1?d:2-d;let m=(c+l)/2,p=c===0?2*u/(d+u):2*l/(c+l);return[s,p*100,m*100]},o.hsv.rgb=function(i){let s=i[0]/60,l=i[1]/100,c=i[2]/100,u=Math.floor(s)%6,d=s-Math.floor(s),m=255*c*(1-l),p=255*c*(1-l*d),h=255*c*(1-l*(1-d));switch(c*=255,u){case 0:return[c,h,m];case 1:return[p,c,m];case 2:return[m,c,h];case 3:return[m,p,c];case 4:return[h,m,c];case 5:return[c,m,p]}},o.hsv.hsl=function(i){let s=i[0],l=i[1]/100,c=i[2]/100,u=Math.max(c,.01),d,m;m=(2-l)*c;let p=(2-l)*u;return d=l*u,d/=p<=1?p:2-p,d=d||0,m/=2,[s,d*100,m*100]},o.hwb.rgb=function(i){let s=i[0]/360,l=i[1]/100,c=i[2]/100,u=l+c,d;u>1&&(l/=u,c/=u);let m=Math.floor(6*s),p=1-c;d=6*s-m,(m&1)!==0&&(d=1-d);let h=l+d*(p-l),g,y,b;switch(m){default:case 6:case 0:g=p,y=h,b=l;break;case 1:g=h,y=p,b=l;break;case 2:g=l,y=p,b=h;break;case 3:g=l,y=h,b=p;break;case 4:g=h,y=l,b=p;break;case 5:g=p,y=l,b=h;break}return[g*255,y*255,b*255]},o.cmyk.rgb=function(i){let s=i[0]/100,l=i[1]/100,c=i[2]/100,u=i[3]/100,d=1-Math.min(1,s*(1-u)+u),m=1-Math.min(1,l*(1-u)+u),p=1-Math.min(1,c*(1-u)+u);return[d*255,m*255,p*255]},o.xyz.rgb=function(i){let s=i[0]/100,l=i[1]/100,c=i[2]/100,u,d,m;return u=s*3.2406+l*-1.5372+c*-.4986,d=s*-.9689+l*1.8758+c*.0415,m=s*.0557+l*-.204+c*1.057,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,m=m>.0031308?1.055*m**(1/2.4)-.055:m*12.92,u=Math.min(Math.max(0,u),1),d=Math.min(Math.max(0,d),1),m=Math.min(Math.max(0,m),1),[u*255,d*255,m*255]},o.xyz.lab=function(i){let s=i[0],l=i[1],c=i[2];s/=95.047,l/=100,c/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let u=116*l-16,d=500*(s-l),m=200*(l-c);return[u,d,m]},o.lab.xyz=function(i){let s=i[0],l=i[1],c=i[2],u,d,m;d=(s+16)/116,u=l/500+d,m=d-c/200;let p=d**3,h=u**3,g=m**3;return d=p>.008856?p:(d-16/116)/7.787,u=h>.008856?h:(u-16/116)/7.787,m=g>.008856?g:(m-16/116)/7.787,u*=95.047,d*=100,m*=108.883,[u,d,m]},o.lab.lch=function(i){let s=i[0],l=i[1],c=i[2],u;u=Math.atan2(c,l)*360/2/Math.PI,u<0&&(u+=360);let d=Math.sqrt(l*l+c*c);return[s,d,u]},o.lch.lab=function(i){let s=i[0],l=i[1],c=i[2]/360*2*Math.PI,u=l*Math.cos(c),d=l*Math.sin(c);return[s,u,d]},o.rgb.ansi16=function(i,s=null){let[l,c,u]=i,d=s===null?o.rgb.hsv(i)[2]:s;if(d=Math.round(d/50),d===0)return 30;let m=30+(Math.round(u/255)<<2|Math.round(c/255)<<1|Math.round(l/255));return d===2&&(m+=60),m},o.hsv.ansi16=function(i){return o.rgb.ansi16(o.hsv.rgb(i),i[2])},o.rgb.ansi256=function(i){let s=i[0],l=i[1],c=i[2];return s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5)},o.ansi16.rgb=function(i){let s=i%10;if(s===0||s===7)return i>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let l=(~~(i>50)+1)*.5,c=(s&1)*l*255,u=(s>>1&1)*l*255,d=(s>>2&1)*l*255;return[c,u,d]},o.ansi256.rgb=function(i){if(i>=232){let d=(i-232)*10+8;return[d,d,d]}i-=16;let s,l=Math.floor(i/36)/5*255,c=Math.floor((s=i%36)/6)/5*255,u=s%6/5*255;return[l,c,u]},o.rgb.hex=function(i){let s=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.hex.rgb=function(i){let s=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let l=s[0];s[0].length===3&&(l=l.split("").map(p=>p+p).join(""));let c=parseInt(l,16),u=c>>16&255,d=c>>8&255,m=c&255;return[u,d,m]},o.rgb.hcg=function(i){let s=i[0]/255,l=i[1]/255,c=i[2]/255,u=Math.max(Math.max(s,l),c),d=Math.min(Math.min(s,l),c),m=u-d,p,h;return m<1?p=d/(1-m):p=0,m<=0?h=0:u===s?h=(l-c)/m%6:u===l?h=2+(c-s)/m:h=4+(s-l)/m,h/=6,h%=1,[h*360,m*100,p*100]},o.hsl.hcg=function(i){let s=i[1]/100,l=i[2]/100,c=l<.5?2*s*l:2*s*(1-l),u=0;return c<1&&(u=(l-.5*c)/(1-c)),[i[0],c*100,u*100]},o.hsv.hcg=function(i){let s=i[1]/100,l=i[2]/100,c=s*l,u=0;return c<1&&(u=(l-c)/(1-c)),[i[0],c*100,u*100]},o.hcg.rgb=function(i){let s=i[0]/360,l=i[1]/100,c=i[2]/100;if(l===0)return[c*255,c*255,c*255];let u=[0,0,0],d=s%1*6,m=d%1,p=1-m,h=0;switch(Math.floor(d)){case 0:u[0]=1,u[1]=m,u[2]=0;break;case 1:u[0]=p,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=m;break;case 3:u[0]=0,u[1]=p,u[2]=1;break;case 4:u[0]=m,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=p}return h=(1-l)*c,[(l*u[0]+h)*255,(l*u[1]+h)*255,(l*u[2]+h)*255]},o.hcg.hsv=function(i){let s=i[1]/100,l=i[2]/100,c=s+l*(1-s),u=0;return c>0&&(u=s/c),[i[0],u*100,c*100]},o.hcg.hsl=function(i){let s=i[1]/100,l=i[2]/100*(1-s)+.5*s,c=0;return l>0&&l<.5?c=s/(2*l):l>=.5&&l<1&&(c=s/(2*(1-l))),[i[0],c*100,l*100]},o.hcg.hwb=function(i){let s=i[1]/100,l=i[2]/100,c=s+l*(1-s);return[i[0],(c-s)*100,(1-c)*100]},o.hwb.hcg=function(i){let s=i[1]/100,l=1-i[2]/100,c=l-s,u=0;return c<1&&(u=(l-c)/(1-c)),[i[0],c*100,u*100]},o.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},o.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},o.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},o.gray.hsl=function(i){return[0,0,i[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(i){return[0,100,i[0]]},o.gray.cmyk=function(i){return[0,0,0,i[0]]},o.gray.lab=function(i){return[i[0],0,0]},o.gray.hex=function(i){let s=Math.round(i[0]/100*255)&255,l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]}}}),vM=w({"../../node_modules/color-convert/route.js"(e,t){var r=Jg();function n(){let s={},l=Object.keys(r);for(let c=l.length,u=0;u<c;u++)s[l[u]]={distance:-1,parent:null};return s}function o(s){let l=n(),c=[s];for(l[s].distance=0;c.length;){let u=c.pop(),d=Object.keys(r[u]);for(let m=d.length,p=0;p<m;p++){let h=d[p],g=l[h];g.distance===-1&&(g.distance=l[u].distance+1,g.parent=u,c.unshift(h))}}return l}function a(s,l){return function(c){return l(s(c))}}function i(s,l){let c=[l[s].parent,s],u=r[l[s].parent][s],d=l[s].parent;for(;l[d].parent;)c.unshift(l[d].parent),u=a(r[l[d].parent][d],u),d=l[d].parent;return u.conversion=c,u}t.exports=function(s){let l=o(s),c={},u=Object.keys(l);for(let d=u.length,m=0;m<d;m++){let p=u[m];l[p].parent!==null&&(c[p]=i(p,l))}return c}}}),EM=w({"../../node_modules/color-convert/index.js"(e,t){var r=Jg(),n=vM(),o={},a=Object.keys(r);function i(l){let c=function(...u){let d=u[0];return d==null?d:(d.length>1&&(u=d),l(u))};return"conversion"in l&&(c.conversion=l.conversion),c}function s(l){let c=function(...u){let d=u[0];if(d==null)return d;d.length>1&&(u=d);let m=l(u);if(typeof m=="object")for(let p=m.length,h=0;h<p;h++)m[h]=Math.round(m[h]);return m};return"conversion"in l&&(c.conversion=l.conversion),c}a.forEach(l=>{o[l]={},Object.defineProperty(o[l],"channels",{value:r[l].channels}),Object.defineProperty(o[l],"labels",{value:r[l].labels});let c=n(l);Object.keys(c).forEach(u=>{let d=c[u];o[l][u]=s(d),o[l][u].raw=i(d)})}),t.exports=o}}),_M=w({"../../node_modules/ansi-styles/index.js"(e,t){var r=(d,m)=>(...p)=>`\x1B[${d(...p)+m}m`,n=(d,m)=>(...p)=>{let h=d(...p);return`\x1B[${38+m};5;${h}m`},o=(d,m)=>(...p)=>{let h=d(...p);return`\x1B[${38+m};2;${h[0]};${h[1]};${h[2]}m`},a=d=>d,i=(d,m,p)=>[d,m,p],s=(d,m,p)=>{Object.defineProperty(d,m,{get:()=>{let h=p();return Object.defineProperty(d,m,{value:h,enumerable:!0,configurable:!0}),h},enumerable:!0,configurable:!0})},l,c=(d,m,p,h)=>{l===void 0&&(l=EM());let g=h?10:0,y={};for(let[b,v]of Object.entries(l)){let C=b==="ansi16"?"ansi":b;b===m?y[C]=d(p,g):typeof v=="object"&&(y[C]=d(v[m],g))}return y};function u(){let d=new Map,m={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};m.color.gray=m.color.blackBright,m.bgColor.bgGray=m.bgColor.bgBlackBright,m.color.grey=m.color.blackBright,m.bgColor.bgGrey=m.bgColor.bgBlackBright;for(let[p,h]of Object.entries(m)){for(let[g,y]of Object.entries(h))m[g]={open:`\x1B[${y[0]}m`,close:`\x1B[${y[1]}m`},h[g]=m[g],d.set(y[0],y[1]);Object.defineProperty(m,p,{value:h,enumerable:!1})}return Object.defineProperty(m,"codes",{value:d,enumerable:!1}),m.color.close="\x1B[39m",m.bgColor.close="\x1B[49m",s(m.color,"ansi",()=>c(r,"ansi16",a,!1)),s(m.color,"ansi256",()=>c(n,"ansi256",a,!1)),s(m.color,"ansi16m",()=>c(o,"rgb",i,!1)),s(m.bgColor,"ansi",()=>c(r,"ansi16",a,!0)),s(m.bgColor,"ansi256",()=>c(n,"ansi256",a,!0)),s(m.bgColor,"ansi16m",()=>c(o,"rgb",i,!0)),m}Object.defineProperty(t,"exports",{enumerable:!0,get:u})}}),RM=w({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1}}}),wM=w({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(e,t){var r=(o,a,i)=>{let s=o.indexOf(a);if(s===-1)return o;let l=a.length,c=0,u="";do u+=o.substr(c,s-c)+a+i,c=s+l,s=o.indexOf(a,c);while(s!==-1);return u+=o.substr(c),u},n=(o,a,i,s)=>{let l=0,c="";do{let u=o[s-1]==="\r";c+=o.substr(l,(u?s-1:s)-l)+a+(u?`\r
|
|
286
286
|
`:`
|
|
287
287
|
`)+i,l=s+1,s=o.indexOf(`
|
|
288
288
|
`,l)}while(s!==-1);return c+=o.substr(l),c};t.exports={stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:n}}}),CM=w({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(e,t){var r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n",`
|
|
289
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(d){let m=d[0]==="u",p=d[1]==="{";return m&&!p&&d.length===5||d[0]==="x"&&d.length===3?String.fromCharCode(parseInt(d.slice(1),16)):m&&p?String.fromCodePoint(parseInt(d.slice(2,-1),16)):i.get(d)||d}function l(d,m){let p=[],h=m.trim().split(/\s*,\s*/g),g;for(let y of h){let b=Number(y);if(!Number.isNaN(b))p.push(b);else if(g=y.match(o))p.push(g[2].replace(a,(v,C,S)=>C?s(C):S));else throw new Error(`Invalid Chalk template style argument: ${y} (in style '${d}')`)}return p}function c(d){n.lastIndex=0;let m=[],p;for(;(p=n.exec(d))!==null;){let h=p[1];if(p[2]){let g=l(h,p[2]);m.push([h].concat(g))}else m.push([h])}return m}function u(d,m){let p={};for(let g of m)for(let y of g.styles)p[y[0]]=g.inverse?null:y.slice(1);let h=d;for(let[g,y]of Object.entries(p))if(Array.isArray(y)){if(!(g in h))throw new Error(`Unknown Chalk style: ${g}`);h=y.length>0?h[g](...y):h[g]}return h}t.exports=(d,m)=>{let p=[],h=[],g=[];if(m.replace(r,(y,b,v,C,S,A)=>{if(b)g.push(s(b));else if(C){let _=g.join("");g=[],h.push(p.length===0?_:u(d,p)(_)),p.push({inverse:v,styles:c(C)})}else if(S){if(p.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(u(d,p)(g.join(""))),g=[],p.pop()}else g.push(A)}),h.push(g.join("")),p.length>0){let y=`Chalk template literal is missing ${p.length} closing bracket${p.length===1?"":"s"} (\`}\`)`;throw new Error(y)}return h.join("")}}}),
|
|
290
|
-
`);return N!==-1&&(_=i(_,P,R,N)),R+_+P},v,C=(A,..._)=>{let[E]=_;if(!Array.isArray(E))return _.join(" ");let R=_.slice(1),P=[E.raw[0]];for(let N=1;N<E.length;N++)P.push(String(R[N-1]).replace(/[{}\\]/g,"\\$&"),String(E.raw[N]));return v===void 0&&(v=CM()),v(A,P.join(""))};Object.defineProperties(m.prototype,l);var S=m();S.supportsColor=n,S.stderr=m({level:o?o.level:0}),S.stderr.supportsColor=o,S.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},t.exports=S}}),SM=w({"../../node_modules/lodash/_listCacheClear.js"(e,t){function r(){this.__data__=[],this.size=0}t.exports=r}}),Qg=w({"../../node_modules/lodash/eq.js"(e,t){function r(n,o){return n===o||n!==n&&o!==o}t.exports=r}}),fi=w({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var r=Qg();function n(o,a){for(var i=o.length;i--;)if(r(o[i][0],a))return i;return-1}t.exports=n}}),AM=w({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var r=fi(),n=Array.prototype,o=n.splice;function a(i){var s=this.__data__,l=r(s,i);if(l<0)return!1;var c=s.length-1;return l==c?s.pop():o.call(s,l,1),--this.size,!0}t.exports=a}}),TM=w({"../../node_modules/lodash/_listCacheGet.js"(e,t){var r=fi();function n(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}t.exports=n}}),PM=w({"../../node_modules/lodash/_listCacheHas.js"(e,t){var r=fi();function n(o){return r(this.__data__,o)>-1}t.exports=n}}),OM=w({"../../node_modules/lodash/_listCacheSet.js"(e,t){var r=fi();function n(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}t.exports=n}}),mi=w({"../../node_modules/lodash/_ListCache.js"(e,t){var r=SM(),n=AM(),o=TM(),a=PM(),i=OM();function s(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var d=l[c];this.set(d[0],d[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,t.exports=s}}),qM=w({"../../node_modules/lodash/_stackClear.js"(e,t){var r=mi();function n(){this.__data__=new r,this.size=0}t.exports=n}}),xM=w({"../../node_modules/lodash/_stackDelete.js"(e,t){function r(n){var o=this.__data__,a=o.delete(n);return this.size=o.size,a}t.exports=r}}),MM=w({"../../node_modules/lodash/_stackGet.js"(e,t){function r(n){return this.__data__.get(n)}t.exports=r}}),NM=w({"../../node_modules/lodash/_stackHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),Zg=w({"../../node_modules/lodash/_freeGlobal.js"(e,t){var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}}),rr=w({"../../node_modules/lodash/_root.js"(e,t){var r=Zg(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}}),Sc=w({"../../node_modules/lodash/_Symbol.js"(e,t){var r=rr(),n=r.Symbol;t.exports=n}}),jM=w({"../../node_modules/lodash/_getRawTag.js"(e,t){var r=Sc(),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,i=r?r.toStringTag:void 0;function s(l){var c=o.call(l,i),u=l[i];try{l[i]=void 0;var d=!0}catch{}var m=a.call(l);return d&&(c?l[i]=u:delete l[i]),m}t.exports=s}}),IM=w({"../../node_modules/lodash/_objectToString.js"(e,t){var r=Object.prototype,n=r.toString;function o(a){return n.call(a)}t.exports=o}}),hi=w({"../../node_modules/lodash/_baseGetTag.js"(e,t){var r=Sc(),n=jM(),o=IM(),a="[object Null]",i="[object Undefined]",s=r?r.toStringTag:void 0;function l(c){return c==null?c===void 0?i:a:s&&s in Object(c)?n(c):o(c)}t.exports=l}}),ev=w({"../../node_modules/lodash/isObject.js"(e,t){function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}t.exports=r}}),tv=w({"../../node_modules/lodash/isFunction.js"(e,t){var r=hi(),n=ev(),o="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(c){if(!n(c))return!1;var u=r(c);return u==a||u==i||u==o||u==s}t.exports=l}}),DM=w({"../../node_modules/lodash/_coreJsData.js"(e,t){var r=rr(),n=r["__core-js_shared__"];t.exports=n}}),FM=w({"../../node_modules/lodash/_isMasked.js"(e,t){var r=DM(),n=(function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function o(a){return!!n&&n in a}t.exports=o}}),rv=w({"../../node_modules/lodash/_toSource.js"(e,t){var r=Function.prototype,n=r.toString;function o(a){if(a!=null){try{return n.call(a)}catch{}try{return a+""}catch{}}return""}t.exports=o}}),LM=w({"../../node_modules/lodash/_baseIsNative.js"(e,t){var r=tv(),n=FM(),o=ev(),a=rv(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,m=RegExp("^"+u.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(h){if(!o(h)||n(h))return!1;var g=r(h)?m:s;return g.test(a(h))}t.exports=p}}),BM=w({"../../node_modules/lodash/_getValue.js"(e,t){function r(n,o){return n?.[o]}t.exports=r}}),Vn=w({"../../node_modules/lodash/_getNative.js"(e,t){var r=LM(),n=BM();function o(a,i){var s=n(a,i);return r(s)?s:void 0}t.exports=o}}),Ac=w({"../../node_modules/lodash/_Map.js"(e,t){var r=Vn(),n=rr(),o=r(n,"Map");t.exports=o}}),yi=w({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=Vn(),n=r(Object,"create");t.exports=n}}),kM=w({"../../node_modules/lodash/_hashClear.js"(e,t){var r=yi();function n(){this.__data__=r?r(null):{},this.size=0}t.exports=n}}),$M=w({"../../node_modules/lodash/_hashDelete.js"(e,t){function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}t.exports=r}}),UM=w({"../../node_modules/lodash/_hashGet.js"(e,t){var r=yi(),n="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function i(s){var l=this.__data__;if(r){var c=l[s];return c===n?void 0:c}return a.call(l,s)?l[s]:void 0}t.exports=i}}),HM=w({"../../node_modules/lodash/_hashHas.js"(e,t){var r=yi(),n=Object.prototype,o=n.hasOwnProperty;function a(i){var s=this.__data__;return r?s[i]!==void 0:o.call(s,i)}t.exports=a}}),VM=w({"../../node_modules/lodash/_hashSet.js"(e,t){var r=yi(),n="__lodash_hash_undefined__";function o(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=r&&i===void 0?n:i,this}t.exports=o}}),zM=w({"../../node_modules/lodash/_Hash.js"(e,t){var r=kM(),n=$M(),o=UM(),a=HM(),i=VM();function s(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var d=l[c];this.set(d[0],d[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,t.exports=s}}),GM=w({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=zM(),n=mi(),o=Ac();function a(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}t.exports=a}}),YM=w({"../../node_modules/lodash/_isKeyable.js"(e,t){function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}t.exports=r}}),bi=w({"../../node_modules/lodash/_getMapData.js"(e,t){var r=YM();function n(o,a){var i=o.__data__;return r(a)?i[typeof a=="string"?"string":"hash"]:i.map}t.exports=n}}),WM=w({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var r=bi();function n(o){var a=r(this,o).delete(o);return this.size-=a?1:0,a}t.exports=n}}),KM=w({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var r=bi();function n(o){return r(this,o).get(o)}t.exports=n}}),XM=w({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var r=bi();function n(o){return r(this,o).has(o)}t.exports=n}}),JM=w({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var r=bi();function n(o,a){var i=r(this,o),s=i.size;return i.set(o,a),this.size+=i.size==s?0:1,this}t.exports=n}}),nv=w({"../../node_modules/lodash/_MapCache.js"(e,t){var r=GM(),n=WM(),o=KM(),a=XM(),i=JM();function s(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var d=l[c];this.set(d[0],d[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,t.exports=s}}),QM=w({"../../node_modules/lodash/_stackSet.js"(e,t){var r=mi(),n=Ac(),o=nv(),a=200;function i(s,l){var c=this.__data__;if(c instanceof r){var u=c.__data__;if(!n||u.length<a-1)return u.push([s,l]),this.size=++c.size,this;c=this.__data__=new o(u)}return c.set(s,l),this.size=c.size,this}t.exports=i}}),ZM=w({"../../node_modules/lodash/_Stack.js"(e,t){var r=mi(),n=qM(),o=xM(),a=MM(),i=NM(),s=QM();function l(c){var u=this.__data__=new r(c);this.size=u.size}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,t.exports=l}}),eN=w({"../../node_modules/lodash/_setCacheAdd.js"(e,t){var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}t.exports=n}}),tN=w({"../../node_modules/lodash/_setCacheHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),rN=w({"../../node_modules/lodash/_SetCache.js"(e,t){var r=nv(),n=eN(),o=tN();function a(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new r;++s<l;)this.add(i[s])}a.prototype.add=a.prototype.push=n,a.prototype.has=o,t.exports=a}}),nN=w({"../../node_modules/lodash/_arraySome.js"(e,t){function r(n,o){for(var a=-1,i=n==null?0:n.length;++a<i;)if(o(n[a],a,n))return!0;return!1}t.exports=r}}),oN=w({"../../node_modules/lodash/_cacheHas.js"(e,t){function r(n,o){return n.has(o)}t.exports=r}}),ov=w({"../../node_modules/lodash/_equalArrays.js"(e,t){var r=rN(),n=nN(),o=oN(),a=1,i=2;function s(l,c,u,d,m,p){var h=u&a,g=l.length,y=c.length;if(g!=y&&!(h&&y>g))return!1;var b=p.get(l),v=p.get(c);if(b&&v)return b==c&&v==l;var C=-1,S=!0,A=u&i?new r:void 0;for(p.set(l,c),p.set(c,l);++C<g;){var _=l[C],E=c[C];if(d)var R=h?d(E,_,C,c,l,p):d(_,E,C,l,c,p);if(R!==void 0){if(R)continue;S=!1;break}if(A){if(!n(c,function(P,N){if(!o(A,N)&&(_===P||m(_,P,u,d,p)))return A.push(N)})){S=!1;break}}else if(!(_===E||m(_,E,u,d,p))){S=!1;break}}return p.delete(l),p.delete(c),S}t.exports=s}}),aN=w({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=rr(),n=r.Uint8Array;t.exports=n}}),iN=w({"../../node_modules/lodash/_mapToArray.js"(e,t){function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i,s){a[++o]=[s,i]}),a}t.exports=r}}),sN=w({"../../node_modules/lodash/_setToArray.js"(e,t){function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i){a[++o]=i}),a}t.exports=r}}),lN=w({"../../node_modules/lodash/_equalByTag.js"(e,t){var r=Sc(),n=aN(),o=Qg(),a=ov(),i=iN(),s=sN(),l=1,c=2,u="[object Boolean]",d="[object Date]",m="[object Error]",p="[object Map]",h="[object Number]",g="[object RegExp]",y="[object Set]",b="[object String]",v="[object Symbol]",C="[object ArrayBuffer]",S="[object DataView]",A=r?r.prototype:void 0,_=A?A.valueOf:void 0;function E(R,P,N,B,j,F,T){switch(N){case S:if(R.byteLength!=P.byteLength||R.byteOffset!=P.byteOffset)return!1;R=R.buffer,P=P.buffer;case C:return!(R.byteLength!=P.byteLength||!F(new n(R),new n(P)));case u:case d:case h:return o(+R,+P);case m:return R.name==P.name&&R.message==P.message;case g:case b:return R==P+"";case p:var M=i;case y:var D=B&l;if(M||(M=s),R.size!=P.size&&!D)return!1;var Y=T.get(R);if(Y)return Y==P;B|=c,T.set(R,P);var G=a(M(R),M(P),B,j,F,T);return T.delete(R),G;case v:if(_)return _.call(R)==_.call(P)}return!1}t.exports=E}}),uN=w({"../../node_modules/lodash/_arrayPush.js"(e,t){function r(n,o){for(var a=-1,i=o.length,s=n.length;++a<i;)n[s+a]=o[a];return n}t.exports=r}}),Tc=w({"../../node_modules/lodash/isArray.js"(e,t){var r=Array.isArray;t.exports=r}}),cN=w({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=uN(),n=Tc();function o(a,i,s){var l=i(a);return n(a)?l:r(l,s(a))}t.exports=o}}),dN=w({"../../node_modules/lodash/_arrayFilter.js"(e,t){function r(n,o){for(var a=-1,i=n==null?0:n.length,s=0,l=[];++a<i;){var c=n[a];o(c,a,n)&&(l[s++]=c)}return l}t.exports=r}}),pN=w({"../../node_modules/lodash/stubArray.js"(e,t){function r(){return[]}t.exports=r}}),fN=w({"../../node_modules/lodash/_getSymbols.js"(e,t){var r=dN(),n=pN(),o=Object.prototype,a=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:n;t.exports=s}}),mN=w({"../../node_modules/lodash/_baseTimes.js"(e,t){function r(n,o){for(var a=-1,i=Array(n);++a<n;)i[a]=o(a);return i}t.exports=r}}),gi=w({"../../node_modules/lodash/isObjectLike.js"(e,t){function r(n){return n!=null&&typeof n=="object"}t.exports=r}}),hN=w({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var r=hi(),n=gi(),o="[object Arguments]";function a(i){return n(i)&&r(i)==o}t.exports=a}}),yN=w({"../../node_modules/lodash/isArguments.js"(e,t){var r=hN(),n=gi(),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r((function(){return arguments})())?r:function(l){return n(l)&&a.call(l,"callee")&&!i.call(l,"callee")};t.exports=s}}),bN=w({"../../node_modules/lodash/stubFalse.js"(e,t){function r(){return!1}t.exports=r}}),av=w({"../../node_modules/lodash/isBuffer.js"(e,t){var r=rr(),n=bN(),o=typeof e=="object"&&e&&!e.nodeType&&e,a=o&&typeof t=="object"&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;t.exports=c}}),gN=w({"../../node_modules/lodash/_isIndex.js"(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(a,i){var s=typeof a;return i=i??r,!!i&&(s=="number"||s!="symbol"&&n.test(a))&&a>-1&&a%1==0&&a<i}t.exports=o}}),iv=w({"../../node_modules/lodash/isLength.js"(e,t){var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}t.exports=n}}),vN=w({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var r=hi(),n=iv(),o=gi(),a="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",m="[object Number]",p="[object Object]",h="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",A="[object Float64Array]",_="[object Int8Array]",E="[object Int16Array]",R="[object Int32Array]",P="[object Uint8Array]",N="[object Uint8ClampedArray]",B="[object Uint16Array]",j="[object Uint32Array]",F={};F[S]=F[A]=F[_]=F[E]=F[R]=F[P]=F[N]=F[B]=F[j]=!0,F[a]=F[i]=F[v]=F[s]=F[C]=F[l]=F[c]=F[u]=F[d]=F[m]=F[p]=F[h]=F[g]=F[y]=F[b]=!1;function T(M){return o(M)&&n(M.length)&&!!F[r(M)]}t.exports=T}}),EN=w({"../../node_modules/lodash/_baseUnary.js"(e,t){function r(n){return function(o){return n(o)}}t.exports=r}}),_N=w({"../../node_modules/lodash/_nodeUtil.js"(e,t){var r=Zg(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=(function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}})();t.exports=s}}),sv=w({"../../node_modules/lodash/isTypedArray.js"(e,t){var r=vN(),n=EN(),o=_N(),a=o&&o.isTypedArray,i=a?n(a):r;t.exports=i}}),RN=w({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=mN(),n=yN(),o=Tc(),a=av(),i=gN(),s=sv(),l=Object.prototype,c=l.hasOwnProperty;function u(d,m){var p=o(d),h=!p&&n(d),g=!p&&!h&&a(d),y=!p&&!h&&!g&&s(d),b=p||h||g||y,v=b?r(d.length,String):[],C=v.length;for(var S in d)(m||c.call(d,S))&&!(b&&(S=="length"||g&&(S=="offset"||S=="parent")||y&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||i(S,C)))&&v.push(S);return v}t.exports=u}}),wN=w({"../../node_modules/lodash/_isPrototype.js"(e,t){var r=Object.prototype;function n(o){var a=o&&o.constructor,i=typeof a=="function"&&a.prototype||r;return o===i}t.exports=n}}),CN=w({"../../node_modules/lodash/_overArg.js"(e,t){function r(n,o){return function(a){return n(o(a))}}t.exports=r}}),SN=w({"../../node_modules/lodash/_nativeKeys.js"(e,t){var r=CN(),n=r(Object.keys,Object);t.exports=n}}),AN=w({"../../node_modules/lodash/_baseKeys.js"(e,t){var r=wN(),n=SN(),o=Object.prototype,a=o.hasOwnProperty;function i(s){if(!r(s))return n(s);var l=[];for(var c in Object(s))a.call(s,c)&&c!="constructor"&&l.push(c);return l}t.exports=i}}),TN=w({"../../node_modules/lodash/isArrayLike.js"(e,t){var r=tv(),n=iv();function o(a){return a!=null&&n(a.length)&&!r(a)}t.exports=o}}),PN=w({"../../node_modules/lodash/keys.js"(e,t){var r=RN(),n=AN(),o=TN();function a(i){return o(i)?r(i):n(i)}t.exports=a}}),ON=w({"../../node_modules/lodash/_getAllKeys.js"(e,t){var r=cN(),n=fN(),o=PN();function a(i){return r(i,o,n)}t.exports=a}}),qN=w({"../../node_modules/lodash/_equalObjects.js"(e,t){var r=ON(),n=1,o=Object.prototype,a=o.hasOwnProperty;function i(s,l,c,u,d,m){var p=c&n,h=r(s),g=h.length,y=r(l),b=y.length;if(g!=b&&!p)return!1;for(var v=g;v--;){var C=h[v];if(!(p?C in l:a.call(l,C)))return!1}var S=m.get(s),A=m.get(l);if(S&&A)return S==l&&A==s;var _=!0;m.set(s,l),m.set(l,s);for(var E=p;++v<g;){C=h[v];var R=s[C],P=l[C];if(u)var N=p?u(P,R,C,l,s,m):u(R,P,C,s,l,m);if(!(N===void 0?R===P||d(R,P,c,u,m):N)){_=!1;break}E||(E=C=="constructor")}if(_&&!E){var B=s.constructor,j=l.constructor;B!=j&&"constructor"in s&&"constructor"in l&&!(typeof B=="function"&&B instanceof B&&typeof j=="function"&&j instanceof j)&&(_=!1)}return m.delete(s),m.delete(l),_}t.exports=i}}),xN=w({"../../node_modules/lodash/_DataView.js"(e,t){var r=Vn(),n=rr(),o=r(n,"DataView");t.exports=o}}),MN=w({"../../node_modules/lodash/_Promise.js"(e,t){var r=Vn(),n=rr(),o=r(n,"Promise");t.exports=o}}),NN=w({"../../node_modules/lodash/_Set.js"(e,t){var r=Vn(),n=rr(),o=r(n,"Set");t.exports=o}}),jN=w({"../../node_modules/lodash/_WeakMap.js"(e,t){var r=Vn(),n=rr(),o=r(n,"WeakMap");t.exports=o}}),IN=w({"../../node_modules/lodash/_getTag.js"(e,t){var r=xN(),n=Ac(),o=MN(),a=NN(),i=jN(),s=hi(),l=rv(),c="[object Map]",u="[object Object]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",h="[object DataView]",g=l(r),y=l(n),b=l(o),v=l(a),C=l(i),S=s;(r&&S(new r(new ArrayBuffer(1)))!=h||n&&S(new n)!=c||o&&S(o.resolve())!=d||a&&S(new a)!=m||i&&S(new i)!=p)&&(S=function(A){var _=s(A),E=_==u?A.constructor:void 0,R=E?l(E):"";if(R)switch(R){case g:return h;case y:return c;case b:return d;case v:return m;case C:return p}return _}),t.exports=S}}),DN=w({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var r=ZM(),n=ov(),o=lN(),a=qN(),i=IN(),s=Tc(),l=av(),c=sv(),u=1,d="[object Arguments]",m="[object Array]",p="[object Object]",h=Object.prototype,g=h.hasOwnProperty;function y(b,v,C,S,A,_){var E=s(b),R=s(v),P=E?m:i(b),N=R?m:i(v);P=P==d?p:P,N=N==d?p:N;var B=P==p,j=N==p,F=P==N;if(F&&l(b)){if(!l(v))return!1;E=!0,B=!1}if(F&&!B)return _||(_=new r),E||c(b)?n(b,v,C,S,A,_):o(b,v,P,C,S,A,_);if(!(C&u)){var T=B&&g.call(b,"__wrapped__"),M=j&&g.call(v,"__wrapped__");if(T||M){var D=T?b.value():b,Y=M?v.value():v;return _||(_=new r),A(D,Y,C,S,_)}}return F?(_||(_=new r),a(b,v,C,S,A,_)):!1}t.exports=y}}),FN=w({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var r=DN(),n=gi();function o(a,i,s,l,c){return a===i?!0:a==null||i==null||!n(a)&&!n(i)?a!==a&&i!==i:r(a,i,s,l,o,c)}t.exports=o}}),lv=w({"../../node_modules/lodash/isEqualWith.js"(e,t){var r=FN();function n(o,a,i){i=typeof i=="function"?i:void 0;var s=i?i(o,a):void 0;return s===void 0?r(o,a,void 0,i):!!s}t.exports=n}}),uv=w({"../../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var a=String(o),i=a.length,s=-1,l,c="",u=a.charCodeAt(0);++s<i;){if(l=a.charCodeAt(s),l==0){c+="\uFFFD";continue}if(l>=1&&l<=31||l==127||s==0&&l>=48&&l<=57||s==1&&l>=48&&l<=57&&u==45){c+="\\"+l.toString(16)+" ";continue}if(s==0&&i==1&&l==45){c+="\\"+a.charAt(s);continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){c+=a.charAt(s);continue}c+="\\"+a.charAt(s)}return c};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),cv=w({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var r=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,n=(a=0)=>(i,s,l)=>`\x1B[${38+a};2;${i};${s};${l}m`;function o(){let a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(let[s,l]of Object.entries(i)){for(let[c,u]of Object.entries(l))i[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},l[c]=i[c],a.set(u[0],u[1]);Object.defineProperty(i,s,{value:l,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:(s,l,c)=>s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:s=>{let l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!l)return[0,0,0];let{colorString:c}=l.groups;c.length===3&&(c=c.split("").map(d=>d+d).join(""));let u=Number.parseInt(c,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:s=>i.rgbToAnsi256(...i.hexToRgb(s)),enumerable:!1}}),i}Object.defineProperty(t,"exports",{enumerable:!0,get:o})}}),vi=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=a;var t=(i,s)=>{let l=Object.keys(i).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(c=>{Object.getOwnPropertyDescriptor(i,c).enumerable&&l.push(c)}),l};function r(i,s,l,c,u,d,m=": "){let p="",h=i.next();if(!h.done){p+=s.spacingOuter;let g=l+s.indent;for(;!h.done;){let y=d(h.value[0],s,g,c,u),b=d(h.value[1],s,g,c,u);p+=g+y+m+b,h=i.next(),h.done?s.min||(p+=","):p+=","+s.spacingInner}p+=s.spacingOuter+l}return p}function n(i,s,l,c,u,d){let m="",p=i.next();if(!p.done){m+=s.spacingOuter;let h=l+s.indent;for(;!p.done;)m+=h+d(p.value,s,h,c,u),p=i.next(),p.done?s.min||(m+=","):m+=","+s.spacingInner;m+=s.spacingOuter+l}return m}function o(i,s,l,c,u,d){let m="";if(i.length){m+=s.spacingOuter;let p=l+s.indent;for(let h=0;h<i.length;h++)m+=p,h in i&&(m+=d(i[h],s,p,c,u)),h<i.length-1?m+=","+s.spacingInner:s.min||(m+=",");m+=s.spacingOuter+l}return m}function a(i,s,l,c,u,d){let m="",p=t(i,s.compareKeys);if(p.length){m+=s.spacingOuter;let h=l+s.indent;for(let g=0;g<p.length;g++){let y=p[g],b=d(y,s,h,c,u),v=d(i[y],s,h,c,u);m+=h+b+": "+v,g<p.length-1?m+=","+s.spacingInner:s.min||(m+=",")}m+=s.spacingOuter+l}return m}}}),LN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=vi(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,a=" ",i=(u,d,m,p,h,g)=>{let y=u.toString();return y==="ArrayContaining"||y==="ArrayNotContaining"?++p>d.maxDepth?"["+y+"]":y+a+"["+(0,t.printListItems)(u.sample,d,m,p,h,g)+"]":y==="ObjectContaining"||y==="ObjectNotContaining"?++p>d.maxDepth?"["+y+"]":y+a+"{"+(0,t.printObjectProperties)(u.sample,d,m,p,h,g)+"}":y==="StringMatching"||y==="StringNotMatching"||y==="StringContaining"||y==="StringNotContaining"?y+a+g(u.sample,d,m,p,h):u.toAsymmetricMatcher()};e.serialize=i;var s=u=>u&&u.$$typeof===o;e.test=s;var l={serialize:i,test:s},c=l;e.default=c}}),BN=w({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}}}),kN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(BN()),r=n(cv());function n(c){return c&&c.__esModule?c:{default:c}}var o=c=>c.replace((0,t.default)(),u=>{switch(u){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),a=c=>typeof c=="string"&&!!c.match((0,t.default)());e.test=a;var i=(c,u,d,m,p,h)=>h(o(c),u,d,m,p);e.serialize=i;var s={serialize:i,test:a},l=s;e.default=l}}),$N=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=vi(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,a=d=>n.indexOf(d)!==-1||o.test(d),i=d=>d&&d.constructor&&!!d.constructor.name&&a(d.constructor.name);e.test=i;var s=d=>d.constructor.name==="NamedNodeMap",l=(d,m,p,h,g,y)=>{let b=d.constructor.name;return++h>m.maxDepth?"["+b+"]":(m.min?"":b+r)+(n.indexOf(b)!==-1?"{"+(0,t.printObjectProperties)(s(d)?Array.from(d).reduce((v,C)=>(v[C.name]=C.value,v),{}):{...d},m,p,h,g,y)+"}":"["+(0,t.printListItems)(Array.from(d),m,p,h,g,y)+"]")};e.serialize=l;var c={serialize:l,test:i},u=c;e.default=u}}),UN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}}}),Pc=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(UN());function r(c){return c&&c.__esModule?c:{default:c}}var n=(c,u,d,m,p,h,g)=>{let y=m+d.indent,b=d.colors;return c.map(v=>{let C=u[v],S=g(C,d,y,p,h);return typeof C!="string"&&(S.indexOf(`
|
|
291
|
-
`)!==-1&&(S=d.spacingOuter+y+S+d.spacingOuter+m),S="{"+S+"}"),d.spacingInner+m+b.prop.open+v+b.prop.close+"="+b.value.open+S+b.value.close}).join("")};e.printProps=n;var o=(c,u,d,m,p,h)=>c.map(g=>u.spacingOuter+d+(typeof g=="string"?a(g,u):h(g,u,d,m,p))).join("");e.printChildren=o;var a=(c,u)=>{let d=u.colors.content;return d.open+(0,t.default)(c)+d.close};e.printText=a;var i=(c,u)=>{let d=u.colors.comment;return d.open+"<\!--"+(0,t.default)(c)+"-->"+d.close};e.printComment=i;var s=(c,u,d,m,p)=>{let h=m.colors.tag;return h.open+"<"+c+(u&&h.close+u+m.spacingOuter+p+h.open)+(d?">"+h.close+d+m.spacingOuter+p+h.open+"</"+c:(u&&!m.min?"":" ")+"/")+">"+h.close};e.printElement=s;var l=(c,u)=>{let d=u.colors.tag;return d.open+"<"+c+d.close+" \u2026"+d.open+" />"+d.close};e.printElementAsLeaf=l}}),HN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Pc(),r=1,n=3,o=8,a=11,i=/^((HTML|SVG)\w*)?Element$/,s=y=>{try{return typeof y.hasAttribute=="function"&&y.hasAttribute("is")}catch{return!1}},l=y=>{let b=y.constructor.name,{nodeType:v,tagName:C}=y,S=typeof C=="string"&&C.includes("-")||s(y);return v===r&&(i.test(b)||S)||v===n&&b==="Text"||v===o&&b==="Comment"||v===a&&b==="DocumentFragment"},c=y=>{var b;return(y==null||(b=y.constructor)===null||b===void 0?void 0:b.name)&&l(y)};e.test=c;function u(y){return y.nodeType===n}function d(y){return y.nodeType===o}function m(y){return y.nodeType===a}var p=(y,b,v,C,S,A)=>{if(u(y))return(0,t.printText)(y.data,b);if(d(y))return(0,t.printComment)(y.data,b);let _=m(y)?"DocumentFragment":y.tagName.toLowerCase();return++C>b.maxDepth?(0,t.printElementAsLeaf)(_,b):(0,t.printElement)(_,(0,t.printProps)(m(y)?[]:Array.from(y.attributes).map(E=>E.name).sort(),m(y)?{}:Array.from(y.attributes).reduce((E,R)=>(E[R.name]=R.value,E),{}),b,v+b.indent,C,S,A),(0,t.printChildren)(Array.prototype.slice.call(y.childNodes||y.children),b,v+b.indent,C,S,A),b,v)};e.serialize=p;var h={serialize:p,test:c},g=h;e.default=g}}),VN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=vi(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",a="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",c="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",d=R=>"Immutable."+R,m=R=>"["+R+"]",p=" ",h="\u2026",g=(R,P,N,B,j,F,T)=>++B>P.maxDepth?m(d(T)):d(T)+p+"{"+(0,t.printIteratorEntries)(R.entries(),P,N,B,j,F)+"}";function y(R){let P=0;return{next(){if(P<R._keys.length){let N=R._keys[P++];return{done:!1,value:[N,R.get(N)]}}return{done:!0,value:void 0}}}}var b=(R,P,N,B,j,F)=>{let T=d(R._name||"Record");return++B>P.maxDepth?m(T):T+p+"{"+(0,t.printIteratorEntries)(y(R),P,N,B,j,F)+"}"},v=(R,P,N,B,j,F)=>{let T=d("Seq");return++B>P.maxDepth?m(T):R[o]?T+p+"{"+(R._iter||R._object?(0,t.printIteratorEntries)(R.entries(),P,N,B,j,F):h)+"}":T+p+"["+(R._iter||R._array||R._collection||R._iterable?(0,t.printIteratorValues)(R.values(),P,N,B,j,F):h)+"]"},C=(R,P,N,B,j,F,T)=>++B>P.maxDepth?m(d(T)):d(T)+p+"["+(0,t.printIteratorValues)(R.values(),P,N,B,j,F)+"]",S=(R,P,N,B,j,F)=>R[a]?g(R,P,N,B,j,F,R[i]?"OrderedMap":"Map"):R[n]?C(R,P,N,B,j,F,"List"):R[c]?C(R,P,N,B,j,F,R[i]?"OrderedSet":"Set"):R[u]?C(R,P,N,B,j,F,"Stack"):R[l]?v(R,P,N,B,j,F):b(R,P,N,B,j,F);e.serialize=S;var A=R=>R&&(R[r]===!0||R[s]===!0);e.test=A;var _={serialize:S,test:A},E=_;e.default=E}}),zN=w({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,o=60108,a=60114,i=60109,s=60110,l=60112,c=60113,u=60120,d=60115,m=60116,p=60121,h=60122,g=60117,y=60129,b=60131;typeof Symbol=="function"&&Symbol.for&&(v=Symbol.for,t=v("react.element"),r=v("react.portal"),n=v("react.fragment"),o=v("react.strict_mode"),a=v("react.profiler"),i=v("react.provider"),s=v("react.context"),l=v("react.forward_ref"),c=v("react.suspense"),u=v("react.suspense_list"),d=v("react.memo"),m=v("react.lazy"),p=v("react.block"),h=v("react.server.block"),g=v("react.fundamental"),y=v("react.debug_trace_mode"),b=v("react.legacy_hidden"));var v;function C(T){if(typeof T=="object"&&T!==null){var M=T.$$typeof;switch(M){case t:switch(T=T.type,T){case n:case a:case o:case c:case u:return T;default:switch(T=T&&T.$$typeof,T){case s:case l:case m:case d:case i:return T;default:return M}}case r:return M}}}var S=i,A=t,_=l,E=n,R=m,P=d,N=r,B=a,j=o,F=c;e.ContextConsumer=s,e.ContextProvider=S,e.Element=A,e.ForwardRef=_,e.Fragment=E,e.Lazy=R,e.Memo=P,e.Portal=N,e.Profiler=B,e.StrictMode=j,e.Suspense=F,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(T){return C(T)===s},e.isContextProvider=function(T){return C(T)===i},e.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},e.isForwardRef=function(T){return C(T)===l},e.isFragment=function(T){return C(T)===n},e.isLazy=function(T){return C(T)===m},e.isMemo=function(T){return C(T)===d},e.isPortal=function(T){return C(T)===r},e.isProfiler=function(T){return C(T)===a},e.isStrictMode=function(T){return C(T)===o},e.isSuspense=function(T){return C(T)===c},e.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===a||T===y||T===o||T===c||T===u||T===b||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===d||T.$$typeof===i||T.$$typeof===s||T.$$typeof===l||T.$$typeof===g||T.$$typeof===p||T[0]===h)},e.typeOf=C}}),wV=w({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.development.js"(e){}}),GN=w({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=zN()}}),YN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(GN()),r=Pc();function n(m){if(typeof WeakMap!="function")return null;var p=new WeakMap,h=new WeakMap;return(n=function(g){return g?h:p})(m)}function o(m,p){if(!p&&m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=n(p);if(h&&h.has(m))return h.get(m);var g={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in m)if(b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)){var v=y?Object.getOwnPropertyDescriptor(m,b):null;v&&(v.get||v.set)?Object.defineProperty(g,b,v):g[b]=m[b]}return g.default=m,h&&h.set(m,g),g}var a=(m,p=[])=>(Array.isArray(m)?m.forEach(h=>{a(h,p)}):m!=null&&m!==!1&&p.push(m),p),i=m=>{let p=m.type;if(typeof p=="string")return p;if(typeof p=="function")return p.displayName||p.name||"Unknown";if(t.isFragment(m))return"React.Fragment";if(t.isSuspense(m))return"React.Suspense";if(typeof p=="object"&&p!==null){if(t.isContextProvider(m))return"Context.Provider";if(t.isContextConsumer(m))return"Context.Consumer";if(t.isForwardRef(m)){if(p.displayName)return p.displayName;let h=p.render.displayName||p.render.name||"";return h!==""?"ForwardRef("+h+")":"ForwardRef"}if(t.isMemo(m)){let h=p.displayName||p.type.displayName||p.type.name||"";return h!==""?"Memo("+h+")":"Memo"}}return"UNDEFINED"},s=m=>{let{props:p}=m;return Object.keys(p).filter(h=>h!=="children"&&p[h]!==void 0).sort()},l=(m,p,h,g,y,b)=>++g>p.maxDepth?(0,r.printElementAsLeaf)(i(m),p):(0,r.printElement)(i(m),(0,r.printProps)(s(m),m.props,p,h+p.indent,g,y,b),(0,r.printChildren)(a(m.props.children),p,h+p.indent,g,y,b),p,h);e.serialize=l;var c=m=>m!=null&&t.isElement(m);e.test=c;var u={serialize:l,test:c},d=u;e.default=d}}),WN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Pc(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,a=u=>{let{props:d}=u;return d?Object.keys(d).filter(m=>d[m]!==void 0).sort():[]},i=(u,d,m,p,h,g)=>++p>d.maxDepth?(0,t.printElementAsLeaf)(u.type,d):(0,t.printElement)(u.type,u.props?(0,t.printProps)(a(u),u.props,d,m+d.indent,p,h,g):"",u.children?(0,t.printChildren)(u.children,d,m+d.indent,p,h,g):"",d,m);e.serialize=i;var s=u=>u&&u.$$typeof===o;e.test=s;var l={serialize:i,test:s},c=l;e.default=c}}),KN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=ee,e.plugins=void 0;var t=u(cv()),r=vi(),n=u(LN()),o=u(kN()),a=u($N()),i=u(HN()),s=u(VN()),l=u(YN()),c=u(WN());function u(L){return L&&L.__esModule?L:{default:L}}var d=Object.prototype.toString,m=Date.prototype.toISOString,p=Error.prototype.toString,h=RegExp.prototype.toString,g=L=>typeof L.constructor=="function"&&L.constructor.name||"Object",y=L=>typeof window<"u"&&L===window,b=/^Symbol\((.*)\)(.*)$/,v=/\n/gi,C=class extends Error{constructor(L,X){super(L),this.stack=X,this.name=this.constructor.name}};function S(L){return L==="[object Array]"||L==="[object ArrayBuffer]"||L==="[object DataView]"||L==="[object Float32Array]"||L==="[object Float64Array]"||L==="[object Int8Array]"||L==="[object Int16Array]"||L==="[object Int32Array]"||L==="[object Uint8Array]"||L==="[object Uint8ClampedArray]"||L==="[object Uint16Array]"||L==="[object Uint32Array]"}function A(L){return Object.is(L,-0)?"-0":String(L)}function _(L){return`${L}n`}function E(L,X){return X?"[Function "+(L.name||"anonymous")+"]":"[Function]"}function R(L){return String(L).replace(b,"Symbol($1)")}function P(L){return"["+p.call(L)+"]"}function N(L,X,Z,de){if(L===!0||L===!1)return""+L;if(L===void 0)return"undefined";if(L===null)return"null";let ue=typeof L;if(ue==="number")return A(L);if(ue==="bigint")return _(L);if(ue==="string")return de?'"'+L.replace(/"|\\/g,"\\$&")+'"':'"'+L+'"';if(ue==="function")return E(L,X);if(ue==="symbol")return R(L);let fe=d.call(L);return fe==="[object WeakMap]"?"WeakMap {}":fe==="[object WeakSet]"?"WeakSet {}":fe==="[object Function]"||fe==="[object GeneratorFunction]"?E(L,X):fe==="[object Symbol]"?R(L):fe==="[object Date]"?isNaN(+L)?"Date { NaN }":m.call(L):fe==="[object Error]"?P(L):fe==="[object RegExp]"?Z?h.call(L).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):h.call(L):L instanceof Error?P(L):null}function B(L,X,Z,de,ue,fe){if(ue.indexOf(L)!==-1)return"[Circular]";ue=ue.slice(),ue.push(L);let ye=++de>X.maxDepth,qe=X.min;if(X.callToJSON&&!ye&&L.toJSON&&typeof L.toJSON=="function"&&!fe)return M(L.toJSON(),X,Z,de,ue,!0);let lt=d.call(L);return lt==="[object Arguments]"?ye?"[Arguments]":(qe?"":"Arguments ")+"["+(0,r.printListItems)(L,X,Z,de,ue,M)+"]":S(lt)?ye?"["+L.constructor.name+"]":(qe||!X.printBasicPrototype&&L.constructor.name==="Array"?"":L.constructor.name+" ")+"["+(0,r.printListItems)(L,X,Z,de,ue,M)+"]":lt==="[object Map]"?ye?"[Map]":"Map {"+(0,r.printIteratorEntries)(L.entries(),X,Z,de,ue,M," => ")+"}":lt==="[object Set]"?ye?"[Set]":"Set {"+(0,r.printIteratorValues)(L.values(),X,Z,de,ue,M)+"}":ye||y(L)?"["+g(L)+"]":(qe||!X.printBasicPrototype&&g(L)==="Object"?"":g(L)+" ")+"{"+(0,r.printObjectProperties)(L,X,Z,de,ue,M)+"}"}function j(L){return L.serialize!=null}function F(L,X,Z,de,ue,fe){let ye;try{ye=j(L)?L.serialize(X,Z,de,ue,fe,M):L.print(X,qe=>M(qe,Z,de,ue,fe),qe=>{let lt=de+Z.indent;return lt+qe.replace(v,`
|
|
289
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(d){let m=d[0]==="u",p=d[1]==="{";return m&&!p&&d.length===5||d[0]==="x"&&d.length===3?String.fromCharCode(parseInt(d.slice(1),16)):m&&p?String.fromCodePoint(parseInt(d.slice(2,-1),16)):i.get(d)||d}function l(d,m){let p=[],h=m.trim().split(/\s*,\s*/g),g;for(let y of h){let b=Number(y);if(!Number.isNaN(b))p.push(b);else if(g=y.match(o))p.push(g[2].replace(a,(v,C,S)=>C?s(C):S));else throw new Error(`Invalid Chalk template style argument: ${y} (in style '${d}')`)}return p}function c(d){n.lastIndex=0;let m=[],p;for(;(p=n.exec(d))!==null;){let h=p[1];if(p[2]){let g=l(h,p[2]);m.push([h].concat(g))}else m.push([h])}return m}function u(d,m){let p={};for(let g of m)for(let y of g.styles)p[y[0]]=g.inverse?null:y.slice(1);let h=d;for(let[g,y]of Object.entries(p))if(Array.isArray(y)){if(!(g in h))throw new Error(`Unknown Chalk style: ${g}`);h=y.length>0?h[g](...y):h[g]}return h}t.exports=(d,m)=>{let p=[],h=[],g=[];if(m.replace(r,(y,b,v,C,S,A)=>{if(b)g.push(s(b));else if(C){let _=g.join("");g=[],h.push(p.length===0?_:u(d,p)(_)),p.push({inverse:v,styles:c(C)})}else if(S){if(p.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(u(d,p)(g.join(""))),g=[],p.pop()}else g.push(A)}),h.push(g.join("")),p.length>0){let y=`Chalk template literal is missing ${p.length} closing bracket${p.length===1?"":"s"} (\`}\`)`;throw new Error(y)}return h.join("")}}}),Qg=w({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var r=_M(),{stdout:n,stderr:o}=RM(),{stringReplaceAll:a,stringEncaseCRLFWithFirstIndex:i}=wM(),s=["ansi","ansi","ansi256","ansi16m"],l=Object.create(null),c=(A,_={})=>{if(_.level>3||_.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let E=n?n.level:0;A.level=_.level===void 0?E:_.level},u=class{constructor(A){return d(A)}},d=A=>{let _={};return c(_,A),_.template=(...E)=>C(_.template,...E),Object.setPrototypeOf(_,m.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},_.template.Instance=u,_.template};function m(A){return d(A)}for(let[A,_]of Object.entries(r))l[A]={get(){let E=y(this,g(_.open,_.close,this._styler),this._isEmpty);return Object.defineProperty(this,A,{value:E}),E}};l.visible={get(){let A=y(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:A}),A}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let A of p)l[A]={get(){let{level:_}=this;return function(...E){let R=g(r.color[s[_]][A](...E),r.color.close,this._styler);return y(this,R,this._isEmpty)}}};for(let A of p){let _="bg"+A[0].toUpperCase()+A.slice(1);l[_]={get(){let{level:E}=this;return function(...R){let P=g(r.bgColor[s[E]][A](...R),r.bgColor.close,this._styler);return y(this,P,this._isEmpty)}}}}var h=Object.defineProperties(()=>{},{...l,level:{enumerable:!0,get(){return this._generator.level},set(A){this._generator.level=A}}}),g=(A,_,E)=>{let R,P;return E===void 0?(R=A,P=_):(R=E.openAll+A,P=_+E.closeAll),{open:A,close:_,openAll:R,closeAll:P,parent:E}},y=(A,_,E)=>{let R=(...P)=>b(R,P.length===1?""+P[0]:P.join(" "));return R.__proto__=h,R._generator=A,R._styler=_,R._isEmpty=E,R},b=(A,_)=>{if(A.level<=0||!_)return A._isEmpty?"":_;let E=A._styler;if(E===void 0)return _;let{openAll:R,closeAll:P}=E;if(_.indexOf("\x1B")!==-1)for(;E!==void 0;)_=a(_,E.close,E.open),E=E.parent;let N=_.indexOf(`
|
|
290
|
+
`);return N!==-1&&(_=i(_,P,R,N)),R+_+P},v,C=(A,..._)=>{let[E]=_;if(!Array.isArray(E))return _.join(" ");let R=_.slice(1),P=[E.raw[0]];for(let N=1;N<E.length;N++)P.push(String(R[N-1]).replace(/[{}\\]/g,"\\$&"),String(E.raw[N]));return v===void 0&&(v=CM()),v(A,P.join(""))};Object.defineProperties(m.prototype,l);var S=m();S.supportsColor=n,S.stderr=m({level:o?o.level:0}),S.stderr.supportsColor=o,S.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},t.exports=S}}),SM=w({"../../node_modules/lodash/_listCacheClear.js"(e,t){function r(){this.__data__=[],this.size=0}t.exports=r}}),Zg=w({"../../node_modules/lodash/eq.js"(e,t){function r(n,o){return n===o||n!==n&&o!==o}t.exports=r}}),fi=w({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var r=Zg();function n(o,a){for(var i=o.length;i--;)if(r(o[i][0],a))return i;return-1}t.exports=n}}),AM=w({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var r=fi(),n=Array.prototype,o=n.splice;function a(i){var s=this.__data__,l=r(s,i);if(l<0)return!1;var c=s.length-1;return l==c?s.pop():o.call(s,l,1),--this.size,!0}t.exports=a}}),TM=w({"../../node_modules/lodash/_listCacheGet.js"(e,t){var r=fi();function n(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}t.exports=n}}),PM=w({"../../node_modules/lodash/_listCacheHas.js"(e,t){var r=fi();function n(o){return r(this.__data__,o)>-1}t.exports=n}}),OM=w({"../../node_modules/lodash/_listCacheSet.js"(e,t){var r=fi();function n(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}t.exports=n}}),mi=w({"../../node_modules/lodash/_ListCache.js"(e,t){var r=SM(),n=AM(),o=TM(),a=PM(),i=OM();function s(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var d=l[c];this.set(d[0],d[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,t.exports=s}}),qM=w({"../../node_modules/lodash/_stackClear.js"(e,t){var r=mi();function n(){this.__data__=new r,this.size=0}t.exports=n}}),xM=w({"../../node_modules/lodash/_stackDelete.js"(e,t){function r(n){var o=this.__data__,a=o.delete(n);return this.size=o.size,a}t.exports=r}}),MM=w({"../../node_modules/lodash/_stackGet.js"(e,t){function r(n){return this.__data__.get(n)}t.exports=r}}),NM=w({"../../node_modules/lodash/_stackHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),ev=w({"../../node_modules/lodash/_freeGlobal.js"(e,t){var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}}),rr=w({"../../node_modules/lodash/_root.js"(e,t){var r=ev(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}}),Sc=w({"../../node_modules/lodash/_Symbol.js"(e,t){var r=rr(),n=r.Symbol;t.exports=n}}),jM=w({"../../node_modules/lodash/_getRawTag.js"(e,t){var r=Sc(),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,i=r?r.toStringTag:void 0;function s(l){var c=o.call(l,i),u=l[i];try{l[i]=void 0;var d=!0}catch{}var m=a.call(l);return d&&(c?l[i]=u:delete l[i]),m}t.exports=s}}),IM=w({"../../node_modules/lodash/_objectToString.js"(e,t){var r=Object.prototype,n=r.toString;function o(a){return n.call(a)}t.exports=o}}),hi=w({"../../node_modules/lodash/_baseGetTag.js"(e,t){var r=Sc(),n=jM(),o=IM(),a="[object Null]",i="[object Undefined]",s=r?r.toStringTag:void 0;function l(c){return c==null?c===void 0?i:a:s&&s in Object(c)?n(c):o(c)}t.exports=l}}),tv=w({"../../node_modules/lodash/isObject.js"(e,t){function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}t.exports=r}}),rv=w({"../../node_modules/lodash/isFunction.js"(e,t){var r=hi(),n=tv(),o="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(c){if(!n(c))return!1;var u=r(c);return u==a||u==i||u==o||u==s}t.exports=l}}),DM=w({"../../node_modules/lodash/_coreJsData.js"(e,t){var r=rr(),n=r["__core-js_shared__"];t.exports=n}}),FM=w({"../../node_modules/lodash/_isMasked.js"(e,t){var r=DM(),n=(function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function o(a){return!!n&&n in a}t.exports=o}}),nv=w({"../../node_modules/lodash/_toSource.js"(e,t){var r=Function.prototype,n=r.toString;function o(a){if(a!=null){try{return n.call(a)}catch{}try{return a+""}catch{}}return""}t.exports=o}}),LM=w({"../../node_modules/lodash/_baseIsNative.js"(e,t){var r=rv(),n=FM(),o=tv(),a=nv(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,m=RegExp("^"+u.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(h){if(!o(h)||n(h))return!1;var g=r(h)?m:s;return g.test(a(h))}t.exports=p}}),BM=w({"../../node_modules/lodash/_getValue.js"(e,t){function r(n,o){return n?.[o]}t.exports=r}}),Vn=w({"../../node_modules/lodash/_getNative.js"(e,t){var r=LM(),n=BM();function o(a,i){var s=n(a,i);return r(s)?s:void 0}t.exports=o}}),Ac=w({"../../node_modules/lodash/_Map.js"(e,t){var r=Vn(),n=rr(),o=r(n,"Map");t.exports=o}}),yi=w({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=Vn(),n=r(Object,"create");t.exports=n}}),kM=w({"../../node_modules/lodash/_hashClear.js"(e,t){var r=yi();function n(){this.__data__=r?r(null):{},this.size=0}t.exports=n}}),$M=w({"../../node_modules/lodash/_hashDelete.js"(e,t){function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}t.exports=r}}),UM=w({"../../node_modules/lodash/_hashGet.js"(e,t){var r=yi(),n="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function i(s){var l=this.__data__;if(r){var c=l[s];return c===n?void 0:c}return a.call(l,s)?l[s]:void 0}t.exports=i}}),HM=w({"../../node_modules/lodash/_hashHas.js"(e,t){var r=yi(),n=Object.prototype,o=n.hasOwnProperty;function a(i){var s=this.__data__;return r?s[i]!==void 0:o.call(s,i)}t.exports=a}}),VM=w({"../../node_modules/lodash/_hashSet.js"(e,t){var r=yi(),n="__lodash_hash_undefined__";function o(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=r&&i===void 0?n:i,this}t.exports=o}}),zM=w({"../../node_modules/lodash/_Hash.js"(e,t){var r=kM(),n=$M(),o=UM(),a=HM(),i=VM();function s(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var d=l[c];this.set(d[0],d[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,t.exports=s}}),GM=w({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=zM(),n=mi(),o=Ac();function a(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}t.exports=a}}),YM=w({"../../node_modules/lodash/_isKeyable.js"(e,t){function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}t.exports=r}}),bi=w({"../../node_modules/lodash/_getMapData.js"(e,t){var r=YM();function n(o,a){var i=o.__data__;return r(a)?i[typeof a=="string"?"string":"hash"]:i.map}t.exports=n}}),WM=w({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var r=bi();function n(o){var a=r(this,o).delete(o);return this.size-=a?1:0,a}t.exports=n}}),KM=w({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var r=bi();function n(o){return r(this,o).get(o)}t.exports=n}}),XM=w({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var r=bi();function n(o){return r(this,o).has(o)}t.exports=n}}),JM=w({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var r=bi();function n(o,a){var i=r(this,o),s=i.size;return i.set(o,a),this.size+=i.size==s?0:1,this}t.exports=n}}),ov=w({"../../node_modules/lodash/_MapCache.js"(e,t){var r=GM(),n=WM(),o=KM(),a=XM(),i=JM();function s(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var d=l[c];this.set(d[0],d[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,t.exports=s}}),QM=w({"../../node_modules/lodash/_stackSet.js"(e,t){var r=mi(),n=Ac(),o=ov(),a=200;function i(s,l){var c=this.__data__;if(c instanceof r){var u=c.__data__;if(!n||u.length<a-1)return u.push([s,l]),this.size=++c.size,this;c=this.__data__=new o(u)}return c.set(s,l),this.size=c.size,this}t.exports=i}}),ZM=w({"../../node_modules/lodash/_Stack.js"(e,t){var r=mi(),n=qM(),o=xM(),a=MM(),i=NM(),s=QM();function l(c){var u=this.__data__=new r(c);this.size=u.size}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,t.exports=l}}),eN=w({"../../node_modules/lodash/_setCacheAdd.js"(e,t){var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}t.exports=n}}),tN=w({"../../node_modules/lodash/_setCacheHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),rN=w({"../../node_modules/lodash/_SetCache.js"(e,t){var r=ov(),n=eN(),o=tN();function a(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new r;++s<l;)this.add(i[s])}a.prototype.add=a.prototype.push=n,a.prototype.has=o,t.exports=a}}),nN=w({"../../node_modules/lodash/_arraySome.js"(e,t){function r(n,o){for(var a=-1,i=n==null?0:n.length;++a<i;)if(o(n[a],a,n))return!0;return!1}t.exports=r}}),oN=w({"../../node_modules/lodash/_cacheHas.js"(e,t){function r(n,o){return n.has(o)}t.exports=r}}),av=w({"../../node_modules/lodash/_equalArrays.js"(e,t){var r=rN(),n=nN(),o=oN(),a=1,i=2;function s(l,c,u,d,m,p){var h=u&a,g=l.length,y=c.length;if(g!=y&&!(h&&y>g))return!1;var b=p.get(l),v=p.get(c);if(b&&v)return b==c&&v==l;var C=-1,S=!0,A=u&i?new r:void 0;for(p.set(l,c),p.set(c,l);++C<g;){var _=l[C],E=c[C];if(d)var R=h?d(E,_,C,c,l,p):d(_,E,C,l,c,p);if(R!==void 0){if(R)continue;S=!1;break}if(A){if(!n(c,function(P,N){if(!o(A,N)&&(_===P||m(_,P,u,d,p)))return A.push(N)})){S=!1;break}}else if(!(_===E||m(_,E,u,d,p))){S=!1;break}}return p.delete(l),p.delete(c),S}t.exports=s}}),aN=w({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=rr(),n=r.Uint8Array;t.exports=n}}),iN=w({"../../node_modules/lodash/_mapToArray.js"(e,t){function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i,s){a[++o]=[s,i]}),a}t.exports=r}}),sN=w({"../../node_modules/lodash/_setToArray.js"(e,t){function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i){a[++o]=i}),a}t.exports=r}}),lN=w({"../../node_modules/lodash/_equalByTag.js"(e,t){var r=Sc(),n=aN(),o=Zg(),a=av(),i=iN(),s=sN(),l=1,c=2,u="[object Boolean]",d="[object Date]",m="[object Error]",p="[object Map]",h="[object Number]",g="[object RegExp]",y="[object Set]",b="[object String]",v="[object Symbol]",C="[object ArrayBuffer]",S="[object DataView]",A=r?r.prototype:void 0,_=A?A.valueOf:void 0;function E(R,P,N,B,j,F,T){switch(N){case S:if(R.byteLength!=P.byteLength||R.byteOffset!=P.byteOffset)return!1;R=R.buffer,P=P.buffer;case C:return!(R.byteLength!=P.byteLength||!F(new n(R),new n(P)));case u:case d:case h:return o(+R,+P);case m:return R.name==P.name&&R.message==P.message;case g:case b:return R==P+"";case p:var M=i;case y:var D=B&l;if(M||(M=s),R.size!=P.size&&!D)return!1;var Y=T.get(R);if(Y)return Y==P;B|=c,T.set(R,P);var G=a(M(R),M(P),B,j,F,T);return T.delete(R),G;case v:if(_)return _.call(R)==_.call(P)}return!1}t.exports=E}}),uN=w({"../../node_modules/lodash/_arrayPush.js"(e,t){function r(n,o){for(var a=-1,i=o.length,s=n.length;++a<i;)n[s+a]=o[a];return n}t.exports=r}}),Tc=w({"../../node_modules/lodash/isArray.js"(e,t){var r=Array.isArray;t.exports=r}}),cN=w({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=uN(),n=Tc();function o(a,i,s){var l=i(a);return n(a)?l:r(l,s(a))}t.exports=o}}),dN=w({"../../node_modules/lodash/_arrayFilter.js"(e,t){function r(n,o){for(var a=-1,i=n==null?0:n.length,s=0,l=[];++a<i;){var c=n[a];o(c,a,n)&&(l[s++]=c)}return l}t.exports=r}}),pN=w({"../../node_modules/lodash/stubArray.js"(e,t){function r(){return[]}t.exports=r}}),fN=w({"../../node_modules/lodash/_getSymbols.js"(e,t){var r=dN(),n=pN(),o=Object.prototype,a=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:n;t.exports=s}}),mN=w({"../../node_modules/lodash/_baseTimes.js"(e,t){function r(n,o){for(var a=-1,i=Array(n);++a<n;)i[a]=o(a);return i}t.exports=r}}),gi=w({"../../node_modules/lodash/isObjectLike.js"(e,t){function r(n){return n!=null&&typeof n=="object"}t.exports=r}}),hN=w({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var r=hi(),n=gi(),o="[object Arguments]";function a(i){return n(i)&&r(i)==o}t.exports=a}}),yN=w({"../../node_modules/lodash/isArguments.js"(e,t){var r=hN(),n=gi(),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r((function(){return arguments})())?r:function(l){return n(l)&&a.call(l,"callee")&&!i.call(l,"callee")};t.exports=s}}),bN=w({"../../node_modules/lodash/stubFalse.js"(e,t){function r(){return!1}t.exports=r}}),iv=w({"../../node_modules/lodash/isBuffer.js"(e,t){var r=rr(),n=bN(),o=typeof e=="object"&&e&&!e.nodeType&&e,a=o&&typeof t=="object"&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;t.exports=c}}),gN=w({"../../node_modules/lodash/_isIndex.js"(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(a,i){var s=typeof a;return i=i??r,!!i&&(s=="number"||s!="symbol"&&n.test(a))&&a>-1&&a%1==0&&a<i}t.exports=o}}),sv=w({"../../node_modules/lodash/isLength.js"(e,t){var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}t.exports=n}}),vN=w({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var r=hi(),n=sv(),o=gi(),a="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",m="[object Number]",p="[object Object]",h="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",A="[object Float64Array]",_="[object Int8Array]",E="[object Int16Array]",R="[object Int32Array]",P="[object Uint8Array]",N="[object Uint8ClampedArray]",B="[object Uint16Array]",j="[object Uint32Array]",F={};F[S]=F[A]=F[_]=F[E]=F[R]=F[P]=F[N]=F[B]=F[j]=!0,F[a]=F[i]=F[v]=F[s]=F[C]=F[l]=F[c]=F[u]=F[d]=F[m]=F[p]=F[h]=F[g]=F[y]=F[b]=!1;function T(M){return o(M)&&n(M.length)&&!!F[r(M)]}t.exports=T}}),EN=w({"../../node_modules/lodash/_baseUnary.js"(e,t){function r(n){return function(o){return n(o)}}t.exports=r}}),_N=w({"../../node_modules/lodash/_nodeUtil.js"(e,t){var r=ev(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=(function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}})();t.exports=s}}),lv=w({"../../node_modules/lodash/isTypedArray.js"(e,t){var r=vN(),n=EN(),o=_N(),a=o&&o.isTypedArray,i=a?n(a):r;t.exports=i}}),RN=w({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=mN(),n=yN(),o=Tc(),a=iv(),i=gN(),s=lv(),l=Object.prototype,c=l.hasOwnProperty;function u(d,m){var p=o(d),h=!p&&n(d),g=!p&&!h&&a(d),y=!p&&!h&&!g&&s(d),b=p||h||g||y,v=b?r(d.length,String):[],C=v.length;for(var S in d)(m||c.call(d,S))&&!(b&&(S=="length"||g&&(S=="offset"||S=="parent")||y&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||i(S,C)))&&v.push(S);return v}t.exports=u}}),wN=w({"../../node_modules/lodash/_isPrototype.js"(e,t){var r=Object.prototype;function n(o){var a=o&&o.constructor,i=typeof a=="function"&&a.prototype||r;return o===i}t.exports=n}}),CN=w({"../../node_modules/lodash/_overArg.js"(e,t){function r(n,o){return function(a){return n(o(a))}}t.exports=r}}),SN=w({"../../node_modules/lodash/_nativeKeys.js"(e,t){var r=CN(),n=r(Object.keys,Object);t.exports=n}}),AN=w({"../../node_modules/lodash/_baseKeys.js"(e,t){var r=wN(),n=SN(),o=Object.prototype,a=o.hasOwnProperty;function i(s){if(!r(s))return n(s);var l=[];for(var c in Object(s))a.call(s,c)&&c!="constructor"&&l.push(c);return l}t.exports=i}}),TN=w({"../../node_modules/lodash/isArrayLike.js"(e,t){var r=rv(),n=sv();function o(a){return a!=null&&n(a.length)&&!r(a)}t.exports=o}}),PN=w({"../../node_modules/lodash/keys.js"(e,t){var r=RN(),n=AN(),o=TN();function a(i){return o(i)?r(i):n(i)}t.exports=a}}),ON=w({"../../node_modules/lodash/_getAllKeys.js"(e,t){var r=cN(),n=fN(),o=PN();function a(i){return r(i,o,n)}t.exports=a}}),qN=w({"../../node_modules/lodash/_equalObjects.js"(e,t){var r=ON(),n=1,o=Object.prototype,a=o.hasOwnProperty;function i(s,l,c,u,d,m){var p=c&n,h=r(s),g=h.length,y=r(l),b=y.length;if(g!=b&&!p)return!1;for(var v=g;v--;){var C=h[v];if(!(p?C in l:a.call(l,C)))return!1}var S=m.get(s),A=m.get(l);if(S&&A)return S==l&&A==s;var _=!0;m.set(s,l),m.set(l,s);for(var E=p;++v<g;){C=h[v];var R=s[C],P=l[C];if(u)var N=p?u(P,R,C,l,s,m):u(R,P,C,s,l,m);if(!(N===void 0?R===P||d(R,P,c,u,m):N)){_=!1;break}E||(E=C=="constructor")}if(_&&!E){var B=s.constructor,j=l.constructor;B!=j&&"constructor"in s&&"constructor"in l&&!(typeof B=="function"&&B instanceof B&&typeof j=="function"&&j instanceof j)&&(_=!1)}return m.delete(s),m.delete(l),_}t.exports=i}}),xN=w({"../../node_modules/lodash/_DataView.js"(e,t){var r=Vn(),n=rr(),o=r(n,"DataView");t.exports=o}}),MN=w({"../../node_modules/lodash/_Promise.js"(e,t){var r=Vn(),n=rr(),o=r(n,"Promise");t.exports=o}}),NN=w({"../../node_modules/lodash/_Set.js"(e,t){var r=Vn(),n=rr(),o=r(n,"Set");t.exports=o}}),jN=w({"../../node_modules/lodash/_WeakMap.js"(e,t){var r=Vn(),n=rr(),o=r(n,"WeakMap");t.exports=o}}),IN=w({"../../node_modules/lodash/_getTag.js"(e,t){var r=xN(),n=Ac(),o=MN(),a=NN(),i=jN(),s=hi(),l=nv(),c="[object Map]",u="[object Object]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",h="[object DataView]",g=l(r),y=l(n),b=l(o),v=l(a),C=l(i),S=s;(r&&S(new r(new ArrayBuffer(1)))!=h||n&&S(new n)!=c||o&&S(o.resolve())!=d||a&&S(new a)!=m||i&&S(new i)!=p)&&(S=function(A){var _=s(A),E=_==u?A.constructor:void 0,R=E?l(E):"";if(R)switch(R){case g:return h;case y:return c;case b:return d;case v:return m;case C:return p}return _}),t.exports=S}}),DN=w({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var r=ZM(),n=av(),o=lN(),a=qN(),i=IN(),s=Tc(),l=iv(),c=lv(),u=1,d="[object Arguments]",m="[object Array]",p="[object Object]",h=Object.prototype,g=h.hasOwnProperty;function y(b,v,C,S,A,_){var E=s(b),R=s(v),P=E?m:i(b),N=R?m:i(v);P=P==d?p:P,N=N==d?p:N;var B=P==p,j=N==p,F=P==N;if(F&&l(b)){if(!l(v))return!1;E=!0,B=!1}if(F&&!B)return _||(_=new r),E||c(b)?n(b,v,C,S,A,_):o(b,v,P,C,S,A,_);if(!(C&u)){var T=B&&g.call(b,"__wrapped__"),M=j&&g.call(v,"__wrapped__");if(T||M){var D=T?b.value():b,Y=M?v.value():v;return _||(_=new r),A(D,Y,C,S,_)}}return F?(_||(_=new r),a(b,v,C,S,A,_)):!1}t.exports=y}}),FN=w({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var r=DN(),n=gi();function o(a,i,s,l,c){return a===i?!0:a==null||i==null||!n(a)&&!n(i)?a!==a&&i!==i:r(a,i,s,l,o,c)}t.exports=o}}),uv=w({"../../node_modules/lodash/isEqualWith.js"(e,t){var r=FN();function n(o,a,i){i=typeof i=="function"?i:void 0;var s=i?i(o,a):void 0;return s===void 0?r(o,a,void 0,i):!!s}t.exports=n}}),cv=w({"../../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var a=String(o),i=a.length,s=-1,l,c="",u=a.charCodeAt(0);++s<i;){if(l=a.charCodeAt(s),l==0){c+="\uFFFD";continue}if(l>=1&&l<=31||l==127||s==0&&l>=48&&l<=57||s==1&&l>=48&&l<=57&&u==45){c+="\\"+l.toString(16)+" ";continue}if(s==0&&i==1&&l==45){c+="\\"+a.charAt(s);continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){c+=a.charAt(s);continue}c+="\\"+a.charAt(s)}return c};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),dv=w({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var r=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,n=(a=0)=>(i,s,l)=>`\x1B[${38+a};2;${i};${s};${l}m`;function o(){let a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(let[s,l]of Object.entries(i)){for(let[c,u]of Object.entries(l))i[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},l[c]=i[c],a.set(u[0],u[1]);Object.defineProperty(i,s,{value:l,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:(s,l,c)=>s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:s=>{let l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!l)return[0,0,0];let{colorString:c}=l.groups;c.length===3&&(c=c.split("").map(d=>d+d).join(""));let u=Number.parseInt(c,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:s=>i.rgbToAnsi256(...i.hexToRgb(s)),enumerable:!1}}),i}Object.defineProperty(t,"exports",{enumerable:!0,get:o})}}),vi=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=a;var t=(i,s)=>{let l=Object.keys(i).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(c=>{Object.getOwnPropertyDescriptor(i,c).enumerable&&l.push(c)}),l};function r(i,s,l,c,u,d,m=": "){let p="",h=i.next();if(!h.done){p+=s.spacingOuter;let g=l+s.indent;for(;!h.done;){let y=d(h.value[0],s,g,c,u),b=d(h.value[1],s,g,c,u);p+=g+y+m+b,h=i.next(),h.done?s.min||(p+=","):p+=","+s.spacingInner}p+=s.spacingOuter+l}return p}function n(i,s,l,c,u,d){let m="",p=i.next();if(!p.done){m+=s.spacingOuter;let h=l+s.indent;for(;!p.done;)m+=h+d(p.value,s,h,c,u),p=i.next(),p.done?s.min||(m+=","):m+=","+s.spacingInner;m+=s.spacingOuter+l}return m}function o(i,s,l,c,u,d){let m="";if(i.length){m+=s.spacingOuter;let p=l+s.indent;for(let h=0;h<i.length;h++)m+=p,h in i&&(m+=d(i[h],s,p,c,u)),h<i.length-1?m+=","+s.spacingInner:s.min||(m+=",");m+=s.spacingOuter+l}return m}function a(i,s,l,c,u,d){let m="",p=t(i,s.compareKeys);if(p.length){m+=s.spacingOuter;let h=l+s.indent;for(let g=0;g<p.length;g++){let y=p[g],b=d(y,s,h,c,u),v=d(i[y],s,h,c,u);m+=h+b+": "+v,g<p.length-1?m+=","+s.spacingInner:s.min||(m+=",")}m+=s.spacingOuter+l}return m}}}),LN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=vi(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,a=" ",i=(u,d,m,p,h,g)=>{let y=u.toString();return y==="ArrayContaining"||y==="ArrayNotContaining"?++p>d.maxDepth?"["+y+"]":y+a+"["+(0,t.printListItems)(u.sample,d,m,p,h,g)+"]":y==="ObjectContaining"||y==="ObjectNotContaining"?++p>d.maxDepth?"["+y+"]":y+a+"{"+(0,t.printObjectProperties)(u.sample,d,m,p,h,g)+"}":y==="StringMatching"||y==="StringNotMatching"||y==="StringContaining"||y==="StringNotContaining"?y+a+g(u.sample,d,m,p,h):u.toAsymmetricMatcher()};e.serialize=i;var s=u=>u&&u.$$typeof===o;e.test=s;var l={serialize:i,test:s},c=l;e.default=c}}),BN=w({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}}}),kN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(BN()),r=n(dv());function n(c){return c&&c.__esModule?c:{default:c}}var o=c=>c.replace((0,t.default)(),u=>{switch(u){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),a=c=>typeof c=="string"&&!!c.match((0,t.default)());e.test=a;var i=(c,u,d,m,p,h)=>h(o(c),u,d,m,p);e.serialize=i;var s={serialize:i,test:a},l=s;e.default=l}}),$N=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=vi(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,a=d=>n.indexOf(d)!==-1||o.test(d),i=d=>d&&d.constructor&&!!d.constructor.name&&a(d.constructor.name);e.test=i;var s=d=>d.constructor.name==="NamedNodeMap",l=(d,m,p,h,g,y)=>{let b=d.constructor.name;return++h>m.maxDepth?"["+b+"]":(m.min?"":b+r)+(n.indexOf(b)!==-1?"{"+(0,t.printObjectProperties)(s(d)?Array.from(d).reduce((v,C)=>(v[C.name]=C.value,v),{}):{...d},m,p,h,g,y)+"}":"["+(0,t.printListItems)(Array.from(d),m,p,h,g,y)+"]")};e.serialize=l;var c={serialize:l,test:i},u=c;e.default=u}}),UN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}}}),Pc=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(UN());function r(c){return c&&c.__esModule?c:{default:c}}var n=(c,u,d,m,p,h,g)=>{let y=m+d.indent,b=d.colors;return c.map(v=>{let C=u[v],S=g(C,d,y,p,h);return typeof C!="string"&&(S.indexOf(`
|
|
291
|
+
`)!==-1&&(S=d.spacingOuter+y+S+d.spacingOuter+m),S="{"+S+"}"),d.spacingInner+m+b.prop.open+v+b.prop.close+"="+b.value.open+S+b.value.close}).join("")};e.printProps=n;var o=(c,u,d,m,p,h)=>c.map(g=>u.spacingOuter+d+(typeof g=="string"?a(g,u):h(g,u,d,m,p))).join("");e.printChildren=o;var a=(c,u)=>{let d=u.colors.content;return d.open+(0,t.default)(c)+d.close};e.printText=a;var i=(c,u)=>{let d=u.colors.comment;return d.open+"<\!--"+(0,t.default)(c)+"-->"+d.close};e.printComment=i;var s=(c,u,d,m,p)=>{let h=m.colors.tag;return h.open+"<"+c+(u&&h.close+u+m.spacingOuter+p+h.open)+(d?">"+h.close+d+m.spacingOuter+p+h.open+"</"+c:(u&&!m.min?"":" ")+"/")+">"+h.close};e.printElement=s;var l=(c,u)=>{let d=u.colors.tag;return d.open+"<"+c+d.close+" \u2026"+d.open+" />"+d.close};e.printElementAsLeaf=l}}),HN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Pc(),r=1,n=3,o=8,a=11,i=/^((HTML|SVG)\w*)?Element$/,s=y=>{try{return typeof y.hasAttribute=="function"&&y.hasAttribute("is")}catch{return!1}},l=y=>{let b=y.constructor.name,{nodeType:v,tagName:C}=y,S=typeof C=="string"&&C.includes("-")||s(y);return v===r&&(i.test(b)||S)||v===n&&b==="Text"||v===o&&b==="Comment"||v===a&&b==="DocumentFragment"},c=y=>{var b;return(y==null||(b=y.constructor)===null||b===void 0?void 0:b.name)&&l(y)};e.test=c;function u(y){return y.nodeType===n}function d(y){return y.nodeType===o}function m(y){return y.nodeType===a}var p=(y,b,v,C,S,A)=>{if(u(y))return(0,t.printText)(y.data,b);if(d(y))return(0,t.printComment)(y.data,b);let _=m(y)?"DocumentFragment":y.tagName.toLowerCase();return++C>b.maxDepth?(0,t.printElementAsLeaf)(_,b):(0,t.printElement)(_,(0,t.printProps)(m(y)?[]:Array.from(y.attributes).map(E=>E.name).sort(),m(y)?{}:Array.from(y.attributes).reduce((E,R)=>(E[R.name]=R.value,E),{}),b,v+b.indent,C,S,A),(0,t.printChildren)(Array.prototype.slice.call(y.childNodes||y.children),b,v+b.indent,C,S,A),b,v)};e.serialize=p;var h={serialize:p,test:c},g=h;e.default=g}}),VN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=vi(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",a="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",c="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",d=R=>"Immutable."+R,m=R=>"["+R+"]",p=" ",h="\u2026",g=(R,P,N,B,j,F,T)=>++B>P.maxDepth?m(d(T)):d(T)+p+"{"+(0,t.printIteratorEntries)(R.entries(),P,N,B,j,F)+"}";function y(R){let P=0;return{next(){if(P<R._keys.length){let N=R._keys[P++];return{done:!1,value:[N,R.get(N)]}}return{done:!0,value:void 0}}}}var b=(R,P,N,B,j,F)=>{let T=d(R._name||"Record");return++B>P.maxDepth?m(T):T+p+"{"+(0,t.printIteratorEntries)(y(R),P,N,B,j,F)+"}"},v=(R,P,N,B,j,F)=>{let T=d("Seq");return++B>P.maxDepth?m(T):R[o]?T+p+"{"+(R._iter||R._object?(0,t.printIteratorEntries)(R.entries(),P,N,B,j,F):h)+"}":T+p+"["+(R._iter||R._array||R._collection||R._iterable?(0,t.printIteratorValues)(R.values(),P,N,B,j,F):h)+"]"},C=(R,P,N,B,j,F,T)=>++B>P.maxDepth?m(d(T)):d(T)+p+"["+(0,t.printIteratorValues)(R.values(),P,N,B,j,F)+"]",S=(R,P,N,B,j,F)=>R[a]?g(R,P,N,B,j,F,R[i]?"OrderedMap":"Map"):R[n]?C(R,P,N,B,j,F,"List"):R[c]?C(R,P,N,B,j,F,R[i]?"OrderedSet":"Set"):R[u]?C(R,P,N,B,j,F,"Stack"):R[l]?v(R,P,N,B,j,F):b(R,P,N,B,j,F);e.serialize=S;var A=R=>R&&(R[r]===!0||R[s]===!0);e.test=A;var _={serialize:S,test:A},E=_;e.default=E}}),zN=w({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,o=60108,a=60114,i=60109,s=60110,l=60112,c=60113,u=60120,d=60115,m=60116,p=60121,h=60122,g=60117,y=60129,b=60131;typeof Symbol=="function"&&Symbol.for&&(v=Symbol.for,t=v("react.element"),r=v("react.portal"),n=v("react.fragment"),o=v("react.strict_mode"),a=v("react.profiler"),i=v("react.provider"),s=v("react.context"),l=v("react.forward_ref"),c=v("react.suspense"),u=v("react.suspense_list"),d=v("react.memo"),m=v("react.lazy"),p=v("react.block"),h=v("react.server.block"),g=v("react.fundamental"),y=v("react.debug_trace_mode"),b=v("react.legacy_hidden"));var v;function C(T){if(typeof T=="object"&&T!==null){var M=T.$$typeof;switch(M){case t:switch(T=T.type,T){case n:case a:case o:case c:case u:return T;default:switch(T=T&&T.$$typeof,T){case s:case l:case m:case d:case i:return T;default:return M}}case r:return M}}}var S=i,A=t,_=l,E=n,R=m,P=d,N=r,B=a,j=o,F=c;e.ContextConsumer=s,e.ContextProvider=S,e.Element=A,e.ForwardRef=_,e.Fragment=E,e.Lazy=R,e.Memo=P,e.Portal=N,e.Profiler=B,e.StrictMode=j,e.Suspense=F,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(T){return C(T)===s},e.isContextProvider=function(T){return C(T)===i},e.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},e.isForwardRef=function(T){return C(T)===l},e.isFragment=function(T){return C(T)===n},e.isLazy=function(T){return C(T)===m},e.isMemo=function(T){return C(T)===d},e.isPortal=function(T){return C(T)===r},e.isProfiler=function(T){return C(T)===a},e.isStrictMode=function(T){return C(T)===o},e.isSuspense=function(T){return C(T)===c},e.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===a||T===y||T===o||T===c||T===u||T===b||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===d||T.$$typeof===i||T.$$typeof===s||T.$$typeof===l||T.$$typeof===g||T.$$typeof===p||T[0]===h)},e.typeOf=C}}),wV=w({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.development.js"(e){}}),GN=w({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=zN()}}),YN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(GN()),r=Pc();function n(m){if(typeof WeakMap!="function")return null;var p=new WeakMap,h=new WeakMap;return(n=function(g){return g?h:p})(m)}function o(m,p){if(!p&&m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=n(p);if(h&&h.has(m))return h.get(m);var g={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in m)if(b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)){var v=y?Object.getOwnPropertyDescriptor(m,b):null;v&&(v.get||v.set)?Object.defineProperty(g,b,v):g[b]=m[b]}return g.default=m,h&&h.set(m,g),g}var a=(m,p=[])=>(Array.isArray(m)?m.forEach(h=>{a(h,p)}):m!=null&&m!==!1&&p.push(m),p),i=m=>{let p=m.type;if(typeof p=="string")return p;if(typeof p=="function")return p.displayName||p.name||"Unknown";if(t.isFragment(m))return"React.Fragment";if(t.isSuspense(m))return"React.Suspense";if(typeof p=="object"&&p!==null){if(t.isContextProvider(m))return"Context.Provider";if(t.isContextConsumer(m))return"Context.Consumer";if(t.isForwardRef(m)){if(p.displayName)return p.displayName;let h=p.render.displayName||p.render.name||"";return h!==""?"ForwardRef("+h+")":"ForwardRef"}if(t.isMemo(m)){let h=p.displayName||p.type.displayName||p.type.name||"";return h!==""?"Memo("+h+")":"Memo"}}return"UNDEFINED"},s=m=>{let{props:p}=m;return Object.keys(p).filter(h=>h!=="children"&&p[h]!==void 0).sort()},l=(m,p,h,g,y,b)=>++g>p.maxDepth?(0,r.printElementAsLeaf)(i(m),p):(0,r.printElement)(i(m),(0,r.printProps)(s(m),m.props,p,h+p.indent,g,y,b),(0,r.printChildren)(a(m.props.children),p,h+p.indent,g,y,b),p,h);e.serialize=l;var c=m=>m!=null&&t.isElement(m);e.test=c;var u={serialize:l,test:c},d=u;e.default=d}}),WN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Pc(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,a=u=>{let{props:d}=u;return d?Object.keys(d).filter(m=>d[m]!==void 0).sort():[]},i=(u,d,m,p,h,g)=>++p>d.maxDepth?(0,t.printElementAsLeaf)(u.type,d):(0,t.printElement)(u.type,u.props?(0,t.printProps)(a(u),u.props,d,m+d.indent,p,h,g):"",u.children?(0,t.printChildren)(u.children,d,m+d.indent,p,h,g):"",d,m);e.serialize=i;var s=u=>u&&u.$$typeof===o;e.test=s;var l={serialize:i,test:s},c=l;e.default=c}}),KN=w({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=ee,e.plugins=void 0;var t=u(dv()),r=vi(),n=u(LN()),o=u(kN()),a=u($N()),i=u(HN()),s=u(VN()),l=u(YN()),c=u(WN());function u(L){return L&&L.__esModule?L:{default:L}}var d=Object.prototype.toString,m=Date.prototype.toISOString,p=Error.prototype.toString,h=RegExp.prototype.toString,g=L=>typeof L.constructor=="function"&&L.constructor.name||"Object",y=L=>typeof window<"u"&&L===window,b=/^Symbol\((.*)\)(.*)$/,v=/\n/gi,C=class extends Error{constructor(L,X){super(L),this.stack=X,this.name=this.constructor.name}};function S(L){return L==="[object Array]"||L==="[object ArrayBuffer]"||L==="[object DataView]"||L==="[object Float32Array]"||L==="[object Float64Array]"||L==="[object Int8Array]"||L==="[object Int16Array]"||L==="[object Int32Array]"||L==="[object Uint8Array]"||L==="[object Uint8ClampedArray]"||L==="[object Uint16Array]"||L==="[object Uint32Array]"}function A(L){return Object.is(L,-0)?"-0":String(L)}function _(L){return`${L}n`}function E(L,X){return X?"[Function "+(L.name||"anonymous")+"]":"[Function]"}function R(L){return String(L).replace(b,"Symbol($1)")}function P(L){return"["+p.call(L)+"]"}function N(L,X,Z,de){if(L===!0||L===!1)return""+L;if(L===void 0)return"undefined";if(L===null)return"null";let ue=typeof L;if(ue==="number")return A(L);if(ue==="bigint")return _(L);if(ue==="string")return de?'"'+L.replace(/"|\\/g,"\\$&")+'"':'"'+L+'"';if(ue==="function")return E(L,X);if(ue==="symbol")return R(L);let fe=d.call(L);return fe==="[object WeakMap]"?"WeakMap {}":fe==="[object WeakSet]"?"WeakSet {}":fe==="[object Function]"||fe==="[object GeneratorFunction]"?E(L,X):fe==="[object Symbol]"?R(L):fe==="[object Date]"?isNaN(+L)?"Date { NaN }":m.call(L):fe==="[object Error]"?P(L):fe==="[object RegExp]"?Z?h.call(L).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):h.call(L):L instanceof Error?P(L):null}function B(L,X,Z,de,ue,fe){if(ue.indexOf(L)!==-1)return"[Circular]";ue=ue.slice(),ue.push(L);let ye=++de>X.maxDepth,qe=X.min;if(X.callToJSON&&!ye&&L.toJSON&&typeof L.toJSON=="function"&&!fe)return M(L.toJSON(),X,Z,de,ue,!0);let lt=d.call(L);return lt==="[object Arguments]"?ye?"[Arguments]":(qe?"":"Arguments ")+"["+(0,r.printListItems)(L,X,Z,de,ue,M)+"]":S(lt)?ye?"["+L.constructor.name+"]":(qe||!X.printBasicPrototype&&L.constructor.name==="Array"?"":L.constructor.name+" ")+"["+(0,r.printListItems)(L,X,Z,de,ue,M)+"]":lt==="[object Map]"?ye?"[Map]":"Map {"+(0,r.printIteratorEntries)(L.entries(),X,Z,de,ue,M," => ")+"}":lt==="[object Set]"?ye?"[Set]":"Set {"+(0,r.printIteratorValues)(L.values(),X,Z,de,ue,M)+"}":ye||y(L)?"["+g(L)+"]":(qe||!X.printBasicPrototype&&g(L)==="Object"?"":g(L)+" ")+"{"+(0,r.printObjectProperties)(L,X,Z,de,ue,M)+"}"}function j(L){return L.serialize!=null}function F(L,X,Z,de,ue,fe){let ye;try{ye=j(L)?L.serialize(X,Z,de,ue,fe,M):L.print(X,qe=>M(qe,Z,de,ue,fe),qe=>{let lt=de+Z.indent;return lt+qe.replace(v,`
|
|
292
292
|
`+lt)},{edgeSpacing:Z.spacingOuter,min:Z.min,spacing:Z.spacingInner},Z.colors)}catch(qe){throw new C(qe.message,qe.stack)}if(typeof ye!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ye}".`);return ye}function T(L,X){for(let Z=0;Z<L.length;Z++)try{if(L[Z].test(X))return L[Z]}catch(de){throw new C(de.message,de.stack)}return null}function M(L,X,Z,de,ue,fe){let ye=T(X.plugins,L);if(ye!==null)return F(ye,L,X,Z,de,ue);let qe=N(L,X.printFunctionName,X.escapeRegex,X.escapeString);return qe!==null?qe:B(L,X,Z,de,ue,fe)}var D={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Y=Object.keys(D),G={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:D};e.DEFAULT_OPTIONS=G;function J(L){if(Object.keys(L).forEach(X=>{if(!G.hasOwnProperty(X))throw new Error(`pretty-format: Unknown option "${X}".`)}),L.min&&L.indent!==void 0&&L.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(L.theme!==void 0){if(L.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof L.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof L.theme}".`)}}var re=L=>Y.reduce((X,Z)=>{let de=L.theme&&L.theme[Z]!==void 0?L.theme[Z]:D[Z],ue=de&&t.default[de];if(ue&&typeof ue.close=="string"&&typeof ue.open=="string")X[Z]=ue;else throw new Error(`pretty-format: Option "theme" has a key "${Z}" whose value "${de}" is undefined in ansi-styles.`);return X},Object.create(null)),te=()=>Y.reduce((L,X)=>(L[X]={close:"",open:""},L),Object.create(null)),H=L=>L&&L.printFunctionName!==void 0?L.printFunctionName:G.printFunctionName,U=L=>L&&L.escapeRegex!==void 0?L.escapeRegex:G.escapeRegex,z=L=>L&&L.escapeString!==void 0?L.escapeString:G.escapeString,K=L=>{var X;return{callToJSON:L&&L.callToJSON!==void 0?L.callToJSON:G.callToJSON,colors:L&&L.highlight?re(L):te(),compareKeys:L&&typeof L.compareKeys=="function"?L.compareKeys:G.compareKeys,escapeRegex:U(L),escapeString:z(L),indent:L&&L.min?"":W(L&&L.indent!==void 0?L.indent:G.indent),maxDepth:L&&L.maxDepth!==void 0?L.maxDepth:G.maxDepth,min:L&&L.min!==void 0?L.min:G.min,plugins:L&&L.plugins!==void 0?L.plugins:G.plugins,printBasicPrototype:(X=L?.printBasicPrototype)!==null&&X!==void 0?X:!0,printFunctionName:H(L),spacingInner:L&&L.min?" ":`
|
|
293
293
|
`,spacingOuter:L&&L.min?"":`
|
|
294
294
|
`}};function W(L){return new Array(L+1).join(" ")}function ee(L,X){if(X&&(J(X),X.plugins)){let de=T(X.plugins,L);if(de!==null)return F(de,L,K(X),"",0,[])}let Z=N(L,H(X),U(X),z(X));return Z!==null?Z:B(L,K(X),"",0,[])}var se={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:a.default,DOMElement:i.default,Immutable:s.default,ReactElement:l.default,ReactTestComponent:c.default};e.plugins=se;var ze=ee;e.default=ze}}),XN=w({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var n=this,o=0,a={"@@iterator":function(){return a},next:function(){if(o<n.length){var i=n[o];return o=o+1,{done:!1,value:i}}else return{done:!0}}};return a}var r=t;e.default=r}}),$o=w({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(XN());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},n(a)}function o(a,i){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(a,Symbol.iterator,{value:t.default.bind(i)}),a}}}),JN=w({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r($o());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,h){return i(p)||a(p,h)||l(p,h)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -301,92 +301,92 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
301
301
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(_,E){var R=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(R!=null){var P=[],N=!0,B=!1,j,F;try{for(R=R.call(_);!(N=(j=R.next()).done)&&(P.push(j.value),!(E&&P.length===E));N=!0);}catch(T){B=!0,F=T}finally{try{!N&&R.return!=null&&R.return()}finally{if(B)throw F}}return P}}function l(_){if(Array.isArray(_))return _}function c(_,E){var R=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!R){if(Array.isArray(_)||(R=u(_))||E&&_&&typeof _.length=="number"){R&&(_=R);var P=0,N=function(){};return{s:N,n:function(){return P>=_.length?{done:!0}:{done:!1,value:_[P++]}},e:function(T){throw T},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
302
302
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,j=!1,F;return{s:function(){R=R.call(_)},n:function(){var T=R.next();return B=T.done,T},e:function(T){j=!0,F=T},f:function(){try{!B&&R.return!=null&&R.return()}finally{if(j)throw F}}}}function u(_,E){if(_){if(typeof _=="string")return d(_,E);var R=Object.prototype.toString.call(_).slice(8,-1);if(R==="Object"&&_.constructor&&(R=_.constructor.name),R==="Map"||R==="Set")return Array.from(_);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return d(_,E)}}function d(_,E){(E==null||E>_.length)&&(E=_.length);for(var R=0,P=new Array(E);R<E;R++)P[R]=_[R];return P}var m=[],p=n.default.keys();for(C=0;C<p.length;C++)if(h=p[C],g=n.default.get(h),g)for(y=[].concat(g.baseConcepts,g.relatedConcepts),v=0;v<y.length;v++)b=y[v],b.module==="HTML"&&(function(){var _=b.concept;if(_){var E=m.find(function(B){return(0,t.dequal)(B,_)}),R;E?R=E[1]:R=[];for(var P=!0,N=0;N<R.length;N++)if(R[N]===h){P=!1;break}P&&R.push(h),m.push([_,R])}})();var h,g,y,b,v,C,S={entries:function(){return m},forEach:function(_){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,R=c(m),P;try{for(R.s();!(P=R.n()).done;){var N=a(P.value,2),B=N[0],j=N[1];_.call(E,j,B,m)}}catch(F){R.e(F)}finally{R.f()}},get:function(_){var E=m.find(function(R){return _.name===R[0].name&&(0,t.dequal)(_.attributes,R[0].attributes)});return E&&E[1]},has:function(_){return!!S.get(_)},keys:function(){return m.map(function(_){var E=a(_,1),R=E[0];return R})},values:function(){return m.map(function(_){var E=a(_,2),R=E[1];return R})}},A=(0,r.default)(S,S.entries());e.default=A}}),jD=w({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n($o()),r=n(Oc());function n(E){return E&&E.__esModule?E:{default:E}}function o(E,R){return s(E)||i(E,R)||c(E,R)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
303
303
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(E,R){var P=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(P!=null){var N=[],B=!0,j=!1,F,T;try{for(P=P.call(E);!(B=(F=P.next()).done)&&(N.push(F.value),!(R&&N.length===R));B=!0);}catch(M){j=!0,T=M}finally{try{!B&&P.return!=null&&P.return()}finally{if(j)throw T}}return N}}function s(E){if(Array.isArray(E))return E}function l(E,R){var P=typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(!P){if(Array.isArray(E)||(P=c(E))||R&&E&&typeof E.length=="number"){P&&(E=P);var N=0,B=function(){};return{s:B,n:function(){return N>=E.length?{done:!0}:{done:!1,value:E[N++]}},e:function(M){throw M},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
304
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,F=!1,T;return{s:function(){P=P.call(E)},n:function(){var M=P.next();return j=M.done,M},e:function(M){F=!0,T=M},f:function(){try{!j&&P.return!=null&&P.return()}finally{if(F)throw T}}}}function c(E,R){if(E){if(typeof E=="string")return u(E,R);var P=Object.prototype.toString.call(E).slice(8,-1);if(P==="Object"&&E.constructor&&(P=E.constructor.name),P==="Map"||P==="Set")return Array.from(E);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return u(E,R)}}function u(E,R){(R==null||R>E.length)&&(R=E.length);for(var P=0,N=new Array(R);P<R;P++)N[P]=E[P];return N}var d=[],m=r.default.keys();for(S=0;S<m.length;S++)if(p=m[S],h=r.default.get(p),g=[],h){for(y=[].concat(h.baseConcepts,h.relatedConcepts),C=0;C<y.length;C++)b=y[C],b.module==="HTML"&&(v=b.concept,v!=null&&g.push(v));g.length>0&&d.push([p,g])}var p,h,g,y,b,v,C,S,A={entries:function(){return d},forEach:function(E){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,P=l(d),N;try{for(P.s();!(N=P.n()).done;){var B=o(N.value,2),j=B[0],F=B[1];E.call(R,F,j,d)}}catch(T){P.e(T)}finally{P.f()}},get:function(E){var R=d.find(function(P){return P[0]===E});return R&&R[1]},has:function(E){return!!A.get(E)},keys:function(){return d.map(function(E){var R=o(E,1),P=R[0];return P})},values:function(){return d.map(function(E){var R=o(E,2),P=R[1];return P})}},_=(0,t.default)(A,A.entries());e.default=_}}),ID=w({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=i(JN()),r=i(QN()),n=i(Oc()),o=i(ND()),a=i(jD());function i(m){return m&&m.__esModule?m:{default:m}}var s=t.default;e.aria=s;var l=r.default;e.dom=l;var c=n.default;e.roles=c;var u=o.default;e.elementRoles=u;var d=a.default;e.roleElements=d}}),DD=w({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=(function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function s(c,u){if(!i[c]){i[c]={};for(var d=0;d<c.length;d++)i[c][c.charAt(d)]=d}return i[c][u]}var l={compressToBase64:function(c){if(c==null)return"";var u=l._compress(c,6,function(d){return o.charAt(d)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(u){return s(o,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=l.compress(c),d=new Uint8Array(u.length*2),m=0,p=u.length;m<p;m++){var h=u.charCodeAt(m);d[m*2]=h>>>8,d[m*2+1]=h%256}return d},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var u=new Array(c.length/2),d=0,m=u.length;d<m;d++)u[d]=c[d*2]*256+c[d*2+1];var p=[];return u.forEach(function(h){p.push(n(h))}),l.decompress(p.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(u){return a.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(u){return s(a,c.charAt(u))}))},compress:function(c){return l._compress(c,16,function(u){return n(u)})},_compress:function(c,u,d){if(c==null)return"";var m,p,h={},g={},y="",b="",v="",C=2,S=3,A=2,_=[],E=0,R=0,P;for(P=0;P<c.length;P+=1)if(y=c.charAt(P),Object.prototype.hasOwnProperty.call(h,y)||(h[y]=S++,g[y]=!0),b=v+y,Object.prototype.hasOwnProperty.call(h,b))v=b;else{if(Object.prototype.hasOwnProperty.call(g,v)){if(v.charCodeAt(0)<256){for(m=0;m<A;m++)E=E<<1,R==u-1?(R=0,_.push(d(E)),E=0):R++;for(p=v.charCodeAt(0),m=0;m<8;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1}else{for(p=1,m=0;m<A;m++)E=E<<1|p,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=0;for(p=v.charCodeAt(0),m=0;m<16;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1}C--,C==0&&(C=Math.pow(2,A),A++),delete g[v]}else for(p=h[v],m=0;m<A;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1;C--,C==0&&(C=Math.pow(2,A),A++),h[b]=S++,v=String(y)}if(v!==""){if(Object.prototype.hasOwnProperty.call(g,v)){if(v.charCodeAt(0)<256){for(m=0;m<A;m++)E=E<<1,R==u-1?(R=0,_.push(d(E)),E=0):R++;for(p=v.charCodeAt(0),m=0;m<8;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1}else{for(p=1,m=0;m<A;m++)E=E<<1|p,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=0;for(p=v.charCodeAt(0),m=0;m<16;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1}C--,C==0&&(C=Math.pow(2,A),A++),delete g[v]}else for(p=h[v],m=0;m<A;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1;C--,C==0&&(C=Math.pow(2,A),A++)}for(p=2,m=0;m<A;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1;for(;;)if(E=E<<1,R==u-1){_.push(d(E));break}else R++;return _.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,d){var m=[],p=4,h=4,g=3,y="",b=[],v,C,S,A,_,E,R,P={val:d(0),position:u,index:1};for(v=0;v<3;v+=1)m[v]=v;for(S=0,_=Math.pow(2,2),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;switch(S){case 0:for(S=0,_=Math.pow(2,8),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;R=n(S);break;case 1:for(S=0,_=Math.pow(2,16),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;R=n(S);break;case 2:return""}for(m[3]=R,C=R,b.push(R);;){if(P.index>c)return"";for(S=0,_=Math.pow(2,g),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;switch(R=S){case 0:for(S=0,_=Math.pow(2,8),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;m[h++]=n(S),R=h-1,p--;break;case 1:for(S=0,_=Math.pow(2,16),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;m[h++]=n(S),R=h-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,g),g++),m[R])y=m[R];else if(R===h)y=C+C.charAt(0);else return null;b.push(y),m[h++]=C+y.charAt(0),p--,C=y,p==0&&(p=Math.pow(2,g),g++)}}};return l})();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),dv=Object.defineProperty,FD=Object.getOwnPropertyNames,$=(e,t)=>dv(e,"name",{value:t,configurable:!0}),LD=(e,t)=>function(){return t||(0,e[FD(e)[0]])((t={exports:{}}).exports,t),t.exports},qc=(e,t)=>{for(var r in t)dv(e,r,{get:t[r],enumerable:!0})},BD=LD({"(disabled):util"(){}}),Ft={};qc(Ft,{addChainableMethod:()=>Uc,addLengthGuard:()=>Vo,addMethod:()=>Bc,addProperty:()=>Lc,checkError:()=>pt,compareByInspect:()=>Xa,eql:()=>Lv,expectTypes:()=>gv,flag:()=>ae,getActual:()=>_i,getMessage:()=>Nc,getName:()=>wi,getOperator:()=>Gc,getOwnEnumerableProperties:()=>zc,getOwnEnumerablePropertySymbols:()=>Vc,getPathInfo:()=>Fc,hasProperty:()=>Ri,inspect:()=>pe,isNaN:()=>Ja,isNumeric:()=>Ve,isProxyEnabled:()=>Ho,isRegExp:()=>Qa,objDisplay:()=>Hr,overwriteChainableMethod:()=>Hc,overwriteMethod:()=>$c,overwriteProperty:()=>kc,proxify:()=>zn,test:()=>xc,transferFlags:()=>xt,type:()=>_e});var pt={};qc(pt,{compatibleConstructor:()=>mv,compatibleInstance:()=>fv,compatibleMessage:()=>hv,getConstructorName:()=>yv,getMessage:()=>bv});function Ei(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}$(Ei,"isErrorInstance");function pv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}$(pv,"isRegExp");function fv(e,t){return Ei(t)&&e===t}$(fv,"compatibleInstance");function mv(e,t){return Ei(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}$(mv,"compatibleConstructor");function hv(e,t){let r=typeof e=="string"?e:e.message;return pv(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}$(hv,"compatibleMessage");function yv(e){let t=e;return Ei(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}$(yv,"getConstructorName");function bv(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}$(bv,"getMessage");function ae(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}$(ae,"flag");function xc(e,t){var r=ae(e,"negate"),n=t[0];return r?!n:n}$(xc,"test");function _e(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}$(_e,"type");var kD="captureStackTrace"in Error,Ma,he=(Ma=class extends Error{constructor(t="Unspecified AssertionError",r,n){super(t);Ae(this,"message");this.message=t,kD&&Error.captureStackTrace(this,n||Ma);for(let o in r)o in this||(this[o]=r[o])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},$(Ma,"AssertionError"),Ma);function gv(e,t){var r=ae(e,"message"),n=ae(e,"ssfi");r=r?r+": ":"",e=ae(e,"object"),t=t.map(function(i){return i.toLowerCase()}),t.sort();var o=t.map(function(i,s){var l=~["a","e","i","o","u"].indexOf(i.charAt(0))?"an":"a",c=t.length>1&&s===t.length-1?"or ":"";return c+l+" "+i}).join(", "),a=_e(e).toLowerCase();if(!t.some(function(i){return a===i}))throw new he(r+"object tested must be "+o+", but "+a+" given",void 0,n)}$(gv,"expectTypes");function _i(e,t){return t.length>4?t[4]:e._obj}$(_i,"getActual");var $y={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},$D={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},xn="\u2026";function vv(e,t){let r=$y[$D[t]]||$y[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}$(vv,"colorise");function Ev({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:s=[],truncate:l=1/0,stylize:c=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(l),seen:s,inspect:u,stylize:c};return d.colors&&(d.stylize=vv),d}$(Ev,"normaliseOptions");function _v(e){return e>="\uD800"&&e<="\uDBFF"}$(_v,"isHighSurrogate");function nr(e,t,r=xn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&_v(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}$(nr,"truncate");function _t(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",s="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,d=c+2===e.length;l=`${xn}(${e.length-c})`;let m=e[c];t.truncate=a-i.length-(u?0:n.length);let p=s||r(m,t)+(u?"":n),h=i.length+p.length,g=h+l.length;if(u&&h>a&&i.length+l.length<=a||!u&&!d&&g>a||(s=u?"":r(e[c+1],t)+(d?"":n),!u&&d&&g>a&&h+s.length>a))break;if(i+=p,!u&&!d&&h+s.length>=a){l=`${xn}(${e.length-c-1})`;break}l=""}return`${i}${l}`}$(_t,"inspectList");function Rv(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}$(Rv,"quoteComplexKey");function Mn([e,t],r){return r.truncate-=2,typeof e=="string"?e=Rv(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}$(Mn,"inspectProperty");function wv(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=_t(e,t);t.truncate-=n.length;let o="";return r.length&&(o=_t(r.map(a=>[a,e[a]]),t,Mn)),`[ ${n}${o?`, ${o}`:""} ]`}$(wv,"inspectArray");var UD=$(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Dt(e,t){let r=UD(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){let s=`${t.stylize(nr(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=s.length,e[i]!==e.length&&t.truncate<=3){o+=`${xn}(${e.length-e[i]+1})`;break}o+=s}let a="";return n.length&&(a=_t(n.map(i=>[i,e[i]]),t,Mn)),`${r}[ ${o}${a?`, ${a}`:""} ]`}$(Dt,"inspectTypedArray");function Cv(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${nr(n[1],t.truncate-o.length-1)}`,"date")}$(Cv,"inspectDate");function Su(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${nr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}$(Su,"inspectFunction");function Sv([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}$(Sv,"inspectMapEntry");function Av(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}$(Av,"mapToEntries");function Tv(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${_t(Av(e),t,Sv)} }`)}$(Tv,"inspectMap");var HD=Number.isNaN||(e=>e!==e);function Au(e,t){return HD(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(nr(String(e),t.truncate),"number")}$(Au,"inspectNumber");function Tu(e,t){let r=nr(e.toString(),t.truncate-1);return r!==xn&&(r+="n"),t.stylize(r,"bigint")}$(Tu,"inspectBigInt");function Pv(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${nr(o,n)}/${r}`,"regexp")}$(Pv,"inspectRegExp");function Ov(e){let t=[];return e.forEach(r=>{t.push(r)}),t}$(Ov,"arrayFromSet");function qv(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${_t(Ov(e),t)} }`)}$(qv,"inspectSet");var Uy=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),VD={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},zD=16,GD=4;function xv(e){return VD[e]||`\\u${`0000${e.charCodeAt(0).toString(zD)}`.slice(-GD)}`}$(xv,"escape");function Pu(e,t){return Uy.test(e)&&(e=e.replace(Uy,xv)),t.stylize(`'${nr(e,t.truncate-2)}'`,"string")}$(Pu,"inspectString");function Ou(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}$(Ou,"inspectSymbol");var Mv=$(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Mv=$((n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`},"getPromiseValue"))}catch{}var YD=Mv;function Eo(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=_t(r.map(s=>[s,e[s]]),t,Mn),a=_t(n.map(s=>[s,e[s]]),t,Mn);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}$(Eo,"inspectObject");var au=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Nv(e,t){let r="";return au&&au in e&&(r=e[au]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Eo(e,t)}`}$(Nv,"inspectClass");function jv(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${_t(e,t)} ]`)}$(jv,"inspectArguments");var WD=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Iv(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>WD.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=nr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=_t(r.map(i=>[i,e[i]]),t,Mn);return`${n}${o}${a?` { ${a} }`:""}`}$(Iv,"inspectObject");function Dv([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}$(Dv,"inspectAttribute");function Ya(e,t){return _t(e,t,Mc,`
|
|
305
|
-
`)}$(Ya,"inspectHTMLCollection");function Mc(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=_t(r.map(u=>[u,e.getAttribute(u)]),t,Dv," ")),t.truncate-=s.length;let l=t.truncate,c=Ya(e.children,t);return c&&c.length>l&&(c=`${xn}(${e.children.length})`),`${o}${s}${a}${c}${i}`}$(Mc,"inspectHTML");var KD=typeof Symbol=="function"&&typeof Symbol.for=="function",iu=KD?Symbol.for("chai/inspect"):"@@chai/inspect",_n=!1;try{let e=BD();_n=e.inspect?e.inspect.custom:!1}catch{_n=!1}var Hy=new WeakMap,Vy={},zy={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Au,Number:Au,bigint:Tu,BigInt:Tu,string:Pu,String:Pu,function:Su,Function:Su,symbol:Ou,Symbol:Ou,Array:wv,Date:Cv,Map:Tv,Set:qv,RegExp:Pv,Promise:YD,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:jv,Int8Array:Dt,Uint8Array:Dt,Uint8ClampedArray:Dt,Int16Array:Dt,Uint16Array:Dt,Int32Array:Dt,Uint32Array:Dt,Float32Array:Dt,Float64Array:Dt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Iv,HTMLCollection:Ya,NodeList:Ya},XD=$((e,t,r)=>iu in e&&typeof e[iu]=="function"?e[iu](t):_n&&_n in e&&typeof e[_n]=="function"?e[_n](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Hy.has(e.constructor)?Hy.get(e.constructor)(e,t):Vy[r]?Vy[r](e,t):"","inspectCustom"),JD=Object.prototype.toString;function Wa(e,t={}){let r=Ev(t,Wa),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=JD.call(e).slice(8,-1)),o in zy)return zy[o](e,r);if(n&&e){let i=XD(e,r,o);if(i)return typeof i=="string"?i:Wa(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Eo(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Mc(e,r):"constructor"in e?e.constructor!==Object?Nv(e,r):Eo(e,r):e===Object(e)?Eo(e,r):r.stylize(String(e),o)}$(Wa,"inspect");var it={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function pe(e,t,r,n){var o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:it.truncateThreshold?it.truncateThreshold:1/0};return Wa(e,o)}$(pe,"inspect");function Hr(e){var t=pe(e),r=Object.prototype.toString.call(e);if(it.truncateThreshold&&t.length>=it.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){var n=Object.keys(e),o=n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", ");return"{ Object ("+o+") }"}else return t}else return t}$(Hr,"objDisplay");function Nc(e,t){var r=ae(e,"negate"),n=ae(e,"object"),o=t[3],a=_i(e,t),i=r?t[2]:t[1],s=ae(e,"message");return typeof i=="function"&&(i=i()),i=i||"",i=i.replace(/#\{this\}/g,function(){return Hr(n)}).replace(/#\{act\}/g,function(){return Hr(a)}).replace(/#\{exp\}/g,function(){return Hr(o)}),s?s+": "+i:i}$(Nc,"getMessage");function xt(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(var o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}$(xt,"transferFlags");function qu(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}$(qu,"type");function jc(){this._key="chai/deep-eql__"+Math.random()+Date.now()}$(jc,"FakeMap");jc.prototype={get:$(function(e){return e[this._key]},"get"),set:$(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var Fv=typeof WeakMap=="function"?WeakMap:jc;function xu(e,t,r){if(!r||Gr(e)||Gr(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}$(xu,"memoizeCompare");function yo(e,t,r,n){if(!(!r||Gr(e)||Gr(t))){var o=r.get(e);o?o.set(t,n):(o=new Fv,o.set(t,n),r.set(e,o))}}$(yo,"memoizeSet");var Lv=Uo;function Uo(e,t,r){if(r&&r.comparator)return Mu(e,t,r);var n=Ic(e,t);return n!==null?n:Mu(e,t,r)}$(Uo,"deepEqual");function Ic(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Gr(e)||Gr(t)?!1:null}$(Ic,"simpleEqual");function Mu(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new Fv;var n=r&&r.comparator,o=xu(e,t,r.memoize);if(o!==null)return o;var a=xu(t,e,r.memoize);if(a!==null)return a;if(n){var i=n(e,t);if(i===!1||i===!0)return yo(e,t,r.memoize,i),i;var s=Ic(e,t);if(s!==null)return s}var l=qu(e);if(l!==qu(t))return yo(e,t,r.memoize,!1),!1;yo(e,t,r.memoize,!0);var c=Bv(e,t,l,r);return yo(e,t,r.memoize,c),c}$(Mu,"extensiveDeepEqual");function Bv(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Uo(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Dc(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return _r(e,t,n);case"RegExp":return kv(e,t);case"Generator":return $v(e,t,n);case"DataView":return _r(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return _r(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Nu(e,t,n);case"Map":return Nu(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return Hv(e,t,n)}}$(Bv,"extensiveDeepEqualByType");function kv(e,t){return e.toString()===t.toString()}$(kv,"regexpEqual");function Nu(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],o=[];return e.forEach($(function(a,i){n.push([a,i])},"gatherEntries")),t.forEach($(function(a,i){o.push([a,i])},"gatherEntries")),_r(n.sort(),o.sort(),r)}$(Nu,"entriesEqual");function _r(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var o=-1;++o<n;)if(Uo(e[o],t[o],r)===!1)return!1;return!0}$(_r,"iterableEqual");function $v(e,t,r){return _r(Ka(e),Ka(t),r)}$($v,"generatorEqual");function Uv(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}$(Uv,"hasIteratorFunction");function ju(e){if(Uv(e))try{return Ka(e[Symbol.iterator]())}catch{return[]}return[]}$(ju,"getIteratorEntries");function Ka(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}$(Ka,"getGeneratorEntries");function Iu(e){var t=[];for(var r in e)t.push(r);return t}$(Iu,"getEnumerableKeys");function Du(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}$(Du,"getEnumerableSymbols");function Dc(e,t,r,n){var o=r.length;if(o===0)return!0;for(var a=0;a<o;a+=1)if(Uo(e[r[a]],t[r[a]],n)===!1)return!1;return!0}$(Dc,"keysEqual");function Hv(e,t,r){var n=Iu(e),o=Iu(t),a=Du(e),i=Du(t);if(n=n.concat(a),o=o.concat(i),n.length&&n.length===o.length)return _r(Fu(n).sort(),Fu(o).sort())===!1?!1:Dc(e,t,n,r);var s=ju(e),l=ju(t);return s.length&&s.length===l.length?(s.sort(),l.sort(),_r(s,l,r)):n.length===0&&s.length===0&&o.length===0&&l.length===0}$(Hv,"objectEqual");function Gr(e){return e===null||typeof e!="object"}$(Gr,"isPrimitive");function Fu(e){return e.map($(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}$(Fu,"mapSymbols");function Ri(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}$(Ri,"hasProperty");function Vv(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}$(Vv,"parsePath");function Lu(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let a=0;a<r;a++){let i=t[a];n&&(typeof i.p>"u"?n=n[i.i]:n=n[i.p],a===r-1&&(o=n))}return o}$(Lu,"internalGetPathValue");function Fc(e,t){let r=Vv(t),n=r[r.length-1],o={parent:r.length>1?Lu(e,r,r.length-1):e,name:n.p||n.i,value:Lu(e,r)};return o.exists=Ri(o.parent,o.name),o}$(Fc,"getPathInfo");function x(e,t,r,n){return ae(this,"ssfi",r||x),ae(this,"lockSsfi",n),ae(this,"object",e),ae(this,"message",t),ae(this,"eql",it.deepEqual||Lv),zn(this)}$(x,"Assertion");Object.defineProperty(x,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),it.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),it.includeStack=e}});Object.defineProperty(x,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),it.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),it.showDiff=e}});x.addProperty=function(e,t){Lc(this.prototype,e,t)};x.addMethod=function(e,t){Bc(this.prototype,e,t)};x.addChainableMethod=function(e,t,r){Uc(this.prototype,e,t,r)};x.overwriteProperty=function(e,t){kc(this.prototype,e,t)};x.overwriteMethod=function(e,t){$c(this.prototype,e,t)};x.overwriteChainableMethod=function(e,t,r){Hc(this.prototype,e,t,r)};x.prototype.assert=function(e,t,r,n,o,a){var i=xc(this,arguments);if(a!==!1&&(a=!0),n===void 0&&o===void 0&&(a=!1),it.showDiff!==!0&&(a=!1),!i){t=Nc(this,arguments);var s=_i(this,arguments),l={actual:s,expected:n,showDiff:a},c=Gc(this,arguments);throw c&&(l.operator=c),new he(t,l,it.includeStack?this.assert:ae(this,"ssfi"))}};Object.defineProperty(x.prototype,"_obj",{get:function(){return ae(this,"object")},set:function(e){ae(this,"object",e)}});function Ho(){return it.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}$(Ho,"isProxyEnabled");function Lc(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:$(function n(){!Ho()&&!ae(this,"lockSsfi")&&ae(this,"ssfi",n);var o=r.call(this);if(o!==void 0)return o;var a=new x;return xt(this,a),a},"propertyGetter"),configurable:!0})}$(Lc,"addProperty");var QD=Object.getOwnPropertyDescriptor(function(){},"length");function Vo(e,t,r){return QD.configurable&&Object.defineProperty(e,"length",{get:function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e}$(Vo,"addLengthGuard");function zv(e){var t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}$(r,"addProperty");for(var n=Object.getPrototypeOf(e);n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}$(zv,"getProperties");var Gy=["__flags","__methods","_obj","assert"];function zn(e,t){return Ho()?new Proxy(e,{get:$(function r(n,o){if(typeof o=="string"&&it.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');var a=null,i=4;throw zv(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&Gy.indexOf(s)===-1){var l=Gv(o,s,i);l<i&&(a=s,i=l)}}),Error(a!==null?"Invalid Chai property: "+o+'. Did you mean "'+a+'"?':"Invalid Chai property: "+o)}return Gy.indexOf(o)===-1&&!ae(n,"lockSsfi")&&ae(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}$(zn,"proxify");function Gv(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;var n=[];for(let a=0;a<=e.length;a++)n[a]=Array(t.length+1).fill(0),n[a][0]=a;for(let a=0;a<t.length;a++)n[0][a]=a;for(let a=1;a<=e.length;a++){var o=e.charCodeAt(a-1);for(let i=1;i<=t.length;i++){if(Math.abs(a-i)>=r){n[a][i]=r;continue}n[a][i]=Math.min(n[a-1][i]+1,n[a][i-1]+1,n[a-1][i-1]+(o===t.charCodeAt(i-1)?0:1))}}return n[e.length][t.length]}$(Gv,"stringDistanceCapped");function Bc(e,t,r){var n=$(function(){ae(this,"lockSsfi")||ae(this,"ssfi",n);var o=r.apply(this,arguments);if(o!==void 0)return o;var a=new x;return xt(this,a),a},"methodWrapper");Vo(n,t,!1),e[t]=zn(n,t)}$(Bc,"addMethod");function kc(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),o=$(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:$(function a(){!Ho()&&!ae(this,"lockSsfi")&&ae(this,"ssfi",a);var i=ae(this,"lockSsfi");ae(this,"lockSsfi",!0);var s=r(o).call(this);if(ae(this,"lockSsfi",i),s!==void 0)return s;var l=new x;return xt(this,l),l},"overwritingPropertyGetter"),configurable:!0})}$(kc,"overwriteProperty");function $c(e,t,r){var n=e[t],o=$(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);var a=$(function(){ae(this,"lockSsfi")||ae(this,"ssfi",a);var i=ae(this,"lockSsfi");ae(this,"lockSsfi",!0);var s=r(o).apply(this,arguments);if(ae(this,"lockSsfi",i),s!==void 0)return s;var l=new x;return xt(this,l),l},"overwritingMethodWrapper");Vo(a,t,!1),e[t]=zn(a,t)}$($c,"overwriteMethod");var ZD=typeof Object.setPrototypeOf=="function",Yy=$(function(){},"testFn"),eF=Object.getOwnPropertyNames(Yy).filter(function(e){var t=Object.getOwnPropertyDescriptor(Yy,e);return typeof t!="object"?!0:!t.configurable}),tF=Function.prototype.call,rF=Function.prototype.apply;function Uc(e,t,r,n){typeof n!="function"&&(n=$(function(){},"chainingBehavior"));var o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:$(function(){o.chainingBehavior.call(this);var a=$(function(){ae(this,"lockSsfi")||ae(this,"ssfi",a);var l=o.method.apply(this,arguments);if(l!==void 0)return l;var c=new x;return xt(this,c),c},"chainableMethodWrapper");if(Vo(a,t,!0),ZD){var i=Object.create(this);i.call=tF,i.apply=rF,Object.setPrototypeOf(a,i)}else{var s=Object.getOwnPropertyNames(e);s.forEach(function(l){if(eF.indexOf(l)===-1){var c=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,c)}})}return xt(this,a),zn(a)},"chainableMethodGetter"),configurable:!0})}$(Uc,"addChainableMethod");function Hc(e,t,r,n){var o=e.__methods[t],a=o.chainingBehavior;o.chainingBehavior=$(function(){var s=n(a).call(this);if(s!==void 0)return s;var l=new x;return xt(this,l),l},"overwritingChainableMethodGetter");var i=o.method;o.method=$(function(){var s=r(i).apply(this,arguments);if(s!==void 0)return s;var l=new x;return xt(this,l),l},"overwritingChainableMethodWrapper")}$(Hc,"overwriteChainableMethod");function Xa(e,t){return pe(e)<pe(t)?-1:1}$(Xa,"compareByInspect");function Vc(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}$(Vc,"getOwnEnumerablePropertySymbols");function zc(e){return Object.keys(e).concat(Vc(e))}$(zc,"getOwnEnumerableProperties");var Ja=Number.isNaN;function Yv(e){var t=_e(e),r=["Array","Object","Function"];return r.indexOf(t)!==-1}$(Yv,"isObjectType");function Gc(e,t){var r=ae(e,"operator"),n=ae(e,"negate"),o=t[3],a=n?t[2]:t[1];if(r)return r;if(typeof a=="function"&&(a=a()),a=a||"",!!a&&!/\shave\s/.test(a)){var i=Yv(o);return/\snot\s/.test(a)?i?"notDeepStrictEqual":"notStrictEqual":i?"deepStrictEqual":"strictEqual"}}$(Gc,"getOperator");function wi(e){return e.name}$(wi,"getName");function Qa(e){return Object.prototype.toString.call(e)==="[object RegExp]"}$(Qa,"isRegExp");function Ve(e){return["Number","BigInt"].includes(_e(e))}$(Ve,"isNumeric");var{flag:I}=Ft;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){x.addProperty(e)});x.addProperty("not",function(){I(this,"negate",!0)});x.addProperty("deep",function(){I(this,"deep",!0)});x.addProperty("nested",function(){I(this,"nested",!0)});x.addProperty("own",function(){I(this,"own",!0)});x.addProperty("ordered",function(){I(this,"ordered",!0)});x.addProperty("any",function(){I(this,"any",!0),I(this,"all",!1)});x.addProperty("all",function(){I(this,"all",!0),I(this,"any",!1)});var Wy={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Yc(e,t){t&&I(this,"message",t),e=e.toLowerCase();var r=I(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";let o=_e(r).toLowerCase();Wy.function.includes(e)?this.assert(Wy[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}$(Yc,"an");x.addChainableMethod("an",Yc);x.addChainableMethod("a",Yc);function Wv(e,t){return Ja(e)&&Ja(t)||e===t}$(Wv,"SameValueZero");function zo(){I(this,"contains",!0)}$(zo,"includeChainingBehavior");function Go(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=_e(r).toLowerCase(),o=I(this,"message"),a=I(this,"negate"),i=I(this,"ssfi"),s=I(this,"deep"),l=s?"deep ":"",c=s?I(this,"eql"):Wv;o=o?o+": ":"";var u=!1;switch(n){case"string":u=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new he(o+"unable to use .deep.include with WeakSet",void 0,i);u=r.has(e);break;case"map":r.forEach(function(h){u=u||c(h,e)});break;case"set":s?r.forEach(function(h){u=u||c(h,e)}):u=r.has(e);break;case"array":s?u=r.some(function(h){return c(h,e)}):u=r.indexOf(e)!==-1;break;default:if(e!==Object(e))throw new he(o+"the given combination of arguments ("+n+" and "+_e(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+_e(e).toLowerCase(),void 0,i);var d=Object.keys(e),m=null,p=0;if(d.forEach(function(h){var g=new x(r);if(xt(this,g,!0),I(g,"lockSsfi",!0),!a||d.length===1){g.property(h,e[h]);return}try{g.property(h,e[h])}catch(y){if(!pt.compatibleConstructor(y,he))throw y;m===null&&(m=y),p++}},this),a&&d.length>1&&p===d.length)throw m;return}this.assert(u,"expected #{this} to "+l+"include "+pe(e),"expected #{this} to not "+l+"include "+pe(e))}$(Go,"include");x.addChainableMethod("include",Go,zo);x.addChainableMethod("contain",Go,zo);x.addChainableMethod("contains",Go,zo);x.addChainableMethod("includes",Go,zo);x.addProperty("ok",function(){this.assert(I(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});x.addProperty("true",function(){this.assert(I(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!I(this,"negate"))});x.addProperty("numeric",function(){let e=I(this,"object");this.assert(["Number","BigInt"].includes(_e(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!I(this,"negate"))});x.addProperty("callable",function(){let e=I(this,"object"),t=I(this,"ssfi"),r=I(this,"message"),n=r?`${r}: `:"",o=I(this,"negate"),a=o?`${n}expected ${pe(e)} not to be a callable function`:`${n}expected ${pe(e)} to be a callable function`,i=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(_e(e));if(i&&o||!i&&!o)throw new he(a,void 0,t)});x.addProperty("false",function(){this.assert(I(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!I(this,"negate"))});x.addProperty("null",function(){this.assert(I(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});x.addProperty("undefined",function(){this.assert(I(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});x.addProperty("NaN",function(){this.assert(Ja(I(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Wc(){var e=I(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}$(Wc,"assertExist");x.addProperty("exist",Wc);x.addProperty("exists",Wc);x.addProperty("empty",function(){var e=I(this,"object"),t=I(this,"ssfi"),r=I(this,"message"),n;switch(r=r?r+": ":"",_e(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new he(r+".empty was passed a weak collection",void 0,t);case"function":var o=r+".empty was passed a function "+wi(e);throw new he(o.trim(),void 0,t);default:if(e!==Object(e))throw new he(r+".empty was passed non-string primitive "+pe(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function Kc(){var e=I(this,"object"),t=_e(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}$(Kc,"checkArguments");x.addProperty("arguments",Kc);x.addProperty("Arguments",Kc);function Ci(e,t){t&&I(this,"message",t);var r=I(this,"object");if(I(this,"deep")){var n=I(this,"lockSsfi");I(this,"lockSsfi",!0),this.eql(e),I(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}$(Ci,"assertEqual");x.addMethod("equal",Ci);x.addMethod("equals",Ci);x.addMethod("eq",Ci);function Xc(e,t){t&&I(this,"message",t);var r=I(this,"eql");this.assert(r(e,I(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}$(Xc,"assertEql");x.addMethod("eql",Xc);x.addMethod("eqls",Xc);function Si(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"doLength"),o=I(this,"message"),a=o?o+": ":"",i=I(this,"ssfi"),s=_e(r).toLowerCase(),l=_e(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new x(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")throw new he(a+"the argument to above must be a date",void 0,i);if(!Ve(e)&&(n||Ve(r)))throw new he(a+"the argument to above must be a number",void 0,i);if(!n&&s!=="date"&&!Ve(r)){var c=s==="string"?"'"+r+"'":r;throw new he(a+"expected "+c+" to be a number or a date",void 0,i)}if(n){var u="length",d;s==="map"||s==="set"?(u="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}$(Si,"assertAbove");x.addMethod("above",Si);x.addMethod("gt",Si);x.addMethod("greaterThan",Si);function Ai(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"doLength"),o=I(this,"message"),a=o?o+": ":"",i=I(this,"ssfi"),s=_e(r).toLowerCase(),l=_e(e).toLowerCase(),c,u=!0;if(n&&s!=="map"&&s!=="set"&&new x(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")c=a+"the argument to least must be a date";else if(!Ve(e)&&(n||Ve(r)))c=a+"the argument to least must be a number";else if(!n&&s!=="date"&&!Ve(r)){var d=s==="string"?"'"+r+"'":r;c=a+"expected "+d+" to be a number or a date"}else u=!1;if(u)throw new he(c,void 0,i);if(n){var m="length",p;s==="map"||s==="set"?(m="size",p=r.size):p=r.length,this.assert(p>=e,"expected #{this} to have a "+m+" at least #{exp} but got #{act}","expected #{this} to have a "+m+" below #{exp}",e,p)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}$(Ai,"assertLeast");x.addMethod("least",Ai);x.addMethod("gte",Ai);x.addMethod("greaterThanOrEqual",Ai);function Ti(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"doLength"),o=I(this,"message"),a=o?o+": ":"",i=I(this,"ssfi"),s=_e(r).toLowerCase(),l=_e(e).toLowerCase(),c,u=!0;if(n&&s!=="map"&&s!=="set"&&new x(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")c=a+"the argument to below must be a date";else if(!Ve(e)&&(n||Ve(r)))c=a+"the argument to below must be a number";else if(!n&&s!=="date"&&!Ve(r)){var d=s==="string"?"'"+r+"'":r;c=a+"expected "+d+" to be a number or a date"}else u=!1;if(u)throw new he(c,void 0,i);if(n){var m="length",p;s==="map"||s==="set"?(m="size",p=r.size):p=r.length,this.assert(p<e,"expected #{this} to have a "+m+" below #{exp} but got #{act}","expected #{this} to not have a "+m+" below #{exp}",e,p)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}$(Ti,"assertBelow");x.addMethod("below",Ti);x.addMethod("lt",Ti);x.addMethod("lessThan",Ti);function Pi(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"doLength"),o=I(this,"message"),a=o?o+": ":"",i=I(this,"ssfi"),s=_e(r).toLowerCase(),l=_e(e).toLowerCase(),c,u=!0;if(n&&s!=="map"&&s!=="set"&&new x(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")c=a+"the argument to most must be a date";else if(!Ve(e)&&(n||Ve(r)))c=a+"the argument to most must be a number";else if(!n&&s!=="date"&&!Ve(r)){var d=s==="string"?"'"+r+"'":r;c=a+"expected "+d+" to be a number or a date"}else u=!1;if(u)throw new he(c,void 0,i);if(n){var m="length",p;s==="map"||s==="set"?(m="size",p=r.size):p=r.length,this.assert(p<=e,"expected #{this} to have a "+m+" at most #{exp} but got #{act}","expected #{this} to have a "+m+" above #{exp}",e,p)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}$(Pi,"assertMost");x.addMethod("most",Pi);x.addMethod("lte",Pi);x.addMethod("lessThanOrEqual",Pi);x.addMethod("within",function(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"doLength"),a=I(this,"message"),i=a?a+": ":"",s=I(this,"ssfi"),l=_e(n).toLowerCase(),c=_e(e).toLowerCase(),u=_e(t).toLowerCase(),d,m=!0,p=c==="date"&&u==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new x(n,a,s,!0).to.have.property("length"),!o&&l==="date"&&(c!=="date"||u!=="date"))d=i+"the arguments to within must be dates";else if((!Ve(e)||!Ve(t))&&(o||Ve(n)))d=i+"the arguments to within must be numbers";else if(!o&&l!=="date"&&!Ve(n)){var h=l==="string"?"'"+n+"'":n;d=i+"expected "+h+" to be a number or a date"}else m=!1;if(m)throw new he(d,void 0,s);if(o){var g="length",y;l==="map"||l==="set"?(g="size",y=n.size):y=n.length,this.assert(y>=e&&y<=t,"expected #{this} to have a "+g+" within "+p,"expected #{this} to not have a "+g+" within "+p)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+p,"expected #{this} to not be within "+p)});function Jc(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"ssfi"),o=I(this,"message");try{var a=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new he(o+"The instanceof assertion needs a constructor but "+_e(e)+" was given.",void 0,n)):s}var i=wi(e);i==null&&(i="an unnamed constructor"),this.assert(a,"expected #{this} to be an instance of "+i,"expected #{this} to not be an instance of "+i)}$(Jc,"assertInstanceOf");x.addMethod("instanceof",Jc);x.addMethod("instanceOf",Jc);function Qc(e,t,r){r&&I(this,"message",r);var n=I(this,"nested"),o=I(this,"own"),a=I(this,"message"),i=I(this,"object"),s=I(this,"ssfi"),l=typeof e;if(a=a?a+": ":"",n){if(l!=="string")throw new he(a+"the argument to property must be a string when using nested syntax",void 0,s)}else if(l!=="string"&&l!=="number"&&l!=="symbol")throw new he(a+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new he(a+'The "nested" and "own" flags cannot be combined.',void 0,s);if(i==null)throw new he(a+"Target cannot be null or undefined.",void 0,s);var c=I(this,"deep"),u=I(this,"negate"),d=n?Fc(i,e):null,m=n?d.value:i[e],p=c?I(this,"eql"):(y,b)=>y===b,h="";c&&(h+="deep "),o&&(h+="own "),n&&(h+="nested "),h+="property ";var g;o?g=Object.prototype.hasOwnProperty.call(i,e):n?g=d.exists:g=Ri(i,e),(!u||arguments.length===1)&&this.assert(g,"expected #{this} to have "+h+pe(e),"expected #{this} to not have "+h+pe(e)),arguments.length>1&&this.assert(g&&p(t,m),"expected #{this} to have "+h+pe(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+h+pe(e)+" of #{act}",t,m),I(this,"object",m)}$(Qc,"assertProperty");x.addMethod("property",Qc);function Zc(e,t,r){I(this,"own",!0),Qc.apply(this,arguments)}$(Zc,"assertOwnProperty");x.addMethod("ownProperty",Zc);x.addMethod("haveOwnProperty",Zc);function ed(e,t,r){typeof t=="string"&&(r=t,t=null),r&&I(this,"message",r);var n=I(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),a=I(this,"eql");o&&t?this.assert(a(t,o),"expected the own property descriptor for "+pe(e)+" on #{this} to match "+pe(t)+", got "+pe(o),"expected the own property descriptor for "+pe(e)+" on #{this} to not match "+pe(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+pe(e),"expected #{this} to not have an own property descriptor for "+pe(e)),I(this,"object",o)}$(ed,"assertOwnPropertyDescriptor");x.addMethod("ownPropertyDescriptor",ed);x.addMethod("haveOwnPropertyDescriptor",ed);function td(){I(this,"doLength",!0)}$(td,"assertLengthChain");function rd(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=_e(r).toLowerCase(),o=I(this,"message"),a=I(this,"ssfi"),i="length",s;switch(n){case"map":case"set":i="size",s=r.size;break;default:new x(r,o,a,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+i+" of #{exp} but got #{act}","expected #{this} to not have a "+i+" of #{act}",e,s)}$(rd,"assertLength");x.addChainableMethod("length",rd,td);x.addChainableMethod("lengthOf",rd,td);function nd(e,t){t&&I(this,"message",t);var r=I(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}$(nd,"assertMatch");x.addMethod("match",nd);x.addMethod("matches",nd);x.addMethod("string",function(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"message"),o=I(this,"ssfi");new x(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+pe(e),"expected #{this} to not contain "+pe(e))});function od(e){var t=I(this,"object"),r=_e(t),n=_e(e),o=I(this,"ssfi"),a=I(this,"deep"),i,s="",l,c=!0,u=I(this,"message");u=u?u+": ":"";var d=u+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")s=a?"deeply ":"",l=[],t.forEach(function(v,C){l.push(C)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(l=zc(t),n){case"Array":if(arguments.length>1)throw new he(d,void 0,o);break;case"Object":if(arguments.length>1)throw new he(d,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(v){return typeof v=="symbol"?v:String(v)})}if(!e.length)throw new he(u+"keys required",void 0,o);var m=e.length,p=I(this,"any"),h=I(this,"all"),g=e,y=a?I(this,"eql"):(v,C)=>v===C;if(!p&&!h&&(h=!0),p&&(c=g.some(function(v){return l.some(function(C){return y(v,C)})})),h&&(c=g.every(function(v){return l.some(function(C){return y(v,C)})}),I(this,"contains")||(c=c&&e.length==l.length)),m>1){e=e.map(function(v){return pe(v)});var b=e.pop();h&&(i=e.join(", ")+", and "+b),p&&(i=e.join(", ")+", or "+b)}else i=pe(e[0]);i=(m>1?"keys ":"key ")+i,i=(I(this,"contains")?"contain ":"have ")+i,this.assert(c,"expected #{this} to "+s+i,"expected #{this} to not "+s+i,g.slice(0).sort(Xa),l.sort(Xa),!0)}$(od,"assertKeys");x.addMethod("keys",od);x.addMethod("key",od);function Oi(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"ssfi"),a=I(this,"message"),i=I(this,"negate")||!1;new x(n,a,o,!0).is.a("function"),(Qa(e)||typeof e=="string")&&(t=e,e=null);let s,l=!1;try{n()}catch(v){l=!0,s=v}var c=e===void 0&&t===void 0,u=!!(e&&t),d=!1,m=!1;if(c||!c&&!i){var p="an error";e instanceof Error?p="#{exp}":e&&(p=pt.getConstructorName(e));let v=s;if(s instanceof Error)v=s.toString();else if(typeof s=="string")v=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{v=pt.getConstructorName(s)}catch{}this.assert(l,"expected #{this} to throw "+p,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),v)}if(e&&s){if(e instanceof Error){var h=pt.compatibleInstance(s,e);h===i&&(u&&i?d=!0:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!i?" but #{act} was thrown":""),e.toString(),s.toString()))}var g=pt.compatibleConstructor(s,e);g===i&&(u&&i?d=!0:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&pt.getConstructorName(e),s instanceof Error?s.toString():s&&pt.getConstructorName(s)))}if(s&&t!==void 0&&t!==null){var y="including";Qa(t)&&(y="matching");var b=pt.compatibleMessage(s,t);b===i&&(u&&i?m=!0:this.assert(i,"expected #{this} to throw error "+y+" #{exp} but got #{act}","expected #{this} to throw error not "+y+" #{exp}",t,pt.getMessage(s)))}d&&m&&this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&pt.getConstructorName(e),s instanceof Error?s.toString():s&&pt.getConstructorName(s)),I(this,"object",s)}$(Oi,"assertThrows");x.addMethod("throw",Oi);x.addMethod("throws",Oi);x.addMethod("Throw",Oi);function ad(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+pe(e),"expected #{this} to not respond to "+pe(e))}$(ad,"respondTo");x.addMethod("respondTo",ad);x.addMethod("respondsTo",ad);x.addProperty("itself",function(){I(this,"itself",!0)});function id(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+Hr(e),"expected #{this} to not satisfy"+Hr(e),!I(this,"negate"),n)}$(id,"satisfy");x.addMethod("satisfy",id);x.addMethod("satisfies",id);function sd(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"message"),a=I(this,"ssfi");new x(n,o,a,!0).is.numeric;let i="A `delta` value is required for `closeTo`";if(t==null)throw new he(o?`${o}: ${i}`:i,void 0,a);if(new x(t,o,a,!0).is.numeric,i="A `expected` value is required for `closeTo`",e==null)throw new he(o?`${o}: ${i}`:i,void 0,a);new x(e,o,a,!0).is.numeric;let s=$(c=>c<0n?-c:c,"abs"),l=$(c=>parseFloat(parseFloat(c).toPrecision(12)),"strip");this.assert(l(s(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}$(sd,"closeTo");x.addMethod("closeTo",sd);x.addMethod("approximately",sd);function Kv(e,t,r,n,o){let a=Array.from(t),i=Array.from(e);if(!n){if(i.length!==a.length)return!1;a=a.slice()}return i.every(function(s,l){if(o)return r?r(s,a[l]):s===a[l];if(!r){var c=a.indexOf(s);return c===-1?!1:(n||a.splice(c,1),!0)}return a.some(function(u,d){return r(s,u)?(n||a.splice(d,1),!0):!1})})}$(Kv,"isSubsetOf");x.addMethod("members",function(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"message"),o=I(this,"ssfi");new x(r,n,o,!0).to.be.iterable,new x(e,n,o,!0).to.be.iterable;var a=I(this,"contains"),i=I(this,"ordered"),s,l,c;a?(s=i?"an ordered superset":"a superset",l="expected #{this} to be "+s+" of #{exp}",c="expected #{this} to not be "+s+" of #{exp}"):(s=i?"ordered members":"members",l="expected #{this} to have the same "+s+" as #{exp}",c="expected #{this} to not have the same "+s+" as #{exp}");var u=I(this,"deep")?I(this,"eql"):void 0;this.assert(Kv(e,r,u,a,i),l,c,e,r,!0)});x.addProperty("iterable",function(e){e&&I(this,"message",e);var t=I(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Xv(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"message"),o=I(this,"ssfi"),a=I(this,"contains"),i=I(this,"deep"),s=I(this,"eql");new x(e,n,o,!0).to.be.an("array"),a?this.assert(e.some(function(l){return r.indexOf(l)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):i?this.assert(e.some(function(l){return s(r,l)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}$(Xv,"oneOf");x.addMethod("oneOf",Xv);function ld(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"message"),a=I(this,"ssfi");new x(n,o,a,!0).is.a("function");var i;t?(new x(e,o,a,!0).to.have.property(t),i=e[t]):(new x(e,o,a,!0).is.a("function"),i=e()),n();var s=t==null?e():e[t],l=t==null?i:"."+t;I(this,"deltaMsgObj",l),I(this,"initialDeltaValue",i),I(this,"finalDeltaValue",s),I(this,"deltaBehavior","change"),I(this,"realDelta",s!==i),this.assert(i!==s,"expected "+l+" to change","expected "+l+" to not change")}$(ld,"assertChanges");x.addMethod("change",ld);x.addMethod("changes",ld);function ud(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"message"),a=I(this,"ssfi");new x(n,o,a,!0).is.a("function");var i;t?(new x(e,o,a,!0).to.have.property(t),i=e[t]):(new x(e,o,a,!0).is.a("function"),i=e()),new x(i,o,a,!0).is.a("number"),n();var s=t==null?e():e[t],l=t==null?i:"."+t;I(this,"deltaMsgObj",l),I(this,"initialDeltaValue",i),I(this,"finalDeltaValue",s),I(this,"deltaBehavior","increase"),I(this,"realDelta",s-i),this.assert(s-i>0,"expected "+l+" to increase","expected "+l+" to not increase")}$(ud,"assertIncreases");x.addMethod("increase",ud);x.addMethod("increases",ud);function cd(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"message"),a=I(this,"ssfi");new x(n,o,a,!0).is.a("function");var i;t?(new x(e,o,a,!0).to.have.property(t),i=e[t]):(new x(e,o,a,!0).is.a("function"),i=e()),new x(i,o,a,!0).is.a("number"),n();var s=t==null?e():e[t],l=t==null?i:"."+t;I(this,"deltaMsgObj",l),I(this,"initialDeltaValue",i),I(this,"finalDeltaValue",s),I(this,"deltaBehavior","decrease"),I(this,"realDelta",i-s),this.assert(s-i<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}$(cd,"assertDecreases");x.addMethod("decrease",cd);x.addMethod("decreases",cd);function Jv(e,t){t&&I(this,"message",t);var r=I(this,"deltaMsgObj"),n=I(this,"initialDeltaValue"),o=I(this,"finalDeltaValue"),a=I(this,"deltaBehavior"),i=I(this,"realDelta"),s;a==="change"?s=Math.abs(o-n)===Math.abs(e):s=i===Math.abs(e),this.assert(s,"expected "+r+" to "+a+" by "+e,"expected "+r+" to not "+a+" by "+e)}$(Jv,"assertDelta");x.addMethod("by",Jv);x.addProperty("extensible",function(){var e=I(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});x.addProperty("sealed",function(){var e=I(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});x.addProperty("frozen",function(){var e=I(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});x.addProperty("finite",function(e){var t=I(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function Za(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return Za(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){var n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?Za(n,o):typeof n=="function"?n(o):o===n}):!1}$(Za,"compareSubset");x.addMethod("containSubset",function(e){let t=ae(this,"object"),r=it.showDiff;this.assert(Za(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Vr(e,t){return new x(e,t)}$(Vr,"expect");Vr.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new he(r,{actual:e,expected:t,operator:n},Vr.fail)};var Qv={};qc(Qv,{Should:()=>oF,should:()=>nF});function dd(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new x(this.valueOf(),null,e):new x(this,null,e)}$(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}$(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});var r={};return r.fail=function(n,o,a,i){throw arguments.length<2&&(a=n,n=void 0),a=a||"should.fail()",new he(a,{actual:n,expected:o,operator:i},r.fail)},r.equal=function(n,o,a){new x(n,a).to.equal(o)},r.Throw=function(n,o,a,i){new x(n,i).to.Throw(o,a)},r.exist=function(n,o){new x(n,o).to.exist},r.not={},r.not.equal=function(n,o,a){new x(n,a).to.not.equal(o)},r.not.Throw=function(n,o,a,i){new x(n,i).to.not.Throw(o,a)},r.not.exist=function(n,o){new x(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}$(dd,"loadShould");var nF=dd,oF=dd;function q(e,t){var r=new x(null,null,q,!0);r.assert(e,t,"[ negation message unavailable ]")}$(q,"assert");q.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new he(r,{actual:e,expected:t,operator:n},q.fail)};q.isOk=function(e,t){new x(e,t,q.isOk,!0).is.ok};q.isNotOk=function(e,t){new x(e,t,q.isNotOk,!0).is.not.ok};q.equal=function(e,t,r){var n=new x(e,r,q.equal,!0);n.assert(t==ae(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};q.notEqual=function(e,t,r){var n=new x(e,r,q.notEqual,!0);n.assert(t!=ae(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};q.strictEqual=function(e,t,r){new x(e,r,q.strictEqual,!0).to.equal(t)};q.notStrictEqual=function(e,t,r){new x(e,r,q.notStrictEqual,!0).to.not.equal(t)};q.deepEqual=q.deepStrictEqual=function(e,t,r){new x(e,r,q.deepEqual,!0).to.eql(t)};q.notDeepEqual=function(e,t,r){new x(e,r,q.notDeepEqual,!0).to.not.eql(t)};q.isAbove=function(e,t,r){new x(e,r,q.isAbove,!0).to.be.above(t)};q.isAtLeast=function(e,t,r){new x(e,r,q.isAtLeast,!0).to.be.least(t)};q.isBelow=function(e,t,r){new x(e,r,q.isBelow,!0).to.be.below(t)};q.isAtMost=function(e,t,r){new x(e,r,q.isAtMost,!0).to.be.most(t)};q.isTrue=function(e,t){new x(e,t,q.isTrue,!0).is.true};q.isNotTrue=function(e,t){new x(e,t,q.isNotTrue,!0).to.not.equal(!0)};q.isFalse=function(e,t){new x(e,t,q.isFalse,!0).is.false};q.isNotFalse=function(e,t){new x(e,t,q.isNotFalse,!0).to.not.equal(!1)};q.isNull=function(e,t){new x(e,t,q.isNull,!0).to.equal(null)};q.isNotNull=function(e,t){new x(e,t,q.isNotNull,!0).to.not.equal(null)};q.isNaN=function(e,t){new x(e,t,q.isNaN,!0).to.be.NaN};q.isNotNaN=function(e,t){new x(e,t,q.isNotNaN,!0).not.to.be.NaN};q.exists=function(e,t){new x(e,t,q.exists,!0).to.exist};q.notExists=function(e,t){new x(e,t,q.notExists,!0).to.not.exist};q.isUndefined=function(e,t){new x(e,t,q.isUndefined,!0).to.equal(void 0)};q.isDefined=function(e,t){new x(e,t,q.isDefined,!0).to.not.equal(void 0)};q.isCallable=function(e,t){new x(e,t,q.isCallable,!0).is.callable};q.isNotCallable=function(e,t){new x(e,t,q.isNotCallable,!0).is.not.callable};q.isObject=function(e,t){new x(e,t,q.isObject,!0).to.be.a("object")};q.isNotObject=function(e,t){new x(e,t,q.isNotObject,!0).to.not.be.a("object")};q.isArray=function(e,t){new x(e,t,q.isArray,!0).to.be.an("array")};q.isNotArray=function(e,t){new x(e,t,q.isNotArray,!0).to.not.be.an("array")};q.isString=function(e,t){new x(e,t,q.isString,!0).to.be.a("string")};q.isNotString=function(e,t){new x(e,t,q.isNotString,!0).to.not.be.a("string")};q.isNumber=function(e,t){new x(e,t,q.isNumber,!0).to.be.a("number")};q.isNotNumber=function(e,t){new x(e,t,q.isNotNumber,!0).to.not.be.a("number")};q.isNumeric=function(e,t){new x(e,t,q.isNumeric,!0).is.numeric};q.isNotNumeric=function(e,t){new x(e,t,q.isNotNumeric,!0).is.not.numeric};q.isFinite=function(e,t){new x(e,t,q.isFinite,!0).to.be.finite};q.isBoolean=function(e,t){new x(e,t,q.isBoolean,!0).to.be.a("boolean")};q.isNotBoolean=function(e,t){new x(e,t,q.isNotBoolean,!0).to.not.be.a("boolean")};q.typeOf=function(e,t,r){new x(e,r,q.typeOf,!0).to.be.a(t)};q.notTypeOf=function(e,t,r){new x(e,r,q.notTypeOf,!0).to.not.be.a(t)};q.instanceOf=function(e,t,r){new x(e,r,q.instanceOf,!0).to.be.instanceOf(t)};q.notInstanceOf=function(e,t,r){new x(e,r,q.notInstanceOf,!0).to.not.be.instanceOf(t)};q.include=function(e,t,r){new x(e,r,q.include,!0).include(t)};q.notInclude=function(e,t,r){new x(e,r,q.notInclude,!0).not.include(t)};q.deepInclude=function(e,t,r){new x(e,r,q.deepInclude,!0).deep.include(t)};q.notDeepInclude=function(e,t,r){new x(e,r,q.notDeepInclude,!0).not.deep.include(t)};q.nestedInclude=function(e,t,r){new x(e,r,q.nestedInclude,!0).nested.include(t)};q.notNestedInclude=function(e,t,r){new x(e,r,q.notNestedInclude,!0).not.nested.include(t)};q.deepNestedInclude=function(e,t,r){new x(e,r,q.deepNestedInclude,!0).deep.nested.include(t)};q.notDeepNestedInclude=function(e,t,r){new x(e,r,q.notDeepNestedInclude,!0).not.deep.nested.include(t)};q.ownInclude=function(e,t,r){new x(e,r,q.ownInclude,!0).own.include(t)};q.notOwnInclude=function(e,t,r){new x(e,r,q.notOwnInclude,!0).not.own.include(t)};q.deepOwnInclude=function(e,t,r){new x(e,r,q.deepOwnInclude,!0).deep.own.include(t)};q.notDeepOwnInclude=function(e,t,r){new x(e,r,q.notDeepOwnInclude,!0).not.deep.own.include(t)};q.match=function(e,t,r){new x(e,r,q.match,!0).to.match(t)};q.notMatch=function(e,t,r){new x(e,r,q.notMatch,!0).to.not.match(t)};q.property=function(e,t,r){new x(e,r,q.property,!0).to.have.property(t)};q.notProperty=function(e,t,r){new x(e,r,q.notProperty,!0).to.not.have.property(t)};q.propertyVal=function(e,t,r,n){new x(e,n,q.propertyVal,!0).to.have.property(t,r)};q.notPropertyVal=function(e,t,r,n){new x(e,n,q.notPropertyVal,!0).to.not.have.property(t,r)};q.deepPropertyVal=function(e,t,r,n){new x(e,n,q.deepPropertyVal,!0).to.have.deep.property(t,r)};q.notDeepPropertyVal=function(e,t,r,n){new x(e,n,q.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};q.ownProperty=function(e,t,r){new x(e,r,q.ownProperty,!0).to.have.own.property(t)};q.notOwnProperty=function(e,t,r){new x(e,r,q.notOwnProperty,!0).to.not.have.own.property(t)};q.ownPropertyVal=function(e,t,r,n){new x(e,n,q.ownPropertyVal,!0).to.have.own.property(t,r)};q.notOwnPropertyVal=function(e,t,r,n){new x(e,n,q.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};q.deepOwnPropertyVal=function(e,t,r,n){new x(e,n,q.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};q.notDeepOwnPropertyVal=function(e,t,r,n){new x(e,n,q.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};q.nestedProperty=function(e,t,r){new x(e,r,q.nestedProperty,!0).to.have.nested.property(t)};q.notNestedProperty=function(e,t,r){new x(e,r,q.notNestedProperty,!0).to.not.have.nested.property(t)};q.nestedPropertyVal=function(e,t,r,n){new x(e,n,q.nestedPropertyVal,!0).to.have.nested.property(t,r)};q.notNestedPropertyVal=function(e,t,r,n){new x(e,n,q.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};q.deepNestedPropertyVal=function(e,t,r,n){new x(e,n,q.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};q.notDeepNestedPropertyVal=function(e,t,r,n){new x(e,n,q.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};q.lengthOf=function(e,t,r){new x(e,r,q.lengthOf,!0).to.have.lengthOf(t)};q.hasAnyKeys=function(e,t,r){new x(e,r,q.hasAnyKeys,!0).to.have.any.keys(t)};q.hasAllKeys=function(e,t,r){new x(e,r,q.hasAllKeys,!0).to.have.all.keys(t)};q.containsAllKeys=function(e,t,r){new x(e,r,q.containsAllKeys,!0).to.contain.all.keys(t)};q.doesNotHaveAnyKeys=function(e,t,r){new x(e,r,q.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};q.doesNotHaveAllKeys=function(e,t,r){new x(e,r,q.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};q.hasAnyDeepKeys=function(e,t,r){new x(e,r,q.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};q.hasAllDeepKeys=function(e,t,r){new x(e,r,q.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};q.containsAllDeepKeys=function(e,t,r){new x(e,r,q.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};q.doesNotHaveAnyDeepKeys=function(e,t,r){new x(e,r,q.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};q.doesNotHaveAllDeepKeys=function(e,t,r){new x(e,r,q.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};q.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);var o=new x(e,n,q.throws,!0).to.throw(t,r);return ae(o,"object")};q.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new x(e,n,q.doesNotThrow,!0).to.not.throw(t,r)};q.operator=function(e,t,r,n){var o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new he(n+'Invalid operator "'+t+'"',void 0,q.operator)}var a=new x(o,n,q.operator,!0);a.assert(ae(a,"object")===!0,"expected "+pe(e)+" to be "+t+" "+pe(r),"expected "+pe(e)+" to not be "+t+" "+pe(r))};q.closeTo=function(e,t,r,n){new x(e,n,q.closeTo,!0).to.be.closeTo(t,r)};q.approximately=function(e,t,r,n){new x(e,n,q.approximately,!0).to.be.approximately(t,r)};q.sameMembers=function(e,t,r){new x(e,r,q.sameMembers,!0).to.have.same.members(t)};q.notSameMembers=function(e,t,r){new x(e,r,q.notSameMembers,!0).to.not.have.same.members(t)};q.sameDeepMembers=function(e,t,r){new x(e,r,q.sameDeepMembers,!0).to.have.same.deep.members(t)};q.notSameDeepMembers=function(e,t,r){new x(e,r,q.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};q.sameOrderedMembers=function(e,t,r){new x(e,r,q.sameOrderedMembers,!0).to.have.same.ordered.members(t)};q.notSameOrderedMembers=function(e,t,r){new x(e,r,q.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};q.sameDeepOrderedMembers=function(e,t,r){new x(e,r,q.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};q.notSameDeepOrderedMembers=function(e,t,r){new x(e,r,q.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};q.includeMembers=function(e,t,r){new x(e,r,q.includeMembers,!0).to.include.members(t)};q.notIncludeMembers=function(e,t,r){new x(e,r,q.notIncludeMembers,!0).to.not.include.members(t)};q.includeDeepMembers=function(e,t,r){new x(e,r,q.includeDeepMembers,!0).to.include.deep.members(t)};q.notIncludeDeepMembers=function(e,t,r){new x(e,r,q.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};q.includeOrderedMembers=function(e,t,r){new x(e,r,q.includeOrderedMembers,!0).to.include.ordered.members(t)};q.notIncludeOrderedMembers=function(e,t,r){new x(e,r,q.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};q.includeDeepOrderedMembers=function(e,t,r){new x(e,r,q.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};q.notIncludeDeepOrderedMembers=function(e,t,r){new x(e,r,q.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};q.oneOf=function(e,t,r){new x(e,r,q.oneOf,!0).to.be.oneOf(t)};q.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${pe(e)} to be an iterable`:`expected ${pe(e)} to be an iterable`,new he(t,void 0,q.isIterable)};q.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.changes,!0).to.change(t,r)};q.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.changesBy,!0).to.change(t,r).by(n)};q.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.doesNotChange,!0).to.not.change(t,r)};q.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.changesButNotBy,!0).to.change(t,r).but.not.by(n)};q.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.increases,!0).to.increase(t,r)};q.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.increasesBy,!0).to.increase(t,r).by(n)};q.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.doesNotIncrease,!0).to.not.increase(t,r)};q.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};q.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.decreases,!0).to.decrease(t,r)};q.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.decreasesBy,!0).to.decrease(t,r).by(n)};q.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.doesNotDecrease,!0).to.not.decrease(t,r)};q.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);return new x(e,o,q.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};q.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};q.ifError=function(e){if(e)throw e};q.isExtensible=function(e,t){new x(e,t,q.isExtensible,!0).to.be.extensible};q.isNotExtensible=function(e,t){new x(e,t,q.isNotExtensible,!0).to.not.be.extensible};q.isSealed=function(e,t){new x(e,t,q.isSealed,!0).to.be.sealed};q.isNotSealed=function(e,t){new x(e,t,q.isNotSealed,!0).to.not.be.sealed};q.isFrozen=function(e,t){new x(e,t,q.isFrozen,!0).to.be.frozen};q.isNotFrozen=function(e,t){new x(e,t,q.isNotFrozen,!0).to.not.be.frozen};q.isEmpty=function(e,t){new x(e,t,q.isEmpty,!0).to.be.empty};q.isNotEmpty=function(e,t){new x(e,t,q.isNotEmpty,!0).to.not.be.empty};q.containsSubset=function(e,t,r){new x(e,r).to.containSubset(t)};q.doesNotContainSubset=function(e,t,r){new x(e,r).to.not.containSubset(t)};var aF=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of aF)q[t]=q[e];var Ky=[];function Tn(e){let t={use:Tn,AssertionError:he,util:Ft,config:it,expect:Vr,assert:q,Assertion:x,...Qv};return~Ky.indexOf(e)||(e(t,Ft),Ky.push(e)),t}$(Tn,"use");var Zv={};wc(Zv,{toBeChecked:()=>$0,toBeDisabled:()=>N0,toBeEmpty:()=>g0,toBeEmptyDOMElement:()=>v0,toBeEnabled:()=>j0,toBeInTheDOM:()=>$u,toBeInTheDocument:()=>b0,toBeInvalid:()=>F0,toBePartiallyChecked:()=>H0,toBeRequired:()=>I0,toBeValid:()=>L0,toBeVisible:()=>P0,toContainElement:()=>Uu,toContainHTML:()=>E0,toHaveAccessibleDescription:()=>Hu,toHaveAccessibleErrorMessage:()=>R0,toHaveAccessibleName:()=>zu,toHaveAttribute:()=>w0,toHaveClass:()=>C0,toHaveDescription:()=>V0,toHaveDisplayValue:()=>k0,toHaveErrorMessage:()=>z0,toHaveFocus:()=>S0,toHaveFormValues:()=>A0,toHaveRole:()=>Vu,toHaveStyle:()=>Gu,toHaveTextContent:()=>_0,toHaveValue:()=>B0});var Xy=mt(Wg(),1);function e0(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function pd(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var t0={};e0(t0);pd(t0,"default",()=>r0);var r0=class extends Error{constructor(e,t,r,n,o){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=o}},n0={};e0(n0);pd(n0,"default",()=>o0);var o0=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},iF={};pd(iF,"CssTypes",()=>Ie);var Ie;(function(e){e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports"})(Ie||(Ie={}));var su=/\/\*[^]*?(?:\*\/|$)/g,sF=(e,t)=>{t=t||{};let r=1,n=1;function o(H){let U=H.match(/\n/g);U&&(r+=U.length);let z=H.lastIndexOf(`
|
|
306
|
-
`);n=~z?H.length-z:n+H.length}function a(){let H={line:r,column:n};return function(U){return U.position=new o0(H,{line:r,column:n},t?.source||""),p(),U}}let i=[];function s(H){let U=new r0(t?.source||"",H,r,n,e);if(t?.silent)i.push(U);else throw U}function l(){let H=d();return{type:Ie.stylesheet,stylesheet:{source:t?.source,rules:H,parsingErrors:i}}}function c(){return m(/^{\s*/)}function u(){return m(/^}/)}function d(){let H,U=[];for(p(),h(U);e.length&&e.charAt(0)!=="}"&&(H=re()||te());)H&&(U.push(H),h(U));return U}function m(H){let U=H.exec(e);if(!U)return;let z=U[0];return o(z),e=e.slice(z.length),U}function p(){m(/^\s*/)}function h(H){let U;for(H=H||[];U=g();)U&&H.push(U);return H}function g(){let H=a();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let U=m(/^\/\*[^]*?\*\//);return U?H({type:Ie.comment,comment:U[0].slice(2,-2)}):s("End of comment missing")}function y(H,U,z){let K=U+1,W=!1,ee=H.indexOf(")",K);for(;!W&&ee!==-1;){let se=H.indexOf("(",K);se!==-1&&se<ee?(K=y(H,se+1)+1,ee=H.indexOf(")",K)):W=!0}return W&&ee!==-1?ee:-1}function b(){let H=m(/^([^{]+)/);if(!H)return;let U=gt(H[0]).replace(su,"");if(U.indexOf(",")===-1)return[U];let z=0,K=U.indexOf("(",z);for(;K!==-1;){let W=y(U,K);if(W===-1)break;z=W+1,U=U.substring(0,K)+U.substring(K,W).replace(/,/g,"\u200C")+U.substring(W),K=U.indexOf("(",z)}return U=U.replace(/("|')(?:\\\1|.)*?\1/g,W=>W.replace(/,/g,"\u200C")),U.split(",").map(W=>gt(W.replace(/\u200C/g,",")))}function v(){let H=a(),U=m(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!U)return;let z=gt(U[0]);if(!m(/^:\s*/))return s("property missing ':'");let K=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),W=H({type:Ie.declaration,property:z.replace(su,""),value:K?gt(K[0]).replace(su,""):""});return m(/^[;\s]*/),W}function C(){let H=[];if(!c())return s("missing '{'");h(H);let U;for(;U=v();)U&&(H.push(U),h(H));return u()?H:s("missing '}'")}function S(){let H,U=[],z=a();for(;H=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)U.push(H[1]),m(/^,\s*/);if(U.length)return z({type:Ie.keyframe,values:U,declarations:C()||[]})}function A(){let H=a(),U=m(/^@([-\w]+)?keyframes\s*/);if(!U)return;let z=U[1],K=m(/^([-\w]+)\s*/);if(!K)return s("@keyframes missing name");let W=K[1];if(!c())return s("@keyframes missing '{'");let ee,se=h();for(;ee=S();)se.push(ee),se=se.concat(h());return u()?H({type:Ie.keyframes,name:W,vendor:z,keyframes:se}):s("@keyframes missing '}'")}function _(){let H=a(),U=m(/^@supports *([^{]+)/);if(!U)return;let z=gt(U[1]);if(!c())return s("@supports missing '{'");let K=h().concat(d());return u()?H({type:Ie.supports,supports:z,rules:K}):s("@supports missing '}'")}function E(){let H=a();if(!m(/^@host\s*/))return;if(!c())return s("@host missing '{'");let U=h().concat(d());return u()?H({type:Ie.host,rules:U}):s("@host missing '}'")}function R(){let H=a(),U=m(/^@container *([^{]+)/);if(!U)return;let z=gt(U[1]);if(!c())return s("@container missing '{'");let K=h().concat(d());return u()?H({type:Ie.container,container:z,rules:K}):s("@container missing '}'")}function P(){let H=a(),U=m(/^@layer *([^{;@]+)/);if(!U)return;let z=gt(U[1]);if(!c())return m(/^[;\s]*/),H({type:Ie.layer,layer:z});let K=h().concat(d());return u()?H({type:Ie.layer,layer:z,rules:K}):s("@layer missing '}'")}function N(){let H=a(),U=m(/^@media *([^{]+)/);if(!U)return;let z=gt(U[1]);if(!c())return s("@media missing '{'");let K=h().concat(d());return u()?H({type:Ie.media,media:z,rules:K}):s("@media missing '}'")}function B(){let H=a(),U=m(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(U)return H({type:Ie.customMedia,name:gt(U[1]),media:gt(U[2])})}function j(){let H=a();if(!m(/^@page */))return;let U=b()||[];if(!c())return s("@page missing '{'");let z=h(),K;for(;K=v();)z.push(K),z=z.concat(h());return u()?H({type:Ie.page,selectors:U,declarations:z}):s("@page missing '}'")}function F(){let H=a(),U=m(/^@([-\w]+)?document *([^{]+)/);if(!U)return;let z=gt(U[1]),K=gt(U[2]);if(!c())return s("@document missing '{'");let W=h().concat(d());return u()?H({type:Ie.document,document:K,vendor:z,rules:W}):s("@document missing '}'")}function T(){let H=a();if(!m(/^@font-face\s*/))return;if(!c())return s("@font-face missing '{'");let U=h(),z;for(;z=v();)U.push(z),U=U.concat(h());return u()?H({type:Ie.fontFace,declarations:U}):s("@font-face missing '}'")}function M(){let H=a();if(!m(/^@starting-style\s*/))return;if(!c())return s("@starting-style missing '{'");let U=h().concat(d());return u()?H({type:Ie.startingStyle,rules:U}):s("@starting-style missing '}'")}let D=J("import"),Y=J("charset"),G=J("namespace");function J(H){let U=new RegExp("^@"+H+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let z=a(),K=m(U);if(!K)return;let W={type:H};return W[H]=K[1].trim(),z(W)}}function re(){if(e[0]==="@")return A()||N()||B()||_()||D()||Y()||G()||F()||j()||E()||T()||R()||M()||P()}function te(){let H=a(),U=b();return U?(h(),H({type:Ie.rule,selectors:U,declarations:C()||[]})):s("selector missing")}return Bu(l())};function gt(e){return e?e.trim():""}function Bu(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let o in e){let a=e[o];Array.isArray(a)?a.forEach(i=>{Bu(i,n)}):a&&typeof a=="object"&&Bu(a,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var lF=sF,uF=lF,cF=Object.prototype.toString;function Jy(e){return typeof e=="function"||cF.call(e)==="[object Function]"}function dF(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var pF=Math.pow(2,53)-1;function fF(e){var t=dF(e);return Math.min(Math.max(t,0),pF)}function Pt(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!Jy(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=fF(n.length),a=Jy(r)?Object(new r(o)):new Array(o),i=0,s;i<o;)s=n[i],t?a[i]=t(s,i):a[i]=s,i+=1;return a.length=o,a}function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function mF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a0(n.key),n)}}function hF(e,t,r){return t&&Qy(e.prototype,t),r&&Qy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yF(e,t,r){return t=a0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a0(e){var t=bF(e,"string");return Co(t)==="symbol"?t:String(t)}function bF(e,t){if(Co(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gF=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];mF(this,e),yF(this,"items",void 0),this.items=t}return hF(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),vF=typeof Set>"u"?Set:gF;function rt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var EF={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},_F={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function RF(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=_F[t])!==null&&n!==void 0&&n.has(r))})}function i0(e,t){return RF(e,t)}function wF(e){var t=SF(e);if(t===null||ku.indexOf(t)!==-1){var r=CF(e);if(ku.indexOf(t||"")===-1||i0(e,r||""))return r}return t}function CF(e){var t=EF[rt(e)];if(t!==void 0)return t;switch(rt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!i0(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function SF(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var ku=["presentation","none"];function Ce(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function s0(e){return Ce(e)&&rt(e)==="caption"}function Ba(e){return Ce(e)&&rt(e)==="input"}function AF(e){return Ce(e)&&rt(e)==="optgroup"}function TF(e){return Ce(e)&&rt(e)==="select"}function PF(e){return Ce(e)&&rt(e)==="table"}function OF(e){return Ce(e)&&rt(e)==="textarea"}function qF(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function xF(e){return Ce(e)&&rt(e)==="fieldset"}function MF(e){return Ce(e)&&rt(e)==="legend"}function NF(e){return Ce(e)&&rt(e)==="slot"}function jF(e){return Ce(e)&&e.ownerSVGElement!==void 0}function IF(e){return Ce(e)&&rt(e)==="svg"}function DF(e){return jF(e)&&rt(e)==="title"}function ei(e,t){if(Ce(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function Jt(e,t){return Ce(e)?t.indexOf(wF(e))!==-1:!1}function FF(e){return e.trim().replace(/\s\s+/g," ")}function LF(e,t){if(!Ce(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function BF(e){return Jt(e,["button","combobox","listbox","textbox"])||l0(e,"range")}function l0(e,t){if(!Ce(e))return!1;switch(t){case"range":return Jt(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Zy(e,t){var r=Pt(e.querySelectorAll(t));return ei(e,"aria-owns").forEach(function(n){r.push.apply(r,Pt(n.querySelectorAll(t)))}),r}function kF(e){return TF(e)?e.selectedOptions||Zy(e,"[selected]"):Zy(e,'[aria-selected="true"]')}function $F(e){return Jt(e,ku)}function UF(e){return s0(e)}function HF(e){return Jt(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function VF(e){return!1}function zF(e){return Ba(e)||OF(e)?e.value:e.textContent||""}function eb(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function u0(e){var t=rt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function c0(e){if(u0(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Ce(r)){var n=c0(r);n!==null&&(t=n)}}),t}function GF(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):c0(e)}function YF(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Pt(t);if(!u0(e))return null;var r=e.ownerDocument;return Pt(r.querySelectorAll("label")).filter(function(n){return GF(n)===e})}function WF(e){var t=e.assignedNodes();return t.length===0?Pt(e.childNodes):t}function d0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new vF,n=qF(e),o=t.compute,a=o===void 0?"name":o,i=t.computedStyleSupportsPseudoElements,s=i===void 0?t.getComputedStyle!==void 0:i,l=t.getComputedStyle,c=l===void 0?n.getComputedStyle.bind(n):l,u=t.hidden,d=u===void 0?!1:u;function m(b,v){var C="";if(Ce(b)&&s){var S=c(b,"::before"),A=eb(S);C="".concat(A," ").concat(C)}var _=NF(b)?WF(b):Pt(b.childNodes).concat(ei(b,"aria-owns"));if(_.forEach(function(P){var N=y(P,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),B=Ce(P)?c(P).getPropertyValue("display"):"inline",j=B!=="inline"?" ":"";C+="".concat(j).concat(N).concat(j)}),Ce(b)&&s){var E=c(b,"::after"),R=eb(E);C="".concat(C," ").concat(R)}return C.trim()}function p(b,v){var C=b.getAttributeNode(v);return C!==null&&!r.has(C)&&C.value.trim()!==""?(r.add(C),C.value):null}function h(b){return Ce(b)?p(b,"title"):null}function g(b){if(!Ce(b))return null;if(xF(b)){r.add(b);for(var v=Pt(b.childNodes),C=0;C<v.length;C+=1){var S=v[C];if(MF(S))return y(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(PF(b)){r.add(b);for(var A=Pt(b.childNodes),_=0;_<A.length;_+=1){var E=A[_];if(s0(E))return y(E,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(IF(b)){r.add(b);for(var R=Pt(b.childNodes),P=0;P<R.length;P+=1){var N=R[P];if(DF(N))return N.textContent}return null}else if(rt(b)==="img"||rt(b)==="area"){var B=p(b,"alt");if(B!==null)return B}else if(AF(b)){var j=p(b,"label");if(j!==null)return j}if(Ba(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var F=p(b,"value");if(F!==null)return F;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var T=YF(b);if(T!==null&&T.length!==0)return r.add(b),Pt(T).map(function(G){return y(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(Ba(b)&&b.type==="image"){var M=p(b,"alt");if(M!==null)return M;var D=p(b,"title");return D!==null?D:"Submit Query"}if(Jt(b,["button"])){var Y=m(b,{isEmbeddedInLabel:!1,isReferenced:!1});if(Y!=="")return Y}return null}function y(b,v){if(r.has(b))return"";if(!d&&LF(b,c)&&!v.isReferenced)return r.add(b),"";var C=Ce(b)?b.getAttributeNode("aria-labelledby"):null,S=C!==null&&!r.has(C)?ei(b,"aria-labelledby"):[];if(a==="name"&&!v.isReferenced&&S.length>0)return r.add(C),S.map(function(B){return y(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var A=v.recursion&&BF(b)&&a==="name";if(!A){var _=(Ce(b)&&b.getAttribute("aria-label")||"").trim();if(_!==""&&a==="name")return r.add(b),_;if(!$F(b)){var E=g(b);if(E!==null)return r.add(b),E}}if(Jt(b,["menu"]))return r.add(b),"";if(A||v.isEmbeddedInLabel||v.isReferenced){if(Jt(b,["combobox","listbox"])){r.add(b);var R=kF(b);return R.length===0?Ba(b)?b.value:"":Pt(R).map(function(B){return y(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(l0(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(Jt(b,["textbox"]))return r.add(b),zF(b)}if(HF(b)||Ce(b)&&v.isReferenced||UF(b)||VF()){var P=m(b,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});if(P!=="")return r.add(b),P}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(v.recursion)return r.add(b),m(b,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});var N=h(b);return N!==null?(r.add(b),N):(r.add(b),"")}return FF(y(e,{isEmbeddedInLabel:!1,isReferenced:a==="description",recursion:!1}))}function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function rb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tb(Object(r),!0).forEach(function(n){KF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KF(e,t,r){return t=XF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XF(e){var t=JF(e,"string");return So(t)==="symbol"?t:String(t)}function JF(e,t){if(So(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(So(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ei(e,"aria-describedby").map(function(a){return d0(a,rb(rb({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var o=e.getAttribute("title");r=o===null?"":o}return r}function ZF(e){return Jt(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function eL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ZF(e)?"":d0(e,t)}var fd=mt(Kg(),1),tL=mt(Jg(),1),p0=mt(lv(),1),rL=mt(uv(),1),f0=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let o="";try{o=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,o].join(`
|
|
307
|
-
`)}},
|
|
308
|
-
`)}};function aL(e,...t){let r=uF(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new oL({css:e,message:`Syntax error parsing expected css: ${n} on line: ${o}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:o,value:a})=>Object.assign(n,{[o]:a}),{})}function
|
|
304
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,F=!1,T;return{s:function(){P=P.call(E)},n:function(){var M=P.next();return j=M.done,M},e:function(M){F=!0,T=M},f:function(){try{!j&&P.return!=null&&P.return()}finally{if(F)throw T}}}}function c(E,R){if(E){if(typeof E=="string")return u(E,R);var P=Object.prototype.toString.call(E).slice(8,-1);if(P==="Object"&&E.constructor&&(P=E.constructor.name),P==="Map"||P==="Set")return Array.from(E);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return u(E,R)}}function u(E,R){(R==null||R>E.length)&&(R=E.length);for(var P=0,N=new Array(R);P<R;P++)N[P]=E[P];return N}var d=[],m=r.default.keys();for(S=0;S<m.length;S++)if(p=m[S],h=r.default.get(p),g=[],h){for(y=[].concat(h.baseConcepts,h.relatedConcepts),C=0;C<y.length;C++)b=y[C],b.module==="HTML"&&(v=b.concept,v!=null&&g.push(v));g.length>0&&d.push([p,g])}var p,h,g,y,b,v,C,S,A={entries:function(){return d},forEach:function(E){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,P=l(d),N;try{for(P.s();!(N=P.n()).done;){var B=o(N.value,2),j=B[0],F=B[1];E.call(R,F,j,d)}}catch(T){P.e(T)}finally{P.f()}},get:function(E){var R=d.find(function(P){return P[0]===E});return R&&R[1]},has:function(E){return!!A.get(E)},keys:function(){return d.map(function(E){var R=o(E,1),P=R[0];return P})},values:function(){return d.map(function(E){var R=o(E,2),P=R[1];return P})}},_=(0,t.default)(A,A.entries());e.default=_}}),ID=w({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=i(JN()),r=i(QN()),n=i(Oc()),o=i(ND()),a=i(jD());function i(m){return m&&m.__esModule?m:{default:m}}var s=t.default;e.aria=s;var l=r.default;e.dom=l;var c=n.default;e.roles=c;var u=o.default;e.elementRoles=u;var d=a.default;e.roleElements=d}}),DD=w({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=(function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function s(c,u){if(!i[c]){i[c]={};for(var d=0;d<c.length;d++)i[c][c.charAt(d)]=d}return i[c][u]}var l={compressToBase64:function(c){if(c==null)return"";var u=l._compress(c,6,function(d){return o.charAt(d)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(u){return s(o,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=l.compress(c),d=new Uint8Array(u.length*2),m=0,p=u.length;m<p;m++){var h=u.charCodeAt(m);d[m*2]=h>>>8,d[m*2+1]=h%256}return d},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var u=new Array(c.length/2),d=0,m=u.length;d<m;d++)u[d]=c[d*2]*256+c[d*2+1];var p=[];return u.forEach(function(h){p.push(n(h))}),l.decompress(p.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(u){return a.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(u){return s(a,c.charAt(u))}))},compress:function(c){return l._compress(c,16,function(u){return n(u)})},_compress:function(c,u,d){if(c==null)return"";var m,p,h={},g={},y="",b="",v="",C=2,S=3,A=2,_=[],E=0,R=0,P;for(P=0;P<c.length;P+=1)if(y=c.charAt(P),Object.prototype.hasOwnProperty.call(h,y)||(h[y]=S++,g[y]=!0),b=v+y,Object.prototype.hasOwnProperty.call(h,b))v=b;else{if(Object.prototype.hasOwnProperty.call(g,v)){if(v.charCodeAt(0)<256){for(m=0;m<A;m++)E=E<<1,R==u-1?(R=0,_.push(d(E)),E=0):R++;for(p=v.charCodeAt(0),m=0;m<8;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1}else{for(p=1,m=0;m<A;m++)E=E<<1|p,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=0;for(p=v.charCodeAt(0),m=0;m<16;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1}C--,C==0&&(C=Math.pow(2,A),A++),delete g[v]}else for(p=h[v],m=0;m<A;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1;C--,C==0&&(C=Math.pow(2,A),A++),h[b]=S++,v=String(y)}if(v!==""){if(Object.prototype.hasOwnProperty.call(g,v)){if(v.charCodeAt(0)<256){for(m=0;m<A;m++)E=E<<1,R==u-1?(R=0,_.push(d(E)),E=0):R++;for(p=v.charCodeAt(0),m=0;m<8;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1}else{for(p=1,m=0;m<A;m++)E=E<<1|p,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=0;for(p=v.charCodeAt(0),m=0;m<16;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1}C--,C==0&&(C=Math.pow(2,A),A++),delete g[v]}else for(p=h[v],m=0;m<A;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1;C--,C==0&&(C=Math.pow(2,A),A++)}for(p=2,m=0;m<A;m++)E=E<<1|p&1,R==u-1?(R=0,_.push(d(E)),E=0):R++,p=p>>1;for(;;)if(E=E<<1,R==u-1){_.push(d(E));break}else R++;return _.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,d){var m=[],p=4,h=4,g=3,y="",b=[],v,C,S,A,_,E,R,P={val:d(0),position:u,index:1};for(v=0;v<3;v+=1)m[v]=v;for(S=0,_=Math.pow(2,2),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;switch(S){case 0:for(S=0,_=Math.pow(2,8),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;R=n(S);break;case 1:for(S=0,_=Math.pow(2,16),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;R=n(S);break;case 2:return""}for(m[3]=R,C=R,b.push(R);;){if(P.index>c)return"";for(S=0,_=Math.pow(2,g),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;switch(R=S){case 0:for(S=0,_=Math.pow(2,8),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;m[h++]=n(S),R=h-1,p--;break;case 1:for(S=0,_=Math.pow(2,16),E=1;E!=_;)A=P.val&P.position,P.position>>=1,P.position==0&&(P.position=u,P.val=d(P.index++)),S|=(A>0?1:0)*E,E<<=1;m[h++]=n(S),R=h-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,g),g++),m[R])y=m[R];else if(R===h)y=C+C.charAt(0);else return null;b.push(y),m[h++]=C+y.charAt(0),p--,C=y,p==0&&(p=Math.pow(2,g),g++)}}};return l})();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),pv=Object.defineProperty,FD=Object.getOwnPropertyNames,$=(e,t)=>pv(e,"name",{value:t,configurable:!0}),LD=(e,t)=>function(){return t||(0,e[FD(e)[0]])((t={exports:{}}).exports,t),t.exports},qc=(e,t)=>{for(var r in t)pv(e,r,{get:t[r],enumerable:!0})},BD=LD({"(disabled):util"(){}}),Ft={};qc(Ft,{addChainableMethod:()=>Uc,addLengthGuard:()=>Vo,addMethod:()=>Bc,addProperty:()=>Lc,checkError:()=>pt,compareByInspect:()=>Xa,eql:()=>Bv,expectTypes:()=>vv,flag:()=>ae,getActual:()=>_i,getMessage:()=>Nc,getName:()=>wi,getOperator:()=>Gc,getOwnEnumerableProperties:()=>zc,getOwnEnumerablePropertySymbols:()=>Vc,getPathInfo:()=>Fc,hasProperty:()=>Ri,inspect:()=>pe,isNaN:()=>Ja,isNumeric:()=>Ve,isProxyEnabled:()=>Ho,isRegExp:()=>Qa,objDisplay:()=>Hr,overwriteChainableMethod:()=>Hc,overwriteMethod:()=>$c,overwriteProperty:()=>kc,proxify:()=>zn,test:()=>xc,transferFlags:()=>xt,type:()=>_e});var pt={};qc(pt,{compatibleConstructor:()=>hv,compatibleInstance:()=>mv,compatibleMessage:()=>yv,getConstructorName:()=>bv,getMessage:()=>gv});function Ei(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}$(Ei,"isErrorInstance");function fv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}$(fv,"isRegExp");function mv(e,t){return Ei(t)&&e===t}$(mv,"compatibleInstance");function hv(e,t){return Ei(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}$(hv,"compatibleConstructor");function yv(e,t){let r=typeof e=="string"?e:e.message;return fv(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}$(yv,"compatibleMessage");function bv(e){let t=e;return Ei(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}$(bv,"getConstructorName");function gv(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}$(gv,"getMessage");function ae(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}$(ae,"flag");function xc(e,t){var r=ae(e,"negate"),n=t[0];return r?!n:n}$(xc,"test");function _e(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}$(_e,"type");var kD="captureStackTrace"in Error,Ma,he=(Ma=class extends Error{constructor(t="Unspecified AssertionError",r,n){super(t);Ae(this,"message");this.message=t,kD&&Error.captureStackTrace(this,n||Ma);for(let o in r)o in this||(this[o]=r[o])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},$(Ma,"AssertionError"),Ma);function vv(e,t){var r=ae(e,"message"),n=ae(e,"ssfi");r=r?r+": ":"",e=ae(e,"object"),t=t.map(function(i){return i.toLowerCase()}),t.sort();var o=t.map(function(i,s){var l=~["a","e","i","o","u"].indexOf(i.charAt(0))?"an":"a",c=t.length>1&&s===t.length-1?"or ":"";return c+l+" "+i}).join(", "),a=_e(e).toLowerCase();if(!t.some(function(i){return a===i}))throw new he(r+"object tested must be "+o+", but "+a+" given",void 0,n)}$(vv,"expectTypes");function _i(e,t){return t.length>4?t[4]:e._obj}$(_i,"getActual");var Uy={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},$D={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},xn="\u2026";function Ev(e,t){let r=Uy[$D[t]]||Uy[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}$(Ev,"colorise");function _v({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:s=[],truncate:l=1/0,stylize:c=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(l),seen:s,inspect:u,stylize:c};return d.colors&&(d.stylize=Ev),d}$(_v,"normaliseOptions");function Rv(e){return e>="\uD800"&&e<="\uDBFF"}$(Rv,"isHighSurrogate");function nr(e,t,r=xn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&Rv(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}$(nr,"truncate");function _t(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",s="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,d=c+2===e.length;l=`${xn}(${e.length-c})`;let m=e[c];t.truncate=a-i.length-(u?0:n.length);let p=s||r(m,t)+(u?"":n),h=i.length+p.length,g=h+l.length;if(u&&h>a&&i.length+l.length<=a||!u&&!d&&g>a||(s=u?"":r(e[c+1],t)+(d?"":n),!u&&d&&g>a&&h+s.length>a))break;if(i+=p,!u&&!d&&h+s.length>=a){l=`${xn}(${e.length-c-1})`;break}l=""}return`${i}${l}`}$(_t,"inspectList");function wv(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}$(wv,"quoteComplexKey");function Mn([e,t],r){return r.truncate-=2,typeof e=="string"?e=wv(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}$(Mn,"inspectProperty");function Cv(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=_t(e,t);t.truncate-=n.length;let o="";return r.length&&(o=_t(r.map(a=>[a,e[a]]),t,Mn)),`[ ${n}${o?`, ${o}`:""} ]`}$(Cv,"inspectArray");var UD=$(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Dt(e,t){let r=UD(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){let s=`${t.stylize(nr(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=s.length,e[i]!==e.length&&t.truncate<=3){o+=`${xn}(${e.length-e[i]+1})`;break}o+=s}let a="";return n.length&&(a=_t(n.map(i=>[i,e[i]]),t,Mn)),`${r}[ ${o}${a?`, ${a}`:""} ]`}$(Dt,"inspectTypedArray");function Sv(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${nr(n[1],t.truncate-o.length-1)}`,"date")}$(Sv,"inspectDate");function Su(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${nr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}$(Su,"inspectFunction");function Av([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}$(Av,"inspectMapEntry");function Tv(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}$(Tv,"mapToEntries");function Pv(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${_t(Tv(e),t,Av)} }`)}$(Pv,"inspectMap");var HD=Number.isNaN||(e=>e!==e);function Au(e,t){return HD(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(nr(String(e),t.truncate),"number")}$(Au,"inspectNumber");function Tu(e,t){let r=nr(e.toString(),t.truncate-1);return r!==xn&&(r+="n"),t.stylize(r,"bigint")}$(Tu,"inspectBigInt");function Ov(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${nr(o,n)}/${r}`,"regexp")}$(Ov,"inspectRegExp");function qv(e){let t=[];return e.forEach(r=>{t.push(r)}),t}$(qv,"arrayFromSet");function xv(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${_t(qv(e),t)} }`)}$(xv,"inspectSet");var Hy=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),VD={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},zD=16,GD=4;function Mv(e){return VD[e]||`\\u${`0000${e.charCodeAt(0).toString(zD)}`.slice(-GD)}`}$(Mv,"escape");function Pu(e,t){return Hy.test(e)&&(e=e.replace(Hy,Mv)),t.stylize(`'${nr(e,t.truncate-2)}'`,"string")}$(Pu,"inspectString");function Ou(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}$(Ou,"inspectSymbol");var Nv=$(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Nv=$((n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`},"getPromiseValue"))}catch{}var YD=Nv;function Eo(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=_t(r.map(s=>[s,e[s]]),t,Mn),a=_t(n.map(s=>[s,e[s]]),t,Mn);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}$(Eo,"inspectObject");var au=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function jv(e,t){let r="";return au&&au in e&&(r=e[au]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Eo(e,t)}`}$(jv,"inspectClass");function Iv(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${_t(e,t)} ]`)}$(Iv,"inspectArguments");var WD=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Dv(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>WD.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=nr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=_t(r.map(i=>[i,e[i]]),t,Mn);return`${n}${o}${a?` { ${a} }`:""}`}$(Dv,"inspectObject");function Fv([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}$(Fv,"inspectAttribute");function Ya(e,t){return _t(e,t,Mc,`
|
|
305
|
+
`)}$(Ya,"inspectHTMLCollection");function Mc(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=_t(r.map(u=>[u,e.getAttribute(u)]),t,Fv," ")),t.truncate-=s.length;let l=t.truncate,c=Ya(e.children,t);return c&&c.length>l&&(c=`${xn}(${e.children.length})`),`${o}${s}${a}${c}${i}`}$(Mc,"inspectHTML");var KD=typeof Symbol=="function"&&typeof Symbol.for=="function",iu=KD?Symbol.for("chai/inspect"):"@@chai/inspect",_n=!1;try{let e=BD();_n=e.inspect?e.inspect.custom:!1}catch{_n=!1}var Vy=new WeakMap,zy={},Gy={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Au,Number:Au,bigint:Tu,BigInt:Tu,string:Pu,String:Pu,function:Su,Function:Su,symbol:Ou,Symbol:Ou,Array:Cv,Date:Sv,Map:Pv,Set:xv,RegExp:Ov,Promise:YD,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:Iv,Int8Array:Dt,Uint8Array:Dt,Uint8ClampedArray:Dt,Int16Array:Dt,Uint16Array:Dt,Int32Array:Dt,Uint32Array:Dt,Float32Array:Dt,Float64Array:Dt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Dv,HTMLCollection:Ya,NodeList:Ya},XD=$((e,t,r)=>iu in e&&typeof e[iu]=="function"?e[iu](t):_n&&_n in e&&typeof e[_n]=="function"?e[_n](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Vy.has(e.constructor)?Vy.get(e.constructor)(e,t):zy[r]?zy[r](e,t):"","inspectCustom"),JD=Object.prototype.toString;function Wa(e,t={}){let r=_v(t,Wa),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=JD.call(e).slice(8,-1)),o in Gy)return Gy[o](e,r);if(n&&e){let i=XD(e,r,o);if(i)return typeof i=="string"?i:Wa(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Eo(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Mc(e,r):"constructor"in e?e.constructor!==Object?jv(e,r):Eo(e,r):e===Object(e)?Eo(e,r):r.stylize(String(e),o)}$(Wa,"inspect");var it={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function pe(e,t,r,n){var o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:it.truncateThreshold?it.truncateThreshold:1/0};return Wa(e,o)}$(pe,"inspect");function Hr(e){var t=pe(e),r=Object.prototype.toString.call(e);if(it.truncateThreshold&&t.length>=it.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){var n=Object.keys(e),o=n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", ");return"{ Object ("+o+") }"}else return t}else return t}$(Hr,"objDisplay");function Nc(e,t){var r=ae(e,"negate"),n=ae(e,"object"),o=t[3],a=_i(e,t),i=r?t[2]:t[1],s=ae(e,"message");return typeof i=="function"&&(i=i()),i=i||"",i=i.replace(/#\{this\}/g,function(){return Hr(n)}).replace(/#\{act\}/g,function(){return Hr(a)}).replace(/#\{exp\}/g,function(){return Hr(o)}),s?s+": "+i:i}$(Nc,"getMessage");function xt(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(var o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}$(xt,"transferFlags");function qu(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}$(qu,"type");function jc(){this._key="chai/deep-eql__"+Math.random()+Date.now()}$(jc,"FakeMap");jc.prototype={get:$(function(e){return e[this._key]},"get"),set:$(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var Lv=typeof WeakMap=="function"?WeakMap:jc;function xu(e,t,r){if(!r||Gr(e)||Gr(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}$(xu,"memoizeCompare");function yo(e,t,r,n){if(!(!r||Gr(e)||Gr(t))){var o=r.get(e);o?o.set(t,n):(o=new Lv,o.set(t,n),r.set(e,o))}}$(yo,"memoizeSet");var Bv=Uo;function Uo(e,t,r){if(r&&r.comparator)return Mu(e,t,r);var n=Ic(e,t);return n!==null?n:Mu(e,t,r)}$(Uo,"deepEqual");function Ic(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Gr(e)||Gr(t)?!1:null}$(Ic,"simpleEqual");function Mu(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new Lv;var n=r&&r.comparator,o=xu(e,t,r.memoize);if(o!==null)return o;var a=xu(t,e,r.memoize);if(a!==null)return a;if(n){var i=n(e,t);if(i===!1||i===!0)return yo(e,t,r.memoize,i),i;var s=Ic(e,t);if(s!==null)return s}var l=qu(e);if(l!==qu(t))return yo(e,t,r.memoize,!1),!1;yo(e,t,r.memoize,!0);var c=kv(e,t,l,r);return yo(e,t,r.memoize,c),c}$(Mu,"extensiveDeepEqual");function kv(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Uo(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Dc(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return _r(e,t,n);case"RegExp":return $v(e,t);case"Generator":return Uv(e,t,n);case"DataView":return _r(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return _r(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Nu(e,t,n);case"Map":return Nu(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return Vv(e,t,n)}}$(kv,"extensiveDeepEqualByType");function $v(e,t){return e.toString()===t.toString()}$($v,"regexpEqual");function Nu(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],o=[];return e.forEach($(function(a,i){n.push([a,i])},"gatherEntries")),t.forEach($(function(a,i){o.push([a,i])},"gatherEntries")),_r(n.sort(),o.sort(),r)}$(Nu,"entriesEqual");function _r(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var o=-1;++o<n;)if(Uo(e[o],t[o],r)===!1)return!1;return!0}$(_r,"iterableEqual");function Uv(e,t,r){return _r(Ka(e),Ka(t),r)}$(Uv,"generatorEqual");function Hv(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}$(Hv,"hasIteratorFunction");function ju(e){if(Hv(e))try{return Ka(e[Symbol.iterator]())}catch{return[]}return[]}$(ju,"getIteratorEntries");function Ka(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}$(Ka,"getGeneratorEntries");function Iu(e){var t=[];for(var r in e)t.push(r);return t}$(Iu,"getEnumerableKeys");function Du(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}$(Du,"getEnumerableSymbols");function Dc(e,t,r,n){var o=r.length;if(o===0)return!0;for(var a=0;a<o;a+=1)if(Uo(e[r[a]],t[r[a]],n)===!1)return!1;return!0}$(Dc,"keysEqual");function Vv(e,t,r){var n=Iu(e),o=Iu(t),a=Du(e),i=Du(t);if(n=n.concat(a),o=o.concat(i),n.length&&n.length===o.length)return _r(Fu(n).sort(),Fu(o).sort())===!1?!1:Dc(e,t,n,r);var s=ju(e),l=ju(t);return s.length&&s.length===l.length?(s.sort(),l.sort(),_r(s,l,r)):n.length===0&&s.length===0&&o.length===0&&l.length===0}$(Vv,"objectEqual");function Gr(e){return e===null||typeof e!="object"}$(Gr,"isPrimitive");function Fu(e){return e.map($(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}$(Fu,"mapSymbols");function Ri(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}$(Ri,"hasProperty");function zv(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}$(zv,"parsePath");function Lu(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let a=0;a<r;a++){let i=t[a];n&&(typeof i.p>"u"?n=n[i.i]:n=n[i.p],a===r-1&&(o=n))}return o}$(Lu,"internalGetPathValue");function Fc(e,t){let r=zv(t),n=r[r.length-1],o={parent:r.length>1?Lu(e,r,r.length-1):e,name:n.p||n.i,value:Lu(e,r)};return o.exists=Ri(o.parent,o.name),o}$(Fc,"getPathInfo");function x(e,t,r,n){return ae(this,"ssfi",r||x),ae(this,"lockSsfi",n),ae(this,"object",e),ae(this,"message",t),ae(this,"eql",it.deepEqual||Bv),zn(this)}$(x,"Assertion");Object.defineProperty(x,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),it.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),it.includeStack=e}});Object.defineProperty(x,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),it.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),it.showDiff=e}});x.addProperty=function(e,t){Lc(this.prototype,e,t)};x.addMethod=function(e,t){Bc(this.prototype,e,t)};x.addChainableMethod=function(e,t,r){Uc(this.prototype,e,t,r)};x.overwriteProperty=function(e,t){kc(this.prototype,e,t)};x.overwriteMethod=function(e,t){$c(this.prototype,e,t)};x.overwriteChainableMethod=function(e,t,r){Hc(this.prototype,e,t,r)};x.prototype.assert=function(e,t,r,n,o,a){var i=xc(this,arguments);if(a!==!1&&(a=!0),n===void 0&&o===void 0&&(a=!1),it.showDiff!==!0&&(a=!1),!i){t=Nc(this,arguments);var s=_i(this,arguments),l={actual:s,expected:n,showDiff:a},c=Gc(this,arguments);throw c&&(l.operator=c),new he(t,l,it.includeStack?this.assert:ae(this,"ssfi"))}};Object.defineProperty(x.prototype,"_obj",{get:function(){return ae(this,"object")},set:function(e){ae(this,"object",e)}});function Ho(){return it.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}$(Ho,"isProxyEnabled");function Lc(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:$(function n(){!Ho()&&!ae(this,"lockSsfi")&&ae(this,"ssfi",n);var o=r.call(this);if(o!==void 0)return o;var a=new x;return xt(this,a),a},"propertyGetter"),configurable:!0})}$(Lc,"addProperty");var QD=Object.getOwnPropertyDescriptor(function(){},"length");function Vo(e,t,r){return QD.configurable&&Object.defineProperty(e,"length",{get:function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e}$(Vo,"addLengthGuard");function Gv(e){var t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}$(r,"addProperty");for(var n=Object.getPrototypeOf(e);n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}$(Gv,"getProperties");var Yy=["__flags","__methods","_obj","assert"];function zn(e,t){return Ho()?new Proxy(e,{get:$(function r(n,o){if(typeof o=="string"&&it.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');var a=null,i=4;throw Gv(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&Yy.indexOf(s)===-1){var l=Yv(o,s,i);l<i&&(a=s,i=l)}}),Error(a!==null?"Invalid Chai property: "+o+'. Did you mean "'+a+'"?':"Invalid Chai property: "+o)}return Yy.indexOf(o)===-1&&!ae(n,"lockSsfi")&&ae(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}$(zn,"proxify");function Yv(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;var n=[];for(let a=0;a<=e.length;a++)n[a]=Array(t.length+1).fill(0),n[a][0]=a;for(let a=0;a<t.length;a++)n[0][a]=a;for(let a=1;a<=e.length;a++){var o=e.charCodeAt(a-1);for(let i=1;i<=t.length;i++){if(Math.abs(a-i)>=r){n[a][i]=r;continue}n[a][i]=Math.min(n[a-1][i]+1,n[a][i-1]+1,n[a-1][i-1]+(o===t.charCodeAt(i-1)?0:1))}}return n[e.length][t.length]}$(Yv,"stringDistanceCapped");function Bc(e,t,r){var n=$(function(){ae(this,"lockSsfi")||ae(this,"ssfi",n);var o=r.apply(this,arguments);if(o!==void 0)return o;var a=new x;return xt(this,a),a},"methodWrapper");Vo(n,t,!1),e[t]=zn(n,t)}$(Bc,"addMethod");function kc(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),o=$(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:$(function a(){!Ho()&&!ae(this,"lockSsfi")&&ae(this,"ssfi",a);var i=ae(this,"lockSsfi");ae(this,"lockSsfi",!0);var s=r(o).call(this);if(ae(this,"lockSsfi",i),s!==void 0)return s;var l=new x;return xt(this,l),l},"overwritingPropertyGetter"),configurable:!0})}$(kc,"overwriteProperty");function $c(e,t,r){var n=e[t],o=$(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);var a=$(function(){ae(this,"lockSsfi")||ae(this,"ssfi",a);var i=ae(this,"lockSsfi");ae(this,"lockSsfi",!0);var s=r(o).apply(this,arguments);if(ae(this,"lockSsfi",i),s!==void 0)return s;var l=new x;return xt(this,l),l},"overwritingMethodWrapper");Vo(a,t,!1),e[t]=zn(a,t)}$($c,"overwriteMethod");var ZD=typeof Object.setPrototypeOf=="function",Wy=$(function(){},"testFn"),eF=Object.getOwnPropertyNames(Wy).filter(function(e){var t=Object.getOwnPropertyDescriptor(Wy,e);return typeof t!="object"?!0:!t.configurable}),tF=Function.prototype.call,rF=Function.prototype.apply;function Uc(e,t,r,n){typeof n!="function"&&(n=$(function(){},"chainingBehavior"));var o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:$(function(){o.chainingBehavior.call(this);var a=$(function(){ae(this,"lockSsfi")||ae(this,"ssfi",a);var l=o.method.apply(this,arguments);if(l!==void 0)return l;var c=new x;return xt(this,c),c},"chainableMethodWrapper");if(Vo(a,t,!0),ZD){var i=Object.create(this);i.call=tF,i.apply=rF,Object.setPrototypeOf(a,i)}else{var s=Object.getOwnPropertyNames(e);s.forEach(function(l){if(eF.indexOf(l)===-1){var c=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,c)}})}return xt(this,a),zn(a)},"chainableMethodGetter"),configurable:!0})}$(Uc,"addChainableMethod");function Hc(e,t,r,n){var o=e.__methods[t],a=o.chainingBehavior;o.chainingBehavior=$(function(){var s=n(a).call(this);if(s!==void 0)return s;var l=new x;return xt(this,l),l},"overwritingChainableMethodGetter");var i=o.method;o.method=$(function(){var s=r(i).apply(this,arguments);if(s!==void 0)return s;var l=new x;return xt(this,l),l},"overwritingChainableMethodWrapper")}$(Hc,"overwriteChainableMethod");function Xa(e,t){return pe(e)<pe(t)?-1:1}$(Xa,"compareByInspect");function Vc(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}$(Vc,"getOwnEnumerablePropertySymbols");function zc(e){return Object.keys(e).concat(Vc(e))}$(zc,"getOwnEnumerableProperties");var Ja=Number.isNaN;function Wv(e){var t=_e(e),r=["Array","Object","Function"];return r.indexOf(t)!==-1}$(Wv,"isObjectType");function Gc(e,t){var r=ae(e,"operator"),n=ae(e,"negate"),o=t[3],a=n?t[2]:t[1];if(r)return r;if(typeof a=="function"&&(a=a()),a=a||"",!!a&&!/\shave\s/.test(a)){var i=Wv(o);return/\snot\s/.test(a)?i?"notDeepStrictEqual":"notStrictEqual":i?"deepStrictEqual":"strictEqual"}}$(Gc,"getOperator");function wi(e){return e.name}$(wi,"getName");function Qa(e){return Object.prototype.toString.call(e)==="[object RegExp]"}$(Qa,"isRegExp");function Ve(e){return["Number","BigInt"].includes(_e(e))}$(Ve,"isNumeric");var{flag:I}=Ft;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){x.addProperty(e)});x.addProperty("not",function(){I(this,"negate",!0)});x.addProperty("deep",function(){I(this,"deep",!0)});x.addProperty("nested",function(){I(this,"nested",!0)});x.addProperty("own",function(){I(this,"own",!0)});x.addProperty("ordered",function(){I(this,"ordered",!0)});x.addProperty("any",function(){I(this,"any",!0),I(this,"all",!1)});x.addProperty("all",function(){I(this,"all",!0),I(this,"any",!1)});var Ky={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Yc(e,t){t&&I(this,"message",t),e=e.toLowerCase();var r=I(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";let o=_e(r).toLowerCase();Ky.function.includes(e)?this.assert(Ky[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}$(Yc,"an");x.addChainableMethod("an",Yc);x.addChainableMethod("a",Yc);function Kv(e,t){return Ja(e)&&Ja(t)||e===t}$(Kv,"SameValueZero");function zo(){I(this,"contains",!0)}$(zo,"includeChainingBehavior");function Go(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=_e(r).toLowerCase(),o=I(this,"message"),a=I(this,"negate"),i=I(this,"ssfi"),s=I(this,"deep"),l=s?"deep ":"",c=s?I(this,"eql"):Kv;o=o?o+": ":"";var u=!1;switch(n){case"string":u=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new he(o+"unable to use .deep.include with WeakSet",void 0,i);u=r.has(e);break;case"map":r.forEach(function(h){u=u||c(h,e)});break;case"set":s?r.forEach(function(h){u=u||c(h,e)}):u=r.has(e);break;case"array":s?u=r.some(function(h){return c(h,e)}):u=r.indexOf(e)!==-1;break;default:if(e!==Object(e))throw new he(o+"the given combination of arguments ("+n+" and "+_e(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+_e(e).toLowerCase(),void 0,i);var d=Object.keys(e),m=null,p=0;if(d.forEach(function(h){var g=new x(r);if(xt(this,g,!0),I(g,"lockSsfi",!0),!a||d.length===1){g.property(h,e[h]);return}try{g.property(h,e[h])}catch(y){if(!pt.compatibleConstructor(y,he))throw y;m===null&&(m=y),p++}},this),a&&d.length>1&&p===d.length)throw m;return}this.assert(u,"expected #{this} to "+l+"include "+pe(e),"expected #{this} to not "+l+"include "+pe(e))}$(Go,"include");x.addChainableMethod("include",Go,zo);x.addChainableMethod("contain",Go,zo);x.addChainableMethod("contains",Go,zo);x.addChainableMethod("includes",Go,zo);x.addProperty("ok",function(){this.assert(I(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});x.addProperty("true",function(){this.assert(I(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!I(this,"negate"))});x.addProperty("numeric",function(){let e=I(this,"object");this.assert(["Number","BigInt"].includes(_e(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!I(this,"negate"))});x.addProperty("callable",function(){let e=I(this,"object"),t=I(this,"ssfi"),r=I(this,"message"),n=r?`${r}: `:"",o=I(this,"negate"),a=o?`${n}expected ${pe(e)} not to be a callable function`:`${n}expected ${pe(e)} to be a callable function`,i=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(_e(e));if(i&&o||!i&&!o)throw new he(a,void 0,t)});x.addProperty("false",function(){this.assert(I(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!I(this,"negate"))});x.addProperty("null",function(){this.assert(I(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});x.addProperty("undefined",function(){this.assert(I(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});x.addProperty("NaN",function(){this.assert(Ja(I(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Wc(){var e=I(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}$(Wc,"assertExist");x.addProperty("exist",Wc);x.addProperty("exists",Wc);x.addProperty("empty",function(){var e=I(this,"object"),t=I(this,"ssfi"),r=I(this,"message"),n;switch(r=r?r+": ":"",_e(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new he(r+".empty was passed a weak collection",void 0,t);case"function":var o=r+".empty was passed a function "+wi(e);throw new he(o.trim(),void 0,t);default:if(e!==Object(e))throw new he(r+".empty was passed non-string primitive "+pe(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function Kc(){var e=I(this,"object"),t=_e(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}$(Kc,"checkArguments");x.addProperty("arguments",Kc);x.addProperty("Arguments",Kc);function Ci(e,t){t&&I(this,"message",t);var r=I(this,"object");if(I(this,"deep")){var n=I(this,"lockSsfi");I(this,"lockSsfi",!0),this.eql(e),I(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}$(Ci,"assertEqual");x.addMethod("equal",Ci);x.addMethod("equals",Ci);x.addMethod("eq",Ci);function Xc(e,t){t&&I(this,"message",t);var r=I(this,"eql");this.assert(r(e,I(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}$(Xc,"assertEql");x.addMethod("eql",Xc);x.addMethod("eqls",Xc);function Si(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"doLength"),o=I(this,"message"),a=o?o+": ":"",i=I(this,"ssfi"),s=_e(r).toLowerCase(),l=_e(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new x(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")throw new he(a+"the argument to above must be a date",void 0,i);if(!Ve(e)&&(n||Ve(r)))throw new he(a+"the argument to above must be a number",void 0,i);if(!n&&s!=="date"&&!Ve(r)){var c=s==="string"?"'"+r+"'":r;throw new he(a+"expected "+c+" to be a number or a date",void 0,i)}if(n){var u="length",d;s==="map"||s==="set"?(u="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}$(Si,"assertAbove");x.addMethod("above",Si);x.addMethod("gt",Si);x.addMethod("greaterThan",Si);function Ai(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"doLength"),o=I(this,"message"),a=o?o+": ":"",i=I(this,"ssfi"),s=_e(r).toLowerCase(),l=_e(e).toLowerCase(),c,u=!0;if(n&&s!=="map"&&s!=="set"&&new x(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")c=a+"the argument to least must be a date";else if(!Ve(e)&&(n||Ve(r)))c=a+"the argument to least must be a number";else if(!n&&s!=="date"&&!Ve(r)){var d=s==="string"?"'"+r+"'":r;c=a+"expected "+d+" to be a number or a date"}else u=!1;if(u)throw new he(c,void 0,i);if(n){var m="length",p;s==="map"||s==="set"?(m="size",p=r.size):p=r.length,this.assert(p>=e,"expected #{this} to have a "+m+" at least #{exp} but got #{act}","expected #{this} to have a "+m+" below #{exp}",e,p)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}$(Ai,"assertLeast");x.addMethod("least",Ai);x.addMethod("gte",Ai);x.addMethod("greaterThanOrEqual",Ai);function Ti(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"doLength"),o=I(this,"message"),a=o?o+": ":"",i=I(this,"ssfi"),s=_e(r).toLowerCase(),l=_e(e).toLowerCase(),c,u=!0;if(n&&s!=="map"&&s!=="set"&&new x(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")c=a+"the argument to below must be a date";else if(!Ve(e)&&(n||Ve(r)))c=a+"the argument to below must be a number";else if(!n&&s!=="date"&&!Ve(r)){var d=s==="string"?"'"+r+"'":r;c=a+"expected "+d+" to be a number or a date"}else u=!1;if(u)throw new he(c,void 0,i);if(n){var m="length",p;s==="map"||s==="set"?(m="size",p=r.size):p=r.length,this.assert(p<e,"expected #{this} to have a "+m+" below #{exp} but got #{act}","expected #{this} to not have a "+m+" below #{exp}",e,p)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}$(Ti,"assertBelow");x.addMethod("below",Ti);x.addMethod("lt",Ti);x.addMethod("lessThan",Ti);function Pi(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"doLength"),o=I(this,"message"),a=o?o+": ":"",i=I(this,"ssfi"),s=_e(r).toLowerCase(),l=_e(e).toLowerCase(),c,u=!0;if(n&&s!=="map"&&s!=="set"&&new x(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")c=a+"the argument to most must be a date";else if(!Ve(e)&&(n||Ve(r)))c=a+"the argument to most must be a number";else if(!n&&s!=="date"&&!Ve(r)){var d=s==="string"?"'"+r+"'":r;c=a+"expected "+d+" to be a number or a date"}else u=!1;if(u)throw new he(c,void 0,i);if(n){var m="length",p;s==="map"||s==="set"?(m="size",p=r.size):p=r.length,this.assert(p<=e,"expected #{this} to have a "+m+" at most #{exp} but got #{act}","expected #{this} to have a "+m+" above #{exp}",e,p)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}$(Pi,"assertMost");x.addMethod("most",Pi);x.addMethod("lte",Pi);x.addMethod("lessThanOrEqual",Pi);x.addMethod("within",function(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"doLength"),a=I(this,"message"),i=a?a+": ":"",s=I(this,"ssfi"),l=_e(n).toLowerCase(),c=_e(e).toLowerCase(),u=_e(t).toLowerCase(),d,m=!0,p=c==="date"&&u==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new x(n,a,s,!0).to.have.property("length"),!o&&l==="date"&&(c!=="date"||u!=="date"))d=i+"the arguments to within must be dates";else if((!Ve(e)||!Ve(t))&&(o||Ve(n)))d=i+"the arguments to within must be numbers";else if(!o&&l!=="date"&&!Ve(n)){var h=l==="string"?"'"+n+"'":n;d=i+"expected "+h+" to be a number or a date"}else m=!1;if(m)throw new he(d,void 0,s);if(o){var g="length",y;l==="map"||l==="set"?(g="size",y=n.size):y=n.length,this.assert(y>=e&&y<=t,"expected #{this} to have a "+g+" within "+p,"expected #{this} to not have a "+g+" within "+p)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+p,"expected #{this} to not be within "+p)});function Jc(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"ssfi"),o=I(this,"message");try{var a=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new he(o+"The instanceof assertion needs a constructor but "+_e(e)+" was given.",void 0,n)):s}var i=wi(e);i==null&&(i="an unnamed constructor"),this.assert(a,"expected #{this} to be an instance of "+i,"expected #{this} to not be an instance of "+i)}$(Jc,"assertInstanceOf");x.addMethod("instanceof",Jc);x.addMethod("instanceOf",Jc);function Qc(e,t,r){r&&I(this,"message",r);var n=I(this,"nested"),o=I(this,"own"),a=I(this,"message"),i=I(this,"object"),s=I(this,"ssfi"),l=typeof e;if(a=a?a+": ":"",n){if(l!=="string")throw new he(a+"the argument to property must be a string when using nested syntax",void 0,s)}else if(l!=="string"&&l!=="number"&&l!=="symbol")throw new he(a+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new he(a+'The "nested" and "own" flags cannot be combined.',void 0,s);if(i==null)throw new he(a+"Target cannot be null or undefined.",void 0,s);var c=I(this,"deep"),u=I(this,"negate"),d=n?Fc(i,e):null,m=n?d.value:i[e],p=c?I(this,"eql"):(y,b)=>y===b,h="";c&&(h+="deep "),o&&(h+="own "),n&&(h+="nested "),h+="property ";var g;o?g=Object.prototype.hasOwnProperty.call(i,e):n?g=d.exists:g=Ri(i,e),(!u||arguments.length===1)&&this.assert(g,"expected #{this} to have "+h+pe(e),"expected #{this} to not have "+h+pe(e)),arguments.length>1&&this.assert(g&&p(t,m),"expected #{this} to have "+h+pe(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+h+pe(e)+" of #{act}",t,m),I(this,"object",m)}$(Qc,"assertProperty");x.addMethod("property",Qc);function Zc(e,t,r){I(this,"own",!0),Qc.apply(this,arguments)}$(Zc,"assertOwnProperty");x.addMethod("ownProperty",Zc);x.addMethod("haveOwnProperty",Zc);function ed(e,t,r){typeof t=="string"&&(r=t,t=null),r&&I(this,"message",r);var n=I(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),a=I(this,"eql");o&&t?this.assert(a(t,o),"expected the own property descriptor for "+pe(e)+" on #{this} to match "+pe(t)+", got "+pe(o),"expected the own property descriptor for "+pe(e)+" on #{this} to not match "+pe(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+pe(e),"expected #{this} to not have an own property descriptor for "+pe(e)),I(this,"object",o)}$(ed,"assertOwnPropertyDescriptor");x.addMethod("ownPropertyDescriptor",ed);x.addMethod("haveOwnPropertyDescriptor",ed);function td(){I(this,"doLength",!0)}$(td,"assertLengthChain");function rd(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=_e(r).toLowerCase(),o=I(this,"message"),a=I(this,"ssfi"),i="length",s;switch(n){case"map":case"set":i="size",s=r.size;break;default:new x(r,o,a,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+i+" of #{exp} but got #{act}","expected #{this} to not have a "+i+" of #{act}",e,s)}$(rd,"assertLength");x.addChainableMethod("length",rd,td);x.addChainableMethod("lengthOf",rd,td);function nd(e,t){t&&I(this,"message",t);var r=I(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}$(nd,"assertMatch");x.addMethod("match",nd);x.addMethod("matches",nd);x.addMethod("string",function(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"message"),o=I(this,"ssfi");new x(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+pe(e),"expected #{this} to not contain "+pe(e))});function od(e){var t=I(this,"object"),r=_e(t),n=_e(e),o=I(this,"ssfi"),a=I(this,"deep"),i,s="",l,c=!0,u=I(this,"message");u=u?u+": ":"";var d=u+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")s=a?"deeply ":"",l=[],t.forEach(function(v,C){l.push(C)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(l=zc(t),n){case"Array":if(arguments.length>1)throw new he(d,void 0,o);break;case"Object":if(arguments.length>1)throw new he(d,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(v){return typeof v=="symbol"?v:String(v)})}if(!e.length)throw new he(u+"keys required",void 0,o);var m=e.length,p=I(this,"any"),h=I(this,"all"),g=e,y=a?I(this,"eql"):(v,C)=>v===C;if(!p&&!h&&(h=!0),p&&(c=g.some(function(v){return l.some(function(C){return y(v,C)})})),h&&(c=g.every(function(v){return l.some(function(C){return y(v,C)})}),I(this,"contains")||(c=c&&e.length==l.length)),m>1){e=e.map(function(v){return pe(v)});var b=e.pop();h&&(i=e.join(", ")+", and "+b),p&&(i=e.join(", ")+", or "+b)}else i=pe(e[0]);i=(m>1?"keys ":"key ")+i,i=(I(this,"contains")?"contain ":"have ")+i,this.assert(c,"expected #{this} to "+s+i,"expected #{this} to not "+s+i,g.slice(0).sort(Xa),l.sort(Xa),!0)}$(od,"assertKeys");x.addMethod("keys",od);x.addMethod("key",od);function Oi(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"ssfi"),a=I(this,"message"),i=I(this,"negate")||!1;new x(n,a,o,!0).is.a("function"),(Qa(e)||typeof e=="string")&&(t=e,e=null);let s,l=!1;try{n()}catch(v){l=!0,s=v}var c=e===void 0&&t===void 0,u=!!(e&&t),d=!1,m=!1;if(c||!c&&!i){var p="an error";e instanceof Error?p="#{exp}":e&&(p=pt.getConstructorName(e));let v=s;if(s instanceof Error)v=s.toString();else if(typeof s=="string")v=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{v=pt.getConstructorName(s)}catch{}this.assert(l,"expected #{this} to throw "+p,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),v)}if(e&&s){if(e instanceof Error){var h=pt.compatibleInstance(s,e);h===i&&(u&&i?d=!0:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!i?" but #{act} was thrown":""),e.toString(),s.toString()))}var g=pt.compatibleConstructor(s,e);g===i&&(u&&i?d=!0:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&pt.getConstructorName(e),s instanceof Error?s.toString():s&&pt.getConstructorName(s)))}if(s&&t!==void 0&&t!==null){var y="including";Qa(t)&&(y="matching");var b=pt.compatibleMessage(s,t);b===i&&(u&&i?m=!0:this.assert(i,"expected #{this} to throw error "+y+" #{exp} but got #{act}","expected #{this} to throw error not "+y+" #{exp}",t,pt.getMessage(s)))}d&&m&&this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&pt.getConstructorName(e),s instanceof Error?s.toString():s&&pt.getConstructorName(s)),I(this,"object",s)}$(Oi,"assertThrows");x.addMethod("throw",Oi);x.addMethod("throws",Oi);x.addMethod("Throw",Oi);function ad(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+pe(e),"expected #{this} to not respond to "+pe(e))}$(ad,"respondTo");x.addMethod("respondTo",ad);x.addMethod("respondsTo",ad);x.addProperty("itself",function(){I(this,"itself",!0)});function id(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+Hr(e),"expected #{this} to not satisfy"+Hr(e),!I(this,"negate"),n)}$(id,"satisfy");x.addMethod("satisfy",id);x.addMethod("satisfies",id);function sd(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"message"),a=I(this,"ssfi");new x(n,o,a,!0).is.numeric;let i="A `delta` value is required for `closeTo`";if(t==null)throw new he(o?`${o}: ${i}`:i,void 0,a);if(new x(t,o,a,!0).is.numeric,i="A `expected` value is required for `closeTo`",e==null)throw new he(o?`${o}: ${i}`:i,void 0,a);new x(e,o,a,!0).is.numeric;let s=$(c=>c<0n?-c:c,"abs"),l=$(c=>parseFloat(parseFloat(c).toPrecision(12)),"strip");this.assert(l(s(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}$(sd,"closeTo");x.addMethod("closeTo",sd);x.addMethod("approximately",sd);function Xv(e,t,r,n,o){let a=Array.from(t),i=Array.from(e);if(!n){if(i.length!==a.length)return!1;a=a.slice()}return i.every(function(s,l){if(o)return r?r(s,a[l]):s===a[l];if(!r){var c=a.indexOf(s);return c===-1?!1:(n||a.splice(c,1),!0)}return a.some(function(u,d){return r(s,u)?(n||a.splice(d,1),!0):!1})})}$(Xv,"isSubsetOf");x.addMethod("members",function(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"message"),o=I(this,"ssfi");new x(r,n,o,!0).to.be.iterable,new x(e,n,o,!0).to.be.iterable;var a=I(this,"contains"),i=I(this,"ordered"),s,l,c;a?(s=i?"an ordered superset":"a superset",l="expected #{this} to be "+s+" of #{exp}",c="expected #{this} to not be "+s+" of #{exp}"):(s=i?"ordered members":"members",l="expected #{this} to have the same "+s+" as #{exp}",c="expected #{this} to not have the same "+s+" as #{exp}");var u=I(this,"deep")?I(this,"eql"):void 0;this.assert(Xv(e,r,u,a,i),l,c,e,r,!0)});x.addProperty("iterable",function(e){e&&I(this,"message",e);var t=I(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Jv(e,t){t&&I(this,"message",t);var r=I(this,"object"),n=I(this,"message"),o=I(this,"ssfi"),a=I(this,"contains"),i=I(this,"deep"),s=I(this,"eql");new x(e,n,o,!0).to.be.an("array"),a?this.assert(e.some(function(l){return r.indexOf(l)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):i?this.assert(e.some(function(l){return s(r,l)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}$(Jv,"oneOf");x.addMethod("oneOf",Jv);function ld(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"message"),a=I(this,"ssfi");new x(n,o,a,!0).is.a("function");var i;t?(new x(e,o,a,!0).to.have.property(t),i=e[t]):(new x(e,o,a,!0).is.a("function"),i=e()),n();var s=t==null?e():e[t],l=t==null?i:"."+t;I(this,"deltaMsgObj",l),I(this,"initialDeltaValue",i),I(this,"finalDeltaValue",s),I(this,"deltaBehavior","change"),I(this,"realDelta",s!==i),this.assert(i!==s,"expected "+l+" to change","expected "+l+" to not change")}$(ld,"assertChanges");x.addMethod("change",ld);x.addMethod("changes",ld);function ud(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"message"),a=I(this,"ssfi");new x(n,o,a,!0).is.a("function");var i;t?(new x(e,o,a,!0).to.have.property(t),i=e[t]):(new x(e,o,a,!0).is.a("function"),i=e()),new x(i,o,a,!0).is.a("number"),n();var s=t==null?e():e[t],l=t==null?i:"."+t;I(this,"deltaMsgObj",l),I(this,"initialDeltaValue",i),I(this,"finalDeltaValue",s),I(this,"deltaBehavior","increase"),I(this,"realDelta",s-i),this.assert(s-i>0,"expected "+l+" to increase","expected "+l+" to not increase")}$(ud,"assertIncreases");x.addMethod("increase",ud);x.addMethod("increases",ud);function cd(e,t,r){r&&I(this,"message",r);var n=I(this,"object"),o=I(this,"message"),a=I(this,"ssfi");new x(n,o,a,!0).is.a("function");var i;t?(new x(e,o,a,!0).to.have.property(t),i=e[t]):(new x(e,o,a,!0).is.a("function"),i=e()),new x(i,o,a,!0).is.a("number"),n();var s=t==null?e():e[t],l=t==null?i:"."+t;I(this,"deltaMsgObj",l),I(this,"initialDeltaValue",i),I(this,"finalDeltaValue",s),I(this,"deltaBehavior","decrease"),I(this,"realDelta",i-s),this.assert(s-i<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}$(cd,"assertDecreases");x.addMethod("decrease",cd);x.addMethod("decreases",cd);function Qv(e,t){t&&I(this,"message",t);var r=I(this,"deltaMsgObj"),n=I(this,"initialDeltaValue"),o=I(this,"finalDeltaValue"),a=I(this,"deltaBehavior"),i=I(this,"realDelta"),s;a==="change"?s=Math.abs(o-n)===Math.abs(e):s=i===Math.abs(e),this.assert(s,"expected "+r+" to "+a+" by "+e,"expected "+r+" to not "+a+" by "+e)}$(Qv,"assertDelta");x.addMethod("by",Qv);x.addProperty("extensible",function(){var e=I(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});x.addProperty("sealed",function(){var e=I(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});x.addProperty("frozen",function(){var e=I(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});x.addProperty("finite",function(e){var t=I(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function Za(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return Za(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){var n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?Za(n,o):typeof n=="function"?n(o):o===n}):!1}$(Za,"compareSubset");x.addMethod("containSubset",function(e){let t=ae(this,"object"),r=it.showDiff;this.assert(Za(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Vr(e,t){return new x(e,t)}$(Vr,"expect");Vr.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new he(r,{actual:e,expected:t,operator:n},Vr.fail)};var Zv={};qc(Zv,{Should:()=>oF,should:()=>nF});function dd(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new x(this.valueOf(),null,e):new x(this,null,e)}$(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}$(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});var r={};return r.fail=function(n,o,a,i){throw arguments.length<2&&(a=n,n=void 0),a=a||"should.fail()",new he(a,{actual:n,expected:o,operator:i},r.fail)},r.equal=function(n,o,a){new x(n,a).to.equal(o)},r.Throw=function(n,o,a,i){new x(n,i).to.Throw(o,a)},r.exist=function(n,o){new x(n,o).to.exist},r.not={},r.not.equal=function(n,o,a){new x(n,a).to.not.equal(o)},r.not.Throw=function(n,o,a,i){new x(n,i).to.not.Throw(o,a)},r.not.exist=function(n,o){new x(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}$(dd,"loadShould");var nF=dd,oF=dd;function q(e,t){var r=new x(null,null,q,!0);r.assert(e,t,"[ negation message unavailable ]")}$(q,"assert");q.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new he(r,{actual:e,expected:t,operator:n},q.fail)};q.isOk=function(e,t){new x(e,t,q.isOk,!0).is.ok};q.isNotOk=function(e,t){new x(e,t,q.isNotOk,!0).is.not.ok};q.equal=function(e,t,r){var n=new x(e,r,q.equal,!0);n.assert(t==ae(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};q.notEqual=function(e,t,r){var n=new x(e,r,q.notEqual,!0);n.assert(t!=ae(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};q.strictEqual=function(e,t,r){new x(e,r,q.strictEqual,!0).to.equal(t)};q.notStrictEqual=function(e,t,r){new x(e,r,q.notStrictEqual,!0).to.not.equal(t)};q.deepEqual=q.deepStrictEqual=function(e,t,r){new x(e,r,q.deepEqual,!0).to.eql(t)};q.notDeepEqual=function(e,t,r){new x(e,r,q.notDeepEqual,!0).to.not.eql(t)};q.isAbove=function(e,t,r){new x(e,r,q.isAbove,!0).to.be.above(t)};q.isAtLeast=function(e,t,r){new x(e,r,q.isAtLeast,!0).to.be.least(t)};q.isBelow=function(e,t,r){new x(e,r,q.isBelow,!0).to.be.below(t)};q.isAtMost=function(e,t,r){new x(e,r,q.isAtMost,!0).to.be.most(t)};q.isTrue=function(e,t){new x(e,t,q.isTrue,!0).is.true};q.isNotTrue=function(e,t){new x(e,t,q.isNotTrue,!0).to.not.equal(!0)};q.isFalse=function(e,t){new x(e,t,q.isFalse,!0).is.false};q.isNotFalse=function(e,t){new x(e,t,q.isNotFalse,!0).to.not.equal(!1)};q.isNull=function(e,t){new x(e,t,q.isNull,!0).to.equal(null)};q.isNotNull=function(e,t){new x(e,t,q.isNotNull,!0).to.not.equal(null)};q.isNaN=function(e,t){new x(e,t,q.isNaN,!0).to.be.NaN};q.isNotNaN=function(e,t){new x(e,t,q.isNotNaN,!0).not.to.be.NaN};q.exists=function(e,t){new x(e,t,q.exists,!0).to.exist};q.notExists=function(e,t){new x(e,t,q.notExists,!0).to.not.exist};q.isUndefined=function(e,t){new x(e,t,q.isUndefined,!0).to.equal(void 0)};q.isDefined=function(e,t){new x(e,t,q.isDefined,!0).to.not.equal(void 0)};q.isCallable=function(e,t){new x(e,t,q.isCallable,!0).is.callable};q.isNotCallable=function(e,t){new x(e,t,q.isNotCallable,!0).is.not.callable};q.isObject=function(e,t){new x(e,t,q.isObject,!0).to.be.a("object")};q.isNotObject=function(e,t){new x(e,t,q.isNotObject,!0).to.not.be.a("object")};q.isArray=function(e,t){new x(e,t,q.isArray,!0).to.be.an("array")};q.isNotArray=function(e,t){new x(e,t,q.isNotArray,!0).to.not.be.an("array")};q.isString=function(e,t){new x(e,t,q.isString,!0).to.be.a("string")};q.isNotString=function(e,t){new x(e,t,q.isNotString,!0).to.not.be.a("string")};q.isNumber=function(e,t){new x(e,t,q.isNumber,!0).to.be.a("number")};q.isNotNumber=function(e,t){new x(e,t,q.isNotNumber,!0).to.not.be.a("number")};q.isNumeric=function(e,t){new x(e,t,q.isNumeric,!0).is.numeric};q.isNotNumeric=function(e,t){new x(e,t,q.isNotNumeric,!0).is.not.numeric};q.isFinite=function(e,t){new x(e,t,q.isFinite,!0).to.be.finite};q.isBoolean=function(e,t){new x(e,t,q.isBoolean,!0).to.be.a("boolean")};q.isNotBoolean=function(e,t){new x(e,t,q.isNotBoolean,!0).to.not.be.a("boolean")};q.typeOf=function(e,t,r){new x(e,r,q.typeOf,!0).to.be.a(t)};q.notTypeOf=function(e,t,r){new x(e,r,q.notTypeOf,!0).to.not.be.a(t)};q.instanceOf=function(e,t,r){new x(e,r,q.instanceOf,!0).to.be.instanceOf(t)};q.notInstanceOf=function(e,t,r){new x(e,r,q.notInstanceOf,!0).to.not.be.instanceOf(t)};q.include=function(e,t,r){new x(e,r,q.include,!0).include(t)};q.notInclude=function(e,t,r){new x(e,r,q.notInclude,!0).not.include(t)};q.deepInclude=function(e,t,r){new x(e,r,q.deepInclude,!0).deep.include(t)};q.notDeepInclude=function(e,t,r){new x(e,r,q.notDeepInclude,!0).not.deep.include(t)};q.nestedInclude=function(e,t,r){new x(e,r,q.nestedInclude,!0).nested.include(t)};q.notNestedInclude=function(e,t,r){new x(e,r,q.notNestedInclude,!0).not.nested.include(t)};q.deepNestedInclude=function(e,t,r){new x(e,r,q.deepNestedInclude,!0).deep.nested.include(t)};q.notDeepNestedInclude=function(e,t,r){new x(e,r,q.notDeepNestedInclude,!0).not.deep.nested.include(t)};q.ownInclude=function(e,t,r){new x(e,r,q.ownInclude,!0).own.include(t)};q.notOwnInclude=function(e,t,r){new x(e,r,q.notOwnInclude,!0).not.own.include(t)};q.deepOwnInclude=function(e,t,r){new x(e,r,q.deepOwnInclude,!0).deep.own.include(t)};q.notDeepOwnInclude=function(e,t,r){new x(e,r,q.notDeepOwnInclude,!0).not.deep.own.include(t)};q.match=function(e,t,r){new x(e,r,q.match,!0).to.match(t)};q.notMatch=function(e,t,r){new x(e,r,q.notMatch,!0).to.not.match(t)};q.property=function(e,t,r){new x(e,r,q.property,!0).to.have.property(t)};q.notProperty=function(e,t,r){new x(e,r,q.notProperty,!0).to.not.have.property(t)};q.propertyVal=function(e,t,r,n){new x(e,n,q.propertyVal,!0).to.have.property(t,r)};q.notPropertyVal=function(e,t,r,n){new x(e,n,q.notPropertyVal,!0).to.not.have.property(t,r)};q.deepPropertyVal=function(e,t,r,n){new x(e,n,q.deepPropertyVal,!0).to.have.deep.property(t,r)};q.notDeepPropertyVal=function(e,t,r,n){new x(e,n,q.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};q.ownProperty=function(e,t,r){new x(e,r,q.ownProperty,!0).to.have.own.property(t)};q.notOwnProperty=function(e,t,r){new x(e,r,q.notOwnProperty,!0).to.not.have.own.property(t)};q.ownPropertyVal=function(e,t,r,n){new x(e,n,q.ownPropertyVal,!0).to.have.own.property(t,r)};q.notOwnPropertyVal=function(e,t,r,n){new x(e,n,q.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};q.deepOwnPropertyVal=function(e,t,r,n){new x(e,n,q.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};q.notDeepOwnPropertyVal=function(e,t,r,n){new x(e,n,q.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};q.nestedProperty=function(e,t,r){new x(e,r,q.nestedProperty,!0).to.have.nested.property(t)};q.notNestedProperty=function(e,t,r){new x(e,r,q.notNestedProperty,!0).to.not.have.nested.property(t)};q.nestedPropertyVal=function(e,t,r,n){new x(e,n,q.nestedPropertyVal,!0).to.have.nested.property(t,r)};q.notNestedPropertyVal=function(e,t,r,n){new x(e,n,q.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};q.deepNestedPropertyVal=function(e,t,r,n){new x(e,n,q.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};q.notDeepNestedPropertyVal=function(e,t,r,n){new x(e,n,q.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};q.lengthOf=function(e,t,r){new x(e,r,q.lengthOf,!0).to.have.lengthOf(t)};q.hasAnyKeys=function(e,t,r){new x(e,r,q.hasAnyKeys,!0).to.have.any.keys(t)};q.hasAllKeys=function(e,t,r){new x(e,r,q.hasAllKeys,!0).to.have.all.keys(t)};q.containsAllKeys=function(e,t,r){new x(e,r,q.containsAllKeys,!0).to.contain.all.keys(t)};q.doesNotHaveAnyKeys=function(e,t,r){new x(e,r,q.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};q.doesNotHaveAllKeys=function(e,t,r){new x(e,r,q.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};q.hasAnyDeepKeys=function(e,t,r){new x(e,r,q.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};q.hasAllDeepKeys=function(e,t,r){new x(e,r,q.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};q.containsAllDeepKeys=function(e,t,r){new x(e,r,q.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};q.doesNotHaveAnyDeepKeys=function(e,t,r){new x(e,r,q.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};q.doesNotHaveAllDeepKeys=function(e,t,r){new x(e,r,q.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};q.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);var o=new x(e,n,q.throws,!0).to.throw(t,r);return ae(o,"object")};q.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new x(e,n,q.doesNotThrow,!0).to.not.throw(t,r)};q.operator=function(e,t,r,n){var o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new he(n+'Invalid operator "'+t+'"',void 0,q.operator)}var a=new x(o,n,q.operator,!0);a.assert(ae(a,"object")===!0,"expected "+pe(e)+" to be "+t+" "+pe(r),"expected "+pe(e)+" to not be "+t+" "+pe(r))};q.closeTo=function(e,t,r,n){new x(e,n,q.closeTo,!0).to.be.closeTo(t,r)};q.approximately=function(e,t,r,n){new x(e,n,q.approximately,!0).to.be.approximately(t,r)};q.sameMembers=function(e,t,r){new x(e,r,q.sameMembers,!0).to.have.same.members(t)};q.notSameMembers=function(e,t,r){new x(e,r,q.notSameMembers,!0).to.not.have.same.members(t)};q.sameDeepMembers=function(e,t,r){new x(e,r,q.sameDeepMembers,!0).to.have.same.deep.members(t)};q.notSameDeepMembers=function(e,t,r){new x(e,r,q.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};q.sameOrderedMembers=function(e,t,r){new x(e,r,q.sameOrderedMembers,!0).to.have.same.ordered.members(t)};q.notSameOrderedMembers=function(e,t,r){new x(e,r,q.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};q.sameDeepOrderedMembers=function(e,t,r){new x(e,r,q.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};q.notSameDeepOrderedMembers=function(e,t,r){new x(e,r,q.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};q.includeMembers=function(e,t,r){new x(e,r,q.includeMembers,!0).to.include.members(t)};q.notIncludeMembers=function(e,t,r){new x(e,r,q.notIncludeMembers,!0).to.not.include.members(t)};q.includeDeepMembers=function(e,t,r){new x(e,r,q.includeDeepMembers,!0).to.include.deep.members(t)};q.notIncludeDeepMembers=function(e,t,r){new x(e,r,q.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};q.includeOrderedMembers=function(e,t,r){new x(e,r,q.includeOrderedMembers,!0).to.include.ordered.members(t)};q.notIncludeOrderedMembers=function(e,t,r){new x(e,r,q.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};q.includeDeepOrderedMembers=function(e,t,r){new x(e,r,q.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};q.notIncludeDeepOrderedMembers=function(e,t,r){new x(e,r,q.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};q.oneOf=function(e,t,r){new x(e,r,q.oneOf,!0).to.be.oneOf(t)};q.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${pe(e)} to be an iterable`:`expected ${pe(e)} to be an iterable`,new he(t,void 0,q.isIterable)};q.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.changes,!0).to.change(t,r)};q.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.changesBy,!0).to.change(t,r).by(n)};q.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.doesNotChange,!0).to.not.change(t,r)};q.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.changesButNotBy,!0).to.change(t,r).but.not.by(n)};q.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.increases,!0).to.increase(t,r)};q.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.increasesBy,!0).to.increase(t,r).by(n)};q.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.doesNotIncrease,!0).to.not.increase(t,r)};q.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};q.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.decreases,!0).to.decrease(t,r)};q.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.decreasesBy,!0).to.decrease(t,r).by(n)};q.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new x(e,n,q.doesNotDecrease,!0).to.not.decrease(t,r)};q.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);return new x(e,o,q.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};q.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new x(e,o,q.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};q.ifError=function(e){if(e)throw e};q.isExtensible=function(e,t){new x(e,t,q.isExtensible,!0).to.be.extensible};q.isNotExtensible=function(e,t){new x(e,t,q.isNotExtensible,!0).to.not.be.extensible};q.isSealed=function(e,t){new x(e,t,q.isSealed,!0).to.be.sealed};q.isNotSealed=function(e,t){new x(e,t,q.isNotSealed,!0).to.not.be.sealed};q.isFrozen=function(e,t){new x(e,t,q.isFrozen,!0).to.be.frozen};q.isNotFrozen=function(e,t){new x(e,t,q.isNotFrozen,!0).to.not.be.frozen};q.isEmpty=function(e,t){new x(e,t,q.isEmpty,!0).to.be.empty};q.isNotEmpty=function(e,t){new x(e,t,q.isNotEmpty,!0).to.not.be.empty};q.containsSubset=function(e,t,r){new x(e,r).to.containSubset(t)};q.doesNotContainSubset=function(e,t,r){new x(e,r).to.not.containSubset(t)};var aF=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of aF)q[t]=q[e];var Xy=[];function Tn(e){let t={use:Tn,AssertionError:he,util:Ft,config:it,expect:Vr,assert:q,Assertion:x,...Zv};return~Xy.indexOf(e)||(e(t,Ft),Xy.push(e)),t}$(Tn,"use");var e0={};wc(e0,{toBeChecked:()=>U0,toBeDisabled:()=>j0,toBeEmpty:()=>v0,toBeEmptyDOMElement:()=>E0,toBeEnabled:()=>I0,toBeInTheDOM:()=>$u,toBeInTheDocument:()=>g0,toBeInvalid:()=>L0,toBePartiallyChecked:()=>V0,toBeRequired:()=>D0,toBeValid:()=>B0,toBeVisible:()=>O0,toContainElement:()=>Uu,toContainHTML:()=>_0,toHaveAccessibleDescription:()=>Hu,toHaveAccessibleErrorMessage:()=>w0,toHaveAccessibleName:()=>zu,toHaveAttribute:()=>C0,toHaveClass:()=>S0,toHaveDescription:()=>z0,toHaveDisplayValue:()=>$0,toHaveErrorMessage:()=>G0,toHaveFocus:()=>A0,toHaveFormValues:()=>T0,toHaveRole:()=>Vu,toHaveStyle:()=>Gu,toHaveTextContent:()=>R0,toHaveValue:()=>k0});var Jy=mt(Kg(),1);function t0(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function pd(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var r0={};t0(r0);pd(r0,"default",()=>n0);var n0=class extends Error{constructor(e,t,r,n,o){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=o}},o0={};t0(o0);pd(o0,"default",()=>a0);var a0=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},iF={};pd(iF,"CssTypes",()=>Ie);var Ie;(function(e){e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports"})(Ie||(Ie={}));var su=/\/\*[^]*?(?:\*\/|$)/g,sF=(e,t)=>{t=t||{};let r=1,n=1;function o(H){let U=H.match(/\n/g);U&&(r+=U.length);let z=H.lastIndexOf(`
|
|
306
|
+
`);n=~z?H.length-z:n+H.length}function a(){let H={line:r,column:n};return function(U){return U.position=new a0(H,{line:r,column:n},t?.source||""),p(),U}}let i=[];function s(H){let U=new n0(t?.source||"",H,r,n,e);if(t?.silent)i.push(U);else throw U}function l(){let H=d();return{type:Ie.stylesheet,stylesheet:{source:t?.source,rules:H,parsingErrors:i}}}function c(){return m(/^{\s*/)}function u(){return m(/^}/)}function d(){let H,U=[];for(p(),h(U);e.length&&e.charAt(0)!=="}"&&(H=re()||te());)H&&(U.push(H),h(U));return U}function m(H){let U=H.exec(e);if(!U)return;let z=U[0];return o(z),e=e.slice(z.length),U}function p(){m(/^\s*/)}function h(H){let U;for(H=H||[];U=g();)U&&H.push(U);return H}function g(){let H=a();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let U=m(/^\/\*[^]*?\*\//);return U?H({type:Ie.comment,comment:U[0].slice(2,-2)}):s("End of comment missing")}function y(H,U,z){let K=U+1,W=!1,ee=H.indexOf(")",K);for(;!W&&ee!==-1;){let se=H.indexOf("(",K);se!==-1&&se<ee?(K=y(H,se+1)+1,ee=H.indexOf(")",K)):W=!0}return W&&ee!==-1?ee:-1}function b(){let H=m(/^([^{]+)/);if(!H)return;let U=gt(H[0]).replace(su,"");if(U.indexOf(",")===-1)return[U];let z=0,K=U.indexOf("(",z);for(;K!==-1;){let W=y(U,K);if(W===-1)break;z=W+1,U=U.substring(0,K)+U.substring(K,W).replace(/,/g,"\u200C")+U.substring(W),K=U.indexOf("(",z)}return U=U.replace(/("|')(?:\\\1|.)*?\1/g,W=>W.replace(/,/g,"\u200C")),U.split(",").map(W=>gt(W.replace(/\u200C/g,",")))}function v(){let H=a(),U=m(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!U)return;let z=gt(U[0]);if(!m(/^:\s*/))return s("property missing ':'");let K=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),W=H({type:Ie.declaration,property:z.replace(su,""),value:K?gt(K[0]).replace(su,""):""});return m(/^[;\s]*/),W}function C(){let H=[];if(!c())return s("missing '{'");h(H);let U;for(;U=v();)U&&(H.push(U),h(H));return u()?H:s("missing '}'")}function S(){let H,U=[],z=a();for(;H=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)U.push(H[1]),m(/^,\s*/);if(U.length)return z({type:Ie.keyframe,values:U,declarations:C()||[]})}function A(){let H=a(),U=m(/^@([-\w]+)?keyframes\s*/);if(!U)return;let z=U[1],K=m(/^([-\w]+)\s*/);if(!K)return s("@keyframes missing name");let W=K[1];if(!c())return s("@keyframes missing '{'");let ee,se=h();for(;ee=S();)se.push(ee),se=se.concat(h());return u()?H({type:Ie.keyframes,name:W,vendor:z,keyframes:se}):s("@keyframes missing '}'")}function _(){let H=a(),U=m(/^@supports *([^{]+)/);if(!U)return;let z=gt(U[1]);if(!c())return s("@supports missing '{'");let K=h().concat(d());return u()?H({type:Ie.supports,supports:z,rules:K}):s("@supports missing '}'")}function E(){let H=a();if(!m(/^@host\s*/))return;if(!c())return s("@host missing '{'");let U=h().concat(d());return u()?H({type:Ie.host,rules:U}):s("@host missing '}'")}function R(){let H=a(),U=m(/^@container *([^{]+)/);if(!U)return;let z=gt(U[1]);if(!c())return s("@container missing '{'");let K=h().concat(d());return u()?H({type:Ie.container,container:z,rules:K}):s("@container missing '}'")}function P(){let H=a(),U=m(/^@layer *([^{;@]+)/);if(!U)return;let z=gt(U[1]);if(!c())return m(/^[;\s]*/),H({type:Ie.layer,layer:z});let K=h().concat(d());return u()?H({type:Ie.layer,layer:z,rules:K}):s("@layer missing '}'")}function N(){let H=a(),U=m(/^@media *([^{]+)/);if(!U)return;let z=gt(U[1]);if(!c())return s("@media missing '{'");let K=h().concat(d());return u()?H({type:Ie.media,media:z,rules:K}):s("@media missing '}'")}function B(){let H=a(),U=m(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(U)return H({type:Ie.customMedia,name:gt(U[1]),media:gt(U[2])})}function j(){let H=a();if(!m(/^@page */))return;let U=b()||[];if(!c())return s("@page missing '{'");let z=h(),K;for(;K=v();)z.push(K),z=z.concat(h());return u()?H({type:Ie.page,selectors:U,declarations:z}):s("@page missing '}'")}function F(){let H=a(),U=m(/^@([-\w]+)?document *([^{]+)/);if(!U)return;let z=gt(U[1]),K=gt(U[2]);if(!c())return s("@document missing '{'");let W=h().concat(d());return u()?H({type:Ie.document,document:K,vendor:z,rules:W}):s("@document missing '}'")}function T(){let H=a();if(!m(/^@font-face\s*/))return;if(!c())return s("@font-face missing '{'");let U=h(),z;for(;z=v();)U.push(z),U=U.concat(h());return u()?H({type:Ie.fontFace,declarations:U}):s("@font-face missing '}'")}function M(){let H=a();if(!m(/^@starting-style\s*/))return;if(!c())return s("@starting-style missing '{'");let U=h().concat(d());return u()?H({type:Ie.startingStyle,rules:U}):s("@starting-style missing '}'")}let D=J("import"),Y=J("charset"),G=J("namespace");function J(H){let U=new RegExp("^@"+H+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let z=a(),K=m(U);if(!K)return;let W={type:H};return W[H]=K[1].trim(),z(W)}}function re(){if(e[0]==="@")return A()||N()||B()||_()||D()||Y()||G()||F()||j()||E()||T()||R()||M()||P()}function te(){let H=a(),U=b();return U?(h(),H({type:Ie.rule,selectors:U,declarations:C()||[]})):s("selector missing")}return Bu(l())};function gt(e){return e?e.trim():""}function Bu(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let o in e){let a=e[o];Array.isArray(a)?a.forEach(i=>{Bu(i,n)}):a&&typeof a=="object"&&Bu(a,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var lF=sF,uF=lF,cF=Object.prototype.toString;function Qy(e){return typeof e=="function"||cF.call(e)==="[object Function]"}function dF(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var pF=Math.pow(2,53)-1;function fF(e){var t=dF(e);return Math.min(Math.max(t,0),pF)}function Pt(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!Qy(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=fF(n.length),a=Qy(r)?Object(new r(o)):new Array(o),i=0,s;i<o;)s=n[i],t?a[i]=t(s,i):a[i]=s,i+=1;return a.length=o,a}function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function mF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i0(n.key),n)}}function hF(e,t,r){return t&&Zy(e.prototype,t),r&&Zy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yF(e,t,r){return t=i0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i0(e){var t=bF(e,"string");return Co(t)==="symbol"?t:String(t)}function bF(e,t){if(Co(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gF=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];mF(this,e),yF(this,"items",void 0),this.items=t}return hF(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),vF=typeof Set>"u"?Set:gF;function rt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var EF={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},_F={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function RF(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=_F[t])!==null&&n!==void 0&&n.has(r))})}function s0(e,t){return RF(e,t)}function wF(e){var t=SF(e);if(t===null||ku.indexOf(t)!==-1){var r=CF(e);if(ku.indexOf(t||"")===-1||s0(e,r||""))return r}return t}function CF(e){var t=EF[rt(e)];if(t!==void 0)return t;switch(rt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!s0(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function SF(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var ku=["presentation","none"];function Ce(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function l0(e){return Ce(e)&&rt(e)==="caption"}function Ba(e){return Ce(e)&&rt(e)==="input"}function AF(e){return Ce(e)&&rt(e)==="optgroup"}function TF(e){return Ce(e)&&rt(e)==="select"}function PF(e){return Ce(e)&&rt(e)==="table"}function OF(e){return Ce(e)&&rt(e)==="textarea"}function qF(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function xF(e){return Ce(e)&&rt(e)==="fieldset"}function MF(e){return Ce(e)&&rt(e)==="legend"}function NF(e){return Ce(e)&&rt(e)==="slot"}function jF(e){return Ce(e)&&e.ownerSVGElement!==void 0}function IF(e){return Ce(e)&&rt(e)==="svg"}function DF(e){return jF(e)&&rt(e)==="title"}function ei(e,t){if(Ce(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function Jt(e,t){return Ce(e)?t.indexOf(wF(e))!==-1:!1}function FF(e){return e.trim().replace(/\s\s+/g," ")}function LF(e,t){if(!Ce(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function BF(e){return Jt(e,["button","combobox","listbox","textbox"])||u0(e,"range")}function u0(e,t){if(!Ce(e))return!1;switch(t){case"range":return Jt(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function eb(e,t){var r=Pt(e.querySelectorAll(t));return ei(e,"aria-owns").forEach(function(n){r.push.apply(r,Pt(n.querySelectorAll(t)))}),r}function kF(e){return TF(e)?e.selectedOptions||eb(e,"[selected]"):eb(e,'[aria-selected="true"]')}function $F(e){return Jt(e,ku)}function UF(e){return l0(e)}function HF(e){return Jt(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function VF(e){return!1}function zF(e){return Ba(e)||OF(e)?e.value:e.textContent||""}function tb(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function c0(e){var t=rt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function d0(e){if(c0(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Ce(r)){var n=d0(r);n!==null&&(t=n)}}),t}function GF(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):d0(e)}function YF(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Pt(t);if(!c0(e))return null;var r=e.ownerDocument;return Pt(r.querySelectorAll("label")).filter(function(n){return GF(n)===e})}function WF(e){var t=e.assignedNodes();return t.length===0?Pt(e.childNodes):t}function p0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new vF,n=qF(e),o=t.compute,a=o===void 0?"name":o,i=t.computedStyleSupportsPseudoElements,s=i===void 0?t.getComputedStyle!==void 0:i,l=t.getComputedStyle,c=l===void 0?n.getComputedStyle.bind(n):l,u=t.hidden,d=u===void 0?!1:u;function m(b,v){var C="";if(Ce(b)&&s){var S=c(b,"::before"),A=tb(S);C="".concat(A," ").concat(C)}var _=NF(b)?WF(b):Pt(b.childNodes).concat(ei(b,"aria-owns"));if(_.forEach(function(P){var N=y(P,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),B=Ce(P)?c(P).getPropertyValue("display"):"inline",j=B!=="inline"?" ":"";C+="".concat(j).concat(N).concat(j)}),Ce(b)&&s){var E=c(b,"::after"),R=tb(E);C="".concat(C," ").concat(R)}return C.trim()}function p(b,v){var C=b.getAttributeNode(v);return C!==null&&!r.has(C)&&C.value.trim()!==""?(r.add(C),C.value):null}function h(b){return Ce(b)?p(b,"title"):null}function g(b){if(!Ce(b))return null;if(xF(b)){r.add(b);for(var v=Pt(b.childNodes),C=0;C<v.length;C+=1){var S=v[C];if(MF(S))return y(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(PF(b)){r.add(b);for(var A=Pt(b.childNodes),_=0;_<A.length;_+=1){var E=A[_];if(l0(E))return y(E,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(IF(b)){r.add(b);for(var R=Pt(b.childNodes),P=0;P<R.length;P+=1){var N=R[P];if(DF(N))return N.textContent}return null}else if(rt(b)==="img"||rt(b)==="area"){var B=p(b,"alt");if(B!==null)return B}else if(AF(b)){var j=p(b,"label");if(j!==null)return j}if(Ba(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var F=p(b,"value");if(F!==null)return F;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var T=YF(b);if(T!==null&&T.length!==0)return r.add(b),Pt(T).map(function(G){return y(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(Ba(b)&&b.type==="image"){var M=p(b,"alt");if(M!==null)return M;var D=p(b,"title");return D!==null?D:"Submit Query"}if(Jt(b,["button"])){var Y=m(b,{isEmbeddedInLabel:!1,isReferenced:!1});if(Y!=="")return Y}return null}function y(b,v){if(r.has(b))return"";if(!d&&LF(b,c)&&!v.isReferenced)return r.add(b),"";var C=Ce(b)?b.getAttributeNode("aria-labelledby"):null,S=C!==null&&!r.has(C)?ei(b,"aria-labelledby"):[];if(a==="name"&&!v.isReferenced&&S.length>0)return r.add(C),S.map(function(B){return y(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var A=v.recursion&&BF(b)&&a==="name";if(!A){var _=(Ce(b)&&b.getAttribute("aria-label")||"").trim();if(_!==""&&a==="name")return r.add(b),_;if(!$F(b)){var E=g(b);if(E!==null)return r.add(b),E}}if(Jt(b,["menu"]))return r.add(b),"";if(A||v.isEmbeddedInLabel||v.isReferenced){if(Jt(b,["combobox","listbox"])){r.add(b);var R=kF(b);return R.length===0?Ba(b)?b.value:"":Pt(R).map(function(B){return y(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(u0(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(Jt(b,["textbox"]))return r.add(b),zF(b)}if(HF(b)||Ce(b)&&v.isReferenced||UF(b)||VF()){var P=m(b,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});if(P!=="")return r.add(b),P}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(v.recursion)return r.add(b),m(b,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});var N=h(b);return N!==null?(r.add(b),N):(r.add(b),"")}return FF(y(e,{isEmbeddedInLabel:!1,isReferenced:a==="description",recursion:!1}))}function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rb(Object(r),!0).forEach(function(n){KF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KF(e,t,r){return t=XF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XF(e){var t=JF(e,"string");return So(t)==="symbol"?t:String(t)}function JF(e,t){if(So(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(So(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ei(e,"aria-describedby").map(function(a){return p0(a,nb(nb({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var o=e.getAttribute("title");r=o===null?"":o}return r}function ZF(e){return Jt(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function eL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ZF(e)?"":p0(e,t)}var fd=mt(Xg(),1),tL=mt(Qg(),1),f0=mt(uv(),1),rL=mt(cv(),1),m0=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let o="";try{o=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,o].join(`
|
|
307
|
+
`)}},ob=class extends m0{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},ab=class extends m0{constructor(...e){super("be a Node",...e)}};function h0(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function nL(e,...t){h0(e,ab,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new ab(e,...t)}function ve(e,...t){h0(e,ob,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new ob(e,...t)}var oL=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
|
|
308
|
+
`)}};function aL(e,...t){let r=uF(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new oL({css:e,message:`Syntax error parsing expected css: ${n} on line: ${o}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:o,value:a})=>Object.assign(n,{[o]:a}),{})}function ib(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function et(e,t,r,n,o,a){return[`${t}
|
|
309
309
|
`,`${r}:
|
|
310
|
-
${e.utils.EXPECTED_COLOR((0,
|
|
311
|
-
${e.utils.RECEIVED_COLOR((0,
|
|
312
|
-
`)}function iL(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function qi(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function xi(e){return e.replace(/\s+/g," ").trim()}function Rr(e){return e.tagName&&e.tagName.toLowerCase()}function sL({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function lL(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var uL=["meter","progressbar","slider","spinbutton"];function cL(e){if(uL.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function
|
|
313
|
-
`)}}function
|
|
314
|
-
`)}}function
|
|
315
|
-
`)}}function
|
|
310
|
+
${e.utils.EXPECTED_COLOR((0,Jy.default)(ib(e,n),2))}`,`${o}:
|
|
311
|
+
${e.utils.RECEIVED_COLOR((0,Jy.default)(ib(e,a),2))}`].join(`
|
|
312
|
+
`)}function iL(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function qi(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function xi(e){return e.replace(/\s+/g," ").trim()}function Rr(e){return e.tagName&&e.tagName.toLowerCase()}function sL({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function lL(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var uL=["meter","progressbar","slider","spinbutton"];function cL(e){if(uL.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function y0(e){if(e)switch(e.tagName.toLowerCase()){case"input":return lL(e);case"select":return sL(e);default:return e.value??cL(e)}}function dL(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function b0(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(r=>new Set(t).has(r))}function $u(e,t){return qi("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&ve(e,$u,this),t&&ve(t,$u,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
313
|
+
`)}}function g0(e){(e!==null||!this.isNot)&&ve(e,g0,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
314
|
+
`)}}function v0(e){return qi("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),ve(e,v0,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
315
|
+
`)}}function E0(e){return ve(e,E0,this),{pass:pL(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
316
316
|
`)}}function pL(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function Uu(e,t){return ve(e,Uu,this),t!==null&&ve(t,Uu,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
|
317
317
|
`)].join(`
|
|
318
|
-
`)}}function fL(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function
|
|
319
|
-
`)}}function
|
|
320
|
-
`)}}function _L(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(o=>{n.style[o]=t[o],r[o]=n.style[o]}),r}function RL(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let o=r.startsWith("--"),a=[r];return o||a.push(r.toLowerCase()),a.some(i=>t[i]===n||t.getPropertyValue(i)===n)})}function
|
|
321
|
-
`)}function wL(e,t,r){let n=Array.from(r).filter(o=>t[o]!==void 0).reduce((o,a)=>Object.assign(o,{[a]:r.getPropertyValue(a)}),{});return e(
|
|
318
|
+
`)}}function fL(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function _0(e,t){if(ve(e,_0,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(fL(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
319
|
+
`)}}function R0(e,t,r={normalizeWhitespace:!0}){nL(e,R0,this);let n=r.normalizeWhitespace?xi(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&iL(n,t),message:()=>{let a=this.isNot?"not to":"to";return et(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),o?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${a} have text content`,t,"Received",n)}}}function Hu(e,t){ve(e,Hu,this);let r=QF(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let a=this.isNot?"not to":"to";return et(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Hu.name}`,"element",""),`Expected element ${a} have accessible description`,t,"Received",r)}}}var mo="aria-invalid",mL=["false"];function w0(e,t){ve(e,w0,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",o=e.getAttribute("aria-errormessage");if(o&&/\s+/.test(o))return{pass:!1,message:()=>et(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${o}"`)};let a=e.getAttribute(mo);if(!e.hasAttribute(mo)||mL.includes(a))return{pass:!1,message:()=>et(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${mo}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${mo}="${e.getAttribute(mo)}`:null)};let i=xi(e.ownerDocument.getElementById(o)?.textContent??"");return{pass:t===void 0?!!i:t instanceof RegExp?t.test(i):this.equals(i,t),message:()=>et(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",i)}}var hL=gL(fd.elementRoles);function Vu(e,t){ve(e,Vu,this);let r=yL(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return et(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Vu.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function yL(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):bL(e)}function bL(e){for(let{match:t,roles:r}of hL)if(t(e))return[...r];return[]}function gL(e){function t({name:i,attributes:s}){return`${i}${s.map(({name:l,value:c,constraints:u=[]})=>u.indexOf("undefined")!==-1?`:not([${l}])`:c?`[${l}="${c}"]`:`[${l}]`).join("")}`}function r({attributes:i=[]}){return i.length}function n({specificity:i},{specificity:s}){return s-i}function o(i){let{attributes:s=[]}=i,l=s.findIndex(u=>u.value&&u.name==="type"&&u.value==="text");l>=0&&(s=[...s.slice(0,l),...s.slice(l+1)]);let c=t({...i,attributes:s});return u=>l>=0&&u.type!=="text"?!1:u.matches(c)}let a=[];for(let[i,s]of e.entries())a=[...a,{match:o(i),roles:Array.from(s),specificity:r(i)}];return a.sort(n)}function zu(e,t){ve(e,zu,this);let r=eL(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let a=this.isNot?"not to":"to";return et(this,this.utils.matcherHint(`${this.isNot?".not":""}.${zu.name}`,"element",""),`Expected element ${a} have accessible name`,t,"Received",r)}}}function sb(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function vL(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function C0(e,t,r){ve(e,C0,this);let n=r!==void 0,o=e.hasAttribute(t),a=e.getAttribute(t);return{pass:n?o&&this.equals(a,r):o,message:()=>{let i=this.isNot?"not to":"to",s=o?sb(this.utils.stringify,t,a):null,l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:vL(this.utils.stringify,t,r)});return et(this,l,`Expected the element ${i} have attribute`,sb(this.utils.stringify,t,r),"Received",s)}}}function EL(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function lb(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function ub(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function S0(e,...t){ve(e,S0,this);let{expectedClassNames:r,options:n}=EL(t),o=lb(e.getAttribute("class")),a=r.reduce((s,l)=>s.concat(typeof l=="string"||!l?lb(l):l),[]),i=a.some(s=>s instanceof RegExp);if(n.exact&&i)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:ub(a,o)&&a.length===o.length,message:()=>{let s=this.isNot?"not to":"to";return et(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(a.join(" "))),`Expected the element ${s} have EXACTLY defined classes`,a.join(" "),"Received",o.join(" "))}}:a.length>0?{pass:ub(a,o),message:()=>{let s=this.isNot?"not to":"to";return et(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(a.join(" "))),`Expected the element ${s} have class`,a.join(" "),"Received",o.join(" "))}}:{pass:this.isNot?o.length>0:!1,message:()=>this.isNot?et(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",o.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
320
|
+
`)}}function _L(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(o=>{n.style[o]=t[o],r[o]=n.style[o]}),r}function RL(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let o=r.startsWith("--"),a=[r];return o||a.push(r.toLowerCase()),a.some(i=>t[i]===n||t.getPropertyValue(i)===n)})}function cb(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
321
|
+
`)}function wL(e,t,r){let n=Array.from(r).filter(o=>t[o]!==void 0).reduce((o,a)=>Object.assign(o,{[a]:r.getPropertyValue(a)}),{});return e(cb(t),cb(n)).replace(`${tL.default.red("+ Received")}
|
|
322
322
|
`,"")}function Gu(e,t){ve(e,Gu,this);let r=typeof t=="object"?t:aL(t,Gu,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=_L(e.ownerDocument,r),a=n(e);return{pass:RL(o,a),message:()=>{let i=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(i,"element",""),wL(this.utils.diff,o,a)].join(`
|
|
323
323
|
|
|
324
|
-
`)}}}function
|
|
325
|
-
`)}}function CL(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function SL(e,t){let r=[...e.querySelectorAll(`[name="${(0,rL.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return
|
|
326
|
-
|
|
327
|
-
`)}}}function PL(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:o}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&o!=="0"&&o!==0}function OL(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function
|
|
328
|
-
`)}}}var qL=["fieldset","input","select","optgroup","option","button","textarea"];function xL(e,t){return Rr(e)==="legend"&&Rr(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Rr(r)==="legend"))}function ML(e,t){return
|
|
329
|
-
`)}}}function
|
|
330
|
-
`)}}}var jL=["select","textarea"],IL=["input","select","textarea"],DL=["color","hidden","range","submit","image","reset"],FL=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function LL(e){return jL.includes(Rr(e))&&e.hasAttribute("required")}function BL(e){return Rr(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!DL.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function kL(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(IL.includes(Rr(e))||e.hasAttribute("role")&&FL.includes(e.getAttribute("role")))}function
|
|
331
|
-
`)}}}var $L=["form","input","select","textarea"];function UL(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function HL(e){return $L.includes(Rr(e))}function
|
|
332
|
-
`)}}}function
|
|
333
|
-
`)}}}function
|
|
334
|
-
`)}}}function GL(){return dL(YL().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function YL(){return fd.roles.keys().filter(
|
|
335
|
-
`)}}}function
|
|
336
|
-
`)}function
|
|
337
|
-
`)&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+l.prop.open+c+l.prop.close}=${l.value.open}${d}${l.value.close}`}).join("")}function gd(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?
|
|
338
|
-
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new
|
|
324
|
+
`)}}}function A0(e){return ve(e,A0,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
|
325
|
+
`)}}function CL(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function SL(e,t){let r=[...e.querySelectorAll(`[name="${(0,rL.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return y0(r[0]);default:return CL(r)}}function AL(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function TL(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[AL(r)]:SL(e,r)}),{})}function T0(e,t){if(ve(e,T0,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=TL(e);return{pass:Object.entries(t).every(([n,o])=>(0,f0.default)(r[n],o,b0)),message:()=>{let n=this.isNot?"not to":"to",o=`${this.isNot?".not":""}.toHaveFormValues`,a=Object.keys(r).filter(i=>t.hasOwnProperty(i)).reduce((i,s)=>({...i,[s]:r[s]}),{});return[this.utils.matcherHint(o,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,a)].join(`
|
|
326
|
+
|
|
327
|
+
`)}}}function PL(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:o}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&o!=="0"&&o!==0}function OL(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function P0(e,t){return PL(e)&&OL(e,t)&&(!e.parentElement||P0(e.parentElement,e))}function O0(e){ve(e,O0,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&P0(e);return{pass:r,message:()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
328
|
+
`)}}}var qL=["fieldset","input","select","optgroup","option","button","textarea"];function xL(e,t){return Rr(e)==="legend"&&Rr(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Rr(r)==="legend"))}function ML(e,t){return x0(t)&&!xL(e,t)}function NL(e){return e.includes("-")}function q0(e){let t=Rr(e);return qL.includes(t)||NL(t)}function x0(e){return q0(e)&&e.hasAttribute("disabled")}function M0(e){let t=e.parentElement;return!!t&&(ML(e,t)||M0(t))}function N0(e){return q0(e)&&(x0(e)||M0(e))}function j0(e){ve(e,j0,this);let t=N0(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
329
|
+
`)}}}function I0(e){ve(e,I0,this);let t=!N0(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
330
|
+
`)}}}var jL=["select","textarea"],IL=["input","select","textarea"],DL=["color","hidden","range","submit","image","reset"],FL=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function LL(e){return jL.includes(Rr(e))&&e.hasAttribute("required")}function BL(e){return Rr(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!DL.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function kL(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(IL.includes(Rr(e))||e.hasAttribute("role")&&FL.includes(e.getAttribute("role")))}function D0(e){ve(e,D0,this);let t=LL(e)||BL(e)||kL(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
331
|
+
`)}}}var $L=["form","input","select","textarea"];function UL(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function HL(e){return $L.includes(Rr(e))}function F0(e){let t=UL(e);return HL(e)?t||!e.checkValidity():t}function L0(e){ve(e,L0,this);let t=F0(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
332
|
+
`)}}}function B0(e){ve(e,B0,this);let t=!F0(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
333
|
+
`)}}}function k0(e,t){if(ve(e,k0,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=y0(e),n=t!==void 0,o=t,a=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,a=`${r} (${typeof r})`),{pass:n?(0,f0.default)(r,t,b0):!!r,message:()=>{let i=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return et(this,s,`Expected the element ${i} have value`,n?o:"(any)","Received",a)}}}function $0(e,t){ve(e,$0,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=VL(r,e),o=zL(t),a=o.filter(l=>n.some(c=>l instanceof RegExp?l.test(c):this.equals(c,String(l)))).length,i=a===n.length,s=a===o.length;return{pass:i&&s,message:()=>et(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function VL(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function zL(e){return e instanceof Array?e:[e]}function U0(e){ve(e,U0,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>H0(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${GL()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${o} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
334
|
+
`)}}}function GL(){return dL(YL().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function YL(){return fd.roles.keys().filter(H0)}function H0(e){return fd.roles.get(e)?.props["aria-checked"]!==void 0}function V0(e){ve(e,V0,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let n=()=>{let o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o};return{pass:n(),message:()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${o} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
335
|
+
`)}}}function z0(e,t){qi("toHaveDescription","Please use toHaveAccessibleDescription."),ve(e,z0,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let a=e.ownerDocument,i=n.map(s=>a.getElementById(s)).filter(Boolean);o=xi(i.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let a=this.isNot?"not to":"to";return et(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${a} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function G0(e,t){if(qi("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),ve(e,G0,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let a=this.isNot?".not":"";return{pass:!1,message:()=>et(this,this.utils.matcherHint(`${a}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let a=e.ownerDocument,i=n.map(s=>a.getElementById(s)).filter(Boolean);o=xi(i.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let a=this.isNot?"not to":"to";return et(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${a} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}mt(Kg(),1);mt(Xg(),1);mt(Qg(),1);mt(uv(),1);mt(cv(),1);function Kt(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function ka(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function WL(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Yu(e){return Object.prototype.toString.apply(e).slice(8,-1)}function KL(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Y0(e){let t=new Set;return WL(e)?[]:(KL(e,t),Array.from(t))}var W0={forceWritable:!1};function db(e,t=W0){return Wu(e,new WeakMap,t)}function Wu(e,t,r=W0){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array(n=e.length),t.set(e,o);n--;)o[n]=Wu(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let a=Y0(e);for(let i of a){let s=Object.getOwnPropertyDescriptor(e,i);if(!s)continue;let l=Wu(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:s.enumerable,configurable:!0,writable:!0,value:l}):"get"in s?Object.defineProperty(o,i,{...s,get(){return l}}):Object.defineProperty(o,i,{...s,value:l})}return o}return e}var pb={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},XL={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Nn="\u2026";function JL(e,t){let r=pb[XL[t]]||pb[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function QL({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:s=[],truncate:l=1/0,stylize:c=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(l),seen:s,inspect:u,stylize:c};return d.colors&&(d.stylize=JL),d}function ZL(e){return e>="\uD800"&&e<="\uDBFF"}function Ar(e,t,r=Nn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&ZL(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}function Mt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",s="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,d=c+2===e.length;l=`${Nn}(${e.length-c})`;let m=e[c];t.truncate=a-i.length-(u?0:n.length);let p=s||r(m,t)+(u?"":n),h=i.length+p.length,g=h+l.length;if(u&&h>a&&i.length+l.length<=a||!u&&!d&&g>a||(s=u?"":r(e[c+1],t)+(d?"":n),!u&&d&&g>a&&h+s.length>a))break;if(i+=p,!u&&!d&&h+s.length>=a){l=`${Nn}(${e.length-c-1})`;break}l=""}return`${i}${l}`}function eB(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ao([e,t],r){return r.truncate-=2,typeof e=="string"?e=eB(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function tB(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Mt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Mt(r.map(a=>[a,e[a]]),t,Ao)),`[ ${n}${o?`, ${o}`:""} ]`}var rB=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Xt(e,t){let r=rB(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){let s=`${t.stylize(Ar(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=s.length,e[i]!==e.length&&t.truncate<=3){o+=`${Nn}(${e.length-e[i]+1})`;break}o+=s}let a="";return n.length&&(a=Mt(n.map(i=>[i,e[i]]),t,Ao)),`${r}[ ${o}${a?`, ${a}`:""} ]`}function nB(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Ar(n[1],t.truncate-o.length-1)}`,"date")}function fb(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Ar(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function oB([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function aB(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function iB(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${Mt(aB(e),t,oB)} }`)}var sB=Number.isNaN||(e=>e!==e);function mb(e,t){return sB(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Ar(String(e),t.truncate),"number")}function hb(e,t){let r=Ar(e.toString(),t.truncate-1);return r!==Nn&&(r+="n"),t.stylize(r,"bigint")}function lB(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Ar(o,n)}/${r}`,"regexp")}function uB(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function cB(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Mt(uB(e),t)} }`)}var yb=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),dB={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},pB=16,fB=4;function mB(e){return dB[e]||`\\u${`0000${e.charCodeAt(0).toString(pB)}`.slice(-fB)}`}function bb(e,t){return yb.test(e)&&(e=e.replace(yb,mB)),t.stylize(`'${Ar(e,t.truncate-2)}'`,"string")}function gb(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var K0=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(K0=(n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`})}catch{}var hB=K0;function $a(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Mt(r.map(s=>[s,e[s]]),t,Ao),a=Mt(n.map(s=>[s,e[s]]),t,Ao);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}var lu=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function yB(e,t){let r="";return lu&&lu in e&&(r=e[lu]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${$a(e,t)}`}function bB(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Mt(e,t)} ]`)}var gB=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function vB(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>gB.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Ar(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=Mt(r.map(i=>[i,e[i]]),t,Ao);return`${n}${o}${a?` { ${a} }`:""}`}function EB([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Ku(e,t){return Mt(e,t,X0,`
|
|
336
|
+
`)}function X0(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=Mt(r.map(u=>[u,e.getAttribute(u)]),t,EB," ")),t.truncate-=s.length;let l=t.truncate,c=Ku(e.children,t);return c&&c.length>l&&(c=`${Nn}(${e.children.length})`),`${o}${s}${a}${c}${i}`}var _B=typeof Symbol=="function"&&typeof Symbol.for=="function",uu=_B?Symbol.for("chai/inspect"):"@@chai/inspect",Rn=!1;try{let e=TO("util");Rn=e.inspect?e.inspect.custom:!1}catch{Rn=!1}var vb=new WeakMap,Eb={},_b={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:mb,Number:mb,bigint:hb,BigInt:hb,string:bb,String:bb,function:fb,Function:fb,symbol:gb,Symbol:gb,Array:tB,Date:nB,Map:iB,Set:cB,RegExp:lB,Promise:hB,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:bB,Int8Array:Xt,Uint8Array:Xt,Uint8ClampedArray:Xt,Int16Array:Xt,Uint16Array:Xt,Int32Array:Xt,Uint32Array:Xt,Float32Array:Xt,Float64Array:Xt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:vB,HTMLCollection:Ku,NodeList:Ku},RB=(e,t,r)=>uu in e&&typeof e[uu]=="function"?e[uu](t):Rn&&Rn in e&&typeof e[Rn]=="function"?e[Rn](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&vb.has(e.constructor)?vb.get(e.constructor)(e,t):Eb[r]?Eb[r](e,t):"",wB=Object.prototype.toString;function Xu(e,t={}){let r=QL(t,Xu),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=wB.call(e).slice(8,-1)),o in _b)return _b[o](e,r);if(n&&e){let i=RB(e,r,o);if(i)return typeof i=="string"?i:Xu(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?$a(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?X0(e,r):"constructor"in e?e.constructor!==Object?yB(e,r):$a(e,r):e===Object(e)?$a(e,r):r.stylize(String(e),o)}var CB={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},SB=Object.entries(CB);function md(e){return String(e)}md.open="";md.close="";function AB(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function TB(e=!1){let t=AB(e),r=(i,s,l,c)=>{let u="",d=0;do u+=i.substring(d,c)+l,d=c+s.length,c=i.indexOf(s,d);while(~c);return u+i.substring(d)},n=(i,s,l=i)=>{let c=u=>{let d=String(u),m=d.indexOf(s,i.length);return~m?i+r(d,s,l,m)+s:i+d+s};return c.open=i,c.close=s,c},o={isColorSupported:t},a=i=>`\x1B[${i}m`;for(let[i,s]of SB)o[i]=t?n(a(s[0]),a(s[1]),s[2]):md;return o}var Me=TB(!1);function PB(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function Mi(e,t,r,n,o,a,i=": "){let s="",l=0,c=e.next();if(!c.done){s+=t.spacingOuter;let u=r+t.indent;for(;!c.done;){if(s+=u,l++===t.maxWidth){s+="\u2026";break}let d=a(c.value[0],t,u,n,o),m=a(c.value[1],t,u,n,o);s+=d+i+m,c=e.next(),c.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function hd(e,t,r,n,o,a){let i="",s=0,l=e.next();if(!l.done){i+=t.spacingOuter;let c=r+t.indent;for(;!l.done;){if(i+=c,s++===t.maxWidth){i+="\u2026";break}i+=a(l.value,t,c,n,o),l=e.next(),l.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}function ti(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=c=>c instanceof DataView,l=s(e)?e.byteLength:e.length;if(l>0){i+=t.spacingOuter;let c=r+t.indent;for(let u=0;u<l;u++){if(i+=c,u===t.maxWidth){i+="\u2026";break}(s(e)||u in e)&&(i+=a(s(e)?e.getInt8(u):e[u],t,c,n,o)),u<l-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}function yd(e,t,r,n,o,a){let i="",s=PB(e,t.compareKeys);if(s.length>0){i+=t.spacingOuter;let l=r+t.indent;for(let c=0;c<s.length;c++){let u=s[c],d=a(u,t,l,n,o),m=a(e[u],t,l,n,o);i+=`${l+d}: ${m}`,c<s.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var OB=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,cu=" ",qB=(e,t,r,n,o,a)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+cu}[${ti(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+cu}{${yd(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+cu+a(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},xB=e=>e&&e.$$typeof===OB,MB={serialize:qB,test:xB},NB=" ",J0=new Set(["DOMStringMap","NamedNodeMap"]),jB=/^(?:HTML\w*Collection|NodeList)$/;function IB(e){return J0.has(e)||jB.test(e)}var DB=e=>e&&e.constructor&&!!e.constructor.name&&IB(e.constructor.name);function FB(e){return e.constructor.name==="NamedNodeMap"}var LB=(e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+NB)+(J0.has(i)?`{${yd(FB(e)?[...e].reduce((s,l)=>(s[l.name]=l.value,s),{}):{...e},t,r,n,o,a)}}`:`[${ti([...e],t,r,n,o,a)}]`)},BB={serialize:LB,test:DB};function Q0(e){return e.replaceAll("<","<").replaceAll(">",">")}function bd(e,t,r,n,o,a,i){let s=n+r.indent,l=r.colors;return e.map(c=>{let u=t[c],d=i(u,r,s,o,a);return typeof u!="string"&&(d.includes(`
|
|
337
|
+
`)&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+l.prop.open+c+l.prop.close}=${l.value.open}${d}${l.value.close}`}).join("")}function gd(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?Z0(i,t):a(i,t,r,n,o))).join("")}function Z0(e,t){let r=t.colors.content;return r.open+Q0(e)+r.close}function kB(e,t){let r=t.colors.comment;return`${r.open}<\!--${Q0(e)}-->${r.close}`}function vd(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}function Ed(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}var $B=1,eE=3,tE=8,rE=11,UB=/^(?:(?:HTML|SVG)\w*)?Element$/;function HB(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function VB(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||HB(e);return r===$B&&(UB.test(t)||o)||r===eE&&t==="Text"||r===tE&&t==="Comment"||r===rE&&t==="DocumentFragment"}var zB=e=>{var t;return((t=e?.constructor)==null?void 0:t.name)&&VB(e)};function GB(e){return e.nodeType===eE}function YB(e){return e.nodeType===tE}function du(e){return e.nodeType===rE}var WB=(e,t,r,n,o,a)=>{if(GB(e))return Z0(e.data,t);if(YB(e))return kB(e.data,t);let i=du(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Ed(i,t):vd(i,bd(du(e)?[]:Array.from(e.attributes,s=>s.name).sort(),du(e)?{}:[...e.attributes].reduce((s,l)=>(s[l.name]=l.value,s),{}),t,r+t.indent,n,o,a),gd(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},KB={serialize:WB,test:zB},XB="@@__IMMUTABLE_ITERABLE__@@",JB="@@__IMMUTABLE_LIST__@@",QB="@@__IMMUTABLE_KEYED__@@",ZB="@@__IMMUTABLE_MAP__@@",Rb="@@__IMMUTABLE_ORDERED__@@",ek="@@__IMMUTABLE_RECORD__@@",tk="@@__IMMUTABLE_SEQ__@@",rk="@@__IMMUTABLE_SET__@@",nk="@@__IMMUTABLE_STACK__@@",jn=e=>`Immutable.${e}`,Ni=e=>`[${e}]`,To=" ",wb="\u2026";function ok(e,t,r,n,o,a,i){return++n>t.maxDepth?Ni(jn(i)):`${jn(i)+To}{${Mi(e.entries(),t,r,n,o,a)}}`}function ak(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function ik(e,t,r,n,o,a){let i=jn(e._name||"Record");return++n>t.maxDepth?Ni(i):`${i+To}{${Mi(ak(e),t,r,n,o,a)}}`}function sk(e,t,r,n,o,a){let i=jn("Seq");return++n>t.maxDepth?Ni(i):e[QB]?`${i+To}{${e._iter||e._object?Mi(e.entries(),t,r,n,o,a):wb}}`:`${i+To}[${e._iter||e._array||e._collection||e._iterable?hd(e.values(),t,r,n,o,a):wb}]`}function pu(e,t,r,n,o,a,i){return++n>t.maxDepth?Ni(jn(i)):`${jn(i)+To}[${hd(e.values(),t,r,n,o,a)}]`}var lk=(e,t,r,n,o,a)=>e[ZB]?ok(e,t,r,n,o,a,e[Rb]?"OrderedMap":"Map"):e[JB]?pu(e,t,r,n,o,a,"List"):e[rk]?pu(e,t,r,n,o,a,e[Rb]?"OrderedSet":"Set"):e[nk]?pu(e,t,r,n,o,a,"Stack"):e[tk]?sk(e,t,r,n,o,a):ik(e,t,r,n,o,a),uk=e=>e&&(e[XB]===!0||e[ek]===!0),ck={serialize:lk,test:uk},nE={exports:{}},ge={},Cb;function dk(){if(Cb)return ge;Cb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case e:switch(y=y.type,y){case r:case o:case n:case c:case u:return y;default:switch(y=y&&y.$$typeof,y){case s:case i:case l:case m:case d:case a:return y;default:return b}}case t:return b}}}return ge.ContextConsumer=i,ge.ContextProvider=a,ge.Element=e,ge.ForwardRef=l,ge.Fragment=r,ge.Lazy=m,ge.Memo=d,ge.Portal=t,ge.Profiler=o,ge.StrictMode=n,ge.Suspense=c,ge.SuspenseList=u,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(y){return g(y)===i},ge.isContextProvider=function(y){return g(y)===a},ge.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ge.isForwardRef=function(y){return g(y)===l},ge.isFragment=function(y){return g(y)===r},ge.isLazy=function(y){return g(y)===m},ge.isMemo=function(y){return g(y)===d},ge.isPortal=function(y){return g(y)===t},ge.isProfiler=function(y){return g(y)===o},ge.isStrictMode=function(y){return g(y)===n},ge.isSuspense=function(y){return g(y)===c},ge.isSuspenseList=function(y){return g(y)===u},ge.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===c||y===u||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===d||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===h||y.getModuleId!==void 0)},ge.typeOf=g,ge}nE.exports=dk();var Ur=nE.exports;function oE(e,t=[]){if(Array.isArray(e))for(let r of e)oE(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Sb(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Ur.isFragment(e))return"React.Fragment";if(Ur.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Ur.isContextProvider(e))return"Context.Provider";if(Ur.isContextConsumer(e))return"Context.Consumer";if(Ur.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Ur.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function pk(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var fk=(e,t,r,n,o,a)=>++n>t.maxDepth?Ed(Sb(e),t):vd(Sb(e),bd(pk(e),e.props,t,r+t.indent,n,o,a),gd(oE(e.props.children),t,r+t.indent,n,o,a),t,r),mk=e=>e!=null&&Ur.isElement(e),hk={serialize:fk,test:mk},yk=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function bk(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var gk=(e,t,r,n,o,a)=>++n>t.maxDepth?Ed(e.type,t):vd(e.type,e.props?bd(bk(e),e.props,t,r+t.indent,n,o,a):"",e.children?gd(e.children,t,r+t.indent,n,o,a):"",t,r),vk=e=>e&&e.$$typeof===yk,Ek={serialize:gk,test:vk},aE=Object.prototype.toString,_k=Date.prototype.toISOString,Rk=Error.prototype.toString,Ab=RegExp.prototype.toString;function fu(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function wk(e){return typeof window<"u"&&e===window}var Ck=/^Symbol\((.*)\)(.*)$/,Sk=/\n/g,iE=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function Ak(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function Tk(e){return Object.is(e,-0)?"-0":String(e)}function Pk(e){return`${e}n`}function Tb(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Pb(e){return String(e).replace(Ck,"Symbol($1)")}function Ob(e){return`[${Rk.call(e)}]`}function sE(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return Tk(e);if(o==="bigint")return Pk(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Tb(e,t);if(o==="symbol")return Pb(e);let a=aE.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?Tb(e,t):a==="[object Symbol]"?Pb(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":_k.call(e):a==="[object Error]"?Ob(e):a==="[object RegExp]"?r?Ab.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Ab.call(e):e instanceof Error?Ob(e):null}function lE(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return vr(e.toJSON(),t,r,n,o,!0);let l=aE.call(e);return l==="[object Arguments]"?i?"[Arguments]":`${s?"":"Arguments "}[${ti(e,t,r,n,o,vr)}]`:Ak(l)?i?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${ti(e,t,r,n,o,vr)}]`:l==="[object Map]"?i?"[Map]":`Map {${Mi(e.entries(),t,r,n,o,vr," => ")}}`:l==="[object Set]"?i?"[Set]":`Set {${hd(e.values(),t,r,n,o,vr)}}`:i||wk(e)?`[${fu(e)}]`:`${s||!t.printBasicPrototype&&fu(e)==="Object"?"":`${fu(e)} `}{${yd(e,t,r,n,o,vr)}}`}function Ok(e){return e.serialize!=null}function uE(e,t,r,n,o,a){let i;try{i=Ok(e)?e.serialize(t,r,n,o,a,vr):e.print(t,s=>vr(s,r,n,o,a),s=>{let l=n+r.indent;return l+s.replaceAll(Sk,`
|
|
338
|
+
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new iE(s.message,s.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function cE(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new iE(n.message,n.stack)}return null}function vr(e,t,r,n,o,a){let i=cE(t.plugins,e);if(i!==null)return uE(i,e,t,r,n,o);let s=sE(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:lE(e,t,r,n,o,a)}var _d={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},dE=Object.keys(_d),Tt={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:_d};function qk(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Tt,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function xk(){return dE.reduce((e,t)=>{let r=_d[t],n=r&&Me[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function Mk(){return dE.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function pE(e){return e?.printFunctionName??Tt.printFunctionName}function fE(e){return e?.escapeRegex??Tt.escapeRegex}function mE(e){return e?.escapeString??Tt.escapeString}function qb(e){return{callToJSON:e?.callToJSON??Tt.callToJSON,colors:e?.highlight?xk():Mk(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Tt.compareKeys,escapeRegex:fE(e),escapeString:mE(e),indent:e?.min?"":Nk(e?.indent??Tt.indent),maxDepth:e?.maxDepth??Tt.maxDepth,maxWidth:e?.maxWidth??Tt.maxWidth,min:e?.min??Tt.min,plugins:e?.plugins??Tt.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:pE(e),spacingInner:e?.min?" ":`
|
|
339
339
|
`,spacingOuter:e?.min?"":`
|
|
340
|
-
`}}function Nk(e){return Array.from({length:e+1}).join(" ")}function Lt(e,t){if(t&&(qk(t),t.plugins)){let n=uE(t.plugins,e);if(n!==null)return lE(n,e,Ob(t),"",0,[])}let r=iE(e,dE(t),pE(t),fE(t));return r!==null?r:sE(e,Ob(t),"",0,[])}var mE={AsymmetricMatcher:MB,DOMCollection:BB,DOMElement:KB,Immutable:ck,ReactElement:hk,ReactTestComponent:Ek},{AsymmetricMatcher:jk,DOMCollection:Ik,DOMElement:Dk,Immutable:Fk,ReactElement:Lk,ReactTestComponent:Bk}=mE,qb=[Bk,Lk,Dk,Ik,Fk,jk];function Rt(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Lt(e,{maxDepth:t,escapeString:!1,plugins:qb,...n})}catch{a=Lt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:qb,...n})}return a.length>=o&&t>1?Rt(e,Math.floor(t/2)):a}var kk=/%[sdjifoOc%]/g;function $k(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(ho(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(kk,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?ho(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return ho(e[r++],{showHidden:!0,showProxy:!0});case"%O":return ho(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let s=i.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${ho(a)}`;return o}function ho(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Xu(e,t)}var hE;hE=/\r?\n|[\r\u2028\u2029]/y;RegExp(hE.source);var yE={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(yE.keyword);new Set(yE.strict);function xb(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var tt=-1,Ke=1,Ne=0,Pe=class{constructor(e,t){Ae(this,0);Ae(this,1);this[0]=e,this[1]=t}},Uk=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o},bE=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o},Mb=function(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let a=0,i=1;for(;;){let s=e.substring(o-i),l=t.indexOf(s);if(l===-1)return a;i+=l,(l===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}},Hk=function(e){let t=!1,r=[],n=0,o=null,a=0,i=0,s=0,l=0,c=0;for(;a<e.length;)e[a][0]===Ne?(r[n++]=a,i=l,s=c,l=0,c=0,o=e[a][1]):(e[a][0]===Ke?l+=e[a][1].length:c+=e[a][1].length,o&&o.length<=Math.max(i,s)&&o.length<=Math.max(l,c)&&(e.splice(r[n-1],0,new Pe(tt,o)),e[r[n-1]+1][0]=Ke,n--,n--,a=n>0?r[n-1]:-1,i=0,s=0,l=0,c=0,o=null,t=!0)),a++;for(t&&gE(e),Gk(e),a=1;a<e.length;){if(e[a-1][0]===tt&&e[a][0]===Ke){let u=e[a-1][1],d=e[a][1],m=Mb(u,d),p=Mb(d,u);m>=p?(m>=u.length/2||m>=d.length/2)&&(e.splice(a,0,new Pe(Ne,d.substring(0,m))),e[a-1][1]=u.substring(0,u.length-m),e[a+1][1]=d.substring(m),a++):(p>=u.length/2||p>=d.length/2)&&(e.splice(a,0,new Pe(Ne,u.substring(0,p))),e[a-1][0]=Ke,e[a-1][1]=d.substring(0,d.length-p),e[a+1][0]=tt,e[a+1][1]=u.substring(p),a++),a++}a++}},Nb=/[^a-z0-9]/i,jb=/\s/,Ib=/[\r\n]/,Vk=/\n\r?\n$/,zk=/^\r?\n\r?\n/;function Gk(e){function t(n,o){if(!n||!o)return 6;let a=n.charAt(n.length-1),i=o.charAt(0),s=a.match(Nb),l=i.match(Nb),c=s&&a.match(jb),u=l&&i.match(jb),d=c&&a.match(Ib),m=u&&i.match(Ib),p=d&&n.match(Vk),h=m&&o.match(zk);return p||h?5:d||m?4:s&&!c&&u?3:c||u?2:s||l?1:0}let r=1;for(;r<e.length-1;){if(e[r-1][0]===Ne&&e[r+1][0]===Ne){let n=e[r-1][1],o=e[r][1],a=e[r+1][1],i=bE(n,o);if(i){let d=o.substring(o.length-i);n=n.substring(0,n.length-i),o=d+o.substring(0,o.length-i),a=d+a}let s=n,l=o,c=a,u=t(n,o)+t(o,a);for(;o.charAt(0)===a.charAt(0);){n+=o.charAt(0),o=o.substring(1)+a.charAt(0),a=a.substring(1);let d=t(n,o)+t(o,a);d>=u&&(u=d,s=n,l=o,c=a)}e[r-1][1]!==s&&(s?e[r-1][1]=s:(e.splice(r-1,1),r--),e[r][1]=l,c?e[r+1][1]=c:(e.splice(r+1,1),r--))}r++}}function gE(e){e.push(new Pe(Ne,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case Ke:n++,a+=e[t][1],t++;break;case tt:r++,o+=e[t][1],t++;break;case Ne:r+n>1?(r!==0&&n!==0&&(i=Uk(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Ne?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new Pe(Ne,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=bE(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Pe(tt,o)),t++),a.length&&(e.splice(t,0,new Pe(Ke,a)),t++),t++):t!==0&&e[t-1][0]===Ne?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ne&&e[t+1][0]===Ne&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&gE(e)}var vE="Compared values have no visual difference.",Yk="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",EE={};Object.defineProperty(EE,"__esModule",{value:!0});var _E=EE.default=Jk,_o="diff-sequences",Ze=0,Po=(e,t,r,n,o)=>{let a=0;for(;e<t&&r<n&&o(e,r);)e+=1,r+=1,a+=1;return a},Oo=(e,t,r,n,o)=>{let a=0;for(;e<=t&&r<=n&&o(t,n);)t-=1,n-=1,a+=1;return a},mu=(e,t,r,n,o,a,i)=>{let s=0,l=-e,c=a[s],u=c;a[s]+=Po(c+1,t,n+c-l+1,r,o);let d=e<i?e:i;for(s+=1,l+=2;s<=d;s+=1,l+=2){if(s!==e&&u<a[s])c=a[s];else if(c=u+1,t<=c)return s-1;u=a[s],a[s]=c+Po(c+1,t,n+c-l+1,r,o)}return i},Db=(e,t,r,n,o,a,i)=>{let s=0,l=e,c=a[s],u=c;a[s]-=Oo(t,c-1,r,n+c-l-1,o);let d=e<i?e:i;for(s+=1,l-=2;s<=d;s+=1,l-=2){if(s!==e&&a[s]<u)c=a[s];else if(c=u-1,c<t)return s-1;u=a[s],a[s]=c-Oo(t,c-1,r,n+c-l-1,o)}return i},Wk=(e,t,r,n,o,a,i,s,l,c,u)=>{let d=n-t,m=r-t,p=o-n-m,h=-p-(e-1),g=-p+(e-1),y=Ze,b=e<s?e:s;for(let v=0,C=-e;v<=b;v+=1,C+=2){let S=v===0||v!==e&&y<i[v],A=S?i[v]:y,_=S?A:A+1,E=d+_-C,R=Po(_+1,r,E+1,o,a),P=_+R;if(y=i[v],i[v]=P,h<=C&&C<=g){let N=(e-1-(C+p))/2;if(N<=c&&l[N]-1<=P){let B=d+A-(S?C+1:C-1),j=Oo(t,A,n,B,a),F=A-j,T=B-j,M=F+1,D=T+1;u.nChangePreceding=e-1,e-1===M+D-t-n?(u.aEndPreceding=t,u.bEndPreceding=n):(u.aEndPreceding=M,u.bEndPreceding=D),u.nCommonPreceding=j,j!==0&&(u.aCommonPreceding=M,u.bCommonPreceding=D),u.nCommonFollowing=R,R!==0&&(u.aCommonFollowing=_+1,u.bCommonFollowing=E+1);let Y=P+1,G=E+R+1;return u.nChangeFollowing=e-1,e-1===r+o-Y-G?(u.aStartFollowing=r,u.bStartFollowing=o):(u.aStartFollowing=Y,u.bStartFollowing=G),!0}}}return!1},Kk=(e,t,r,n,o,a,i,s,l,c,u)=>{let d=o-r,m=r-t,p=o-n-m,h=p-e,g=p+e,y=Ze,b=e<c?e:c;for(let v=0,C=e;v<=b;v+=1,C-=2){let S=v===0||v!==e&&l[v]<y,A=S?l[v]:y,_=S?A:A-1,E=d+_-C,R=Oo(t,_-1,n,E-1,a),P=_-R;if(y=l[v],l[v]=P,h<=C&&C<=g){let N=(e+(C-p))/2;if(N<=s&&P-1<=i[N]){let B=E-R;if(u.nChangePreceding=e,e===P+B-t-n?(u.aEndPreceding=t,u.bEndPreceding=n):(u.aEndPreceding=P,u.bEndPreceding=B),u.nCommonPreceding=R,R!==0&&(u.aCommonPreceding=P,u.bCommonPreceding=B),u.nChangeFollowing=e-1,e===1)u.nCommonFollowing=0,u.aStartFollowing=r,u.bStartFollowing=o;else{let j=d+A-(S?C-1:C+1),F=Po(A,r,j,o,a);u.nCommonFollowing=F,F!==0&&(u.aCommonFollowing=A,u.bCommonFollowing=j);let T=A+F,M=j+F;e-1===r+o-T-M?(u.aStartFollowing=r,u.bStartFollowing=o):(u.aStartFollowing=T,u.bStartFollowing=M)}return!0}}}return!1},Xk=(e,t,r,n,o,a,i,s,l)=>{let c=n-t,u=o-r,d=r-t,m=o-n,p=m-d,h=d,g=d;if(i[0]=t-1,s[0]=r,p%2===0){let y=(e||p)/2,b=(d+m)/2;for(let v=1;v<=b;v+=1)if(h=mu(v,r,o,c,a,i,h),v<y)g=Db(v,t,n,u,a,s,g);else if(Kk(v,t,r,n,o,a,i,h,s,g,l))return}else{let y=((e||p)+1)/2,b=(d+m+1)/2,v=1;for(h=mu(v,r,o,c,a,i,h),v+=1;v<=b;v+=1)if(g=Db(v-1,t,n,u,a,s,g),v<y)h=mu(v,r,o,c,a,i,h);else if(Wk(v,t,r,n,o,a,i,h,s,g,l))return}throw new Error(`${_o}: no overlap aStart=${t} aEnd=${r} bStart=${n} bEnd=${o}`)},Ju=(e,t,r,n,o,a,i,s,l,c)=>{if(o-n<r-t){if(a=!a,a&&i.length===1){let{foundSubsequence:N,isCommon:B}=i[0];i[1]={foundSubsequence:(j,F,T)=>{N(j,T,F)},isCommon:(j,F)=>B(F,j)}}let R=t,P=r;t=n,r=o,n=R,o=P}let{foundSubsequence:u,isCommon:d}=i[a?1:0];Xk(e,t,r,n,o,d,s,l,c);let{nChangePreceding:m,aEndPreceding:p,bEndPreceding:h,nCommonPreceding:g,aCommonPreceding:y,bCommonPreceding:b,nCommonFollowing:v,aCommonFollowing:C,bCommonFollowing:S,nChangeFollowing:A,aStartFollowing:_,bStartFollowing:E}=c;t<p&&n<h&&Ju(m,t,p,n,h,a,i,s,l,c),g!==0&&u(g,y,b),v!==0&&u(v,C,S),_<r&&E<o&&Ju(A,_,r,E,o,a,i,s,l,c)},Fb=(e,t)=>{if(typeof t!="number")throw new TypeError(`${_o}: ${e} typeof ${typeof t} is not a number`);if(!Number.isSafeInteger(t))throw new RangeError(`${_o}: ${e} value ${t} is not a safe integer`);if(t<0)throw new RangeError(`${_o}: ${e} value ${t} is a negative integer`)},Lb=(e,t)=>{let r=typeof t;if(r!=="function")throw new TypeError(`${_o}: ${e} typeof ${r} is not a function`)};function Jk(e,t,r,n){Fb("aLength",e),Fb("bLength",t),Lb("isCommon",r),Lb("foundSubsequence",n);let o=Po(0,e,0,t,r);if(o!==0&&n(o,0,0),e!==o||t!==o){let a=o,i=o,s=Oo(a,e-1,i,t-1,r),l=e-s,c=t-s,u=o+s;e!==u&&t!==u&&Ju(0,a,l,i,c,!1,[{foundSubsequence:n,isCommon:r}],[Ze],[Ze],{aCommonFollowing:Ze,aCommonPreceding:Ze,aEndPreceding:Ze,aStartFollowing:Ze,bCommonFollowing:Ze,bCommonPreceding:Ze,bEndPreceding:Ze,bStartFollowing:Ze,nChangeFollowing:Ze,nChangePreceding:Ze,nCommonFollowing:Ze,nCommonPreceding:Ze}),s!==0&&n(s,l,c)}}function Qk(e,t){return e.replace(/\s+$/,r=>t(r))}function Rd(e,t,r,n,o,a){return e.length!==0?r(`${n} ${Qk(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function RE(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Rd(e,t,r,n,o,a)}function wE(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Rd(e,t,r,n,o,a)}function CE(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Rd(e,t,r,n,o,a)}function Bb(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function Zk(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,s=0,l=0;for(;l!==r;){let S=l;for(;l!==r&&e[l][0]===Ne;)l+=1;if(S!==l)if(S===0)l>n&&(a-=l-n,i=!0);else if(l===r){let A=l-S;A>n&&(a-=A-n,i=!0)}else{let A=l-S;A>o&&(a-=A-o,s+=1)}for(;l!==r&&e[l][0]!==Ne;)l+=1}let c=s!==0||i;s!==0?a+=s+1:i&&(a+=1);let u=a-1,d=[],m=0;c&&d.push("");let p=0,h=0,g=0,y=0,b=S=>{let A=d.length;d.push(CE(S,A===0||A===u,t)),g+=1,y+=1},v=S=>{let A=d.length;d.push(RE(S,A===0||A===u,t)),g+=1},C=S=>{let A=d.length;d.push(wE(S,A===0||A===u,t)),y+=1};for(l=0;l!==r;){let S=l;for(;l!==r&&e[l][0]===Ne;)l+=1;if(S!==l)if(S===0){l>n&&(S=l-n,p=S,h=S,g=p,y=h);for(let A=S;A!==l;A+=1)b(e[A][1])}else if(l===r){let A=l-S>n?S+n:l;for(let _=S;_!==A;_+=1)b(e[_][1])}else{let A=l-S;if(A>o){let _=S+n;for(let R=S;R!==_;R+=1)b(e[R][1]);d[m]=Bb(p,g,h,y,t),m=d.length,d.push("");let E=A-o;p=g+E,h=y+E,g=p,y=h;for(let R=l-n;R!==l;R+=1)b(e[R][1])}else for(let _=S;_!==l;_+=1)b(e[_][1])}for(;l!==r&&e[l][0]===tt;)v(e[l][1]),l+=1;for(;l!==r&&e[l][0]===Ke;)C(e[l][1]),l+=1}return c&&(d[m]=Bb(p,g,h,y,t)),d.join(`
|
|
341
|
-
`)}function e$(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case tt:return
|
|
342
|
-
`)}var hu=e=>e,
|
|
340
|
+
`}}function Nk(e){return Array.from({length:e+1}).join(" ")}function Lt(e,t){if(t&&(qk(t),t.plugins)){let n=cE(t.plugins,e);if(n!==null)return uE(n,e,qb(t),"",0,[])}let r=sE(e,pE(t),fE(t),mE(t));return r!==null?r:lE(e,qb(t),"",0,[])}var hE={AsymmetricMatcher:MB,DOMCollection:BB,DOMElement:KB,Immutable:ck,ReactElement:hk,ReactTestComponent:Ek},{AsymmetricMatcher:jk,DOMCollection:Ik,DOMElement:Dk,Immutable:Fk,ReactElement:Lk,ReactTestComponent:Bk}=hE,xb=[Bk,Lk,Dk,Ik,Fk,jk];function Rt(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Lt(e,{maxDepth:t,escapeString:!1,plugins:xb,...n})}catch{a=Lt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:xb,...n})}return a.length>=o&&t>1?Rt(e,Math.floor(t/2)):a}var kk=/%[sdjifoOc%]/g;function $k(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(ho(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(kk,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?ho(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return ho(e[r++],{showHidden:!0,showProxy:!0});case"%O":return ho(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let s=i.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${ho(a)}`;return o}function ho(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Xu(e,t)}var yE;yE=/\r?\n|[\r\u2028\u2029]/y;RegExp(yE.source);var bE={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(bE.keyword);new Set(bE.strict);function Mb(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var tt=-1,Ke=1,Ne=0,Pe=class{constructor(e,t){Ae(this,0);Ae(this,1);this[0]=e,this[1]=t}},Uk=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o},gE=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o},Nb=function(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let a=0,i=1;for(;;){let s=e.substring(o-i),l=t.indexOf(s);if(l===-1)return a;i+=l,(l===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}},Hk=function(e){let t=!1,r=[],n=0,o=null,a=0,i=0,s=0,l=0,c=0;for(;a<e.length;)e[a][0]===Ne?(r[n++]=a,i=l,s=c,l=0,c=0,o=e[a][1]):(e[a][0]===Ke?l+=e[a][1].length:c+=e[a][1].length,o&&o.length<=Math.max(i,s)&&o.length<=Math.max(l,c)&&(e.splice(r[n-1],0,new Pe(tt,o)),e[r[n-1]+1][0]=Ke,n--,n--,a=n>0?r[n-1]:-1,i=0,s=0,l=0,c=0,o=null,t=!0)),a++;for(t&&vE(e),Gk(e),a=1;a<e.length;){if(e[a-1][0]===tt&&e[a][0]===Ke){let u=e[a-1][1],d=e[a][1],m=Nb(u,d),p=Nb(d,u);m>=p?(m>=u.length/2||m>=d.length/2)&&(e.splice(a,0,new Pe(Ne,d.substring(0,m))),e[a-1][1]=u.substring(0,u.length-m),e[a+1][1]=d.substring(m),a++):(p>=u.length/2||p>=d.length/2)&&(e.splice(a,0,new Pe(Ne,u.substring(0,p))),e[a-1][0]=Ke,e[a-1][1]=d.substring(0,d.length-p),e[a+1][0]=tt,e[a+1][1]=u.substring(p),a++),a++}a++}},jb=/[^a-z0-9]/i,Ib=/\s/,Db=/[\r\n]/,Vk=/\n\r?\n$/,zk=/^\r?\n\r?\n/;function Gk(e){function t(n,o){if(!n||!o)return 6;let a=n.charAt(n.length-1),i=o.charAt(0),s=a.match(jb),l=i.match(jb),c=s&&a.match(Ib),u=l&&i.match(Ib),d=c&&a.match(Db),m=u&&i.match(Db),p=d&&n.match(Vk),h=m&&o.match(zk);return p||h?5:d||m?4:s&&!c&&u?3:c||u?2:s||l?1:0}let r=1;for(;r<e.length-1;){if(e[r-1][0]===Ne&&e[r+1][0]===Ne){let n=e[r-1][1],o=e[r][1],a=e[r+1][1],i=gE(n,o);if(i){let d=o.substring(o.length-i);n=n.substring(0,n.length-i),o=d+o.substring(0,o.length-i),a=d+a}let s=n,l=o,c=a,u=t(n,o)+t(o,a);for(;o.charAt(0)===a.charAt(0);){n+=o.charAt(0),o=o.substring(1)+a.charAt(0),a=a.substring(1);let d=t(n,o)+t(o,a);d>=u&&(u=d,s=n,l=o,c=a)}e[r-1][1]!==s&&(s?e[r-1][1]=s:(e.splice(r-1,1),r--),e[r][1]=l,c?e[r+1][1]=c:(e.splice(r+1,1),r--))}r++}}function vE(e){e.push(new Pe(Ne,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case Ke:n++,a+=e[t][1],t++;break;case tt:r++,o+=e[t][1],t++;break;case Ne:r+n>1?(r!==0&&n!==0&&(i=Uk(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Ne?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new Pe(Ne,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=gE(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Pe(tt,o)),t++),a.length&&(e.splice(t,0,new Pe(Ke,a)),t++),t++):t!==0&&e[t-1][0]===Ne?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ne&&e[t+1][0]===Ne&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&vE(e)}var EE="Compared values have no visual difference.",Yk="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",_E={};Object.defineProperty(_E,"__esModule",{value:!0});var RE=_E.default=Jk,_o="diff-sequences",Ze=0,Po=(e,t,r,n,o)=>{let a=0;for(;e<t&&r<n&&o(e,r);)e+=1,r+=1,a+=1;return a},Oo=(e,t,r,n,o)=>{let a=0;for(;e<=t&&r<=n&&o(t,n);)t-=1,n-=1,a+=1;return a},mu=(e,t,r,n,o,a,i)=>{let s=0,l=-e,c=a[s],u=c;a[s]+=Po(c+1,t,n+c-l+1,r,o);let d=e<i?e:i;for(s+=1,l+=2;s<=d;s+=1,l+=2){if(s!==e&&u<a[s])c=a[s];else if(c=u+1,t<=c)return s-1;u=a[s],a[s]=c+Po(c+1,t,n+c-l+1,r,o)}return i},Fb=(e,t,r,n,o,a,i)=>{let s=0,l=e,c=a[s],u=c;a[s]-=Oo(t,c-1,r,n+c-l-1,o);let d=e<i?e:i;for(s+=1,l-=2;s<=d;s+=1,l-=2){if(s!==e&&a[s]<u)c=a[s];else if(c=u-1,c<t)return s-1;u=a[s],a[s]=c-Oo(t,c-1,r,n+c-l-1,o)}return i},Wk=(e,t,r,n,o,a,i,s,l,c,u)=>{let d=n-t,m=r-t,p=o-n-m,h=-p-(e-1),g=-p+(e-1),y=Ze,b=e<s?e:s;for(let v=0,C=-e;v<=b;v+=1,C+=2){let S=v===0||v!==e&&y<i[v],A=S?i[v]:y,_=S?A:A+1,E=d+_-C,R=Po(_+1,r,E+1,o,a),P=_+R;if(y=i[v],i[v]=P,h<=C&&C<=g){let N=(e-1-(C+p))/2;if(N<=c&&l[N]-1<=P){let B=d+A-(S?C+1:C-1),j=Oo(t,A,n,B,a),F=A-j,T=B-j,M=F+1,D=T+1;u.nChangePreceding=e-1,e-1===M+D-t-n?(u.aEndPreceding=t,u.bEndPreceding=n):(u.aEndPreceding=M,u.bEndPreceding=D),u.nCommonPreceding=j,j!==0&&(u.aCommonPreceding=M,u.bCommonPreceding=D),u.nCommonFollowing=R,R!==0&&(u.aCommonFollowing=_+1,u.bCommonFollowing=E+1);let Y=P+1,G=E+R+1;return u.nChangeFollowing=e-1,e-1===r+o-Y-G?(u.aStartFollowing=r,u.bStartFollowing=o):(u.aStartFollowing=Y,u.bStartFollowing=G),!0}}}return!1},Kk=(e,t,r,n,o,a,i,s,l,c,u)=>{let d=o-r,m=r-t,p=o-n-m,h=p-e,g=p+e,y=Ze,b=e<c?e:c;for(let v=0,C=e;v<=b;v+=1,C-=2){let S=v===0||v!==e&&l[v]<y,A=S?l[v]:y,_=S?A:A-1,E=d+_-C,R=Oo(t,_-1,n,E-1,a),P=_-R;if(y=l[v],l[v]=P,h<=C&&C<=g){let N=(e+(C-p))/2;if(N<=s&&P-1<=i[N]){let B=E-R;if(u.nChangePreceding=e,e===P+B-t-n?(u.aEndPreceding=t,u.bEndPreceding=n):(u.aEndPreceding=P,u.bEndPreceding=B),u.nCommonPreceding=R,R!==0&&(u.aCommonPreceding=P,u.bCommonPreceding=B),u.nChangeFollowing=e-1,e===1)u.nCommonFollowing=0,u.aStartFollowing=r,u.bStartFollowing=o;else{let j=d+A-(S?C-1:C+1),F=Po(A,r,j,o,a);u.nCommonFollowing=F,F!==0&&(u.aCommonFollowing=A,u.bCommonFollowing=j);let T=A+F,M=j+F;e-1===r+o-T-M?(u.aStartFollowing=r,u.bStartFollowing=o):(u.aStartFollowing=T,u.bStartFollowing=M)}return!0}}}return!1},Xk=(e,t,r,n,o,a,i,s,l)=>{let c=n-t,u=o-r,d=r-t,m=o-n,p=m-d,h=d,g=d;if(i[0]=t-1,s[0]=r,p%2===0){let y=(e||p)/2,b=(d+m)/2;for(let v=1;v<=b;v+=1)if(h=mu(v,r,o,c,a,i,h),v<y)g=Fb(v,t,n,u,a,s,g);else if(Kk(v,t,r,n,o,a,i,h,s,g,l))return}else{let y=((e||p)+1)/2,b=(d+m+1)/2,v=1;for(h=mu(v,r,o,c,a,i,h),v+=1;v<=b;v+=1)if(g=Fb(v-1,t,n,u,a,s,g),v<y)h=mu(v,r,o,c,a,i,h);else if(Wk(v,t,r,n,o,a,i,h,s,g,l))return}throw new Error(`${_o}: no overlap aStart=${t} aEnd=${r} bStart=${n} bEnd=${o}`)},Ju=(e,t,r,n,o,a,i,s,l,c)=>{if(o-n<r-t){if(a=!a,a&&i.length===1){let{foundSubsequence:N,isCommon:B}=i[0];i[1]={foundSubsequence:(j,F,T)=>{N(j,T,F)},isCommon:(j,F)=>B(F,j)}}let R=t,P=r;t=n,r=o,n=R,o=P}let{foundSubsequence:u,isCommon:d}=i[a?1:0];Xk(e,t,r,n,o,d,s,l,c);let{nChangePreceding:m,aEndPreceding:p,bEndPreceding:h,nCommonPreceding:g,aCommonPreceding:y,bCommonPreceding:b,nCommonFollowing:v,aCommonFollowing:C,bCommonFollowing:S,nChangeFollowing:A,aStartFollowing:_,bStartFollowing:E}=c;t<p&&n<h&&Ju(m,t,p,n,h,a,i,s,l,c),g!==0&&u(g,y,b),v!==0&&u(v,C,S),_<r&&E<o&&Ju(A,_,r,E,o,a,i,s,l,c)},Lb=(e,t)=>{if(typeof t!="number")throw new TypeError(`${_o}: ${e} typeof ${typeof t} is not a number`);if(!Number.isSafeInteger(t))throw new RangeError(`${_o}: ${e} value ${t} is not a safe integer`);if(t<0)throw new RangeError(`${_o}: ${e} value ${t} is a negative integer`)},Bb=(e,t)=>{let r=typeof t;if(r!=="function")throw new TypeError(`${_o}: ${e} typeof ${r} is not a function`)};function Jk(e,t,r,n){Lb("aLength",e),Lb("bLength",t),Bb("isCommon",r),Bb("foundSubsequence",n);let o=Po(0,e,0,t,r);if(o!==0&&n(o,0,0),e!==o||t!==o){let a=o,i=o,s=Oo(a,e-1,i,t-1,r),l=e-s,c=t-s,u=o+s;e!==u&&t!==u&&Ju(0,a,l,i,c,!1,[{foundSubsequence:n,isCommon:r}],[Ze],[Ze],{aCommonFollowing:Ze,aCommonPreceding:Ze,aEndPreceding:Ze,aStartFollowing:Ze,bCommonFollowing:Ze,bCommonPreceding:Ze,bEndPreceding:Ze,bStartFollowing:Ze,nChangeFollowing:Ze,nChangePreceding:Ze,nCommonFollowing:Ze,nCommonPreceding:Ze}),s!==0&&n(s,l,c)}}function Qk(e,t){return e.replace(/\s+$/,r=>t(r))}function Rd(e,t,r,n,o,a){return e.length!==0?r(`${n} ${Qk(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function wE(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Rd(e,t,r,n,o,a)}function CE(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Rd(e,t,r,n,o,a)}function SE(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Rd(e,t,r,n,o,a)}function kb(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function Zk(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,s=0,l=0;for(;l!==r;){let S=l;for(;l!==r&&e[l][0]===Ne;)l+=1;if(S!==l)if(S===0)l>n&&(a-=l-n,i=!0);else if(l===r){let A=l-S;A>n&&(a-=A-n,i=!0)}else{let A=l-S;A>o&&(a-=A-o,s+=1)}for(;l!==r&&e[l][0]!==Ne;)l+=1}let c=s!==0||i;s!==0?a+=s+1:i&&(a+=1);let u=a-1,d=[],m=0;c&&d.push("");let p=0,h=0,g=0,y=0,b=S=>{let A=d.length;d.push(SE(S,A===0||A===u,t)),g+=1,y+=1},v=S=>{let A=d.length;d.push(wE(S,A===0||A===u,t)),g+=1},C=S=>{let A=d.length;d.push(CE(S,A===0||A===u,t)),y+=1};for(l=0;l!==r;){let S=l;for(;l!==r&&e[l][0]===Ne;)l+=1;if(S!==l)if(S===0){l>n&&(S=l-n,p=S,h=S,g=p,y=h);for(let A=S;A!==l;A+=1)b(e[A][1])}else if(l===r){let A=l-S>n?S+n:l;for(let _=S;_!==A;_+=1)b(e[_][1])}else{let A=l-S;if(A>o){let _=S+n;for(let R=S;R!==_;R+=1)b(e[R][1]);d[m]=kb(p,g,h,y,t),m=d.length,d.push("");let E=A-o;p=g+E,h=y+E,g=p,y=h;for(let R=l-n;R!==l;R+=1)b(e[R][1])}else for(let _=S;_!==l;_+=1)b(e[_][1])}for(;l!==r&&e[l][0]===tt;)v(e[l][1]),l+=1;for(;l!==r&&e[l][0]===Ke;)C(e[l][1]),l+=1}return c&&(d[m]=kb(p,g,h,y,t)),d.join(`
|
|
341
|
+
`)}function e$(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case tt:return wE(a,i,t);case Ke:return CE(a,i,t);default:return SE(a,i,t)}}).join(`
|
|
342
|
+
`)}var hu=e=>e,AE=5,t$=0;function r$(){return{aAnnotation:"Expected",aColor:Me.green,aIndicator:"-",bAnnotation:"Received",bColor:Me.red,bIndicator:"+",changeColor:Me.inverse,changeLineTrailingSpaceColor:hu,commonColor:Me.dim,commonIndicator:" ",commonLineTrailingSpaceColor:hu,compareKeys:void 0,contextLines:AE,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Me.yellow,truncateThreshold:t$,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:hu}}function n$(e){return e&&typeof e=="function"?e:void 0}function o$(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:AE}function Xr(e={}){return{...r$(),...e,compareKeys:n$(e.compareKeys),contextLines:o$(e.contextLines)}}function wn(e){return e.length===1&&e[0].length===0}function a$(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case tt:t+=1;break;case Ke:r+=1;break}}),{a:t,b:r}}function i$({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:s},l){if(s)return"";let c="",u="";if(i){let p=String(l.a),h=String(l.b),g=n.length-e.length,y=" ".repeat(Math.max(0,g)),b=" ".repeat(Math.max(0,-g)),v=h.length-p.length,C=" ".repeat(Math.max(0,v)),S=" ".repeat(Math.max(0,-v));c=`${y} ${r} ${C}${p}`,u=`${b} ${a} ${S}${h}`}let d=`${r} ${e}${c}`,m=`${a} ${n}${u}`;return`${t(d)}
|
|
343
343
|
${o(m)}
|
|
344
344
|
|
|
345
345
|
`}function wd(e,t,r){return i$(r,a$(e))+(r.expand?e$(e,r):Zk(e,r))+(t?r.truncateAnnotationColor(`
|
|
346
|
-
${r.truncateAnnotation}`):"")}function ji(e,t,r){let n=Xr(r),[o,a]=
|
|
346
|
+
${r.truncateAnnotation}`):"")}function ji(e,t,r){let n=Xr(r),[o,a]=TE(wn(e)?[]:e,wn(t)?[]:t,n);return wd(o,a,n)}function s$(e,t,r,n,o){if(wn(e)&&wn(r)&&(e=[],r=[]),wn(t)&&wn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return ji(e,t,o);let[a,i]=TE(r,n,o),s=0,l=0;return a.forEach(c=>{switch(c[0]){case tt:c[1]=e[s],s+=1;break;case Ke:c[1]=t[l],l+=1;break;default:c[1]=t[l],s+=1,l+=1}}),wd(a,i,Xr(o))}function TE(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,s=a!==e.length||i!==t.length,l=(m,p)=>e[m]===t[p],c=[],u=0,d=0;for(RE(a,i,l,(m,p,h)=>{for(;u!==p;u+=1)c.push(new Pe(tt,e[u]));for(;d!==h;d+=1)c.push(new Pe(Ke,t[d]));for(;m!==0;m-=1,u+=1,d+=1)c.push(new Pe(Ne,t[d]))});u!==a;u+=1)c.push(new Pe(tt,e[u]));for(;d!==i;d+=1)c.push(new Pe(Ke,t[d]));return[c,s]}function $b(e){return e.includes(`\r
|
|
347
347
|
`)?`\r
|
|
348
348
|
`:`
|
|
349
349
|
`}function l$(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,i=t.length;if(n){let m=e.includes(`
|
|
350
350
|
`),p=t.includes(`
|
|
351
|
-
`),h
|
|
351
|
+
`),h=$b(e),g=$b(t),y=m?`${e.split(h,o).join(h)}
|
|
352
352
|
`:e,b=p?`${t.split(g,o).join(g)}
|
|
353
|
-
`:t;a=y.length,i=b.length}let s=a!==e.length||i!==t.length,l=(m,p)=>e[m]===t[p],c=0,u=0,d=[];return
|
|
353
|
+
`:t;a=y.length,i=b.length}let s=a!==e.length||i!==t.length,l=(m,p)=>e[m]===t[p],c=0,u=0,d=[];return RE(a,i,l,(m,p,h)=>{c!==p&&d.push(new Pe(tt,e.slice(c,p))),u!==h&&d.push(new Pe(Ke,t.slice(u,h))),c=p+m,u=h+m,d.push(new Pe(Ne,t.slice(h,u)))}),c!==a&&d.push(new Pe(tt,e.slice(c))),u!==i&&d.push(new Pe(Ke,t.slice(u))),[d,s]}function u$(e,t,r){return t.reduce((n,o)=>n+(o[0]===Ne?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Ub=class{constructor(e,t){Ae(this,"op");Ae(this,"line");Ae(this,"lines");Ae(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Pe(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Pe(this.op,u$(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Pe(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
354
354
|
`)){let r=t.split(`
|
|
355
355
|
`),n=r.length-1;r.forEach((o,a)=>{a<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},c$=class{constructor(e,t){Ae(this,"deleteBuffer");Ae(this,"insertBuffer");Ae(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
|
|
356
356
|
`)){let n=r.split(`
|
|
357
|
-
`),o=n.length-1;n.forEach((a,i)=>{if(i===0){let s=new Pe(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else i<o?this.pushDiffCommonLine(new Pe(t,a)):a.length!==0&&this.pushDiffChangeLines(new Pe(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function d$(e,t){let r=new
|
|
357
|
+
`),o=n.length-1;n.forEach((a,i)=>{if(i===0){let s=new Pe(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else i<o?this.pushDiffCommonLine(new Pe(t,a)):a.length!==0&&this.pushDiffChangeLines(new Pe(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function d$(e,t){let r=new Ub(tt,t),n=new Ub(Ke,t),o=new c$(r,n);return e.forEach(a=>{switch(a[0]){case tt:r.align(a);break;case Ke:n.align(a);break;default:o.align(a)}}),o.getLines()}function p$(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Ne&&(o!==r||n[1]!==`
|
|
358
358
|
`))}return e.some(r=>r[0]===Ne)}function f$(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
359
359
|
`)||t.includes(`
|
|
360
|
-
`),[o,a]=
|
|
360
|
+
`),[o,a]=PE(n?`${e}
|
|
361
361
|
`:e,n?`${t}
|
|
362
362
|
`:t,!0,r);if(p$(o,n)){let i=Xr(r),s=d$(o,i.changeColor);return wd(s,a,i)}}return ji(e.split(`
|
|
363
363
|
`),t.split(`
|
|
364
|
-
`),r)}function
|
|
364
|
+
`),r)}function PE(e,t,r,n){let[o,a]=l$(e,t,n);return r&&Hk(o),[o,a]}function Qu(e,t){let{commonColor:r}=Xr(t);return r(e)}var{AsymmetricMatcher:m$,DOMCollection:h$,DOMElement:y$,Immutable:b$,ReactElement:g$,ReactTestComponent:v$}=hE,OE=[v$,g$,y$,h$,b$,m$],Zu={plugins:OE},qE={callToJSON:!1,maxDepth:10,plugins:OE};function In(e,t,r){if(Object.is(e,t))return"";let n=Mb(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==Mb(t)){let{aAnnotation:i,aColor:s,aIndicator:l,bAnnotation:c,bColor:u,bIndicator:d}=Xr(r),m=ec(qE,r),p=Lt(e,m),h=Lt(t,m),g=`${s(`${l} ${i}:`)}
|
|
365
365
|
${p}`,y=`${u(`${d} ${c}:`)}
|
|
366
366
|
${h}`;return`${g}
|
|
367
367
|
|
|
368
368
|
${y}`}if(!a)switch(n){case"string":return ji(e.split(`
|
|
369
369
|
`),t.split(`
|
|
370
|
-
`),r);case"boolean":case"number":return E$(e,t,r);case"map":return yu(
|
|
370
|
+
`),r);case"boolean":case"number":return E$(e,t,r);case"map":return yu(Hb(e),Hb(t),r);case"set":return yu(Vb(e),Vb(t),r);default:return yu(e,t,r)}}function E$(e,t,r){let n=Lt(e,Zu),o=Lt(t,Zu);return n===o?"":ji(n.split(`
|
|
371
371
|
`),o.split(`
|
|
372
|
-
`),r)}function
|
|
372
|
+
`),r)}function Hb(e){return new Map(Array.from(e.entries()).sort())}function Vb(e){return new Set(Array.from(e.values()).sort())}function yu(e,t,r){let n,o=!1;try{let i=ec(Zu,r);n=zb(e,t,i,r)}catch{o=!0}let a=Qu(EE,r);if(n===void 0||n===a){let i=ec(qE,r);n=zb(e,t,i,r),n!==a&&!o&&(n=`${Qu(Yk,r)}
|
|
373
373
|
|
|
374
|
-
${n}`)}return n}function ec(e,t){let{compareKeys:r}=Xr(t);return{...e,compareKeys:r}}function
|
|
374
|
+
${n}`)}return n}function ec(e,t){let{compareKeys:r}=Xr(t);return{...e,compareKeys:r}}function zb(e,t,r,n){let o={...r,indent:0},a=Lt(e,o),i=Lt(t,o);if(a===i)return Qu(EE,n);{let s=Lt(e,r),l=Lt(t,r);return s$(s.split(`
|
|
375
375
|
`),l.split(`
|
|
376
376
|
`),a.split(`
|
|
377
377
|
`),i.split(`
|
|
378
|
-
`),n)}}var
|
|
378
|
+
`),n)}}var Gb=2e4;function Yb(e){return Yu(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Wb(e,t){let r=Yu(e),n=Yu(t);return r===n&&(r==="Object"||r==="Array")}function xE(e,t,r){let{aAnnotation:n,bAnnotation:o}=Xr(r);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=Gb&&t.length<=Gb&&e!==t){if(e.includes(`
|
|
379
379
|
`)||t.includes(`
|
|
380
|
-
`))return f$(t,e,r);let[c]=
|
|
381
|
-
${p}`}let a=
|
|
382
|
-
Inner error message: ${n?.message}`))}}var qo=Symbol.for("matchers-object"),xo=Symbol.for("$$jest-matchers-object-storybook"),Cd=Symbol.for("expect-global"),rc=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,qo)){let e=new WeakMap;Object.defineProperty(globalThis,qo,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,xo)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,xo,{configurable:!0,get:()=>({state:globalThis[qo].get(globalThis[Cd]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,rc)){let e=Object.create(null);Object.defineProperty(globalThis,rc,{get:()=>e})}function ni(e){return globalThis[qo].get(e)}function bu(e,t){let r=globalThis[qo],n=r.get(t)||{};Object.assign(n,e),r.set(t,n)}var oi=Me.green,Sd=Me.red,L$=Me.inverse,B$=Me.bold,gr=Me.dim;function k$(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:a=!1,isNot:i=!1,promise:s="",secondArgument:l="",expectedColor:c=oi,receivedColor:u=Sd,secondArgumentColor:d=oi}=n,m="",p="expect";return!a&&t!==""&&(m+=gr(`${p}(`)+u(t),p=")"),s!==""&&(m+=gr(`${p}.`)+s,p=""),i&&(m+=`${gr(`${p}.`)}not`,p=""),e.includes(".")?p+=e:(m+=gr(`${p}.`)+e,p=""),r===""?p+="()":(m+=gr(`${p}(`)+c(r),l&&(m+=gr(", ")+d(l)),p=")"),o!==""&&(p+=` // ${o}`),p!==""&&(m+=gr(p)),m}var $$="\xB7";function
|
|
380
|
+
`))return f$(t,e,r);let[c]=PE(t,e,!0),u=c.some(h=>h[0]===Ne),d=_$(n,o),m=d(n)+C$(Kb(c,tt,u)),p=d(o)+w$(Kb(c,Ke,u));return`${m}
|
|
381
|
+
${p}`}let a=db(e,{forceWritable:!0}),i=db(t,{forceWritable:!0}),{replacedExpected:s,replacedActual:l}=ME(a,i);return In(s,l,r)}function ME(e,t,r=new WeakSet,n=new WeakSet){return Wb(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Y0(t).forEach(o=>{let a=t[o],i=e[o];if(Yb(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Yb(i))i.asymmetricMatch(a)&&(t[o]=i);else if(Wb(i,a)){let s=ME(i,a,r,n);e[o]=s.replacedActual,t[o]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function _$(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var R$="\xB7";function NE(e){return e.replace(/\s+$/gm,t=>R$.repeat(t.length))}function w$(e){return Me.red(NE(Rt(e)))}function C$(e){return Me.green(NE(Rt(e)))}function Kb(e,t,r){return e.reduce((n,o)=>n+(o[0]===Ne?o[1]:o[0]===t?r?Me.inverse(o[1]):o[1]:""),"")}function Ua(e,t){if(!e)throw new Error(t)}function Cn(e,t){return typeof t===e}function S$(e){return e instanceof Promise}function tc(e,t,r){Object.defineProperty(e,t,r)}function Pn(e,t,r){Object.defineProperty(e,t,{value:r})}var Ro=Symbol.for("tinyspy:spy"),A$=new Set,T$=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},P$=e=>(tc(e,Ro,{value:{reset:()=>T$(e[Ro])}}),e[Ro]),ri=e=>e[Ro]||P$(e);function O$(e){Ua(Cn("function",e)||Cn("undefined",e),"cannot spy on a non-function value");let t=function(...n){let o=ri(t);o.called=!0,o.callCount++,o.calls.push(n);let a=o.next.shift();if(a){o.results.push(a);let[u,d]=a;if(u==="ok")return d;throw d}let i,s="ok",l=o.results.length;if(o.impl)try{new.target?i=Reflect.construct(o.impl,n,new.target):i=o.impl.apply(this,n),s="ok"}catch(u){throw i=u,s="error",o.results.push([s,u]),u}let c=[s,i];return S$(i)&&i.then(u=>o.resolves[l]=["ok",u],u=>o.resolves[l]=["error",u]),o.results.push(c),i};Pn(t,"_isMockFunction",!0),Pn(t,"length",e?e.length:0),Pn(t,"name",e&&e.name||"spy");let r=ri(t);return r.reset(),r.impl=e,t}var Xb=(e,t)=>Object.getOwnPropertyDescriptor(e,t),Jb=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function q$(e,t,r){Ua(!Cn("undefined",e),"spyOn could not find an object to spy upon"),Ua(Cn("object",e)||Cn("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!Cn("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),a=Xb(e,n),i=Object.getPrototypeOf(e),s=i&&Xb(i,n),l=a||s;Ua(l||n in e,`${String(n)} does not exist`);let c=!1;o==="value"&&l&&!l.value&&l.get&&(o="get",c=!0,r=l.get());let u;l?u=l[o]:o!=="value"?u=()=>e[n]:u=e[n];let d=g=>{let{value:y,...b}=l||{configurable:!0,writable:!0};o!=="value"&&delete b.writable,b[o]=g,tc(e,n,b)},m=()=>l?tc(e,n,l):d(u);r||(r=u);let p=O$(r);o==="value"&&Jb(p,u);let h=p[Ro];return Pn(h,"restore",m),Pn(h,"getOriginal",()=>c?u():u),Pn(h,"willCall",g=>(h.impl=g,p)),d(c?()=>(Jb(p,r),p):p),A$.add(p),p}var Ii=new Set;function jE(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}var x$=0;function M$(e){let t=e,r,n=[],o=[],a=[],i=ri(e),s={get calls(){return i.calls},get contexts(){return o},get instances(){return n},get invocationCallOrder(){return a},get results(){return i.results.map(([p,h])=>({type:p==="error"?"throw":"return",value:h}))},get settledResults(){return i.resolves.map(([p,h])=>({type:p==="error"?"rejected":"fulfilled",value:h}))},get lastCall(){return i.calls[i.calls.length-1]}},l=[],c=!1;function u(...p){return n.push(this),o.push(this),a.push(++x$),(c?r:l.shift()||r||i.getOriginal()||(()=>{})).apply(this,p)}let d=t.name;t.getMockName=()=>d||"vi.fn()",t.mockName=p=>(d=p,t),t.mockClear=()=>(i.reset(),n=[],o=[],a=[],t),t.mockReset=()=>(t.mockClear(),r=()=>{},l=[],t),t.mockRestore=()=>(t.mockReset(),i.restore(),r=void 0,t),t.getMockImplementation=()=>r,t.mockImplementation=p=>(r=p,i.willCall(u),t),t.mockImplementationOnce=p=>(l.push(p),t);function m(p,h){let g=r;r=p,i.willCall(u),c=!0;let y=()=>{r=g,c=!1},b=h();return b instanceof Promise?b.then(()=>(y(),t)):(y(),t)}return t.withImplementation=m,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=p=>t.mockImplementation(()=>p),t.mockReturnValueOnce=p=>t.mockImplementationOnce(()=>p),t.mockResolvedValue=p=>t.mockImplementation(()=>Promise.resolve(p)),t.mockResolvedValueOnce=p=>t.mockImplementationOnce(()=>Promise.resolve(p)),t.mockRejectedValue=p=>t.mockImplementation(()=>Promise.reject(p)),t.mockRejectedValueOnce=p=>t.mockImplementationOnce(()=>Promise.reject(p)),Object.defineProperty(t,"mock",{get:()=>s}),i.willCall(u),Ii.add(t),t}function Qb(e){let t=M$(q$({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}var N$="@@__IMMUTABLE_RECORD__@@",j$="@@__IMMUTABLE_ITERABLE__@@";function I$(e){return e&&(e[j$]||e[N$])}var D$=Object.getPrototypeOf({});function Zb(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Sn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(I$(e))return Sn(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${$k(e.sample)}`;if(typeof e.toJSON=="function")return Sn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=Sn(n,t)}catch(a){r[o]=Zb(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==D$;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Sn(e[o],t)}catch(a){delete r[o],r[o]=Zb(a)}}),n=Object.getPrototypeOf(n);return r}}function F$(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function IE(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;n.stack&&(n.stackStr=String(n.stack)),n.name&&(n.nameStr=String(n.name)),(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=xE(n.actual,n.expected,{...t,...n.diffOptions})),typeof n.expected!="string"&&(n.expected=Rt(n.expected,10)),typeof n.actual!="string"&&(n.actual=Rt(n.actual,10));try{typeof n.message=="string"&&(n.message=F$(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=IE(n.cause,t,r))}catch{}try{return Sn(n)}catch(o){return Sn(new Error(`Failed to fully serialize error: ${o?.message}
|
|
382
|
+
Inner error message: ${n?.message}`))}}var qo=Symbol.for("matchers-object"),xo=Symbol.for("$$jest-matchers-object-storybook"),Cd=Symbol.for("expect-global"),rc=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,qo)){let e=new WeakMap;Object.defineProperty(globalThis,qo,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,xo)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,xo,{configurable:!0,get:()=>({state:globalThis[qo].get(globalThis[Cd]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,rc)){let e=Object.create(null);Object.defineProperty(globalThis,rc,{get:()=>e})}function ni(e){return globalThis[qo].get(e)}function bu(e,t){let r=globalThis[qo],n=r.get(t)||{};Object.assign(n,e),r.set(t,n)}var oi=Me.green,Sd=Me.red,L$=Me.inverse,B$=Me.bold,gr=Me.dim;function k$(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:a=!1,isNot:i=!1,promise:s="",secondArgument:l="",expectedColor:c=oi,receivedColor:u=Sd,secondArgumentColor:d=oi}=n,m="",p="expect";return!a&&t!==""&&(m+=gr(`${p}(`)+u(t),p=")"),s!==""&&(m+=gr(`${p}.`)+s,p=""),i&&(m+=`${gr(`${p}.`)}not`,p=""),e.includes(".")?p+=e:(m+=gr(`${p}.`)+e,p=""),r===""?p+="()":(m+=gr(`${p}(`)+c(r),l&&(m+=gr(", ")+d(l)),p=")"),o!==""&&(p+=` // ${o}`),p!==""&&(m+=gr(p)),m}var $$="\xB7";function DE(e){return e.replace(/\s+$/gm,t=>$$.repeat(t.length))}function U$(e){return Sd(DE(Rt(e)))}function H$(e){return oi(DE(Rt(e)))}function FE(){return{EXPECTED_COLOR:oi,RECEIVED_COLOR:Sd,INVERTED_COLOR:L$,BOLD_WEIGHT:B$,DIM_COLOR:gr,diff:In,matcherHint:k$,printReceived:U$,printExpected:H$,printDiffOrStringify:xE}}function Ad(){return globalThis[xo].customEqualityTesters}function me(e,t,r,n){return r=r||[],LE(e,t,[],[],r,n?BE:z$)}function eg(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&qt("Function",e.asymmetricMatch)}function V$(e,t){let r=eg(e),n=eg(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function LE(e,t,r,n,o,a){let i=!0,s=V$(e,t);if(s!==void 0)return s;let l={equals:me};for(let h=0;h<o.length;h++){let g=o[h].call(l,e,t,o);if(g!==void 0)return g}if(e instanceof Error&&t instanceof Error)return e.message===t.message;if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let c=Object.prototype.toString.call(e);if(c!==Object.prototype.toString.call(t))return!1;switch(c){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let h=+e,g=+t;return h===g||Number.isNaN(h)&&Number.isNaN(g)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags}if(typeof e!="object"||typeof t!="object")return!1;if(rg(e)&&rg(t))return e.isEqualNode(t);let u=r.length;for(;u--;){if(r[u]===e)return n[u]===t;if(n[u]===t)return!1}if(r.push(e),n.push(t),c==="[object Array]"&&e.length!==t.length)return!1;let d=tg(e,a),m,p=d.length;if(tg(t,a).length!==p)return!1;for(;p--;)if(m=d[p],i=a(t,m)&&LE(e[m],t[m],r,n,o,a),!i)return!1;return r.pop(),n.pop(),i}function tg(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function z$(e,t){return BE(e,t)&&e[t]!==void 0}function BE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function rg(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var kE="@@__IMMUTABLE_KEYED__@@",$E="@@__IMMUTABLE_SET__@@",G$="@@__IMMUTABLE_LIST__@@",Di="@@__IMMUTABLE_ORDERED__@@",Y$="@@__IMMUTABLE_RECORD__@@";function W$(e){return!!(e&&e[kE]&&!e[Di])}function K$(e){return!!(e&&e[$E]&&!e[Di])}function Fi(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function X$(e){return!!(e&&Fi(e)&&e[G$])}function J$(e){return!!(e&&Fi(e)&&e[kE]&&e[Di])}function Q$(e){return!!(e&&Fi(e)&&e[$E]&&e[Di])}function Z$(e){return!!(e&&Fi(e)&&e[Y$])}var UE=Symbol.iterator;function ng(e){return!!(e!=null&&e[UE])}function ft(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!ng(e)||!ng(t))return;if(e.constructor!==t.constructor)return!1;let a=n.length;for(;a--;)if(n[a]===e)return o[a]===t;n.push(e),o.push(t);let i=[...r.filter(c=>c!==ft),s];function s(c,u){return ft(c,u,[...r],[...n],[...o])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(qt("Set",e)||K$(e)){let c=!0;for(let u of e)if(!t.has(u)){let d=!1;for(let m of t)me(u,m,i)===!0&&(d=!0);if(d===!1){c=!1;break}}return n.pop(),o.pop(),c}else if(qt("Map",e)||W$(e)){let c=!0;for(let u of e)if(!t.has(u[0])||!me(u[1],t.get(u[0]),i)){let d=!1;for(let m of t){let p=me(u[0],m[0],i),h=!1;p===!0&&(h=me(u[1],m[1],i)),h===!0&&(d=!0)}if(d===!1){c=!1;break}}return n.pop(),o.pop(),c}}let l=t[UE]();for(let c of e){let u=l.next();if(u.done||!me(c,u.value,i))return!1}if(!l.next().done)return!1;if(!X$(e)&&!J$(e)&&!Q$(e)&&!Z$(e)){let c=Object.entries(e),u=Object.entries(t);if(!me(c,u))return!1}return n.pop(),o.pop(),!0}function Td(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||Td(Object.getPrototypeOf(e),t)}function e5(e){return ka(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Yo(e,t,r=[]){let n=r.filter(a=>a!==Yo),o=(a=new WeakMap)=>(i,s)=>{if(e5(s))return Object.keys(s).every(l=>{if(s[l]!=null&&typeof s[l]=="object"){if(a.has(s[l]))return me(i[l],s[l],n);a.set(s[l],!0)}let c=i!=null&&Td(i,l)&&me(i[l],s[l],[...n,o(a)]);return a.delete(s[l]),c})};return o()(e,t)}function og(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function ag(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==n.getUint8(o))return!1;return!0}function nc(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),o=Object.keys(t),a=r.filter(i=>i!==nc);return me(e,t,a,!0)&&me(n,o)}function t5(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
383
383
|
|
|
384
384
|
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
385
385
|
|
|
386
386
|
Expected: ${t}
|
|
387
387
|
Received: serializes to the same string
|
|
388
|
-
`:n}function r5(e,t){return`${t} ${e}${t===1?"":"s"}`}function gu(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))==null?void 0:r.enumerable})]}function n5(e,t,r=[]){let n=0,o=(a=new WeakMap)=>(i,s)=>{if(Array.isArray(i)){if(Array.isArray(s)&&s.length===i.length)return s.map((l,c)=>o(a)(i[c],l))}else{if(i instanceof Date)return i;if(ka(i)&&ka(s)){if(me(i,s,[...r,ft,Yo]))return s;let l={};a.set(i,l);for(let c of gu(i))Td(s,c)?l[c]=a.has(i[c])?a.get(i[c]):o(a)(i[c],s[c]):a.has(i[c])||(n+=1,ka(i[c])&&(n+=gu(i[c]).length),o(a)(i[c],s[c]));if(gu(l).length>0)return l}}return i};return{subset:o()(e,t),stripped:n}}var Tr=class{constructor(e,t=!1){Ae(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=e,this.inverse=t}getMatcherContext(e){return{...ni(e||globalThis[Cd]),equals:me,isNot:this.inverse,customTesters:Ad(),utils:{...
|
|
389
|
-
(${g} matching ${g===1?"property":"properties"} omitted from actual)`;throw new r(b,{showDiff:!0,expected:u,actual:h})}}),o("toMatch",function(u){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof u=="string"?d.includes(u):d.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,d)}),o("toContain",function(u){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(d.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){Kt(u,"class name",["string"]);let m=t.flag(this,"negate")?d.value.replace(u,"").trim():`${d.value} ${u}`;return this.assert(d.contains(u),`expected "${d.value}" to contain "${u}"`,`expected "${d.value}" not to contain "${u}"`,m,d.value)}return typeof d=="string"&&typeof u=="string"?this.assert(d.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(u))}),o("toContainEqual",function(u){let d=t.flag(this,"object"),m=Array.from(d).findIndex(p=>me(p,u,n));this.assert(m!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u)}),o("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",u,!1)}),o("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",u,!1)}),o("toBeGreaterThan",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d>u,`expected ${d} to be greater than ${u}`,`expected ${d} to be not greater than ${u}`,d,u,!1)}),o("toBeGreaterThanOrEqual",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d>=u,`expected ${d} to be greater than or equal to ${u}`,`expected ${d} to be not greater than or equal to ${u}`,d,u,!1)}),o("toBeLessThan",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d<u,`expected ${d} to be less than ${u}`,`expected ${d} to be not less than ${u}`,d,u,!1)}),o("toBeLessThanOrEqual",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d<=u,`expected ${d} to be less than or equal to ${u}`,`expected ${d} to be not less than or equal to ${u}`,d,u,!1)}),o("toBeNaN",function(){return this.be.NaN}),o("toBeUndefined",function(){return this.be.undefined}),o("toBeNull",function(){return this.be.null}),o("toBeDefined",function(){let u=t.flag(this,"negate");return t.flag(this,"negate",!1),u?this.be.undefined:this.not.be.undefined}),o("toBeTypeOf",function(u){let d=typeof this._obj,m=u===d;return this.assert(m,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,d)}),o("toBeInstanceOf",function(u){return this.instanceOf(u)}),o("toHaveLength",function(u){return this.have.length(u)}),o("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(C=>String(C).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[m,p]=u,h=()=>Object.prototype.hasOwnProperty.call(d,m)?{value:d[m],exists:!0}:t.getPathInfo(d,m),{value:g,exists:y}=h(),b=y&&(u.length===1||me(p,g,n)),v=u.length===1?"":` with value ${t.objDisplay(p)}`;return this.assert(b,`expected #{this} to have property "${m}"${v}`,`expected #{this} to not have property "${m}"${v}`,p,y?g:void 0)}),o("toBeCloseTo",function(u,d=2){let m=this._obj,p=!1,h=0,g=0;return u===Number.POSITIVE_INFINITY&&m===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&m===Number.NEGATIVE_INFINITY?p=!0:(h=10**-d/2,g=Math.abs(m-u),p=g<h),this.assert(p,`expected #{this} to be close to #{exp}, received difference is ${g}, but expected ${h}`,`expected #{this} to not be close to #{exp}, received difference is ${g}, but expected ${h}`,u,m,!1)});let a=u=>{if(!
|
|
388
|
+
`:n}function r5(e,t){return`${t} ${e}${t===1?"":"s"}`}function gu(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))==null?void 0:r.enumerable})]}function n5(e,t,r=[]){let n=0,o=(a=new WeakMap)=>(i,s)=>{if(Array.isArray(i)){if(Array.isArray(s)&&s.length===i.length)return s.map((l,c)=>o(a)(i[c],l))}else{if(i instanceof Date)return i;if(ka(i)&&ka(s)){if(me(i,s,[...r,ft,Yo]))return s;let l={};a.set(i,l);for(let c of gu(i))Td(s,c)?l[c]=a.has(i[c])?a.get(i[c]):o(a)(i[c],s[c]):a.has(i[c])||(n+=1,ka(i[c])&&(n+=gu(i[c]).length),o(a)(i[c],s[c]));if(gu(l).length>0)return l}}return i};return{subset:o()(e,t),stripped:n}}var Tr=class{constructor(e,t=!1){Ae(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=e,this.inverse=t}getMatcherContext(e){return{...ni(e||globalThis[Cd]),equals:me,isNot:this.inverse,customTesters:Ad(),utils:{...FE(),diff:In,stringify:Rt,iterableEquality:ft,subsetEquality:Yo}}}[Symbol.for("chai/inspect")](e){let t=Rt(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`}},ig=class extends Tr{constructor(e,t=!1){if(!qt("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=qt("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},o5=class extends Tr{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},sg=class extends Tr{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!me(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},lg=class extends Tr{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(o=>me(n,o,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},a5=class extends Tr{constructor(e){if(typeof e>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:"<anonymous>"}asymmetricMatch(e){return this.sample===String?typeof e=="string"||e instanceof String:this.sample===Number?typeof e=="number"||e instanceof Number:this.sample===Function?typeof e=="function"||e instanceof Function:this.sample===Boolean?typeof e=="boolean"||e instanceof Boolean:this.sample===BigInt?typeof e=="bigint"||e instanceof BigInt:this.sample===Symbol?typeof e=="symbol"||e instanceof Symbol:this.sample===Object?typeof e=="object":e instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},ug=class extends Tr{constructor(e,t=!1){if(!qt("String",e)&&!qt("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=qt("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},cg=class extends Tr{constructor(t,r=2,n=!1){if(!qt("Number",t))throw new Error("Expected is not a Number");if(!qt("Number",r))throw new Error("Precision is not a Number");super(t);Ae(this,"precision");this.inverse=n,this.precision=r}asymmetricMatch(t){if(!qt("Number",t))return!1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${r5("digit",this.precision)})`].join(" ")}},i5=(e,t)=>{t.addMethod(e.expect,"anything",()=>new o5),t.addMethod(e.expect,"any",r=>new a5(r)),t.addMethod(e.expect,"stringContaining",r=>new ig(r)),t.addMethod(e.expect,"objectContaining",r=>new sg(r)),t.addMethod(e.expect,"arrayContaining",r=>new lg(r)),t.addMethod(e.expect,"stringMatching",r=>new ug(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new cg(r,n)),e.expect.not={stringContaining:r=>new ig(r,!0),objectContaining:r=>new sg(r,!0),arrayContaining:r=>new lg(r,!0),stringMatching:r=>new ug(r,!0),closeTo:(r,n)=>new cg(r,n,!0)}};function dg(e,t){return e&&t instanceof Promise&&(t=t.finally(()=>{let r=e.promises.indexOf(t);r!==-1&&e.promises.splice(r,1)}),e.promises||(e.promises=[]),e.promises.push(t)),t}function HE(e,t){return function(...r){var n;if(!e.flag(this,"soft"))return t.apply(this,r);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{return t.apply(this,r)}catch(a){o.result||(o.result={state:"fail"}),o.result.state="fail",(n=o.result).errors||(n.errors=[]),o.result.errors.push(IE(a))}}}var s5=(e,t)=>{let{AssertionError:r}=e,n=Ad();function o(u,d){let m=p=>{let h=HE(t,d);t.addMethod(e.Assertion.prototype,p,h),t.addMethod(globalThis[xo].matchers,p,h)};Array.isArray(u)?u.forEach(p=>m(p)):m(u)}["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,d=>function(...m){let p=t.flag(this,"promise"),h=t.flag(this,"object"),g=t.flag(this,"negate");if(p==="rejects")t.flag(this,"object",()=>{throw h});else if(p==="resolves"&&typeof h!="function"){if(g)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",b={showDiff:!1};throw new r(y,b,t.flag(this,"ssfi"))}}d.apply(this,m)})}),o("withTest",function(u){return t.flag(this,"vitest-test",u),this}),o("toEqual",function(u){let d=t.flag(this,"object"),m=me(d,u,[...n,ft]);return this.assert(m,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,d)}),o("toStrictEqual",function(u){let d=t.flag(this,"object"),m=me(d,u,[...n,ft,og,nc,ag],!0);return this.assert(m,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,d)}),o("toBe",function(u){let d=this._obj,m=Object.is(d,u),p="";return m||(me(d,u,[...n,ft,og,nc,ag],!0)?p="toStrictEqual":me(d,u,[...n,ft])&&(p="toEqual")),this.assert(m,t5(p),"expected #{this} not to be #{exp} // Object.is equality",u,d)}),o("toMatchObject",function(u){let d=this._obj,m=me(d,u,[...n,ft,Yo]),p=t.flag(this,"negate"),{subset:h,stripped:g}=n5(d,u);if(m&&p||!m&&!p){let y=t.getMessage(this,[m,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,h,!1]),b=g===0?y:`${y}
|
|
389
|
+
(${g} matching ${g===1?"property":"properties"} omitted from actual)`;throw new r(b,{showDiff:!0,expected:u,actual:h})}}),o("toMatch",function(u){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof u=="string"?d.includes(u):d.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,d)}),o("toContain",function(u){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(d.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){Kt(u,"class name",["string"]);let m=t.flag(this,"negate")?d.value.replace(u,"").trim():`${d.value} ${u}`;return this.assert(d.contains(u),`expected "${d.value}" to contain "${u}"`,`expected "${d.value}" not to contain "${u}"`,m,d.value)}return typeof d=="string"&&typeof u=="string"?this.assert(d.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(u))}),o("toContainEqual",function(u){let d=t.flag(this,"object"),m=Array.from(d).findIndex(p=>me(p,u,n));this.assert(m!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u)}),o("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",u,!1)}),o("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",u,!1)}),o("toBeGreaterThan",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d>u,`expected ${d} to be greater than ${u}`,`expected ${d} to be not greater than ${u}`,d,u,!1)}),o("toBeGreaterThanOrEqual",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d>=u,`expected ${d} to be greater than or equal to ${u}`,`expected ${d} to be not greater than or equal to ${u}`,d,u,!1)}),o("toBeLessThan",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d<u,`expected ${d} to be less than ${u}`,`expected ${d} to be not less than ${u}`,d,u,!1)}),o("toBeLessThanOrEqual",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d<=u,`expected ${d} to be less than or equal to ${u}`,`expected ${d} to be not less than or equal to ${u}`,d,u,!1)}),o("toBeNaN",function(){return this.be.NaN}),o("toBeUndefined",function(){return this.be.undefined}),o("toBeNull",function(){return this.be.null}),o("toBeDefined",function(){let u=t.flag(this,"negate");return t.flag(this,"negate",!1),u?this.be.undefined:this.not.be.undefined}),o("toBeTypeOf",function(u){let d=typeof this._obj,m=u===d;return this.assert(m,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,d)}),o("toBeInstanceOf",function(u){return this.instanceOf(u)}),o("toHaveLength",function(u){return this.have.length(u)}),o("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(C=>String(C).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[m,p]=u,h=()=>Object.prototype.hasOwnProperty.call(d,m)?{value:d[m],exists:!0}:t.getPathInfo(d,m),{value:g,exists:y}=h(),b=y&&(u.length===1||me(p,g,n)),v=u.length===1?"":` with value ${t.objDisplay(p)}`;return this.assert(b,`expected #{this} to have property "${m}"${v}`,`expected #{this} to not have property "${m}"${v}`,p,y?g:void 0)}),o("toBeCloseTo",function(u,d=2){let m=this._obj,p=!1,h=0,g=0;return u===Number.POSITIVE_INFINITY&&m===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&m===Number.NEGATIVE_INFINITY?p=!0:(h=10**-d/2,g=Math.abs(m-u),p=g<h),this.assert(p,`expected #{this} to be close to #{exp}, received difference is ${g}, but expected ${h}`,`expected #{this} to not be close to #{exp}, received difference is ${g}, but expected ${h}`,u,m,!1)});let a=u=>{if(!jE(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)},i=u=>(a(u),u._obj),s=u=>{let d=u%10,m=u%100;return d===1&&m!==11?`${u}st`:d===2&&m!==12?`${u}nd`:d===3&&m!==13?`${u}rd`:`${u}th`},l=(u,d,m)=>(u.mock.calls&&(d+=Me.gray(`
|
|
390
390
|
|
|
391
391
|
Received:
|
|
392
392
|
|
|
@@ -412,17 +412,17 @@ ${d.map((h,g)=>{let y=Me.bold(` ${s(g+1)} ${u.getMockName()} call return:
|
|
|
412
412
|
`)}`),m+=Me.gray(`
|
|
413
413
|
|
|
414
414
|
Number of calls: ${Me.bold(u.mock.calls.length)}
|
|
415
|
-
`),m);o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let d=i(this),m=d.getMockName(),p=d.mock.calls.length;return this.assert(p===u,`expected "${m}" to be called #{exp} times, but got ${p} times`,`expected "${m}" to not be called #{exp} times`,u,p,!1)}),o("toHaveBeenCalledOnce",function(){let u=i(this),d=u.getMockName(),m=u.mock.calls.length;return this.assert(m===1,`expected "${d}" to be called once, but got ${m} times`,`expected "${d}" to not be called once`,1,m,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let u=i(this),d=u.getMockName(),m=u.mock.calls.length,p=m>0,h=t.flag(this,"negate"),g=t.getMessage(this,[p,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${m} times`,!0,p]);if(p&&h&&(g=l(u,g)),p&&h||!p&&!h)throw new r(g)}),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let d=i(this),m=d.getMockName(),p=d.mock.calls.some(y=>me(y,u,[...n,ft])),h=t.flag(this,"negate"),g=t.getMessage(this,[p,`expected "${m}" to be called with arguments: #{exp}`,`expected "${m}" to not be called with arguments: #{exp}`,u]);if(p&&h||!p&&!h)throw new r(l(d,g,u))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...d){let m=i(this),p=m.getMockName(),h=m.mock.calls[u-1],g=m.mock.calls.length,y=u<=g;this.assert(me(h,d,[...n,ft]),`expected ${s(u)} "${p}" call to have been called with #{exp}${y?"":`, but called only ${g} times`}`,`expected ${s(u)} "${p}" call to not have been called with #{exp}`,d,h,y)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let d=i(this),m=d.getMockName(),p=d.mock.calls[d.mock.calls.length-1];this.assert(me(p,u,[...n,ft]),`expected last "${m}" call to have been called with #{exp}`,`expected last "${m}" call to not have been called with #{exp}`,u,p)}),o(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u);let d=this._obj,m=t.flag(this,"promise"),p=t.flag(this,"negate"),h=null;if(m==="rejects")h=d;else if(m==="resolves"&&typeof d!="function"){if(p)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:!1};throw new r(g,y,t.flag(this,"ssfi"))}}else{let g=!1;try{d()}catch(y){g=!0,h=y}if(!g&&!p){let y=t.flag(this,"message")||"expected function to throw an error, but it didn't",b={showDiff:!1};throw new r(y,b,t.flag(this,"ssfi"))}}if(typeof u=="function"){let g=u.name||u.prototype.constructor.name;return this.assert(h&&h instanceof u,`expected error to be instance of ${g}`,`expected error not to be instance of ${g}`,u,h)}if(u instanceof Error)return this.assert(h&&u.message===h.message,`expected error to have message: ${u.message}`,`expected error not to have message: ${u.message}`,u.message,h&&h.message);if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let g=u;return this.assert(h&&g.asymmetricMatch(h),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",g,h)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:u=>u.mock.calls.length>0&&u.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(){let p=i(this),h=p.getMockName(),g=d(p);this.assert(g,`expected "${h}" to be successfully ${m} at least once`,`expected "${h}" to not be successfully ${m}`,g,!g,!1)})}),[{name:"toHaveResolvedTimes",condition:(u,d)=>u.mock.settledResults.reduce((m,{type:p})=>p==="fulfilled"?++m:m,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(u,d)=>u.mock.results.reduce((m,{type:p})=>p==="throw"?m:++m,0)===d,action:"called"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(p){let h=i(this),g=h.getMockName(),y=d(h,p);this.assert(y,`expected "${g}" to be successfully ${m} ${p} times`,`expected "${g}" to not be successfully ${m} ${p} times`,`expected resolved times: ${p}`,`received resolved times: ${y}`,!1)})}),[{name:"toHaveResolvedWith",condition:(u,d)=>u.mock.settledResults.some(({type:m,value:p})=>m==="fulfilled"&&me(d,p)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(u,d)=>u.mock.results.some(({type:m,value:p})=>m==="return"&&me(d,p)),action:"return"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(p){let h=i(this),g=d(h,p),y=t.flag(this,"negate");if(g&&y||!g&&!y){let b=h.getMockName(),v=t.getMessage(this,[g,`expected "${b}" to ${m} with: #{exp} at least once`,`expected "${b}" to not ${m} with: #{exp}`,p]),C=m==="return"?h.mock.results:h.mock.settledResults;throw new r(c(h,C,v,p))}})}),[{name:"toHaveLastResolvedWith",condition:(u,d)=>{let m=u.mock.settledResults[u.mock.settledResults.length-1];return m&&m.type==="fulfilled"&&me(m.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(u,d)=>{let m=u.mock.results[u.mock.results.length-1];return m&&m.type==="return"&&me(m.value,d)},action:"return"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(p){let h=i(this),g=m==="return"?h.mock.results:h.mock.settledResults,y=g[g.length-1],b=h.getMockName();this.assert(d(h,p),`expected last "${b}" call to ${m} #{exp}`,`expected last "${b}" call to not ${m} #{exp}`,p,y?.value)})}),[{name:"toHaveNthResolvedWith",condition:(u,d,m)=>{let p=u.mock.settledResults[d-1];return p&&p.type==="fulfilled"&&me(p.value,m)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(u,d,m)=>{let p=u.mock.results[d-1];return p&&p.type==="return"&&me(p.value,m)},action:"return"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(p,h){let g=i(this),y=g.getMockName(),b=(m==="return"?g.mock.results:g.mock.settledResults)[p-1],v=`${s(p)} call`;this.assert(d(g,p,h),`expected ${v} "${y}" call to ${m} #{exp}`,`expected ${v} "${y}" call to not ${m} #{exp}`,h,b?.value)})}),o("toSatisfy",function(u,d){return this.be.satisfy(u,d)}),o("withContext",function(u){for(let d in u)t.flag(this,d,u[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let u=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),m=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof m?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof m}'.`);let p=new Proxy(this,{get:(h,g,y)=>{let b=Reflect.get(h,g,y);return typeof b!="function"?b instanceof e.Assertion?p:b:async(...v)=>{let C=m.then(S=>(t.flag(this,"object",S),b.call(this,...v)),S=>{let A=new r(`promise rejected "${t.inspect(S)}" instead of resolving`,{showDiff:!1});throw A.cause=S,A.stack=u.stack.replace(u.message,A.message),A});return cg(d,C)}}});return p}),t.addProperty(e.Assertion.prototype,"rejects",function(){let u=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),m=t.flag(this,"object"),p=typeof m=="function"?m():m;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof p}'.`);let h=new Proxy(this,{get:(g,y,b)=>{let v=Reflect.get(g,y,b);return typeof v!="function"?v instanceof e.Assertion?h:v:async(...C)=>{let S=p.then(A=>{let _=new r(`promise resolved "${t.inspect(A)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:A});throw _.stack=u.stack.replace(u.message,_.message),_},A=>(t.flag(this,"object",A),v.call(this,...C)));return cg(d,S)}}});return h})};function l5(e,t){let r=e._obj,n=Ft.flag(e,"negate"),o=Ft.flag(e,"promise")||"",a={...DE(),diff:In,stringify:Rt,iterableEquality:ft,subsetEquality:Yo};return{state:{...ni(t),customTesters:Ad(),isNot:n,utils:a,promise:o,equals:me,suppressedErrors:[],soft:Ft.flag(e,"soft"),poll:Ft.flag(e,"poll")},isNot:n,obj:r}}var dg=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function u5(e,t,r){return(n,o)=>{Object.entries(r).forEach(([a,i])=>{function s(...d){let{state:m,isNot:p,obj:h}=l5(this,t),g=i.call(m,h,...d);if(g&&typeof g=="object"&&g instanceof Promise)return g.then(({pass:S,message:A,actual:_,expected:E})=>{if(S&&p||!S&&!p)throw new dg(A(),_,E)});let{pass:y,message:b,actual:v,expected:C}=g;if(y&&p||!y&&!p)throw new dg(b(),v,C)}let l=UE(o,s);o.addMethod(globalThis[xo].matchers,a,l),o.addMethod(e.Assertion.prototype,a,l);class c extends Tr{constructor(m=!1,...p){super(p,m)}asymmetricMatch(m){let{pass:p}=i.call(this.getMatcherContext(t),m,...this.sample);return this.inverse?!p:p}toString(){return`${this.inverse?"not.":""}${a}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(String).join(", ")}>`}}let u=(...d)=>new c(!1,...d);Object.defineProperty(t,a,{configurable:!0,enumerable:!0,value:u,writable:!0}),Object.defineProperty(t.not,a,{configurable:!0,enumerable:!0,value:(...d)=>new c(!0,...d),writable:!0}),Object.defineProperty(globalThis[rc],a,{configurable:!0,enumerable:!0,value:u,writable:!0})})}}var c5=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{Tn(u5(e,r,n))})};function d5(){Tn(c5),Tn(s5),Tn(i5);let e=(n,o)=>{let{assertionCalls:a}=ni(e);return bu({assertionCalls:a+1,soft:!1},e),Vr(n,o)};Object.assign(e,Vr),e.getState=()=>ni(e),e.setState=n=>bu(n,e),e.extend=n=>Vr.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.unreachable=n=>{q.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let o=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o})}function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return bu({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Ft.addMethod(e,"assertions",t),Ft.addMethod(e,"hasAssertions",r),e.extend(Zv),e}var HE=d5();Object.defineProperty(globalThis,Cd,{value:HE,writable:!0,configurable:!0});var oc=new Set;function p5(e){return oc.add(e),()=>void oc.delete(e)}function f5(e){let t=e?Jb(e):Jb();return m5(t)}function m5(e){let t=pg(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>pg(r(n)),t}function pg(e){let t=ri(e),r=t.impl;return t.willCall(function(...n){return oc.forEach(o=>o(e,n)),r?.apply(this,n)}),e}function h5(){Ii.forEach(e=>e.mockClear())}function y5(){Ii.forEach(e=>e.mockReset())}function b5(){Ii.forEach(e=>e.mockRestore())}var VE={};wc(VE,{buildQueries:()=>ar,configure:()=>P3,createEvent:()=>Va,findAllByAltText:()=>W1,findAllByDisplayValue:()=>U1,findAllByLabelText:()=>_1,findAllByPlaceholderText:()=>q1,findAllByRole:()=>s_,findAllByTestId:()=>f_,findAllByText:()=>D1,findAllByTitle:()=>e_,findByAltText:()=>K1,findByDisplayValue:()=>H1,findByLabelText:()=>R1,findByPlaceholderText:()=>x1,findByRole:()=>l_,findByTestId:()=>m_,findByText:()=>F1,findByTitle:()=>t_,fireEvent:()=>Do,getAllByAltText:()=>G1,getAllByDisplayValue:()=>k1,getAllByLabelText:()=>w1,getAllByPlaceholderText:()=>P1,getAllByRole:()=>a_,getAllByTestId:()=>d_,getAllByText:()=>j1,getAllByTitle:()=>Q1,getByAltText:()=>Y1,getByDisplayValue:()=>$1,getByLabelText:()=>C1,getByPlaceholderText:()=>O1,getByRole:()=>i_,getByTestId:()=>p_,getByText:()=>I1,getByTitle:()=>Z1,getConfig:()=>ce,getDefaultNormalizer:()=>Nd,getElementError:()=>Bi,getMultipleElementsFoundError:()=>ki,getNodeText:()=>Wo,getQueriesForElement:()=>mc,getRoles:()=>m1,getSuggestedQuery:()=>ii,isInaccessible:()=>Li,logDOM:()=>ac,logRoles:()=>N3,makeFindQuery:()=>Fn,makeGetAllQuery:()=>Dd,makeSingleQuery:()=>Dn,prettyDOM:()=>jo,prettyFormat:()=>Pd,queries:()=>si,queryAllByAltText:()=>V1,queryAllByAttribute:()=>Qr,queryAllByDisplayValue:()=>L1,queryAllByLabelText:()=>S1,queryAllByPlaceholderText:()=>A1,queryAllByRole:()=>n_,queryAllByTestId:()=>u_,queryAllByText:()=>M1,queryAllByTitle:()=>X1,queryByAltText:()=>z1,queryByAttribute:()=>y1,queryByDisplayValue:()=>B1,queryByLabelText:()=>v1,queryByPlaceholderText:()=>T1,queryByRole:()=>o_,queryByTestId:()=>c_,queryByText:()=>N1,queryByTitle:()=>J1,queryHelpers:()=>Y3,screen:()=>_U,waitFor:()=>Id,waitForElementToBeRemoved:()=>mU,within:()=>mc,wrapAllByQueryWithSuggestion:()=>ct,wrapSingleQueryWithSuggestion:()=>wr});var Pd=mt(KN()),g5=Object.prototype.toString;function fg(e){return typeof e=="function"||g5.call(e)==="[object Function]"}function v5(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var E5=Math.pow(2,53)-1;function _5(e){var t=v5(e);return Math.min(Math.max(t,0),E5)}function Ot(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!fg(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=_5(n.length),a=fg(r)?Object(new r(o)):new Array(o),i=0,s;i<o;)s=n[i],t?a[i]=t(s,i):a[i]=s,i+=1;return a.length=o,a}function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function R5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zE(n.key),n)}}function w5(e,t,r){return t&&mg(e.prototype,t),r&&mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function C5(e,t,r){return t=zE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zE(e){var t=S5(e,"string");return Mo(t)==="symbol"?t:String(t)}function S5(e,t){if(Mo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A5=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];R5(this,e),C5(this,"items",void 0),this.items=t}return w5(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),T5=typeof Set>"u"?Set:A5;function nt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var P5={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},O5={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function q5(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=O5[t])!==null&&n!==void 0&&n.has(r))})}function GE(e,t){return q5(e,t)}function x5(e){var t=N5(e);if(t===null||t==="presentation"){var r=M5(e);if(t!=="presentation"||GE(e,r||""))return r}return t}function M5(e){var t=P5[nt(e)];if(t!==void 0)return t;switch(nt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!GE(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function N5(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Se(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function YE(e){return Se(e)&&nt(e)==="caption"}function Ha(e){return Se(e)&&nt(e)==="input"}function j5(e){return Se(e)&&nt(e)==="optgroup"}function I5(e){return Se(e)&&nt(e)==="select"}function D5(e){return Se(e)&&nt(e)==="table"}function F5(e){return Se(e)&&nt(e)==="textarea"}function L5(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function B5(e){return Se(e)&&nt(e)==="fieldset"}function k5(e){return Se(e)&&nt(e)==="legend"}function $5(e){return Se(e)&&nt(e)==="slot"}function U5(e){return Se(e)&&e.ownerSVGElement!==void 0}function H5(e){return Se(e)&&nt(e)==="svg"}function V5(e){return U5(e)&&nt(e)==="title"}function ai(e,t){if(Se(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function Qt(e,t){return Se(e)?t.indexOf(x5(e))!==-1:!1}function z5(e){return e.trim().replace(/\s\s+/g," ")}function G5(e,t){if(!Se(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function Y5(e){return Qt(e,["button","combobox","listbox","textbox"])||WE(e,"range")}function WE(e,t){if(!Se(e))return!1;switch(t){case"range":return Qt(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function hg(e,t){var r=Ot(e.querySelectorAll(t));return ai(e,"aria-owns").forEach(function(n){r.push.apply(r,Ot(n.querySelectorAll(t)))}),r}function W5(e){return I5(e)?e.selectedOptions||hg(e,"[selected]"):hg(e,'[aria-selected="true"]')}function K5(e){return Qt(e,["none","presentation"])}function X5(e){return YE(e)}function J5(e){return Qt(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function Q5(e){return!1}function Z5(e){return Ha(e)||F5(e)?e.value:e.textContent||""}function yg(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function KE(e){var t=nt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function XE(e){if(KE(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Se(r)){var n=XE(r);n!==null&&(t=n)}}),t}function e3(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):XE(e)}function t3(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Ot(t);if(!KE(e))return null;var r=e.ownerDocument;return Ot(r.querySelectorAll("label")).filter(function(n){return e3(n)===e})}function r3(e){var t=e.assignedNodes();return t.length===0?Ot(e.childNodes):t}function JE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new T5,n=L5(e),o=t.compute,a=o===void 0?"name":o,i=t.computedStyleSupportsPseudoElements,s=i===void 0?t.getComputedStyle!==void 0:i,l=t.getComputedStyle,c=l===void 0?n.getComputedStyle.bind(n):l,u=t.hidden,d=u===void 0?!1:u;function m(b,v){var C="";if(Se(b)&&s){var S=c(b,"::before"),A=yg(S);C="".concat(A," ").concat(C)}var _=$5(b)?r3(b):Ot(b.childNodes).concat(ai(b,"aria-owns"));if(_.forEach(function(P){var N=y(P,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),B=Se(P)?c(P).getPropertyValue("display"):"inline",j=B!=="inline"?" ":"";C+="".concat(j).concat(N).concat(j)}),Se(b)&&s){var E=c(b,"::after"),R=yg(E);C="".concat(C," ").concat(R)}return C.trim()}function p(b,v){var C=b.getAttributeNode(v);return C!==null&&!r.has(C)&&C.value.trim()!==""?(r.add(C),C.value):null}function h(b){return Se(b)?p(b,"title"):null}function g(b){if(!Se(b))return null;if(B5(b)){r.add(b);for(var v=Ot(b.childNodes),C=0;C<v.length;C+=1){var S=v[C];if(k5(S))return y(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(D5(b)){r.add(b);for(var A=Ot(b.childNodes),_=0;_<A.length;_+=1){var E=A[_];if(YE(E))return y(E,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(H5(b)){r.add(b);for(var R=Ot(b.childNodes),P=0;P<R.length;P+=1){var N=R[P];if(V5(N))return N.textContent}return null}else if(nt(b)==="img"||nt(b)==="area"){var B=p(b,"alt");if(B!==null)return B}else if(j5(b)){var j=p(b,"label");if(j!==null)return j}if(Ha(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var F=p(b,"value");if(F!==null)return F;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var T=t3(b);if(T!==null&&T.length!==0)return r.add(b),Ot(T).map(function(G){return y(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(Ha(b)&&b.type==="image"){var M=p(b,"alt");if(M!==null)return M;var D=p(b,"title");return D!==null?D:"Submit Query"}if(Qt(b,["button"])){var Y=m(b,{isEmbeddedInLabel:!1,isReferenced:!1});if(Y!=="")return Y}return null}function y(b,v){if(r.has(b))return"";if(!d&&G5(b,c)&&!v.isReferenced)return r.add(b),"";var C=Se(b)?b.getAttributeNode("aria-labelledby"):null,S=C!==null&&!r.has(C)?ai(b,"aria-labelledby"):[];if(a==="name"&&!v.isReferenced&&S.length>0)return r.add(C),S.map(function(B){return y(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var A=v.recursion&&Y5(b)&&a==="name";if(!A){var _=(Se(b)&&b.getAttribute("aria-label")||"").trim();if(_!==""&&a==="name")return r.add(b),_;if(!K5(b)){var E=g(b);if(E!==null)return r.add(b),E}}if(Qt(b,["menu"]))return r.add(b),"";if(A||v.isEmbeddedInLabel||v.isReferenced){if(Qt(b,["combobox","listbox"])){r.add(b);var R=W5(b);return R.length===0?Ha(b)?b.value:"":Ot(R).map(function(B){return y(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(WE(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(Qt(b,["textbox"]))return r.add(b),Z5(b)}if(J5(b)||Se(b)&&v.isReferenced||X5(b)||Q5()){var P=m(b,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});if(P!=="")return r.add(b),P}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(v.recursion)return r.add(b),m(b,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});var N=h(b);return N!==null?(r.add(b),N):(r.add(b),"")}return z5(y(e,{isEmbeddedInLabel:!1,isReferenced:a==="description",recursion:!1}))}function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){n3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n3(e,t,r){return t=o3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o3(e){var t=a3(e,"string");return No(t)==="symbol"?t:String(t)}function a3(e,t){if(No(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(No(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ai(e,"aria-describedby").map(function(o){return JE(o,gg(gg({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function i3(e){return Qt(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Od(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i3(e)?"":JE(e,t)}var vt=mt(ID()),s3=mt(DD());function ZE(e){return e.replace(/</g,"<").replace(/>/g,">")}var l3=(e,t,r,n,o,a,i)=>{let s=n+r.indent,l=r.colors;return e.map(c=>{let u=t[c],d=i(u,r,s,o,a);return typeof u!="string"&&(d.indexOf(`
|
|
416
|
-
`)!==-1&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d="{"+d+"}"),r.spacingInner+n+l.prop.open+c+l.prop.close+"="+l.value.open+d+l.value.close}).join("")},u3=3,c3=(e,t,r,n,o,a)=>e.map(i=>{let s=typeof i=="string"?
|
|
415
|
+
`),m);o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let d=i(this),m=d.getMockName(),p=d.mock.calls.length;return this.assert(p===u,`expected "${m}" to be called #{exp} times, but got ${p} times`,`expected "${m}" to not be called #{exp} times`,u,p,!1)}),o("toHaveBeenCalledOnce",function(){let u=i(this),d=u.getMockName(),m=u.mock.calls.length;return this.assert(m===1,`expected "${d}" to be called once, but got ${m} times`,`expected "${d}" to not be called once`,1,m,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let u=i(this),d=u.getMockName(),m=u.mock.calls.length,p=m>0,h=t.flag(this,"negate"),g=t.getMessage(this,[p,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${m} times`,!0,p]);if(p&&h&&(g=l(u,g)),p&&h||!p&&!h)throw new r(g)}),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let d=i(this),m=d.getMockName(),p=d.mock.calls.some(y=>me(y,u,[...n,ft])),h=t.flag(this,"negate"),g=t.getMessage(this,[p,`expected "${m}" to be called with arguments: #{exp}`,`expected "${m}" to not be called with arguments: #{exp}`,u]);if(p&&h||!p&&!h)throw new r(l(d,g,u))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...d){let m=i(this),p=m.getMockName(),h=m.mock.calls[u-1],g=m.mock.calls.length,y=u<=g;this.assert(me(h,d,[...n,ft]),`expected ${s(u)} "${p}" call to have been called with #{exp}${y?"":`, but called only ${g} times`}`,`expected ${s(u)} "${p}" call to not have been called with #{exp}`,d,h,y)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let d=i(this),m=d.getMockName(),p=d.mock.calls[d.mock.calls.length-1];this.assert(me(p,u,[...n,ft]),`expected last "${m}" call to have been called with #{exp}`,`expected last "${m}" call to not have been called with #{exp}`,u,p)}),o(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u);let d=this._obj,m=t.flag(this,"promise"),p=t.flag(this,"negate"),h=null;if(m==="rejects")h=d;else if(m==="resolves"&&typeof d!="function"){if(p)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:!1};throw new r(g,y,t.flag(this,"ssfi"))}}else{let g=!1;try{d()}catch(y){g=!0,h=y}if(!g&&!p){let y=t.flag(this,"message")||"expected function to throw an error, but it didn't",b={showDiff:!1};throw new r(y,b,t.flag(this,"ssfi"))}}if(typeof u=="function"){let g=u.name||u.prototype.constructor.name;return this.assert(h&&h instanceof u,`expected error to be instance of ${g}`,`expected error not to be instance of ${g}`,u,h)}if(u instanceof Error)return this.assert(h&&u.message===h.message,`expected error to have message: ${u.message}`,`expected error not to have message: ${u.message}`,u.message,h&&h.message);if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let g=u;return this.assert(h&&g.asymmetricMatch(h),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",g,h)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:u=>u.mock.calls.length>0&&u.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(){let p=i(this),h=p.getMockName(),g=d(p);this.assert(g,`expected "${h}" to be successfully ${m} at least once`,`expected "${h}" to not be successfully ${m}`,g,!g,!1)})}),[{name:"toHaveResolvedTimes",condition:(u,d)=>u.mock.settledResults.reduce((m,{type:p})=>p==="fulfilled"?++m:m,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(u,d)=>u.mock.results.reduce((m,{type:p})=>p==="throw"?m:++m,0)===d,action:"called"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(p){let h=i(this),g=h.getMockName(),y=d(h,p);this.assert(y,`expected "${g}" to be successfully ${m} ${p} times`,`expected "${g}" to not be successfully ${m} ${p} times`,`expected resolved times: ${p}`,`received resolved times: ${y}`,!1)})}),[{name:"toHaveResolvedWith",condition:(u,d)=>u.mock.settledResults.some(({type:m,value:p})=>m==="fulfilled"&&me(d,p)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(u,d)=>u.mock.results.some(({type:m,value:p})=>m==="return"&&me(d,p)),action:"return"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(p){let h=i(this),g=d(h,p),y=t.flag(this,"negate");if(g&&y||!g&&!y){let b=h.getMockName(),v=t.getMessage(this,[g,`expected "${b}" to ${m} with: #{exp} at least once`,`expected "${b}" to not ${m} with: #{exp}`,p]),C=m==="return"?h.mock.results:h.mock.settledResults;throw new r(c(h,C,v,p))}})}),[{name:"toHaveLastResolvedWith",condition:(u,d)=>{let m=u.mock.settledResults[u.mock.settledResults.length-1];return m&&m.type==="fulfilled"&&me(m.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(u,d)=>{let m=u.mock.results[u.mock.results.length-1];return m&&m.type==="return"&&me(m.value,d)},action:"return"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(p){let h=i(this),g=m==="return"?h.mock.results:h.mock.settledResults,y=g[g.length-1],b=h.getMockName();this.assert(d(h,p),`expected last "${b}" call to ${m} #{exp}`,`expected last "${b}" call to not ${m} #{exp}`,p,y?.value)})}),[{name:"toHaveNthResolvedWith",condition:(u,d,m)=>{let p=u.mock.settledResults[d-1];return p&&p.type==="fulfilled"&&me(p.value,m)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(u,d,m)=>{let p=u.mock.results[d-1];return p&&p.type==="return"&&me(p.value,m)},action:"return"}].forEach(({name:u,condition:d,action:m})=>{o(u,function(p,h){let g=i(this),y=g.getMockName(),b=(m==="return"?g.mock.results:g.mock.settledResults)[p-1],v=`${s(p)} call`;this.assert(d(g,p,h),`expected ${v} "${y}" call to ${m} #{exp}`,`expected ${v} "${y}" call to not ${m} #{exp}`,h,b?.value)})}),o("toSatisfy",function(u,d){return this.be.satisfy(u,d)}),o("withContext",function(u){for(let d in u)t.flag(this,d,u[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let u=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),m=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof m?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof m}'.`);let p=new Proxy(this,{get:(h,g,y)=>{let b=Reflect.get(h,g,y);return typeof b!="function"?b instanceof e.Assertion?p:b:async(...v)=>{let C=m.then(S=>(t.flag(this,"object",S),b.call(this,...v)),S=>{let A=new r(`promise rejected "${t.inspect(S)}" instead of resolving`,{showDiff:!1});throw A.cause=S,A.stack=u.stack.replace(u.message,A.message),A});return dg(d,C)}}});return p}),t.addProperty(e.Assertion.prototype,"rejects",function(){let u=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),m=t.flag(this,"object"),p=typeof m=="function"?m():m;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof p}'.`);let h=new Proxy(this,{get:(g,y,b)=>{let v=Reflect.get(g,y,b);return typeof v!="function"?v instanceof e.Assertion?h:v:async(...C)=>{let S=p.then(A=>{let _=new r(`promise resolved "${t.inspect(A)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:A});throw _.stack=u.stack.replace(u.message,_.message),_},A=>(t.flag(this,"object",A),v.call(this,...C)));return dg(d,S)}}});return h})};function l5(e,t){let r=e._obj,n=Ft.flag(e,"negate"),o=Ft.flag(e,"promise")||"",a={...FE(),diff:In,stringify:Rt,iterableEquality:ft,subsetEquality:Yo};return{state:{...ni(t),customTesters:Ad(),isNot:n,utils:a,promise:o,equals:me,suppressedErrors:[],soft:Ft.flag(e,"soft"),poll:Ft.flag(e,"poll")},isNot:n,obj:r}}var pg=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function u5(e,t,r){return(n,o)=>{Object.entries(r).forEach(([a,i])=>{function s(...d){let{state:m,isNot:p,obj:h}=l5(this,t),g=i.call(m,h,...d);if(g&&typeof g=="object"&&g instanceof Promise)return g.then(({pass:S,message:A,actual:_,expected:E})=>{if(S&&p||!S&&!p)throw new pg(A(),_,E)});let{pass:y,message:b,actual:v,expected:C}=g;if(y&&p||!y&&!p)throw new pg(b(),v,C)}let l=HE(o,s);o.addMethod(globalThis[xo].matchers,a,l),o.addMethod(e.Assertion.prototype,a,l);class c extends Tr{constructor(m=!1,...p){super(p,m)}asymmetricMatch(m){let{pass:p}=i.call(this.getMatcherContext(t),m,...this.sample);return this.inverse?!p:p}toString(){return`${this.inverse?"not.":""}${a}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(String).join(", ")}>`}}let u=(...d)=>new c(!1,...d);Object.defineProperty(t,a,{configurable:!0,enumerable:!0,value:u,writable:!0}),Object.defineProperty(t.not,a,{configurable:!0,enumerable:!0,value:(...d)=>new c(!0,...d),writable:!0}),Object.defineProperty(globalThis[rc],a,{configurable:!0,enumerable:!0,value:u,writable:!0})})}}var c5=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{Tn(u5(e,r,n))})};function d5(){Tn(c5),Tn(s5),Tn(i5);let e=(n,o)=>{let{assertionCalls:a}=ni(e);return bu({assertionCalls:a+1,soft:!1},e),Vr(n,o)};Object.assign(e,Vr),e.getState=()=>ni(e),e.setState=n=>bu(n,e),e.extend=n=>Vr.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.unreachable=n=>{q.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let o=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o})}function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return bu({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Ft.addMethod(e,"assertions",t),Ft.addMethod(e,"hasAssertions",r),e.extend(e0),e}var VE=d5();Object.defineProperty(globalThis,Cd,{value:VE,writable:!0,configurable:!0});var oc=new Set;function p5(e){return oc.add(e),()=>void oc.delete(e)}function f5(e){let t=e?Qb(e):Qb();return m5(t)}function m5(e){let t=fg(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>fg(r(n)),t}function fg(e){let t=ri(e),r=t.impl;return t.willCall(function(...n){return oc.forEach(o=>o(e,n)),r?.apply(this,n)}),e}function h5(){Ii.forEach(e=>e.mockClear())}function y5(){Ii.forEach(e=>e.mockReset())}function b5(){Ii.forEach(e=>e.mockRestore())}var zE={};wc(zE,{buildQueries:()=>ar,configure:()=>P3,createEvent:()=>Va,findAllByAltText:()=>K1,findAllByDisplayValue:()=>H1,findAllByLabelText:()=>R1,findAllByPlaceholderText:()=>x1,findAllByRole:()=>l_,findAllByTestId:()=>m_,findAllByText:()=>F1,findAllByTitle:()=>t_,findByAltText:()=>X1,findByDisplayValue:()=>V1,findByLabelText:()=>w1,findByPlaceholderText:()=>M1,findByRole:()=>u_,findByTestId:()=>h_,findByText:()=>L1,findByTitle:()=>r_,fireEvent:()=>Do,getAllByAltText:()=>Y1,getAllByDisplayValue:()=>$1,getAllByLabelText:()=>C1,getAllByPlaceholderText:()=>O1,getAllByRole:()=>i_,getAllByTestId:()=>p_,getAllByText:()=>I1,getAllByTitle:()=>Z1,getByAltText:()=>W1,getByDisplayValue:()=>U1,getByLabelText:()=>S1,getByPlaceholderText:()=>q1,getByRole:()=>s_,getByTestId:()=>f_,getByText:()=>D1,getByTitle:()=>e_,getConfig:()=>ce,getDefaultNormalizer:()=>Nd,getElementError:()=>Bi,getMultipleElementsFoundError:()=>ki,getNodeText:()=>Wo,getQueriesForElement:()=>mc,getRoles:()=>h1,getSuggestedQuery:()=>ii,isInaccessible:()=>Li,logDOM:()=>ac,logRoles:()=>N3,makeFindQuery:()=>Fn,makeGetAllQuery:()=>Dd,makeSingleQuery:()=>Dn,prettyDOM:()=>jo,prettyFormat:()=>Pd,queries:()=>si,queryAllByAltText:()=>z1,queryAllByAttribute:()=>Qr,queryAllByDisplayValue:()=>B1,queryAllByLabelText:()=>A1,queryAllByPlaceholderText:()=>T1,queryAllByRole:()=>o_,queryAllByTestId:()=>c_,queryAllByText:()=>N1,queryAllByTitle:()=>J1,queryByAltText:()=>G1,queryByAttribute:()=>b1,queryByDisplayValue:()=>k1,queryByLabelText:()=>E1,queryByPlaceholderText:()=>P1,queryByRole:()=>a_,queryByTestId:()=>d_,queryByText:()=>j1,queryByTitle:()=>Q1,queryHelpers:()=>Y3,screen:()=>_U,waitFor:()=>Id,waitForElementToBeRemoved:()=>mU,within:()=>mc,wrapAllByQueryWithSuggestion:()=>ct,wrapSingleQueryWithSuggestion:()=>wr});var Pd=mt(KN()),g5=Object.prototype.toString;function mg(e){return typeof e=="function"||g5.call(e)==="[object Function]"}function v5(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var E5=Math.pow(2,53)-1;function _5(e){var t=v5(e);return Math.min(Math.max(t,0),E5)}function Ot(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!mg(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=_5(n.length),a=mg(r)?Object(new r(o)):new Array(o),i=0,s;i<o;)s=n[i],t?a[i]=t(s,i):a[i]=s,i+=1;return a.length=o,a}function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function R5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GE(n.key),n)}}function w5(e,t,r){return t&&hg(e.prototype,t),r&&hg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function C5(e,t,r){return t=GE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GE(e){var t=S5(e,"string");return Mo(t)==="symbol"?t:String(t)}function S5(e,t){if(Mo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A5=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];R5(this,e),C5(this,"items",void 0),this.items=t}return w5(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),T5=typeof Set>"u"?Set:A5;function nt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var P5={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},O5={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function q5(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=O5[t])!==null&&n!==void 0&&n.has(r))})}function YE(e,t){return q5(e,t)}function x5(e){var t=N5(e);if(t===null||t==="presentation"){var r=M5(e);if(t!=="presentation"||YE(e,r||""))return r}return t}function M5(e){var t=P5[nt(e)];if(t!==void 0)return t;switch(nt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!YE(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function N5(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Se(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function WE(e){return Se(e)&&nt(e)==="caption"}function Ha(e){return Se(e)&&nt(e)==="input"}function j5(e){return Se(e)&&nt(e)==="optgroup"}function I5(e){return Se(e)&&nt(e)==="select"}function D5(e){return Se(e)&&nt(e)==="table"}function F5(e){return Se(e)&&nt(e)==="textarea"}function L5(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function B5(e){return Se(e)&&nt(e)==="fieldset"}function k5(e){return Se(e)&&nt(e)==="legend"}function $5(e){return Se(e)&&nt(e)==="slot"}function U5(e){return Se(e)&&e.ownerSVGElement!==void 0}function H5(e){return Se(e)&&nt(e)==="svg"}function V5(e){return U5(e)&&nt(e)==="title"}function ai(e,t){if(Se(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function Qt(e,t){return Se(e)?t.indexOf(x5(e))!==-1:!1}function z5(e){return e.trim().replace(/\s\s+/g," ")}function G5(e,t){if(!Se(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function Y5(e){return Qt(e,["button","combobox","listbox","textbox"])||KE(e,"range")}function KE(e,t){if(!Se(e))return!1;switch(t){case"range":return Qt(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function yg(e,t){var r=Ot(e.querySelectorAll(t));return ai(e,"aria-owns").forEach(function(n){r.push.apply(r,Ot(n.querySelectorAll(t)))}),r}function W5(e){return I5(e)?e.selectedOptions||yg(e,"[selected]"):yg(e,'[aria-selected="true"]')}function K5(e){return Qt(e,["none","presentation"])}function X5(e){return WE(e)}function J5(e){return Qt(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function Q5(e){return!1}function Z5(e){return Ha(e)||F5(e)?e.value:e.textContent||""}function bg(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function XE(e){var t=nt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function JE(e){if(XE(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Se(r)){var n=JE(r);n!==null&&(t=n)}}),t}function e3(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):JE(e)}function t3(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Ot(t);if(!XE(e))return null;var r=e.ownerDocument;return Ot(r.querySelectorAll("label")).filter(function(n){return e3(n)===e})}function r3(e){var t=e.assignedNodes();return t.length===0?Ot(e.childNodes):t}function QE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new T5,n=L5(e),o=t.compute,a=o===void 0?"name":o,i=t.computedStyleSupportsPseudoElements,s=i===void 0?t.getComputedStyle!==void 0:i,l=t.getComputedStyle,c=l===void 0?n.getComputedStyle.bind(n):l,u=t.hidden,d=u===void 0?!1:u;function m(b,v){var C="";if(Se(b)&&s){var S=c(b,"::before"),A=bg(S);C="".concat(A," ").concat(C)}var _=$5(b)?r3(b):Ot(b.childNodes).concat(ai(b,"aria-owns"));if(_.forEach(function(P){var N=y(P,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),B=Se(P)?c(P).getPropertyValue("display"):"inline",j=B!=="inline"?" ":"";C+="".concat(j).concat(N).concat(j)}),Se(b)&&s){var E=c(b,"::after"),R=bg(E);C="".concat(C," ").concat(R)}return C.trim()}function p(b,v){var C=b.getAttributeNode(v);return C!==null&&!r.has(C)&&C.value.trim()!==""?(r.add(C),C.value):null}function h(b){return Se(b)?p(b,"title"):null}function g(b){if(!Se(b))return null;if(B5(b)){r.add(b);for(var v=Ot(b.childNodes),C=0;C<v.length;C+=1){var S=v[C];if(k5(S))return y(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(D5(b)){r.add(b);for(var A=Ot(b.childNodes),_=0;_<A.length;_+=1){var E=A[_];if(WE(E))return y(E,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(H5(b)){r.add(b);for(var R=Ot(b.childNodes),P=0;P<R.length;P+=1){var N=R[P];if(V5(N))return N.textContent}return null}else if(nt(b)==="img"||nt(b)==="area"){var B=p(b,"alt");if(B!==null)return B}else if(j5(b)){var j=p(b,"label");if(j!==null)return j}if(Ha(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var F=p(b,"value");if(F!==null)return F;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var T=t3(b);if(T!==null&&T.length!==0)return r.add(b),Ot(T).map(function(G){return y(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(Ha(b)&&b.type==="image"){var M=p(b,"alt");if(M!==null)return M;var D=p(b,"title");return D!==null?D:"Submit Query"}if(Qt(b,["button"])){var Y=m(b,{isEmbeddedInLabel:!1,isReferenced:!1});if(Y!=="")return Y}return null}function y(b,v){if(r.has(b))return"";if(!d&&G5(b,c)&&!v.isReferenced)return r.add(b),"";var C=Se(b)?b.getAttributeNode("aria-labelledby"):null,S=C!==null&&!r.has(C)?ai(b,"aria-labelledby"):[];if(a==="name"&&!v.isReferenced&&S.length>0)return r.add(C),S.map(function(B){return y(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var A=v.recursion&&Y5(b)&&a==="name";if(!A){var _=(Se(b)&&b.getAttribute("aria-label")||"").trim();if(_!==""&&a==="name")return r.add(b),_;if(!K5(b)){var E=g(b);if(E!==null)return r.add(b),E}}if(Qt(b,["menu"]))return r.add(b),"";if(A||v.isEmbeddedInLabel||v.isReferenced){if(Qt(b,["combobox","listbox"])){r.add(b);var R=W5(b);return R.length===0?Ha(b)?b.value:"":Ot(R).map(function(B){return y(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(KE(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(Qt(b,["textbox"]))return r.add(b),Z5(b)}if(J5(b)||Se(b)&&v.isReferenced||X5(b)||Q5()){var P=m(b,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});if(P!=="")return r.add(b),P}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(v.recursion)return r.add(b),m(b,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});var N=h(b);return N!==null?(r.add(b),N):(r.add(b),"")}return z5(y(e,{isEmbeddedInLabel:!1,isReferenced:a==="description",recursion:!1}))}function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function vg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(r),!0).forEach(function(n){n3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n3(e,t,r){return t=o3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o3(e){var t=a3(e,"string");return No(t)==="symbol"?t:String(t)}function a3(e,t){if(No(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(No(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ai(e,"aria-describedby").map(function(o){return QE(o,vg(vg({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function i3(e){return Qt(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Od(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i3(e)?"":QE(e,t)}var vt=mt(ID()),s3=mt(DD());function e1(e){return e.replace(/</g,"<").replace(/>/g,">")}var l3=(e,t,r,n,o,a,i)=>{let s=n+r.indent,l=r.colors;return e.map(c=>{let u=t[c],d=i(u,r,s,o,a);return typeof u!="string"&&(d.indexOf(`
|
|
416
|
+
`)!==-1&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d="{"+d+"}"),r.spacingInner+n+l.prop.open+c+l.prop.close+"="+l.value.open+d+l.value.close}).join("")},u3=3,c3=(e,t,r,n,o,a)=>e.map(i=>{let s=typeof i=="string"?t1(i,t):a(i,t,r,n,o);return s===""&&typeof i=="object"&&i!==null&&i.nodeType!==u3?"":t.spacingOuter+r+s}).join(""),t1=(e,t)=>{let r=t.colors.content;return r.open+e1(e)+r.close},d3=(e,t)=>{let r=t.colors.comment;return r.open+"<\!--"+e1(e)+"-->"+r.close},p3=(e,t,r,n,o)=>{let a=n.colors.tag;return a.open+"<"+e+(t&&a.close+t+n.spacingOuter+o+a.open)+(r?">"+a.close+r+n.spacingOuter+o+a.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+a.close},f3=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" \u2026"+r.open+" />"+r.close},m3=1,r1=3,n1=8,o1=11,h3=/^((HTML|SVG)\w*)?Element$/,a1=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},y3=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===m3&&(h3.test(t)||a1(e))||r===r1&&t==="Text"||r===n1&&t==="Comment"||r===o1&&t==="DocumentFragment"};function b3(e){return e.nodeType===r1}function g3(e){return e.nodeType===n1}function vu(e){return e.nodeType===o1}function v3(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||a1(t))&&y3(t)},serialize:(t,r,n,o,a,i)=>{if(b3(t))return t1(t.data,r);if(g3(t))return d3(t.data,r);let s=vu(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?f3(s,r):p3(s,l3(vu(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),vu(t)?{}:Array.from(t.attributes).reduce((l,c)=>(l[c.name]=c.value,l),{}),r,n+r.indent,o,a,i),c3(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,a,i),r,n)}}}var i1=null,qd=null,xd=null;try{let e=module&&module.require;qd=e.call(module,"fs").readFileSync,xd=e.call(module,"@babel/code-frame").codeFrameColumns,i1=e.call(module,"chalk")}catch{}function E3(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[a,i,s]=[o[0],parseInt(o[1],10),parseInt(o[2],10)],l="";try{l=qd(a,"utf-8")}catch{return""}let c=xd(l,{start:{line:i,column:s}},{highlightCode:!0,linesBelow:0});return i1.dim(n)+`
|
|
417
417
|
`+c+`
|
|
418
418
|
`}function _3(){if(!qd||!xd)return"";let e=new Error().stack.split(`
|
|
419
|
-
`).slice(1).find(t=>!t.includes("node_modules/"));return E3(e)}var
|
|
419
|
+
`).slice(1).find(t=>!t.includes("node_modules/"));return E3(e)}var s1=3;function Eu(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function Md(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function l1(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function or(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var R3=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=process.env)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:w3}=Pd.plugins,C3=1,S3=8;function A3(e){return e.nodeType!==S3&&(e.nodeType!==C3||!e.matches(ce().defaultIgnore))}function jo(e,t,r){if(r===void 0&&(r={}),e||(e=Md().body),typeof t!="number"&&(t=typeof process<"u"&&typeof process.env<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:o=A3,...a}=r,i=Pd.format(e,{plugins:[v3(o),w3],printFunctionName:!1,highlight:R3(),...a});return t!==void 0&&e.outerHTML.length>t?i.slice(0,t)+"...":i}var ac=function(){let e=_3();console.log(e?jo(...arguments)+`
|
|
420
420
|
|
|
421
421
|
`+e:jo(...arguments))},zr={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=jo(t),n=new Error([e,"Ignored nodes: comments, "+zr.defaultIgnore+`
|
|
422
422
|
`+r].filter(Boolean).join(`
|
|
423
423
|
|
|
424
|
-
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function T3(e){try{return zr._disableExpensiveErrorDiagnostics=!0,e()}finally{zr._disableExpensiveErrorDiagnostics=!1}}function P3(e){typeof e=="function"&&(e=e(zr)),zr={...zr,...e}}function ce(){return zr}var O3=["button","meter","output","progress","select","textarea","input"];function
|
|
425
|
-
`,m=jo(u.cloneNode(!1));if(n){let p='Description "'+
|
|
424
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function T3(e){try{return zr._disableExpensiveErrorDiagnostics=!0,e()}finally{zr._disableExpensiveErrorDiagnostics=!1}}function P3(e){typeof e=="function"&&(e=e(zr)),zr={...zr,...e}}function ce(){return zr}var O3=["button","meter","output","progress","select","textarea","input"];function u1(e){return O3.includes(e.nodeName.toLowerCase())?"":e.nodeType===s1?e.textContent:Array.from(e.childNodes).map(t=>u1(t)).join("")}function ic(e){let t;return e.tagName.toLowerCase()==="label"?t=u1(e):t=e.value||e.textContent,t}function c1(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!q3(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function q3(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function d1(e,t,r){let{selector:n="*"}=r===void 0?{}:r,o=t.getAttribute("aria-labelledby"),a=o?o.split(" "):[];return a.length?a.map(i=>{let s=e.querySelector('[id="'+i+'"]');return s?{content:ic(s),formControl:null}:{content:"",formControl:null}}):Array.from(c1(t)).map(i=>{let s=ic(i),l=Array.from(i.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(c=>c.matches(n))[0];return{content:s,formControl:l}})}function p1(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function Gn(e,t,r,n){if(typeof e!="string")return!1;p1(r);let o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):f1(r,o)}function er(e,t,r,n){if(typeof e!="string")return!1;p1(r);let o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?f1(r,o):o===String(r)}function Nd(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let o=n;return o=t?o.trim():o,o=r?o.replace(/\s+/g," "):o,o}}function Jr(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return Nd({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function f1(e,t){let r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function Wo(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===s1&&!!t.textContent).map(t=>t.textContent).join("")}var x3=M3(vt.elementRoles);function m1(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function Li(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=m1}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}function jd(e){for(let{match:t,roles:r}of x3)if(t(e))return[...r];return[]}function M3(e){function t(i){let{name:s,attributes:l}=i;return""+s+l.map(c=>{let{name:u,value:d,constraints:m=[]}=c,p=m.indexOf("undefined")!==-1,h=m.indexOf("set")!==-1;return typeof d<"u"?"["+u+'="'+d+'"]':p?":not(["+u+"])":h?"["+u+"]:not(["+u+'=""])':"["+u+"]"}).join("")}function r(i){let{attributes:s=[]}=i;return s.length}function n(i,s){let{specificity:l}=i,{specificity:c}=s;return c-l}function o(i){let{attributes:s=[]}=i,l=s.findIndex(u=>u.value&&u.name==="type"&&u.value==="text");l>=0&&(s=[...s.slice(0,l),...s.slice(l+1)]);let c=t({...i,attributes:s});return u=>l>=0&&u.type!=="text"?!1:u.matches(c)}let a=[];for(let[i,s]of e.entries())a=[...a,{match:o(i),roles:Array.from(s),specificity:r(i)}];return a.sort(n)}function h1(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return[o,...Array.from(o.children).reduce((a,i)=>[...a,...n(i)],[])]}return n(e).filter(o=>r===!1?Li(o)===!1:!0).reduce((o,a)=>{let i=[];return a.hasAttribute("role")?i=a.getAttribute("role").split(" ").slice(0,1):i=jd(a),i.reduce((s,l)=>Array.isArray(s[l])?{...s,[l]:[...s[l],a]}:{...s,[l]:[a]},o)},{})}function y1(e,t){let{hidden:r,includeDescription:n}=t,o=h1(e,{hidden:r});return Object.entries(o).filter(a=>{let[i]=a;return i!=="generic"}).map(a=>{let[i,s]=a,l="-".repeat(50),c=s.map(u=>{let d='Name "'+Od(u,{computedStyleSupportsPseudoElements:ce().computedStyleSupportsPseudoElements})+`":
|
|
425
|
+
`,m=jo(u.cloneNode(!1));if(n){let p='Description "'+ZE(u,{computedStyleSupportsPseudoElements:ce().computedStyleSupportsPseudoElements})+`":
|
|
426
426
|
`;return""+d+p+m}return""+d+m}).join(`
|
|
427
427
|
|
|
428
428
|
`);return i+`:
|
|
@@ -430,19 +430,19 @@ Number of calls: ${Me.bold(u.mock.calls.length)}
|
|
|
430
430
|
`+c+`
|
|
431
431
|
|
|
432
432
|
`+l}).join(`
|
|
433
|
-
`)}var N3=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(
|
|
433
|
+
`)}var N3=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(y1(e,{hidden:r}))};function j3(e){return e.tagName==="OPTION"?e.selected:Ko(e,"aria-selected")}function I3(e){return e.getAttribute("aria-busy")==="true"}function D3(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Ko(e,"aria-checked")}function F3(e){return Ko(e,"aria-pressed")}function L3(e){var t,r;return(t=(r=Ko(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function B3(e){return Ko(e,"aria-expanded")}function Ko(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function k3(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function $3(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function U3(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function H3(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function V3(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var Eg=Nd();function z3(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function _g(e){return new RegExp(z3(e.toLowerCase()),"i")}function mr(e,t,r,n){let{variant:o,name:a}=n,i="",s={},l=[["Role","TestId"].includes(e)?r:_g(r)];a&&(s.name=_g(a)),e==="Role"&&Li(t)&&(s.hidden=!0,i=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
434
434
|
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
435
|
-
`),Object.keys(s).length>0&&l.push(s);let c=o+"By"+e;return{queryName:e,queryMethod:c,queryArgs:l,variant:o,warning:i,toString(){i&&console.warn(i);let[u,d]=l;return u=typeof u=="string"?"'"+u+"'":u,d=d?", { "+Object.entries(d).map(m=>{let[p,h]=m;return p+": "+h}).join(", ")+" }":"",c+"("+u+d+")"}}}function hr(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function ii(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(ce().defaultIgnore))return;let a=(n=e.getAttribute("role"))!=null?n:(o=jd(e))==null?void 0:o[0];if(a!=="generic"&&hr("Role",r,a))return mr("Role",e,a,{variant:t,name:Od(e,{computedStyleSupportsPseudoElements:ce().computedStyleSupportsPseudoElements})});let i=
|
|
435
|
+
`),Object.keys(s).length>0&&l.push(s);let c=o+"By"+e;return{queryName:e,queryMethod:c,queryArgs:l,variant:o,warning:i,toString(){i&&console.warn(i);let[u,d]=l;return u=typeof u=="string"?"'"+u+"'":u,d=d?", { "+Object.entries(d).map(m=>{let[p,h]=m;return p+": "+h}).join(", ")+" }":"",c+"("+u+d+")"}}}function hr(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function ii(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(ce().defaultIgnore))return;let a=(n=e.getAttribute("role"))!=null?n:(o=jd(e))==null?void 0:o[0];if(a!=="generic"&&hr("Role",r,a))return mr("Role",e,a,{variant:t,name:Od(e,{computedStyleSupportsPseudoElements:ce().computedStyleSupportsPseudoElements})});let i=d1(document,e).map(m=>m.content).join(" ");if(hr("LabelText",r,i))return mr("LabelText",e,i,{variant:t});let s=e.getAttribute("placeholder");if(hr("PlaceholderText",r,s))return mr("PlaceholderText",e,s,{variant:t});let l=Eg(Wo(e));if(hr("Text",r,l))return mr("Text",e,l,{variant:t});if(hr("DisplayValue",r,e.value))return mr("DisplayValue",e,Eg(e.value),{variant:t});let c=e.getAttribute("alt");if(hr("AltText",r,c))return mr("AltText",e,c,{variant:t});let u=e.getAttribute("title");if(hr("Title",r,u))return mr("Title",e,u,{variant:t});let d=e.getAttribute(ce().testIdAttribute);if(hr("TestId",r,d))return mr("TestId",e,d,{variant:t})}function Na(e,t){e.stack=t.stack.replace(t.message,e.message)}function G3(e,t){let{container:r=Md(),timeout:n=ce().asyncUtilTimeout,showOriginalStackTrace:o=ce().showOriginalStackTrace,stackTraceError:a,interval:i=50,onTimeout:s=c=>(Object.defineProperty(c,"message",{value:ce().getElementError(c.message,r).message}),c),mutationObserverOptions:l={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(c,u)=>{let d,m,p,h=!1,g="idle",y=setTimeout(A,n),b=Eu();if(b){let{unstable_advanceTimersWrapper:_}=ce();for(S();!h;){if(!Eu()){let E=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");o||Na(E,a),u(E);return}if(await _(async()=>{jest.advanceTimersByTime(i)}),h)break;S()}}else{try{or(r)}catch(E){u(E);return}m=setInterval(C,i);let{MutationObserver:_}=l1(r);p=new _(C),p.observe(r,l),S()}function v(_,E){h=!0,clearTimeout(y),b||(clearInterval(m),p.disconnect()),_?u(_):c(E)}function C(){if(Eu()){let _=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return o||Na(_,a),u(_)}else return S()}function S(){if(g!=="pending")try{let _=T3(e);typeof _?.then=="function"?(g="pending",_.then(E=>{g="resolved",v(null,E)},E=>{g="rejected",d=E})):v(null,_)}catch(_){d=_}}function A(){let _;d?(_=d,!o&&_.name==="TestingLibraryElementError"&&Na(_,a)):(_=new Error("Timed out in waitFor."),o||Na(_,a)),v(s(_),null)}})}function Id(e,t){let r=new Error("STACK_TRACE_MESSAGE");return ce().asyncWrapper(()=>G3(e,{stackTraceError:r,...t}))}function Bi(e,t){return ce().getElementError(e,t)}function ki(e,t){return Bi(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Qr(e,t,r,n){let{exact:o=!0,collapseWhitespace:a,trim:i,normalizer:s}=n===void 0?{}:n,l=o?er:Gn,c=Jr({collapseWhitespace:a,trim:i,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(u=>l(u.getAttribute(e),u,r,c))}function b1(e,t,r,n){let o=Qr(e,t,r,n);if(o.length>1)throw ki("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}function Dn(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];let i=e(r,...o);if(i.length>1){let s=i.map(l=>Bi(null,l).message).join(`
|
|
436
436
|
|
|
437
437
|
`);throw ki(t(r,...o)+`
|
|
438
438
|
|
|
439
439
|
Here are the matching elements:
|
|
440
440
|
|
|
441
|
-
`+s,r)}return i[0]||null}}function
|
|
441
|
+
`+s,r)}return i[0]||null}}function g1(e,t){return ce().getElementError(`A better query is available, try this:
|
|
442
442
|
`+e.toString()+`
|
|
443
|
-
`,t)}function Dd(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];let i=e(r,...o);if(!i.length)throw ce().getElementError(t(r,...o),r);return i}}function Fn(e){return(t,r,n,o)=>Id(()=>e(t,r,n),{container:t,...o})}var wr=(e,t,r)=>function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];let s=e(n,...a),[{suggest:l=ce().throwSuggestions}={}]=a.slice(-1);if(s&&l){let c=ii(s,r);if(c&&!t.endsWith(c.queryName))throw
|
|
443
|
+
`,t)}function Dd(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];let i=e(r,...o);if(!i.length)throw ce().getElementError(t(r,...o),r);return i}}function Fn(e){return(t,r,n,o)=>Id(()=>e(t,r,n),{container:t,...o})}var wr=(e,t,r)=>function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];let s=e(n,...a),[{suggest:l=ce().throwSuggestions}={}]=a.slice(-1);if(s&&l){let c=ii(s,r);if(c&&!t.endsWith(c.queryName))throw g1(c.toString(),n)}return s},ct=(e,t,r)=>function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];let s=e(n,...a),[{suggest:l=ce().throwSuggestions}={}]=a.slice(-1);if(s.length&&l){let c=[...new Set(s.map(u=>{var d;return(d=ii(u,r))==null?void 0:d.toString()}))];if(c.length===1&&!t.endsWith(ii(s[0],r).queryName))throw g1(c[0],n)}return s};function ar(e,t,r){let n=wr(Dn(e,t),e.name,"query"),o=Dd(e,r),a=Dn(o,t),i=wr(a,e.name,"get"),s=ct(o,e.name.replace("query","get"),"getAll"),l=Fn(ct(o,e.name,"findAll")),c=Fn(wr(a,e.name,"find"));return[n,s,i,l,c]}var Y3=Object.freeze({__proto__:null,getElementError:Bi,wrapAllByQueryWithSuggestion:ct,wrapSingleQueryWithSuggestion:wr,getMultipleElementsFoundError:ki,queryAllByAttribute:Qr,queryByAttribute:b1,makeSingleQuery:Dn,makeGetAllQuery:Dd,makeFindQuery:Fn,buildQueries:ar});function W3(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:ic(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var K3=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:a,normalizer:i}=r===void 0?{}:r,s=n?er:Gn,l=Jr({collapseWhitespace:a,trim:o,normalizer:i});return W3(e).filter(c=>{let{node:u,textToMatch:d}=c;return s(d,u,t,l)}).map(c=>{let{node:u}=c;return u})},Io=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:a,trim:i,normalizer:s}=r===void 0?{}:r;or(e);let l=o?er:Gn,c=Jr({collapseWhitespace:a,trim:i,normalizer:s}),u=Array.from(e.querySelectorAll("*")).filter(d=>c1(d).length||d.hasAttribute("aria-labelledby")).reduce((d,m)=>{let p=d1(e,m,{selector:n});p.filter(g=>!!g.formControl).forEach(g=>{l(g.content,g.formControl,t,c)&&g.formControl&&d.push(g.formControl)});let h=p.filter(g=>!!g.content).map(g=>g.content);return l(h.join(" "),m,t,c)&&d.push(m),h.length>1&&h.forEach((g,y)=>{l(g,m,t,c)&&d.push(m);let b=[...h];b.splice(y,1),b.length>1&&l(b.join(" "),m,t,c)&&d.push(m)}),d},[]).concat(Qr("aria-label",e,t,{exact:o,normalizer:c}));return Array.from(new Set(u)).filter(d=>d.matches(n))},Yr=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];let a=Io(e,t,...n);if(!a.length){let i=K3(e,t,...n);if(i.length){let s=i.map(l=>X3(e,l)).filter(l=>!!l);throw s.length?ce().getElementError(s.map(l=>"Found a label with the text of: "+t+", however the element associated with this label (<"+l+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+l+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
444
444
|
|
|
445
|
-
`),e):ce().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw ce().getElementError("Unable to find a label with the text of: "+t,e)}return a};function X3(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var
|
|
445
|
+
`),e):ce().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw ce().getElementError("Unable to find a label with the text of: "+t,e)}return a};function X3(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var v1=(e,t)=>"Found multiple elements with the text of: "+t,E1=wr(Dn(Io,v1),Io.name,"query"),_1=Dn(Yr,v1),R1=Fn(ct(Yr,Yr.name,"findAll")),w1=Fn(wr(_1,Yr.name,"find")),C1=ct(Yr,Yr.name,"getAll"),S1=wr(_1,Yr.name,"get"),A1=ct(Io,Io.name,"queryAll"),sc=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return or(t[0]),Qr("placeholder",...t)},J3=(e,t)=>"Found multiple elements with the placeholder text of: "+t,Q3=(e,t)=>"Unable to find an element with the placeholder text of: "+t,T1=ct(sc,sc.name,"queryAll"),[P1,O1,q1,x1,M1]=ar(sc,J3,Q3),lc=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:a,trim:i,ignore:s=ce().defaultIgnore,normalizer:l}=r===void 0?{}:r;or(e);let c=o?er:Gn,u=Jr({collapseWhitespace:a,trim:i,normalizer:l}),d=[];return typeof e.matches=="function"&&e.matches(n)&&(d=[e]),[...d,...Array.from(e.querySelectorAll(n))].filter(m=>!s||!m.matches(s)).filter(m=>c(Wo(m),m,t,u))},Z3=(e,t)=>"Found multiple elements with the text: "+t,eU=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:o,normalizer:a,selector:i}=r,s=Jr({collapseWhitespace:n,trim:o,normalizer:a})(t.toString()),l=s!==t.toString(),c=(i??"*")!=="*";return"Unable to find an element with the text: "+(l?s+" (normalized from '"+t+"')":t)+(c?", which matches selector '"+i+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},N1=ct(lc,lc.name,"queryAll"),[j1,I1,D1,F1,L1]=ar(lc,Z3,eU),uc=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:a,normalizer:i}=r===void 0?{}:r;or(e);let s=n?er:Gn,l=Jr({collapseWhitespace:o,trim:a,normalizer:i});return Array.from(e.querySelectorAll("input,textarea,select")).filter(c=>c.tagName==="SELECT"?Array.from(c.options).filter(u=>u.selected).some(u=>s(Wo(u),u,t,l)):s(c.value,c,t,l))},tU=(e,t)=>"Found multiple elements with the display value: "+t+".",rU=(e,t)=>"Unable to find an element with the display value: "+t+".",B1=ct(uc,uc.name,"queryAll"),[k1,$1,U1,H1,V1]=ar(uc,tU,rU),nU=/^(img|input|area|.+-.+)$/i,cc=function(e,t,r){return r===void 0&&(r={}),or(e),Qr("alt",e,t,r).filter(n=>nU.test(n.tagName))},oU=(e,t)=>"Found multiple elements with the alt text: "+t,aU=(e,t)=>"Unable to find an element with the alt text: "+t,z1=ct(cc,cc.name,"queryAll"),[G1,Y1,W1,K1,X1]=ar(cc,oU,aU),iU=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},dc=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:a,normalizer:i}=r===void 0?{}:r;or(e);let s=n?er:Gn,l=Jr({collapseWhitespace:o,trim:a,normalizer:i});return Array.from(e.querySelectorAll("[title], svg > title")).filter(c=>s(c.getAttribute("title"),c,t,l)||iU(c)&&s(Wo(c),c,t,l))},sU=(e,t)=>"Found multiple elements with the title: "+t+".",lU=(e,t)=>"Unable to find an element with the title: "+t+".",J1=ct(dc,dc.name,"queryAll"),[Q1,Z1,e_,t_,r_]=ar(dc,sU,lU),pc=function(e,t,r){let{hidden:n=ce().defaultHidden,name:o,description:a,queryFallbacks:i=!1,selected:s,busy:l,checked:c,pressed:u,current:d,level:m,expanded:p,value:{now:h,min:g,max:y,text:b}={}}=r===void 0?{}:r;if(or(e),s!==void 0){var v;if(((v=vt.roles.get(t))==null?void 0:v.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var C;if(((C=vt.roles.get(t))==null?void 0:C.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(c!==void 0){var S;if(((S=vt.roles.get(t))==null?void 0:S.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(u!==void 0){var A;if(((A=vt.roles.get(t))==null?void 0:A.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(d!==void 0){var _;if(((_=vt.roles.get(t))==null?void 0:_.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(m!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(h!==void 0){var E;if(((E=vt.roles.get(t))==null?void 0:E.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(y!==void 0){var R;if(((R=vt.roles.get(t))==null?void 0:R.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(g!==void 0){var P;if(((P=vt.roles.get(t))==null?void 0:P.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(b!==void 0){var N;if(((N=vt.roles.get(t))==null?void 0:N.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(p!==void 0){var B;if(((B=vt.roles.get(t))==null?void 0:B.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let j=new WeakMap;function F(T){return j.has(T)||j.set(T,m1(T)),j.get(T)}return Array.from(e.querySelectorAll(uU(t))).filter(T=>{if(T.hasAttribute("role")){let M=T.getAttribute("role");if(i)return M.split(" ").filter(Boolean).some(Y=>Y===t);let[D]=M.split(" ");return D===t}return jd(T).some(M=>M===t)}).filter(T=>{if(s!==void 0)return s===j3(T);if(l!==void 0)return l===I3(T);if(c!==void 0)return c===D3(T);if(u!==void 0)return u===F3(T);if(d!==void 0)return d===L3(T);if(p!==void 0)return p===B3(T);if(m!==void 0)return m===k3(T);if(h!==void 0||y!==void 0||g!==void 0||b!==void 0){let D=!0;if(h!==void 0&&D&&(D=h===$3(T)),y!==void 0&&D&&(D=y===U3(T)),g!==void 0&&D&&(D=g===H3(T)),b!==void 0){var M;D&&(D=er((M=V3(T))!=null?M:null,T,b,Y=>Y))}return D}return!0}).filter(T=>o===void 0?!0:er(Od(T,{computedStyleSupportsPseudoElements:ce().computedStyleSupportsPseudoElements}),T,o,M=>M)).filter(T=>a===void 0?!0:er(ZE(T,{computedStyleSupportsPseudoElements:ce().computedStyleSupportsPseudoElements}),T,a,M=>M)).filter(T=>n===!1?Li(T,{isSubtreeInaccessible:F})===!1:!0)};function uU(e){var t;let r='*[role~="'+e+'"]',n=(t=vt.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(a=>{let{name:i}=a;return i}));return[r].concat(Array.from(o)).join(",")}var n_=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},cU=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+n_(n)},dU=function(e,t,r){let{hidden:n=ce().defaultHidden,name:o,description:a}=r===void 0?{}:r;if(ce()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+n_(o);let i="";Array.from(e.children).forEach(u=>{i+=y1(u,{hidden:n,includeDescription:a!==void 0})});let s;i.length===0?n===!1?s="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":s="There are no available roles.":s=(`
|
|
446
446
|
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
447
447
|
|
|
448
448
|
`+i.replace(/\n/g,`
|
|
@@ -452,23 +452,23 @@ Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
|
452
452
|
`).trim();let l="";o===void 0?l="":typeof o=="string"?l=' and name "'+o+'"':l=" and name `"+o+"`";let c="";return a===void 0?c="":typeof a=="string"?c=' and description "'+a+'"':c=" and description `"+a+"`",(`
|
|
453
453
|
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+c+`
|
|
454
454
|
|
|
455
|
-
`+s).trim()},n_=ct(pc,pc.name,"queryAll"),[o_,a_,i_,s_,l_]=ar(pc,cU,dU),Fd=()=>ce().testIdAttribute,fc=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return or(t[0]),Qr(Fd(),...t)},pU=(e,t)=>"Found multiple elements by: ["+Fd()+'="'+t+'"]',fU=(e,t)=>"Unable to find an element by: ["+Fd()+'="'+t+'"]',u_=ct(fc,fc.name,"queryAll"),[c_,d_,p_,f_,m_]=ar(fc,pU,fU),si=Object.freeze({__proto__:null,queryAllByLabelText:S1,queryByLabelText:v1,getAllByLabelText:w1,getByLabelText:C1,findAllByLabelText:_1,findByLabelText:R1,queryByPlaceholderText:T1,queryAllByPlaceholderText:A1,getByPlaceholderText:O1,getAllByPlaceholderText:P1,findAllByPlaceholderText:q1,findByPlaceholderText:x1,queryByText:N1,queryAllByText:M1,getByText:I1,getAllByText:j1,findAllByText:D1,findByText:F1,queryByDisplayValue:B1,queryAllByDisplayValue:L1,getByDisplayValue:$1,getAllByDisplayValue:k1,findAllByDisplayValue:U1,findByDisplayValue:H1,queryByAltText:z1,queryAllByAltText:V1,getByAltText:Y1,getAllByAltText:G1,findAllByAltText:W1,findByAltText:K1,queryByTitle:J1,queryAllByTitle:X1,getByTitle:Z1,getAllByTitle:Q1,findAllByTitle:e_,findByTitle:t_,queryByRole:o_,queryAllByRole:n_,getAllByRole:a_,getByRole:i_,findAllByRole:s_,findByRole:l_,queryByTestId:c_,queryAllByTestId:u_,getByTestId:p_,getAllByTestId:d_,findAllByTestId:f_,findByTestId:m_});function mc(e,t,r){return t===void 0&&(t=si),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let a=t[o];return n[o]=a.bind(null,e),n},r)}var h_=e=>!e||Array.isArray(e)&&!e.length;function _g(e){if(h_(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function mU(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){_g(e);let n=(Array.isArray(e)?e:[e]).map(o=>{let a=o.parentElement;if(a===null)return()=>null;for(;a.parentElement;)a=a.parentElement;return()=>a.contains(o)?o:null});e=()=>n.map(o=>o()).filter(Boolean)}return _g(e()),Id(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!h_(n))throw r},t)}var Rg={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},wg={doubleClick:"dblClick"};function Do(e,t){return ce().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Va(e,t,r,n){let{EventType:o="Event",defaultInit:a={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let i={...a,...r},{target:{value:s,files:l,...c}={}}=i;s!==void 0&&hU(t,s),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,c);let u=s1(t),d=u[o]||u.Event,m;if(typeof d=="function")m=new d(e,i);else{m=u.document.createEvent(o);let{bubbles:p,cancelable:h,detail:g,...y}=i;m.initEvent(e,p,h,g),Object.keys(y).forEach(b=>{m[b]=y[b]})}return["dataTransfer","clipboardData"].forEach(p=>{let h=i[p];typeof h=="object"&&(typeof u.DataTransfer=="function"?Object.defineProperty(m,p,{value:Object.getOwnPropertyNames(h).reduce((g,y)=>(Object.defineProperty(g,y,{value:h[y]}),g),new u.DataTransfer)}):Object.defineProperty(m,p,{value:h}))}),m}Object.keys(Rg).forEach(e=>{let{EventType:t,defaultInit:r}=Rg[e],n=e.toLowerCase();Va[e]=(o,a)=>Va(n,o,a,{EventType:t,defaultInit:r}),Do[e]=(o,a)=>Do(o,Va[e](o,a))});function hU(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(wg).forEach(e=>{let t=wg[e];Do[e]=function(){return Do[t](...arguments)}});function yU(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
455
|
+
`+s).trim()},o_=ct(pc,pc.name,"queryAll"),[a_,i_,s_,l_,u_]=ar(pc,cU,dU),Fd=()=>ce().testIdAttribute,fc=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return or(t[0]),Qr(Fd(),...t)},pU=(e,t)=>"Found multiple elements by: ["+Fd()+'="'+t+'"]',fU=(e,t)=>"Unable to find an element by: ["+Fd()+'="'+t+'"]',c_=ct(fc,fc.name,"queryAll"),[d_,p_,f_,m_,h_]=ar(fc,pU,fU),si=Object.freeze({__proto__:null,queryAllByLabelText:A1,queryByLabelText:E1,getAllByLabelText:C1,getByLabelText:S1,findAllByLabelText:R1,findByLabelText:w1,queryByPlaceholderText:P1,queryAllByPlaceholderText:T1,getByPlaceholderText:q1,getAllByPlaceholderText:O1,findAllByPlaceholderText:x1,findByPlaceholderText:M1,queryByText:j1,queryAllByText:N1,getByText:D1,getAllByText:I1,findAllByText:F1,findByText:L1,queryByDisplayValue:k1,queryAllByDisplayValue:B1,getByDisplayValue:U1,getAllByDisplayValue:$1,findAllByDisplayValue:H1,findByDisplayValue:V1,queryByAltText:G1,queryAllByAltText:z1,getByAltText:W1,getAllByAltText:Y1,findAllByAltText:K1,findByAltText:X1,queryByTitle:Q1,queryAllByTitle:J1,getByTitle:e_,getAllByTitle:Z1,findAllByTitle:t_,findByTitle:r_,queryByRole:a_,queryAllByRole:o_,getAllByRole:i_,getByRole:s_,findAllByRole:l_,findByRole:u_,queryByTestId:d_,queryAllByTestId:c_,getByTestId:f_,getAllByTestId:p_,findAllByTestId:m_,findByTestId:h_});function mc(e,t,r){return t===void 0&&(t=si),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let a=t[o];return n[o]=a.bind(null,e),n},r)}var y_=e=>!e||Array.isArray(e)&&!e.length;function Rg(e){if(y_(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function mU(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Rg(e);let n=(Array.isArray(e)?e:[e]).map(o=>{let a=o.parentElement;if(a===null)return()=>null;for(;a.parentElement;)a=a.parentElement;return()=>a.contains(o)?o:null});e=()=>n.map(o=>o()).filter(Boolean)}return Rg(e()),Id(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!y_(n))throw r},t)}var wg={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},Cg={doubleClick:"dblClick"};function Do(e,t){return ce().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Va(e,t,r,n){let{EventType:o="Event",defaultInit:a={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let i={...a,...r},{target:{value:s,files:l,...c}={}}=i;s!==void 0&&hU(t,s),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,c);let u=l1(t),d=u[o]||u.Event,m;if(typeof d=="function")m=new d(e,i);else{m=u.document.createEvent(o);let{bubbles:p,cancelable:h,detail:g,...y}=i;m.initEvent(e,p,h,g),Object.keys(y).forEach(b=>{m[b]=y[b]})}return["dataTransfer","clipboardData"].forEach(p=>{let h=i[p];typeof h=="object"&&(typeof u.DataTransfer=="function"?Object.defineProperty(m,p,{value:Object.getOwnPropertyNames(h).reduce((g,y)=>(Object.defineProperty(g,y,{value:h[y]}),g),new u.DataTransfer)}):Object.defineProperty(m,p,{value:h}))}),m}Object.keys(wg).forEach(e=>{let{EventType:t,defaultInit:r}=wg[e],n=e.toLowerCase();Va[e]=(o,a)=>Va(n,o,a,{EventType:t,defaultInit:r}),Do[e]=(o,a)=>Do(o,Va[e](o,a))});function hU(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(Cg).forEach(e=>{let t=Cg[e];Do[e]=function(){return Do[t](...arguments)}});function yU(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
456
456
|
`)}function bU(e){return s3.default.compressToEncodedURIComponent(yU(e))}function gU(e){return"https://testing-playground.com/#markup="+bU(e)}var vU=(e,t,r)=>Array.isArray(e)?e.forEach(n=>ac(n,t,r)):ac(e,t,r),EU=function(e){if(e===void 0&&(e=Md().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}let t=gU(e.innerHTML);return console.log(`Open this URL in your browser
|
|
457
457
|
|
|
458
|
-
`+t),t},
|
|
458
|
+
`+t),t},Sg={debug:vU,logTestingPlaygroundURL:EU},_U=typeof document<"u"&&document.body?mc(document.body,si,Sg):Object.keys(si).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),Sg);function ie(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,o])=>e[n]===o):!0}var hc;(function(e){e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio"})(hc||(hc={}));function b_(e){return ie(e,"button")||ie(e,"input")&&e.type in hc}function Bt(e){var t;if(RU(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${wU(e)}`)}function RU(e){return e.nodeType===9}function wU(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function g_(e,t){return new Promise((r,n)=>{let o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}function Ld(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function Er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v_=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){Er(this,"kind",void 0),Er(this,"type",void 0),Er(this,"file",null),Er(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e)}},CU=class extends Array{add(...e){let t=new v_(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function ja(e,t){let[r,n]=e.split("/"),o=!n||n==="*";return a=>t?a.type===(o?r:e):o?a.type.startsWith(`${r}/`):a.type===r}function SU(e){return new class{getData(t){var r;let n=(r=this.items.find(ja(t,!0)))!==null&&r!==void 0?r:this.items.find(ja(t,!1)),o="";return n?.getAsString(a=>{o=a}),o}setData(t,r){let n=this.items.findIndex(ja(t,!0)),o=new v_(r,t);n>=0?this.items.splice(n,1,o):this.items.push(o)}clearData(t){if(t){let r=this.items.findIndex(ja(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){Er(this,"dropEffect","none"),Er(this,"effectAllowed","uninitialized"),Er(this,"items",new CU),Er(this,"files",Ld(e,[]))}}}function Bd(e,t=[]){let r=typeof e.DataTransfer>"u"?SU(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>Ld(e,t)}),r}function AU(e,t){if(t.kind==="file")return t.getAsFile();let r="";return t.getAsString(n=>{r=n}),new e.Blob([r],{type:t.type})}function E_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function __(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let o=await this.data[n];if(!o)throw new Error(`${n} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:n})}constructor(n){E_(this,"data",void 0),this.data=n}}(r)}var Ln=Symbol("Manage ClipboardSub");function Ag(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let o=n.types.includes("text/plain")?"text/plain":n.types.find(a=>a.startsWith("text/"));o&&(r+=await n.getType(o).then(a=>g_(a,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[__(e,r)]}constructor(...r){super(...r),E_(this,"items",[])}},{[Ln]:t})}function kd(e){return!!e?.[Ln]}function TU(e){if(kd(e.navigator.clipboard))return e.navigator.clipboard[Ln];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=Ag(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=Ag(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[Ln]}function PU(e){kd(e.navigator.clipboard)&&e.navigator.clipboard[Ln].resetClipboardStub()}function OU(e){kd(e.navigator.clipboard)&&e.navigator.clipboard[Ln].detachClipboardStub()}async function qU(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let o=Bd(t);for(let a of n)for(let i of a.types)o.setData(i,await a.getType(i).then(s=>g_(s,t.FileReader)));return o}async function R_(e,t){let r=Bt(e),n=r.navigator.clipboard,o=[];for(let a=0;a<t.items.length;a++){let i=t.items[a],s=AU(r,i);o.push(__(r,s))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var li=globalThis;typeof li.afterEach=="function"&&li.afterEach(()=>PU(globalThis.window));typeof li.afterAll=="function"&&li.afterAll(()=>OU(globalThis.window));function Wr(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function Fo(e){let t=xU(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function xU(e){return e.nodeType===1?e:e.parentElement}function Bn(e){return w_(e)&&!e.readOnly||Wr(e)}var yc;(function(e){e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week"})(yc||(yc={}));function w_(e){return ie(e,"textarea")||ie(e,"input")&&e.type in yc}var bc;(function(e){e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url"})(bc||(bc={}));function MU(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function NU(e){return ie(e,"textarea")||ie(e,"input")&&e.type in bc}var C_=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function $d(e){return e.matches(C_)}var ui;(function(e){e["{"]="}",e["["]="]"})(ui||(ui={}));function S_(e,t){let r=0,n=e[r]in ui?e[r]:"";r+=n.length;let o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:o,...o===""?jU(e,r,t):IU(e,r,o,t)}}function jU(e,t,r){let n=e[t];return A_(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function IU(e,t,r,n){var o,a;let i=e[t]==="/"?"/":"";t+=i.length;let s=r==="{"&&e[t]==="\\";t+=Number(s);let l=s?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];A_(l,e,t,n),t+=l.length;var c;let u=(c=(a=e.slice(t).match(/^>\d+/))===null||a===void 0?void 0:a[0])!==null&&c!==void 0?c:"";t+=u.length;let d=e[t]==="/"||!u&&e[t]===">"?e[t]:"";t+=d.length;let m=ui[r],p=e[t]===m?m:"";if(!p)throw new Error(T_([!u&&"repeat modifier",!d&&"release modifier",`"${m}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=p.length,{consumedLength:t,descriptor:l,releasePrevious:!!i,repeat:u?Math.max(Number(u.substr(1)),1):1,releaseSelf:DU(d,u)}}function A_(e,t,r,n){if(!e)throw new Error(T_("key descriptor",t[r],t,n))}function DU(e,t){if(e)return e==="/";if(t)return!1}function T_(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
459
459
|
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|
460
|
-
for more information about how userEvent parses your input.`}function FU(e){return new e.constructor(e.type,e)}var at;(function(e){e[e.Trigger=2]="Trigger",e[e.Call=1]="Call"})(at||(at={}));function bo(e,t){e.levelRefs[t]={}}function Ia(e,t){return e.levelRefs[t]}var On;(function(e){e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never"})(On||(On={}));function tr(e){for(let r=e;r;r=r.parentElement)if(ie(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(ie(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function $i(e){let t=e.activeElement;return t?.shadowRoot?$i(t.shadowRoot):tr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function _u(e){var t;return(t=$i(e))!==null&&t!==void 0?t:e.body}function LU(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function kt(e){return T_(e)&&R_(e)}function BU(e){return T_(e)&&y_(e)}function T_(e){return e.nodeType===1}function kU(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&kt(e)){let n=Fo(t.focusNode);if(n){if(!t.isCollapsed){var r;let o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}function kn(e,t){return ce().eventWrapper(e)}function Cr(e){let t=LU(e,$d),r=$i(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(kn(t?()=>t.focus():()=>r?.blur()),kU(t??e.ownerDocument.body))}function $U(e){!$d(e)||$i(e.ownerDocument)!==e||kn(()=>e.blur())}var Sr={};Sr.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&ie(n,"label")&&n.control;if(o)return()=>{$d(o)&&Cr(o),r.dispatchEvent(o,FU(e))};if(ie(t,"input",{type:"file"}))return()=>{$U(t),t.dispatchEvent(new(Bt(t)).Event("fileDialog")),Cr(t)}};var $n=Symbol("Displayed value in UI"),Zt=Symbol("Displayed selection in UI"),ci=Symbol("Initial value to compare on blur");function UU(e){return typeof e=="object"&&$n in e}function HU(e){return!!e&&typeof e=="object"&&Zt in e}function VU(e,t){e[ci]===void 0&&(e[ci]=e.value),e[$n]=t,e.value=Object.assign(new String(t),{[$n]:!0})}function $t(e){return e[$n]===void 0?e.value:String(e[$n])}function Ud(e){e[$n]=void 0}function P_(e){e[ci]=void 0}function zU(e){return e[ci]}function GU(e,t){e[Zt]=t}function Yn(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=$t(e).length,a=d=>Math.max(0,Math.min(o,d)),i=n==="replace"||e[Zt]===void 0?a(r):e[Zt].anchorOffset,s=a(t),l=Math.min(i,s),c=Math.max(i,s);if(e[Zt]={anchorOffset:i,focusOffset:s},e.selectionStart===l&&e.selectionEnd===c)return;let u=Object.assign(new Number(l),{[Zt]:!0});try{e.setSelectionRange(u,c)}catch{}}function Lo(e){var t,r,n;let o=(n=e[Zt])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}function YU(e){return!!e[Zt]}function za(e){e[Zt]=void 0}var di=globalThis.parseInt;function WU(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=di(t[0],10),n=di(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,Ag(t,o)}return e.length===2?e:Ag(t,2)}function Ag(e,t){let r=e.slice(0,t),n=Math.min(di(r,10),23),o=e.slice(t),a=di(o,10),i=Math.min(a,59);return`${n.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function O_(e,t){let r=e.cloneNode();return r.value=t,r.value===t}function q_(e,t,r,n){if(Ga(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=Tg(e,t,r);if(o){if(Ga(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(ie(o,"br")){let a=Tg(o,void 0,r);return a?Ga(a)?{node:a,offset:r>0?0:a.nodeValue.length}:r<0&&ie(a,"br")?{node:o.parentNode,offset:Da(o)}:{node:a.parentNode,offset:Da(a)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:Da(o)}:void 0}else return{node:o.parentNode,offset:Da(o)+(r>0?1:0)}}}function Tg(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Hd(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),XU(e,r===1?"next":"previous",KU)}function KU(e){if(Ga(e))return!0;if(Hd(e)){if(ie(e,["input","textarea"]))return e.type!=="hidden";if(ie(e,"br"))return!0}return!1}function Da(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Hd(e){return e.nodeType===1}function Ga(e){return e.nodeType===3}function XU(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=JU(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Hd(e.parentNode)||!Wr(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function JU(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var Bo=Symbol("Track programmatic changes for React workaround");function QU(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Bt(e).REACT_VERSION===17}function ZU(e){QU(e)&&(e[Bo]={previousValue:String(e.value),tracked:[]})}function e4(e,t){var r,n;(n=e[Bo])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Bo]||(Ud(e),Yn(e,{focusOffset:t.length}))}function t4(e,t){var r;let n=e[Bo];if(e[Bo]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||Ud(e),YU(e)&&Yn(e,{focusOffset:o?t:e.value.length})}function x_(e){let t=r4(e);if(t&&kt(t))return{type:"input",selection:Lo(t)};let r=t?.ownerDocument.getSelection();return{type:Fo(e)&&r?.anchorNode&&Fo(r.anchorNode)?"contenteditable":"default",selection:r}}function r4(e){return e.nodeType===1?e:e.parentElement}function n4(e){let t=x_(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function Kr({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,a;if(x_(e).type==="input")return Yn(e,{anchorOffset:n,focusOffset:t});(a=r.ownerDocument)===null||a===void 0||(o=a.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}function M_(e){return ie(e,"input")&&["date","time"].includes(e.type)}function Un(e,t,r,n="insertText"){let o=n4(t);o&&(!M_(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?o4(e,t,o,r,n):a4(e,t,o,r,n)))}function o4(e,t,r,n,o){let a=!1;if(!r.collapsed)a=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let i=q_(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(i){a=!0;let s=r.cloneRange();s.comparePoint(i.node,i.offset)<0?s.setStart(i.node,i.offset):s.setEnd(i.node,i.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let i=r.endOffset;r.endContainer.insertData(i,n),r.setStart(r.endContainer,i+n.length),r.setEnd(r.endContainer,i+n.length)}else{let i=t.ownerDocument.createTextNode(n);r.insertNode(i),r.setStart(i,n.length),r.setEnd(i,n.length)}(a||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}function a4(e,t,r,n,o){let a=n;if(NU(t)){let c=MU(t);if(c!==void 0&&n.length>0){let u=c-t.value.length;if(u>0)a=n.substring(0,u);else return}}let{newValue:i,newOffset:s,oldValue:l}=i4(a,t,r,o);i===l&&s===r.startOffset&&s===r.endOffset||ie(t,"input",{type:"number"})&&!s4(i)||(VU(t,i),Kr({focusNode:t,anchorOffset:s,focusOffset:s}),M_(t)?O_(t,i)&&(Pg(e,t,s,{}),e.dispatchUIEvent(t,"change"),P_(t)):Pg(e,t,s,{data:n,inputType:o}))}function i4(e,t,{startOffset:r,endOffset:n},o){let a=$t(t),i=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),s=a.substring(0,i),l=Math.min(a.length,r===n&&o==="deleteContentForward"?r+1:n),c=a.substring(l,a.length),u=`${s}${e}${c}`,d=i+e.length;if(ie(t,"input",{type:"time"})){let m=WU(u);m!==""&&O_(t,m)&&(u=m,d=m.length)}return{oldValue:a,newValue:u,newOffset:d}}function Pg(e,t,r,n){e.dispatchUIEvent(t,"input",n),t4(t,r)}function s4(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}Sr.cut=(e,t,r)=>()=>{Bn(t)&&Un(r,t,"","deleteByCut")};function l4(e){return e?Wr(e)?e.textContent:$t(e):null}function u4(e){let t=Bt(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function c4(e,t){let r=e.ownerDocument,n=r.querySelectorAll(w_),o=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||tr(l)));Number(e.getAttribute("tabindex"))>=0&&o.sort((l,c)=>{let u=Number(l.getAttribute("tabindex")),d=Number(c.getAttribute("tabindex"));return u===d?0:u===0?1:d===0?-1:u-d});let a={},i=[r.body],s=ie(e,"input",{type:"radio"})?e.name:void 0;o.forEach(l=>{let c=l;if(ie(c,"input",{type:"radio"})&&c.name){if(c===e){i.push(c);return}else if(c.name===s)return;if(c.checked){i=i.filter(u=>!ie(u,"input",{type:"radio",name:c.name})),i.push(c),a[c.name]=c;return}if(typeof a[c.name]<"u")return}i.push(c)});for(let l=i.findIndex(c=>c===e);;)if(l+=t?-1:1,l===i.length?l=0:l===-1&&(l=i.length-1),i[l]===e||i[l]===r.body||u4(i[l]))return i[l]}function Og(e,t){if(kt(e)){let r=Lo(e);Kr({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=q_(r.focusNode,r.focusOffset,t);n&&Kr({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function N_(e){if(kt(e))return Kr({focusNode:e,anchorOffset:0,focusOffset:$t(e).length});var t;let r=(t=Fo(e))!==null&&t!==void 0?t:e.ownerDocument.body;Kr({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function d4(e){if(kt(e))return Lo(e).startOffset===0&&Lo(e).endOffset===$t(e).length;var t;let r=(t=Fo(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function go(e,t,r){var n;if(kt(e))return Kr({focusNode:e,anchorOffset:t,focusOffset:r});if(Wr(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Kr({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function Fa(e,t,r){let n=Bt(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let a=o.findIndex(i=>i===t)+r;;a+=r){if(o[a]||(a=r>0?0:o.length-1),o[a]===t)return;tr(o[a])||(Cr(o[a]),e.dispatchUIEvent(o[a],"click"))}}Sr.keydown=(e,t,r)=>{var n,o;return(o=(n=qg[e.key])===null||n===void 0?void 0:n.call(qg,e,t,r))!==null&&o!==void 0?o:p4(e,t,r)};var qg={ArrowDown:(e,t,r)=>{if(ie(t,"input",{type:"radio"}))return()=>Fa(r,t,-1)},ArrowLeft:(e,t,r)=>ie(t,"input",{type:"radio"})?()=>Fa(r,t,-1):()=>Og(t,-1),ArrowRight:(e,t,r)=>ie(t,"input",{type:"radio"})?()=>Fa(r,t,1):()=>Og(t,1),ArrowUp:(e,t,r)=>{if(ie(t,"input",{type:"radio"}))return()=>Fa(r,t,1)},Backspace:(e,t,r)=>{if(Bn(t))return()=>{Un(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(Bn(t))return()=>{Un(r,t,"","deleteContentForward")}},End:(e,t)=>{if(ie(t,["input","textarea"])||Wr(t))return()=>{var r,n;let o=(n=(r=l4(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;go(t,o,o)}},Home:(e,t)=>{if(ie(t,["input","textarea"])||Wr(t))return()=>{go(t,0,0)}},PageDown:(e,t)=>{if(ie(t,["input"]))return()=>{let r=$t(t).length;go(t,r,r)}},PageUp:(e,t)=>{if(ie(t,["input"]))return()=>{go(t,0,0)}},Tab:(e,t,r)=>()=>{let n=c4(t,r.system.keyboard.modifiers.Shift);Cr(n),kt(n)&&Yn(n,{anchorOffset:0,focusOffset:n.value.length})}},p4=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>N_(t)};Sr.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ie(t,"button")||ie(t,"input")&&f4.includes(t.type)||ie(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(ie(t,"input")){let n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&m4.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Bn(t)){let n=e.key==="Enter"?Wr(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
461
|
-
`:e.key;return()=>Un(r,t,o,n)}};var f4=["button","color","file","image","reset","submit"],m4=["email","month","password","search","tel","text","url","week"];Sr.keyup=(e,t,r)=>{var n;return(n=xg[e.key])===null||n===void 0?void 0:n.call(xg,e,t,r)};var xg={" ":(e,t,r)=>{if(y_(t))return()=>r.dispatchUIEvent(t,"click")}};Sr.paste=(e,t,r)=>{if(Bn(t))return()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&Un(r,t,o,"insertFromPaste")}};var j_={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function I_(e){return j_[e].EventType}var h4=["MouseEvent","PointerEvent"];function y4(e){return h4.includes(I_(e))}function b4(e){return I_(e)==="KeyboardEvent"}var g4={ClipboardEvent:[E4],Event:[],InputEvent:[La,_4],MouseEvent:[La,Ru,Mg],PointerEvent:[La,Ru,Mg,w4],KeyboardEvent:[La,Ru,R4]};function D_(e,t,r){let n=Bt(t),{EventType:o,defaultInit:a}=j_[e],i=new(v4(n))[o](e,a);return g4[o].forEach(s=>s(i,r??{})),i}function v4(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var a;let i=(a=e.ClipboardEvent)!==null&&a!==void 0?a:class extends r{};var s;let l=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var c;let u=(c=e.ProgressEvent)!==null&&c!==void 0?c:class extends r{};var d;let m=(d=e.TransitionEvent)!==null&&d!==void 0?d:class extends r{};var p;let h=(p=e.UIEvent)!==null&&p!==void 0?p:class extends r{};var g;let y=(g=e.CompositionEvent)!==null&&g!==void 0?g:class extends h{};var b;let v=(b=e.FocusEvent)!==null&&b!==void 0?b:class extends h{};var C;let S=(C=e.InputEvent)!==null&&C!==void 0?C:class extends h{};var A;let _=(A=e.KeyboardEvent)!==null&&A!==void 0?A:class extends h{};var E;let R=(E=e.MouseEvent)!==null&&E!==void 0?E:class extends h{};var P;let N=(P=e.DragEvent)!==null&&P!==void 0?P:class extends R{};var B;let j=(B=e.PointerEvent)!==null&&B!==void 0?B:class extends R{};var F;let T=(F=e.TouchEvent)!==null&&F!==void 0?F:class extends h{};return{Event:r,AnimationEvent:o,ClipboardEvent:i,PopStateEvent:l,ProgressEvent:u,TransitionEvent:m,UIEvent:h,CompositionEvent:y,FocusEvent:v,InputEvent:S,KeyboardEvent:_,MouseEvent:R,DragEvent:N,PointerEvent:j,TouchEvent:T}}function Zr(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function He(e){return Number(e??0)}function E4(e,{clipboardData:t}){Zr(e,{clipboardData:t})}function _4(e,{data:t,inputType:r,isComposing:n}){Zr(e,{data:t,isComposing:!!n,inputType:String(r)})}function La(e,{view:t,detail:r}){Zr(e,{view:t,detail:He(r??0)})}function Ru(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:a,modifierCapsLock:i,modifierFn:s,modifierFnLock:l,modifierNumLock:c,modifierScrollLock:u,modifierSymbol:d,modifierSymbolLock:m}){Zr(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(p){return!!{Alt:t,AltGraph:a,CapsLock:i,Control:r,Fn:s,FnLock:l,Meta:n,NumLock:c,ScrollLock:u,Shift:o,Symbol:d,SymbolLock:m}[p]}})}function R4(e,{key:t,code:r,location:n,repeat:o,isComposing:a,charCode:i}){Zr(e,{key:String(t),code:String(r),location:He(n),repeat:!!o,isComposing:!!a,charCode:i})}function Mg(e,{x:t,y:r,screenX:n,screenY:o,clientX:a=t,clientY:i=r,button:s,buttons:l,relatedTarget:c}){Zr(e,{screenX:He(n),screenY:He(o),clientX:He(a),x:He(a),clientY:He(i),y:He(i),button:He(s),buttons:He(l),relatedTarget:c})}function w4(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:a,tiltX:i,tiltY:s,twist:l,pointerType:c,isPrimary:u}){Zr(e,{pointerId:He(t),width:He(r),height:He(n),pressure:He(o),tangentialPressure:He(a),tiltX:He(i),tiltY:He(s),twist:He(l),pointerType:String(c),isPrimary:!!u})}function C4(e,t,r,n=!1){(y4(t)||b4(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=D_(t,e,r);return F_.call(this,e,o,n)}function F_(e,t,r=!1){var n;let o=t.type,a=r?()=>{}:(n=Sr[o])===null||n===void 0?void 0:n.call(Sr,t,e,this);if(a){t.preventDefault();let i=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>i}),Object.defineProperty(t,"preventDefault",{value:()=>{i=t.cancelable}}),kn(()=>e.dispatchEvent(t)),i||a(),!i}return kn(()=>e.dispatchEvent(t))}function S4(e,t,r){let n=D_(t,e,r);kn(()=>e.dispatchEvent(n))}var wu=Symbol("Interceptor for programmatical calls");function An(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),a=n?.set?"set":"value";if(typeof n?.[a]!="function"||n[a][wu])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function i(...s){let{applyNative:l=!1,realArgs:c,then:u}=r.call(this,...s),d=(!l&&o||n)[a];a==="set"?d.call(this,c):d.call(this,...c),u?.()}i[wu]=wu,Object.defineProperty(e,t,{...o??n,[a]:i})}function A4(e){An(e,"value",function(t){let r=UU(t);return r&&ZU(this),{applyNative:!!r,realArgs:T4(this,t),then:r?void 0:()=>e4(this,String(t))}})}function T4(e,t){return ie(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function P4(e){An(e,"setSelectionRange",function(t,...r){let n=HU(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:za(e)}}),An(e,"selectionStart",function(t){return{realArgs:t,then:()=>za(e)}}),An(e,"selectionEnd",function(t){return{realArgs:t,then:()=>za(e)}}),An(e,"select",function(){return{realArgs:[],then:()=>GU(e,{anchorOffset:0,focusOffset:$t(e).length})}})}function O4(e){An(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{Ud(e),za(e)}}})}var qn=Symbol("Node prepared with document state workarounds");function L_(e){e[qn]||(e.addEventListener("focus",t=>{let r=t.target;Ng(r)},{capture:!0,passive:!0}),e.activeElement&&Ng(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=zU(r);n!==void 0&&(r.value!==n&&S4(r,"change"),P_(r))},{capture:!0,passive:!0}),e[qn]=qn)}function Ng(e){e[qn]||(ie(e,["input","textarea"])&&(A4(e),P4(e),O4(e)),e[qn]=qn)}function q4(e){return x4(e)?e:e.ownerDocument}function x4(e){return e.nodeType===9}function Hn(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}function En(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Et;(function(e){e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD"})(Et||(Et={}));var M4=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function jg(e){return M4.includes(e)}var N4=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Ig(e){return N4.includes(e)}var j4=class{isKeyPressed(e){return!!this.pressed[String(e.code)]}getPressedKeys(){return Object.values(this.pressed).map(e=>e.keyDef)}async keydown(e,t){var r,n,o;let a=String(t.key),i=String(t.code),s=_u(e.config.document);this.setKeydownTarget(s);var l;(l=(r=this.pressed)[n=i])!==null&&l!==void 0||(r[n]={keyDef:t,unpreventedDefault:!1}),jg(a)&&(this.modifiers[a]=!0);let c=e.dispatchUIEvent(s,"keydown",{key:a,code:i});Ig(a)&&!this.modifiers[a]&&(this.modifiers[a]=!0,this.modifierLockStart[a]=!0),(o=this.pressed[i]).unpreventedDefault||(o.unpreventedDefault=c),c&&this.hasKeyPress(a)&&e.dispatchUIEvent(_u(e.config.document),"keypress",{key:a,code:i,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),o=this.pressed[n].unpreventedDefault;delete this.pressed[n],jg(r)&&!Object.values(this.pressed).find(a=>a.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(_u(e.config.document),"keyup",{key:r,code:n},!o),Ig(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){En(this,"system",void 0),En(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),En(this,"pressed",{}),En(this,"carryChar",""),En(this,"lastKeydownTarget",void 0),En(this,"modifierLockStart",{}),this.system=e}},I4=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:Et.LEFT},{code:"AltRight",key:"Alt",location:Et.RIGHT},{code:"ShiftLeft",key:"Shift",location:Et.LEFT},{code:"ShiftRight",key:"Shift",location:Et.RIGHT},{code:"ControlLeft",key:"Control",location:Et.LEFT},{code:"ControlRight",key:"Control",location:Et.RIGHT},{code:"MetaLeft",key:"Meta",location:Et.LEFT},{code:"MetaRight",key:"Meta",location:Et.RIGHT},{code:"OSLeft",key:"OS",location:Et.LEFT},{code:"OSRight",key:"OS",location:Et.RIGHT},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],D4=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function F4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B_=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=gc(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=gc(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){F4(this,"pressed",{})}},Dg={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function gc(e=0){return e in Dg?Dg[e]:Number(e)}var Fg={1:2,2:1};function Lg(e){return e=gc(e),e in Fg?Fg[e]:e}function L4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B4=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){L4(this,"pressedKeys",new Set)}};function wo(e,t){let r=[];for(let a=e;a;a=a.parentElement)r.push(a);let n=[];for(let a=t;a;a=a.parentElement)n.push(a);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return[r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}function vc({target:e,node:t,offset:r}){return kt(e)?{node:e,offset:r??$t(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:k_(e,r)}function k_(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let a=e.childNodes.item(n),i=String(a.textContent);if(i.length)if(t!==void 0&&i.length<t)t-=i.length;else{if(a.nodeType===1)return k_(a,t,!1);if(a.nodeType===3)return{node:a,offset:t??a.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}function k4({document:e,target:t,clickCount:r,node:n,offset:o}){if(BU(t))return;let a=kt(t),i=String(a?$t(t):t.textContent),[s,l]=n?[o,o]:$4(i,o,r);if(a)return Yn(t,{anchorOffset:s??i.length,focusOffset:l??i.length}),{node:t,start:s??0,end:l??i.length};{let{node:c,offset:u}=vc({target:t,node:n,offset:s}),{node:d,offset:m}=vc({target:t,node:n,offset:l}),p=t.ownerDocument.createRange();try{p.setStart(c,u),p.setEnd(d,m)}catch{throw new Error("The given offset is out of bounds.")}let h=e.getSelection();return h?.removeAllRanges(),h?.addRange(p.cloneRange()),p}}function $4(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function U4(e,{document:t,target:r,node:n,offset:o}){let a=vc({target:r,node:n,offset:o});if("node"in e){if(a.node===e.node){let i=a.offset<e.start?e.end:e.start,s=a.offset>e.end||a.offset<e.start?a.offset:e.end;Yn(e.node,{anchorOffset:i,focusOffset:s})}}else{let i=e.cloneRange(),s=i.comparePoint(a.node,a.offset);s<0?i.setStart(a.node,a.offset):s>0&&i.setEnd(a.node,a.offset);let l=t.getSelection();l?.removeAllRanges(),l?.addRange(i.cloneRange())}}function $_(e,t){var r,n,o,a,i,s,l,c;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.y)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((a=t.coords)===null||a===void 0?void 0:a.y)||((i=e.caret)===null||i===void 0?void 0:i.node)!==((s=t.caret)===null||s===void 0?void 0:s.node)||((l=e.caret)===null||l===void 0?void 0:l.offset)!==((c=t.caret)===null||c===void 0?void 0:c.offset)}function $r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H4=class{move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!$_(r,t))return;let o=this.getTarget(e),a=this.getEventInit("mousemove"),[i,s]=wo(n,o);return{leave:()=>{n!==o&&(e.dispatchUIEvent(n,"mouseout",a),i.forEach(l=>e.dispatchUIEvent(l,"mouseleave",a)))},enter:()=>{n!==o&&(e.dispatchUIEvent(o,"mouseover",a),s.forEach(l=>e.dispatchUIEvent(l,"mouseenter",a)))},move:()=>{e.dispatchUIEvent(o,"mousemove",a),this.modifySelecting(e)}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[n]=o;let a=tr(o),i=this.getEventInit("mousedown",t.button);(a||e.dispatchUIEvent(o,"mousedown",i))&&(this.startSelecting(e,i.detail),Cr(o)),!a&&Lg(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button,r))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let o=this.getTarget(e);if(!tr(o)){e.dispatchUIEvent(o,"mouseup",this.getEventInit("mouseup",t.button)),this.endSelecting();let a=wo(this.buttonDownTarget[n],o)[2][0];if(a){let i=this.getEventInit("click",t.button,r);i.detail&&(e.dispatchUIEvent(a,i.button===0?"click":"auxclick",i),i.button===0&&i.detail===2&&e.dispatchUIEvent(a,"dblclick",{...this.getEventInit("dblclick",t.button),detail:i.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t,r){let n={...this.position.coords};return r&&(n.pointerId=r.pointerId,n.pointerType=r.pointerType,n.isPrimary=r.isPrimary),n.button=Lg(t),n.buttons=this.buttons.getButtons(),e==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):e==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(e==="click"||e==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=k4({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&U4(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){$r(this,"position",{}),$r(this,"buttons",new B_),$r(this,"selecting",void 0),$r(this,"buttonDownTarget",{}),$r(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){$r(this,"down",{}),$r(this,"count",{})}})}};function pi(e,t){var r;return((r=U_(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function V4(e){let t=Bt(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}var Bg=Symbol("Last check for pointer-events");function U_(e,t){let r=t[Bg];if(!(e.config.pointerEventsCheck!==On.Never&&(!r||kg(e.config.pointerEventsCheck,On.EachApiCall)&&r[at.Call]!==Ia(e,at.Call)||kg(e.config.pointerEventsCheck,On.EachTrigger)&&r[at.Trigger]!==Ia(e,at.Trigger))))return r?.result;let n=V4(t);return t[Bg]={[at.Call]:Ia(e,at.Call),[at.Trigger]:Ia(e,at.Trigger),result:n},n}function vo(e,t){let r=U_(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",z4(r.tree)].join(`
|
|
460
|
+
for more information about how userEvent parses your input.`}function FU(e){return new e.constructor(e.type,e)}var at;(function(e){e[e.Trigger=2]="Trigger",e[e.Call=1]="Call"})(at||(at={}));function bo(e,t){e.levelRefs[t]={}}function Ia(e,t){return e.levelRefs[t]}var On;(function(e){e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never"})(On||(On={}));function tr(e){for(let r=e;r;r=r.parentElement)if(ie(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(ie(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function $i(e){let t=e.activeElement;return t?.shadowRoot?$i(t.shadowRoot):tr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function _u(e){var t;return(t=$i(e))!==null&&t!==void 0?t:e.body}function LU(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function kt(e){return P_(e)&&w_(e)}function BU(e){return P_(e)&&b_(e)}function P_(e){return e.nodeType===1}function kU(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&kt(e)){let n=Fo(t.focusNode);if(n){if(!t.isCollapsed){var r;let o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}function kn(e,t){return ce().eventWrapper(e)}function Cr(e){let t=LU(e,$d),r=$i(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(kn(t?()=>t.focus():()=>r?.blur()),kU(t??e.ownerDocument.body))}function $U(e){!$d(e)||$i(e.ownerDocument)!==e||kn(()=>e.blur())}var Sr={};Sr.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&ie(n,"label")&&n.control;if(o)return()=>{$d(o)&&Cr(o),r.dispatchEvent(o,FU(e))};if(ie(t,"input",{type:"file"}))return()=>{$U(t),t.dispatchEvent(new(Bt(t)).Event("fileDialog")),Cr(t)}};var $n=Symbol("Displayed value in UI"),Zt=Symbol("Displayed selection in UI"),ci=Symbol("Initial value to compare on blur");function UU(e){return typeof e=="object"&&$n in e}function HU(e){return!!e&&typeof e=="object"&&Zt in e}function VU(e,t){e[ci]===void 0&&(e[ci]=e.value),e[$n]=t,e.value=Object.assign(new String(t),{[$n]:!0})}function $t(e){return e[$n]===void 0?e.value:String(e[$n])}function Ud(e){e[$n]=void 0}function O_(e){e[ci]=void 0}function zU(e){return e[ci]}function GU(e,t){e[Zt]=t}function Yn(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=$t(e).length,a=d=>Math.max(0,Math.min(o,d)),i=n==="replace"||e[Zt]===void 0?a(r):e[Zt].anchorOffset,s=a(t),l=Math.min(i,s),c=Math.max(i,s);if(e[Zt]={anchorOffset:i,focusOffset:s},e.selectionStart===l&&e.selectionEnd===c)return;let u=Object.assign(new Number(l),{[Zt]:!0});try{e.setSelectionRange(u,c)}catch{}}function Lo(e){var t,r,n;let o=(n=e[Zt])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}function YU(e){return!!e[Zt]}function za(e){e[Zt]=void 0}var di=globalThis.parseInt;function WU(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=di(t[0],10),n=di(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,Tg(t,o)}return e.length===2?e:Tg(t,2)}function Tg(e,t){let r=e.slice(0,t),n=Math.min(di(r,10),23),o=e.slice(t),a=di(o,10),i=Math.min(a,59);return`${n.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function q_(e,t){let r=e.cloneNode();return r.value=t,r.value===t}function x_(e,t,r,n){if(Ga(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=Pg(e,t,r);if(o){if(Ga(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(ie(o,"br")){let a=Pg(o,void 0,r);return a?Ga(a)?{node:a,offset:r>0?0:a.nodeValue.length}:r<0&&ie(a,"br")?{node:o.parentNode,offset:Da(o)}:{node:a.parentNode,offset:Da(a)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:Da(o)}:void 0}else return{node:o.parentNode,offset:Da(o)+(r>0?1:0)}}}function Pg(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Hd(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),XU(e,r===1?"next":"previous",KU)}function KU(e){if(Ga(e))return!0;if(Hd(e)){if(ie(e,["input","textarea"]))return e.type!=="hidden";if(ie(e,"br"))return!0}return!1}function Da(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Hd(e){return e.nodeType===1}function Ga(e){return e.nodeType===3}function XU(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=JU(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Hd(e.parentNode)||!Wr(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function JU(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var Bo=Symbol("Track programmatic changes for React workaround");function QU(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Bt(e).REACT_VERSION===17}function ZU(e){QU(e)&&(e[Bo]={previousValue:String(e.value),tracked:[]})}function e4(e,t){var r,n;(n=e[Bo])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Bo]||(Ud(e),Yn(e,{focusOffset:t.length}))}function t4(e,t){var r;let n=e[Bo];if(e[Bo]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||Ud(e),YU(e)&&Yn(e,{focusOffset:o?t:e.value.length})}function M_(e){let t=r4(e);if(t&&kt(t))return{type:"input",selection:Lo(t)};let r=t?.ownerDocument.getSelection();return{type:Fo(e)&&r?.anchorNode&&Fo(r.anchorNode)?"contenteditable":"default",selection:r}}function r4(e){return e.nodeType===1?e:e.parentElement}function n4(e){let t=M_(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function Kr({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,a;if(M_(e).type==="input")return Yn(e,{anchorOffset:n,focusOffset:t});(a=r.ownerDocument)===null||a===void 0||(o=a.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}function N_(e){return ie(e,"input")&&["date","time"].includes(e.type)}function Un(e,t,r,n="insertText"){let o=n4(t);o&&(!N_(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?o4(e,t,o,r,n):a4(e,t,o,r,n)))}function o4(e,t,r,n,o){let a=!1;if(!r.collapsed)a=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let i=x_(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(i){a=!0;let s=r.cloneRange();s.comparePoint(i.node,i.offset)<0?s.setStart(i.node,i.offset):s.setEnd(i.node,i.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let i=r.endOffset;r.endContainer.insertData(i,n),r.setStart(r.endContainer,i+n.length),r.setEnd(r.endContainer,i+n.length)}else{let i=t.ownerDocument.createTextNode(n);r.insertNode(i),r.setStart(i,n.length),r.setEnd(i,n.length)}(a||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}function a4(e,t,r,n,o){let a=n;if(NU(t)){let c=MU(t);if(c!==void 0&&n.length>0){let u=c-t.value.length;if(u>0)a=n.substring(0,u);else return}}let{newValue:i,newOffset:s,oldValue:l}=i4(a,t,r,o);i===l&&s===r.startOffset&&s===r.endOffset||ie(t,"input",{type:"number"})&&!s4(i)||(VU(t,i),Kr({focusNode:t,anchorOffset:s,focusOffset:s}),N_(t)?q_(t,i)&&(Og(e,t,s,{}),e.dispatchUIEvent(t,"change"),O_(t)):Og(e,t,s,{data:n,inputType:o}))}function i4(e,t,{startOffset:r,endOffset:n},o){let a=$t(t),i=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),s=a.substring(0,i),l=Math.min(a.length,r===n&&o==="deleteContentForward"?r+1:n),c=a.substring(l,a.length),u=`${s}${e}${c}`,d=i+e.length;if(ie(t,"input",{type:"time"})){let m=WU(u);m!==""&&q_(t,m)&&(u=m,d=m.length)}return{oldValue:a,newValue:u,newOffset:d}}function Og(e,t,r,n){e.dispatchUIEvent(t,"input",n),t4(t,r)}function s4(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}Sr.cut=(e,t,r)=>()=>{Bn(t)&&Un(r,t,"","deleteByCut")};function l4(e){return e?Wr(e)?e.textContent:$t(e):null}function u4(e){let t=Bt(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function c4(e,t){let r=e.ownerDocument,n=r.querySelectorAll(C_),o=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||tr(l)));Number(e.getAttribute("tabindex"))>=0&&o.sort((l,c)=>{let u=Number(l.getAttribute("tabindex")),d=Number(c.getAttribute("tabindex"));return u===d?0:u===0?1:d===0?-1:u-d});let a={},i=[r.body],s=ie(e,"input",{type:"radio"})?e.name:void 0;o.forEach(l=>{let c=l;if(ie(c,"input",{type:"radio"})&&c.name){if(c===e){i.push(c);return}else if(c.name===s)return;if(c.checked){i=i.filter(u=>!ie(u,"input",{type:"radio",name:c.name})),i.push(c),a[c.name]=c;return}if(typeof a[c.name]<"u")return}i.push(c)});for(let l=i.findIndex(c=>c===e);;)if(l+=t?-1:1,l===i.length?l=0:l===-1&&(l=i.length-1),i[l]===e||i[l]===r.body||u4(i[l]))return i[l]}function qg(e,t){if(kt(e)){let r=Lo(e);Kr({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=x_(r.focusNode,r.focusOffset,t);n&&Kr({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function j_(e){if(kt(e))return Kr({focusNode:e,anchorOffset:0,focusOffset:$t(e).length});var t;let r=(t=Fo(e))!==null&&t!==void 0?t:e.ownerDocument.body;Kr({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function d4(e){if(kt(e))return Lo(e).startOffset===0&&Lo(e).endOffset===$t(e).length;var t;let r=(t=Fo(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function go(e,t,r){var n;if(kt(e))return Kr({focusNode:e,anchorOffset:t,focusOffset:r});if(Wr(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Kr({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function Fa(e,t,r){let n=Bt(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let a=o.findIndex(i=>i===t)+r;;a+=r){if(o[a]||(a=r>0?0:o.length-1),o[a]===t)return;tr(o[a])||(Cr(o[a]),e.dispatchUIEvent(o[a],"click"))}}Sr.keydown=(e,t,r)=>{var n,o;return(o=(n=xg[e.key])===null||n===void 0?void 0:n.call(xg,e,t,r))!==null&&o!==void 0?o:p4(e,t,r)};var xg={ArrowDown:(e,t,r)=>{if(ie(t,"input",{type:"radio"}))return()=>Fa(r,t,-1)},ArrowLeft:(e,t,r)=>ie(t,"input",{type:"radio"})?()=>Fa(r,t,-1):()=>qg(t,-1),ArrowRight:(e,t,r)=>ie(t,"input",{type:"radio"})?()=>Fa(r,t,1):()=>qg(t,1),ArrowUp:(e,t,r)=>{if(ie(t,"input",{type:"radio"}))return()=>Fa(r,t,1)},Backspace:(e,t,r)=>{if(Bn(t))return()=>{Un(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(Bn(t))return()=>{Un(r,t,"","deleteContentForward")}},End:(e,t)=>{if(ie(t,["input","textarea"])||Wr(t))return()=>{var r,n;let o=(n=(r=l4(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;go(t,o,o)}},Home:(e,t)=>{if(ie(t,["input","textarea"])||Wr(t))return()=>{go(t,0,0)}},PageDown:(e,t)=>{if(ie(t,["input"]))return()=>{let r=$t(t).length;go(t,r,r)}},PageUp:(e,t)=>{if(ie(t,["input"]))return()=>{go(t,0,0)}},Tab:(e,t,r)=>()=>{let n=c4(t,r.system.keyboard.modifiers.Shift);Cr(n),kt(n)&&Yn(n,{anchorOffset:0,focusOffset:n.value.length})}},p4=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>j_(t)};Sr.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ie(t,"button")||ie(t,"input")&&f4.includes(t.type)||ie(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(ie(t,"input")){let n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&m4.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Bn(t)){let n=e.key==="Enter"?Wr(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
461
|
+
`:e.key;return()=>Un(r,t,o,n)}};var f4=["button","color","file","image","reset","submit"],m4=["email","month","password","search","tel","text","url","week"];Sr.keyup=(e,t,r)=>{var n;return(n=Mg[e.key])===null||n===void 0?void 0:n.call(Mg,e,t,r)};var Mg={" ":(e,t,r)=>{if(b_(t))return()=>r.dispatchUIEvent(t,"click")}};Sr.paste=(e,t,r)=>{if(Bn(t))return()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&Un(r,t,o,"insertFromPaste")}};var I_={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function D_(e){return I_[e].EventType}var h4=["MouseEvent","PointerEvent"];function y4(e){return h4.includes(D_(e))}function b4(e){return D_(e)==="KeyboardEvent"}var g4={ClipboardEvent:[E4],Event:[],InputEvent:[La,_4],MouseEvent:[La,Ru,Ng],PointerEvent:[La,Ru,Ng,w4],KeyboardEvent:[La,Ru,R4]};function F_(e,t,r){let n=Bt(t),{EventType:o,defaultInit:a}=I_[e],i=new(v4(n))[o](e,a);return g4[o].forEach(s=>s(i,r??{})),i}function v4(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var a;let i=(a=e.ClipboardEvent)!==null&&a!==void 0?a:class extends r{};var s;let l=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var c;let u=(c=e.ProgressEvent)!==null&&c!==void 0?c:class extends r{};var d;let m=(d=e.TransitionEvent)!==null&&d!==void 0?d:class extends r{};var p;let h=(p=e.UIEvent)!==null&&p!==void 0?p:class extends r{};var g;let y=(g=e.CompositionEvent)!==null&&g!==void 0?g:class extends h{};var b;let v=(b=e.FocusEvent)!==null&&b!==void 0?b:class extends h{};var C;let S=(C=e.InputEvent)!==null&&C!==void 0?C:class extends h{};var A;let _=(A=e.KeyboardEvent)!==null&&A!==void 0?A:class extends h{};var E;let R=(E=e.MouseEvent)!==null&&E!==void 0?E:class extends h{};var P;let N=(P=e.DragEvent)!==null&&P!==void 0?P:class extends R{};var B;let j=(B=e.PointerEvent)!==null&&B!==void 0?B:class extends R{};var F;let T=(F=e.TouchEvent)!==null&&F!==void 0?F:class extends h{};return{Event:r,AnimationEvent:o,ClipboardEvent:i,PopStateEvent:l,ProgressEvent:u,TransitionEvent:m,UIEvent:h,CompositionEvent:y,FocusEvent:v,InputEvent:S,KeyboardEvent:_,MouseEvent:R,DragEvent:N,PointerEvent:j,TouchEvent:T}}function Zr(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function He(e){return Number(e??0)}function E4(e,{clipboardData:t}){Zr(e,{clipboardData:t})}function _4(e,{data:t,inputType:r,isComposing:n}){Zr(e,{data:t,isComposing:!!n,inputType:String(r)})}function La(e,{view:t,detail:r}){Zr(e,{view:t,detail:He(r??0)})}function Ru(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:a,modifierCapsLock:i,modifierFn:s,modifierFnLock:l,modifierNumLock:c,modifierScrollLock:u,modifierSymbol:d,modifierSymbolLock:m}){Zr(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(p){return!!{Alt:t,AltGraph:a,CapsLock:i,Control:r,Fn:s,FnLock:l,Meta:n,NumLock:c,ScrollLock:u,Shift:o,Symbol:d,SymbolLock:m}[p]}})}function R4(e,{key:t,code:r,location:n,repeat:o,isComposing:a,charCode:i}){Zr(e,{key:String(t),code:String(r),location:He(n),repeat:!!o,isComposing:!!a,charCode:i})}function Ng(e,{x:t,y:r,screenX:n,screenY:o,clientX:a=t,clientY:i=r,button:s,buttons:l,relatedTarget:c}){Zr(e,{screenX:He(n),screenY:He(o),clientX:He(a),x:He(a),clientY:He(i),y:He(i),button:He(s),buttons:He(l),relatedTarget:c})}function w4(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:a,tiltX:i,tiltY:s,twist:l,pointerType:c,isPrimary:u}){Zr(e,{pointerId:He(t),width:He(r),height:He(n),pressure:He(o),tangentialPressure:He(a),tiltX:He(i),tiltY:He(s),twist:He(l),pointerType:String(c),isPrimary:!!u})}function C4(e,t,r,n=!1){(y4(t)||b4(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=F_(t,e,r);return L_.call(this,e,o,n)}function L_(e,t,r=!1){var n;let o=t.type,a=r?()=>{}:(n=Sr[o])===null||n===void 0?void 0:n.call(Sr,t,e,this);if(a){t.preventDefault();let i=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>i}),Object.defineProperty(t,"preventDefault",{value:()=>{i=t.cancelable}}),kn(()=>e.dispatchEvent(t)),i||a(),!i}return kn(()=>e.dispatchEvent(t))}function S4(e,t,r){let n=F_(t,e,r);kn(()=>e.dispatchEvent(n))}var wu=Symbol("Interceptor for programmatical calls");function An(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),a=n?.set?"set":"value";if(typeof n?.[a]!="function"||n[a][wu])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function i(...s){let{applyNative:l=!1,realArgs:c,then:u}=r.call(this,...s),d=(!l&&o||n)[a];a==="set"?d.call(this,c):d.call(this,...c),u?.()}i[wu]=wu,Object.defineProperty(e,t,{...o??n,[a]:i})}function A4(e){An(e,"value",function(t){let r=UU(t);return r&&ZU(this),{applyNative:!!r,realArgs:T4(this,t),then:r?void 0:()=>e4(this,String(t))}})}function T4(e,t){return ie(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function P4(e){An(e,"setSelectionRange",function(t,...r){let n=HU(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:za(e)}}),An(e,"selectionStart",function(t){return{realArgs:t,then:()=>za(e)}}),An(e,"selectionEnd",function(t){return{realArgs:t,then:()=>za(e)}}),An(e,"select",function(){return{realArgs:[],then:()=>GU(e,{anchorOffset:0,focusOffset:$t(e).length})}})}function O4(e){An(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{Ud(e),za(e)}}})}var qn=Symbol("Node prepared with document state workarounds");function B_(e){e[qn]||(e.addEventListener("focus",t=>{let r=t.target;jg(r)},{capture:!0,passive:!0}),e.activeElement&&jg(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=zU(r);n!==void 0&&(r.value!==n&&S4(r,"change"),O_(r))},{capture:!0,passive:!0}),e[qn]=qn)}function jg(e){e[qn]||(ie(e,["input","textarea"])&&(A4(e),P4(e),O4(e)),e[qn]=qn)}function q4(e){return x4(e)?e:e.ownerDocument}function x4(e){return e.nodeType===9}function Hn(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}function En(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Et;(function(e){e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD"})(Et||(Et={}));var M4=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Ig(e){return M4.includes(e)}var N4=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Dg(e){return N4.includes(e)}var j4=class{isKeyPressed(e){return!!this.pressed[String(e.code)]}getPressedKeys(){return Object.values(this.pressed).map(e=>e.keyDef)}async keydown(e,t){var r,n,o;let a=String(t.key),i=String(t.code),s=_u(e.config.document);this.setKeydownTarget(s);var l;(l=(r=this.pressed)[n=i])!==null&&l!==void 0||(r[n]={keyDef:t,unpreventedDefault:!1}),Ig(a)&&(this.modifiers[a]=!0);let c=e.dispatchUIEvent(s,"keydown",{key:a,code:i});Dg(a)&&!this.modifiers[a]&&(this.modifiers[a]=!0,this.modifierLockStart[a]=!0),(o=this.pressed[i]).unpreventedDefault||(o.unpreventedDefault=c),c&&this.hasKeyPress(a)&&e.dispatchUIEvent(_u(e.config.document),"keypress",{key:a,code:i,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),o=this.pressed[n].unpreventedDefault;delete this.pressed[n],Ig(r)&&!Object.values(this.pressed).find(a=>a.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(_u(e.config.document),"keyup",{key:r,code:n},!o),Dg(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){En(this,"system",void 0),En(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),En(this,"pressed",{}),En(this,"carryChar",""),En(this,"lastKeydownTarget",void 0),En(this,"modifierLockStart",{}),this.system=e}},I4=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:Et.LEFT},{code:"AltRight",key:"Alt",location:Et.RIGHT},{code:"ShiftLeft",key:"Shift",location:Et.LEFT},{code:"ShiftRight",key:"Shift",location:Et.RIGHT},{code:"ControlLeft",key:"Control",location:Et.LEFT},{code:"ControlRight",key:"Control",location:Et.RIGHT},{code:"MetaLeft",key:"Meta",location:Et.LEFT},{code:"MetaRight",key:"Meta",location:Et.RIGHT},{code:"OSLeft",key:"OS",location:Et.LEFT},{code:"OSRight",key:"OS",location:Et.RIGHT},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],D4=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function F4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k_=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=gc(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=gc(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){F4(this,"pressed",{})}},Fg={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function gc(e=0){return e in Fg?Fg[e]:Number(e)}var Lg={1:2,2:1};function Bg(e){return e=gc(e),e in Lg?Lg[e]:e}function L4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B4=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){L4(this,"pressedKeys",new Set)}};function wo(e,t){let r=[];for(let a=e;a;a=a.parentElement)r.push(a);let n=[];for(let a=t;a;a=a.parentElement)n.push(a);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return[r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}function vc({target:e,node:t,offset:r}){return kt(e)?{node:e,offset:r??$t(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:$_(e,r)}function $_(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let a=e.childNodes.item(n),i=String(a.textContent);if(i.length)if(t!==void 0&&i.length<t)t-=i.length;else{if(a.nodeType===1)return $_(a,t,!1);if(a.nodeType===3)return{node:a,offset:t??a.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}function k4({document:e,target:t,clickCount:r,node:n,offset:o}){if(BU(t))return;let a=kt(t),i=String(a?$t(t):t.textContent),[s,l]=n?[o,o]:$4(i,o,r);if(a)return Yn(t,{anchorOffset:s??i.length,focusOffset:l??i.length}),{node:t,start:s??0,end:l??i.length};{let{node:c,offset:u}=vc({target:t,node:n,offset:s}),{node:d,offset:m}=vc({target:t,node:n,offset:l}),p=t.ownerDocument.createRange();try{p.setStart(c,u),p.setEnd(d,m)}catch{throw new Error("The given offset is out of bounds.")}let h=e.getSelection();return h?.removeAllRanges(),h?.addRange(p.cloneRange()),p}}function $4(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function U4(e,{document:t,target:r,node:n,offset:o}){let a=vc({target:r,node:n,offset:o});if("node"in e){if(a.node===e.node){let i=a.offset<e.start?e.end:e.start,s=a.offset>e.end||a.offset<e.start?a.offset:e.end;Yn(e.node,{anchorOffset:i,focusOffset:s})}}else{let i=e.cloneRange(),s=i.comparePoint(a.node,a.offset);s<0?i.setStart(a.node,a.offset):s>0&&i.setEnd(a.node,a.offset);let l=t.getSelection();l?.removeAllRanges(),l?.addRange(i.cloneRange())}}function U_(e,t){var r,n,o,a,i,s,l,c;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.y)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((a=t.coords)===null||a===void 0?void 0:a.y)||((i=e.caret)===null||i===void 0?void 0:i.node)!==((s=t.caret)===null||s===void 0?void 0:s.node)||((l=e.caret)===null||l===void 0?void 0:l.offset)!==((c=t.caret)===null||c===void 0?void 0:c.offset)}function $r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H4=class{move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!U_(r,t))return;let o=this.getTarget(e),a=this.getEventInit("mousemove"),[i,s]=wo(n,o);return{leave:()=>{n!==o&&(e.dispatchUIEvent(n,"mouseout",a),i.forEach(l=>e.dispatchUIEvent(l,"mouseleave",a)))},enter:()=>{n!==o&&(e.dispatchUIEvent(o,"mouseover",a),s.forEach(l=>e.dispatchUIEvent(l,"mouseenter",a)))},move:()=>{e.dispatchUIEvent(o,"mousemove",a),this.modifySelecting(e)}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[n]=o;let a=tr(o),i=this.getEventInit("mousedown",t.button);(a||e.dispatchUIEvent(o,"mousedown",i))&&(this.startSelecting(e,i.detail),Cr(o)),!a&&Bg(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button,r))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let o=this.getTarget(e);if(!tr(o)){e.dispatchUIEvent(o,"mouseup",this.getEventInit("mouseup",t.button)),this.endSelecting();let a=wo(this.buttonDownTarget[n],o)[2][0];if(a){let i=this.getEventInit("click",t.button,r);i.detail&&(e.dispatchUIEvent(a,i.button===0?"click":"auxclick",i),i.button===0&&i.detail===2&&e.dispatchUIEvent(a,"dblclick",{...this.getEventInit("dblclick",t.button),detail:i.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t,r){let n={...this.position.coords};return r&&(n.pointerId=r.pointerId,n.pointerType=r.pointerType,n.isPrimary=r.isPrimary),n.button=Bg(t),n.buttons=this.buttons.getButtons(),e==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):e==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(e==="click"||e==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=k4({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&U4(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){$r(this,"position",{}),$r(this,"buttons",new k_),$r(this,"selecting",void 0),$r(this,"buttonDownTarget",{}),$r(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){$r(this,"down",{}),$r(this,"count",{})}})}};function pi(e,t){var r;return((r=H_(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function V4(e){let t=Bt(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}var kg=Symbol("Last check for pointer-events");function H_(e,t){let r=t[kg];if(!(e.config.pointerEventsCheck!==On.Never&&(!r||$g(e.config.pointerEventsCheck,On.EachApiCall)&&r[at.Call]!==Ia(e,at.Call)||$g(e.config.pointerEventsCheck,On.EachTrigger)&&r[at.Trigger]!==Ia(e,at.Trigger))))return r?.result;let n=V4(t);return t[kg]={[at.Call]:Ia(e,at.Call),[at.Trigger]:Ia(e,at.Trigger),result:n},n}function vo(e,t){let r=H_(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",z4(r.tree)].join(`
|
|
462
462
|
`))}function z4(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,G4(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
|
|
463
|
-
`)}function G4(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim()}else if(ie(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(i=>{var s;return(s=i.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(ie(e,"button")){var a;r=(a=e.textContent)===null||a===void 0?void 0:a.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}\u2026`),r?`(label=${r})`:""}function kg(e,t){return(e&t)>0}function yr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $g=class{init(e,t){this.position=t;let r=this.getTarget(e),[,n]=wo(null,r),o=this.getEventInit();return vo(e,r),e.dispatchUIEvent(r,"pointerover",o),n.forEach(a=>e.dispatchUIEvent(a,"pointerenter",o)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!$_(r,t))return;let o=this.getTarget(e),a=this.getEventInit(),[i,s]=wo(n,o);return{leave:()=>{pi(e,n)&&n!==o&&(e.dispatchUIEvent(n,"pointerout",a),i.forEach(l=>e.dispatchUIEvent(l,"pointerleave",a)))},enter:()=>{vo(e,o),n!==o&&(e.dispatchUIEvent(o,"pointerover",a),s.forEach(l=>e.dispatchUIEvent(l,"pointerenter",a)))},move:()=>{e.dispatchUIEvent(o,"pointermove",a)}}}down(e,t){if(this.isDown)return;let r=this.getTarget(e);vo(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit())}up(e,t){if(!this.isDown)return;let r=this.getTarget(e);vo(e,r),this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit())}release(e){let t=this.getTarget(e),[r]=wo(t,null),n=this.getEventInit();pi(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId:e,pointerType:t,isPrimary:r}){yr(this,"pointerId",void 0),yr(this,"pointerType",void 0),yr(this,"isPrimary",void 0),yr(this,"isMultitouch",!1),yr(this,"isCancelled",!1),yr(this,"isDown",!1),yr(this,"isPrevented",!1),yr(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r}};function br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Y4=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){let n=this.getPointerName(t),o=t.pointerType==="touch"?this.pointers.new(n,t).init(e,r):this.pointers.get(n);o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t),o.down(e,t),o.pointerType!=="touch"&&!o.isPrevented&&this.mouse.down(e,t,o)}async move(e,t,r){let n=this.pointers.get(t),o=n.move(e,r),a=n.pointerType==="touch"||n.isPrevented&&n.isDown?void 0:this.mouse.move(e,r);o?.leave(),a?.leave(),o?.enter(),a?.enter(),o?.move(),a?.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let o=this.pointers.get(this.getPointerName(t));if(o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&o.up(e,t),o.pointerType==="touch"&&o.release(e),!o.isPrevented){if(o.pointerType==="touch"&&!o.isMultitouch){let a=this.mouse.move(e,o.position);a?.leave(),a?.enter(),a?.move(),this.mouse.down(e,t,o)}if(!o.isMultitouch){let a=this.mouse.move(e,o.position);a?.leave(),a?.enter(),a?.move(),this.mouse.up(e,t,o)}}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){br(this,"system",void 0),br(this,"mouse",void 0),br(this,"buttons",void 0),br(this,"devices",new class{get(t){var r,n,o;return(o=(r=this.registry)[n=t])!==null&&o!==void 0||(r[n]=new B4),this.registry[t]}constructor(){br(this,"registry",{})}}),br(this,"pointers",new class{new(t,r){let n=r.pointerType!=="touch"||!Object.values(this.registry).some(o=>o.pointerType==="touch"&&!o.isCancelled);return n||Object.values(this.registry).forEach(o=>{o.pointerType===r.pointerType&&!o.isCancelled&&(o.isMultitouch=!0)}),this.registry[t]=new $g({pointerId:this.nextId++,pointerType:r.pointerType,isPrimary:n}),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){br(this,"registry",{mouse:new $g({pointerId:1,pointerType:"mouse",isPrimary:!0})}),br(this,"nextId",2)}}),this.system=e,this.buttons=new B_,this.mouse=new H4}};function Ug(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H_=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){Ug(this,"keyboard",new j4(this)),Ug(this,"pointer",new Y4(this))}};async function W4(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function K4(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function X4(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function J4(e){return this.pointer({target:e})}async function Q4(e){return vo(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Z4({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}function e9(e,t){let r=[];do{let{type:o,descriptor:a,consumedLength:i,releasePrevious:s,releaseSelf:l=!0,repeat:c}=C_(t,"keyboard");var n;let u=(n=e.find(d=>{if(o==="["){var m;return((m=d.code)===null||m===void 0?void 0:m.toLowerCase())===a.toLowerCase()}else if(o==="{"){var p;return((p=d.key)===null||p===void 0?void 0:p.toLowerCase())===a.toLowerCase()}return d.key===a}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:a};r.push({keyDef:u,releasePrevious:s,releaseSelf:l,repeat:c}),t=t.slice(i)}while(t);return r}async function t9(e){let t=e9(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Hn(this.config),await r9(this,t[r])}async function r9(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){let{system:a}=e;if(a.keyboard.isKeyPressed(t)&&await a.keyboard.keyup(e,t),!r){for(let i=1;i<=o;i++)await a.keyboard.keydown(e,t),i<o&&await Hn(e.config);n&&await a.keyboard.keyup(e,t)}}async function n9(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function V_(e){let t=kt(e)?{"text/plain":o9(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Bd(Bt(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function o9(e){let t=Lo(e);return $t(e).substring(t.startOffset,t.endOffset)}async function a9(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=V_(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await __(e,n),n}async function i9(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=V_(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await __(r.ownerDocument,n),n}async function s9(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;let a=(o=typeof e=="string"?l9(t,e):e)!==null&&o!==void 0?o:await qU(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:a})}function l9(e,t){let r=Bd(Bt(e));return r.setData("text",t),r}function Hg(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:a,releaseSelf:i=!0}=C_(t,"pointer"),s=e.find(l=>l.name===n);s&&r.push({keyDef:s,releasePrevious:a,releaseSelf:i}),t=t.slice(o)}while(t);return r}async function u9(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...Hg(t,n)):"keys"in n?r.push(...Hg(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Hn(this.config),await c9(this,r[n]);this.system.pointer.resetClickCount()}async function c9(e,t){var r,n;let o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",a=e.system.pointer.getPreviousPosition(o);var i,s,l,c;let u={target:(i=t.target)!==null&&i!==void 0?i:d9(e,a),coords:(s=t.coords)!==null&&s!==void 0?s:a?.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:Vg(t)||a==null||(r=a.caret)===null||r===void 0?void 0:r.node,offset:(c=t.offset)!==null&&c!==void 0?c:Vg(t)||a==null||(n=a.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(bo(e,at.Trigger),await e.system.pointer.release(e,t.keyDef,u)),t.releasePrevious||(bo(e,at.Trigger),await e.system.pointer.press(e,t.keyDef,u),t.releaseSelf&&(bo(e,at.Trigger),await e.system.pointer.release(e,t.keyDef,u)))):(bo(e,at.Trigger),await e.system.pointer.move(e,o,u))}function Vg(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function d9(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function p9(e){if(!Bn(e)||tr(e))throw new Error("clear()` is only supported on editable elements.");if(Cr(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(N_(e),!d4(e))throw new Error("The element content to be cleared could not be selected.");Un(this,e,"","deleteContentBackward")}async function f9(e,t){return z_.call(this,!0,e,t)}async function m9(e,t){return z_.call(this,!1,e,t)}async function z_(e,t,r){if(!e&&!t.multiple)throw ce().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),a=n.map(s=>{if(typeof s!="string"&&o.includes(s))return s;{let l=o.find(c=>c.value===s||c.innerHTML===s);if(l)return l;throw ce().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!tr(s));if(tr(t)||!a.length)return;let i=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(ie(t,"select"))if(t.multiple)for(let s of a){let l=this.config.pointerEventsCheck===0?!0:pi(this,s);l&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),Cr(t),l&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),i(s),l&&this.dispatchUIEvent(s,"click"),await Hn(this.config)}else if(a.length===1){let s=this.config.pointerEventsCheck===0?!0:pi(this,t);s?await this.click(t):Cr(t),i(a[0]),s&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await Hn(this.config)}else throw ce().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let s of a)await this.click(s),await this.unhover(s);else throw ce().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function h9(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:a}={}){e.disabled||(r||await this.click(e),o!==void 0&&go(e,o,a??o),await this.keyboard(t),n||await n9(this))}var zg=Symbol("files and value properties are mocked");function Cu(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function y9(e,t){var r;(r=e[zg])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),a=Object.getOwnPropertyDescriptor(e,"files");function i(){Cu(e,"type",n),Cu(e,"value",o),Cu(e,"files",a)}e[zg]={restore:i},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")i();else{var l;o==null||(l=o.set)===null||l===void 0||l.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(i(),e.type=s)}}})}async function b9(e,t){let r=ie(e,"label")?e.control:e;if(!r||!ie(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(tr(e))return;let n=(Array.isArray(t)?t:[t]).filter(a=>!this.config.applyAccept||g9(a,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var a;n.length===((a=r.files)===null||a===void 0?void 0:a.length)&&n.every((i,s)=>{var l;return i===((l=r.files)===null||l===void 0?void 0:l.item(s))})||(y9(r,Ld(Bt(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function g9(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return t.split(",").some(n=>n.startsWith(".")?e.name.endsWith(n):r.includes(n)?e.type.startsWith(n.substr(0,n.length-1)):e.type===n)}var Gg={click:W4,dblClick:K4,tripleClick:X4,hover:J4,unhover:Q4,tab:Z4,keyboard:t9,copy:a9,cut:i9,paste:s9,pointer:u9,clear:p9,deselectOptions:m9,selectOptions:f9,type:h9,upload:b9};function v9(e){return ce().asyncWrapper(e)}var G_={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:I4,pointerMap:D4,pointerEventsCheck:On.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},E9={...G_,writeToClipboard:!0};function Y_(e={},t=E9,r){let n=C9(e,r,t);return{...t,...e,document:n}}function _9(e={}){let t=Y_(e);L_(t.document);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return TU(n),Vd(t).api}function ot({keyboardState:e,pointerState:t,...r}={},n){let o=Y_(r,G_,n);L_(o.document);var a;let i=(a=t??e)!==null&&a!==void 0?a:new H_;return{api:Vd(o,i).api,system:i}}function R9(e){return Vd({...this.config,...e},this.system).api}function w9(e,t){function r(...n){return bo(e,at.Call),v9(()=>t.apply(e,n).then(async o=>(await Hn(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Vd(e,t=new H_){let r={};return Object.assign(r,{config:e,dispatchEvent:F_.bind(r),dispatchUIEvent:C4.bind(r),system:t,levelRefs:{},...Gg}),{instance:r,api:{...Object.fromEntries(Object.entries(Gg).map(([n,o])=>[n,w9(r,o)])),setup:R9.bind(r)}}}function C9(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&q4(t))!==null&&o!==void 0?o:r.document}var W_={};wc(W_,{clear:()=>S9,click:()=>A9,copy:()=>T9,cut:()=>P9,dblClick:()=>O9,deselectOptions:()=>q9,hover:()=>x9,keyboard:()=>M9,paste:()=>j9,pointer:()=>N9,selectOptions:()=>I9,tab:()=>k9,tripleClick:()=>D9,type:()=>F9,unhover:()=>L9,upload:()=>B9});function S9(e){return ot().api.clear(e)}function A9(e,t={}){return ot(t,e).api.click(e)}function T9(e={}){return ot(e).api.copy()}function P9(e={}){return ot(e).api.cut()}function O9(e,t={}){return ot(t).api.dblClick(e)}function q9(e,t,r={}){return ot(r).api.deselectOptions(e,t)}function x9(e,t={}){return ot(t).api.hover(e)}async function M9(e,t={}){let{api:r,system:n}=ot(t);return r.keyboard(e).then(()=>n)}async function N9(e,t={}){let{api:r,system:n}=ot(t);return r.pointer(e).then(()=>n)}function j9(e,t){return ot(t).api.paste(e)}function I9(e,t,r={}){return ot(r).api.selectOptions(e,t)}function D9(e,t={}){return ot(t).api.tripleClick(e)}function F9(e,t,r={}){return ot(r,e).api.type(e,t,r)}function L9(e,t={}){let{api:r,system:n}=ot(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function B9(e,t,r={}){return ot(r).api.upload(e,t)}function k9(e={}){return ot().api.tab(e)}var $9={...W_,setup:_9};function U9(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var d,m;return(m=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&m!==void 0?m:0})):s},[]);if(o.length){var a=new RegExp(`
|
|
463
|
+
`)}function G4(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim()}else if(ie(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(i=>{var s;return(s=i.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(ie(e,"button")){var a;r=(a=e.textContent)===null||a===void 0?void 0:a.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}\u2026`),r?`(label=${r})`:""}function $g(e,t){return(e&t)>0}function yr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ug=class{init(e,t){this.position=t;let r=this.getTarget(e),[,n]=wo(null,r),o=this.getEventInit();return vo(e,r),e.dispatchUIEvent(r,"pointerover",o),n.forEach(a=>e.dispatchUIEvent(a,"pointerenter",o)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!U_(r,t))return;let o=this.getTarget(e),a=this.getEventInit(),[i,s]=wo(n,o);return{leave:()=>{pi(e,n)&&n!==o&&(e.dispatchUIEvent(n,"pointerout",a),i.forEach(l=>e.dispatchUIEvent(l,"pointerleave",a)))},enter:()=>{vo(e,o),n!==o&&(e.dispatchUIEvent(o,"pointerover",a),s.forEach(l=>e.dispatchUIEvent(l,"pointerenter",a)))},move:()=>{e.dispatchUIEvent(o,"pointermove",a)}}}down(e,t){if(this.isDown)return;let r=this.getTarget(e);vo(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit())}up(e,t){if(!this.isDown)return;let r=this.getTarget(e);vo(e,r),this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit())}release(e){let t=this.getTarget(e),[r]=wo(t,null),n=this.getEventInit();pi(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId:e,pointerType:t,isPrimary:r}){yr(this,"pointerId",void 0),yr(this,"pointerType",void 0),yr(this,"isPrimary",void 0),yr(this,"isMultitouch",!1),yr(this,"isCancelled",!1),yr(this,"isDown",!1),yr(this,"isPrevented",!1),yr(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r}};function br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Y4=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){let n=this.getPointerName(t),o=t.pointerType==="touch"?this.pointers.new(n,t).init(e,r):this.pointers.get(n);o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t),o.down(e,t),o.pointerType!=="touch"&&!o.isPrevented&&this.mouse.down(e,t,o)}async move(e,t,r){let n=this.pointers.get(t),o=n.move(e,r),a=n.pointerType==="touch"||n.isPrevented&&n.isDown?void 0:this.mouse.move(e,r);o?.leave(),a?.leave(),o?.enter(),a?.enter(),o?.move(),a?.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let o=this.pointers.get(this.getPointerName(t));if(o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&o.up(e,t),o.pointerType==="touch"&&o.release(e),!o.isPrevented){if(o.pointerType==="touch"&&!o.isMultitouch){let a=this.mouse.move(e,o.position);a?.leave(),a?.enter(),a?.move(),this.mouse.down(e,t,o)}if(!o.isMultitouch){let a=this.mouse.move(e,o.position);a?.leave(),a?.enter(),a?.move(),this.mouse.up(e,t,o)}}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){br(this,"system",void 0),br(this,"mouse",void 0),br(this,"buttons",void 0),br(this,"devices",new class{get(t){var r,n,o;return(o=(r=this.registry)[n=t])!==null&&o!==void 0||(r[n]=new B4),this.registry[t]}constructor(){br(this,"registry",{})}}),br(this,"pointers",new class{new(t,r){let n=r.pointerType!=="touch"||!Object.values(this.registry).some(o=>o.pointerType==="touch"&&!o.isCancelled);return n||Object.values(this.registry).forEach(o=>{o.pointerType===r.pointerType&&!o.isCancelled&&(o.isMultitouch=!0)}),this.registry[t]=new Ug({pointerId:this.nextId++,pointerType:r.pointerType,isPrimary:n}),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){br(this,"registry",{mouse:new Ug({pointerId:1,pointerType:"mouse",isPrimary:!0})}),br(this,"nextId",2)}}),this.system=e,this.buttons=new k_,this.mouse=new H4}};function Hg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var V_=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){Hg(this,"keyboard",new j4(this)),Hg(this,"pointer",new Y4(this))}};async function W4(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function K4(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function X4(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function J4(e){return this.pointer({target:e})}async function Q4(e){return vo(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Z4({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}function e9(e,t){let r=[];do{let{type:o,descriptor:a,consumedLength:i,releasePrevious:s,releaseSelf:l=!0,repeat:c}=S_(t,"keyboard");var n;let u=(n=e.find(d=>{if(o==="["){var m;return((m=d.code)===null||m===void 0?void 0:m.toLowerCase())===a.toLowerCase()}else if(o==="{"){var p;return((p=d.key)===null||p===void 0?void 0:p.toLowerCase())===a.toLowerCase()}return d.key===a}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:a};r.push({keyDef:u,releasePrevious:s,releaseSelf:l,repeat:c}),t=t.slice(i)}while(t);return r}async function t9(e){let t=e9(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Hn(this.config),await r9(this,t[r])}async function r9(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){let{system:a}=e;if(a.keyboard.isKeyPressed(t)&&await a.keyboard.keyup(e,t),!r){for(let i=1;i<=o;i++)await a.keyboard.keydown(e,t),i<o&&await Hn(e.config);n&&await a.keyboard.keyup(e,t)}}async function n9(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function z_(e){let t=kt(e)?{"text/plain":o9(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Bd(Bt(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function o9(e){let t=Lo(e);return $t(e).substring(t.startOffset,t.endOffset)}async function a9(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=z_(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await R_(e,n),n}async function i9(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=z_(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await R_(r.ownerDocument,n),n}async function s9(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;let a=(o=typeof e=="string"?l9(t,e):e)!==null&&o!==void 0?o:await qU(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:a})}function l9(e,t){let r=Bd(Bt(e));return r.setData("text",t),r}function Vg(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:a,releaseSelf:i=!0}=S_(t,"pointer"),s=e.find(l=>l.name===n);s&&r.push({keyDef:s,releasePrevious:a,releaseSelf:i}),t=t.slice(o)}while(t);return r}async function u9(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...Vg(t,n)):"keys"in n?r.push(...Vg(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Hn(this.config),await c9(this,r[n]);this.system.pointer.resetClickCount()}async function c9(e,t){var r,n;let o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",a=e.system.pointer.getPreviousPosition(o);var i,s,l,c;let u={target:(i=t.target)!==null&&i!==void 0?i:d9(e,a),coords:(s=t.coords)!==null&&s!==void 0?s:a?.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:zg(t)||a==null||(r=a.caret)===null||r===void 0?void 0:r.node,offset:(c=t.offset)!==null&&c!==void 0?c:zg(t)||a==null||(n=a.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(bo(e,at.Trigger),await e.system.pointer.release(e,t.keyDef,u)),t.releasePrevious||(bo(e,at.Trigger),await e.system.pointer.press(e,t.keyDef,u),t.releaseSelf&&(bo(e,at.Trigger),await e.system.pointer.release(e,t.keyDef,u)))):(bo(e,at.Trigger),await e.system.pointer.move(e,o,u))}function zg(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function d9(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function p9(e){if(!Bn(e)||tr(e))throw new Error("clear()` is only supported on editable elements.");if(Cr(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(j_(e),!d4(e))throw new Error("The element content to be cleared could not be selected.");Un(this,e,"","deleteContentBackward")}async function f9(e,t){return G_.call(this,!0,e,t)}async function m9(e,t){return G_.call(this,!1,e,t)}async function G_(e,t,r){if(!e&&!t.multiple)throw ce().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),a=n.map(s=>{if(typeof s!="string"&&o.includes(s))return s;{let l=o.find(c=>c.value===s||c.innerHTML===s);if(l)return l;throw ce().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!tr(s));if(tr(t)||!a.length)return;let i=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(ie(t,"select"))if(t.multiple)for(let s of a){let l=this.config.pointerEventsCheck===0?!0:pi(this,s);l&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),Cr(t),l&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),i(s),l&&this.dispatchUIEvent(s,"click"),await Hn(this.config)}else if(a.length===1){let s=this.config.pointerEventsCheck===0?!0:pi(this,t);s?await this.click(t):Cr(t),i(a[0]),s&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await Hn(this.config)}else throw ce().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let s of a)await this.click(s),await this.unhover(s);else throw ce().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function h9(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:a}={}){e.disabled||(r||await this.click(e),o!==void 0&&go(e,o,a??o),await this.keyboard(t),n||await n9(this))}var Gg=Symbol("files and value properties are mocked");function Cu(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function y9(e,t){var r;(r=e[Gg])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),a=Object.getOwnPropertyDescriptor(e,"files");function i(){Cu(e,"type",n),Cu(e,"value",o),Cu(e,"files",a)}e[Gg]={restore:i},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")i();else{var l;o==null||(l=o.set)===null||l===void 0||l.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(i(),e.type=s)}}})}async function b9(e,t){let r=ie(e,"label")?e.control:e;if(!r||!ie(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(tr(e))return;let n=(Array.isArray(t)?t:[t]).filter(a=>!this.config.applyAccept||g9(a,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var a;n.length===((a=r.files)===null||a===void 0?void 0:a.length)&&n.every((i,s)=>{var l;return i===((l=r.files)===null||l===void 0?void 0:l.item(s))})||(y9(r,Ld(Bt(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function g9(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return t.split(",").some(n=>n.startsWith(".")?e.name.endsWith(n):r.includes(n)?e.type.startsWith(n.substr(0,n.length-1)):e.type===n)}var Yg={click:W4,dblClick:K4,tripleClick:X4,hover:J4,unhover:Q4,tab:Z4,keyboard:t9,copy:a9,cut:i9,paste:s9,pointer:u9,clear:p9,deselectOptions:m9,selectOptions:f9,type:h9,upload:b9};function v9(e){return ce().asyncWrapper(e)}var Y_={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:I4,pointerMap:D4,pointerEventsCheck:On.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},E9={...Y_,writeToClipboard:!0};function W_(e={},t=E9,r){let n=C9(e,r,t);return{...t,...e,document:n}}function _9(e={}){let t=W_(e);B_(t.document);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return TU(n),Vd(t).api}function ot({keyboardState:e,pointerState:t,...r}={},n){let o=W_(r,Y_,n);B_(o.document);var a;let i=(a=t??e)!==null&&a!==void 0?a:new V_;return{api:Vd(o,i).api,system:i}}function R9(e){return Vd({...this.config,...e},this.system).api}function w9(e,t){function r(...n){return bo(e,at.Call),v9(()=>t.apply(e,n).then(async o=>(await Hn(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Vd(e,t=new V_){let r={};return Object.assign(r,{config:e,dispatchEvent:L_.bind(r),dispatchUIEvent:C4.bind(r),system:t,levelRefs:{},...Yg}),{instance:r,api:{...Object.fromEntries(Object.entries(Yg).map(([n,o])=>[n,w9(r,o)])),setup:R9.bind(r)}}}function C9(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&q4(t))!==null&&o!==void 0?o:r.document}var K_={};wc(K_,{clear:()=>S9,click:()=>A9,copy:()=>T9,cut:()=>P9,dblClick:()=>O9,deselectOptions:()=>q9,hover:()=>x9,keyboard:()=>M9,paste:()=>j9,pointer:()=>N9,selectOptions:()=>I9,tab:()=>k9,tripleClick:()=>D9,type:()=>F9,unhover:()=>L9,upload:()=>B9});function S9(e){return ot().api.clear(e)}function A9(e,t={}){return ot(t,e).api.click(e)}function T9(e={}){return ot(e).api.copy()}function P9(e={}){return ot(e).api.cut()}function O9(e,t={}){return ot(t).api.dblClick(e)}function q9(e,t,r={}){return ot(r).api.deselectOptions(e,t)}function x9(e,t={}){return ot(t).api.hover(e)}async function M9(e,t={}){let{api:r,system:n}=ot(t);return r.keyboard(e).then(()=>n)}async function N9(e,t={}){let{api:r,system:n}=ot(t);return r.pointer(e).then(()=>n)}function j9(e,t){return ot(t).api.paste(e)}function I9(e,t,r={}){return ot(r).api.selectOptions(e,t)}function D9(e,t={}){return ot(t).api.tripleClick(e)}function F9(e,t,r={}){return ot(r,e).api.type(e,t,r)}function L9(e,t={}){let{api:r,system:n}=ot(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function B9(e,t,r={}){return ot(r).api.upload(e,t)}function k9(e={}){return ot().api.tab(e)}var $9={...K_,setup:_9};function U9(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var d,m;return(m=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&m!==void 0?m:0})):s},[]);if(o.length){var a=new RegExp(`
|
|
464
464
|
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(a,`
|
|
465
465
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,l){var c=i.match(/(?:^|\n)( *)$/),u=c?c[1]:"",d=s;typeof s=="string"&&s.includes(`
|
|
466
466
|
`)&&(d=String(s).split(`
|
|
467
467
|
`).map(function(m,p){return p===0?m:""+u+m}).join(`
|
|
468
|
-
`)),i+=d+n[l+1]}),i}var H9=U9,Ec=xa({...
|
|
468
|
+
`)),i+=d+n[l+1]}),i}var H9=U9,Ec=xa({...zE},{intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});Ec.screen=new Proxy(Ec.screen,{get(e,t,r){return we.warn(H9`
|
|
469
469
|
You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
|
|
470
470
|
More info: https://storybook.js.org/docs/essentials/interactions
|
|
471
|
-
`),Reflect.get(e,t,r)}});var{buildQueries:CV,configure:SV,createEvent:AV,fireEvent:TV,findAllByAltText:PV,findAllByDisplayValue:OV,findAllByLabelText:qV,findAllByPlaceholderText:xV,findAllByRole:MV,findAllByTestId:NV,findAllByText:jV,findAllByTitle:IV,findByAltText:DV,findByDisplayValue:FV,findByLabelText:LV,findByPlaceholderText:BV,findByRole:kV,findByTestId:$V,findByText:UV,findByTitle:HV,getAllByAltText:VV,getAllByDisplayValue:zV,getAllByLabelText:GV,getAllByPlaceholderText:YV,getAllByRole:WV,getAllByTestId:KV,getAllByText:XV,getAllByTitle:JV,getByAltText:QV,getByDisplayValue:ZV,getByLabelText:e8,getByPlaceholderText:t8,getByRole:r8,getByTestId:n8,getByText:o8,getByTitle:a8,getConfig:i8,getDefaultNormalizer:s8,getElementError:l8,getNodeText:u8,getQueriesForElement:c8,getRoles:d8,getSuggestedQuery:p8,isInaccessible:f8,logDOM:m8,logRoles:h8,prettyDOM:y8,queries:b8,queryAllByAltText:g8,queryAllByAttribute:v8,queryAllByDisplayValue:E8,queryAllByLabelText:_8,queryAllByPlaceholderText:R8,queryAllByRole:w8,queryAllByTestId:C8,queryAllByText:S8,queryAllByTitle:A8,queryByAltText:T8,queryByAttribute:P8,queryByDisplayValue:O8,queryByLabelText:q8,queryByPlaceholderText:x8,queryByRole:M8,queryByTestId:N8,queryByText:j8,queryByTitle:I8,queryHelpers:D8,screen:F8,waitFor:L8,waitForElementToBeRemoved:B8,within:wt,prettyFormat:k8}=Ec,{userEvent:st}=xa({userEvent:$9},{intercept:!0}),{expect:Be}=xa({expect:HE},{getKeys:(e,t)=>{let r=["assert","__methods","__flags","_obj"];if(e.constructor===x){let n=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?n:[...n,"not"]}return Object.keys(e)},intercept:e=>e!=="expect"}),V9=({parameters:e})=>{e?.test?.mockReset===!0?y5():e?.test?.clearMocks===!0?h5():e?.test?.restoreMocks!==!1&&b5()},_c=(e,t=0,r)=>{if(t>5||e==null)return e;if(NE(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=f5(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)e[n]=_c(e[n],t)}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=_c(o,t,n));return e}return e},z9=({initialArgs:e})=>{_c(e)},G9=e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=wt(e.canvasElement))};De.__STORYBOOK_TEST_LOADERS__=[V9,z9,G9];De.__STORYBOOK_TEST_ON_MOCK_CALL__=p5;var Kd=rn(zd(),1),Wn=rn(Gd(),1),Xe=rn(Yd(),1);var tR=rn(zd(),1),Xo=rn(Gd(),1),Nt=rn(Yd(),1);var Ui=window.React;function Q(e,t,r){let{children:n,...o}=t||{};return r!==void 0&&(o.key=r),n===void 0?Ui.createElement(e,o):Array.isArray(n)?Ui.createElement(e,o,...n):Ui.createElement(e,o,n)}var Q_=Ui.Fragment;var Z_=["Joshua Tree","Mojave Preserve","Death Valley","Joshua Tree"],eR=["Chase","Visitor fee","Camp store","Unassigned"],Jo=Array.from({length:40},(e,t)=>({id:`fee-${t+1}`,date:`2026-10-${String(t%27+1).padStart(2,"0")}`,party:eR[t%eR.length]??"Chase",memo:t%5===0?"entrance fee":"reservation",park:Z_[t%Z_.length]??"Joshua Tree",amount:t%7===0?"-12.00":(8+t%9+t/100).toFixed(2),status:t%3===0?"posted":"for_review"})),Y9=(0,Nt.defineColumns)([{id:"date",header:"Date",value:e=>e.date,kind:"date",sortable:!0,width:"min"},{id:"party",header:"Party / description",value:e=>e.party,searchable:e=>[e.memo,e.id],rowHeader:!0,sortable:!0},{id:"park",header:"Park",value:e=>e.park,searchable:!0,filter:{kind:"multi-select",label:"Park"}},{id:"amount",header:"Amount",value:e=>e.amount,kind:"money",currency:"USD",negative:"parens",sortable:!0,total:"sum",width:"min"},{id:"status",header:"Status",value:e=>e.status,filter:{kind:"tabs",options:[{value:"",label:"All",all:!0},{value:"for_review",label:"For Review"},{value:"posted",label:"Posted"}]},cell:e=>Q(Xo.Badge,{status:e.status==="posted"?"success":"warning",children:e.status==="posted"?"Posted":"For Review"})}]);function Oe({rows:e=Jo,pageSize:t=10,canSelect:r,groupBy:n,showSort:o,empty:a,loading:i,stickyHeader:s,stickyRowHeader:l,narrow:c,size:u,activeRowId:d,onRowActivate:m,rowActions:p,getSubRows:h,initialFilters:g,getRowHref:y,totalStyle:b}){let v=(0,tR.useMemo)(()=>Y9,[]),C=(0,Nt.useCollection)({rows:e,columns:v,getRowId:S=>S.id,pageSize:t,initialSort:{id:"date",desc:!0},initialFilters:g??{status:"for_review"},canSelect:r,groupBy:n,getSubRows:h});return Q("div",{children:[Q(Nt.CollectionToolbar,{collection:C,searchLabel:"Find fee",showSort:o,actions:Q(Xo.Button,{emphasis:"standard",children:"Add fee"}),bulkActions:Q(Xo.Button,{emphasis:"standard",children:"Post selected"})}),Q(Nt.DataTable,{collection:C,label:"Park fees",onRowActivate:m,getRowHref:y,activeRowId:d,rowActions:p,empty:a,loading:i,stickyHeader:s,stickyRowHeader:l,narrow:c,size:u,totalStyle:b}),t?Q(Nt.CollectionPagination,{page:C.page,pageCount:C.pageCount,pageSize:C.pageSize,total:C.filteredCount,filtered:C.isFiltered,label:"Park fees",onPageChange:C.setPage}):null]})}async function Wd({canvasElement:e}){let t=wt(e),r=t.getByRole("searchbox",{name:"Find fee"});await Be(t.queryByRole("button",{name:"Clear search"})).toBeNull(),r.focus(),await st.keyboard("zzz"),await Be(e.querySelector(".CollectionToolbar")?.textContent).not.toContain("Clear filters");let n=await t.findByRole("button",{name:"Clear search"});await st.tab(),await Be(n).toHaveFocus(),await st.keyboard("{Enter}"),await Be(r).toHaveValue(""),await Be(r).toHaveFocus(),await Be(t.queryByRole("button",{name:"Clear search"})).toBeNull(),await st.keyboard("chase"),await st.keyboard("{Escape}"),await Be(r).toHaveValue("")}async function rR({canvasElement:e}){let t=wt(e);await Be(await t.findByRole("button",{name:"Clear filters"})).toBeTruthy(),await Be(e.querySelector(".CollectionToolbar")?.textContent).not.toContain("Clear filters")}var W9={title:"Components/Lib/DataTable",parameters:{layout:"padded"},tags:["autodocs"]},Xd=W9,K9={render:()=>Q(Oe,{onRowActivate:()=>{}}),play:async({canvasElement:e})=>{let t=wt(e),r=t.getByRole("searchbox",{name:"Find fee"});await st.type(r,"chase"),await Be(t.getByRole("table",{name:"Park fees"})).toBeTruthy()}},X9={render:()=>Q(Oe,{canSelect:e=>e.status==="for_review",onRowActivate:()=>{}}),play:async({canvasElement:e})=>{let t=wt(e);await st.click(t.getByRole("checkbox",{name:/Select all/})),await st.click(t.getByRole("tab",{name:/Posted/})),await Be(t.getByText(/hidden by filters/)).toBeTruthy()}},J9={render:()=>Q(Oe,{pageSize:40})},Q9={render:()=>Q(Oe,{pageSize:40,totalStyle:"grand"})},Z9={render:()=>Q(Oe,{groupBy:"park",pageSize:40}),play:async({canvasElement:e})=>{let r=wt(e).getAllByRole("button",{name:/Joshua Tree/})[0];r&&await st.click(r)}},eH=[{id:"assets",date:"",party:"Assets",memo:"",park:"",amount:"0",status:"posted",children:[{id:"jt",date:"",party:"Joshua Tree",memo:"",park:"Joshua Tree",amount:"0",status:"posted",children:Jo.slice(0,3).map(e=>({...e,id:`site-${e.id}`}))}]}],tH={render:()=>Q(rH,{}),play:async({canvasElement:e})=>{let t=wt(e),r=t.getByRole("button",{name:/Assets/});await st.click(r),await Be(t.queryByRole("button",{name:/Joshua Tree/})).toBeNull(),await st.click(r),await Be(t.getByRole("button",{name:/Joshua Tree/})).toBeTruthy()}};function rH(){return Q(Oe,{rows:eH,pageSize:40,getSubRows:e=>e.children,initialFilters:{},onRowActivate:()=>{}})}var nR=[{id:"harbor",name:"Harbor Family Office",entities:3,docs:3,review:7,children:[{id:"harbor-1",name:"Harbor Holdings LLC",docs:2,review:4},{id:"harbor-2",name:"Seaside Rentals LLC",docs:1,review:3},{id:"harbor-more",name:"1 more Entity, nothing open",docs:0,review:0,kind:"link"}]},{id:"granite",name:"Granite Builders",entities:2,docs:3,review:5,children:[{id:"granite-1",name:"Granite Builders Inc",docs:2,review:3},{id:"granite-2",name:"Granite Equipment LLC",docs:1,review:2}]},{id:"alpha",name:"Alpha Services",entities:1,docs:2,review:2,children:[{id:"alpha-1",name:"North Company",docs:2,review:2}]},{id:"delta",name:"Delta Dental Group",entities:1,docs:1,review:2,children:[{id:"delta-1",name:"Delta Dental PC",docs:1,review:2}]},{id:"kestrel",name:"Kestrel Logistics",entities:1,docs:1,review:3,children:[{id:"kestrel-1",name:"Kestrel Freight LLC",docs:1,review:3}]},{id:"gamma",name:"Gamma Group",docs:0,review:0}],nH={render:()=>Q(oH,{})};function oH(){let e=(0,Kd.useMemo)(()=>(0,Xe.defineColumns)([{id:"name",header:"Client / Entity",value:r=>r.name,rowHeader:!0,searchable:!0,cell:r=>r.entities!=null?Q(Q_,{children:[Q("b",{children:r.name})," ",Q("small",{children:[r.entities," ",r.entities===1?"Entity":"Entities"]})]}):r.name},{id:"docs",header:"Docs",value:r=>r.docs,kind:"number",total:"sum"},{id:"review",header:"Review",value:r=>r.review,kind:"number",total:"sum"}]),[]),t=(0,Xe.useCollection)({rows:nR,columns:e,getRowId:r=>r.id,getSubRows:r=>r.children,pageBy:"top-level",pageSize:2});return Q(Wn.Sheet,{label:"Clients",children:[Q(Xe.CollectionToolbar,{collection:t,searchLabel:"Find a client or Entity"}),Q(Xe.DataTable,{collection:t,label:"Clients",treeLines:!0,disclosure:"small",getRowKind:r=>r.kind,totalRows:[{scope:"page",label:r=>`Page ${r.page} of ${r.pageCount} subtotal`},{scope:"all",label:`Total open, all ${nR.length} clients`}]}),Q(Xe.CollectionPagination,{label:"Clients",page:t.page,pageCount:t.pageCount,pageSize:t.pageSize,total:t.pageTotal,onPageChange:t.setPage})]})}var aH={render:()=>Q(Oe,{onRowActivate:()=>{},rowActions:()=>[{label:"Open",onSelect:()=>{}},{label:"Remove",onSelect:()=>{},tone:"danger"}]})},iH={render:()=>Q(Oe,{activeRowId:"fee-1",onRowActivate:()=>{}})},sH={render:()=>Q(Oe,{rows:[],empty:Q(Wn.EmptyState,{kind:"start",title:"No fees yet"})})},lH={render:()=>Q(Oe,{rows:Jo.slice(0,2).map(e=>({...e,status:"posted"}))}),play:rR},uH={render:()=>Q(Oe,{onRowActivate:()=>{}}),play:Wd},cH={render:()=>Q("div",{style:{width:320},children:Q(Oe,{narrow:"list",onRowActivate:()=>{}})}),play:Wd},dH={render:()=>Q(Oe,{loading:!0})},pH={render:()=>Q("div",{style:{height:300,overflow:"auto"},children:Q(Oe,{pageSize:40})})},fH={render:()=>Q("div",{style:{width:480},children:Q(Oe,{stickyRowHeader:!0,pageSize:10})})},mH={render:()=>Q(hH,{}),play:async({canvasElement:e})=>{let t=wt(e),r=t.getByTestId("fee-frame");await Be(t.queryByRole("table")).toBeNull(),r.style.width="960px",await Be(await t.findByRole("table",{name:"Park fees"})).toBeTruthy(),r.style.width="320px",await Be(t.queryByRole("table")).toBeNull()}};function hH(){return Q("div",{"data-testid":"fee-frame",style:{width:320},children:Q(Oe,{narrow:"list",onRowActivate:()=>{}})})}var yH={render:()=>Q(Oe,{getRowHref:e=>`#${e.id}`}),play:async({canvasElement:e})=>{let r=wt(e).getAllByRole("link")[0],n=!1;r?.addEventListener("click",o=>{o.preventDefault(),n=!0}),r?.focus(),await st.keyboard("{Enter}"),await Be(n).toBe(!0)}},bH={render:()=>Q(gH,{})};function gH(){let e=(0,Kd.useMemo)(()=>(0,Xe.defineColumns)([{id:"party",header:"Party",value:n=>n.party,rowHeader:!0,searchable:!0,sortable:!0},{id:"park",header:"Park",value:n=>n.park,filter:{kind:"select",label:"Park"}}]),[]),t=(0,Xe.useCollection)({rows:Jo.slice(0,5),columns:e,getRowId:n=>n.id}),r=e[1];return Q(Xe.CollectionToolbar.Root,{children:[Q(Xe.CollectionToolbar.Search,{label:"Find fee",value:t.search,onChange:t.setSearch}),r?Q(Xe.CollectionToolbar.Filter,{collection:t,column:r}):null,Q(Xe.CollectionToolbar.Sort,{collection:t}),Q(Xe.CollectionToolbar.Actions,{children:Q(Wn.Button,{emphasis:"standard",children:"Add fee"})})]})}var vH={render:()=>Q("div",{dir:"rtl",children:Q(Oe,{})})},EH={render:()=>Q("div",{"data-color":"secondary",children:Q(Oe,{})})},_H={render:()=>Q("div",{style:{display:"grid",gap:24},children:[Q(Oe,{size:"sm",pageSize:3}),Q(Oe,{size:"md",pageSize:3})]})},RH={render:()=>Q(Oe,{onRowActivate:()=>{}}),play:async({canvasElement:e})=>{wt(e).getAllByRole("button",{name:/Chase|Visitor|Camp|Unassigned/})[0]?.focus(),await st.keyboard("{ArrowDown}{Enter}")}};var en=window.React,oR=Xd||{},wH=["Default","Selection","Money","GrandTotal"];function CH({id:e}){let t=Jd[e],r={...oR.args||{},...t.args||{}};return(t.render||(o=>en.createElement(oR.component,o)))(r,{args:r,id:e,name:e})}var SH=wH.map(e=>en.createElement("section",{key:e,className:"ds-story"},en.createElement("p",{className:"ds-story-name"},e.replace(/([a-z])([A-Z])/g,"$1 $2")),en.createElement("div",{className:"ds-story-body"},en.createElement(CH,{id:e}))));window.ReactDOM.createRoot(document.getElementById("root")).render(en.createElement(en.Fragment,null,SH));})();
|
|
471
|
+
`),Reflect.get(e,t,r)}});var{buildQueries:CV,configure:SV,createEvent:AV,fireEvent:TV,findAllByAltText:PV,findAllByDisplayValue:OV,findAllByLabelText:qV,findAllByPlaceholderText:xV,findAllByRole:MV,findAllByTestId:NV,findAllByText:jV,findAllByTitle:IV,findByAltText:DV,findByDisplayValue:FV,findByLabelText:LV,findByPlaceholderText:BV,findByRole:kV,findByTestId:$V,findByText:UV,findByTitle:HV,getAllByAltText:VV,getAllByDisplayValue:zV,getAllByLabelText:GV,getAllByPlaceholderText:YV,getAllByRole:WV,getAllByTestId:KV,getAllByText:XV,getAllByTitle:JV,getByAltText:QV,getByDisplayValue:ZV,getByLabelText:e8,getByPlaceholderText:t8,getByRole:r8,getByTestId:n8,getByText:o8,getByTitle:a8,getConfig:i8,getDefaultNormalizer:s8,getElementError:l8,getNodeText:u8,getQueriesForElement:c8,getRoles:d8,getSuggestedQuery:p8,isInaccessible:f8,logDOM:m8,logRoles:h8,prettyDOM:y8,queries:b8,queryAllByAltText:g8,queryAllByAttribute:v8,queryAllByDisplayValue:E8,queryAllByLabelText:_8,queryAllByPlaceholderText:R8,queryAllByRole:w8,queryAllByTestId:C8,queryAllByText:S8,queryAllByTitle:A8,queryByAltText:T8,queryByAttribute:P8,queryByDisplayValue:O8,queryByLabelText:q8,queryByPlaceholderText:x8,queryByRole:M8,queryByTestId:N8,queryByText:j8,queryByTitle:I8,queryHelpers:D8,screen:F8,waitFor:L8,waitForElementToBeRemoved:B8,within:wt,prettyFormat:k8}=Ec,{userEvent:st}=xa({userEvent:$9},{intercept:!0}),{expect:Be}=xa({expect:VE},{getKeys:(e,t)=>{let r=["assert","__methods","__flags","_obj"];if(e.constructor===x){let n=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?n:[...n,"not"]}return Object.keys(e)},intercept:e=>e!=="expect"}),V9=({parameters:e})=>{e?.test?.mockReset===!0?y5():e?.test?.clearMocks===!0?h5():e?.test?.restoreMocks!==!1&&b5()},_c=(e,t=0,r)=>{if(t>5||e==null)return e;if(jE(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=f5(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)e[n]=_c(e[n],t)}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=_c(o,t,n));return e}return e},z9=({initialArgs:e})=>{_c(e)},G9=e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=wt(e.canvasElement))};De.__STORYBOOK_TEST_LOADERS__=[V9,z9,G9];De.__STORYBOOK_TEST_ON_MOCK_CALL__=p5;var Xd=rn(zd(),1),Wn=rn(Gd(),1),Xe=rn(Yd(),1);var rR=rn(zd(),1),Xo=rn(Gd(),1),Nt=rn(Yd(),1);var Ui=window.React;function Q(e,t,r){let{children:n,...o}=t||{};return r!==void 0&&(o.key=r),n===void 0?Ui.createElement(e,o):Array.isArray(n)?Ui.createElement(e,o,...n):Ui.createElement(e,o,n)}var Z_=Ui.Fragment;var eR=["Joshua Tree","Mojave Preserve","Death Valley","Joshua Tree"],tR=["Chase","Visitor fee","Camp store","Unassigned"],Jo=Array.from({length:40},(e,t)=>({id:`fee-${t+1}`,date:`2026-10-${String(t%27+1).padStart(2,"0")}`,party:tR[t%tR.length]??"Chase",memo:t%5===0?"entrance fee":"reservation",park:eR[t%eR.length]??"Joshua Tree",amount:t%7===0?"-12.00":(8+t%9+t/100).toFixed(2),status:t%3===0?"posted":"for_review"})),Y9=(0,Nt.defineColumns)([{id:"date",header:"Date",value:e=>e.date,kind:"date",sortable:!0,width:"min"},{id:"party",header:"Party / description",value:e=>e.party,searchable:e=>[e.memo,e.id],rowHeader:!0,sortable:!0},{id:"park",header:"Park",value:e=>e.park,searchable:!0,filter:{kind:"multi-select",label:"Park"}},{id:"amount",header:"Amount",value:e=>e.amount,kind:"money",currency:"USD",negative:"parens",sortable:!0,total:"sum",width:"min"},{id:"status",header:"Status",value:e=>e.status,filter:{kind:"tabs",options:[{value:"",label:"All",all:!0},{value:"for_review",label:"For Review"},{value:"posted",label:"Posted"}]},cell:e=>Q(Xo.Badge,{status:e.status==="posted"?"success":"warning",children:e.status==="posted"?"Posted":"For Review"})}]);function Oe({rows:e=Jo,pageSize:t=10,canSelect:r,groupBy:n,showSort:o,empty:a,loading:i,stickyHeader:s,stickyRowHeader:l,narrow:c,size:u,activeRowId:d,onRowActivate:m,rowActions:p,getSubRows:h,initialFilters:g,getRowHref:y,totalStyle:b}){let v=(0,rR.useMemo)(()=>Y9,[]),C=(0,Nt.useCollection)({rows:e,columns:v,getRowId:S=>S.id,pageSize:t,initialSort:{id:"date",desc:!0},initialFilters:g??{status:"for_review"},canSelect:r,groupBy:n,getSubRows:h});return Q("div",{children:[Q(Nt.CollectionToolbar,{collection:C,searchLabel:"Find fee",showSort:o,actions:Q(Xo.Button,{emphasis:"standard",children:"Add fee"}),bulkActions:Q(Xo.Button,{emphasis:"standard",children:"Post selected"})}),Q(Nt.DataTable,{collection:C,label:"Park fees",onRowActivate:m,getRowHref:y,activeRowId:d,rowActions:p,empty:a,loading:i,stickyHeader:s,stickyRowHeader:l,narrow:c,size:u,totalStyle:b}),t?Q(Nt.CollectionPagination,{page:C.page,pageCount:C.pageCount,pageSize:C.pageSize,total:C.filteredCount,filtered:C.isFiltered,label:"Park fees",onPageChange:C.setPage}):null]})}async function Wd({canvasElement:e}){let t=wt(e),r=t.getByRole("searchbox",{name:"Find fee"});await Be(t.queryByRole("button",{name:"Clear search"})).toBeNull(),r.focus(),await st.keyboard("zzz"),await Be(e.querySelector(".CollectionToolbar")?.textContent).not.toContain("Clear filters");let n=await t.findByRole("button",{name:"Clear search"});await st.tab(),await Be(n).toHaveFocus(),await st.keyboard("{Enter}"),await Be(r).toHaveValue(""),await Be(r).toHaveFocus(),await Be(t.queryByRole("button",{name:"Clear search"})).toBeNull(),await st.keyboard("chase"),await st.keyboard("{Escape}"),await Be(r).toHaveValue("")}async function nR({canvasElement:e}){let t=wt(e);await Be(await t.findByRole("button",{name:"Clear filters"})).toBeTruthy(),await Be(e.querySelector(".CollectionToolbar")?.textContent).not.toContain("Clear filters")}var W9={title:"Components/Lib/DataTable",parameters:{layout:"padded"},tags:["autodocs"]},Jd=W9,K9={render:()=>Q(Oe,{onRowActivate:()=>{}}),play:async({canvasElement:e})=>{let t=wt(e),r=t.getByRole("searchbox",{name:"Find fee"});await st.type(r,"chase"),await Be(t.getByRole("table",{name:"Park fees"})).toBeTruthy()}},X9={render:()=>Q(Oe,{canSelect:e=>e.status==="for_review",onRowActivate:()=>{}}),play:async({canvasElement:e})=>{let t=wt(e);await st.click(t.getByRole("checkbox",{name:/Select all/})),await st.click(t.getByRole("tab",{name:/Posted/})),await Be(t.getByText(/hidden by filters/)).toBeTruthy()}},J9={render:()=>Q(Oe,{pageSize:40})},Q9={render:()=>Q(Oe,{pageSize:40,totalStyle:"grand"})},Z9={render:()=>Q(Oe,{groupBy:"park",pageSize:40}),play:async({canvasElement:e})=>{let r=wt(e).getAllByRole("button",{name:/Joshua Tree/})[0];r&&await st.click(r)}},eH=[{id:"assets",date:"",party:"Assets",memo:"",park:"",amount:"0",status:"posted",children:[{id:"jt",date:"",party:"Joshua Tree",memo:"",park:"Joshua Tree",amount:"0",status:"posted",children:Jo.slice(0,3).map(e=>({...e,id:`site-${e.id}`}))}]}],tH={render:()=>Q(rH,{}),play:async({canvasElement:e})=>{let t=wt(e),r=t.getByRole("button",{name:/Assets/});await st.click(r),await Be(t.queryByRole("button",{name:/Joshua Tree/})).toBeNull(),await st.click(r),await Be(t.getByRole("button",{name:/Joshua Tree/})).toBeTruthy()}};function rH(){return Q(Oe,{rows:eH,pageSize:40,getSubRows:e=>e.children,initialFilters:{},onRowActivate:()=>{}})}var Kd=[{id:"harbor",name:"Harbor Family Office",entities:3,docs:3,review:7,children:[{id:"harbor-1",name:"Harbor Holdings LLC",docs:2,review:4},{id:"harbor-2",name:"Seaside Rentals LLC",docs:1,review:3},{id:"harbor-more",name:"1 more Entity, nothing open",docs:0,review:0,kind:"link"}]},{id:"granite",name:"Granite Builders",entities:2,docs:3,review:5,children:[{id:"granite-1",name:"Granite Builders Inc",docs:2,review:3},{id:"granite-2",name:"Granite Equipment LLC",docs:1,review:2}]},{id:"alpha",name:"Alpha Services",entities:1,docs:2,review:2,children:[{id:"alpha-1",name:"North Company",docs:2,review:2}]},{id:"delta",name:"Delta Dental Group",entities:1,docs:1,review:2,children:[{id:"delta-1",name:"Delta Dental PC",docs:1,review:2}]},{id:"kestrel",name:"Kestrel Logistics",entities:1,docs:1,review:3,children:[{id:"kestrel-1",name:"Kestrel Freight LLC",docs:1,review:3}]},{id:"gamma",name:"Gamma Group",docs:0,review:0}],nH={render:()=>Q(oH,{})};function oH(){let e=(0,Xd.useMemo)(()=>(0,Xe.defineColumns)([{id:"name",header:"Client / Entity",value:r=>r.name,rowHeader:!0,searchable:!0,cell:r=>r.entities!=null?Q(Z_,{children:[Q("b",{children:r.name})," ",Q("small",{children:[r.entities," ",r.entities===1?"Entity":"Entities"]})]}):r.name},{id:"docs",header:"Docs",value:r=>r.docs,kind:"number",total:"sum"},{id:"review",header:"Review",value:r=>r.review,kind:"number",total:"sum"}]),[]),t=(0,Xe.useCollection)({rows:Kd,columns:e,getRowId:r=>r.id,getSubRows:r=>r.children,pageBy:"top-level",pageSize:2});return Q(Wn.Sheet,{label:"Clients",children:[Q(Xe.CollectionToolbar,{collection:t,searchLabel:"Find a client or Entity",searchWidth:"fixed",framed:!0,meta:`${Kd.length} clients`,metaEnd:"Sorted by most open"}),Q(Xe.DataTable,{collection:t,label:"Clients",treeLines:!0,disclosure:"small",getRowKind:r=>r.kind,onRowActivate:()=>{},totalRows:[{scope:"page",label:r=>`Page ${r.page} of ${r.pageCount} subtotal`},{scope:"all",label:`Total open, all ${Kd.length} clients`}]}),Q(Xe.CollectionPagination,{label:"Clients",page:t.page,pageCount:t.pageCount,pageSize:t.pageSize,total:t.pageTotal,onPageChange:t.setPage})]})}var aH={render:()=>Q(Oe,{onRowActivate:()=>{},rowActions:()=>[{label:"Open",onSelect:()=>{}},{label:"Remove",onSelect:()=>{},tone:"danger"}]})},iH={render:()=>Q(Oe,{activeRowId:"fee-1",onRowActivate:()=>{}})},sH={render:()=>Q(Oe,{rows:[],empty:Q(Wn.EmptyState,{kind:"start",title:"No fees yet"})})},lH={render:()=>Q(Oe,{rows:Jo.slice(0,2).map(e=>({...e,status:"posted"}))}),play:nR},uH={render:()=>Q(Oe,{onRowActivate:()=>{}}),play:Wd},cH={render:()=>Q("div",{style:{width:320},children:Q(Oe,{narrow:"list",onRowActivate:()=>{}})}),play:Wd},dH={render:()=>Q(Oe,{loading:!0})},pH={render:()=>Q("div",{style:{height:300,overflow:"auto"},children:Q(Oe,{pageSize:40})})},fH={render:()=>Q("div",{style:{width:480},children:Q(Oe,{stickyRowHeader:!0,pageSize:10})})},mH={render:()=>Q(hH,{}),play:async({canvasElement:e})=>{let t=wt(e),r=t.getByTestId("fee-frame");await Be(t.queryByRole("table")).toBeNull(),r.style.width="960px",await Be(await t.findByRole("table",{name:"Park fees"})).toBeTruthy(),r.style.width="320px",await Be(t.queryByRole("table")).toBeNull()}};function hH(){return Q("div",{"data-testid":"fee-frame",style:{width:320},children:Q(Oe,{narrow:"list",onRowActivate:()=>{}})})}var yH={render:()=>Q(Oe,{getRowHref:e=>`#${e.id}`}),play:async({canvasElement:e})=>{let r=wt(e).getAllByRole("link")[0],n=!1;r?.addEventListener("click",o=>{o.preventDefault(),n=!0}),r?.focus(),await st.keyboard("{Enter}"),await Be(n).toBe(!0)}},bH={render:()=>Q(gH,{})};function gH(){let e=(0,Xd.useMemo)(()=>(0,Xe.defineColumns)([{id:"party",header:"Party",value:n=>n.party,rowHeader:!0,searchable:!0,sortable:!0},{id:"park",header:"Park",value:n=>n.park,filter:{kind:"select",label:"Park"}}]),[]),t=(0,Xe.useCollection)({rows:Jo.slice(0,5),columns:e,getRowId:n=>n.id}),r=e[1];return Q(Xe.CollectionToolbar.Root,{children:[Q(Xe.CollectionToolbar.Search,{label:"Find fee",value:t.search,onChange:t.setSearch}),r?Q(Xe.CollectionToolbar.Filter,{collection:t,column:r}):null,Q(Xe.CollectionToolbar.Sort,{collection:t}),Q(Xe.CollectionToolbar.Actions,{children:Q(Wn.Button,{emphasis:"standard",children:"Add fee"})})]})}var vH={render:()=>Q("div",{dir:"rtl",children:Q(Oe,{})})},EH={render:()=>Q("div",{"data-color":"secondary",children:Q(Oe,{})})},_H={render:()=>Q("div",{style:{display:"grid",gap:24},children:[Q(Oe,{size:"sm",pageSize:3}),Q(Oe,{size:"md",pageSize:3})]})},RH={render:()=>Q(Oe,{onRowActivate:()=>{}}),play:async({canvasElement:e})=>{wt(e).getAllByRole("button",{name:/Chase|Visitor|Camp|Unassigned/})[0]?.focus(),await st.keyboard("{ArrowDown}{Enter}")}};var en=window.React,oR=Jd||{},wH=["Default","Selection","Money","GrandTotal"];function CH({id:e}){let t=Qd[e],r={...oR.args||{},...t.args||{}};return(t.render||(o=>en.createElement(oR.component,o)))(r,{args:r,id:e,name:e})}var SH=wH.map(e=>en.createElement("section",{key:e,className:"ds-story"},en.createElement("p",{className:"ds-story-name"},e.replace(/([a-z])([A-Z])/g,"$1 $2")),en.createElement("div",{className:"ds-story-body"},en.createElement(CH,{id:e}))));window.ReactDOM.createRoot(document.getElementById("root")).render(en.createElement(en.Fragment,null,SH));})();
|
|
472
472
|
|
|
473
473
|
</script>
|
|
474
474
|
</body>
|