twd-js 1.5.2 → 1.6.1
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/dist/bundled.d.ts +1 -0
- package/dist/bundled.es.js +708 -620
- package/dist/index.cjs.js +58 -41
- package/dist/index.d.ts +31 -1
- package/dist/index.es.js +5104 -4882
- package/dist/mock-sw.js +1 -1
- package/dist/runner.cjs.js +1 -1
- package/dist/runner.d.ts +10 -2
- package/dist/runner.es.js +139 -107
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -1,74 +1,91 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Po=require("./runner.cjs.js"),j=require("./jsx-runtime-BbmOcM6v.js"),ae=require("react"),ym=(e,t,r=2e3,n=50)=>new Promise((o,a)=>{const i=Date.now(),s=()=>{const l=t();if(l)return o(l);if(Date.now()-i>r)return a(new Error(`Timeout waiting for element ${e}`));setTimeout(s,n)};s()}),wm=(e,t,r=2e3,n=50)=>new Promise((o,a)=>{const i=Date.now(),s=()=>{const l=t();if(l&&l.length>0)return o(Array.from(l));if(Date.now()-i>r)return a(new Error(`Timeout waiting for elements ${e}`));setTimeout(s,n)};s()}),la=e=>new Promise(t=>setTimeout(t,e)),ti=(e,t,r,n)=>{if(!e&&!t)throw new Error(n);if(e&&t)throw new Error(n.replace("to be","to not be").replace("to have","to not have").replace("to contain","to not contain"));return r};function Rm(e){if(!e.isConnected)return!1;let t=e;for(;t;){const r=getComputedStyle(t);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!1;t=t.parentElement}return!0}const Em={"have.text":{positive:{pass:e=>`Assertion passed: Text is exactly "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected text to be "${e[0]}", but got "${t}"`},negative:{pass:e=>`Assertion passed: Text is not exactly "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected text to not be "${e[0]}", but got "${t}"`}},"contain.text":{positive:{pass:e=>`Assertion passed: Text contains "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected text to contain "${e[0]}", but got "${t}"`},negative:{pass:e=>`Assertion passed: Text does not contain "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected text to not contain "${e[0]}", but got "${t}"`}},"be.empty":{positive:{pass:()=>"Assertion passed: Text is empty",fail:(e,t)=>`Assertion failed: Expected text to be empty, but got "${t}"`},negative:{pass:()=>"Assertion passed: Text is not empty",fail:(e,t)=>`Assertion failed: Expected text to not be empty, but got "${t}"`}},"have.attr":{positive:{pass:e=>`Assertion passed: Attribute "${e[0]}" is "${e[1]}"`,fail:(e,t)=>`Assertion failed: Expected attribute "${e[0]}" to be "${e[1]}", but got "${t}"`},negative:{pass:e=>`Assertion passed: Attribute "${e[0]}" is not "${e[1]}"`,fail:(e,t)=>`Assertion failed: Expected attribute "${e[0]}" to not be "${e[1]}", but got "${t}"`}},"have.value":{positive:{pass:e=>`Assertion passed: Value is "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected value to be "${e[0]}", but got "${t}"`},negative:{pass:e=>`Assertion passed: Value is not "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected value to not be "${e[0]}", but got "${t}"`}},"be.disabled":{positive:{pass:()=>"Assertion passed: Element is disabled",fail:()=>"Assertion failed: Expected element to be disabled"},negative:{pass:()=>"Assertion passed: Element is not disabled",fail:()=>"Assertion failed: Expected element to not be disabled"}},"be.enabled":{positive:{pass:()=>"Assertion passed: Element is enabled",fail:()=>"Assertion failed: Expected element to be enabled"},negative:{pass:()=>"Assertion passed: Element is not enabled",fail:()=>"Assertion failed: Expected element to not be enabled"}},"be.checked":{positive:{pass:()=>"Assertion passed: Element is checked",fail:()=>"Assertion failed: Expected element to be checked"},negative:{pass:()=>"Assertion passed: Element is not checked",fail:()=>"Assertion failed: Expected element to not be checked"}},"be.selected":{positive:{pass:()=>"Assertion passed: Element is selected",fail:()=>"Assertion failed: Expected element to be selected"},negative:{pass:()=>"Assertion passed: Element is not selected",fail:()=>"Assertion failed: Expected element to not be selected"}},"be.focused":{positive:{pass:()=>"Assertion passed: Element is focused",fail:()=>"Assertion failed: Expected element to be focused"},negative:{pass:()=>"Assertion passed: Element is not focused",fail:()=>"Assertion failed: Expected element to not be focused"}},"be.visible":{positive:{pass:()=>"Assertion passed: Element is visible",fail:()=>"Assertion failed: Expected element to be visible"},negative:{pass:()=>"Assertion passed: Element is not visible",fail:()=>"Assertion failed: Expected element to not be visible"}},"have.class":{positive:{pass:e=>`Assertion passed: Element has class "${e[0]}"`,fail:e=>`Assertion failed: Expected element to have class "${e[0]}"`},negative:{pass:e=>`Assertion passed: Element does not have class "${e[0]}"`,fail:e=>`Assertion failed: Expected element to not have class "${e[0]}"`}}},Fa=(e,t,...r)=>{const n=t.startsWith("not."),o=n?t.slice(4):t,a=(e.textContent||"").trim(),i=Em[o];if(!i)throw new Error(`Unknown assertion: ${o}`);const s=n?"negative":"positive";let l,u;switch(o){case"have.text":l=a===r[0],u=a;break;case"contain.text":l=a.includes(r[0]),u=a;break;case"be.empty":l=a.length===0,u=a;break;case"have.attr":u=e.getAttribute(r[0]),l=u===r[1];break;case"have.value":u=e.value,l=u===r[0];break;case"be.disabled":l=e.disabled===!0;break;case"be.enabled":l=e.disabled===!1;break;case"be.checked":l=e.checked===!0;break;case"be.selected":l=e.selected===!0;break;case"be.focused":l=document.activeElement===e;break;case"be.visible":l=Rm(e);break;case"have.class":l=e.classList.contains(r[0]);break;default:throw new Error(`Unknown assertion: ${o}`)}return ti(l,n,i[s].pass(r),i[s].fail(r,u))},he=e=>{const t=Po.handlers.size?Array.from(Po.handlers.values()).find(r=>r.status==="running"):null;t&&t.logs?.push(e)},Ca="1.5.2",xm=()=>typeof window<"u"?(window.__TWD_MOCK_STATE__||(window.__TWD_MOCK_STATE__={rules:[],counts:{}}),window.__TWD_MOCK_STATE__):{rules:[],counts:{}},dt=xm(),Je=dt.rules,Cm=100;let As=!1;const qm=async e=>{if(As){console.warn("[TWD] Request mocking already initialized");return}if("serviceWorker"in navigator){As=!0;const t=e??"/mock-sw.js";await navigator.serviceWorker.register(`${t}?v=${Ca}`),navigator.serviceWorker.controller||await new Promise(r=>{navigator.serviceWorker.addEventListener("controllerchange",r,{once:!0})}),navigator.serviceWorker.addEventListener("message",r=>{if(r.data?.type==="EXECUTED"){const{alias:n,request:o,hitCount:a}=r.data,i=Je.find(s=>s.alias===n);i&&(i.executed=!0,i.request=o,i.hitCount=a),dt.counts[n]=a??(dt.counts[n]??0)+1}})}},_m=async(e,t)=>{const r={alias:e,...t,executed:!1},n=Je.findIndex(o=>o.alias===e);n!==-1?Je[n]=r:Je.push(r),navigator.serviceWorker.controller?.postMessage({type:"ADD_RULE",rule:r,version:Ca}),await la(Cm),await Promise.resolve()},Pm=async e=>await Promise.all(e.map(r=>xd(r))),xd=async(e,t=10,r=100)=>{if(!Je.find(o=>o.alias===e))throw new Error(`Rule ${e} not found`);for(let o=0;o<t;o++){const a=Je.find(i=>i.alias===e&&i.executed);if(a)return Promise.resolve(a);o<t-1&&await new Promise(i=>setTimeout(i,r))}throw console.log(`Rule ${e} was not executed within ${t*r}ms`),new Error(`Rule ${e} was not executed within ${t*r}ms`)},Cd=()=>Je,qd=()=>{navigator.serviceWorker.controller?.postMessage({type:"CLEAR_RULES",version:Ca}),Je.length=0;for(const e in dt.counts)delete dt.counts[e]},Tm=e=>dt.counts[e]??0,Sm=()=>({...dt.counts}),Am=(e,t)=>{const r=e.startsWith("not.");switch(r?e.slice(4):e){case"eq":return ti(window.location.href===t,r,`Assertion passed: URL is ${t}`,`Assertion failed: Expected URL to be ${t}, but got ${window.location.href}`);case"contain.url":return ti(window.location.href.includes(t),r,`Assertion passed: URL contains ${t}`,`Assertion failed: Expected URL to contain ${t}, but got ${window.location.href}`);default:throw new Error(`Unknown assertion: ${e}`)}},Mm=()=>({location:window.location,should:async(e,t,r=5)=>{let n="",o;for(let a=0;a<r;a++)try{n=Am(e,t),he(n);break}catch(i){await new Promise(s=>setTimeout(s,100)),o=i}if(o)throw o;return n}}),Om=100,Im=async(e,t)=>{if(he(`visit("${e}")`),window.location.pathname===e||t){const r=`/__dummy_${Math.random().toString(36).slice(2)}`;window.history.pushState({},"",r),window.dispatchEvent(new PopStateEvent("popstate")),await la(10)}window.history.pushState({},"",e),window.dispatchEvent(new PopStateEvent("popstate")),await la(Om)},Nm={get:async e=>{const t=`body > div:not(#twd-sidebar-root) ${e}`;he(`Searching get("${e}")`);const r=await ym(e,()=>document.querySelector(t)),n={el:r,should:(o,...a)=>{const i=Fa(r,o,...a);return he(i),n}};return n},setInputValue:(e,t)=>{const{set:r}=Object.getOwnPropertyDescriptor(e.__proto__,"value");r.call(e,t),e.dispatchEvent(new Event("input",{bubbles:!0}))},getAll:async e=>{const t=`body > div:not(#twd-sidebar-root) ${e}`;return he(`Searching getAll("${e}")`),(await wm(e,()=>document.querySelectorAll(t))).map(n=>{const o={el:n,should:(a,...i)=>{const s=Fa(n,a,...i);return he(s),o}};return o})},visit:Im,url:Mm,mockRequest:_m,waitForRequest:xd,waitForRequests:Pm,initRequestMocking:qm,clearRequestMockRules:qd,getRequestMockRules:Cd,getRequestCount:Tm,getRequestCounts:Sm,should:(e,t,...r)=>{const n=Fa(e,t,...r);he(n)},wait:la,mockComponent:j.m,clearComponentMocks:j.c,notExists:async e=>{const t=`body > div:not(#twd-sidebar-root) ${e}`;if(he(`Checking notExists("${e}")`),document.querySelector(t))throw new Error(`Element "${e}" exists in the DOM.`);he(`Assertion passed: Element "${e}" does not exist in the DOM.`)}};var Si=Object.defineProperty,km=(e,t,r)=>t in e?Si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>Si(e,"name",{value:t,configurable:!0}),Ai=(e,t)=>{for(var r in t)Si(e,r,{get:t[r],enumerable:!0})},_d=(e,t,r)=>km(e,typeof t!="symbol"?t+"":t,r),ua={};Ai(ua,{addChainableMethod:()=>zi,addLengthGuard:()=>Lo,addMethod:()=>Li,addProperty:()=>Bi,checkError:()=>pe,compareByInspect:()=>fa,eql:()=>tf,events:()=>Ta,expectTypes:()=>kd,flag:()=>U,getActual:()=>_a,getMessage:()=>Ii,getName:()=>Sa,getOperator:()=>Gi,getOwnEnumerableProperties:()=>Wi,getOwnEnumerablePropertySymbols:()=>Hi,getPathInfo:()=>Di,hasProperty:()=>Pa,inspect:()=>H,isNaN:()=>pa,isNumeric:()=>ne,isProxyEnabled:()=>Bo,isRegExp:()=>ma,objDisplay:()=>ut,overwriteChainableMethod:()=>Vi,overwriteMethod:()=>Ui,overwriteProperty:()=>Fi,proxify:()=>St,test:()=>Mi,transferFlags:()=>xe,type:()=>Q});var pe={};Ai(pe,{compatibleConstructor:()=>Sd,compatibleInstance:()=>Td,compatibleMessage:()=>Ad,getConstructorName:()=>Md,getMessage:()=>Od});function qa(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}x(qa,"isErrorInstance");function Pd(e){return Object.prototype.toString.call(e)==="[object RegExp]"}x(Pd,"isRegExp");function Td(e,t){return qa(t)&&e===t}x(Td,"compatibleInstance");function Sd(e,t){return qa(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}x(Sd,"compatibleConstructor");function Ad(e,t){const r=typeof e=="string"?e:e.message;return Pd(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}x(Ad,"compatibleMessage");function Md(e){let t=e;return qa(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}x(Md,"getConstructorName");function Od(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}x(Od,"getMessage");function U(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}x(U,"flag");function Mi(e,t){let r=U(e,"negate"),n=t[0];return r?!n:n}x(Mi,"test");function Q(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}x(Q,"type");var jm="captureStackTrace"in Error,Id=class Nd extends Error{constructor(t="Unspecified AssertionError",r,n){super(t),_d(this,"message"),this.message=t,jm&&Error.captureStackTrace(this,n||Nd);for(const 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}}};x(Id,"AssertionError");var G=Id;function kd(e,t){let r=U(e,"message"),n=U(e,"ssfi");r=r?r+": ":"",e=U(e,"object"),t=t.map(function(i){return i.toLowerCase()}),t.sort();let o=t.map(function(i,s){let l=~["a","e","i","o","u"].indexOf(i.charAt(0))?"an":"a";return(t.length>1&&s===t.length-1?"or ":"")+l+" "+i}).join(", "),a=Q(e).toLowerCase();if(!t.some(function(i){return a===i}))throw new G(r+"object tested must be "+o+", but "+a+" given",void 0,n)}x(kd,"expectTypes");function _a(e,t){return t.length>4?t[4]:e._obj}x(_a,"getActual");var Ms={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"]},Dm={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Rt="…";function jd(e,t){const r=Ms[Dm[t]]||Ms[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}x(jd,"colorise");function Dd({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:u=String}={},d){const f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(l),seen:s,inspect:d,stylize:u};return f.colors&&(f.stylize=jd),f}x(Dd,"normaliseOptions");function $d(e){return e>="\uD800"&&e<="\uDBFF"}x($d,"isHighSurrogate");function Ue(e,t,r=Rt){e=String(e);const 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&&$d(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}x(Ue,"truncate");function ve(e,t,r,n=", "){r=r||t.inspect;const o=e.length;if(o===0)return"";const a=t.truncate;let i="",s="",l="";for(let u=0;u<o;u+=1){const d=u+1===e.length,f=u+2===e.length;l=`${Rt}(${e.length-u})`;const c=e[u];t.truncate=a-i.length-(d?0:n.length);const v=s||r(c,t)+(d?"":n),m=i.length+v.length,g=m+l.length;if(d&&m>a&&i.length+l.length<=a||!d&&!f&&g>a||(s=d?"":r(e[u+1],t)+(f?"":n),!d&&f&&g>a&&m+s.length>a))break;if(i+=v,!d&&!f&&m+s.length>=a){l=`${Rt}(${e.length-u-1})`;break}l=""}return`${i}${l}`}x(ve,"inspectList");function Bd(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}x(Bd,"quoteComplexKey");function Et([e,t],r){return r.truncate-=2,typeof e=="string"?e=Bd(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}x(Et,"inspectProperty");function Ld(e,t){const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;const n=ve(e,t);t.truncate-=n.length;let o="";return r.length&&(o=ve(r.map(a=>[a,e[a]]),t,Et)),`[ ${n}${o?`, ${o}`:""} ]`}x(Ld,"inspectArray");var $m=x(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function _e(e,t){const r=$m(e);t.truncate-=r.length+4;const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){const s=`${t.stylize(Ue(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=s.length,e[i]!==e.length&&t.truncate<=3){o+=`${Rt}(${e.length-e[i]+1})`;break}o+=s}let a="";return n.length&&(a=ve(n.map(i=>[i,e[i]]),t,Et)),`${r}[ ${o}${a?`, ${a}`:""} ]`}x(_e,"inspectTypedArray");function Fd(e,t){const r=e.toJSON();if(r===null)return"Invalid Date";const n=r.split("T"),o=n[0];return t.stylize(`${o}T${Ue(n[1],t.truncate-o.length-1)}`,"date")}x(Fd,"inspectDate");function ri(e,t){const r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Ue(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}x(ri,"inspectFunction");function Ud([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}x(Ud,"inspectMapEntry");function zd(e){const t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}x(zd,"mapToEntries");function Vd(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${ve(zd(e),t,Ud)} }`)}x(Vd,"inspectMap");var Bm=Number.isNaN||(e=>e!==e);function ni(e,t){return Bm(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(Ue(String(e),t.truncate),"number")}x(ni,"inspectNumber");function oi(e,t){let r=Ue(e.toString(),t.truncate-1);return r!==Rt&&(r+="n"),t.stylize(r,"bigint")}x(oi,"inspectBigInt");function Hd(e,t){const r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Ue(o,n)}/${r}`,"regexp")}x(Hd,"inspectRegExp");function Wd(e){const t=[];return e.forEach(r=>{t.push(r)}),t}x(Wd,"arrayFromSet");function Gd(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${ve(Wd(e),t)} }`)}x(Gd,"inspectSet");var Os=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Lm={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Fm=16;function Kd(e){return Lm[e]||`\\u${`0000${e.charCodeAt(0).toString(Fm)}`.slice(-4)}`}x(Kd,"escape");function ai(e,t){return Os.test(e)&&(e=e.replace(Os,Kd)),t.stylize(`'${Ue(e,t.truncate-2)}'`,"string")}x(ai,"inspectString");function ii(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}x(ii,"inspectSymbol");var Um=x(()=>"Promise{…}","getPromiseValue"),zm=Um;function To(e,t){const 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);const o=ve(r.map(s=>[s,e[s]]),t,Et),a=ve(n.map(s=>[s,e[s]]),t,Et);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}x(To,"inspectObject");var Ua=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Yd(e,t){let r="";return Ua&&Ua in e&&(r=e[Ua]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${To(e,t)}`}x(Yd,"inspectClass");function Xd(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${ve(e,t)} ]`)}x(Xd,"inspectArguments");var Vm=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Jd(e,t){const r=Object.getOwnPropertyNames(e).filter(i=>Vm.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Ue(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);const a=ve(r.map(i=>[i,e[i]]),t,Et);return`${n}${o}${a?` { ${a} }`:""}`}x(Jd,"inspectObject");function Qd([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}x(Qd,"inspectAttribute");function ca(e,t){return ve(e,t,Zd,`
|
|
2
|
-
`)}x(ca,"inspectNodeCollection");function Zd(e,t){switch(e.nodeType){case 1:return Oi(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}x(Zd,"inspectNode");function Oi(e,t){const 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+=ve(r.map(d=>[d,e.getAttribute(d)]),t,Qd," ")),t.truncate-=s.length;const l=t.truncate;let u=ca(e.children,t);return u&&u.length>l&&(u=`${Rt}(${e.children.length})`),`${o}${s}${a}${u}${i}`}x(Oi,"inspectHTML");var Hm=typeof Symbol=="function"&&typeof Symbol.for=="function",za=Hm?Symbol.for("chai/inspect"):"@@chai/inspect",Va=Symbol.for("nodejs.util.inspect.custom"),Is=new WeakMap,Ns={},ks={undefined:x((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:x((e,t)=>t.stylize("null","null"),"null"),boolean:x((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:x((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:ni,Number:ni,bigint:oi,BigInt:oi,string:ai,String:ai,function:ri,Function:ri,symbol:ii,Symbol:ii,Array:Ld,Date:Fd,Map:Vd,Set:Gd,RegExp:Hd,Promise:zm,WeakSet:x((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:x((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Xd,Int8Array:_e,Uint8Array:_e,Uint8ClampedArray:_e,Int16Array:_e,Uint16Array:_e,Int32Array:_e,Uint32Array:_e,Float32Array:_e,Float64Array:_e,Generator:x(()=>"","Generator"),DataView:x(()=>"","DataView"),ArrayBuffer:x(()=>"","ArrayBuffer"),Error:Jd,HTMLCollection:ca,NodeList:ca},Wm=x((e,t,r,n)=>za in e&&typeof e[za]=="function"?e[za](t):Va in e&&typeof e[Va]=="function"?e[Va](t.depth,t,n):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Is.has(e.constructor)?Is.get(e.constructor)(e,t):Ns[r]?Ns[r](e,t):"","inspectCustom"),Gm=Object.prototype.toString;function So(e,t={}){const r=Dd(t,So),{customInspect:n}=r;let o=e===null?"null":typeof e;if(o==="object"&&(o=Gm.call(e).slice(8,-1)),o in ks)return ks[o](e,r);if(n&&e){const i=Wm(e,r,o,So);if(i)return typeof i=="string"?i:So(i,r)}const a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?To(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Oi(e,r):"constructor"in e?e.constructor!==Object?Yd(e,r):To(e,r):e===Object(e)?To(e,r):r.stylize(String(e),o)}x(So,"inspect");var ie={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function H(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:ie.truncateThreshold?ie.truncateThreshold:1/0};return So(e,o)}x(H,"inspect");function ut(e){let t=H(e),r=Object.prototype.toString.call(e);if(ie.truncateThreshold&&t.length>=ie.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]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}x(ut,"objDisplay");function Ii(e,t){let r=U(e,"negate"),n=U(e,"object"),o=t[3],a=_a(e,t),i=r?t[2]:t[1],s=U(e,"message");return typeof i=="function"&&(i=i()),i=i||"",i=i.replace(/#\{this\}/g,function(){return ut(n)}).replace(/#\{act\}/g,function(){return ut(a)}).replace(/#\{exp\}/g,function(){return ut(o)}),s?s+": "+i:i}x(Ii,"getMessage");function xe(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}x(xe,"transferFlags");function si(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}x(si,"type");function Ni(){this._key="chai/deep-eql__"+Math.random()+Date.now()}x(Ni,"FakeMap");Ni.prototype={get:x(function(t){return t[this._key]},"get"),set:x(function(t,r){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:r,configurable:!0})},"set")};var ef=typeof WeakMap=="function"?WeakMap:Ni;function li(e,t,r){if(!r||ft(e)||ft(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}x(li,"memoizeCompare");function xo(e,t,r,n){if(!(!r||ft(e)||ft(t))){var o=r.get(e);o?o.set(t,n):(o=new ef,o.set(t,n),r.set(e,o))}}x(xo,"memoizeSet");var tf=$o;function $o(e,t,r){if(r&&r.comparator)return ui(e,t,r);var n=ki(e,t);return n!==null?n:ui(e,t,r)}x($o,"deepEqual");function ki(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:ft(e)||ft(t)?!1:null}x(ki,"simpleEqual");function ui(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new ef;var n=r&&r.comparator,o=li(e,t,r.memoize);if(o!==null)return o;var a=li(t,e,r.memoize);if(a!==null)return a;if(n){var i=n(e,t);if(i===!1||i===!0)return xo(e,t,r.memoize,i),i;var s=ki(e,t);if(s!==null)return s}var l=si(e);if(l!==si(t))return xo(e,t,r.memoize,!1),!1;xo(e,t,r.memoize,!0);var u=rf(e,t,l,r);return xo(e,t,r.memoize,u),u}x(ui,"extensiveDeepEqual");function rf(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return $o(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return ji(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 Qe(e,t,n);case"RegExp":return nf(e,t);case"Generator":return of(e,t,n);case"DataView":return Qe(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Qe(new Uint8Array(e),new Uint8Array(t),n);case"Set":return ci(e,t,n);case"Map":return ci(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 sf(e,t,n)}}x(rf,"extensiveDeepEqualByType");function nf(e,t){return e.toString()===t.toString()}x(nf,"regexpEqual");function ci(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(x(function(i,s){n.push([i,s])},"gatherEntries")),t.forEach(x(function(i,s){o.push([i,s])},"gatherEntries")),Qe(n.sort(),o.sort(),r)}x(ci,"entriesEqual");function Qe(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($o(e[o],t[o],r)===!1)return!1;return!0}x(Qe,"iterableEqual");function of(e,t,r){return Qe(da(e),da(t),r)}x(of,"generatorEqual");function af(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}x(af,"hasIteratorFunction");function di(e){if(af(e))try{return da(e[Symbol.iterator]())}catch{return[]}return[]}x(di,"getIteratorEntries");function da(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}x(da,"getGeneratorEntries");function fi(e){var t=[];for(var r in e)t.push(r);return t}x(fi,"getEnumerableKeys");function pi(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}x(pi,"getEnumerableSymbols");function ji(e,t,r,n){var o=r.length;if(o===0)return!0;for(var a=0;a<o;a+=1)if($o(e[r[a]],t[r[a]],n)===!1)return!1;return!0}x(ji,"keysEqual");function sf(e,t,r){var n=fi(e),o=fi(t),a=pi(e),i=pi(t);if(n=n.concat(a),o=o.concat(i),n.length&&n.length===o.length)return Qe(mi(n).sort(),mi(o).sort())===!1?!1:ji(e,t,n,r);var s=di(e),l=di(t);return s.length&&s.length===l.length?(s.sort(),l.sort(),Qe(s,l,r)):n.length===0&&s.length===0&&o.length===0&&l.length===0}x(sf,"objectEqual");function ft(e){return e===null||typeof e!="object"}x(ft,"isPrimitive");function mi(e){return e.map(x(function(r){return typeof r=="symbol"?r.toString():r},"mapSymbol"))}x(mi,"mapSymbols");function Pa(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}x(Pa,"hasProperty");function lf(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(n=>{if(n==="constructor"||n==="__proto__"||n==="prototype")return{};const a=/^\[(\d+)\]$/.exec(n);let i=null;return a?i={i:parseFloat(a[1])}:i={p:n.replace(/\\([.[\]])/g,"$1")},i})}x(lf,"parsePath");function hi(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let a=0;a<r;a++){const i=t[a];n&&(typeof i.p>"u"?n=n[i.i]:n=n[i.p],a===r-1&&(o=n))}return o}x(hi,"internalGetPathValue");function Di(e,t){const r=lf(t),n=r[r.length-1],o={parent:r.length>1?hi(e,r,r.length-1):e,name:n.p||n.i,value:hi(e,r)};return o.exists=Pa(o.parent,o.name),o}x(Di,"getPathInfo");var uf=class cf{constructor(t,r,n,o){return _d(this,"__flags",{}),U(this,"ssfi",n||cf),U(this,"lockSsfi",o),U(this,"object",t),U(this,"message",r),U(this,"eql",ie.deepEqual||tf),St(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ie.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ie.includeStack=t}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ie.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ie.showDiff=t}static addProperty(t,r){Bi(this.prototype,t,r)}static addMethod(t,r){Li(this.prototype,t,r)}static addChainableMethod(t,r,n){zi(this.prototype,t,r,n)}static overwriteProperty(t,r){Fi(this.prototype,t,r)}static overwriteMethod(t,r){Ui(this.prototype,t,r)}static overwriteChainableMethod(t,r,n){Vi(this.prototype,t,r,n)}assert(t,r,n,o,a,i){const s=Mi(this,arguments);if(i!==!1&&(i=!0),o===void 0&&a===void 0&&(i=!1),ie.showDiff!==!0&&(i=!1),!s){r=Ii(this,arguments);const u={actual:_a(this,arguments),expected:o,showDiff:i},d=Gi(this,arguments);throw d&&(u.operator=d),new G(r,u,ie.includeStack?this.assert:U(this,"ssfi"))}}get _obj(){return U(this,"object")}set _obj(t){U(this,"object",t)}};x(uf,"Assertion");var b=uf,Ta=new EventTarget,df=class extends Event{constructor(t,r,n){super(t),this.name=String(r),this.fn=n}};x(df,"PluginEvent");var $i=df;function Bo(){return ie.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}x(Bo,"isProxyEnabled");function Bi(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:x(function n(){!Bo()&&!U(this,"lockSsfi")&&U(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let a=new b;return xe(this,a),a},"propertyGetter"),configurable:!0}),Ta.dispatchEvent(new $i("addProperty",t,r))}x(Bi,"addProperty");var Km=Object.getOwnPropertyDescriptor(function(){},"length");function Lo(e,t,r){return Km.configurable&&Object.defineProperty(e,"length",{get:x(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+'".')},"get")}),e}x(Lo,"addLengthGuard");function ff(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}x(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}x(ff,"getProperties");var js=["__flags","__methods","_obj","assert"];function St(e,t){return Bo()?new Proxy(e,{get:x(function r(n,o){if(typeof o=="string"&&ie.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let a=null,i=4;throw ff(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&js.indexOf(s)===-1){let l=pf(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 js.indexOf(o)===-1&&!U(n,"lockSsfi")&&U(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}x(St,"proxify");function pf(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){let a=e.charCodeAt(o-1);for(let i=1;i<=t.length;i++){if(Math.abs(o-i)>=r){n[o][i]=r;continue}n[o][i]=Math.min(n[o-1][i]+1,n[o][i-1]+1,n[o-1][i-1]+(a===t.charCodeAt(i-1)?0:1))}}return n[e.length][t.length]}x(pf,"stringDistanceCapped");function Li(e,t,r){let n=x(function(){U(this,"lockSsfi")||U(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let a=new b;return xe(this,a),a},"methodWrapper");Lo(n,t,!1),e[t]=St(n,t),Ta.dispatchEvent(new $i("addMethod",t,r))}x(Li,"addMethod");function Fi(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=x(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:x(function a(){!Bo()&&!U(this,"lockSsfi")&&U(this,"ssfi",a);let i=U(this,"lockSsfi");U(this,"lockSsfi",!0);let s=r(o).call(this);if(U(this,"lockSsfi",i),s!==void 0)return s;let l=new b;return xe(this,l),l},"overwritingPropertyGetter"),configurable:!0})}x(Fi,"overwriteProperty");function Ui(e,t,r){let n=e[t],o=x(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let a=x(function(){U(this,"lockSsfi")||U(this,"ssfi",a);let i=U(this,"lockSsfi");U(this,"lockSsfi",!0);let s=r(o).apply(this,arguments);if(U(this,"lockSsfi",i),s!==void 0)return s;let l=new b;return xe(this,l),l},"overwritingMethodWrapper");Lo(a,t,!1),e[t]=St(a,t)}x(Ui,"overwriteMethod");var Ym=typeof Object.setPrototypeOf=="function",Ds=x(function(){},"testFn"),Xm=Object.getOwnPropertyNames(Ds).filter(function(e){let t=Object.getOwnPropertyDescriptor(Ds,e);return typeof t!="object"?!0:!t.configurable}),Jm=Function.prototype.call,Qm=Function.prototype.apply,mf=class extends $i{constructor(t,r,n,o){super(t,r,n),this.chainingBehavior=o}};x(mf,"PluginAddChainableMethodEvent");var Zm=mf;function zi(e,t,r,n){typeof n!="function"&&(n=x(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:x(function(){o.chainingBehavior.call(this);let i=x(function(){U(this,"lockSsfi")||U(this,"ssfi",i);let s=o.method.apply(this,arguments);if(s!==void 0)return s;let l=new b;return xe(this,l),l},"chainableMethodWrapper");if(Lo(i,t,!0),Ym){let s=Object.create(this);s.call=Jm,s.apply=Qm,Object.setPrototypeOf(i,s)}else Object.getOwnPropertyNames(e).forEach(function(l){if(Xm.indexOf(l)!==-1)return;let u=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(i,l,u)});return xe(this,i),St(i)},"chainableMethodGetter"),configurable:!0}),Ta.dispatchEvent(new Zm("addChainableMethod",t,r,n))}x(zi,"addChainableMethod");function Vi(e,t,r,n){let o=e.__methods[t],a=o.chainingBehavior;o.chainingBehavior=x(function(){let l=n(a).call(this);if(l!==void 0)return l;let u=new b;return xe(this,u),u},"overwritingChainableMethodGetter");let i=o.method;o.method=x(function(){let l=r(i).apply(this,arguments);if(l!==void 0)return l;let u=new b;return xe(this,u),u},"overwritingChainableMethodWrapper")}x(Vi,"overwriteChainableMethod");function fa(e,t){return H(e)<H(t)?-1:1}x(fa,"compareByInspect");function Hi(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}x(Hi,"getOwnEnumerablePropertySymbols");function Wi(e){return Object.keys(e).concat(Hi(e))}x(Wi,"getOwnEnumerableProperties");var pa=Number.isNaN;function hf(e){let t=Q(e);return["Array","Object","Function"].indexOf(t)!==-1}x(hf,"isObjectType");function Gi(e,t){let r=U(e,"operator"),n=U(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))return;let i=hf(o);return/\snot\s/.test(a)?i?"notDeepStrictEqual":"notStrictEqual":i?"deepStrictEqual":"strictEqual"}x(Gi,"getOperator");function Sa(e){return e.name}x(Sa,"getName");function ma(e){return Object.prototype.toString.call(e)==="[object RegExp]"}x(ma,"isRegExp");function ne(e){return["Number","BigInt"].includes(Q(e))}x(ne,"isNumeric");var{flag:R}=ua;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){b.addProperty(e)});b.addProperty("not",function(){R(this,"negate",!0)});b.addProperty("deep",function(){R(this,"deep",!0)});b.addProperty("nested",function(){R(this,"nested",!0)});b.addProperty("own",function(){R(this,"own",!0)});b.addProperty("ordered",function(){R(this,"ordered",!0)});b.addProperty("any",function(){R(this,"any",!0),R(this,"all",!1)});b.addProperty("all",function(){R(this,"all",!0),R(this,"any",!1)});var $s={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Ki(e,t){t&&R(this,"message",t),e=e.toLowerCase();let r=R(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const o=Q(r).toLowerCase();$s.function.includes(e)?this.assert($s[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)}x(Ki,"an");b.addChainableMethod("an",Ki);b.addChainableMethod("a",Ki);function bf(e,t){return pa(e)&&pa(t)||e===t}x(bf,"SameValueZero");function Fo(){R(this,"contains",!0)}x(Fo,"includeChainingBehavior");function Uo(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=Q(r).toLowerCase(),o=R(this,"message"),a=R(this,"negate"),i=R(this,"ssfi"),s=R(this,"deep"),l=s?"deep ":"",u=s?R(this,"eql"):bf;o=o?o+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new G(o+"unable to use .deep.include with WeakSet",void 0,i);d=r.has(e);break;case"map":r.forEach(function(f){d=d||u(f,e)});break;case"set":s?r.forEach(function(f){d=d||u(f,e)}):d=r.has(e);break;case"array":s?d=r.some(function(f){return u(f,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new G(o+"the given combination of arguments ("+n+" and "+Q(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 "+Q(e).toLowerCase(),void 0,i);let f=Object.keys(e),c=null,v=0;if(f.forEach(function(m){let g=new b(r);if(xe(this,g,!0),R(g,"lockSsfi",!0),!a||f.length===1){g.property(m,e[m]);return}try{g.property(m,e[m])}catch(T){if(!pe.compatibleConstructor(T,G))throw T;c===null&&(c=T),v++}},this),a&&f.length>1&&v===f.length)throw c;return}}this.assert(d,"expected #{this} to "+l+"include "+H(e),"expected #{this} to not "+l+"include "+H(e))}x(Uo,"include");b.addChainableMethod("include",Uo,Fo);b.addChainableMethod("contain",Uo,Fo);b.addChainableMethod("contains",Uo,Fo);b.addChainableMethod("includes",Uo,Fo);b.addProperty("ok",function(){this.assert(R(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});b.addProperty("true",function(){this.assert(R(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!R(this,"negate"))});b.addProperty("numeric",function(){const e=R(this,"object");this.assert(["Number","BigInt"].includes(Q(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!R(this,"negate"))});b.addProperty("callable",function(){const e=R(this,"object"),t=R(this,"ssfi"),r=R(this,"message"),n=r?`${r}: `:"",o=R(this,"negate"),a=o?`${n}expected ${H(e)} not to be a callable function`:`${n}expected ${H(e)} to be a callable function`,i=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Q(e));if(i&&o||!i&&!o)throw new G(a,void 0,t)});b.addProperty("false",function(){this.assert(R(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!R(this,"negate"))});b.addProperty("null",function(){this.assert(R(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});b.addProperty("undefined",function(){this.assert(R(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});b.addProperty("NaN",function(){this.assert(pa(R(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Yi(){let e=R(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}x(Yi,"assertExist");b.addProperty("exist",Yi);b.addProperty("exists",Yi);b.addProperty("empty",function(){let e=R(this,"object"),t=R(this,"ssfi"),r=R(this,"message"),n;switch(r=r?r+": ":"",Q(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new G(r+".empty was passed a weak collection",void 0,t);case"function":{const o=r+".empty was passed a function "+Sa(e);throw new G(o.trim(),void 0,t)}default:if(e!==Object(e))throw new G(r+".empty was passed non-string primitive "+H(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 Xi(){let e=R(this,"object"),t=Q(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}x(Xi,"checkArguments");b.addProperty("arguments",Xi);b.addProperty("Arguments",Xi);function Aa(e,t){t&&R(this,"message",t);let r=R(this,"object");if(R(this,"deep")){let n=R(this,"lockSsfi");R(this,"lockSsfi",!0),this.eql(e),R(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}x(Aa,"assertEqual");b.addMethod("equal",Aa);b.addMethod("equals",Aa);b.addMethod("eq",Aa);function Ji(e,t){t&&R(this,"message",t);let r=R(this,"eql");this.assert(r(e,R(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}x(Ji,"assertEql");b.addMethod("eql",Ji);b.addMethod("eqls",Ji);function Ma(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"doLength"),o=R(this,"message"),a=o?o+": ":"",i=R(this,"ssfi"),s=Q(r).toLowerCase(),l=Q(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new b(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")throw new G(a+"the argument to above must be a date",void 0,i);if(!ne(e)&&(n||ne(r)))throw new G(a+"the argument to above must be a number",void 0,i);if(!n&&s!=="date"&&!ne(r)){let u=s==="string"?"'"+r+"'":r;throw new G(a+"expected "+u+" to be a number or a date",void 0,i)}if(n){let 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)}x(Ma,"assertAbove");b.addMethod("above",Ma);b.addMethod("gt",Ma);b.addMethod("greaterThan",Ma);function Oa(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"doLength"),o=R(this,"message"),a=o?o+": ":"",i=R(this,"ssfi"),s=Q(r).toLowerCase(),l=Q(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new b(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=a+"the argument to least must be a date";else if(!ne(e)&&(n||ne(r)))u=a+"the argument to least must be a number";else if(!n&&s!=="date"&&!ne(r)){let f=s==="string"?"'"+r+"'":r;u=a+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new G(u,void 0,i);if(n){let f="length",c;s==="map"||s==="set"?(f="size",c=r.size):c=r.length,this.assert(c>=e,"expected #{this} to have a "+f+" at least #{exp} but got #{act}","expected #{this} to have a "+f+" below #{exp}",e,c)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}x(Oa,"assertLeast");b.addMethod("least",Oa);b.addMethod("gte",Oa);b.addMethod("greaterThanOrEqual",Oa);function Ia(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"doLength"),o=R(this,"message"),a=o?o+": ":"",i=R(this,"ssfi"),s=Q(r).toLowerCase(),l=Q(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new b(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=a+"the argument to below must be a date";else if(!ne(e)&&(n||ne(r)))u=a+"the argument to below must be a number";else if(!n&&s!=="date"&&!ne(r)){let f=s==="string"?"'"+r+"'":r;u=a+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new G(u,void 0,i);if(n){let f="length",c;s==="map"||s==="set"?(f="size",c=r.size):c=r.length,this.assert(c<e,"expected #{this} to have a "+f+" below #{exp} but got #{act}","expected #{this} to not have a "+f+" below #{exp}",e,c)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}x(Ia,"assertBelow");b.addMethod("below",Ia);b.addMethod("lt",Ia);b.addMethod("lessThan",Ia);function Na(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"doLength"),o=R(this,"message"),a=o?o+": ":"",i=R(this,"ssfi"),s=Q(r).toLowerCase(),l=Q(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new b(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=a+"the argument to most must be a date";else if(!ne(e)&&(n||ne(r)))u=a+"the argument to most must be a number";else if(!n&&s!=="date"&&!ne(r)){let f=s==="string"?"'"+r+"'":r;u=a+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new G(u,void 0,i);if(n){let f="length",c;s==="map"||s==="set"?(f="size",c=r.size):c=r.length,this.assert(c<=e,"expected #{this} to have a "+f+" at most #{exp} but got #{act}","expected #{this} to have a "+f+" above #{exp}",e,c)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}x(Na,"assertMost");b.addMethod("most",Na);b.addMethod("lte",Na);b.addMethod("lessThanOrEqual",Na);b.addMethod("within",function(e,t,r){r&&R(this,"message",r);let n=R(this,"object"),o=R(this,"doLength"),a=R(this,"message"),i=a?a+": ":"",s=R(this,"ssfi"),l=Q(n).toLowerCase(),u=Q(e).toLowerCase(),d=Q(t).toLowerCase(),f,c=!0,v=u==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new b(n,a,s,!0).to.have.property("length"),!o&&l==="date"&&(u!=="date"||d!=="date"))f=i+"the arguments to within must be dates";else if((!ne(e)||!ne(t))&&(o||ne(n)))f=i+"the arguments to within must be numbers";else if(!o&&l!=="date"&&!ne(n)){let m=l==="string"?"'"+n+"'":n;f=i+"expected "+m+" to be a number or a date"}else c=!1;if(c)throw new G(f,void 0,s);if(o){let m="length",g;l==="map"||l==="set"?(m="size",g=n.size):g=n.length,this.assert(g>=e&&g<=t,"expected #{this} to have a "+m+" within "+v,"expected #{this} to not have a "+m+" within "+v)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+v,"expected #{this} to not be within "+v)});function Qi(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"ssfi"),o=R(this,"message"),a;try{a=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new G(o+"The instanceof assertion needs a constructor but "+Q(e)+" was given.",void 0,n)):s}let i=Sa(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)}x(Qi,"assertInstanceOf");b.addMethod("instanceof",Qi);b.addMethod("instanceOf",Qi);function Zi(e,t,r){r&&R(this,"message",r);let n=R(this,"nested"),o=R(this,"own"),a=R(this,"message"),i=R(this,"object"),s=R(this,"ssfi"),l=typeof e;if(a=a?a+": ":"",n){if(l!=="string")throw new G(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 G(a+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new G(a+'The "nested" and "own" flags cannot be combined.',void 0,s);if(i==null)throw new G(a+"Target cannot be null or undefined.",void 0,s);let u=R(this,"deep"),d=R(this,"negate"),f=n?Di(i,e):null,c=n?f.value:i[e],v=u?R(this,"eql"):(T,p)=>T===p,m="";u&&(m+="deep "),o&&(m+="own "),n&&(m+="nested "),m+="property ";let g;o?g=Object.prototype.hasOwnProperty.call(i,e):n?g=f.exists:g=Pa(i,e),(!d||arguments.length===1)&&this.assert(g,"expected #{this} to have "+m+H(e),"expected #{this} to not have "+m+H(e)),arguments.length>1&&this.assert(g&&v(t,c),"expected #{this} to have "+m+H(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+H(e)+" of #{act}",t,c),R(this,"object",c)}x(Zi,"assertProperty");b.addMethod("property",Zi);function es(e,t,r){R(this,"own",!0),Zi.apply(this,arguments)}x(es,"assertOwnProperty");b.addMethod("ownProperty",es);b.addMethod("haveOwnProperty",es);function ts(e,t,r){typeof t=="string"&&(r=t,t=null),r&&R(this,"message",r);let n=R(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),a=R(this,"eql");o&&t?this.assert(a(t,o),"expected the own property descriptor for "+H(e)+" on #{this} to match "+H(t)+", got "+H(o),"expected the own property descriptor for "+H(e)+" on #{this} to not match "+H(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+H(e),"expected #{this} to not have an own property descriptor for "+H(e)),R(this,"object",o)}x(ts,"assertOwnPropertyDescriptor");b.addMethod("ownPropertyDescriptor",ts);b.addMethod("haveOwnPropertyDescriptor",ts);function rs(){R(this,"doLength",!0)}x(rs,"assertLengthChain");function ns(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=Q(r).toLowerCase(),o=R(this,"message"),a=R(this,"ssfi"),i="length",s;switch(n){case"map":case"set":i="size",s=r.size;break;default:new b(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)}x(ns,"assertLength");b.addChainableMethod("length",ns,rs);b.addChainableMethod("lengthOf",ns,rs);function os(e,t){t&&R(this,"message",t);let r=R(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}x(os,"assertMatch");b.addMethod("match",os);b.addMethod("matches",os);b.addMethod("string",function(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"message"),o=R(this,"ssfi");new b(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+H(e),"expected #{this} to not contain "+H(e))});function as(e){let t=R(this,"object"),r=Q(t),n=Q(e),o=R(this,"ssfi"),a=R(this,"deep"),i,s="",l,u=!0,d=R(this,"message");d=d?d+": ":"";let f=d+"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(p,q){l.push(q)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(l=Wi(t),n){case"Array":if(arguments.length>1)throw new G(f,void 0,o);break;case"Object":if(arguments.length>1)throw new G(f,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(p){return typeof p=="symbol"?p:String(p)})}if(!e.length)throw new G(d+"keys required",void 0,o);let c=e.length,v=R(this,"any"),m=R(this,"all"),g=e,T=a?R(this,"eql"):(p,q)=>p===q;if(!v&&!m&&(m=!0),v&&(u=g.some(function(p){return l.some(function(q){return T(p,q)})})),m&&(u=g.every(function(p){return l.some(function(q){return T(p,q)})}),R(this,"contains")||(u=u&&e.length==l.length)),c>1){e=e.map(function(q){return H(q)});let p=e.pop();m&&(i=e.join(", ")+", and "+p),v&&(i=e.join(", ")+", or "+p)}else i=H(e[0]);i=(c>1?"keys ":"key ")+i,i=(R(this,"contains")?"contain ":"have ")+i,this.assert(u,"expected #{this} to "+s+i,"expected #{this} to not "+s+i,g.slice(0).sort(fa),l.sort(fa),!0)}x(as,"assertKeys");b.addMethod("keys",as);b.addMethod("key",as);function ka(e,t,r){r&&R(this,"message",r);let n=R(this,"object"),o=R(this,"ssfi"),a=R(this,"message"),i=R(this,"negate")||!1;new b(n,a,o,!0).is.a("function"),(ma(e)||typeof e=="string")&&(t=e,e=null);let s,l=!1;try{n()}catch(v){l=!0,s=v}let u=e===void 0&&t===void 0,d=!!(e&&t),f=!1,c=!1;if(u||!u&&!i){let v="an error";e instanceof Error?v="#{exp}":e&&(v=pe.getConstructorName(e));let m=s;if(s instanceof Error)m=s.toString();else if(typeof s=="string")m=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{m=pe.getConstructorName(s)}catch{}this.assert(l,"expected #{this} to throw "+v,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),m)}if(e&&s&&(e instanceof Error&&pe.compatibleInstance(s,e)===i&&(d&&i?f=!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())),pe.compatibleConstructor(s,e)===i&&(d&&i?f=!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&&pe.getConstructorName(e),s instanceof Error?s.toString():s&&pe.getConstructorName(s)))),s&&t!==void 0&&t!==null){let v="including";ma(t)&&(v="matching"),pe.compatibleMessage(s,t)===i&&(d&&i?c=!0:this.assert(i,"expected #{this} to throw error "+v+" #{exp} but got #{act}","expected #{this} to throw error not "+v+" #{exp}",t,pe.getMessage(s)))}f&&c&&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&&pe.getConstructorName(e),s instanceof Error?s.toString():s&&pe.getConstructorName(s)),R(this,"object",s)}x(ka,"assertThrows");b.addMethod("throw",ka);b.addMethod("throws",ka);b.addMethod("Throw",ka);function is(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+H(e),"expected #{this} to not respond to "+H(e))}x(is,"respondTo");b.addMethod("respondTo",is);b.addMethod("respondsTo",is);b.addProperty("itself",function(){R(this,"itself",!0)});function ss(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+ut(e),"expected #{this} to not satisfy"+ut(e),!R(this,"negate"),n)}x(ss,"satisfy");b.addMethod("satisfy",ss);b.addMethod("satisfies",ss);function ls(e,t,r){r&&R(this,"message",r);let n=R(this,"object"),o=R(this,"message"),a=R(this,"ssfi");new b(n,o,a,!0).is.numeric;let i="A `delta` value is required for `closeTo`";if(t==null)throw new G(o?`${o}: ${i}`:i,void 0,a);if(new b(t,o,a,!0).is.numeric,i="A `expected` value is required for `closeTo`",e==null)throw new G(o?`${o}: ${i}`:i,void 0,a);new b(e,o,a,!0).is.numeric;const s=x(u=>u<0?-u:u,"abs"),l=x(u=>parseFloat(parseFloat(u).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)}x(ls,"closeTo");b.addMethod("closeTo",ls);b.addMethod("approximately",ls);function vf(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){let u=a.indexOf(s);return u===-1?!1:(n||a.splice(u,1),!0)}return a.some(function(u,d){return r(s,u)?(n||a.splice(d,1),!0):!1})})}x(vf,"isSubsetOf");b.addMethod("members",function(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"message"),o=R(this,"ssfi");new b(r,n,o,!0).to.be.iterable,new b(e,n,o,!0).to.be.iterable;let a=R(this,"contains"),i=R(this,"ordered"),s,l,u;a?(s=i?"an ordered superset":"a superset",l="expected #{this} to be "+s+" of #{exp}",u="expected #{this} to not be "+s+" of #{exp}"):(s=i?"ordered members":"members",l="expected #{this} to have the same "+s+" as #{exp}",u="expected #{this} to not have the same "+s+" as #{exp}");let d=R(this,"deep")?R(this,"eql"):void 0;this.assert(vf(e,r,d,a,i),l,u,e,r,!0)});b.addProperty("iterable",function(e){e&&R(this,"message",e);let t=R(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function gf(e,t){t&&R(this,"message",t);let r=R(this,"object"),n=R(this,"message"),o=R(this,"ssfi"),a=R(this,"contains"),i=R(this,"deep"),s=R(this,"eql");new b(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)}x(gf,"oneOf");b.addMethod("oneOf",gf);function us(e,t,r){r&&R(this,"message",r);let n=R(this,"object"),o=R(this,"message"),a=R(this,"ssfi");new b(n,o,a,!0).is.a("function");let i;t?(new b(e,o,a,!0).to.have.property(t),i=e[t]):(new b(e,o,a,!0).is.a("function"),i=e()),n();let s=t==null?e():e[t],l=t==null?i:"."+t;R(this,"deltaMsgObj",l),R(this,"initialDeltaValue",i),R(this,"finalDeltaValue",s),R(this,"deltaBehavior","change"),R(this,"realDelta",s!==i),this.assert(i!==s,"expected "+l+" to change","expected "+l+" to not change")}x(us,"assertChanges");b.addMethod("change",us);b.addMethod("changes",us);function cs(e,t,r){r&&R(this,"message",r);let n=R(this,"object"),o=R(this,"message"),a=R(this,"ssfi");new b(n,o,a,!0).is.a("function");let i;t?(new b(e,o,a,!0).to.have.property(t),i=e[t]):(new b(e,o,a,!0).is.a("function"),i=e()),new b(i,o,a,!0).is.a("number"),n();let s=t==null?e():e[t],l=t==null?i:"."+t;R(this,"deltaMsgObj",l),R(this,"initialDeltaValue",i),R(this,"finalDeltaValue",s),R(this,"deltaBehavior","increase"),R(this,"realDelta",s-i),this.assert(s-i>0,"expected "+l+" to increase","expected "+l+" to not increase")}x(cs,"assertIncreases");b.addMethod("increase",cs);b.addMethod("increases",cs);function ds(e,t,r){r&&R(this,"message",r);let n=R(this,"object"),o=R(this,"message"),a=R(this,"ssfi");new b(n,o,a,!0).is.a("function");let i;t?(new b(e,o,a,!0).to.have.property(t),i=e[t]):(new b(e,o,a,!0).is.a("function"),i=e()),new b(i,o,a,!0).is.a("number"),n();let s=t==null?e():e[t],l=t==null?i:"."+t;R(this,"deltaMsgObj",l),R(this,"initialDeltaValue",i),R(this,"finalDeltaValue",s),R(this,"deltaBehavior","decrease"),R(this,"realDelta",i-s),this.assert(s-i<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}x(ds,"assertDecreases");b.addMethod("decrease",ds);b.addMethod("decreases",ds);function yf(e,t){t&&R(this,"message",t);let r=R(this,"deltaMsgObj"),n=R(this,"initialDeltaValue"),o=R(this,"finalDeltaValue"),a=R(this,"deltaBehavior"),i=R(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)}x(yf,"assertDelta");b.addMethod("by",yf);b.addProperty("extensible",function(){let e=R(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});b.addProperty("sealed",function(){let e=R(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});b.addProperty("frozen",function(){let e=R(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});b.addProperty("finite",function(e){let t=R(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 ha(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 ha(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?ha(n,o):typeof n=="function"?n(o):o===n}):!1}x(ha,"compareSubset");b.addMethod("containSubset",function(e){const t=U(this,"object"),r=ie.showDiff;this.assert(ha(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Mo(e,t){return new b(e,t)}x(Mo,"expect");Mo.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new G(r,{actual:e,expected:t,operator:n},Mo.fail)};var wf={};Ai(wf,{Should:()=>th,should:()=>eh});function fs(){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 b(this.valueOf(),null,e):new b(this,null,e)}x(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}x(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,o,a,i){throw arguments.length<2&&(a=n,n=void 0),a=a||"should.fail()",new G(a,{actual:n,expected:o,operator:i},r.fail)},r.equal=function(n,o,a){new b(n,a).to.equal(o)},r.Throw=function(n,o,a,i){new b(n,i).to.Throw(o,a)},r.exist=function(n,o){new b(n,o).to.exist},r.not={},r.not.equal=function(n,o,a){new b(n,a).to.not.equal(o)},r.not.Throw=function(n,o,a,i){new b(n,i).to.not.Throw(o,a)},r.not.exist=function(n,o){new b(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}x(fs,"loadShould");var eh=fs,th=fs;function h(e,t){new b(null,null,h,!0).assert(e,t,"[ negation message unavailable ]")}x(h,"assert");h.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new G(r,{actual:e,expected:t,operator:n},h.fail)};h.isOk=function(e,t){new b(e,t,h.isOk,!0).is.ok};h.isNotOk=function(e,t){new b(e,t,h.isNotOk,!0).is.not.ok};h.equal=function(e,t,r){let n=new b(e,r,h.equal,!0);n.assert(t==U(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};h.notEqual=function(e,t,r){let n=new b(e,r,h.notEqual,!0);n.assert(t!=U(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};h.strictEqual=function(e,t,r){new b(e,r,h.strictEqual,!0).to.equal(t)};h.notStrictEqual=function(e,t,r){new b(e,r,h.notStrictEqual,!0).to.not.equal(t)};h.deepEqual=h.deepStrictEqual=function(e,t,r){new b(e,r,h.deepEqual,!0).to.eql(t)};h.notDeepEqual=function(e,t,r){new b(e,r,h.notDeepEqual,!0).to.not.eql(t)};h.isAbove=function(e,t,r){new b(e,r,h.isAbove,!0).to.be.above(t)};h.isAtLeast=function(e,t,r){new b(e,r,h.isAtLeast,!0).to.be.least(t)};h.isBelow=function(e,t,r){new b(e,r,h.isBelow,!0).to.be.below(t)};h.isAtMost=function(e,t,r){new b(e,r,h.isAtMost,!0).to.be.most(t)};h.isTrue=function(e,t){new b(e,t,h.isTrue,!0).is.true};h.isNotTrue=function(e,t){new b(e,t,h.isNotTrue,!0).to.not.equal(!0)};h.isFalse=function(e,t){new b(e,t,h.isFalse,!0).is.false};h.isNotFalse=function(e,t){new b(e,t,h.isNotFalse,!0).to.not.equal(!1)};h.isNull=function(e,t){new b(e,t,h.isNull,!0).to.equal(null)};h.isNotNull=function(e,t){new b(e,t,h.isNotNull,!0).to.not.equal(null)};h.isNaN=function(e,t){new b(e,t,h.isNaN,!0).to.be.NaN};h.isNotNaN=function(e,t){new b(e,t,h.isNotNaN,!0).not.to.be.NaN};h.exists=function(e,t){new b(e,t,h.exists,!0).to.exist};h.notExists=function(e,t){new b(e,t,h.notExists,!0).to.not.exist};h.isUndefined=function(e,t){new b(e,t,h.isUndefined,!0).to.equal(void 0)};h.isDefined=function(e,t){new b(e,t,h.isDefined,!0).to.not.equal(void 0)};h.isCallable=function(e,t){new b(e,t,h.isCallable,!0).is.callable};h.isNotCallable=function(e,t){new b(e,t,h.isNotCallable,!0).is.not.callable};h.isObject=function(e,t){new b(e,t,h.isObject,!0).to.be.a("object")};h.isNotObject=function(e,t){new b(e,t,h.isNotObject,!0).to.not.be.a("object")};h.isArray=function(e,t){new b(e,t,h.isArray,!0).to.be.an("array")};h.isNotArray=function(e,t){new b(e,t,h.isNotArray,!0).to.not.be.an("array")};h.isString=function(e,t){new b(e,t,h.isString,!0).to.be.a("string")};h.isNotString=function(e,t){new b(e,t,h.isNotString,!0).to.not.be.a("string")};h.isNumber=function(e,t){new b(e,t,h.isNumber,!0).to.be.a("number")};h.isNotNumber=function(e,t){new b(e,t,h.isNotNumber,!0).to.not.be.a("number")};h.isNumeric=function(e,t){new b(e,t,h.isNumeric,!0).is.numeric};h.isNotNumeric=function(e,t){new b(e,t,h.isNotNumeric,!0).is.not.numeric};h.isFinite=function(e,t){new b(e,t,h.isFinite,!0).to.be.finite};h.isBoolean=function(e,t){new b(e,t,h.isBoolean,!0).to.be.a("boolean")};h.isNotBoolean=function(e,t){new b(e,t,h.isNotBoolean,!0).to.not.be.a("boolean")};h.typeOf=function(e,t,r){new b(e,r,h.typeOf,!0).to.be.a(t)};h.notTypeOf=function(e,t,r){new b(e,r,h.notTypeOf,!0).to.not.be.a(t)};h.instanceOf=function(e,t,r){new b(e,r,h.instanceOf,!0).to.be.instanceOf(t)};h.notInstanceOf=function(e,t,r){new b(e,r,h.notInstanceOf,!0).to.not.be.instanceOf(t)};h.include=function(e,t,r){new b(e,r,h.include,!0).include(t)};h.notInclude=function(e,t,r){new b(e,r,h.notInclude,!0).not.include(t)};h.deepInclude=function(e,t,r){new b(e,r,h.deepInclude,!0).deep.include(t)};h.notDeepInclude=function(e,t,r){new b(e,r,h.notDeepInclude,!0).not.deep.include(t)};h.nestedInclude=function(e,t,r){new b(e,r,h.nestedInclude,!0).nested.include(t)};h.notNestedInclude=function(e,t,r){new b(e,r,h.notNestedInclude,!0).not.nested.include(t)};h.deepNestedInclude=function(e,t,r){new b(e,r,h.deepNestedInclude,!0).deep.nested.include(t)};h.notDeepNestedInclude=function(e,t,r){new b(e,r,h.notDeepNestedInclude,!0).not.deep.nested.include(t)};h.ownInclude=function(e,t,r){new b(e,r,h.ownInclude,!0).own.include(t)};h.notOwnInclude=function(e,t,r){new b(e,r,h.notOwnInclude,!0).not.own.include(t)};h.deepOwnInclude=function(e,t,r){new b(e,r,h.deepOwnInclude,!0).deep.own.include(t)};h.notDeepOwnInclude=function(e,t,r){new b(e,r,h.notDeepOwnInclude,!0).not.deep.own.include(t)};h.match=function(e,t,r){new b(e,r,h.match,!0).to.match(t)};h.notMatch=function(e,t,r){new b(e,r,h.notMatch,!0).to.not.match(t)};h.property=function(e,t,r){new b(e,r,h.property,!0).to.have.property(t)};h.notProperty=function(e,t,r){new b(e,r,h.notProperty,!0).to.not.have.property(t)};h.propertyVal=function(e,t,r,n){new b(e,n,h.propertyVal,!0).to.have.property(t,r)};h.notPropertyVal=function(e,t,r,n){new b(e,n,h.notPropertyVal,!0).to.not.have.property(t,r)};h.deepPropertyVal=function(e,t,r,n){new b(e,n,h.deepPropertyVal,!0).to.have.deep.property(t,r)};h.notDeepPropertyVal=function(e,t,r,n){new b(e,n,h.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};h.ownProperty=function(e,t,r){new b(e,r,h.ownProperty,!0).to.have.own.property(t)};h.notOwnProperty=function(e,t,r){new b(e,r,h.notOwnProperty,!0).to.not.have.own.property(t)};h.ownPropertyVal=function(e,t,r,n){new b(e,n,h.ownPropertyVal,!0).to.have.own.property(t,r)};h.notOwnPropertyVal=function(e,t,r,n){new b(e,n,h.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};h.deepOwnPropertyVal=function(e,t,r,n){new b(e,n,h.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};h.notDeepOwnPropertyVal=function(e,t,r,n){new b(e,n,h.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};h.nestedProperty=function(e,t,r){new b(e,r,h.nestedProperty,!0).to.have.nested.property(t)};h.notNestedProperty=function(e,t,r){new b(e,r,h.notNestedProperty,!0).to.not.have.nested.property(t)};h.nestedPropertyVal=function(e,t,r,n){new b(e,n,h.nestedPropertyVal,!0).to.have.nested.property(t,r)};h.notNestedPropertyVal=function(e,t,r,n){new b(e,n,h.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};h.deepNestedPropertyVal=function(e,t,r,n){new b(e,n,h.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};h.notDeepNestedPropertyVal=function(e,t,r,n){new b(e,n,h.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};h.lengthOf=function(e,t,r){new b(e,r,h.lengthOf,!0).to.have.lengthOf(t)};h.hasAnyKeys=function(e,t,r){new b(e,r,h.hasAnyKeys,!0).to.have.any.keys(t)};h.hasAllKeys=function(e,t,r){new b(e,r,h.hasAllKeys,!0).to.have.all.keys(t)};h.containsAllKeys=function(e,t,r){new b(e,r,h.containsAllKeys,!0).to.contain.all.keys(t)};h.doesNotHaveAnyKeys=function(e,t,r){new b(e,r,h.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};h.doesNotHaveAllKeys=function(e,t,r){new b(e,r,h.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};h.hasAnyDeepKeys=function(e,t,r){new b(e,r,h.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};h.hasAllDeepKeys=function(e,t,r){new b(e,r,h.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};h.containsAllDeepKeys=function(e,t,r){new b(e,r,h.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};h.doesNotHaveAnyDeepKeys=function(e,t,r){new b(e,r,h.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};h.doesNotHaveAllDeepKeys=function(e,t,r){new b(e,r,h.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};h.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new b(e,n,h.throws,!0).to.throw(t,r);return U(o,"object")};h.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new b(e,n,h.doesNotThrow,!0).to.not.throw(t,r)};h.operator=function(e,t,r,n){let 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 G(n+'Invalid operator "'+t+'"',void 0,h.operator)}let a=new b(o,n,h.operator,!0);a.assert(U(a,"object")===!0,"expected "+H(e)+" to be "+t+" "+H(r),"expected "+H(e)+" to not be "+t+" "+H(r))};h.closeTo=function(e,t,r,n){new b(e,n,h.closeTo,!0).to.be.closeTo(t,r)};h.approximately=function(e,t,r,n){new b(e,n,h.approximately,!0).to.be.approximately(t,r)};h.sameMembers=function(e,t,r){new b(e,r,h.sameMembers,!0).to.have.same.members(t)};h.notSameMembers=function(e,t,r){new b(e,r,h.notSameMembers,!0).to.not.have.same.members(t)};h.sameDeepMembers=function(e,t,r){new b(e,r,h.sameDeepMembers,!0).to.have.same.deep.members(t)};h.notSameDeepMembers=function(e,t,r){new b(e,r,h.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};h.sameOrderedMembers=function(e,t,r){new b(e,r,h.sameOrderedMembers,!0).to.have.same.ordered.members(t)};h.notSameOrderedMembers=function(e,t,r){new b(e,r,h.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};h.sameDeepOrderedMembers=function(e,t,r){new b(e,r,h.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};h.notSameDeepOrderedMembers=function(e,t,r){new b(e,r,h.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};h.includeMembers=function(e,t,r){new b(e,r,h.includeMembers,!0).to.include.members(t)};h.notIncludeMembers=function(e,t,r){new b(e,r,h.notIncludeMembers,!0).to.not.include.members(t)};h.includeDeepMembers=function(e,t,r){new b(e,r,h.includeDeepMembers,!0).to.include.deep.members(t)};h.notIncludeDeepMembers=function(e,t,r){new b(e,r,h.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};h.includeOrderedMembers=function(e,t,r){new b(e,r,h.includeOrderedMembers,!0).to.include.ordered.members(t)};h.notIncludeOrderedMembers=function(e,t,r){new b(e,r,h.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};h.includeDeepOrderedMembers=function(e,t,r){new b(e,r,h.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};h.notIncludeDeepOrderedMembers=function(e,t,r){new b(e,r,h.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};h.oneOf=function(e,t,r){new b(e,r,h.oneOf,!0).to.be.oneOf(t)};h.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${H(e)} to be an iterable`:`expected ${H(e)} to be an iterable`,new G(t,void 0,h.isIterable)};h.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,h.changes,!0).to.change(t,r)};h.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,h.changesBy,!0).to.change(t,r).by(n)};h.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,h.doesNotChange,!0).to.not.change(t,r)};h.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,h.changesButNotBy,!0).to.change(t,r).but.not.by(n)};h.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,h.increases,!0).to.increase(t,r)};h.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,h.increasesBy,!0).to.increase(t,r).by(n)};h.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,h.doesNotIncrease,!0).to.not.increase(t,r)};h.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,h.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};h.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,h.decreases,!0).to.decrease(t,r)};h.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,h.decreasesBy,!0).to.decrease(t,r).by(n)};h.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,h.doesNotDecrease,!0).to.not.decrease(t,r)};h.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);return new b(e,o,h.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};h.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,h.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};h.ifError=function(e){if(e)throw e};h.isExtensible=function(e,t){new b(e,t,h.isExtensible,!0).to.be.extensible};h.isNotExtensible=function(e,t){new b(e,t,h.isNotExtensible,!0).to.not.be.extensible};h.isSealed=function(e,t){new b(e,t,h.isSealed,!0).to.be.sealed};h.isNotSealed=function(e,t){new b(e,t,h.isNotSealed,!0).to.not.be.sealed};h.isFrozen=function(e,t){new b(e,t,h.isFrozen,!0).to.be.frozen};h.isNotFrozen=function(e,t){new b(e,t,h.isNotFrozen,!0).to.not.be.frozen};h.isEmpty=function(e,t){new b(e,t,h.isEmpty,!0).to.be.empty};h.isNotEmpty=function(e,t){new b(e,t,h.isNotEmpty,!0).to.not.be.empty};h.containsSubset=function(e,t,r){new b(e,r).to.containSubset(t)};h.doesNotContainSubset=function(e,t,r){new b(e,r).to.not.containSubset(t)};var rh=[["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(const[e,t]of rh)h[t]=h[e];var Bs=[];function Rf(e){const t={use:Rf,AssertionError:G,util:ua,config:ie,expect:Mo,assert:h,Assertion:b,...wf};return~Bs.indexOf(e)||(e(t,ua),Bs.push(e)),t}x(Rf,"use");function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const oh=e=>{const t=new Map,r=[];for(const n of e)t.set(n.id,{...n,childrenNodes:[]});for(const n of t.values())n.parent?t.get(n.parent)?.childrenNodes?.push(n):r.push(n);return r},ah={animation:"spin 1s linear infinite"},ih=()=>j.j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"var(--twd-icon-color-secondary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-loader-circle-icon lucide-loader-circle",style:ah,"data-testid":"loader-icon",children:j.j.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),Go=document.createElement("style");Go&&!document.getElementById("loader-spin-keyframes")&&(Go.id="loader-spin-keyframes",Go.innerHTML=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const So=require("./runner.cjs.js"),j=require("./jsx-runtime-BbmOcM6v.js"),ne=require("react"),_m=(e,t,r=2e3,n=50)=>new Promise((o,i)=>{const a=Date.now(),s=()=>{const l=t();if(l)return o(l);if(Date.now()-a>r)return i(new Error(`Timeout waiting for element ${e}`));setTimeout(s,n)};s()}),Pm=(e,t,r=2e3,n=50)=>new Promise((o,i)=>{const a=Date.now(),s=()=>{const l=t();if(l&&l.length>0)return o(Array.from(l));if(Date.now()-a>r)return i(new Error(`Timeout waiting for elements ${e}`));setTimeout(s,n)};s()}),ci=e=>new Promise(t=>setTimeout(t,e)),na=(e,t,r,n)=>{if(!e&&!t)throw new Error(n);if(e&&t)throw new Error(n.replace("to be","to not be").replace("to have","to not have").replace("to contain","to not contain"));return r};function Tm(e){if(!e.isConnected)return!1;let t=e;for(;t;){const r=getComputedStyle(t);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!1;t=t.parentElement}return!0}const Sm={"have.text":{positive:{pass:e=>`Assertion passed: Text is exactly "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected text to be "${e[0]}", but got "${t}"`},negative:{pass:e=>`Assertion passed: Text is not exactly "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected text to not be "${e[0]}", but got "${t}"`}},"contain.text":{positive:{pass:e=>`Assertion passed: Text contains "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected text to contain "${e[0]}", but got "${t}"`},negative:{pass:e=>`Assertion passed: Text does not contain "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected text to not contain "${e[0]}", but got "${t}"`}},"be.empty":{positive:{pass:()=>"Assertion passed: Text is empty",fail:(e,t)=>`Assertion failed: Expected text to be empty, but got "${t}"`},negative:{pass:()=>"Assertion passed: Text is not empty",fail:(e,t)=>`Assertion failed: Expected text to not be empty, but got "${t}"`}},"have.attr":{positive:{pass:e=>`Assertion passed: Attribute "${e[0]}" is "${e[1]}"`,fail:(e,t)=>`Assertion failed: Expected attribute "${e[0]}" to be "${e[1]}", but got "${t}"`},negative:{pass:e=>`Assertion passed: Attribute "${e[0]}" is not "${e[1]}"`,fail:(e,t)=>`Assertion failed: Expected attribute "${e[0]}" to not be "${e[1]}", but got "${t}"`}},"have.value":{positive:{pass:e=>`Assertion passed: Value is "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected value to be "${e[0]}", but got "${t}"`},negative:{pass:e=>`Assertion passed: Value is not "${e[0]}"`,fail:(e,t)=>`Assertion failed: Expected value to not be "${e[0]}", but got "${t}"`}},"be.disabled":{positive:{pass:()=>"Assertion passed: Element is disabled",fail:()=>"Assertion failed: Expected element to be disabled"},negative:{pass:()=>"Assertion passed: Element is not disabled",fail:()=>"Assertion failed: Expected element to not be disabled"}},"be.enabled":{positive:{pass:()=>"Assertion passed: Element is enabled",fail:()=>"Assertion failed: Expected element to be enabled"},negative:{pass:()=>"Assertion passed: Element is not enabled",fail:()=>"Assertion failed: Expected element to not be enabled"}},"be.checked":{positive:{pass:()=>"Assertion passed: Element is checked",fail:()=>"Assertion failed: Expected element to be checked"},negative:{pass:()=>"Assertion passed: Element is not checked",fail:()=>"Assertion failed: Expected element to not be checked"}},"be.selected":{positive:{pass:()=>"Assertion passed: Element is selected",fail:()=>"Assertion failed: Expected element to be selected"},negative:{pass:()=>"Assertion passed: Element is not selected",fail:()=>"Assertion failed: Expected element to not be selected"}},"be.focused":{positive:{pass:()=>"Assertion passed: Element is focused",fail:()=>"Assertion failed: Expected element to be focused"},negative:{pass:()=>"Assertion passed: Element is not focused",fail:()=>"Assertion failed: Expected element to not be focused"}},"be.visible":{positive:{pass:()=>"Assertion passed: Element is visible",fail:()=>"Assertion failed: Expected element to be visible"},negative:{pass:()=>"Assertion passed: Element is not visible",fail:()=>"Assertion failed: Expected element to not be visible"}},"have.class":{positive:{pass:e=>`Assertion passed: Element has class "${e[0]}"`,fail:e=>`Assertion failed: Expected element to have class "${e[0]}"`},negative:{pass:e=>`Assertion passed: Element does not have class "${e[0]}"`,fail:e=>`Assertion failed: Expected element to not have class "${e[0]}"`}}},zi=(e,t,...r)=>{const n=t.startsWith("not."),o=n?t.slice(4):t,i=(e.textContent||"").trim(),a=Sm[o];if(!a)throw new Error(`Unknown assertion: ${o}`);const s=n?"negative":"positive";let l,u;switch(o){case"have.text":l=i===r[0],u=i;break;case"contain.text":l=i.includes(r[0]),u=i;break;case"be.empty":l=i.length===0,u=i;break;case"have.attr":u=e.getAttribute(r[0]),l=u===r[1];break;case"have.value":u=e.value,l=u===r[0];break;case"be.disabled":l=e.disabled===!0;break;case"be.enabled":l=e.disabled===!1;break;case"be.checked":l=e.checked===!0;break;case"be.selected":l=e.selected===!0;break;case"be.focused":l=document.activeElement===e;break;case"be.visible":l=Tm(e);break;case"have.class":l=e.classList.contains(r[0]);break;default:throw new Error(`Unknown assertion: ${o}`)}return na(l,n,a[s].pass(r),a[s].fail(r,u))},fe=e=>{const t=So.handlers.size?Array.from(So.handlers.values()).find(r=>r.status==="running"):null;t&&t.logs?.push(e)},_i="1.6.1",Mm=()=>typeof window<"u"?(window.__TWD_MOCK_STATE__||(window.__TWD_MOCK_STATE__={rules:[],counts:{}}),window.__TWD_MOCK_STATE__):{rules:[],counts:{}},ft=Mm(),Te=ft.rules,Am=100;let Ns=!1;const Om=async e=>{if(Ns){console.warn("[TWD] Request mocking already initialized");return}if("serviceWorker"in navigator){Ns=!0;const t=e??"/mock-sw.js";await navigator.serviceWorker.register(`${t}?v=${_i}`),navigator.serviceWorker.controller||await new Promise(r=>{navigator.serviceWorker.addEventListener("controllerchange",r,{once:!0})}),navigator.serviceWorker.addEventListener("message",r=>{if(r.data?.type==="EXECUTED"){const{alias:n,request:o,hitCount:i}=r.data,a=Te.find(s=>s.alias===n);a&&(a.executed=!0,a.request=o,a.hitCount=i),ft.counts[n]=i??(ft.counts[n]??0)+1}})}},Im=async(e,t)=>{const r={alias:e,...t,executed:!1},n=Te.findIndex(o=>o.alias===e);n!==-1?Te[n]=r:Te.push(r),navigator.serviceWorker.controller?.postMessage({type:"ADD_RULE",rule:r,version:_i}),await ci(Am),await Promise.resolve()},Nm=async e=>await Promise.all(e.map(r=>Pd(r))),Pd=async(e,t=10,r=100)=>{const n=Te.find(l=>l.alias===e);if(!n)throw new Error(`Rule ${e} not found`);for(let l=0;l<t;l++){const u=Te.find(d=>d.alias===e&&d.executed);if(u)return Promise.resolve(u);l<t-1&&await new Promise(d=>setTimeout(d,r))}const o=t*r,i=Te.filter(l=>l.executed).map(l=>`${l.alias} (${l.method} ${l.url})`).join(", "),a=Te.filter(l=>!l.executed).map(l=>`${l.alias} (${l.method} ${l.url})`).join(", "),s=[`Rule "${e}" was not executed within ${o}ms.`,` Expected: ${n.method} ${n.url}`,` Executed rules: ${i||"none"}`,` Not executed rules: ${a||"none"}`].join(`
|
|
2
|
+
`);throw console.log(s),new Error(s)},Td=()=>Te,Sd=()=>{navigator.serviceWorker.controller?.postMessage({type:"CLEAR_RULES",version:_i}),Te.length=0;for(const e in ft.counts)delete ft.counts[e]},km=e=>ft.counts[e]??0,jm=()=>({...ft.counts}),Dm=(e,t)=>{const r=e.startsWith("not.");switch(r?e.slice(4):e){case"eq":return na(window.location.href===t,r,`Assertion passed: URL is ${t}`,`Assertion failed: Expected URL to be ${t}, but got ${window.location.href}`);case"contain.url":return na(window.location.href.includes(t),r,`Assertion passed: URL contains ${t}`,`Assertion failed: Expected URL to contain ${t}, but got ${window.location.href}`);default:throw new Error(`Unknown assertion: ${e}`)}},$m=()=>({location:window.location,should:async(e,t,r=5)=>{let n="",o;for(let i=0;i<r;i++)try{n=Dm(e,t),fe(n);break}catch(a){await new Promise(s=>setTimeout(s,100)),o=a}if(o)throw o;return n}}),Bm=100,Lm=async(e,t)=>{if(fe(`visit("${e}")`),window.location.pathname===e||t){const r=`/__dummy_${Math.random().toString(36).slice(2)}`;window.history.pushState({},"",r),window.dispatchEvent(new PopStateEvent("popstate")),await ci(10)}window.history.pushState({},"",e),window.dispatchEvent(new PopStateEvent("popstate")),await ci(Bm)},oa="twd-viewport-styles",ia="twd-viewport-iframe";let he=null,yt=null;const Fm=()=>{if(he)return;const{style:e}=document.body;he={maxWidth:e.maxWidth,maxHeight:e.maxHeight,minHeight:e.minHeight,overflow:e.overflow,margin:e.margin,boxSizing:e.boxSizing,boxShadow:e.boxShadow}},Um=(e,t)=>{let r=document.getElementById(oa);r||(r=document.createElement("style"),r.id=oa,document.head.appendChild(r));const n=t?`${e} × ${t}`:`${e}`;r.textContent=`
|
|
3
|
+
#twd-viewport-badge {
|
|
4
|
+
position: fixed;
|
|
5
|
+
bottom: 8px;
|
|
6
|
+
left: 50%;
|
|
7
|
+
transform: translateX(-50%);
|
|
8
|
+
background: rgba(37, 99, 235, 0.85);
|
|
9
|
+
color: #fff;
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
font-family: monospace;
|
|
12
|
+
padding: 2px 10px;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
z-index: 99998;
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
}
|
|
18
|
+
`;let o=document.getElementById("twd-viewport-badge");o||(o=document.createElement("div"),o.id="twd-viewport-badge",document.body.appendChild(o)),o.textContent=n},zm=()=>{document.getElementById(oa)?.remove(),document.getElementById("twd-viewport-badge")?.remove()},Vm=(e,t)=>{let r=document.getElementById(ia);return r||(r=document.createElement("iframe"),r.id=ia,r.style.cssText="position:fixed;top:-9999px;left:-9999px;visibility:hidden;pointer-events:none;border:none;",document.body.appendChild(r)),r.style.width=`${e}px`,r.style.height=`${t}px`,r},Hm=()=>{document.getElementById(ia)?.remove()},Wm=(e,t,r)=>{e.originalInnerWidthDesc=Object.getOwnPropertyDescriptor(window,"innerWidth"),e.originalInnerHeightDesc=Object.getOwnPropertyDescriptor(window,"innerHeight"),e.originalMatchMedia=window.matchMedia??null,Object.defineProperty(window,"innerWidth",{get:()=>t,configurable:!0}),r!==void 0&&Object.defineProperty(window,"innerHeight",{get:()=>r,configurable:!0});const n=e.iframe;if(n?.contentWindow?.matchMedia){const o=n.contentWindow.matchMedia.bind(n.contentWindow);window.matchMedia=(i=>o(i))}},Gm=e=>{e.originalInnerWidthDesc?Object.defineProperty(window,"innerWidth",e.originalInnerWidthDesc):delete window.innerWidth,e.originalInnerHeightDesc?Object.defineProperty(window,"innerHeight",e.originalInnerHeightDesc):delete window.innerHeight,e.originalMatchMedia&&(window.matchMedia=e.originalMatchMedia)},Km=(e,t,r)=>{const n=document.styleSheets;for(let o=0;o<n.length;o++){const i=n[o];let a;try{a=i.cssRules}catch{continue}for(let s=a.length-1;s>=0;s--){const l=a[s];l instanceof CSSMediaRule&&Ym(e,i,s,l,t,r)}}},Ym=(e,t,r,n,o,i)=>{const a=n.conditionText??n.media.mediaText;if(!a)return;const s=i(a).matches,l=o(a).matches;if(s===l)return;const u=n.cssText;if(l&&!s){const d=[];for(let c=0;c<n.cssRules.length;c++)d.push(n.cssRules[c].cssText);t.deleteRule(r);let f=0;for(let c=0;c<d.length;c++)try{t.insertRule(d[c],r+c),f++}catch{}e.patches.push({sheet:t,originalIndex:r,originalCssText:u,injectedRulesCount:f})}else!l&&s&&(t.deleteRule(r),e.patches.push({sheet:t,originalIndex:r,originalCssText:u,injectedRulesCount:0}))},Xm=e=>{for(let t=e.patches.length-1;t>=0;t--){const r=e.patches[t],{sheet:n,originalIndex:o,originalCssText:i,injectedRulesCount:a}=r;try{for(let s=0;s<a;s++)n.deleteRule(o);n.insertRule(i,o)}catch{}}},Jm=(e,t)=>{yt&&Md();const r=t??window.innerHeight,n=Vm(e,r),o={patches:[],originalInnerWidthDesc:void 0,originalInnerHeightDesc:void 0,originalMatchMedia:null,iframe:n};yt=o;const i=window.matchMedia?window.matchMedia.bind(window):null;if(Wm(o,e,t),i&&n.contentWindow?.matchMedia){const a=n.contentWindow.matchMedia.bind(n.contentWindow);Km(o,a,i)}window.dispatchEvent(new Event("resize"))},Md=()=>{yt&&(Xm(yt),Gm(yt),Hm(),yt=null,window.dispatchEvent(new Event("resize")))},Qm=(e,t)=>{if(e===void 0){Ad();return}Fm();const{style:r}=document.body;r.maxWidth=`${e}px`,r.margin="0 auto",r.overflow="auto",r.boxSizing="border-box",r.boxShadow="0 0 0 1px rgba(37, 99, 235, 0.4)",t!==void 0?(r.minHeight=`${t}px`,r.maxHeight=`${t}px`):(r.minHeight=he.minHeight,r.maxHeight=he.maxHeight),Jm(e,t),Um(e,t),fe(`viewport(${e}${t!==void 0?`, ${t}`:""})`)},Ad=()=>{if(!he)return;Md();const{style:e}=document.body;e.maxWidth=he.maxWidth,e.maxHeight=he.maxHeight,e.minHeight=he.minHeight,e.overflow=he.overflow,e.margin=he.margin,e.boxSizing=he.boxSizing,e.boxShadow=he.boxShadow,he=null,zm(),fe("resetViewport()")},Zm={get:async e=>{const t=`body > div:not(#twd-sidebar-root) ${e}`;fe(`Searching get("${e}")`);const r=await _m(e,()=>document.querySelector(t)),n={el:r,should:(o,...i)=>{const a=zi(r,o,...i);return fe(a),n}};return n},setInputValue:(e,t)=>{const{set:r}=Object.getOwnPropertyDescriptor(e.__proto__,"value");r.call(e,t),e.dispatchEvent(new Event("input",{bubbles:!0}))},getAll:async e=>{const t=`body > div:not(#twd-sidebar-root) ${e}`;return fe(`Searching getAll("${e}")`),(await Pm(e,()=>document.querySelectorAll(t))).map(n=>{const o={el:n,should:(i,...a)=>{const s=zi(n,i,...a);return fe(s),o}};return o})},visit:Lm,url:$m,mockRequest:Im,waitForRequest:Pd,waitForRequests:Nm,initRequestMocking:Om,clearRequestMockRules:Sd,getRequestMockRules:Td,getRequestCount:km,getRequestCounts:jm,should:(e,t,...r)=>{const n=zi(e,t,...r);fe(n)},wait:ci,mockComponent:j.m,clearComponentMocks:j.c,viewport:Qm,resetViewport:Ad,notExists:async e=>{const t=`body > div:not(#twd-sidebar-root) ${e}`;if(fe(`Checking notExists("${e}")`),document.querySelector(t))throw new Error(`Element "${e}" exists in the DOM.`);fe(`Assertion passed: Element "${e}" does not exist in the DOM.`)}};var Ia=Object.defineProperty,eh=(e,t,r)=>t in e?Ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>Ia(e,"name",{value:t,configurable:!0}),Na=(e,t)=>{for(var r in t)Ia(e,r,{get:t[r],enumerable:!0})},Od=(e,t,r)=>eh(e,typeof t!="symbol"?t+"":t,r),di={};Na(di,{addChainableMethod:()=>Ga,addLengthGuard:()=>Uo,addMethod:()=>Va,addProperty:()=>za,checkError:()=>me,compareByInspect:()=>mi,eql:()=>lf,events:()=>Mi,expectTypes:()=>Fd,flag:()=>U,getActual:()=>Ti,getMessage:()=>Da,getName:()=>Ai,getOperator:()=>Ja,getOwnEnumerableProperties:()=>Xa,getOwnEnumerablePropertySymbols:()=>Ya,getPathInfo:()=>Fa,hasProperty:()=>Si,inspect:()=>H,isNaN:()=>hi,isNumeric:()=>oe,isProxyEnabled:()=>Fo,isRegExp:()=>bi,objDisplay:()=>ct,overwriteChainableMethod:()=>Ka,overwriteMethod:()=>Wa,overwriteProperty:()=>Ha,proxify:()=>At,test:()=>ka,transferFlags:()=>Ce,type:()=>Q});var me={};Na(me,{compatibleConstructor:()=>kd,compatibleInstance:()=>Nd,compatibleMessage:()=>jd,getConstructorName:()=>Dd,getMessage:()=>$d});function Pi(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}x(Pi,"isErrorInstance");function Id(e){return Object.prototype.toString.call(e)==="[object RegExp]"}x(Id,"isRegExp");function Nd(e,t){return Pi(t)&&e===t}x(Nd,"compatibleInstance");function kd(e,t){return Pi(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}x(kd,"compatibleConstructor");function jd(e,t){const r=typeof e=="string"?e:e.message;return Id(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}x(jd,"compatibleMessage");function Dd(e){let t=e;return Pi(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}x(Dd,"getConstructorName");function $d(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}x($d,"getMessage");function U(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}x(U,"flag");function ka(e,t){let r=U(e,"negate"),n=t[0];return r?!n:n}x(ka,"test");function Q(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}x(Q,"type");var th="captureStackTrace"in Error,Bd=class Ld extends Error{constructor(t="Unspecified AssertionError",r,n){super(t),Od(this,"message"),this.message=t,th&&Error.captureStackTrace(this,n||Ld);for(const 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}}};x(Bd,"AssertionError");var G=Bd;function Fd(e,t){let r=U(e,"message"),n=U(e,"ssfi");r=r?r+": ":"",e=U(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let o=t.map(function(a,s){let l=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&s===t.length-1?"or ":"")+l+" "+a}).join(", "),i=Q(e).toLowerCase();if(!t.some(function(a){return i===a}))throw new G(r+"object tested must be "+o+", but "+i+" given",void 0,n)}x(Fd,"expectTypes");function Ti(e,t){return t.length>4?t[4]:e._obj}x(Ti,"getActual");var ks={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"]},rh={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},xt="…";function Ud(e,t){const r=ks[rh[t]]||ks[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}x(Ud,"colorise");function zd({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:s=[],truncate:l=1/0,stylize:u=String}={},d){const f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(l),seen:s,inspect:d,stylize:u};return f.colors&&(f.stylize=Ud),f}x(zd,"normaliseOptions");function Vd(e){return e>="\uD800"&&e<="\uDBFF"}x(Vd,"isHighSurrogate");function Ve(e,t,r=xt){e=String(e);const n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&Vd(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}x(Ve,"truncate");function ge(e,t,r,n=", "){r=r||t.inspect;const o=e.length;if(o===0)return"";const i=t.truncate;let a="",s="",l="";for(let u=0;u<o;u+=1){const d=u+1===e.length,f=u+2===e.length;l=`${xt}(${e.length-u})`;const c=e[u];t.truncate=i-a.length-(d?0:n.length);const b=s||r(c,t)+(d?"":n),g=a.length+b.length,w=g+l.length;if(d&&g>i&&a.length+l.length<=i||!d&&!f&&w>i||(s=d?"":r(e[u+1],t)+(f?"":n),!d&&f&&w>i&&g+s.length>i))break;if(a+=b,!d&&!f&&g+s.length>=i){l=`${xt}(${e.length-u-1})`;break}l=""}return`${a}${l}`}x(ge,"inspectList");function Hd(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}x(Hd,"quoteComplexKey");function Ct([e,t],r){return r.truncate-=2,typeof e=="string"?e=Hd(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}x(Ct,"inspectProperty");function Wd(e,t){const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;const n=ge(e,t);t.truncate-=n.length;let o="";return r.length&&(o=ge(r.map(i=>[i,e[i]]),t,Ct)),`[ ${n}${o?`, ${o}`:""} ]`}x(Wd,"inspectArray");var nh=x(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Pe(e,t){const r=nh(e);t.truncate-=r.length+4;const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){const s=`${t.stylize(Ve(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${xt}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=ge(n.map(a=>[a,e[a]]),t,Ct)),`${r}[ ${o}${i?`, ${i}`:""} ]`}x(Pe,"inspectTypedArray");function Gd(e,t){const r=e.toJSON();if(r===null)return"Invalid Date";const n=r.split("T"),o=n[0];return t.stylize(`${o}T${Ve(n[1],t.truncate-o.length-1)}`,"date")}x(Gd,"inspectDate");function aa(e,t){const r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Ve(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}x(aa,"inspectFunction");function Kd([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}x(Kd,"inspectMapEntry");function Yd(e){const t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}x(Yd,"mapToEntries");function Xd(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${ge(Yd(e),t,Kd)} }`)}x(Xd,"inspectMap");var oh=Number.isNaN||(e=>e!==e);function sa(e,t){return oh(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(Ve(String(e),t.truncate),"number")}x(sa,"inspectNumber");function la(e,t){let r=Ve(e.toString(),t.truncate-1);return r!==xt&&(r+="n"),t.stylize(r,"bigint")}x(la,"inspectBigInt");function Jd(e,t){const r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Ve(o,n)}/${r}`,"regexp")}x(Jd,"inspectRegExp");function Qd(e){const t=[];return e.forEach(r=>{t.push(r)}),t}x(Qd,"arrayFromSet");function Zd(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${ge(Qd(e),t)} }`)}x(Zd,"inspectSet");var js=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ih={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},ah=16;function ef(e){return ih[e]||`\\u${`0000${e.charCodeAt(0).toString(ah)}`.slice(-4)}`}x(ef,"escape");function ua(e,t){return js.test(e)&&(e=e.replace(js,ef)),t.stylize(`'${Ve(e,t.truncate-2)}'`,"string")}x(ua,"inspectString");function ca(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}x(ca,"inspectSymbol");var sh=x(()=>"Promise{…}","getPromiseValue"),lh=sh;function Mo(e,t){const 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);const o=ge(r.map(s=>[s,e[s]]),t,Ct),i=ge(n.map(s=>[s,e[s]]),t,Ct);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}x(Mo,"inspectObject");var Vi=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function tf(e,t){let r="";return Vi&&Vi in e&&(r=e[Vi]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Mo(e,t)}`}x(tf,"inspectClass");function rf(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${ge(e,t)} ]`)}x(rf,"inspectArguments");var uh=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function nf(e,t){const r=Object.getOwnPropertyNames(e).filter(a=>uh.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Ve(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);const i=ge(r.map(a=>[a,e[a]]),t,Ct);return`${n}${o}${i?` { ${i} }`:""}`}x(nf,"inspectObject");function of([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}x(of,"inspectAttribute");function fi(e,t){return ge(e,t,af,`
|
|
19
|
+
`)}x(fi,"inspectNodeCollection");function af(e,t){switch(e.nodeType){case 1:return ja(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}x(af,"inspectNode");function ja(e,t){const r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=ge(r.map(d=>[d,e.getAttribute(d)]),t,of," ")),t.truncate-=s.length;const l=t.truncate;let u=fi(e.children,t);return u&&u.length>l&&(u=`${xt}(${e.children.length})`),`${o}${s}${i}${u}${a}`}x(ja,"inspectHTML");var ch=typeof Symbol=="function"&&typeof Symbol.for=="function",Hi=ch?Symbol.for("chai/inspect"):"@@chai/inspect",Wi=Symbol.for("nodejs.util.inspect.custom"),Ds=new WeakMap,$s={},Bs={undefined:x((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:x((e,t)=>t.stylize("null","null"),"null"),boolean:x((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:x((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:sa,Number:sa,bigint:la,BigInt:la,string:ua,String:ua,function:aa,Function:aa,symbol:ca,Symbol:ca,Array:Wd,Date:Gd,Map:Xd,Set:Zd,RegExp:Jd,Promise:lh,WeakSet:x((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:x((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:rf,Int8Array:Pe,Uint8Array:Pe,Uint8ClampedArray:Pe,Int16Array:Pe,Uint16Array:Pe,Int32Array:Pe,Uint32Array:Pe,Float32Array:Pe,Float64Array:Pe,Generator:x(()=>"","Generator"),DataView:x(()=>"","DataView"),ArrayBuffer:x(()=>"","ArrayBuffer"),Error:nf,HTMLCollection:fi,NodeList:fi},dh=x((e,t,r,n)=>Hi in e&&typeof e[Hi]=="function"?e[Hi](t):Wi in e&&typeof e[Wi]=="function"?e[Wi](t.depth,t,n):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Ds.has(e.constructor)?Ds.get(e.constructor)(e,t):$s[r]?$s[r](e,t):"","inspectCustom"),fh=Object.prototype.toString;function Ao(e,t={}){const r=zd(t,Ao),{customInspect:n}=r;let o=e===null?"null":typeof e;if(o==="object"&&(o=fh.call(e).slice(8,-1)),o in Bs)return Bs[o](e,r);if(n&&e){const a=dh(e,r,o,Ao);if(a)return typeof a=="string"?a:Ao(a,r)}const i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Mo(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?ja(e,r):"constructor"in e?e.constructor!==Object?tf(e,r):Mo(e,r):e===Object(e)?Mo(e,r):r.stylize(String(e),o)}x(Ao,"inspect");var ae={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function H(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:ae.truncateThreshold?ae.truncateThreshold:1/0};return Ao(e,o)}x(H,"inspect");function ct(e){let t=H(e),r=Object.prototype.toString.call(e);if(ae.truncateThreshold&&t.length>=ae.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]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}x(ct,"objDisplay");function Da(e,t){let r=U(e,"negate"),n=U(e,"object"),o=t[3],i=Ti(e,t),a=r?t[2]:t[1],s=U(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return ct(n)}).replace(/#\{act\}/g,function(){return ct(i)}).replace(/#\{exp\}/g,function(){return ct(o)}),s?s+": "+a:a}x(Da,"getMessage");function Ce(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}x(Ce,"transferFlags");function da(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}x(da,"type");function $a(){this._key="chai/deep-eql__"+Math.random()+Date.now()}x($a,"FakeMap");$a.prototype={get:x(function(t){return t[this._key]},"get"),set:x(function(t,r){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:r,configurable:!0})},"set")};var sf=typeof WeakMap=="function"?WeakMap:$a;function fa(e,t,r){if(!r||pt(e)||pt(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}x(fa,"memoizeCompare");function qo(e,t,r,n){if(!(!r||pt(e)||pt(t))){var o=r.get(e);o?o.set(t,n):(o=new sf,o.set(t,n),r.set(e,o))}}x(qo,"memoizeSet");var lf=Lo;function Lo(e,t,r){if(r&&r.comparator)return pa(e,t,r);var n=Ba(e,t);return n!==null?n:pa(e,t,r)}x(Lo,"deepEqual");function Ba(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:pt(e)||pt(t)?!1:null}x(Ba,"simpleEqual");function pa(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new sf;var n=r&&r.comparator,o=fa(e,t,r.memoize);if(o!==null)return o;var i=fa(t,e,r.memoize);if(i!==null)return i;if(n){var a=n(e,t);if(a===!1||a===!0)return qo(e,t,r.memoize,a),a;var s=Ba(e,t);if(s!==null)return s}var l=da(e);if(l!==da(t))return qo(e,t,r.memoize,!1),!1;qo(e,t,r.memoize,!0);var u=uf(e,t,l,r);return qo(e,t,r.memoize,u),u}x(pa,"extensiveDeepEqual");function uf(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Lo(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return La(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 Ze(e,t,n);case"RegExp":return cf(e,t);case"Generator":return df(e,t,n);case"DataView":return Ze(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Ze(new Uint8Array(e),new Uint8Array(t),n);case"Set":return ma(e,t,n);case"Map":return ma(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 pf(e,t,n)}}x(uf,"extensiveDeepEqualByType");function cf(e,t){return e.toString()===t.toString()}x(cf,"regexpEqual");function ma(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(x(function(a,s){n.push([a,s])},"gatherEntries")),t.forEach(x(function(a,s){o.push([a,s])},"gatherEntries")),Ze(n.sort(),o.sort(),r)}x(ma,"entriesEqual");function Ze(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(Lo(e[o],t[o],r)===!1)return!1;return!0}x(Ze,"iterableEqual");function df(e,t,r){return Ze(pi(e),pi(t),r)}x(df,"generatorEqual");function ff(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}x(ff,"hasIteratorFunction");function ha(e){if(ff(e))try{return pi(e[Symbol.iterator]())}catch{return[]}return[]}x(ha,"getIteratorEntries");function pi(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}x(pi,"getGeneratorEntries");function ba(e){var t=[];for(var r in e)t.push(r);return t}x(ba,"getEnumerableKeys");function va(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}x(va,"getEnumerableSymbols");function La(e,t,r,n){var o=r.length;if(o===0)return!0;for(var i=0;i<o;i+=1)if(Lo(e[r[i]],t[r[i]],n)===!1)return!1;return!0}x(La,"keysEqual");function pf(e,t,r){var n=ba(e),o=ba(t),i=va(e),a=va(t);if(n=n.concat(i),o=o.concat(a),n.length&&n.length===o.length)return Ze(ga(n).sort(),ga(o).sort())===!1?!1:La(e,t,n,r);var s=ha(e),l=ha(t);return s.length&&s.length===l.length?(s.sort(),l.sort(),Ze(s,l,r)):n.length===0&&s.length===0&&o.length===0&&l.length===0}x(pf,"objectEqual");function pt(e){return e===null||typeof e!="object"}x(pt,"isPrimitive");function ga(e){return e.map(x(function(r){return typeof r=="symbol"?r.toString():r},"mapSymbol"))}x(ga,"mapSymbols");function Si(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}x(Si,"hasProperty");function mf(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(n=>{if(n==="constructor"||n==="__proto__"||n==="prototype")return{};const i=/^\[(\d+)\]$/.exec(n);let a=null;return i?a={i:parseFloat(i[1])}:a={p:n.replace(/\\([.[\]])/g,"$1")},a})}x(mf,"parsePath");function ya(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let i=0;i<r;i++){const a=t[i];n&&(typeof a.p>"u"?n=n[a.i]:n=n[a.p],i===r-1&&(o=n))}return o}x(ya,"internalGetPathValue");function Fa(e,t){const r=mf(t),n=r[r.length-1],o={parent:r.length>1?ya(e,r,r.length-1):e,name:n.p||n.i,value:ya(e,r)};return o.exists=Si(o.parent,o.name),o}x(Fa,"getPathInfo");var hf=class bf{constructor(t,r,n,o){return Od(this,"__flags",{}),U(this,"ssfi",n||bf),U(this,"lockSsfi",o),U(this,"object",t),U(this,"message",r),U(this,"eql",ae.deepEqual||lf),At(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ae.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ae.includeStack=t}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ae.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ae.showDiff=t}static addProperty(t,r){za(this.prototype,t,r)}static addMethod(t,r){Va(this.prototype,t,r)}static addChainableMethod(t,r,n){Ga(this.prototype,t,r,n)}static overwriteProperty(t,r){Ha(this.prototype,t,r)}static overwriteMethod(t,r){Wa(this.prototype,t,r)}static overwriteChainableMethod(t,r,n){Ka(this.prototype,t,r,n)}assert(t,r,n,o,i,a){const s=ka(this,arguments);if(a!==!1&&(a=!0),o===void 0&&i===void 0&&(a=!1),ae.showDiff!==!0&&(a=!1),!s){r=Da(this,arguments);const u={actual:Ti(this,arguments),expected:o,showDiff:a},d=Ja(this,arguments);throw d&&(u.operator=d),new G(r,u,ae.includeStack?this.assert:U(this,"ssfi"))}}get _obj(){return U(this,"object")}set _obj(t){U(this,"object",t)}};x(hf,"Assertion");var h=hf,Mi=new EventTarget,vf=class extends Event{constructor(t,r,n){super(t),this.name=String(r),this.fn=n}};x(vf,"PluginEvent");var Ua=vf;function Fo(){return ae.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}x(Fo,"isProxyEnabled");function za(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:x(function n(){!Fo()&&!U(this,"lockSsfi")&&U(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let i=new h;return Ce(this,i),i},"propertyGetter"),configurable:!0}),Mi.dispatchEvent(new Ua("addProperty",t,r))}x(za,"addProperty");var ph=Object.getOwnPropertyDescriptor(function(){},"length");function Uo(e,t,r){return ph.configurable&&Object.defineProperty(e,"length",{get:x(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+'".')},"get")}),e}x(Uo,"addLengthGuard");function gf(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}x(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}x(gf,"getProperties");var Ls=["__flags","__methods","_obj","assert"];function At(e,t){return Fo()?new Proxy(e,{get:x(function r(n,o){if(typeof o=="string"&&ae.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,a=4;throw gf(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&Ls.indexOf(s)===-1){let l=yf(o,s,a);l<a&&(i=s,a=l)}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return Ls.indexOf(o)===-1&&!U(n,"lockSsfi")&&U(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}x(At,"proxify");function yf(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let a=1;a<=t.length;a++){if(Math.abs(o-a)>=r){n[o][a]=r;continue}n[o][a]=Math.min(n[o-1][a]+1,n[o][a-1]+1,n[o-1][a-1]+(i===t.charCodeAt(a-1)?0:1))}}return n[e.length][t.length]}x(yf,"stringDistanceCapped");function Va(e,t,r){let n=x(function(){U(this,"lockSsfi")||U(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let i=new h;return Ce(this,i),i},"methodWrapper");Uo(n,t,!1),e[t]=At(n,t),Mi.dispatchEvent(new Ua("addMethod",t,r))}x(Va,"addMethod");function Ha(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=x(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:x(function i(){!Fo()&&!U(this,"lockSsfi")&&U(this,"ssfi",i);let a=U(this,"lockSsfi");U(this,"lockSsfi",!0);let s=r(o).call(this);if(U(this,"lockSsfi",a),s!==void 0)return s;let l=new h;return Ce(this,l),l},"overwritingPropertyGetter"),configurable:!0})}x(Ha,"overwriteProperty");function Wa(e,t,r){let n=e[t],o=x(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let i=x(function(){U(this,"lockSsfi")||U(this,"ssfi",i);let a=U(this,"lockSsfi");U(this,"lockSsfi",!0);let s=r(o).apply(this,arguments);if(U(this,"lockSsfi",a),s!==void 0)return s;let l=new h;return Ce(this,l),l},"overwritingMethodWrapper");Uo(i,t,!1),e[t]=At(i,t)}x(Wa,"overwriteMethod");var mh=typeof Object.setPrototypeOf=="function",Fs=x(function(){},"testFn"),hh=Object.getOwnPropertyNames(Fs).filter(function(e){let t=Object.getOwnPropertyDescriptor(Fs,e);return typeof t!="object"?!0:!t.configurable}),bh=Function.prototype.call,vh=Function.prototype.apply,wf=class extends Ua{constructor(t,r,n,o){super(t,r,n),this.chainingBehavior=o}};x(wf,"PluginAddChainableMethodEvent");var gh=wf;function Ga(e,t,r,n){typeof n!="function"&&(n=x(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:x(function(){o.chainingBehavior.call(this);let a=x(function(){U(this,"lockSsfi")||U(this,"ssfi",a);let s=o.method.apply(this,arguments);if(s!==void 0)return s;let l=new h;return Ce(this,l),l},"chainableMethodWrapper");if(Uo(a,t,!0),mh){let s=Object.create(this);s.call=bh,s.apply=vh,Object.setPrototypeOf(a,s)}else Object.getOwnPropertyNames(e).forEach(function(l){if(hh.indexOf(l)!==-1)return;let u=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,u)});return Ce(this,a),At(a)},"chainableMethodGetter"),configurable:!0}),Mi.dispatchEvent(new gh("addChainableMethod",t,r,n))}x(Ga,"addChainableMethod");function Ka(e,t,r,n){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=x(function(){let l=n(i).call(this);if(l!==void 0)return l;let u=new h;return Ce(this,u),u},"overwritingChainableMethodGetter");let a=o.method;o.method=x(function(){let l=r(a).apply(this,arguments);if(l!==void 0)return l;let u=new h;return Ce(this,u),u},"overwritingChainableMethodWrapper")}x(Ka,"overwriteChainableMethod");function mi(e,t){return H(e)<H(t)?-1:1}x(mi,"compareByInspect");function Ya(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}x(Ya,"getOwnEnumerablePropertySymbols");function Xa(e){return Object.keys(e).concat(Ya(e))}x(Xa,"getOwnEnumerableProperties");var hi=Number.isNaN;function Rf(e){let t=Q(e);return["Array","Object","Function"].indexOf(t)!==-1}x(Rf,"isObjectType");function Ja(e,t){let r=U(e,"operator"),n=U(e,"negate"),o=t[3],i=n?t[2]:t[1];if(r)return r;if(typeof i=="function"&&(i=i()),i=i||"",!i||/\shave\s/.test(i))return;let a=Rf(o);return/\snot\s/.test(i)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}x(Ja,"getOperator");function Ai(e){return e.name}x(Ai,"getName");function bi(e){return Object.prototype.toString.call(e)==="[object RegExp]"}x(bi,"isRegExp");function oe(e){return["Number","BigInt"].includes(Q(e))}x(oe,"isNumeric");var{flag:E}=di;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){h.addProperty(e)});h.addProperty("not",function(){E(this,"negate",!0)});h.addProperty("deep",function(){E(this,"deep",!0)});h.addProperty("nested",function(){E(this,"nested",!0)});h.addProperty("own",function(){E(this,"own",!0)});h.addProperty("ordered",function(){E(this,"ordered",!0)});h.addProperty("any",function(){E(this,"any",!0),E(this,"all",!1)});h.addProperty("all",function(){E(this,"all",!0),E(this,"any",!1)});var Us={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Qa(e,t){t&&E(this,"message",t),e=e.toLowerCase();let r=E(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const o=Q(r).toLowerCase();Us.function.includes(e)?this.assert(Us[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)}x(Qa,"an");h.addChainableMethod("an",Qa);h.addChainableMethod("a",Qa);function Ef(e,t){return hi(e)&&hi(t)||e===t}x(Ef,"SameValueZero");function zo(){E(this,"contains",!0)}x(zo,"includeChainingBehavior");function Vo(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=Q(r).toLowerCase(),o=E(this,"message"),i=E(this,"negate"),a=E(this,"ssfi"),s=E(this,"deep"),l=s?"deep ":"",u=s?E(this,"eql"):Ef;o=o?o+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new G(o+"unable to use .deep.include with WeakSet",void 0,a);d=r.has(e);break;case"map":r.forEach(function(f){d=d||u(f,e)});break;case"set":s?r.forEach(function(f){d=d||u(f,e)}):d=r.has(e);break;case"array":s?d=r.some(function(f){return u(f,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new G(o+"the given combination of arguments ("+n+" and "+Q(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 "+Q(e).toLowerCase(),void 0,a);let f=Object.keys(e),c=null,b=0;if(f.forEach(function(g){let w=new h(r);if(Ce(this,w,!0),E(w,"lockSsfi",!0),!i||f.length===1){w.property(g,e[g]);return}try{w.property(g,e[g])}catch(S){if(!me.compatibleConstructor(S,G))throw S;c===null&&(c=S),b++}},this),i&&f.length>1&&b===f.length)throw c;return}}this.assert(d,"expected #{this} to "+l+"include "+H(e),"expected #{this} to not "+l+"include "+H(e))}x(Vo,"include");h.addChainableMethod("include",Vo,zo);h.addChainableMethod("contain",Vo,zo);h.addChainableMethod("contains",Vo,zo);h.addChainableMethod("includes",Vo,zo);h.addProperty("ok",function(){this.assert(E(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});h.addProperty("true",function(){this.assert(E(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!E(this,"negate"))});h.addProperty("numeric",function(){const e=E(this,"object");this.assert(["Number","BigInt"].includes(Q(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!E(this,"negate"))});h.addProperty("callable",function(){const e=E(this,"object"),t=E(this,"ssfi"),r=E(this,"message"),n=r?`${r}: `:"",o=E(this,"negate"),i=o?`${n}expected ${H(e)} not to be a callable function`:`${n}expected ${H(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Q(e));if(a&&o||!a&&!o)throw new G(i,void 0,t)});h.addProperty("false",function(){this.assert(E(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!E(this,"negate"))});h.addProperty("null",function(){this.assert(E(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});h.addProperty("undefined",function(){this.assert(E(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});h.addProperty("NaN",function(){this.assert(hi(E(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Za(){let e=E(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}x(Za,"assertExist");h.addProperty("exist",Za);h.addProperty("exists",Za);h.addProperty("empty",function(){let e=E(this,"object"),t=E(this,"ssfi"),r=E(this,"message"),n;switch(r=r?r+": ":"",Q(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new G(r+".empty was passed a weak collection",void 0,t);case"function":{const o=r+".empty was passed a function "+Ai(e);throw new G(o.trim(),void 0,t)}default:if(e!==Object(e))throw new G(r+".empty was passed non-string primitive "+H(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 es(){let e=E(this,"object"),t=Q(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}x(es,"checkArguments");h.addProperty("arguments",es);h.addProperty("Arguments",es);function Oi(e,t){t&&E(this,"message",t);let r=E(this,"object");if(E(this,"deep")){let n=E(this,"lockSsfi");E(this,"lockSsfi",!0),this.eql(e),E(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}x(Oi,"assertEqual");h.addMethod("equal",Oi);h.addMethod("equals",Oi);h.addMethod("eq",Oi);function ts(e,t){t&&E(this,"message",t);let r=E(this,"eql");this.assert(r(e,E(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}x(ts,"assertEql");h.addMethod("eql",ts);h.addMethod("eqls",ts);function Ii(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"doLength"),o=E(this,"message"),i=o?o+": ":"",a=E(this,"ssfi"),s=Q(r).toLowerCase(),l=Q(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new h(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")throw new G(i+"the argument to above must be a date",void 0,a);if(!oe(e)&&(n||oe(r)))throw new G(i+"the argument to above must be a number",void 0,a);if(!n&&s!=="date"&&!oe(r)){let u=s==="string"?"'"+r+"'":r;throw new G(i+"expected "+u+" to be a number or a date",void 0,a)}if(n){let 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)}x(Ii,"assertAbove");h.addMethod("above",Ii);h.addMethod("gt",Ii);h.addMethod("greaterThan",Ii);function Ni(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"doLength"),o=E(this,"message"),i=o?o+": ":"",a=E(this,"ssfi"),s=Q(r).toLowerCase(),l=Q(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new h(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=i+"the argument to least must be a date";else if(!oe(e)&&(n||oe(r)))u=i+"the argument to least must be a number";else if(!n&&s!=="date"&&!oe(r)){let f=s==="string"?"'"+r+"'":r;u=i+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new G(u,void 0,a);if(n){let f="length",c;s==="map"||s==="set"?(f="size",c=r.size):c=r.length,this.assert(c>=e,"expected #{this} to have a "+f+" at least #{exp} but got #{act}","expected #{this} to have a "+f+" below #{exp}",e,c)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}x(Ni,"assertLeast");h.addMethod("least",Ni);h.addMethod("gte",Ni);h.addMethod("greaterThanOrEqual",Ni);function ki(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"doLength"),o=E(this,"message"),i=o?o+": ":"",a=E(this,"ssfi"),s=Q(r).toLowerCase(),l=Q(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new h(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=i+"the argument to below must be a date";else if(!oe(e)&&(n||oe(r)))u=i+"the argument to below must be a number";else if(!n&&s!=="date"&&!oe(r)){let f=s==="string"?"'"+r+"'":r;u=i+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new G(u,void 0,a);if(n){let f="length",c;s==="map"||s==="set"?(f="size",c=r.size):c=r.length,this.assert(c<e,"expected #{this} to have a "+f+" below #{exp} but got #{act}","expected #{this} to not have a "+f+" below #{exp}",e,c)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}x(ki,"assertBelow");h.addMethod("below",ki);h.addMethod("lt",ki);h.addMethod("lessThan",ki);function ji(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"doLength"),o=E(this,"message"),i=o?o+": ":"",a=E(this,"ssfi"),s=Q(r).toLowerCase(),l=Q(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new h(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=i+"the argument to most must be a date";else if(!oe(e)&&(n||oe(r)))u=i+"the argument to most must be a number";else if(!n&&s!=="date"&&!oe(r)){let f=s==="string"?"'"+r+"'":r;u=i+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new G(u,void 0,a);if(n){let f="length",c;s==="map"||s==="set"?(f="size",c=r.size):c=r.length,this.assert(c<=e,"expected #{this} to have a "+f+" at most #{exp} but got #{act}","expected #{this} to have a "+f+" above #{exp}",e,c)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}x(ji,"assertMost");h.addMethod("most",ji);h.addMethod("lte",ji);h.addMethod("lessThanOrEqual",ji);h.addMethod("within",function(e,t,r){r&&E(this,"message",r);let n=E(this,"object"),o=E(this,"doLength"),i=E(this,"message"),a=i?i+": ":"",s=E(this,"ssfi"),l=Q(n).toLowerCase(),u=Q(e).toLowerCase(),d=Q(t).toLowerCase(),f,c=!0,b=u==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new h(n,i,s,!0).to.have.property("length"),!o&&l==="date"&&(u!=="date"||d!=="date"))f=a+"the arguments to within must be dates";else if((!oe(e)||!oe(t))&&(o||oe(n)))f=a+"the arguments to within must be numbers";else if(!o&&l!=="date"&&!oe(n)){let g=l==="string"?"'"+n+"'":n;f=a+"expected "+g+" to be a number or a date"}else c=!1;if(c)throw new G(f,void 0,s);if(o){let g="length",w;l==="map"||l==="set"?(g="size",w=n.size):w=n.length,this.assert(w>=e&&w<=t,"expected #{this} to have a "+g+" within "+b,"expected #{this} to not have a "+g+" within "+b)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+b,"expected #{this} to not be within "+b)});function rs(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"ssfi"),o=E(this,"message"),i;try{i=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new G(o+"The instanceof assertion needs a constructor but "+Q(e)+" was given.",void 0,n)):s}let a=Ai(e);a==null&&(a="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}x(rs,"assertInstanceOf");h.addMethod("instanceof",rs);h.addMethod("instanceOf",rs);function ns(e,t,r){r&&E(this,"message",r);let n=E(this,"nested"),o=E(this,"own"),i=E(this,"message"),a=E(this,"object"),s=E(this,"ssfi"),l=typeof e;if(i=i?i+": ":"",n){if(l!=="string")throw new G(i+"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 G(i+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new G(i+'The "nested" and "own" flags cannot be combined.',void 0,s);if(a==null)throw new G(i+"Target cannot be null or undefined.",void 0,s);let u=E(this,"deep"),d=E(this,"negate"),f=n?Fa(a,e):null,c=n?f.value:a[e],b=u?E(this,"eql"):(S,p)=>S===p,g="";u&&(g+="deep "),o&&(g+="own "),n&&(g+="nested "),g+="property ";let w;o?w=Object.prototype.hasOwnProperty.call(a,e):n?w=f.exists:w=Si(a,e),(!d||arguments.length===1)&&this.assert(w,"expected #{this} to have "+g+H(e),"expected #{this} to not have "+g+H(e)),arguments.length>1&&this.assert(w&&b(t,c),"expected #{this} to have "+g+H(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+H(e)+" of #{act}",t,c),E(this,"object",c)}x(ns,"assertProperty");h.addMethod("property",ns);function os(e,t,r){E(this,"own",!0),ns.apply(this,arguments)}x(os,"assertOwnProperty");h.addMethod("ownProperty",os);h.addMethod("haveOwnProperty",os);function is(e,t,r){typeof t=="string"&&(r=t,t=null),r&&E(this,"message",r);let n=E(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=E(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+H(e)+" on #{this} to match "+H(t)+", got "+H(o),"expected the own property descriptor for "+H(e)+" on #{this} to not match "+H(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+H(e),"expected #{this} to not have an own property descriptor for "+H(e)),E(this,"object",o)}x(is,"assertOwnPropertyDescriptor");h.addMethod("ownPropertyDescriptor",is);h.addMethod("haveOwnPropertyDescriptor",is);function as(){E(this,"doLength",!0)}x(as,"assertLengthChain");function ss(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=Q(r).toLowerCase(),o=E(this,"message"),i=E(this,"ssfi"),a="length",s;switch(n){case"map":case"set":a="size",s=r.size;break;default:new h(r,o,i,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,s)}x(ss,"assertLength");h.addChainableMethod("length",ss,as);h.addChainableMethod("lengthOf",ss,as);function ls(e,t){t&&E(this,"message",t);let r=E(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}x(ls,"assertMatch");h.addMethod("match",ls);h.addMethod("matches",ls);h.addMethod("string",function(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"message"),o=E(this,"ssfi");new h(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+H(e),"expected #{this} to not contain "+H(e))});function us(e){let t=E(this,"object"),r=Q(t),n=Q(e),o=E(this,"ssfi"),i=E(this,"deep"),a,s="",l,u=!0,d=E(this,"message");d=d?d+": ":"";let f=d+"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=i?"deeply ":"",l=[],t.forEach(function(p,q){l.push(q)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(l=Xa(t),n){case"Array":if(arguments.length>1)throw new G(f,void 0,o);break;case"Object":if(arguments.length>1)throw new G(f,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(p){return typeof p=="symbol"?p:String(p)})}if(!e.length)throw new G(d+"keys required",void 0,o);let c=e.length,b=E(this,"any"),g=E(this,"all"),w=e,S=i?E(this,"eql"):(p,q)=>p===q;if(!b&&!g&&(g=!0),b&&(u=w.some(function(p){return l.some(function(q){return S(p,q)})})),g&&(u=w.every(function(p){return l.some(function(q){return S(p,q)})}),E(this,"contains")||(u=u&&e.length==l.length)),c>1){e=e.map(function(q){return H(q)});let p=e.pop();g&&(a=e.join(", ")+", and "+p),b&&(a=e.join(", ")+", or "+p)}else a=H(e[0]);a=(c>1?"keys ":"key ")+a,a=(E(this,"contains")?"contain ":"have ")+a,this.assert(u,"expected #{this} to "+s+a,"expected #{this} to not "+s+a,w.slice(0).sort(mi),l.sort(mi),!0)}x(us,"assertKeys");h.addMethod("keys",us);h.addMethod("key",us);function Di(e,t,r){r&&E(this,"message",r);let n=E(this,"object"),o=E(this,"ssfi"),i=E(this,"message"),a=E(this,"negate")||!1;new h(n,i,o,!0).is.a("function"),(bi(e)||typeof e=="string")&&(t=e,e=null);let s,l=!1;try{n()}catch(b){l=!0,s=b}let u=e===void 0&&t===void 0,d=!!(e&&t),f=!1,c=!1;if(u||!u&&!a){let b="an error";e instanceof Error?b="#{exp}":e&&(b=me.getConstructorName(e));let g=s;if(s instanceof Error)g=s.toString();else if(typeof s=="string")g=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{g=me.getConstructorName(s)}catch{}this.assert(l,"expected #{this} to throw "+b,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),g)}if(e&&s&&(e instanceof Error&&me.compatibleInstance(s,e)===a&&(d&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!a?" but #{act} was thrown":""),e.toString(),s.toString())),me.compatibleConstructor(s,e)===a&&(d&&a?f=!0:this.assert(a,"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&&me.getConstructorName(e),s instanceof Error?s.toString():s&&me.getConstructorName(s)))),s&&t!==void 0&&t!==null){let b="including";bi(t)&&(b="matching"),me.compatibleMessage(s,t)===a&&(d&&a?c=!0:this.assert(a,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",t,me.getMessage(s)))}f&&c&&this.assert(a,"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&&me.getConstructorName(e),s instanceof Error?s.toString():s&&me.getConstructorName(s)),E(this,"object",s)}x(Di,"assertThrows");h.addMethod("throw",Di);h.addMethod("throws",Di);h.addMethod("Throw",Di);function cs(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+H(e),"expected #{this} to not respond to "+H(e))}x(cs,"respondTo");h.addMethod("respondTo",cs);h.addMethod("respondsTo",cs);h.addProperty("itself",function(){E(this,"itself",!0)});function ds(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+ct(e),"expected #{this} to not satisfy"+ct(e),!E(this,"negate"),n)}x(ds,"satisfy");h.addMethod("satisfy",ds);h.addMethod("satisfies",ds);function fs(e,t,r){r&&E(this,"message",r);let n=E(this,"object"),o=E(this,"message"),i=E(this,"ssfi");new h(n,o,i,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new G(o?`${o}: ${a}`:a,void 0,i);if(new h(t,o,i,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new G(o?`${o}: ${a}`:a,void 0,i);new h(e,o,i,!0).is.numeric;const s=x(u=>u<0?-u:u,"abs"),l=x(u=>parseFloat(parseFloat(u).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)}x(fs,"closeTo");h.addMethod("closeTo",fs);h.addMethod("approximately",fs);function xf(e,t,r,n,o){let i=Array.from(t),a=Array.from(e);if(!n){if(a.length!==i.length)return!1;i=i.slice()}return a.every(function(s,l){if(o)return r?r(s,i[l]):s===i[l];if(!r){let u=i.indexOf(s);return u===-1?!1:(n||i.splice(u,1),!0)}return i.some(function(u,d){return r(s,u)?(n||i.splice(d,1),!0):!1})})}x(xf,"isSubsetOf");h.addMethod("members",function(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"message"),o=E(this,"ssfi");new h(r,n,o,!0).to.be.iterable,new h(e,n,o,!0).to.be.iterable;let i=E(this,"contains"),a=E(this,"ordered"),s,l,u;i?(s=a?"an ordered superset":"a superset",l="expected #{this} to be "+s+" of #{exp}",u="expected #{this} to not be "+s+" of #{exp}"):(s=a?"ordered members":"members",l="expected #{this} to have the same "+s+" as #{exp}",u="expected #{this} to not have the same "+s+" as #{exp}");let d=E(this,"deep")?E(this,"eql"):void 0;this.assert(xf(e,r,d,i,a),l,u,e,r,!0)});h.addProperty("iterable",function(e){e&&E(this,"message",e);let t=E(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Cf(e,t){t&&E(this,"message",t);let r=E(this,"object"),n=E(this,"message"),o=E(this,"ssfi"),i=E(this,"contains"),a=E(this,"deep"),s=E(this,"eql");new h(e,n,o,!0).to.be.an("array"),i?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):a?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)}x(Cf,"oneOf");h.addMethod("oneOf",Cf);function ps(e,t,r){r&&E(this,"message",r);let n=E(this,"object"),o=E(this,"message"),i=E(this,"ssfi");new h(n,o,i,!0).is.a("function");let a;t?(new h(e,o,i,!0).to.have.property(t),a=e[t]):(new h(e,o,i,!0).is.a("function"),a=e()),n();let s=t==null?e():e[t],l=t==null?a:"."+t;E(this,"deltaMsgObj",l),E(this,"initialDeltaValue",a),E(this,"finalDeltaValue",s),E(this,"deltaBehavior","change"),E(this,"realDelta",s!==a),this.assert(a!==s,"expected "+l+" to change","expected "+l+" to not change")}x(ps,"assertChanges");h.addMethod("change",ps);h.addMethod("changes",ps);function ms(e,t,r){r&&E(this,"message",r);let n=E(this,"object"),o=E(this,"message"),i=E(this,"ssfi");new h(n,o,i,!0).is.a("function");let a;t?(new h(e,o,i,!0).to.have.property(t),a=e[t]):(new h(e,o,i,!0).is.a("function"),a=e()),new h(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],l=t==null?a:"."+t;E(this,"deltaMsgObj",l),E(this,"initialDeltaValue",a),E(this,"finalDeltaValue",s),E(this,"deltaBehavior","increase"),E(this,"realDelta",s-a),this.assert(s-a>0,"expected "+l+" to increase","expected "+l+" to not increase")}x(ms,"assertIncreases");h.addMethod("increase",ms);h.addMethod("increases",ms);function hs(e,t,r){r&&E(this,"message",r);let n=E(this,"object"),o=E(this,"message"),i=E(this,"ssfi");new h(n,o,i,!0).is.a("function");let a;t?(new h(e,o,i,!0).to.have.property(t),a=e[t]):(new h(e,o,i,!0).is.a("function"),a=e()),new h(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],l=t==null?a:"."+t;E(this,"deltaMsgObj",l),E(this,"initialDeltaValue",a),E(this,"finalDeltaValue",s),E(this,"deltaBehavior","decrease"),E(this,"realDelta",a-s),this.assert(s-a<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}x(hs,"assertDecreases");h.addMethod("decrease",hs);h.addMethod("decreases",hs);function qf(e,t){t&&E(this,"message",t);let r=E(this,"deltaMsgObj"),n=E(this,"initialDeltaValue"),o=E(this,"finalDeltaValue"),i=E(this,"deltaBehavior"),a=E(this,"realDelta"),s;i==="change"?s=Math.abs(o-n)===Math.abs(e):s=a===Math.abs(e),this.assert(s,"expected "+r+" to "+i+" by "+e,"expected "+r+" to not "+i+" by "+e)}x(qf,"assertDelta");h.addMethod("by",qf);h.addProperty("extensible",function(){let e=E(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});h.addProperty("sealed",function(){let e=E(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});h.addProperty("frozen",function(){let e=E(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});h.addProperty("finite",function(e){let t=E(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 vi(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 vi(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?vi(n,o):typeof n=="function"?n(o):o===n}):!1}x(vi,"compareSubset");h.addMethod("containSubset",function(e){const t=U(this,"object"),r=ae.showDiff;this.assert(vi(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Io(e,t){return new h(e,t)}x(Io,"expect");Io.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new G(r,{actual:e,expected:t,operator:n},Io.fail)};var _f={};Na(_f,{Should:()=>wh,should:()=>yh});function bs(){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 h(this.valueOf(),null,e):new h(this,null,e)}x(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}x(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,o,i,a){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new G(i,{actual:n,expected:o,operator:a},r.fail)},r.equal=function(n,o,i){new h(n,i).to.equal(o)},r.Throw=function(n,o,i,a){new h(n,a).to.Throw(o,i)},r.exist=function(n,o){new h(n,o).to.exist},r.not={},r.not.equal=function(n,o,i){new h(n,i).to.not.equal(o)},r.not.Throw=function(n,o,i,a){new h(n,a).to.not.Throw(o,i)},r.not.exist=function(n,o){new h(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}x(bs,"loadShould");var yh=bs,wh=bs;function m(e,t){new h(null,null,m,!0).assert(e,t,"[ negation message unavailable ]")}x(m,"assert");m.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new G(r,{actual:e,expected:t,operator:n},m.fail)};m.isOk=function(e,t){new h(e,t,m.isOk,!0).is.ok};m.isNotOk=function(e,t){new h(e,t,m.isNotOk,!0).is.not.ok};m.equal=function(e,t,r){let n=new h(e,r,m.equal,!0);n.assert(t==U(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};m.notEqual=function(e,t,r){let n=new h(e,r,m.notEqual,!0);n.assert(t!=U(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};m.strictEqual=function(e,t,r){new h(e,r,m.strictEqual,!0).to.equal(t)};m.notStrictEqual=function(e,t,r){new h(e,r,m.notStrictEqual,!0).to.not.equal(t)};m.deepEqual=m.deepStrictEqual=function(e,t,r){new h(e,r,m.deepEqual,!0).to.eql(t)};m.notDeepEqual=function(e,t,r){new h(e,r,m.notDeepEqual,!0).to.not.eql(t)};m.isAbove=function(e,t,r){new h(e,r,m.isAbove,!0).to.be.above(t)};m.isAtLeast=function(e,t,r){new h(e,r,m.isAtLeast,!0).to.be.least(t)};m.isBelow=function(e,t,r){new h(e,r,m.isBelow,!0).to.be.below(t)};m.isAtMost=function(e,t,r){new h(e,r,m.isAtMost,!0).to.be.most(t)};m.isTrue=function(e,t){new h(e,t,m.isTrue,!0).is.true};m.isNotTrue=function(e,t){new h(e,t,m.isNotTrue,!0).to.not.equal(!0)};m.isFalse=function(e,t){new h(e,t,m.isFalse,!0).is.false};m.isNotFalse=function(e,t){new h(e,t,m.isNotFalse,!0).to.not.equal(!1)};m.isNull=function(e,t){new h(e,t,m.isNull,!0).to.equal(null)};m.isNotNull=function(e,t){new h(e,t,m.isNotNull,!0).to.not.equal(null)};m.isNaN=function(e,t){new h(e,t,m.isNaN,!0).to.be.NaN};m.isNotNaN=function(e,t){new h(e,t,m.isNotNaN,!0).not.to.be.NaN};m.exists=function(e,t){new h(e,t,m.exists,!0).to.exist};m.notExists=function(e,t){new h(e,t,m.notExists,!0).to.not.exist};m.isUndefined=function(e,t){new h(e,t,m.isUndefined,!0).to.equal(void 0)};m.isDefined=function(e,t){new h(e,t,m.isDefined,!0).to.not.equal(void 0)};m.isCallable=function(e,t){new h(e,t,m.isCallable,!0).is.callable};m.isNotCallable=function(e,t){new h(e,t,m.isNotCallable,!0).is.not.callable};m.isObject=function(e,t){new h(e,t,m.isObject,!0).to.be.a("object")};m.isNotObject=function(e,t){new h(e,t,m.isNotObject,!0).to.not.be.a("object")};m.isArray=function(e,t){new h(e,t,m.isArray,!0).to.be.an("array")};m.isNotArray=function(e,t){new h(e,t,m.isNotArray,!0).to.not.be.an("array")};m.isString=function(e,t){new h(e,t,m.isString,!0).to.be.a("string")};m.isNotString=function(e,t){new h(e,t,m.isNotString,!0).to.not.be.a("string")};m.isNumber=function(e,t){new h(e,t,m.isNumber,!0).to.be.a("number")};m.isNotNumber=function(e,t){new h(e,t,m.isNotNumber,!0).to.not.be.a("number")};m.isNumeric=function(e,t){new h(e,t,m.isNumeric,!0).is.numeric};m.isNotNumeric=function(e,t){new h(e,t,m.isNotNumeric,!0).is.not.numeric};m.isFinite=function(e,t){new h(e,t,m.isFinite,!0).to.be.finite};m.isBoolean=function(e,t){new h(e,t,m.isBoolean,!0).to.be.a("boolean")};m.isNotBoolean=function(e,t){new h(e,t,m.isNotBoolean,!0).to.not.be.a("boolean")};m.typeOf=function(e,t,r){new h(e,r,m.typeOf,!0).to.be.a(t)};m.notTypeOf=function(e,t,r){new h(e,r,m.notTypeOf,!0).to.not.be.a(t)};m.instanceOf=function(e,t,r){new h(e,r,m.instanceOf,!0).to.be.instanceOf(t)};m.notInstanceOf=function(e,t,r){new h(e,r,m.notInstanceOf,!0).to.not.be.instanceOf(t)};m.include=function(e,t,r){new h(e,r,m.include,!0).include(t)};m.notInclude=function(e,t,r){new h(e,r,m.notInclude,!0).not.include(t)};m.deepInclude=function(e,t,r){new h(e,r,m.deepInclude,!0).deep.include(t)};m.notDeepInclude=function(e,t,r){new h(e,r,m.notDeepInclude,!0).not.deep.include(t)};m.nestedInclude=function(e,t,r){new h(e,r,m.nestedInclude,!0).nested.include(t)};m.notNestedInclude=function(e,t,r){new h(e,r,m.notNestedInclude,!0).not.nested.include(t)};m.deepNestedInclude=function(e,t,r){new h(e,r,m.deepNestedInclude,!0).deep.nested.include(t)};m.notDeepNestedInclude=function(e,t,r){new h(e,r,m.notDeepNestedInclude,!0).not.deep.nested.include(t)};m.ownInclude=function(e,t,r){new h(e,r,m.ownInclude,!0).own.include(t)};m.notOwnInclude=function(e,t,r){new h(e,r,m.notOwnInclude,!0).not.own.include(t)};m.deepOwnInclude=function(e,t,r){new h(e,r,m.deepOwnInclude,!0).deep.own.include(t)};m.notDeepOwnInclude=function(e,t,r){new h(e,r,m.notDeepOwnInclude,!0).not.deep.own.include(t)};m.match=function(e,t,r){new h(e,r,m.match,!0).to.match(t)};m.notMatch=function(e,t,r){new h(e,r,m.notMatch,!0).to.not.match(t)};m.property=function(e,t,r){new h(e,r,m.property,!0).to.have.property(t)};m.notProperty=function(e,t,r){new h(e,r,m.notProperty,!0).to.not.have.property(t)};m.propertyVal=function(e,t,r,n){new h(e,n,m.propertyVal,!0).to.have.property(t,r)};m.notPropertyVal=function(e,t,r,n){new h(e,n,m.notPropertyVal,!0).to.not.have.property(t,r)};m.deepPropertyVal=function(e,t,r,n){new h(e,n,m.deepPropertyVal,!0).to.have.deep.property(t,r)};m.notDeepPropertyVal=function(e,t,r,n){new h(e,n,m.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};m.ownProperty=function(e,t,r){new h(e,r,m.ownProperty,!0).to.have.own.property(t)};m.notOwnProperty=function(e,t,r){new h(e,r,m.notOwnProperty,!0).to.not.have.own.property(t)};m.ownPropertyVal=function(e,t,r,n){new h(e,n,m.ownPropertyVal,!0).to.have.own.property(t,r)};m.notOwnPropertyVal=function(e,t,r,n){new h(e,n,m.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};m.deepOwnPropertyVal=function(e,t,r,n){new h(e,n,m.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};m.notDeepOwnPropertyVal=function(e,t,r,n){new h(e,n,m.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};m.nestedProperty=function(e,t,r){new h(e,r,m.nestedProperty,!0).to.have.nested.property(t)};m.notNestedProperty=function(e,t,r){new h(e,r,m.notNestedProperty,!0).to.not.have.nested.property(t)};m.nestedPropertyVal=function(e,t,r,n){new h(e,n,m.nestedPropertyVal,!0).to.have.nested.property(t,r)};m.notNestedPropertyVal=function(e,t,r,n){new h(e,n,m.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};m.deepNestedPropertyVal=function(e,t,r,n){new h(e,n,m.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};m.notDeepNestedPropertyVal=function(e,t,r,n){new h(e,n,m.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};m.lengthOf=function(e,t,r){new h(e,r,m.lengthOf,!0).to.have.lengthOf(t)};m.hasAnyKeys=function(e,t,r){new h(e,r,m.hasAnyKeys,!0).to.have.any.keys(t)};m.hasAllKeys=function(e,t,r){new h(e,r,m.hasAllKeys,!0).to.have.all.keys(t)};m.containsAllKeys=function(e,t,r){new h(e,r,m.containsAllKeys,!0).to.contain.all.keys(t)};m.doesNotHaveAnyKeys=function(e,t,r){new h(e,r,m.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};m.doesNotHaveAllKeys=function(e,t,r){new h(e,r,m.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};m.hasAnyDeepKeys=function(e,t,r){new h(e,r,m.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};m.hasAllDeepKeys=function(e,t,r){new h(e,r,m.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};m.containsAllDeepKeys=function(e,t,r){new h(e,r,m.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};m.doesNotHaveAnyDeepKeys=function(e,t,r){new h(e,r,m.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};m.doesNotHaveAllDeepKeys=function(e,t,r){new h(e,r,m.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};m.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new h(e,n,m.throws,!0).to.throw(t,r);return U(o,"object")};m.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new h(e,n,m.doesNotThrow,!0).to.not.throw(t,r)};m.operator=function(e,t,r,n){let 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 G(n+'Invalid operator "'+t+'"',void 0,m.operator)}let i=new h(o,n,m.operator,!0);i.assert(U(i,"object")===!0,"expected "+H(e)+" to be "+t+" "+H(r),"expected "+H(e)+" to not be "+t+" "+H(r))};m.closeTo=function(e,t,r,n){new h(e,n,m.closeTo,!0).to.be.closeTo(t,r)};m.approximately=function(e,t,r,n){new h(e,n,m.approximately,!0).to.be.approximately(t,r)};m.sameMembers=function(e,t,r){new h(e,r,m.sameMembers,!0).to.have.same.members(t)};m.notSameMembers=function(e,t,r){new h(e,r,m.notSameMembers,!0).to.not.have.same.members(t)};m.sameDeepMembers=function(e,t,r){new h(e,r,m.sameDeepMembers,!0).to.have.same.deep.members(t)};m.notSameDeepMembers=function(e,t,r){new h(e,r,m.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};m.sameOrderedMembers=function(e,t,r){new h(e,r,m.sameOrderedMembers,!0).to.have.same.ordered.members(t)};m.notSameOrderedMembers=function(e,t,r){new h(e,r,m.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};m.sameDeepOrderedMembers=function(e,t,r){new h(e,r,m.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};m.notSameDeepOrderedMembers=function(e,t,r){new h(e,r,m.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};m.includeMembers=function(e,t,r){new h(e,r,m.includeMembers,!0).to.include.members(t)};m.notIncludeMembers=function(e,t,r){new h(e,r,m.notIncludeMembers,!0).to.not.include.members(t)};m.includeDeepMembers=function(e,t,r){new h(e,r,m.includeDeepMembers,!0).to.include.deep.members(t)};m.notIncludeDeepMembers=function(e,t,r){new h(e,r,m.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};m.includeOrderedMembers=function(e,t,r){new h(e,r,m.includeOrderedMembers,!0).to.include.ordered.members(t)};m.notIncludeOrderedMembers=function(e,t,r){new h(e,r,m.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};m.includeDeepOrderedMembers=function(e,t,r){new h(e,r,m.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};m.notIncludeDeepOrderedMembers=function(e,t,r){new h(e,r,m.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};m.oneOf=function(e,t,r){new h(e,r,m.oneOf,!0).to.be.oneOf(t)};m.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${H(e)} to be an iterable`:`expected ${H(e)} to be an iterable`,new G(t,void 0,m.isIterable)};m.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new h(e,n,m.changes,!0).to.change(t,r)};m.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new h(e,o,m.changesBy,!0).to.change(t,r).by(n)};m.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new h(e,n,m.doesNotChange,!0).to.not.change(t,r)};m.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new h(e,o,m.changesButNotBy,!0).to.change(t,r).but.not.by(n)};m.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new h(e,n,m.increases,!0).to.increase(t,r)};m.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new h(e,o,m.increasesBy,!0).to.increase(t,r).by(n)};m.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new h(e,n,m.doesNotIncrease,!0).to.not.increase(t,r)};m.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new h(e,o,m.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};m.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new h(e,n,m.decreases,!0).to.decrease(t,r)};m.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new h(e,o,m.decreasesBy,!0).to.decrease(t,r).by(n)};m.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new h(e,n,m.doesNotDecrease,!0).to.not.decrease(t,r)};m.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);return new h(e,o,m.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};m.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new h(e,o,m.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};m.ifError=function(e){if(e)throw e};m.isExtensible=function(e,t){new h(e,t,m.isExtensible,!0).to.be.extensible};m.isNotExtensible=function(e,t){new h(e,t,m.isNotExtensible,!0).to.not.be.extensible};m.isSealed=function(e,t){new h(e,t,m.isSealed,!0).to.be.sealed};m.isNotSealed=function(e,t){new h(e,t,m.isNotSealed,!0).to.not.be.sealed};m.isFrozen=function(e,t){new h(e,t,m.isFrozen,!0).to.be.frozen};m.isNotFrozen=function(e,t){new h(e,t,m.isNotFrozen,!0).to.not.be.frozen};m.isEmpty=function(e,t){new h(e,t,m.isEmpty,!0).to.be.empty};m.isNotEmpty=function(e,t){new h(e,t,m.isNotEmpty,!0).to.not.be.empty};m.containsSubset=function(e,t,r){new h(e,r).to.containSubset(t)};m.doesNotContainSubset=function(e,t,r){new h(e,r).to.not.containSubset(t)};var Rh=[["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(const[e,t]of Rh)m[t]=m[e];var zs=[];function Pf(e){const t={use:Pf,AssertionError:G,util:di,config:ae,expect:Io,assert:m,Assertion:h,..._f};return~zs.indexOf(e)||(e(t,di),zs.push(e)),t}x(Pf,"use");function Eh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const xh={animation:"spin 1s linear infinite"},Ch=()=>j.j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"var(--twd-icon-color-secondary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-loader-circle-icon lucide-loader-circle",style:xh,"data-testid":"loader-icon",children:j.j.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),Yo=document.createElement("style");Yo&&!document.getElementById("loader-spin-keyframes")&&(Yo.id="loader-spin-keyframes",Yo.innerHTML=`
|
|
3
20
|
@keyframes spin {
|
|
4
21
|
0% { transform: rotate(0deg); }
|
|
5
22
|
100% { transform: rotate(360deg); }
|
|
6
23
|
}
|
|
7
|
-
`,document.head.appendChild(Go));const ja=({className:e,children:t,dataTestId:r})=>j.j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--twd-icon-color)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`lucide ${e}`,"data-testid":r,children:t}),sh=()=>j.j.jsx(ja,{className:"lucide-play-icon lucide-play",dataTestId:"play-icon",children:j.j.jsx("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})}),Ef=({id:e,name:t,skip:r,only:n})=>j.j.jsxs(j.j.Fragment,{children:[t," ",n&&j.j.jsxs("span",{style:{color:"var(--twd-primary)"},"data-testid":`only-indicator-${e}`,children:[" ","(only)"]}),r&&j.j.jsxs("span",{style:{color:"var(--twd-text-secondary)"},"data-testid":`skip-indicator-${e}`,children:[" ","(skipped)"]})]});var Ze=(e=>(e.CHAI_DIFF="chai-diff",e.CHAI_MESSAGE="chai-message",e.ERROR="error",e))(Ze||{});const lh=e=>{try{const t=JSON.parse(e);if(t&&typeof t=="object"&&"type"in t)return t}catch{}return null},Ls=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)},uh=e=>e.startsWith("Assertion passed")||e.startsWith("Event fired")?{color:"var(--twd-success)",fontWeight:"var(--twd-font-weight-bold)"}:e.startsWith("Test failed")?{color:"var(--twd-error)",fontWeight:"var(--twd-font-weight-bold)"}:{},ch=e=>e.type==="chai-message"||e.type==="error",dh=(e,t)=>t&&ch(t)?t.message:e,fh=({log:e,index:t})=>{const r=lh(e);if(r?.type===Ze.CHAI_DIFF)return j.j.jsxs("li",{style:{fontSize:"var(--twd-font-size-sm)",padding:"var(--twd-spacing-sm)",borderBottom:"1px solid var(--twd-border-light)",color:"var(--twd-text)"},children:[j.j.jsx("div",{style:{color:"var(--twd-error)",fontWeight:"var(--twd-font-weight-bold)",marginBottom:"var(--twd-spacing-xs)"},children:"❌ Assertion failed"}),j.j.jsxs("div",{style:{marginTop:"var(--twd-spacing-xs)",paddingLeft:"var(--twd-spacing-sm)",borderLeft:"2px solid var(--twd-success)"},children:[j.j.jsx("div",{style:{color:"var(--twd-success)",fontWeight:"var(--twd-font-weight-medium)",marginBottom:"var(--twd-spacing-xs)"},children:"Expected:"}),j.j.jsx("pre",{style:{margin:0,padding:"var(--twd-spacing-xs)",background:"var(--twd-background)",borderRadius:"var(--twd-border-radius)",fontSize:"var(--twd-font-size-xs)",overflowX:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:Ls(r.expected)})]}),j.j.jsxs("div",{style:{marginTop:"var(--twd-spacing-xs)",paddingLeft:"var(--twd-spacing-sm)",borderLeft:"2px solid var(--twd-error)"},children:[j.j.jsx("div",{style:{color:"var(--twd-error)",fontWeight:"var(--twd-font-weight-medium)",marginBottom:"var(--twd-spacing-xs)"},children:"Actual:"}),j.j.jsx("pre",{style:{margin:0,padding:"var(--twd-spacing-xs)",background:"var(--twd-background)",borderRadius:"var(--twd-border-radius)",fontSize:"var(--twd-font-size-xs)",overflowX:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:Ls(r.actual)})]})]},t);const n=dh(e,r);return j.j.jsx("li",{style:{fontSize:"var(--twd-font-size-sm)",padding:"var(--twd-spacing-xs) var(--twd-spacing-sm)",borderBottom:"1px solid var(--twd-border-light)",color:"var(--twd-text)",...uh(n)},children:n},t)},Nt={container:{marginBottom:"var(--twd-spacing-xs)"},item:{display:"flex",alignItems:"left",justifyContent:"space-between",padding:"var(--twd-spacing-sm) var(--twd-spacing-sm)",borderRadius:"var(--twd-border-radius)"},nameSpan:{fontWeight:"var(--twd-font-weight-medium)",fontSize:"var(--twd-font-size-md)",color:"var(--twd-text)",maxWidth:"220px"},button:{background:"transparent",border:"1px solid var(--twd-border-light)",borderRadius:"var(--twd-border-radius)",padding:"0",cursor:"pointer",verticalAlign:"middle",fontSize:"var(--twd-font-size-sm)",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"},logsList:{borderRadius:"var(--twd-border-radius)",maxHeight:"260px",overflowY:"auto",padding:0,background:"var(--twd-background-secondary)",listStyle:"none",marginTop:"var(--twd-spacing-xs)",textAlign:"left"}},ph=e=>{switch(e.status){case"pass":return{item:{background:"var(--twd-success-bg)"},container:{borderLeft:"3px solid var(--twd-success)"}};case"fail":return{item:{background:"var(--twd-error-bg)"},container:{borderLeft:"3px solid var(--twd-error)"}};case"skip":return{item:{background:"var(--twd-skip-bg)"}};case"running":return{item:{background:"var(--twd-warning-bg)"}};default:return{item:{background:"transparent"}}}},mh=({node:e,depth:t,id:r,runTest:n})=>{const o=ae.useRef(null),a=ae.useRef(e.status),i=ae.useRef(e.logs?.length||0),s=ae.useMemo(()=>ph(e),[e.status]),l=typeof window<"u"&&sessionStorage.getItem("twd-last-run-test-name")===e.name,u=ae.useMemo(()=>({...Nt.container,marginLeft:`calc(${t} * var(--twd-spacing-sm))`,...s.container||{}}),[t,s]),d=ae.useMemo(()=>({...Nt.item,...s.item,...l&&{border:"1px dashed var(--twd-border)"}}),[s,l]);ae.useEffect(()=>{const c=o.current;if(!c||!e.logs||e.logs.length===0)return;const v=a.current==="running"&&(e.status==="pass"||e.status==="fail"),m=e.logs.length>i.current;(v||m)&&setTimeout(()=>{c.scrollTop=c.scrollHeight},0),a.current=e.status,i.current=e.logs.length},[e.status,e.logs]);const f=()=>{switch(e.status){case"pass":return"passed";case"fail":return"failed";case"running":return"running";case"skip":return"skipped";default:return"not run"}};return j.j.jsxs("li",{style:u,"data-testid":`test-list-item-${r}`,"data-test-name":e.name,role:"listitem","aria-label":`Test ${e.name}, status: ${f()}`,children:[j.j.jsxs("div",{style:d,children:[j.j.jsx("span",{style:Nt.nameSpan,children:j.j.jsx(Ef,{id:r,name:e.name,skip:e.skip,only:e.only})}),j.j.jsx("button",{onClick:()=>n(r),"aria-label":`Run ${e.name} test`,style:Nt.button,disabled:e.status==="running","data-testid":`run-test-button-${r}`,children:e.status==="running"?j.j.jsx(ih,{}):j.j.jsx(sh,{})})]}),e.logs&&e.logs.length>0&&j.j.jsx("ul",{ref:o,style:Nt.logsList,children:e.logs.map((c,v)=>j.j.jsx(fh,{log:c,index:v},v))})]},e.name)},hh=()=>j.j.jsx(ja,{className:"lucide-chevron-down-icon lucide-chevron-down",dataTestId:"chevron-down-icon",children:j.j.jsx("path",{d:"m6 9 6 6 6-6"})}),bh=()=>j.j.jsx(ja,{className:"lucide-chevron-right-icon lucide-chevron-right",dataTestId:"chevron-right-icon",children:j.j.jsx("path",{d:"m9 18 6-6-6-6"})}),vh=({tests:e,runTest:t})=>{const[r,n]=ae.useState({}),o=ae.useRef(null),a=ae.useRef(!1),i=u=>n(d=>({...d,[u]:!d[u]}));ae.useEffect(()=>{if(a.current)return;const u=sessionStorage.getItem("twd-last-run-test-name");if(!u)return;const d=setTimeout(()=>{const f=document.querySelector(`[data-test-name="${u}"]`);if(f){const c=o.current?.closest('[data-testid="twd-sidebar"]');if(c){const v=f.getBoundingClientRect(),m=c.getBoundingClientRect(),g=c.scrollTop,T=v.top-m.top+g;c.scrollTo({top:T-150,behavior:"smooth"})}a.current=!0}},100);return()=>clearTimeout(d)},[]);const s=(u,d=0)=>{if(u.type==="test")return j.j.jsx(mh,{node:u,depth:d,id:u.id,runTest:()=>t(u.id)},u.id);const f=r[u.id];return j.j.jsxs("li",{style:{marginLeft:`calc(${d} * var(--twd-spacing-lg))`},children:[j.j.jsx("div",{style:{background:"var(--twd-describe-bg)",borderLeft:"3px solid var(--twd-describe-border)",borderRadius:"var(--twd-border-radius)",padding:"var(--twd-spacing-xs) var(--twd-spacing-sm)",marginBottom:"var(--twd-spacing-sm)"},children:j.j.jsxs("span",{style:{fontWeight:"var(--twd-font-weight-medium)",fontSize:"var(--twd-font-size-sm)",cursor:"pointer",color:"var(--twd-describe-text)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--twd-spacing-sm)",textTransform:"uppercase",letterSpacing:"0.05em"},"data-testid":`test-group-${u.name}`,tabIndex:0,role:"button","aria-expanded":!f,"aria-label":`${f?"Expand":"Collapse"} test suite ${u.name}`,onClick:()=>i(u.id),children:[j.j.jsx(Ef,{id:u.id,name:u.name,skip:u.skip,only:u.only}),f?j.j.jsx(bh,{}):j.j.jsx(hh,{})]})}),!f&&u.childrenNodes&&u.childrenNodes.length>0&&j.j.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:u.childrenNodes.map(c=>s(c,d+1))})]},u.id)},l=oh(e);return j.j.jsx("ul",{ref:o,style:{listStyle:"none",padding:0,margin:0},role:"list","aria-label":"Test list",children:l.map(u=>s(u))})},gh={left:{left:0,borderTopRightRadius:"var(--twd-border-radius-lg)",borderBottomRightRadius:"var(--twd-border-radius-lg)",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},right:{right:0,borderTopLeftRadius:"var(--twd-border-radius-lg)",borderBottomLeftRadius:"var(--twd-border-radius-lg)",borderTopRightRadius:"0",borderBottomRightRadius:"0"}},yh=({setOpen:e,position:t})=>j.j.jsx("button",{"aria-label":"Open TWD sidebar",style:{position:"fixed",top:"50%",transform:"translateY(-50%)",background:"var(--twd-button-primary)",color:"var(--twd-button-primary-text)",padding:"var(--twd-spacing-sm) 10px",cursor:"pointer",fontSize:"var(--twd-font-size-sm)",...gh[t]},onClick:()=>e(!0),children:"TWD"}),wh=({isOpen:e,position:t})=>{ae.useEffect(()=>{const r=document.documentElement,n=getComputedStyle(document.documentElement).getPropertyValue("--twd-sidebar-width")||"280px";return e?t==="left"?r.style.marginLeft=n:r.style.marginRight=n:(r.style.marginRight="0",r.style.marginLeft="0"),()=>{r.style.marginRight="0",r.style.marginLeft="0"}},[e,t])},Rh=()=>j.j.jsxs(ja,{className:"lucide-wifi-pen-icon lucide-wifi-pen",dataTestId:"wifi-pen-icon",children:[j.j.jsx("path",{d:"M2 8.82a15 15 0 0 1 20 0"}),j.j.jsx("path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"}),j.j.jsx("path",{d:"M5 12.859a10 10 0 0 1 10.5-2.222"}),j.j.jsx("path",{d:"M8.5 16.429a5 5 0 0 1 3-1.406"})]}),Eh=()=>{const e=Cd(),t=e.filter(n=>n.executed),r=()=>{console.group("🌐 TWD Mock Rules"),console.log("Total rules:",e.length),console.log("Triggered rules:",t.length),console.log("Rules details:"),console.log(e),console.groupEnd()};return j.j.jsxs("button",{onClick:r,"aria-label":"View mock rules details in console",style:{background:"var(--twd-button-secondary)",border:"1px solid var(--twd-button-border)",borderRadius:"var(--twd-border-radius-lg)",padding:"var(--twd-spacing-md) var(--twd-spacing-lg)",cursor:"pointer",fontSize:"var(--twd-font-size-sm)",color:"var(--twd-button-secondary-text)",display:"flex",alignItems:"center",gap:"var(--twd-spacing-md)",marginBottom:"10px",width:"100%",textAlign:"left",transition:"all var(--twd-animation-duration) ease",boxShadow:"var(--twd-shadow-sm)"},children:[j.j.jsx(Rh,{}),j.j.jsxs("span",{style:{flex:1},children:["Rules: ",t.length,"/",e.length," triggered"]}),j.j.jsx("span",{style:{fontSize:"var(--twd-font-size-xs)",color:"var(--twd-text)",fontWeight:"var(--twd-font-weight-medium)"},children:"View rules in console"})]})},xh=e=>e instanceof Error&&"actual"in e&&"expected"in e,xf=e=>e.actual!==void 0&&e.expected!==void 0?{type:"diff",actual:e.actual,expected:e.expected,operator:e.operator}:{type:"message",message:e.message},Ch=e=>{const t=xf(e);if(t.type==="diff"){const r=t.operator||"unknown";console.error(`Assertion failed with operator: ${r}`),console.group("Expected:"),console.log(t.expected),console.groupEnd(),console.group("Actual:"),console.log(t.actual),console.groupEnd()}else console.error(t.message)},qh=e=>{if(e.status==="pass")return`Test "${e.name}" passed.`;if(e.status==="fail"){if(!e.logs||e.logs.length===0)return`Test "${e.name}" failed.`;const t=e.logs[e.logs.length-1];try{const r=JSON.parse(t);return r.type===Ze.CHAI_MESSAGE||r.type===Ze.ERROR?`Test "${e.name}" failed. ${r.message}`:r.type===Ze.CHAI_DIFF?`Test "${e.name}" failed. Expected value does not match actual value.`:`Test "${e.name}" failed.`}catch{return`Test "${e.name}" failed. ${t}`}}else if(e.status==="skip")return`Test "${e.name}" skipped.`;return""},_h=e=>{const t=e.filter(i=>i.type==="test"),r=t.filter(i=>i.status==="pass").length,n=t.filter(i=>i.status==="fail").length,o=t.filter(i=>i.status==="skip").length,a=[];return n>0?(a.push("Test run completed."),a.push(`${r} test${r!==1?"s":""} passed`),a.push(`${n} test${n!==1?"s":""} failed`),o>0&&a.push(`${o} test${o!==1?"s":""} skipped`),a.join(", ")+"."):(a.push("All tests passed."),a.push(`${r} test${r!==1?"s":""} completed`),o>0&&a.push(`${o} test${o!==1?"s":""} skipped`),a.join(", ")+".")},Ph={left:{left:0,borderRight:"1px solid var(--twd-border)"},right:{right:0,borderLeft:"1px solid var(--twd-border)"}},Th='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',Sh=e=>sessionStorage.getItem("twd-sidebar-open")?sessionStorage.getItem("twd-sidebar-open")==="true":e,Ah=({open:e,position:t="left"})=>{const[r,n]=ae.useState(0),[o,a]=ae.useState(Sh(e));wh({isOpen:o,position:t});const[i,s]=ae.useState("");ae.useEffect(()=>{const m=()=>n(g=>g+1);return window.addEventListener("twd:state-change",m),()=>window.removeEventListener("twd:state-change",m)},[]);const l=new Po.TestRunner({onStart:m=>{m.status="running",n(g=>g+1)},onPass:m=>{m.status="pass",n(g=>g+1)},onFail:(m,g)=>{if(m.status="fail",console.group(`%c❌ Test failed: ${m.name}`,"color: red; font-weight: bold;"),xh(g)){Ch(g);const T=xf(g);T.type==="diff"?m.logs.push(JSON.stringify({type:Ze.CHAI_DIFF,expected:T.expected,actual:T.actual})):m.logs.push(JSON.stringify({type:Ze.CHAI_MESSAGE,message:`Test failed: ${T.message}`}))}else console.error(g.message),m.logs.push(JSON.stringify({type:Ze.ERROR,message:`Test failed: ${g.message}`}));console.groupEnd(),n(T=>T+1)},onSkip:m=>{m.status="skip",n(g=>g+1)}}),u=m=>{a(m),sessionStorage.setItem("twd-sidebar-open",m.toString())},d=async()=>{s(""),sessionStorage.removeItem("twd-last-run-test-name"),await l.runAll();const m=_h(c);s(m)},f=async m=>{const g=Array.from(Po.handlers.values()).filter(p=>p.type==="test").find(p=>p.id===m);if(!g)return;s(""),sessionStorage.setItem("twd-last-run-test-name",g.name),await l.runSingle(g.id);const T=qh(g);s(T)},c=Array.from(Po.handlers.values());if(!o)return j.j.jsx(yh,{position:t,setOpen:u});const v=c.filter(m=>m.type==="test").length;return j.j.jsxs("div",{style:{fontFamily:Th,position:"fixed",top:0,bottom:0,width:"var(--twd-sidebar-width)",background:"var(--twd-background)",fontSize:"var(--twd-font-size-md)",overflowY:"auto",boxShadow:"var(--twd-shadow)",textAlign:"left",zIndex:"var(--twd-z-index-sidebar)",pointerEvents:"all",isolation:"isolate",...Ph[t]},"data-testid":"twd-sidebar",role:"complementary","aria-label":"Test While Developing sidebar",children:[j.j.jsx("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)"},children:i}),j.j.jsxs("div",{style:{padding:"var(--twd-spacing-md)",background:"var(--twd-background)",position:"sticky",top:0,zIndex:"var(--twd-z-index-sticky)",borderBottom:"1px solid var(--twd-border)"},children:[j.j.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--twd-spacing-xl)"},children:[j.j.jsxs("div",{style:{display:"flex",gap:"var(--twd-spacing-xs)"},children:[j.j.jsx("button",{onClick:d,style:{background:"var(--twd-button-primary)",color:"var(--twd-button-primary-text)",padding:"var(--twd-spacing-xs) var(--twd-spacing-md)",borderRadius:"var(--twd-border-radius)",border:"none",cursor:"pointer"},children:"Run All"}),j.j.jsx("button",{onClick:()=>{qd(),j.c()},"aria-label":"Clear all mocks",style:{background:"var(--twd-button-secondary)",color:"var(--twd-button-secondary-text)",padding:"var(--twd-spacing-xs) var(--twd-spacing-md)",borderRadius:"var(--twd-border-radius)",border:"1px solid var(--twd-button-border)",cursor:"pointer"},children:"Clear mocks"}),j.j.jsxs("span",{style:{color:"var(--twd-text-secondary)",fontSize:"var(--twd-font-size-sm)",alignSelf:"center"},children:["v",Ca]})]}),j.j.jsx("button",{"aria-label":"Close sidebar",style:{background:"transparent",border:"none",cursor:"pointer",fontSize:"var(--twd-font-size-md)",paddingRight:"0",paddingLeft:"0"},onClick:()=>u(!1),children:"✖"})]}),j.j.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"var(--twd-font-size-md)",color:"var(--twd-text-secondary)",marginBottom:"10px"},children:[j.j.jsxs("span",{style:{color:"var(--twd-text)"},children:["Total: ",v]}),j.j.jsxs("div",{style:{display:"flex",gap:"var(--twd-spacing-xs)"},children:[j.j.jsxs("span",{style:{color:"var(--twd-success)"},children:["✓ ",c.filter(m=>m.status==="pass").length]}),j.j.jsxs("span",{style:{color:"var(--twd-error)"},children:["✗ ",c.filter(m=>m.status==="fail").length]})]})]}),j.j.jsx(Eh,{})]}),j.j.jsx("div",{style:{padding:"var(--twd-spacing-md)"},children:j.j.jsx(vh,{tests:c.map(m=>({name:m.name,depth:m.depth,status:m.status,logs:m.logs,id:m.id,parent:m.parent,type:m.type,only:m.only,skip:m.skip})),runTest:f})})]})},Cf={primary:"#2563eb",background:"#1e293b",backgroundSecondary:"#182130",border:"#475569",borderLight:"#64748b",text:"#f1f5f9",textSecondary:"#cbd5e1",textMuted:"#94a3b8",describeBg:"#0f172a",describeText:"#94a3b8",describeBorder:"#334155",success:"#22c55e",successBg:"#14532d",error:"#ff5252",errorBg:"#7f1d1d",warning:"#fbbf24",warningBg:"#78350f",skip:"#475569",skipBg:"#334155",buttonPrimary:"#2563eb",buttonPrimaryText:"#ffffff",buttonSecondary:"#334155",buttonSecondaryText:"#f1f5f9",buttonBorder:"#475569",spacingXs:"4px",spacingSm:"6px",spacingMd:"8px",spacingLg:"12px",spacingXl:"14px",fontSizeXs:"10px",fontSizeSm:"12px",fontSizeMd:"14px",fontSizeLg:"16px",fontWeightNormal:"400",fontWeightMedium:"500",fontWeightBold:"700",sidebarWidth:"320px",borderRadius:"8px",borderRadiusLg:"6px",shadow:"2px 0 8px rgba(0,0,0,0.3)",shadowSm:"0 2px 4px rgba(0, 0, 0, 0.2)",zIndexSidebar:"99999",zIndexSticky:"100000",animationDuration:"0.2s",iconColor:"#f1f5f9",iconColorSecondary:"#cbd5e1"};function Mh(e={}){const t={...Cf,...e};return Object.entries(t).map(([r,n])=>`${`--twd-${r.replace(/([A-Z])/g,"-$1").toLowerCase()}`}: ${n};`).join(`
|
|
8
|
-
`)}function
|
|
24
|
+
`,document.head.appendChild(Yo));const $i=({className:e,children:t,dataTestId:r})=>j.j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--twd-icon-color)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`lucide ${e}`,"data-testid":r,children:t}),qh=()=>j.j.jsx($i,{className:"lucide-play-icon lucide-play",dataTestId:"play-icon",children:j.j.jsx("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})}),Tf=({id:e,name:t,skip:r,only:n})=>j.j.jsxs(j.j.Fragment,{children:[t," ",n&&j.j.jsxs("span",{style:{color:"var(--twd-primary)"},"data-testid":`only-indicator-${e}`,children:[" ","(only)"]}),r&&j.j.jsxs("span",{style:{color:"var(--twd-text-secondary)"},"data-testid":`skip-indicator-${e}`,children:[" ","(skipped)"]})]});var et=(e=>(e.CHAI_DIFF="chai-diff",e.CHAI_MESSAGE="chai-message",e.ERROR="error",e))(et||{});const _h=e=>{try{const t=JSON.parse(e);if(t&&typeof t=="object"&&"type"in t)return t}catch{}return null},Vs=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)},Ph=e=>e.startsWith("Assertion passed")||e.startsWith("Event fired")?{color:"var(--twd-success)",fontWeight:"var(--twd-font-weight-bold)"}:e.startsWith("Test failed")?{color:"var(--twd-error)",fontWeight:"var(--twd-font-weight-bold)"}:{},Th=e=>e.type==="chai-message"||e.type==="error",Sh=(e,t)=>t&&Th(t)?t.message:e,Mh=({log:e,index:t})=>{const r=_h(e);if(r?.type===et.CHAI_DIFF)return j.j.jsxs("li",{style:{fontSize:"var(--twd-font-size-sm)",padding:"var(--twd-spacing-sm)",borderBottom:"1px solid var(--twd-border-light)",color:"var(--twd-text)"},children:[j.j.jsx("div",{style:{color:"var(--twd-error)",fontWeight:"var(--twd-font-weight-bold)",marginBottom:"var(--twd-spacing-xs)"},children:"❌ Assertion failed"}),j.j.jsxs("div",{style:{marginTop:"var(--twd-spacing-xs)",paddingLeft:"var(--twd-spacing-sm)",borderLeft:"2px solid var(--twd-success)"},children:[j.j.jsx("div",{style:{color:"var(--twd-success)",fontWeight:"var(--twd-font-weight-medium)",marginBottom:"var(--twd-spacing-xs)"},children:"Expected:"}),j.j.jsx("pre",{style:{margin:0,padding:"var(--twd-spacing-xs)",background:"var(--twd-background)",borderRadius:"var(--twd-border-radius)",fontSize:"var(--twd-font-size-xs)",overflowX:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:Vs(r.expected)})]}),j.j.jsxs("div",{style:{marginTop:"var(--twd-spacing-xs)",paddingLeft:"var(--twd-spacing-sm)",borderLeft:"2px solid var(--twd-error)"},children:[j.j.jsx("div",{style:{color:"var(--twd-error)",fontWeight:"var(--twd-font-weight-medium)",marginBottom:"var(--twd-spacing-xs)"},children:"Actual:"}),j.j.jsx("pre",{style:{margin:0,padding:"var(--twd-spacing-xs)",background:"var(--twd-background)",borderRadius:"var(--twd-border-radius)",fontSize:"var(--twd-font-size-xs)",overflowX:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:Vs(r.actual)})]})]},t);const n=Sh(e,r);return j.j.jsx("li",{style:{fontSize:"var(--twd-font-size-sm)",padding:"var(--twd-spacing-xs) var(--twd-spacing-sm)",borderBottom:"1px solid var(--twd-border-light)",color:"var(--twd-text)",...Ph(n)},children:n},t)},jt={container:{marginBottom:"var(--twd-spacing-xs)"},item:{display:"flex",alignItems:"left",justifyContent:"space-between",padding:"var(--twd-spacing-sm) var(--twd-spacing-sm)",borderRadius:"var(--twd-border-radius)"},nameSpan:{fontWeight:"var(--twd-font-weight-medium)",fontSize:"var(--twd-font-size-md)",color:"var(--twd-text)",maxWidth:"220px"},button:{background:"transparent",border:"1px solid var(--twd-border-light)",borderRadius:"var(--twd-border-radius)",padding:"0",cursor:"pointer",verticalAlign:"middle",fontSize:"var(--twd-font-size-sm)",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"},logsList:{borderRadius:"var(--twd-border-radius)",maxHeight:"260px",overflowY:"auto",padding:0,background:"var(--twd-background-secondary)",listStyle:"none",marginTop:"var(--twd-spacing-xs)",textAlign:"left"}},Ah=e=>{switch(e.status){case"pass":return{item:{background:"var(--twd-success-bg)"},container:{borderLeft:"3px solid var(--twd-success)"}};case"fail":return{item:{background:"var(--twd-error-bg)"},container:{borderLeft:"3px solid var(--twd-error)"}};case"skip":return{item:{background:"var(--twd-skip-bg)"}};case"running":return{item:{background:"var(--twd-warning-bg)"}};default:return{item:{background:"transparent"}}}},Oh=({node:e,depth:t,id:r,runTest:n})=>{const o=ne.useRef(null),i=ne.useRef(e.status),a=ne.useRef(e.logs?.length||0),s=ne.useMemo(()=>Ah(e),[e.status]),l=typeof window<"u"&&sessionStorage.getItem("twd-last-run-test-name")===e.name,u=ne.useMemo(()=>({...jt.container,marginLeft:`calc(${t} * var(--twd-spacing-sm))`,...s.container||{}}),[t,s]),d=ne.useMemo(()=>({...jt.item,...s.item,...l&&{border:"1px dashed var(--twd-border)"}}),[s,l]);ne.useEffect(()=>{const c=o.current;if(!c||!e.logs||e.logs.length===0)return;const b=i.current==="running"&&(e.status==="pass"||e.status==="fail"),g=e.logs.length>a.current;(b||g)&&setTimeout(()=>{c.scrollTop=c.scrollHeight},0),i.current=e.status,a.current=e.logs.length},[e.status,e.logs]);const f=()=>{switch(e.status){case"pass":return"passed";case"fail":return"failed";case"running":return"running";case"skip":return"skipped";default:return"not run"}};return j.j.jsxs("li",{style:u,"data-testid":`test-list-item-${r}`,"data-test-name":e.name,role:"listitem","aria-label":`Test ${e.name}, status: ${f()}`,children:[j.j.jsxs("div",{style:d,children:[j.j.jsx("span",{style:jt.nameSpan,children:j.j.jsx(Tf,{id:r,name:e.name,skip:e.skip,only:e.only})}),j.j.jsx("button",{onClick:()=>n(r),"aria-label":`Run ${e.name} test`,style:jt.button,disabled:e.status==="running","data-testid":`run-test-button-${r}`,children:e.status==="running"?j.j.jsx(Ch,{}):j.j.jsx(qh,{})})]}),e.logs&&e.logs.length>0&&j.j.jsx("ul",{ref:o,style:jt.logsList,children:e.logs.map((c,b)=>j.j.jsx(Mh,{log:c,index:b},b))})]},e.name)},Ih=()=>j.j.jsx($i,{className:"lucide-chevron-down-icon lucide-chevron-down",dataTestId:"chevron-down-icon",children:j.j.jsx("path",{d:"m6 9 6 6 6-6"})}),Nh=()=>j.j.jsx($i,{className:"lucide-chevron-right-icon lucide-chevron-right",dataTestId:"chevron-right-icon",children:j.j.jsx("path",{d:"m9 18 6-6-6-6"})}),kh=({roots:e,runTest:t,searchQuery:r=""})=>{const[n,o]=ne.useState({}),i=ne.useRef(null),a=ne.useRef(!1),s=u=>o(d=>({...d,[u]:!d[u]}));ne.useEffect(()=>{if(a.current)return;const u=sessionStorage.getItem("twd-last-run-test-name");if(!u)return;const d=setTimeout(()=>{const f=document.querySelector(`[data-test-name="${u}"]`);if(f){const c=i.current?.closest('[data-testid="twd-sidebar"]');if(c){const b=f.getBoundingClientRect(),g=c.getBoundingClientRect(),w=c.scrollTop,S=b.top-g.top+w;c.scrollTo({top:S-150,behavior:"smooth"})}a.current=!0}},100);return()=>clearTimeout(d)},[]);const l=(u,d=0)=>{if(u.type==="test")return j.j.jsx(Oh,{node:u,depth:d,id:u.id,runTest:()=>t(u.id)},u.id);const f=n[u.id];return j.j.jsxs("li",{style:{marginLeft:`calc(${d} * var(--twd-spacing-lg))`},children:[j.j.jsx("div",{style:{background:"var(--twd-describe-bg)",borderLeft:"3px solid var(--twd-describe-border)",borderRadius:"var(--twd-border-radius)",padding:"var(--twd-spacing-xs) var(--twd-spacing-sm)",marginBottom:"var(--twd-spacing-sm)"},children:j.j.jsxs("span",{style:{fontWeight:"var(--twd-font-weight-medium)",fontSize:"var(--twd-font-size-sm)",cursor:"pointer",color:"var(--twd-describe-text)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--twd-spacing-sm)",textTransform:"uppercase",letterSpacing:"0.05em"},"data-testid":`test-group-${u.name}`,tabIndex:0,role:"button","aria-expanded":!f,"aria-label":`${f?"Expand":"Collapse"} test suite ${u.name}`,onClick:()=>s(u.id),children:[j.j.jsx(Tf,{id:u.id,name:u.name,skip:u.skip,only:u.only}),f?j.j.jsx(Nh,{}):j.j.jsx(Ih,{})]})}),!f&&u.childrenNodes&&u.childrenNodes.length>0&&j.j.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:u.childrenNodes.map(c=>l(c,d+1))})]},u.id)};return j.j.jsx("ul",{ref:i,style:{listStyle:"none",padding:0,margin:0},role:"list","aria-label":"Test list",children:e.length===0&&r?j.j.jsxs("li",{style:{padding:"var(--twd-spacing-md)",color:"var(--twd-text-secondary)",fontSize:"var(--twd-font-size-sm)",textAlign:"center"},children:['No tests match "',r,'"']}):e.map(u=>l(u))})},jh={left:{left:0,borderTopRightRadius:"var(--twd-border-radius-lg)",borderBottomRightRadius:"var(--twd-border-radius-lg)",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},right:{right:0,borderTopLeftRadius:"var(--twd-border-radius-lg)",borderBottomLeftRadius:"var(--twd-border-radius-lg)",borderTopRightRadius:"0",borderBottomRightRadius:"0"}},Dh=({setOpen:e,position:t})=>j.j.jsx("button",{"aria-label":"Open TWD sidebar",style:{position:"fixed",top:"50%",transform:"translateY(-50%)",background:"var(--twd-button-primary)",color:"var(--twd-button-primary-text)",padding:"var(--twd-spacing-sm) 10px",cursor:"pointer",fontSize:"var(--twd-font-size-sm)",...jh[t]},onClick:()=>e(!0),children:"TWD"}),$h=({isOpen:e,position:t})=>{ne.useEffect(()=>{const r=document.documentElement,n=getComputedStyle(document.documentElement).getPropertyValue("--twd-sidebar-width")||"280px";return e?t==="left"?r.style.marginLeft=n:r.style.marginRight=n:(r.style.marginRight="0",r.style.marginLeft="0"),()=>{r.style.marginRight="0",r.style.marginLeft="0"}},[e,t])},Bh=()=>j.j.jsxs($i,{className:"lucide-wifi-pen-icon lucide-wifi-pen",dataTestId:"wifi-pen-icon",children:[j.j.jsx("path",{d:"M2 8.82a15 15 0 0 1 20 0"}),j.j.jsx("path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"}),j.j.jsx("path",{d:"M5 12.859a10 10 0 0 1 10.5-2.222"}),j.j.jsx("path",{d:"M8.5 16.429a5 5 0 0 1 3-1.406"})]}),Lh=()=>{const e=Td(),t=e.filter(n=>n.executed),r=()=>{console.group("🌐 TWD Mock Rules"),console.log("Total rules:",e.length),console.log("Triggered rules:",t.length),console.log("Rules details:"),console.log(e),console.groupEnd()};return j.j.jsxs("button",{onClick:r,"aria-label":"View mock rules details in console",style:{background:"var(--twd-button-secondary)",border:"1px solid var(--twd-button-border)",borderRadius:"var(--twd-border-radius-lg)",padding:"var(--twd-spacing-md) var(--twd-spacing-lg)",cursor:"pointer",fontSize:"var(--twd-font-size-sm)",color:"var(--twd-button-secondary-text)",display:"flex",alignItems:"center",gap:"var(--twd-spacing-md)",marginBottom:"10px",width:"100%",textAlign:"left",transition:"all var(--twd-animation-duration) ease",boxShadow:"var(--twd-shadow-sm)"},children:[j.j.jsx(Bh,{}),j.j.jsxs("span",{style:{flex:1},children:["Rules: ",t.length,"/",e.length," triggered"]}),j.j.jsx("span",{style:{fontSize:"var(--twd-font-size-xs)",color:"var(--twd-text)",fontWeight:"var(--twd-font-weight-medium)"},children:"View rules in console"})]})},Fh=e=>e instanceof Error&&"actual"in e&&"expected"in e,Sf=e=>e.actual!==void 0&&e.expected!==void 0?{type:"diff",actual:e.actual,expected:e.expected,operator:e.operator}:{type:"message",message:e.message},Uh=e=>{const t=Sf(e);if(t.type==="diff"){const r=t.operator||"unknown";console.error(`Assertion failed with operator: ${r}`),console.group("Expected:"),console.log(t.expected),console.groupEnd(),console.group("Actual:"),console.log(t.actual),console.groupEnd()}else console.error(t.message)},zh=e=>{if(e.status==="pass")return`Test "${e.name}" passed.`;if(e.status==="fail"){if(!e.logs||e.logs.length===0)return`Test "${e.name}" failed.`;const t=e.logs[e.logs.length-1];try{const r=JSON.parse(t);return r.type===et.CHAI_MESSAGE||r.type===et.ERROR?`Test "${e.name}" failed. ${r.message}`:r.type===et.CHAI_DIFF?`Test "${e.name}" failed. Expected value does not match actual value.`:`Test "${e.name}" failed.`}catch{return`Test "${e.name}" failed. ${t}`}}else if(e.status==="skip")return`Test "${e.name}" skipped.`;return""},Vh=e=>{const t=e.filter(a=>a.type==="test"),r=t.filter(a=>a.status==="pass").length,n=t.filter(a=>a.status==="fail").length,o=t.filter(a=>a.status==="skip").length,i=[];return n>0?(i.push("Test run completed."),i.push(`${r} test${r!==1?"s":""} passed`),i.push(`${n} test${n!==1?"s":""} failed`),o>0&&i.push(`${o} test${o!==1?"s":""} skipped`),i.join(", ")+"."):(i.push("All tests passed."),i.push(`${r} test${r!==1?"s":""} completed`),o>0&&i.push(`${o} test${o!==1?"s":""} skipped`),i.join(", ")+".")},Hh=({value:e,onChange:t})=>j.j.jsx("div",{style:{position:"relative",marginBottom:"var(--twd-spacing-md)"},children:j.j.jsx("input",{type:"search",id:"twd-search-input","aria-label":"Filter tests",placeholder:"Filter tests...",value:e,onChange:r=>t(r.target.value),style:{width:"100%",padding:"var(--twd-spacing-md)",background:"var(--twd-background)",color:"var(--twd-text)",border:"1px solid var(--twd-border)",borderRadius:"var(--twd-border-radius)",fontSize:"var(--twd-font-size-md)",boxSizing:"border-box",outline:"none"}})}),Wh=(e,t)=>{if(!t.trim())return e;const r=t.toLowerCase(),n=o=>{const i=o.name.toLowerCase().includes(r);if(o.type==="test")return i?o:null;const a=(o.childrenNodes||[]).map(n).filter(s=>s!==null);return i||a.length>0?{...o,childrenNodes:i?o.childrenNodes:a}:null};return e.map(n).filter(o=>o!==null)},Gh=e=>{const t=new Map,r=[];for(const n of e)t.set(n.id,{...n,childrenNodes:[]});for(const n of t.values())n.parent?t.get(n.parent)?.childrenNodes?.push(n):r.push(n);return r},Kh={left:{left:0,borderRight:"1px solid var(--twd-border)"},right:{right:0,borderLeft:"1px solid var(--twd-border)"}},Yh='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',Xh=e=>e?sessionStorage.getItem("twd-search-filter")||"":(sessionStorage.removeItem("twd-search-filter"),""),Jh=e=>sessionStorage.getItem("twd-sidebar-open")?sessionStorage.getItem("twd-sidebar-open")==="true":e,Mf=e=>{const t=[];for(const r of e)r.type==="test"&&t.push(r.id),r.childrenNodes&&t.push(...Mf(r.childrenNodes));return t},Qh=({open:e,position:t="left",search:r})=>{const[n,o]=ne.useState(0),[i,a]=ne.useState(Jh(e));$h({isOpen:i,position:t});const[s,l]=ne.useState(""),[u,d]=ne.useState(Xh(r));ne.useEffect(()=>{const v=()=>o(y=>y+1);return window.addEventListener("twd:state-change",v),()=>window.removeEventListener("twd:state-change",v)},[]);const f=new So.TestRunner({onStart:v=>{v.status="running",o(y=>y+1)},onPass:v=>{v.status="pass",o(y=>y+1)},onFail:(v,y)=>{if(v.status="fail",console.group(`%c❌ Test failed: ${v.name}`,"color: red; font-weight: bold;"),Fh(y)){Uh(y);const R=Sf(y);R.type==="diff"?v.logs.push(JSON.stringify({type:et.CHAI_DIFF,expected:R.expected,actual:R.actual})):v.logs.push(JSON.stringify({type:et.CHAI_MESSAGE,message:`Test failed: ${R.message}`}))}else console.error(y.message),v.logs.push(JSON.stringify({type:et.ERROR,message:`Test failed: ${y.message}`}));console.groupEnd(),o(R=>R+1)},onSkip:v=>{v.status="skip",o(y=>y+1)}}),c=v=>{d(v),v?sessionStorage.setItem("twd-search-filter",v):sessionStorage.removeItem("twd-search-filter")},b=v=>{a(v),sessionStorage.setItem("twd-sidebar-open",v.toString())},g=Array.from(So.handlers.values()),w=ne.useMemo(()=>Gh(g),[n]),S=ne.useMemo(()=>Wh(w,u),[w,u]),{filteredTestIds:p,displayTests:q}=ne.useMemo(()=>{if(u){const v=Mf(S),y=new Set(v);return{filteredTestIds:v,displayTests:g.filter(R=>R.type==="test"&&y.has(R.id))}}return{filteredTestIds:null,displayTests:g.filter(v=>v.type==="test")}},[S,u,n]),_=async()=>{l(""),sessionStorage.removeItem("twd-last-run-test-name"),p?await f.runByIds(p):await f.runAll();const v=Vh(g);l(v)},T=async v=>{const y=Array.from(So.handlers.values()).filter(A=>A.type==="test").find(A=>A.id===v);if(!y)return;l(""),sessionStorage.setItem("twd-last-run-test-name",y.name),await f.runSingle(y.id);const R=zh(y);l(R)};if(!i)return j.j.jsx(Dh,{position:t,setOpen:b});const P=q.length;return j.j.jsxs("div",{style:{fontFamily:Yh,position:"fixed",top:0,bottom:0,width:"var(--twd-sidebar-width)",background:"var(--twd-background)",fontSize:"var(--twd-font-size-md)",overflowY:"auto",boxShadow:"var(--twd-shadow)",textAlign:"left",zIndex:"var(--twd-z-index-sidebar)",pointerEvents:"all",isolation:"isolate",...Kh[t]},"data-testid":"twd-sidebar",role:"complementary","aria-label":"Test While Developing sidebar",children:[j.j.jsx("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)"},children:s}),j.j.jsxs("div",{style:{padding:"var(--twd-spacing-md)",background:"var(--twd-background)",position:"sticky",top:0,zIndex:"var(--twd-z-index-sticky)",borderBottom:"1px solid var(--twd-border)"},children:[j.j.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--twd-spacing-xl)"},children:[j.j.jsxs("div",{style:{display:"flex",gap:"var(--twd-spacing-xs)"},children:[j.j.jsx("button",{onClick:_,style:{background:"var(--twd-button-primary)",color:"var(--twd-button-primary-text)",padding:"var(--twd-spacing-xs) var(--twd-spacing-md)",borderRadius:"var(--twd-border-radius)",border:"none",cursor:"pointer"},children:j.j.jsx("span",{"aria-live":"polite",children:u?"Run Filtered":"Run All"})}),j.j.jsx("button",{onClick:()=>{Sd(),j.c()},"aria-label":"Clear all mocks",style:{background:"var(--twd-button-secondary)",color:"var(--twd-button-secondary-text)",padding:"var(--twd-spacing-xs) var(--twd-spacing-md)",borderRadius:"var(--twd-border-radius)",border:"1px solid var(--twd-button-border)",cursor:"pointer"},children:"Clear mocks"}),j.j.jsxs("span",{style:{color:"var(--twd-text-secondary)",fontSize:"var(--twd-font-size-sm)",alignSelf:"center"},children:["v",_i]})]}),j.j.jsx("button",{"aria-label":"Close sidebar",style:{background:"transparent",border:"none",cursor:"pointer",fontSize:"var(--twd-font-size-md)",paddingRight:"0",paddingLeft:"0"},onClick:()=>b(!1),children:"✖"})]}),j.j.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"var(--twd-font-size-md)",color:"var(--twd-text-secondary)",marginBottom:"10px"},children:[j.j.jsxs("span",{style:{color:"var(--twd-text)"},children:["Total: ",P]}),j.j.jsxs("div",{style:{display:"flex",gap:"var(--twd-spacing-xs)"},children:[j.j.jsxs("span",{style:{color:"var(--twd-success)"},children:["✓ ",q.filter(v=>v.status==="pass").length]}),j.j.jsxs("span",{style:{color:"var(--twd-error)"},children:["✗ ",q.filter(v=>v.status==="fail").length]})]})]}),j.j.jsx(Lh,{}),r&&j.j.jsx(Hh,{value:u,onChange:c})]}),j.j.jsx("div",{style:{padding:"var(--twd-spacing-md)"},children:j.j.jsx(kh,{roots:S,runTest:T,searchQuery:u})})]})},Af={primary:"#2563eb",background:"#1e293b",backgroundSecondary:"#182130",border:"#475569",borderLight:"#64748b",text:"#f1f5f9",textSecondary:"#cbd5e1",textMuted:"#94a3b8",describeBg:"#0f172a",describeText:"#94a3b8",describeBorder:"#334155",success:"#22c55e",successBg:"#14532d",error:"#ff5252",errorBg:"#7f1d1d",warning:"#fbbf24",warningBg:"#78350f",skip:"#475569",skipBg:"#334155",buttonPrimary:"#2563eb",buttonPrimaryText:"#ffffff",buttonSecondary:"#334155",buttonSecondaryText:"#f1f5f9",buttonBorder:"#475569",spacingXs:"4px",spacingSm:"6px",spacingMd:"8px",spacingLg:"12px",spacingXl:"14px",fontSizeXs:"10px",fontSizeSm:"12px",fontSizeMd:"14px",fontSizeLg:"16px",fontWeightNormal:"400",fontWeightMedium:"500",fontWeightBold:"700",sidebarWidth:"320px",borderRadius:"8px",borderRadiusLg:"6px",shadow:"2px 0 8px rgba(0,0,0,0.3)",shadowSm:"0 2px 4px rgba(0, 0, 0, 0.2)",zIndexSidebar:"99999",zIndexSticky:"100000",animationDuration:"0.2s",iconColor:"#f1f5f9",iconColorSecondary:"#cbd5e1"};function Zh(e={}){const t={...Af,...e};return Object.entries(t).map(([r,n])=>`${`--twd-${r.replace(/([A-Z])/g,"-$1").toLowerCase()}`}: ${n};`).join(`
|
|
25
|
+
`)}function Of(e){const t="twd-theme-variables";let r=document.getElementById(t);r||(r=document.createElement("style"),r.id=t,document.head.appendChild(r));const n=Zh(e);r.textContent=`
|
|
9
26
|
:root {
|
|
10
27
|
${n}
|
|
11
28
|
}
|
|
12
|
-
`}const Oh=e=>{const{Component:t,createRoot:r,theme:n}=e;qf(n);const o=document.createElement("div");o.setAttribute("id","twd-sidebar-root"),document.body.appendChild(o),r(o).render(t)},Ih=async(e,t,r,n)=>{for(const o in e)await e[o]();Oh({Component:t,createRoot:r,theme:n})};function z(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}function ye(e){var t;if(Nh(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 ${kh(e)}`)}function Nh(e){return e.nodeType===9}function kh(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function _f(e,t){return new Promise((r,n)=>{const o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}function ps(e,t){const r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let o=0;o<r.length;o++)yield r[o]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function Xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Pf{getAsFile(){return this.file}getAsString(t){typeof this.data=="string"&&t(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(t,r){Xe(this,"kind",void 0),Xe(this,"type",void 0),Xe(this,"file",null),Xe(this,"data",void 0),typeof t=="string"?(this.kind="string",this.type=String(r),this.data=t):(this.kind="file",this.type=t.type,this.file=t)}}class jh extends Array{add(...t){const r=new Pf(t[0],t[1]);return this.push(r),r}clear(){this.splice(0,this.length)}remove(t){this.splice(t,1)}}function Ko(e,t){const[r,n]=e.split("/"),o=!n||n==="*";return a=>t?a.type===(o?r:e):o?a.type.startsWith(`${r}/`):a.type===r}function Dh(e){return new class{getData(r){var n;const o=(n=this.items.find(Ko(r,!0)))!==null&&n!==void 0?n:this.items.find(Ko(r,!1));let a="";return o?.getAsString(i=>{a=i}),a}setData(r,n){const o=this.items.findIndex(Ko(r,!0)),a=new Pf(n,r);o>=0?this.items.splice(o,1,a):this.items.push(a)}clearData(r){if(r){const n=this.items.findIndex(Ko(r,!0));n>=0&&this.items.remove(n)}else this.items.clear()}get types(){const r=[];return this.files.length&&r.push("Files"),this.items.forEach(n=>r.push(n.type)),Object.freeze(r),r}setDragImage(){}constructor(){Xe(this,"dropEffect","none"),Xe(this,"effectAllowed","uninitialized"),Xe(this,"items",new jh),Xe(this,"files",ps(e,[]))}}}function ms(e,t=[]){const r=typeof e.DataTransfer>"u"?Dh(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>ps(e,t)}),r}async function $h(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function Tf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sf(e,...t){const 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(o){const a=await this.data[o];if(!a)throw new Error(`${o} is not one of the available MIME types on this item.`);return a instanceof e.Blob?a:new e.Blob([a],{type:o})}constructor(o){Tf(this,"data",void 0),this.data=o}}(r)}const xt=Symbol("Manage ClipboardSub");function Fs(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let n="";for(const o of this.items){const a=o.types.includes("text/plain")?"text/plain":o.types.find(i=>i.startsWith("text/"));a&&(n+=await o.getType(a).then(i=>_f(i,e.FileReader)))}return n}async write(n){this.items=n}async writeText(n){this.items=[Sf(e,n)]}constructor(...n){super(...n),Tf(this,"items",[])}},{[xt]:t})}function hs(e){return!!e?.[xt]}function Bh(e){if(hs(e.navigator.clipboard))return e.navigator.clipboard[xt];const t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard");let r;const n={resetClipboardStub:()=>{r=Fs(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=Fs(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[xt]}function Lh(e){hs(e.navigator.clipboard)&&e.navigator.clipboard[xt].resetClipboardStub()}function Fh(e){hs(e.navigator.clipboard)&&e.navigator.clipboard[xt].detachClipboardStub()}async function Uh(e){const t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");const o=ms(t);for(const a of n)for(const i of a.types)o.setData(i,await a.getType(i).then(s=>_f(s,t.FileReader)));return o}async function Af(e,t){const r=ye(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){const s=t.items[i],l=await $h(r,s);o.push(Sf(r,l))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}const ba=globalThis;typeof ba.afterEach=="function"&&ba.afterEach(()=>Lh(globalThis.window));typeof ba.afterAll=="function"&&ba.afterAll(()=>Fh(globalThis.window));const Mf=["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 bs(e){return e.matches(Mf)}function zh(e){return new e.constructor(e.type,e)}function Fe(e){for(let r=e;r;r=r.parentElement)if(z(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(z(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 zo(e){const t=e.activeElement;return t?.shadowRoot?zo(t.shadowRoot):Fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function Ha(e){var t;return(t=zo(e))!==null&&t!==void 0?t:e.body}function Vh(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function pt(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function Oo(e){const t=Hh(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function Hh(e){return e.nodeType===1?e:e.parentElement}var Of=(function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e})(Of||{});function If(e){return z(e,"button")||z(e,"input")&&e.type in Of}function Ct(e){return kf(e)&&!e.readOnly||pt(e)}var Nf=(function(e){return 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",e})(Nf||{});function kf(e){return z(e,"textarea")||z(e,"input")&&e.type in Nf}function Pe(e){return jf(e)&&kf(e)}function Wh(e){return jf(e)&&If(e)}function jf(e){return e.nodeType===1}function Gh(e){const t=e.ownerDocument.getSelection();if(t?.focusNode&&Pe(e)){const n=Oo(t.focusNode);if(n){if(!t.isCollapsed){var r;const 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)}}var Ce={},na={exports:{}};na.exports;var Us;function Df(){return Us||(Us=1,(function(e){const 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(){const 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(const[s,l]of Object.entries(i)){for(const[u,d]of Object.entries(l))i[u]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},l[u]=i[u],a.set(d[0],d[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,u)=>s===l&&l===u?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(u/255*5),enumerable:!1},hexToRgb:{value:s=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!l)return[0,0,0];let{colorString:u}=l.groups;u.length===3&&(u=u.split("").map(f=>f+f).join(""));const d=Number.parseInt(u,16);return[d>>16&255,d>>8&255,d&255]},enumerable:!1},hexToAnsi256:{value:s=>i.rgbToAnsi256(...i.hexToRgb(s)),enumerable:!1}}),i}Object.defineProperty(e,"exports",{enumerable:!0,get:o})})(na)),na.exports}var at={},zs;function Da(){if(zs)return at;zs=1,Object.defineProperty(at,"__esModule",{value:!0}),at.printIteratorEntries=t,at.printIteratorValues=r,at.printListItems=n,at.printObjectProperties=o;const e=(a,i)=>{const s=Object.keys(a).sort(i);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(l=>{Object.getOwnPropertyDescriptor(a,l).enumerable&&s.push(l)}),s};function t(a,i,s,l,u,d,f=": "){let c="",v=a.next();if(!v.done){c+=i.spacingOuter;const m=s+i.indent;for(;!v.done;){const g=d(v.value[0],i,m,l,u),T=d(v.value[1],i,m,l,u);c+=m+g+f+T,v=a.next(),v.done?i.min||(c+=","):c+=","+i.spacingInner}c+=i.spacingOuter+s}return c}function r(a,i,s,l,u,d){let f="",c=a.next();if(!c.done){f+=i.spacingOuter;const v=s+i.indent;for(;!c.done;)f+=v+d(c.value,i,v,l,u),c=a.next(),c.done?i.min||(f+=","):f+=","+i.spacingInner;f+=i.spacingOuter+s}return f}function n(a,i,s,l,u,d){let f="";if(a.length){f+=i.spacingOuter;const c=s+i.indent;for(let v=0;v<a.length;v++)f+=c,v in a&&(f+=d(a[v],i,c,l,u)),v<a.length-1?f+=","+i.spacingInner:i.min||(f+=",");f+=i.spacingOuter+s}return f}function o(a,i,s,l,u,d){let f="";const c=e(a,i.compareKeys);if(c.length){f+=i.spacingOuter;const v=s+i.indent;for(let m=0;m<c.length;m++){const g=c[m],T=d(g,i,v,l,u),p=d(a[g],i,v,l,u);f+=v+T+": "+p,m<c.length-1?f+=","+i.spacingInner:i.min||(f+=",")}f+=i.spacingOuter+s}return f}return at}var Ae={},Vs;function Kh(){if(Vs)return Ae;Vs=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.test=Ae.serialize=Ae.default=void 0;var e=Da(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("jest.asymmetricMatcher"):1267621,o=" ",a=(u,d,f,c,v,m)=>{const g=u.toString();return g==="ArrayContaining"||g==="ArrayNotContaining"?++c>d.maxDepth?"["+g+"]":g+o+"["+(0,e.printListItems)(u.sample,d,f,c,v,m)+"]":g==="ObjectContaining"||g==="ObjectNotContaining"?++c>d.maxDepth?"["+g+"]":g+o+"{"+(0,e.printObjectProperties)(u.sample,d,f,c,v,m)+"}":g==="StringMatching"||g==="StringNotMatching"||g==="StringContaining"||g==="StringNotContaining"?g+o+m(u.sample,d,f,c,v):u.toAsymmetricMatcher()};Ae.serialize=a;const i=u=>u&&u.$$typeof===n;Ae.test=i;var l={serialize:a,test:i};return Ae.default=l,Ae}var Me={},Wa,Hs;function Yh(){return Hs||(Hs=1,Wa=({onlyFirst:e=!1}={})=>{const t=["[\\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(t,e?void 0:"g")}),Wa}var Ws;function Xh(){if(Ws)return Me;Ws=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.test=Me.serialize=Me.default=void 0;var e=r(Yh()),t=r(Df());function r(l){return l&&l.__esModule?l:{default:l}}const n=l=>l.replace((0,e.default)(),u=>{switch(u){case t.default.red.close:case t.default.green.close:case t.default.cyan.close:case t.default.gray.close:case t.default.white.close:case t.default.yellow.close:case t.default.bgRed.close:case t.default.bgGreen.close:case t.default.bgYellow.close:case t.default.inverse.close:case t.default.dim.close:case t.default.bold.close:case t.default.reset.open:case t.default.reset.close:return"</>";case t.default.red.open:return"<red>";case t.default.green.open:return"<green>";case t.default.cyan.open:return"<cyan>";case t.default.gray.open:return"<gray>";case t.default.white.open:return"<white>";case t.default.yellow.open:return"<yellow>";case t.default.bgRed.open:return"<bgRed>";case t.default.bgGreen.open:return"<bgGreen>";case t.default.bgYellow.open:return"<bgYellow>";case t.default.inverse.open:return"<inverse>";case t.default.dim.open:return"<dim>";case t.default.bold.open:return"<bold>";default:return""}}),o=l=>typeof l=="string"&&!!l.match((0,e.default)());Me.test=o;const a=(l,u,d,f,c,v)=>v(n(l),u,d,f,c);Me.serialize=a;var s={serialize:a,test:o};return Me.default=s,Me}var Oe={},Gs;function Jh(){if(Gs)return Oe;Gs=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.test=Oe.serialize=Oe.default=void 0;var e=Da();const t=" ",r=["DOMStringMap","NamedNodeMap"],n=/^(HTML\w*Collection|NodeList)$/,o=d=>r.indexOf(d)!==-1||n.test(d),a=d=>d&&d.constructor&&!!d.constructor.name&&o(d.constructor.name);Oe.test=a;const i=d=>d.constructor.name==="NamedNodeMap",s=(d,f,c,v,m,g)=>{const T=d.constructor.name;return++v>f.maxDepth?"["+T+"]":(f.min?"":T+t)+(r.indexOf(T)!==-1?"{"+(0,e.printObjectProperties)(i(d)?Array.from(d).reduce((p,q)=>(p[q.name]=q.value,p),{}):{...d},f,c,v,m,g)+"}":"["+(0,e.printListItems)(Array.from(d),f,c,v,m,g)+"]")};Oe.serialize=s;var u={serialize:s,test:a};return Oe.default=u,Oe}var Ie={},de={},Yo={},Ks;function Qh(){if(Ks)return Yo;Ks=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=e;function e(t){return t.replace(/</g,"<").replace(/>/g,">")}return Yo}var Ys;function vs(){if(Ys)return de;Ys=1,Object.defineProperty(de,"__esModule",{value:!0}),de.printText=de.printProps=de.printElementAsLeaf=de.printElement=de.printComment=de.printChildren=void 0;var e=t(Qh());function t(l){return l&&l.__esModule?l:{default:l}}const r=(l,u,d,f,c,v,m)=>{const g=f+d.indent,T=d.colors;return l.map(p=>{const q=u[p];let _=m(q,d,g,c,v);return typeof q!="string"&&(_.indexOf(`
|
|
13
|
-
`)!==-1&&(_=d.spacingOuter+g+_+d.spacingOuter+f),_="{"+_+"}"),d.spacingInner+f+T.prop.open+p+T.prop.close+"="+T.value.open+_+T.value.close}).join("")};de.printProps=r;const n=(l,u,d,f,c,v)=>l.map(m=>u.spacingOuter+d+(typeof m=="string"?o(m,u):v(m,u,d,f,c))).join("");de.printChildren=n;const o=(l,u)=>{const d=u.colors.content;return d.open+(0,e.default)(l)+d.close};de.printText=o;const a=(l,u)=>{const d=u.colors.comment;return d.open+"<!--"+(0,e.default)(l)+"-->"+d.close};de.printComment=a;const i=(l,u,d,f,c)=>{const v=f.colors.tag;return v.open+"<"+l+(u&&v.close+u+f.spacingOuter+c+v.open)+(d?">"+v.close+d+f.spacingOuter+c+v.open+"</"+l:(u&&!f.min?"":" ")+"/")+">"+v.close};de.printElement=i;const s=(l,u)=>{const d=u.colors.tag;return d.open+"<"+l+d.close+" …"+d.open+" />"+d.close};return de.printElementAsLeaf=s,de}var Xs;function Zh(){if(Xs)return Ie;Xs=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.test=Ie.serialize=Ie.default=void 0;var e=vs();const t=1,r=3,n=8,o=11,a=/^((HTML|SVG)\w*)?Element$/,i=g=>{try{return typeof g.hasAttribute=="function"&&g.hasAttribute("is")}catch{return!1}},s=g=>{const T=g.constructor.name,{nodeType:p,tagName:q}=g,_=typeof q=="string"&&q.includes("-")||i(g);return p===t&&(a.test(T)||_)||p===r&&T==="Text"||p===n&&T==="Comment"||p===o&&T==="DocumentFragment"},l=g=>{var T;return(g==null||(T=g.constructor)===null||T===void 0?void 0:T.name)&&s(g)};Ie.test=l;function u(g){return g.nodeType===r}function d(g){return g.nodeType===n}function f(g){return g.nodeType===o}const c=(g,T,p,q,_,S)=>{if(u(g))return(0,e.printText)(g.data,T);if(d(g))return(0,e.printComment)(g.data,T);const P=f(g)?"DocumentFragment":g.tagName.toLowerCase();return++q>T.maxDepth?(0,e.printElementAsLeaf)(P,T):(0,e.printElement)(P,(0,e.printProps)(f(g)?[]:Array.from(g.attributes).map(y=>y.name).sort(),f(g)?{}:Array.from(g.attributes).reduce((y,w)=>(y[w.name]=w.value,y),{}),T,p+T.indent,q,_,S),(0,e.printChildren)(Array.prototype.slice.call(g.childNodes||g.children),T,p+T.indent,q,_,S),T,p)};Ie.serialize=c;var m={serialize:c,test:l};return Ie.default=m,Ie}var Ne={},Js;function eb(){if(Js)return Ne;Js=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.test=Ne.serialize=Ne.default=void 0;var e=Da();const t="@@__IMMUTABLE_ITERABLE__@@",r="@@__IMMUTABLE_LIST__@@",n="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",i="@@__IMMUTABLE_RECORD__@@",s="@@__IMMUTABLE_SEQ__@@",l="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",d=w=>"Immutable."+w,f=w=>"["+w+"]",c=" ",v="…",m=(w,E,M,N,D,$,A)=>++N>E.maxDepth?f(d(A)):d(A)+c+"{"+(0,e.printIteratorEntries)(w.entries(),E,M,N,D,$)+"}";function g(w){let E=0;return{next(){if(E<w._keys.length){const M=w._keys[E++];return{done:!1,value:[M,w.get(M)]}}return{done:!0,value:void 0}}}}const T=(w,E,M,N,D,$)=>{const A=d(w._name||"Record");return++N>E.maxDepth?f(A):A+c+"{"+(0,e.printIteratorEntries)(g(w),E,M,N,D,$)+"}"},p=(w,E,M,N,D,$)=>{const A=d("Seq");return++N>E.maxDepth?f(A):w[n]?A+c+"{"+(w._iter||w._object?(0,e.printIteratorEntries)(w.entries(),E,M,N,D,$):v)+"}":A+c+"["+(w._iter||w._array||w._collection||w._iterable?(0,e.printIteratorValues)(w.values(),E,M,N,D,$):v)+"]"},q=(w,E,M,N,D,$,A)=>++N>E.maxDepth?f(d(A)):d(A)+c+"["+(0,e.printIteratorValues)(w.values(),E,M,N,D,$)+"]",_=(w,E,M,N,D,$)=>w[o]?m(w,E,M,N,D,$,w[a]?"OrderedMap":"Map"):w[r]?q(w,E,M,N,D,$,"List"):w[l]?q(w,E,M,N,D,$,w[a]?"OrderedSet":"Set"):w[u]?q(w,E,M,N,D,$,"Stack"):w[s]?p(w,E,M,N,D,$):T(w,E,M,N,D,$);Ne.serialize=_;const S=w=>w&&(w[t]===!0||w[i]===!0);Ne.test=S;var y={serialize:_,test:S};return Ne.default=y,Ne}var ke={},Xo={exports:{}},X={};var Qs;function tb(){if(Qs)return X;Qs=1;var e=60103,t=60106,r=60107,n=60108,o=60114,a=60109,i=60110,s=60112,l=60113,u=60120,d=60115,f=60116,c=60121,v=60122,m=60117,g=60129,T=60131;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;e=p("react.element"),t=p("react.portal"),r=p("react.fragment"),n=p("react.strict_mode"),o=p("react.profiler"),a=p("react.provider"),i=p("react.context"),s=p("react.forward_ref"),l=p("react.suspense"),u=p("react.suspense_list"),d=p("react.memo"),f=p("react.lazy"),c=p("react.block"),v=p("react.server.block"),m=p("react.fundamental"),g=p("react.debug_trace_mode"),T=p("react.legacy_hidden")}function q(A){if(typeof A=="object"&&A!==null){var k=A.$$typeof;switch(k){case e:switch(A=A.type,A){case r:case o:case n:case l:case u:return A;default:switch(A=A&&A.$$typeof,A){case i:case s:case f:case d:case a:return A;default:return k}}case t:return k}}}var _=a,S=e,P=s,y=r,w=f,E=d,M=t,N=o,D=n,$=l;return X.ContextConsumer=i,X.ContextProvider=_,X.Element=S,X.ForwardRef=P,X.Fragment=y,X.Lazy=w,X.Memo=E,X.Portal=M,X.Profiler=N,X.StrictMode=D,X.Suspense=$,X.isAsyncMode=function(){return!1},X.isConcurrentMode=function(){return!1},X.isContextConsumer=function(A){return q(A)===i},X.isContextProvider=function(A){return q(A)===a},X.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},X.isForwardRef=function(A){return q(A)===s},X.isFragment=function(A){return q(A)===r},X.isLazy=function(A){return q(A)===f},X.isMemo=function(A){return q(A)===d},X.isPortal=function(A){return q(A)===t},X.isProfiler=function(A){return q(A)===o},X.isStrictMode=function(A){return q(A)===n},X.isSuspense=function(A){return q(A)===l},X.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===o||A===g||A===n||A===l||A===u||A===T||typeof A=="object"&&A!==null&&(A.$$typeof===f||A.$$typeof===d||A.$$typeof===a||A.$$typeof===i||A.$$typeof===s||A.$$typeof===m||A.$$typeof===c||A[0]===v)},X.typeOf=q,X}var J={};var Zs;function rb(){return Zs||(Zs=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,a=60109,i=60110,s=60112,l=60113,u=60120,d=60115,f=60116,c=60121,v=60122,m=60117,g=60129,T=60131;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;e=p("react.element"),t=p("react.portal"),r=p("react.fragment"),n=p("react.strict_mode"),o=p("react.profiler"),a=p("react.provider"),i=p("react.context"),s=p("react.forward_ref"),l=p("react.suspense"),u=p("react.suspense_list"),d=p("react.memo"),f=p("react.lazy"),c=p("react.block"),v=p("react.server.block"),m=p("react.fundamental"),p("react.scope"),p("react.opaque.id"),g=p("react.debug_trace_mode"),p("react.offscreen"),T=p("react.legacy_hidden")}var q=!1;function _(O){return!!(typeof O=="string"||typeof O=="function"||O===r||O===o||O===g||O===n||O===l||O===u||O===T||q||typeof O=="object"&&O!==null&&(O.$$typeof===f||O.$$typeof===d||O.$$typeof===a||O.$$typeof===i||O.$$typeof===s||O.$$typeof===m||O.$$typeof===c||O[0]===v))}function S(O){if(typeof O=="object"&&O!==null){var W=O.$$typeof;switch(W){case e:var V=O.type;switch(V){case r:case o:case n:case l:case u:return V;default:var re=V&&V.$$typeof;switch(re){case i:case s:case f:case d:case a:return re;default:return W}}case t:return W}}}var P=i,y=a,w=e,E=s,M=r,N=f,D=d,$=t,A=o,k=n,F=l,Z=!1,Y=!1;function ue(O){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function we(O){return Y||(Y=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function nt(O){return S(O)===i}function Ve(O){return S(O)===a}function He(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function L(O){return S(O)===s}function We(O){return S(O)===r}function ot(O){return S(O)===f}function Re(O){return S(O)===d}function Ot(O){return S(O)===t}function It(O){return S(O)===o}function C(O){return S(O)===n}function B(O){return S(O)===l}J.ContextConsumer=P,J.ContextProvider=y,J.Element=w,J.ForwardRef=E,J.Fragment=M,J.Lazy=N,J.Memo=D,J.Portal=$,J.Profiler=A,J.StrictMode=k,J.Suspense=F,J.isAsyncMode=ue,J.isConcurrentMode=we,J.isContextConsumer=nt,J.isContextProvider=Ve,J.isElement=He,J.isForwardRef=L,J.isFragment=We,J.isLazy=ot,J.isMemo=Re,J.isPortal=Ot,J.isProfiler=It,J.isStrictMode=C,J.isSuspense=B,J.isValidElementType=_,J.typeOf=S})()),J}var el;function nb(){return el||(el=1,process.env.NODE_ENV==="production"?Xo.exports=tb():Xo.exports=rb()),Xo.exports}var tl;function ob(){if(tl)return ke;tl=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.test=ke.serialize=ke.default=void 0;var e=n(nb()),t=vs();function r(f){if(typeof WeakMap!="function")return null;var c=new WeakMap,v=new WeakMap;return(r=function(m){return m?v:c})(f)}function n(f,c){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=r(c);if(v&&v.has(f))return v.get(f);var m={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in f)if(T!=="default"&&Object.prototype.hasOwnProperty.call(f,T)){var p=g?Object.getOwnPropertyDescriptor(f,T):null;p&&(p.get||p.set)?Object.defineProperty(m,T,p):m[T]=f[T]}return m.default=f,v&&v.set(f,m),m}const o=(f,c=[])=>(Array.isArray(f)?f.forEach(v=>{o(v,c)}):f!=null&&f!==!1&&c.push(f),c),a=f=>{const c=f.type;if(typeof c=="string")return c;if(typeof c=="function")return c.displayName||c.name||"Unknown";if(e.isFragment(f))return"React.Fragment";if(e.isSuspense(f))return"React.Suspense";if(typeof c=="object"&&c!==null){if(e.isContextProvider(f))return"Context.Provider";if(e.isContextConsumer(f))return"Context.Consumer";if(e.isForwardRef(f)){if(c.displayName)return c.displayName;const v=c.render.displayName||c.render.name||"";return v!==""?"ForwardRef("+v+")":"ForwardRef"}if(e.isMemo(f)){const v=c.displayName||c.type.displayName||c.type.name||"";return v!==""?"Memo("+v+")":"Memo"}}return"UNDEFINED"},i=f=>{const{props:c}=f;return Object.keys(c).filter(v=>v!=="children"&&c[v]!==void 0).sort()},s=(f,c,v,m,g,T)=>++m>c.maxDepth?(0,t.printElementAsLeaf)(a(f),c):(0,t.printElement)(a(f),(0,t.printProps)(i(f),f.props,c,v+c.indent,m,g,T),(0,t.printChildren)(o(f.props.children),c,v+c.indent,m,g,T),c,v);ke.serialize=s;const l=f=>f!=null&&e.isElement(f);ke.test=l;var d={serialize:s,test:l};return ke.default=d,ke}var je={},rl;function ab(){if(rl)return je;rl=1,Object.defineProperty(je,"__esModule",{value:!0}),je.test=je.serialize=je.default=void 0;var e=vs(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("react.test.json"):245830487,o=u=>{const{props:d}=u;return d?Object.keys(d).filter(f=>d[f]!==void 0).sort():[]},a=(u,d,f,c,v,m)=>++c>d.maxDepth?(0,e.printElementAsLeaf)(u.type,d):(0,e.printElement)(u.type,u.props?(0,e.printProps)(o(u),u.props,d,f+d.indent,c,v,m):"",u.children?(0,e.printChildren)(u.children,d,f+d.indent,c,v,m):"",d,f);je.serialize=a;const i=u=>u&&u.$$typeof===n;je.test=i;var l={serialize:a,test:i};return je.default=l,je}var nl;function ib(){if(nl)return Ce;nl=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=Ce.DEFAULT_OPTIONS=void 0,Ce.format=Re,Ce.plugins=void 0;var e=u(Df()),t=Da(),r=u(Kh()),n=u(Xh()),o=u(Jh()),a=u(Zh()),i=u(eb()),s=u(ob()),l=u(ab());function u(C){return C&&C.__esModule?C:{default:C}}const d=Object.prototype.toString,f=Date.prototype.toISOString,c=Error.prototype.toString,v=RegExp.prototype.toString,m=C=>typeof C.constructor=="function"&&C.constructor.name||"Object",g=C=>typeof window<"u"&&C===window,T=/^Symbol\((.*)\)(.*)$/,p=/\n/gi;class q extends Error{constructor(B,O){super(B),this.stack=O,this.name=this.constructor.name}}function _(C){return C==="[object Array]"||C==="[object ArrayBuffer]"||C==="[object DataView]"||C==="[object Float32Array]"||C==="[object Float64Array]"||C==="[object Int8Array]"||C==="[object Int16Array]"||C==="[object Int32Array]"||C==="[object Uint8Array]"||C==="[object Uint8ClampedArray]"||C==="[object Uint16Array]"||C==="[object Uint32Array]"}function S(C){return Object.is(C,-0)?"-0":String(C)}function P(C){return`${C}n`}function y(C,B){return B?"[Function "+(C.name||"anonymous")+"]":"[Function]"}function w(C){return String(C).replace(T,"Symbol($1)")}function E(C){return"["+c.call(C)+"]"}function M(C,B,O,W){if(C===!0||C===!1)return""+C;if(C===void 0)return"undefined";if(C===null)return"null";const V=typeof C;if(V==="number")return S(C);if(V==="bigint")return P(C);if(V==="string")return W?'"'+C.replace(/"|\\/g,"\\$&")+'"':'"'+C+'"';if(V==="function")return y(C,B);if(V==="symbol")return w(C);const re=d.call(C);return re==="[object WeakMap]"?"WeakMap {}":re==="[object WeakSet]"?"WeakSet {}":re==="[object Function]"||re==="[object GeneratorFunction]"?y(C,B):re==="[object Symbol]"?w(C):re==="[object Date]"?isNaN(+C)?"Date { NaN }":f.call(C):re==="[object Error]"?E(C):re==="[object RegExp]"?O?v.call(C).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):v.call(C):C instanceof Error?E(C):null}function N(C,B,O,W,V,re){if(V.indexOf(C)!==-1)return"[Circular]";V=V.slice(),V.push(C);const oe=++W>B.maxDepth,ce=B.min;if(B.callToJSON&&!oe&&C.toJSON&&typeof C.toJSON=="function"&&!re)return k(C.toJSON(),B,O,W,V,!0);const Se=d.call(C);return Se==="[object Arguments]"?oe?"[Arguments]":(ce?"":"Arguments ")+"["+(0,t.printListItems)(C,B,O,W,V,k)+"]":_(Se)?oe?"["+C.constructor.name+"]":(ce||!B.printBasicPrototype&&C.constructor.name==="Array"?"":C.constructor.name+" ")+"["+(0,t.printListItems)(C,B,O,W,V,k)+"]":Se==="[object Map]"?oe?"[Map]":"Map {"+(0,t.printIteratorEntries)(C.entries(),B,O,W,V,k," => ")+"}":Se==="[object Set]"?oe?"[Set]":"Set {"+(0,t.printIteratorValues)(C.values(),B,O,W,V,k)+"}":oe||g(C)?"["+m(C)+"]":(ce||!B.printBasicPrototype&&m(C)==="Object"?"":m(C)+" ")+"{"+(0,t.printObjectProperties)(C,B,O,W,V,k)+"}"}function D(C){return C.serialize!=null}function $(C,B,O,W,V,re){let oe;try{oe=D(C)?C.serialize(B,O,W,V,re,k):C.print(B,ce=>k(ce,O,W,V,re),ce=>{const Se=W+O.indent;return Se+ce.replace(p,`
|
|
14
|
-
`+
|
|
29
|
+
`}const eb=e=>{const{Component:t,createRoot:r,theme:n}=e;Of(n);const o=document.createElement("div");o.setAttribute("id","twd-sidebar-root"),document.body.appendChild(o),r(o).render(t)},tb=async(e,t,r,n)=>{for(const o in e)await e[o]();eb({Component:t,createRoot:r,theme:n})};function z(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}function we(e){var t;if(rb(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 ${nb(e)}`)}function rb(e){return e.nodeType===9}function nb(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function If(e,t){return new Promise((r,n)=>{const o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}function vs(e,t){const r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let o=0;o<r.length;o++)yield r[o]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function Qe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Nf{getAsFile(){return this.file}getAsString(t){typeof this.data=="string"&&t(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(t,r){Qe(this,"kind",void 0),Qe(this,"type",void 0),Qe(this,"file",null),Qe(this,"data",void 0),typeof t=="string"?(this.kind="string",this.type=String(r),this.data=t):(this.kind="file",this.type=t.type,this.file=t)}}class ob extends Array{add(...t){const r=new Nf(t[0],t[1]);return this.push(r),r}clear(){this.splice(0,this.length)}remove(t){this.splice(t,1)}}function Xo(e,t){const[r,n]=e.split("/"),o=!n||n==="*";return i=>t?i.type===(o?r:e):o?i.type.startsWith(`${r}/`):i.type===r}function ib(e){return new class{getData(r){var n;const o=(n=this.items.find(Xo(r,!0)))!==null&&n!==void 0?n:this.items.find(Xo(r,!1));let i="";return o?.getAsString(a=>{i=a}),i}setData(r,n){const o=this.items.findIndex(Xo(r,!0)),i=new Nf(n,r);o>=0?this.items.splice(o,1,i):this.items.push(i)}clearData(r){if(r){const n=this.items.findIndex(Xo(r,!0));n>=0&&this.items.remove(n)}else this.items.clear()}get types(){const r=[];return this.files.length&&r.push("Files"),this.items.forEach(n=>r.push(n.type)),Object.freeze(r),r}setDragImage(){}constructor(){Qe(this,"dropEffect","none"),Qe(this,"effectAllowed","uninitialized"),Qe(this,"items",new ob),Qe(this,"files",vs(e,[]))}}}function gs(e,t=[]){const r=typeof e.DataTransfer>"u"?ib(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>vs(e,t)}),r}async function ab(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function kf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jf(e,...t){const 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(o){const i=await this.data[o];if(!i)throw new Error(`${o} is not one of the available MIME types on this item.`);return i instanceof e.Blob?i:new e.Blob([i],{type:o})}constructor(o){kf(this,"data",void 0),this.data=o}}(r)}const qt=Symbol("Manage ClipboardSub");function Hs(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let n="";for(const o of this.items){const i=o.types.includes("text/plain")?"text/plain":o.types.find(a=>a.startsWith("text/"));i&&(n+=await o.getType(i).then(a=>If(a,e.FileReader)))}return n}async write(n){this.items=n}async writeText(n){this.items=[jf(e,n)]}constructor(...n){super(...n),kf(this,"items",[])}},{[qt]:t})}function ys(e){return!!e?.[qt]}function sb(e){if(ys(e.navigator.clipboard))return e.navigator.clipboard[qt];const t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard");let r;const n={resetClipboardStub:()=>{r=Hs(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=Hs(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[qt]}function lb(e){ys(e.navigator.clipboard)&&e.navigator.clipboard[qt].resetClipboardStub()}function ub(e){ys(e.navigator.clipboard)&&e.navigator.clipboard[qt].detachClipboardStub()}async function cb(e){const t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");const o=gs(t);for(const i of n)for(const a of i.types)o.setData(a,await i.getType(a).then(s=>If(s,t.FileReader)));return o}async function Df(e,t){const r=we(e),n=r.navigator.clipboard,o=[];for(let a=0;a<t.items.length;a++){const s=t.items[a],l=await ab(r,s);o.push(jf(r,l))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}const gi=globalThis;typeof gi.afterEach=="function"&&gi.afterEach(()=>lb(globalThis.window));typeof gi.afterAll=="function"&&gi.afterAll(()=>ub(globalThis.window));const $f=["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 ws(e){return e.matches($f)}function db(e){return new e.constructor(e.type,e)}function ze(e){for(let r=e;r;r=r.parentElement)if(z(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(z(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 Ho(e){const t=e.activeElement;return t?.shadowRoot?Ho(t.shadowRoot):ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function Gi(e){var t;return(t=Ho(e))!==null&&t!==void 0?t:e.body}function fb(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function mt(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function No(e){const t=pb(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function pb(e){return e.nodeType===1?e:e.parentElement}var Bf=(function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e})(Bf||{});function Lf(e){return z(e,"button")||z(e,"input")&&e.type in Bf}function _t(e){return Uf(e)&&!e.readOnly||mt(e)}var Ff=(function(e){return 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",e})(Ff||{});function Uf(e){return z(e,"textarea")||z(e,"input")&&e.type in Ff}function Se(e){return zf(e)&&Uf(e)}function mb(e){return zf(e)&&Lf(e)}function zf(e){return e.nodeType===1}function hb(e){const t=e.ownerDocument.getSelection();if(t?.focusNode&&Se(e)){const n=No(t.focusNode);if(n){if(!t.isCollapsed){var r;const 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)}}var qe={},ii={exports:{}};ii.exports;var Ws;function Vf(){return Ws||(Ws=1,(function(e){const r=(i=0)=>a=>`\x1B[${38+i};5;${a}m`,n=(i=0)=>(a,s,l)=>`\x1B[${38+i};2;${a};${s};${l}m`;function o(){const i=new Map,a={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]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[s,l]of Object.entries(a)){for(const[u,d]of Object.entries(l))a[u]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},l[u]=a[u],i.set(d[0],d[1]);Object.defineProperty(a,s,{value:l,enumerable:!1})}return Object.defineProperty(a,"codes",{value:i,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi256=r(),a.color.ansi16m=n(),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=n(10),Object.defineProperties(a,{rgbToAnsi256:{value:(s,l,u)=>s===l&&l===u?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(u/255*5),enumerable:!1},hexToRgb:{value:s=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!l)return[0,0,0];let{colorString:u}=l.groups;u.length===3&&(u=u.split("").map(f=>f+f).join(""));const d=Number.parseInt(u,16);return[d>>16&255,d>>8&255,d&255]},enumerable:!1},hexToAnsi256:{value:s=>a.rgbToAnsi256(...a.hexToRgb(s)),enumerable:!1}}),a}Object.defineProperty(e,"exports",{enumerable:!0,get:o})})(ii)),ii.exports}var at={},Gs;function Bi(){if(Gs)return at;Gs=1,Object.defineProperty(at,"__esModule",{value:!0}),at.printIteratorEntries=t,at.printIteratorValues=r,at.printListItems=n,at.printObjectProperties=o;const e=(i,a)=>{const s=Object.keys(i).sort(a);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(l=>{Object.getOwnPropertyDescriptor(i,l).enumerable&&s.push(l)}),s};function t(i,a,s,l,u,d,f=": "){let c="",b=i.next();if(!b.done){c+=a.spacingOuter;const g=s+a.indent;for(;!b.done;){const w=d(b.value[0],a,g,l,u),S=d(b.value[1],a,g,l,u);c+=g+w+f+S,b=i.next(),b.done?a.min||(c+=","):c+=","+a.spacingInner}c+=a.spacingOuter+s}return c}function r(i,a,s,l,u,d){let f="",c=i.next();if(!c.done){f+=a.spacingOuter;const b=s+a.indent;for(;!c.done;)f+=b+d(c.value,a,b,l,u),c=i.next(),c.done?a.min||(f+=","):f+=","+a.spacingInner;f+=a.spacingOuter+s}return f}function n(i,a,s,l,u,d){let f="";if(i.length){f+=a.spacingOuter;const c=s+a.indent;for(let b=0;b<i.length;b++)f+=c,b in i&&(f+=d(i[b],a,c,l,u)),b<i.length-1?f+=","+a.spacingInner:a.min||(f+=",");f+=a.spacingOuter+s}return f}function o(i,a,s,l,u,d){let f="";const c=e(i,a.compareKeys);if(c.length){f+=a.spacingOuter;const b=s+a.indent;for(let g=0;g<c.length;g++){const w=c[g],S=d(w,a,b,l,u),p=d(i[w],a,b,l,u);f+=b+S+": "+p,g<c.length-1?f+=","+a.spacingInner:a.min||(f+=",")}f+=a.spacingOuter+s}return f}return at}var Oe={},Ks;function bb(){if(Ks)return Oe;Ks=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.test=Oe.serialize=Oe.default=void 0;var e=Bi(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("jest.asymmetricMatcher"):1267621,o=" ",i=(u,d,f,c,b,g)=>{const w=u.toString();return w==="ArrayContaining"||w==="ArrayNotContaining"?++c>d.maxDepth?"["+w+"]":w+o+"["+(0,e.printListItems)(u.sample,d,f,c,b,g)+"]":w==="ObjectContaining"||w==="ObjectNotContaining"?++c>d.maxDepth?"["+w+"]":w+o+"{"+(0,e.printObjectProperties)(u.sample,d,f,c,b,g)+"}":w==="StringMatching"||w==="StringNotMatching"||w==="StringContaining"||w==="StringNotContaining"?w+o+g(u.sample,d,f,c,b):u.toAsymmetricMatcher()};Oe.serialize=i;const a=u=>u&&u.$$typeof===n;Oe.test=a;var l={serialize:i,test:a};return Oe.default=l,Oe}var Ie={},Ki,Ys;function vb(){return Ys||(Ys=1,Ki=({onlyFirst:e=!1}={})=>{const t=["[\\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(t,e?void 0:"g")}),Ki}var Xs;function gb(){if(Xs)return Ie;Xs=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.test=Ie.serialize=Ie.default=void 0;var e=r(vb()),t=r(Vf());function r(l){return l&&l.__esModule?l:{default:l}}const n=l=>l.replace((0,e.default)(),u=>{switch(u){case t.default.red.close:case t.default.green.close:case t.default.cyan.close:case t.default.gray.close:case t.default.white.close:case t.default.yellow.close:case t.default.bgRed.close:case t.default.bgGreen.close:case t.default.bgYellow.close:case t.default.inverse.close:case t.default.dim.close:case t.default.bold.close:case t.default.reset.open:case t.default.reset.close:return"</>";case t.default.red.open:return"<red>";case t.default.green.open:return"<green>";case t.default.cyan.open:return"<cyan>";case t.default.gray.open:return"<gray>";case t.default.white.open:return"<white>";case t.default.yellow.open:return"<yellow>";case t.default.bgRed.open:return"<bgRed>";case t.default.bgGreen.open:return"<bgGreen>";case t.default.bgYellow.open:return"<bgYellow>";case t.default.inverse.open:return"<inverse>";case t.default.dim.open:return"<dim>";case t.default.bold.open:return"<bold>";default:return""}}),o=l=>typeof l=="string"&&!!l.match((0,e.default)());Ie.test=o;const i=(l,u,d,f,c,b)=>b(n(l),u,d,f,c);Ie.serialize=i;var s={serialize:i,test:o};return Ie.default=s,Ie}var Ne={},Js;function yb(){if(Js)return Ne;Js=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.test=Ne.serialize=Ne.default=void 0;var e=Bi();const t=" ",r=["DOMStringMap","NamedNodeMap"],n=/^(HTML\w*Collection|NodeList)$/,o=d=>r.indexOf(d)!==-1||n.test(d),i=d=>d&&d.constructor&&!!d.constructor.name&&o(d.constructor.name);Ne.test=i;const a=d=>d.constructor.name==="NamedNodeMap",s=(d,f,c,b,g,w)=>{const S=d.constructor.name;return++b>f.maxDepth?"["+S+"]":(f.min?"":S+t)+(r.indexOf(S)!==-1?"{"+(0,e.printObjectProperties)(a(d)?Array.from(d).reduce((p,q)=>(p[q.name]=q.value,p),{}):{...d},f,c,b,g,w)+"}":"["+(0,e.printListItems)(Array.from(d),f,c,b,g,w)+"]")};Ne.serialize=s;var u={serialize:s,test:i};return Ne.default=u,Ne}var ke={},de={},Jo={},Qs;function wb(){if(Qs)return Jo;Qs=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=e;function e(t){return t.replace(/</g,"<").replace(/>/g,">")}return Jo}var Zs;function Rs(){if(Zs)return de;Zs=1,Object.defineProperty(de,"__esModule",{value:!0}),de.printText=de.printProps=de.printElementAsLeaf=de.printElement=de.printComment=de.printChildren=void 0;var e=t(wb());function t(l){return l&&l.__esModule?l:{default:l}}const r=(l,u,d,f,c,b,g)=>{const w=f+d.indent,S=d.colors;return l.map(p=>{const q=u[p];let _=g(q,d,w,c,b);return typeof q!="string"&&(_.indexOf(`
|
|
30
|
+
`)!==-1&&(_=d.spacingOuter+w+_+d.spacingOuter+f),_="{"+_+"}"),d.spacingInner+f+S.prop.open+p+S.prop.close+"="+S.value.open+_+S.value.close}).join("")};de.printProps=r;const n=(l,u,d,f,c,b)=>l.map(g=>u.spacingOuter+d+(typeof g=="string"?o(g,u):b(g,u,d,f,c))).join("");de.printChildren=n;const o=(l,u)=>{const d=u.colors.content;return d.open+(0,e.default)(l)+d.close};de.printText=o;const i=(l,u)=>{const d=u.colors.comment;return d.open+"<!--"+(0,e.default)(l)+"-->"+d.close};de.printComment=i;const a=(l,u,d,f,c)=>{const b=f.colors.tag;return b.open+"<"+l+(u&&b.close+u+f.spacingOuter+c+b.open)+(d?">"+b.close+d+f.spacingOuter+c+b.open+"</"+l:(u&&!f.min?"":" ")+"/")+">"+b.close};de.printElement=a;const s=(l,u)=>{const d=u.colors.tag;return d.open+"<"+l+d.close+" …"+d.open+" />"+d.close};return de.printElementAsLeaf=s,de}var el;function Rb(){if(el)return ke;el=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.test=ke.serialize=ke.default=void 0;var e=Rs();const t=1,r=3,n=8,o=11,i=/^((HTML|SVG)\w*)?Element$/,a=w=>{try{return typeof w.hasAttribute=="function"&&w.hasAttribute("is")}catch{return!1}},s=w=>{const S=w.constructor.name,{nodeType:p,tagName:q}=w,_=typeof q=="string"&&q.includes("-")||a(w);return p===t&&(i.test(S)||_)||p===r&&S==="Text"||p===n&&S==="Comment"||p===o&&S==="DocumentFragment"},l=w=>{var S;return(w==null||(S=w.constructor)===null||S===void 0?void 0:S.name)&&s(w)};ke.test=l;function u(w){return w.nodeType===r}function d(w){return w.nodeType===n}function f(w){return w.nodeType===o}const c=(w,S,p,q,_,T)=>{if(u(w))return(0,e.printText)(w.data,S);if(d(w))return(0,e.printComment)(w.data,S);const P=f(w)?"DocumentFragment":w.tagName.toLowerCase();return++q>S.maxDepth?(0,e.printElementAsLeaf)(P,S):(0,e.printElement)(P,(0,e.printProps)(f(w)?[]:Array.from(w.attributes).map(v=>v.name).sort(),f(w)?{}:Array.from(w.attributes).reduce((v,y)=>(v[y.name]=y.value,v),{}),S,p+S.indent,q,_,T),(0,e.printChildren)(Array.prototype.slice.call(w.childNodes||w.children),S,p+S.indent,q,_,T),S,p)};ke.serialize=c;var g={serialize:c,test:l};return ke.default=g,ke}var je={},tl;function Eb(){if(tl)return je;tl=1,Object.defineProperty(je,"__esModule",{value:!0}),je.test=je.serialize=je.default=void 0;var e=Bi();const t="@@__IMMUTABLE_ITERABLE__@@",r="@@__IMMUTABLE_LIST__@@",n="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",a="@@__IMMUTABLE_RECORD__@@",s="@@__IMMUTABLE_SEQ__@@",l="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",d=y=>"Immutable."+y,f=y=>"["+y+"]",c=" ",b="…",g=(y,R,A,N,D,$,M)=>++N>R.maxDepth?f(d(M)):d(M)+c+"{"+(0,e.printIteratorEntries)(y.entries(),R,A,N,D,$)+"}";function w(y){let R=0;return{next(){if(R<y._keys.length){const A=y._keys[R++];return{done:!1,value:[A,y.get(A)]}}return{done:!0,value:void 0}}}}const S=(y,R,A,N,D,$)=>{const M=d(y._name||"Record");return++N>R.maxDepth?f(M):M+c+"{"+(0,e.printIteratorEntries)(w(y),R,A,N,D,$)+"}"},p=(y,R,A,N,D,$)=>{const M=d("Seq");return++N>R.maxDepth?f(M):y[n]?M+c+"{"+(y._iter||y._object?(0,e.printIteratorEntries)(y.entries(),R,A,N,D,$):b)+"}":M+c+"["+(y._iter||y._array||y._collection||y._iterable?(0,e.printIteratorValues)(y.values(),R,A,N,D,$):b)+"]"},q=(y,R,A,N,D,$,M)=>++N>R.maxDepth?f(d(M)):d(M)+c+"["+(0,e.printIteratorValues)(y.values(),R,A,N,D,$)+"]",_=(y,R,A,N,D,$)=>y[o]?g(y,R,A,N,D,$,y[i]?"OrderedMap":"Map"):y[r]?q(y,R,A,N,D,$,"List"):y[l]?q(y,R,A,N,D,$,y[i]?"OrderedSet":"Set"):y[u]?q(y,R,A,N,D,$,"Stack"):y[s]?p(y,R,A,N,D,$):S(y,R,A,N,D,$);je.serialize=_;const T=y=>y&&(y[t]===!0||y[a]===!0);je.test=T;var v={serialize:_,test:T};return je.default=v,je}var De={},Qo={exports:{}},X={};var rl;function xb(){if(rl)return X;rl=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,d=60115,f=60116,c=60121,b=60122,g=60117,w=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;e=p("react.element"),t=p("react.portal"),r=p("react.fragment"),n=p("react.strict_mode"),o=p("react.profiler"),i=p("react.provider"),a=p("react.context"),s=p("react.forward_ref"),l=p("react.suspense"),u=p("react.suspense_list"),d=p("react.memo"),f=p("react.lazy"),c=p("react.block"),b=p("react.server.block"),g=p("react.fundamental"),w=p("react.debug_trace_mode"),S=p("react.legacy_hidden")}function q(M){if(typeof M=="object"&&M!==null){var k=M.$$typeof;switch(k){case e:switch(M=M.type,M){case r:case o:case n:case l:case u:return M;default:switch(M=M&&M.$$typeof,M){case a:case s:case f:case d:case i:return M;default:return k}}case t:return k}}}var _=i,T=e,P=s,v=r,y=f,R=d,A=t,N=o,D=n,$=l;return X.ContextConsumer=a,X.ContextProvider=_,X.Element=T,X.ForwardRef=P,X.Fragment=v,X.Lazy=y,X.Memo=R,X.Portal=A,X.Profiler=N,X.StrictMode=D,X.Suspense=$,X.isAsyncMode=function(){return!1},X.isConcurrentMode=function(){return!1},X.isContextConsumer=function(M){return q(M)===a},X.isContextProvider=function(M){return q(M)===i},X.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},X.isForwardRef=function(M){return q(M)===s},X.isFragment=function(M){return q(M)===r},X.isLazy=function(M){return q(M)===f},X.isMemo=function(M){return q(M)===d},X.isPortal=function(M){return q(M)===t},X.isProfiler=function(M){return q(M)===o},X.isStrictMode=function(M){return q(M)===n},X.isSuspense=function(M){return q(M)===l},X.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===o||M===w||M===n||M===l||M===u||M===S||typeof M=="object"&&M!==null&&(M.$$typeof===f||M.$$typeof===d||M.$$typeof===i||M.$$typeof===a||M.$$typeof===s||M.$$typeof===g||M.$$typeof===c||M[0]===b)},X.typeOf=q,X}var J={};var nl;function Cb(){return nl||(nl=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,d=60115,f=60116,c=60121,b=60122,g=60117,w=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;e=p("react.element"),t=p("react.portal"),r=p("react.fragment"),n=p("react.strict_mode"),o=p("react.profiler"),i=p("react.provider"),a=p("react.context"),s=p("react.forward_ref"),l=p("react.suspense"),u=p("react.suspense_list"),d=p("react.memo"),f=p("react.lazy"),c=p("react.block"),b=p("react.server.block"),g=p("react.fundamental"),p("react.scope"),p("react.opaque.id"),w=p("react.debug_trace_mode"),p("react.offscreen"),S=p("react.legacy_hidden")}var q=!1;function _(O){return!!(typeof O=="string"||typeof O=="function"||O===r||O===o||O===w||O===n||O===l||O===u||O===S||q||typeof O=="object"&&O!==null&&(O.$$typeof===f||O.$$typeof===d||O.$$typeof===i||O.$$typeof===a||O.$$typeof===s||O.$$typeof===g||O.$$typeof===c||O[0]===b))}function T(O){if(typeof O=="object"&&O!==null){var W=O.$$typeof;switch(W){case e:var V=O.type;switch(V){case r:case o:case n:case l:case u:return V;default:var re=V&&V.$$typeof;switch(re){case a:case s:case f:case d:case i:return re;default:return W}}case t:return W}}}var P=a,v=i,y=e,R=s,A=r,N=f,D=d,$=t,M=o,k=n,F=l,Z=!1,Y=!1;function ue(O){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Re(O){return Y||(Y=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ot(O){return T(O)===a}function We(O){return T(O)===i}function Ge(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function L(O){return T(O)===s}function Ke(O){return T(O)===r}function it(O){return T(O)===f}function Ee(O){return T(O)===d}function Nt(O){return T(O)===t}function kt(O){return T(O)===o}function C(O){return T(O)===n}function B(O){return T(O)===l}J.ContextConsumer=P,J.ContextProvider=v,J.Element=y,J.ForwardRef=R,J.Fragment=A,J.Lazy=N,J.Memo=D,J.Portal=$,J.Profiler=M,J.StrictMode=k,J.Suspense=F,J.isAsyncMode=ue,J.isConcurrentMode=Re,J.isContextConsumer=ot,J.isContextProvider=We,J.isElement=Ge,J.isForwardRef=L,J.isFragment=Ke,J.isLazy=it,J.isMemo=Ee,J.isPortal=Nt,J.isProfiler=kt,J.isStrictMode=C,J.isSuspense=B,J.isValidElementType=_,J.typeOf=T})()),J}var ol;function qb(){return ol||(ol=1,process.env.NODE_ENV==="production"?Qo.exports=xb():Qo.exports=Cb()),Qo.exports}var il;function _b(){if(il)return De;il=1,Object.defineProperty(De,"__esModule",{value:!0}),De.test=De.serialize=De.default=void 0;var e=n(qb()),t=Rs();function r(f){if(typeof WeakMap!="function")return null;var c=new WeakMap,b=new WeakMap;return(r=function(g){return g?b:c})(f)}function n(f,c){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var b=r(c);if(b&&b.has(f))return b.get(f);var g={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in f)if(S!=="default"&&Object.prototype.hasOwnProperty.call(f,S)){var p=w?Object.getOwnPropertyDescriptor(f,S):null;p&&(p.get||p.set)?Object.defineProperty(g,S,p):g[S]=f[S]}return g.default=f,b&&b.set(f,g),g}const o=(f,c=[])=>(Array.isArray(f)?f.forEach(b=>{o(b,c)}):f!=null&&f!==!1&&c.push(f),c),i=f=>{const c=f.type;if(typeof c=="string")return c;if(typeof c=="function")return c.displayName||c.name||"Unknown";if(e.isFragment(f))return"React.Fragment";if(e.isSuspense(f))return"React.Suspense";if(typeof c=="object"&&c!==null){if(e.isContextProvider(f))return"Context.Provider";if(e.isContextConsumer(f))return"Context.Consumer";if(e.isForwardRef(f)){if(c.displayName)return c.displayName;const b=c.render.displayName||c.render.name||"";return b!==""?"ForwardRef("+b+")":"ForwardRef"}if(e.isMemo(f)){const b=c.displayName||c.type.displayName||c.type.name||"";return b!==""?"Memo("+b+")":"Memo"}}return"UNDEFINED"},a=f=>{const{props:c}=f;return Object.keys(c).filter(b=>b!=="children"&&c[b]!==void 0).sort()},s=(f,c,b,g,w,S)=>++g>c.maxDepth?(0,t.printElementAsLeaf)(i(f),c):(0,t.printElement)(i(f),(0,t.printProps)(a(f),f.props,c,b+c.indent,g,w,S),(0,t.printChildren)(o(f.props.children),c,b+c.indent,g,w,S),c,b);De.serialize=s;const l=f=>f!=null&&e.isElement(f);De.test=l;var d={serialize:s,test:l};return De.default=d,De}var $e={},al;function Pb(){if(al)return $e;al=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.test=$e.serialize=$e.default=void 0;var e=Rs(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("react.test.json"):245830487,o=u=>{const{props:d}=u;return d?Object.keys(d).filter(f=>d[f]!==void 0).sort():[]},i=(u,d,f,c,b,g)=>++c>d.maxDepth?(0,e.printElementAsLeaf)(u.type,d):(0,e.printElement)(u.type,u.props?(0,e.printProps)(o(u),u.props,d,f+d.indent,c,b,g):"",u.children?(0,e.printChildren)(u.children,d,f+d.indent,c,b,g):"",d,f);$e.serialize=i;const a=u=>u&&u.$$typeof===n;$e.test=a;var l={serialize:i,test:a};return $e.default=l,$e}var sl;function Tb(){if(sl)return qe;sl=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=qe.DEFAULT_OPTIONS=void 0,qe.format=Ee,qe.plugins=void 0;var e=u(Vf()),t=Bi(),r=u(bb()),n=u(gb()),o=u(yb()),i=u(Rb()),a=u(Eb()),s=u(_b()),l=u(Pb());function u(C){return C&&C.__esModule?C:{default:C}}const d=Object.prototype.toString,f=Date.prototype.toISOString,c=Error.prototype.toString,b=RegExp.prototype.toString,g=C=>typeof C.constructor=="function"&&C.constructor.name||"Object",w=C=>typeof window<"u"&&C===window,S=/^Symbol\((.*)\)(.*)$/,p=/\n/gi;class q extends Error{constructor(B,O){super(B),this.stack=O,this.name=this.constructor.name}}function _(C){return C==="[object Array]"||C==="[object ArrayBuffer]"||C==="[object DataView]"||C==="[object Float32Array]"||C==="[object Float64Array]"||C==="[object Int8Array]"||C==="[object Int16Array]"||C==="[object Int32Array]"||C==="[object Uint8Array]"||C==="[object Uint8ClampedArray]"||C==="[object Uint16Array]"||C==="[object Uint32Array]"}function T(C){return Object.is(C,-0)?"-0":String(C)}function P(C){return`${C}n`}function v(C,B){return B?"[Function "+(C.name||"anonymous")+"]":"[Function]"}function y(C){return String(C).replace(S,"Symbol($1)")}function R(C){return"["+c.call(C)+"]"}function A(C,B,O,W){if(C===!0||C===!1)return""+C;if(C===void 0)return"undefined";if(C===null)return"null";const V=typeof C;if(V==="number")return T(C);if(V==="bigint")return P(C);if(V==="string")return W?'"'+C.replace(/"|\\/g,"\\$&")+'"':'"'+C+'"';if(V==="function")return v(C,B);if(V==="symbol")return y(C);const re=d.call(C);return re==="[object WeakMap]"?"WeakMap {}":re==="[object WeakSet]"?"WeakSet {}":re==="[object Function]"||re==="[object GeneratorFunction]"?v(C,B):re==="[object Symbol]"?y(C):re==="[object Date]"?isNaN(+C)?"Date { NaN }":f.call(C):re==="[object Error]"?R(C):re==="[object RegExp]"?O?b.call(C).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(C):C instanceof Error?R(C):null}function N(C,B,O,W,V,re){if(V.indexOf(C)!==-1)return"[Circular]";V=V.slice(),V.push(C);const ie=++W>B.maxDepth,ce=B.min;if(B.callToJSON&&!ie&&C.toJSON&&typeof C.toJSON=="function"&&!re)return k(C.toJSON(),B,O,W,V,!0);const Ae=d.call(C);return Ae==="[object Arguments]"?ie?"[Arguments]":(ce?"":"Arguments ")+"["+(0,t.printListItems)(C,B,O,W,V,k)+"]":_(Ae)?ie?"["+C.constructor.name+"]":(ce||!B.printBasicPrototype&&C.constructor.name==="Array"?"":C.constructor.name+" ")+"["+(0,t.printListItems)(C,B,O,W,V,k)+"]":Ae==="[object Map]"?ie?"[Map]":"Map {"+(0,t.printIteratorEntries)(C.entries(),B,O,W,V,k," => ")+"}":Ae==="[object Set]"?ie?"[Set]":"Set {"+(0,t.printIteratorValues)(C.values(),B,O,W,V,k)+"}":ie||w(C)?"["+g(C)+"]":(ce||!B.printBasicPrototype&&g(C)==="Object"?"":g(C)+" ")+"{"+(0,t.printObjectProperties)(C,B,O,W,V,k)+"}"}function D(C){return C.serialize!=null}function $(C,B,O,W,V,re){let ie;try{ie=D(C)?C.serialize(B,O,W,V,re,k):C.print(B,ce=>k(ce,O,W,V,re),ce=>{const Ae=W+O.indent;return Ae+ce.replace(p,`
|
|
31
|
+
`+Ae)},{edgeSpacing:O.spacingOuter,min:O.min,spacing:O.spacingInner},O.colors)}catch(ce){throw new q(ce.message,ce.stack)}if(typeof ie!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ie}".`);return ie}function M(C,B){for(let O=0;O<C.length;O++)try{if(C[O].test(B))return C[O]}catch(W){throw new q(W.message,W.stack)}return null}function k(C,B,O,W,V,re){const ie=M(B.plugins,C);if(ie!==null)return $(ie,C,B,O,W,V);const ce=A(C,B.printFunctionName,B.escapeRegex,B.escapeString);return ce!==null?ce:N(C,B,O,W,V,re)}const F={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Z=Object.keys(F),Y={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:F};qe.DEFAULT_OPTIONS=Y;function ue(C){if(Object.keys(C).forEach(B=>{if(!Y.hasOwnProperty(B))throw new Error(`pretty-format: Unknown option "${B}".`)}),C.min&&C.indent!==void 0&&C.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(C.theme!==void 0){if(C.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof C.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof C.theme}".`)}}const Re=C=>Z.reduce((B,O)=>{const W=C.theme&&C.theme[O]!==void 0?C.theme[O]:F[O],V=W&&e.default[W];if(V&&typeof V.close=="string"&&typeof V.open=="string")B[O]=V;else throw new Error(`pretty-format: Option "theme" has a key "${O}" whose value "${W}" is undefined in ansi-styles.`);return B},Object.create(null)),ot=()=>Z.reduce((C,B)=>(C[B]={close:"",open:""},C),Object.create(null)),We=C=>C&&C.printFunctionName!==void 0?C.printFunctionName:Y.printFunctionName,Ge=C=>C&&C.escapeRegex!==void 0?C.escapeRegex:Y.escapeRegex,L=C=>C&&C.escapeString!==void 0?C.escapeString:Y.escapeString,Ke=C=>{var B;return{callToJSON:C&&C.callToJSON!==void 0?C.callToJSON:Y.callToJSON,colors:C&&C.highlight?Re(C):ot(),compareKeys:C&&typeof C.compareKeys=="function"?C.compareKeys:Y.compareKeys,escapeRegex:Ge(C),escapeString:L(C),indent:C&&C.min?"":it(C&&C.indent!==void 0?C.indent:Y.indent),maxDepth:C&&C.maxDepth!==void 0?C.maxDepth:Y.maxDepth,min:C&&C.min!==void 0?C.min:Y.min,plugins:C&&C.plugins!==void 0?C.plugins:Y.plugins,printBasicPrototype:(B=C?.printBasicPrototype)!==null&&B!==void 0?B:!0,printFunctionName:We(C),spacingInner:C&&C.min?" ":`
|
|
15
32
|
`,spacingOuter:C&&C.min?"":`
|
|
16
|
-
`}};function ot(C){return new Array(C+1).join(" ")}function Re(C,B){if(B&&(ue(B),B.plugins)){const W=A(B.plugins,C);if(W!==null)return $(W,C,We(B),"",0,[])}const O=M(C,Ve(B),He(B),L(B));return O!==null?O:N(C,We(B),"",0,[])}const Ot={AsymmetricMatcher:r.default,ConvertAnsi:n.default,DOMCollection:o.default,DOMElement:a.default,Immutable:i.default,ReactElement:s.default,ReactTestComponent:l.default};Ce.plugins=Ot;var It=Re;return Ce.default=It,Ce}var $f=ib(),sb=Object.prototype.toString;function lb(e){return typeof e=="function"||sb.call(e)==="[object Function]"}function ub(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var cb=Math.pow(2,53)-1;function db(e){var t=ub(e);return Math.min(Math.max(t,0),cb)}function Ee(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");for(var o=db(n.length),a=lb(r)?Object(new r(o)):new Array(o),i=0,s;i<o;)s=n[i],a[i]=s,i+=1;return a.length=o,a}function Io(e){"@babel/helpers - typeof";return Io=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},Io(e)}function fb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pb(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,Bf(n.key),n)}}function mb(e,t,r){return t&&pb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hb(e,t,r){return t=Bf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bf(e){var t=bb(e,"string");return Io(t)==="symbol"?t:String(t)}function bb(e,t){if(Io(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Io(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vb=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];fb(this,e),hb(this,"items",void 0),this.items=t}return mb(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(o){return o!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(o){r(o,o,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})();const gb=typeof Set>"u"?Set:vb;function se(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var yb={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"},wb={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 Rb(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=wb[t])!==null&&n!==void 0&&n.has(r))})}function Lf(e,t){return Rb(e,t)}function Eb(e){var t=Cb(e);if(t===null||t==="presentation"){var r=xb(e);if(t!=="presentation"||Lf(e,r||""))return r}return t}function xb(e){var t=yb[se(e)];if(t!==void 0)return t;switch(se(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!Lf(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 Cb(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function ee(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Ff(e){return ee(e)&&se(e)==="caption"}function oa(e){return ee(e)&&se(e)==="input"}function qb(e){return ee(e)&&se(e)==="optgroup"}function _b(e){return ee(e)&&se(e)==="select"}function Pb(e){return ee(e)&&se(e)==="table"}function Tb(e){return ee(e)&&se(e)==="textarea"}function Sb(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Ab(e){return ee(e)&&se(e)==="fieldset"}function Mb(e){return ee(e)&&se(e)==="legend"}function Ob(e){return ee(e)&&se(e)==="slot"}function Ib(e){return ee(e)&&e.ownerSVGElement!==void 0}function Nb(e){return ee(e)&&se(e)==="svg"}function kb(e){return Ib(e)&&se(e)==="title"}function va(e,t){if(ee(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 $e(e,t){return ee(e)?t.indexOf(Eb(e))!==-1:!1}function jb(e){return e.trim().replace(/\s\s+/g," ")}function Db(e,t){if(!ee(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 $b(e){return $e(e,["button","combobox","listbox","textbox"])||Uf(e,"range")}function Uf(e,t){if(!ee(e))return!1;if(t==="range")return $e(e,["meter","progressbar","scrollbar","slider","spinbutton"]);throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}function ol(e,t){var r=Ee(e.querySelectorAll(t));return va(e,"aria-owns").forEach(function(n){r.push.apply(r,Ee(n.querySelectorAll(t)))}),r}function Bb(e){return _b(e)?e.selectedOptions||ol(e,"[selected]"):ol(e,'[aria-selected="true"]')}function Lb(e){return $e(e,["none","presentation"])}function Fb(e){return Ff(e)}function Ub(e){return $e(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function zb(e){return!1}function Vb(e){return oa(e)||Tb(e)?e.value:e.textContent||""}function al(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function zf(e){var t=se(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function Vf(e){if(zf(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ee(r)){var n=Vf(r);n!==null&&(t=n)}}),t}function Hb(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):Vf(e)}function Wb(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Ee(t);if(!zf(e))return null;var r=e.ownerDocument;return Ee(r.querySelectorAll("label")).filter(function(n){return Hb(n)===e})}function Gb(e){var t=e.assignedNodes();return t.length===0?Ee(e.childNodes):t}function Hf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new gb,n=Sb(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,u=l===void 0?n.getComputedStyle.bind(n):l,d=t.hidden,f=d===void 0?!1:d;function c(p,q){var _="";if(ee(p)&&s){var S=u(p,"::before"),P=al(S);_="".concat(P," ").concat(_)}var y=Ob(p)?Gb(p):Ee(p.childNodes).concat(va(p,"aria-owns"));if(y.forEach(function(M){var N=T(M,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),D=ee(M)?u(M).getPropertyValue("display"):"inline",$=D!=="inline"?" ":"";_+="".concat($).concat(N).concat($)}),ee(p)&&s){var w=u(p,"::after"),E=al(w);_="".concat(_," ").concat(E)}return _.trim()}function v(p,q){var _=p.getAttributeNode(q);return _!==null&&!r.has(_)&&_.value.trim()!==""?(r.add(_),_.value):null}function m(p){return ee(p)?v(p,"title"):null}function g(p){if(!ee(p))return null;if(Ab(p)){r.add(p);for(var q=Ee(p.childNodes),_=0;_<q.length;_+=1){var S=q[_];if(Mb(S))return T(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Pb(p)){r.add(p);for(var P=Ee(p.childNodes),y=0;y<P.length;y+=1){var w=P[y];if(Ff(w))return T(w,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Nb(p)){r.add(p);for(var E=Ee(p.childNodes),M=0;M<E.length;M+=1){var N=E[M];if(kb(N))return N.textContent}return null}else if(se(p)==="img"||se(p)==="area"){var D=v(p,"alt");if(D!==null)return D}else if(qb(p)){var $=v(p,"label");if($!==null)return $}if(oa(p)&&(p.type==="button"||p.type==="submit"||p.type==="reset")){var A=v(p,"value");if(A!==null)return A;if(p.type==="submit")return"Submit";if(p.type==="reset")return"Reset"}var k=Wb(p);if(k!==null&&k.length!==0)return r.add(p),Ee(k).map(function(ue){return T(ue,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(ue){return ue.length>0}).join(" ");if(oa(p)&&p.type==="image"){var F=v(p,"alt");if(F!==null)return F;var Z=v(p,"title");return Z!==null?Z:"Submit Query"}if($e(p,["button"])){var Y=c(p,{isEmbeddedInLabel:!1});if(Y!=="")return Y}return null}function T(p,q){if(r.has(p))return"";if(!f&&Db(p,u)&&!q.isReferenced)return r.add(p),"";var _=ee(p)?p.getAttributeNode("aria-labelledby"):null,S=_!==null&&!r.has(_)?va(p,"aria-labelledby"):[];if(a==="name"&&!q.isReferenced&&S.length>0)return r.add(_),S.map(function(D){return T(D,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=q.recursion&&$b(p)&&a==="name";if(!P){var y=(ee(p)&&p.getAttribute("aria-label")||"").trim();if(y!==""&&a==="name")return r.add(p),y;if(!Lb(p)){var w=g(p);if(w!==null)return r.add(p),w}}if($e(p,["menu"]))return r.add(p),"";if(P||q.isEmbeddedInLabel||q.isReferenced){if($e(p,["combobox","listbox"])){r.add(p);var E=Bb(p);return E.length===0?oa(p)?p.value:"":Ee(E).map(function(D){return T(D,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(Uf(p,"range"))return r.add(p),p.hasAttribute("aria-valuetext")?p.getAttribute("aria-valuetext"):p.hasAttribute("aria-valuenow")?p.getAttribute("aria-valuenow"):p.getAttribute("value")||"";if($e(p,["textbox"]))return r.add(p),Vb(p)}if(Ub(p)||ee(p)&&q.isReferenced||Fb(p)||zb()){var M=c(p,{isEmbeddedInLabel:q.isEmbeddedInLabel});if(M!=="")return r.add(p),M}if(p.nodeType===p.TEXT_NODE)return r.add(p),p.textContent||"";if(q.recursion)return r.add(p),c(p,{isEmbeddedInLabel:q.isEmbeddedInLabel});var N=m(p);return N!==null?(r.add(p),N):(r.add(p),"")}return jb(T(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 il(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 sl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?il(Object(r),!0).forEach(function(n){Kb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):il(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kb(e,t,r){return t=Yb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yb(e){var t=Xb(e,"string");return No(t)==="symbol"?t:String(t)}function Xb(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);if(No(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=va(e,"aria-describedby").map(function(o){return Hf(o,sl(sl({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function Jb(e){return $e(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Jb(e)?"":Hf(e,t)}var fe={},kt={},Jo={},jt={},ll;function Qb(){if(ll)return jt;ll=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=void 0;function e(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var i=r[n];return n=n+1,{done:!1,value:i}}else return{done:!0}}};return o}var t=e;return jt.default=t,jt}var ul;function Vo(){if(ul)return Jo;ul=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=n;var e=t(Qb());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r(o)}function n(o,a){return typeof Symbol=="function"&&r(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:e.default.bind(a)}),o}return Jo}var cl;function Zb(){if(cl)return kt;cl=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=void 0;var e=t(Vo());function t(c){return c&&c.__esModule?c:{default:c}}function r(c,v){return a(c)||o(c,v)||s(c,v)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(c,
|
|
18
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,q=!1,_;return{s:function(){
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(c,
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,q=!1,_;return{s:function(){m=m.call(c)},n:function(){var P=m.next();return p=P.done,P},e:function(P){q=!0,_=P},f:function(){try{!p&&m.return!=null&&m.return()}finally{if(q)throw _}}}}function s(c,v){if(c){if(typeof c=="string")return l(c,v);var m=Object.prototype.toString.call(c).slice(8,-1);if(m==="Object"&&c.constructor&&(m=c.constructor.name),m==="Map"||m==="Set")return Array.from(c);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return l(c,v)}}function l(c,v){(v==null||v>c.length)&&(v=c.length);for(var m=0,g=new Array(v);m<v;m++)g[m]=c[m];return g}var u=[["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}]],d={entries:function(){return u},forEach:function(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=i(u),T;try{for(g.s();!(T=g.n()).done;){var p=r(T.value,2),q=p[0],_=p[1];v.call(m,_,q,u)}}catch(S){g.e(S)}finally{g.f()}},get:function(v){var m=u.find(function(g){return g[0]===v});return m&&m[1]},has:function(v){return!!d.get(v)},keys:function(){return u.map(function(v){var m=r(v,1),g=m[0];return g})},values:function(){return u.map(function(v){var m=r(v,2),g=m[1];return g})}},f=(0,e.default)(d,d.entries());return Dt.default=f,Dt}var $t={},Bt={},Lt={},fl;function tv(){if(fl)return Lt;fl=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Lt.default=t,Lt}var Ft={},pl;function rv(){if(pl)return Ft;pl=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.default=void 0;var e={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"]]},t=e;return Ft.default=t,Ft}var Ut={},ml;function nv(){if(ml)return Ut;ml=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.default=void 0;var e={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"]]},t=e;return Ut.default=t,Ut}var zt={},hl;function ov(){if(hl)return zt;hl=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return zt.default=t,zt}var Vt={},bl;function av(){if(bl)return Vt;bl=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.default=void 0;var e={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"]]},t=e;return Vt.default=t,Vt}var Ht={},vl;function iv(){if(vl)return Ht;vl=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.default=void 0;var e={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:[]},t=e;return Ht.default=t,Ht}var Wt={},gl;function sv(){if(gl)return Wt;gl=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.default=void 0;var e={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"]]},t=e;return Wt.default=t,Wt}var Gt={},yl;function lv(){if(yl)return Gt;yl=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Gt.default=t,Gt}var Kt={},wl;function uv(){if(wl)return Kt;wl=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.default=void 0;var e={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"]]},t=e;return Kt.default=t,Kt}var Yt={},Rl;function cv(){if(Rl)return Yt;Rl=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return Yt.default=t,Yt}var Xt={},El;function dv(){if(El)return Xt;El=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return Xt.default=t,Xt}var Jt={},xl;function fv(){if(xl)return Jt;xl=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return Jt.default=t,Jt}var Cl;function pv(){if(Cl)return Bt;Cl=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.default=void 0;var e=c(tv()),t=c(rv()),r=c(nv()),n=c(ov()),o=c(av()),a=c(iv()),i=c(sv()),s=c(lv()),l=c(uv()),u=c(cv()),d=c(dv()),f=c(fv());function c(g){return g&&g.__esModule?g:{default:g}}var v=[["command",e.default],["composite",t.default],["input",r.default],["landmark",n.default],["range",o.default],["roletype",a.default],["section",i.default],["sectionhead",s.default],["select",l.default],["structure",u.default],["widget",d.default],["window",f.default]],m=v;return Bt.default=m,Bt}var Qt={},Zt={},ql;function mv(){if(ql)return Zt;ql=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.default=void 0;var e={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"]]},t=e;return Zt.default=t,Zt}var er={},_l;function hv(){if(_l)return er;_l=1,Object.defineProperty(er,"__esModule",{value:!0}),er.default=void 0;var e={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"]]},t=e;return er.default=t,er}var tr={},Pl;function bv(){if(Pl)return tr;Pl=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=void 0;var e={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"]]},t=e;return tr.default=t,tr}var rr={},Tl;function vv(){if(Tl)return rr;Tl=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0;var e={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"]]},t=e;return rr.default=t,rr}var nr={},Sl;function gv(){if(Sl)return nr;Sl=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var e={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"]]},t=e;return nr.default=t,nr}var or={},Al;function yv(){if(Al)return or;Al=1,Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var e={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"]]},t=e;return or.default=t,or}var ar={},Ml;function wv(){if(Ml)return ar;Ml=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0;var e={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"]]},t=e;return ar.default=t,ar}var ir={},Ol;function Rv(){if(Ol)return ir;Ol=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0;var e={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"]]},t=e;return ir.default=t,ir}var sr={},Il;function Ev(){if(Il)return sr;Il=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=void 0;var e={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"]]},t=e;return sr.default=t,sr}var lr={},Nl;function xv(){if(Nl)return lr;Nl=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=void 0;var e={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"]]},t=e;return lr.default=t,lr}var ur={},kl;function Cv(){if(kl)return ur;kl=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.default=void 0;var e={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"]]},t=e;return ur.default=t,ur}var cr={},jl;function qv(){if(jl)return cr;jl=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.default=void 0;var e={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"]]},t=e;return cr.default=t,cr}var dr={},Dl;function _v(){if(Dl)return dr;Dl=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.default=void 0;var e={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"]]},t=e;return dr.default=t,dr}var fr={},$l;function Pv(){if($l)return fr;$l=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{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"]]},t=e;return fr.default=t,fr}var pr={},Bl;function Tv(){if(Bl)return pr;Bl=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=void 0;var e={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"]]},t=e;return pr.default=t,pr}var mr={},Ll;function Sv(){if(Ll)return mr;Ll=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.default=void 0;var e={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"]]},t=e;return mr.default=t,mr}var hr={},Fl;function Av(){if(Fl)return hr;Fl=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.default=void 0;var e={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"]]},t=e;return hr.default=t,hr}var br={},Ul;function Mv(){if(Ul)return br;Ul=1,Object.defineProperty(br,"__esModule",{value:!0}),br.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},t=e;return br.default=t,br}var vr={},zl;function Ov(){if(zl)return vr;zl=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return vr.default=t,vr}var gr={},Vl;function Iv(){if(Vl)return gr;Vl=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=void 0;var e={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"]]},t=e;return gr.default=t,gr}var yr={},Hl;function Nv(){if(Hl)return yr;Hl=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.default=void 0;var e={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"]]},t=e;return yr.default=t,yr}var wr={},Wl;function kv(){if(Wl)return wr;Wl=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return wr.default=t,wr}var Rr={},Gl;function jv(){if(Gl)return Rr;Gl=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.default=void 0;var e={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"]]},t=e;return Rr.default=t,Rr}var Er={},Kl;function Dv(){if(Kl)return Er;Kl=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.default=void 0;var e={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"]]},t=e;return Er.default=t,Er}var xr={},Yl;function $v(){if(Yl)return xr;Yl=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=void 0;var e={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"]]},t=e;return xr.default=t,xr}var Cr={},Xl;function Bv(){if(Xl)return Cr;Xl=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0;var e={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"]]},t=e;return Cr.default=t,Cr}var qr={},Jl;function Lv(){if(Jl)return qr;Jl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=void 0;var e={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"]]},t=e;return qr.default=t,qr}var _r={},Ql;function Fv(){if(Ql)return _r;Ql=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=void 0;var e={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"]]},t=e;return _r.default=t,_r}var Pr={},Zl;function Uv(){if(Zl)return Pr;Zl=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=void 0;var e={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"]]},t=e;return Pr.default=t,Pr}var Tr={},eu;function zv(){if(eu)return Tr;eu=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.default=void 0;var e={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"]]},t=e;return Tr.default=t,Tr}var Sr={},tu;function Vv(){if(tu)return Sr;tu=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.default=void 0;var e={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"]]},t=e;return Sr.default=t,Sr}var Ar={},ru;function Hv(){if(ru)return Ar;ru=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.default=void 0;var e={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"]]},t=e;return Ar.default=t,Ar}var Mr={},nu;function Wv(){if(nu)return Mr;nu=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=void 0;var e={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"]]},t=e;return Mr.default=t,Mr}var Or={},ou;function Gv(){if(ou)return Or;ou=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=void 0;var e={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"]]},t=e;return Or.default=t,Or}var Ir={},au;function Kv(){if(au)return Ir;au=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.default=void 0;var e={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"]]},t=e;return Ir.default=t,Ir}var Nr={},iu;function Yv(){if(iu)return Nr;iu=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Nr.default=t,Nr}var kr={},su;function Xv(){if(su)return kr;su=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=void 0;var e={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"]]},t=e;return kr.default=t,kr}var jr={},lu;function Jv(){if(lu)return jr;lu=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=void 0;var e={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"]]},t=e;return jr.default=t,jr}var Dr={},uu;function Qv(){if(uu)return Dr;uu=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Dr.default=t,Dr}var $r={},cu;function Zv(){if(cu)return $r;cu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.default=void 0;var e={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"]]},t=e;return $r.default=t,$r}var Br={},du;function eg(){if(du)return Br;du=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.default=void 0;var e={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"]]},t=e;return Br.default=t,Br}var Lr={},fu;function tg(){if(fu)return Lr;fu=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=void 0;var e={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"]]},t=e;return Lr.default=t,Lr}var Fr={},pu;function rg(){if(pu)return Fr;pu=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.default=void 0;var e={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"]]},t=e;return Fr.default=t,Fr}var Ur={},mu;function ng(){if(mu)return Ur;mu=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=void 0;var e={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"]]},t=e;return Ur.default=t,Ur}var zr={},hu;function og(){if(hu)return zr;hu=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.default=void 0;var e={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"]]},t=e;return zr.default=t,zr}var Vr={},bu;function ag(){if(bu)return Vr;bu=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=void 0;var e={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"]]},t=e;return Vr.default=t,Vr}var Hr={},vu;function ig(){if(vu)return Hr;vu=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.default=void 0;var e={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"]]},t=e;return Hr.default=t,Hr}var Wr={},gu;function sg(){if(gu)return Wr;gu=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return Wr.default=t,Wr}var Gr={},yu;function lg(){if(yu)return Gr;yu=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Gr.default=t,Gr}var Kr={},wu;function ug(){if(wu)return Kr;wu=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.default=void 0;var e={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"]]},t=e;return Kr.default=t,Kr}var Yr={},Ru;function cg(){if(Ru)return Yr;Ru=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=void 0;var e={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"]]},t=e;return Yr.default=t,Yr}var Xr={},Eu;function dg(){if(Eu)return Xr;Eu=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.default=void 0;var e={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"]]},t=e;return Xr.default=t,Xr}var Jr={},xu;function fg(){if(xu)return Jr;xu=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.default=void 0;var e={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"]]},t=e;return Jr.default=t,Jr}var Qr={},Cu;function pg(){if(Cu)return Qr;Cu=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.default=void 0;var e={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"]]},t=e;return Qr.default=t,Qr}var Zr={},qu;function mg(){if(qu)return Zr;qu=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=void 0;var e={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"]]},t=e;return Zr.default=t,Zr}var en={},_u;function hg(){if(_u)return en;_u=1,Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var e={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"]]},t=e;return en.default=t,en}var tn={},Pu;function bg(){if(Pu)return tn;Pu=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=void 0;var e={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"]]},t=e;return tn.default=t,tn}var rn={},Tu;function vg(){if(Tu)return rn;Tu=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=void 0;var e={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"]]},t=e;return rn.default=t,rn}var nn={},Su;function gg(){if(Su)return nn;Su=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.default=void 0;var e={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"]]},t=e;return nn.default=t,nn}var on={},Au;function yg(){if(Au)return on;Au=1,Object.defineProperty(on,"__esModule",{value:!0}),on.default=void 0;var e={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"]]},t=e;return on.default=t,on}var an={},Mu;function wg(){if(Mu)return an;Mu=1,Object.defineProperty(an,"__esModule",{value:!0}),an.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return an.default=t,an}var sn={},Ou;function Rg(){if(Ou)return sn;Ou=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=void 0;var e={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"]]},t=e;return sn.default=t,sn}var ln={},Iu;function Eg(){if(Iu)return ln;Iu=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=void 0;var e={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"]]},t=e;return ln.default=t,ln}var un={},Nu;function xg(){if(Nu)return un;Nu=1,Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var e={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"]]},t=e;return un.default=t,un}var cn={},ku;function Cg(){if(ku)return cn;ku=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=void 0;var e={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"]]},t=e;return cn.default=t,cn}var dn={},ju;function qg(){if(ju)return dn;ju=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.default=void 0;var e={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"]]},t=e;return dn.default=t,dn}var fn={},Du;function _g(){if(Du)return fn;Du=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=void 0;var e={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"]]},t=e;return fn.default=t,fn}var pn={},$u;function Pg(){if($u)return pn;$u=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var e={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"]]},t=e;return pn.default=t,pn}var mn={},Bu;function Tg(){if(Bu)return mn;Bu=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=void 0;var e={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"]]},t=e;return mn.default=t,mn}var hn={},Lu;function Sg(){if(Lu)return hn;Lu=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=void 0;var e={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"]]},t=e;return hn.default=t,hn}var bn={},Fu;function Ag(){if(Fu)return bn;Fu=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var e={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"]]},t=e;return bn.default=t,bn}var vn={},Uu;function Mg(){if(Uu)return vn;Uu=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=void 0;var e={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"]]},t=e;return vn.default=t,vn}var gn={},zu;function Og(){if(zu)return gn;zu=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=void 0;var e={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"]]},t=e;return gn.default=t,gn}var yn={},Vu;function Ig(){if(Vu)return yn;Vu=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return yn.default=t,yn}var wn={},Hu;function Ng(){if(Hu)return wn;Hu=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var e={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"]]},t=e;return wn.default=t,wn}var Rn={},Wu;function kg(){if(Wu)return Rn;Wu=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.default=void 0;var e={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"]]},t=e;return Rn.default=t,Rn}var En={},Gu;function jg(){if(Gu)return En;Gu=1,Object.defineProperty(En,"__esModule",{value:!0}),En.default=void 0;var e={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"]]},t=e;return En.default=t,En}var xn={},Ku;function Dg(){if(Ku)return xn;Ku=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},t=e;return xn.default=t,xn}var Cn={},Yu;function $g(){if(Yu)return Cn;Yu=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var e={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"]]},t=e;return Cn.default=t,Cn}var qn={},Xu;function Bg(){if(Xu)return qn;Xu=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return qn.default=t,qn}var _n={},Ju;function Lg(){if(Ju)return _n;Ju=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.default=void 0;var e={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"]]},t=e;return _n.default=t,_n}var Pn={},Qu;function Fg(){if(Qu)return Pn;Qu=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=void 0;var e={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"]]},t=e;return Pn.default=t,Pn}var Tn={},Zu;function Ug(){if(Zu)return Tn;Zu=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.default=void 0;var e={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"]]},t=e;return Tn.default=t,Tn}var ec;function zg(){if(ec)return Qt;ec=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.default=void 0;var e=I(mv()),t=I(hv()),r=I(bv()),n=I(vv()),o=I(gv()),a=I(yv()),i=I(wv()),s=I(Rv()),l=I(Ev()),u=I(xv()),d=I(Cv()),f=I(qv()),c=I(_v()),v=I(Pv()),m=I(Tv()),g=I(Sv()),T=I(Av()),p=I(Mv()),q=I(Ov()),_=I(Iv()),S=I(Nv()),P=I(kv()),y=I(jv()),w=I(Dv()),E=I($v()),M=I(Bv()),N=I(Lv()),D=I(Fv()),$=I(Uv()),A=I(zv()),k=I(Vv()),F=I(Hv()),Z=I(Wv()),Y=I(Gv()),ue=I(Kv()),we=I(Yv()),nt=I(Xv()),Ve=I(Jv()),He=I(Qv()),L=I(Zv()),We=I(eg()),ot=I(tg()),Re=I(rg()),Ot=I(ng()),It=I(og()),C=I(ag()),B=I(ig()),O=I(sg()),W=I(lg()),V=I(ug()),re=I(cg()),oe=I(dg()),ce=I(fg()),Se=I(pg()),Up=I(mg()),zp=I(hg()),Vp=I(bg()),Hp=I(vg()),Wp=I(gg()),Gp=I(yg()),Kp=I(wg()),Yp=I(Rg()),Xp=I(Eg()),Jp=I(xg()),Qp=I(Cg()),Zp=I(qg()),em=I(_g()),tm=I(Pg()),rm=I(Tg()),nm=I(Sg()),om=I(Ag()),am=I(Mg()),im=I(Og()),sm=I(Ig()),lm=I(Ng()),um=I(kg()),cm=I(jg()),dm=I(Dg()),fm=I($g()),pm=I(Bg()),mm=I(Lg()),hm=I(Fg()),bm=I(Ug());function I(Wo){return Wo&&Wo.__esModule?Wo:{default:Wo}}var vm=[["alert",e.default],["alertdialog",t.default],["application",r.default],["article",n.default],["banner",o.default],["blockquote",a.default],["button",i.default],["caption",s.default],["cell",l.default],["checkbox",u.default],["code",d.default],["columnheader",f.default],["combobox",c.default],["complementary",v.default],["contentinfo",m.default],["definition",g.default],["deletion",T.default],["dialog",p.default],["directory",q.default],["document",_.default],["emphasis",S.default],["feed",P.default],["figure",y.default],["form",w.default],["generic",E.default],["grid",M.default],["gridcell",N.default],["group",D.default],["heading",$.default],["img",A.default],["insertion",k.default],["link",F.default],["list",Z.default],["listbox",Y.default],["listitem",ue.default],["log",we.default],["main",nt.default],["mark",Ve.default],["marquee",He.default],["math",L.default],["menu",We.default],["menubar",ot.default],["menuitem",Re.default],["menuitemcheckbox",Ot.default],["menuitemradio",It.default],["meter",C.default],["navigation",B.default],["none",O.default],["note",W.default],["option",V.default],["paragraph",re.default],["presentation",oe.default],["progressbar",ce.default],["radio",Se.default],["radiogroup",Up.default],["region",zp.default],["row",Vp.default],["rowgroup",Hp.default],["rowheader",Wp.default],["scrollbar",Gp.default],["search",Kp.default],["searchbox",Yp.default],["separator",Xp.default],["slider",Jp.default],["spinbutton",Qp.default],["status",Zp.default],["strong",em.default],["subscript",tm.default],["superscript",rm.default],["switch",nm.default],["tab",om.default],["table",am.default],["tablist",im.default],["tabpanel",sm.default],["term",lm.default],["textbox",um.default],["time",cm.default],["timer",dm.default],["toolbar",fm.default],["tooltip",pm.default],["tree",mm.default],["treegrid",hm.default],["treeitem",bm.default]],gm=vm;return Qt.default=gm,Qt}var Sn={},An={},tc;function Vg(){if(tc)return An;tc=1,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0;var e={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"]]},t=e;return An.default=t,An}var Mn={},rc;function Hg(){if(rc)return Mn;rc=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var e={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"]]},t=e;return Mn.default=t,Mn}var On={},nc;function Wg(){if(nc)return On;nc=1,Object.defineProperty(On,"__esModule",{value:!0}),On.default=void 0;var e={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"]]},t=e;return On.default=t,On}var In={},oc;function Gg(){if(oc)return In;oc=1,Object.defineProperty(In,"__esModule",{value:!0}),In.default=void 0;var e={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"]]},t=e;return In.default=t,In}var Nn={},ac;function Kg(){if(ac)return Nn;ac=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=void 0;var e={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"]]},t=e;return Nn.default=t,Nn}var kn={},ic;function Yg(){if(ic)return kn;ic=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.default=void 0;var e={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"]]},t=e;return kn.default=t,kn}var jn={},sc;function Xg(){if(sc)return jn;sc=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.default=void 0;var e={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"]]},t=e;return jn.default=t,jn}var Dn={},lc;function Jg(){if(lc)return Dn;lc=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.default=void 0;var e={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"]]},t=e;return Dn.default=t,Dn}var $n={},uc;function Qg(){if(uc)return $n;uc=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.default=void 0;var e={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"]]},t=e;return $n.default=t,$n}var Bn={},cc;function Zg(){if(cc)return Bn;cc=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.default=void 0;var e={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"]]},t=e;return Bn.default=t,Bn}var Ln={},dc;function ey(){if(dc)return Ln;dc=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.default=void 0;var e={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"]]},t=e;return Ln.default=t,Ln}var Fn={},fc;function ty(){if(fc)return Fn;fc=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0;var e={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"]]},t=e;return Fn.default=t,Fn}var Un={},pc;function ry(){if(pc)return Un;pc=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.default=void 0;var e={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"]]},t=e;return Un.default=t,Un}var zn={},mc;function ny(){if(mc)return zn;mc=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=void 0;var e={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"]]},t=e;return zn.default=t,zn}var Vn={},hc;function oy(){if(hc)return Vn;hc=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.default=void 0;var e={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"]]},t=e;return Vn.default=t,Vn}var Hn={},bc;function ay(){if(bc)return Hn;bc=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=void 0;var e={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"]]},t=e;return Hn.default=t,Hn}var Wn={},vc;function iy(){if(vc)return Wn;vc=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.default=void 0;var e={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"]]},t=e;return Wn.default=t,Wn}var Gn={},gc;function sy(){if(gc)return Gn;gc=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.default=void 0;var e={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"]]},t=e;return Gn.default=t,Gn}var Kn={},yc;function ly(){if(yc)return Kn;yc=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.default=void 0;var e={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"]]},t=e;return Kn.default=t,Kn}var Yn={},wc;function uy(){if(wc)return Yn;wc=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.default=void 0;var e={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"]]},t=e;return Yn.default=t,Yn}var Xn={},Rc;function cy(){if(Rc)return Xn;Rc=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.default=void 0;var e={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"]]},t=e;return Xn.default=t,Xn}var Jn={},Ec;function dy(){if(Ec)return Jn;Ec=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.default=void 0;var e={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"]]},t=e;return Jn.default=t,Jn}var Qn={},xc;function fy(){if(xc)return Qn;xc=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=void 0;var e={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"]]},t=e;return Qn.default=t,Qn}var Zn={},Cc;function py(){if(Cc)return Zn;Cc=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=void 0;var e={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"]]},t=e;return Zn.default=t,Zn}var eo={},qc;function my(){if(qc)return eo;qc=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e={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"]]},t=e;return eo.default=t,eo}var to={},_c;function hy(){if(_c)return to;_c=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e={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"]]},t=e;return to.default=t,to}var ro={},Pc;function by(){if(Pc)return ro;Pc=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e={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"]]},t=e;return ro.default=t,ro}var no={},Tc;function vy(){if(Tc)return no;Tc=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var e={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"]]},t=e;return no.default=t,no}var oo={},Sc;function gy(){if(Sc)return oo;Sc=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e={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"]]},t=e;return oo.default=t,oo}var ao={},Ac;function yy(){if(Ac)return ao;Ac=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e={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"]]},t=e;return ao.default=t,ao}var io={},Mc;function wy(){if(Mc)return io;Mc=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e={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"]]},t=e;return io.default=t,io}var so={},Oc;function Ry(){if(Oc)return so;Oc=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e={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"]]},t=e;return so.default=t,so}var lo={},Ic;function Ey(){if(Ic)return lo;Ic=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=void 0;var e={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"]]},t=e;return lo.default=t,lo}var uo={},Nc;function xy(){if(Nc)return uo;Nc=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e={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"]]},t=e;return uo.default=t,uo}var co={},kc;function Cy(){if(kc)return co;kc=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e={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"]]},t=e;return co.default=t,co}var fo={},jc;function qy(){if(jc)return fo;jc=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e={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"]]},t=e;return fo.default=t,fo}var po={},Dc;function _y(){if(Dc)return po;Dc=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e={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"]]},t=e;return po.default=t,po}var mo={},$c;function Py(){if($c)return mo;$c=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.default=void 0;var e={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"]]},t=e;return mo.default=t,mo}var ho={},Bc;function Ty(){if(Bc)return ho;Bc=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=void 0;var e={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"]]},t=e;return ho.default=t,ho}var Lc;function Sy(){if(Lc)return Sn;Lc=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var e=L(Vg()),t=L(Hg()),r=L(Wg()),n=L(Gg()),o=L(Kg()),a=L(Yg()),i=L(Xg()),s=L(Jg()),l=L(Qg()),u=L(Zg()),d=L(ey()),f=L(ty()),c=L(ry()),v=L(ny()),m=L(oy()),g=L(ay()),T=L(iy()),p=L(sy()),q=L(ly()),_=L(uy()),S=L(cy()),P=L(dy()),y=L(fy()),w=L(py()),E=L(my()),M=L(hy()),N=L(by()),D=L(vy()),$=L(gy()),A=L(yy()),k=L(wy()),F=L(Ry()),Z=L(Ey()),Y=L(xy()),ue=L(Cy()),we=L(qy()),nt=L(_y()),Ve=L(Py()),He=L(Ty());function L(Re){return Re&&Re.__esModule?Re:{default:Re}}var We=[["doc-abstract",e.default],["doc-acknowledgments",t.default],["doc-afterword",r.default],["doc-appendix",n.default],["doc-backlink",o.default],["doc-biblioentry",a.default],["doc-bibliography",i.default],["doc-biblioref",s.default],["doc-chapter",l.default],["doc-colophon",u.default],["doc-conclusion",d.default],["doc-cover",f.default],["doc-credit",c.default],["doc-credits",v.default],["doc-dedication",m.default],["doc-endnote",g.default],["doc-endnotes",T.default],["doc-epigraph",p.default],["doc-epilogue",q.default],["doc-errata",_.default],["doc-example",S.default],["doc-footnote",P.default],["doc-foreword",y.default],["doc-glossary",w.default],["doc-glossref",E.default],["doc-index",M.default],["doc-introduction",N.default],["doc-noteref",D.default],["doc-notice",$.default],["doc-pagebreak",A.default],["doc-pagelist",k.default],["doc-part",F.default],["doc-preface",Z.default],["doc-prologue",Y.default],["doc-pullquote",ue.default],["doc-qna",we.default],["doc-subtitle",nt.default],["doc-tip",Ve.default],["doc-toc",He.default]],ot=We;return Sn.default=ot,Sn}var bo={},vo={},Fc;function Ay(){if(Fc)return vo;Fc=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=void 0;var e={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"]]},t=e;return vo.default=t,vo}var go={},Uc;function My(){if(Uc)return go;Uc=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var e={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"]]},t=e;return go.default=t,go}var yo={},zc;function Oy(){if(zc)return yo;zc=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var e={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"]]},t=e;return yo.default=t,yo}var Vc;function Iy(){if(Vc)return bo;Vc=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var e=n(Ay()),t=n(My()),r=n(Oy());function n(i){return i&&i.__esModule?i:{default:i}}var o=[["graphics-document",e.default],["graphics-object",t.default],["graphics-symbol",r.default]],a=o;return bo.default=a,bo}var Hc;function ys(){if(Hc)return $t;Hc=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.default=void 0;var e=a(pv()),t=a(zg()),r=a(Sy()),n=a(Iy()),o=a(Vo());function a(p){return p&&p.__esModule?p:{default:p}}function i(p,q,_){return q in p?Object.defineProperty(p,q,{value:_,enumerable:!0,configurable:!0,writable:!0}):p[q]=_,p}function s(p,q){var _=typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(!_){if(Array.isArray(p)||(_=d(p))||q){_&&(p=_);var S=0,P=function(){};return{s:P,n:function(){return S>=p.length?{done:!0}:{done:!1,value:p[S++]}},e:function(N){throw N},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(p,q){if(p){if(typeof p=="string")return f(p,q);var _=Object.prototype.toString.call(p).slice(8,-1);if(_==="Object"&&p.constructor&&(_=p.constructor.name),_==="Map"||_==="Set")return Array.from(p);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return f(p,q)}}function f(p,q){(q==null||q>p.length)&&(q=p.length);for(var _=0,
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,D=!1,$;return{s:function(){
|
|
25
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=!0,$=!1,
|
|
27
|
-
`)!==-1&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+f+l.value.close}).join("")},
|
|
33
|
+
`}};function it(C){return new Array(C+1).join(" ")}function Ee(C,B){if(B&&(ue(B),B.plugins)){const W=M(B.plugins,C);if(W!==null)return $(W,C,Ke(B),"",0,[])}const O=A(C,We(B),Ge(B),L(B));return O!==null?O:N(C,Ke(B),"",0,[])}const Nt={AsymmetricMatcher:r.default,ConvertAnsi:n.default,DOMCollection:o.default,DOMElement:i.default,Immutable:a.default,ReactElement:s.default,ReactTestComponent:l.default};qe.plugins=Nt;var kt=Ee;return qe.default=kt,qe}var Hf=Tb(),Sb=Object.prototype.toString;function Mb(e){return typeof e=="function"||Sb.call(e)==="[object Function]"}function Ab(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var Ob=Math.pow(2,53)-1;function Ib(e){var t=Ab(e);return Math.min(Math.max(t,0),Ob)}function xe(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");for(var o=Ib(n.length),i=Mb(r)?Object(new r(o)):new Array(o),a=0,s;a<o;)s=n[a],i[a]=s,a+=1;return i.length=o,i}function ko(e){"@babel/helpers - typeof";return ko=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},ko(e)}function Nb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kb(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,Wf(n.key),n)}}function jb(e,t,r){return t&&kb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Db(e,t,r){return t=Wf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wf(e){var t=$b(e,"string");return ko(t)==="symbol"?t:String(t)}function $b(e,t){if(ko(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ko(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bb=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Nb(this,e),Db(this,"items",void 0),this.items=t}return jb(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(o){return o!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(o){r(o,o,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})();const Lb=typeof Set>"u"?Set:Bb;function se(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Fb={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"},Ub={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 zb(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=Ub[t])!==null&&n!==void 0&&n.has(r))})}function Gf(e,t){return zb(e,t)}function Vb(e){var t=Wb(e);if(t===null||t==="presentation"){var r=Hb(e);if(t!=="presentation"||Gf(e,r||""))return r}return t}function Hb(e){var t=Fb[se(e)];if(t!==void 0)return t;switch(se(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!Gf(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 Wb(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function ee(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Kf(e){return ee(e)&&se(e)==="caption"}function ai(e){return ee(e)&&se(e)==="input"}function Gb(e){return ee(e)&&se(e)==="optgroup"}function Kb(e){return ee(e)&&se(e)==="select"}function Yb(e){return ee(e)&&se(e)==="table"}function Xb(e){return ee(e)&&se(e)==="textarea"}function Jb(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Qb(e){return ee(e)&&se(e)==="fieldset"}function Zb(e){return ee(e)&&se(e)==="legend"}function ev(e){return ee(e)&&se(e)==="slot"}function tv(e){return ee(e)&&e.ownerSVGElement!==void 0}function rv(e){return ee(e)&&se(e)==="svg"}function nv(e){return tv(e)&&se(e)==="title"}function yi(e,t){if(ee(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 Le(e,t){return ee(e)?t.indexOf(Vb(e))!==-1:!1}function ov(e){return e.trim().replace(/\s\s+/g," ")}function iv(e,t){if(!ee(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 av(e){return Le(e,["button","combobox","listbox","textbox"])||Yf(e,"range")}function Yf(e,t){if(!ee(e))return!1;if(t==="range")return Le(e,["meter","progressbar","scrollbar","slider","spinbutton"]);throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}function ll(e,t){var r=xe(e.querySelectorAll(t));return yi(e,"aria-owns").forEach(function(n){r.push.apply(r,xe(n.querySelectorAll(t)))}),r}function sv(e){return Kb(e)?e.selectedOptions||ll(e,"[selected]"):ll(e,'[aria-selected="true"]')}function lv(e){return Le(e,["none","presentation"])}function uv(e){return Kf(e)}function cv(e){return Le(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function dv(e){return!1}function fv(e){return ai(e)||Xb(e)?e.value:e.textContent||""}function ul(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function Xf(e){var t=se(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function Jf(e){if(Xf(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ee(r)){var n=Jf(r);n!==null&&(t=n)}}),t}function pv(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):Jf(e)}function mv(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return xe(t);if(!Xf(e))return null;var r=e.ownerDocument;return xe(r.querySelectorAll("label")).filter(function(n){return pv(n)===e})}function hv(e){var t=e.assignedNodes();return t.length===0?xe(e.childNodes):t}function Qf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Lb,n=Jb(e),o=t.compute,i=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,d=t.hidden,f=d===void 0?!1:d;function c(p,q){var _="";if(ee(p)&&s){var T=u(p,"::before"),P=ul(T);_="".concat(P," ").concat(_)}var v=ev(p)?hv(p):xe(p.childNodes).concat(yi(p,"aria-owns"));if(v.forEach(function(A){var N=S(A,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),D=ee(A)?u(A).getPropertyValue("display"):"inline",$=D!=="inline"?" ":"";_+="".concat($).concat(N).concat($)}),ee(p)&&s){var y=u(p,"::after"),R=ul(y);_="".concat(_," ").concat(R)}return _.trim()}function b(p,q){var _=p.getAttributeNode(q);return _!==null&&!r.has(_)&&_.value.trim()!==""?(r.add(_),_.value):null}function g(p){return ee(p)?b(p,"title"):null}function w(p){if(!ee(p))return null;if(Qb(p)){r.add(p);for(var q=xe(p.childNodes),_=0;_<q.length;_+=1){var T=q[_];if(Zb(T))return S(T,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Yb(p)){r.add(p);for(var P=xe(p.childNodes),v=0;v<P.length;v+=1){var y=P[v];if(Kf(y))return S(y,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(rv(p)){r.add(p);for(var R=xe(p.childNodes),A=0;A<R.length;A+=1){var N=R[A];if(nv(N))return N.textContent}return null}else if(se(p)==="img"||se(p)==="area"){var D=b(p,"alt");if(D!==null)return D}else if(Gb(p)){var $=b(p,"label");if($!==null)return $}if(ai(p)&&(p.type==="button"||p.type==="submit"||p.type==="reset")){var M=b(p,"value");if(M!==null)return M;if(p.type==="submit")return"Submit";if(p.type==="reset")return"Reset"}var k=mv(p);if(k!==null&&k.length!==0)return r.add(p),xe(k).map(function(ue){return S(ue,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(ue){return ue.length>0}).join(" ");if(ai(p)&&p.type==="image"){var F=b(p,"alt");if(F!==null)return F;var Z=b(p,"title");return Z!==null?Z:"Submit Query"}if(Le(p,["button"])){var Y=c(p,{isEmbeddedInLabel:!1});if(Y!=="")return Y}return null}function S(p,q){if(r.has(p))return"";if(!f&&iv(p,u)&&!q.isReferenced)return r.add(p),"";var _=ee(p)?p.getAttributeNode("aria-labelledby"):null,T=_!==null&&!r.has(_)?yi(p,"aria-labelledby"):[];if(i==="name"&&!q.isReferenced&&T.length>0)return r.add(_),T.map(function(D){return S(D,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=q.recursion&&av(p)&&i==="name";if(!P){var v=(ee(p)&&p.getAttribute("aria-label")||"").trim();if(v!==""&&i==="name")return r.add(p),v;if(!lv(p)){var y=w(p);if(y!==null)return r.add(p),y}}if(Le(p,["menu"]))return r.add(p),"";if(P||q.isEmbeddedInLabel||q.isReferenced){if(Le(p,["combobox","listbox"])){r.add(p);var R=sv(p);return R.length===0?ai(p)?p.value:"":xe(R).map(function(D){return S(D,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(Yf(p,"range"))return r.add(p),p.hasAttribute("aria-valuetext")?p.getAttribute("aria-valuetext"):p.hasAttribute("aria-valuenow")?p.getAttribute("aria-valuenow"):p.getAttribute("value")||"";if(Le(p,["textbox"]))return r.add(p),fv(p)}if(cv(p)||ee(p)&&q.isReferenced||uv(p)||dv()){var A=c(p,{isEmbeddedInLabel:q.isEmbeddedInLabel});if(A!=="")return r.add(p),A}if(p.nodeType===p.TEXT_NODE)return r.add(p),p.textContent||"";if(q.recursion)return r.add(p),c(p,{isEmbeddedInLabel:q.isEmbeddedInLabel});var N=g(p);return N!==null?(r.add(p),N):(r.add(p),"")}return ov(S(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function jo(e){"@babel/helpers - typeof";return jo=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},jo(e)}function cl(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 dl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cl(Object(r),!0).forEach(function(n){bv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bv(e,t,r){return t=vv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vv(e){var t=gv(e,"string");return jo(t)==="symbol"?t:String(t)}function gv(e,t){if(jo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=yi(e,"aria-describedby").map(function(o){return Qf(o,dl(dl({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function yv(e){return Le(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Es(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return yv(e)?"":Qf(e,t)}var pe={},Dt={},Zo={},$t={},fl;function wv(){if(fl)return $t;fl=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.default=void 0;function e(){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}var t=e;return $t.default=t,$t}var pl;function Wo(){if(pl)return Zo;pl=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.default=n;var e=t(wv());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){"@babel/helpers - typeof";return r=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},r(o)}function n(o,i){return typeof Symbol=="function"&&r(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:e.default.bind(i)}),o}return Zo}var ml;function Rv(){if(ml)return Dt;ml=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=void 0;var e=t(Wo());function t(c){return c&&c.__esModule?c:{default:c}}function r(c,b){return i(c)||o(c,b)||s(c,b)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
34
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(c,b){var g=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(g!=null){var w=[],S=!0,p=!1,q,_;try{for(g=g.call(c);!(S=(q=g.next()).done)&&(w.push(q.value),!(b&&w.length===b));S=!0);}catch(T){p=!0,_=T}finally{try{!S&&g.return!=null&&g.return()}finally{if(p)throw _}}return w}}function i(c){if(Array.isArray(c))return c}function a(c,b){var g=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!g){if(Array.isArray(c)||(g=s(c))||b){g&&(c=g);var w=0,S=function(){};return{s:S,n:function(){return w>=c.length?{done:!0}:{done:!1,value:c[w++]}},e:function(P){throw P},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
35
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,q=!1,_;return{s:function(){g=g.call(c)},n:function(){var P=g.next();return p=P.done,P},e:function(P){q=!0,_=P},f:function(){try{!p&&g.return!=null&&g.return()}finally{if(q)throw _}}}}function s(c,b){if(c){if(typeof c=="string")return l(c,b);var g=Object.prototype.toString.call(c).slice(8,-1);if(g==="Object"&&c.constructor&&(g=c.constructor.name),g==="Map"||g==="Set")return Array.from(c);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return l(c,b)}}function l(c,b){(b==null||b>c.length)&&(b=c.length);for(var g=0,w=new Array(b);g<b;g++)w[g]=c[g];return w}var u=[["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"}]],d={entries:function(){return u},forEach:function(b){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=a(u),S;try{for(w.s();!(S=w.n()).done;){var p=r(S.value,2),q=p[0],_=p[1];b.call(g,_,q,u)}}catch(T){w.e(T)}finally{w.f()}},get:function(b){var g=u.find(function(w){return w[0]===b});return g&&g[1]},has:function(b){return!!d.get(b)},keys:function(){return u.map(function(b){var g=r(b,1),w=g[0];return w})},values:function(){return u.map(function(b){var g=r(b,2),w=g[1];return w})}},f=(0,e.default)(d,d.entries());return Dt.default=f,Dt}var Bt={},hl;function Ev(){if(hl)return Bt;hl=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.default=void 0;var e=t(Wo());function t(c){return c&&c.__esModule?c:{default:c}}function r(c,b){return i(c)||o(c,b)||s(c,b)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
36
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(c,b){var g=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(g!=null){var w=[],S=!0,p=!1,q,_;try{for(g=g.call(c);!(S=(q=g.next()).done)&&(w.push(q.value),!(b&&w.length===b));S=!0);}catch(T){p=!0,_=T}finally{try{!S&&g.return!=null&&g.return()}finally{if(p)throw _}}return w}}function i(c){if(Array.isArray(c))return c}function a(c,b){var g=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!g){if(Array.isArray(c)||(g=s(c))||b){g&&(c=g);var w=0,S=function(){};return{s:S,n:function(){return w>=c.length?{done:!0}:{done:!1,value:c[w++]}},e:function(P){throw P},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
37
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,q=!1,_;return{s:function(){g=g.call(c)},n:function(){var P=g.next();return p=P.done,P},e:function(P){q=!0,_=P},f:function(){try{!p&&g.return!=null&&g.return()}finally{if(q)throw _}}}}function s(c,b){if(c){if(typeof c=="string")return l(c,b);var g=Object.prototype.toString.call(c).slice(8,-1);if(g==="Object"&&c.constructor&&(g=c.constructor.name),g==="Map"||g==="Set")return Array.from(c);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return l(c,b)}}function l(c,b){(b==null||b>c.length)&&(b=c.length);for(var g=0,w=new Array(b);g<b;g++)w[g]=c[g];return w}var u=[["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}]],d={entries:function(){return u},forEach:function(b){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=a(u),S;try{for(w.s();!(S=w.n()).done;){var p=r(S.value,2),q=p[0],_=p[1];b.call(g,_,q,u)}}catch(T){w.e(T)}finally{w.f()}},get:function(b){var g=u.find(function(w){return w[0]===b});return g&&g[1]},has:function(b){return!!d.get(b)},keys:function(){return u.map(function(b){var g=r(b,1),w=g[0];return w})},values:function(){return u.map(function(b){var g=r(b,2),w=g[1];return w})}},f=(0,e.default)(d,d.entries());return Bt.default=f,Bt}var Lt={},Ft={},Ut={},bl;function xv(){if(bl)return Ut;bl=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Ut.default=t,Ut}var zt={},vl;function Cv(){if(vl)return zt;vl=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=void 0;var e={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"]]},t=e;return zt.default=t,zt}var Vt={},gl;function qv(){if(gl)return Vt;gl=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.default=void 0;var e={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"]]},t=e;return Vt.default=t,Vt}var Ht={},yl;function _v(){if(yl)return Ht;yl=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ht.default=t,Ht}var Wt={},wl;function Pv(){if(wl)return Wt;wl=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.default=void 0;var e={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"]]},t=e;return Wt.default=t,Wt}var Gt={},Rl;function Tv(){if(Rl)return Gt;Rl=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=void 0;var e={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:[]},t=e;return Gt.default=t,Gt}var Kt={},El;function Sv(){if(El)return Kt;El=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.default=void 0;var e={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"]]},t=e;return Kt.default=t,Kt}var Yt={},xl;function Mv(){if(xl)return Yt;xl=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Yt.default=t,Yt}var Xt={},Cl;function Av(){if(Cl)return Xt;Cl=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=void 0;var e={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"]]},t=e;return Xt.default=t,Xt}var Jt={},ql;function Ov(){if(ql)return Jt;ql=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return Jt.default=t,Jt}var Qt={},_l;function Iv(){if(_l)return Qt;_l=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return Qt.default=t,Qt}var Zt={},Pl;function Nv(){if(Pl)return Zt;Pl=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return Zt.default=t,Zt}var Tl;function kv(){if(Tl)return Ft;Tl=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.default=void 0;var e=c(xv()),t=c(Cv()),r=c(qv()),n=c(_v()),o=c(Pv()),i=c(Tv()),a=c(Sv()),s=c(Mv()),l=c(Av()),u=c(Ov()),d=c(Iv()),f=c(Nv());function c(w){return w&&w.__esModule?w:{default:w}}var b=[["command",e.default],["composite",t.default],["input",r.default],["landmark",n.default],["range",o.default],["roletype",i.default],["section",a.default],["sectionhead",s.default],["select",l.default],["structure",u.default],["widget",d.default],["window",f.default]],g=b;return Ft.default=g,Ft}var er={},tr={},Sl;function jv(){if(Sl)return tr;Sl=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=void 0;var e={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"]]},t=e;return tr.default=t,tr}var rr={},Ml;function Dv(){if(Ml)return rr;Ml=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0;var e={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"]]},t=e;return rr.default=t,rr}var nr={},Al;function $v(){if(Al)return nr;Al=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var e={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"]]},t=e;return nr.default=t,nr}var or={},Ol;function Bv(){if(Ol)return or;Ol=1,Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var e={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"]]},t=e;return or.default=t,or}var ir={},Il;function Lv(){if(Il)return ir;Il=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0;var e={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"]]},t=e;return ir.default=t,ir}var ar={},Nl;function Fv(){if(Nl)return ar;Nl=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0;var e={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"]]},t=e;return ar.default=t,ar}var sr={},kl;function Uv(){if(kl)return sr;kl=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=void 0;var e={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"]]},t=e;return sr.default=t,sr}var lr={},jl;function zv(){if(jl)return lr;jl=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=void 0;var e={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"]]},t=e;return lr.default=t,lr}var ur={},Dl;function Vv(){if(Dl)return ur;Dl=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.default=void 0;var e={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"]]},t=e;return ur.default=t,ur}var cr={},$l;function Hv(){if($l)return cr;$l=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.default=void 0;var e={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"]]},t=e;return cr.default=t,cr}var dr={},Bl;function Wv(){if(Bl)return dr;Bl=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.default=void 0;var e={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"]]},t=e;return dr.default=t,dr}var fr={},Ll;function Gv(){if(Ll)return fr;Ll=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.default=void 0;var e={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"]]},t=e;return fr.default=t,fr}var pr={},Fl;function Kv(){if(Fl)return pr;Fl=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=void 0;var e={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"]]},t=e;return pr.default=t,pr}var mr={},Ul;function Yv(){if(Ul)return mr;Ul=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{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"]]},t=e;return mr.default=t,mr}var hr={},zl;function Xv(){if(zl)return hr;zl=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.default=void 0;var e={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"]]},t=e;return hr.default=t,hr}var br={},Vl;function Jv(){if(Vl)return br;Vl=1,Object.defineProperty(br,"__esModule",{value:!0}),br.default=void 0;var e={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"]]},t=e;return br.default=t,br}var vr={},Hl;function Qv(){if(Hl)return vr;Hl=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.default=void 0;var e={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"]]},t=e;return vr.default=t,vr}var gr={},Wl;function Zv(){if(Wl)return gr;Wl=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},t=e;return gr.default=t,gr}var yr={},Gl;function eg(){if(Gl)return yr;Gl=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return yr.default=t,yr}var wr={},Kl;function tg(){if(Kl)return wr;Kl=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var e={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"]]},t=e;return wr.default=t,wr}var Rr={},Yl;function rg(){if(Yl)return Rr;Yl=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.default=void 0;var e={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"]]},t=e;return Rr.default=t,Rr}var Er={},Xl;function ng(){if(Xl)return Er;Xl=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return Er.default=t,Er}var xr={},Jl;function og(){if(Jl)return xr;Jl=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=void 0;var e={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"]]},t=e;return xr.default=t,xr}var Cr={},Ql;function ig(){if(Ql)return Cr;Ql=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0;var e={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"]]},t=e;return Cr.default=t,Cr}var qr={},Zl;function ag(){if(Zl)return qr;Zl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=void 0;var e={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"]]},t=e;return qr.default=t,qr}var _r={},eu;function sg(){if(eu)return _r;eu=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=void 0;var e={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"]]},t=e;return _r.default=t,_r}var Pr={},tu;function lg(){if(tu)return Pr;tu=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=void 0;var e={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"]]},t=e;return Pr.default=t,Pr}var Tr={},ru;function ug(){if(ru)return Tr;ru=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.default=void 0;var e={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"]]},t=e;return Tr.default=t,Tr}var Sr={},nu;function cg(){if(nu)return Sr;nu=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.default=void 0;var e={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"]]},t=e;return Sr.default=t,Sr}var Mr={},ou;function dg(){if(ou)return Mr;ou=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=void 0;var e={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"]]},t=e;return Mr.default=t,Mr}var Ar={},iu;function fg(){if(iu)return Ar;iu=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.default=void 0;var e={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"]]},t=e;return Ar.default=t,Ar}var Or={},au;function pg(){if(au)return Or;au=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=void 0;var e={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"]]},t=e;return Or.default=t,Or}var Ir={},su;function mg(){if(su)return Ir;su=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.default=void 0;var e={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"]]},t=e;return Ir.default=t,Ir}var Nr={},lu;function hg(){if(lu)return Nr;lu=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=void 0;var e={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"]]},t=e;return Nr.default=t,Nr}var kr={},uu;function bg(){if(uu)return kr;uu=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=void 0;var e={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"]]},t=e;return kr.default=t,kr}var jr={},cu;function vg(){if(cu)return jr;cu=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return jr.default=t,jr}var Dr={},du;function gg(){if(du)return Dr;du=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.default=void 0;var e={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"]]},t=e;return Dr.default=t,Dr}var $r={},fu;function yg(){if(fu)return $r;fu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.default=void 0;var e={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"]]},t=e;return $r.default=t,$r}var Br={},pu;function wg(){if(pu)return Br;pu=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Br.default=t,Br}var Lr={},mu;function Rg(){if(mu)return Lr;mu=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=void 0;var e={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"]]},t=e;return Lr.default=t,Lr}var Fr={},hu;function Eg(){if(hu)return Fr;hu=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.default=void 0;var e={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"]]},t=e;return Fr.default=t,Fr}var Ur={},bu;function xg(){if(bu)return Ur;bu=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=void 0;var e={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"]]},t=e;return Ur.default=t,Ur}var zr={},vu;function Cg(){if(vu)return zr;vu=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.default=void 0;var e={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"]]},t=e;return zr.default=t,zr}var Vr={},gu;function qg(){if(gu)return Vr;gu=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=void 0;var e={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"]]},t=e;return Vr.default=t,Vr}var Hr={},yu;function _g(){if(yu)return Hr;yu=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.default=void 0;var e={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"]]},t=e;return Hr.default=t,Hr}var Wr={},wu;function Pg(){if(wu)return Wr;wu=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.default=void 0;var e={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"]]},t=e;return Wr.default=t,Wr}var Gr={},Ru;function Tg(){if(Ru)return Gr;Ru=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.default=void 0;var e={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"]]},t=e;return Gr.default=t,Gr}var Kr={},Eu;function Sg(){if(Eu)return Kr;Eu=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return Kr.default=t,Kr}var Yr={},xu;function Mg(){if(xu)return Yr;xu=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Yr.default=t,Yr}var Xr={},Cu;function Ag(){if(Cu)return Xr;Cu=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.default=void 0;var e={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"]]},t=e;return Xr.default=t,Xr}var Jr={},qu;function Og(){if(qu)return Jr;qu=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.default=void 0;var e={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"]]},t=e;return Jr.default=t,Jr}var Qr={},_u;function Ig(){if(_u)return Qr;_u=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.default=void 0;var e={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"]]},t=e;return Qr.default=t,Qr}var Zr={},Pu;function Ng(){if(Pu)return Zr;Pu=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=void 0;var e={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"]]},t=e;return Zr.default=t,Zr}var en={},Tu;function kg(){if(Tu)return en;Tu=1,Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var e={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"]]},t=e;return en.default=t,en}var tn={},Su;function jg(){if(Su)return tn;Su=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=void 0;var e={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"]]},t=e;return tn.default=t,tn}var rn={},Mu;function Dg(){if(Mu)return rn;Mu=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=void 0;var e={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"]]},t=e;return rn.default=t,rn}var nn={},Au;function $g(){if(Au)return nn;Au=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.default=void 0;var e={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"]]},t=e;return nn.default=t,nn}var on={},Ou;function Bg(){if(Ou)return on;Ou=1,Object.defineProperty(on,"__esModule",{value:!0}),on.default=void 0;var e={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"]]},t=e;return on.default=t,on}var an={},Iu;function Lg(){if(Iu)return an;Iu=1,Object.defineProperty(an,"__esModule",{value:!0}),an.default=void 0;var e={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"]]},t=e;return an.default=t,an}var sn={},Nu;function Fg(){if(Nu)return sn;Nu=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=void 0;var e={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"]]},t=e;return sn.default=t,sn}var ln={},ku;function Ug(){if(ku)return ln;ku=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ln.default=t,ln}var un={},ju;function zg(){if(ju)return un;ju=1,Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var e={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"]]},t=e;return un.default=t,un}var cn={},Du;function Vg(){if(Du)return cn;Du=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=void 0;var e={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"]]},t=e;return cn.default=t,cn}var dn={},$u;function Hg(){if($u)return dn;$u=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.default=void 0;var e={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"]]},t=e;return dn.default=t,dn}var fn={},Bu;function Wg(){if(Bu)return fn;Bu=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=void 0;var e={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"]]},t=e;return fn.default=t,fn}var pn={},Lu;function Gg(){if(Lu)return pn;Lu=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var e={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"]]},t=e;return pn.default=t,pn}var mn={},Fu;function Kg(){if(Fu)return mn;Fu=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=void 0;var e={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"]]},t=e;return mn.default=t,mn}var hn={},Uu;function Yg(){if(Uu)return hn;Uu=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=void 0;var e={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"]]},t=e;return hn.default=t,hn}var bn={},zu;function Xg(){if(zu)return bn;zu=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var e={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"]]},t=e;return bn.default=t,bn}var vn={},Vu;function Jg(){if(Vu)return vn;Vu=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=void 0;var e={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"]]},t=e;return vn.default=t,vn}var gn={},Hu;function Qg(){if(Hu)return gn;Hu=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=void 0;var e={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"]]},t=e;return gn.default=t,gn}var yn={},Wu;function Zg(){if(Wu)return yn;Wu=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=void 0;var e={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"]]},t=e;return yn.default=t,yn}var wn={},Gu;function ey(){if(Gu)return wn;Gu=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var e={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"]]},t=e;return wn.default=t,wn}var Rn={},Ku;function ty(){if(Ku)return Rn;Ku=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Rn.default=t,Rn}var En={},Yu;function ry(){if(Yu)return En;Yu=1,Object.defineProperty(En,"__esModule",{value:!0}),En.default=void 0;var e={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"]]},t=e;return En.default=t,En}var xn={},Xu;function ny(){if(Xu)return xn;Xu=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var e={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"]]},t=e;return xn.default=t,xn}var Cn={},Ju;function oy(){if(Ju)return Cn;Ju=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var e={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"]]},t=e;return Cn.default=t,Cn}var qn={},Qu;function iy(){if(Qu)return qn;Qu=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},t=e;return qn.default=t,qn}var _n={},Zu;function ay(){if(Zu)return _n;Zu=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.default=void 0;var e={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"]]},t=e;return _n.default=t,_n}var Pn={},ec;function sy(){if(ec)return Pn;ec=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Pn.default=t,Pn}var Tn={},tc;function ly(){if(tc)return Tn;tc=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.default=void 0;var e={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"]]},t=e;return Tn.default=t,Tn}var Sn={},rc;function uy(){if(rc)return Sn;rc=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var e={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"]]},t=e;return Sn.default=t,Sn}var Mn={},nc;function cy(){if(nc)return Mn;nc=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var e={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"]]},t=e;return Mn.default=t,Mn}var oc;function dy(){if(oc)return er;oc=1,Object.defineProperty(er,"__esModule",{value:!0}),er.default=void 0;var e=I(jv()),t=I(Dv()),r=I($v()),n=I(Bv()),o=I(Lv()),i=I(Fv()),a=I(Uv()),s=I(zv()),l=I(Vv()),u=I(Hv()),d=I(Wv()),f=I(Gv()),c=I(Kv()),b=I(Yv()),g=I(Xv()),w=I(Jv()),S=I(Qv()),p=I(Zv()),q=I(eg()),_=I(tg()),T=I(rg()),P=I(ng()),v=I(og()),y=I(ig()),R=I(ag()),A=I(sg()),N=I(lg()),D=I(ug()),$=I(cg()),M=I(dg()),k=I(fg()),F=I(pg()),Z=I(mg()),Y=I(hg()),ue=I(bg()),Re=I(vg()),ot=I(gg()),We=I(yg()),Ge=I(wg()),L=I(Rg()),Ke=I(Eg()),it=I(xg()),Ee=I(Cg()),Nt=I(qg()),kt=I(_g()),C=I(Pg()),B=I(Tg()),O=I(Sg()),W=I(Mg()),V=I(Ag()),re=I(Og()),ie=I(Ig()),ce=I(Ng()),Ae=I(kg()),Yp=I(jg()),Xp=I(Dg()),Jp=I($g()),Qp=I(Bg()),Zp=I(Lg()),em=I(Fg()),tm=I(Ug()),rm=I(zg()),nm=I(Vg()),om=I(Hg()),im=I(Wg()),am=I(Gg()),sm=I(Kg()),lm=I(Yg()),um=I(Xg()),cm=I(Jg()),dm=I(Qg()),fm=I(Zg()),pm=I(ey()),mm=I(ty()),hm=I(ry()),bm=I(ny()),vm=I(oy()),gm=I(iy()),ym=I(ay()),wm=I(sy()),Rm=I(ly()),Em=I(uy()),xm=I(cy());function I(Ko){return Ko&&Ko.__esModule?Ko:{default:Ko}}var Cm=[["alert",e.default],["alertdialog",t.default],["application",r.default],["article",n.default],["banner",o.default],["blockquote",i.default],["button",a.default],["caption",s.default],["cell",l.default],["checkbox",u.default],["code",d.default],["columnheader",f.default],["combobox",c.default],["complementary",b.default],["contentinfo",g.default],["definition",w.default],["deletion",S.default],["dialog",p.default],["directory",q.default],["document",_.default],["emphasis",T.default],["feed",P.default],["figure",v.default],["form",y.default],["generic",R.default],["grid",A.default],["gridcell",N.default],["group",D.default],["heading",$.default],["img",M.default],["insertion",k.default],["link",F.default],["list",Z.default],["listbox",Y.default],["listitem",ue.default],["log",Re.default],["main",ot.default],["mark",We.default],["marquee",Ge.default],["math",L.default],["menu",Ke.default],["menubar",it.default],["menuitem",Ee.default],["menuitemcheckbox",Nt.default],["menuitemradio",kt.default],["meter",C.default],["navigation",B.default],["none",O.default],["note",W.default],["option",V.default],["paragraph",re.default],["presentation",ie.default],["progressbar",ce.default],["radio",Ae.default],["radiogroup",Yp.default],["region",Xp.default],["row",Jp.default],["rowgroup",Qp.default],["rowheader",Zp.default],["scrollbar",em.default],["search",tm.default],["searchbox",rm.default],["separator",nm.default],["slider",om.default],["spinbutton",im.default],["status",am.default],["strong",sm.default],["subscript",lm.default],["superscript",um.default],["switch",cm.default],["tab",dm.default],["table",fm.default],["tablist",pm.default],["tabpanel",mm.default],["term",hm.default],["textbox",bm.default],["time",vm.default],["timer",gm.default],["toolbar",ym.default],["tooltip",wm.default],["tree",Rm.default],["treegrid",Em.default],["treeitem",xm.default]],qm=Cm;return er.default=qm,er}var An={},On={},ic;function fy(){if(ic)return On;ic=1,Object.defineProperty(On,"__esModule",{value:!0}),On.default=void 0;var e={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"]]},t=e;return On.default=t,On}var In={},ac;function py(){if(ac)return In;ac=1,Object.defineProperty(In,"__esModule",{value:!0}),In.default=void 0;var e={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"]]},t=e;return In.default=t,In}var Nn={},sc;function my(){if(sc)return Nn;sc=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=void 0;var e={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"]]},t=e;return Nn.default=t,Nn}var kn={},lc;function hy(){if(lc)return kn;lc=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.default=void 0;var e={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"]]},t=e;return kn.default=t,kn}var jn={},uc;function by(){if(uc)return jn;uc=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.default=void 0;var e={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"]]},t=e;return jn.default=t,jn}var Dn={},cc;function vy(){if(cc)return Dn;cc=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.default=void 0;var e={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"]]},t=e;return Dn.default=t,Dn}var $n={},dc;function gy(){if(dc)return $n;dc=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.default=void 0;var e={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"]]},t=e;return $n.default=t,$n}var Bn={},fc;function yy(){if(fc)return Bn;fc=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.default=void 0;var e={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"]]},t=e;return Bn.default=t,Bn}var Ln={},pc;function wy(){if(pc)return Ln;pc=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.default=void 0;var e={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"]]},t=e;return Ln.default=t,Ln}var Fn={},mc;function Ry(){if(mc)return Fn;mc=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0;var e={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"]]},t=e;return Fn.default=t,Fn}var Un={},hc;function Ey(){if(hc)return Un;hc=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.default=void 0;var e={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"]]},t=e;return Un.default=t,Un}var zn={},bc;function xy(){if(bc)return zn;bc=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=void 0;var e={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"]]},t=e;return zn.default=t,zn}var Vn={},vc;function Cy(){if(vc)return Vn;vc=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.default=void 0;var e={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"]]},t=e;return Vn.default=t,Vn}var Hn={},gc;function qy(){if(gc)return Hn;gc=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=void 0;var e={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"]]},t=e;return Hn.default=t,Hn}var Wn={},yc;function _y(){if(yc)return Wn;yc=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.default=void 0;var e={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"]]},t=e;return Wn.default=t,Wn}var Gn={},wc;function Py(){if(wc)return Gn;wc=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.default=void 0;var e={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"]]},t=e;return Gn.default=t,Gn}var Kn={},Rc;function Ty(){if(Rc)return Kn;Rc=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.default=void 0;var e={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"]]},t=e;return Kn.default=t,Kn}var Yn={},Ec;function Sy(){if(Ec)return Yn;Ec=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.default=void 0;var e={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"]]},t=e;return Yn.default=t,Yn}var Xn={},xc;function My(){if(xc)return Xn;xc=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.default=void 0;var e={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"]]},t=e;return Xn.default=t,Xn}var Jn={},Cc;function Ay(){if(Cc)return Jn;Cc=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.default=void 0;var e={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"]]},t=e;return Jn.default=t,Jn}var Qn={},qc;function Oy(){if(qc)return Qn;qc=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=void 0;var e={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"]]},t=e;return Qn.default=t,Qn}var Zn={},_c;function Iy(){if(_c)return Zn;_c=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=void 0;var e={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"]]},t=e;return Zn.default=t,Zn}var eo={},Pc;function Ny(){if(Pc)return eo;Pc=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e={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"]]},t=e;return eo.default=t,eo}var to={},Tc;function ky(){if(Tc)return to;Tc=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e={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"]]},t=e;return to.default=t,to}var ro={},Sc;function jy(){if(Sc)return ro;Sc=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e={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"]]},t=e;return ro.default=t,ro}var no={},Mc;function Dy(){if(Mc)return no;Mc=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var e={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"]]},t=e;return no.default=t,no}var oo={},Ac;function $y(){if(Ac)return oo;Ac=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e={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"]]},t=e;return oo.default=t,oo}var io={},Oc;function By(){if(Oc)return io;Oc=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e={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"]]},t=e;return io.default=t,io}var ao={},Ic;function Ly(){if(Ic)return ao;Ic=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e={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"]]},t=e;return ao.default=t,ao}var so={},Nc;function Fy(){if(Nc)return so;Nc=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e={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"]]},t=e;return so.default=t,so}var lo={},kc;function Uy(){if(kc)return lo;kc=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=void 0;var e={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"]]},t=e;return lo.default=t,lo}var uo={},jc;function zy(){if(jc)return uo;jc=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e={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"]]},t=e;return uo.default=t,uo}var co={},Dc;function Vy(){if(Dc)return co;Dc=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e={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"]]},t=e;return co.default=t,co}var fo={},$c;function Hy(){if($c)return fo;$c=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e={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"]]},t=e;return fo.default=t,fo}var po={},Bc;function Wy(){if(Bc)return po;Bc=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e={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"]]},t=e;return po.default=t,po}var mo={},Lc;function Gy(){if(Lc)return mo;Lc=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.default=void 0;var e={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"]]},t=e;return mo.default=t,mo}var ho={},Fc;function Ky(){if(Fc)return ho;Fc=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=void 0;var e={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"]]},t=e;return ho.default=t,ho}var bo={},Uc;function Yy(){if(Uc)return bo;Uc=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var e={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"]]},t=e;return bo.default=t,bo}var vo={},zc;function Xy(){if(zc)return vo;zc=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=void 0;var e={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"]]},t=e;return vo.default=t,vo}var Vc;function Jy(){if(Vc)return An;Vc=1,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0;var e=L(fy()),t=L(py()),r=L(my()),n=L(hy()),o=L(by()),i=L(vy()),a=L(gy()),s=L(yy()),l=L(wy()),u=L(Ry()),d=L(Ey()),f=L(xy()),c=L(Cy()),b=L(qy()),g=L(_y()),w=L(Py()),S=L(Ty()),p=L(Sy()),q=L(My()),_=L(Ay()),T=L(Oy()),P=L(Iy()),v=L(Ny()),y=L(ky()),R=L(jy()),A=L(Dy()),N=L($y()),D=L(By()),$=L(Ly()),M=L(Fy()),k=L(Uy()),F=L(zy()),Z=L(Vy()),Y=L(Hy()),ue=L(Wy()),Re=L(Gy()),ot=L(Ky()),We=L(Yy()),Ge=L(Xy());function L(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}var Ke=[["doc-abstract",e.default],["doc-acknowledgments",t.default],["doc-afterword",r.default],["doc-appendix",n.default],["doc-backlink",o.default],["doc-biblioentry",i.default],["doc-bibliography",a.default],["doc-biblioref",s.default],["doc-chapter",l.default],["doc-colophon",u.default],["doc-conclusion",d.default],["doc-cover",f.default],["doc-credit",c.default],["doc-credits",b.default],["doc-dedication",g.default],["doc-endnote",w.default],["doc-endnotes",S.default],["doc-epigraph",p.default],["doc-epilogue",q.default],["doc-errata",_.default],["doc-example",T.default],["doc-footnote",P.default],["doc-foreword",v.default],["doc-glossary",y.default],["doc-glossref",R.default],["doc-index",A.default],["doc-introduction",N.default],["doc-noteref",D.default],["doc-notice",$.default],["doc-pagebreak",M.default],["doc-pagelist",k.default],["doc-part",F.default],["doc-preface",Z.default],["doc-prologue",Y.default],["doc-pullquote",ue.default],["doc-qna",Re.default],["doc-subtitle",ot.default],["doc-tip",We.default],["doc-toc",Ge.default]],it=Ke;return An.default=it,An}var go={},yo={},Hc;function Qy(){if(Hc)return yo;Hc=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var e={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"]]},t=e;return yo.default=t,yo}var wo={},Wc;function Zy(){if(Wc)return wo;Wc=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0;var e={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"]]},t=e;return wo.default=t,wo}var Ro={},Gc;function ew(){if(Gc)return Ro;Gc=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=void 0;var e={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"]]},t=e;return Ro.default=t,Ro}var Kc;function tw(){if(Kc)return go;Kc=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var e=n(Qy()),t=n(Zy()),r=n(ew());function n(a){return a&&a.__esModule?a:{default:a}}var o=[["graphics-document",e.default],["graphics-object",t.default],["graphics-symbol",r.default]],i=o;return go.default=i,go}var Yc;function xs(){if(Yc)return Lt;Yc=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=void 0;var e=i(kv()),t=i(dy()),r=i(Jy()),n=i(tw()),o=i(Wo());function i(p){return p&&p.__esModule?p:{default:p}}function a(p,q,_){return q in p?Object.defineProperty(p,q,{value:_,enumerable:!0,configurable:!0,writable:!0}):p[q]=_,p}function s(p,q){var _=typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(!_){if(Array.isArray(p)||(_=d(p))||q){_&&(p=_);var T=0,P=function(){};return{s:P,n:function(){return T>=p.length?{done:!0}:{done:!1,value:p[T++]}},e:function(N){throw N},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
38
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,y=!1,R;return{s:function(){_=_.call(p)},n:function(){var N=_.next();return v=N.done,N},e:function(N){y=!0,R=N},f:function(){try{!v&&_.return!=null&&_.return()}finally{if(y)throw R}}}}function l(p,q){return b(p)||c(p,q)||d(p,q)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
39
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(p,q){if(p){if(typeof p=="string")return f(p,q);var _=Object.prototype.toString.call(p).slice(8,-1);if(_==="Object"&&p.constructor&&(_=p.constructor.name),_==="Map"||_==="Set")return Array.from(p);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return f(p,q)}}function f(p,q){(q==null||q>p.length)&&(q=p.length);for(var _=0,T=new Array(q);_<q;_++)T[_]=p[_];return T}function c(p,q){var _=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(_!=null){var T=[],P=!0,v=!1,y,R;try{for(_=_.call(p);!(P=(y=_.next()).done)&&(T.push(y.value),!(q&&T.length===q));P=!0);}catch(A){v=!0,R=A}finally{try{!P&&_.return!=null&&_.return()}finally{if(v)throw R}}return T}}function b(p){if(Array.isArray(p))return p}var g=[].concat(e.default,t.default,r.default,n.default);g.forEach(function(p){var q=l(p,2),_=q[1],T=s(_.superClass),P;try{for(T.s();!(P=T.n()).done;){var v=P.value,y=s(v),R;try{var A=function(){var D=R.value,$=g.find(function(Y){var ue=l(Y,1),Re=ue[0];return Re===D});if($)for(var M=$[1],k=0,F=Object.keys(M.props);k<F.length;k++){var Z=F[k];Object.prototype.hasOwnProperty.call(_.props,Z)||Object.assign(_.props,a({},Z,M.props[Z]))}};for(y.s();!(R=y.n()).done;)A()}catch(N){y.e(N)}finally{y.f()}}}catch(N){T.e(N)}finally{T.f()}});var w={entries:function(){return g},forEach:function(q){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,T=s(g),P;try{for(T.s();!(P=T.n()).done;){var v=l(P.value,2),y=v[0],R=v[1];q.call(_,R,y,g)}}catch(A){T.e(A)}finally{T.f()}},get:function(q){var _=g.find(function(T){return T[0]===q});return _&&_[1]},has:function(q){return!!w.get(q)},keys:function(){return g.map(function(q){var _=l(q,1),T=_[0];return T})},values:function(){return g.map(function(q){var _=l(q,2),T=_[1];return T})}},S=(0,o.default)(w,w.entries());return Lt.default=S,Lt}var Eo={},Yi={},Xc;function rw(){if(Xc)return Yi;Xc=1;var e=Object.prototype.hasOwnProperty;function t(r,n){var o,i;if(r===n)return!0;if(r&&n&&(o=r.constructor)===n.constructor){if(o===Date)return r.getTime()===n.getTime();if(o===RegExp)return r.toString()===n.toString();if(o===Array){if((i=r.length)===n.length)for(;i--&&t(r[i],n[i]););return i===-1}if(!o||typeof r=="object"){i=0;for(o in r)if(e.call(r,o)&&++i&&!e.call(n,o)||!(o in n)||!t(r[o],n[o]))return!1;return Object.keys(n).length===i}}return r!==r&&n!==n}return Yi.dequal=t,Yi}var Jc;function nw(){if(Jc)return Eo;Jc=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=void 0;var e=rw(),t=n(Wo()),r=n(xs());function n(P){return P&&P.__esModule?P:{default:P}}function o(P,v){return s(P)||a(P,v)||u(P,v)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(P,v){var y=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(y!=null){var R=[],A=!0,N=!1,D,$;try{for(y=y.call(P);!(A=(D=y.next()).done)&&(R.push(D.value),!(v&&R.length===v));A=!0);}catch(M){N=!0,$=M}finally{try{!A&&y.return!=null&&y.return()}finally{if(N)throw $}}return R}}function s(P){if(Array.isArray(P))return P}function l(P,v){var y=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!y){if(Array.isArray(P)||(y=u(P))||v){y&&(P=y);var R=0,A=function(){};return{s:A,n:function(){return R>=P.length?{done:!0}:{done:!1,value:P[R++]}},e:function(k){throw k},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,D=!1,$;return{s:function(){y=y.call(P)},n:function(){var k=y.next();return N=k.done,k},e:function(k){D=!0,$=k},f:function(){try{!N&&y.return!=null&&y.return()}finally{if(D)throw $}}}}function u(P,v){if(P){if(typeof P=="string")return d(P,v);var y=Object.prototype.toString.call(P).slice(8,-1);if(y==="Object"&&P.constructor&&(y=P.constructor.name),y==="Map"||y==="Set")return Array.from(P);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return d(P,v)}}function d(P,v){(v==null||v>P.length)&&(v=P.length);for(var y=0,R=new Array(v);y<v;y++)R[y]=P[y];return R}for(var f=[],c=r.default.keys(),b=0;b<c.length;b++){var g=c[b],w=r.default.get(g);if(w)for(var S=[].concat(w.baseConcepts,w.relatedConcepts),p=0;p<S.length;p++){var q=S[p];q.module==="HTML"&&(function(){var P=q.concept;if(P){var v=f.find(function(N){return(0,e.dequal)(N,P)}),y;v?y=v[1]:y=[];for(var R=!0,A=0;A<y.length;A++)if(y[A]===g){R=!1;break}R&&y.push(g),f.push([P,y])}})()}}var _={entries:function(){return f},forEach:function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,R=l(f),A;try{for(R.s();!(A=R.n()).done;){var N=o(A.value,2),D=N[0],$=N[1];v.call(y,$,D,f)}}catch(M){R.e(M)}finally{R.f()}},get:function(v){var y=f.find(function(R){return v.name===R[0].name&&(0,e.dequal)(v.attributes,R[0].attributes)});return y&&y[1]},has:function(v){return!!_.get(v)},keys:function(){return f.map(function(v){var y=o(v,1),R=y[0];return R})},values:function(){return f.map(function(v){var y=o(v,2),R=y[1];return R})}},T=(0,t.default)(_,_.entries());return Eo.default=T,Eo}var xo={},Qc;function ow(){if(Qc)return xo;Qc=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var e=r(Wo()),t=r(xs());function r(v){return v&&v.__esModule?v:{default:v}}function n(v,y){return a(v)||i(v,y)||l(v,y)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(v,y){var R=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(R!=null){var A=[],N=!0,D=!1,$,M;try{for(R=R.call(v);!(N=($=R.next()).done)&&(A.push($.value),!(y&&A.length===y));N=!0);}catch(k){D=!0,M=k}finally{try{!N&&R.return!=null&&R.return()}finally{if(D)throw M}}return A}}function a(v){if(Array.isArray(v))return v}function s(v,y){var R=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!R){if(Array.isArray(v)||(R=l(v))||y){R&&(v=R);var A=0,N=function(){};return{s:N,n:function(){return A>=v.length?{done:!0}:{done:!1,value:v[A++]}},e:function(F){throw F},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=!0,$=!1,M;return{s:function(){R=R.call(v)},n:function(){var F=R.next();return D=F.done,F},e:function(F){$=!0,M=F},f:function(){try{!D&&R.return!=null&&R.return()}finally{if($)throw M}}}}function l(v,y){if(v){if(typeof v=="string")return u(v,y);var R=Object.prototype.toString.call(v).slice(8,-1);if(R==="Object"&&v.constructor&&(R=v.constructor.name),R==="Map"||R==="Set")return Array.from(v);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return u(v,y)}}function u(v,y){(y==null||y>v.length)&&(y=v.length);for(var R=0,A=new Array(y);R<y;R++)A[R]=v[R];return A}for(var d=[],f=t.default.keys(),c=0;c<f.length;c++){var b=f[c],g=t.default.get(b),w=[];if(g){for(var S=[].concat(g.baseConcepts,g.relatedConcepts),p=0;p<S.length;p++){var q=S[p];if(q.module==="HTML"){var _=q.concept;_!=null&&w.push(_)}}w.length>0&&d.push([b,w])}}var T={entries:function(){return d},forEach:function(y){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,A=s(d),N;try{for(A.s();!(N=A.n()).done;){var D=n(N.value,2),$=D[0],M=D[1];y.call(R,M,$,d)}}catch(k){A.e(k)}finally{A.f()}},get:function(y){var R=d.find(function(A){return A[0]===y});return R&&R[1]},has:function(y){return!!T.get(y)},keys:function(){return d.map(function(y){var R=n(y,1),A=R[0];return A})},values:function(){return d.map(function(y){var R=n(y,2),A=R[1];return A})}},P=(0,e.default)(T,T.entries());return xo.default=P,xo}var Zc;function iw(){if(Zc)return pe;Zc=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.roles=pe.roleElements=pe.elementRoles=pe.dom=pe.aria=void 0;var e=i(Rv()),t=i(Ev()),r=i(xs()),n=i(nw()),o=i(ow());function i(f){return f&&f.__esModule?f:{default:f}}var a=e.default;pe.aria=a;var s=t.default;pe.dom=s;var l=r.default;pe.roles=l;var u=n.default;pe.elementRoles=u;var d=o.default;return pe.roleElements=d,pe}var ve=iw(),Xi={exports:{}},ed;function aw(){return ed||(ed=1,(function(e){var t=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(l,u){if(!i[l]){i[l]={};for(var d=0;d<l.length;d++)i[l][l.charAt(d)]=d}return i[l][u]}var s={compressToBase64:function(l){if(l==null)return"";var u=s._compress(l,6,function(d){return n.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(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(u){return a(n,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(u){return r(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=s.compress(l),d=new Uint8Array(u.length*2),f=0,c=u.length;f<c;f++){var b=u.charCodeAt(f);d[f*2]=b>>>8,d[f*2+1]=b%256}return d},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),d=0,f=u.length;d<f;d++)u[d]=l[d*2]*256+l[d*2+1];var c=[];return u.forEach(function(b){c.push(r(b))}),s.decompress(c.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(u){return o.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(u){return a(o,l.charAt(u))}))},compress:function(l){return s._compress(l,16,function(u){return r(u)})},_compress:function(l,u,d){if(l==null)return"";var f,c,b={},g={},w="",S="",p="",q=2,_=3,T=2,P=[],v=0,y=0,R;for(R=0;R<l.length;R+=1)if(w=l.charAt(R),Object.prototype.hasOwnProperty.call(b,w)||(b[w]=_++,g[w]=!0),S=p+w,Object.prototype.hasOwnProperty.call(b,S))p=S;else{if(Object.prototype.hasOwnProperty.call(g,p)){if(p.charCodeAt(0)<256){for(f=0;f<T;f++)v=v<<1,y==u-1?(y=0,P.push(d(v)),v=0):y++;for(c=p.charCodeAt(0),f=0;f<8;f++)v=v<<1|c&1,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=c>>1}else{for(c=1,f=0;f<T;f++)v=v<<1|c,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=0;for(c=p.charCodeAt(0),f=0;f<16;f++)v=v<<1|c&1,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=c>>1}q--,q==0&&(q=Math.pow(2,T),T++),delete g[p]}else for(c=b[p],f=0;f<T;f++)v=v<<1|c&1,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=c>>1;q--,q==0&&(q=Math.pow(2,T),T++),b[S]=_++,p=String(w)}if(p!==""){if(Object.prototype.hasOwnProperty.call(g,p)){if(p.charCodeAt(0)<256){for(f=0;f<T;f++)v=v<<1,y==u-1?(y=0,P.push(d(v)),v=0):y++;for(c=p.charCodeAt(0),f=0;f<8;f++)v=v<<1|c&1,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=c>>1}else{for(c=1,f=0;f<T;f++)v=v<<1|c,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=0;for(c=p.charCodeAt(0),f=0;f<16;f++)v=v<<1|c&1,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=c>>1}q--,q==0&&(q=Math.pow(2,T),T++),delete g[p]}else for(c=b[p],f=0;f<T;f++)v=v<<1|c&1,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=c>>1;q--,q==0&&(q=Math.pow(2,T),T++)}for(c=2,f=0;f<T;f++)v=v<<1|c&1,y==u-1?(y=0,P.push(d(v)),v=0):y++,c=c>>1;for(;;)if(v=v<<1,y==u-1){P.push(d(v));break}else y++;return P.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,d){var f=[],c=4,b=4,g=3,w="",S=[],p,q,_,T,P,v,y,R={val:d(0),position:u,index:1};for(p=0;p<3;p+=1)f[p]=p;for(_=0,P=Math.pow(2,2),v=1;v!=P;)T=R.val&R.position,R.position>>=1,R.position==0&&(R.position=u,R.val=d(R.index++)),_|=(T>0?1:0)*v,v<<=1;switch(_){case 0:for(_=0,P=Math.pow(2,8),v=1;v!=P;)T=R.val&R.position,R.position>>=1,R.position==0&&(R.position=u,R.val=d(R.index++)),_|=(T>0?1:0)*v,v<<=1;y=r(_);break;case 1:for(_=0,P=Math.pow(2,16),v=1;v!=P;)T=R.val&R.position,R.position>>=1,R.position==0&&(R.position=u,R.val=d(R.index++)),_|=(T>0?1:0)*v,v<<=1;y=r(_);break;case 2:return""}for(f[3]=y,q=y,S.push(y);;){if(R.index>l)return"";for(_=0,P=Math.pow(2,g),v=1;v!=P;)T=R.val&R.position,R.position>>=1,R.position==0&&(R.position=u,R.val=d(R.index++)),_|=(T>0?1:0)*v,v<<=1;switch(y=_){case 0:for(_=0,P=Math.pow(2,8),v=1;v!=P;)T=R.val&R.position,R.position>>=1,R.position==0&&(R.position=u,R.val=d(R.index++)),_|=(T>0?1:0)*v,v<<=1;f[b++]=r(_),y=b-1,c--;break;case 1:for(_=0,P=Math.pow(2,16),v=1;v!=P;)T=R.val&R.position,R.position>>=1,R.position==0&&(R.position=u,R.val=d(R.index++)),_|=(T>0?1:0)*v,v<<=1;f[b++]=r(_),y=b-1,c--;break;case 2:return S.join("")}if(c==0&&(c=Math.pow(2,g),g++),f[y])w=f[y];else if(y===b)w=q+q.charAt(0);else return null;S.push(w),f[b++]=q+w.charAt(0),c--,q=w,c==0&&(c=Math.pow(2,g),g++)}}};return s})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Xi)),Xi.exports}var sw=aw();const lw=Eh(sw);function ep(e){return e.replace(/</g,"<").replace(/>/g,">")}const uw=(e,t,r,n,o,i,a)=>{const s=n+r.indent,l=r.colors;return e.map(u=>{const d=t[u];let f=a(d,r,s,o,i);return typeof d!="string"&&(f.indexOf(`
|
|
44
|
+
`)!==-1&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+f+l.value.close}).join("")},cw=3,dw=(e,t,r,n,o,i)=>e.map(a=>{const s=typeof a=="string"?tp(a,t):i(a,t,r,n,o);return s===""&&typeof a=="object"&&a!==null&&a.nodeType!==cw?"":t.spacingOuter+r+s}).join(""),tp=(e,t)=>{const r=t.colors.content;return r.open+ep(e)+r.close},fw=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+ep(e)+"-->"+r.close},pw=(e,t,r,n,o)=>{const i=n.colors.tag;return i.open+"<"+e+(t&&i.close+t+n.spacingOuter+o+i.open)+(r?">"+i.close+r+n.spacingOuter+o+i.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+i.close},mw=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},hw=1,rp=3,np=8,op=11,bw=/^((HTML|SVG)\w*)?Element$/,ip=e=>{const{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},vw=e=>{const t=e.constructor.name,{nodeType:r}=e;return r===hw&&(bw.test(t)||ip(e))||r===rp&&t==="Text"||r===np&&t==="Comment"||r===op&&t==="DocumentFragment"};function gw(e){return e.nodeType===rp}function yw(e){return e.nodeType===np}function Ji(e){return e.nodeType===op}function ww(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||ip(t))&&vw(t)},serialize:(t,r,n,o,i,a)=>{if(gw(t))return tp(t.data,r);if(yw(t))return fw(t.data,r);const s=Ji(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?mw(s,r):pw(s,uw(Ji(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),Ji(t)?{}:Array.from(t.attributes).reduce((l,u)=>(l[u.name]=u.value,l),{}),r,n+r.indent,o,i,a),dw(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,a),r,n)}}}let ap=null,Cs=null,qs=null;try{const e=module&&module.require;Cs=e.call(module,"fs").readFileSync,qs=e.call(module,"@babel/code-frame").codeFrameColumns,ap=e.call(module,"picocolors")}catch{}function Rw(e){const t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[i,a,s]=[o[0],parseInt(o[1],10),parseInt(o[2],10)];let l="";try{l=Cs(i,"utf-8")}catch{return""}const u=qs(l,{start:{line:a,column:s}},{highlightCode:!0,linesBelow:0});return ap.dim(n)+`
|
|
28
45
|
`+u+`
|
|
29
|
-
`}function
|
|
30
|
-
`).slice(1).find(r=>!r.includes("node_modules/"));return
|
|
46
|
+
`}function Ew(){if(!Cs||!qs)return"";const t=new Error().stack.split(`
|
|
47
|
+
`).slice(1).find(r=>!r.includes("node_modules/"));return Rw(t)}const sp=3;function Qi(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function _s(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function xw(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 He(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}}const Cw=()=>{if(typeof process>"u")return!1;let e;try{var t;const 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:qw}=Hf.plugins,_w=1,Pw=8;function Tw(e){return e.nodeType!==Pw&&(e.nodeType!==_w||!e.matches(K().defaultIgnore))}function wi(e,t,r){if(r===void 0&&(r={}),e||(e=_s().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);const{filterNode:o=Tw,...i}=r,a=Hf.format(e,{plugins:[ww(o),qw],printFunctionName:!1,highlight:Cw(),...i});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}const td=function(){const e=Ew();console.log(e?wi(...arguments)+`
|
|
31
48
|
|
|
32
|
-
`+e:
|
|
49
|
+
`+e:wi(...arguments))};let dt={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){const r=wi(t),n=new Error([e,"Ignored nodes: comments, "+dt.defaultIgnore+`
|
|
33
50
|
`+r].filter(Boolean).join(`
|
|
34
51
|
|
|
35
|
-
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function
|
|
36
|
-
`,c=
|
|
37
|
-
`;return""+f+
|
|
52
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function Sw(e){try{return dt._disableExpensiveErrorDiagnostics=!0,e()}finally{dt._disableExpensiveErrorDiagnostics=!1}}function lp(e){typeof e=="function"&&(e=e(dt)),dt={...dt,...e}}function K(){return dt}const Mw=["button","meter","output","progress","select","textarea","input"];function up(e){return Mw.includes(e.nodeName.toLowerCase())?"":e.nodeType===sp?e.textContent:Array.from(e.childNodes).map(t=>up(t)).join("")}function wa(e){let t;return e.tagName.toLowerCase()==="label"?t=up(e):t=e.value||e.textContent,t}function cp(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!Aw(e))return[];const r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function Aw(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function dp(e,t,r){let{selector:n="*"}=r===void 0?{}:r;const o=t.getAttribute("aria-labelledby"),i=o?o.split(" "):[];return i.length?i.map(a=>{const s=e.querySelector('[id="'+a+'"]');return s?{content:wa(s),formControl:null}:{content:"",formControl:null}}):Array.from(cp(t)).map(a=>{const s=wa(a),u=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(d=>d.matches(n))[0];return{content:s,formControl:u}})}function fp(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 Ot(e,t,r,n){if(typeof e!="string")return!1;fp(r);const o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):mp(r,o)}function Ue(e,t,r,n){if(typeof e!="string")return!1;fp(r);const o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?mp(r,o):o===String(r)}function pp(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 vt(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return pp({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 mp(e,t){const 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 Li(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===sp&&!!t.textContent).map(t=>t.textContent).join("")}const Ow=Iw(ve.elementRoles);function hp(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function Ps(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:r=hp}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let o=e;for(;o;){if(r(o))return!0;o=o.parentElement}return!1}function Ts(e){for(const{match:t,roles:r}of Ow)if(t(e))return[...r];return[]}function Iw(e){function t(a){let{name:s,attributes:l}=a;return""+s+l.map(u=>{let{name:d,value:f,constraints:c=[]}=u;const b=c.indexOf("undefined")!==-1,g=c.indexOf("set")!==-1;return typeof f<"u"?"["+d+'="'+f+'"]':b?":not(["+d+"])":g?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}function r(a){let{attributes:s=[]}=a;return s.length}function n(a,s){let{specificity:l}=a,{specificity:u}=s;return u-l}function o(a){let{attributes:s=[]}=a;const l=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");l>=0&&(s=[...s.slice(0,l),...s.slice(l+1)]);const u=t({...a,attributes:s});return d=>l>=0&&d.type!=="text"?!1:d.matches(u)}let i=[];for(const[a,s]of e.entries())i=[...i,{match:o(a),roles:Array.from(s),specificity:r(a)}];return i.sort(n)}function Nw(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return[o,...Array.from(o.children).reduce((i,a)=>[...i,...n(a)],[])]}return n(e).filter(o=>r===!1?Ps(o)===!1:!0).reduce((o,i)=>{let a=[];return i.hasAttribute("role")?a=i.getAttribute("role").split(" ").slice(0,1):a=Ts(i),a.reduce((s,l)=>Array.isArray(s[l])?{...s,[l]:[...s[l],i]}:{...s,[l]:[i]},o)},{})}function kw(e,t){let{hidden:r,includeDescription:n}=t;const o=Nw(e,{hidden:r});return Object.entries(o).filter(i=>{let[a]=i;return a!=="generic"}).map(i=>{let[a,s]=i;const l="-".repeat(50),u=s.map(d=>{const f='Name "'+Es(d,{computedStyleSupportsPseudoElements:K().computedStyleSupportsPseudoElements})+`":
|
|
53
|
+
`,c=wi(d.cloneNode(!1));if(n){const b='Description "'+Zf(d,{computedStyleSupportsPseudoElements:K().computedStyleSupportsPseudoElements})+`":
|
|
54
|
+
`;return""+f+b+c}return""+f+c}).join(`
|
|
38
55
|
|
|
39
|
-
`);return
|
|
56
|
+
`);return a+`:
|
|
40
57
|
|
|
41
58
|
`+u+`
|
|
42
59
|
|
|
43
60
|
`+l}).join(`
|
|
44
|
-
`)}function
|
|
61
|
+
`)}function jw(e){return e.tagName==="OPTION"?e.selected:Go(e,"aria-selected")}function Dw(e){return e.getAttribute("aria-busy")==="true"}function $w(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Go(e,"aria-checked")}function Bw(e){return Go(e,"aria-pressed")}function Lw(e){var t,r;return(t=(r=Go(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function Fw(e){return Go(e,"aria-expanded")}function Go(e,t){const r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function Uw(e){const 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 zw(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function Vw(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function Hw(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function Ww(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}const rd=pp();function Gw(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function nd(e){return new RegExp(Gw(e.toLowerCase()),"i")}function Ye(e,t,r,n){let{variant:o,name:i}=n,a="";const s={},l=[["Role","TestId"].includes(e)?r:nd(r)];i&&(s.name=nd(i)),e==="Role"&&Ps(t)&&(s.hidden=!0,a=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
45
62
|
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
46
|
-
`),Object.keys(s).length>0&&l.push(s);const u=o+"By"+e;return{queryName:e,queryMethod:u,queryArgs:l,variant:o,warning:
|
|
63
|
+
`),Object.keys(s).length>0&&l.push(s);const u=o+"By"+e;return{queryName:e,queryMethod:u,queryArgs:l,variant:o,warning:a,toString(){a&&console.warn(a);let[d,f]=l;return d=typeof d=="string"?"'"+d+"'":d,f=f?", { "+Object.entries(f).map(c=>{let[b,g]=c;return b+": "+g}).join(", ")+" }":"",u+"("+d+f+")"}}}function Xe(e,t,r){return r&&!0}function Ra(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(K().defaultIgnore))return;const i=(n=e.getAttribute("role"))!=null?n:(o=Ts(e))==null?void 0:o[0];if(i!=="generic"&&Xe("Role",r,i))return Ye("Role",e,i,{variant:t,name:Es(e,{computedStyleSupportsPseudoElements:K().computedStyleSupportsPseudoElements})});const a=dp(document,e).map(c=>c.content).join(" ");if(Xe("LabelText",r,a))return Ye("LabelText",e,a,{variant:t});const s=e.getAttribute("placeholder");if(Xe("PlaceholderText",r,s))return Ye("PlaceholderText",e,s,{variant:t});const l=rd(Li(e));if(Xe("Text",r,l))return Ye("Text",e,l,{variant:t});if(Xe("DisplayValue",r,e.value))return Ye("DisplayValue",e,rd(e.value),{variant:t});const u=e.getAttribute("alt");if(Xe("AltText",r,u))return Ye("AltText",e,u,{variant:t});const d=e.getAttribute("title");if(Xe("Title",r,d))return Ye("Title",e,d,{variant:t});const f=e.getAttribute(K().testIdAttribute);if(Xe("TestId",r,f))return Ye("TestId",e,f,{variant:t})}function ei(e,t){e.stack=t.stack.replace(t.message,e.message)}function Kw(e,t){let{container:r=_s(),timeout:n=K().asyncUtilTimeout,showOriginalStackTrace:o=K().showOriginalStackTrace,stackTraceError:i,interval:a=50,onTimeout:s=u=>(Object.defineProperty(u,"message",{value:K().getElementError(u.message,r).message}),u),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(u,d)=>{let f,c,b,g=!1,w="idle";const S=setTimeout(P,n),p=Qi();if(p){const{unstable_advanceTimersWrapper:v}=K();for(T();!g;){if(!Qi()){const y=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||ei(y,i),d(y);return}if(await v(async()=>{jest.advanceTimersByTime(a)}),g)break;T()}}else{try{He(r)}catch(y){d(y);return}c=setInterval(_,a);const{MutationObserver:v}=xw(r);b=new v(_),b.observe(r,l),T()}function q(v,y){g=!0,clearTimeout(S),p||(clearInterval(c),b.disconnect()),v?d(v):u(y)}function _(){if(Qi()){const v=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||ei(v,i),d(v)}else return T()}function T(){if(w!=="pending")try{const v=Sw(e);typeof v?.then=="function"?(w="pending",v.then(y=>{w="resolved",q(null,y)},y=>{w="rejected",f=y})):q(null,v)}catch(v){f=v}}function P(){let v;f?(v=f,!o&&v.name==="TestingLibraryElementError"&&ei(v,i)):(v=new Error("Timed out in waitFor."),o||ei(v,i)),q(s(v),null)}})}function Yw(e,t){const r=new Error("STACK_TRACE_MESSAGE");return K().asyncWrapper(()=>Kw(e,{stackTraceError:r,...t}))}function bp(e,t){return K().getElementError(e,t)}function Xw(e,t){return bp(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Fi(e,t,r,n){let{exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=n===void 0?{}:n;const l=o?Ue:Ot,u=vt({collapseWhitespace:i,trim:a,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>l(d.getAttribute(e),d,r,u))}function Ri(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const a=e(r,...o);if(a.length>1){const s=a.map(l=>bp(null,l).message).join(`
|
|
47
64
|
|
|
48
|
-
`);throw
|
|
65
|
+
`);throw Xw(t(r,...o)+`
|
|
49
66
|
|
|
50
67
|
Here are the matching elements:
|
|
51
68
|
|
|
52
|
-
`+s,r)}return
|
|
69
|
+
`+s,r)}return a[0]||null}}function vp(e,t){return K().getElementError(`A better query is available, try this:
|
|
53
70
|
`+e.toString()+`
|
|
54
|
-
`,t)}function
|
|
71
|
+
`,t)}function Jw(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const a=e(r,...o);if(!a.length)throw K().getElementError(t(r,...o),r);return a}}function Ei(e){return(t,r,n,o)=>Yw(()=>e(t,r,n),{container:t,...o})}const Rt=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];const s=e(n,...i),[{suggest:l=K().throwSuggestions}={}]=i.slice(-1);if(s&&l){const u=Ra(s,r);if(u&&!t.endsWith(u.queryName))throw vp(u.toString(),n)}return s},ye=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];const s=e(n,...i),[{suggest:l=K().throwSuggestions}={}]=i.slice(-1);if(s.length&&l){const u=[...new Set(s.map(d=>{var f;return(f=Ra(d,r))==null?void 0:f.toString()}))];if(u.length===1&&!t.endsWith(Ra(s[0],r).queryName))throw vp(u[0],n)}return s};function gt(e,t,r){const n=Rt(Ri(e,t),e.name,"query"),o=Jw(e,r),i=Ri(o,t),a=Rt(i,e.name,"get"),s=ye(o,e.name.replace("query","get"),"getAll"),l=Ei(ye(o,e.name,"findAll")),u=Ei(Rt(i,e.name,"find"));return[n,s,a,l,u]}function Qw(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:wa(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}const Zw=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:a}=r===void 0?{}:r;const s=n?Ue:Ot,l=vt({collapseWhitespace:i,trim:o,normalizer:a});return Qw(e).filter(d=>{let{node:f,textToMatch:c}=d;return s(c,f,t,l)}).map(d=>{let{node:f}=d;return f})},Do=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=r===void 0?{}:r;He(e);const l=o?Ue:Ot,u=vt({collapseWhitespace:i,trim:a,normalizer:s}),d=Array.from(e.querySelectorAll("*")).filter(f=>cp(f).length||f.hasAttribute("aria-labelledby")).reduce((f,c)=>{const b=dp(e,c,{selector:n});b.filter(w=>!!w.formControl).forEach(w=>{l(w.content,w.formControl,t,u)&&w.formControl&&f.push(w.formControl)});const g=b.filter(w=>!!w.content).map(w=>w.content);return l(g.join(" "),c,t,u)&&f.push(c),g.length>1&&g.forEach((w,S)=>{l(w,c,t,u)&&f.push(c);const p=[...g];p.splice(S,1),p.length>1&&l(p.join(" "),c,t,u)&&f.push(c)}),f},[]).concat(Fi("aria-label",e,t,{exact:o,normalizer:u}));return Array.from(new Set(d)).filter(f=>f.matches(n))},ht=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];const i=Do(e,t,...n);if(!i.length){const a=Zw(e,t,...n);if(a.length){const s=a.map(l=>eR(e,l)).filter(l=>!!l);throw s.length?K().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(`
|
|
55
72
|
|
|
56
|
-
`),e):K().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 K().getElementError("Unable to find a label with the text of: "+t,e)}return
|
|
73
|
+
`),e):K().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 K().getElementError("Unable to find a label with the text of: "+t,e)}return i};function eR(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}const gp=(e,t)=>"Found multiple elements with the text of: "+t,tR=Rt(Ri(Do,gp),Do.name,"query"),yp=Ri(ht,gp),rR=Ei(ye(ht,ht.name,"findAll")),nR=Ei(Rt(yp,ht.name,"find")),oR=ye(ht,ht.name,"getAll"),iR=Rt(yp,ht.name,"get"),aR=ye(Do,Do.name,"queryAll"),Ea=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return He(t[0]),Fi("placeholder",...t)},sR=(e,t)=>"Found multiple elements with the placeholder text of: "+t,lR=(e,t)=>"Unable to find an element with the placeholder text of: "+t,uR=ye(Ea,Ea.name,"queryAll"),[cR,dR,fR,pR,mR]=gt(Ea,sR,lR),xa=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,ignore:s=K().defaultIgnore,normalizer:l}=r===void 0?{}:r;He(e);const u=o?Ue:Ot,d=vt({collapseWhitespace:i,trim:a,normalizer:l});let f=[];return typeof e.matches=="function"&&e.matches(n)&&(f=[e]),[...f,...Array.from(e.querySelectorAll(n))].filter(c=>!s||!c.matches(s)).filter(c=>u(Li(c),c,t,d))},hR=(e,t)=>"Found multiple elements with the text: "+t,bR=function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:o,normalizer:i,selector:a}=r,l=vt({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),u=l!==t.toString(),d=(a??"*")!=="*";return"Unable to find an element with the text: "+(u?l+" (normalized from '"+t+"')":t)+(d?", which matches selector '"+a+"'":"")+". 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."},vR=ye(xa,xa.name,"queryAll"),[gR,yR,wR,RR,ER]=gt(xa,hR,bR),Ca=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;He(e);const s=n?Ue:Ot,l=vt({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(f=>f.selected).some(f=>s(Li(f),f,t,l)):s(u.value,u,t,l))},xR=(e,t)=>"Found multiple elements with the display value: "+t+".",CR=(e,t)=>"Unable to find an element with the display value: "+t+".",qR=ye(Ca,Ca.name,"queryAll"),[_R,PR,TR,SR,MR]=gt(Ca,xR,CR),AR=/^(img|input|area|.+-.+)$/i,qa=function(e,t,r){return r===void 0&&(r={}),He(e),Fi("alt",e,t,r).filter(n=>AR.test(n.tagName))},OR=(e,t)=>"Found multiple elements with the alt text: "+t,IR=(e,t)=>"Unable to find an element with the alt text: "+t,NR=ye(qa,qa.name,"queryAll"),[kR,jR,DR,$R,BR]=gt(qa,OR,IR),LR=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},_a=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;He(e);const s=n?Ue:Ot,l=vt({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>s(u.getAttribute("title"),u,t,l)||LR(u)&&s(Li(u),u,t,l))},FR=(e,t)=>"Found multiple elements with the title: "+t+".",UR=(e,t)=>"Unable to find an element with the title: "+t+".",zR=ye(_a,_a.name,"queryAll"),[VR,HR,WR,GR,KR]=gt(_a,FR,UR),Pa=function(e,t,r){let{hidden:n=K().defaultHidden,name:o,description:i,queryFallbacks:a=!1,selected:s,busy:l,checked:u,pressed:d,current:f,level:c,expanded:b,value:{now:g,min:w,max:S,text:p}={}}=r===void 0?{}:r;if(He(e),s!==void 0){var q;if(((q=ve.roles.get(t))==null?void 0:q.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var _;if(((_=ve.roles.get(t))==null?void 0:_.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var T;if(((T=ve.roles.get(t))==null?void 0:T.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(d!==void 0){var P;if(((P=ve.roles.get(t))==null?void 0:P.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(f!==void 0){var v;if(((v=ve.roles.get(t))==null?void 0:v.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(c!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(g!==void 0){var y;if(((y=ve.roles.get(t))==null?void 0:y.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(S!==void 0){var R;if(((R=ve.roles.get(t))==null?void 0:R.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(w!==void 0){var A;if(((A=ve.roles.get(t))==null?void 0:A.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(p!==void 0){var N;if(((N=ve.roles.get(t))==null?void 0:N.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(b!==void 0){var D;if(((D=ve.roles.get(t))==null?void 0:D.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const $=new WeakMap;function M(k){return $.has(k)||$.set(k,hp(k)),$.get(k)}return Array.from(e.querySelectorAll(YR(t))).filter(k=>{if(k.hasAttribute("role")){const Y=k.getAttribute("role");if(a)return Y.split(" ").filter(Boolean).some(Re=>Re===t);const[ue]=Y.split(" ");return ue===t}return Ts(k).some(Y=>Y===t)}).filter(k=>{if(s!==void 0)return s===jw(k);if(l!==void 0)return l===Dw(k);if(u!==void 0)return u===$w(k);if(d!==void 0)return d===Bw(k);if(f!==void 0)return f===Lw(k);if(b!==void 0)return b===Fw(k);if(c!==void 0)return c===Uw(k);if(g!==void 0||S!==void 0||w!==void 0||p!==void 0){let Z=!0;if(g!==void 0&&Z&&(Z=g===zw(k)),S!==void 0&&Z&&(Z=S===Vw(k)),w!==void 0&&Z&&(Z=w===Hw(k)),p!==void 0){var F;Z&&(Z=Ue((F=Ww(k))!=null?F:null,k,p,Y=>Y))}return Z}return!0}).filter(k=>o===void 0?!0:Ue(Es(k,{computedStyleSupportsPseudoElements:K().computedStyleSupportsPseudoElements}),k,o,F=>F)).filter(k=>i===void 0?!0:Ue(Zf(k,{computedStyleSupportsPseudoElements:K().computedStyleSupportsPseudoElements}),k,i,F=>F)).filter(k=>n===!1?Ps(k,{isSubtreeInaccessible:M})===!1:!0)};function YR(e){var t;const r='*[role~="'+e+'"]',n=(t=ve.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(i=>{let{name:a}=i;return a}));return[r].concat(Array.from(o)).join(",")}const wp=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},XR=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+wp(n)},JR=function(e,t,r){let{hidden:n=K().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(K()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+wp(o);let a="";Array.from(e.children).forEach(d=>{a+=kw(d,{hidden:n,includeDescription:i!==void 0})});let s;a.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=(`
|
|
57
74
|
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
58
75
|
|
|
59
|
-
`+
|
|
76
|
+
`+a.replace(/\n/g,`
|
|
60
77
|
`).replace(/\n\s\s\n/g,`
|
|
61
78
|
|
|
62
79
|
`)+`
|
|
63
|
-
`).trim();let l="";o===void 0?l="":typeof o=="string"?l=' and name "'+o+'"':l=" and name `"+o+"`";let u="";return
|
|
80
|
+
`).trim();let l="";o===void 0?l="":typeof o=="string"?l=' and name "'+o+'"':l=" and name `"+o+"`";let u="";return i===void 0?u="":typeof i=="string"?u=' and description "'+i+'"':u=" and description `"+i+"`",(`
|
|
64
81
|
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+u+`
|
|
65
82
|
|
|
66
|
-
`+s).trim()},
|
|
67
|
-
`)}function
|
|
83
|
+
`+s).trim()},QR=ye(Pa,Pa.name,"queryAll"),[ZR,eE,tE,rE,nE]=gt(Pa,XR,JR),Ss=()=>K().testIdAttribute,Ta=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return He(t[0]),Fi(Ss(),...t)},oE=(e,t)=>"Found multiple elements by: ["+Ss()+'="'+t+'"]',iE=(e,t)=>"Unable to find an element by: ["+Ss()+'="'+t+'"]',aE=ye(Ta,Ta.name,"queryAll"),[sE,lE,uE,cE,dE]=gt(Ta,oE,iE);var Sa=Object.freeze({__proto__:null,queryAllByLabelText:aR,queryByLabelText:tR,getAllByLabelText:oR,getByLabelText:iR,findAllByLabelText:rR,findByLabelText:nR,queryByPlaceholderText:cR,queryAllByPlaceholderText:uR,getByPlaceholderText:fR,getAllByPlaceholderText:dR,findAllByPlaceholderText:pR,findByPlaceholderText:mR,queryByText:gR,queryAllByText:vR,getByText:wR,getAllByText:yR,findAllByText:RR,findByText:ER,queryByDisplayValue:_R,queryAllByDisplayValue:qR,getByDisplayValue:TR,getAllByDisplayValue:PR,findAllByDisplayValue:SR,findByDisplayValue:MR,queryByAltText:kR,queryAllByAltText:NR,getByAltText:DR,getAllByAltText:jR,findAllByAltText:$R,findByAltText:BR,queryByTitle:VR,queryAllByTitle:zR,getByTitle:WR,getAllByTitle:HR,findAllByTitle:GR,findByTitle:KR,queryByRole:ZR,queryAllByRole:QR,getAllByRole:eE,getByRole:tE,findAllByRole:rE,findByRole:nE,queryByTestId:sE,queryAllByTestId:aE,getByTestId:uE,getAllByTestId:lE,findAllByTestId:cE,findByTestId:dE});function Rp(e,t,r){return t===void 0&&(t=Sa),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{const i=t[o];return n[o]=i.bind(null,e),n},r)}const od={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}}},fE={doubleClick:"dblClick"};Object.keys(od).forEach(e=>{const{EventType:t,defaultInit:r}=od[e];e.toLowerCase()});Object.keys(fE).forEach(e=>{});function pE(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
84
|
+
`)}function mE(e){return lw.compressToEncodedURIComponent(pE(e))}function hE(e){return"https://testing-playground.com/#markup="+mE(e)}const bE=(e,t,r)=>Array.isArray(e)?e.forEach(n=>td(n,t,r)):td(e,t,r),vE=function(e){if(e===void 0&&(e=_s().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}const t=hE(e.innerHTML);return console.log(`Open this URL in your browser
|
|
68
85
|
|
|
69
|
-
`+t),t},td={debug:KR,logTestingPlaygroundURL:YR},La=typeof document<"u"&&document.body?mp(document.body,qi,td):Object.keys(qi).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),td);function qt(e,t){return K().eventWrapper(e)}function et(e){const t=Vh(e,bs),r=zo(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(qt(t?()=>t.focus():()=>r?.blur()),Gh(t??e.ownerDocument.body))}function XR(e){!bs(e)||!(zo(e.ownerDocument)===e)||qt(()=>e.blur())}const tt={};tt.click=(e,t,r)=>{const n=t.closest("button,input,label,select,textarea"),o=n&&z(n,"label")&&n.control;if(o&&o!==t)return()=>{bs(o)&&(et(o),r.dispatchEvent(o,zh(e)))};if(z(t,"input",{type:"file"}))return()=>{XR(t),t.dispatchEvent(new(ye(t)).Event("fileDialog")),et(t)}};const _t=Symbol("Displayed value in UI"),Be=Symbol("Displayed selection in UI"),Ra=Symbol("Initial value to compare on blur");function JR(e){return typeof e=="object"&&_t in e}function QR(e){return!!e&&typeof e=="object"&&Be in e}function ZR(e,t){e[Ra]===void 0&&(e[Ra]=e.value),e[_t]=t,e.value=Object.assign(new String(t),{[_t]:!0})}function Te(e){return e[_t]===void 0?e.value:String(e[_t])}function _s(e){e[_t]=void 0}function hp(e){e[Ra]=void 0}function eE(e){return e[Ra]}function tE(e,t){e[Be]=t}function Mt(e,{focusOffset:t,anchorOffset:r=t},n="replace"){const o=Te(e).length,a=f=>Math.max(0,Math.min(o,f)),i=n==="replace"||e[Be]===void 0?a(r):e[Be].anchorOffset,s=a(t),l=Math.min(i,s),u=Math.max(i,s);if(e[Be]={anchorOffset:i,focusOffset:s},e.selectionStart===l&&e.selectionEnd===u)return;const d=Object.assign(new Number(l),{[Be]:!0});try{e.setSelectionRange(d,u)}catch{}}function jo(e){var t,r,n;const o=(n=e[Be])!==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 rE(e){return!!e[Be]}function aa(e){e[Be]=void 0}const Ea=globalThis.parseInt;function nE(e){const t=e.replace(/\D/g,"");if(t.length<2)return e;const r=Ea(t[0],10),n=Ea(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,rd(t,o)}return e.length===2?e:rd(t,2)}function rd(e,t){const r=e.slice(0,t),n=Math.min(Ea(r,10),23),o=e.slice(t),a=Ea(o,10),i=Math.min(a,59);return`${n.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function bp(e,t){const r=e.cloneNode();return r.value=t,r.value===t}var vp=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(vp||{});function oE(e){var t;const r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function aE(e){return z(e,"textarea")||z(e,"input")&&e.type in vp}function gp(e,t,r,n){if(ia(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};const o=nd(e,t,r);if(o){if(ia(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(z(o,"br")){const a=nd(o,void 0,r);return a?ia(a)?{node:a,offset:r>0?0:a.nodeValue.length}:r<0&&z(a,"br")?{node:o.parentNode,offset:Zo(o)}:{node:a.parentNode,offset:Zo(a)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:Zo(o)}:void 0}else return{node:o.parentNode,offset:Zo(o)+(r>0?1:0)}}}function nd(e,t,r){const n=Number(t)+(r<0?-1:0);return t!==void 0&&Ps(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),sE(e,r===1?"next":"previous",iE)}function iE(e){if(ia(e))return!0;if(Ps(e)){if(z(e,["input","textarea"]))return e.type!=="hidden";if(z(e,"br"))return!0}return!1}function Zo(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Ps(e){return e.nodeType===1}function ia(e){return e.nodeType===3}function sE(e,t,r){for(;;){var n;const o=e[`${t}Sibling`];if(o){if(e=lE(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Ps(e.parentNode)||!pt(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function lE(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}const Do=Symbol("Track programmatic changes for React workaround");function uE(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&ye(e).REACT_VERSION===17}function cE(e){uE(e)&&(e[Do]={previousValue:String(e.value),tracked:[]})}function dE(e,t){var r,n;(n=e[Do])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Do]||(_s(e),Mt(e,{focusOffset:t.length}))}function fE(e,t){var r;const n=e[Do];if(e[Do]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;const o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||_s(e),rE(e)&&Mt(e,{focusOffset:o?t:e.value.length})}function yp(e){const t=pE(e);if(t&&Pe(t))return{type:"input",selection:jo(t)};const r=t?.ownerDocument.getSelection();return{type:Oo(e)&&r?.anchorNode&&Oo(r.anchorNode)?"contenteditable":"default",selection:r}}function pE(e){return e.nodeType===1?e:e.parentElement}function mE(e){const t=yp(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 ht({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,a;if(yp(e).type==="input")return Mt(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 wp(e){return z(e,"input")&&["date","time"].includes(e.type)}function Pt(e,t,r,n="insertText"){const o=mE(t);o&&(!wp(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?hE(e,t,o,r,n):bE(e,t,o,r,n)))}function hE(e,t,r,n,o){let a=!1;if(!r.collapsed)a=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){const i=gp(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(i){a=!0;const 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){const i=r.endOffset;r.endContainer.insertData(i,n),r.setStart(r.endContainer,i+n.length),r.setEnd(r.endContainer,i+n.length)}else{const 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 bE(e,t,r,n,o){let a=n;if(aE(t)){const u=oE(t);if(u!==void 0&&n.length>0){const d=u-t.value.length;if(d>0)a=n.substring(0,d);else return}}const{newValue:i,newOffset:s,oldValue:l}=vE(a,t,r,o);i===l&&s===r.startOffset&&s===r.endOffset||z(t,"input",{type:"number"})&&!gE(i)||(ZR(t,i),ht({focusNode:t,anchorOffset:s,focusOffset:s}),wp(t)?bp(t,i)&&(od(e,t,s,{}),e.dispatchUIEvent(t,"change"),hp(t)):od(e,t,s,{data:n,inputType:o}))}function vE(e,t,{startOffset:r,endOffset:n},o){const a=Te(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),u=a.substring(l,a.length);let d=`${s}${e}${u}`,f=i+e.length;if(z(t,"input",{type:"time"})){const c=nE(d);c!==""&&bp(t,c)&&(d=c,f=c.length)}return{oldValue:a,newValue:d,newOffset:f}}function od(e,t,r,n){e.dispatchUIEvent(t,"input",n),fE(t,r)}function gE(e){var t,r;const 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]))}tt.cut=(e,t,r)=>()=>{Ct(t)&&Pt(r,t,"","deleteByCut")};function yE(e){return e?pt(e)?e.textContent:Te(e):null}function wE(e){const t=ye(e);for(let r=e;r?.ownerDocument;r=r.parentElement){const{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function RE(e,t){const r=e.ownerDocument,n=r.querySelectorAll(Mf),o=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||Fe(l)));Number(e.getAttribute("tabindex"))>=0&&o.sort((l,u)=>{const d=Number(l.getAttribute("tabindex")),f=Number(u.getAttribute("tabindex"));return d===f?0:d===0?1:f===0?-1:d-f});const a={};let i=[r.body];const s=z(e,"input",{type:"radio"})?e.name:void 0;o.forEach(l=>{const u=l;if(z(u,"input",{type:"radio"})&&u.name){if(u===e){i.push(u);return}else if(u.name===s)return;if(u.checked){i=i.filter(d=>!z(d,"input",{type:"radio",name:u.name})),i.push(u),a[u.name]=u;return}if(typeof a[u.name]<"u")return}i.push(u)});for(let l=i.findIndex(u=>u===e);;)if(l+=t?-1:1,l===i.length?l=0:l===-1&&(l=i.length-1),i[l]===e||i[l]===r.body||wE(i[l]))return i[l]}function ad(e,t){if(Pe(e)){const r=jo(e);ht({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{const r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){const n=gp(r.focusNode,r.focusOffset,t);n&&ht({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function Rp(e){if(Pe(e))return ht({focusNode:e,anchorOffset:0,focusOffset:Te(e).length});var t;const r=(t=Oo(e))!==null&&t!==void 0?t:e.ownerDocument.body;ht({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function EE(e){if(Pe(e))return jo(e).startOffset===0&&jo(e).endOffset===Te(e).length;var t;const r=(t=Oo(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 Co(e,t,r){var n;if(Pe(e))return ht({focusNode:e,anchorOffset:t,focusOffset:r});if(pt(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return ht({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function ea(e,t,r){const n=ye(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;if(!Fe(o[a])){et(o[a]),e.dispatchUIEvent(o[a],"click");return}}}tt.keydown=(e,t,r)=>{var n,o;return(o=(n=id[e.key])===null||n===void 0?void 0:n.call(id,e,t,r))!==null&&o!==void 0?o:xE(e,t,r)};const id={ArrowDown:(e,t,r)=>{if(z(t,"input",{type:"radio"}))return()=>ea(r,t,1)},ArrowLeft:(e,t,r)=>z(t,"input",{type:"radio"})?()=>ea(r,t,-1):()=>ad(t,-1),ArrowRight:(e,t,r)=>z(t,"input",{type:"radio"})?()=>ea(r,t,1):()=>ad(t,1),ArrowUp:(e,t,r)=>{if(z(t,"input",{type:"radio"}))return()=>ea(r,t,-1)},Backspace:(e,t,r)=>{if(Ct(t))return()=>{Pt(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(Ct(t))return()=>{Pt(r,t,"","deleteContentForward")}},End:(e,t)=>{if(z(t,["input","textarea"])||pt(t))return()=>{var r,n;const o=(n=(r=yE(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Co(t,o,o)}},Home:(e,t)=>{if(z(t,["input","textarea"])||pt(t))return()=>{Co(t,0,0)}},PageDown:(e,t)=>{if(z(t,["input"]))return()=>{const r=Te(t).length;Co(t,r,r)}},PageUp:(e,t)=>{if(z(t,["input"]))return()=>{Co(t,0,0)}},Tab:(e,t,r)=>()=>{const n=RE(t,r.system.keyboard.modifiers.Shift);et(n),Pe(n)&&Mt(n,{anchorOffset:0,focusOffset:n.value.length})}},xE=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Rp(t)};tt.keypress=(e,t,r)=>{if(e.key==="Enter"){if(z(t,"button")||z(t,"input")&&CE.includes(t.type)||z(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(z(t,"input")){const n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&qE.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Ct(t)){const n=e.key==="Enter"?pt(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
70
|
-
`:e.key;return()=>Pt(r,t,o,n)}};const CE=["button","color","file","image","reset","submit"],qE=["email","month","password","search","tel","text","url","week"];tt.keyup=(e,t,r)=>{var n;return(n=sd[e.key])===null||n===void 0?void 0:n.call(sd,e,t,r)};const sd={" ":(e,t,r)=>{if(If(t))return()=>r.dispatchUIEvent(t,"click")}};tt.paste=(e,t,r)=>{if(Ct(t))return()=>{var n;const o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&Pt(r,t,o,"insertFromPaste")}};const Ep={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,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}},focus:{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}},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 xp(e){return Ep[e].EventType}const _E=["MouseEvent","PointerEvent"];function PE(e){return _E.includes(xp(e))}function TE(e){return xp(e)==="KeyboardEvent"}const SE={ClipboardEvent:[ME],Event:[],FocusEvent:[Eo,OE],InputEvent:[Eo,IE],MouseEvent:[Eo,Ja,ld],PointerEvent:[Eo,Ja,ld,kE],KeyboardEvent:[Eo,Ja,NE]};function Cp(e,t,r){const n=ye(t),{EventType:o,defaultInit:a}=Ep[e],i=new(AE(n))[o](e,a);return SE[o].forEach(s=>s(i,r??{})),i}function AE(e){var t;const r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;const o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var a;const i=(a=e.ClipboardEvent)!==null&&a!==void 0?a:class extends r{};var s;const l=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var u;const d=(u=e.ProgressEvent)!==null&&u!==void 0?u:class extends r{};var f;const c=(f=e.TransitionEvent)!==null&&f!==void 0?f:class extends r{};var v;const m=(v=e.UIEvent)!==null&&v!==void 0?v:class extends r{};var g;const T=(g=e.CompositionEvent)!==null&&g!==void 0?g:class extends m{};var p;const q=(p=e.FocusEvent)!==null&&p!==void 0?p:class extends m{};var _;const S=(_=e.InputEvent)!==null&&_!==void 0?_:class extends m{};var P;const y=(P=e.KeyboardEvent)!==null&&P!==void 0?P:class extends m{};var w;const E=(w=e.MouseEvent)!==null&&w!==void 0?w:class extends m{};var M;const N=(M=e.DragEvent)!==null&&M!==void 0?M:class extends E{};var D;const $=(D=e.PointerEvent)!==null&&D!==void 0?D:class extends E{};var A;const k=(A=e.TouchEvent)!==null&&A!==void 0?A:class extends m{};return{Event:r,AnimationEvent:o,ClipboardEvent:i,PopStateEvent:l,ProgressEvent:d,TransitionEvent:c,UIEvent:m,CompositionEvent:T,FocusEvent:q,InputEvent:S,KeyboardEvent:y,MouseEvent:E,DragEvent:N,PointerEvent:$,TouchEvent:k}}function rt(e,t){for(const[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function te(e){return Number(e??0)}function ME(e,{clipboardData:t}){rt(e,{clipboardData:t})}function OE(e,{relatedTarget:t}){rt(e,{relatedTarget:t})}function IE(e,{data:t,inputType:r,isComposing:n}){rt(e,{data:t,isComposing:!!n,inputType:String(r)})}function Eo(e,{view:t,detail:r}){rt(e,{view:t,detail:te(r??0)})}function Ja(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:a,modifierCapsLock:i,modifierFn:s,modifierFnLock:l,modifierNumLock:u,modifierScrollLock:d,modifierSymbol:f,modifierSymbolLock:c}){rt(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(v){return!!{Alt:t,AltGraph:a,CapsLock:i,Control:r,Fn:s,FnLock:l,Meta:n,NumLock:u,ScrollLock:d,Shift:o,Symbol:f,SymbolLock:c}[v]}})}function NE(e,{key:t,code:r,location:n,repeat:o,isComposing:a,charCode:i}){rt(e,{key:String(t),code:String(r),location:te(n),repeat:!!o,isComposing:!!a,charCode:i})}function ld(e,{x:t,y:r,screenX:n,screenY:o,clientX:a=t,clientY:i=r,button:s,buttons:l,relatedTarget:u,offsetX:d,offsetY:f,pageX:c,pageY:v}){rt(e,{screenX:te(n),screenY:te(o),clientX:te(a),x:te(a),clientY:te(i),y:te(i),button:te(s),buttons:te(l),relatedTarget:u,offsetX:te(d),offsetY:te(f),pageX:te(c),pageY:te(v)})}function kE(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:a,tiltX:i,tiltY:s,twist:l,pointerType:u,isPrimary:d}){rt(e,{pointerId:te(t),width:te(r??1),height:te(n??1),pressure:te(o),tangentialPressure:te(a),tiltX:te(i),tiltY:te(s),twist:te(l),pointerType:String(u),isPrimary:!!d})}function jE(e,t,r,n=!1){(PE(t)||TE(t))&&(r={...r,...this.system.getUIEventModifiers()});const o=Cp(t,e,r);return qp.call(this,e,o,n)}function qp(e,t,r=!1){var n;const o=t.type,a=r?()=>{}:(n=tt[o])===null||n===void 0?void 0:n.call(tt,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}}),qt(()=>e.dispatchEvent(t)),i||a(),!i}return qt(()=>e.dispatchEvent(t))}function lt(e,t,r){const n=Cp(t,e,r);qt(()=>e.dispatchEvent(n))}const ud=Symbol("patched focus/blur methods");function _p(e){if(e.prototype[ud])return;const{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>o},blur:{configurable:!0,get:()=>a},[ud]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function o(i){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,i);const s=cd(this.ownerDocument);if(s===this)return;const l=Symbol("focus call");n=l,s&&(r.call(s),lt(s,"blur",{relatedTarget:this}),lt(s,"focusout",{relatedTarget:n===l?this:null})),n===l&&(t.call(this,i),lt(this,"focus",{relatedTarget:s})),n===l&<(this,"focusin",{relatedTarget:s})}function a(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);const i=cd(this.ownerDocument);if(i!==this)return;n=Symbol("blur call"),r.call(this),lt(i,"blur",{relatedTarget:null}),lt(i,"focusout",{relatedTarget:null})}}function cd(e){const t=zo(e);return t?.tagName==="BODY"?null:t}const Qa=Symbol("Interceptor for programmatical calls");function gt(e,t,r){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),a=n?.set?"set":"value";if(typeof n?.[a]!="function"||n[a][Qa])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function i(...s){const{applyNative:l=!1,realArgs:u,then:d}=r.call(this,...s),f=(!l&&o||n)[a];a==="set"?f.call(this,u):f.call(this,...u),d?.()}i[Qa]=Qa,Object.defineProperty(e,t,{...o??n,[a]:i})}function DE(e){gt(e,"value",function(r){const n=JR(r);return n&&cE(this),{applyNative:!!n,realArgs:$E(this,r),then:n?void 0:()=>dE(this,String(r))}})}function $E(e,t){return z(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function BE(e){gt(e,"setSelectionRange",function(r,...n){const o=QR(r);return{applyNative:!!o,realArgs:[Number(r),...n],then:()=>o?void 0:aa(e)}}),gt(e,"selectionStart",function(r){return{realArgs:r,then:()=>aa(e)}}),gt(e,"selectionEnd",function(r){return{realArgs:r,then:()=>aa(e)}}),gt(e,"select",function(){return{realArgs:[],then:()=>tE(e,{anchorOffset:0,focusOffset:Te(e).length})}})}function LE(e){gt(e,"setRangeText",function(...r){return{realArgs:r,then:()=>{_s(e),aa(e)}}})}const wt=Symbol("Node prepared with document state workarounds");function Pp(e){e[wt]||(e.addEventListener("focus",t=>{const r=t.target;dd(r)},{capture:!0,passive:!0}),e.activeElement&&dd(e.activeElement),e.addEventListener("blur",t=>{const r=t.target,n=eE(r);n!==void 0&&(r.value!==n&<(r,"change"),hp(r))},{capture:!0,passive:!0}),e[wt]=wt)}function dd(e){e[wt]||(z(e,["input","textarea"])&&(DE(e),BE(e),LE(e)),e[wt]=wt)}function FE(e){return UE(e)?e:e.ownerDocument}function UE(e){return e.nodeType===9}var me=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function qo(e,t){e.levelRefs[t]={}}function ta(e,t){return e.levelRefs[t]}function Tt(e){const t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var sa=(function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e})({});function it(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qe=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({});const zE=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function fd(e){return zE.includes(e)}const VE=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function pd(e){return VE.includes(e)}class HE{isKeyPressed(t){return this.pressed.has(String(t.code))}getPressedKeys(){return this.pressed.values().map(t=>t.keyDef)}async keydown(t,r){const n=String(r.key),o=String(r.code),a=Ha(t.config.document);this.setKeydownTarget(a),this.pressed.add(o,r),fd(n)&&(this.modifiers[n]=!0);const i=t.dispatchUIEvent(a,"keydown",{key:n,code:o});pd(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),i&&this.pressed.setUnprevented(o),i&&this.hasKeyPress(n)&&t.dispatchUIEvent(Ha(t.config.document),"keypress",{key:n,code:o,charCode:r.key==="Enter"?13:String(r.key).charCodeAt(0)})}async keyup(t,r){const n=String(r.key),o=String(r.code),a=this.pressed.isUnprevented(o);this.pressed.delete(o),fd(n)&&!this.pressed.values().find(i=>i.keyDef.key===n)&&(this.modifiers[n]=!1),t.dispatchUIEvent(Ha(t.config.document),"keyup",{key:n,code:o},!a),pd(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(t){t!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=t}hasKeyPress(t){return(t.length===1||t==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(t){it(this,"system",void 0),it(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}),it(this,"pressed",new class{add(r,n){var o,a,i;(i=(o=this.registry)[a=r])!==null&&i!==void 0||(o[a]={keyDef:n,unpreventedDefault:!1})}has(r){return!!this.registry[r]}setUnprevented(r){const n=this.registry[r];n&&(n.unpreventedDefault=!0)}isUnprevented(r){var n;return!!(!((n=this.registry[r])===null||n===void 0)&&n.unpreventedDefault)}delete(r){delete this.registry[r]}values(){return Object.values(this.registry)}constructor(){it(this,"registry",{})}}),it(this,"carryChar",""),it(this,"lastKeydownTarget",void 0),it(this,"modifierLockStart",{}),this.system=t}}const WE=[..."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:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:qe.LEFT},{code:"AltRight",key:"Alt",location:qe.RIGHT},{code:"ShiftLeft",key:"Shift",location:qe.LEFT},{code:"ShiftRight",key:"Shift",location:qe.RIGHT},{code:"ControlLeft",key:"Control",location:qe.LEFT},{code:"ControlRight",key:"Control",location:qe.RIGHT},{code:"MetaLeft",key:"Meta",location:qe.LEFT},{code:"MetaRight",key:"Meta",location:qe.RIGHT},{code:"OSLeft",key:"OS",location:qe.LEFT},{code:"OSRight",key:"OS",location:qe.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{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"}],GE=[{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 KE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Tp{getButtons(){let t=0;for(const r of Object.keys(this.pressed))t|=2**Number(r);return t}down(t){const r=_i(t.button);if(r in this.pressed){this.pressed[r].push(t);return}return this.pressed[r]=[t],r}up(t){const r=_i(t.button);if(r in this.pressed&&(this.pressed[r]=this.pressed[r].filter(n=>n.name!==t.name),this.pressed[r].length===0))return delete this.pressed[r],r}constructor(){KE(this,"pressed",{})}}const md={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function _i(e=0){return e in md?md[e]:Number(e)}const hd={1:2,2:1};function Pi(e){return e=_i(e),e in hd?hd[e]:e}function YE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class XE{get countPressed(){return this.pressedKeys.size}isPressed(t){return this.pressedKeys.has(t.name)}addPressed(t){return this.pressedKeys.add(t.name)}removePressed(t){return this.pressedKeys.delete(t.name)}constructor(){YE(this,"pressedKeys",new Set)}}function Ao(e,t){const r=[];for(let a=e;a;a=a.parentElement)r.push(a);const 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 Ti({target:e,node:t,offset:r}){return Pe(e)?{node:e,offset:r??Te(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:Sp(e,r)}function Sp(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0;const 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.");const 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 Sp(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 JE({document:e,target:t,clickCount:r,node:n,offset:o}){if(Wh(t))return;const a=Pe(t),i=String(a?Te(t):t.textContent),[s,l]=n?[o,o]:QE(i,o,r);if(a)return Mt(t,{anchorOffset:s??i.length,focusOffset:l??i.length}),{node:t,start:s??0,end:l??i.length};{const{node:u,offset:d}=Ti({target:t,node:n,offset:s}),{node:f,offset:c}=Ti({target:t,node:n,offset:l}),v=t.ownerDocument.createRange();try{v.setStart(u,d),v.setEnd(f,c)}catch{throw new Error("The given offset is out of bounds.")}const m=e.getSelection();return m?.removeAllRanges(),m?.addRange(v.cloneRange()),v}}function QE(e,t,r){if(r%3===1||e.length===0)return[t,t];const 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 ZE(e,{document:t,target:r,node:n,offset:o}){const a=Ti({target:r,node:n,offset:o});if("node"in e){if(a.node===e.node){const i=a.offset<e.start?e.end:e.start,s=a.offset>e.end||a.offset<e.start?a.offset:e.end;Mt(e.node,{anchorOffset:i,focusOffset:s})}}else{const 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);const l=t.getSelection();l?.removeAllRanges(),l?.addRange(i.cloneRange())}}function Ap(e,t){var r,n,o,a,i,s,l,u,d,f,c,v,m,g,T,p,q,_,S,P,y,w,E,M;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.x)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((a=t.coords)===null||a===void 0?void 0:a.y)||((i=e.coords)===null||i===void 0?void 0:i.clientX)!==((s=t.coords)===null||s===void 0?void 0:s.clientX)||((l=e.coords)===null||l===void 0?void 0:l.clientY)!==((u=t.coords)===null||u===void 0?void 0:u.clientY)||((d=e.coords)===null||d===void 0?void 0:d.offsetX)!==((f=t.coords)===null||f===void 0?void 0:f.offsetX)||((c=e.coords)===null||c===void 0?void 0:c.offsetY)!==((v=t.coords)===null||v===void 0?void 0:v.offsetY)||((m=e.coords)===null||m===void 0?void 0:m.pageX)!==((g=t.coords)===null||g===void 0?void 0:g.pageX)||((T=e.coords)===null||T===void 0?void 0:T.pageY)!==((p=t.coords)===null||p===void 0?void 0:p.pageY)||((q=e.coords)===null||q===void 0?void 0:q.screenX)!==((_=t.coords)===null||_===void 0?void 0:_.screenX)||((S=e.coords)===null||S===void 0?void 0:S.screenY)!==((P=t.coords)===null||P===void 0?void 0:P.screenY)||((y=e.caret)===null||y===void 0?void 0:y.node)!==((w=t.caret)===null||w===void 0?void 0:w.node)||((E=e.caret)===null||E===void 0?void 0:E.offset)!==((M=t.caret)===null||M===void 0?void 0:M.offset)}function st(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ex{move(t,r,n){const o=this.position,a=this.getTarget(t);if(this.position=r,!Ap(o,r))return;const i=this.getTarget(t),s=this.getEventInit("mousemove"),[l,u]=Ao(a,i);return{leave:()=>{a!==i&&(t.dispatchUIEvent(a,"mouseout",s),l.forEach(d=>t.dispatchUIEvent(d,"mouseleave",s)))},enter:()=>{a!==i&&(t.dispatchUIEvent(i,"mouseover",s),u.forEach(d=>t.dispatchUIEvent(d,"mouseenter",s)))},move:()=>{n||(t.dispatchUIEvent(i,"mousemove",s),this.modifySelecting(t))}}}down(t,r,n){const o=this.buttons.down(r);if(o===void 0)return;const a=this.getTarget(t);this.buttonDownTarget[o]=a;const i=this.getEventInit("mousedown",r.button),s=Fe(a);!n&&(s||t.dispatchUIEvent(a,"mousedown",i))&&(this.startSelecting(t,i.detail),et(a)),!s&&Pi(r.button)===2&&t.dispatchUIEvent(a,"contextmenu",this.getEventInit("contextmenu",r.button))}up(t,r,n){const o=this.buttons.up(r);if(o===void 0)return;const a=this.getTarget(t);if(!Fe(a)){if(!n){const s=this.getEventInit("mouseup",r.button);t.dispatchUIEvent(a,"mouseup",s),this.endSelecting()}const i=Ao(this.buttonDownTarget[o],a)[2][0];if(i){const s=this.getEventInit("click",r.button);s.detail&&(t.dispatchUIEvent(i,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&t.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",r.button),detail:s.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(t,r){const n={...this.position.coords};return n.button=Pi(r),n.buttons=this.buttons.getButtons(),t==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):t==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(t==="click"||t==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}startSelecting(t,r){var n,o;this.selecting=JE({document:t.config.document,target:this.getTarget(t),node:(n=this.position.caret)===null||n===void 0?void 0:n.node,offset:(o=this.position.caret)===null||o===void 0?void 0:o.offset,clickCount:r})}modifySelecting(t){var r,n;this.selecting&&ZE(this.selecting,{document:t.config.document,target:this.getTarget(t),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})}endSelecting(){this.selecting=void 0}constructor(){st(this,"position",{}),st(this,"buttons",new Tp),st(this,"selecting",void 0),st(this,"buttonDownTarget",{}),st(this,"clickCount",new class{incOnClick(t){const r=this.down[t]===void 0?void 0:Number(this.down[t])+1;return this.count=this.count[t]===void 0?{}:{[t]:Number(this.count[t])+1},r}getOnDown(t){var r;this.down={[t]:(r=this.count[t])!==null&&r!==void 0?r:0};var n;return this.count={[t]:(n=this.count[t])!==null&&n!==void 0?n:0},Number(this.count[t])+1}getOnUp(t){return this.down[t]===void 0?void 0:Number(this.down[t])+1}reset(){this.count={}}constructor(){st(this,"down",{}),st(this,"count",{})}})}}function xa(e,t){var r;return((r=Mp(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function tx(e){const t=ye(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);const o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}const bd=Symbol("Last check for pointer-events");function Mp(e,t){const r=t[bd];if(!(e.config.pointerEventsCheck!==sa.Never&&(!r||vd(e.config.pointerEventsCheck,sa.EachApiCall)&&r[me.Call]!==ta(e,me.Call)||vd(e.config.pointerEventsCheck,sa.EachTrigger)&&r[me.Trigger]!==ta(e,me.Trigger))))return r?.result;const o=tx(t);return t[bd]={[me.Call]:ta(e,me.Call),[me.Trigger]:ta(e,me.Trigger),result:o},o}function _o(e,t){const r=Mp(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\`:`,"",rx(r.tree)].join(`
|
|
71
|
-
`))}function
|
|
72
|
-
`)}function
|
|
86
|
+
`+t),t},id={debug:bE,logTestingPlaygroundURL:vE},Ui=typeof document<"u"&&document.body?Rp(document.body,Sa,id):Object.keys(Sa).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),id);function Pt(e,t){return K().eventWrapper(e)}function tt(e){const t=fb(e,ws),r=Ho(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(Pt(t?()=>t.focus():()=>r?.blur()),hb(t??e.ownerDocument.body))}function gE(e){!ws(e)||!(Ho(e.ownerDocument)===e)||Pt(()=>e.blur())}const rt={};rt.click=(e,t,r)=>{const n=t.closest("button,input,label,select,textarea"),o=n&&z(n,"label")&&n.control;if(o&&o!==t)return()=>{ws(o)&&(tt(o),r.dispatchEvent(o,db(e)))};if(z(t,"input",{type:"file"}))return()=>{gE(t),t.dispatchEvent(new(we(t)).Event("fileDialog")),tt(t)}};const Tt=Symbol("Displayed value in UI"),Fe=Symbol("Displayed selection in UI"),xi=Symbol("Initial value to compare on blur");function yE(e){return typeof e=="object"&&Tt in e}function wE(e){return!!e&&typeof e=="object"&&Fe in e}function RE(e,t){e[xi]===void 0&&(e[xi]=e.value),e[Tt]=t,e.value=Object.assign(new String(t),{[Tt]:!0})}function Me(e){return e[Tt]===void 0?e.value:String(e[Tt])}function Ms(e){e[Tt]=void 0}function Ep(e){e[xi]=void 0}function EE(e){return e[xi]}function xE(e,t){e[Fe]=t}function It(e,{focusOffset:t,anchorOffset:r=t},n="replace"){const o=Me(e).length,i=f=>Math.max(0,Math.min(o,f)),a=n==="replace"||e[Fe]===void 0?i(r):e[Fe].anchorOffset,s=i(t),l=Math.min(a,s),u=Math.max(a,s);if(e[Fe]={anchorOffset:a,focusOffset:s},e.selectionStart===l&&e.selectionEnd===u)return;const d=Object.assign(new Number(l),{[Fe]:!0});try{e.setSelectionRange(d,u)}catch{}}function $o(e){var t,r,n;const o=(n=e[Fe])!==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 CE(e){return!!e[Fe]}function si(e){e[Fe]=void 0}const Ci=globalThis.parseInt;function qE(e){const t=e.replace(/\D/g,"");if(t.length<2)return e;const r=Ci(t[0],10),n=Ci(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,ad(t,o)}return e.length===2?e:ad(t,2)}function ad(e,t){const r=e.slice(0,t),n=Math.min(Ci(r,10),23),o=e.slice(t),i=Ci(o,10),a=Math.min(i,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}function xp(e,t){const r=e.cloneNode();return r.value=t,r.value===t}var Cp=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(Cp||{});function _E(e){var t;const r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function PE(e){return z(e,"textarea")||z(e,"input")&&e.type in Cp}function qp(e,t,r,n){if(li(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};const o=sd(e,t,r);if(o){if(li(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(z(o,"br")){const i=sd(o,void 0,r);return i?li(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&z(i,"br")?{node:o.parentNode,offset:ti(o)}:{node:i.parentNode,offset:ti(i)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:ti(o)}:void 0}else return{node:o.parentNode,offset:ti(o)+(r>0?1:0)}}}function sd(e,t,r){const n=Number(t)+(r<0?-1:0);return t!==void 0&&As(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),SE(e,r===1?"next":"previous",TE)}function TE(e){if(li(e))return!0;if(As(e)){if(z(e,["input","textarea"]))return e.type!=="hidden";if(z(e,"br"))return!0}return!1}function ti(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function As(e){return e.nodeType===1}function li(e){return e.nodeType===3}function SE(e,t,r){for(;;){var n;const o=e[`${t}Sibling`];if(o){if(e=ME(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!As(e.parentNode)||!mt(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function ME(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}const Bo=Symbol("Track programmatic changes for React workaround");function AE(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&we(e).REACT_VERSION===17}function OE(e){AE(e)&&(e[Bo]={previousValue:String(e.value),tracked:[]})}function IE(e,t){var r,n;(n=e[Bo])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Bo]||(Ms(e),It(e,{focusOffset:t.length}))}function NE(e,t){var r;const n=e[Bo];if(e[Bo]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;const o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||Ms(e),CE(e)&&It(e,{focusOffset:o?t:e.value.length})}function _p(e){const t=kE(e);if(t&&Se(t))return{type:"input",selection:$o(t)};const r=t?.ownerDocument.getSelection();return{type:No(e)&&r?.anchorNode&&No(r.anchorNode)?"contenteditable":"default",selection:r}}function kE(e){return e.nodeType===1?e:e.parentElement}function jE(e){const t=_p(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 bt({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,i;if(_p(e).type==="input")return It(e,{anchorOffset:n,focusOffset:t});(i=r.ownerDocument)===null||i===void 0||(o=i.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}function Pp(e){return z(e,"input")&&["date","time"].includes(e.type)}function St(e,t,r,n="insertText"){const o=jE(t);o&&(!Pp(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?DE(e,t,o,r,n):$E(e,t,o,r,n)))}function DE(e,t,r,n,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){const a=qp(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(a){i=!0;const s=r.cloneRange();s.comparePoint(a.node,a.offset)<0?s.setStart(a.node,a.offset):s.setEnd(a.node,a.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){const a=r.endOffset;r.endContainer.insertData(a,n),r.setStart(r.endContainer,a+n.length),r.setEnd(r.endContainer,a+n.length)}else{const a=t.ownerDocument.createTextNode(n);r.insertNode(a),r.setStart(a,n.length),r.setEnd(a,n.length)}(i||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}function $E(e,t,r,n,o){let i=n;if(PE(t)){const u=_E(t);if(u!==void 0&&n.length>0){const d=u-t.value.length;if(d>0)i=n.substring(0,d);else return}}const{newValue:a,newOffset:s,oldValue:l}=BE(i,t,r,o);a===l&&s===r.startOffset&&s===r.endOffset||z(t,"input",{type:"number"})&&!LE(a)||(RE(t,a),bt({focusNode:t,anchorOffset:s,focusOffset:s}),Pp(t)?xp(t,a)&&(ld(e,t,s,{}),e.dispatchUIEvent(t,"change"),Ep(t)):ld(e,t,s,{data:n,inputType:o}))}function BE(e,t,{startOffset:r,endOffset:n},o){const i=Me(t),a=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),s=i.substring(0,a),l=Math.min(i.length,r===n&&o==="deleteContentForward"?r+1:n),u=i.substring(l,i.length);let d=`${s}${e}${u}`,f=a+e.length;if(z(t,"input",{type:"time"})){const c=qE(d);c!==""&&xp(t,c)&&(d=c,f=c.length)}return{oldValue:i,newValue:d,newOffset:f}}function ld(e,t,r,n){e.dispatchUIEvent(t,"input",n),NE(t,r)}function LE(e){var t,r;const 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]))}rt.cut=(e,t,r)=>()=>{_t(t)&&St(r,t,"","deleteByCut")};function FE(e){return e?mt(e)?e.textContent:Me(e):null}function UE(e){const t=we(e);for(let r=e;r?.ownerDocument;r=r.parentElement){const{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function zE(e,t){const r=e.ownerDocument,n=r.querySelectorAll($f),o=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||ze(l)));Number(e.getAttribute("tabindex"))>=0&&o.sort((l,u)=>{const d=Number(l.getAttribute("tabindex")),f=Number(u.getAttribute("tabindex"));return d===f?0:d===0?1:f===0?-1:d-f});const i={};let a=[r.body];const s=z(e,"input",{type:"radio"})?e.name:void 0;o.forEach(l=>{const u=l;if(z(u,"input",{type:"radio"})&&u.name){if(u===e){a.push(u);return}else if(u.name===s)return;if(u.checked){a=a.filter(d=>!z(d,"input",{type:"radio",name:u.name})),a.push(u),i[u.name]=u;return}if(typeof i[u.name]<"u")return}a.push(u)});for(let l=a.findIndex(u=>u===e);;)if(l+=t?-1:1,l===a.length?l=0:l===-1&&(l=a.length-1),a[l]===e||a[l]===r.body||UE(a[l]))return a[l]}function ud(e,t){if(Se(e)){const r=$o(e);bt({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{const r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){const n=qp(r.focusNode,r.focusOffset,t);n&&bt({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function Tp(e){if(Se(e))return bt({focusNode:e,anchorOffset:0,focusOffset:Me(e).length});var t;const r=(t=No(e))!==null&&t!==void 0?t:e.ownerDocument.body;bt({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function VE(e){if(Se(e))return $o(e).startOffset===0&&$o(e).endOffset===Me(e).length;var t;const r=(t=No(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 _o(e,t,r){var n;if(Se(e))return bt({focusNode:e,anchorOffset:t,focusOffset:r});if(mt(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return bt({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function ri(e,t,r){const n=we(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 i=o.findIndex(a=>a===t)+r;;i+=r){if(o[i]||(i=r>0?0:o.length-1),o[i]===t)return;if(!ze(o[i])){tt(o[i]),e.dispatchUIEvent(o[i],"click");return}}}rt.keydown=(e,t,r)=>{var n,o;return(o=(n=cd[e.key])===null||n===void 0?void 0:n.call(cd,e,t,r))!==null&&o!==void 0?o:HE(e,t,r)};const cd={ArrowDown:(e,t,r)=>{if(z(t,"input",{type:"radio"}))return()=>ri(r,t,1)},ArrowLeft:(e,t,r)=>z(t,"input",{type:"radio"})?()=>ri(r,t,-1):()=>ud(t,-1),ArrowRight:(e,t,r)=>z(t,"input",{type:"radio"})?()=>ri(r,t,1):()=>ud(t,1),ArrowUp:(e,t,r)=>{if(z(t,"input",{type:"radio"}))return()=>ri(r,t,-1)},Backspace:(e,t,r)=>{if(_t(t))return()=>{St(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(_t(t))return()=>{St(r,t,"","deleteContentForward")}},End:(e,t)=>{if(z(t,["input","textarea"])||mt(t))return()=>{var r,n;const o=(n=(r=FE(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;_o(t,o,o)}},Home:(e,t)=>{if(z(t,["input","textarea"])||mt(t))return()=>{_o(t,0,0)}},PageDown:(e,t)=>{if(z(t,["input"]))return()=>{const r=Me(t).length;_o(t,r,r)}},PageUp:(e,t)=>{if(z(t,["input"]))return()=>{_o(t,0,0)}},Tab:(e,t,r)=>()=>{const n=zE(t,r.system.keyboard.modifiers.Shift);tt(n),Se(n)&&It(n,{anchorOffset:0,focusOffset:n.value.length})}},HE=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Tp(t)};rt.keypress=(e,t,r)=>{if(e.key==="Enter"){if(z(t,"button")||z(t,"input")&&WE.includes(t.type)||z(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(z(t,"input")){const n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&GE.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(_t(t)){const n=e.key==="Enter"?mt(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
87
|
+
`:e.key;return()=>St(r,t,o,n)}};const WE=["button","color","file","image","reset","submit"],GE=["email","month","password","search","tel","text","url","week"];rt.keyup=(e,t,r)=>{var n;return(n=dd[e.key])===null||n===void 0?void 0:n.call(dd,e,t,r)};const dd={" ":(e,t,r)=>{if(Lf(t))return()=>r.dispatchUIEvent(t,"click")}};rt.paste=(e,t,r)=>{if(_t(t))return()=>{var n;const o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&St(r,t,o,"insertFromPaste")}};const Sp={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,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}},focus:{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}},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 Mp(e){return Sp[e].EventType}const KE=["MouseEvent","PointerEvent"];function YE(e){return KE.includes(Mp(e))}function XE(e){return Mp(e)==="KeyboardEvent"}const JE={ClipboardEvent:[ZE],Event:[],FocusEvent:[Co,ex],InputEvent:[Co,tx],MouseEvent:[Co,Zi,fd],PointerEvent:[Co,Zi,fd,nx],KeyboardEvent:[Co,Zi,rx]};function Ap(e,t,r){const n=we(t),{EventType:o,defaultInit:i}=Sp[e],a=new(QE(n))[o](e,i);return JE[o].forEach(s=>s(a,r??{})),a}function QE(e){var t;const r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;const o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var i;const a=(i=e.ClipboardEvent)!==null&&i!==void 0?i:class extends r{};var s;const l=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var u;const d=(u=e.ProgressEvent)!==null&&u!==void 0?u:class extends r{};var f;const c=(f=e.TransitionEvent)!==null&&f!==void 0?f:class extends r{};var b;const g=(b=e.UIEvent)!==null&&b!==void 0?b:class extends r{};var w;const S=(w=e.CompositionEvent)!==null&&w!==void 0?w:class extends g{};var p;const q=(p=e.FocusEvent)!==null&&p!==void 0?p:class extends g{};var _;const T=(_=e.InputEvent)!==null&&_!==void 0?_:class extends g{};var P;const v=(P=e.KeyboardEvent)!==null&&P!==void 0?P:class extends g{};var y;const R=(y=e.MouseEvent)!==null&&y!==void 0?y:class extends g{};var A;const N=(A=e.DragEvent)!==null&&A!==void 0?A:class extends R{};var D;const $=(D=e.PointerEvent)!==null&&D!==void 0?D:class extends R{};var M;const k=(M=e.TouchEvent)!==null&&M!==void 0?M:class extends g{};return{Event:r,AnimationEvent:o,ClipboardEvent:a,PopStateEvent:l,ProgressEvent:d,TransitionEvent:c,UIEvent:g,CompositionEvent:S,FocusEvent:q,InputEvent:T,KeyboardEvent:v,MouseEvent:R,DragEvent:N,PointerEvent:$,TouchEvent:k}}function nt(e,t){for(const[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function te(e){return Number(e??0)}function ZE(e,{clipboardData:t}){nt(e,{clipboardData:t})}function ex(e,{relatedTarget:t}){nt(e,{relatedTarget:t})}function tx(e,{data:t,inputType:r,isComposing:n}){nt(e,{data:t,isComposing:!!n,inputType:String(r)})}function Co(e,{view:t,detail:r}){nt(e,{view:t,detail:te(r??0)})}function Zi(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:i,modifierCapsLock:a,modifierFn:s,modifierFnLock:l,modifierNumLock:u,modifierScrollLock:d,modifierSymbol:f,modifierSymbolLock:c}){nt(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(b){return!!{Alt:t,AltGraph:i,CapsLock:a,Control:r,Fn:s,FnLock:l,Meta:n,NumLock:u,ScrollLock:d,Shift:o,Symbol:f,SymbolLock:c}[b]}})}function rx(e,{key:t,code:r,location:n,repeat:o,isComposing:i,charCode:a}){nt(e,{key:String(t),code:String(r),location:te(n),repeat:!!o,isComposing:!!i,charCode:a})}function fd(e,{x:t,y:r,screenX:n,screenY:o,clientX:i=t,clientY:a=r,button:s,buttons:l,relatedTarget:u,offsetX:d,offsetY:f,pageX:c,pageY:b}){nt(e,{screenX:te(n),screenY:te(o),clientX:te(i),x:te(i),clientY:te(a),y:te(a),button:te(s),buttons:te(l),relatedTarget:u,offsetX:te(d),offsetY:te(f),pageX:te(c),pageY:te(b)})}function nx(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:i,tiltX:a,tiltY:s,twist:l,pointerType:u,isPrimary:d}){nt(e,{pointerId:te(t),width:te(r??1),height:te(n??1),pressure:te(o),tangentialPressure:te(i),tiltX:te(a),tiltY:te(s),twist:te(l),pointerType:String(u),isPrimary:!!d})}function ox(e,t,r,n=!1){(YE(t)||XE(t))&&(r={...r,...this.system.getUIEventModifiers()});const o=Ap(t,e,r);return Op.call(this,e,o,n)}function Op(e,t,r=!1){var n;const o=t.type,i=r?()=>{}:(n=rt[o])===null||n===void 0?void 0:n.call(rt,t,e,this);if(i){t.preventDefault();let a=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>a}),Object.defineProperty(t,"preventDefault",{value:()=>{a=t.cancelable}}),Pt(()=>e.dispatchEvent(t)),a||i(),!a}return Pt(()=>e.dispatchEvent(t))}function ut(e,t,r){const n=Ap(t,e,r);Pt(()=>e.dispatchEvent(n))}const pd=Symbol("patched focus/blur methods");function Ip(e){if(e.prototype[pd])return;const{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>o},blur:{configurable:!0,get:()=>i},[pd]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function o(a){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,a);const s=md(this.ownerDocument);if(s===this)return;const l=Symbol("focus call");n=l,s&&(r.call(s),ut(s,"blur",{relatedTarget:this}),ut(s,"focusout",{relatedTarget:n===l?this:null})),n===l&&(t.call(this,a),ut(this,"focus",{relatedTarget:s})),n===l&&ut(this,"focusin",{relatedTarget:s})}function i(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);const a=md(this.ownerDocument);if(a!==this)return;n=Symbol("blur call"),r.call(this),ut(a,"blur",{relatedTarget:null}),ut(a,"focusout",{relatedTarget:null})}}function md(e){const t=Ho(e);return t?.tagName==="BODY"?null:t}const ea=Symbol("Interceptor for programmatical calls");function wt(e,t,r){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=n?.set?"set":"value";if(typeof n?.[i]!="function"||n[i][ea])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function a(...s){const{applyNative:l=!1,realArgs:u,then:d}=r.call(this,...s),f=(!l&&o||n)[i];i==="set"?f.call(this,u):f.call(this,...u),d?.()}a[ea]=ea,Object.defineProperty(e,t,{...o??n,[i]:a})}function ix(e){wt(e,"value",function(r){const n=yE(r);return n&&OE(this),{applyNative:!!n,realArgs:ax(this,r),then:n?void 0:()=>IE(this,String(r))}})}function ax(e,t){return z(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function sx(e){wt(e,"setSelectionRange",function(r,...n){const o=wE(r);return{applyNative:!!o,realArgs:[Number(r),...n],then:()=>o?void 0:si(e)}}),wt(e,"selectionStart",function(r){return{realArgs:r,then:()=>si(e)}}),wt(e,"selectionEnd",function(r){return{realArgs:r,then:()=>si(e)}}),wt(e,"select",function(){return{realArgs:[],then:()=>xE(e,{anchorOffset:0,focusOffset:Me(e).length})}})}function lx(e){wt(e,"setRangeText",function(...r){return{realArgs:r,then:()=>{Ms(e),si(e)}}})}const Et=Symbol("Node prepared with document state workarounds");function Np(e){e[Et]||(e.addEventListener("focus",t=>{const r=t.target;hd(r)},{capture:!0,passive:!0}),e.activeElement&&hd(e.activeElement),e.addEventListener("blur",t=>{const r=t.target,n=EE(r);n!==void 0&&(r.value!==n&&ut(r,"change"),Ep(r))},{capture:!0,passive:!0}),e[Et]=Et)}function hd(e){e[Et]||(z(e,["input","textarea"])&&(ix(e),sx(e),lx(e)),e[Et]=Et)}function ux(e){return cx(e)?e:e.ownerDocument}function cx(e){return e.nodeType===9}var be=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function Po(e,t){e.levelRefs[t]={}}function ni(e,t){return e.levelRefs[t]}function Mt(e){const t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var ui=(function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e})({});function st(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _e=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({});const dx=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function bd(e){return dx.includes(e)}const fx=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function vd(e){return fx.includes(e)}class px{isKeyPressed(t){return this.pressed.has(String(t.code))}getPressedKeys(){return this.pressed.values().map(t=>t.keyDef)}async keydown(t,r){const n=String(r.key),o=String(r.code),i=Gi(t.config.document);this.setKeydownTarget(i),this.pressed.add(o,r),bd(n)&&(this.modifiers[n]=!0);const a=t.dispatchUIEvent(i,"keydown",{key:n,code:o});vd(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),a&&this.pressed.setUnprevented(o),a&&this.hasKeyPress(n)&&t.dispatchUIEvent(Gi(t.config.document),"keypress",{key:n,code:o,charCode:r.key==="Enter"?13:String(r.key).charCodeAt(0)})}async keyup(t,r){const n=String(r.key),o=String(r.code),i=this.pressed.isUnprevented(o);this.pressed.delete(o),bd(n)&&!this.pressed.values().find(a=>a.keyDef.key===n)&&(this.modifiers[n]=!1),t.dispatchUIEvent(Gi(t.config.document),"keyup",{key:n,code:o},!i),vd(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(t){t!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=t}hasKeyPress(t){return(t.length===1||t==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(t){st(this,"system",void 0),st(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}),st(this,"pressed",new class{add(r,n){var o,i,a;(a=(o=this.registry)[i=r])!==null&&a!==void 0||(o[i]={keyDef:n,unpreventedDefault:!1})}has(r){return!!this.registry[r]}setUnprevented(r){const n=this.registry[r];n&&(n.unpreventedDefault=!0)}isUnprevented(r){var n;return!!(!((n=this.registry[r])===null||n===void 0)&&n.unpreventedDefault)}delete(r){delete this.registry[r]}values(){return Object.values(this.registry)}constructor(){st(this,"registry",{})}}),st(this,"carryChar",""),st(this,"lastKeydownTarget",void 0),st(this,"modifierLockStart",{}),this.system=t}}const mx=[..."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:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:_e.LEFT},{code:"AltRight",key:"Alt",location:_e.RIGHT},{code:"ShiftLeft",key:"Shift",location:_e.LEFT},{code:"ShiftRight",key:"Shift",location:_e.RIGHT},{code:"ControlLeft",key:"Control",location:_e.LEFT},{code:"ControlRight",key:"Control",location:_e.RIGHT},{code:"MetaLeft",key:"Meta",location:_e.LEFT},{code:"MetaRight",key:"Meta",location:_e.RIGHT},{code:"OSLeft",key:"OS",location:_e.LEFT},{code:"OSRight",key:"OS",location:_e.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{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"}],hx=[{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 bx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class kp{getButtons(){let t=0;for(const r of Object.keys(this.pressed))t|=2**Number(r);return t}down(t){const r=Ma(t.button);if(r in this.pressed){this.pressed[r].push(t);return}return this.pressed[r]=[t],r}up(t){const r=Ma(t.button);if(r in this.pressed&&(this.pressed[r]=this.pressed[r].filter(n=>n.name!==t.name),this.pressed[r].length===0))return delete this.pressed[r],r}constructor(){bx(this,"pressed",{})}}const gd={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function Ma(e=0){return e in gd?gd[e]:Number(e)}const yd={1:2,2:1};function Aa(e){return e=Ma(e),e in yd?yd[e]:e}function vx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class gx{get countPressed(){return this.pressedKeys.size}isPressed(t){return this.pressedKeys.has(t.name)}addPressed(t){return this.pressedKeys.add(t.name)}removePressed(t){return this.pressedKeys.delete(t.name)}constructor(){vx(this,"pressedKeys",new Set)}}function Oo(e,t){const r=[];for(let i=e;i;i=i.parentElement)r.push(i);const n=[];for(let i=t;i;i=i.parentElement)n.push(i);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 Oa({target:e,node:t,offset:r}){return Se(e)?{node:e,offset:r??Me(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:jp(e,r)}function jp(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0;const 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.");const i=e.childNodes.item(n),a=String(i.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(i.nodeType===1)return jp(i,t,!1);if(i.nodeType===3)return{node:i,offset:t??i.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}function yx({document:e,target:t,clickCount:r,node:n,offset:o}){if(mb(t))return;const i=Se(t),a=String(i?Me(t):t.textContent),[s,l]=n?[o,o]:wx(a,o,r);if(i)return It(t,{anchorOffset:s??a.length,focusOffset:l??a.length}),{node:t,start:s??0,end:l??a.length};{const{node:u,offset:d}=Oa({target:t,node:n,offset:s}),{node:f,offset:c}=Oa({target:t,node:n,offset:l}),b=t.ownerDocument.createRange();try{b.setStart(u,d),b.setEnd(f,c)}catch{throw new Error("The given offset is out of bounds.")}const g=e.getSelection();return g?.removeAllRanges(),g?.addRange(b.cloneRange()),b}}function wx(e,t,r){if(r%3===1||e.length===0)return[t,t];const 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 Rx(e,{document:t,target:r,node:n,offset:o}){const i=Oa({target:r,node:n,offset:o});if("node"in e){if(i.node===e.node){const a=i.offset<e.start?e.end:e.start,s=i.offset>e.end||i.offset<e.start?i.offset:e.end;It(e.node,{anchorOffset:a,focusOffset:s})}}else{const a=e.cloneRange(),s=a.comparePoint(i.node,i.offset);s<0?a.setStart(i.node,i.offset):s>0&&a.setEnd(i.node,i.offset);const l=t.getSelection();l?.removeAllRanges(),l?.addRange(a.cloneRange())}}function Dp(e,t){var r,n,o,i,a,s,l,u,d,f,c,b,g,w,S,p,q,_,T,P,v,y,R,A;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.x)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((i=t.coords)===null||i===void 0?void 0:i.y)||((a=e.coords)===null||a===void 0?void 0:a.clientX)!==((s=t.coords)===null||s===void 0?void 0:s.clientX)||((l=e.coords)===null||l===void 0?void 0:l.clientY)!==((u=t.coords)===null||u===void 0?void 0:u.clientY)||((d=e.coords)===null||d===void 0?void 0:d.offsetX)!==((f=t.coords)===null||f===void 0?void 0:f.offsetX)||((c=e.coords)===null||c===void 0?void 0:c.offsetY)!==((b=t.coords)===null||b===void 0?void 0:b.offsetY)||((g=e.coords)===null||g===void 0?void 0:g.pageX)!==((w=t.coords)===null||w===void 0?void 0:w.pageX)||((S=e.coords)===null||S===void 0?void 0:S.pageY)!==((p=t.coords)===null||p===void 0?void 0:p.pageY)||((q=e.coords)===null||q===void 0?void 0:q.screenX)!==((_=t.coords)===null||_===void 0?void 0:_.screenX)||((T=e.coords)===null||T===void 0?void 0:T.screenY)!==((P=t.coords)===null||P===void 0?void 0:P.screenY)||((v=e.caret)===null||v===void 0?void 0:v.node)!==((y=t.caret)===null||y===void 0?void 0:y.node)||((R=e.caret)===null||R===void 0?void 0:R.offset)!==((A=t.caret)===null||A===void 0?void 0:A.offset)}function lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ex{move(t,r,n){const o=this.position,i=this.getTarget(t);if(this.position=r,!Dp(o,r))return;const a=this.getTarget(t),s=this.getEventInit("mousemove"),[l,u]=Oo(i,a);return{leave:()=>{i!==a&&(t.dispatchUIEvent(i,"mouseout",s),l.forEach(d=>t.dispatchUIEvent(d,"mouseleave",s)))},enter:()=>{i!==a&&(t.dispatchUIEvent(a,"mouseover",s),u.forEach(d=>t.dispatchUIEvent(d,"mouseenter",s)))},move:()=>{n||(t.dispatchUIEvent(a,"mousemove",s),this.modifySelecting(t))}}}down(t,r,n){const o=this.buttons.down(r);if(o===void 0)return;const i=this.getTarget(t);this.buttonDownTarget[o]=i;const a=this.getEventInit("mousedown",r.button),s=ze(i);!n&&(s||t.dispatchUIEvent(i,"mousedown",a))&&(this.startSelecting(t,a.detail),tt(i)),!s&&Aa(r.button)===2&&t.dispatchUIEvent(i,"contextmenu",this.getEventInit("contextmenu",r.button))}up(t,r,n){const o=this.buttons.up(r);if(o===void 0)return;const i=this.getTarget(t);if(!ze(i)){if(!n){const s=this.getEventInit("mouseup",r.button);t.dispatchUIEvent(i,"mouseup",s),this.endSelecting()}const a=Oo(this.buttonDownTarget[o],i)[2][0];if(a){const s=this.getEventInit("click",r.button);s.detail&&(t.dispatchUIEvent(a,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&t.dispatchUIEvent(a,"dblclick",{...this.getEventInit("dblclick",r.button),detail:s.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(t,r){const n={...this.position.coords};return n.button=Aa(r),n.buttons=this.buttons.getButtons(),t==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):t==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(t==="click"||t==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}startSelecting(t,r){var n,o;this.selecting=yx({document:t.config.document,target:this.getTarget(t),node:(n=this.position.caret)===null||n===void 0?void 0:n.node,offset:(o=this.position.caret)===null||o===void 0?void 0:o.offset,clickCount:r})}modifySelecting(t){var r,n;this.selecting&&Rx(this.selecting,{document:t.config.document,target:this.getTarget(t),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})}endSelecting(){this.selecting=void 0}constructor(){lt(this,"position",{}),lt(this,"buttons",new kp),lt(this,"selecting",void 0),lt(this,"buttonDownTarget",{}),lt(this,"clickCount",new class{incOnClick(t){const r=this.down[t]===void 0?void 0:Number(this.down[t])+1;return this.count=this.count[t]===void 0?{}:{[t]:Number(this.count[t])+1},r}getOnDown(t){var r;this.down={[t]:(r=this.count[t])!==null&&r!==void 0?r:0};var n;return this.count={[t]:(n=this.count[t])!==null&&n!==void 0?n:0},Number(this.count[t])+1}getOnUp(t){return this.down[t]===void 0?void 0:Number(this.down[t])+1}reset(){this.count={}}constructor(){lt(this,"down",{}),lt(this,"count",{})}})}}function qi(e,t){var r;return((r=$p(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function xx(e){const t=we(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);const o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}const wd=Symbol("Last check for pointer-events");function $p(e,t){const r=t[wd];if(!(e.config.pointerEventsCheck!==ui.Never&&(!r||Rd(e.config.pointerEventsCheck,ui.EachApiCall)&&r[be.Call]!==ni(e,be.Call)||Rd(e.config.pointerEventsCheck,ui.EachTrigger)&&r[be.Trigger]!==ni(e,be.Trigger))))return r?.result;const o=xx(t);return t[wd]={[be.Call]:ni(e,be.Call),[be.Trigger]:ni(e,be.Trigger),result:o},o}function To(e,t){const r=$p(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\`:`,"",Cx(r.tree)].join(`
|
|
88
|
+
`))}function Cx(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,qx(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(`
|
|
89
|
+
`)}function qx(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(z(e,["button","input","meter","output","progress","select","textarea"])&&(!((t=e.labels)===null||t===void 0)&&t.length))r=Array.from(e.labels).map(a=>{var s;return(s=a.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(z(e,"button")){var i;r=(i=e.textContent)===null||i===void 0?void 0:i.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}function Rd(e,t){return(e&t)>0}function Be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class _x{init(t){const r=this.getTarget(t),[,n]=Oo(null,r),o=this.getEventInit();return To(t,r),t.dispatchUIEvent(r,"pointerover",o),n.forEach(i=>t.dispatchUIEvent(i,"pointerenter",o)),this}move(t,r){const n=this.position,o=this.getTarget(t);if(this.position=r,!Dp(n,r))return;const i=this.getTarget(t),a=this.getEventInit(-1),[s,l]=Oo(o,i);return{leave:()=>{qi(t,o)&&o!==i&&(t.dispatchUIEvent(o,"pointerout",a),s.forEach(u=>t.dispatchUIEvent(u,"pointerleave",a)))},enter:()=>{To(t,i),o!==i&&(t.dispatchUIEvent(i,"pointerover",a),l.forEach(u=>t.dispatchUIEvent(u,"pointerenter",a)))},move:()=>{t.dispatchUIEvent(i,"pointermove",a)}}}down(t,r=0){if(this.isDown)return;const n=this.getTarget(t);To(t,n),this.isDown=!0,this.isPrevented=!t.dispatchUIEvent(n,"pointerdown",this.getEventInit(r))}up(t,r=0){if(!this.isDown)return;const n=this.getTarget(t);To(t,n),this.isPrevented=!1,this.isDown=!1,t.dispatchUIEvent(n,"pointerup",this.getEventInit(r))}release(t){const r=this.getTarget(t),[n]=Oo(r,null),o=this.getEventInit();qi(t,r)&&(t.dispatchUIEvent(r,"pointerout",o),n.forEach(i=>t.dispatchUIEvent(i,"pointerleave",o))),this.isCancelled=!0}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}getEventInit(t){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:Aa(t),buttons:this.buttons.getButtons()}}constructor({pointerId:t,pointerType:r,isPrimary:n},o){Be(this,"pointerId",void 0),Be(this,"pointerType",void 0),Be(this,"isPrimary",void 0),Be(this,"buttons",void 0),Be(this,"isMultitouch",!1),Be(this,"isCancelled",!1),Be(this,"isDown",!1),Be(this,"isPrevented",!1),Be(this,"position",{}),this.pointerId=t,this.pointerType=r,this.isPrimary=n,this.isMultitouch=!n,this.buttons=o}}function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Px{isKeyPressed(t){return this.devices.get(t.pointerType).isPressed(t)}async press(t,r,n){this.devices.get(r.pointerType).addPressed(r),this.buttons.down(r);const o=this.getPointerName(r),i=r.pointerType==="touch"?this.pointers.new(o,r.pointerType,this.buttons):this.pointers.get(o);i.position=n,i.pointerType!=="touch"&&(this.mouse.position=n),i.pointerType==="touch"&&i.init(t),i.down(t,r.button),i.pointerType!=="touch"&&this.mouse.down(t,r,i.isPrevented)}async move(t,r,n){const o=this.pointers.get(r),i=o.move(t,n),a=o.pointerType==="touch"?void 0:this.mouse.move(t,n,o.isPrevented);i?.leave(),a?.leave(),i?.enter(),a?.enter(),i?.move(),a?.move()}async release(t,r,n){const o=this.devices.get(r.pointerType);o.removePressed(r),this.buttons.up(r);const i=this.pointers.get(this.getPointerName(r)),a=i.isPrevented;if(i.position=n,i.pointerType!=="touch"&&(this.mouse.position=n),o.countPressed===0&&i.up(t,r.button),i.pointerType==="touch"&&i.release(t),i.pointerType==="touch"&&!i.isMultitouch){const s=this.mouse.move(t,n,a);s?.leave(),s?.enter(),s?.move(),this.mouse.down(t,r,a)}if(!i.isMultitouch){const s=this.mouse.move(t,n,a);s?.leave(),s?.enter(),s?.move(),this.mouse.up(t,r,a)}}getPointerName(t){return t.pointerType==="touch"?t.name:t.pointerType}getPreviousPosition(t){return this.pointers.has(t)?this.pointers.get(t).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(t){var r;return(r=this.mouse.position.target)!==null&&r!==void 0?r:t.config.document.body}setMousePosition(t){this.mouse.position=t,this.pointers.get("mouse").position=t}constructor(t){Je(this,"system",void 0),Je(this,"mouse",void 0),Je(this,"buttons",void 0),Je(this,"devices",new class{get(r){var n,o,i;return(i=(n=this.registry)[o=r])!==null&&i!==void 0?i:n[o]=new gx}constructor(){Je(this,"registry",{})}}),Je(this,"pointers",new class{new(r,n,o){const i=n!=="touch"||!Object.values(this.registry).some(a=>a.pointerType==="touch"&&!a.isCancelled);return i||Object.values(this.registry).forEach(a=>{a.pointerType===n&&!a.isCancelled&&(a.isMultitouch=!0)}),this.registry[r]=new _x({pointerId:this.nextId++,pointerType:n,isPrimary:i},o),this.registry[r]}get(r){if(!this.has(r))throw new Error(`Trying to access pointer "${r}" which does not exist.`);return this.registry[r]}has(r){return r in this.registry}constructor(){Je(this,"registry",{}),Je(this,"nextId",1)}}),this.system=t,this.buttons=new kp,this.mouse=new Ex,this.pointers.new("mouse","mouse",this.buttons)}}function Ed(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Bp{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(){Ed(this,"keyboard",new px(this)),Ed(this,"pointer",new Px(this))}}async function Tx(e){const t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function Sx(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function Mx(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function Ax(e){return this.pointer({target:e})}async function Ox(e){return To(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Ix({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var Os=(function(e){return e["{"]="}",e["["]="]",e})(Os||{});function Lp(e,t){let r=0;const n=e[r]in Os?e[r]:"";r+=n.length;const i=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:i,...i===""?Nx(e,r,t):kx(e,r,i,t)}}function Nx(e,t,r){const n=e[t];return Fp(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function kx(e,t,r,n){var o,i;const a=e[t]==="/"?"/":"";t+=a.length;const s=r==="{"&&e[t]==="\\";t+=Number(s);const l=s?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];Fp(l,e,t,n),t+=l.length;var u;const d=(u=(i=e.slice(t).match(/^>\d+/))===null||i===void 0?void 0:i[0])!==null&&u!==void 0?u:"";t+=d.length;const f=e[t]==="/"||!d&&e[t]===">"?e[t]:"";t+=f.length;const c=Os[r],b=e[t]===c?c:"";if(!b)throw new Error(Up([!d&&"repeat modifier",!f&&"release modifier",`"${c}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=b.length,{consumedLength:t,descriptor:l,releasePrevious:!!a,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:jx(f,d)}}function Fp(e,t,r,n){if(!e)throw new Error(Up("key descriptor",t[r],t,n))}function jx(e,t){if(e)return e==="/";if(t)return!1}function Up(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
73
90
|
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"}
|
|
74
|
-
for more information about how userEvent parses your input.`}function hx(e,t){const r=[];do{const{type:o,descriptor:a,consumedLength:i,releasePrevious:s,releaseSelf:l=!0,repeat:u}=Ip(t,"keyboard");var n;const d=(n=e.find(f=>{if(o==="["){var c;return((c=f.code)===null||c===void 0?void 0:c.toLowerCase())===a.toLowerCase()}else if(o==="{"){var v;return((v=f.key)===null||v===void 0?void 0:v.toLowerCase())===a.toLowerCase()}return f.key===a}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:a};r.push({keyDef:d,releasePrevious:s,releaseSelf:l,repeat:u}),t=t.slice(i)}while(t);return r}async function bx(e){const t=hx(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Tt(this.config),await vx(this,t[r])}async function vx(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){const{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 Tt(e.config);n&&await a.keyboard.keyup(e,t)}}async function gx(e){for(const t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function jp(e){const t=Pe(e)?{"text/plain":yx(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=ms(ye(e));for(const n in t)t[n]&&r.setData(n,t[n]);return r}function yx(e){const t=jo(e);return Te(e).substring(t.startOffset,t.endOffset)}async function wx(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=jp(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await Af(e,n),n}async function Rx(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=jp(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await Af(r.ownerDocument,n),n}async function Ex(e){const t=this.config.document;var r;const n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;const a=(o=typeof e=="string"?xx(t,e):e)!==null&&o!==void 0?o:await Uh(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:a})}function xx(e,t){const r=ms(ye(e));return r.setData("text",t),r}function yd(e,t){const r=[];do{const{descriptor:n,consumedLength:o,releasePrevious:a,releaseSelf:i=!0}=Ip(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 Cx(e){const{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...yd(t,n)):"keys"in n?r.push(...yd(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Tt(this.config),await qx(this,r[n]);this.system.pointer.resetClickCount()}async function qx(e,t){var r,n;const 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,u;const d={target:(i=t.target)!==null&&i!==void 0?i:_x(e,a),coords:(s=t.coords)!==null&&s!==void 0?s:a?.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:wd(t)||a==null||(r=a.caret)===null||r===void 0?void 0:r.node,offset:(u=t.offset)!==null&&u!==void 0?u:wd(t)||a==null||(n=a.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(qo(e,me.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(qo(e,me.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(qo(e,me.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(qo(e,me.Trigger),await e.system.pointer.move(e,o,d))}function wd(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 _x(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 Px(e){if(!Ct(e)||Fe(e))throw new Error("clear()` is only supported on editable elements.");if(et(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(Rp(e),!EE(e))throw new Error("The element content to be cleared could not be selected.");Pt(this,e,"","deleteContentBackward")}async function Tx(e,t){return Dp.call(this,!0,e,t)}async function Sx(e,t){return Dp.call(this,!1,e,t)}async function Dp(e,t,r){if(!e&&!t.multiple)throw K().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);const 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;{const l=o.find(u=>u.value===s||u.innerHTML===s);if(l)return l;throw K().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!Fe(s));if(Fe(t)||!a.length)return;const i=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(z(t,"select"))if(t.multiple)for(const s of a){const l=this.config.pointerEventsCheck===0?!0:xa(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")),et(t),l&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),i(s),l&&this.dispatchUIEvent(s,"click"),await Tt(this.config)}else if(a.length===1){const s=this.config.pointerEventsCheck===0?!0:xa(this,t);s?await this.click(t):et(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 Tt(this.config)}else throw K().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(const s of a)await this.click(s),await this.unhover(s);else throw K().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function Ax(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&&Co(e,o,a??o),await this.keyboard(t),n||await gx(this))}const Rd=Symbol("files and value properties are mocked");function Za(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function Mx(e,t){var r;(r=e[Rd])===null||r===void 0||r.restore();const n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),a=Object.getOwnPropertyDescriptor(e,"files");function i(){Za(e,"type",n),Za(e,"value",o),Za(e,"files",a)}e[Rd]={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 Ox(e,t){const r=z(e,"label")?e.control:e;if(!r||!z(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(Fe(e))return;const n=(Array.isArray(t)?t:[t]).filter(a=>!this.config.applyAccept||Ix(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))})||(Mx(r,ps(ye(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function ra(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function Ix(e,t){if(!t)return!0;const r=["audio/*","image/*","video/*"];return ra(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?ra(e.name).endsWith(n):r.includes(n)?ra(e.type).startsWith(n.replace("*","")):ra(e.type)===n)}const Ed={click:ix,dblClick:sx,tripleClick:lx,hover:ux,unhover:cx,tab:dx,keyboard:bx,copy:wx,cut:Rx,paste:Ex,pointer:Cx,clear:Px,deselectOptions:Sx,selectOptions:Tx,type:Ax,upload:Ox};function Nx(e){return K().asyncWrapper(e)}const $p={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:WE,pointerMap:GE,pointerEventsCheck:sa.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},kx={...$p,writeToClipboard:!0};function Bp(e={},t=kx,r){const n=Bx(e,r,t);return{...t,...e,document:n}}function jx(e={}){const t=Bp(e);Pp(t.document),_p(ye(t.document).HTMLElement);var r;const n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return Bh(n),Ss(t).api}function le({keyboardState:e,pointerState:t,...r}={},n){const o=Bp(r,$p,n);Pp(o.document),_p(ye(o.document).HTMLElement);var a;const i=(a=t??e)!==null&&a!==void 0?a:new Op;return{api:Ss(o,i).api,system:i}}function Dx(e){return Ss({...this.config,...e},this.system).api}function $x(e,t){function r(...n){return qo(e,me.Call),Nx(()=>t.apply(e,n).then(async o=>(await Tt(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Ss(e,t=new Op){const r={};return Object.assign(r,{config:e,dispatchEvent:qp.bind(r),dispatchUIEvent:jE.bind(r),system:t,levelRefs:{},...Ed}),{instance:r,api:{...Object.fromEntries(Object.entries(Ed).map(([n,o])=>[n,$x(r,o)])),setup:Dx.bind(r)}}}function Bx(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&FE(t))!==null&&o!==void 0?o:r.document}function Lx(e){return le().api.clear(e)}function Fx(e,t={}){return le(t,e).api.click(e)}function Ux(e={}){return le(e).api.copy()}function zx(e={}){return le(e).api.cut()}function Vx(e,t={}){return le(t).api.dblClick(e)}function Hx(e,t,r={}){return le(r).api.deselectOptions(e,t)}function Wx(e,t={}){return le(t).api.hover(e)}async function Gx(e,t={}){const{api:r,system:n}=le(t);return r.keyboard(e).then(()=>n)}async function Kx(e,t={}){const{api:r,system:n}=le(t);return r.pointer(e).then(()=>n)}function Yx(e,t){return le(t).api.paste(e)}function Xx(e,t,r={}){return le(r).api.selectOptions(e,t)}function Jx(e,t={}){return le(t).api.tripleClick(e)}function Qx(e,t,r={}){return le(r,e).api.type(e,t,r)}function Zx(e,t={}){const{api:r,system:n}=le(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function eC(e,t,r={}){return le(r).api.upload(e,t)}function tC(e={}){return le().api.tab(e)}const rC=Object.freeze(Object.defineProperty({__proto__:null,clear:Lx,click:Fx,copy:Ux,cut:zx,dblClick:Vx,deselectOptions:Hx,hover:Wx,keyboard:Gx,paste:Yx,pointer:Kx,selectOptions:Xx,tab:tC,tripleClick:Jx,type:Qx,unhover:Zx,upload:eC},Symbol.toStringTag,{value:"Module"})),nC={...rC,setup:jx};function ei(e,t,r){switch(t){case"type":return`Event fired: Typed "${r[1]}" into element`;case"selectOptions":return`Event fired: Selected option(s) ${JSON.stringify(r[1])}`;case"click":return"Event fired: Clicked element";case"dblClick":return"Event fired: Double-clicked element";case"tripleClick":return"Event fired: Triple-clicked element";default:return`Event fired: ${e}.${String(t)} executed`}}function oC(e,t){e.focus();const r=e instanceof HTMLInputElement,n=e instanceof HTMLTextAreaElement;if(r||n){const o=r?Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set:Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,"value")?.set;o?o.call(e,t):e.value=t}e.dispatchEvent(new InputEvent("input",{bubbles:!0,data:t})),e.dispatchEvent(new Event("change",{bubbles:!0}))}function Lp(e,t="userEvent"){return new Proxy(e,{get(r,n,o){const a=Reflect.get(r,n,o);return typeof a!="function"?a:n==="setup"?(...i)=>{const s=a(...i);return Lp(s,`${t}.instance`)}:n==="type"?async(...i)=>{if(document.visibilityState==="hidden"||!document.hasFocus()){oC(i[0],i[1]),he(ei(t,n,i));return}const s=await a(...i);return he(ei(t,n,i)),s}:async(...i)=>{const s=await a(...i);return he(ei(t,n,i)),s}}})}const aC=Lp(nC);function iC(e,t,r){const n=String(t);if(/^(get|query|find)(All)?By/.test(n)){const o=r[0];return`query: ${n}("${o}")`}return n==="within"?`helper: within(<${(r[0]?.tagName||"unknown").toLowerCase()}>) called`:n==="prettyDOM"||n==="logDOM"?`debug: ${n} called`:["act","waitFor","waitForElementToBeRemoved"].includes(n)?`async utility: ${n} executed`:`method: ${e}.${n} executed`}const sC=()=>document.querySelector("body > :not(#twd-sidebar-root):not(script):not(style):not(svg):not(path):not(noscript):not(link):not(meta):not(iframe):not(template)")??document.body,lC=(e,t)=>{const r=sC(),o=mp(r)[e];if(typeof o=="function")return o(...t);const a=La[e];return typeof a=="function"?a(...t):a},uC=(e,t)=>{const r=La[e];return typeof r!="function"?r:r(...t)};function Fp(e,t="screen",r=!1){return new Proxy(e,{get(n,o,a){const i=Reflect.get(n,o,a);return typeof i!="function"?i:(...s)=>{const l=r?lC(o,s):uC(o,s);return he(iC(t,o,s)),l}}})}const cC=Fp(La,"screen",!0),dC=Fp(La,"screen",!1);tp({getElementError(e){return new Error(`${e}`)}});const fC=tp;ie.truncateThreshold=0;exports.TWDSidebar=Ah;exports.configureScreenDom=fC;exports.defaultTheme=Cf;exports.expect=Mo;exports.initTests=Ih;exports.injectTheme=qf;exports.screenDom=cC;exports.screenDomGlobal=dC;exports.twd=Nm;exports.userEvent=aC;
|
|
91
|
+
for more information about how userEvent parses your input.`}function Dx(e,t){const r=[];do{const{type:o,descriptor:i,consumedLength:a,releasePrevious:s,releaseSelf:l=!0,repeat:u}=Lp(t,"keyboard");var n;const d=(n=e.find(f=>{if(o==="["){var c;return((c=f.code)===null||c===void 0?void 0:c.toLowerCase())===i.toLowerCase()}else if(o==="{"){var b;return((b=f.key)===null||b===void 0?void 0:b.toLowerCase())===i.toLowerCase()}return f.key===i}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:i};r.push({keyDef:d,releasePrevious:s,releaseSelf:l,repeat:u}),t=t.slice(a)}while(t);return r}async function $x(e){const t=Dx(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Mt(this.config),await Bx(this,t[r])}async function Bx(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){const{system:i}=e;if(i.keyboard.isKeyPressed(t)&&await i.keyboard.keyup(e,t),!r){for(let a=1;a<=o;a++)await i.keyboard.keydown(e,t),a<o&&await Mt(e.config);n&&await i.keyboard.keyup(e,t)}}async function Lx(e){for(const t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function zp(e){const t=Se(e)?{"text/plain":Fx(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=gs(we(e));for(const n in t)t[n]&&r.setData(n,t[n]);return r}function Fx(e){const t=$o(e);return Me(e).substring(t.startOffset,t.endOffset)}async function Ux(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=zp(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await Df(e,n),n}async function zx(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=zp(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await Df(r.ownerDocument,n),n}async function Vx(e){const t=this.config.document;var r;const n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;const i=(o=typeof e=="string"?Hx(t,e):e)!==null&&o!==void 0?o:await cb(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:i})}function Hx(e,t){const r=gs(we(e));return r.setData("text",t),r}function xd(e,t){const r=[];do{const{descriptor:n,consumedLength:o,releasePrevious:i,releaseSelf:a=!0}=Lp(t,"pointer"),s=e.find(l=>l.name===n);s&&r.push({keyDef:s,releasePrevious:i,releaseSelf:a}),t=t.slice(o)}while(t);return r}async function Wx(e){const{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...xd(t,n)):"keys"in n?r.push(...xd(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Mt(this.config),await Gx(this,r[n]);this.system.pointer.resetClickCount()}async function Gx(e,t){var r,n;const o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",i=e.system.pointer.getPreviousPosition(o);var a,s,l,u;const d={target:(a=t.target)!==null&&a!==void 0?a:Kx(e,i),coords:(s=t.coords)!==null&&s!==void 0?s:i?.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:Cd(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(u=t.offset)!==null&&u!==void 0?u:Cd(t)||i==null||(n=i.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Po(e,be.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(Po(e,be.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(Po(e,be.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(Po(e,be.Trigger),await e.system.pointer.move(e,o,d))}function Cd(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 Kx(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 Yx(e){if(!_t(e)||ze(e))throw new Error("clear()` is only supported on editable elements.");if(tt(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(Tp(e),!VE(e))throw new Error("The element content to be cleared could not be selected.");St(this,e,"","deleteContentBackward")}async function Xx(e,t){return Vp.call(this,!0,e,t)}async function Jx(e,t){return Vp.call(this,!1,e,t)}async function Vp(e,t,r){if(!e&&!t.multiple)throw K().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);const n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),i=n.map(s=>{if(typeof s!="string"&&o.includes(s))return s;{const l=o.find(u=>u.value===s||u.innerHTML===s);if(l)return l;throw K().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!ze(s));if(ze(t)||!i.length)return;const a=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(z(t,"select"))if(t.multiple)for(const s of i){const l=this.config.pointerEventsCheck===0?!0:qi(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")),tt(t),l&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),a(s),l&&this.dispatchUIEvent(s,"click"),await Mt(this.config)}else if(i.length===1){const s=this.config.pointerEventsCheck===0?!0:qi(this,t);s?await this.click(t):tt(t),a(i[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 Mt(this.config)}else throw K().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(const s of i)await this.click(s),await this.unhover(s);else throw K().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function Qx(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:i}={}){e.disabled||(r||await this.click(e),o!==void 0&&_o(e,o,i??o),await this.keyboard(t),n||await Lx(this))}const qd=Symbol("files and value properties are mocked");function ta(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function Zx(e,t){var r;(r=e[qd])===null||r===void 0||r.restore();const n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function a(){ta(e,"type",n),ta(e,"value",o),ta(e,"files",i)}e[qd]={restore:a},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")a();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"&&(a(),e.type=s)}}})}async function eC(e,t){const r=z(e,"label")?e.control:e;if(!r||!z(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(ze(e))return;const n=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||tC(i,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var i;n.length===((i=r.files)===null||i===void 0?void 0:i.length)&&n.every((a,s)=>{var l;return a===((l=r.files)===null||l===void 0?void 0:l.item(s))})||(Zx(r,vs(we(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function oi(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function tC(e,t){if(!t)return!0;const r=["audio/*","image/*","video/*"];return oi(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?oi(e.name).endsWith(n):r.includes(n)?oi(e.type).startsWith(n.replace("*","")):oi(e.type)===n)}const _d={click:Tx,dblClick:Sx,tripleClick:Mx,hover:Ax,unhover:Ox,tab:Ix,keyboard:$x,copy:Ux,cut:zx,paste:Vx,pointer:Wx,clear:Yx,deselectOptions:Jx,selectOptions:Xx,type:Qx,upload:eC};function rC(e){return K().asyncWrapper(e)}const Hp={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:mx,pointerMap:hx,pointerEventsCheck:ui.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},nC={...Hp,writeToClipboard:!0};function Wp(e={},t=nC,r){const n=sC(e,r,t);return{...t,...e,document:n}}function oC(e={}){const t=Wp(e);Np(t.document),Ip(we(t.document).HTMLElement);var r;const n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return sb(n),Is(t).api}function le({keyboardState:e,pointerState:t,...r}={},n){const o=Wp(r,Hp,n);Np(o.document),Ip(we(o.document).HTMLElement);var i;const a=(i=t??e)!==null&&i!==void 0?i:new Bp;return{api:Is(o,a).api,system:a}}function iC(e){return Is({...this.config,...e},this.system).api}function aC(e,t){function r(...n){return Po(e,be.Call),rC(()=>t.apply(e,n).then(async o=>(await Mt(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Is(e,t=new Bp){const r={};return Object.assign(r,{config:e,dispatchEvent:Op.bind(r),dispatchUIEvent:ox.bind(r),system:t,levelRefs:{},..._d}),{instance:r,api:{...Object.fromEntries(Object.entries(_d).map(([n,o])=>[n,aC(r,o)])),setup:iC.bind(r)}}}function sC(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&ux(t))!==null&&o!==void 0?o:r.document}function lC(e){return le().api.clear(e)}function uC(e,t={}){return le(t,e).api.click(e)}function cC(e={}){return le(e).api.copy()}function dC(e={}){return le(e).api.cut()}function fC(e,t={}){return le(t).api.dblClick(e)}function pC(e,t,r={}){return le(r).api.deselectOptions(e,t)}function mC(e,t={}){return le(t).api.hover(e)}async function hC(e,t={}){const{api:r,system:n}=le(t);return r.keyboard(e).then(()=>n)}async function bC(e,t={}){const{api:r,system:n}=le(t);return r.pointer(e).then(()=>n)}function vC(e,t){return le(t).api.paste(e)}function gC(e,t,r={}){return le(r).api.selectOptions(e,t)}function yC(e,t={}){return le(t).api.tripleClick(e)}function wC(e,t,r={}){return le(r,e).api.type(e,t,r)}function RC(e,t={}){const{api:r,system:n}=le(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function EC(e,t,r={}){return le(r).api.upload(e,t)}function xC(e={}){return le().api.tab(e)}const CC=Object.freeze(Object.defineProperty({__proto__:null,clear:lC,click:uC,copy:cC,cut:dC,dblClick:fC,deselectOptions:pC,hover:mC,keyboard:hC,paste:vC,pointer:bC,selectOptions:gC,tab:xC,tripleClick:yC,type:wC,unhover:RC,upload:EC},Symbol.toStringTag,{value:"Module"})),qC={...CC,setup:oC};function ra(e,t,r){switch(t){case"type":return`Event fired: Typed "${r[1]}" into element`;case"selectOptions":return`Event fired: Selected option(s) ${JSON.stringify(r[1])}`;case"click":return"Event fired: Clicked element";case"dblClick":return"Event fired: Double-clicked element";case"tripleClick":return"Event fired: Triple-clicked element";default:return`Event fired: ${e}.${String(t)} executed`}}function _C(e,t){e.focus();const r=e instanceof HTMLInputElement,n=e instanceof HTMLTextAreaElement;if(r||n){const o=r?Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set:Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,"value")?.set;o?o.call(e,t):e.value=t}e.dispatchEvent(new InputEvent("input",{bubbles:!0,data:t})),e.dispatchEvent(new Event("change",{bubbles:!0}))}function Gp(e,t="userEvent"){return new Proxy(e,{get(r,n,o){const i=Reflect.get(r,n,o);return typeof i!="function"?i:n==="setup"?(...a)=>{const s=i(...a);return Gp(s,`${t}.instance`)}:n==="type"?async(...a)=>{if(document.visibilityState==="hidden"||!document.hasFocus()){_C(a[0],a[1]),fe(ra(t,n,a));return}const s=await i(...a);return fe(ra(t,n,a)),s}:async(...a)=>{const s=await i(...a);return fe(ra(t,n,a)),s}}})}const PC=Gp(qC);function TC(e,t,r){const n=String(t);if(/^(get|query|find)(All)?By/.test(n)){const o=r[0];return`query: ${n}("${o}")`}return n==="within"?`helper: within(<${(r[0]?.tagName||"unknown").toLowerCase()}>) called`:n==="prettyDOM"||n==="logDOM"?`debug: ${n} called`:["act","waitFor","waitForElementToBeRemoved"].includes(n)?`async utility: ${n} executed`:`method: ${e}.${n} executed`}const SC=()=>document.querySelector("body > :not(#twd-sidebar-root):not(script):not(style):not(svg):not(path):not(noscript):not(link):not(meta):not(iframe):not(template)")??document.body,MC=(e,t)=>{const r=SC(),o=Rp(r)[e];if(typeof o=="function")return o(...t);const i=Ui[e];return typeof i=="function"?i(...t):i},AC=(e,t)=>{const r=Ui[e];return typeof r!="function"?r:r(...t)};function Kp(e,t="screen",r=!1){return new Proxy(e,{get(n,o,i){const a=Reflect.get(n,o,i);return typeof a!="function"?a:(...s)=>{const l=r?MC(o,s):AC(o,s);return fe(TC(t,o,s)),l}}})}const OC=Kp(Ui,"screen",!0),IC=Kp(Ui,"screen",!1);lp({asyncUtilTimeout:3e3,getElementError(e){return new Error(`${e}`)}});const NC=lp;ae.truncateThreshold=0;exports.TWDSidebar=Qh;exports.configureScreenDom=NC;exports.defaultTheme=Af;exports.expect=Io;exports.initTests=tb;exports.injectTheme=Of;exports.screenDom=OC;exports.screenDomGlobal=IC;exports.twd=Zm;exports.userEvent=PC;
|